import{m as u}from"./vuex.esm-bundler.55d3d5b3.js";import{B as m}from"./Editor.5cedc7bc.js";import{C as _}from"./index.fae5bbc8.js";import{C as h}from"./Card.0a3b54f8.js";import{C as f}from"./SettingsRow.bc3a4ca9.js";import{_ as g,r as t,c as y,d as o,w as r,o as n,a as w,b as v,y as $,t as b,f as E}from"./_plugin-vue_export-helper.a81c6319.js";import"./default-i18n.0e8bc810.js";import"./_commonjsHelpers.f84db168.js";import"./helpers.51e5fd9c.js";import"./Caret.19bf2275.js";import"./Tooltip.c4cc47a2.js";import"./Slide.4392623f.js";import"./Row.d42459be.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(()=>[$(b(e.htaccessError),1)]),_:1})):E("",!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 z=g(C,[["render",H]]);export{z as default};
