3 lines
134 KiB
JavaScript
3 lines
134 KiB
JavaScript
import{aq as g,f as u,Q as b,aD as it,R as n,ae as m,U as a,i as v,j as r,a0 as l,P as de,M as C,O as oe,ad as ie,v as c,u as W,T as ne,r as Q,b as lt,ar as Ne,at as nt,S as at}from"./vendor-vue-ui.de3ab35f.js";import{av as dt,b as le,J as Y,d as N,G as _e,D as Z,ce as Be,aK as Fe,j as Ee,$ as ct,aB as Ve,bj as ut,S as Ie,e as Te,cf as pt,aM as Se,bP as gt,au as ze,aw as fe,w as Ye,aL as xe}from"./app-core.ae890a3f.js";import{C as mt}from"./Index.294d9389.js";import{C as F}from"./Card.c7ceb11b.js";import{C as K}from"./Tooltip.ae7a1028.js";import{S as ye,u as ht,_ as qe}from"./Index.080527c4.js";import{S as pe,_ as ge}from"./Trash.d35f8063.js";import{_ as P}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as o,a as A,d as Ae}from"./vendor-other.7b559694.js";import{S as ue}from"./Plus.d276bd63.js";import{C as Ce}from"./Index.52399193.js";import{C as se}from"./SettingsRow.0c329e43.js";import{C as ae}from"./Blur.5e231db6.js";import{C as ve}from"./Index.43bf246d.js";import{_ as Pe}from"./Button.a549093d.js";import{B as te}from"./Select.32af2da8.js";import{B as je}from"./Input.8918dec2.js";import{B as _t}from"./Checkbox.79be52ca.js";import{G as We,a as Ge}from"./Row.6337df55.js";import{S as ft}from"./Upload.2667211d.js";import{C as Oe}from"./Index.ab3bcf62.js";import{C as we}from"./Table.199a0fd0.js";import{S as Ct}from"./Exclamation.fb17e636.js";import{S as Je}from"./Download.aee86410.js";import{a as vt,S as bt}from"./Pencil.405b16d2.js";import{C as Ke}from"./Tabs.b5aef6dd.js";import{u as Qe}from"./WpTable.65c7870f.js";import{u as Xe}from"./Url.bb132bc9.js";import{S as $e}from"./Close.098d4b76.js";import{S as et}from"./Information.278772ab.js";import{S as St}from"./Plus.97dee933.js";import{T as yt}from"./Slide.e6618126.js";import{m as wt}from"./vendor-lodash.8e35bd59.js";import{U as Ht,R as Lt}from"./UpsellRedirects.55e9b8ec.js";import{u as tt}from"./JsonValues.a0694556.js";import{B as ot}from"./BoxToggle.cc3b8153.js";import{C as kt}from"./PostTypeOptions.b81e5303.js";import{T as G,a as I}from"./Row.09e731e3.js";import{B as q}from"./Toggle.26ac9b1a.js";/* empty css */import"./Header.9297ac06.js";import"./ScrollAndHighlight.0a0ea3d2.js";import"./ScrollTo.f4df02aa.js";import"./LicenseKeyBar.e22888cd.js";import"./LogoGear.6afc7f21.js";import"./AnimatedNumber.27abec43.js";import"./Logo.dc3ab371.js";import"./Support.2e4d4097.js";import"./Gear.9677fa66.js";import"./Caret.a017b70a.js";import"./ProBadge.fd60f711.js";import"./External.94d285ce.js";import"./DatePicker.0e992fd3.js";import"./Calendar.b0c46a33.js";import"./vendor-date-picker.d49a8044.js";import"./Checkmark.fac3f231.js";import"./Message.2774a2ce.js";import"./PostTypes.bcb4ad24.js";import"./HighlightToggle.9305c143.js";import"./Radio.7b7e6cf4.js";const ce="aioseo-pro",Rt={setup(){return{redirectsStore:Y(),rootStore:le()}},components:{CoreCard:F,CoreTooltip:K,SvgRightArrow:ye,SvgCircleQuestionMark:pe},data(){return{strings:{relocateSite:o("Relocate Site",ce),relocateSiteTooltip:o("By enabling this option you disabled any site aliases or canonical settings. Enter a domain to redirect everything, except WordPress login and admin.",ce),descriptionClosed:o("Would you like to relocate your entire site to a new domain? Everything will be redirected except WordPress login and admin. Enabling this option will disable any site aliases or canonical settings.",ce),description:o("By enabling this option you disabled any site aliases or canonical settings. Enter a domain to redirect everything, except WordPress login and admin.",ce),oldSiteAddress:o("Your old site address",ce),newSiteAddress:o("Your new site address",ce)}}},methods:{validateUrl:function(i){return i.length===0?null:dt(i)}}},Vt={key:0},Tt={class:"aioseo-section-description"},xt={class:"urls aioseo-row"},Pt={class:"relocate-address"},Dt={class:"desc"},Ut={class:"address"},Mt={class:"right-arrow"},At={class:"relocate-address"},Et={class:"desc"};function It(i,e,d,t,s,p){const _=g("base-toggle"),h=g("svg-circle-question-mark"),w=g("core-tooltip"),H=g("svg-right-arrow"),L=g("base-input"),R=g("core-card");return u(),b(R,{slug:"fullSiteRedirectsRelocate",toggles:t.redirectsStore.options.fullSite.relocate.enabled,disabled:!t.redirectsStore.options.fullSite.relocate.enabled,class:"aioseo-relocate-site"},it({header:n(()=>[l(_,{modelValue:t.redirectsStore.options.fullSite.relocate.enabled,"onUpdate:modelValue":e[0]||(e[0]=k=>t.redirectsStore.options.fullSite.relocate.enabled=k)},null,8,["modelValue"]),r("span",null,a(s.strings.relocateSite),1),l(w,null,{tooltip:n(()=>[m(a(s.strings.relocateSiteTooltip),1)]),default:n(()=>[l(h)]),_:1})]),default:n(()=>[t.redirectsStore.options.fullSite.relocate.enabled?(u(),v("div",Vt,[r("div",Tt,a(s.strings.description),1),r("div",xt,[r("div",Pt,[r("div",Dt,a(s.strings.oldSiteAddress),1),r("div",Ut,a(t.rootStore.aioseo.urls.home),1)]),r("div",Mt,[l(H)]),r("div",At,[r("div",Et,a(s.strings.newSiteAddress),1),l(L,{type:"text",size:"medium",modelValue:t.redirectsStore.options.fullSite.relocate.newDomain,"onUpdate:modelValue":e[1]||(e[1]=k=>t.redirectsStore.options.fullSite.relocate.newDomain=k),class:de({"aioseo-error":p.validateUrl(t.redirectsStore.options.fullSite.relocate.newDomain)===!1,"aioseo-active":p.validateUrl(t.redirectsStore.options.fullSite.relocate.newDomain)===!0}),spellcheck:!1,"append-icon":"circle-check"},null,8,["modelValue","class"])])])])):C("",!0)]),_:2},[t.redirectsStore.options.fullSite.relocate.enabled?void 0:{name:"disabled",fn:n(()=>[m(a(s.strings.descriptionClosed),1)]),key:"0"}]),1032,["toggles","disabled"])}const Ot=P(Rt,[["render",It]]),$="aioseo-pro",Bt={aliasedDomain:null},Ft={setup(){return{redirectsStore:Y(),rootStore:le()}},components:{CoreCard:F,CoreTooltip:K,SvgCirclePlus:ue,SvgRightArrow:ye,SvgTrash:ge},data(){return{strings:{siteAliases:o("Site Aliases",$),descriptionClosed:o("Site aliases are disabled because you have relocated your site to another domain.",$),description:o("A site alias is another domain that you want to be redirected to this site. For example, an old domain, or a subdomain. This will redirect all URLs, including WordPress login and admin. You will need to configure your system (DNS and server) to pass requests for these domains to this WordPress install.",$),aliasedDomain:o("Aliased Domain",$),alias:o("Alias",$),addNew:o("Add Aliased Domain",$),delete:o("Delete",$),addAliasesMessage:o("Add an alias redirect by clicking in 'Add New'.",$),domainPlaceholder:o("Enter a new domain name, e.g. “newdomain.com”",$)},validRelocationURL:null}},computed:{parsedAliases(){return this.redirectsStore.options.fullSite.aliases.map(i=>i?JSON.parse(i):{})}},methods:{removeRow(i){this.redirectsStore.options.fullSite.aliases.splice(i,1),this.redirectsStore.options.fullSite.aliases.length===0&&this.addRow()},addRow(){this.redirectsStore.options.fullSite.aliases.push(JSON.stringify({...Bt}))},updatePage(i,e,d){const t=JSON.parse(this.redirectsStore.options.fullSite.aliases[d]);t[i]=e,this.redirectsStore.options.fullSite.aliases[d]=JSON.stringify(t)}},mounted(){this.redirectsStore.options.fullSite.aliases.length===0&&this.addRow()}},zt={class:"aioseo-section-description"},Zt={class:"redirects-options-table",cellspacing:"0",cellpadding:"0","aria-label":"Site Aliases"},Nt={key:0,class:"even"},Yt={colspan:"4"},qt={class:"aliased-domain"},jt={class:"arrow-col"},Wt={class:"actions"},Gt={colspan:"4"};function Jt(i,e,d,t,s,p){const _=g("base-input"),h=g("svg-right-arrow"),w=g("svg-trash"),H=g("core-tooltip"),L=g("svg-circle-plus"),R=g("base-button"),k=g("core-card");return u(),b(k,{slug:"fullSiteRedirectsAliases",disabled:t.redirectsStore.options.fullSite.relocate.enabled},{header:n(()=>[r("span",null,a(s.strings.siteAliases),1)]),disabled:n(()=>[m(a(s.strings.descriptionClosed),1)]),default:n(()=>[r("div",zt,a(s.strings.description),1),r("table",Zt,[r("thead",null,[r("tr",null,[r("td",null,a(s.strings.aliasedDomain),1),e[0]||(e[0]=r("td",null,null,-1)),r("td",null,a(s.strings.alias),1),e[1]||(e[1]=r("td",null,null,-1))])]),r("tbody",null,[p.parsedAliases.length?C("",!0):(u(),v("tr",Nt,[r("td",Yt,a(s.strings.addAliasesMessage),1)])),(u(!0),v(oe,null,ie(p.parsedAliases,(f,S)=>(u(),v("tr",{class:de({even:S%2===0}),key:S},[r("td",qt,[l(_,{size:"medium",modelValue:f.aliasedDomain,"onUpdate:modelValue":[y=>f.aliasedDomain=y,y=>p.updatePage("aliasedDomain",y,S)],placeholder:s.strings.domainPlaceholder},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),r("td",jt,[r("div",null,[l(h)])]),r("td",null,a(t.rootStore.aioseo.urls.home),1),r("td",Wt,[l(H,{type:"action"},{tooltip:n(()=>[m(a(s.strings.delete),1)]),default:n(()=>[l(w,{onClick:y=>p.removeRow(S)},null,8,["onClick"])]),_:2},1024)])],2))),128))]),r("tfoot",null,[r("tr",null,[r("td",Gt,[l(R,{size:"small-table",type:"black",onClick:p.addRow},{default:n(()=>[l(L),m(" "+a(s.strings.addNew),1)]),_:1},8,["onClick"])])])])])]),_:1},8,["disabled"])}const Kt=P(Ft,[["render",Jt]]),J="aioseo-pro",Qt={setup(){return{redirectsStore:Y(),rootStore:le()}},components:{CoreAlert:Ce,CoreCard:F,CoreSettingsRow:se,SvgRightArrow:ye},data(){return{strings:{canonicalSettings:o("Canonical Settings",J),descriptionClosed:o("Canonical Settings are disabled because you have relocated your site to another domain.",J),currentSiteAddress:o("Your current site address",J),newSiteAddress:o("Your new site address",J),httpToHttps:o("Redirect from HTTP to HTTPS",J),httpToHttpsDesc:o("Force a redirect from HTTP to HTTPS",J),domainModification:o("Domain Modification",J),configureSiteUrl:A(o("You'll need to update your Site Address URL to match your new site address. %1$sUpdate Site Address URL%2$s.",J),`<a href="${this.rootStore.aioseo.urls.admin.generalSettings}">`,"</a>"),httpsAlert:A(o("Ensure your site's HTTPS configuration is working correctly before enabling this option. %1$s",J),"<strong>"+N.getDocLink(_e.learnMore,"redirectCanonicalHttps",!0)+"</strong>")},domainModificationOptions:[{label:o("Leave domain as-is",J),value:""},{label:o("Add www to domain",J),value:"add-www"},{label:o("Remove www from domain",J),value:"remove-www"}]}},computed:{canonicalSiteAddress(){let i=this.rootStore.aioseo.urls.home;switch(this.redirectsStore.options.fullSite.canonical.httpToHttps&&(i=i.replace(/^http:/,"https:")),this.redirectsStore.options.fullSite.canonical.preferredDomain){case"add-www":i=i.match(/:\/\/www./)?i:i.replace(/:\/\//,"://www.");break;case"remove-www":i=i.replace(/:\/\/www./,"://");break}return i},preferredDomainValue(){let i=this.domainModificationOptions.filter(e=>e.value===this.redirectsStore.options.fullSite.canonical.preferredDomain);return i||(i=this.domainModificationOptions.filter(e=>e.value==="")),i}}},Xt={key:0},$t={class:"urls aioseo-row"},eo={class:"preview"},to={class:"canonical-address"},oo={class:"desc"},so={class:"address"},ro={class:"right-arrow"},io={class:"canonical-address"},lo={class:"desc"},no={class:"address"},ao={key:0},co={class:"settings-content__col"},uo={class:"settings-content__col"};function po(i,e,d,t,s,p){const _=g("base-toggle"),h=g("svg-right-arrow"),w=g("core-alert"),H=g("core-settings-row"),L=g("base-select"),R=g("core-card");return u(),b(R,{slug:"fullSiteRedirectsCanonical",toggles:t.redirectsStore.options.fullSite.canonical.enabled,disabled:t.redirectsStore.options.fullSite.relocate.enabled},{header:n(()=>[t.redirectsStore.options.fullSite.relocate.enabled?C("",!0):(u(),b(_,{key:0,modelValue:t.redirectsStore.options.fullSite.canonical.enabled,"onUpdate:modelValue":e[0]||(e[0]=k=>t.redirectsStore.options.fullSite.canonical.enabled=k)},null,8,["modelValue"])),r("span",null,a(s.strings.canonicalSettings),1)]),disabled:n(()=>[m(a(s.strings.descriptionClosed),1)]),default:n(()=>[t.redirectsStore.options.fullSite.canonical.enabled?(u(),v("div",Xt,[r("div",$t,[r("div",eo,[r("div",to,[r("div",oo,a(s.strings.currentSiteAddress),1),r("div",so,a(t.rootStore.aioseo.urls.home),1)]),r("div",ro,[l(h)]),r("div",io,[r("div",lo,a(s.strings.newSiteAddress),1),r("div",no,a(p.canonicalSiteAddress),1)])]),p.canonicalSiteAddress!==t.rootStore.aioseo.urls.home?(u(),v("div",ao,[l(w,{type:"red",innerHTML:s.strings.configureSiteUrl},null,8,["innerHTML"])])):C("",!0)]),l(H,{name:s.strings.httpToHttps,class:"http-to-https"},{content:n(()=>[l(_,{modelValue:t.redirectsStore.options.fullSite.canonical.httpToHttps,"onUpdate:modelValue":e[1]||(e[1]=k=>t.redirectsStore.options.fullSite.canonical.httpToHttps=k)},null,8,["modelValue"]),m(" "+a(s.strings.httpToHttpsDesc)+" ",1),r("div",co,[t.redirectsStore.options.fullSite.canonical.httpToHttps?(u(),b(w,{key:0,type:"yellow",innerHTML:s.strings.httpsAlert},null,8,["innerHTML"])):C("",!0)])]),_:1},8,["name"]),l(H,{name:s.strings.domainModification,class:"domain-modification",align:""},{content:n(()=>[r("div",uo,[l(L,{size:"medium",options:s.domainModificationOptions,modelValue:p.preferredDomainValue,"onUpdate:modelValue":e[2]||(e[2]=k=>t.redirectsStore.options.fullSite.canonical.preferredDomain=k.value)},null,8,["options","modelValue"])])]),_:1},8,["name"])])):C("",!0)]),_:1},8,["toggles","disabled"])}const go=P(Qt,[["render",po],["__scopeId","data-v-b5dd224f"]]),De="aioseo-pro",mo={setup(){return{redirectsStore:Y(),rootStore:le()}},components:{CoreAlert:Ce},data(){return{strings:{nginxReload:A(o("Your redirect settings have been updated. In order for them to work properly you may need to reload your %1$s configuration. %2$s",De),this.detectedServer(),N.getDocLink(_e.learnMore,"redirectServerConfigReload",!0)),dontKnow:o("If you don't know how to do that please revert your Redirect Method to PHP.",De),checkAgain:o("Check Again",De)}}},methods:{maybeTest(){this.redirectsStore.testServerRedirects()},detectedServer(){switch(this.rootStore.aioseo.data.server){case"apache":return"Apache";case"nginx":return"NGINX";case"litespeed":return"LiteSpeed";default:return""}}},mounted(){this.maybeTest(),window.aioseoBus.$on("changes-saved",this.maybeTest),window.aioseoBus.$on("added-redirect",this.maybeTest),window.aioseoBus.$on("redirect-updated",this.maybeTest)},beforeUnmount(){window.aioseoBus.$off("changes-saved",this.maybeTest),window.aioseoBus.$off("added-redirect",this.maybeTest),window.aioseoBus.$off("redirect-updated",this.maybeTest)}},ho=["innerHTML"],_o=["innerHTML"];function fo(i,e,d,t,s,p){const _=g("base-button"),h=g("core-alert");return t.redirectsStore.server.redirectTest.failed&&t.redirectsStore.options.main.method==="server"?(u(),b(h,{key:0,size:"small",type:"yellow"},{default:n(()=>[r("div",{innerHTML:s.strings.nginxReload},null,8,ho),r("div",{innerHTML:s.strings.dontKnow},null,8,_o),l(_,{type:"blue",size:"small",onClick:e[0]||(e[0]=w=>t.redirectsStore.testServerRedirects()),loading:t.redirectsStore.server.redirectTest.testing},{default:n(()=>[m(a(s.strings.checkAgain),1)]),_:1},8,["loading"])]),_:1})):C("",!0)}const me=P(mo,[["render",fo],["__scopeId","data-v-af1db2ac"]]),Co={components:{RelocateSite:Ot,SiteAliases:Kt,CanonicalSettings:go,ServerConfigReloadWarning:me}};function vo(i,e,d,t,s,p){const _=g("server-config-reload-warning"),h=g("relocate-site"),w=g("site-aliases"),H=g("canonical-settings");return u(),v("div",null,[l(_),l(h),l(w),l(H)])}const bo=P(Co,[["render",vo]]),So={class:"aioseo-fullsite-redirectsupsell"},yo={class:"aioseo-section-description"},wo={class:"redirects-options-table",cellspacing:"0",cellpadding:"0","aria-label":"Site Aliases"},Ho={class:"even"},Lo={colspan:"4"},ko={class:"aliased-domain"},Ro={class:"arrow-col"},Vo={class:"actions"},To={colspan:"4"},xo={__name:"UpsellFullSiteRedirect",setup(i){const e="aioseo-pro",d=le(),t=W(()=>({relocateSite:o("Relocate Site",e),relocateSiteTooltip:o("By enabling this option you disabled any site aliases or canonical settings. Enter a domain to redirect everything, except WordPress login and admin.",e),relocateDescription:o("Would you like to relocate your entire site to a new domain? Everything will be redirected except WordPress login and admin. Enabling this option will disable any site aliases or canonical settings.",e),siteAliases:o("Site Aliases",e),siteAliasesDescription:o("A site alias is another domain that you want to be redirected to this site. For example, an old domain, or a subdomain. This will redirect all URLs, including WordPress login and admin. You will need to configure your system (DNS and server) to pass requests for these domains to this WordPress install.",e),aliasedDomain:o("Aliased Domain",e),alias:o("Alias",e),addNew:o("Add Aliased Domain",e),delete:o("Delete",e),addAliasesMessage:o("Add an alias redirect by clicking in 'Add New'.",e),domainPlaceholder:o("Enter a new domain name, e.g. “newdomain.com”",e),canonicalSettings:o("Canonical Settings",e),canonicalSettingsDescription:o("Canonical Settings are disabled because you have relocated your site to another domain.",e),ctaButtonText:o("Unlock Full Site Redirect",e),ctaHeader:o("Full Site Redirect is a PRO Feature",e),ctaDescription:o("Easily redirect your entire site to a new domain. This will redirect all URLs, including WordPress login and admin. You will need to configure your system (DNS and server) to pass requests for these domains to this WordPress install.",e),ctaPlans:o("Pro, Elite",e)}));return(s,p)=>{const _=g("base-toggle"),h=g("base-input"),w=g("base-button");return u(),v("div",So,[l(c(ae),null,{default:n(()=>[l(c(F),{slug:"fullSiteRedirectsRelocate",toggles:!1,disabled:!0,class:"aioseo-relocate-site"},{header:n(()=>[l(_,{disabled:!0}),r("span",null,a(t.value.relocateSite),1),l(c(K),null,{tooltip:n(()=>[m(a(t.value.relocateSiteTooltip),1)]),default:n(()=>[l(c(pe))]),_:1})]),disabled:n(()=>[m(a(t.value.relocateDescription),1)]),_:1})]),_:1}),l(c(ae),null,{default:n(()=>[l(c(F),{slug:"fullSiteRedirectsAliases"},{header:n(()=>[r("span",null,a(t.value.siteAliases),1)]),default:n(()=>[r("div",yo,a(t.value.siteAliasesDescription),1),r("table",wo,[r("thead",null,[r("tr",null,[r("td",null,a(t.value.aliasedDomain),1),p[0]||(p[0]=r("td",null,null,-1)),r("td",null,a(t.value.alias),1),p[1]||(p[1]=r("td",null,null,-1))])]),r("tbody",null,[r("tr",Ho,[r("td",Lo,a(t.value.addAliasesMessage),1)]),r("tr",null,[r("td",ko,[l(h,{size:"medium",placeholder:t.value.domainPlaceholder},null,8,["placeholder"])]),r("td",Ro,[r("div",null,[l(c(ye))])]),r("td",null,a(c(d).aioseo.urls.home),1),r("td",Vo,[l(c(K),{type:"action"},{tooltip:n(()=>[m(a(t.value.delete),1)]),default:n(()=>[l(c(ge))]),_:1})])])]),r("tfoot",null,[r("tr",null,[r("td",To,[l(w,{size:"small-table",type:"black"},{default:n(()=>[l(c(ue)),m(" "+a(t.value.addNew),1)]),_:1})])])])])]),_:1})]),_:1}),l(c(ae),null,{default:n(()=>[l(c(F),{slug:"fullSiteRedirectsCanonical",disabled:!0},{header:n(()=>[l(_,{disabled:!0}),r("span",null,a(t.value.canonicalSettings),1)]),disabled:n(()=>[m(a(t.value.canonicalSettingsDescription),1)]),_:1})]),_:1}),l(c(ve),{"cta-link":c(N).getPricingUrl("redirects","redirects","full-site-redirect","pricing"),"button-text":t.value.ctaButtonText,"align-top":"","learn-more-link":c(N).getUpsellUrl("redirects","full-site-redirect","pricing")},{"header-text":n(()=>[m(a(t.value.ctaHeader),1)]),description:n(()=>[m(a(t.value.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link"])])}}},Po={class:"aioseo-full-site-redirects"},Do={__name:"FullSiteRedirect",setup(i){return(e,d)=>(u(),v("div",Po,[c(Z).hasCoreFeature("redirects","full-site-redirect")?(u(),b(c(bo),{key:1})):(u(),b(xo,{key:0}))]))}},z="aioseo-pro",Uo={location:"site",header:null,value:null},Mo={setup(){return{redirectsStore:Y()}},components:{CoreCard:F,CoreTooltip:K,SvgCirclePlus:ue,SvgTrash:ge},data(){return{strings:{httpHeaders:o("HTTP Headers",z),description:o("Add headers to all responses (or just redirects) in order to improve security, performance, caching, privacy or more. The built-in security and CORS presets help you to quickly protect your site and its users from common web vulnerabilities with just a few clicks.",z),location:o("Location",z),header:o("Header",z),value:o("Value",z),delete:o("Delete",z),addHeader:o("Add Header",z),addSecurityPresets:o("Add Security Presets",z),addCorsPresets:o("Add CORS Presets",z),addHeadersMessage:o("Add headers by clicking in the options below.",z),headerPlaceholder:o("Select a header",z)}}},computed:{parsedHeaders(){return this.redirectsStore.options.fullSite.httpHeaders.map(i=>i?JSON.parse(i):{})},locationOptions(){return[{label:o("Site",z),value:"site"},{label:o("Redirect",z),value:"redirect"}]},headerOptions(){const i=Be;return i.find(e=>e.groupLabel===o("Custom",z))||i.push({groupLabel:o("Custom",z),options:[{label:o("Custom",z),value:"custom"}]}),i}},methods:{removeRow(i){this.redirectsStore.options.fullSite.httpHeaders.splice(i,1),this.redirectsStore.options.fullSite.httpHeaders.length===0&&this.addRow()},addRow(i,e=!1){i||(i=Uo),i=JSON.stringify({...i}),(!e||e&&this.redirectsStore.options.fullSite.httpHeaders.filter(d=>d===i).length===0)&&this.redirectsStore.options.fullSite.httpHeaders.push(i)},addRows(i,e=!1){i.forEach(d=>this.addRow(d,e))},updateHeader(i,e,d){const t=JSON.parse(this.redirectsStore.options.fullSite.httpHeaders[d]);e=typeof e.value<"u"?e.value:e,e=typeof e=="object"&&e.length?e.map(s=>s.value):e,t[i]=e,i==="header"&&(t.value=""),this.redirectsStore.options.fullSite.httpHeaders[d]=JSON.stringify(t)},getHeaderValue(i,e,d=!1){let s=JSON.parse(this.redirectsStore.options.fullSite.httpHeaders[e])[i],p=null;if(d)return s;switch(i){case"location":s=this.locationOptions.find(_=>s===_.value),s||(s=this.locationOptions.find(_=>_.value==="site"));break;case"header":Be.forEach(_=>{const h=_.options.find(w=>s===w.value);h&&(s=h)});break;case"value":p=this.getHeaderValue("header",e),s&&p&&typeof p?.options<"u"&&(typeof s=="object"?s=s.map(_=>p.options.find(h=>_===h.value)).filter(_=>!!_):s=p.options.find(_=>s===_.value));break}return s},getHeaderOptions(i){const e=this.getHeaderValue("header",i);return e&&typeof e.options<"u"?e.options:[]},getHeaderMultiple(i){const e=this.getHeaderValue("header",i);return e&&typeof e.multiple<"u"?e.multiple:!1},isHeaderValueCustom(i){return typeof this.getHeaderValue("value",i,!0)=="string"&&this.getHeaderValue("value",i,!0).match(/\[[a-zA-Z0-9_-]+\]/)},addSecurityPresets(){this.addRows([{location:"site",header:"X-Frame-Options",value:"deny"},{location:"site",header:"X-XSS-Protection",value:"1; mode=block"},{location:"site",header:"X-Content-Type-Options",value:"nosniff"},{location:"site",header:"Content-Security-Policy",value:"default-src 'self'; script-src 'unsafe-inline' 'unsafe-eval' http:; style-src 'unsafe-inline' http:; img-src http: data:; font-src http: data:; sandbox allow-forms allow-scripts"},{location:"site",header:"Referrer-Policy",value:"no-referrer-when-downgrade"}],!0)},addCorsPresets(){this.addRows([{location:"site",header:"Access-Control-Allow-Origin",value:"*"},{location:"site",header:"Access-Control-Allow-Credentials",value:"true"},{location:"site",header:"Access-Control-Allow-Methods",value:["GET","POST","OPTIONS"]},{location:"site",header:"Access-Control-Allow-Headers",value:"origin"},{location:"site",header:"Referrer-Policy",value:"no-referrer-when-downgrade"},{location:"site",header:"P3P",value:'CP="CAO PSA OUR"'}],!0)}},mounted(){this.redirectsStore.options.fullSite.httpHeaders.length===0&&this.addRow()}},Ao={class:"aioseo-section-description"},Eo={class:"redirects-options-table",cellspacing:"0",cellpadding:"0","aria-label":"HTTP Headers"},Io={key:0,class:"even"},Oo={colspan:"4"},Bo={class:"location"},Fo={class:"httpHeader"},zo={class:"actions"},Zo={colspan:"4"};function No(i,e,d,t,s,p){const _=g("base-select"),h=g("base-input"),w=g("svg-trash"),H=g("core-tooltip"),L=g("svg-circle-plus"),R=g("base-button"),k=g("core-card");return u(),b(k,{slug:"fullSiteRedirectsHttpHeaders"},{header:n(()=>[r("span",null,a(s.strings.httpHeaders),1)]),default:n(()=>[r("div",Ao,a(s.strings.description),1),r("table",Eo,[r("thead",null,[r("tr",null,[r("td",null,a(s.strings.location),1),r("td",null,a(s.strings.header),1),r("td",null,a(s.strings.value),1),e[1]||(e[1]=r("td",null,null,-1))])]),r("tbody",null,[p.parsedHeaders.length?C("",!0):(u(),v("tr",Io,[r("td",Oo,a(s.strings.addHeadersMessage),1)])),(u(!0),v(oe,null,ie(p.parsedHeaders,(f,S)=>(u(),v("tr",{class:de({even:S%2===0}),key:S},[r("td",Bo,[l(_,{size:"medium",options:p.locationOptions,modelValue:p.getHeaderValue("location",S),"onUpdate:modelValue":y=>p.updateHeader("location",y,S)},null,8,["options","modelValue","onUpdate:modelValue"])]),r("td",Fo,[p.getHeaderValue("header",S,!0)!=="custom"?(u(),b(_,{key:0,size:"medium",filterable:!0,options:p.headerOptions,"group-label":"groupLabel","group-values":"options",modelValue:p.getHeaderValue("header",S),"onUpdate:modelValue":y=>p.updateHeader("header",y,S),placeholder:s.strings.headerPlaceholder},null,8,["options","modelValue","onUpdate:modelValue","placeholder"])):C("",!0),p.getHeaderValue("header",S,!0)==="custom"?(u(),b(h,{key:1,size:"medium",modelValue:p.getHeaderValue("customHeader",S),"onUpdate:modelValue":y=>p.updateHeader("customHeader",y,S),"append-icon":"circle-close",onAppendIconClick:y=>p.updateHeader("header","",S)},null,8,["modelValue","onUpdate:modelValue","onAppendIconClick"])):C("",!0)]),r("td",{class:de(["value",{custom:p.isHeaderValueCustom(S)}])},[p.getHeaderOptions(S).length?C("",!0):(u(),b(h,{key:0,size:"medium",modelValue:p.getHeaderValue("value",S),"onUpdate:modelValue":y=>p.updateHeader("value",y,S)},null,8,["modelValue","onUpdate:modelValue"])),p.getHeaderOptions(S).length?(u(),b(_,{key:1,size:"medium",filterable:!0,options:p.getHeaderOptions(S),modelValue:p.getHeaderValue("value",S),"onUpdate:modelValue":y=>p.updateHeader("value",y,S),multiple:p.getHeaderMultiple(S)},null,8,["options","modelValue","onUpdate:modelValue","multiple"])):C("",!0),p.isHeaderValueCustom(S)?(u(),b(h,{key:2,size:"medium",modelValue:p.getHeaderValue("customValue",S),"onUpdate:modelValue":y=>p.updateHeader("customValue",y,S)},null,8,["modelValue","onUpdate:modelValue"])):C("",!0)],2),r("td",zo,[l(H,{type:"action"},{tooltip:n(()=>[m(a(s.strings.delete),1)]),default:n(()=>[l(w,{onClick:y=>p.removeRow(S)},null,8,["onClick"])]),_:2},1024)])],2))),128))]),r("tfoot",null,[r("tr",null,[r("td",Zo,[l(R,{size:"small-table",type:"black",onClick:e[0]||(e[0]=f=>p.addRow(null))},{default:n(()=>[l(L),m(" "+a(s.strings.addHeader),1)]),_:1}),l(R,{size:"small-table",type:"gray",onClick:p.addSecurityPresets},{default:n(()=>[l(L),m(" "+a(s.strings.addSecurityPresets),1)]),_:1},8,["onClick"]),l(R,{size:"small-table",type:"gray",onClick:p.addCorsPresets},{default:n(()=>[l(L),m(" "+a(s.strings.addCorsPresets),1)]),_:1},8,["onClick"])])])])])]),_:1})}const Yo=P(Mo,[["render",No],["__scopeId","data-v-08c5543e"]]),qo={class:"aioseo-redirects-http-headers upsell"},jo={class:"aioseo-section-description"},Wo={class:"redirects-options-table",cellspacing:"0",cellpadding:"0","aria-label":"HTTP Headers"},Go={class:"even"},Jo={class:"location"},Ko={class:"httpHeader"},Qo={class:"value"},Xo={class:"actions"},$o={colspan:"4"},es={__name:"UpsellHttpHeaders",setup(i){const e="aioseo-pro",d=W(()=>({ctaButtonText:o("Unlock HTTP Headers",e),ctaHeader:o("HTTP Headers is a PRO Feature",e),ctaDescription:o("Easily add custom HTTP headers to your site. The built-in security and CORS presets help you to quickly protect your site from common web vulnerabilities.",e),ctaPlans:o("Plus, Pro, Elite",e),httpHeaders:o("HTTP Headers",e),description:o("Add headers to all responses (or just redirects) in order to improve security, performance, caching, privacy or more. The built-in security and CORS presets help you to quickly protect your site and its users from common web vulnerabilities with just a few clicks.",e),location:o("Location",e),header:o("Header",e),value:o("Value",e),delete:o("Delete",e),addHeader:o("Add Header",e),addSecurityPresets:o("Add Security Presets",e),addCorsPresets:o("Add CORS Presets",e),headerPlaceholder:o("Select a header",e),locationPlaceholder:o("Select a location",e),customHttpHeaders:o("Custom HTTP Headers",e),siteWideOrRedirects:o("Site-Wide or Redirects",e),builtinPresets:o("Built-in Presets",e),noCoding:o("No Coding Required",e)}));return(t,s)=>(u(),v("div",qo,[l(c(ae),null,{default:n(()=>[l(c(F),{slug:"fullSiteRedirectsHttpHeaders"},{header:n(()=>[r("span",null,a(d.value.httpHeaders),1)]),default:n(()=>[r("div",jo,a(d.value.description),1),r("table",Wo,[r("thead",null,[r("tr",null,[r("td",null,a(d.value.location),1),r("td",null,a(d.value.header),1),r("td",null,a(d.value.value),1),s[0]||(s[0]=r("td",null,null,-1))])]),r("tbody",null,[r("tr",Go,[r("td",Jo,[l(c(te),{size:"medium",options:[],placeholder:d.value.locationPlaceholder},null,8,["placeholder"])]),r("td",Ko,[l(c(te),{size:"medium",filterable:!0,options:[],"group-label":"groupLabel","group-values":"options",placeholder:d.value.headerPlaceholder},null,8,["placeholder"])]),r("td",Qo,[l(c(je),{size:"medium"})]),r("td",Xo,[l(c(K),{type:"action"},{tooltip:n(()=>[m(a(d.value.delete),1)]),default:n(()=>[l(c(ge),{onClick:()=>{}})]),_:1})])])]),r("tfoot",null,[r("tr",null,[r("td",$o,[l(c(Pe),{size:"small-table",type:"black",onClick:()=>{}},{default:n(()=>[l(c(ue)),m(" "+a(d.value.addHeader),1)]),_:1}),l(c(Pe),{size:"small-table",type:"gray",onClick:()=>{}},{default:n(()=>[l(c(ue)),m(" "+a(d.value.addSecurityPresets),1)]),_:1}),l(c(Pe),{size:"small-table",type:"gray",onClick:()=>{}},{default:n(()=>[l(c(ue)),m(" "+a(d.value.addCorsPresets),1)]),_:1})])])])])]),_:1})]),_:1}),l(c(ve),{"cta-link":c(N).getPricingUrl("redirects","redirects","http-headers","pricing"),"button-text":d.value.ctaButtonText,"align-top":"","learn-more-link":c(N).getUpsellUrl("redirects","http-headers","pricing"),"feature-list":[d.value.customHttpHeaders,d.value.siteWideOrRedirects,d.value.builtinPresets,d.value.noCoding]},{"header-text":n(()=>[m(a(d.value.ctaHeader),1)]),description:n(()=>[m(a(d.value.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list"])]))}},ts=P(es,[["__scopeId","data-v-77d3b506"]]),os={class:"aioseo-redirects-http-headers"},ss={__name:"HttpHeaders",setup(i){return(e,d)=>(u(),v("div",os,[c(Z).hasCoreFeature("redirects","http-headers")?(u(),b(c(Yo),{key:1})):(u(),b(c(ts),{key:0}))]))}},rs=P(ss,[["__scopeId","data-v-b84f7c9c"]]),E="aioseo-pro",is={setup(){return{license:Z,licenseStore:Ee(),redirectsStore:Y(),rootStore:le(),REDIRECT_GROUPS:Fe}},components:{BaseCheckbox:_t,CoreCard:F,GridColumn:Ge,GridRow:We,SvgUpload:ft},data(){return{exportingRedirectLogs:!1,exporting404Logs:!1,exportOptions:{},postOptions:{},loading:!1,exportType:{label:o("Complete Data (JSON)",E),value:"json"},exportTypes:[{label:o("Complete Data (JSON)",E),value:"json"},{label:o("Apache Redirects (.htaccess)",E),value:"htaccess"},{label:o("Nginx Redirects (.nginx)",E),value:"nginx"}],strings:{exportRedirects:o("Export Redirects",E),exportDescription:o("Export to JSON, .htaccess or .nginx. The JSON format contains full information (and can be re-imported), while the other formats only contain partial information relevant to that format.",E),allRedirects:o("Export All Redirects",E),logs:o("Logs",E),exportRedirectLogs:o("Export Redirect Logs",E),export404Logs:o("Export 404 Logs",E)}}},computed:{settings(){const i=[{value:"webmasterTools",label:o("Webmaster Tools",E)},{value:"rssContent",label:o("RSS Content",E)},{value:"advanced",label:o("Advanced",E)},{value:"searchAppearance",label:o("Search Appearance",E)},{value:"social",label:o("Social Networks",E)},{value:"sitemap",label:o("Sitemaps",E)},{value:"tools",label:o("Tools",E)}];return this.rootStore.isPro&&i.push({value:"accessControl",label:o("Access Control",E)}),!this.licenseStore.isUnlicensed&&this.showImageSeoReset&&i.push({value:"image",label:o("Image SEO",E)}),!this.licenseStore.isUnlicensed&&this.showLocalBusinessReset&&i.push({value:"localBusiness",label:o("Local Business SEO",E)}),!this.licenseStore.isUnlicensed&&this.showLinkAssistantReset&&i.push({value:"linkAssistant",label:o("Link Assistant",E)}),i},canExport(){const i=[];return Object.keys(this.exportOptions).forEach(e=>{i.push(this.exportOptions[e])}),Object.keys(this.postOptions).forEach(e=>{i.push(this.postOptions[e])}),i.some(e=>e)}},methods:{processExportRedirects(){const i=[];this.exportOptions.all?Fe.filter(d=>d.value!=="all").forEach(d=>{i.push(d.value)}):Object.keys(this.exportOptions).forEach(d=>{this.exportOptions[d]&&i.push(d)});const e=this.exportType.value;this.loading=!0,this.redirectsStore.exportRedirects({groups:i,type:e}).then(d=>{let t=new Blob([d.body.redirects]);e==="json"&&(t=new Blob([JSON.stringify(d.body.redirects)],{type:"application/json"})),this.loading=!1,this.exportOptions={},this.postOptions={};const s=document.createElement("a");s.href=URL.createObjectURL(t),s.download=`aioseo-export-redirects-${Ae().format("YYYY-MM-DD")}.${e}`,s.click(),URL.revokeObjectURL(s.href)})},processExportLogs(i){this["exporting"+i.charAt(0).toUpperCase()+i.slice(1)+"Logs"]=!0,this.redirectsStore.exportLogs(i).then(e=>{this["exporting"+i.charAt(0).toUpperCase()+i.slice(1)+"Logs"]=!1;const d=new Blob([e.body.redirects]),t=document.createElement("a");t.href=URL.createObjectURL(d),t.download=`aioseo-export-redirects-log-${i}-${Ae().format("YYYY-MM-DD")}.log`,t.click(),URL.revokeObjectURL(t.href)})}}},ls={class:"export-redirects aioseo-settings-row"},ns={class:"export-description"},as={key:0,class:"export-logs-wrapper"},ds={class:"export-logs"};function cs(i,e,d,t,s,p){const _=g("svg-upload"),h=g("base-checkbox"),w=g("grid-column"),H=g("grid-row"),L=g("base-select"),R=g("base-button"),k=g("core-card");return u(),b(k,{class:"aioseo-export-redirects",slug:"exportRedirects","no-slide:toggles":"false","no-slide":"","header-text":s.strings.exportRedirects},{"header-icon":n(()=>[l(_)]),default:n(()=>[r("div",ls,[r("div",ns,a(s.strings.exportDescription),1),l(H,null,{default:n(()=>[l(w,{class:"export-logs"},{default:n(()=>[l(h,{size:"medium",modelValue:s.exportOptions.all,"onUpdate:modelValue":e[0]||(e[0]=f=>s.exportOptions.all=f)},{default:n(()=>[m(a(s.strings.allRedirects),1)]),_:1},8,["modelValue"])]),_:1}),(u(!0),v(oe,null,ie(t.REDIRECT_GROUPS,(f,S)=>(u(),b(w,{key:S,sm:"12"},{default:n(()=>[s.exportOptions.all?C("",!0):(u(),b(h,{key:0,size:"medium",modelValue:s.exportOptions[f.value],"onUpdate:modelValue":y=>s.exportOptions[f.value]=y},{default:n(()=>[m(a(f.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])),f.value!=="all"&&s.exportOptions.all?(u(),b(h,{key:1,size:"medium",modelValue:!0,disabled:""},{default:n(()=>[m(a(f.label),1)]),_:2},1024)):C("",!0)]),_:2},1024))),128))]),_:1}),l(L,{size:"medium",options:s.exportTypes,modelValue:s.exportType,"onUpdate:modelValue":e[1]||(e[1]=f=>s.exportType=f)},null,8,["options","modelValue"]),l(R,{type:"blue",size:"medium",class:"import",onClick:p.processExportRedirects,disabled:!p.canExport,loading:s.loading},{default:n(()=>[m(a(s.strings.exportRedirects),1)]),_:1},8,["onClick","disabled","loading"])]),t.license.hasCoreFeature("redirects","logs")?(u(),v("div",as,[r("div",ds,a(s.strings.logs),1),t.redirectsStore.options.logs.redirects.enabled&&t.redirectsStore.options.main.method!=="server"?(u(),b(R,{key:0,type:"gray",size:"medium",loading:s.exportingRedirectLogs,onClick:e[2]||(e[2]=f=>p.processExportLogs("redirect"))},{default:n(()=>[m(a(s.strings.exportRedirectLogs),1)]),_:1},8,["loading"])):C("",!0),t.redirectsStore.options.logs.log404.enabled?(u(),b(R,{key:1,type:"gray",size:"medium",loading:s.exporting404Logs,onClick:e[3]||(e[3]=f=>p.processExportLogs("404"))},{default:n(()=>[m(a(s.strings.export404Logs),1)]),_:1},8,["loading"])):C("",!0)])):C("",!0)]),_:1},8,["header-text"])}const us=P(is,[["render",cs]]),ps=""+window.__aioseoDynamicImportPreload__("images/import-from-csv.28fa42d3.png"),D="aioseo-pro",Ue={redirection:{url:{type:Object,default(){return{url:null,regex:null,ignoreSlash:null,ignoreCase:null}}},targetUrl:null,type:null,comment:null}},gs={setup(){const{validateRedirect:i}=ht();return{redirectsStore:Y(),rootStore:le(),validateRedirect:i}},components:{CoreAlert:Ce,CoreCard:F,CoreModal:Oe,CoreWpTable:we,SvgCircleExclamation:Ct,SvgDownload:Je,SvgCircleClose:bt,SvgCircleCheck:vt},data(){return{csvFileImage:ps,redirection:Ve(Ue.redirection),inputFile:null,filename:null,file:null,uploadError:!1,uploadSuccess:!1,loading:!1,errors:[],showImportDescription:!1,showErrorModal:!1,importedRows:0,strings:{imgAltText:o("CSV example file",D),importingCsv:o("Importing a CSV? To ensure you have the right columns,",D),clickHere:o("click here",D),importDescription:A(o("You can import redirects using a CSV file. The following 6 columns are required: %1$sSource URL, Target URL, Redirect Type, Ignore Slash, Ignore Case, Regex.%2$s An optional 7th column for Comment is also supported.",D),"<strong>","</strong>"),typeAdvise:A(o("* Use Redirect Type = 0 for %1$sPass Through%2$s",D),"<strong>","</strong>"),importRestoreAioseoRedirects:o("Import Redirects from a JSON or CSV File",D),fileUploadPlaceholder:o("Import from a JSON file",D),chooseAFile:o("Choose a File",D),fileUploadDescription:o("Imported redirects will overwrite existing redirects and will not be merged.",D),import:o("Import",D),jsonFileTypeRequired:o("A JSON or CSV file is required to import redirects.",D),fileUploadedSuccessfully:o("Success! Your redirects have been imported.",D),fileUploadFailed:o("There was an error importing your redirects. Please make sure you are uploading the correct file or it is in the proper format.",D),downloadSampleFile:o("Download Sample CSV File",D),csvFileTypeRequired:o("The file that you've selected is not a CSV file.",D),invalidCSV:o("Unable to read CSV file. Please check if the file is valid and try again.",D),importFailed:o("There was an error importing your redirects. Please make sure you are uploading the correct file or it is in the proper format.",D),rowsErrors:o("Some redirects couldn't be imported. Click here to see.",D),errorRedirectType:o("Invalid Redirect Type.",D),errorEmptyField:o("Source and Target URL can't be empty.",D),errorInvalidURL:o("Invalid URL.",D),messageError:o("Redirect Import Errors",D),listErrorsBelow:o("The following redirects couldn’t be imported:",D)},sampleCSVData:`Source URL,Target URL,Redirect Type,Ignore Slash,Ignore Case,Regex,Comment\r
|
||
/sample_model/,/,301,yes,yes,no,Sample comment`}},computed:{importValidated(){return!!(this.file.type==="text/csv"||this.file.type==="application/json"||this.file.name.endsWith(".ini"))},redirectTypes(){return Se.map(i=>i.value)},columns(){return[{slug:"sourceUrl",label:o("URL",D)},{slug:"targetUrl",label:o("Target",D)},{slug:"messages",label:o("Error",D)}]},successErrorMessageImported(){return 0<this.importedRows?A(o("Successfully imported %1$s %2$s %3$sredirects.",D),"<strong>",this.importedRows,"</strong>"):null},successErrorMessageFailed(){return A(o("%1$s%2$s%3$s Redirects could not be imported. %4$sClick here%5$s for more info.",D),"<strong>",this.errors.length,"</strong>","<a>","</a>")}},methods:{getAssetUrl:ct,reset(){this.uploadSuccess=!1,this.uploadError=!1,this.loading=!1,this.filename=null,this.file=null,this.inputFile=null},triggerFileUpload(){this.reset(),this.$refs.file.$el.querySelector("input").focus(),this.$refs.file.$el.querySelector("input").click()},parseFile(){const i=new FileReader;return i.readAsText(this.file),new Promise((e,d)=>{i.onerror=()=>{i.abort(),d(new DOMException)},i.onload=()=>{const t=pt(i.result);t.shift(),e(t)}})},submitFile(){this.file.type==="application/json"&&this.importJSON(),this.file.type==="text/csv"&&this.importCSV()},handleFileUpload(){this.reset(),this.file=this.$refs.file.$el.querySelector("input").files[0],this.file&&(this.filename=this.file.name,this.file.type!=="application/json"&&this.file.type!=="text/csv"&&(this.uploadError=this.strings.jsonFileTypeRequired))},async importJSON(){this.loading=!0,await this.redirectsStore.uploadFile({file:this.file,filename:this.filename}).then(()=>{this.reset(),this.uploadSuccess=!0,this.loading=!1}).catch(()=>{this.reset(),this.loading=!1,this.uploadError=this.strings.fileUploadFailed}),Te(()=>{this.uploadSuccess=!1},1e4)},async importCSV(){this.errors=[],this.loading=!0;try{const i=await this.parseFile(),e=[];i.forEach(d=>{const t=this.prepareRedirection(d);t&&e.push(t)}),this.redirectsStore.importCsvRedirects(e).then(d=>{this.reset(),this.redirectsStore.setLateRefresh({value:!0,type:"redirects"}),d.body.success?(this.uploadSuccess=!0,this.importedRows=d.body.importedRows,this.errors.length===0&&Te(()=>{this.uploadSuccess=!1},1e4)):this.uploadError=this.strings.importFailed}).catch(()=>{this.reset(),this.loading=!1,this.uploadError=this.strings.importFailed})}catch{this.uploadError=this.strings.invalidCSV}Te(()=>{this.uploadError=!1},1e4),this.reset(),this.redirects=Ve(Ue.redirection)},allowSourceEmpty(i){return 400<=parseInt(i)&&600>parseInt(i)},beginsWith(i,e){return e.indexOf(i)===0||i.substr(0,e.length)===e},setURL(i,e){if(e)return i;const d=ut(Ie(i),this.rootStore.aioseo.urls.home);return/['"]/g.test(d)?null:d},prepareRedirection(i){try{const e=Ve(Ue.redirection);if(this.isEmptySourceOrTarget(i))return this.errors.push(this.createError(i,this.strings.errorEmptyField)),!1;if(!this.isValidRedirectType(i))return this.errors.push(this.createError(i,this.strings.errorRedirectType)),!1;if(e.url.ignoreSlash=i[3].toLowerCase()==="yes",e.url.ignoreCase=i[4].toLowerCase()==="yes",e.url.regex=i[5].toLowerCase()==="yes",e.url.url=this.setURL(i[0],e.url.regex),e.targetUrl=this.setURL(i[1],e.url.regex),e.type=parseInt(i[2]),e.comment=i[6]?i[6].trim():null,e.url.url===null||e.targetUrl===null||!e.url.regex&&!this.isValidUrl(e.url.url)||i[1]!==""&&!this.isValidUrl(e.targetUrl))return this.errors.push(this.createError(i,this.strings.errorInvalidURL)),!1;const d=this.validateRedirect(e);return 0<d.length?(this.errors.push(this.createError(i,d)),!1):e}catch{return!1}},isEmptySourceOrTarget(i){return i[0]===""||i[1]===""&&!this.allowSourceEmpty(i[2])},isValidRedirectType(i){return this.redirectTypes.includes(parseInt(i[2]))},isValidUrl(i){return this.beginsWith(i,"/")||this.beginsWith(i,"http://")||this.beginsWith(i,"https://")},createError(i,e){return{sourceUrl:i[0],targetUrl:i[1],messages:Array.isArray(e)?e:[e]}},downloadSampleCSV(){const i=new Blob([this.sampleCSVData],{type:"text/csv"}),e=URL.createObjectURL(i),d=document.createElement("a");d.href=e,d.download="aioseo-redirects-sample.csv",d.click()}}},ms={class:"aioseo-modal-body import-redirects"},hs={key:0},_s=["innerHTML"],fs=["innerHTML"],Cs={class:"aioseo-description"},vs=["src","alt"],bs={class:"file-upload"},Ss={class:"icon"},ys={class:"icon"},ws={class:"icon"},Hs=["innerHTML"],Ls=["innerHTML"],ks={class:"aioseo-description"},Rs={class:"aioseo-modal-body"},Vs={class:"error-description"},Ts=["name"];function xs(i,e,d,t,s,p){const _=g("svg-download"),h=g("core-alert"),w=g("base-input"),H=g("base-button"),L=g("svg-circle-close"),R=g("svg-circle-check"),k=g("svg-circle-exclamation"),f=g("core-card"),S=g("core-wp-table"),y=g("core-modal");return u(),v("div",null,[l(f,{class:"aioseo-redirects-import-aioseo",slug:"importAioseoRedirects",toggles:!1,"no-slide":"","header-text":s.strings.importRestoreAioseoRedirects},{"header-icon":n(()=>[l(_)]),default:n(()=>[r("div",ms,[s.showImportDescription?C("",!0):(u(),v("div",hs,[m(a(s.strings.importingCsv)+" ",1),r("a",{href:"#",onClick:e[0]||(e[0]=ne(U=>s.showImportDescription=!0,["stop","prevent"]))},a(s.strings.clickHere),1)])),s.showImportDescription?(u(),b(h,{key:1,type:"yellow"},{default:n(()=>[r("div",null,[r("div",{class:"aioseo-description",innerHTML:s.strings.importDescription},null,8,_s),r("div",{class:"aioseo-description",innerHTML:s.strings.typeAdvise},null,8,fs),r("div",Cs,[r("a",{onClick:e[1]||(e[1]=ne((...U)=>p.downloadSampleCSV&&p.downloadSampleCSV(...U),["stop","prevent"]))},a(s.strings.downloadSampleFile),1)])])]),_:1})):C("",!0),s.showImportDescription?(u(),v("img",{key:2,src:p.getAssetUrl(s.csvFileImage),alt:s.strings.imgAltText},null,8,vs)):C("",!0),r("div",bs,[l(w,{modelValue:s.filename,"onUpdate:modelValue":e[2]||(e[2]=U=>s.filename=U),size:"medium",onFocus:p.triggerFileUpload,placeholder:s.strings.fileUploadPlaceholder,class:de({"aioseo-error":s.uploadError})},null,8,["modelValue","onFocus","placeholder","class"]),l(H,{type:"black",size:"medium",onClick:p.triggerFileUpload},{default:n(()=>[m(a(s.strings.chooseAFile),1)]),_:1},8,["onClick"])]),s.uploadError?(u(),b(h,{key:3,type:"red",class:"import-error",onClick:e[3]||(e[3]=ne(U=>s.uploadError=!1,["stop"]))},{default:n(()=>[r("div",Ss,[l(L)]),m(" "+a(s.uploadError),1)]),_:1})):C("",!0),s.uploadSuccess&&s.errors.length===0?(u(),b(h,{key:4,type:"green",class:"import-error",onClick:e[4]||(e[4]=ne(U=>s.uploadSuccess=!1,["stop"]))},{default:n(()=>[r("div",ys,[l(R)]),m(" "+a(s.strings.fileUploadedSuccessfully),1)]),_:1})):C("",!0),s.uploadSuccess&&s.errors.length!==0?(u(),b(h,{key:5,type:"yellow",class:"import-success-error"},{default:n(()=>[r("div",ws,[l(k)]),r("div",null,[r("div",{innerHTML:p.successErrorMessageImported},null,8,Hs),r("div",{onClick:e[5]||(e[5]=U=>s.showErrorModal=!0),innerHTML:p.successErrorMessageFailed},null,8,Ls)])]),_:1})):C("",!0),l(w,{modelValue:s.inputFile,"onUpdate:modelValue":e[6]||(e[6]=U=>s.inputFile=U),type:"file",onClick:p.reset,onChange:p.handleFileUpload,ref:"file"},null,8,["modelValue","onClick","onChange"]),r("div",ks,a(s.strings.fileUploadDescription),1),l(H,{type:"blue",size:"medium",class:"import",onClick:p.submitFile,disabled:!s.file||!p.importValidated,loading:s.loading},{default:n(()=>[m(a(s.strings.import),1)]),_:1},8,["onClick","disabled","loading"])])]),_:1},8,["header-text"]),l(y,{show:s.showErrorModal,onClose:e[7]||(e[7]=U=>s.showErrorModal=!1),classes:["error-modal"]},{headerTitle:n(()=>[l(k),m(" "+a(s.strings.messageError),1)]),body:n(()=>[r("div",Rs,[r("div",Vs,a(s.strings.listErrorsBelow),1),l(S,{id:"tableId",columns:p.columns,key:"1",rows:s.errors,totals:s.errors.length,showSearch:!1,showBulkActions:!1,showPagination:!1,showTableFooter:!1,showHeader:!1},{messages:n(({row:U})=>[r("ul",null,[(u(!0),v(oe,null,ie(U.messages,(T,V)=>(u(),v("li",{name:T,key:V},a(T),9,Ts))),128))])]),_:1},8,["columns","rows","totals"])])]),_:1},8,["show"])])}const Ps=P(gs,[["render",xs]]),ee="aioseo-pro",Ds={setup(){return{redirectsStore:Y()}},components:{CoreAlert:Ce,CoreCard:F,SvgDownload:Je},data(){return{importSuccess:!1,importError:!1,options:{},plugin:null,loading:!1,strings:{importRedirectsFromOtherPlugins:o("Import Redirects from Other Plugins",ee),importOthersDescription:A(o("Choose a plugin to import redirects directly into %1$s.",ee),"AIOSEO"),selectPlugin:o("Select",ee),import:o("Import",ee),allRedirects:o("All Redirects",ee),notInstalled:o("not installed",ee)}}},watch:{plugin(){this.importSuccess=!1,this.importError=!1,this.options={}}},computed:{plugins(){const i=[];return this.redirectsStore.importers.forEach(e=>{i.push({value:e.slug,label:e.name,canImport:e.canImport,version:e.version,$isDisabled:!e.installed})}),i},importSuccessful(){return A(o("%1$s was successfully imported!",ee),this.plugin.label)},importErrorMessage(){return A(o("An error occurred while importing %1$s. Please try again.",ee),this.plugin.label)}},methods:{processImportPlugin(){this.importSuccess=!1,this.importError=!1,this.loading=!0;const i=[];this.options.all?this.settings.filter(e=>e.value!=="all").forEach(e=>{i.push(e.value)}):Object.keys(this.options).forEach(e=>{this.options[e]&&i.push(e)}),this.redirectsStore.importPlugins([{plugin:this.plugin.value,settings:i}]).then(()=>{this.loading=!1,this.importSuccess=!0,this.options={}}).catch(()=>{this.loading=!1,this.importError=!0,this.options={}})},invalidVersion(i){return A(o("We do not support importing from the currently installed version of %1$s (%2$s). Please upgrade to the latest version and try again.",ee),i.label,i.version)}}},Us={class:"aioseo-section-description"},Ms={class:"import-plugin-label"},As={class:"plugin-label"},Es={key:0,class:"plugin-status"};function Is(i,e,d,t,s,p){const _=g("svg-download"),h=g("core-alert"),w=g("base-select"),H=g("base-button"),L=g("core-card");return u(),b(L,{id:"aioseo-redirects-import-others",class:"aioseo-redirects-import-others",slug:"importOtherPluginsRedirects",toggles:!1,"no-slide":"","header-text":s.strings.importRedirectsFromOtherPlugins},{"header-icon":n(()=>[l(_)]),default:n(()=>[r("div",Us,a(s.strings.importOthersDescription),1),s.importSuccess?(u(),b(h,{key:0,class:"import-success",type:"green"},{default:n(()=>[m(a(p.importSuccessful),1)]),_:1})):C("",!0),s.importError?(u(),b(h,{key:1,class:"import-error",type:"red"},{default:n(()=>[m(a(p.importErrorMessage),1)]),_:1})):C("",!0),l(w,{size:"medium",modelValue:s.plugin,"onUpdate:modelValue":e[0]||(e[0]=R=>s.plugin=R),options:p.plugins,placeholder:s.strings.selectPlugin},{option:n(({option:R})=>[r("div",Ms,[r("span",As,a(R.label),1),R.$isDisabled?(u(),v("span",Es,a(s.strings.notInstalled),1)):C("",!0)])]),_:1},8,["modelValue","options","placeholder"]),l(H,{type:"blue",size:"medium",class:"import",onClick:p.processImportPlugin,disabled:!s.plugin,loading:s.loading},{default:n(()=>[m(a(s.strings.import),1)]),_:1},8,["onClick","disabled","loading"])]),_:1},8,["header-text"])}const Os=P(Ds,[["render",Is]]),Bs={components:{ExportRedirects:us,GridColumn:Ge,GridRow:We,ImportAioseo:Ps,ImportOthers:Os,ServerConfigReloadWarning:me}},Fs={class:"aioseo-redirects-import-export"};function zs(i,e,d,t,s,p){const _=g("server-config-reload-warning"),h=g("import-aioseo"),w=g("import-others"),H=g("grid-column"),L=g("export-redirects"),R=g("grid-row");return u(),v("div",Fs,[l(_),l(R,null,{default:n(()=>[l(H,{md:"6"},{default:n(()=>[l(h),l(w)]),_:1}),l(H,{md:"6"},{default:n(()=>[l(L)]),_:1})]),_:1})])}const Zs=P(Bs,[["render",zs]]),B="aioseo-pro",st=(i={})=>{const{refreshTable:e,slug:d}=i,t={lastIp:o("Last IP",B),headers:o("Headers",B),at:o("at",B),additionalInfo:o("Additional Info",B),delete:o("Delete",B),areYouSureDeleteLogSingle:o("Are you sure you want to delete this record?",B),areYouSureDeleteLogMultiple:o("Are you sure you want to delete these records?",B),actionCannotBeUndone:o("This action cannot be undone.",B),yesDeleteLogSingle:o("Yes, I want to delete this record",B),yesDeleteLogMultiple:o("Yes, I want to delete these records",B),noChangedMind:o("No, I changed my mind",B),url:o("URL",B),brokenUrl:o("Broken URL",B),hits:o("Hits",B),lastAccessed:o("Last Accessed",B),referrers:o("Referrers",B),actions:o("Actions",B),comment:o("Comment",B)},s=T=>Array.isArray(T)&&1<T.length?t.areYouSureDeleteLogMultiple:t.areYouSureDeleteLogSingle,p=T=>Array.isArray(T)&&1<T.length?t.yesDeleteLogMultiple:t.yesDeleteLogSingle,_=Q(null),h=Q([]),w=Q(!1),H=Q(!1),L=Q(null),R=T=>{_.value=T},k=T=>{const V=JSON.parse(T.request_data);return V.headers?V.headers:null},f=Y();return{activeRow:_,areYouSureDeleteMsg:s,confirmDeleteMsg:p,deletingLog:w,getHeaderInfo:k,logUrls:h,processBulkAction:({action:T,selectedRows:V})=>{if(V.length){if(T==="delete"){L.value=V,H.value=!0;return}h.value=V}},processDeleteLog:()=>{w.value=!0;const T=Array.isArray(L.value)?L.value:[L.value];f.deleteLog({slug:d,ids:T}).then(()=>{w.value=!1,H.value=!1,L.value=null,e()})},shouldDeleteLog:L,showDeleteModal:H,showInfo:R,sqlDateToLogFormat:(T,V)=>V?gt(T):ze(T,"MMMM D, YYYY")+" "+t.at+" "+ze(T,"h:mm A"),strings:t}},Ns="aioseo-pro",Ys={setup(){const i=Y(),e=Q(null),d="aioseo-redirects-logs-wp-table",t="logs",{orderBy:s,orderDir:p,pageNumber:_,processChangeItemsPerPage:h,processPagination:w,processSearch:H,processSort:L,refreshTable:R,searchTerm:k,wpTableKey:f,wpTableLoading:S}=Qe({changeItemsPerPageSlug:"redirectLogs",fetchData:i.fetchLogs,slug:t,tableId:d,tableRef:e.value}),{activeRow:y,areYouSureDeleteMsg:U,confirmDeleteMsg:T,deletingLog:V,getHeaderInfo:j,processBulkAction:X,processDeleteLog:re,shouldDeleteLog:he,showDeleteModal:M,showInfo:He,sqlDateToLogFormat:Le,strings:ke}=st({refreshTable:R,slug:t}),{decodeUrl:Re}=Xe();return{activeRow:y,softSanitizeHtml:fe,areYouSureDeleteMsg:U,confirmDeleteMsg:T,deletingLog:V,getHeaderInfo:j,orderBy:s,orderDir:p,pageNumber:_,processBulkAction:X,processChangeItemsPerPage:h,processDeleteLog:re,processPagination:w,processSearch:H,processSort:L,redirectsStore:i,refreshTable:R,sanitizeString:Ie,searchTerm:k,settingsStore:Ye(),shouldDeleteLog:he,showDeleteModal:M,showInfo:He,sqlDateToLogFormat:Le,strings:ke,tableId:d,wpTableKey:f,wpTableLoading:S,decodeUrl:Re}},components:{CoreModal:Oe,CoreTooltip:K,CoreWpTable:we,ServerConfigReloadWarning:me,SvgClose:$e,SvgCircleInformation:et,SvgTrash:ge},data(){return{bulkOptions:[{label:o("Delete",Ns),value:"delete",resetSelection:!1}]}},watch:{"redirectsStore.logs":{deep:!0,handler(){this.wpTableKey+=1}}},computed:{columns(){return[{slug:"url",label:this.strings.url,sortable:!0,sortDir:this.orderBy==="url"?this.orderDir:"asc",sorted:this.orderBy==="url"},{slug:"hits",label:this.strings.hits,width:"97px",sortable:!0,sortDir:this.orderBy==="hits"?this.orderDir:"asc",sorted:this.orderBy==="hits"},{slug:"last_accessed",label:this.strings.lastAccessed,width:"210px",sortable:!0,sortDir:this.orderBy==="last_accessed"?this.orderDir:"asc",sorted:this.orderBy==="last_accessed"},{slug:"actions",label:this.strings.actions,width:"70px"}]},decodedLogsUrls(){return this.redirectsStore.logs.map(i=>({...i,url:this.decodeUrl(i.url)}))}},methods:{maybeDeleteLog(i){const e=this.redirectsStore.logs.find((d,t)=>t===i);e&&(this.showDeleteModal=!0,this.shouldDeleteLog=e.id)}},mounted(){this.redirectsStore.lateRefresh.logs&&(this.refreshTable(),this.redirectsStore.setLateRefresh({value:!1,type:"logs"}))}},qs={class:"aioseo-redirects-logs"},js={class:"actions-wrapper"},Ws={class:"aioseo-modal-body"},Gs=["innerHTML"],Js={class:"aioseo-modal-body info"},Ks={key:0},Qs={key:1},Xs={key:2},$s={"aria-label":"Logs",class:"header-table"},er={key:3},tr={"aria-label":"Logs",class:"header-table"};function or(i,e,d,t,s,p){const _=g("server-config-reload-warning"),h=g("svg-circle-information"),w=g("core-tooltip"),H=g("svg-trash"),L=g("core-wp-table"),R=g("svg-close"),k=g("base-button"),f=g("core-modal");return u(),v("div",qs,[l(_),(u(),b(L,{id:t.tableId,"bulk-options":s.bulkOptions,columns:p.columns,filters:[],"initial-items-per-page":t.settingsStore.settings.tablePagination.redirectLogs,"initial-page-number":t.pageNumber,"initial-search-term":t.searchTerm,key:t.wpTableKey,loading:t.wpTableLoading,rows:p.decodedLogsUrls,"show-search":!0,totals:t.redirectsStore.totals.logs,"show-items-per-page":"",onPaginate:t.processPagination,onProcessBulkAction:t.processBulkAction,onProcessChangeItemsPerPage:t.processChangeItemsPerPage,onSearch:t.processSearch,onSortColumn:t.processSort},{last_accessed:n(({column:S})=>[m(a(t.sqlDateToLogFormat(S,!0)),1)]),actions:n(({index:S,row:y})=>[r("div",js,[l(w,{type:"action"},{tooltip:n(()=>[m(a(t.strings.additionalInfo),1)]),default:n(()=>[l(h,{class:"log-info",onClick:U=>t.showInfo(y)},null,8,["onClick"])]),_:2},1024),l(w,{type:"action"},{tooltip:n(()=>[m(a(t.strings.delete),1)]),default:n(()=>[l(H,{class:"remove-log",onClick:U=>p.maybeDeleteLog(S)},null,8,["onClick"])]),_:2},1024)])]),_:1},8,["id","bulk-options","columns","initial-items-per-page","initial-page-number","initial-search-term","loading","rows","totals","onPaginate","onProcessBulkAction","onProcessChangeItemsPerPage","onSearch","onSortColumn"])),l(f,{show:t.showDeleteModal,"no-header":"",onClose:e[3]||(e[3]=S=>t.showDeleteModal=!1),classes:["aioseo-redirects-logs-modal"]},{body:n(()=>[r("div",Ws,[r("button",{class:"close",onClick:e[1]||(e[1]=ne(S=>t.showDeleteModal=!1,["stop"]))},[l(R,{onClick:e[0]||(e[0]=S=>t.showDeleteModal=!1)})]),r("h3",null,a(t.areYouSureDeleteMsg(t.shouldDeleteLog)),1),r("div",{class:"reset-description",innerHTML:t.softSanitizeHtml(t.strings.actionCannotBeUndone)},null,8,Gs),l(k,{type:"blue",size:"medium",onClick:t.processDeleteLog,loading:t.deletingLog},{default:n(()=>[m(a(t.confirmDeleteMsg(t.shouldDeleteLog)),1)]),_:1},8,["onClick","loading"]),l(k,{type:"gray",size:"medium",onClick:e[2]||(e[2]=S=>t.showDeleteModal=!1)},{default:n(()=>[m(a(t.strings.noChangedMind),1)]),_:1})])]),_:1},8,["show"]),l(f,{show:t.activeRow,onClose:e[4]||(e[4]=S=>t.activeRow=null),classes:["aioseo-redirects-logs-modal"]},{headerTitle:n(()=>[m(a(t.strings.additionalInfo),1)]),body:n(()=>[r("div",Js,[r("div",null,[r("strong",null,a(t.strings.url)+":",1),m(" "+a(t.sanitizeString(t.activeRow.url)),1)]),r("div",null,[r("strong",null,a(t.strings.hits)+":",1),m(" "+a(t.activeRow.hits),1)]),r("div",null,[r("strong",null,a(t.strings.lastAccessed)+":",1),m(" "+a(t.sqlDateToLogFormat(t.activeRow.last_accessed)),1)]),t.activeRow.ip?(u(),v("div",Ks,[r("strong",null,a(t.strings.lastIp)+":",1),e[5]||(e[5]=m()),r("code",null,a(t.sanitizeString(t.activeRow.ip)),1)])):C("",!0),t.activeRow.redirect_comment?(u(),v("div",Qs,[r("strong",null,a(t.strings.comment)+":",1),m(" "+a(t.sanitizeString(t.activeRow.redirect_comment)),1)])):C("",!0),t.activeRow.referrers.length?(u(),v("div",Xs,[r("strong",null,a(t.strings.referrers)+":",1),r("table",$s,[(u(!0),v(oe,null,ie(t.activeRow.referrers,(S,y)=>(u(),v("tr",{key:y},[r("td",null,a(t.sanitizeString(S)),1)]))),128))])])):C("",!0),t.getHeaderInfo(t.activeRow)?(u(),v("div",er,[r("strong",null,a(t.strings.headers)+":",1),r("table",tr,[(u(!0),v(oe,null,ie(t.getHeaderInfo(t.activeRow),(S,y)=>(u(),v("tr",{key:y},[r("td",null,[r("strong",null,a(t.sanitizeString(y))+":",1)]),r("td",null,a(t.sanitizeString(S)),1)]))),128))])])):C("",!0)])]),_:1},8,["show"])])}const sr=P(Ys,[["render",or]]),be="aioseo-pro",rr={setup(){const i=Y(),e=Q(null),d="aioseo-redirects-404-logs-wp-table",t="404",{orderBy:s,orderDir:p,pageNumber:_,processChangeItemsPerPage:h,processPagination:w,processSearch:H,processSort:L,refreshTable:R,searchTerm:k,wpTableKey:f,wpTableLoading:S}=Qe({changeItemsPerPageSlug:"redirect404Logs",fetchData:i.fetchLogs,slug:t,tableId:d,tableRef:e.value}),{activeRow:y,areYouSureDeleteMsg:U,confirmDeleteMsg:T,deletingLog:V,getHeaderInfo:j,logUrls:X,processBulkAction:re,processDeleteLog:he,shouldDeleteLog:M,showDeleteModal:He,showInfo:Le,sqlDateToLogFormat:ke,strings:Re}=st({refreshTable:R,slug:t}),{decodeUrl:rt}=Xe();return{activeRow:y,softSanitizeHtml:fe,areYouSureDeleteMsg:U,composableStrings:Re,confirmDeleteMsg:T,deletingLog:V,getHeaderInfo:j,logUrls:X,orderBy:s,orderDir:p,pageNumber:_,processBulkAction:re,processChangeItemsPerPage:h,processDeleteLog:he,processPagination:w,processSearch:H,processSort:L,redirectsStore:i,refreshTable:R,sanitizeString:Ie,searchTerm:k,settingsStore:Ye(),shouldDeleteLog:M,showDeleteModal:He,showInfo:Le,sqlDateToLogFormat:ke,tableId:d,wpTableKey:f,wpTableLoading:S,decodeUrl:rt}},components:{CoreAddRedirection:qe,CoreCard:F,CoreModal:Oe,CoreTooltip:K,CoreWpTable:we,ServerConfigReloadWarning:me,SvgClose:$e,SvgCircleInformation:et,SvgPlus:St,SvgTrash:ge,TransitionSlide:yt},data(){return{redirect404UrlsKey:1,showBulkAddRedirections:!1,bulkOptions:[{label:o("Add Redirects",be),value:"add-redirects"},{label:o("Delete",be),value:"delete",resetSelection:!1}],strings:wt(this.composableStrings,{addRedirect:o("Add Redirect",be),addNewRedirections:o("Add New Redirections",be)})}},watch:{"redirectsStore.logs404":{deep:!0,handler(){this.wpTableKey+=1}}},computed:{columns(){return[{slug:"url",label:this.strings.brokenUrl,sortable:!0,sortDir:this.orderBy==="url"?this.orderDir:"asc",sorted:this.orderBy==="url"},{slug:"hits",label:this.strings.hits,width:"97px",sortable:!0,sortDir:this.orderBy==="hits"?this.orderDir:"asc",sorted:this.orderBy==="hits"},{slug:"last_accessed",label:this.strings.lastAccessed,width:"210px",sortable:!0,sortDir:this.orderBy==="last_accessed"?this.orderDir:"asc",sorted:this.orderBy==="last_accessed"},{slug:"actions",label:this.strings.actions,width:"200px"}]},get404RedirectUrls(){return this.logUrls.map(i=>this.decoded404RedirectUrls.find(e=>e.id===i)).filter(Boolean).map(i=>({url:i.url,errors:[],warnings:[]}))},decoded404RedirectUrls(){return this.redirectsStore.logs404.map(i=>({...i,url:this.decodeUrl(i.url)}))}},methods:{addedRedirect(){this.processPagination(this.$refs.table.pageNumber),this.showBulkAddRedirections=!1},maybeDelete404(i){const e=this.redirectsStore.logs404.find((d,t)=>t===i);e&&(this.showDeleteModal=!0,this.shouldDeleteLog=e.id)},beginProcessBulkAction(i){this.processBulkAction(i),i.action==="add-redirects"&&(this.showBulkAddRedirections=!0,this.redirect404UrlsKey+=1)}},mounted(){this.redirectsStore.lateRefresh.logs404&&(this.refreshTable(),this.redirectsStore.setLateRefresh({value:!1,type:"logs404"}))}},ir={class:"aioseo-redirects-404-logs"},lr={class:"add-bulk-redirects-wrapper"},nr={class:"actions-404-wrapper"},ar=["onClick"],dr={class:"aioseo-tooltip-group"},cr={class:"aioseo-modal-body"},ur=["innerHTML"],pr={class:"aioseo-modal-body info"},gr={key:0},mr={key:1},hr={"aria-label":"Logs",class:"header-table"},_r={key:2},fr={"aria-label":"404 Logs",class:"header-table"};function Cr(i,e,d,t,s,p){const _=g("server-config-reload-warning"),h=g("core-add-redirection"),w=g("core-card"),H=g("transition-slide"),L=g("svg-plus"),R=g("svg-circle-information"),k=g("core-tooltip"),f=g("svg-trash"),S=g("core-wp-table"),y=g("svg-close"),U=g("base-button"),T=g("core-modal");return u(),v("div",ir,[l(_),l(H,{active:s.showBulkAddRedirections},{default:n(()=>[r("div",lr,[l(w,{slug:"bulkAddNewRedirection","header-text":s.strings.addNewRedirections,toggles:!1,"no-slide":"",closes:"",onCloseCard:e[0]||(e[0]=V=>s.showBulkAddRedirections=!1)},{default:n(()=>[(u(),b(h,{key:s.redirect404UrlsKey,log404:"",onAddedRedirect:p.addedRedirect,urls:p.get404RedirectUrls},null,8,["onAddedRedirect","urls"]))]),_:1},8,["header-text"])])]),_:1},8,["active"]),(u(),b(S,{ref:"table",id:t.tableId,"bulk-options":s.bulkOptions,columns:p.columns,filters:[],"initial-items-per-page":t.settingsStore.settings.tablePagination.redirect404Logs,"initial-page-number":t.pageNumber,"initial-search-term":t.searchTerm,key:t.wpTableKey,loading:t.wpTableLoading,rows:p.decoded404RedirectUrls,"show-search":!0,totals:t.redirectsStore.totals.total404,"show-items-per-page":"",onPaginate:t.processPagination,onProcessBulkAction:p.beginProcessBulkAction,onProcessChangeItemsPerPage:t.processChangeItemsPerPage,onSearch:t.processSearch,onSortColumn:t.processSort},{last_accessed:n(({column:V})=>[m(a(t.sqlDateToLogFormat(V,!0)),1)]),actions:n(({index:V,row:j,editRow:X})=>[r("div",nr,[r("a",{class:"add-redirect",href:"#",onClick:ne(re=>X(V),["prevent"])},[l(L),m(a(s.strings.addRedirect),1)],8,ar),r("div",dr,[l(k,{type:"action"},{tooltip:n(()=>[m(a(s.strings.additionalInfo),1)]),default:n(()=>[l(R,{class:"log-info",onClick:re=>t.showInfo(j)},null,8,["onClick"])]),_:2},1024),l(k,{type:"action"},{tooltip:n(()=>[m(a(s.strings.delete),1)]),default:n(()=>[l(f,{class:"remove-404",onClick:re=>p.maybeDelete404(V)},null,8,["onClick"])]),_:2},1024)])])]),"edit-row":n(({row:V,editRow:j})=>[l(h,{log404:"",onAddedRedirect:e[1]||(e[1]=X=>t.processPagination(i.$refs.table.pageNumber)),url:{url:V.url,errors:[],warnings:[]},onCancel:X=>j(null)},null,8,["url","onCancel"])]),_:1},8,["id","bulk-options","columns","initial-items-per-page","initial-page-number","initial-search-term","loading","rows","totals","onPaginate","onProcessBulkAction","onProcessChangeItemsPerPage","onSearch","onSortColumn"])),l(T,{show:t.showDeleteModal,"no-header":"",onClose:e[5]||(e[5]=V=>t.showDeleteModal=!1),classes:["aioseo-redirects-logs-modal"]},{body:n(()=>[r("div",cr,[r("button",{class:"close",onClick:e[3]||(e[3]=ne(V=>t.showDeleteModal=!1,["stop"]))},[l(y,{onClick:e[2]||(e[2]=V=>t.showDeleteModal=!1)})]),r("h3",null,a(t.areYouSureDeleteMsg(t.shouldDeleteLog)),1),r("div",{class:"reset-description",innerHTML:t.softSanitizeHtml(s.strings.actionCannotBeUndone)},null,8,ur),l(U,{type:"blue",size:"medium",onClick:t.processDeleteLog,loading:t.deletingLog},{default:n(()=>[m(a(t.confirmDeleteMsg(t.shouldDeleteLog)),1)]),_:1},8,["onClick","loading"]),l(U,{type:"gray",size:"medium",onClick:e[4]||(e[4]=V=>t.showDeleteModal=!1)},{default:n(()=>[m(a(s.strings.noChangedMind),1)]),_:1})])]),_:1},8,["show"]),l(T,{show:!!t.activeRow,onClose:e[6]||(e[6]=V=>t.activeRow=null),classes:["aioseo-redirects-logs-modal"]},{headerTitle:n(()=>[m(a(s.strings.additionalInfo),1)]),body:n(()=>[r("div",pr,[r("div",null,[r("strong",null,a(s.strings.url)+":",1),m(" "+a(t.sanitizeString(t.activeRow.url)),1)]),r("div",null,[r("strong",null,a(s.strings.hits)+":",1),m(" "+a(t.activeRow.hits),1)]),r("div",null,[r("strong",null,a(s.strings.lastAccessed)+":",1),m(" "+a(t.sqlDateToLogFormat(t.activeRow.last_accessed)),1)]),t.activeRow.ip?(u(),v("div",gr,[r("strong",null,a(s.strings.lastIp)+":",1),e[7]||(e[7]=m()),r("code",null,a(t.sanitizeString(t.activeRow.ip)),1)])):C("",!0),t.activeRow.referrers.length?(u(),v("div",mr,[r("strong",null,a(s.strings.referrers)+":",1),r("table",hr,[(u(!0),v(oe,null,ie(t.activeRow.referrers,(V,j)=>(u(),v("tr",{key:j},[r("td",null,a(t.sanitizeString(V)),1)]))),128))])])):C("",!0),t.getHeaderInfo(t.activeRow)?(u(),v("div",_r,[r("strong",null,a(s.strings.headers)+":",1),r("table",fr,[(u(!0),v(oe,null,ie(t.getHeaderInfo(t.activeRow),(V,j)=>(u(),v("tr",{key:j},[r("td",null,[r("strong",null,a(t.sanitizeString(j))+":",1)]),r("td",null,a(t.sanitizeString(V)),1)]))),128))])])):C("",!0)])]),_:1},8,["show"])])}const vr=P(rr,[["render",Cr]]),br={class:"aioseo-redirects-logs-blur"},Sr=["innerHTML"],yr={__name:"UpsellLogs",setup(i){const e="all-in-one-seo-pack",d=W(()=>({ctaButtonText:o("Unlock Redirect Logs",e),ctaHeader:o("Redirect Logs are a PRO Feature",e),ctaDescription:o("Gain full visibility into your site's redirects and 404 errors through detailed logs.<br />Monitor traffic patterns and identify issues early.",e),trackRedirectsHits:o("Track Redirect Hits",e),track404Errors:o("Track 404 Errors",e),logHttpHeader:o("Log HTTP Headers",e),logIpAddress:o("Log IP Addresses",e)})),t=W(()=>[{slug:"logs",name:o("Redirect Logs",e)},{slug:"logs-404",name:o("404 Logs",e)}]),s=W(()=>[{slug:"url",label:o("URL",e)},{slug:"hits",label:o("Hits",e),width:"97px"},{slug:"last_accessed",label:o("Last Accessed",e),width:"210px"},{slug:"actions",label:o("Actions",e),width:"70px"}]);return(p,_)=>(u(),v("div",br,[l(c(ae),null,{default:n(()=>[l(c(Ke),{tabs:t.value,active:"logs",showSaveButton:!1},null,8,["tabs"]),l(c(we),{filters:[],totals:{total:0,pages:0,page:1},columns:s.value,rows:[]},null,8,["columns"])]),_:1}),c(Z).hasCoreFeature("redirects","logs")?C("",!0):(u(),b(c(ve),{key:0,"cta-link":c(N).getPricingUrl("redirects","redirects","redirect-logs","pricing"),"button-text":d.value.ctaButtonText,"align-top":"","learn-more-link":c(N).getUpsellUrl("redirects","redirect-logs","pricing"),"feature-list":[d.value.trackRedirectsHits,d.value.track404Errors,d.value.logHttpHeader,d.value.logIpAddress]},{"header-text":n(()=>[m(a(d.value.ctaHeader),1)]),description:n(()=>[r("div",{innerHTML:d.value.ctaDescription},null,8,Sr)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list"]))]))}},wr={class:"aioseo-redirects-all-logs"},Hr={__name:"Logs",setup(i){const e="aioseo-pro",d=Q("logs"),t=p=>{d.value=p},s=W(()=>[{slug:"logs",name:o("Redirect Hits",e)},{slug:"logs-404",name:o("404 Hits",e)}]);return lt(()=>{const _=new URLSearchParams(window.location.search).get("activetab");_&&s.value.map(w=>w.slug).includes(_)&&(d.value=_)}),(p,_)=>(u(),v("div",wr,[c(Z).hasCoreFeature("redirects","logs")?C("",!0):(u(),b(c(yr),{key:0})),c(Z).hasCoreFeature("redirects","logs")?(u(),b(c(Ke),{key:1,tabs:s.value,active:d.value,showSaveButton:!1,onChanged:t},null,8,["tabs","active"])):C("",!0),c(Z).hasCoreFeature("redirects","logs")?(u(),v(oe,{key:2},[d.value==="logs"?(u(),b(c(sr),{key:0})):C("",!0),d.value==="logs-404"?(u(),b(c(vr),{key:1})):C("",!0)],64)):C("",!0)]))}},Lr=P(Hr,[["__scopeId","data-v-0466c52a"]]),kr="aioseo-pro",Rr={setup(){return{licenseStore:Ee(),redirectsStore:Y()}},components:{CoreAddRedirection:qe,CoreCard:F,ServerConfigReloadWarning:me,RedirectsTable:Lt,UpsellRedirects:Ht},data(){return{queryUrls:[],targetUrl:"",type:0,strings:{addNewRedirection:o("Add New Redirect",kr)}}},computed:{getType(){return this.type?this.type:-1},getTarget(){return this.targetUrl?this.targetUrl:this.queryUrls.length?"/":""},getUrls(){return this.redirectsStore.manualUrls.length?(this.redirectsStore.manualUrls.forEach(i=>{this.queryUrls.push({url:i.url,regex:i.regex||!1,ignoreSlash:i.slash||!1,ignoreCase:i.case||!1,errors:[],warnings:[]}),i.target&&(this.targetUrl=i.target),i.type&&(this.type=i.type)}),this.queryUrls):this.queryUrls}}},Vr={key:1,class:"aioseo-redirects aioseo-redirects-page"};function Tr(i,e,d,t,s,p){const _=g("upsell-redirects"),h=g("server-config-reload-warning"),w=g("core-add-redirection"),H=g("core-card"),L=g("redirects-table");return t.licenseStore.isUnlicensed?(u(),b(_,{key:0})):(u(),v("div",Vr,[l(h),l(H,{slug:"addNewRedirection","header-text":s.strings.addNewRedirection},{default:n(()=>[l(w,{urls:p.getUrls,target:p.getTarget,type:p.getType},null,8,["urls","target","type"])]),_:1},8,["header-text"]),l(L)]))}const Me=P(Rr,[["render",Tr]]),xr={},Pr={viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-globe"};function Dr(i,e){return u(),v("svg",Pr,[...e[0]||(e[0]=[r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 4.6665C15.12 4.6665 4.66669 15.1198 4.66669 27.9998C4.66669 40.8798 15.12 51.3332 28 51.3332C40.88 51.3332 51.3334 40.8798 51.3334 27.9998C51.3334 15.1198 40.88 4.6665 28 4.6665ZM9.33335 27.9998C9.33335 26.5765 9.52002 25.1765 9.82335 23.8465L20.9767 34.9998V37.3331C20.9767 39.8998 23.0767 41.9998 25.6434 41.9998V46.5031C16.4734 45.3365 9.33335 37.4965 9.33335 27.9998ZM37.3103 37.3333C39.4103 37.3333 41.137 38.71 41.7437 40.6C44.777 37.2866 46.667 32.8533 46.667 28C46.667 20.1833 41.8137 13.4633 34.977 10.71V11.6666C34.977 14.2333 32.877 16.3333 30.3103 16.3333H25.6437V21C25.6437 22.2833 24.5937 23.3333 23.3103 23.3333H18.6437V28H32.6437C33.927 28 34.977 29.05 34.977 30.3333V37.3333H37.3103Z",fill:"currentColor"},null,-1)])])}const Ur=P(xr,[["render",Dr]]),Mr={},Ar={width:"47",height:"16",viewBox:"0 0 47 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-php-clean"};function Er(i,e){return u(),v("svg",Ar,[...e[0]||(e[0]=[r("path",{d:"M0.5 15.1602V0.160156H9.25C10.25 0.160156 11.125 0.535156 11.875 1.28516C12.625 2.03516 13 2.91016 13 3.91016V6.41016C13 7.41016 12.625 8.28516 11.875 9.03516C11.125 9.78516 10.25 10.1602 9.25 10.1602H4.25V15.1602H0.5ZM16.75 15.1602V0.160156H20.5V5.16016H25.5V0.160156H29.25V15.1602H25.5V8.91016H20.5V15.1602H16.75ZM34.25 15.1602V0.160156H43C44 0.160156 44.875 0.535156 45.625 1.28516C46.375 2.03516 46.75 2.91016 46.75 3.91016V6.41016C46.75 7.41016 46.375 8.28516 45.625 9.03516C44.875 9.78516 44 10.1602 43 10.1602H38V15.1602H34.25ZM4.25 6.41016H9.25V3.91016H4.25V6.41016ZM38 6.41016H43V3.91016H38V6.41016Z",fill:"currentColor"},null,-1)])])}const Ir=P(Mr,[["render",Er]]),Or={},Br={width:"110",height:"42",viewBox:"0 0 110 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fr(i,e){return u(),v("svg",Br,[...e[0]||(e[0]=[Ne('<g clip-path="url(#clip0_258_6633)"><path d="M18.0894 0.386519C17.4346 0.771594 16.3448 1.86184 15.0449 3.44305L16.2361 5.68611C17.0745 4.49478 17.9251 3.41898 18.7731 2.50924C18.8408 2.43704 18.8722 2.40335 18.8722 2.40335C18.8408 2.43704 18.8046 2.47555 18.7731 2.50924C18.4953 2.81249 17.652 3.79443 16.3811 5.73424C17.6061 5.67407 19.4738 5.42377 21.0202 5.16385C21.4793 2.61273 20.5732 1.45751 20.5732 1.45751C20.5732 1.45751 19.4231 -0.395663 18.0845 0.396146L18.0894 0.386519Z" fill="url(#paint0_linear_258_6633)"></path><path d="M14.0786 19.2286C13.9264 19.2551 13.7717 19.284 13.6098 19.3105C13.6098 19.3105 13.6074 19.3105 13.6074 19.3129C13.6896 19.3008 13.7693 19.2888 13.849 19.2768C13.9239 19.2599 14.0013 19.2455 14.0786 19.2286Z" fill="#BD202E"></path><path d="M14.0786 19.2286C13.9264 19.2551 13.7717 19.284 13.6098 19.3105C13.6098 19.3105 13.6074 19.3105 13.6074 19.3129C13.6896 19.3008 13.7693 19.2888 13.849 19.2768C13.9239 19.2599 14.0013 19.2455 14.0786 19.2286Z" fill="black"></path><path d="M14.4907 17.2792C14.4883 17.2792 14.4883 17.2792 14.4883 17.2816C14.5124 17.2792 14.539 17.2744 14.5632 17.2696C14.6647 17.2551 14.7637 17.2383 14.8604 17.2142C14.7396 17.2359 14.6188 17.2576 14.4907 17.2792Z" fill="#BD202E"></path><path d="M14.4907 17.2792C14.4883 17.2792 14.4883 17.2792 14.4883 17.2816C14.5124 17.2792 14.539 17.2744 14.5632 17.2696C14.6647 17.2551 14.7637 17.2383 14.8604 17.2142C14.7396 17.2359 14.6188 17.2576 14.4907 17.2792Z" fill="black"></path><path d="M12.7267 11.4791C13.0892 10.8028 13.4564 10.1434 13.8261 9.50319C14.2103 8.83412 14.6017 8.18912 14.9956 7.56338C15.0173 7.52728 15.0439 7.48877 15.0656 7.45267C15.4546 6.83896 15.8485 6.2469 16.2423 5.68373L15.0511 3.44067C14.9617 3.54898 14.8723 3.65968 14.7805 3.77521C14.435 4.2036 14.0798 4.66088 13.7126 5.14944C13.2994 5.69817 12.8765 6.28541 12.444 6.90153C12.0478 7.46951 11.6419 8.06397 11.2359 8.6825C10.8904 9.20716 10.5473 9.74627 10.2042 10.2998C10.1921 10.3191 10.18 10.3407 10.168 10.3624L11.7216 13.4189C12.0502 12.7571 12.3885 12.1097 12.7267 11.4791Z" fill="url(#paint1_linear_258_6633)"></path><path d="M5.64659 28.687C5.44122 29.2478 5.23342 29.823 5.02804 30.4078C5.02563 30.415 5.02321 30.4247 5.01838 30.4319C4.98938 30.5137 4.95797 30.598 4.93139 30.6798C4.79125 31.0745 4.67044 31.4307 4.39258 32.2369C4.84924 32.4439 5.21651 32.9926 5.56444 33.6136C5.5282 32.971 5.26242 32.3669 4.75259 31.9C7.00692 32.0011 8.95681 31.4331 9.94746 29.7917C10.0369 29.6449 10.119 29.4933 10.1939 29.3272C9.73725 29.9048 9.16944 30.1479 8.10389 30.0901C9.67443 29.3898 10.4597 28.7183 11.1483 27.6112C11.3126 27.3465 11.4745 27.0601 11.6388 26.74C10.2664 28.1431 8.69103 28.5426 6.99968 28.2394L5.74324 28.3766C5.70217 28.4825 5.66592 28.5859 5.62485 28.6918L5.64659 28.687Z" fill="url(#paint2_linear_258_6633)"></path><path d="M6.25153 25.8953C6.52215 25.1974 6.80243 24.4898 7.08754 23.7774C7.36299 23.0939 7.64327 22.4056 7.93322 21.7173C8.22316 21.029 8.51794 20.3334 8.81755 19.6403C9.12199 18.9351 9.4361 18.2323 9.75746 17.532C10.074 16.8389 10.3929 16.1505 10.7191 15.4718C10.8351 15.2264 10.9559 14.9809 11.0743 14.7378C11.2797 14.3166 11.4875 13.8979 11.6977 13.4839C11.7098 13.4622 11.7194 13.4382 11.7315 13.4165L10.1779 10.36C10.1537 10.4009 10.1271 10.4442 10.1006 10.4827C9.73813 11.0724 9.37811 11.6741 9.02534 12.2878C8.66775 12.9087 8.31739 13.5417 7.97429 14.1843C7.68676 14.7258 7.40406 15.2697 7.1262 15.8232C7.07063 15.9339 7.01747 16.0471 6.9619 16.1578C6.62363 16.8533 6.31918 17.52 6.04132 18.1674C5.72721 18.8966 5.45176 19.5945 5.21256 20.2564C5.05309 20.692 4.91053 21.1108 4.77764 21.5151C4.66891 21.8593 4.56743 22.2058 4.46595 22.55C4.23399 23.3587 4.03344 24.1673 3.86914 24.9808L5.43002 28.0614C5.63539 27.5126 5.84802 26.9543 6.06548 26.3911C6.13072 26.2299 6.18871 26.071 6.25153 25.917V25.8953Z" fill="url(#paint3_linear_258_6633)"></path><path d="M3.83442 25.077C3.6387 26.0589 3.49856 27.036 3.42849 28.0132L3.42124 28.1143C2.93317 27.3369 1.63083 26.5788 1.63324 26.586C2.56832 27.9338 3.27627 29.2815 3.38017 30.5811C2.88001 30.6822 2.19622 30.5354 1.40612 30.2466C2.23005 31.0023 2.8486 31.2093 3.09264 31.2671C2.33395 31.3152 1.54626 31.8326 0.751325 32.4295C1.91352 31.9578 2.85343 31.7701 3.52997 31.9217C2.46201 34.9301 1.39404 38.2513 0.316406 41.7892C0.645012 41.6929 0.840725 41.4715 0.949455 41.1755C1.14034 40.5377 2.40402 36.338 4.38048 30.8507C4.43847 30.6943 4.49404 30.5354 4.55203 30.379C4.56653 30.3332 4.58344 30.2899 4.60036 30.249C4.80815 29.6714 5.02803 29.0818 5.25032 28.4801C5.30106 28.3429 5.3518 28.2057 5.40496 28.0685C5.40496 28.0661 5.40737 28.0637 5.40737 28.0613L3.84408 24.9807C3.83925 25.012 3.832 25.0481 3.82475 25.0842L3.83442 25.077Z" fill="url(#paint4_linear_258_6633)"></path><path d="M11.9521 13.6691C11.9062 13.7606 11.8627 13.852 11.8168 13.9435C11.6814 14.2203 11.5461 14.5018 11.406 14.7907C11.2562 15.1035 11.1064 15.4212 10.9542 15.7485C10.8768 15.9122 10.7995 16.0782 10.7222 16.2467C10.4903 16.7497 10.2559 17.2696 10.0167 17.8063C9.72431 18.4633 9.42229 19.1492 9.12026 19.8616C8.83273 20.5403 8.53553 21.2406 8.24076 21.9675C7.95806 22.6558 7.67295 23.3682 7.383 24.0998C7.12446 24.752 6.86351 25.4259 6.60256 26.1167C6.59048 26.1479 6.5784 26.184 6.56632 26.2153C6.30537 26.9012 6.042 27.6064 5.77863 28.3284C5.7738 28.3453 5.76655 28.3597 5.76172 28.379L7.01815 28.2418C6.99399 28.237 6.96741 28.2346 6.94325 28.2297C8.44372 28.0444 10.4468 26.9253 11.7274 25.5342C12.3217 24.8989 12.8606 24.148 13.3583 23.2695C13.728 22.6173 14.0783 21.8905 14.4118 21.089C14.7017 20.3887 14.9796 19.6281 15.2478 18.8075C14.9023 18.988 14.5084 19.1227 14.0735 19.2142C13.9962 19.231 13.9189 19.2455 13.8391 19.2599C13.7594 19.2744 13.6797 19.2864 13.5975 19.296C13.5975 19.296 13.5999 19.296 13.5999 19.2936C15.0013 18.7569 15.8832 17.722 16.5235 16.4537C16.1563 16.704 15.5571 17.0313 14.8394 17.1877C14.7428 17.2094 14.6437 17.2262 14.5422 17.2431C14.5181 17.2455 14.4915 17.2503 14.4673 17.2551H14.4722C14.9603 17.053 15.3686 16.8243 15.7238 16.5572C15.8011 16.4994 15.876 16.4417 15.9437 16.3791C16.0524 16.2852 16.1539 16.1865 16.2553 16.0855C16.3182 16.0181 16.3786 15.9507 16.439 15.8809C16.5791 15.7148 16.7096 15.5367 16.8304 15.3442C16.8666 15.284 16.9053 15.2263 16.9391 15.1637C16.9875 15.0746 17.0309 14.9856 17.0744 14.9014C17.2702 14.5115 17.4272 14.1601 17.5504 13.8544C17.6133 13.7004 17.6664 13.5608 17.7147 13.426C17.7341 13.3731 17.751 13.3226 17.7679 13.272C17.8186 13.1252 17.8573 12.9952 17.8887 12.8797C17.937 12.7064 17.966 12.5693 17.9805 12.4706C17.9322 12.5067 17.879 12.5452 17.8162 12.5813C17.3934 12.834 16.6685 13.0602 16.0838 13.1685C16.0765 13.1709 16.0669 13.1709 16.0572 13.1733C15.9968 13.183 15.9412 13.1926 15.8808 13.1998L15.9098 13.1854L11.9714 13.6162C11.9714 13.6258 11.9641 13.6427 11.9569 13.6571L11.9521 13.6691Z" fill="url(#paint5_linear_258_6633)"></path><path d="M16.3982 5.72697C16.0479 6.26367 15.6661 6.87257 15.2505 7.5633C15.2288 7.59699 15.2046 7.6379 15.1853 7.6716C14.8301 8.26846 14.4532 8.92309 14.0521 9.6427C13.709 10.2636 13.3514 10.9279 12.9793 11.6427C12.6555 12.266 12.3221 12.9279 11.9766 13.6282L15.915 13.1974C17.0651 12.6703 17.5774 12.1962 18.0751 11.5055C18.2056 11.3154 18.3409 11.118 18.4714 10.911C18.8773 10.2805 19.2735 9.58734 19.6287 8.89662C19.9718 8.22996 20.2738 7.57052 20.5058 6.97365C20.6532 6.5958 20.7716 6.24442 20.8537 5.93395C20.9262 5.66199 20.9818 5.40207 21.0253 5.15417C19.4958 5.41651 17.6184 5.66681 16.3862 5.72697H16.3982Z" fill="url(#paint6_linear_258_6633)"></path><path d="M13.8373 19.2769C13.7576 19.2913 13.6779 19.3033 13.5957 19.313C13.6779 19.3057 13.76 19.2913 13.8373 19.2769Z" fill="#BD202E"></path><path opacity="0.35" d="M13.8373 19.2769C13.7576 19.2913 13.6779 19.3033 13.5957 19.313C13.6779 19.3057 13.76 19.2913 13.8373 19.2769Z" fill="#BD202E"></path><path d="M13.8373 19.2769C13.7576 19.2913 13.6779 19.3033 13.5957 19.313C13.6779 19.3057 13.76 19.2913 13.8373 19.2769Z" fill="url(#paint7_linear_258_6633)"></path><path d="M14.4902 17.2792C14.5144 17.2768 14.541 17.272 14.5651 17.2672C14.541 17.2696 14.5168 17.2768 14.4902 17.2792Z" fill="#BD202E"></path><path opacity="0.35" d="M14.4902 17.2792C14.5144 17.2768 14.541 17.272 14.5651 17.2672C14.541 17.2696 14.5168 17.2768 14.4902 17.2792Z" fill="#BD202E"></path><path d="M14.4902 17.2792C14.5144 17.2768 14.541 17.272 14.5651 17.2672C14.541 17.2696 14.5168 17.2768 14.4902 17.2792Z" fill="url(#paint8_linear_258_6633)"></path><path d="M14.4902 17.279C14.492 17.2772 14.492 17.279 14.4902 17.279C14.492 17.2772 14.492 17.279 14.4902 17.279Z" fill="#BD202E"></path><path opacity="0.35" d="M14.4902 17.279C14.492 17.2772 14.492 17.279 14.4902 17.279C14.492 17.2772 14.492 17.279 14.4902 17.279Z" fill="#BD202E"></path><path d="M70.9548 28.1989C70.7132 28.1557 69.8001 27.9221 69.6611 27.8678C69.3254 27.7389 68.1751 27.1511 68.0361 27.0403C67.8554 26.8923 67.8319 26.8742 67.5026 26.6293C67.1765 26.3875 66.4773 25.69 66.2303 25.362C66.1265 25.2236 66.0133 25.0745 65.978 25.033C65.9432 24.9908 65.8848 24.9201 65.8486 24.8753C65.7719 24.7817 65.1227 23.6933 65.1227 23.6507C65.1227 23.6376 65.0552 23.4771 64.973 23.2939C64.8905 23.1108 64.7731 22.819 64.7132 22.6454C64.6526 22.4718 64.5785 22.2727 64.5486 22.2035C64.4816 22.048 64.2984 21.1897 64.2321 20.7232C64.1622 20.227 64.1643 18.8703 64.2358 18.423C64.4239 17.2516 64.5725 16.7511 65.0023 15.8353C65.0686 15.6936 65.1231 15.5445 65.1231 15.5041C65.1231 15.463 65.1517 15.4293 65.1865 15.4293C65.2214 15.4293 65.2499 15.3927 65.2499 15.3477C65.2499 15.3029 65.4263 15.0006 65.6412 14.6758C65.9898 14.1486 66.7852 13.2701 67.3091 12.8441C67.8511 12.3947 68.9234 11.8101 69.5649 11.6088C69.7531 11.5511 69.9787 11.4789 70.0653 11.4491C70.3871 11.3383 71.0061 11.2574 71.8079 11.2222C72.8418 11.1763 73.9248 11.3107 74.6946 11.5801C75.2665 11.7813 75.7851 12.022 75.8278 12.0997C75.8395 12.1258 75.8767 12.1471 75.9105 12.1471C76.0441 12.1471 76.7636 12.6902 77.1934 13.1162C77.6927 13.6103 78.0198 14.0427 78.2839 14.5538C78.4464 14.8733 78.4486 14.8882 78.3348 14.966C78.27 15.0105 78.1873 15.0691 78.1509 15.0959C78.1146 15.1226 78.0098 15.188 77.9189 15.2396C77.828 15.2917 77.6228 15.4154 77.4613 15.5144C77.1342 15.7157 77.0091 15.7018 76.9129 15.4493C76.6445 14.7454 75.4161 13.5857 74.5715 13.2556C73.6478 12.8871 73.0854 12.7774 72.1339 12.7785C71.1268 12.7796 70.4768 12.902 69.6749 13.2471C69.4002 13.3642 68.8132 13.7135 68.6892 13.8338C68.6431 13.8785 68.586 13.915 68.562 13.915C68.4946 13.915 67.7901 14.6083 67.4822 14.9788C67.1465 15.3803 66.5638 16.4165 66.4259 16.8531C66.3711 17.0267 66.3018 17.2258 66.2708 17.295C66.0014 17.9063 65.8432 19.3823 65.9416 20.3727C66.0087 21.0478 66.15 21.757 66.2719 22.0339C66.3028 22.1034 66.347 22.2309 66.3702 22.3183C66.4723 22.7006 67.0694 23.8091 67.3816 24.1925C67.6937 24.5791 68.2636 25.1754 68.5255 25.3852C68.8217 25.627 69.7871 26.2265 69.8726 26.2265C69.8959 26.2265 69.9881 26.2652 70.0789 26.3119C70.169 26.3587 70.497 26.4653 70.8081 26.5483C71.2828 26.6751 71.5094 26.6985 72.23 26.6921C73.4381 26.6813 74.1972 26.4749 75.2129 25.8849C75.8757 25.4994 76.7952 24.607 77.1159 24.0319C77.2378 23.8157 77.3661 23.6379 77.4014 23.6368C77.5361 23.635 78.7591 24.3003 78.7591 24.3748C78.7591 24.4632 78.3903 25.165 78.3176 25.214C78.2919 25.2313 78.2382 25.3077 78.1979 25.3833C78.0471 25.6698 77.3533 26.3449 76.7011 26.8422C76.3547 27.1063 75.4395 27.5706 74.7981 27.8039C73.9524 28.1138 73.4403 28.1968 72.2642 28.2149C71.6367 28.2245 71.0561 28.2196 70.9706 28.204L70.9548 28.1989ZM20.3853 28.1107C20.3853 28.0755 20.4128 27.9978 20.4464 27.9371C20.48 27.8768 20.5673 27.6858 20.64 27.5122C20.7128 27.3386 20.7971 27.1395 20.8281 27.0702C20.8588 27.0008 21.058 26.5325 21.2707 26.0288C21.4835 25.525 21.6834 25.0565 21.7155 24.9873C21.7471 24.9178 21.847 24.6763 21.9368 24.4505C22.027 24.2248 22.126 23.983 22.1581 23.9138C22.1902 23.8446 22.2757 23.6455 22.3495 23.4719C22.4236 23.2983 22.5248 23.0672 22.5751 22.9575C22.6253 22.8478 22.6655 22.7403 22.6655 22.7169C22.6655 22.6811 22.7874 22.3899 22.983 21.9565C23.0145 21.8871 23.1135 21.6456 23.2044 21.4198C23.2952 21.194 23.3947 20.9523 23.4257 20.8831C23.4574 20.8136 23.5572 20.5721 23.647 20.3464C23.7372 20.1206 23.8373 19.8789 23.8683 19.8096C23.8997 19.7402 23.9859 19.5413 24.0586 19.3677C24.1321 19.1941 24.2179 18.995 24.2478 18.9258C24.2785 18.8563 24.4349 18.487 24.5964 18.1058C24.7567 17.7235 24.9149 17.355 24.946 17.2858C24.9773 17.2163 25.1202 16.8758 25.2624 16.5286C25.4057 16.1815 25.5479 15.8407 25.5789 15.7715C25.61 15.702 25.735 15.4041 25.8568 15.1091C26.54 13.4585 26.6961 13.0857 26.8479 12.745C26.8788 12.6755 26.9784 12.434 27.0692 12.2082C27.1601 11.9825 27.2895 11.6769 27.3579 11.5299L27.4808 11.2615H28.86L29.0011 11.5927C29.1775 12.0048 29.371 12.4521 29.4459 12.6182C29.6618 13.1006 29.7624 13.3424 29.7624 13.3754C29.7624 13.4107 29.8842 13.697 30.1152 14.205C30.1649 14.3147 30.2056 14.4222 30.2056 14.4456C30.2056 14.4813 30.3035 14.7161 30.5221 15.206C30.738 15.6884 30.8385 15.9301 30.8385 15.9632C30.8385 15.9843 30.8976 16.1346 30.97 16.2975C31.0424 16.4605 31.1443 16.6937 31.1956 16.8151C31.2478 16.9365 31.3154 17.093 31.3464 17.1622C31.3773 17.2317 31.4768 17.4732 31.5666 17.699C31.6568 17.9247 31.7558 18.1665 31.7868 18.2357C31.818 18.3051 32.0178 18.7735 32.2316 19.2772C32.4454 19.7809 32.6453 20.2494 32.6763 20.3187C32.7075 20.3881 32.7793 20.5583 32.8356 20.6978C33.4183 22.1248 33.6492 22.6785 33.7219 22.8489C33.7688 22.9531 33.924 23.3217 34.0683 23.6689C34.2116 24.0161 34.3549 24.3568 34.3859 24.4261C34.4169 24.4953 34.5024 24.6944 34.5762 24.868C34.6497 25.0416 34.7355 25.2407 34.7665 25.3099C34.7975 25.3792 34.8969 25.6209 34.9878 25.8467C35.078 26.0724 35.1781 26.3142 35.2091 26.3834C35.5159 27.0607 35.9062 28.0127 35.9062 28.0872C35.9062 28.1637 35.7511 28.1794 34.9921 28.1794C34.0983 28.1794 34.0769 28.1761 34.0341 28.0377C33.9952 27.911 33.8481 27.5542 33.6888 27.2018C33.6574 27.1323 33.5573 26.8908 33.4664 26.665C33.3114 26.2806 33.1863 25.9835 33.0537 25.6864C33.0229 25.617 32.9233 25.3754 32.8335 25.1497C32.7433 24.9239 32.6432 24.6822 32.6122 24.6129C32.4198 24.188 32.2947 23.8888 32.2947 23.8558C32.2947 23.8346 32.2416 23.6982 32.1771 23.5523C32.1123 23.4064 32.0199 23.1955 31.9718 23.0827L31.8839 22.8771H24.3894L24.2611 23.1774C24.1907 23.3425 24.0547 23.6758 23.9596 23.9186C23.8642 24.1614 23.7329 24.4798 23.6677 24.6257C23.6025 24.7716 23.549 24.9079 23.549 24.9292C23.549 24.9627 23.424 25.2615 23.2315 25.6864C23.2001 25.7558 23.1011 25.9973 23.0102 26.2231C22.9193 26.4489 22.8199 26.6906 22.7868 26.7598C22.7543 26.8293 22.6242 27.1421 22.4992 27.4541C22.373 27.7662 22.2554 28.058 22.2372 28.1006C22.1955 28.2008 20.377 28.2156 20.377 28.1155L20.3853 28.1107ZM31.5042 21.4762C31.5042 21.416 31.4107 21.1887 31.1514 20.6179C31.1016 20.5082 31.0609 20.3996 31.0609 20.3751C31.0609 20.3508 31.0194 20.242 30.9689 20.1323C30.9182 20.0226 30.7176 19.536 30.5241 19.0461C30.3306 18.5605 30.1446 18.1058 30.1125 18.0365C30.0802 17.9671 29.9222 17.569 29.7629 17.1527C29.6025 16.7363 29.4464 16.338 29.4154 16.2688C29.3844 16.1993 29.3164 16.043 29.2647 15.9216C29.2125 15.8002 29.1107 15.567 29.0391 15.4041C28.9668 15.2411 28.9076 15.0846 28.9076 15.0569C28.9076 15.029 28.8704 14.9355 28.8254 14.8482C28.7804 14.7614 28.6746 14.5053 28.5912 14.2806C28.5074 14.0548 28.402 13.7992 28.3571 13.713C28.3121 13.6262 28.2751 13.5192 28.2749 13.4766C28.2738 13.3434 28.1594 13.3889 28.1134 13.5397C28.0898 13.6178 28.0327 13.7665 27.9862 13.8709C27.9401 13.9751 27.7852 14.3448 27.642 14.6909C27.4987 15.0381 27.2977 15.5205 27.1961 15.7665C27.0948 16.0093 26.5568 17.2999 25.9987 18.6417C25.4428 19.9729 24.9414 21.1762 24.8868 21.304L24.7863 21.5404H28.1434C30.4527 21.5404 31.5004 21.5197 31.5004 21.4739L31.5042 21.4762ZM37.7158 19.7085V11.253L41.2439 11.2541C44.9323 11.2551 45.6059 11.289 46.1939 11.5086C46.6119 11.6641 47.2587 11.9835 47.3806 12.0922C47.426 12.134 47.5581 12.2391 47.6746 12.3254C48.4925 12.9313 49.2783 14.1358 49.567 15.2646C49.8556 16.3508 49.737 17.831 49.2805 18.864C48.624 20.3442 47.5164 21.3665 46.1265 21.7925C45.8464 21.877 45.2905 21.8967 42.6091 21.9171L39.4232 21.9409V28.1813H37.7126V19.7258L37.7158 19.7085ZM45.2317 20.3346C46.397 20.1738 47.3486 19.2868 47.819 17.9066C47.9815 17.4327 48.0189 16.1282 47.8844 15.5958C47.7016 14.8823 47.3669 14.2859 46.8698 13.796C46.6228 13.5532 46.3363 13.3115 46.2315 13.2593C46.1274 13.2074 46.0284 13.1496 46.0102 13.1305C45.9928 13.1117 45.8499 13.0414 45.6938 12.9739C45.4276 12.86 45.2105 12.8504 42.4116 12.8312L39.418 12.811V20.3932H42.0694C43.6304 20.3932 44.9347 20.365 45.2234 20.3249L45.2317 20.3346ZM48.7812 28.1192C48.7659 28.0932 48.8626 27.8168 48.9961 27.5037C49.1297 27.1916 49.4847 26.3429 49.7862 25.6081C50.0866 24.8786 50.371 24.2024 50.418 24.0959C50.465 23.9918 50.6211 23.622 50.7655 23.2759C51.0178 22.6679 51.1546 22.3452 51.2733 22.0726C51.3041 22.0032 51.4465 21.6626 51.5898 21.3154C51.733 20.9683 51.8881 20.5987 51.934 20.4954C51.98 20.3921 52.1649 19.9513 52.3446 19.5168C52.5242 19.0834 52.754 18.5285 52.8545 18.2815C53.0694 17.7639 53.7889 16.0664 53.8713 15.8854C53.9024 15.816 54.0017 15.5745 54.0915 15.3487C54.1817 15.1229 54.2807 14.8812 54.3128 14.812C54.3442 14.7425 54.4304 14.5436 54.5042 14.37C54.5783 14.1964 54.6795 13.9654 54.7298 13.8557C54.7795 13.746 54.8202 13.6384 54.8202 13.615C54.8202 13.5793 54.9182 13.3445 55.1367 12.8547C55.2628 12.5735 55.4435 12.139 55.5836 11.7791C55.6655 11.5704 55.7589 11.3648 55.791 11.3212C55.8313 11.2665 56.0583 11.2423 56.5308 11.2423H57.2129L57.2956 11.4478C57.4613 11.8599 58.1893 13.5776 58.3647 13.9929C58.3955 14.0624 58.5379 14.4029 58.6801 14.7501C58.8223 15.0973 58.9666 15.438 58.9987 15.5073C59.0307 15.5767 59.2734 16.159 59.5364 16.8065C59.8005 17.4486 60.0421 18.0311 60.0731 18.095C60.1045 18.1644 60.2784 18.5764 60.4591 19.0098C60.8878 20.0353 61.3326 21.0864 61.4042 21.2461C61.4353 21.3155 61.5207 21.5145 61.5945 21.688C61.6681 21.8616 61.7538 22.0608 61.7848 22.13C61.8162 22.1994 61.9163 22.4409 62.0072 22.6667C62.1622 23.0511 62.2873 23.3482 62.4199 23.6454C62.4508 23.7148 62.5503 23.9563 62.6412 24.1821C62.732 24.4078 62.8475 24.6815 62.8978 24.7912C62.9479 24.9009 62.9889 25.0095 62.9889 25.033C62.9889 25.0568 63.0744 25.2608 63.1792 25.4855C63.2837 25.7102 63.3695 25.9094 63.3695 25.9285C63.3695 25.9477 63.4104 26.051 63.4605 26.1607C63.5107 26.2704 63.6263 26.5441 63.7171 26.7698C63.808 26.9956 63.9085 27.2373 63.9395 27.3065C64.1587 27.7922 64.257 28.0339 64.257 28.0925C64.257 28.1939 62.5144 28.1821 62.4395 28.0801C62.4046 28.0367 62.1263 27.39 61.8227 26.6425C61.518 25.896 61.2314 25.2048 61.1855 25.0983C61.1395 24.9942 61.0272 24.7246 60.9364 24.4988C60.8455 24.273 60.745 24.0313 60.714 23.9621C60.628 23.7725 60.4274 23.2944 60.3355 23.0622L60.2542 22.8567L52.7169 22.8893L52.3417 23.804C52.1353 24.3077 51.9386 24.7848 51.9055 24.8658C51.8719 24.9462 51.8444 25.0255 51.8444 25.0425C51.8444 25.0696 51.7065 25.394 51.5269 25.7922C51.4955 25.8617 51.3954 26.1032 51.3045 26.329C51.2136 26.5547 51.1014 26.8241 51.0565 26.9285C51.0107 27.0327 50.879 27.3523 50.7625 27.6388L50.5519 28.1595H49.6805C49.2016 28.1595 48.7974 28.1382 48.7814 28.1123L48.7812 28.1192ZM59.7931 21.506C59.7931 21.475 59.575 20.9342 59.3869 20.4986C59.3419 20.3945 59.2383 20.1248 59.1559 19.8991C59.074 19.6733 58.9699 19.4177 58.925 19.3315C58.88 19.2447 58.843 19.1504 58.8428 19.1228C58.8417 19.0788 58.7305 18.8086 58.5253 18.3528C58.4938 18.2834 58.3938 18.0419 58.3029 17.8161C58.212 17.5903 58.1008 17.3209 58.0549 17.2166C58.0092 17.1124 57.9191 16.8854 57.8549 16.7118C57.7909 16.5382 57.702 16.3252 57.6571 16.2379C57.6124 16.1511 57.5757 16.0558 57.5755 16.027C57.5755 15.9975 57.5339 15.8843 57.4835 15.7747C57.4332 15.665 57.2868 15.3061 57.1585 14.976C57.0302 14.6458 56.8763 14.2625 56.8153 14.124C56.7548 13.9856 56.6656 13.779 56.6175 13.6661C56.5074 13.4105 56.4358 13.4308 56.3278 13.7487C56.2814 13.886 56.2166 14.0543 56.1835 14.1235C56.1505 14.1929 56.0637 14.3919 55.9899 14.5654C55.9164 14.739 55.8307 14.9382 55.7986 15.0074C55.747 15.1213 55.0577 16.7645 54.2056 18.7985C54.0313 19.2149 53.8635 19.6132 53.8325 19.6824C53.8015 19.7516 53.6593 20.0924 53.5171 20.4395C53.3749 20.7867 53.2166 21.1637 53.1653 21.2776C53.114 21.3916 53.0723 21.4981 53.0723 21.514C53.0723 21.5302 54.5798 21.5434 56.4294 21.5434C58.2789 21.5434 59.7864 21.5283 59.7864 21.51L59.7931 21.506ZM81.0687 28.0872C81.0517 28.0428 81.0451 24.2429 81.0541 19.6424L81.0704 11.2828H82.7168L82.7332 15.0207L82.7495 18.7586H92.6924V11.2509H94.403V28.1831H92.6924V20.292H82.7495L82.7169 28.1511L81.9076 28.1688C81.295 28.1822 81.0908 28.1669 81.0673 28.1057L81.0687 28.0872ZM98.1746 19.7063V11.2509H109.293V12.827H99.8531V18.7586H108.085V20.2707H99.8531V26.5857H109.486V28.1618H98.1532L98.1746 19.7063Z" fill="#AA0000"></path><path d="M19.957 35.4404V30.201H20.8444V32.4693H23.4531V30.201H24.3404V35.4404H23.4531V33.2999H20.8444V35.4404H19.957ZM27.7616 31.0742V35.5043H26.8743V31.0742H25.2813V30.2649H29.3546V31.0742H27.7616ZM32.2519 31.0742V35.5043H31.3646V31.0742H29.7716V30.2649H33.8449V31.0742H32.2519ZM36.6353 30.2223C37.4336 30.2223 38.0145 30.3746 38.378 30.6792C38.7436 30.9837 38.9265 31.4523 38.9265 32.0848C38.9265 32.7188 38.7383 33.1838 38.362 33.4799C37.9913 33.7745 37.4211 33.9218 36.6514 33.9218H35.7191V35.4553H34.8317V30.2159L36.6353 30.2223ZM36.7487 33.1189C37.2397 33.1189 37.573 33.0266 37.7483 32.842C37.9286 32.6524 38.0188 32.3777 38.0188 32.0178C38.0188 31.6536 37.9058 31.3966 37.6799 31.2468C37.4539 31.097 37.1004 31.0221 36.6193 31.0221H35.717V33.1199L36.7487 33.1189ZM43.5846 30.8613C43.3288 30.8613 43.1181 30.9138 42.9528 31.0189C42.7874 31.1239 42.7047 31.2837 42.7047 31.4981C42.7047 31.7075 42.7874 31.8697 42.9528 31.9847C43.1181 32.0948 43.4692 32.2148 44.0059 32.3447C44.5476 32.4746 44.9538 32.6567 45.2247 32.891C45.5005 33.126 45.6384 33.4731 45.6384 33.9325C45.6384 34.3868 45.4656 34.756 45.1199 35.04C44.7742 35.324 44.3216 35.4663 43.7621 35.467C42.9424 35.467 42.2119 35.1848 41.5704 34.6204L42.1263 33.9538C42.6581 34.4131 43.2104 34.6428 43.7835 34.6428C44.0693 34.6428 44.2949 34.5828 44.4602 34.4628C44.6306 34.3379 44.7158 34.1756 44.7158 33.9761C44.7158 33.7717 44.6356 33.6144 44.4752 33.5044C44.3198 33.3894 44.049 33.2871 43.6627 33.1977C43.2764 33.1026 42.9831 33.0177 42.7828 32.9432C42.5825 32.8629 42.4047 32.7607 42.2493 32.6365C41.9385 32.4015 41.7832 32.043 41.7832 31.5609C41.7832 31.0767 41.9585 30.704 42.3092 30.4427C42.6648 30.1779 43.1032 30.0455 43.6242 30.0455C43.9599 30.0455 44.2931 30.1006 44.6238 30.2106C44.9545 30.3206 45.2403 30.4754 45.4812 30.6749L45.0076 31.3415C44.8523 31.2017 44.6416 31.0867 44.3758 30.9965C44.1099 30.9063 43.8466 30.8613 43.5857 30.8613H43.5846ZM50.5339 30.2223V31.054H47.7328V32.4384H50.256V33.2254H47.7328V34.6311H50.6301V35.4628H46.8454V30.2234L50.5339 30.2223ZM55.8795 31.9262C55.8795 32.7923 55.5018 33.3354 54.7463 33.5555L56.1254 35.4617H54.9922L53.7413 33.7046H52.5759V35.4617H51.6886V30.2223H53.6451C54.4505 30.2223 55.0242 30.3572 55.3664 30.627C55.712 30.8968 55.8849 31.3298 55.8849 31.9262H55.8795ZM53.6771 32.8995C54.1782 32.8995 54.5192 32.8221 54.7003 32.6674C54.8813 32.5126 54.9715 32.2655 54.9708 31.9262C54.9708 31.5819 54.8781 31.3472 54.6928 31.2223C54.5075 31.0923 54.1768 31.0274 53.7007 31.0274H52.5674V32.9016L53.6771 32.8995ZM59.5145 35.4404H58.5224L56.4055 30.201H57.3977L59.0121 34.1093L60.6264 30.201H61.6186L59.5145 35.4404ZM66.0362 30.2223V31.054H63.2351V32.4384H65.7582V33.2254H63.2351V34.6311H66.1324V35.4628H62.3477V30.2234L66.0362 30.2223ZM71.4887 31.9262C71.4887 32.7923 71.111 33.3354 70.3554 33.5555L71.7346 35.4617H70.6013L69.3505 33.7046H68.1851V35.4617H67.2978V30.2223H69.2542C70.0597 30.2223 70.6334 30.3572 70.9755 30.627C71.3212 30.8968 71.4941 31.3298 71.4941 31.9262H71.4887ZM69.2863 32.8995C69.7874 32.8995 70.1284 32.8221 70.3095 32.6674C70.4905 32.5126 70.5807 32.2655 70.58 31.9262C70.58 31.5819 70.4873 31.3472 70.302 31.2223C70.1167 31.0923 69.786 31.0274 69.3098 31.0274H68.1766V32.9016L69.2863 32.8995ZM76.6205 30.2223C77.4188 30.2223 77.9997 30.3746 78.3632 30.6792C78.7288 30.9837 78.9116 31.4523 78.9116 32.0848C78.9116 32.7188 78.7235 33.1838 78.3471 33.4799C77.9765 33.7745 77.4063 33.9218 76.6365 33.9218H75.7043V35.4553H74.8169V30.2159L76.6205 30.2223ZM76.7338 33.1189C77.2249 33.1189 77.5581 33.0266 77.7335 32.842C77.9138 32.6524 78.0039 32.3777 78.0039 32.0178C78.0039 31.6536 77.891 31.3966 77.665 31.2468C77.4391 31.097 77.0856 31.0221 76.6045 31.0221H75.7021V33.1199L76.7338 33.1189ZM84.2113 31.9262C84.2113 32.7923 83.8335 33.3354 83.078 33.5555L84.4572 35.4617H83.3239L82.073 33.7046H80.9077V35.4617H80.0203V30.2223H81.9768C82.7822 30.2223 83.356 30.3572 83.6981 30.627C84.0438 30.8968 84.2166 31.3298 84.2166 31.9262H84.2113ZM82.0089 32.8995C82.5099 32.8995 82.851 32.8221 83.032 32.6674C83.2131 32.5126 83.3032 32.2655 83.3025 31.9262C83.3025 31.5819 83.2099 31.3472 83.0245 31.2223C82.8392 31.0923 82.5085 31.0274 82.0324 31.0274H80.8991V32.9016L82.0089 32.8995ZM89.2361 31.5002C88.8805 31.131 88.4421 30.9464 87.9211 30.9464C87.4001 30.9464 86.9582 31.131 86.5954 31.5002C86.2397 31.8694 86.0619 32.3202 86.0619 32.8527C86.0619 33.3773 86.2397 33.8246 86.5954 34.1944C86.9561 34.5636 87.398 34.7482 87.9211 34.7482C88.4443 34.7482 88.8826 34.5636 89.2361 34.1944C89.5968 33.8253 89.7771 33.378 89.7771 32.8527C89.7771 32.323 89.5968 31.8722 89.2361 31.5002ZM89.8904 34.7802C89.3587 35.2942 88.703 35.5512 87.9233 35.5512C87.1435 35.5512 86.4878 35.2942 85.9561 34.7802C85.4244 34.2612 85.1585 33.6187 85.1585 32.8527C85.1585 32.0788 85.4244 31.4363 85.9561 30.9251C86.4878 30.4062 87.1435 30.1467 87.9233 30.1467C88.703 30.1467 89.3587 30.4062 89.8904 30.9251C90.4221 31.4391 90.688 32.0817 90.688 32.8527C90.688 33.6194 90.4221 34.2619 89.8904 34.7802ZM91.802 30.9677V30.1733H94.3572V33.6237C94.3572 34.2328 94.2019 34.6907 93.8911 34.9974C93.5803 35.302 93.1812 35.4542 92.6937 35.4542C92.0821 35.4542 91.5618 35.2395 91.1328 34.81L91.6363 34.1135C91.977 34.438 92.3102 34.6002 92.6359 34.6002C92.8669 34.6002 93.0625 34.5228 93.2229 34.368C93.3883 34.2133 93.4709 33.9811 93.4709 33.6716V30.9667L91.802 30.9677ZM99.3928 30.2223V31.054H96.5917V32.4384H99.1148V33.2254H96.5917V34.6311H99.489V35.4628H95.7043V30.2234L99.3928 30.2223ZM103.028 34.695C103.334 34.695 103.597 34.6449 103.818 34.5448C104.038 34.4397 104.269 34.275 104.51 34.0507L105.082 34.6353C104.525 35.2494 103.848 35.5565 103.05 35.5565C102.259 35.5565 101.6 35.302 101.072 34.7929C100.551 34.2839 100.291 33.6414 100.291 32.8654C100.291 32.0895 100.557 31.4399 101.088 30.9166C101.625 30.3977 102.299 30.1382 103.109 30.1382C103.929 30.1382 104.609 30.4378 105.151 31.037L104.587 31.6514C104.336 31.4115 104.098 31.2443 103.872 31.1499C103.652 31.0547 103.392 31.0071 103.091 31.0071C102.559 31.0071 102.114 31.1793 101.754 31.5236C101.394 31.863 101.214 32.2996 101.214 32.8335C101.214 33.3631 101.391 33.8068 101.747 34.1646C102.108 34.5189 102.535 34.696 103.03 34.696L103.028 34.695ZM108.16 31.0742V35.5043H107.272V31.0742H105.679V30.2649H109.753V31.0742H108.16Z" fill="black"></path></g><defs><linearGradient id="paint0_linear_258_6633" x1="16.1157" y1="3.79327" x2="24.8442" y2="1.33018" gradientUnits="userSpaceOnUse"><stop stop-color="#F59723"></stop><stop offset="0.312" stop-color="#F69822"></stop><stop offset="0.838" stop-color="#E87726"></stop></linearGradient><linearGradient id="paint1_linear_258_6633" x1="-3.00558" y1="42.88" x2="14.6436" y2="4.82941" gradientUnits="userSpaceOnUse"><stop offset="0.323" stop-color="#9C2063"></stop><stop offset="0.63" stop-color="#C82037"></stop><stop offset="0.751" stop-color="#CC2135"></stop><stop offset="1" stop-color="#E87726"></stop></linearGradient><linearGradient id="paint2_linear_258_6633" x1="2.97175" y1="40.0574" x2="13.4842" y2="17.3932" gradientUnits="userSpaceOnUse"><stop stop-color="#282661"></stop><stop offset="0.0955" stop-color="#662E8C"></stop><stop offset="0.788" stop-color="#9E2064"></stop><stop offset="0.949" stop-color="#CC2032"></stop></linearGradient><linearGradient id="paint3_linear_258_6633" x1="-2.36943" y1="40.582" x2="15.2797" y2="2.53139" gradientUnits="userSpaceOnUse"><stop offset="0.323" stop-color="#9C2063"></stop><stop offset="0.63" stop-color="#C82037"></stop><stop offset="0.751" stop-color="#CC2135"></stop><stop offset="1" stop-color="#E87726"></stop></linearGradient><linearGradient id="paint4_linear_258_6633" x1="-0.552079" y1="38.0408" x2="8.72051" y2="18.0496" gradientUnits="userSpaceOnUse"><stop stop-color="#282661"></stop><stop offset="0.0955" stop-color="#662E8C"></stop><stop offset="0.788" stop-color="#9E2064"></stop><stop offset="0.949" stop-color="#CC2032"></stop></linearGradient><linearGradient id="paint5_linear_258_6633" x1="1.5922" y1="42.4203" x2="19.2414" y2="4.36964" gradientUnits="userSpaceOnUse"><stop offset="0.323" stop-color="#9C2063"></stop><stop offset="0.63" stop-color="#C82037"></stop><stop offset="0.751" stop-color="#CC2135"></stop><stop offset="1" stop-color="#E87726"></stop></linearGradient><linearGradient id="paint6_linear_258_6633" x1="0.288794" y1="44.6815" x2="17.938" y2="6.63085" gradientUnits="userSpaceOnUse"><stop offset="0.323" stop-color="#9C2063"></stop><stop offset="0.63" stop-color="#C82037"></stop><stop offset="0.751" stop-color="#CC2135"></stop><stop offset="1" stop-color="#E87726"></stop></linearGradient><linearGradient id="paint7_linear_258_6633" x1="2.76381" y1="42.9635" x2="20.413" y2="4.91287" gradientUnits="userSpaceOnUse"><stop offset="0.323" stop-color="#9C2063"></stop><stop offset="0.63" stop-color="#C82037"></stop><stop offset="0.751" stop-color="#CC2135"></stop><stop offset="1" stop-color="#E87726"></stop></linearGradient><linearGradient id="paint8_linear_258_6633" x1="2.62932" y1="42.9008" x2="20.2786" y2="4.85027" gradientUnits="userSpaceOnUse"><stop offset="0.323" stop-color="#9C2063"></stop><stop offset="0.63" stop-color="#C82037"></stop><stop offset="0.751" stop-color="#CC2135"></stop><stop offset="1" stop-color="#E87726"></stop></linearGradient><clipPath id="clip0_258_6633"><rect width="110" height="42" fill="white"></rect></clipPath></defs>',2)])])}const zr=P(Or,[["render",Fr]]),Zr={},Nr={width:"95",height:"20",viewBox:"0 0 95 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yr(i,e){return u(),v("svg",Nr,[...e[0]||(e[0]=[Ne('<g clip-path="url(#clip0_193_17475)"><path d="M2.05078 17.8635V2.09924L17.7818 17.8635V2.09924" stroke="#009900" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M27.3352 0.0523682L26.7678 1.11181L22.3838 9.09638L21.8164 10.1041L22.3838 11.1119L26.7678 18.8381L27.361 19.8975H28.573H37.5474H38.8369L39.4042 18.7347L42.6794 12.1197L44.1493 9.12222H40.8226L32.4413 9.14806C31.3513 9.13261 30.3488 10.123 30.3488 11.2153C30.3488 12.3075 31.3513 13.2979 32.4413 13.2825L37.4959 13.2566L36.258 15.7631H29.7593L26.5357 10.0783L29.7851 4.18677H36.6983L38.31 7.50076H42.462L39.8445 1.21517L39.2771 0.0523682H37.9877H28.573H27.3352Z" fill="#009900"></path><path d="M48.2367 0.0265058C47.1564 0.0400584 46.1859 1.03717 46.1994 2.11955V7.50627H50.3255V2.11955C50.3392 1.01994 49.3341 0.0127853 48.2367 0.0265058Z" fill="#009900"></path><path d="M70.582 17.9035V2.13928L54.851 17.9035V2.13928" stroke="#009900" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M77.1211 2.13342L92.8705 17.8589" stroke="#009900" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M92.8887 2.13342L77.1392 17.8589" stroke="#009900" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M48.2367 19.9112C47.1564 19.8977 46.1859 18.9006 46.1994 17.8182V9.16541H50.3255V17.8182C50.3392 18.9178 49.3341 19.925 48.2367 19.9112Z" fill="#009900"></path></g><defs><clipPath id="clip0_193_17475"><rect width="95" height="20" fill="white"></rect></clipPath></defs>',2)])])}const qr=P(Zr,[["render",Yr]]),jr={},Wr={width:"54",height:"45",viewBox:"0 0 54 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-home"};function Gr(i,e){return u(),v("svg",Wr,[...e[0]||(e[0]=[r("path",{d:"M9.125 44.2148V24.2148H0.9375L27 0.839844L39.125 11.4648V4.71484H44.875V16.8398L53.0625 24.2148H44.875V44.2148H29.75V29.4648H24.25V44.2148H9.125ZM13.625 39.7148H19.75V24.9023H34.25V39.7148H40.375V18.9648L27 6.83984L13.625 18.9648V39.7148ZM19.75 24.9023H34.25H19.75ZM21.5 18.9023H32.5C32.5 17.444 31.9583 16.2357 30.875 15.2773C29.7917 14.319 28.5 13.8398 27 13.8398C25.5 13.8398 24.2083 14.319 23.125 15.2773C22.0417 16.2357 21.5 17.444 21.5 18.9023Z",fill:"#434960"},null,-1)])])}const Jr=P(jr,[["render",Gr]]),Kr={},Qr={width:"50",height:"48",viewBox:"0 0 50 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-controls"};function Xr(i,e){return u(),v("svg",Qr,[...e[0]||(e[0]=[r("path",{d:"M21.3254 47.1523V32.2773H26.1154V37.4648H49.2782V42.0273H26.1154V47.1523H21.3254ZM0.721741 42.0273V37.4648H17.7821V42.0273H0.721741ZM12.9921 31.2148V26.0898H0.721741V21.5898H12.9921V16.3398H17.7821V31.2148H12.9921ZM21.3254 26.0898V21.5898H49.2782V26.0898H21.3254ZM32.2178 15.4023V0.527344H37.0078V5.65234H49.2782V10.2148H37.0078V15.4023H32.2178ZM0.721741 10.2148V5.65234H28.6745V10.2148H0.721741Z",fill:"#434960"},null,-1)])])}const $r=P(Kr,[["render",Xr]]),O="aioseo-pro",ei={setup(){return{redirectsStore:Y(),softSanitizeHtml:fe}},components:{CoreSettingsRow:se,BaseToggle:q,BaseInput:je,CoreCard:F,SvgHome:Jr,SvgControls:$r,BaseBoxToggle:ot},data(){return{strings:{smart404Redirects:o("Smart 404 Redirects",O),smart404Description:o("If any of these setting are enabled, 404s will still be logged before they are redirected.",O),description:A(o("These settings help you control how the 404 pages on your site behave. However, enabling these settings is usually not recommended. While a 404 page may not seem like the best user experience, redirecting all your 404 pages may confuse your users who are looking for specific content. Instead, it is better to redirect content to real pages. If you are not sure what to do here, then please disable these settings. %1$sLearn more →%2$s",O),'<a target="_blank" href="'+N.getDocUrl("redirect404Logs")+'">',"</a>"),default404:o("Default 404 Redirect",O),descriptionDefault404:o("Enable Default 404 Redirect",O),home:o("Home Page",O),custom:o("Custom URL",O),advanced404s:o("Advanced 404 Settings",O),redirectToHome:o("Redirect 404's to the Home Page",O),redirectToParent:o("Redirect 404 Errors from Child to Parent",O),redirectingToHome:o("Your 404's will now be redirected to the Home Page. We'll still keep track of them in the 404 Logs.",O),redirectingToParent:o("This redirects 404 pages to their parent post or term.",O),redirectToParentWoocommerce:o("Redirect 404 Errors for WooCommerce Products & Categories",O),redirectingToParentWoocommerce:o("This redirects 404 pages of WooCommerce Products and Product Categories to the shop page.",O),redirectingToParentUpgrade:A(o("Advanced 404 Management is not available for your current plan. %1$s",O),N.getUpsellLink("redirects","404-settings",_e.learnMore,"liteUpgrade",!0)),redirectingToCustom:o("Your 404's will now be redirected to the Custom URL below.",O),redirectingToCustomDescription:o("The Custom URL can be a Relative or Full URL.",O),redirectToSmart:o("Redirect 404 Errors Based on Slug",O),redirectingToSmart:o("This redirects 404 pages to published posts with matching slugs (if any).",O)}}},computed:{has404ParentRedirect(){return Z.hasCoreFeature("redirects","advanced-404-settings")}}},ti=["innerHTML"],oi=["innerHTML"],si={class:"enable"},ri={key:0},ii={class:"option"},li={key:0,class:"aioseo-description background"},ni={key:1,class:"aioseo-description background"},ai={class:"redirects-defaults-description"},di={class:"option"},ci={class:"aioseo-description"},ui={class:"aioseo-description"},pi={class:"aioseo-description"};function gi(i,e,d,t,s,p){const _=g("base-toggle"),h=g("svg-home"),w=g("svg-controls"),H=g("base-box-toggle"),L=g("base-input"),R=g("core-settings-row"),k=g("core-card");return u(),b(k,{slug:"404Settings",class:"redirects-404-settings",toggles:t.redirectsStore.options.advanced404s.enabled,disabled:!t.redirectsStore.options.advanced404s.enabled},{header:n(()=>[l(_,{modelValue:t.redirectsStore.options.advanced404s.enabled,"onUpdate:modelValue":e[0]||(e[0]=f=>t.redirectsStore.options.advanced404s.enabled=f)},null,8,["modelValue"]),r("span",null,a(s.strings.advanced404s),1)]),disabled:n(()=>[r("span",{innerHTML:s.strings.description},null,8,ti)]),default:n(()=>[r("div",null,[r("span",{innerHTML:t.softSanitizeHtml(s.strings.description)},null,8,oi)]),e[7]||(e[7]=r("hr",{class:"aioseo-separator"},null,-1)),l(R,{name:s.strings.default404,class:"redirects-defaults default-404"},{content:n(()=>[r("div",si,[l(_,{modelValue:t.redirectsStore.options.advanced404s.redirectDefaultEnabled,"onUpdate:modelValue":e[1]||(e[1]=f=>t.redirectsStore.options.advanced404s.redirectDefaultEnabled=f)},{default:n(()=>[m(a(s.strings.descriptionDefault404),1)]),_:1},8,["modelValue"])]),t.redirectsStore.options.advanced404s.redirectDefaultEnabled?(u(),v("div",ri,[r("div",ii,[l(H,{name:"redirect404Default",modelValue:t.redirectsStore.options.advanced404s.redirectDefault,"onUpdate:modelValue":e[2]||(e[2]=f=>t.redirectsStore.options.advanced404s.redirectDefault=f),options:[{value:"home",slot:"home"},{value:"custom",slot:"custom"}]},{home:n(()=>[l(h),r("p",null,a(s.strings.home),1)]),custom:n(()=>[l(w),r("p",null,a(s.strings.custom),1)]),_:1},8,["modelValue"]),t.redirectsStore.options.advanced404s.redirectDefault==="home"?(u(),v("div",li,a(s.strings.redirectingToHome),1)):C("",!0),t.redirectsStore.options.advanced404s.redirectDefault==="custom"?(u(),v("div",ni,[m(a(s.strings.redirectingToCustom)+" ",1),l(L,{modelValue:t.redirectsStore.options.advanced404s.redirectToCustomUrl,"onUpdate:modelValue":e[3]||(e[3]=f=>t.redirectsStore.options.advanced404s.redirectToCustomUrl=f)},null,8,["modelValue"]),m(" "+a(s.strings.redirectingToCustomDescription),1)])):C("",!0)])])):C("",!0)]),_:1},8,["name"]),l(R,{name:s.strings.smart404Redirects,class:"redirects-smart-404"},{content:n(()=>[r("div",ai,a(s.strings.smart404Description),1),r("div",di,[l(_,{modelValue:t.redirectsStore.options.advanced404s.redirectToSmart,"onUpdate:modelValue":e[4]||(e[4]=f=>t.redirectsStore.options.advanced404s.redirectToSmart=f)},{default:n(()=>[m(a(s.strings.redirectToSmart),1)]),_:1},8,["modelValue"]),r("div",ci,a(s.strings.redirectingToSmart),1)]),r("div",{class:de(["option",{disabled:!p.has404ParentRedirect}])},[p.has404ParentRedirect?(u(),b(_,{key:0,modelValue:t.redirectsStore.options.advanced404s.redirectToParent,"onUpdate:modelValue":e[5]||(e[5]=f=>t.redirectsStore.options.advanced404s.redirectToParent=f)},{default:n(()=>[m(a(s.strings.redirectToParent),1)]),_:1},8,["modelValue"])):C("",!0),p.has404ParentRedirect?C("",!0):(u(),b(_,{key:1,modelValue:!1,disabled:!0},{default:n(()=>[m(a(s.strings.redirectToParent),1)]),_:1})),r("div",ui,a(s.strings.redirectingToParent),1)],2),p.has404ParentRedirect&&t.redirectsStore.options.advanced404s.redirectToParent?(u(),v("div",{key:0,class:de(["option",{disabled:!p.has404ParentRedirect}])},[l(_,{modelValue:t.redirectsStore.options.advanced404s.redirectToParentWoocommerce,"onUpdate:modelValue":e[6]||(e[6]=f=>t.redirectsStore.options.advanced404s.redirectToParentWoocommerce=f)},{default:n(()=>[m(a(s.strings.redirectToParentWoocommerce),1)]),_:1},8,["modelValue"]),r("div",pi,a(s.strings.redirectingToParentWoocommerce),1)],2)):C("",!0)]),_:1},8,["name"])]),_:1},8,["toggles","disabled"])}const mi=P(ei,[["render",gi],["__scopeId","data-v-6edbb4cd"]]),hi={class:"aioseo-redirects-advanced404s-section"},_i=["innerHTML"],fi=["innerHTML"],Ci={class:"enable"},vi={class:"redirects-defaults-description"},bi={class:"option"},Si={class:"aioseo-description"},yi={class:"option disabled"},wi={class:"aioseo-description"},Hi=["innerHTML"],Li={__name:"UpsellAdvanced404sSection",setup(i){const e="aioseo-pro",d=W(()=>({smart404Redirects:o("Smart 404 Redirects",e),smart404Description:o("If any of these setting are enabled, 404s will still be logged before they are redirected.",e),description:A(o("These settings help you control how the 404 pages on your site behave. However, enabling these settings is usually not recommended. While a 404 page may not seem like the best user experience, redirecting all your 404 pages may confuse your users who are looking for specific content. Instead, it is better to redirect content to real pages. If you are not sure what to do here, then please disable these settings. %1$sLearn more →%2$s",e),'<a target="_blank" href="'+N.getDocUrl("redirect404Logs")+'">',"</a>"),default404:o("Default 404 Redirect",e),descriptionDefault404:o("Enable Default 404 Redirect",e),advanced404s:o("Advanced 404 Settings",e),redirectToParent:o("Redirect 404 Errors from Child to Parent",e),redirectingToParent:o("This redirects 404 pages to their parent post or term.",e),redirectToSmart:o("Redirect 404 Errors Based on Slug",e),redirectingToSmart:o("This redirects 404 pages to published posts with matching slugs (if any).",e),ctaButtonText:o("Unlock Advanced 404 Settings",e),ctaHeader:o("Advanced 404 Settings are a PRO Feature",e),ctaDescription:o("Gain full control over how 404 errors are handled on your site.",e)}));return(t,s)=>(u(),v("div",hi,[l(c(ae),null,{default:n(()=>[l(c(F),{slug:"404Settings",class:"redirects-404-settings",toggles:!0},{header:n(()=>[l(c(q),{modelValue:!0,disabled:!0}),r("span",null,a(d.value.advanced404s),1)]),disabled:n(()=>[r("span",{innerHTML:d.value.description},null,8,_i)]),default:n(()=>[r("div",null,[r("span",{innerHTML:c(fe)(d.value.description)},null,8,fi)]),s[0]||(s[0]=r("hr",{class:"aioseo-separator"},null,-1)),l(c(se),{name:d.value.default404,class:"redirects-defaults default-404"},{content:n(()=>[r("div",Ci,[l(c(q),{modelValue:!1,disabled:!0},{default:n(()=>[m(a(d.value.descriptionDefault404),1)]),_:1})])]),_:1},8,["name"]),l(c(se),{name:d.value.smart404Redirects,class:"redirects-smart-404"},{content:n(()=>[r("div",vi,a(d.value.smart404Description),1),r("div",bi,[l(c(q),{modelValue:!1,disabled:!0},{default:n(()=>[m(a(d.value.redirectToSmart),1)]),_:1}),r("div",Si,a(d.value.redirectingToSmart),1)]),r("div",yi,[l(c(q),{modelValue:!1,disabled:!0},{default:n(()=>[m(a(d.value.redirectToParent),1)]),_:1}),r("div",wi,a(d.value.redirectingToParent),1)])]),_:1},8,["name"])]),_:1})]),_:1}),l(c(ve),{"cta-link":c(N).getPricingUrl("redirects","redirects","404-settings","pricing"),"button-text":d.value.ctaButtonText,"show-link":!1},{"header-text":n(()=>[m(a(d.value.ctaHeader),1)]),description:n(()=>[r("div",{innerHTML:d.value.ctaDescription},null,8,Hi)]),_:1},8,["cta-link","button-text"])]))}},ki=P(Li,[["__scopeId","data-v-1cb9ea6e"]]),Ri={__name:"Advanced404Section",setup(i){return(e,d)=>c(Z).hasCoreFeature("redirects","advanced-404-settings")?(u(),b(c(mi),{key:1})):(u(),b(c(ki),{key:0}))}},Vi=P(Ri,[["__scopeId","data-v-d8c6378d"]]),Ti={},xi={viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-circle-check-mark"};function Pi(i,e){return u(),v("svg",xi,[...e[0]||(e[0]=[r("path",{d:"M6.06732 10.0667L10.7673 5.36671L9.83398 4.43337L6.06732 8.20004L4.16732 6.30004L3.23398 7.23337L6.06732 10.0667ZM7.00065 13.6667C6.07843 13.6667 5.21176 13.4917 4.40065 13.1417C3.58954 12.7917 2.88398 12.3167 2.28398 11.7167C1.68398 11.1167 1.20898 10.4112 0.858984 9.60004C0.508984 8.78893 0.333984 7.92226 0.333984 7.00004C0.333984 6.07782 0.508984 5.21115 0.858984 4.40004C1.20898 3.58893 1.68398 2.88337 2.28398 2.28337C2.88398 1.68337 3.58954 1.20837 4.40065 0.858374C5.21176 0.508374 6.07843 0.333374 7.00065 0.333374C7.92287 0.333374 8.78954 0.508374 9.60065 0.858374C10.4118 1.20837 11.1173 1.68337 11.7173 2.28337C12.3173 2.88337 12.7923 3.58893 13.1423 4.40004C13.4923 5.21115 13.6673 6.07782 13.6673 7.00004C13.6673 7.92226 13.4923 8.78893 13.1423 9.60004C12.7923 10.4112 12.3173 11.1167 11.7173 11.7167C11.1173 12.3167 10.4118 12.7917 9.60065 13.1417C8.78954 13.4917 7.92287 13.6667 7.00065 13.6667ZM7.00065 12.3334C8.48954 12.3334 9.75065 11.8167 10.784 10.7834C11.8173 9.75004 12.334 8.48893 12.334 7.00004C12.334 5.51115 11.8173 4.25004 10.784 3.21671C9.75065 2.18337 8.48954 1.66671 7.00065 1.66671C5.51176 1.66671 4.25065 2.18337 3.21732 3.21671C2.18398 4.25004 1.66732 5.51115 1.66732 7.00004C1.66732 8.48893 2.18398 9.75004 3.21732 10.7834C4.25065 11.8167 5.51176 12.3334 7.00065 12.3334Z",fill:"currentColor"},null,-1)])])}const Ze=P(Ti,[["render",Pi]]),Di=["innerHTML"],Ui={class:"log-size-container"},Mi={class:"log-size"},Ai={key:1,class:"cleared-log"},Ei={class:"log-size-container"},Ii={class:"log-size"},Oi={key:1,class:"cleared-log"},Bi={key:2,class:"aioseo-separator"},Fi={__name:"Logs",setup(i){const e="aioseo-pro",d=Y(),{getJsonValue:t,setJsonValue:s}=tt(),p=Q(null),_=Q({logs404:!1,redirectLogs:!1}),h=W(()=>({logSettings:o("Log Settings",e),logSettingsDescription:A(o("Track and record all redirect activity on your site, giving you clear insights into when and where redirects occur. For more information about privacy and the GDPR, please refer to %1$sour documentation%2$s.",e),'<a target="_blank" href="'+N.getDocUrl("redirectLogs")+'">',"</a>"),cleared:o("Cleared",e),clear404Logs:o("Clear 404 Logs",e),logs:o("Logs",e),clearRedirectLogs:o("Clear Redirect Logs",e),logs404:o("Log 404 Errors",e),redirectLogs:o("Log Redirect Hits",e),logExternal:o("Log External Redirects",e),logHttpHeader:o("Log HTTP Header Information",e),ipLogging:o("IP Logging",e),logIpAddresses:o("Log IP Addresses",e),fileSize:o("File Size",e),logHeaderInformationDescription:o("Capture HTTP header information with the logs (except for cookies).",e),logExternalDescription:A(o("Log redirects that happen on your site even if the redirect happened outside of %1$s",e),"AIOSEO")})),w=W(()=>[{label:o("1 hour",e),value:"hour"},{label:o("1 day",e),value:"day"},{label:o("1 week",e),value:"week"},{label:o("Forever",e),value:"forever"}]),H=W(()=>[{label:o("Full Logging",e),value:"full"},{label:o("Anonymize IP",e),value:"anonymous"}]),L=k=>{p.value=k,d.clearLog(k).then(()=>{p.value=null,_.value[k]=!0,setTimeout(()=>{_.value[k]=!1},1e3)})},R=k=>!d?.logSizes[k].original||_.value[k];return(k,f)=>{const S=g("base-button");return u(),b(c(F),{slug:"redirectLogsSettings",class:"redirects-logs-settings","header-text":h.value.logSettings},{default:n(()=>[r("div",null,[r("span",{innerHTML:h.value.logSettingsDescription},null,8,Di)]),f[11]||(f[11]=r("hr",{class:"aioseo-separator"},null,-1)),l(c(se),{name:h.value.logs,class:"redirects-logs"},{content:n(()=>[l(c(G),null,{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),{modelValue:c(d).options.logs.log404.enabled,"onUpdate:modelValue":f[0]||(f[0]=y=>c(d).options.logs.log404.enabled=y)},{default:n(()=>[m(a(h.value.logs404),1)]),_:1},8,["modelValue"])]),_:1}),l(c(I),null,{default:n(()=>[l(c(te),{size:"medium",options:w.value,disabled:!c(d).options.logs.log404.enabled,modelValue:c(t)(c(d).options.logs.log404.length),"onUpdate:modelValue":f[1]||(f[1]=y=>c(d).options.logs.log404.length=c(s)(y))},null,8,["options","disabled","modelValue"])]),_:1})]),_:1}),l(c(G),null,{default:n(()=>[l(c(I)),l(c(I),null,{default:n(()=>[r("div",Ui,[r("div",Mi,[m(a(h.value.fileSize)+": ",1),r("strong",null,a(c(d)?.logSizes.logs404?.readable||"0 B"),1)]),R("logs404")?C("",!0):(u(),b(S,{key:0,type:"gray",size:"small",loading:p.value==="logs404",onClick:f[2]||(f[2]=y=>L("logs404"))},{default:n(()=>[r("span",null,a(h.value.clear404Logs),1)]),_:1},8,["loading"])),_.value?.logs404?(u(),v("span",Ai,[l(c(Ze)),m(" "+a(h.value.cleared),1)])):C("",!0)])]),_:1})]),_:1}),f[10]||(f[10]=r("hr",{class:"aioseo-separator"},null,-1)),c(d).options.main.method==="php"?(u(),b(c(G),{key:0},{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),{modelValue:c(d).options.logs.redirects.enabled,"onUpdate:modelValue":f[3]||(f[3]=y=>c(d).options.logs.redirects.enabled=y)},{default:n(()=>[m(a(h.value.redirectLogs),1)]),_:1},8,["modelValue"])]),_:1}),l(c(I),null,{default:n(()=>[l(c(te),{size:"medium",options:w.value,disabled:!c(d).options.logs.redirects.enabled,modelValue:c(t)(c(d).options.logs.redirects.length),"onUpdate:modelValue":f[4]||(f[4]=y=>c(d).options.logs.redirects.length=c(s)(y))},null,8,["options","disabled","modelValue"])]),_:1})]),_:1})):C("",!0),c(d).options.main.method==="php"?(u(),b(c(G),{key:1},{default:n(()=>[l(c(I)),l(c(I),null,{default:n(()=>[r("div",Ei,[r("div",Ii,[m(a(h.value.fileSize)+": ",1),r("strong",null,a(c(d)?.logSizes.redirectLogs?.readable||"0 B"),1)]),R("redirectLogs")?C("",!0):(u(),b(S,{key:0,type:"gray",size:"small",loading:p.value==="redirectLogs",onClick:f[5]||(f[5]=y=>L("redirectLogs"))},{default:n(()=>[r("span",null,a(h.value.clearRedirectLogs),1)]),_:1},8,["loading"])),_.value?.redirectLogs?(u(),v("span",Oi,[l(c(Ze)),m(" "+a(h.value.cleared),1)])):C("",!0)])]),_:1})]),_:1})):C("",!0),c(d).options.logs.redirects.enabled&&c(d).options.main.method==="php"?(u(),v("hr",Bi)):C("",!0),c(d).options.logs.redirects.enabled&&c(d).options.main.method==="php"?(u(),b(c(G),{key:3},{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),{modelValue:c(d).options.logs.external,"onUpdate:modelValue":f[6]||(f[6]=y=>c(d).options.logs.external=y)},{default:n(()=>[m(a(h.value.logExternal)+" ",1),l(c(K),null,{tooltip:n(()=>[m(a(h.value.logExternalDescription),1)]),default:n(()=>[l(c(pe))]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):C("",!0),c(d).options.logs.redirects.enabled&&c(d).options.main.method==="php"||c(d).options.logs.log404.enabled?(u(),b(c(G),{key:4},{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),{modelValue:c(d).options.logs.httpHeader,"onUpdate:modelValue":f[7]||(f[7]=y=>c(d).options.logs.httpHeader=y)},{default:n(()=>[m(a(h.value.logHttpHeader)+" ",1),l(c(K),null,{tooltip:n(()=>[m(a(h.value.logHeaderInformationDescription),1)]),default:n(()=>[l(c(pe))]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):C("",!0)]),_:1},8,["name"]),c(d).options.logs.redirects.enabled&&c(d).options.main.method==="php"||c(d).options.logs.log404.enabled?(u(),b(c(se),{key:0,name:h.value.ipLogging,align:"",class:"redirects-ip-logging"},{content:n(()=>[l(c(G),null,{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),{modelValue:c(d).options.logs.ipAddress.enabled,"onUpdate:modelValue":f[8]||(f[8]=y=>c(d).options.logs.ipAddress.enabled=y)},{default:n(()=>[m(a(h.value.logIpAddresses),1)]),_:1},8,["modelValue"])]),_:1}),l(c(I),null,{default:n(()=>[l(c(te),{size:"medium",options:H.value,disabled:!c(d).options.logs.ipAddress.enabled,modelValue:c(t)(c(d).options.logs.ipAddress.level),"onUpdate:modelValue":f[9]||(f[9]=y=>c(d).options.logs.ipAddress.level=c(s)(y))},null,8,["options","disabled","modelValue"])]),_:1})]),_:1})]),_:1},8,["name"])):C("",!0)]),_:1},8,["header-text"])}}},zi={key:0,class:"aioseo-redirects-logs-section"},Zi=["innerHTML"],Ni=["innerHTML"],Yi={__name:"UpsellLogsSection",setup(i){const e="aioseo-pro",d=W(()=>({ctaButtonText:o("Unlock Redirect Logs",e),ctaHeader:o("Redirect Logs is a PRO Feature",e),ctaDescription:o("Gain full visibility into your site's redirects and 404 errors through detailed logs.<br />Monitor traffic patterns and identify issues early.",e),logSettings:o("Log Settings",e),logSettingsDescription:o("Track and record all redirect activity on your site, giving you clear insights into when and where redirects occur.",e),logs:o("Logs",e),logs404:o("Log 404 Errors",e),redirectLogs:o("Log Redirect Hits",e),logExternal:o("Log External Redirects",e),logHttpHeader:o("Log HTTP Header Information",e),ipLogging:o("IP Logging",e),logIpAddresses:o("Log IP Addresses",e),selectPlaceholder:o("Select",e),logHeaderInformationDescription:o("Capture HTTP header information with the logs (except for cookies).",e),logExternalDescription:A(o("Log redirects that happen on your site even if the redirect happened outside of %1$s",e),"AIOSEO"),trackRedirectsHits:o("Track Redirect Hits",e),track404Errors:o("Track 404 Errors",e),logHttpHeaders:o("Log HTTP Headers",e),logIpAddress:o("Log IP Addresses",e)}));return(t,s)=>c(Z).hasCoreFeature("redirects","logs")?C("",!0):(u(),v("div",zi,[l(c(ae),null,{default:n(()=>[l(c(F),{slug:"redirectLogsSettings",class:"redirects-logs-settings","header-text":d.value.logSettings},{default:n(()=>[r("div",null,[r("span",{innerHTML:c(fe)(d.value.logSettingsDescription)},null,8,Zi)]),s[2]||(s[2]=r("hr",{class:"aioseo-separator"},null,-1)),l(c(se),{name:d.value.logs,class:"redirects-logs"},{content:n(()=>[l(c(G),null,{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),null,{default:n(()=>[m(a(d.value.logs404),1)]),_:1})]),_:1}),l(c(I),null,{default:n(()=>[l(c(te),{size:"medium",options:[],disabled:!0,placeholder:d.value.selectPlaceholder},null,8,["placeholder"])]),_:1})]),_:1}),s[0]||(s[0]=r("hr",{class:"aioseo-separator"},null,-1)),l(c(G),null,{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),null,{default:n(()=>[m(a(d.value.redirectLogs),1)]),_:1})]),_:1}),l(c(I),null,{default:n(()=>[l(c(te),{size:"medium",options:[],disabled:!0,placeholder:d.value.selectPlaceholder},null,8,["placeholder"])]),_:1})]),_:1}),s[1]||(s[1]=r("hr",{class:"aioseo-separator"},null,-1)),l(c(G),null,{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),null,{default:n(()=>[m(a(d.value.logExternal)+" ",1),l(c(K),null,{tooltip:n(()=>[m(a(d.value.logExternalDescription),1)]),default:n(()=>[l(c(pe))]),_:1})]),_:1})]),_:1})]),_:1}),l(c(G),null,{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),null,{default:n(()=>[m(a(d.value.logHttpHeader)+" ",1),l(c(K),null,{tooltip:n(()=>[m(a(d.value.logHeaderInformationDescription),1)]),default:n(()=>[l(c(pe))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["name"]),l(c(se),{name:d.value.ipLogging,align:"",class:"redirects-ip-logging"},{content:n(()=>[l(c(G),null,{default:n(()=>[l(c(I),null,{default:n(()=>[l(c(q),null,{default:n(()=>[m(a(d.value.logIpAddresses),1)]),_:1})]),_:1}),l(c(I),null,{default:n(()=>[l(c(te),{size:"medium",options:[],disabled:!0,placeholder:d.value.selectPlaceholder},null,8,["placeholder"])]),_:1})]),_:1})]),_:1},8,["name"])]),_:1},8,["header-text"])]),_:1}),c(Z).hasCoreFeature("redirects","logs")?C("",!0):(u(),b(c(ve),{key:0,"cta-link":c(N).getPricingUrl("redirects","redirects","redirect-logs","pricing"),"button-text":d.value.ctaButtonText,"learn-more-link":c(N).getUpsellUrl("redirects","redirect-logs","pricing"),"feature-list":[d.value.trackRedirectsHits,d.value.track404Errors,d.value.logHttpHeaders,d.value.logIpAddress]},{"header-text":n(()=>[m(a(d.value.ctaHeader),1)]),description:n(()=>[r("div",{innerHTML:d.value.ctaDescription},null,8,Ni)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list"]))]))}},qi=P(Yi,[["__scopeId","data-v-b0abc0ee"]]),ji={__name:"LogsSection",setup(i){return(e,d)=>c(Z).hasCoreFeature("redirects","logs")?(u(),b(c(Fi),{key:1})):(u(),b(c(qi),{key:0}))}},Wi=P(ji,[["__scopeId","data-v-0ebb48b5"]]),x="aioseo-pro",Gi={setup(){const{getJsonValue:i,setJsonValue:e}=tt();return{license:Z,GLOBAL_STRINGS:_e,REDIRECT_QUERY_PARAMS:xe,REDIRECT_TYPES:Se,getJsonValue:i,redirectsStore:Y(),rootStore:le(),setJsonValue:e}},components:{BaseBoxToggle:ot,CoreAlert:Ce,CoreCard:F,CorePostTypeOptions:kt,CoreSettingsRow:se,ServerConfigReloadWarning:me,SvgGlobe:Ur,SvgPhpClean:Ir,SvgApacheServer:zr,SvgNginxServer:qr,TableColumn:I,TableRow:G,BaseSelect:te,Advanced404Section:Vi,SettingsLogsSection:Wi},data(){return{saving:!1,nginxLoading:!1,apacheLoading:!1,strings:{redirectSettings:o("Redirect Settings",x),redirectMethod:o("Redirect Method",x),unknownServer:A(o("We cannot detect your web server. Server redirects are disabled. %1$s",x),N.getDocLink(_e.learnMore,"redirectUnknownWebserver",!0)),php:o("PHP",x),webServer:o("Web Server",x),httpCacheHeader:o("HTTP Cache Header",x),redirectDefaults:o("Redirect Defaults",x),ignoreCase:o("Ignore Case",x),ignoreSlash:o("Ignore Slash",x),cacheRedirects:o("Cache Redirects",x),objectCache:o("Object Cache",x),redirectType:o("Redirect Type",x),queryParams:o("Query Parameters",x),exportNginxConfigFile:A(o("Export %1$s config file",x),"NGINX"),exportHtaccessFile:A(o("Export %1$s file",x),".htaccess"),autoWriteHtaccess:A(o("Auto-write to %1$s",x),".htaccess"),monitorChanges:o("Automatic Redirects",x),includeAllPostTypes:o("Include All Post Types",x),monitorTrash:o("Monitor Trashed & Deleted Posts",x),monitorChangesDescription:o('This allows you to monitor changes to post types and automatically add redirects based on URL changes.<br />These will be added under the group "Modified Posts".',x),redirectMethodDescription:o("Choose how redirects are processed on your server for optimal performance:",x),webServerPhpDescription:o("This is the easiest and most straightforward method, no technical setup required. It works out of the box (“plug & play”), making it ideal if you prefer a quick setup without editing server configuration files.",x),webServerNginxServerDescription:o("Export your redirect rules as an .nginx file to apply them directly on your NGINX server. After exporting, add the file’s contents to your site’s NGINX configuration to enable faster, server-level redirects for improved performance and reliability.",x),webServerApacheServerDescription:o("Export your redirect rules as an .htaccess file to apply them directly on your Apache server. After exporting, upload the file to your site's root directory to ensure faster, server-level redirects for optimal performance.",x)},lengthOptions:[{label:o("1 hour",x),value:"hour"},{label:o("1 day",x),value:"day"},{label:o("1 week",x),value:"week"},{label:o("Forever",x),value:"forever"}]}},computed:{detectedServer(){switch(this.rootStore.aioseo.data.server){case"apache":return"Apache";case"nginx":return"nginx";case"litespeed":return"LiteSpeed";default:return""}},missingInclude(){if(this.rootStore.aioseo.data.server.match(/apache|nginx/)){const i=this.rootStore.aioseo.data.server!=="apache"?"Include ":"include ",e=this.rootStore.aioseo.data.server==="nginx"?";":"",d="<br><code>"+i+this.redirectsStore.server.filePath+e+"</code>";return A(o("Make sure you include the following in your server configuration file: %1$s",x),d)}return this.rootStore.aioseo.data.server==="litespeed"?A(o("Please export the .htaccess file clicking the button below and copy/paste the contents into your %1$ssite's .htaccess file%2$s.",x),'<a href="?page=aioseo-tools#/htaccess-editor">',"</a>"):""},getDefaultRedirectType(){let i=this.getJsonValue(this.redirectsStore.options.redirectDefaults.redirectType);const e=Se.find(d=>parseInt(d.value)===parseInt(i?.value));return i||(i=Se[0]),e||i},getDefaultQueryParam(){let i=this.getJsonValue(this.redirectsStore.options.redirectDefaults.queryParam);const e=xe.find(d=>d.value===i?.value);return i||(i=xe[0]),e||i}},methods:{exportRedirects(i){this[i+"Loading"]=!0,this.redirectsStore.exportServerRedirects(i).then(e=>{this[i+"Loading"]=!1;const d=i==="apache"?"htaccess":i,t=new Blob([e.body.redirects]),s=document.createElement("a");s.href=URL.createObjectURL(t),s.download=`aioseo-export-redirects-${Ae().format("YYYY-MM-DD")}.${d}`,s.click(),URL.revokeObjectURL(s.href)})}}},Ji={class:"aioseo-redirects-settings"},Ki={class:"redirect-method-description"},Qi={key:0,class:"web-server-settings"},Xi={key:1,class:"web-server-settings"},$i={key:0},el={key:1},tl=["innerHTML"],ol={class:"option"},sl={class:"option"},rl={class:"option"},il={class:"option"},ll={class:"option"},nl={class:"aioseo-description"},al={class:"option"},dl={class:"aioseo-description"};function cl(i,e,d,t,s,p){const _=g("server-config-reload-warning"),h=g("svg-php-clean"),w=g("svg-apache-server"),H=g("svg-nginx-server"),L=g("svg-globe"),R=g("base-box-toggle"),k=g("core-alert"),f=g("base-button"),S=g("core-settings-row"),y=g("base-toggle"),U=g("table-column"),T=g("base-select"),V=g("table-row"),j=g("core-post-type-options"),X=g("core-card"),re=g("settings-logs-section"),he=g("advanced-404-section");return u(),v("div",Ji,[l(_),l(X,{slug:"redirectSettings","header-text":s.strings.redirectSettings},{default:n(()=>[l(S,{name:s.strings.redirectMethod},{content:n(()=>[r("div",Ki,a(s.strings.redirectMethodDescription),1),l(R,{modelValue:t.redirectsStore.options.main.method,"onUpdate:modelValue":e[0]||(e[0]=M=>t.redirectsStore.options.main.method=M),name:"breadcrumbsType",options:[{value:"php",slot:"php"},{value:"server",slot:"server"}]},{php:n(()=>[l(h),r("p",null,a(s.strings.php),1)]),server:n(()=>[t.rootStore.aioseo.data.server!=="nginx"?(u(),b(w,{key:0})):C("",!0),t.rootStore.aioseo.data.server==="nginx"?(u(),b(H,{key:1})):C("",!0),p.detectedServer?C("",!0):(u(),b(L,{key:2})),r("p",null,a(s.strings.webServer),1)]),_:1},8,["modelValue"]),t.redirectsStore.options.main.method==="php"?(u(),v("div",Qi,[r("span",null,a(s.strings.webServerPhpDescription),1)])):C("",!0),t.redirectsStore.options.main.method==="server"?(u(),v("div",Xi,[t.rootStore.aioseo.data.server==="nginx"?(u(),v("span",$i,a(s.strings.webServerNginxServerDescription),1)):C("",!0),t.rootStore.aioseo.data.server!=="nginx"?(u(),v("span",el,a(s.strings.webServerApacheServerDescription),1)):C("",!0),p.detectedServer?C("",!0):(u(),b(k,{key:2,class:"detected-web-server unknown",type:"red",innerHTML:s.strings.unknownServer},null,8,["innerHTML"])),t.rootStore.aioseo.data.server==="nginx"?(u(),b(f,{key:3,type:"black",size:"small",onClick:e[1]||(e[1]=M=>p.exportRedirects("nginx")),loading:s.nginxLoading},{default:n(()=>[m(a(s.strings.exportNginxConfigFile),1)]),_:1},8,["loading"])):C("",!0),t.rootStore.aioseo.data.server!=="nginx"?(u(),b(f,{key:4,type:"black",size:"small",onClick:e[2]||(e[2]=M=>p.exportRedirects("apache")),loading:s.apacheLoading},{default:n(()=>[m(a(s.strings.exportHtaccessFile),1)]),_:1},8,["loading"])):C("",!0)])):C("",!0)]),_:1},8,["name"]),t.redirectsStore.options.logs.redirects.enabled&&t.redirectsStore.options.main.method==="php"?(u(),b(S,{key:0,name:s.strings.httpCacheHeader,align:"",class:"redirects-cache"},{content:n(()=>[l(V,null,{default:n(()=>[l(U,null,{default:n(()=>[l(y,{modelValue:t.redirectsStore.options.cache.httpHeader.enabled,"onUpdate:modelValue":e[3]||(e[3]=M=>t.redirectsStore.options.cache.httpHeader.enabled=M)},{default:n(()=>[m(a(s.strings.cacheRedirects),1)]),_:1},8,["modelValue"])]),_:1}),l(U,null,{default:n(()=>[l(T,{size:"medium",options:s.lengthOptions,disabled:!t.redirectsStore.options.cache.httpHeader.enabled,modelValue:t.getJsonValue(t.redirectsStore.options.cache.httpHeader.length),"onUpdate:modelValue":e[4]||(e[4]=M=>t.redirectsStore.options.cache.httpHeader.length=t.setJsonValue(M))},null,8,["options","disabled","modelValue"])]),_:1})]),_:1})]),_:1},8,["name"])):C("",!0),l(S,{name:s.strings.monitorChanges,class:"redirects-monitor"},{name:n(()=>[m(a(s.strings.monitorChanges),1)]),content:n(()=>[r("div",{innerHTML:s.strings.monitorChangesDescription,class:"monitor-changes-description"},null,8,tl),r("div",ol,[l(y,{size:"medium",modelValue:t.redirectsStore.options.monitor.postTypes.all,"onUpdate:modelValue":e[5]||(e[5]=M=>t.redirectsStore.options.monitor.postTypes.all=M)},{default:n(()=>[m(a(s.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"])]),t.redirectsStore.options.monitor.postTypes.all?C("",!0):(u(),b(j,{key:0,options:t.redirectsStore.options.monitor,type:"postTypes",excluded:["attachment"]},null,8,["options"])),r("div",sl,[l(y,{size:"medium",modelValue:t.redirectsStore.options.monitor.trash,"onUpdate:modelValue":e[6]||(e[6]=M=>t.redirectsStore.options.monitor.trash=M)},{default:n(()=>[m(a(s.strings.monitorTrash),1)]),_:1},8,["modelValue"])])]),_:1},8,["name"]),l(S,{name:s.strings.redirectDefaults,class:"redirects-defaults"},{content:n(()=>[r("div",rl,[l(y,{modelValue:t.redirectsStore.options.redirectDefaults.ignoreSlash,"onUpdate:modelValue":e[7]||(e[7]=M=>t.redirectsStore.options.redirectDefaults.ignoreSlash=M)},{default:n(()=>[m(a(s.strings.ignoreSlash),1)]),_:1},8,["modelValue"])]),r("div",il,[l(y,{modelValue:t.redirectsStore.options.redirectDefaults.ignoreCase,"onUpdate:modelValue":e[8]||(e[8]=M=>t.redirectsStore.options.redirectDefaults.ignoreCase=M)},{default:n(()=>[m(a(s.strings.ignoreCase),1)]),_:1},8,["modelValue"])]),r("div",ll,[r("div",nl,a(s.strings.redirectType),1),l(T,{modelValue:p.getDefaultRedirectType,"onUpdate:modelValue":e[9]||(e[9]=M=>t.redirectsStore.options.redirectDefaults.redirectType=t.setJsonValue(M)),size:"medium",options:t.REDIRECT_TYPES},null,8,["modelValue","options"])]),r("div",al,[r("div",dl,a(s.strings.queryParams),1),l(T,{modelValue:p.getDefaultQueryParam,"onUpdate:modelValue":e[10]||(e[10]=M=>t.redirectsStore.options.redirectDefaults.queryParam=t.setJsonValue(M)),size:"medium",options:t.REDIRECT_QUERY_PARAMS},null,8,["modelValue","options"])])]),_:1},8,["name"])]),_:1},8,["header-text"]),l(re),l(he)])}const ul=P(Gi,[["render",cl]]),vn={__name:"Main",setup(i){const e="all-in-one-seo-pack",d=Ee(),t=nt(),s=W(()=>{if(d.isUnlicensed)return Me;switch(t.name){case"full-site-redirect":return Do;case"http-headers":return rs;case"import-export":return Zs;case"logs":return Lr;case"redirects":return Me;case"settings":return ul;default:return Me}}),p={pageName:o("Redirects",e)},_=W(()=>d.isUnlicensed||t.name==="http-headers"&&!Z.hasCoreFeature("redirects","http-headers")||t.name==="full-site-redirect"&&!Z.hasCoreFeature("redirects","full-site-redirect")?!1:t.name!=="redirects"&&t.name!=="groups"&&t.name!=="logs"&&t.name!=="import-export"),h=Y(),w=W(()=>{const H=[],L=h.options?.logs?.redirects?.enabled||h.options?.logs?.log404?.enabled;return Z.hasCoreFeature("redirects","logs")&&(!L||h.options?.main?.method==="server")&&H.push("logs"),H});return(H,L)=>(u(),b(c(mt),{"page-name":p.pageName,"show-save-button":_.value,"exclude-tabs":w.value,"disable-tabs":c(d).isUnlicensed},{default:n(()=>[(u(),b(at(s.value)))]),_:1},8,["page-name","show-save-button","exclude-tabs","disable-tabs"]))}};export{vn as default};
|