import{a as u}from"./vuex.esm-bundler.8589b2dd.js";import{B as m}from"./Editor.7fd59f57.js";import{C as _}from"./index.fd0fcee8.js";import{C as h}from"./Card.24f1a534.js";import{C as f}from"./SettingsRow.09a16661.js";import{_ as g,c as y,d as o,w as r,r as t,o as n,f as w,h as v,e as $,t as E,a as b}from"./_plugin-vue_export-helper.2d9794a3.js";import"./default-i18n.ab92175e.js";import"./_commonjsHelpers.f84db168.js";import"./Caret.42a820e0.js";import"./Tooltip.ae0bcccb.js";import"./Slide.cd756e61.js";import"./Row.5e452de4.js";const C={components:{BaseEditor:m,CoreAlert:_,CoreCard:h,CoreSettingsRow:f},data(){return{strings:{htaccessEditor:this.$t.__(".htaccess Editor",this.$td),editHtaccess:this.$t.__("Edit .htaccess",this.$td),description:this.$t.sprintf(this.$t.__("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",this.$td),"<strong>","</strong>")}}},computed:{...u(["htaccessError"])}},k={class:"aioseo-tools-htaccess-editor"},B=["innerHTML"];function H(e,a,V,x,s,A){const i=t("core-alert"),c=t("base-editor"),d=t("core-settings-row"),l=t("core-card");return n(),y("div",k,[o(l,{slug:"htaccessEditor","header-text":s.strings.htaccessEditor},{default:r(()=>[w("div",{class:"aioseo-settings-row aioseo-section-description",innerHTML:s.strings.description},null,8,B),o(d,{name:s.strings.editHtaccess,align:""},{content:r(()=>[e.htaccessError?(n(),v(i,{key:0,type:"red"},{default:r(()=>[$(E(e.htaccessError),1)]),_:1})):b("",!0),o(c,{class:"htaccess-editor",disabled:!e.$aioseo.user.unfilteredHtml,modelValue:e.$aioseo.data.htaccess,"onUpdate:modelValue":a[0]||(a[0]=p=>e.$aioseo.data.htaccess=p),"line-numbers":"",monospace:"","preserve-whitespace":""},null,8,["disabled","modelValue"])]),_:1},8,["name"])]),_:1},8,["header-text"])])}const q=g(C,[["render",H]]);export{q as default};
