OwlCyberSecurity - MANAGER
Edit File: blocks.BjiFwvfx.js
import{_ as y,s as R}from"./js/default-i18n.DXRQgkn2.js";import{v as b,o as f,c as _,B as g,l as $,C as S,t as m,a as p,E as we,k as q,b as k,F as Ne,J as vt,G as ye,V as J,h as oe,A as Dt,q as qt}from"./js/runtime-dom.esm-bundler.tPRhSV4q.js";import{l as se}from"./js/index.Cql7WwLY.js";import{l as Ut,B as Ae,b as Ee,d as He}from"./js/index.BR_tv7_M.js";import{l as zt}from"./js/index.3BJ3ZnWB.js";import{a as $e,u as N,l as St,b as ae,ab as ge,ac as Rt,ad as De,r as Lt,ae as he,z as Ft,y as jt,af as Zt}from"./js/links.DOdXC3mL.js";import{K as M,J as Wt}from"./js/helpers.CXsRrhc8.js";import{J as Qt}from"./js/JsonValues.D25FTfEu.js";import{S as Jt}from"./js/AddPlus.D4iYGpm1.js";import{S as kt}from"./js/Caret.Ke5gylGO.js";import{S as Gt}from"./js/External.BnlDuPIp.js";import{_ as H}from"./js/_plugin-vue_export-helper.BN1snXvA.js";import{B as Kt}from"./js/HighlightToggle.BSgW2-gF.js";import{C as qe}from"./js/Tooltip.DhkkBQWW.js";import{G as Yt,a as Xt}from"./js/Row.DRnp1mVs.js";import{P as eo}from"./js/PostTypes.Cef6XkQ_.js";import{C as to}from"./js/ImageUploader.B1g2n_4O.js";import{c as xe}from"./js/cleanForSlug.BVGRQ_59.js";import{D as oo,S as so}from"./js/Drag.BGg_sY81.js";import{S as no}from"./js/Eye.-Y-JbPGO.js";import{C as ao}from"./js/Index.TmE1UuyD.js";import{C as io}from"./js/Index.DyvJ1GBk.js";import{G as lo}from"./js/constants.qeJG2F0i.js";import{d as je}from"./js/debounce.CMPzYXJX.js";import"./js/Checkbox.CmdF-nFt.js";import"./js/Checkmark.DOG99yeO.js";import"./js/Img.fGyIsoH4.js";import"./js/Plus.CG1QxokA.js";import"./js/toString.zLSwYOtv.js";import"./js/_baseTrim.BYZhh0MR.js";import"./js/_stringToArray.DnK4tKcY.js";import"./js/toNumber.BAPajc32.js";const ve=window.wp,me=ve.element.createElement,ro=ve.element.Fragment,co=ve.components.Disabled,uo=ve.serverSideRender||ve.components.ServerSideRender,po="all-in-one-seo-pack",ho=me("svg",{width:24,height:25,viewBox:"0 0 24 25",xmlns:"http://www.w3.org/2000/svg"},me("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"})),It="aioseo/breadcrumbs",mo={title:y("AIOSEO - Breadcrumbs",po),category:"aioseo",icon:ho,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)})}),me(ro,{},me("div",{},me(window.aioseo.options.breadcrumbs.enable?co:"div",null,me(uo,{block:It,attributes:{primaryTerm:n.primaryTerm}}))))},save:function(){return null}},go=Object.freeze(Object.defineProperty({__proto__:null,name:It,settings:mo},Symbol.toStringTag,{value:"Module"}));var Ct=function(e,t,n,s){var o;t[0]=0;for(var i=1;i<t.length;i++){var l=t[i++],r=t[i]?(t[0]|=l?1:2,n[t[i++]]):t[++i];l===3?s[0]=r:l===4?s[1]=Object.assign(s[1]||{},r):l===5?(s[1]=s[1]||{})[t[++i]]=r:l===6?s[1][t[++i]]+=r+"":l?(o=e.apply(r,Ct(e,r,n,["",null])),s.push(o),r[0]?t[0]|=2:(t[i-2]=0,t[i]=o)):s.push(r)}return s},Ze=new Map;function fo(e){var t=Ze.get(this);return t||(t=new Map,Ze.set(this,t)),(t=Ct(this,t.get(e)||(t.set(e,t=function(n){for(var s,o,i=1,l="",r="",d=[0],a=function(h){i===1&&(h||(l=l.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?d.push(0,h,l):i===3&&(h||l)?(d.push(3,h,l),i=2):i===2&&l==="..."&&h?d.push(4,h,0):i===2&&l&&!h?d.push(5,0,!0,l):i>=5&&((l||!h&&i===5)&&(d.push(i,0,l,o),i=6),h&&(d.push(i,h,0,o),i=6)),l=""},u=0;u<n.length;u++){u&&(i===1&&a(),a(u));for(var c=0;c<n[u].length;c++)s=n[u][c],i===1?s==="<"?(a(),d=[d],i=3):l+=s:i===4?l==="--"&&s===">"?(i=1,l=""):l=s+l[0]:r?s===r?r="":l+=s:s==='"'||s==="'"?r=s:s===">"?(a(),i=1):i&&(s==="="?(i=5,o=l,l=""):s==="/"&&(i<5||n[u][c+1]===">")?(a(),i===3&&(d=d[0]),i=d,(d=d[0]).push(2,0,i),i=0):s===" "||s===" "||s===` `||s==="\r"?(a(),i=2):l+=s),i===3&&l==="!--"&&(i=4,d=d[0])}return a(),d}(e)),t),arguments,[])).length>1?t:t[0]}const le=fo.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 i(){return e===t}const l=Me(e);return l!==Me(t)?!1:l==="array"?n():l==="object"?s():l==="function"?o():i()},te=e=>{const t=d=>{for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(d[a]=te(e[a]))},n=()=>{const d={};return t(d),d},s=()=>e.map(function(d){return te(d)}),o=()=>{const d=new Map;for(const[a,u]of e)d.set(a,te(u));return d},i=()=>{const d=new Set;for(const a of e)d.add(te(a));return d},l=()=>{const d=e.bind(void 0);return t(d),d},r=Me(e);return r==="object"?n():r==="array"?s():r==="map"?o():r==="set"?i():r==="function"?l():e},Vt=(e,t=!1)=>{const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const s=n.getElementsByTagName("*");let o=s.length;for(;o--;){const i=s[o];if(i.tagName==="SCRIPT")i.parentNode.removeChild(i);else{let l=i.attributes.length;for(;l--;){const{name:r}=i.attributes[l];r.startsWith("on")&&i.removeAttribute(r)}}}return t?n.textContent.trim():n.innerHTML},$o=()=>"aioseo-"+new Date().getTime().toString(36),ne=(e,t)=>{const n=t.findIndex(s=>s.clientId===e);n!==-1&&(t[n].app.unmount(),t.splice(n,1))},bo={setup(){return{optionsStore:$e()}},components:{SvgAddPlus:Jt,SvgClose:kt,SvgExternal:Gt},mixins:[Qt],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>')}}},_o={class:"aioseo-exclude-posts"},wo={class:"option"},yo=["innerHTML"],vo={class:"option-details"},So=["href"],Lo={class:"multiselect__tag"},ko={class:"multiselect__tag-value"},Io=["onClick"];function Co(e,t,n,s,o,i){const l=b("svg-add-plus"),r=b("base-button"),d=b("svg-external"),a=b("svg-close"),u=b("base-select");return f(),_("div",_o,[g(u,{options:o.excludeOptions,"ajax-search":i.processGetObjects,size:"medium",multiple:"",modelValue:e.getJsonValues(i.optionName),"onUpdate:modelValue":t[0]||(t[0]=c=>i.optionName=e.setJsonValues(c)),placeholder:o.strings.typeToSearch},{noOptions:$(()=>[S(m(i.noOptions),1)]),noResult:$(()=>[S(m(o.strings.noResult),1)]),caret:$(({toggle:c})=>[g(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:c},{default:$(()=>[g(l,{style:{width:"14px",height:"14px",color:"black"}})]),_:2},1032,["onClick"])]),option:$(({option:c,search:h})=>[p("div",wo,[p("div",{class:"option-title",innerHTML:i.getOptionTitle(c.label,h)},null,8,yo),p("div",vo,[p("span",null,m(o.strings.id)+": #"+m(c.value),1),p("span",null,m(o.strings.type)+": "+m(c.type),1)])]),p("a",{class:"option-permalink",href:c.link,target:"_blank",onClick:we(()=>{},["stop"])},[g(d)],8,So)]),tag:$(({option:c,remove:h})=>[p("div",Lo,[p("div",ko,m(c.label)+" - #"+m(c.value),1),p("div",{class:"multiselect__tag-remove",onClick:we(w=>h(c),["stop"])},[g(a,{onClick:we(w=>h(c),["stop"])},null,8,["onClick"])],8,Io)])]),_:1},8,["options","ajax-search","modelValue","placeholder"]),g(r,{type:"gray",size:"small",onClick:t[1]||(t[1]=c=>i.optionName=[])},{default:$(()=>[S(m(o.strings.clear),1)]),_:1})])}const Vo=H(bo,[["render",Co]]),Oo={setup(){return{rootStore:N()}},components:{BaseHighlightToggle:Kt,CoreTooltip:qe,GridColumn:Yt,GridRow:Xt},mixins:[eo],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}}},To={class:"aioseo-included-objects-toggle"},Bo={class:"included-objects-settings"},Ao={class:"aioseo-description"},Eo=p("br",null,null,-1);function Po(e,t,n,s,o,i){const l=b("base-toggle"),r=b("core-tooltip"),d=b("base-highlight-toggle"),a=b("grid-column"),u=b("grid-row");return f(),_("div",To,[p("div",Bo,[n.type==="post_types"?(f(),q(l,{key:0,size:"medium",modelValue:e.$root.$data.post_types_all,"onUpdate:modelValue":t[0]||(t[0]=c=>e.$root.$data.post_types_all=c)},{default:$(()=>[S(m(o.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"])):k("",!0),n.type==="taxonomies"?(f(),q(l,{key:1,size:"medium",modelValue:e.$root.$data.taxonomies_all,"onUpdate:modelValue":t[1]||(t[1]=c=>e.$root.$data.taxonomies_all=c)},{default:$(()=>[S(m(o.strings.includeAllTaxonomies),1)]),_:1},8,["modelValue"])):k("",!0),0<i.objects.length&&!i.includeAllSetting?(f(),q(u,{key:2,class:"aioseo-included-list"},{default:$(()=>[(f(!0),_(Ne,null,vt(i.objects,(c,h)=>(f(),q(a,{md:"6",key:h},{default:$(()=>[g(d,{size:"medium",active:i.isActive(c),name:c.name,type:"checkbox",modelValue:i.getValue(c),"onUpdate:modelValue":w=>i.updateValue(w,c)},{default:$(()=>[g(r,null,{tooltip:$(()=>[p("div",Ao,[S(m(o.strings.label)+" ",1),p("strong",null,m(c.label),1),Eo,S(" "+m(o.strings.name)+" ",1),p("strong",null,m(c.name),1)])]),default:$(()=>[p("span",{class:ye(["icon dashicons",e.getPostIconClass(c.icon)])},null,2)]),_:2},1024),S(" "+m(c.label),1)]),_:2},1032,["active","name","modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1})):k("",!0)])])}const xo=H(Oo,[["render",Po]]),Mo={components:{HtmlSitemapExcludeObjects:Vo,HtmlSitemapIncludedObjects:xo},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)}}},No={class:"aioseo-sidebar-row"},Ho={class:"aioseo-sidebar-row"},Do={key:0,class:"aioseo-sidebar-row"},qo={key:1,class:"aioseo-sidebar-row"},Uo={key:2,class:"aioseo-sidebar-row"},zo={class:"aioseo-sidebar-title"},Ro={key:3,class:"aioseo-sidebar-row"},Fo={class:"aioseo-sidebar-title"},jo={key:4,class:"aioseo-sidebar-row"},Zo={class:"aioseo-sidebar-title"},Wo={class:"aioseo-sidebar-row"},Qo={class:"aioseo-sidebar-title"},Jo={key:5,class:"aioseo-sidebar-row"},Go={class:"aioseo-sidebar-title"},Ko={key:6,class:"aioseo-sidebar-row"},Yo={class:"aioseo-sidebar-title"};function Xo(e,t,n,s,o,i){const l=b("base-toggle"),r=b("html-sitemap-included-objects"),d=b("base-select"),a=b("html-sitemap-exclude-objects");return f(),_("div",null,[p("div",No,[g(l,{modelValue:e.$root.$data.default,"onUpdate:modelValue":t[0]||(t[0]=u=>e.$root.$data.default=u)},{default:$(()=>[S(m(o.strings.useDefault),1)]),_:1},8,["modelValue"])]),e.$root.$data.default?k("",!0):(f(),_(Ne,{key:0},[p("div",Ho,[g(l,{modelValue:e.$root.$data.archives,"onUpdate:modelValue":t[1]||(t[1]=u=>e.$root.$data.archives=u)},{default:$(()=>[S(m(o.strings.archives),1)]),_:1},8,["modelValue"])]),e.$root.$data.archives?k("",!0):(f(),_("div",Do,[g(l,{modelValue:e.$root.$data.show_label,"onUpdate:modelValue":t[2]||(t[2]=u=>e.$root.$data.show_label=u)},{default:$(()=>[S(m(o.strings.showLabel),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?k("",!0):(f(),_("div",qo,[g(l,{modelValue:e.$root.$data.publication_date,"onUpdate:modelValue":t[3]||(t[3]=u=>e.$root.$data.publication_date=u)},{default:$(()=>[S(m(o.strings.publicationDate),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?k("",!0):(f(),_("div",Uo,[p("p",zo,m(o.strings.postTypes),1),g(r,{type:"post_types",excluded:["attachment"]})])),e.$root.$data.archives?k("",!0):(f(),_("div",Ro,[p("p",Fo,m(o.strings.taxonomies),1),g(r,{type:"taxonomies"})])),e.$root.$data.archives?k("",!0):(f(),_("div",jo,[p("p",Zo,m(o.strings.sortOrder),1),g(d,{size:"medium",options:o.sortOrders,modelValue:i.getSortOrder(this.$root.$data.order_by),"onUpdate:modelValue":t[4]||(t[4]=u=>this.$root.$data.order_by=u.value),"track-by":"value"},null,8,["options","modelValue"])])),p("div",Wo,[p("p",Qo,m(o.strings.sortDirection),1),g(d,{size:"medium",options:o.sortDirections,modelValue:i.getSortDirection(this.$root.$data.order),"onUpdate:modelValue":t[5]||(t[5]=u=>this.$root.$data.order=u.value),"track-by":"value"},null,8,["options","modelValue"])]),e.$root.$data.archives?k("",!0):(f(),_("div",Jo,[p("p",Go,m(o.strings.excludePostsPages),1),g(a,{type:"posts"})])),e.$root.$data.archives?k("",!0):(f(),_("div",Ko,[p("p",Yo,m(o.strings.excludeTerms),1),g(a,{type:"terms"})]))],64))])}const es=H(Mo,[["render",Xo]]),G=window.wp,F=G.element.createElement,ts=G.element.Fragment,os=G.serverSideRender||G.components.ServerSideRender;var ft;const ss=((ft=G.blockEditor)==null?void 0:ft.InspectorControls)||G.editor.InspectorControls,ns=G.components.PanelBody,as=G.components.Disabled,We="all-in-one-seo-pack",is=F("svg",{width:25,height:25,viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},F("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"})),Pe={},Qe=[],Ot="aioseo/html-sitemap",ls={title:y("AIOSEO - HTML Sitemap",We),category:"aioseo",icon:is,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:i,toggleSelection:l}=e,r="aioseo-"+o,d={id:r,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(c){ne(o,Qe);let h=J({name:"Blocks/HtmlSitemap",data:function(){return Pe[o]},watch:{$data:{handler:function(w){t(w)},deep:!0}},render:()=>oe(es)});h=se(h),h=Ut(h),h=zt(h),St(h),h.mount(c),Qe.push({clientId:o,app:h})}};i&&(Pe[o]={},Object.keys(n).forEach(c=>{Pe[o][c]=n[c]}),M(d)),G.data.useSelect(c=>c("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof l!="function"||l(!0));const u=F(ss,null,F(ns,{title:y("Display Settings",We),initialOpen:!0,onToggle:()=>{M(d)}},F("div",null,F("div",{id:r},null))));return F(ts,{},u,F("div",{className:s},F(as,null,F(os,{block:Ot,attributes:{...n}}))))},save:function(){return null}},rs=Object.freeze(Object.defineProperty({__proto__:null,name:Ot,settings:ls},Symbol.toStringTag,{value:"Module"})),ds={setup(){return{postEditorStore:ae(),rootStore:N()}},components:{BaseInput:Ae,BaseSelect:Ee,BaseToggle:He},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})})}},cs={key:0,class:"sidebar-row"},us={class:"title"},ps={class:"sidebar-row"},hs={class:"sidebar-row"},ms={class:"sidebar-row"},gs={class:"title"},fs={class:"sidebar-row"},$s={class:"sidebar-row"},bs={class:"sidebar-row"},_s={class:"sidebar-row"},ws={key:1,class:"sidebar-row"},ys={class:"sidebar-row"},vs={class:"sidebar-row"},Ss={class:"sidebar-row"},Ls={key:2},ks={class:"sidebar-row"},Is={class:"title"},Cs={class:"sidebar-row labels"},Vs={key:0},Os={key:1},Ts={key:2},Bs={key:3},As={key:4},Es={key:5};function Ps(e,t,n,s,o,i){const l=b("base-select"),r=b("base-toggle"),d=b("base-input");return f(),_("div",null,[o.locationsList.length&&!i.isLocationPostType()?(f(),_("div",cs,[p("p",us,m(o.strings.selectLocation),1),g(l,{size:"medium",options:o.locationsList,modelValue:i.getLocationOptions(this.$root.$data.locationId),"onUpdate:modelValue":t[0]||(t[0]=a=>this.$root.$data.locationId=a.value),"track-by":"value"},null,8,["options","modelValue"])])):k("",!0),p("div",ps,[g(r,{modelValue:e.$root.$data.showLabels,"onUpdate:modelValue":t[1]||(t[1]=a=>e.$root.$data.showLabels=a)},{default:$(()=>[S(m(o.strings.showLabels),1)]),_:1},8,["modelValue"])]),p("div",hs,[g(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=a=>e.$root.$data.showIcons=a)},{default:$(()=>[S(m(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),p("div",ms,[p("p",gs,m(o.strings.businessInfo),1)]),p("div",fs,[g(r,{modelValue:e.$root.$data.showName,"onUpdate:modelValue":t[3]||(t[3]=a=>e.$root.$data.showName=a)},{default:$(()=>[S(m(o.strings.showName),1)]),_:1},8,["modelValue"])]),p("div",$s,[g(r,{modelValue:e.$root.$data.showAddress,"onUpdate:modelValue":t[4]||(t[4]=a=>e.$root.$data.showAddress=a)},{default:$(()=>[S(m(o.strings.address),1)]),_:1},8,["modelValue"])]),p("div",bs,[g(r,{modelValue:e.$root.$data.showPhone,"onUpdate:modelValue":t[5]||(t[5]=a=>e.$root.$data.showPhone=a)},{default:$(()=>[S(m(o.strings.phoneNumber),1)]),_:1},8,["modelValue"])]),p("div",_s,[g(r,{modelValue:e.$root.$data.showFax,"onUpdate:modelValue":t[6]||(t[6]=a=>e.$root.$data.showFax=a)},{default:$(()=>[S(m(o.strings.faxNumber),1)]),_:1},8,["modelValue"])]),e.$root.$data.showPhone||e.$root.$data.showFax?(f(),_("div",ws,[g(r,{modelValue:e.$root.$data.showCountryCode,"onUpdate:modelValue":t[7]||(t[7]=a=>e.$root.$data.showCountryCode=a)},{default:$(()=>[S(m(o.strings.countryCode),1)]),_:1},8,["modelValue"])])):k("",!0),p("div",ys,[g(r,{modelValue:e.$root.$data.showEmail,"onUpdate:modelValue":t[8]||(t[8]=a=>e.$root.$data.showEmail=a)},{default:$(()=>[S(m(o.strings.emailAddress),1)]),_:1},8,["modelValue"])]),p("div",vs,[g(r,{modelValue:e.$root.$data.showVat,"onUpdate:modelValue":t[9]||(t[9]=a=>e.$root.$data.showVat=a)},{default:$(()=>[S(m(o.strings.showVat),1)]),_:1},8,["modelValue"])]),p("div",Ss,[g(r,{modelValue:e.$root.$data.showTax,"onUpdate:modelValue":t[10]||(t[10]=a=>e.$root.$data.showTax=a)},{default:$(()=>[S(m(o.strings.showTax),1)]),_:1},8,["modelValue"])]),e.$root.$data.showLabels?(f(),_("div",Ls,[p("div",ks,[p("p",Is,m(o.strings.labels),1)]),p("div",Cs,[e.$root.$data.showAddress?(f(),_("div",Vs,[p("label",null,m(o.strings.addressLabel),1),g(d,{size:"small",modelValue:e.$root.$data.addressLabel,"onUpdate:modelValue":t[11]||(t[11]=a=>e.$root.$data.addressLabel=a)},null,8,["modelValue"])])):k("",!0),e.$root.$data.showVat?(f(),_("div",Os,[p("label",null,m(o.strings.vatIdLabel),1),g(d,{size:"small",modelValue:e.$root.$data.vatIdLabel,"onUpdate:modelValue":t[12]||(t[12]=a=>e.$root.$data.vatIdLabel=a)},null,8,["modelValue"])])):k("",!0),e.$root.$data.showTax?(f(),_("div",Ts,[p("label",null,m(o.strings.taxIdLabel),1),g(d,{size:"small",modelValue:e.$root.$data.taxIdLabel,"onUpdate:modelValue":t[13]||(t[13]=a=>e.$root.$data.taxIdLabel=a)},null,8,["modelValue"])])):k("",!0),e.$root.$data.showPhone?(f(),_("div",Bs,[p("label",null,m(o.strings.phoneLabel),1),g(d,{size:"small",modelValue:e.$root.$data.phoneLabel,"onUpdate:modelValue":t[14]||(t[14]=a=>e.$root.$data.phoneLabel=a)},null,8,["modelValue"])])):k("",!0),e.$root.$data.showFax?(f(),_("div",As,[p("label",null,m(o.strings.faxLabel),1),g(d,{size:"small",modelValue:e.$root.$data.faxLabel,"onUpdate:modelValue":t[15]||(t[15]=a=>e.$root.$data.faxLabel=a)},null,8,["modelValue"])])):k("",!0),e.$root.$data.showEmail?(f(),_("div",Es,[p("label",null,m(o.strings.emailLabel),1),g(d,{size:"small",modelValue:e.$root.$data.emailLabel,"onUpdate:modelValue":t[16]||(t[16]=a=>e.$root.$data.emailLabel=a)},null,8,["modelValue"])])):k("",!0)])])):k("",!0)])}const xs=H(ds,[["render",Ps],["__scopeId","data-v-8ebccde0"]]),j=window.wp,E=j.element.createElement,be=j.element.Fragment;var $t;const Ms=(($t=j.blockEditor)==null?void 0:$t.InspectorControls)||j.editor.InspectorControls,Ns=j.components.PanelBody,Hs=j.components.Disabled,Ds=j.serverSideRender||j.components.ServerSideRender,qs=j.data.withSelect,U="all-in-one-seo-pack",Us=E("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},E("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"})),Se={},Je=[],Ge=[],Tt="aioseo/businessinfo",zs={title:y("AIOSEO Local - Business Info",U),category:"aioseo",icon:Us,example:{},attributes:{locationId:{type:"number",default:null},showLabels:{type:"boolean",default:!0},addressLabel:{type:"string",default:y("Address:",U)},vatIdLabel:{type:"string",default:y("VAT ID:",U)},taxIdLabel:{type:"string",default:y("Tax ID:",U)},phoneLabel:{type:"string",default:y("Phone:",U)},faxLabel:{type:"string",default:y("Fax:",U)},emailLabel:{type:"string",default:y("Email:",U)},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:qs(function(e){const t=N();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var v;const n=(v=$e().options.localBusiness)==null?void 0:v.locations.general.multiple,{setAttributes:s,attributes:o,className:i,clientId:l,isSelected:r,toggleSelection:d}=e;let{locations:a}=e;const u="aioseo-"+l;if(n&&a===null)return E(be,{},E("div",{},y("Loading...",U)));if(a=a===null?[]:a,!n&&o.locationId)return E(be,{},E("div",{},y("Please enable multiple locations before using this block.",U)));const c=N();if(n&&a.length===0)return E(be,{},E("div",{},R(y("No %1$s found",U),c.aioseo.localBusiness.postTypePluralLabel)));const h=ae();o.locationId=!o.locationId&&h.currentPost.postType===c.aioseo.localBusiness.postTypeName?h.currentPost.id:o.locationId;const w={id:u,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(L){ne(l,Je);let C=J({name:"Blocks/BusinessInfo",data:function(){return Se[l]},watch:{$data:{handler:function(D){s(D)},deep:!0}},render:()=>oe(xs)});C=se(C),C.mount(L),Je.push({clientId:l,app:C})}};r&&(Se[l]={},Object.keys(o).forEach(L=>{Se[l][L]=o[L]}),Se[l].locations=a,M(w)),j.data.useSelect(L=>L("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof d!="function"||d(!0)),h.currentPost.postType===c.aioseo.localBusiness.postTypeName&&M({id:u+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){ne(l,Ge);let C=J({name:"Blocks/BusinessInfoWatcher",data:function(){return h.currentPost.local_seo.locations.business},watch:{$data:{handler:function(){s({updated:Date.now()})},deep:!0}},render:()=>oe("div")});C=se(C),C.mount(L),Ge.push({clientId:l,app:C})}});const A=E(Ms,null,E(Ns,{title:y("Display Settings",U),initialOpen:!0,onToggle:()=>{M(w)}},E("div",null,E("div",{id:u},null))));return n&&!o.locationId?E(be,{},A,E("div",{},R(y("Select a %1$s",U),c.aioseo.localBusiness.postTypeSingleLabel))):E(be,{},A,E("div",{className:i},E(Hs,null,E(Ds,{block:Tt,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:h.currentPost.postType===c.aioseo.localBusiness.postTypeName?JSON.stringify(h.currentPost.local_seo.locations.business):null}})),E("div",{},E("div",{id:u+"-watcher"},null))))}),save:function(){return null}},Rs=Object.freeze(Object.defineProperty({__proto__:null,name:Tt,settings:zs},Symbol.toStringTag,{value:"Module"})),Fs={setup(){return{postEditorStore:ae(),rootStore:N()}},components:{BaseInput:Ae,BaseSelect:Ee,BaseToggle:He},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})})}},js={key:0,class:"sidebar-row"},Zs={class:"title"},Ws={class:"sidebar-row"},Qs={class:"sidebar-row"},Js={class:"sidebar-row"},Gs={class:"sidebar-row"},Ks={class:"sidebar-row"},Ys={class:"sidebar-row"},Xs={class:"sidebar-row"},en={class:"sidebar-row"},tn={class:"sidebar-row"},on={key:1,class:"sidebar-row labels"};function sn(e,t,n,s,o,i){const l=b("base-select"),r=b("base-toggle"),d=b("base-input");return f(),_("div",null,[o.locationsList.length&&!i.isLocationPostType()?(f(),_("div",js,[p("p",Zs,m(o.strings.selectLocation),1),g(l,{size:"medium",options:o.locationsList,modelValue:i.getLocationOptions(this.$root.$data.locationId),"onUpdate:modelValue":t[0]||(t[0]=a=>this.$root.$data.locationId=a.value),"track-by":"value"},null,8,["options","modelValue"])])):k("",!0),p("div",Ws,[g(r,{modelValue:e.$root.$data.showTitle,"onUpdate:modelValue":t[1]||(t[1]=a=>e.$root.$data.showTitle=a)},{default:$(()=>[S(m(o.strings.showTitle),1)]),_:1},8,["modelValue"])]),p("div",Qs,[g(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=a=>e.$root.$data.showIcons=a)},{default:$(()=>[S(m(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),p("div",Js,[g(r,{modelValue:e.$root.$data.showMonday,"onUpdate:modelValue":t[3]||(t[3]=a=>e.$root.$data.showMonday=a)},{default:$(()=>[S(m(o.strings.Monday),1)]),_:1},8,["modelValue"])]),p("div",Gs,[g(r,{modelValue:e.$root.$data.showTuesday,"onUpdate:modelValue":t[4]||(t[4]=a=>e.$root.$data.showTuesday=a)},{default:$(()=>[S(m(o.strings.Tuesday),1)]),_:1},8,["modelValue"])]),p("div",Ks,[g(r,{modelValue:e.$root.$data.showWednesday,"onUpdate:modelValue":t[5]||(t[5]=a=>e.$root.$data.showWednesday=a)},{default:$(()=>[S(m(o.strings.Wednesday),1)]),_:1},8,["modelValue"])]),p("div",Ys,[g(r,{modelValue:e.$root.$data.showThursday,"onUpdate:modelValue":t[6]||(t[6]=a=>e.$root.$data.showThursday=a)},{default:$(()=>[S(m(o.strings.Thursday),1)]),_:1},8,["modelValue"])]),p("div",Xs,[g(r,{modelValue:e.$root.$data.showFriday,"onUpdate:modelValue":t[7]||(t[7]=a=>e.$root.$data.showFriday=a)},{default:$(()=>[S(m(o.strings.Friday),1)]),_:1},8,["modelValue"])]),p("div",en,[g(r,{modelValue:e.$root.$data.showSaturday,"onUpdate:modelValue":t[8]||(t[8]=a=>e.$root.$data.showSaturday=a)},{default:$(()=>[S(m(o.strings.Saturday),1)]),_:1},8,["modelValue"])]),p("div",tn,[g(r,{modelValue:e.$root.$data.showSunday,"onUpdate:modelValue":t[9]||(t[9]=a=>e.$root.$data.showSunday=a)},{default:$(()=>[S(m(o.strings.Sunday),1)]),_:1},8,["modelValue"])]),e.$root.$data.showTitle?(f(),_("div",on,[p("label",null,m(o.strings.label),1),g(d,{size:"small",modelValue:e.$root.$data.label,"onUpdate:modelValue":t[10]||(t[10]=a=>e.$root.$data.label=a)},null,8,["modelValue"])])):k("",!0)])}const nn=H(Fs,[["render",sn],["__scopeId","data-v-79ea0c66"]]),Z=window.wp,P=Z.element.createElement,_e=Z.element.Fragment;var bt;const an=((bt=Z.blockEditor)==null?void 0:bt.InspectorControls)||Z.editor.InspectorControls,ln=Z.components.PanelBody,rn=Z.components.Disabled,dn=Z.serverSideRender||Z.components.ServerSideRender,cn=Z.data.withSelect,ie="all-in-one-seo-pack",un=P("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},P("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"})),Le={},Ke=[],Ye=[],Bt="aioseo/openinghours",pn={title:y("AIOSEO Local - Opening Hours",ie),category:"aioseo",icon:un,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:y("Our Opening Hours:",ie)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},edit:cn(function(e){const t=N();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var v;const n=(v=$e().options.localBusiness)==null?void 0:v.locations.general.multiple,{setAttributes:s,attributes:o,className:i,clientId:l,isSelected:r,toggleSelection:d}=e;let{locations:a}=e;const u=`aioseo-${l}-settings`;if(n&&a===null)return P(_e,{},P("div",{},y("Loading...",ie)));if(a=a===null?[]:a,!n&&o.locationId)return P(_e,{},P("div",{},y("Please enable multiple locations before using this block.",ie)));const c=N();if(n&&a.length===0)return P(_e,{},P("div",{},R(y("No %1$s found",ie),c.aioseo.localBusiness.postTypePluralLabel)));const h=ae();o.locationId=!o.locationId&&h.currentPost.postType===c.aioseo.localBusiness.postTypeName?h.currentPost.id:o.locationId;const w={id:u,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(L){ne(l,Ke);let C=J({name:"Blocks/OpeningHours",data:function(){return Le[l]},watch:{$data:{handler:function(D){s(D)},deep:!0}},render:()=>oe(nn)});C=se(C),C.mount(L),Ke.push({clientId:l,app:C})}};r&&(Le[l]={},Object.keys(o).forEach(L=>{Le[l][L]=o[L]}),Le[l].locations=a,M(w)),Z.data.useSelect(L=>L("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof d!="function"||d(!0)),h.currentPost.postType===c.aioseo.localBusiness.postTypeName&&M({id:u+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){ne(l,Ye);let C=J({name:"Blocks/OpeningHoursWatcher",data:function(){return h.currentPost.local_seo.openingHours},watch:{$data:{handler:function(){s({updated:Date.now()})},deep:!0}},render:()=>oe("div")});C=se(C),C.mount(L),Ye.push({clientId:l,app:C})}});const A=P(an,null,P(ln,{title:y("Display Settings",ie),initialOpen:!0,onToggle:()=>{M(w)}},P("div",{},P("div",{id:u},null))));return n&&!o.locationId?P(_e,{},A,P("div",{},R(y("Select a %1$s",ie),c.aioseo.localBusiness.postTypeSingleLabel))):P(_e,{},A,P("div",{className:i},P(rn,null,P(dn,{block:Bt,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:h.currentPost.postType===c.aioseo.localBusiness.postTypeName?JSON.stringify(h.currentPost.local_seo.openingHours):null}})),P("div",{},P("div",{id:u+"-watcher"},null))))}),save:function(){return null}},hn=Object.freeze(Object.defineProperty({__proto__:null,name:Bt,settings:pn},Symbol.toStringTag,{value:"Module"})),mn={setup(){return{postEditorStore:ae(),rootStore:N()}},components:{BaseSelect:Ee},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})})}},gn={class:"sidebar-row"},fn={class:"title"};function $n(e,t,n,s,o,i){const l=b("base-select");return f(),_("div",null,[p("div",gn,[p("p",fn,m(o.strings.selectLocation),1),g(l,{size:"medium",options:o.locationCategories,modelValue:i.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 bn=H(mn,[["render",$n]]),W=window.wp,x=W.element.createElement,de=W.element.Fragment;var _t;const _n=((_t=W.blockEditor)==null?void 0:_t.InspectorControls)||W.editor.InspectorControls,wn=W.components.PanelBody,yn=W.components.Disabled,vn=W.serverSideRender||W.components.ServerSideRender,Sn=W.data.withSelect,ce="all-in-one-seo-pack",Ln=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"})),ke={},Xe=[],At="aioseo/locations",kn={title:y("AIOSEO Local - Locations",ce),category:"aioseo",icon:Ln,example:{},attributes:{categoryId:{type:"number",default:null}},edit:Sn(function(e){const t=N();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var A;const n=(A=$e().options.localBusiness)==null?void 0:A.locations.general.multiple,{setAttributes:s,attributes:o,className:i,clientId:l,isSelected:r,toggleSelection:d}=e;let{categories:a}=e;const u="aioseo-"+l;if(n&&a===null)return x(de,{},x("div",{},y("Loading...",ce)));if(a=a===null?[]:a,!n)return x(de,{},x("div",{},y("Please enable multiple locations before using this block.",ce)));const c=N();if(a.length===0)return x(de,{},x("div",{},R(y("No %1$s found",ce),c.aioseo.localBusiness.taxonomyPluralLabel)));const h={id:u,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(v){ne(l,Xe);let L=J({name:"Blocks/Locations",data:function(){return ke[l]},watch:{$data:{handler:function(C){s(C)},deep:!0}},render:()=>oe(bn)});L=se(L),L.mount(v),Xe.push({clientId:l,app:L})}};r&&(ke[l]={},Object.keys(o).forEach(v=>{ke[l][v]=o[v]}),ke[l].categories=a,M(h)),W.data.useSelect(v=>v("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof d!="function"||d(!0));const B=x(_n,null,x(wn,{title:c.aioseo.localBusiness.postTypePluralLabel,initialOpen:!0,onToggle:()=>{M(h)}},x("div",{},x("div",{id:u},null))));return a!==null&&a.length===0?x(de,{},x("div",{},R(y("No %1$s found",ce),c.aioseo.localBusiness.taxonomyPluralLabel))):o.categoryId?x(de,{},B,x("div",{className:i},x(yn,null,x(vn,{block:At,attributes:{categoryId:o.categoryId}})))):x(de,{},B,x("div",{},R(y("Select a %1$s",ce),c.aioseo.localBusiness.taxonomySingleLabel)))}),save:function(){return null}},In=Object.freeze(Object.defineProperty({__proto__:null,name:At,settings:kn},Symbol.toStringTag,{value:"Module"})),fe=window.wp,z=fe.element.createElement,Ie=fe.element.Fragment,Cn=fe.serverSideRender||fe.components.ServerSideRender,Vn=fe.components.Disabled,On=fe.data.withSelect,Ce="all-in-one-seo-pack",Tn=z("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},z("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"})),Et="aioseo/locationcategories",Bn={title:y("AIOSEO Local - Location Categories",Ce),category:"aioseo",icon:Tn,example:{},edit:On(function(e){const t=N();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var i;const n=(i=$e().options.localBusiness)==null?void 0:i.locations.general.multiple,{className:s}=e;let{categories:o}=e;if(n&&o===null)return z(Ie,{},z("div",{},y("Loading...",Ce)));if(o=o===null?[]:o,!n)return z(Ie,{},z("div",{},y("Please enable multiple locations before using this block.",Ce)));if(o.length===0){const l=N();return z(Ie,{},z("div",{},R(y("No %1$s found",Ce),l.aioseo.localBusiness.taxonomyPluralLabel)))}return z(Ie,{},z("div",{className:s},z(Vn,null,z(Cn,{block:Et}))))}),save:function(){return null}},An=Object.freeze(Object.defineProperty({__proto__:null,name:Et,settings:Bn},Symbol.toStringTag,{value:"Module"})),En={setup(){return{postEditorStore:ae(),rootStore:N()}},components:{BaseInput:Ae,BaseSelect:Ee,BaseToggle:He,CoreImageUploader:to},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})})}},Pn={key:0,class:"sidebar-row"},xn={class:"title"},Mn={class:"sidebar-row"},Nn={class:"sidebar-row"},Hn={class:"sidebar-row"},Dn={class:"title"},qn={class:"sidebar-row"},Un={class:"title"},zn={class:"sidebar-row dimensions"},Rn={key:1,class:"sidebar-row labels"},Fn={class:"title"};function jn(e,t,n,s,o,i){const l=b("base-select"),r=b("base-toggle"),d=b("core-image-uploader"),a=b("base-input");return f(),_("div",null,[o.locationsList.length&&!i.isLocationPostType()?(f(),_("div",Pn,[p("p",xn,m(o.strings.selectLocation),1),g(l,{size:"medium",options:o.locationsList,modelValue:i.getLocationOptions(this.$root.$data.locationId),"onUpdate:modelValue":t[0]||(t[0]=u=>this.$root.$data.locationId=u.value),"track-by":"value"},null,8,["options","modelValue"])])):k("",!0),p("div",Mn,[g(r,{modelValue:e.$root.$data.showLabel,"onUpdate:modelValue":t[1]||(t[1]=u=>e.$root.$data.showLabel=u)},{default:$(()=>[S(m(o.strings.showLabel),1)]),_:1},8,["modelValue"])]),p("div",Nn,[g(r,{modelValue:e.$root.$data.showIcon,"onUpdate:modelValue":t[2]||(t[2]=u=>e.$root.$data.showIcon=u)},{default:$(()=>[S(m(o.strings.showIcon),1)]),_:1},8,["modelValue"])]),p("div",Hn,[p("p",Dn,m(o.strings.customMarker),1),g(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]=u=>e.$root.$data.customMarker=u)},null,8,["description","modelValue"])]),p("div",qn,[p("p",Un,m(o.strings.mapDisplay),1)]),p("div",zn,[p("div",null,[p("label",null,m(o.strings.width)+":",1),g(a,{size:"small",modelValue:e.$root.$data.width,"onUpdate:modelValue":t[4]||(t[4]=u=>e.$root.$data.width=u)},null,8,["modelValue"])]),p("div",null,[p("div",null,[p("label",null,m(o.strings.height)+":",1),g(a,{size:"small",modelValue:e.$root.$data.height,"onUpdate:modelValue":t[5]||(t[5]=u=>e.$root.$data.height=u)},null,8,["modelValue"])])])]),e.$root.$data.showLabel?(f(),_("div",Rn,[p("p",Fn,m(o.strings.label),1),g(a,{size:"small",modelValue:e.$root.$data.label,"onUpdate:modelValue":t[6]||(t[6]=u=>e.$root.$data.label=u)},null,8,["modelValue"])])):k("",!0)])}const Zn=H(En,[["render",jn],["__scopeId","data-v-657b2056"]]);function Wn(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}function Qn(e){let t="";const n=Object.entries(e);let s;for(;s=n.shift();){let[o,i]=s;if(Array.isArray(i)||i&&i.constructor===Object){const r=Object.entries(i).reverse();for(const[d,a]of r)n.unshift([`${o}[${d}]`,a])}else i!==void 0&&(i===null&&(i=""),t+="&"+[o,i].map(encodeURIComponent).join("="))}return t.substr(1)}function Jn(e){try{return decodeURIComponent(e)}catch{return e}}function Gn(e,t,n){const s=t.length,o=s-1;for(let i=0;i<s;i++){let l=t[i];!l&&Array.isArray(e)&&(l=e.length.toString()),l=["__proto__","constructor","prototype"].includes(l)?l.toUpperCase():l;const r=!isNaN(Number(t[i+1]));e[l]=i===o?n:e[l]||(r?[]:{}),Array.isArray(e[l])&&!r&&(e[l]={...e[l]}),e=e[l]}}function Kn(e){return(Wn(e)||"").replace(/\+/g,"%20").split("&").reduce((t,n)=>{const[s,o=""]=n.split("=").filter(Boolean).map(Jn);if(s){const i=s.replace(/\]/g,"").split("[");Gn(t,i,o)}return t},Object.create(null))}function Yn(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const s=e.indexOf("?");return s!==-1&&(t=Object.assign(Kn(e),t),n=n.substr(0,s)),n+"?"+Qn(t)}const Q=window.wp,T=Q.element.createElement,ue=Q.element.Fragment;var wt;const Xn=((wt=Q.blockEditor)==null?void 0:wt.InspectorControls)||Q.editor.InspectorControls,ea=Q.components.PanelBody,ta=Q.components.Disabled,oa=Q.serverSideRender||Q.components.ServerSideRender,sa=Q.data.withSelect,Y="all-in-one-seo-pack",na=T("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},T("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"})),Ve={},et=[],tt=[],aa="aioseo/locationmap",ia={title:y("AIOSEO Local - Map",Y),category:"aioseo",icon:na,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:y("Our location:",Y)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},edit:sa(function(e){const t=N();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var K;const t=$e(),n=(K=t.options.localBusiness)==null?void 0:K.locations.general.multiple,{setAttributes:s,attributes:o,className:i,clientId:l,isSelected:r,toggleSelection:d}=e;let{locations:a}=e;const u="aioseo-location-map-"+l;if(n&&a===null)return T(ue,{},T("div",{},y("Loading...",Y)));if(a=a===null?[]:a,!n&&o.locationId)return T(ue,{},T("div",{},y("Please enable multiple locations before using this block.",Y)));const c=N();if(n&&a.length===0)return T(ue,{},T("div",{},R(y("No %1$s found",Y),c.aioseo.localBusiness.postTypePluralLabel)));const h=ae(),w=h.currentPost.postType===c.aioseo.localBusiness.postTypeName;o.locationId=!o.locationId&&w?h.currentPost.id:o.locationId;const B=a.find(O=>O.id===o.locationId),A=w?h.currentPost.local_seo.maps:B?B.maps:null,v={id:u,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(O){ne(l,et);let I=J({name:"Blocks/LocationMap",data:function(){return Ve[l]},watch:{$data:{handler:function(V){s(V)},deep:!0}},render:()=>oe(Zn)});I=se(I),I.mount(O),et.push({clientId:l,app:I})}};r&&(Ve[l]={},Object.keys(o).forEach(function(O){Ve[l][O]=o[O]}),Ve[l].locations=a,M(v)),Q.data.useSelect(O=>O("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof d!="function"||d(!0)),w&&M({id:u+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(O){ne(l,tt);let I=J({name:"Blocks/LocationMapWatcher",data:function(){return h.currentPost.local_seo.maps},watch:{$data:{handler:function(){s({updated:Date.now()})},deep:!0}},render:()=>oe("div")});I=se(I),I.mount(O),tt.push({clientId:l,app:I})}});const C=T(Xn,null,T(ea,{title:y("Settings",Y),initialOpen:!0,onToggle:()=>{M(v)}},T("div",null,T("div",{id:u},null))));if(n){if(!o.locationId)return T(ue,{},C,T("div",{},R(y("Select a %1$s",Y),c.aioseo.localBusiness.postTypeSingleLabel)));if(!A){const O=Yn("post.php",{post:o.locationId,action:"edit"});return T(ue,{},C,T("div",{dangerouslySetInnerHTML:{__html:R(y("Please configure the map for this location: %1$s",Y),'<a href="'+O+'" target="_blank">'+B.title.rendered+"</a>")}}))}}const D="#"+u+"-preview .aioseo-local-map";return M({selector:D,parent:document.querySelector(".block-editor"),subtree:!0,done:function(){const O=A||t.options.localBusiness.maps;setTimeout(function(){document.dispatchEvent(new CustomEvent(c.aioseo.localBusiness.mapLoadEvent,{detail:{element:D,mapOptions:O.mapOptions,customMarker:o.customMarker||O.customMarker||t.options.localBusiness.maps.customMarker,instance:o,placeId:t.options.localBusiness.maps.mapsEmbedApiEnabled?O.placeId:null,infoWindowContent:O.infoWindowContent?O.infoWindowContent:null}}))},2e3)}}),T(ue,{},C,T("div",{className:i,id:u+"-preview"},T(ta,null,T(oa,{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:w?JSON.stringify(h.currentPost.local_seo.maps):null}})),T("div",{},T("div",{id:u+"-watcher"},null))))}),save:function(){return null}},la=Object.freeze(Object.defineProperty({__proto__:null,name:aa,settings:ia},Symbol.toStringTag,{value:"Module"})),ra="https://schemas.wp.org/wp/5.8/block.json",da="aioseo/table-of-contents",ca="1.0.0",ua="AIOSEO - Table of Contents",pa="Automatically output a table of contents (TOC) for long posts or pages (and custom post types).",ha="layout",ma=["toc","table of contents","document outline","summary","index"],ga="all-in-one-seo-pack",fa={listStyle:{type:"string",default:"ul"},headings:{type:"array",items:{type:"object"},default:[]},reOrdered:{type:"boolean",default:!1}},$a={multiple:!1,html:!1,align:["wide","full"]},Pt={$schema:ra,name:da,version:ca,title:ua,description:pa,category:ha,keywords:ma,textdomain:ga,attributes:fa,supports:$a},ba={},_a={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-info"},wa=p("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),ya=p("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),va=[wa,ya];function Sa(e,t){return f(),_("svg",_a,va)}const xt=H(ba,[["render",Sa]]),La={},ka={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-eye-off"},Ia=p("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"},null,-1),Ca=p("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),Va=[Ia,Ca];function Oa(e,t){return f(),_("svg",ka,Va)}const Ta=H(La,[["render",Oa]]),Ba={},Aa={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-link"},Ea=p("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),Pa=p("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),xa=[Ea,Pa];function Ma(e,t){return f(),_("svg",Aa,xa)}const Na=H(Ba,[["render",Ma]]),Ha={setup(){return{tableOfContentsStore:ge()}},name:"List",components:{BaseInput:Ae,CoreTooltip:qe,Draggable:oo,SvgClose:kt,SvgDrag:so,SvgEye:no,SvgEyeOff:Ta,SvgInfo:xt,SvgTocLink:Na},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=Vt(e,!0)},setReorder(){this.tableOfContentsStore.reOrdered=!0;const e=Rt(te(this.tableOfContentsStore.headings));this.tableOfContentsStore.setHeadings(e),window.aioseoBus.$emit("updateHeadings"+this.tableOfContentsStore.blockClientId,e)},setAnchor:function(e,t){t.anchor=xe(e),e||(t.anchor="aioseo-"+xe(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(De([...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)})))}}},Da={class:"aioseo-toc-list-item__inner"},qa={key:0,class:"aioseo-drag-handle has-icon"},Ua={key:0,class:"append-icon"},za={class:"append-icon"},Ra={class:"aioseo-tooltip__header"},Fa=["onClick"];function ja(e,t,n,s,o,i){const l=b("svg-drag"),r=b("svg-toc-link"),d=b("base-input"),a=b("svg-info"),u=b("core-tooltip"),c=b("svg-close"),h=b("svg-eye-off"),w=b("svg-eye"),B=b("List",!0),A=b("draggable");return f(),q(A,Dt({class:["aioseo-toc-list",[{orderable:this.allowReorder}]]},i.dragOptions,{handle:".aioseo-drag-handle",list:n.headings,"onUpdate:modelValue":t[0]||(t[0]=v=>e.$emit("update:modelValue",v)),onChange:t[1]||(t[1]=v=>i.setReorder(v)),"item-key":e.$.uid.toString()}),{item:$(({element:v})=>[p("li",{class:ye(["aioseo-toc-list-item",{"heading-hidden":v.hidden}])},[p("div",Da,[n.allowReorder?(f(),_("button",qa,[g(l)])):k("",!0),g(d,{class:"row-input row-input--content",modelValue:v.editedContent||v.content,"onUpdate:modelValue":L=>i.setEditedContent(L,v),placeholder:v.content},{"append-icon":$(()=>[n.allowReorder?k("",!0):(f(),_("div",Ua,[g(r,{onClick:i.handleAnchorInput},null,8,["onClick"])]))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),n.allowReorder?k("",!0):(f(),q(d,{key:1,class:"row-input row-input--anchor",spellcheck:!1,modelValue:v.anchor,"onUpdate:modelValue":L=>i.setAnchor(L,v)},{"append-icon":$(()=>[p("div",za,[g(u,null,{tooltip:$(()=>[p("p",Ra,m(o.strings.tooltipHeader),1),p("p",null,m(o.strings.tooltipDescription),1)]),default:$(()=>[g(a)]),_:1}),g(c,{onClick:i.handleAnchorInput},null,8,["onClick"])])]),_:2},1032,["modelValue","onUpdate:modelValue"])),n.allowReorder?k("",!0):(f(),_("button",{key:2,class:ye([{active:v.hidden},"aioseo-hide-heading-toggle","has-icon"]),onClick:L=>i.setHiddenStatus(v)},[v.hidden?(f(),q(h,{key:0})):(f(),q(w,{key:1}))],10,Fa)),v.headings?(f(),q(B,{key:3,class:"aioseo-toc-list-nested",headings:v.headings,allowReorder:n.allowReorder},null,8,["headings","allowReorder"])):k("",!0)])],2)]),_:1},16,["class","list","item-key"])}const Za=H(Ha,[["render",ja]]),Wa={setup(){return{tableOfContentsStore:ge()}},name:"ListRendered",props:{headings:{required:!0,type:Array}}},Qa=["href"];function Ja(e,t,n,s,o,i){const l=b("ListRendered",!0);return f(),q(qt(s.tableOfContentsStore.listStyle),{class:"aioseo-toc-list--rendered"},{default:$(()=>[(f(!0),_(Ne,null,vt(n.headings,(r,d)=>(f(),_("li",{class:ye(["aioseo-toc-list-item--rendered",[{hidden:r.hidden}]]),key:d},[p("a",{href:`#${r.anchor}`},m(r.editedContent||r.content),9,Qa),r.headings?(f(),q(l,{key:0,class:"aioseo-toc-list-nested--rendered",headings:r.headings},null,8,["headings"])):k("",!0)],2))),128))]),_:1})}const Ga=H(Wa,[["render",Ja]]),{__:ot,sprintf:Ka}=window.wp.i18n,st="all-in-one-seo-pack",Ya={emits:["closeModal"],components:{CoreModal:ao,Cta:io},props:{show:Boolean},data(){return{links:Lt,strings:{header:Ka(ot("Reordering Headings is a %1$s Feature",st),"PRO"),description:ot("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.",st)}}}};function Xa(e,t,n,s,o,i){const l=b("cta"),r=b("core-modal");return f(),q(r,{show:n.show,classes:["aioseo-toc-modal-lite"],onClose:t[0]||(t[0]=d=>e.$emit("closeModal"))},{body:$(()=>[g(l,{type:1,floating:!1,"cta-link":o.links.utmUrl("toc-block"),"button-text":"Unlock Reordering","learn-more-link":o.links.getUpsellUrl("toc-block",null,e.$isPro?"pricing":"liteUpgrade")},{"header-text":$(()=>[S(m(o.strings.header),1)]),description:$(()=>[S(m(o.strings.description),1)]),_:1},8,["cta-link","learn-more-link"])]),_:1},8,["show"])}const ei=H(Ya,[["render",Xa]]),Te={editedContent:"",editedLevel:0,editedOrder:0,hidden:!1,headings:[]},ti={setup(){return{tableOfContentsStore:ge()}},components:{CoreTooltip:qe,Info:xt,List:Za,ListRendered:Ga,Reorder:ei},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=he(te(this.tableOfContentsStore.headings));let n=e.map(s=>this.setDefaultHeadingProps(s));t.forEach(s=>{const o=n.findIndex(i=>i.blockClientId===s.blockClientId);o!==-1&&(Object.keys(Te).forEach(i=>{n[o][i]=s[i]}),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=De(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)})})}},oi={class:"aioseo-toc-container"},si={class:"aioseo-toc-header"},ni={class:"aioseo-toc-header-title"},ai={key:0,class:"aioseo-toc-header-instructions"},ii={key:1,class:"aioseo-toc-header-buttons"},li={key:0,class:"aioseo-toc-content"};function ri(e,t,n,s,o,i){const l=b("Info"),r=b("core-tooltip"),d=b("List"),a=b("reorder"),u=b("ListRendered");return f(),_("div",oi,[p("div",{class:ye(["aioseo-toc-menu",{"aioseo-toc-placeholder":s.tableOfContentsStore.headings.length===0}])},[p("header",si,[p("div",ni,[S(m(o.strings.header)+" ",1),g(r,{placement:"bottom"},{tooltip:$(()=>[p("p",null,m(o.strings.tooltipMainDescription),1)]),default:$(()=>[g(l)]),_:1})]),s.tableOfContentsStore.headings.length===0?(f(),_("div",ai,m(o.strings.instructions),1)):k("",!0),s.tableOfContentsStore.headings.length!==0?(f(),_("div",ii,[p("a",{class:"aioseo-button-link",href:"#",onClick:t[0]||(t[0]=we(c=>o.showModal=!0,["prevent"]))},m(o.strings.reorder),1),p("a",{class:"aioseo-button-link",href:"#",onClick:t[1]||(t[1]=we((...c)=>i.save&&i.save(...c),["prevent"]))},m(o.strings.done),1)])):k("",!0)]),s.tableOfContentsStore.headings.length!==0?(f(),_("div",li,[g(d,{headings:s.tableOfContentsStore.headings},null,8,["headings"])])):k("",!0),g(a,{show:o.showModal,headings:s.tableOfContentsStore.headings,onCloseModal:t[2]||(t[2]=c=>o.showModal=!1)},null,8,["show","headings"])],2),s.tableOfContentsStore.headings.length!==0?(f(),q(u,{key:0,headings:s.tableOfContentsStore.headings},null,8,["headings"])):k("",!0)])}const di=H(ti,[["render",ri]]),{__:nt}=window.wp.i18n,{InspectorControls:at}=window.wp.blockEditor,{PanelBody:it,SelectControl:ci}=window.wp.components,lt="all-in-one-seo-pack",ui=e=>{const{setAttributes:t,attributes:{listStyle:n}}=e,s=ge();return le` <${at}> <${it} title=${nt("Table of Contents Settings",lt)}> <${ci} label=${nt("List Style",lt)} options=${[{label:"Bullets",value:"ul"},{label:"Numbers",value:"ol"}]} value=${n} onChange=${o=>{s.listStyle=o,t({listStyle:o})}} /> </${it}> </${at}> `},{useSelect:pi}=window.wp.data,Mt=window.wp.blockEditor.store,{isTyping:hi}=window.wp.data.select(Mt)||{isTyping:()=>null},rt=[];let Oe=[];function mi(e){const{setAttributes:t,attributes:n,clientId:s,className:o,isSelected:i}=e,l=`aioseo-${s}`;if(!rt.includes(s)&&(i||document.querySelector(`[data-block="${s}"]`))&&(rt.push(s),M({id:l,parent:document.querySelector(".block-editor"),subtree:!0,done:function(r){var u;const d=J({...di,name:"Blocks/TableOfContents"});d.$t=d.config.globalProperties.$t=Ft,d.$td=d.config.globalProperties.$td="all-in-one-seo-pack",St(d),d.mount(r);const a=ge();if(a.blockClientId=s,a.headings=n.headings,a.listStyle=n.listStyle,a.reOrdered=n.reOrdered,(u=a.headings)!=null&&u.length){const c=he(te(a.headings));c.forEach(h=>{const w=Oe.find(B=>B.content===h.content&&B.anchor===h.anchor&&B.id===h.id&&B.level===h.level);w&&(h.blockClientId=w.blockClientId)}),a.headings=De(c),t(a)}window.aioseoBus.$on("setAttributes"+s,()=>{t(a.$state)})}})),Oe=pi(r=>{var L,C,D,K,O;const{getBlockAttributes:d,getBlockIndex:a,getBlockName:u,getClientIdsWithDescendants:c}=r(Mt),h=a(s),w=[];c().forEach(I=>{var Fe;if(u(I)!=="core/heading"&&u(I)!=="aioseo/faq")return;const V=d(I),Ue=a(I),ze=typeof(V==null?void 0:V.anchor)=="string"&&V.anchor!=="",Re=V.level||V.tagName.replace("h","");if(Re==="div")return;let re=V.question||((Fe=V.content)==null?void 0:Fe.text)||V.content||"";typeof re!="string"||re===""||h>Ue||(re=Vt(re.replace(/(<br *\/?>)+/g," "),!0),!ze&&!hi()&&(V.anchor="aioseo-"+xe(re)),w.push({id:Ue,blockClientId:I,content:re,level:Number(Re),anchor:ze?V.anchor:""}))}),w.forEach((I,V)=>{I.order=V});const A=ge(),v=(L=he(te(A.headings)))==null?void 0:L.map(I=>(Object.keys(Te).forEach(V=>{delete I[V]}),I));return!Be([...w].sort((I,V)=>I.order-V.order),[...v].sort((I,V)=>I.order-V.order))||((D=he([...(C=d(s))==null?void 0:C.headings]))==null?void 0:D.length)!==[...w].length||((K=d(s))==null?void 0:K.reOrdered)===!0&&!Be(he([...A.headings]).sort((I,V)=>I.editedOrder-V.editedOrder),he([...(O=d(s))==null?void 0:O.headings]).sort((I,V)=>I.editedOrder-V.editedOrder))?w:null},[s]),Oe!==null){const r=Oe.sort((d,a)=>d.editedOrder-a.editedOrder);window.aioseoBus.$emit("updateHeadings"+s,r)}return le` <div className="${o}"> <div id="aioseo-${s}"></div> ${ui(e)} </div> `}const{RawHTML:dt}=window.wp.element;function gi({attributes:{headings:e,listStyle:t}}){if(!e)return"";const n=Nt(e,t);return le`<${dt}>${n}</${dt}>`}const Nt=(e,t)=>{let n=`<${t}>`;return e.forEach(s=>{var l;if(s.hidden)return;let o="<li>";const i=s.editedContent||s.content;o+=`<a href="#${s.anchor}">${jt.encode(i)}</a>`,(l=s.headings)!=null&&l.length&&(o+=Nt(s.headings,t)),o+="</li>",n+=o}),n+=`</${t}>`,n},fi=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:$i,title:bi,description:_i,keywords:wi,category:yi,supports:vi,attributes:Si}=Pt,Li={title:bi,description:_i,keywords:wi,category:yi,attributes:Si,icon:fi,supports:vi,edit:mi,save:gi},ki=Object.freeze(Object.defineProperty({__proto__:null,metadata:Pt,name:$i,settings:Li},Symbol.toStringTag,{value:"Module"})),Ii="https://schemas.wp.org/wp/5.8/block.json",Ci="aioseo/faq",Vi="AIOSEO - FAQ",Oi="Easily add an SEO-friendly Frequently Asked Question (FAQ) to your content.",Ti="text",Bi=["accordion","answer","faq","frequently asked questions","knowledge base","question","schema","seo"],Ai="all-in-one-seo-pack",Ei={hidden:{type:"boolean",default:!1},question:{type:"string",selector:".aioseo-faq-block-question"},schemaBlockId:{type:"string",default:""},tagName:{type:"string",default:"h3"}},Pi={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}},Ht={$schema:Ii,name:Ci,title:Vi,description:Oi,category:Ti,keywords:Bi,textdomain:Ai,attributes:Ei,supports:Pi},{RichText:xi,InnerBlocks:Mi}=window.wp.blockEditor,{PanelBody:ct,SelectControl:Ni,ToggleControl:Hi}=window.wp.components,ut=window.wp.blockEditor.InspectorControls||window.wp.editor.InspectorControls,{__:X}=window.wp.i18n,ee="all-in-one-seo-pack",Di=[["core/paragraph",{placeholder:X("Write an answer...",ee)}]],qi=["core/paragraph","core/heading","core/list","core/image","core/media-text"],Ui=(e,t,n)=>{const{hidden:s,question:o,tagName:i,schemaBlockId:l}=t,r=Lt.getUpsellLink("faq-block",lo.learnMore,"sidebar",!0);return le` <div data-schema-only="${s}" className="${e}" data-schema-block-id="${l}"> <${ut}> <${ct} title=${X("FAQ Options",ee)}> <${Ni} label=${X("Title Wrapper",ee)} options=${[{label:"DIV",value:"div"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"}]} value=${i} onChange=${d=>n({tagName:d})} /> <p className="aioseo-visibility-label">${X("Visibility",ee)}</p> <${Hi} className="aioseo-faq-visibility" label=${X("Display Block",ee)} help=${X("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.",ee)} checked=${!s} onChange=${()=>n({hidden:!s})} disabled /> <div className="aioseo-alert aioseo-alert inline-upsell blue medium"> <div dangerouslySetInnerHTML=${{__html:X("FAQ schema is a Pro feature.",ee)+" "+r}}></div> </div> </${ct}> </${ut}> <${xi} tagName=${i} placeholder=${X("Write a question...",ee)} className='aioseo-faq-block-question' value=${o} onChange=${d=>n({question:d})} /> <div className="aioseo-faq-block-answer"> <${Mi} template=${Di} allowedBlocks=${qi} /> </div> </div> `},{useSelect:pt}=window.wp.data,{useEffect:zi}=window.wp.element,ht=window.wp.blockEditor.store,{serialize:Ri}=window.wp.blocks,pe=[],Fi=e=>{const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;function n(s){var i;const o=s.childNodes;for(const l of o){if((i=l.nodeName)!=null&&i.toLowerCase().includes("comment")&&l.parentNode.removeChild(l),l.attributes)for(const{name:r,value:d}of l.attributes){const a=d.replace(/\s+/g,"").toLowerCase();(!["src","href"].includes(r)||r.startsWith("on")||a.includes("javascript:")||a.includes("data:"))&&l.removeAttribute(r)}n(l)}}return n(t),t.innerHTML.trim().replace(/\s+/g," ")};function ji(e){const{attributes:t,className:n,clientId:s,setAttributes:o,isSelected:i}=e,{schemaBlockId:l}=t;!pe.includes(s)&&!i&&pe.push(s);const r=u=>{window.requestAnimationFrame(()=>{o(u)}),window.aioseoBus.$emit("schemaBlockUpdated")};zi(()=>{(!l||1<(document.querySelectorAll(`[data-schema-block-id='${l}']`)||[]).length)&&r({schemaBlockId:$o()})},[]);const d=pt(u=>{const{getAdjacentBlockClientId:c,getBlockAttributes:h,getBlockName:w,getClientIdsWithDescendants:B,getGlobalBlockCount:A}=u(ht);if(pe.includes(s)||2>A("aioseo/faq"))return null;const v=c(s,-1);if(w(v)==="aioseo/faq")return h(v);const L=c(s,1);if(w(L)==="aioseo/faq")return h(L);const D=B().filter(I=>w(I)==="aioseo/faq"),K=D.indexOf(s),O=D[K-1]||D[K+1];return w(O)==="aioseo/faq"?h(O):null},[s,pe]);i&&!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 a=pt(u=>{const{getBlocks:c}=u(ht);return(w=>{const B=c(w),A=Ri(B);return Fi(A)})(s)},[s]);return r({answer:a}),Ui(n,t,r)}const{RichText:Zi,InnerBlocks:Wi}=window.wp.blockEditor;function Qi({attributes:e,className:t}){const{question:n,hidden:s,tagName:o}=e;return le` <div data-schema-only="${s}" className=${t}> <${Zi.Content} tagName=${o} className="aioseo-faq-block-question" value=${n} /> <div className="aioseo-faq-block-answer"> <${Wi.Content} /> </div> </div> `}const Ji=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> `,{__:mt}=window.wp.i18n,gt="all-in-one-seo-pack",{name:Gi,title:Ki,description:Yi,category:Xi,supports:el,attributes:tl}=Ht,ol={title:Ki,description:Yi,category:Xi,attributes:tl,icon:Ji,example:{attributes:{question:mt("Who should use AIOSEO?",gt)},innerBlocks:[{name:"core/paragraph",attributes:{content:mt("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.",gt)}}]},supports:el,edit:ji,save:Qi},sl=Object.freeze(Object.defineProperty({__proto__:null,metadata:Ht,name:Gi,settings:ol},Symbol.toStringTag,{value:"Module"}));var yt;if(((yt=window.aioseo.currentPost)==null?void 0:yt.context)==="post"){let e=[];window.wp.data.subscribe(()=>{t()});const t=je(()=>{const s=window.wp.data.select("core/block-editor").getBlocks();(s.length<e.length||s.length===1)&&n(),e=s},200);window.aioseoBus.$on("schemaBlockUpdated",()=>{n()});const n=je(()=>{var l;let s=window.wp.data.select("core/block-editor").getBlocks();s=Wt(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(),i=((l=o.currentPost.schema)==null?void 0:l.blockGraphs)||[];i.forEach((r,d)=>{const a=s.findIndex(h=>{var w;return((w=h==null?void 0:h.attributes)==null?void 0:w.schemaBlockId)===(r==null?void 0:r.schemaBlockId)});if(a===-1){i.splice(d,1);return}const u={...s[a].attributes};["backgroundColor","textColor","fontSize","style"].forEach(h=>{delete u[h]}),i[d]=u}),s.forEach(r=>{i.findIndex(a=>{var u;return(a==null?void 0:a.schemaBlockId)===((u=r==null?void 0:r.attributes)==null?void 0:u.schemaBlockId)})===-1&&(r!=null&&r.attributes)&&i.push(r.attributes)}),i.sort((r,d)=>{const a=s.findIndex(c=>{var h;return((h=c==null?void 0:c.attributes)==null?void 0:h.schemaBlockId)===(r==null?void 0:r.schemaBlockId)}),u=s.findIndex(c=>{var h;return((h=c==null?void 0:c.attributes)==null?void 0:h.schemaBlockId)===(d==null?void 0:d.schemaBlockId)});return a-u}),o.currentPost.schema.blockGraphs=i},200)}if(Zt()){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:i}=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=a=>{if(!a)return;const{name:u,settings:c}=a;if(c.icon&&!c.icon.foreground){const h={foreground:"#141B38",src:c.icon};c.icon=h}typeof o=="function"&&c.category==="aioseo"&&(c.category="widgets"),typeof o!="function"&&c.category!=="aioseo"&&(c.category="aioseo"),i(u,c)};(()=>{var a,u;[go,rs,((u=(a=window==null?void 0:window.aioseo)==null?void 0:a.screen)==null?void 0:u.base)==="post"?ki:null,sl].forEach(r),window.aioseo.localBusiness&&[Rs,hn,In,An,la].forEach(r)})()}