import{u as _,a as f}from"./index.684c656d.js";import{B as h}from"./Editor.2e93bf84.js";import{C as g}from"./Caret.2e43336b.js";import{C as y}from"./Card.bf13def3.js";import{C as w}from"./SettingsRow.892a6d38.js";import"./translations.d159963e.js";import{_ as b}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as s,s as v}from"./default-i18n.20001971.js";import{d as C,H as r,w as n,y as o,o as c,e as S,c as k,a as x,t as E,b as B}from"./runtime-dom.esm-bundler.d8b05b6d.js";import"./helpers.2304d5ee.js";import"./tags.4b35a532.js";import"./isEqual.4ddce6d4.js";import"./_baseIsEqual.fbe0f200.js";import"./_getTag.f48446e8.js";import"./_baseClone.72ffba34.js";import"./_arrayEach.6af5abac.js";import"./_getAllKeysIn.4f27d7aa.js";import"./index.62c20ef8.js";import"./Tooltip.f699c54b.js";import"./Slide.53cdbff7.js";import"./Row.755a571f.js";const a="all-in-one-seo-pack",H={setup(){return{optionsStore:_(),rootStore:f()}},components:{BaseEditor:h,CoreAlert:g,CoreCard:y,CoreSettingsRow:w},data(){return{strings:{htaccessEditor:s(".htaccess Editor",a),editHtaccess:s("Edit .htaccess",a),description:v(s("This allows you to edit the .htaccess file for your site. All WordPress sites on an Apache server have a .htaccess file and we have provided you with a convenient way of editing it. Care should always be taken when editing important files from within WordPress as an incorrect change could cause WordPress to become inaccessible. %1$sBe sure to make a backup before making changes and ensure that you have FTP access to your web server and know how to access and edit files via FTP.%2$s",a),"<strong>","</strong>")}}}},V={class:"aioseo-tools-htaccess-editor"},A=["innerHTML"];function P(T,i,L,e,t,N){const l=o("core-alert"),d=o("base-editor"),p=o("core-settings-row"),m=o("core-card");return c(),C("div",V,[r(m,{slug:"htaccessEditor","header-text":t.strings.htaccessEditor},{default:n(()=>[S("div",{class:"aioseo-settings-row aioseo-section-description",innerHTML:t.strings.description},null,8,A),r(p,{name:t.strings.editHtaccess,align:""},{content:n(()=>[e.optionsStore.htaccessError?(c(),k(l,{key:0,type:"red"},{default:n(()=>[x(E(e.optionsStore.htaccessError),1)]),_:1})):B("",!0),r(d,{class:"htaccess-editor",disabled:!e.rootStore.aioseo.user.unfilteredHtml,modelValue:e.rootStore.aioseo.data.htaccess,"onUpdate:modelValue":i[0]||(i[0]=u=>e.rootStore.aioseo.data.htaccess=u),"line-numbers":"",monospace:"","preserve-whitespace":""},null,8,["disabled","modelValue"])]),_:1},8,["name"])]),_:1},8,["header-text"])])}const te=b(H,[["render",P]]);export{te as default};
