Файловый менеджер - Редактировать - /home/harasnat/www/labour/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/blocks.45e05682.js
Назад
import"./js/translations.d159963e.js";import{g as Oo}from"./js/helpers.d88590df.js";import{u as N,c as Le,l as ro,e as me,a as co,w as To,a0 as Bo}from"./js/index.21ff19c6.js";import{_ as d,s as D}from"./js/default-i18n.20001971.js";import{x as $,o as b,c as S,H as f,m as w,y as _,t as g,a as m,J as Te,l as z,b as I,G as Qe,N as uo,K as Be,Y as ie,h as ce,F as Eo,v as Po}from"./js/runtime-dom.esm-bundler.c4caba60.js";import{l as ue}from"./js/index.7c01c5f2.js";import{l as Ao,B as Re,b as Ue,d as Je}from"./js/index.f3c7a985.js";import{l as xo}from"./js/index.d80c2c2c.js";import{L as R,K as Ho}from"./js/helpers.a0b389be.js";import{u as Mo}from"./js/JsonValues.3fcfec97.js";import{S as No}from"./js/AddPlus.2ea4b29a.js";import{b as po}from"./js/Caret.cc16468c.js";import{S as Do}from"./js/External.6e60bbfb.js";import{_ as W}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{u as qo}from"./js/PostTypes.dafa8837.js";import{B as Ro}from"./js/HighlightToggle.b35beb2c.js";import{C as Ge}from"./js/Tooltip.e12834fc.js";import{G as Uo,a as zo}from"./js/Row.d49feaf0.js";import{C as jo}from"./js/ImageUploader.236c7cbc.js";import{S as mo}from"./js/Info.ab02a1ea.js";import{c as Fe}from"./js/cleanForSlug.cacc99d0.js";import{u as be,o as Fo,a as Ke,f as fe}from"./js/TableOfContentsStore.8b6d8c3b.js";import{D as Zo,S as Wo}from"./js/vuedraggable.umd.1f106911.js";import{S as Qo}from"./js/Eye.27b6685e.js";import{S as Jo}from"./js/Link.7fc85dfd.js";import{C as Go}from"./js/Index.1a44e730.js";import{C as Ko}from"./js/Index.e357517d.js";import{G as Yo}from"./js/constants.fe8bda37.js";import{d as ot}from"./js/debounce.f2bce338.js";import"./js/Checkbox.475ec1e7.js";import"./js/Checkmark.34fb32e2.js";import"./js/Radio.6135ef18.js";import"./js/Img.c1967fde.js";import"./js/Plus.5c071d29.js";import"./js/toString.1e64e8a6.js";import"./js/toNumber.89dbadc6.js";const Q=window.wp,U=Q.element.createElement,{useSelect:Xo}=Q.data,{useEffect:es}=Q.element,ts=Q.element.Fragment;var kt;const os=((kt=Q.blockEditor)==null?void 0:kt.InspectorControls)||Q.editor.InspectorControls,ss=Q.components.PanelBody,ns=Q.components.Disabled,as=Q.serverSideRender||Q.components.ServerSideRender,Ce="all-in-one-seo-pack",is=U("svg",{width:24,height:25,viewBox:"0 0 24 25",xmlns:"http://www.w3.org/2000/svg"},U("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"}));var It,Lt;const ls=((Lt=(It=window==null?void 0:window.aioseo)==null?void 0:It.currentPost)==null?void 0:Lt.postType)??"";let ho="";var Ct,Vt;const ze=(Vt=(Ct=window==null?void 0:window.aioseo)==null?void 0:Ct.postData)==null?void 0:Vt.postTypes.find(e=>e.name===ls);ze&&0<ze.taxonomies.length&&(ho=ze.taxonomies[0]);const go="aioseo/breadcrumbs";var Ot,Tt,Bt,Et,Pt,At,xt,Ht,Mt,Nt,Dt,qt,Rt,Ut,zt,jt,Ft,Zt,Wt,Qt,Jt,Gt,Kt,Yt,Xt,eo,to;const rs={title:d("AIOSEO - Breadcrumbs",Ce),description:d("Automatically output a breadcrumb trail to help your users and search engines navigate your site.",Ce),category:"aioseo",icon:is,example:{},attributes:{primaryTerm:{type:"string",default:null},postTitle:{type:"string",default:null},breadcrumbSettings:{type:"object",default:{default:((Bt=(Tt=(Ot=window==null?void 0:window.aioseo)==null?void 0:Ot.currentPost)==null?void 0:Tt.breadcrumb_settings)==null?void 0:Bt.default)??!0,separator:((At=(Pt=(Et=window==null?void 0:window.aioseo)==null?void 0:Et.currentPost)==null?void 0:Pt.breadcrumb_settings)==null?void 0:At.separator)??"›",showHomeCrumb:((Mt=(Ht=(xt=window==null?void 0:window.aioseo)==null?void 0:xt.currentPost)==null?void 0:Ht.breadcrumb_settings)==null?void 0:Mt.showHomeCrumb)??!0,showTaxonomyCrumbs:((qt=(Dt=(Nt=window==null?void 0:window.aioseo)==null?void 0:Nt.currentPost)==null?void 0:Dt.breadcrumb_settings)==null?void 0:qt.showTaxonomyCrumbs)??!0,showParentCrumbs:((zt=(Ut=(Rt=window==null?void 0:window.aioseo)==null?void 0:Rt.currentPost)==null?void 0:Ut.breadcrumb_settings)==null?void 0:zt.showParentCrumbs)??!0,template:((Zt=(Ft=(jt=window==null?void 0:window.aioseo)==null?void 0:jt.currentPost)==null?void 0:Ft.breadcrumb_settings)==null?void 0:Zt.template)??"default",parentTemplate:((Jt=(Qt=(Wt=window==null?void 0:window.aioseo)==null?void 0:Wt.currentPost)==null?void 0:Qt.breadcrumb_settings)==null?void 0:Jt.parentTemplate)??"default",taxonomy:((Yt=(Kt=(Gt=window==null?void 0:window.aioseo)==null?void 0:Gt.currentPost)==null?void 0:Kt.breadcrumb_settings)==null?void 0:Yt.taxonomy)||ho,primaryTerm:((to=(eo=(Xt=window==null?void 0:window.aioseo)==null?void 0:Xt.currentPost)==null?void 0:eo.breadcrumb_settings)==null?void 0:to.primaryTerm)??null}}},edit:function(e){var u,h,k;const{setAttributes:t,attributes:s,clientId:n}=e,o=N(),i=`aioseo-${n}-settings`,l=Xo(y=>y("core/editor").getEditedPostAttribute("title"));es(()=>{setTimeout(()=>{l!==s.postTitle&&t({postTitle:l})},1e3)},[l]),window.aioseoBus.$on("standalone-update-post",y=>{!(y!=null&&y.primary_term)&&!(y!=null&&y.breadcrumb_settings)||(y!=null&&y.primary_term&&t({primaryTerm:JSON.stringify(y.primary_term)}),y!=null&&y.breadcrumb_settings&&t({breadcrumbSettings:y.breadcrumb_settings}))});let r=(u=s.breadcrumbSettings)==null?void 0:u.primaryTerm;if((h=s.breadcrumbSettings)!=null&&h.taxonomy){const y=Oo((k=s.breadcrumbSettings)==null?void 0:k.taxonomy,!0);y[0]&&y[0]!==r&&(r=y[0])}const c=()=>{window.aioseoBus.$emit("do-post-settings-main-tab-change",{name:"advanced",context:"metabox"}),Q.data.dispatch("core/edit-post").openGeneralSidebar("aioseo-post-settings-sidebar/aioseo-post-settings-sidebar"),setTimeout(()=>{window.aioseoBus.$emit("do-post-settings-main-tab-change",{name:"advanced",context:"sidebar"})},100)},a=U(os,null,U(ss,{title:d("Breadcrumb Settings",Ce),initialOpen:!0},U("div",{},U("div",{id:i},U("p",{className:"aioseo-breadcrumbs-sidebar-text"},[U("span",{key:"text"},d("You can customize your breadcrumb trail under ",Ce)),U("a",{key:"link",href:"#",onClick:()=>c()},d("Advanced > Breadcrumbs.",Ce))]))))),p=o.aioseo.user;return U(ts,{},p.capabilities.aioseo_page_advanced_settings?a:null,U("div",{},U(window.aioseo.options.breadcrumbs.enable?ns:"div",null,U(as,{block:go,attributes:{primaryTerm:s.primaryTerm,postTitle:s.postTitle,breadcrumbSettings:{...s.breadcrumbSettings,primaryTerm:r}}}))))},save:function(){return null}},ds=Object.freeze(Object.defineProperty({__proto__:null,name:go,settings:rs},Symbol.toStringTag,{value:"Module"}));var fo=function(e,t,s,n){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,s[t[i++]]):t[++i];l===3?n[0]=r:l===4?n[1]=Object.assign(n[1]||{},r):l===5?(n[1]=n[1]||{})[t[++i]]=r:l===6?n[1][t[++i]]+=r+"":l?(o=e.apply(r,fo(e,r,s,["",null])),n.push(o),r[0]?t[0]|=2:(t[i-2]=0,t[i]=o)):n.push(r)}return n},st=new Map;function cs(e){var t=st.get(this);return t||(t=new Map,st.set(this,t)),(t=fo(this,t.get(e)||(t.set(e,t=function(s){for(var n,o,i=1,l="",r="",c=[0],a=function(h){i===1&&(h||(l=l.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(0,h,l):i===3&&(h||l)?(c.push(3,h,l),i=2):i===2&&l==="..."&&h?c.push(4,h,0):i===2&&l&&!h?c.push(5,0,!0,l):i>=5&&((l||!h&&i===5)&&(c.push(i,0,l,o),i=6),h&&(c.push(i,h,0,o),i=6)),l=""},p=0;p<s.length;p++){p&&(i===1&&a(),a(p));for(var u=0;u<s[p].length;u++)n=s[p][u],i===1?n==="<"?(a(),c=[c],i=3):l+=n:i===4?l==="--"&&n===">"?(i=1,l=""):l=n+l[0]:r?n===r?r="":l+=n:n==='"'||n==="'"?r=n:n===">"?(a(),i=1):i&&(n==="="?(i=5,o=l,l=""):n==="/"&&(i<5||s[p][u+1]===">")?(a(),i===3&&(c=c[0]),i=c,(c=c[0]).push(2,0,i),i=0):n===" "||n===" "||n===` `||n==="\r"?(a(),i=2):l+=n),i===3&&l==="!--"&&(i=4,c=c[0])}return a(),c}(e)),t),arguments,[])).length>1?t:t[0]}const oe=cs.bind(window.wp.element.createElement),Ze=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),ke=(e,t)=>{function s(){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!ke(e[r],t[r]))return!1;return!0}function n(){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!ke(e[r],t[r]))return!1;return!0}function o(){return e.toString()===t.toString()}function i(){return e===t}const l=Ze(e);return l!==Ze(t)?!1:l==="array"?s():l==="object"?n():l==="function"?o():i()},ae=e=>{const t=c=>{for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(c[a]=ae(e[a]))},s=()=>{const c={};return t(c),c},n=()=>e.map(function(c){return ae(c)}),o=()=>{const c=new Map;for(const[a,p]of e)c.set(a,ae(p));return c},i=()=>{const c=new Set;for(const a of e)c.add(ae(a));return c},l=()=>{const c=e.bind(void 0);return t(c),c},r=Ze(e);return r==="object"?s():r==="array"?n():r==="map"?o():r==="set"?i():r==="function"?l():e},bo=(e,t=!1)=>{const{body:s}=document.implementation.createHTMLDocument("");s.innerHTML=e;const n=s.getElementsByTagName("*");let o=n.length;for(;o--;){const i=n[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?s.textContent.trim():s.innerHTML},us=()=>"aioseo-"+new Date().getTime().toString(36),pe=(e,t)=>{const s=t.findIndex(n=>n.clientId===e);s!==-1&&(t[s].app.unmount(),t.splice(s,1))},he="all-in-one-seo-pack",ps={setup(){const{getJsonValues:e,setJsonValues:t}=Mo();return{getJsonValues:e,optionsStore:Le(),setJsonValues:t}},components:{SvgAddPlus:No,SvgClose:po,SvgExternal:Do},props:{type:{type:String,required:!0}},data(){return{excludeOptions:[],strings:{typeToSearch:d("Type to search...",he),noOptionsPosts:d("Begin typing a post ID, title or slug to search...",he),noOptionsTerms:d("Begin typing a term ID or name to search...",he),noResult:d("No results found for your search. Try again!",he),clear:d("Clear",he),id:d("ID",he),type:d("Type",he)}}},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 s=new RegExp(`(${t})`,"gi");return e.replace(s,'<span class="search-term">$1</span>')}}},ms={class:"aioseo-exclude-posts"},hs={class:"option"},gs=["innerHTML"],fs={class:"option-details"},bs=["href"],ys={class:"multiselect__tag"},ws={class:"multiselect__tag-value"},$s=["onClick"];function vs(e,t,s,n,o,i){const l=$("svg-add-plus"),r=$("base-button"),c=$("svg-external"),a=$("svg-close"),p=$("base-select");return b(),S("div",ms,[f(p,{options:o.excludeOptions,"ajax-search":i.processGetObjects,size:"medium",multiple:"",modelValue:n.getJsonValues(i.optionName),"onUpdate:modelValue":t[0]||(t[0]=u=>i.optionName=n.setJsonValues(u)),placeholder:o.strings.typeToSearch},{noOptions:w(()=>[_(g(i.noOptions),1)]),noResult:w(()=>[_(g(o.strings.noResult),1)]),caret:w(({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:w(()=>[f(l,{style:{width:"14px",height:"14px",color:"black"}})]),_:2},1032,["onClick"])]),option:w(({option:u,search:h})=>[m("div",hs,[m("div",{class:"option-title",innerHTML:i.getOptionTitle(u.label,h)},null,8,gs),m("div",fs,[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:Te(()=>{},["stop"])},[f(c)],8,bs)]),tag:w(({option:u,remove:h})=>[m("div",ys,[m("div",ws,g(u.label)+" - #"+g(u.value),1),m("div",{class:"multiselect__tag-remove",onClick:Te(k=>h(u),["stop"])},[f(a,{onClick:Te(k=>h(u),["stop"])},null,8,["onClick"])],8,$s)])]),_:1},8,["options","ajax-search","modelValue","placeholder"]),f(r,{type:"gray",size:"small",onClick:t[1]||(t[1]=u=>i.optionName=[])},{default:w(()=>[_(g(o.strings.clear),1)]),_:1})])}const Ss=W(ps,[["render",vs]]),Ee="all-in-one-seo-pack",_s={setup(){const{getPostIconClass:e}=qo();return{getPostIconClass:e,rootStore:N()}},components:{BaseHighlightToggle:Ro,CoreTooltip:Ge,GridColumn:Uo,GridRow:zo},props:{type:{type:String,required:!0},excluded:{type:Array,default(){return[]}}},data(){return{strings:{label:d("Label:",Ee),name:d("Slug:",Ee),includeAllPostTypes:d("Include All Post Types",Ee),includeAllTaxonomies:d("Include All Taxonomies",Ee)}}},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 s=this.getState();if(e){s.push(t.name),this.setState(s);return}const n=s.findIndex(o=>o===t.name);n!==-1&&(s.splice(n,1),this.setState(s))},isActive(e){return this.getState().findIndex(s=>s===e.name)!==-1}}},ks={class:"aioseo-included-objects-toggle"},Is={class:"included-objects-settings"},Ls={class:"aioseo-description"},Cs=m("br",null,null,-1);function Vs(e,t,s,n,o,i){const l=$("base-toggle"),r=$("core-tooltip"),c=$("base-highlight-toggle"),a=$("grid-column"),p=$("grid-row");return b(),S("div",ks,[m("div",Is,[s.type==="post_types"?(b(),z(l,{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:w(()=>[_(g(o.strings.includeAllPostTypes),1)]),_:1},8,["modelValue"])):I("",!0),s.type==="taxonomies"?(b(),z(l,{key:1,size:"medium",modelValue:e.$root.$data.taxonomies_all,"onUpdate:modelValue":t[1]||(t[1]=u=>e.$root.$data.taxonomies_all=u)},{default:w(()=>[_(g(o.strings.includeAllTaxonomies),1)]),_:1},8,["modelValue"])):I("",!0),0<i.objects.length&&!i.includeAllSetting?(b(),z(p,{key:2,class:"aioseo-included-list"},{default:w(()=>[(b(!0),S(Qe,null,uo(i.objects,(u,h)=>(b(),z(a,{md:"6",key:h},{default:w(()=>[f(c,{size:"medium",active:i.isActive(u),name:u.name,type:"checkbox",modelValue:i.getValue(u),"onUpdate:modelValue":k=>i.updateValue(k,u)},{default:w(()=>[f(r,null,{tooltip:w(()=>[m("div",Ls,[_(g(o.strings.label)+" ",1),m("strong",null,g(u.label),1),Cs,_(" "+g(o.strings.name)+" ",1),m("strong",null,g(u.name),1)])]),default:w(()=>[m("span",{class:Be(["icon dashicons",n.getPostIconClass(u.icon)])},null,2)]),_:2},1024),_(" "+g(u.label),1)]),_:2},1032,["active","name","modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1})):I("",!0)])])}const Os=W(_s,[["render",Vs]]),H="all-in-one-seo-pack",Ts={components:{HtmlSitemapExcludeObjects:Ss,HtmlSitemapIncludedObjects:Os},data(){return{sortDirections:[{label:d("Ascending",H),value:"asc"},{label:d("Descending",H),value:"desc"}],sortOrders:[{label:d("Publish Date",H),value:"publish_date"},{label:d("Last Updated",H),value:"last_updated"},{label:d("Alphabetical",H),value:"alphabetical"},{label:d("Post/Term ID",H),value:"id"}],strings:{useDefault:d("Use Default Settings",H),postTypes:d("Post Types",H),taxonomies:d("Taxonomies",H),includeAllPostTypes:d("Include All Post Types",H),includeAllTaxonomies:d("Include All Taxonomies",H),showLabel:d("Show Labels",H),publicationDate:d("Show Publication Date",H),archives:d("Compact Archives",H),sortOrder:d("Sort Order",H),sortDirection:d("Sort Direction",H),excludePostsPages:d("Exclude Posts / Pages",H),excludeTerms:d("Exclude Terms",H)}}},methods:{getSortOrder(e){return this.sortOrders.find(t=>t.value===e)},getSortDirection(e){return this.sortDirections.find(t=>t.value===e)}}},Bs={class:"aioseo-sidebar-row"},Es={class:"aioseo-sidebar-row"},Ps={key:0,class:"aioseo-sidebar-row"},As={key:1,class:"aioseo-sidebar-row"},xs={key:2,class:"aioseo-sidebar-row"},Hs={class:"aioseo-sidebar-title"},Ms={key:3,class:"aioseo-sidebar-row"},Ns={class:"aioseo-sidebar-title"},Ds={key:4,class:"aioseo-sidebar-row"},qs={class:"aioseo-sidebar-title"},Rs={class:"aioseo-sidebar-row"},Us={class:"aioseo-sidebar-title"},zs={key:5,class:"aioseo-sidebar-row"},js={class:"aioseo-sidebar-title"},Fs={key:6,class:"aioseo-sidebar-row"},Zs={class:"aioseo-sidebar-title"};function Ws(e,t,s,n,o,i){const l=$("base-toggle"),r=$("html-sitemap-included-objects"),c=$("base-select"),a=$("html-sitemap-exclude-objects");return b(),S("div",null,[m("div",Bs,[f(l,{modelValue:e.$root.$data.default,"onUpdate:modelValue":t[0]||(t[0]=p=>e.$root.$data.default=p)},{default:w(()=>[_(g(o.strings.useDefault),1)]),_:1},8,["modelValue"])]),e.$root.$data.default?I("",!0):(b(),S(Qe,{key:0},[m("div",Es,[f(l,{modelValue:e.$root.$data.archives,"onUpdate:modelValue":t[1]||(t[1]=p=>e.$root.$data.archives=p)},{default:w(()=>[_(g(o.strings.archives),1)]),_:1},8,["modelValue"])]),e.$root.$data.archives?I("",!0):(b(),S("div",Ps,[f(l,{modelValue:e.$root.$data.show_label,"onUpdate:modelValue":t[2]||(t[2]=p=>e.$root.$data.show_label=p)},{default:w(()=>[_(g(o.strings.showLabel),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?I("",!0):(b(),S("div",As,[f(l,{modelValue:e.$root.$data.publication_date,"onUpdate:modelValue":t[3]||(t[3]=p=>e.$root.$data.publication_date=p)},{default:w(()=>[_(g(o.strings.publicationDate),1)]),_:1},8,["modelValue"])])),e.$root.$data.archives?I("",!0):(b(),S("div",xs,[m("p",Hs,g(o.strings.postTypes),1),f(r,{type:"post_types",excluded:["attachment"]})])),e.$root.$data.archives?I("",!0):(b(),S("div",Ms,[m("p",Ns,g(o.strings.taxonomies),1),f(r,{type:"taxonomies"})])),e.$root.$data.archives?I("",!0):(b(),S("div",Ds,[m("p",qs,g(o.strings.sortOrder),1),f(c,{size:"medium",options:o.sortOrders,modelValue:i.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",Rs,[m("p",Us,g(o.strings.sortDirection),1),f(c,{size:"medium",options:o.sortDirections,modelValue:i.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?I("",!0):(b(),S("div",zs,[m("p",js,g(o.strings.excludePostsPages),1),f(a,{type:"posts"})])),e.$root.$data.archives?I("",!0):(b(),S("div",Fs,[m("p",Zs,g(o.strings.excludeTerms),1),f(a,{type:"terms"})]))],64))])}const Qs=W(Ts,[["render",Ws]]),le=window.wp,K=le.element.createElement,Js=le.element.Fragment,Gs=le.serverSideRender||le.components.ServerSideRender;var oo;const Ks=((oo=le.blockEditor)==null?void 0:oo.InspectorControls)||le.editor.InspectorControls,Ys=le.components.PanelBody,Xs=le.components.Disabled,nt="all-in-one-seo-pack",en=K("svg",{width:25,height:25,viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},K("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"})),je={},at=[],yo="aioseo/html-sitemap",tn={title:d("AIOSEO - HTML Sitemap",nt),category:"aioseo",icon:en,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:s,className:n,clientId:o,isSelected:i,toggleSelection:l}=e,r="aioseo-"+o,c={id:r,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(u){pe(o,at);let h=ie({name:"Blocks/HtmlSitemap",data:function(){return je[o]},watch:{$data:{handler:function(k){t(k)},deep:!0}},render:()=>ce(Qs)});h=ue(h),h=Ao(h),h=xo(h),ro(h),h.mount(u),at.push({clientId:o,app:h})}};i&&(je[o]={},Object.keys(s).forEach(u=>{je[o][u]=s[u]}),R(c)),le.data.useSelect(u=>u("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof l!="function"||l(!0));const p=K(Ks,null,K(Ys,{title:d("Display Settings",nt),initialOpen:!0,onToggle:()=>{R(c)}},K("div",null,K("div",{id:r},null))));return K(Js,{},p,K("div",{className:n},K(Xs,null,K(Gs,{block:yo,attributes:{...s}}))))},save:function(){return null}},on=Object.freeze(Object.defineProperty({__proto__:null,name:yo,settings:tn},Symbol.toStringTag,{value:"Module"})),M="all-in-one-seo-pack",sn={setup(){return{postEditorStore:me(),rootStore:N()}},components:{BaseInput:Re,BaseSelect:Ue,BaseToggle:Je},data(){return{locationsList:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.postTypeSingleLabel,showLabels:d("Show labels",M),showIcons:d("Show icons",M),businessInfo:d("Business Info",M),showName:d("Name",M),address:d("Address",M),phoneNumber:d("Phone Number",M),faxNumber:d("Fax Number",M),emailAddress:d("Email Address",M),showVat:d("Show VAT ID",M),showTax:d("Show Tax ID",M),countryCode:d("Phone/Fax Country Code",M),labels:d("Labels",M),addressLabel:d("Address",M),vatIdLabel:d("Vat ID",M),taxIdLabel:d("Tax ID",M),phoneLabel:d("Phone",M),faxLabel:d("Fax",M),emailLabel:d("Email",M)}}},methods:{getLocationOptions(e){let t=this.locationsList.find(s=>s.value===e);return!t&&!this.isLocationPostType()&&(t=this.locationsList.find(s=>!!s),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})})}},nn={key:0,class:"sidebar-row"},an={class:"title"},ln={class:"sidebar-row"},rn={class:"sidebar-row"},dn={class:"sidebar-row"},cn={class:"title"},un={class:"sidebar-row"},pn={class:"sidebar-row"},mn={class:"sidebar-row"},hn={class:"sidebar-row"},gn={key:1,class:"sidebar-row"},fn={class:"sidebar-row"},bn={class:"sidebar-row"},yn={class:"sidebar-row"},wn={key:2},$n={class:"sidebar-row"},vn={class:"title"},Sn={class:"sidebar-row labels"},_n={key:0},kn={key:1},In={key:2},Ln={key:3},Cn={key:4},Vn={key:5};function On(e,t,s,n,o,i){const l=$("base-select"),r=$("base-toggle"),c=$("base-input");return b(),S("div",null,[o.locationsList.length&&!i.isLocationPostType()?(b(),S("div",nn,[m("p",an,g(o.strings.selectLocation),1),f(l,{size:"medium",options:o.locationsList,modelValue:i.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"])])):I("",!0),m("div",ln,[f(r,{modelValue:e.$root.$data.showLabels,"onUpdate:modelValue":t[1]||(t[1]=a=>e.$root.$data.showLabels=a)},{default:w(()=>[_(g(o.strings.showLabels),1)]),_:1},8,["modelValue"])]),m("div",rn,[f(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=a=>e.$root.$data.showIcons=a)},{default:w(()=>[_(g(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),m("div",dn,[m("p",cn,g(o.strings.businessInfo),1)]),m("div",un,[f(r,{modelValue:e.$root.$data.showName,"onUpdate:modelValue":t[3]||(t[3]=a=>e.$root.$data.showName=a)},{default:w(()=>[_(g(o.strings.showName),1)]),_:1},8,["modelValue"])]),m("div",pn,[f(r,{modelValue:e.$root.$data.showAddress,"onUpdate:modelValue":t[4]||(t[4]=a=>e.$root.$data.showAddress=a)},{default:w(()=>[_(g(o.strings.address),1)]),_:1},8,["modelValue"])]),m("div",mn,[f(r,{modelValue:e.$root.$data.showPhone,"onUpdate:modelValue":t[5]||(t[5]=a=>e.$root.$data.showPhone=a)},{default:w(()=>[_(g(o.strings.phoneNumber),1)]),_:1},8,["modelValue"])]),m("div",hn,[f(r,{modelValue:e.$root.$data.showFax,"onUpdate:modelValue":t[6]||(t[6]=a=>e.$root.$data.showFax=a)},{default:w(()=>[_(g(o.strings.faxNumber),1)]),_:1},8,["modelValue"])]),e.$root.$data.showPhone||e.$root.$data.showFax?(b(),S("div",gn,[f(r,{modelValue:e.$root.$data.showCountryCode,"onUpdate:modelValue":t[7]||(t[7]=a=>e.$root.$data.showCountryCode=a)},{default:w(()=>[_(g(o.strings.countryCode),1)]),_:1},8,["modelValue"])])):I("",!0),m("div",fn,[f(r,{modelValue:e.$root.$data.showEmail,"onUpdate:modelValue":t[8]||(t[8]=a=>e.$root.$data.showEmail=a)},{default:w(()=>[_(g(o.strings.emailAddress),1)]),_:1},8,["modelValue"])]),m("div",bn,[f(r,{modelValue:e.$root.$data.showVat,"onUpdate:modelValue":t[9]||(t[9]=a=>e.$root.$data.showVat=a)},{default:w(()=>[_(g(o.strings.showVat),1)]),_:1},8,["modelValue"])]),m("div",yn,[f(r,{modelValue:e.$root.$data.showTax,"onUpdate:modelValue":t[10]||(t[10]=a=>e.$root.$data.showTax=a)},{default:w(()=>[_(g(o.strings.showTax),1)]),_:1},8,["modelValue"])]),e.$root.$data.showLabels?(b(),S("div",wn,[m("div",$n,[m("p",vn,g(o.strings.labels),1)]),m("div",Sn,[e.$root.$data.showAddress?(b(),S("div",_n,[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"])])):I("",!0),e.$root.$data.showVat?(b(),S("div",kn,[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"])])):I("",!0),e.$root.$data.showTax?(b(),S("div",In,[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"])])):I("",!0),e.$root.$data.showPhone?(b(),S("div",Ln,[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"])])):I("",!0),e.$root.$data.showFax?(b(),S("div",Cn,[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"])])):I("",!0),e.$root.$data.showEmail?(b(),S("div",Vn,[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"])])):I("",!0)])])):I("",!0)])}const Tn=W(sn,[["render",On],["__scopeId","data-v-f724afcb"]]),Y=window.wp,E=Y.element.createElement,Ve=Y.element.Fragment;var so;const Bn=((so=Y.blockEditor)==null?void 0:so.InspectorControls)||Y.editor.InspectorControls,En=Y.components.PanelBody,Pn=Y.components.Disabled,An=Y.serverSideRender||Y.components.ServerSideRender,xn=Y.data.withSelect,j="all-in-one-seo-pack",Hn=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"})),Pe={},it=[],lt=[],wo="aioseo/businessinfo",Mn={title:d("AIOSEO Local - Business Info",j),category:"aioseo",icon:Hn,example:{},attributes:{locationId:{type:"number",default:null},showLabels:{type:"boolean",default:!0},addressLabel:{type:"string",default:d("Address:",j)},vatIdLabel:{type:"string",default:d("VAT ID:",j)},taxIdLabel:{type:"string",default:d("Tax ID:",j)},phoneLabel:{type:"string",default:d("Phone:",j)},faxLabel:{type:"string",default:d("Fax:",j)},emailLabel:{type:"string",default:d("Email:",j)},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:xn(function(e){const t=N();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var v;const s=(v=Le().options.localBusiness)==null?void 0:v.locations.general.multiple,{setAttributes:n,attributes:o,className:i,clientId:l,isSelected:r,toggleSelection:c}=e;let{locations:a}=e;const p="aioseo-"+l;if(s&&a===null)return E(Ve,{},E("div",{},d("Loading...",j)));if(a=a===null?[]:a,!s&&o.locationId)return E(Ve,{},E("div",{},d("Please enable multiple locations before using this block.",j)));const u=N();if(s&&a.length===0)return E(Ve,{},E("div",{},D(d("No %1$s found",j),u.aioseo.localBusiness.postTypePluralLabel)));const h=me();o.locationId=!o.locationId&&h.currentPost.postType===u.aioseo.localBusiness.postTypeName?h.currentPost.id:o.locationId;const k={id:p,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(L){pe(l,it);let C=ie({name:"Blocks/BusinessInfo",data:function(){return Pe[l]},watch:{$data:{handler:function(J){n(J)},deep:!0}},render:()=>ce(Tn)});C=ue(C),C.mount(L),it.push({clientId:l,app:C})}};r&&(Pe[l]={},Object.keys(o).forEach(L=>{Pe[l][L]=o[L]}),Pe[l].locations=a,R(k)),Y.data.useSelect(L=>L("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof c!="function"||c(!0)),h.currentPost.postType===u.aioseo.localBusiness.postTypeName&&R({id:p+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){pe(l,lt);let C=ie({name:"Blocks/BusinessInfoWatcher",data:function(){return h.currentPost.local_seo.locations.business},watch:{$data:{handler:function(){n({updated:Date.now()})},deep:!0}},render:()=>ce("div")});C=ue(C),C.mount(L),lt.push({clientId:l,app:C})}});const x=E(Bn,null,E(En,{title:d("Display Settings",j),initialOpen:!0,onToggle:()=>{R(k)}},E("div",null,E("div",{id:p},null))));return s&&!o.locationId?E(Ve,{},x,E("div",{},D(d("Select a %1$s",j),u.aioseo.localBusiness.postTypeSingleLabel))):E(Ve,{},x,E("div",{className:i},E(Pn,null,E(An,{block:wo,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}},Nn=Object.freeze(Object.defineProperty({__proto__:null,name:wo,settings:Mn},Symbol.toStringTag,{value:"Module"})),G="all-in-one-seo-pack",Dn={setup(){return{postEditorStore:me(),rootStore:N()}},components:{BaseInput:Re,BaseSelect:Ue,BaseToggle:Je},data(){return{locationsList:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.postTypeSingleLabel,showTitle:d("Show Title",G),showIcons:d("Show Icons",G),Monday:d("Monday",G),Tuesday:d("Tuesday",G),Wednesday:d("Wednesday",G),Thursday:d("Thursday",G),Friday:d("Friday",G),Saturday:d("Saturday",G),Sunday:d("Sunday",G),label:d("Label",G)}}},methods:{getLocationOptions(e){let t=this.locationsList.find(s=>s.value===e);return!t&&!this.isLocationPostType()&&(t=this.locationsList.find(s=>!!s),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})})}},qn={key:0,class:"sidebar-row"},Rn={class:"title"},Un={class:"sidebar-row"},zn={class:"sidebar-row"},jn={class:"sidebar-row"},Fn={class:"sidebar-row"},Zn={class:"sidebar-row"},Wn={class:"sidebar-row"},Qn={class:"sidebar-row"},Jn={class:"sidebar-row"},Gn={class:"sidebar-row"},Kn={key:1,class:"sidebar-row labels"};function Yn(e,t,s,n,o,i){const l=$("base-select"),r=$("base-toggle"),c=$("base-input");return b(),S("div",null,[o.locationsList.length&&!i.isLocationPostType()?(b(),S("div",qn,[m("p",Rn,g(o.strings.selectLocation),1),f(l,{size:"medium",options:o.locationsList,modelValue:i.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"])])):I("",!0),m("div",Un,[f(r,{modelValue:e.$root.$data.showTitle,"onUpdate:modelValue":t[1]||(t[1]=a=>e.$root.$data.showTitle=a)},{default:w(()=>[_(g(o.strings.showTitle),1)]),_:1},8,["modelValue"])]),m("div",zn,[f(r,{modelValue:e.$root.$data.showIcons,"onUpdate:modelValue":t[2]||(t[2]=a=>e.$root.$data.showIcons=a)},{default:w(()=>[_(g(o.strings.showIcons),1)]),_:1},8,["modelValue"])]),m("div",jn,[f(r,{modelValue:e.$root.$data.showMonday,"onUpdate:modelValue":t[3]||(t[3]=a=>e.$root.$data.showMonday=a)},{default:w(()=>[_(g(o.strings.Monday),1)]),_:1},8,["modelValue"])]),m("div",Fn,[f(r,{modelValue:e.$root.$data.showTuesday,"onUpdate:modelValue":t[4]||(t[4]=a=>e.$root.$data.showTuesday=a)},{default:w(()=>[_(g(o.strings.Tuesday),1)]),_:1},8,["modelValue"])]),m("div",Zn,[f(r,{modelValue:e.$root.$data.showWednesday,"onUpdate:modelValue":t[5]||(t[5]=a=>e.$root.$data.showWednesday=a)},{default:w(()=>[_(g(o.strings.Wednesday),1)]),_:1},8,["modelValue"])]),m("div",Wn,[f(r,{modelValue:e.$root.$data.showThursday,"onUpdate:modelValue":t[6]||(t[6]=a=>e.$root.$data.showThursday=a)},{default:w(()=>[_(g(o.strings.Thursday),1)]),_:1},8,["modelValue"])]),m("div",Qn,[f(r,{modelValue:e.$root.$data.showFriday,"onUpdate:modelValue":t[7]||(t[7]=a=>e.$root.$data.showFriday=a)},{default:w(()=>[_(g(o.strings.Friday),1)]),_:1},8,["modelValue"])]),m("div",Jn,[f(r,{modelValue:e.$root.$data.showSaturday,"onUpdate:modelValue":t[8]||(t[8]=a=>e.$root.$data.showSaturday=a)},{default:w(()=>[_(g(o.strings.Saturday),1)]),_:1},8,["modelValue"])]),m("div",Gn,[f(r,{modelValue:e.$root.$data.showSunday,"onUpdate:modelValue":t[9]||(t[9]=a=>e.$root.$data.showSunday=a)},{default:w(()=>[_(g(o.strings.Sunday),1)]),_:1},8,["modelValue"])]),e.$root.$data.showTitle?(b(),S("div",Kn,[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"])])):I("",!0)])}const Xn=W(Dn,[["render",Yn],["__scopeId","data-v-7aaa8be8"]]),X=window.wp,P=X.element.createElement,Oe=X.element.Fragment;var no;const ea=((no=X.blockEditor)==null?void 0:no.InspectorControls)||X.editor.InspectorControls,ta=X.components.PanelBody,oa=X.components.Disabled,sa=X.serverSideRender||X.components.ServerSideRender,na=X.data.withSelect,ge="all-in-one-seo-pack",aa=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"})),Ae={},rt=[],dt=[],$o="aioseo/openinghours",ia={title:d("AIOSEO Local - Opening Hours",ge),category:"aioseo",icon:aa,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:",ge)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},edit:na(function(e){const t=N();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var v;const s=(v=Le().options.localBusiness)==null?void 0:v.locations.general.multiple,{setAttributes:n,attributes:o,className:i,clientId:l,isSelected:r,toggleSelection:c}=e;let{locations:a}=e;const p=`aioseo-${l}-settings`;if(s&&a===null)return P(Oe,{},P("div",{},d("Loading...",ge)));if(a=a===null?[]:a,!s&&o.locationId)return P(Oe,{},P("div",{},d("Please enable multiple locations before using this block.",ge)));const u=N();if(s&&a.length===0)return P(Oe,{},P("div",{},D(d("No %1$s found",ge),u.aioseo.localBusiness.postTypePluralLabel)));const h=me();o.locationId=!o.locationId&&h.currentPost.postType===u.aioseo.localBusiness.postTypeName?h.currentPost.id:o.locationId;const k={id:p,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(L){pe(l,rt);let C=ie({name:"Blocks/OpeningHours",data:function(){return Ae[l]},watch:{$data:{handler:function(J){n(J)},deep:!0}},render:()=>ce(Xn)});C=ue(C),C.mount(L),rt.push({clientId:l,app:C})}};r&&(Ae[l]={},Object.keys(o).forEach(L=>{Ae[l][L]=o[L]}),Ae[l].locations=a,R(k)),X.data.useSelect(L=>L("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof c!="function"||c(!0)),h.currentPost.postType===u.aioseo.localBusiness.postTypeName&&R({id:p+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(L){pe(l,dt);let C=ie({name:"Blocks/OpeningHoursWatcher",data:function(){return h.currentPost.local_seo.openingHours},watch:{$data:{handler:function(){n({updated:Date.now()})},deep:!0}},render:()=>ce("div")});C=ue(C),C.mount(L),dt.push({clientId:l,app:C})}});const x=P(ea,null,P(ta,{title:d("Display Settings",ge),initialOpen:!0,onToggle:()=>{R(k)}},P("div",{},P("div",{id:p},null))));return s&&!o.locationId?P(Oe,{},x,P("div",{},D(d("Select a %1$s",ge),u.aioseo.localBusiness.postTypeSingleLabel))):P(Oe,{},x,P("div",{className:i},P(oa,null,P(sa,{block:$o,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}},la=Object.freeze(Object.defineProperty({__proto__:null,name:$o,settings:ia},Symbol.toStringTag,{value:"Module"})),ra={setup(){return{postEditorStore:me(),rootStore:N()}},components:{BaseSelect:Ue},data(){return{locationCategories:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.taxonomySingleLabel}}},methods:{getCategoryOptions(e){let t=this.locationCategories.find(s=>s.value===e);return t||(t=this.locationCategories.find(s=>s.value===this.postEditorStore.currentPost.localBusinessCategory)||this.locationCategories.find(s=>!!s),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})})}},da={class:"sidebar-row"},ca={class:"title"};function ua(e,t,s,n,o,i){const l=$("base-select");return b(),S("div",null,[m("div",da,[m("p",ca,g(o.strings.selectLocation),1),f(l,{size:"medium",options:o.locationCategories,modelValue:i.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 pa=W(ra,[["render",ua]]),ee=window.wp,A=ee.element.createElement,we=ee.element.Fragment;var ao;const ma=((ao=ee.blockEditor)==null?void 0:ao.InspectorControls)||ee.editor.InspectorControls,ha=ee.components.PanelBody,ga=ee.components.Disabled,fa=ee.serverSideRender||ee.components.ServerSideRender,ba=ee.data.withSelect,$e="all-in-one-seo-pack",ya=A("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},A("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"})),xe={},ct=[],vo="aioseo/locations",wa={title:d("AIOSEO Local - Locations",$e),category:"aioseo",icon:ya,example:{},attributes:{categoryId:{type:"number",default:null}},edit:ba(function(e){const t=N();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var x;const s=(x=Le().options.localBusiness)==null?void 0:x.locations.general.multiple,{setAttributes:n,attributes:o,className:i,clientId:l,isSelected:r,toggleSelection:c}=e;let{categories:a}=e;const p="aioseo-"+l;if(s&&a===null)return A(we,{},A("div",{},d("Loading...",$e)));if(a=a===null?[]:a,!s)return A(we,{},A("div",{},d("Please enable multiple locations before using this block.",$e)));const u=N();if(a.length===0)return A(we,{},A("div",{},D(d("No %1$s found",$e),u.aioseo.localBusiness.taxonomyPluralLabel)));const h={id:p,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(v){pe(l,ct);let L=ie({name:"Blocks/Locations",data:function(){return xe[l]},watch:{$data:{handler:function(C){n(C)},deep:!0}},render:()=>ce(pa)});L=ue(L),L.mount(v),ct.push({clientId:l,app:L})}};r&&(xe[l]={},Object.keys(o).forEach(v=>{xe[l][v]=o[v]}),xe[l].categories=a,R(h)),ee.data.useSelect(v=>v("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof c!="function"||c(!0));const y=A(ma,null,A(ha,{title:u.aioseo.localBusiness.postTypePluralLabel,initialOpen:!0,onToggle:()=>{R(h)}},A("div",{},A("div",{id:p},null))));return a!==null&&a.length===0?A(we,{},A("div",{},D(d("No %1$s found",$e),u.aioseo.localBusiness.taxonomyPluralLabel))):o.categoryId?A(we,{},y,A("div",{className:i},A(ga,null,A(fa,{block:vo,attributes:{categoryId:o.categoryId}})))):A(we,{},y,A("div",{},D(d("Select a %1$s",$e),u.aioseo.localBusiness.taxonomySingleLabel)))}),save:function(){return null}},$a=Object.freeze(Object.defineProperty({__proto__:null,name:vo,settings:wa},Symbol.toStringTag,{value:"Module"})),Ie=window.wp,Z=Ie.element.createElement,He=Ie.element.Fragment,va=Ie.serverSideRender||Ie.components.ServerSideRender,Sa=Ie.components.Disabled,_a=Ie.data.withSelect,Me="all-in-one-seo-pack",ka=Z("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},Z("path",{d:"M17.2001 7.2L19.0361 9.036L17.7641 10.308L10.0001 2.544L2.23611 10.308L0.964111 9.036L10.0001 0L14.8001 4.8V2.4H17.2001V7.2ZM10.0001 4.248L17.2001 11.436V18.6H2.80011V11.436L10.0001 4.248ZM12.4001 17.4V11.4H7.60011V17.4H12.4001Z"})),So="aioseo/locationcategories",Ia={title:d("AIOSEO Local - Location Categories",Me),category:"aioseo",icon:ka,example:{},edit:_a(function(e){const t=N();return{categories:e("core").getEntityRecords("taxonomy",t.aioseo.localBusiness.taxonomyName)}})(function(e){var i;const s=(i=Le().options.localBusiness)==null?void 0:i.locations.general.multiple,{className:n}=e;let{categories:o}=e;if(s&&o===null)return Z(He,{},Z("div",{},d("Loading...",Me)));if(o=o===null?[]:o,!s)return Z(He,{},Z("div",{},d("Please enable multiple locations before using this block.",Me)));if(o.length===0){const l=N();return Z(He,{},Z("div",{},D(d("No %1$s found",Me),l.aioseo.localBusiness.taxonomyPluralLabel)))}return Z(He,{},Z("div",{className:n},Z(Sa,null,Z(va,{block:So}))))}),save:function(){return null}},La=Object.freeze(Object.defineProperty({__proto__:null,name:So,settings:Ia},Symbol.toStringTag,{value:"Module"})),ne="all-in-one-seo-pack",Ca={setup(){return{postEditorStore:me(),rootStore:N()}},components:{BaseInput:Re,BaseSelect:Ue,BaseToggle:Je,CoreImageUploader:jo},data(){return{locationsList:[],strings:{selectLocation:this.rootStore.aioseo.localBusiness.postTypeSingleLabel,showLabel:d("Show label",ne),showIcon:d("Show icon",ne),businessInfo:d("Business Info",ne),mapDisplay:d("Map Display",ne),width:d("Width",ne),height:d("Height",ne),customMarker:d("Custom Marker",ne),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.",ne),"<strong>","</strong>"),label:d("Label",ne)}}},methods:{getLocationOptions(e){let t=this.locationsList.find(s=>s.value===e);return!t&&!this.isLocationPostType()&&(t=this.locationsList.find(s=>!!s),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})})}},Va={key:0,class:"sidebar-row"},Oa={class:"title"},Ta={class:"sidebar-row"},Ba={class:"sidebar-row"},Ea={class:"sidebar-row"},Pa={class:"title"},Aa={class:"sidebar-row"},xa={class:"title"},Ha={class:"sidebar-row dimensions"},Ma={key:1,class:"sidebar-row labels"},Na={class:"title"};function Da(e,t,s,n,o,i){const l=$("base-select"),r=$("base-toggle"),c=$("core-image-uploader"),a=$("base-input");return b(),S("div",null,[o.locationsList.length&&!i.isLocationPostType()?(b(),S("div",Va,[m("p",Oa,g(o.strings.selectLocation),1),f(l,{size:"medium",options:o.locationsList,modelValue:i.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"])])):I("",!0),m("div",Ta,[f(r,{modelValue:e.$root.$data.showLabel,"onUpdate:modelValue":t[1]||(t[1]=p=>e.$root.$data.showLabel=p)},{default:w(()=>[_(g(o.strings.showLabel),1)]),_:1},8,["modelValue"])]),m("div",Ba,[f(r,{modelValue:e.$root.$data.showIcon,"onUpdate:modelValue":t[2]||(t[2]=p=>e.$root.$data.showIcon=p)},{default:w(()=>[_(g(o.strings.showIcon),1)]),_:1},8,["modelValue"])]),m("div",Ea,[m("p",Pa,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",Aa,[m("p",xa,g(o.strings.mapDisplay),1)]),m("div",Ha,[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(),S("div",Ma,[m("p",Na,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"])])):I("",!0)])}const qa=W(Ca,[["render",Da],["__scopeId","data-v-b101bbec"]]);function Ra(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch{}if(t)return t}function Ua(e){let t="";const s=Object.entries(e);let n;for(;n=s.shift();){let[o,i]=n;if(Array.isArray(i)||i&&i.constructor===Object){const r=Object.entries(i).reverse();for(const[c,a]of r)s.unshift([`${o}[${c}]`,a])}else i!==void 0&&(i===null&&(i=""),t+="&"+[o,i].map(encodeURIComponent).join("="))}return t.substr(1)}function za(e){try{return decodeURIComponent(e)}catch{return e}}function ja(e,t,s){const n=t.length,o=n-1;for(let i=0;i<n;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?s:e[l]||(r?[]:{}),Array.isArray(e[l])&&!r&&(e[l]={...e[l]}),e=e[l]}}function Fa(e){return(Ra(e)||"").replace(/\+/g,"%20").split("&").reduce((t,s)=>{const[n,o=""]=s.split("=").filter(Boolean).map(za);if(n){const i=n.replace(/\]/g,"").split("[");ja(t,i,o)}return t},Object.create(null))}function Za(e="",t){if(!t||!Object.keys(t).length)return e;let s=e;const n=e.indexOf("?");return n!==-1&&(t=Object.assign(Fa(e),t),s=s.substr(0,n)),s+"?"+Ua(t)}const te=window.wp,B=te.element.createElement,ve=te.element.Fragment;var io;const Wa=((io=te.blockEditor)==null?void 0:io.InspectorControls)||te.editor.InspectorControls,Qa=te.components.PanelBody,Ja=te.components.Disabled,Ga=te.serverSideRender||te.components.ServerSideRender,Ka=te.data.withSelect,re="all-in-one-seo-pack",Ya=B("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},B("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"})),Ne={},ut=[],pt=[],Xa="aioseo/locationmap",ei={title:d("AIOSEO Local - Map",re),category:"aioseo",icon:Ya,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:",re)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},edit:Ka(function(e){const t=N();return{locations:e("core").getEntityRecords("postType",t.aioseo.localBusiness.postTypeName,{per_page:100})}})(function(e){var se;const t=Le(),s=(se=t.options.localBusiness)==null?void 0:se.locations.general.multiple,{setAttributes:n,attributes:o,className:i,clientId:l,isSelected:r,toggleSelection:c}=e;let{locations:a}=e;const p="aioseo-location-map-"+l;if(s&&a===null)return B(ve,{},B("div",{},d("Loading...",re)));if(a=a===null?[]:a,!s&&o.locationId)return B(ve,{},B("div",{},d("Please enable multiple locations before using this block.",re)));const u=N();if(s&&a.length===0)return B(ve,{},B("div",{},D(d("No %1$s found",re),u.aioseo.localBusiness.postTypePluralLabel)));const h=me(),k=h.currentPost.postType===u.aioseo.localBusiness.postTypeName;o.locationId=!o.locationId&&k?h.currentPost.id:o.locationId;const y=a.find(V=>V.id===o.locationId),x=k?h.currentPost.local_seo.maps:y?y.maps:null,v={id:p,parent:document.querySelector(".block-editor"),subtree:!0,loop:!1,done:function(V){pe(l,ut);let q=ie({name:"Blocks/LocationMap",data:function(){return Ne[l]},watch:{$data:{handler:function(T){n(T)},deep:!0}},render:()=>ce(qa)});q=ue(q),q.mount(V),ut.push({clientId:l,app:q})}};r&&(Ne[l]={},Object.keys(o).forEach(function(V){Ne[l][V]=o[V]}),Ne[l].locations=a,R(v)),te.data.useSelect(V=>V("core/edit-post").getActiveGeneralSidebarName())==="edit-post/block"&&(typeof c!="function"||c(!0)),k&&R({id:p+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(V){pe(l,pt);let q=ie({name:"Blocks/LocationMapWatcher",data:function(){return h.currentPost.local_seo.maps},watch:{$data:{handler:function(){n({updated:Date.now()})},deep:!0}},render:()=>ce("div")});q=ue(q),q.mount(V),pt.push({clientId:l,app:q})}});const C=B(Wa,null,B(Qa,{title:d("Settings",re),initialOpen:!0,onToggle:()=>{R(v)}},B("div",null,B("div",{id:p},null))));if(s){if(!o.locationId)return B(ve,{},C,B("div",{},D(d("Select a %1$s",re),u.aioseo.localBusiness.postTypeSingleLabel)));if(!x){const V=Za("post.php",{post:o.locationId,action:"edit"});return B(ve,{},C,B("div",{dangerouslySetInnerHTML:{__html:D(d("Please configure the map for this location: %1$s",re),'<a href="'+V+'" target="_blank">'+y.title.rendered+"</a>")}}))}}const J="#"+p+"-preview .aioseo-local-map";return R({selector:J,parent:document.querySelector(".block-editor"),subtree:!0,done:function(){const V=x||t.options.localBusiness.maps;setTimeout(function(){document.dispatchEvent(new CustomEvent(u.aioseo.localBusiness.mapLoadEvent,{detail:{element:J,mapOptions:V.mapOptions,customMarker:o.customMarker||V.customMarker||t.options.localBusiness.maps.customMarker,instance:o,placeId:t.options.localBusiness.maps.mapsEmbedApiEnabled?V.placeId:null,infoWindowContent:V.infoWindowContent?V.infoWindowContent:null}}))},2e3)}}),B(ve,{},C,B("div",{className:i,id:p+"-preview"},B(Ja,null,B(Ga,{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:k?JSON.stringify(h.currentPost.local_seo.maps):null}})),B("div",{},B("div",{id:p+"-watcher"},null))))}),save:function(){return null}},ti=Object.freeze(Object.defineProperty({__proto__:null,name:Xa,settings:ei},Symbol.toStringTag,{value:"Module"})),oi="https://schemas.wp.org/wp/5.8/block.json",si="aioseo/table-of-contents",ni="1.0.0",ai="AIOSEO - Table of Contents",ii="Automatically output a table of contents (TOC) for long posts or pages (and custom post types).",li="layout",ri=["toc","table of contents","document outline","summary","index"],di="all-in-one-seo-pack",ci={listStyle:{type:"string",default:"ul"},headings:{type:"array",items:{type:"object"},default:[]},reOrdered:{type:"boolean",default:!1}},ui={multiple:!1,html:!1,align:["wide","full"]},_o={$schema:oi,name:si,version:ni,title:ai,description:ii,category:li,keywords:ri,textdomain:di,attributes:ci,supports:ui},pi={},mi={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-eye-off"},hi=m("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"},null,-1),gi=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),fi=[hi,gi];function bi(e,t){return b(),S("svg",mi,fi)}const yi=W(pi,[["render",bi]]),mt="all-in-one-seo-pack",wi={name:"List",setup(){return{tableOfContentsStore:be()}},components:{BaseInput:Re,CoreTooltip:Ge,Draggable:Zo,SvgClose:po,SvgDrag:Wo,SvgEye:Qo,SvgEyeOff:yi,SvgInfo:mo,SvgTocLink:Jo},props:{headings:{required:!0,type:Array},allowReorder:{required:!1,type:Boolean,default(){return!1}}},data(){return{showAnchorField:-1,strings:{tooltipHeader:d("Edit HTML Anchor:",mt),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.",mt),"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=bo(e,!0)},setReorder(){this.tableOfContentsStore.reOrdered=!0;const e=Fo(ae(this.tableOfContentsStore.headings));this.tableOfContentsStore.setHeadings(e),window.aioseoBus.$emit("updateHeadings"+this.tableOfContentsStore.blockClientId,e)},setAnchor:function(e,t){if(t.anchor=Fe(e),!e){const o=N();t.anchor=o.aioseo.data.blocks.toc.hashPrefix+Fe(t.content)}const s=t.blockClientId;window.wp.data.select("core/block-editor").getBlock(s)&&window.wp.data.dispatch("core/block-editor").updateBlockAttributes(s,{anchor:t.anchor})},setHiddenStatus(e){e.hidden=!e.hidden,e.editedLevel===9?e.editedLevel=0:e.editedLevel=9,this.tableOfContentsStore.setHeadings(Ke([...this.tableOfContentsStore.headings]))},handleAnchorInput(e){const t=e.target.closest(".aioseo-toc-list-item"),s=t==null?void 0:t.querySelector(".row-input--anchor input");s&&(t.classList.contains("anchor-edit")?(t.classList.add("anchor-is-animating"),t.classList.remove("anchor-edit"),t.classList.remove("done"),s.addEventListener("animationend",function n(){t.classList.remove("anchor-is-animating"),t.removeEventListener("animationend",n,!1)})):(s.focus({preventScroll:!0}),t.classList.add("anchor-edit","anchor-is-animating"),s.addEventListener("animationend",function n(){t.classList.remove("anchor-is-animating"),t.classList.add("done"),s.removeEventListener("animationend",n,!1)})))}}},$i={class:"aioseo-toc-list-item__inner"},vi={key:0,class:"aioseo-drag-handle has-icon"},Si={key:0,class:"append-icon"},_i={class:"append-icon"},ki={class:"aioseo-tooltip__header"},Ii=["onClick"];function Li(e,t,s,n,o,i){const l=$("svg-drag"),r=$("svg-toc-link"),c=$("base-input"),a=$("svg-info"),p=$("core-tooltip"),u=$("svg-close"),h=$("svg-eye-off"),k=$("svg-eye"),y=$("List",!0),x=$("draggable");return b(),z(x,Eo({class:["aioseo-toc-list",[{orderable:s.allowReorder}]]},i.dragOptions,{handle:".aioseo-drag-handle",list:s.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:w(({element:v})=>[m("li",{class:Be(["aioseo-toc-list-item",{"heading-hidden":v.hidden}])},[m("div",$i,[s.allowReorder?(b(),S("button",vi,[f(l)])):I("",!0),f(c,{class:"row-input row-input--content",modelValue:v.editedContent||v.content,"onUpdate:modelValue":L=>i.setEditedContent(L,v),placeholder:v.content},{"append-icon":w(()=>[s.allowReorder?I("",!0):(b(),S("div",Si,[f(r,{onClick:i.handleAnchorInput},null,8,["onClick"])]))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]),s.allowReorder?I("",!0):(b(),z(c,{key:1,class:"row-input row-input--anchor",spellcheck:!1,modelValue:v.anchor,"onUpdate:modelValue":L=>i.setAnchor(L,v)},{"append-icon":w(()=>[m("div",_i,[f(p,null,{tooltip:w(()=>[m("p",ki,g(o.strings.tooltipHeader),1),m("p",null,g(o.strings.tooltipDescription),1)]),default:w(()=>[f(a)]),_:1}),f(u,{onClick:i.handleAnchorInput},null,8,["onClick"])])]),_:2},1032,["modelValue","onUpdate:modelValue"])),s.allowReorder?I("",!0):(b(),S("button",{key:2,class:Be([{active:v.hidden},"aioseo-hide-heading-toggle","has-icon"]),onClick:L=>i.setHiddenStatus(v)},[v.hidden?(b(),z(h,{key:0})):(b(),z(k,{key:1}))],10,Ii)),v.headings?(b(),z(y,{key:3,class:"aioseo-toc-list-nested",headings:v.headings,allowReorder:s.allowReorder},null,8,["headings","allowReorder"])):I("",!0)])],2)]),_:1},16,["class","list","item-key"])}const Ci=W(wi,[["render",Li]]),Vi={name:"ListRendered",setup(){return{tableOfContentsStore:be()}},props:{headings:{required:!0,type:Array}}},Oi=["href"];function Ti(e,t,s,n,o,i){const l=$("ListRendered",!0);return b(),z(Po(n.tableOfContentsStore.listStyle),{class:"aioseo-toc-list--rendered"},{default:w(()=>[(b(!0),S(Qe,null,uo(s.headings,(r,c)=>(b(),S("li",{class:Be(["aioseo-toc-list-item--rendered",[{hidden:r.hidden}]]),key:c},[m("a",{href:`#${r.anchor}`},g(r.editedContent||r.content),9,Oi),r.headings?(b(),z(l,{key:0,class:"aioseo-toc-list-nested--rendered",headings:r.headings},null,8,["headings"])):I("",!0)],2))),128))]),_:1})}const Bi=W(Vi,[["render",Ti]]),ht="all-in-one-seo-pack",Ei={emits:["closeModal"],setup(){return{links:co}},components:{CoreModal:Go,Cta:Ko},props:{show:Boolean},data(){return{strings:{header:D(d("Reordering Headings is a %1$s Feature",ht),"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.",ht)}}}};function Pi(e,t,s,n,o,i){const l=$("cta"),r=$("core-modal");return b(),z(r,{show:s.show,classes:["aioseo-toc-modal-lite"],onClose:t[0]||(t[0]=c=>e.$emit("closeModal"))},{body:w(()=>[f(l,{type:1,floating:!1,"cta-link":n.links.getUpsellUrl("toc-block",null,"liteUpgrade"),"button-text":"Unlock Reordering","learn-more-link":n.links.getUpsellUrl("toc-block","reorder-all-features","liteUpgrade")},{"header-text":w(()=>[_(g(o.strings.header),1)]),description:w(()=>[_(g(o.strings.description),1)]),_:1},8,["cta-link","learn-more-link"])]),_:1},8,["show"])}const Ai=W(Ei,[["render",Pi]]),De={editedContent:"",editedLevel:0,editedOrder:0,hidden:!1,headings:[]},Se="all-in-one-seo-pack",xi={setup(){return{tableOfContentsStore:be()}},components:{CoreTooltip:Ge,Info:mo,List:Ci,ListRendered:Bi,Reorder:Ai},data(){return{showModal:!1,strings:{header:D(d("%1$s Table of Contents",Se),"AIOSEO"),instructions:d("Add a heading block below to begin generating the Table of Contents.",Se),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.",Se),"AIOSEO"),reorder:d("Reorder",Se),save:d("Save",Se),done:d("Done",Se)}}},watch:{"tableOfContentsStore.headings":{handler(e,t){ke(e,t)||window.aioseoBus.$emit("setAttributes"+this.tableOfContentsStore.blockClientId,e)},deep:!0},"tableOfContentsStore.reOrdered":{handler(e,t){e!==t&&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(De).forEach(t=>{e[t]=De[t]}),e},updateHeadings(e){const t=fe(ae(this.tableOfContentsStore.headings));let s=e.map(n=>this.setDefaultHeadingProps(n));t.forEach(n=>{const o=s.findIndex(i=>i.blockClientId===n.blockClientId);o!==-1&&(Object.keys(De).forEach(i=>{s[o][i]=n[i]}),s[o].editedContent===s[o].content&&(s[o].editedContent=""),s[o].hidden?s[o].editedLevel=9:s[o].editedLevel===9&&(s[o].editedLevel=0))}),this.tableOfContentsStore.reOrdered?0<s.length-t.length&&(s.sort((n,o)=>n.id-o.id),s.forEach((n,o)=>{n.editedOrder||(n.editedOrder=o+1)}),s.sort((n,o)=>n.editedOrder-o.editedOrder)):s.sort((n,o)=>n.id-o.id),s=Ke(s),this.tableOfContentsStore.setHeadings(s)}},mounted(){this.$nextTick(()=>{window.aioseoBus.$on("updateHeadings"+this.tableOfContentsStore.blockClientId,e=>{this.updateHeadings(e)})})}},Hi={class:"aioseo-toc-container"},Mi={class:"aioseo-toc-header"},Ni={class:"aioseo-toc-header-title"},Di={key:0,class:"aioseo-toc-header-instructions"},qi={key:1,class:"aioseo-toc-header-buttons"},Ri={key:0,class:"aioseo-toc-content"};function Ui(e,t,s,n,o,i){const l=$("Info"),r=$("core-tooltip"),c=$("List"),a=$("reorder"),p=$("ListRendered");return b(),S("div",Hi,[m("div",{class:Be(["aioseo-toc-menu",{"aioseo-toc-placeholder":n.tableOfContentsStore.headings.length===0}])},[m("header",Mi,[m("div",Ni,[_(g(o.strings.header)+" ",1),f(r,{placement:"bottom"},{tooltip:w(()=>[m("p",null,g(o.strings.tooltipMainDescription),1)]),default:w(()=>[f(l)]),_:1})]),n.tableOfContentsStore.headings.length===0?(b(),S("div",Di,g(o.strings.instructions),1)):I("",!0),n.tableOfContentsStore.headings.length!==0?(b(),S("div",qi,[m("a",{class:"aioseo-button-link",href:"#",onClick:t[0]||(t[0]=Te(u=>o.showModal=!0,["prevent"]))},g(o.strings.reorder),1),m("a",{class:"aioseo-button-link",href:"#",onClick:t[1]||(t[1]=Te((...u)=>i.save&&i.save(...u),["prevent"]))},g(o.strings.done),1)])):I("",!0)]),n.tableOfContentsStore.headings.length!==0?(b(),S("div",Ri,[f(c,{headings:n.tableOfContentsStore.headings},null,8,["headings"])])):I("",!0),f(a,{show:o.showModal,headings:n.tableOfContentsStore.headings,onCloseModal:t[2]||(t[2]=u=>o.showModal=!1)},null,8,["show","headings"])],2),n.tableOfContentsStore.headings.length!==0?(b(),z(p,{key:0,headings:n.tableOfContentsStore.headings},null,8,["headings"])):I("",!0)])}const zi=W(xi,[["render",Ui]]),{InspectorControls:gt}=window.wp.blockEditor,{PanelBody:ft,SelectControl:ji}=window.wp.components,bt="all-in-one-seo-pack",Fi=e=>{const{setAttributes:t,attributes:{listStyle:s}}=e,n=be();return oe` <${gt}> <${ft} title=${d("Table of Contents Settings",bt)}> <${ji} label=${d("List Style",bt)} options=${[{label:"Bullets",value:"ul"},{label:"Numbers",value:"ol"}]} value=${s} onChange=${o=>{n.listStyle=o,t({listStyle:o})}} /> </${ft}> </${gt}> `},{select:ko,subscribe:Zi,useSelect:Wi}=window.wp.data,{isTyping:Qi}=window.wp.data.select("core/block-editor")||{isTyping:()=>null},qe=[];let F=[],We=!1;const Ji=ko("core/edit-post").getEditorMode();Zi(()=>{if(ko("core/edit-post").getEditorMode()!==Ji){const e=Object.keys(qe)[0];if(We=!0,e){const t=document.querySelector(`[data-block="${e}"]`);t&&t.remove()}}});function Gi(e){const{setAttributes:t,attributes:s,clientId:n,className:o,isSelected:i}=e,l=`aioseo-${n}`;if((We||!qe.includes(n)&&(i||document.querySelector(`[data-block="${n}"]`)))&&(We=!1,qe.includes(n)||qe.push(n),R({id:l,parent:document.querySelector(".block-editor"),subtree:!0,done:function(r){var p;const c=ie({...zi,name:"Blocks/TableOfContents"});ro(c),c.mount(r);const a=be();if(a.blockClientId=n,a.headings=s.headings,a.listStyle=s.listStyle,a.reOrdered=s.reOrdered,(p=a.headings)!=null&&p.length&&0<(F==null?void 0:F.length)){const u=fe(ae(a.headings));u.forEach(h=>{const k=F==null?void 0:F.find(y=>y.content===h.content&&y.anchor===h.anchor&&y.id===h.id&&y.level===h.level);k&&(h.blockClientId=k.blockClientId)}),a.headings=Ke(u),t(a)}window.aioseoBus.$on("setAttributes"+n,()=>{t(a.$state)})}})),F=Wi(r=>{var C,J,se,V,q;const c=r("core/block-editor");if(!c)return null;const{getBlockAttributes:a,getBlockIndex:p,getBlockName:u,getClientIdsWithDescendants:h}=c,k=p(n),y=[];h().forEach(T=>{var tt;if(u(T)!=="core/heading"&&u(T)!=="aioseo/faq")return;const O=a(T),Ye=p(T),Xe=typeof(O==null?void 0:O.anchor)=="string"&&O.anchor!=="",et=O.level||O.tagName.replace("h","");if(et==="div")return;let ye=O.question||((tt=O.content)==null?void 0:tt.text)||O.content||"";if(!(typeof ye!="string"||ye===""||k>Ye)){if(ye=bo(ye.replace(/(<br *\/?>)+/g," "),!0),!Xe&&!Qi()){const Vo=N();O.anchor=Vo.aioseo.data.blocks.toc.hashPrefix+Fe(ye)}y.push({id:Ye,blockClientId:T,content:ye,level:Number(et),anchor:Xe?O.anchor:""})}}),y.forEach((T,O)=>{T.order=O});const v=be(),L=(C=fe(ae(v.headings)))==null?void 0:C.map(T=>(Object.keys(De).forEach(O=>{delete T[O]}),T));return!ke([...y].sort((T,O)=>T.order-O.order),[...L].sort((T,O)=>T.order-O.order))||((se=fe([...(J=a(n))==null?void 0:J.headings]))==null?void 0:se.length)!==[...y].length||((V=a(n))==null?void 0:V.reOrdered)===!0&&!ke(fe([...v.headings]).sort((T,O)=>T.editedOrder-O.editedOrder),fe([...(q=a(n))==null?void 0:q.headings]).sort((T,O)=>T.editedOrder-O.editedOrder))?y:null},[n]),F!=null&&F.length){const r=be(),c=fe(ae(r.headings));if(!ke([...F].sort((a,p)=>a.order-p.order),[...c].sort((a,p)=>a.order-p.order))){const a=F.sort((p,u)=>p.editedOrder-u.editedOrder);window.aioseoBus.$emit("updateHeadings"+n,a)}}return oe` <div className="${o}"> <div id="aioseo-${n}"></div> ${Fi(e)} </div> `}const{RawHTML:yt}=window.wp.element;function Ki({attributes:{headings:e,listStyle:t}}){if(!e)return"";const s=Io(e,t);return oe`<${yt}>${s}</${yt}>`}const Io=(e,t)=>{let s=`<${t}>`;return e.forEach(n=>{var l;if(n.hidden)return;let o="<li>";const i=n.editedContent||n.content;o+=`<a href="#${n.anchor}">${To.encode(i)}</a>`,(l=n.headings)!=null&&l.length&&(o+=Io(n.headings,t)),o+="</li>",s+=o}),s+=`</${t}>`,s},Yi=oe` <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:Xi,title:el,description:tl,keywords:ol,category:sl,supports:nl,attributes:al}=_o,il={title:el,description:tl,keywords:ol,category:sl,attributes:al,icon:Yi,supports:nl,edit:Gi,save:Ki},ll=Object.freeze(Object.defineProperty({__proto__:null,metadata:_o,name:Xi,settings:il},Symbol.toStringTag,{value:"Module"})),rl="https://schemas.wp.org/wp/5.8/block.json",dl="aioseo/faq",cl="AIOSEO - FAQ",ul="Easily add an SEO-friendly Frequently Asked Question (FAQ) to your content.",pl="aioseo",ml=["accordion","answer","faq","frequently asked questions","knowledge base","question","schema","seo"],hl="all-in-one-seo-pack",gl={hidden:{type:"boolean",default:!1},question:{type:"string",selector:".aioseo-faq-block-question"},schemaBlockId:{type:"string",default:""},tagName:{type:"string",default:"h3"}},fl={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}},Lo={$schema:rl,name:dl,title:cl,description:ul,category:pl,keywords:ml,textdomain:hl,attributes:gl,supports:fl},{RichText:bl,InnerBlocks:yl}=window.wp.blockEditor,{PanelBody:wt,SelectControl:wl,ToggleControl:$l}=window.wp.components,$t=window.wp.blockEditor.InspectorControls||window.wp.editor.InspectorControls,de="all-in-one-seo-pack",vl=[["core/paragraph",{placeholder:d("Write an answer...",de)}]],Sl=["core/paragraph","core/heading","core/list","core/image","core/media-text"],_l=(e,t,s)=>{const{hidden:n,question:o,tagName:i,schemaBlockId:l}=t,r=co.getUpsellLink("faq-block",null,Yo.learnMore,"sidebar",!0);return oe` <div data-schema-only="${n}" className="${e}" data-schema-block-id="${l}"> <${$t}> <${wt} title=${d("FAQ Options",de)}> <${wl} label=${d("Title Wrapper",de)} options=${[{label:"DIV",value:"div"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"}]} value=${i} onChange=${c=>s({tagName:c})} /> <p className="aioseo-visibility-label">${d("Visibility",de)}</p> <${$l} className="aioseo-faq-visibility" label=${d("Display Block",de)} 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.",de)} checked=${!n} onChange=${()=>s({hidden:!n})} disabled /> <div className="aioseo-alert aioseo-alert inline-upsell blue medium"> <div dangerouslySetInnerHTML=${{__html:d("FAQ schema is a Pro feature.",de)+" "+r}}></div> </div> </${wt}> </${$t}> <${bl} tagName=${i} placeholder=${d("Write a question...",de)} className='aioseo-faq-block-question' value=${o} onChange=${c=>s({question:c})} /> <div className="aioseo-faq-block-answer"> <${yl} template=${vl} allowedBlocks=${Sl} /> </div> </div> `},{useSelect:vt}=window.wp.data,{useEffect:kl}=window.wp.element,{serialize:Il}=window.wp.blocks,_e=[],Ll=e=>{const{body:t}=document.implementation.createHTMLDocument("");t.innerHTML=e;function s(n){var i;const o=n.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:c}of l.attributes){const a=c.replace(/\s+/g,"").toLowerCase();(!["src","href"].includes(r)||r.startsWith("on")||a.includes("javascript:")||a.includes("data:"))&&l.removeAttribute(r)}s(l)}}return s(t),t.innerHTML.trim().replace(/\s+/g," ")};function Cl(e){const{attributes:t,className:s,clientId:n,setAttributes:o,isSelected:i}=e,{schemaBlockId:l}=t;!_e.includes(n)&&!i&&_e.push(n);const r=p=>{window.requestAnimationFrame(()=>{o(p)}),window.aioseoBus.$emit("schemaBlockUpdated")};kl(()=>{(!l||1<(document.querySelectorAll(`[data-schema-block-id='${l}']`)||[]).length)&&r({schemaBlockId:us()})},[]);const c=vt(p=>{const u=p("core/block-editor");if(!u)return;const{getAdjacentBlockClientId:h,getBlockAttributes:k,getBlockName:y,getClientIdsWithDescendants:x,getGlobalBlockCount:v}=u;if(_e.includes(n)||2>v("aioseo/faq"))return null;const L=h(n,-1);if(y(L)==="aioseo/faq")return k(L);const C=h(n,1);if(y(C)==="aioseo/faq")return k(C);const se=x().filter(T=>y(T)==="aioseo/faq"),V=se.indexOf(n),q=se[V-1]||se[V+1];return y(q)==="aioseo/faq"?k(q):null},[n,_e]);i&&!_e.includes(n)&&!t.question&&c&&(_e.push(n),window.requestAnimationFrame(()=>{o({backgroundColor:c.backgroundColor,textColor:c.textColor,tagName:c.tagName,hidden:c.hidden,fontSize:c.fontSize,style:c.style})}));const a=vt(p=>{const u=p("core/block-editor");if(!u)return;const{getBlocks:h}=u;return(y=>{const x=h(y),v=Il(x);return Ll(v)})(n)},[n]);return r({answer:a}),_l(s,t,r)}const{RichText:Vl,InnerBlocks:Ol}=window.wp.blockEditor;function Tl({attributes:e,className:t}){const{question:s,hidden:n,tagName:o}=e;return oe` <div data-schema-only="${n}" className=${t}> <${Vl.Content} tagName=${o} className="aioseo-faq-block-question" value=${s} /> <div className="aioseo-faq-block-answer"> <${Ol.Content} /> </div> </div> `}const Bl=oe` <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> `,St="all-in-one-seo-pack",{name:El,title:Pl,description:Al,category:xl,supports:Hl,attributes:Ml}=Lo,Nl={title:Pl,description:Al,category:xl,attributes:Ml,icon:Bl,example:{attributes:{question:d("Who should use AIOSEO?",St)},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.",St)}}]},supports:Hl,edit:Cl,save:Tl},Dl=Object.freeze(Object.defineProperty({__proto__:null,metadata:Lo,name:El,settings:Nl},Symbol.toStringTag,{value:"Module"})),ql="https://schemas.wp.org/wp/5.8/block.json",Rl="aioseo/key-points",Ul="AIOSEO - Key Points",zl="Easily add an Too Long, Didn't Read (TLDR) to your content.",jl="text",Fl=["list","tldr","key points"],Zl="all-in-one-seo-pack",Wl={html:!1},Co={$schema:ql,name:Rl,title:Ul,description:zl,category:jl,keywords:Fl,textdomain:Zl,supports:Wl},{InnerBlocks:Ql}=window.wp.blockEditor,{useEffect:Jl}=window.wp.element,{select:Gl,dispatch:_t,subscribe:Kl}=window.wp.data;function Yl(e){const{className:t,clientId:s}=e;return Jl(()=>{const n=Kl(()=>{const i=Gl("core/block-editor").getBlocks(s).find(l=>l.name==="core/list");if(i){_t("core/block-editor").selectBlock(i.clientId);const l=i.attributes.values;if(l){const r=l.indexOf("<li>")+4,c={clientId:i.clientId,start:r,end:r};_t("core/block-editor").selectBlock(i.clientId,c)}n()}});return()=>n()},[s]),oe` <div className="${t}"> <div id="aioseo-${s}"> <${Ql} template=${[["core/list"]]} templateLock="all" /> </div> </div> `}const{InnerBlocks:Xl}=window.wp.blockEditor;function er({className:e}){return oe` <div className=${e}> <div className="aioseo-key-points-block-content"> <${Xl.Content} /> </div> </div> `}const tr=oe` <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25"><path fillRule="evenodd" clipRule="evenodd" 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"/></svg> `,or="all-in-one-seo-pack",{name:sr,title:nr,description:ar,category:ir,supports:lr,attributes:rr}=Co,dr={title:nr,description:ar,category:ir,attributes:rr,icon:tr,example:{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.",or)}}]},supports:lr,edit:Yl,save:er},cr=Object.freeze(Object.defineProperty({__proto__:null,metadata:Co,name:sr,settings:dr},Symbol.toStringTag,{value:"Module"}));var lo;if(((lo=window.aioseo.currentPost)==null?void 0:lo.context)==="post"){let e=[];window.wp.data.subscribe(()=>{t()});const t=ot(()=>{const n=window.wp.data.select("core/block-editor").getBlocks();(n.length<e.length||n.length===1)&&s(),e=n},200);window.aioseoBus.$on("schemaBlockUpdated",()=>{s()});const s=ot(()=>{var l;let n=window.wp.data.select("core/block-editor").getBlocks();n=Ho(n),n=n.filter(r=>{var c;return(c=r==null?void 0:r.attributes)==null?void 0:c.schemaBlockId}),n=n.map(r=>(r.attributes.type=r.name,r));const o=me(),i=((l=o.currentPost.schema)==null?void 0:l.blockGraphs)||[];i.forEach((r,c)=>{const a=n.findIndex(h=>{var k;return((k=h==null?void 0:h.attributes)==null?void 0:k.schemaBlockId)===(r==null?void 0:r.schemaBlockId)});if(a===-1){i.splice(c,1);return}const p={...n[a].attributes};["backgroundColor","textColor","fontSize","style"].forEach(h=>{delete p[h]}),i[c]=p}),n.forEach(r=>{i.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)&&i.push(r.attributes)}),i.sort((r,c)=>{const a=n.findIndex(u=>{var h;return((h=u==null?void 0:u.attributes)==null?void 0:h.schemaBlockId)===(r==null?void 0:r.schemaBlockId)}),p=n.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=i},200)}if(Bo()){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:s,setCategories:n,registerBlockCollection:o,registerBlockType:i}=window.wp.blocks,l=[...s()];typeof o=="function"?o("aioseo",{title:"AIOSEO",icon:t}):(l.unshift({slug:"aioseo",title:"AIOSEO",icon:t}),n(l));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"),i(p,u)};(()=>{var a,p;[ds,on,((p=(a=window==null?void 0:window.aioseo)==null?void 0:a.screen)==null?void 0:p.base)==="post"?ll:null,Dl,cr].forEach(r),window.aioseo.localBusiness&&[Nn,la,$a,La,ti].forEach(r)})()}
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.02 |
proxy
|
phpinfo
|
Настройка