관리-도구
편집 파일: blocks.kz6a3bin.js
import"./js/translations.b896ab1m.js";import{_ as d,a as D}from"./js/default-i18n.hohxoesu.js";import{v as w,o as b,c as v,C as f,l as y,x as _,t as g,a as m,E as ke,k as R,b as k,F as ze,J as It,G as Ie,Y as X,h as ae,B as Ft,q as jt}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{l as le}from"./js/index.nd8elblc.js";import{l as Zt,B as xe,b as De,d as Fe}from"./js/index.npoectbv.js";import{l as Wt}from"./js/index.moogjen0.js";import{a as Se,u as x,l as Ct,b as re,ab as $e,ac as Qt,ad as je,e as Vt,ae as ye,A as Jt,af as Gt}from"./js/index.jlplx4ex.js";import{K as q,I as Kt}from"./js/helpers.cti0cl6i.js";import{u as Yt}from"./js/JsonValues.g6ep3o3z.js";import{S as Xt}from"./js/AddPlus.i4qcrr9e.js";import{S as Ot}from"./js/Caret.hnvbzqgq.js";import{S as eo}from"./js/External.h5te4wqm.js";import{_ as z}from"./js/_plugin-vue_export-helper.oebm7xum.js";import{u as to}from"./js/PostTypes.pd67gy5m.js";import{B as oo}from"./js/HighlightToggle.n7i6u2ep.js";import{C as Ze}from"./js/Tooltip.jx4casvt.js";import{G as so,a as no}from"./js/Row.o0q8mn7y.js";import{C as ao}from"./js/ImageUploader.lcptj1on.js";import{c as Ue}from"./js/cleanForSlug.i05mvw2m.js";import{D as lo,S as io}from"./js/vuedraggable.umd.nq8tf44u.js";import{S as ro}from"./js/Eye.jbr17b06.js";import{S as co}from"./js/Link.lo5szjwl.js";import{C as uo}from"./js/Index.lexckf3q.js";import{C as po}from"./js/Index.h6ka6vtn.js";import{G as mo}from"./js/constants.hcfrsngk.js";import{d as Ke}from"./js/debounce.nun852aa.js";import"./js/Checkbox.fww0datn.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Radio.flou2v5o.js";import"./js/Img.iuunu5c1.js";import"./js/Plus.e1tf1dpc.js";import"./js/toString.fflnj7pf.js";import"./js/_baseTrim.ohbpllmu.js";import"./js/_stringToArray.mpukyt2g.js";import"./js/toNumber.j7ix6obd.js";const Ce=window.wp,we=Ce.element.createElement,ho=Ce.element.Fragment,go=Ce.components.Disabled,fo=Ce.serverSideRender||Ce.components.ServerSideRender,bo="all-in-one-seo-pack",yo=we("svg",{width:24,height:25,viewBox:"0 0 24 25",xmlns:"http://www.w3.org/2000/svg"},we("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"})),Tt="aioseo/breadcrumbs",wo={title:d("AIOSEO - Breadcrumbs",bo),category:"aioseo",icon:yo,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)})}),we(ho,{},we("div",{},we(window.aioseo.options.breadcrumbs.enable?go:"div",null,we(fo,{block:Tt,attributes:{primaryTerm:n.primaryTerm}}))))},save:function(){return null}},$o=Object.freeze(Object.defineProperty({__proto__:null,name:Tt,settings:wo},Symbol.toStringTag,{value:"Module"}));var Bt=function(e,t,n,s){var o;t[0]=0;for(var l=1;l<t.length;l++){var i=t[l++],r=t[l]?(t[0]|=i?1:2,n[t[l++]]):t[++l];i===3?s[0]=r:i===4?s[1]=Object.assign(s[1]||{},r):i===5?(s[1]=s[1]||{})[t[++l]]=r:i===6?s[1][t[++l]]+=r+"":i?(o=e.apply(r,Bt(e,r,n,["",null])),s.push(o),r[0]?t[0]|=2:(t[l-2]=0,t[l]=o)):s.push(r)}return s},Ye=new Map;function vo(e){var t=Ye.get(this);return t||(t=new Map,Ye.set(this,t)),(t=Bt(this,t.get(e)||(t.set(e,t=function(n){for(var s,o,l=1,i="",r="",c=[0],a=function(h){l===1&&(h||(i=i.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(0,h,i):l===3&&(h||i)?(c.push(3,h,i),l=2):l===2&&i==="..."&&h?c.push(4,h,0):l===2&&i&&!h?c.push(5,0,!0,i):l>=5&&((i||!h&&l===5)&&(c.push(l,0,i,o),l=6),h&&(c.push(l,h,0,o),l=6)),i=""},p=0;p<n.length;p++){p&&(l===1&&a(),a(p));for(var u=0;u<n[p].length;u++)s=n[p][u],l===1?s==="<"?(a(),c=[c],l=3):i+=s:l===4?i==="--"&&s===">"?(l=1,i=""):i=s+i[0]:r?s===r?r="":i+=s:s==='"'||s==="'"?r=s:s===">"?(a(),l=1):l&&(s==="="?(l=5,o=i,i=""):s==="/"&&(l<5||n[p][u+1]===">")?(a(),l===3&&(c=c[0]),l=c,(c=c[0]).push(2,0,l),l=0):s===" "||s===" "||s===` `||s==="\r"?(a(),l=2):i+=s),l===3&&i==="!--"&&(l=4,c=c[0])}return a(),c}(e)),t),arguments,[])).length>1?t:t[0]}const ue=vo.bind(window.wp.element.createElement),Re=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),He=(e,t)=>{function n(){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!He(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)&&!He(e[r],t[r]))return!1;return!0}function o(){return e.toString()===t.toString()}function l(){return e===t}const i=Re(e);return i!==Re(t)?!1:i==="array"?n():i==="object"?s():i==="function"?o():l()},ne=e=>{const t=c=>{for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(c[a]=ne(e[a]))},n=()=>{const c={};return t(c),c},s=()=>e.map(function(c){return ne(c)}),o=()=>{const c=new Map;for(const[a,p]of e)c.set(a,ne(p));return c},l=()=>{const c=new Set;for(const a of e)c.add(ne(a));return c},i=()=>{const c=e.bind(void 0);return t(c),c},r=Re(e);return r==="object"?n():r==="array"?s():r==="map"?o():r==="set"?l():r==="function"?i():e},At=(e,t=!1)=>{const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const s=n.getElementsByTagName("*");let o=s.length;for(;o--;){const l=s[o];if(l.tagName==="SCRIPT")l.parentNode.removeChild(l);else{let i=l.attributes.length;for(;i--;){const{name:r}=l.attributes[i];r.startsWith("on")&&l.removeAttribute(r)}}}return t?n.textContent.trim():n.innerHTML},So=()=>"aioseo-"+new Date().getTime().toString(36),ie=(e,t)=>{const n=t.findIndex(s=>s.clientId===e);n!==-1&&(t[n].app.unmount(),t.splice(n,1))},de="all-in-one-seo-pack",_o={setup(){const{getJsonValues:e,setJsonValues:t}=Yt();return{getJsonValues:e,optionsStore:Se(),setJsonValues:t}},components:{SvgAddPlus:Xt,SvgClose:Ot,SvgExternal:eo},props:{type:{type:String,required:!0}},data(){return{excludeOptions:[],strings:{typeToSearch:d("Type to search...",de),noOptionsPosts:d("Begin typing a post ID, title or slug to search...",de),noOptionsTerms:d("Begin typing a term ID or name to search...",de),noResult:d("No results found for your search. Try again!",de),clear:d("Clear",de),id:d("ID",de),type:d("Type",de)}}},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>')}}},Lo={class:"aioseo-exclude-posts"},ko={class:"option"},Io=["innerHTML"],Co={class:"option-details"},Vo=["href"],Oo={class:"multiselect__tag"},To={class:"multiselect__tag-value"},Bo=["onClick"];function Ao(e,t,n,s,o,l){const i=w("svg-add-plus"),r=w("base-button"),c=w("svg-external"),a=w("svg-close"),p=w("base-select");return b(),v("div",Lo,[f(p,{options:o.excludeOptions,"ajax-search":l.processGetObjects,size:"medium",multiple:"",modelValue:s.getJsonValues(l.optionName),"onUpdate:modelValue":t[0]||(t[0]=u=>l.optionName=s.setJsonValues(u)),placeholder:o.strings.typeToSearch},{noOptions:y(()=>[_(g(l.noOptions),1)]),noResult:y(()=>[_(g(o.strings.noResult),1)]),caret:y(({toggle:u})=>[f(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:u},{default:y(()=>[f(i,{style:{width:"14px",height:"14px",color:"black"}})]),_:2},1032,["onClick"])]),option:y(({option:u,search:h})=>[m("div",ko,[m("div",{class:"option-title",innerHTML:l.getOptionTitle(u.label,h)},null,8,Io),m("div",Co,[m("span",null,g(o.strings.id)+": #"+g(u.value),1),m("span",null,g(o.strings.type)+": "+g(u.type),1)])]),m("a",{class:"option-permalink",href:u.link,target:"_blank",onClick:ke(()=>{},["stop"])},[f(c)],8,Vo)]),tag:y(({option:u,remove:h})=>[m("div",Oo,[m("div",To,g(u.label)+" - #"+g(u.value),1),m("div",{class:"multiselect__tag-remove",onClick:ke($=>h(u),["stop"])},[f(a,{onClick:ke($=>h(u),["stop"])},null,8,["onClick"])],8,Bo)])]),_:1},8,["options","ajax-search","modelValue","placeholder"]),f(r,{type:"gray",size:"small",onClick:t[1]||(t[1]=u=>l.optionName=[])},{default:y(()=>[_(g(o.strings.clear),1)]),_:1})])}const Eo=z(_o,[["render",Ao]]),Ve="all-in-one-seo-pack",Po={setup(){const{getPostIconClass:e}=to();return{getPostIconClass:e,rootStore:x()}},components:{BaseHighlightToggle:oo,CoreTooltip:Ze,GridColumn:so,GridRow:no},props:{type:{type:String,required:!0},excluded:{type:Array,default(){return[]}}},data(){return{strings:{label:d("Label:",Ve),name:d("Slug:",Ve),includeAllPostTypes:d("Include All Post Types",Ve),includeAllTaxonomies:d("Include All Taxonomies",Ve)}}},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}}},No={class:"aioseo-included-objects-toggle"},Mo={class:"included-objects-settings"},Ho={class:"aioseo-description"},xo=m("br",null,null,-1);function Do(e,t,n,s,o,l){const i=w("base-toggle"),r=w("core-tooltip"),c=w("base-highlight-toggle"),a=w("grid-column"),p=w("grid-row");return b(),v("div",No,[m("div",Mo,[n.type==="post_types"?(b(),R(i,{key:0,size:"medium",modelValue:e.$root.$data.post_types_all,"onUpdate:modelValue":t[0]||(t[0]=u=>e.$root.$data.post_types_all=u)},{default:y(()=>[_(g(o.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"])):k("",!0),n.type==="taxonomies"?(b(),R(i,{key:1,size:"medium",modelValue:e.$root.$data.taxonomies_all,"onUpdate:modelValue":t[1]||(t[1]=u=>e.$root.$data.taxonomies_all=u)},{default:y(()=>[_(g(o.strings.includeAllTaxonomies),1)]),_:1},8,["modelValue"])):k("",!0),0<l.objects.length&&!l.includeAllSetting?(b(),R(p,{key:2,class:"aioseo-included-list"},{default:y(()=>[(b(!0),v(ze,null,It(l.objects,(u,h)=>(b(),R(a,{md:"6",key:h},{default:y(()=>[f(c,{size:"medium",active:l.isActive(u),name:u.name,type:"checkbox",modelValue:l.getValue(u),"onUpdate:modelValue":$=>l.updateValue($,u)},{default:y(()=>[f(r,null,{tooltip:y(()=>[m("div",Ho,[_(g(o.strings.label)+" ",1),m("strong",null,g(u.label),1),xo,_(" "+g(o.strings.name)+" ",1),m("strong",null,g(u.name),1)])]),default:y(()=>[m("span",{class:Ie(["icon dashicons",s.getPostIconClass(u.icon)])},null,2)]),_:2},1024),_(" "+g(u.label),1)]),_:2},1032,["active","name","modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1})):k("",!0)])])}const qo=z(Po,[["render",Do]]),M="all-in-one-seo-pack",Uo={components:{HtmlSitemapExcludeObjects:Eo,HtmlSitemapIncludedObjects:qo},data(){return{sortDirections:[{label:d("Ascending",M),value:"asc"},{label:d("Descending",M),value:"desc"}],sortOrders:[{label:d("Publish Date",M),value:"publish_date"},{label:d("Last Updated",M),value:"last_updated"},{label:d("Alphabetical",M),value:"alphabetical"},{label:d("Post/Term ID",M),value:"id"}],strings:{useDefault:d("Use Default Settings",M),postTypes:d("Post Types",M),taxonomies:d("Taxonomies",M),includeAllPostTypes:d("Include All Post Types",M),includeAllTaxonomies:d("Include All Taxonomies",M),showLabel:d("Show Labels",M),publicationDate:d("Show Publication Date",M),archives:d("Compact Archives",M),sortOrder:d("Sort Order",M),sortDirection:d("Sort Direction",M),excludePostsPages:d("Exclude Posts / Pages",M),excludeTerms:d("Exclude Terms",M)}}},methods:{getSortOrder(e){return this.sortOrders.find(t=>t.value===e)},getSortDirection(e){return this.sortDirections.find(t=>t.value===e)}}},Ro={class:"aioseo-sidebar-row"},zo={class:"aioseo-sidebar-row"},Fo={key:0,class:"aioseo-sidebar-row"},jo={key:1,class:"aioseo-sidebar-row"},Zo={key:2,class:"aioseo-sidebar-row"},Wo={class:"aioseo-sidebar-title"},Qo={key:3,class:"aioseo-sidebar-row"},Jo={class:"aioseo-sidebar-title"},Go={key:4,class:"aioseo-sidebar-row"},Ko={class:"aioseo-sidebar-title"},Yo={class:"aioseo-sidebar-row"},Xo={class:"aioseo-sidebar-title"},es={key:5,class:"aioseo-sidebar-row"},ts={class:"aioseo-sidebar-title"},os={key:6,class:"aioseo-sidebar-row"},ss={class:"aioseo-sidebar-title"};function ns(e,t,n,s,o,l){const i=w("base-toggle"),r=w("html-sitemap-included-objects"),c=w("base-select"),a=w("html-sitemap-exclude-objects");return b(),v("div",null,[m("div",Ro,[f(i,{modelValue:e.$root.$data.default,"onUpdate:modelValue":t[0]||(t[0]=p=>e.$root.$data.default=p)},{default:y(()=>[_(g(o.strings.useDefault),1)]),_:1},8,["modelValue"])]),e.$root.$data.default?k("",!0):(b(),v(ze,{key:0},[m("div",zo,[f(i,{modelValue:e.$root.$data.archives,"onUpdate:modelValue":t[1]||(t[1]=p=>e.$root.$data.archives=p)},{default:y(()=>[_(g(o.strings.archives),1)]),_:1},8,["modelValue"])]),e.$root.$data.archives?k("",!0):(b(),v("div",Fo,[f(i,{modelValue:e.$root.$data.show_label,"onUpdate:modelValue":t[2]||(t[2]=p=>e.$root.$data.show_label=p)},{default:y(()=>[_(g(o.strings.showLabel),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?k("",!0):(b(),v("div",jo,[f(i,{modelValue:e.$root.$data.publication_date,"onUpdate:modelValue":t[3]||(t[3]=p=>e.$root.$data.publication_date=p)},{default:y(()=>[_(g(o.strings.publicationDate),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?k("",!0):(b(),v("div",Zo,[m("p",Wo,g(o.strings.postTypes),1),f(r,{type:"post_types",excluded:["attachment"]})])),e.$root.$data.archives?k("",!0):(b(),v("div",Qo,[m("p",Jo,g(o.strings.taxonomies),1),f(r,{type:"taxonomies"})])),e.$root.$data.archives?k("",!0):(b(),v("div",Go,[m("p",Ko,g(o.strings.sortOrder),1),f(c,{size:"medium",options:o.sortOrders,modelValue:l.getSortOrder(e.$root.$data.order_by),"onUpdate:modelValue":t[4]||(t[4]=p=>e.$root.$data.order_by=p.value),"track-by":"value"},null,8,["options","modelValue"])])),m("div",Yo,[m("p",Xo,g(o.strings.sortDirection),1),f(c,{size:"medium",options:o.sortDirections,modelValue:l.getSortDirection(e.$root.$data.order),"onUpdate:modelValue":t[5]||(t[5]=p=>e.$root.$data.order=p.value),"track-by":"value"},null,8,["options","modelValue"])]),e.$root.$data.archives?k("",!0):(b(),v("div",es,[m("p",ts,g(o.strings.excludePostsPages),1),f(a,{type:"posts"})])),e.$root.$data.archives?k("",!0):(b(),v("div",os,[m("p",ss,g(o.strings.excludeTerms),1),f(a,{type:"terms"})]))],64))])}const as=z(Uo,[["render",ns]]),ee=window.wp,W=ee.element.createElement,ls=ee.element.Fragment,is=ee.serverSideRender||ee.components.ServerSideRender;var $t;const rs=(($t=ee.blockEditor)==null?void 0:$t.InspectorControls)||ee.editor.InspectorControls,ds=ee.components.PanelBody,cs=ee.components.Disabled,Xe="all-in-one-seo-pack",us=W("svg",{width:25,height:25,viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},W("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"})),qe={},et=[],Et="aioseo/html-sitemap",ps={title:d("AIOSEO - HTML Sitemap",Xe),category:"aioseo",icon:us,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:l,toggleSelection:i}=e,r="aioseo-"+o,c={id:r,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(u){ie(o,et);let h=X({name:"Blocks/HtmlSitemap",data:function(){return qe[o]},watch:{$data:{handler:function($){t($)},deep:!0}},render:()=>ae(as)});h=le(h),h=Zt(h),h=Wt(h),Ct(h),h.mount(u),et.push({clientId:o,app:h})}};l&&(qe[o]={},Object.keys(n).forEach(u=>{qe[o][u]=n[u]}),q(c)),ee.data.useSelect(u=>u("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof i!="function"||i(!0));const p=W(rs,null,W(ds,{title:d("Display Settings",Xe),initialOpen:!0,onToggle:()=>{q(c)}},W("div",null,W("div",{id:r},null))));return W(ls,{},p,W("div",{className:s},W(cs,null,W(is,{block:Et,attributes:{...n}}))))},save:function(){return null}},ms=Object.freeze(Object.defineProperty({__proto__:null,name:Et,settings:ps},Symbol.toStringTag,{value:"Module"})),H="all-in-one-seo-pack",hs={setup(){return{postEditorStore:re(),rootStore:x()}},components:{BaseInput:xe,BaseSelect:De,BaseToggle:Fe},data(){return{locationsList:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.postTypeSingleLabel,showLabels:d("Show labels",H),showIcons:d("Show icons",H),businessInfo:d("Business Info",H),showName:d("Name",H),address:d("Address",H),phoneNumber:d("Phone Number",H),faxNumber:d("Fax Number",H),emailAddress:d("Email Address",H),showVat:d("Show VAT ID",H),showTax:d("Show Tax ID",H),countryCode:d("Phone/Fax Country Code",H),labels:d("Labels",H),addressLabel:d("Address",H),vatIdLabel:d("Vat ID",H),taxIdLabel:d("Tax ID",H),phoneLabel:d("Phone",H),faxLabel:d("Fax",H),emailLabel:d("Email",H)}}},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})})}},gs={key:0,class:"sidebar-row"},fs={class:"title"},bs={class:"sidebar-row"},ys={class:"sidebar-row"},ws={class:"sidebar-row"},$s={class:"title"},vs={class:"sidebar-row"},Ss={class:"sidebar-row"},_s={class:"sidebar-row"},Ls={class:"sidebar-row"},ks={key:1,class:"sidebar-row"},Is={class:"sidebar-row"},Cs={class:"sidebar-row"},Vs={class:"sidebar-row"},Os={key:2},Ts={class:"sidebar-row"},Bs={class:"title"},As={class:"sidebar-row labels"},Es={key:0},Ps={key:1},Ns={key:2},Ms={key:3},Hs={key:4},xs={key:5};function Ds(e,t,n,s,o,l){const i=w("base-select"),r=w("base-toggle"),c=w("base-input");return b(),v("div",null,[o.locationsList.length&&!l.isLocationPostType()?(b(),v("div",gs,[m("p",fs,g(o.strings.selectLocation),1),f(i,{size:"medium",options:o.locationsList,modelValue:l.getLocationOptions(e.$root.$data.locationId),"onUpdate:modelValue":t[0]||(t[0]=a=>e.$root.$data.locationId=a.value),"track-by":"value"},null,8,["options","modelValue"])])):k("",!0),m("div",bs,[f(r,{modelValue:e.$root.$data.showLabels,"onUpdate:modelValue":t[1]||(t[1]=a=>e.$root.$data.showLabels=a)},{default:y(()=>[_(g(o.strings.showLabels),1)]),_:1},8,["modelValue"])]),m("div",ys,[f(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=a=>e.$root.$data.showIcons=a)},{default:y(()=>[_(g(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),m("div",ws,[m("p",$s,g(o.strings.businessInfo),1)]),m("div",vs,[f(r,{modelValue:e.$root.$data.showName,"onUpdate:modelValue":t[3]||(t[3]=a=>e.$root.$data.showName=a)},{default:y(()=>[_(g(o.strings.showName),1)]),_:1},8,["modelValue"])]),m("div",Ss,[f(r,{modelValue:e.$root.$data.showAddress,"onUpdate:modelValue":t[4]||(t[4]=a=>e.$root.$data.showAddress=a)},{default:y(()=>[_(g(o.strings.address),1)]),_:1},8,["modelValue"])]),m("div",_s,[f(r,{modelValue:e.$root.$data.showPhone,"onUpdate:modelValue":t[5]||(t[5]=a=>e.$root.$data.showPhone=a)},{default:y(()=>[_(g(o.strings.phoneNumber),1)]),_:1},8,["modelValue"])]),m("div",Ls,[f(r,{modelValue:e.$root.$data.showFax,"onUpdate:modelValue":t[6]||(t[6]=a=>e.$root.$data.showFax=a)},{default:y(()=>[_(g(o.strings.faxNumber),1)]),_:1},8,["modelValue"])]),e.$root.$data.showPhone||e.$root.$data.showFax?(b(),v("div",ks,[f(r,{modelValue:e.$root.$data.showCountryCode,"onUpdate:modelValue":t[7]||(t[7]=a=>e.$root.$data.showCountryCode=a)},{default:y(()=>[_(g(o.strings.countryCode),1)]),_:1},8,["modelValue"])])):k("",!0),m("div",Is,[f(r,{modelValue:e.$root.$data.showEmail,"onUpdate:modelValue":t[8]||(t[8]=a=>e.$root.$data.showEmail=a)},{default:y(()=>[_(g(o.strings.emailAddress),1)]),_:1},8,["modelValue"])]),m("div",Cs,[f(r,{modelValue:e.$root.$data.showVat,"onUpdate:modelValue":t[9]||(t[9]=a=>e.$root.$data.showVat=a)},{default:y(()=>[_(g(o.strings.showVat),1)]),_:1},8,["modelValue"])]),m("div",Vs,[f(r,{modelValue:e.$root.$data.showTax,"onUpdate:modelValue":t[10]||(t[10]=a=>e.$root.$data.showTax=a)},{default:y(()=>[_(g(o.strings.showTax),1)]),_:1},8,["modelValue"])]),e.$root.$data.showLabels?(b(),v("div",Os,[m("div",Ts,[m("p",Bs,g(o.strings.labels),1)]),m("div",As,[e.$root.$data.showAddress?(b(),v("div",Es,[m("label",null,g(o.strings.addressLabel),1),f(c,{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?(b(),v("div",Ps,[m("label",null,g(o.strings.vatIdLabel),1),f(c,{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?(b(),v("div",Ns,[m("label",null,g(o.strings.taxIdLabel),1),f(c,{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?(b(),v("div",Ms,[m("label",null,g(o.strings.phoneLabel),1),f(c,{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?(b(),v("div",Hs,[m("label",null,g(o.strings.faxLabel),1),f(c,{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?(b(),v("div",xs,[m("label",null,g(o.strings.emailLabel),1),f(c,{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 qs=z(hs,[["render",Ds],["__scopeId","data-v-f724afcb"]]),Q=window.wp,E=Q.element.createElement,_e=Q.element.Fragment;var vt;const Us=((vt=Q.blockEditor)==null?void 0:vt.InspectorControls)||Q.editor.InspectorControls,Rs=Q.components.PanelBody,zs=Q.components.Disabled,Fs=Q.serverSideRender||Q.components.ServerSideRender,js=Q.data.withSelect,F="all-in-one-seo-pack",Zs=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"})),Oe={},tt=[],ot=[],Pt="aioseo/businessinfo",Ws={title:d("AIOSEO Local - Business Info",F),category:"aioseo",icon:Zs,example:{},attributes:{locationId:{type:"number",default:null},showLabels:{type:"boolean",default:!0},addressLabel:{type:"string",default:d("Address:",F)},vatIdLabel:{type:"string",default:d("VAT ID:",F)},taxIdLabel:{type:"string",default:d("Tax ID:",F)},phoneLabel:{type:"string",default:d("Phone:",F)},faxLabel:{type:"string",default:d("Fax:",F)},emailLabel:{type:"string",default:d("Email:",F)},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:js(function(e){const t=x();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var S;const n=(S=Se().options.localBusiness)==null?void 0:S.locations.general.multiple,{setAttributes:s,attributes:o,className:l,clientId:i,isSelected:r,toggleSelection:c}=e;let{locations:a}=e;const p="aioseo-"+i;if(n&&a===null)return E(_e,{},E("div",{},d("Loading...",F)));if(a=a===null?[]:a,!n&&o.locationId)return E(_e,{},E("div",{},d("Please enable multiple locations before using this block.",F)));const u=x();if(n&&a.length===0)return E(_e,{},E("div",{},D(d("No %1$s found",F),u.aioseo.localBusiness.postTypePluralLabel)));const h=re();o.locationId=!o.locationId&&h.currentPost.postType===u.aioseo.localBusiness.postTypeName?h.currentPost.id:o.locationId;const $={id:p,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(L){ie(i,tt);let C=X({name:"Blocks/BusinessInfo",data:function(){return Oe[i]},watch:{$data:{handler:function(U){s(U)},deep:!0}},render:()=>ae(qs)});C=le(C),C.mount(L),tt.push({clientId:i,app:C})}};r&&(Oe[i]={},Object.keys(o).forEach(L=>{Oe[i][L]=o[L]}),Oe[i].locations=a,q($)),Q.data.useSelect(L=>L("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof c!="function"||c(!0)),h.currentPost.postType===u.aioseo.localBusiness.postTypeName&&q({id:p+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){ie(i,ot);let C=X({name:"Blocks/BusinessInfoWatcher",data:function(){return h.currentPost.local_seo.locations.business},watch:{$data:{handler:function(){s({updated:Date.now()})},deep:!0}},render:()=>ae("div")});C=le(C),C.mount(L),ot.push({clientId:i,app:C})}});const A=E(Us,null,E(Rs,{title:d("Display Settings",F),initialOpen:!0,onToggle:()=>{q($)}},E("div",null,E("div",{id:p},null))));return n&&!o.locationId?E(_e,{},A,E("div",{},D(d("Select a %1$s",F),u.aioseo.localBusiness.postTypeSingleLabel))):E(_e,{},A,E("div",{className:l},E(zs,null,E(Fs,{block:Pt,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===u.aioseo.localBusiness.postTypeName?JSON.stringify(h.currentPost.local_seo.locations.business):null}})),E("div",{},E("div",{id:p+"-watcher"},null))))}),save:function(){return null}},Qs=Object.freeze(Object.defineProperty({__proto__:null,name:Pt,settings:Ws},Symbol.toStringTag,{value:"Module"})),Z="all-in-one-seo-pack",Js={setup(){return{postEditorStore:re(),rootStore:x()}},components:{BaseInput:xe,BaseSelect:De,BaseToggle:Fe},data(){return{locationsList:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.postTypeSingleLabel,showTitle:d("Show Title",Z),showIcons:d("Show Icons",Z),Monday:d("Monday",Z),Tuesday:d("Tuesday",Z),Wednesday:d("Wednesday",Z),Thursday:d("Thursday",Z),Friday:d("Friday",Z),Saturday:d("Saturday",Z),Sunday:d("Sunday",Z),label:d("Label",Z)}}},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})})}},Gs={key:0,class:"sidebar-row"},Ks={class:"title"},Ys={class:"sidebar-row"},Xs={class:"sidebar-row"},en={class:"sidebar-row"},tn={class:"sidebar-row"},on={class:"sidebar-row"},sn={class:"sidebar-row"},nn={class:"sidebar-row"},an={class:"sidebar-row"},ln={class:"sidebar-row"},rn={key:1,class:"sidebar-row labels"};function dn(e,t,n,s,o,l){const i=w("base-select"),r=w("base-toggle"),c=w("base-input");return b(),v("div",null,[o.locationsList.length&&!l.isLocationPostType()?(b(),v("div",Gs,[m("p",Ks,g(o.strings.selectLocation),1),f(i,{size:"medium",options:o.locationsList,modelValue:l.getLocationOptions(e.$root.$data.locationId),"onUpdate:modelValue":t[0]||(t[0]=a=>e.$root.$data.locationId=a.value),"track-by":"value"},null,8,["options","modelValue"])])):k("",!0),m("div",Ys,[f(r,{modelValue:e.$root.$data.showTitle,"onUpdate:modelValue":t[1]||(t[1]=a=>e.$root.$data.showTitle=a)},{default:y(()=>[_(g(o.strings.showTitle),1)]),_:1},8,["modelValue"])]),m("div",Xs,[f(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=a=>e.$root.$data.showIcons=a)},{default:y(()=>[_(g(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),m("div",en,[f(r,{modelValue:e.$root.$data.showMonday,"onUpdate:modelValue":t[3]||(t[3]=a=>e.$root.$data.showMonday=a)},{default:y(()=>[_(g(o.strings.Monday),1)]),_:1},8,["modelValue"])]),m("div",tn,[f(r,{modelValue:e.$root.$data.showTuesday,"onUpdate:modelValue":t[4]||(t[4]=a=>e.$root.$data.showTuesday=a)},{default:y(()=>[_(g(o.strings.Tuesday),1)]),_:1},8,["modelValue"])]),m("div",on,[f(r,{modelValue:e.$root.$data.showWednesday,"onUpdate:modelValue":t[5]||(t[5]=a=>e.$root.$data.showWednesday=a)},{default:y(()=>[_(g(o.strings.Wednesday),1)]),_:1},8,["modelValue"])]),m("div",sn,[f(r,{modelValue:e.$root.$data.showThursday,"onUpdate:modelValue":t[6]||(t[6]=a=>e.$root.$data.showThursday=a)},{default:y(()=>[_(g(o.strings.Thursday),1)]),_:1},8,["modelValue"])]),m("div",nn,[f(r,{modelValue:e.$root.$data.showFriday,"onUpdate:modelValue":t[7]||(t[7]=a=>e.$root.$data.showFriday=a)},{default:y(()=>[_(g(o.strings.Friday),1)]),_:1},8,["modelValue"])]),m("div",an,[f(r,{modelValue:e.$root.$data.showSaturday,"onUpdate:modelValue":t[8]||(t[8]=a=>e.$root.$data.showSaturday=a)},{default:y(()=>[_(g(o.strings.Saturday),1)]),_:1},8,["modelValue"])]),m("div",ln,[f(r,{modelValue:e.$root.$data.showSunday,"onUpdate:modelValue":t[9]||(t[9]=a=>e.$root.$data.showSunday=a)},{default:y(()=>[_(g(o.strings.Sunday),1)]),_:1},8,["modelValue"])]),e.$root.$data.showTitle?(b(),v("div",rn,[m("label",null,g(o.strings.label),1),f(c,{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 cn=z(Js,[["render",dn],["__scopeId","data-v-7aaa8be8"]]),J=window.wp,P=J.element.createElement,Le=J.element.Fragment;var St;const un=((St=J.blockEditor)==null?void 0:St.InspectorControls)||J.editor.InspectorControls,pn=J.components.PanelBody,mn=J.components.Disabled,hn=J.serverSideRender||J.components.ServerSideRender,gn=J.data.withSelect,ce="all-in-one-seo-pack",fn=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"})),Te={},st=[],nt=[],Nt="aioseo/openinghours",bn={title:d("AIOSEO Local - Opening Hours",ce),category:"aioseo",icon:fn,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:d("Our Opening Hours:",ce)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},edit:gn(function(e){const t=x();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var S;const n=(S=Se().options.localBusiness)==null?void 0:S.locations.general.multiple,{setAttributes:s,attributes:o,className:l,clientId:i,isSelected:r,toggleSelection:c}=e;let{locations:a}=e;const p=`aioseo-${i}-settings`;if(n&&a===null)return P(Le,{},P("div",{},d("Loading...",ce)));if(a=a===null?[]:a,!n&&o.locationId)return P(Le,{},P("div",{},d("Please enable multiple locations before using this block.",ce)));const u=x();if(n&&a.length===0)return P(Le,{},P("div",{},D(d("No %1$s found",ce),u.aioseo.localBusiness.postTypePluralLabel)));const h=re();o.locationId=!o.locationId&&h.currentPost.postType===u.aioseo.localBusiness.postTypeName?h.currentPost.id:o.locationId;const $={id:p,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(L){ie(i,st);let C=X({name:"Blocks/OpeningHours",data:function(){return Te[i]},watch:{$data:{handler:function(U){s(U)},deep:!0}},render:()=>ae(cn)});C=le(C),C.mount(L),st.push({clientId:i,app:C})}};r&&(Te[i]={},Object.keys(o).forEach(L=>{Te[i][L]=o[L]}),Te[i].locations=a,q($)),J.data.useSelect(L=>L("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof c!="function"||c(!0)),h.currentPost.postType===u.aioseo.localBusiness.postTypeName&&q({id:p+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){ie(i,nt);let C=X({name:"Blocks/OpeningHoursWatcher",data:function(){return h.currentPost.local_seo.openingHours},watch:{$data:{handler:function(){s({updated:Date.now()})},deep:!0}},render:()=>ae("div")});C=le(C),C.mount(L),nt.push({clientId:i,app:C})}});const A=P(un,null,P(pn,{title:d("Display Settings",ce),initialOpen:!0,onToggle:()=>{q($)}},P("div",{},P("div",{id:p},null))));return n&&!o.locationId?P(Le,{},A,P("div",{},D(d("Select a %1$s",ce),u.aioseo.localBusiness.postTypeSingleLabel))):P(Le,{},A,P("div",{className:l},P(mn,null,P(hn,{block:Nt,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===u.aioseo.localBusiness.postTypeName?JSON.stringify(h.currentPost.local_seo.openingHours):null}})),P("div",{},P("div",{id:p+"-watcher"},null))))}),save:function(){return null}},yn=Object.freeze(Object.defineProperty({__proto__:null,name:Nt,settings:bn},Symbol.toStringTag,{value:"Module"})),wn={setup(){return{postEditorStore:re(),rootStore:x()}},components:{BaseSelect:De},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})})}},$n={class:"sidebar-row"},vn={class:"title"};function Sn(e,t,n,s,o,l){const i=w("base-select");return b(),v("div",null,[m("div",$n,[m("p",vn,g(o.strings.selectLocation),1),f(i,{size:"medium",options:o.locationCategories,modelValue:l.getCategoryOptions(e.$root.$data.categoryId),"onUpdate:modelValue":t[0]||(t[0]=r=>e.$root.$data.categoryId=r.value),"track-by":"value"},null,8,["options","modelValue"])])])}const _n=z(wn,[["render",Sn]]),G=window.wp,N=G.element.createElement,me=G.element.Fragment;var _t;const Ln=((_t=G.blockEditor)==null?void 0:_t.InspectorControls)||G.editor.InspectorControls,kn=G.components.PanelBody,In=G.components.Disabled,Cn=G.serverSideRender||G.components.ServerSideRender,Vn=G.data.withSelect,he="all-in-one-seo-pack",On=N("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},N("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"})),Be={},at=[],Mt="aioseo/locations",Tn={title:d("AIOSEO Local - Locations",he),category:"aioseo",icon:On,example:{},attributes:{categoryId:{type:"number",default:null}},edit:Vn(function(e){const t=x();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var A;const n=(A=Se().options.localBusiness)==null?void 0:A.locations.general.multiple,{setAttributes:s,attributes:o,className:l,clientId:i,isSelected:r,toggleSelection:c}=e;let{categories:a}=e;const p="aioseo-"+i;if(n&&a===null)return N(me,{},N("div",{},d("Loading...",he)));if(a=a===null?[]:a,!n)return N(me,{},N("div",{},d("Please enable multiple locations before using this block.",he)));const u=x();if(a.length===0)return N(me,{},N("div",{},D(d("No %1$s found",he),u.aioseo.localBusiness.taxonomyPluralLabel)));const h={id:p,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(S){ie(i,at);let L=X({name:"Blocks/Locations",data:function(){return Be[i]},watch:{$data:{handler:function(C){s(C)},deep:!0}},render:()=>ae(_n)});L=le(L),L.mount(S),at.push({clientId:i,app:L})}};r&&(Be[i]={},Object.keys(o).forEach(S=>{Be[i][S]=o[S]}),Be[i].categories=a,q(h)),G.data.useSelect(S=>S("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof c!="function"||c(!0));const B=N(Ln,null,N(kn,{title:u.aioseo.localBusiness.postTypePluralLabel,initialOpen:!0,onToggle:()=>{q(h)}},N("div",{},N("div",{id:p},null))));return a!==null&&a.length===0?N(me,{},N("div",{},D(d("No %1$s found",he),u.aioseo.localBusiness.taxonomyPluralLabel))):o.categoryId?N(me,{},B,N("div",{className:l},N(In,null,N(Cn,{block:Mt,attributes:{categoryId:o.categoryId}})))):N(me,{},B,N("div",{},D(d("Select a %1$s",he),u.aioseo.localBusiness.taxonomySingleLabel)))}),save:function(){return null}},Bn=Object.freeze(Object.defineProperty({__proto__:null,name:Mt,settings:Tn},Symbol.toStringTag,{value:"Module"})),ve=window.wp,j=ve.element.createElement,Ae=ve.element.Fragment,An=ve.serverSideRender||ve.components.ServerSideRender,En=ve.components.Disabled,Pn=ve.data.withSelect,Ee="all-in-one-seo-pack",Nn=j("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},j("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"})),Ht="aioseo/locationcategories",Mn={title:d("AIOSEO Local - Location Categories",Ee),category:"aioseo",icon:Nn,example:{},edit:Pn(function(e){const t=x();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var l;const n=(l=Se().options.localBusiness)==null?void 0:l.locations.general.multiple,{className:s}=e;let{categories:o}=e;if(n&&o===null)return j(Ae,{},j("div",{},d("Loading...",Ee)));if(o=o===null?[]:o,!n)return j(Ae,{},j("div",{},d("Please enable multiple locations before using this block.",Ee)));if(o.length===0){const i=x();return j(Ae,{},j("div",{},D(d("No %1$s found",Ee),i.aioseo.localBusiness.taxonomyPluralLabel)))}return j(Ae,{},j("div",{className:s},j(En,null,j(An,{block:Ht}))))}),save:function(){return null}},Hn=Object.freeze(Object.defineProperty({__proto__:null,name:Ht,settings:Mn},Symbol.toStringTag,{value:"Module"})),Y="all-in-one-seo-pack",xn={setup(){return{postEditorStore:re(),rootStore:x()}},components:{BaseInput:xe,BaseSelect:De,BaseToggle:Fe,CoreImageUploader:ao},data(){return{locationsList:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.postTypeSingleLabel,showLabel:d("Show label",Y),showIcon:d("Show icon",Y),businessInfo:d("Business Info",Y),mapDisplay:d("Map Display",Y),width:d("Width",Y),height:d("Height",Y),customMarker:d("Custom Marker",Y),minimumSize:D(d("%1$sThe custom marker should be: 100x100 px.%2$s If the image exceeds those dimensions it could (partially) cover the info popup.",Y),"<strong>","</strong>"),label:d("Label",Y)}}},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})})}},Dn={key:0,class:"sidebar-row"},qn={class:"title"},Un={class:"sidebar-row"},Rn={class:"sidebar-row"},zn={class:"sidebar-row"},Fn={class:"title"},jn={class:"sidebar-row"},Zn={class:"title"},Wn={class:"sidebar-row dimensions"},Qn={key:1,class:"sidebar-row labels"},Jn={class:"title"};function Gn(e,t,n,s,o,l){const i=w("base-select"),r=w("base-toggle"),c=w("core-image-uploader"),a=w("base-input");return b(),v("div",null,[o.locationsList.length&&!l.isLocationPostType()?(b(),v("div",Dn,[m("p",qn,g(o.strings.selectLocation),1),f(i,{size:"medium",options:o.locationsList,modelValue:l.getLocationOptions(e.$root.$data.locationId),"onUpdate:modelValue":t[0]||(t[0]=p=>e.$root.$data.locationId=p.value),"track-by":"value"},null,8,["options","modelValue"])])):k("",!0),m("div",Un,[f(r,{modelValue:e.$root.$data.showLabel,"onUpdate:modelValue":t[1]||(t[1]=p=>e.$root.$data.showLabel=p)},{default:y(()=>[_(g(o.strings.showLabel),1)]),_:1},8,["modelValue"])]),m("div",Rn,[f(r,{modelValue:e.$root.$data.showIcon,"onUpdate:modelValue":t[2]||(t[2]=p=>e.$root.$data.showIcon=p)},{default:y(()=>[_(g(o.strings.showIcon),1)]),_:1},8,["modelValue"])]),m("div",zn,[m("p",Fn,g(o.strings.customMarker),1),f(c,{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]=p=>e.$root.$data.customMarker=p)},null,8,["description","modelValue"])]),m("div",jn,[m("p",Zn,g(o.strings.mapDisplay),1)]),m("div",Wn,[m("div",null,[m("label",null,g(o.strings.width)+":",1),f(a,{size:"small",modelValue:e.$root.$data.width,"onUpdate:modelValue":t[4]||(t[4]=p=>e.$root.$data.width=p)},null,8,["modelValue"])]),m("div",null,[m("div",null,[m("label",null,g(o.strings.height)+":",1),f(a,{size:"small",modelValue:e.$root.$data.height,"onUpdate:modelValue":t[5]||(t[5]=p=>e.$root.$data.height=p)},null,8,["modelValue"])])])]),e.$root.$data.showLabel?(b(),v("div",Qn,[m("p",Jn,g(o.strings.label),1),f(a,{size:"small",modelValue:e.$root.$data.label,"onUpdate:modelValue":t[6]||(t[6]=p=>e.$root.$data.label=p)},null,8,["modelValue"])])):k("",!0)])}const Kn=z(xn,[["render",Gn],["__scopeId","data-v-b101bbec"]]);function Yn(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}function Xn(e){let t="";const n=Object.entries(e);let s;for(;s=n.shift();){let[o,l]=s;if(Array.isArray(l)||l&&l.constructor===Object){const r=Object.entries(l).reverse();for(const[c,a]of r)n.unshift([`${o}[${c}]`,a])}else l!==void 0&&(l===null&&(l=""),t+="&"+[o,l].map(encodeURIComponent).join("="))}return t.substr(1)}function ea(e){try{return decodeURIComponent(e)}catch{return e}}function ta(e,t,n){const s=t.length,o=s-1;for(let l=0;l<s;l++){let i=t[l];!i&&Array.isArray(e)&&(i=e.length.toString()),i=["__proto__","constructor","prototype"].includes(i)?i.toUpperCase():i;const r=!isNaN(Number(t[l+1]));e[i]=l===o?n:e[i]||(r?[]:{}),Array.isArray(e[i])&&!r&&(e[i]={...e[i]}),e=e[i]}}function oa(e){return(Yn(e)||"").replace(/\+/g,"%20").split("&").reduce((t,n)=>{const[s,o=""]=n.split("=").filter(Boolean).map(ea);if(s){const l=s.replace(/\]/g,"").split("[");ta(t,l,o)}return t},Object.create(null))}function sa(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const s=e.indexOf("?");return s!==-1&&(t=Object.assign(oa(e),t),n=n.substr(0,s)),n+"?"+Xn(t)}const K=window.wp,T=K.element.createElement,ge=K.element.Fragment;var Lt;const na=((Lt=K.blockEditor)==null?void 0:Lt.InspectorControls)||K.editor.InspectorControls,aa=K.components.PanelBody,la=K.components.Disabled,ia=K.serverSideRender||K.components.ServerSideRender,ra=K.data.withSelect,oe="all-in-one-seo-pack",da=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"})),Pe={},lt=[],it=[],ca="aioseo/locationmap",ua={title:d("AIOSEO Local - Map",oe),category:"aioseo",icon:da,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:d("Our location:",oe)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},edit:ra(function(e){const t=x();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var te;const t=Se(),n=(te=t.options.localBusiness)==null?void 0:te.locations.general.multiple,{setAttributes:s,attributes:o,className:l,clientId:i,isSelected:r,toggleSelection:c}=e;let{locations:a}=e;const p="aioseo-location-map-"+i;if(n&&a===null)return T(ge,{},T("div",{},d("Loading...",oe)));if(a=a===null?[]:a,!n&&o.locationId)return T(ge,{},T("div",{},d("Please enable multiple locations before using this block.",oe)));const u=x();if(n&&a.length===0)return T(ge,{},T("div",{},D(d("No %1$s found",oe),u.aioseo.localBusiness.postTypePluralLabel)));const h=re(),$=h.currentPost.postType===u.aioseo.localBusiness.postTypeName;o.locationId=!o.locationId&&$?h.currentPost.id:o.locationId;const B=a.find(O=>O.id===o.locationId),A=$?h.currentPost.local_seo.maps:B?B.maps:null,S={id:p,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(O){ie(i,lt);let I=X({name:"Blocks/LocationMap",data:function(){return Pe[i]},watch:{$data:{handler:function(V){s(V)},deep:!0}},render:()=>ae(Kn)});I=le(I),I.mount(O),lt.push({clientId:i,app:I})}};r&&(Pe[i]={},Object.keys(o).forEach(function(O){Pe[i][O]=o[O]}),Pe[i].locations=a,q(S)),K.data.useSelect(O=>O("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof c!="function"||c(!0)),$&&q({id:p+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(O){ie(i,it);let I=X({name:"Blocks/LocationMapWatcher",data:function(){return h.currentPost.local_seo.maps},watch:{$data:{handler:function(){s({updated:Date.now()})},deep:!0}},render:()=>ae("div")});I=le(I),I.mount(O),it.push({clientId:i,app:I})}});const C=T(na,null,T(aa,{title:d("Settings",oe),initialOpen:!0,onToggle:()=>{q(S)}},T("div",null,T("div",{id:p},null))));if(n){if(!o.locationId)return T(ge,{},C,T("div",{},D(d("Select a %1$s",oe),u.aioseo.localBusiness.postTypeSingleLabel)));if(!A){const O=sa("post.php",{post:o.locationId,action:"edit"});return T(ge,{},C,T("div",{dangerouslySetInnerHTML:{__html:D(d("Please configure the map for this location: %1$s",oe),'<a href="'+O+'" target="_blank">'+B.title.rendered+"</a>")}}))}}const U="#"+p+"-preview .aioseo-local-map";return q({selector:U,parent:document.querySelector(".block-editor"),subtree:!0,done:function(){const O=A||t.options.localBusiness.maps;setTimeout(function(){document.dispatchEvent(new CustomEvent(u.aioseo.localBusiness.mapLoadEvent,{detail:{element:U,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(ge,{},C,T("div",{className:l,id:p+"-preview"},T(la,null,T(ia,{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:$?JSON.stringify(h.currentPost.local_seo.maps):null}})),T("div",{},T("div",{id:p+"-watcher"},null))))}),save:function(){return null}},pa=Object.freeze(Object.defineProperty({__proto__:null,name:ca,settings:ua},Symbol.toStringTag,{value:"Module"})),ma="https://schemas.wp.org/wp/5.8/block.json",ha="aioseo/table-of-contents",ga="1.0.0",fa="AIOSEO - Table of Contents",ba="Automatically output a table of contents (TOC) for long posts or pages (and custom post types).",ya="layout",wa=["toc","table of contents","document outline","summary","index"],$a="all-in-one-seo-pack",va={listStyle:{type:"string",default:"ul"},headings:{type:"array",items:{type:"object"},default:[]},reOrdered:{type:"boolean",default:!1}},Sa={multiple:!1,html:!1,align:["wide","full"]},xt={$schema:ma,name:ha,version:ga,title:fa,description:ba,category:ya,keywords:wa,textdomain:$a,attributes:va,supports:Sa},_a={},La={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-info"},ka=m("path",{d:"M0 0h24v24H0V0z",fill:"none"},null,-1),Ia=m("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),Ca=[ka,Ia];function Va(e,t){return b(),v("svg",La,Ca)}const Dt=z(_a,[["render",Va]]),Oa={},Ta={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-eye-off"},Ba=m("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"},null,-1),Aa=m("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),Ea=[Ba,Aa];function Pa(e,t){return b(),v("svg",Ta,Ea)}const Na=z(Oa,[["render",Pa]]),rt="all-in-one-seo-pack",Ma={name:"List",setup(){return{tableOfContentsStore:$e()}},components:{BaseInput:xe,CoreTooltip:Ze,Draggable:lo,SvgClose:Ot,SvgDrag:io,SvgEye:ro,SvgEyeOff:Na,SvgInfo:Dt,SvgTocLink:co},props:{headings:{required:!0,type:Array},allowReorder:{required:!1,type:Boolean,default(){return!1}}},data(){return{showAnchorField:-1,strings:{tooltipHeader:d("Edit HTML Anchor:",rt),tooltipDescription:D(d("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.",rt),"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=At(e,!0)},setReorder(){this.tableOfContentsStore.reOrdered=!0;const e=Qt(ne(this.tableOfContentsStore.headings));this.tableOfContentsStore.setHeadings(e),window.aioseoBus.$emit("updateHeadings"+this.tableOfContentsStore.blockClientId,e)},setAnchor:function(e,t){if(t.anchor=Ue(e),!e){const o=x();t.anchor=o.aioseo.data.blocks.toc.hashPrefix+Ue(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(je([...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)})))}}},Ha={class:"aioseo-toc-list-item__inner"},xa={key:0,class:"aioseo-drag-handle has-icon"},Da={key:0,class:"append-icon"},qa={class:"append-icon"},Ua={class:"aioseo-tooltip__header"},Ra=["onClick"];function za(e,t,n,s,o,l){const i=w("svg-drag"),r=w("svg-toc-link"),c=w("base-input"),a=w("svg-info"),p=w("core-tooltip"),u=w("svg-close"),h=w("svg-eye-off"),$=w("svg-eye"),B=w("List",!0),A=w("draggable");return b(),R(A,Ft({class:["aioseo-toc-list",[{orderable:n.allowReorder}]]},l.dragOptions,{handle:".aioseo-drag-handle",list:n.headings,"onUpdate:modelValue":t[0]||(t[0]=S=>e.$emit("update:modelValue",S)),onChange:t[1]||(t[1]=S=>l.setReorder(S)),"item-key":e.$.uid.toString()}),{item:y(({element:S})=>[m("li",{class:Ie(["aioseo-toc-list-item",{"heading-hidden":S.hidden}])},[m("div",Ha,[n.allowReorder?(b(),v("button",xa,[f(i)])):k("",!0),f(c,{class:"row-input row-input--content",modelValue:S.editedContent||S.content,"onUpdate:modelValue":L=>l.setEditedContent(L,S),placeholder:S.content},{"append-icon":y(()=>[n.allowReorder?k("",!0):(b(),v("div",Da,[f(r,{onClick:l.handleAnchorInput},null,8,["onClick"])]))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),n.allowReorder?k("",!0):(b(),R(c,{key:1,class:"row-input row-input--anchor",spellcheck:!1,modelValue:S.anchor,"onUpdate:modelValue":L=>l.setAnchor(L,S)},{"append-icon":y(()=>[m("div",qa,[f(p,null,{tooltip:y(()=>[m("p",Ua,g(o.strings.tooltipHeader),1),m("p",null,g(o.strings.tooltipDescription),1)]),default:y(()=>[f(a)]),_:1}),f(u,{onClick:l.handleAnchorInput},null,8,["onClick"])])]),_:2},1032,["modelValue","onUpdate:modelValue"])),n.allowReorder?k("",!0):(b(),v("button",{key:2,class:Ie([{active:S.hidden},"aioseo-hide-heading-toggle","has-icon"]),onClick:L=>l.setHiddenStatus(S)},[S.hidden?(b(),R(h,{key:0})):(b(),R($,{key:1}))],10,Ra)),S.headings?(b(),R(B,{key:3,class:"aioseo-toc-list-nested",headings:S.headings,allowReorder:n.allowReorder},null,8,["headings","allowReorder"])):k("",!0)])],2)]),_:1},16,["class","list","item-key"])}const Fa=z(Ma,[["render",za]]),ja={name:"ListRendered",setup(){return{tableOfContentsStore:$e()}},props:{headings:{required:!0,type:Array}}},Za=["href"];function Wa(e,t,n,s,o,l){const i=w("ListRendered",!0);return b(),R(jt(s.tableOfContentsStore.listStyle),{class:"aioseo-toc-list--rendered"},{default:y(()=>[(b(!0),v(ze,null,It(n.headings,(r,c)=>(b(),v("li",{class:Ie(["aioseo-toc-list-item--rendered",[{hidden:r.hidden}]]),key:c},[m("a",{href:`#${r.anchor}`},g(r.editedContent||r.content),9,Za),r.headings?(b(),R(i,{key:0,class:"aioseo-toc-list-nested--rendered",headings:r.headings},null,8,["headings"])):k("",!0)],2))),128))]),_:1})}const Qa=z(ja,[["render",Wa]]),dt="all-in-one-seo-pack",Ja={emits:["closeModal"],setup(){return{rootStore:x(),links:Vt}},components:{CoreModal:uo,Cta:po},props:{show:Boolean},data(){return{strings:{header:D(d("Reordering Headings is a %1$s Feature",dt),"PRO"),description:d("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.",dt)}}}};function Ga(e,t,n,s,o,l){const i=w("cta"),r=w("core-modal");return b(),R(r,{show:n.show,classes:["aioseo-toc-modal-lite"],onClose:t[0]||(t[0]=c=>e.$emit("closeModal"))},{body:y(()=>[f(i,{type:1,floating:!1,"cta-link":s.links.utmUrl("toc-block"),"button-text":"Unlock Reordering","learn-more-link":s.links.getUpsellUrl("toc-block",null,s.rootStore.isPro?"pricing":"liteUpgrade")},{"header-text":y(()=>[_(g(o.strings.header),1)]),description:y(()=>[_(g(o.strings.description),1)]),_:1},8,["cta-link","learn-more-link"])]),_:1},8,["show"])}const Ka=z(Ja,[["render",Ga]]),Me={editedContent:"",editedLevel:0,editedOrder:0,hidden:!1,headings:[]},fe="all-in-one-seo-pack",Ya={setup(){return{tableOfContentsStore:$e()}},components:{CoreTooltip:Ze,Info:Dt,List:Fa,ListRendered:Qa,Reorder:Ka},data(){return{showModal:!1,strings:{header:D(d("%1$s Table of Contents",fe),"AIOSEO"),instructions:d("Add a heading block below to begin generating the Table of Contents.",fe),tooltipMainDescription:D(d("%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.",fe),"AIOSEO"),reorder:d("Reorder",fe),save:d("Save",fe),done:d("Done",fe)}}},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)}}},methods:{save(e){const t=e.target.closest(".wp-block");t==null||t.classList.remove("is-selected")},setDefaultHeadingProps(e){return Object.keys(Me).forEach(t=>{e[t]=Me[t]}),e},updateHeadings(e){const t=ye(ne(this.tableOfContentsStore.headings));let n=e.map(s=>this.setDefaultHeadingProps(s));t.forEach(s=>{const o=n.findIndex(l=>l.blockClientId===s.blockClientId);o!==-1&&(Object.keys(Me).forEach(l=>{n[o][l]=s[l]}),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=je(n),this.tableOfContentsStore.setHeadings(n)}},mounted(){this.$nextTick(()=>{window.aioseoBus.$on("updateHeadings"+this.tableOfContentsStore.blockClientId,e=>{this.updateHeadings(e)})})}},Xa={class:"aioseo-toc-container"},el={class:"aioseo-toc-header"},tl={class:"aioseo-toc-header-title"},ol={key:0,class:"aioseo-toc-header-instructions"},sl={key:1,class:"aioseo-toc-header-buttons"},nl={key:0,class:"aioseo-toc-content"};function al(e,t,n,s,o,l){const i=w("Info"),r=w("core-tooltip"),c=w("List"),a=w("reorder"),p=w("ListRendered");return b(),v("div",Xa,[m("div",{class:Ie(["aioseo-toc-menu",{"aioseo-toc-placeholder":s.tableOfContentsStore.headings.length===0}])},[m("header",el,[m("div",tl,[_(g(o.strings.header)+" ",1),f(r,{placement:"bottom"},{tooltip:y(()=>[m("p",null,g(o.strings.tooltipMainDescription),1)]),default:y(()=>[f(i)]),_:1})]),s.tableOfContentsStore.headings.length===0?(b(),v("div",ol,g(o.strings.instructions),1)):k("",!0),s.tableOfContentsStore.headings.length!==0?(b(),v("div",sl,[m("a",{class:"aioseo-button-link",href:"#",onClick:t[0]||(t[0]=ke(u=>o.showModal=!0,["prevent"]))},g(o.strings.reorder),1),m("a",{class:"aioseo-button-link",href:"#",onClick:t[1]||(t[1]=ke((...u)=>l.save&&l.save(...u),["prevent"]))},g(o.strings.done),1)])):k("",!0)]),s.tableOfContentsStore.headings.length!==0?(b(),v("div",nl,[f(c,{headings:s.tableOfContentsStore.headings},null,8,["headings"])])):k("",!0),f(a,{show:o.showModal,headings:s.tableOfContentsStore.headings,onCloseModal:t[2]||(t[2]=u=>o.showModal=!1)},null,8,["show","headings"])],2),s.tableOfContentsStore.headings.length!==0?(b(),R(p,{key:0,headings:s.tableOfContentsStore.headings},null,8,["headings"])):k("",!0)])}const ll=z(Ya,[["render",al]]),{InspectorControls:ct}=window.wp.blockEditor,{PanelBody:ut,SelectControl:il}=window.wp.components,pt="all-in-one-seo-pack",rl=e=>{const{setAttributes:t,attributes:{listStyle:n}}=e,s=$e();return ue` <${ct}> <${ut} title=${d("Table of Contents Settings",pt)}> <${il} label=${d("List Style",pt)} options=${[{label:"Bullets",value:"ul"},{label:"Numbers",value:"ol"}]} value=${n} onChange=${o=>{s.listStyle=o,t({listStyle:o})}} /> </${ut}> </${ct}> `},{useSelect:dl}=window.wp.data,qt=window.wp.blockEditor.store,{isTyping:cl}=window.wp.data.select(qt)||{isTyping:()=>null},mt=[];let Ne=[];function ul(e){const{setAttributes:t,attributes:n,clientId:s,className:o,isSelected:l}=e,i=`aioseo-${s}`;if(!mt.includes(s)&&(l||document.querySelector(`[data-block="${s}"]`))&&(mt.push(s),q({id:i,parent:document.querySelector(".block-editor"),subtree:!0,done:function(r){var p;const c=X({...ll,name:"Blocks/TableOfContents"});Ct(c),c.mount(r);const a=$e();if(a.blockClientId=s,a.headings=n.headings,a.listStyle=n.listStyle,a.reOrdered=n.reOrdered,(p=a.headings)!=null&&p.length){const u=ye(ne(a.headings));u.forEach(h=>{const $=Ne.find(B=>B.content===h.content&&B.anchor===h.anchor&&B.id===h.id&&B.level===h.level);$&&(h.blockClientId=$.blockClientId)}),a.headings=je(u),t(a)}window.aioseoBus.$on("setAttributes"+s,()=>{t(a.$state)})}})),Ne=dl(r=>{var L,C,U,te,O;const{getBlockAttributes:c,getBlockIndex:a,getBlockName:p,getClientIdsWithDescendants:u}=r(qt),h=a(s),$=[];u().forEach(I=>{var Ge;if(p(I)!=="core/heading"&&p(I)!=="aioseo/faq")return;const V=c(I),We=a(I),Qe=typeof(V==null?void 0:V.anchor)=="string"&&V.anchor!=="",Je=V.level||V.tagName.replace("h","");if(Je==="div")return;let pe=V.question||((Ge=V.content)==null?void 0:Ge.text)||V.content||"";if(!(typeof pe!="string"||pe===""||h>We)){if(pe=At(pe.replace(/(<br *\/?>)+/g," "),!0),!Qe&&!cl()){const zt=x();V.anchor=zt.aioseo.data.blocks.toc.hashPrefix+Ue(pe)}$.push({id:We,blockClientId:I,content:pe,level:Number(Je),anchor:Qe?V.anchor:""})}}),$.forEach((I,V)=>{I.order=V});const A=$e(),S=(L=ye(ne(A.headings)))==null?void 0:L.map(I=>(Object.keys(Me).forEach(V=>{delete I[V]}),I));return!He([...$].sort((I,V)=>I.order-V.order),[...S].sort((I,V)=>I.order-V.order))||((U=ye([...(C=c(s))==null?void 0:C.headings]))==null?void 0:U.length)!==[...$].length||((te=c(s))==null?void 0:te.reOrdered)===!0&&!He(ye([...A.headings]).sort((I,V)=>I.editedOrder-V.editedOrder),ye([...(O=c(s))==null?void 0:O.headings]).sort((I,V)=>I.editedOrder-V.editedOrder))?$:null},[s]),Ne!==null){const r=Ne.sort((c,a)=>c.editedOrder-a.editedOrder);window.aioseoBus.$emit("updateHeadings"+s,r)}return ue` <div className="${o}"> <div id="aioseo-${s}"></div> ${rl(e)} </div> `}const{RawHTML:ht}=window.wp.element;function pl({attributes:{headings:e,listStyle:t}}){if(!e)return"";const n=Ut(e,t);return ue`<${ht}>${n}</${ht}>`}const Ut=(e,t)=>{let n=`<${t}>`;return e.forEach(s=>{var i;if(s.hidden)return;let o="<li>";const l=s.editedContent||s.content;o+=`<a href="#${s.anchor}">${Jt.encode(l)}</a>`,(i=s.headings)!=null&&i.length&&(o+=Ut(s.headings,t)),o+="</li>",n+=o}),n+=`</${t}>`,n},ml=ue` <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:hl,title:gl,description:fl,keywords:bl,category:yl,supports:wl,attributes:$l}=xt,vl={title:gl,description:fl,keywords:bl,category:yl,attributes:$l,icon:ml,supports:wl,edit:ul,save:pl},Sl=Object.freeze(Object.defineProperty({__proto__:null,metadata:xt,name:hl,settings:vl},Symbol.toStringTag,{value:"Module"})),_l="https://schemas.wp.org/wp/5.8/block.json",Ll="aioseo/faq",kl="AIOSEO - FAQ",Il="Easily add an SEO-friendly Frequently Asked Question (FAQ) to your content.",Cl="text",Vl=["accordion","answer","faq","frequently asked questions","knowledge base","question","schema","seo"],Ol="all-in-one-seo-pack",Tl={hidden:{type:"boolean",default:!1},question:{type:"string",selector:".aioseo-faq-block-question"},schemaBlockId:{type:"string",default:""},tagName:{type:"string",default:"h3"}},Bl={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}},Rt={$schema:_l,name:Ll,title:kl,description:Il,category:Cl,keywords:Vl,textdomain:Ol,attributes:Tl,supports:Bl},{RichText:Al,InnerBlocks:El}=window.wp.blockEditor,{PanelBody:gt,SelectControl:Pl,ToggleControl:Nl}=window.wp.components,ft=window.wp.blockEditor.InspectorControls||window.wp.editor.InspectorControls,se="all-in-one-seo-pack",Ml=[["core/paragraph",{placeholder:d("Write an answer...",se)}]],Hl=["core/paragraph","core/heading","core/list","core/image","core/media-text"],xl=(e,t,n)=>{const{hidden:s,question:o,tagName:l,schemaBlockId:i}=t,r=Vt.getUpsellLink("faq-block",mo.learnMore,"sidebar",!0);return ue` <div data-schema-only="${s}" className="${e}" data-schema-block-id="${i}"> <${ft}> <${gt} title=${d("FAQ Options",se)}> <${Pl} label=${d("Title Wrapper",se)} options=${[{label:"DIV",value:"div"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"}]} value=${l} onChange=${c=>n({tagName:c})} /> <p className="aioseo-visibility-label">${d("Visibility",se)}</p> <${Nl} className="aioseo-faq-visibility" label=${d("Display Block",se)} help=${d("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.",se)} checked=${!s} onChange=${()=>n({hidden:!s})} disabled /> <div className="aioseo-alert aioseo-alert inline-upsell blue medium"> <div dangerouslySetInnerHTML=${{__html:d("FAQ schema is a Pro feature.",se)+" "+r}}></div> </div> </${gt}> </${ft}> <${Al} tagName=${l} placeholder=${d("Write a question...",se)} className='aioseo-faq-block-question' value=${o} onChange=${c=>n({question:c})} /> <div className="aioseo-faq-block-answer"> <${El} template=${Ml} allowedBlocks=${Hl} /> </div> </div> `},{useSelect:bt}=window.wp.data,{useEffect:Dl}=window.wp.element,yt=window.wp.blockEditor.store,{serialize:ql}=window.wp.blocks,be=[],Ul=e=>{const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;function n(s){var l;const o=s.childNodes;for(const i of o){if((l=i.nodeName)!=null&&l.toLowerCase().includes("comment")&&i.parentNode.removeChild(i),i.attributes)for(const{name:r,value:c}of i.attributes){const a=c.replace(/\s+/g,"").toLowerCase();(!["src","href"].includes(r)||r.startsWith("on")||a.includes("javascript:")||a.includes("data:"))&&i.removeAttribute(r)}n(i)}}return n(t),t.innerHTML.trim().replace(/\s+/g," ")};function Rl(e){const{attributes:t,className:n,clientId:s,setAttributes:o,isSelected:l}=e,{schemaBlockId:i}=t;!be.includes(s)&&!l&&be.push(s);const r=p=>{window.requestAnimationFrame(()=>{o(p)}),window.aioseoBus.$emit("schemaBlockUpdated")};Dl(()=>{(!i||1<(document.querySelectorAll(`[data-schema-block-id='${i}']`)||[]).length)&&r({schemaBlockId:So()})},[]);const c=bt(p=>{const{getAdjacentBlockClientId:u,getBlockAttributes:h,getBlockName:$,getClientIdsWithDescendants:B,getGlobalBlockCount:A}=p(yt);if(be.includes(s)||2>A("aioseo/faq"))return null;const S=u(s,-1);if($(S)==="aioseo/faq")return h(S);const L=u(s,1);if($(L)==="aioseo/faq")return h(L);const U=B().filter(I=>$(I)==="aioseo/faq"),te=U.indexOf(s),O=U[te-1]||U[te+1];return $(O)==="aioseo/faq"?h(O):null},[s,be]);l&&!be.includes(s)&&!t.question&&c&&(be.push(s),window.requestAnimationFrame(()=>{o({backgroundColor:c.backgroundColor,textColor:c.textColor,tagName:c.tagName,hidden:c.hidden,fontSize:c.fontSize,style:c.style})}));const a=bt(p=>{const{getBlocks:u}=p(yt);return($=>{const B=u($),A=ql(B);return Ul(A)})(s)},[s]);return r({answer:a}),xl(n,t,r)}const{RichText:zl,InnerBlocks:Fl}=window.wp.blockEditor;function jl({attributes:e,className:t}){const{question:n,hidden:s,tagName:o}=e;return ue` <div data-schema-only="${s}" className=${t}> <${zl.Content} tagName=${o} className="aioseo-faq-block-question" value=${n} /> <div className="aioseo-faq-block-answer"> <${Fl.Content} /> </div> </div> `}const Zl=ue` <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> `,wt="all-in-one-seo-pack",{name:Wl,title:Ql,description:Jl,category:Gl,supports:Kl,attributes:Yl}=Rt,Xl={title:Ql,description:Jl,category:Gl,attributes:Yl,icon:Zl,example:{attributes:{question:d("Who should use AIOSEO?",wt)},innerBlocks:[{name:"core/paragraph",attributes:{content:d("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.",wt)}}]},supports:Kl,edit:Rl,save:jl},ei=Object.freeze(Object.defineProperty({__proto__:null,metadata:Rt,name:Wl,settings:Xl},Symbol.toStringTag,{value:"Module"}));var kt;if(((kt=window.aioseo.currentPost)==null?void 0:kt.context)==="post"){let e=[];window.wp.data.subscribe(()=>{t()});const t=Ke(()=>{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=Ke(()=>{var i;let s=window.wp.data.select("core/block-editor").getBlocks();s=Kt(s),s=s.filter(r=>{var c;return(c=r==null?void 0:r.attributes)==null?void 0:c.schemaBlockId}),s=s.map(r=>(r.attributes.type=r.name,r));const o=re(),l=((i=o.currentPost.schema)==null?void 0:i.blockGraphs)||[];l.forEach((r,c)=>{const a=s.findIndex(h=>{var $;return(($=h==null?void 0:h.attributes)==null?void 0:$.schemaBlockId)===(r==null?void 0:r.schemaBlockId)});if(a===-1){l.splice(c,1);return}const p={...s[a].attributes};["backgroundColor","textColor","fontSize","style"].forEach(h=>{delete p[h]}),l[c]=p}),s.forEach(r=>{l.findIndex(a=>{var p;return(a==null?void 0:a.schemaBlockId)===((p=r==null?void 0:r.attributes)==null?void 0:p.schemaBlockId)})===-1&&(r!=null&&r.attributes)&&l.push(r.attributes)}),l.sort((r,c)=>{const a=s.findIndex(u=>{var h;return((h=u==null?void 0:u.attributes)==null?void 0:h.schemaBlockId)===(r==null?void 0:r.schemaBlockId)}),p=s.findIndex(u=>{var h;return((h=u==null?void 0:u.attributes)==null?void 0:h.schemaBlockId)===(c==null?void 0:c.schemaBlockId)});return a-p}),o.currentPost.schema.blockGraphs=l},200)}if(Gt()){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:l}=window.wp.blocks,i=[...n()];typeof o=="function"?o("aioseo",{title:"AIOSEO",icon:t}):(i.unshift({slug:"aioseo",title:"AIOSEO",icon:t}),s(i));const r=a=>{if(!a)return;const{name:p,settings:u}=a;if(u.icon&&!u.icon.foreground){const h={foreground:"#141B38",src:u.icon};u.icon=h}typeof o=="function"&&u.category==="aioseo"&&(u.category="widgets"),typeof o!="function"&&u.category!=="aioseo"&&(u.category="aioseo"),l(p,u)};(()=>{var a,p;[$o,ms,((p=(a=window==null?void 0:window.aioseo)==null?void 0:a.screen)==null?void 0:p.base)==="post"?Sl:null,ei].forEach(r),window.aioseo.localBusiness&&[Qs,yn,Bn,Hn,pa].forEach(r)})()}