import{c as _,u as f}from"./index.21ff19c6.js";import{B as h}from"./Editor.9bd1daf6.js";import{C as g}from"./Caret.cc16468c.js";import{C as y}from"./Card.ca14447d.js";import{C as w}from"./SettingsRow.e76e5dcb.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{c as x,H as r,m as n,x as o,o as c,a as C,l as S,y as k,t as E,b as B}from"./runtime-dom.esm-bundler.c4caba60.js";import"./helpers.a0b389be.js";import"./isEqual.34cebf90.js";import"./_baseIsEqual.e5574158.js";import"./_getTag.69d3a807.js";import"./_baseClone.b312b692.js";import"./_arrayEach.6af5abac.js";import"./index.f3c7a985.js";import"./Tooltip.e12834fc.js";import"./Slide.9bb3b45e.js";import"./Row.d49feaf0.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(),x("div",V,[r(m,{slug:"htaccessEditor","header-text":t.strings.htaccessEditor},{default:n(()=>[C("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(),S(l,{key:0,type:"red"},{default:n(()=>[k(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 ee=b(H,[["render",P]]);export{ee as default};
