OwlCyberSecurity - MANAGER
Edit File: blocks.elShjuhl.js
import{_ as y,s as z}from"./js/default-i18n.DXRQgkn2.js";import{v as $,o as f,c as _,B as g,l as b,C as S,t as m,a as p,E as ye,k as D,b as k,F as Me,J as vt,G as _e,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.CkBeLh4y.js";import{l as Ut,B as Ae,b as Ee,d as He}from"./js/index.B6JTtDta.js";import{l as Rt}from"./js/index.3BJ3ZnWB.js";import{a as be,u as M,l as St,b as ae,ab as ge,ac as zt,ad as De,r as Lt,ae as he,z as Ft,y as jt,af as Zt}from"./js/links.Ce9S4kjc.js";import{K as N,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.BthVBOwE.js";import{S as Gt}from"./js/External.BnlDuPIp.js";import{_ as q}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.CfVg675m.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{S as ao}from"./js/Link.tEuvygox.js";import{C as io}from"./js/Index.hENYR9Tl.js";import{C as lo}from"./js/Index.Dq9-2wXY.js";import{G as ro}from"./js/constants.CPpKID74.js";import{d as je}from"./js/debounce.CMPzYXJX.js";import"./js/Checkbox.CmdF-nFt.js";import"./js/Checkmark.DOG99yeO.js";import"./js/Img.UaR2G6c7.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,co=ve.element.Fragment,uo=ve.components.Disabled,po=ve.serverSideRender||ve.components.ServerSideRender,ho="all-in-one-seo-pack",mo=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",go={title:y("AIOSEO - Breadcrumbs",ho),category:"aioseo",icon:mo,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(co,{},me("div",{},me(window.aioseo.options.breadcrumbs.enable?uo:"div",null,me(po,{block:It,attributes:{primaryTerm:n.primaryTerm}}))))},save:function(){return null}},fo=Object.freeze(Object.defineProperty({__proto__:null,name:It,settings:go},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 bo(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=bo.bind(window.wp.element.createElement),Ne=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=Ne(e);return l!==Ne(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=Ne(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))},wo={setup(){return{optionsStore:be()}},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>')}}},yo={class:"aioseo-exclude-posts"},_o={class:"option"},vo=["innerHTML"],So={class:"option-details"},Lo=["href"],ko={class:"multiselect__tag"},Io={class:"multiselect__tag-value"},Co=["onClick"];function Vo(e,t,n,s,o,i){const l=$("svg-add-plus"),r=$("base-button"),d=$("svg-external"),a=$("svg-close"),u=$("base-select");return f(),_("div",yo,[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:b(()=>[S(m(i.noOptions),1)]),noResult:b(()=>[S(m(o.strings.noResult),1)]),caret:b(({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:b(()=>[g(l,{style:{width:"14px",height:"14px",color:"black"}})]),_:2},1032,["onClick"])]),option:b(({option:c,search:h})=>[p("div",_o,[p("div",{class:"option-title",innerHTML:i.getOptionTitle(c.label,h)},null,8,vo),p("div",So,[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:ye(()=>{},["stop"])},[g(d)],8,Lo)]),tag:b(({option:c,remove:h})=>[p("div",ko,[p("div",Io,m(c.label)+" - #"+m(c.value),1),p("div",{class:"multiselect__tag-remove",onClick:ye(w=>h(c),["stop"])},[g(a,{onClick:ye(w=>h(c),["stop"])},null,8,["onClick"])],8,Co)])]),_:1},8,["options","ajax-search","modelValue","placeholder"]),g(r,{type:"gray",size:"small",onClick:t[1]||(t[1]=c=>i.optionName=[])},{default:b(()=>[S(m(o.strings.clear),1)]),_:1})])}const Oo=q(wo,[["render",Vo]]),To={setup(){return{rootStore:M()}},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}}},Bo={class:"aioseo-included-objects-toggle"},Ao={class:"included-objects-settings"},Eo={class:"aioseo-description"},Po=p("br",null,null,-1);function xo(e,t,n,s,o,i){const l=$("base-toggle"),r=$("core-tooltip"),d=$("base-highlight-toggle"),a=$("grid-column"),u=$("grid-row");return f(),_("div",Bo,[p("div",Ao,[n.type==="post_types"?(f(),D(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:b(()=>[S(m(o.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"])):k("",!0),n.type==="taxonomies"?(f(),D(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:b(()=>[S(m(o.strings.includeAllTaxonomies),1)]),_:1},8,["modelValue"])):k("",!0),0<i.objects.length&&!i.includeAllSetting?(f(),D(u,{key:2,class:"aioseo-included-list"},{default:b(()=>[(f(!0),_(Me,null,vt(i.objects,(c,h)=>(f(),D(a,{md:"6",key:h},{default:b(()=>[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:b(()=>[g(r,null,{tooltip:b(()=>[p("div",Eo,[S(m(o.strings.label)+" ",1),p("strong",null,m(c.label),1),Po,S(" "+m(o.strings.name)+" ",1),p("strong",null,m(c.name),1)])]),default:b(()=>[p("span",{class:_e(["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 No=q(To,[["render",xo]]),Mo={components:{HtmlSitemapExcludeObjects:Oo,HtmlSitemapIncludedObjects:No},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)}}},Ho={class:"aioseo-sidebar-row"},Do={class:"aioseo-sidebar-row"},qo={key:0,class:"aioseo-sidebar-row"},Uo={key:1,class:"aioseo-sidebar-row"},Ro={key:2,class:"aioseo-sidebar-row"},zo={class:"aioseo-sidebar-title"},Fo={key:3,class:"aioseo-sidebar-row"},jo={class:"aioseo-sidebar-title"},Zo={key:4,class:"aioseo-sidebar-row"},Wo={class:"aioseo-sidebar-title"},Qo={class:"aioseo-sidebar-row"},Jo={class:"aioseo-sidebar-title"},Go={key:5,class:"aioseo-sidebar-row"},Ko={class:"aioseo-sidebar-title"},Yo={key:6,class:"aioseo-sidebar-row"},Xo={class:"aioseo-sidebar-title"};function es(e,t,n,s,o,i){const l=$("base-toggle"),r=$("html-sitemap-included-objects"),d=$("base-select"),a=$("html-sitemap-exclude-objects");return f(),_("div",null,[p("div",Ho,[g(l,{modelValue:e.$root.$data.default,"onUpdate:modelValue":t[0]||(t[0]=u=>e.$root.$data.default=u)},{default:b(()=>[S(m(o.strings.useDefault),1)]),_:1},8,["modelValue"])]),e.$root.$data.default?k("",!0):(f(),_(Me,{key:0},[p("div",Do,[g(l,{modelValue:e.$root.$data.archives,"onUpdate:modelValue":t[1]||(t[1]=u=>e.$root.$data.archives=u)},{default:b(()=>[S(m(o.strings.archives),1)]),_:1},8,["modelValue"])]),e.$root.$data.archives?k("",!0):(f(),_("div",qo,[g(l,{modelValue:e.$root.$data.show_label,"onUpdate:modelValue":t[2]||(t[2]=u=>e.$root.$data.show_label=u)},{default:b(()=>[S(m(o.strings.showLabel),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?k("",!0):(f(),_("div",Uo,[g(l,{modelValue:e.$root.$data.publication_date,"onUpdate:modelValue":t[3]||(t[3]=u=>e.$root.$data.publication_date=u)},{default:b(()=>[S(m(o.strings.publicationDate),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?k("",!0):(f(),_("div",Ro,[p("p",zo,m(o.strings.postTypes),1),g(r,{type:"post_types",excluded:["attachment"]})])),e.$root.$data.archives?k("",!0):(f(),_("div",Fo,[p("p",jo,m(o.strings.taxonomies),1),g(r,{type:"taxonomies"})])),e.$root.$data.archives?k("",!0):(f(),_("div",Zo,[p("p",Wo,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",Qo,[p("p",Jo,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",Go,[p("p",Ko,m(o.strings.excludePostsPages),1),g(a,{type:"posts"})])),e.$root.$data.archives?k("",!0):(f(),_("div",Yo,[p("p",Xo,m(o.strings.excludeTerms),1),g(a,{type:"terms"})]))],64))])}const ts=q(Mo,[["render",es]]),G=window.wp,F=G.element.createElement,os=G.element.Fragment,ss=G.serverSideRender||G.components.ServerSideRender;var ft;const ns=((ft=G.blockEditor)==null?void 0:ft.InspectorControls)||G.editor.InspectorControls,as=G.components.PanelBody,is=G.components.Disabled,We="all-in-one-seo-pack",ls=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",rs={title:y("AIOSEO - HTML Sitemap",We),category:"aioseo",icon:ls,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(ts)});h=se(h),h=Ut(h),h=Rt(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]}),N(d)),G.data.useSelect(c=>c("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof l!="function"||l(!0));const u=F(ns,null,F(as,{title:y("Display Settings",We),initialOpen:!0,onToggle:()=>{N(d)}},F("div",null,F("div",{id:r},null))));return F(os,{},u,F("div",{className:s},F(is,null,F(ss,{block:Ot,attributes:{...n}}))))},save:function(){return null}},ds=Object.freeze(Object.defineProperty({__proto__:null,name:Ot,settings:rs},Symbol.toStringTag,{value:"Module"})),cs={setup(){return{postEditorStore:ae(),rootStore:M()}},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})})}},us={key:0,class:"sidebar-row"},ps={class:"title"},hs={class:"sidebar-row"},ms={class:"sidebar-row"},gs={class:"sidebar-row"},fs={class:"title"},bs={class:"sidebar-row"},$s={class:"sidebar-row"},ws={class:"sidebar-row"},ys={class:"sidebar-row"},_s={key:1,class:"sidebar-row"},vs={class:"sidebar-row"},Ss={class:"sidebar-row"},Ls={class:"sidebar-row"},ks={key:2},Is={class:"sidebar-row"},Cs={class:"title"},Vs={class:"sidebar-row labels"},Os={key:0},Ts={key:1},Bs={key:2},As={key:3},Es={key:4},Ps={key:5};function xs(e,t,n,s,o,i){const l=$("base-select"),r=$("base-toggle"),d=$("base-input");return f(),_("div",null,[o.locationsList.length&&!i.isLocationPostType()?(f(),_("div",us,[p("p",ps,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",hs,[g(r,{modelValue:e.$root.$data.showLabels,"onUpdate:modelValue":t[1]||(t[1]=a=>e.$root.$data.showLabels=a)},{default:b(()=>[S(m(o.strings.showLabels),1)]),_:1},8,["modelValue"])]),p("div",ms,[g(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=a=>e.$root.$data.showIcons=a)},{default:b(()=>[S(m(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),p("div",gs,[p("p",fs,m(o.strings.businessInfo),1)]),p("div",bs,[g(r,{modelValue:e.$root.$data.showName,"onUpdate:modelValue":t[3]||(t[3]=a=>e.$root.$data.showName=a)},{default:b(()=>[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:b(()=>[S(m(o.strings.address),1)]),_:1},8,["modelValue"])]),p("div",ws,[g(r,{modelValue:e.$root.$data.showPhone,"onUpdate:modelValue":t[5]||(t[5]=a=>e.$root.$data.showPhone=a)},{default:b(()=>[S(m(o.strings.phoneNumber),1)]),_:1},8,["modelValue"])]),p("div",ys,[g(r,{modelValue:e.$root.$data.showFax,"onUpdate:modelValue":t[6]||(t[6]=a=>e.$root.$data.showFax=a)},{default:b(()=>[S(m(o.strings.faxNumber),1)]),_:1},8,["modelValue"])]),e.$root.$data.showPhone||e.$root.$data.showFax?(f(),_("div",_s,[g(r,{modelValue:e.$root.$data.showCountryCode,"onUpdate:modelValue":t[7]||(t[7]=a=>e.$root.$data.showCountryCode=a)},{default:b(()=>[S(m(o.strings.countryCode),1)]),_:1},8,["modelValue"])])):k("",!0),p("div",vs,[g(r,{modelValue:e.$root.$data.showEmail,"onUpdate:modelValue":t[8]||(t[8]=a=>e.$root.$data.showEmail=a)},{default:b(()=>[S(m(o.strings.emailAddress),1)]),_:1},8,["modelValue"])]),p("div",Ss,[g(r,{modelValue:e.$root.$data.showVat,"onUpdate:modelValue":t[9]||(t[9]=a=>e.$root.$data.showVat=a)},{default:b(()=>[S(m(o.strings.showVat),1)]),_:1},8,["modelValue"])]),p("div",Ls,[g(r,{modelValue:e.$root.$data.showTax,"onUpdate:modelValue":t[10]||(t[10]=a=>e.$root.$data.showTax=a)},{default:b(()=>[S(m(o.strings.showTax),1)]),_:1},8,["modelValue"])]),e.$root.$data.showLabels?(f(),_("div",ks,[p("div",Is,[p("p",Cs,m(o.strings.labels),1)]),p("div",Vs,[e.$root.$data.showAddress?(f(),_("div",Os,[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",Ts,[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",Bs,[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",As,[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",Es,[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",Ps,[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 Ns=q(cs,[["render",xs],["__scopeId","data-v-8ebccde0"]]),j=window.wp,E=j.element.createElement,$e=j.element.Fragment;var bt;const Ms=((bt=j.blockEditor)==null?void 0:bt.InspectorControls)||j.editor.InspectorControls,Hs=j.components.PanelBody,Ds=j.components.Disabled,qs=j.serverSideRender||j.components.ServerSideRender,Us=j.data.withSelect,U="all-in-one-seo-pack",Rs=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:Rs,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:Us(function(e){const t=M();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var v;const n=(v=be().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($e,{},E("div",{},y("Loading...",U)));if(a=a===null?[]:a,!n&&o.locationId)return E($e,{},E("div",{},y("Please enable multiple locations before using this block.",U)));const c=M();if(n&&a.length===0)return E($e,{},E("div",{},z(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(H){s(H)},deep:!0}},render:()=>oe(Ns)});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,N(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&&N({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(Hs,{title:y("Display Settings",U),initialOpen:!0,onToggle:()=>{N(w)}},E("div",null,E("div",{id:u},null))));return n&&!o.locationId?E($e,{},A,E("div",{},z(y("Select a %1$s",U),c.aioseo.localBusiness.postTypeSingleLabel))):E($e,{},A,E("div",{className:i},E(Ds,null,E(qs,{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}},Fs=Object.freeze(Object.defineProperty({__proto__:null,name:Tt,settings:zs},Symbol.toStringTag,{value:"Module"})),js={setup(){return{postEditorStore:ae(),rootStore:M()}},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})})}},Zs={key:0,class:"sidebar-row"},Ws={class:"title"},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={class:"sidebar-row"},sn={key:1,class:"sidebar-row labels"};function nn(e,t,n,s,o,i){const l=$("base-select"),r=$("base-toggle"),d=$("base-input");return f(),_("div",null,[o.locationsList.length&&!i.isLocationPostType()?(f(),_("div",Zs,[p("p",Ws,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",Qs,[g(r,{modelValue:e.$root.$data.showTitle,"onUpdate:modelValue":t[1]||(t[1]=a=>e.$root.$data.showTitle=a)},{default:b(()=>[S(m(o.strings.showTitle),1)]),_:1},8,["modelValue"])]),p("div",Js,[g(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=a=>e.$root.$data.showIcons=a)},{default:b(()=>[S(m(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),p("div",Gs,[g(r,{modelValue:e.$root.$data.showMonday,"onUpdate:modelValue":t[3]||(t[3]=a=>e.$root.$data.showMonday=a)},{default:b(()=>[S(m(o.strings.Monday),1)]),_:1},8,["modelValue"])]),p("div",Ks,[g(r,{modelValue:e.$root.$data.showTuesday,"onUpdate:modelValue":t[4]||(t[4]=a=>e.$root.$data.showTuesday=a)},{default:b(()=>[S(m(o.strings.Tuesday),1)]),_:1},8,["modelValue"])]),p("div",Ys,[g(r,{modelValue:e.$root.$data.showWednesday,"onUpdate:modelValue":t[5]||(t[5]=a=>e.$root.$data.showWednesday=a)},{default:b(()=>[S(m(o.strings.Wednesday),1)]),_:1},8,["modelValue"])]),p("div",Xs,[g(r,{modelValue:e.$root.$data.showThursday,"onUpdate:modelValue":t[6]||(t[6]=a=>e.$root.$data.showThursday=a)},{default:b(()=>[S(m(o.strings.Thursday),1)]),_:1},8,["modelValue"])]),p("div",en,[g(r,{modelValue:e.$root.$data.showFriday,"onUpdate:modelValue":t[7]||(t[7]=a=>e.$root.$data.showFriday=a)},{default:b(()=>[S(m(o.strings.Friday),1)]),_:1},8,["modelValue"])]),p("div",tn,[g(r,{modelValue:e.$root.$data.showSaturday,"onUpdate:modelValue":t[8]||(t[8]=a=>e.$root.$data.showSaturday=a)},{default:b(()=>[S(m(o.strings.Saturday),1)]),_:1},8,["modelValue"])]),p("div",on,[g(r,{modelValue:e.$root.$data.showSunday,"onUpdate:modelValue":t[9]||(t[9]=a=>e.$root.$data.showSunday=a)},{default:b(()=>[S(m(o.strings.Sunday),1)]),_:1},8,["modelValue"])]),e.$root.$data.showTitle?(f(),_("div",sn,[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 an=q(js,[["render",nn],["__scopeId","data-v-79ea0c66"]]),Z=window.wp,P=Z.element.createElement,we=Z.element.Fragment;var $t;const ln=(($t=Z.blockEditor)==null?void 0:$t.InspectorControls)||Z.editor.InspectorControls,rn=Z.components.PanelBody,dn=Z.components.Disabled,cn=Z.serverSideRender||Z.components.ServerSideRender,un=Z.data.withSelect,ie="all-in-one-seo-pack",pn=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",hn={title:y("AIOSEO Local - Opening Hours",ie),category:"aioseo",icon:pn,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:un(function(e){const t=M();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var v;const n=(v=be().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(we,{},P("div",{},y("Loading...",ie)));if(a=a===null?[]:a,!n&&o.locationId)return P(we,{},P("div",{},y("Please enable multiple locations before using this block.",ie)));const c=M();if(n&&a.length===0)return P(we,{},P("div",{},z(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(H){s(H)},deep:!0}},render:()=>oe(an)});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,N(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&&N({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(ln,null,P(rn,{title:y("Display Settings",ie),initialOpen:!0,onToggle:()=>{N(w)}},P("div",{},P("div",{id:u},null))));return n&&!o.locationId?P(we,{},A,P("div",{},z(y("Select a %1$s",ie),c.aioseo.localBusiness.postTypeSingleLabel))):P(we,{},A,P("div",{className:i},P(dn,null,P(cn,{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}},mn=Object.freeze(Object.defineProperty({__proto__:null,name:Bt,settings:hn},Symbol.toStringTag,{value:"Module"})),gn={setup(){return{postEditorStore:ae(),rootStore:M()}},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})})}},fn={class:"sidebar-row"},bn={class:"title"};function $n(e,t,n,s,o,i){const l=$("base-select");return f(),_("div",null,[p("div",fn,[p("p",bn,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 wn=q(gn,[["render",$n]]),W=window.wp,x=W.element.createElement,de=W.element.Fragment;var wt;const yn=((wt=W.blockEditor)==null?void 0:wt.InspectorControls)||W.editor.InspectorControls,_n=W.components.PanelBody,vn=W.components.Disabled,Sn=W.serverSideRender||W.components.ServerSideRender,Ln=W.data.withSelect,ce="all-in-one-seo-pack",kn=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",In={title:y("AIOSEO Local - Locations",ce),category:"aioseo",icon:kn,example:{},attributes:{categoryId:{type:"number",default:null}},edit:Ln(function(e){const t=M();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var A;const n=(A=be().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=M();if(a.length===0)return x(de,{},x("div",{},z(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(wn)});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,N(h)),W.data.useSelect(v=>v("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof d!="function"||d(!0));const B=x(yn,null,x(_n,{title:c.aioseo.localBusiness.postTypePluralLabel,initialOpen:!0,onToggle:()=>{N(h)}},x("div",{},x("div",{id:u},null))));return a!==null&&a.length===0?x(de,{},x("div",{},z(y("No %1$s found",ce),c.aioseo.localBusiness.taxonomyPluralLabel))):o.categoryId?x(de,{},B,x("div",{className:i},x(vn,null,x(Sn,{block:At,attributes:{categoryId:o.categoryId}})))):x(de,{},B,x("div",{},z(y("Select a %1$s",ce),c.aioseo.localBusiness.taxonomySingleLabel)))}),save:function(){return null}},Cn=Object.freeze(Object.defineProperty({__proto__:null,name:At,settings:In},Symbol.toStringTag,{value:"Module"})),fe=window.wp,R=fe.element.createElement,Ie=fe.element.Fragment,Vn=fe.serverSideRender||fe.components.ServerSideRender,On=fe.components.Disabled,Tn=fe.data.withSelect,Ce="all-in-one-seo-pack",Bn=R("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},R("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",An={title:y("AIOSEO Local - Location Categories",Ce),category:"aioseo",icon:Bn,example:{},edit:Tn(function(e){const t=M();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var i;const n=(i=be().options.localBusiness)==null?void 0:i.locations.general.multiple,{className:s}=e;let{categories:o}=e;if(n&&o===null)return R(Ie,{},R("div",{},y("Loading...",Ce)));if(o=o===null?[]:o,!n)return R(Ie,{},R("div",{},y("Please enable multiple locations before using this block.",Ce)));if(o.length===0){const l=M();return R(Ie,{},R("div",{},z(y("No %1$s found",Ce),l.aioseo.localBusiness.taxonomyPluralLabel)))}return R(Ie,{},R("div",{className:s},R(On,null,R(Vn,{block:Et}))))}),save:function(){return null}},En=Object.freeze(Object.defineProperty({__proto__:null,name:Et,settings:An},Symbol.toStringTag,{value:"Module"})),Pn={setup(){return{postEditorStore:ae(),rootStore:M()}},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})})}},xn={key:0,class:"sidebar-row"},Nn={class:"title"},Mn={class:"sidebar-row"},Hn={class:"sidebar-row"},Dn={class:"sidebar-row"},qn={class:"title"},Un={class:"sidebar-row"},Rn={class:"title"},zn={class:"sidebar-row dimensions"},Fn={key:1,class:"sidebar-row labels"},jn={class:"title"};function Zn(e,t,n,s,o,i){const l=$("base-select"),r=$("base-toggle"),d=$("core-image-uploader"),a=$("base-input");return f(),_("div",null,[o.locationsList.length&&!i.isLocationPostType()?(f(),_("div",xn,[p("p",Nn,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:b(()=>[S(m(o.strings.showLabel),1)]),_:1},8,["modelValue"])]),p("div",Hn,[g(r,{modelValue:e.$root.$data.showIcon,"onUpdate:modelValue":t[2]||(t[2]=u=>e.$root.$data.showIcon=u)},{default:b(()=>[S(m(o.strings.showIcon),1)]),_:1},8,["modelValue"])]),p("div",Dn,[p("p",qn,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",Un,[p("p",Rn,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",Fn,[p("p",jn,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 Wn=q(Pn,[["render",Zn],["__scopeId","data-v-657b2056"]]);function Qn(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}function Jn(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 Gn(e){try{return decodeURIComponent(e)}catch{return e}}function Kn(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 Yn(e){return(Qn(e)||"").replace(/\+/g,"%20").split("&").reduce((t,n)=>{const[s,o=""]=n.split("=").filter(Boolean).map(Gn);if(s){const i=s.replace(/\]/g,"").split("[");Kn(t,i,o)}return t},Object.create(null))}function Xn(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const s=e.indexOf("?");return s!==-1&&(t=Object.assign(Yn(e),t),n=n.substr(0,s)),n+"?"+Jn(t)}const Q=window.wp,T=Q.element.createElement,ue=Q.element.Fragment;var yt;const ea=((yt=Q.blockEditor)==null?void 0:yt.InspectorControls)||Q.editor.InspectorControls,ta=Q.components.PanelBody,oa=Q.components.Disabled,sa=Q.serverSideRender||Q.components.ServerSideRender,na=Q.data.withSelect,Y="all-in-one-seo-pack",aa=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=[],ia="aioseo/locationmap",la={title:y("AIOSEO Local - Map",Y),category:"aioseo",icon:aa,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:na(function(e){const t=M();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var K;const t=be(),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=M();if(n&&a.length===0)return T(ue,{},T("div",{},z(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(Wn)});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,N(v)),Q.data.useSelect(O=>O("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof d!="function"||d(!0)),w&&N({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(ea,null,T(ta,{title:y("Settings",Y),initialOpen:!0,onToggle:()=>{N(v)}},T("div",null,T("div",{id:u},null))));if(n){if(!o.locationId)return T(ue,{},C,T("div",{},z(y("Select a %1$s",Y),c.aioseo.localBusiness.postTypeSingleLabel)));if(!A){const O=Xn("post.php",{post:o.locationId,action:"edit"});return T(ue,{},C,T("div",{dangerouslySetInnerHTML:{__html:z(y("Please configure the map for this location: %1$s",Y),'<a href="'+O+'" target="_blank">'+B.title.rendered+"</a>")}}))}}const H="#"+u+"-preview .aioseo-local-map";return N({selector:H,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:H,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(oa,null,T(sa,{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}},ra=Object.freeze(Object.defineProperty({__proto__:null,name:ia,settings:la},Symbol.toStringTag,{value:"Module"})),da="https://schemas.wp.org/wp/5.8/block.json",ca="aioseo/table-of-contents",ua="1.0.0",pa="AIOSEO - Table of Contents",ha="Automatically output a table of contents (TOC) for long posts or pages (and custom post types).",ma="layout",ga=["toc","table of contents","document outline","summary","index"],fa="all-in-one-seo-pack",ba={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:da,name:ca,version:ua,title:pa,description:ha,category:ma,keywords:ga,textdomain:fa,attributes:ba,supports:$a},wa={},ya={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-info"},_a=p("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),va=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),Sa=[_a,va];function La(e,t){return f(),_("svg",ya,Sa)}const xt=q(wa,[["render",La]]),ka={},Ia={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-eye-off"},Ca=p("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"},null,-1),Va=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),Oa=[Ca,Va];function Ta(e,t){return f(),_("svg",Ia,Oa)}const Ba=q(ka,[["render",Ta]]),Aa={setup(){return{tableOfContentsStore:ge()}},name:"List",components:{BaseInput:Ae,CoreTooltip:qe,Draggable:oo,SvgClose:kt,SvgDrag:so,SvgEye:no,SvgEyeOff:Ba,SvgInfo:xt,SvgTocLink:ao},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=zt(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)})))}}},Ea={class:"aioseo-toc-list-item__inner"},Pa={key:0,class:"aioseo-drag-handle has-icon"},xa={key:0,class:"append-icon"},Na={class:"append-icon"},Ma={class:"aioseo-tooltip__header"},Ha=["onClick"];function Da(e,t,n,s,o,i){const l=$("svg-drag"),r=$("svg-toc-link"),d=$("base-input"),a=$("svg-info"),u=$("core-tooltip"),c=$("svg-close"),h=$("svg-eye-off"),w=$("svg-eye"),B=$("List",!0),A=$("draggable");return f(),D(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:b(({element:v})=>[p("li",{class:_e(["aioseo-toc-list-item",{"heading-hidden":v.hidden}])},[p("div",Ea,[n.allowReorder?(f(),_("button",Pa,[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":b(()=>[n.allowReorder?k("",!0):(f(),_("div",xa,[g(r,{onClick:i.handleAnchorInput},null,8,["onClick"])]))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),n.allowReorder?k("",!0):(f(),D(d,{key:1,class:"row-input row-input--anchor",spellcheck:!1,modelValue:v.anchor,"onUpdate:modelValue":L=>i.setAnchor(L,v)},{"append-icon":b(()=>[p("div",Na,[g(u,null,{tooltip:b(()=>[p("p",Ma,m(o.strings.tooltipHeader),1),p("p",null,m(o.strings.tooltipDescription),1)]),default:b(()=>[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:_e([{active:v.hidden},"aioseo-hide-heading-toggle","has-icon"]),onClick:L=>i.setHiddenStatus(v)},[v.hidden?(f(),D(h,{key:0})):(f(),D(w,{key:1}))],10,Ha)),v.headings?(f(),D(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 qa=q(Aa,[["render",Da]]),Ua={setup(){return{tableOfContentsStore:ge()}},name:"ListRendered",props:{headings:{required:!0,type:Array}}},Ra=["href"];function za(e,t,n,s,o,i){const l=$("ListRendered",!0);return f(),D(qt(s.tableOfContentsStore.listStyle),{class:"aioseo-toc-list--rendered"},{default:b(()=>[(f(!0),_(Me,null,vt(n.headings,(r,d)=>(f(),_("li",{class:_e(["aioseo-toc-list-item--rendered",[{hidden:r.hidden}]]),key:d},[p("a",{href:`#${r.anchor}`},m(r.editedContent||r.content),9,Ra),r.headings?(f(),D(l,{key:0,class:"aioseo-toc-list-nested--rendered",headings:r.headings},null,8,["headings"])):k("",!0)],2))),128))]),_:1})}const Fa=q(Ua,[["render",za]]),{__:ot,sprintf:ja}=window.wp.i18n,st="all-in-one-seo-pack",Za={emits:["closeModal"],components:{CoreModal:io,Cta:lo},props:{show:Boolean},data(){return{links:Lt,strings:{header:ja(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 Wa(e,t,n,s,o,i){const l=$("cta"),r=$("core-modal");return f(),D(r,{show:n.show,classes:["aioseo-toc-modal-lite"],onClose:t[0]||(t[0]=d=>e.$emit("closeModal"))},{body:b(()=>[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":b(()=>[S(m(o.strings.header),1)]),description:b(()=>[S(m(o.strings.description),1)]),_:1},8,["cta-link","learn-more-link"])]),_:1},8,["show"])}const Qa=q(Za,[["render",Wa]]),Te={editedContent:"",editedLevel:0,editedOrder:0,hidden:!1,headings:[]},Ja={setup(){return{tableOfContentsStore:ge()}},components:{CoreTooltip:qe,Info:xt,List:qa,ListRendered:Fa,Reorder:Qa},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)})})}},Ga={class:"aioseo-toc-container"},Ka={class:"aioseo-toc-header"},Ya={class:"aioseo-toc-header-title"},Xa={key:0,class:"aioseo-toc-header-instructions"},ei={key:1,class:"aioseo-toc-header-buttons"},ti={key:0,class:"aioseo-toc-content"};function oi(e,t,n,s,o,i){const l=$("Info"),r=$("core-tooltip"),d=$("List"),a=$("reorder"),u=$("ListRendered");return f(),_("div",Ga,[p("div",{class:_e(["aioseo-toc-menu",{"aioseo-toc-placeholder":s.tableOfContentsStore.headings.length===0}])},[p("header",Ka,[p("div",Ya,[S(m(o.strings.header)+" ",1),g(r,{placement:"bottom"},{tooltip:b(()=>[p("p",null,m(o.strings.tooltipMainDescription),1)]),default:b(()=>[g(l)]),_:1})]),s.tableOfContentsStore.headings.length===0?(f(),_("div",Xa,m(o.strings.instructions),1)):k("",!0),s.tableOfContentsStore.headings.length!==0?(f(),_("div",ei,[p("a",{class:"aioseo-button-link",href:"#",onClick:t[0]||(t[0]=ye(c=>o.showModal=!0,["prevent"]))},m(o.strings.reorder),1),p("a",{class:"aioseo-button-link",href:"#",onClick:t[1]||(t[1]=ye((...c)=>i.save&&i.save(...c),["prevent"]))},m(o.strings.done),1)])):k("",!0)]),s.tableOfContentsStore.headings.length!==0?(f(),_("div",ti,[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(),D(u,{key:0,headings:s.tableOfContentsStore.headings},null,8,["headings"])):k("",!0)])}const si=q(Ja,[["render",oi]]),{__:nt}=window.wp.i18n,{InspectorControls:at}=window.wp.blockEditor,{PanelBody:it,SelectControl:ni}=window.wp.components,lt="all-in-one-seo-pack",ai=e=>{const{setAttributes:t,attributes:{listStyle:n}}=e,s=ge();return le` <${at}> <${it} title=${nt("Table of Contents Settings",lt)}> <${ni} 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:ii}=window.wp.data,Nt=window.wp.blockEditor.store,{isTyping:li}=window.wp.data.select(Nt)||{isTyping:()=>null},rt=[];let Oe=[];function ri(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),N({id:l,parent:document.querySelector(".block-editor"),subtree:!0,done:function(r){var u;const d=J({...si,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=ii(r=>{var L,C,H,K,O;const{getBlockAttributes:d,getBlockIndex:a,getBlockName:u,getClientIdsWithDescendants:c}=r(Nt),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),Re=typeof(V==null?void 0:V.anchor)=="string"&&V.anchor!=="",ze=V.level||V.tagName.replace("h","");if(ze==="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),!Re&&!li()&&(V.anchor="aioseo-"+xe(re)),w.push({id:Ue,blockClientId:I,content:re,level:Number(ze),anchor:Re?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))||((H=he([...(C=d(s))==null?void 0:C.headings]))==null?void 0:H.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> ${ai(e)} </div> `}const{RawHTML:dt}=window.wp.element;function di({attributes:{headings:e,listStyle:t}}){if(!e)return"";const n=Mt(e,t);return le`<${dt}>${n}</${dt}>`}const Mt=(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+=Mt(s.headings,t)),o+="</li>",n+=o}),n+=`</${t}>`,n},ci=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:ui,title:pi,description:hi,keywords:mi,category:gi,supports:fi,attributes:bi}=Pt,$i={title:pi,description:hi,keywords:mi,category:gi,attributes:bi,icon:ci,supports:fi,edit:ri,save:di},wi=Object.freeze(Object.defineProperty({__proto__:null,metadata:Pt,name:ui,settings:$i},Symbol.toStringTag,{value:"Module"})),yi="https://schemas.wp.org/wp/5.8/block.json",_i="aioseo/faq",vi="AIOSEO - FAQ",Si="Easily add an SEO-friendly Frequently Asked Question (FAQ) to your content.",Li="text",ki=["accordion","answer","faq","frequently asked questions","knowledge base","question","schema","seo"],Ii="all-in-one-seo-pack",Ci={hidden:{type:"boolean",default:!1},question:{type:"string",selector:".aioseo-faq-block-question"},schemaBlockId:{type:"string",default:""},tagName:{type:"string",default:"h3"}},Vi={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:yi,name:_i,title:vi,description:Si,category:Li,keywords:ki,textdomain:Ii,attributes:Ci,supports:Vi},{RichText:Oi,InnerBlocks:Ti}=window.wp.blockEditor,{PanelBody:ct,SelectControl:Bi,ToggleControl:Ai}=window.wp.components,ut=window.wp.blockEditor.InspectorControls||window.wp.editor.InspectorControls,{__:X}=window.wp.i18n,ee="all-in-one-seo-pack",Ei=[["core/paragraph",{placeholder:X("Write an answer...",ee)}]],Pi=["core/paragraph","core/heading","core/list","core/image","core/media-text"],xi=(e,t,n)=>{const{hidden:s,question:o,tagName:i,schemaBlockId:l}=t,r=Lt.getUpsellLink("faq-block",ro.learnMore,"sidebar",!0);return le` <div data-schema-only="${s}" className="${e}" data-schema-block-id="${l}"> <${ut}> <${ct} title=${X("FAQ Options",ee)}> <${Bi} 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> <${Ai} 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}> <${Oi} 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"> <${Ti} template=${Ei} allowedBlocks=${Pi} /> </div> </div> `},{useSelect:pt}=window.wp.data,{useEffect:Ni}=window.wp.element,ht=window.wp.blockEditor.store,{serialize:Mi}=window.wp.blocks,pe=[],Hi=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 Di(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")};Ni(()=>{(!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 H=B().filter(I=>w(I)==="aioseo/faq"),K=H.indexOf(s),O=H[K-1]||H[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=Mi(B);return Hi(A)})(s)},[s]);return r({answer:a}),xi(n,t,r)}const{RichText:qi,InnerBlocks:Ui}=window.wp.blockEditor;function Ri({attributes:e,className:t}){const{question:n,hidden:s,tagName:o}=e;return le` <div data-schema-only="${s}" className=${t}> <${qi.Content} tagName=${o} className="aioseo-faq-block-question" value=${n} /> <div className="aioseo-faq-block-answer"> <${Ui.Content} /> </div> </div> `}const zi=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:Fi,title:ji,description:Zi,category:Wi,supports:Qi,attributes:Ji}=Ht,Gi={title:ji,description:Zi,category:Wi,attributes:Ji,icon:zi,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:Qi,edit:Di,save:Ri},Ki=Object.freeze(Object.defineProperty({__proto__:null,metadata:Ht,name:Fi,settings:Gi},Symbol.toStringTag,{value:"Module"}));var _t;if(((_t=window.aioseo.currentPost)==null?void 0:_t.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;[fo,ds,((u=(a=window==null?void 0:window.aioseo)==null?void 0:a.screen)==null?void 0:u.base)==="post"?wi:null,Ki].forEach(r),window.aioseo.localBusiness&&[Fs,mn,Cn,En,ra].forEach(r)})()}