post-settings.js 138 KB
(function(t){function e(e){for(var o,i,r=e[0],l=e[1],c=e[2],d=0,p=[];d<r.length;d++)i=r[d],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&p.push(a[i][0]),a[i]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(t[o]=l[o]);u&&u(e);while(p.length)p.shift()();return n.push.apply(n,c||[]),s()}function s(){for(var t,e=0;e<n.length;e++){for(var s=n[e],o=!0,r=1;r<s.length;r++){var l=s[r];0!==a[l]&&(o=!1)}o&&(n.splice(e--,1),t=i(i.s=s[0]))}return t}var o={},a={"post-settings":0},n=[];function i(e){if(o[e])return o[e].exports;var s=o[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=o,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(s,o,function(e){return t[e]}.bind(null,o));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/";var r=window["aioseopjsonp"]=window["aioseopjsonp"]||[],l=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var u=l;n.push([9,"chunk-vendors","chunk-common"]),s()})({"0580":function(t,e,s){},"08d2":function(t,e,s){},"0e57":function(t,e,s){"use strict";s.r(e);s("e260"),s("e6cf"),s("cca6"),s("a79d");var o=s("a026"),a=(s("1725"),s("75b9"),function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.pong?t._e():s("core-api-bar"),t.$isPro&&t.isUnlicensed&&t.pong?s("core-license-key-bar"):t._e(),t.currentPost.id?s("main-view"):t._e()],1)}),n=[],i=s("2909"),r=s("1da1"),l=s("5530"),c=(s("96cf"),function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-app"},[s("core-main-tabs",{attrs:{tabs:t.getTabs,showSaveButton:!1,active:t.activeTab,internal:"",disableMobile:""},on:{changed:function(e){return t.processChangeTab(e)}}}),s("transition",{attrs:{name:"route-fade",mode:"out-in"}},[s(t.activeTab,{tag:"component",attrs:{parentComponentContext:"metabox"}})],1),t.currentPost.modalOpen&&"sidebar"===t.$root._data.screenContext?s("core-modal",{attrs:{isolate:"",classes:["post-settings-modal"]},on:{close:t.closeModal}},[s("div",{attrs:{slot:"headerTitle"},slot:"headerTitle"},[t._v(" "+t._s(t.strings.modalTitle)+" ")]),s("div",{attrs:{slot:"body"},slot:"body"},[s("ModalContent")],1)]):t._e()],1)}),u=[],d=(s("a434"),s("4de4"),s("2f62")),p=s("51da"),h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-post-advanced"},[s("core-settings-row",{attrs:{name:t.strings.robotsSetting,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-single-robots-meta")]},proxy:!0}])}),s("core-settings-row",{attrs:{name:t.strings.canonicalURL,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-input",{attrs:{type:"text",size:"medium",placeholder:t.strings.placeholder},on:{input:t.setIsDirty},model:{value:t.currentPost.canonicalUrl,callback:function(e){t.$set(t.currentPost,"canonicalUrl",e)},expression:"currentPost.canonicalUrl"}})]},proxy:!0}])}),s("core-settings-row",{attrs:{name:t.strings.priorityScore,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"selectbox-row"},[s("div",{staticClass:"select"},[s("span",[t._v(t._s(t.strings.priority))]),s("base-select",{attrs:{disabled:t.isUnlicensed,size:"medium","open-direction":t.getOpenDirection,options:t.getPriorityOptions,value:t.isUnlicensed?t.getPriority("default"):t.getPriority(t.currentPost.priority)},on:{input:function(e){return t.isUnlicensed?null:t.savePriority(e.value)}}})],1),s("div",{staticClass:"separator"},[s("span"),t._v(" - ")]),s("div",{staticClass:"select"},[s("span",[t._v(t._s(t.strings.frequency))]),s("base-select",{attrs:{disabled:t.isUnlicensed,size:"medium","open-direction":t.getOpenDirection,options:t.getFrequencyOptions,value:t.isUnlicensed?t.getFrequency("default"):t.getFrequency(t.currentPost.frequency)},on:{input:function(e){return t.isUnlicensed?null:t.saveFrequency(e.value)}}})],1)]),t.isUnlicensed?s("core-alert",{staticClass:"inline-upsell",attrs:{type:"blue"}},[s("div",{domProps:{innerHTML:t._s(t.strings.priorityFrequencyUpsell)}})]):t._e()]},proxy:!0}])}),t.options.searchAppearance.advanced.useKeywords?s("core-settings-row",{attrs:{name:t.strings.keywords,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-select",{attrs:{multiple:"",taggable:"",options:t.getJsonValue(t.currentPost.keywords)||[],value:t.getJsonValue(t.currentPost.keywords)||[],"tag-placeholder":t.strings.tagPlaceholder},on:{input:function(e){return t.currentPost.keywords=t.setJsonValue(e)}}})]},proxy:!0}],null,!1,2312666634)}):t._e()],1)},g=[],_=(s("99af"),s("7db0"),s("9c0e")),m={mixins:[_["e"],_["f"]],props:{disabled:{type:Boolean,default:function(){return!1}},type:{type:String,required:!1},object:{type:Object,required:!1}},data:function(){return{strings:{pageName:this.$t.__("Advanced",this.$td),robotsSetting:this.$t.__("Robots Setting",this.$td),robotsToggle:this.$t.__("Use Default Settings",this.$td),canonicalURL:this.$t.__("Canonical URL",this.$td),placeholder:this.$t.__("Enter a URL to change the default Canonical URL",this.$td),priorityScore:this.$t.__("Priority Score",this.$td),priority:this.$t.__("Priority",this.$td),frequency:this.$t.__("Frequency",this.$td),priorityFrequencyUpsell:this.$t.sprintf(this.$t.__("This feature is only for licensed %1$s users. %2$s",this.$td),"<strong>".concat("AIOSEO"," Pro</strong>"),this.$links.getUpsellLink("post-advanced",this.$constants.GLOBAL_STRINGS.learnMore,"priority-frequency",!0)),keywords:this.$t.__("Keywords",this.$td),tagPlaceholder:this.$t.__("Press enter to create a keyword",this.$td)}}},computed:Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(d["c"])(["isUnlicensed"])),Object(d["e"])(["currentPost","options"])),{},{getOpenDirection:function(){return"sidebar"===this.$root._data.screenContext?"bottom":"top"},getPriorityOptions:function(){return[{label:this.$t.__("default",this.$td),value:"default"}].concat(this.$constants.PRIORITY_OPTIONS)},getFrequencyOptions:function(){return[{label:this.$t.__("default",this.$td),value:"default"}].concat(this.$constants.FREQUENCY_OPTIONS)}}),methods:{getPriority:function(t){return this.getPriorityOptions.find((function(e){return e.value===t}))},savePriority:function(t){this.$set(this.currentPost,"priority",t),this.$store.commit("isDirty",!0)},getFrequency:function(t){return this.getFrequencyOptions.find((function(e){return e.value===t}))},saveFrequency:function(t){this.$set(this.currentPost,"frequency",t),this.$store.commit("isDirty",!0)}}},b=m,f=(s("5e7f"),s("2877")),y=Object(f["a"])(b,h,g,!1,null,null,null),$=y.exports,v=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-post-general"},[this.$allowed("aioseo_page_general_settings")?s("core-settings-row",{staticClass:"mobile-radio-buttons",scopedSlots:t._u([{key:"content",fn:function(){return["metabox"===t.$root._data.screenContext||"modal"===t.parentComponentContext?s("base-radio-toggle",{staticClass:"circle",attrs:{value:t.currentPost.generalMobilePrev,name:"previewGeneralIsMobile",options:[{label:"desktop",value:!1,activeClass:"dark",slot:"desktop"},{label:"mobile",value:!0,slot:"mobile"}]},on:{input:t.isMobilePreviewEv},scopedSlots:t._u([{key:"desktop",fn:function(){return[s("svg-desktop")]},proxy:!0},{key:"mobile",fn:function(){return[s("svg-mobile")]},proxy:!0}],null,!1,3417581673)}):t._e()]},proxy:!0}],null,!1,1896340531)}):t._e(),this.$allowed("aioseo_page_general_settings")?s("core-settings-row",{staticClass:"snippet-preview-row",attrs:{name:t.strings.snippetPreview},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-google-search-preview",{class:{ismobile:t.currentPost.generalMobilePrev},attrs:{title:t.currentPost.title||t.currentPost.tags.title||"#post_title #separator_sa #site_title",separator:t.options.searchAppearance.global.separator,description:t.currentPost.description||t.currentPost.tags.description||"#post_content"},scopedSlots:t._u([{key:"domain",fn:function(){return[t._v(" "+t._s(t.liveTags.permalink)+" ")]},proxy:!0}],null,!1,3436692130)}),"sidebar"===t.$root._data.screenContext&&"modal"!==t.parentComponentContext?s("base-button",{staticClass:"edit-snippet gray small",on:{click:t.editSnippetEv}},[s("svg-pencil"),t._v(" "+t._s(t.strings.editSnippet)+" ")],1):t._e()]},proxy:!0}],null,!1,3824536476)}):t._e(),"metabox"!==t.$root._data.screenContext&&"modal"!==t.parentComponentContext||!this.$allowed("aioseo_page_general_settings")?t._e():s("core-settings-row",{staticClass:"snippet-title-row",attrs:{name:t.title},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-html-tags-editor",{attrs:{"line-numbers":!1,single:"","tags-context":(t.currentPost.postType||t.currentPost.termType)+"Title",defaultMenuOrientation:"modal"===t.parentComponentContext?"top":"bottom","default-tags":t.getDefaultTags("title")},on:{counter:function(e){return t.updateCount(e,"titleCount")},input:t.setContent},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddTitle)+" ")]},proxy:!0}],null,!1,3106947238),model:{value:t.currentPost.title,callback:function(e){t.$set(t.currentPost,"title",e)},expression:"currentPost.title"}}),s("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.titleCount,60))}})]},proxy:!0}],null,!1,2076209906)}),"metabox"!==t.$root._data.screenContext&&"modal"!==t.parentComponentContext||!this.$allowed("aioseo_page_general_settings")?t._e():s("core-settings-row",{staticClass:"snippet-description-row",attrs:{name:t.strings.metaDescription},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-html-tags-editor",{attrs:{"line-numbers":!1,description:"","tags-context":(t.currentPost.postType||t.currentPost.termType)+"Description",defaultMenuOrientation:"modal"===t.parentComponentContext?"top":"bottom","default-tags":t.getDefaultTags("description")},on:{counter:function(e){return t.updateCount(e,"descriptionCount")},input:t.setContent},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddDescription)+" ")]},proxy:!0}],null,!1,1726597184),model:{value:t.currentPost.description,callback:function(e){t.$set(t.currentPost,"description",e)},expression:"currentPost.description"}}),s("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.descriptionCount,160))}})]},proxy:!0}],null,!1,566412060)}),t.displayTruSeoMetaboxCard&&t.options.searchAppearance.advanced.useKeywords&&t.options.searchAppearance.advanced.keywordsLooking?s("div",[s("core-alert",{attrs:{type:"blue","show-close":""},on:{"close-alert":t.hideKeywordsLooking}},[t._v(" "+t._s(t.strings.lookingForMetaKeywords)+" ")])],1):t._e(),t.displayTruSeoMetaboxCard?s("core-settings-row",{staticClass:"snippet-focus-keyphrase-row",attrs:{align:""},scopedSlots:t._u([{key:"name",fn:function(){return[t._v(" "+t._s(t.strings.focusKeyphrase)+" "),s("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[s("div",{domProps:{innerHTML:t._s(t.strings.keyphraseDocumentation)}})]},proxy:!0}],null,!1,3089343708)},[s("svg-circle-question-mark")],1)]},proxy:!0},{key:"content",fn:function(){return[s("focusKeyphrase")]},proxy:!0}],null,!1,2373612567)}):t._e(),t.displayTruSeoMetaboxCard?s("core-settings-row",{staticClass:"snippet-additional-keyphrases-row",attrs:{name:t.strings.additionalKeyphrases},scopedSlots:t._u([{key:"content",fn:function(){return[s("additionalKeyphrases")]},proxy:!0}],null,!1,3781583425)}):t._e(),t.displayTruSeoMetaboxCard&&t.currentPost.page_analysis?s("core-settings-row",{staticClass:"snippet-page-analysis-row",attrs:{name:t.strings.pageAnalysis,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("pageAnalysis")]},proxy:!0}],null,!1,1626229952)}):t._e(),t.displayTruSeoSidebarKeyphraseCard?s("core-sidebar-card",{staticClass:"card-focus-keyphrase",attrs:{slug:"focus",focusScore:t.currentPost.keyphrases.focus.score},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(" "+t._s(t.strings.focusKeyphrase)+" "),s("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[s("div",{domProps:{innerHTML:t._s(t.strings.keyphraseDocumentation)}})]},proxy:!0}],null,!1,3089343708)},[s("svg-circle-question-mark")],1)]},proxy:!0}],null,!1,557225409)},[s("focusKeyphrase")],1):t._e(),t.displayTruSeoSidebarKeyphraseCard?s("core-sidebar-card",{staticClass:"card-additional-keyphrase",attrs:{slug:"additional","header-text":t.strings.additionalKeyphrases}},[s("additionalKeyphrases")],1):t._e(),t.displayTruSeoSidebarAnalysisCard?s("core-sidebar-card",{staticClass:"card-basic-seo",attrs:{slug:"basicseo","header-text":t.strings.basicSeo,trueSeoScore:t.currentPost.page_analysis.analysis.basic.errors}},[s("metaboxAnalysisDetail",{attrs:{analysisItems:t.currentPost.page_analysis.analysis.basic}})],1):t._e(),t.displayTruSeoSidebarAnalysisCard?s("core-sidebar-card",{staticClass:"card-title-seo",attrs:{slug:"title","header-text":t.strings.title,trueSeoScore:t.currentPost.page_analysis.analysis.title.errors}},[s("metaboxAnalysisDetail",{attrs:{analysisItems:t.currentPost.page_analysis.analysis.title}})],1):t._e(),t.displayTruSeoSidebarAnalysisCard?s("core-sidebar-card",{staticClass:"card-readability-seo",attrs:{slug:"readability","header-text":t.strings.readability,trueSeoScore:t.currentPost.page_analysis.analysis.readability.errors}},[s("metaboxAnalysisDetail",{attrs:{analysisItems:t.currentPost.page_analysis.analysis.readability}})],1):t._e()],1)},w=[],k=s("248f"),P=s("caf7"),C=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"page-analysis-panel"},[s("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:this.initTab,internal:""},on:{changed:function(e){return t.processChangeTab(e)}}}),s("transition",{attrs:{mode:"out-in"}},[t.currentPost.page_analysis?s("metaboxAnalysisDetail",{attrs:{analysisItems:t.currentPost.page_analysis.analysis[this.initTab]}}):t._e()],1)],1)},x=[],O=(s("d81d"),function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ul",{staticClass:"aioseo-analysis-detail"},t._l(t.analysisItems,(function(e,o){return s("li",{key:o},[e.title?s("p",{staticClass:"title",class:0===e.error?"toggled":""},[0===e.error?s("svg-circle-check",{attrs:{width:"12"}}):t._e(),1===e.error?s("svg-circle-close",{attrs:{width:"12"}}):t._e(),t._v(" "+t._s(e.title)+" "),s("svg-caret",{attrs:{width:"16"},on:{click:t.toggleDescriptionEv}})],1):t._e(),s("p",{staticClass:"description"},[t._v(t._s(e.description))])])})),0)}),S=[],T={props:{analysisItems:{type:Object}},data:function(){return{strings:{delete:this.$t.__("Delete",this.$td)}}},methods:{toggleDescriptionEv:function(t){t.target.parentElement.classList.toggle("toggled")}}},L=T,j=(s("a072"),Object(f["a"])(L,O,S,!1,null,null,null)),I=j.exports,A={components:{metaboxAnalysisDetail:I},data:function(){return{initTab:"basic",tabs:[{slug:"basic",name:this.$t.__("Basic SEO",this.$td)},{slug:"title",name:this.$t.__("Title",this.$td)},{slug:"readability",name:this.$t.__("Readability",this.$td)}]}},computed:Object(l["a"])({},Object(d["e"])(["currentPost"])),methods:{processChangeTab:function(t){this.initTab=t}},mounted:function(){var t=this;this.tabs.map((function(e){return e.errorCount=t.currentPost.page_analysis.analysis[e.slug].errors,e}))}},E=A,D=(s("8c79"),Object(f["a"])(E,C,x,!1,null,null,null)),M=D.exports,B=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-focus-keyphrase-panel"},[t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase?t._e():s("base-input",{class:"add-focus-keyphrase-"+this.$root._data.screenContext+"-input",attrs:{size:"medium"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.pressEnter.apply(null,arguments)}}}),s("div",{staticStyle:{display:"flex"}},[t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase?t._e():s("base-button",{staticClass:"add-keyphrase gray small",attrs:{id:"add-focus-keyphrase"},on:{click:t.addKeyphraseEv}},[s("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.addKeyphrase)+" ")],1),t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase?t._e():s("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[s("span",[t._v(" "+t._s(t.strings.semrushGetAdditionalKeyphrases)+" "+t._s(t.strings.pleaseAddFocusKeyphrase)+" ")])]},proxy:!0}],null,!1,76107531)},[s("div",{staticClass:"disabled-button gray"},[s("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.getAdditionalKeyphrases)+" ")],1)])],1),t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase?s("core-keyphrase",{staticClass:"aioseo-keyphrase-tag",attrs:{index:0,keyphrase:t.currentPost.keyphrases.focus.keyphrase,score:t.currentPost.keyphrases.focus.score},on:{saved:t.onSaved,deleted:t.onDeleted}}):t._e(),t.currentPost.loading.focus&&t.currentPost.keyphrases.focus?s("core-loader",{staticClass:"analysis-loading",attrs:{dark:""}}):t._e(),!t.currentPost.loading.focus&&t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase?s("metaboxAnalysisDetail",{attrs:{analysisItems:t.currentPost.keyphrases.focus.analysis}}):t._e(),!t.currentPost.loading.focus&&t.currentPost.keyphrases.focus&&t.currentPost.keyphrases.focus.keyphrase&&t.$isPro&&t.isUnlicensed?s("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[s("span",{domProps:{innerHTML:t._s(t.strings.semrushTooltipLicenseKey)}})]},proxy:!0}],null,!1,1529238061)},[s("div",{staticClass:"disabled-button gray"},[s("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.getAdditionalKeyphrases)+" ")],1)]):t._e(),t.currentPost.loading.focus||!t.currentPost.keyphrases.focus||!t.currentPost.keyphrases.focus.keyphrase||t.$isPro&&t.isUnlicensed?t._e():s("core-tooltip",{attrs:{disabled:!t.showSemrushTooltip||t.$isPro,"force-show":t.showSemrushTooltip&&!t.$isPro},scopedSlots:t._u([{key:"tooltip",fn:function(){return[s("span",[t._v(" "+t._s(t.strings.semrushTooltip)+" ")])]},proxy:!0}],null,!1,248438756)},[s("base-button",{staticClass:"add-keyphrase gray small",on:{click:t.getAdditionalKeyphrases}},[s("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.getAdditionalKeyphrases)+" ")],1)],1),t.semrushShowModal?s("core-modal",{attrs:{isolate:"",classes:["aioseo-focus-keyphrase-panel-modal"]},on:{close:function(e){t.semrushShowModal=!1}}},[s("div",{attrs:{slot:"headerTitle"},slot:"headerTitle"},[t._v(" "+t._s(t.strings.modalTitle)+" ")]),s("div",{attrs:{slot:"body"},slot:"body"},[s("div",{staticClass:"aioseo-modal-content has-padding"},[t.isUnlicensed?s("core-alert",{attrs:{type:"blue"},domProps:{innerHTML:t._s(t.strings.upsell)}}):t._e(),s("div",{staticClass:"aioseo-settings-row"},[s("div",{staticClass:"settings-name"},[s("div",{staticClass:"name"},[t._v(" "+t._s(t.strings.showResultsFor)+" ")])]),s("base-select",{staticClass:"semrush-country-selector",attrs:{size:"medium",options:t.semrushDatabase,placeholder:t.strings.selectPriceIndicator},model:{value:t.semrushCountry,callback:function(e){t.semrushCountry=e},expression:"semrushCountry"}})],1),s("div",{staticClass:"results"},[s("table",{staticClass:"additional-keyphrases-table",attrs:{cellpadding:"0",cellspacing:"0"}},[s("thead",[s("tr",{staticClass:"keyphrases-header"},[s("th",{staticClass:"keyphrase"},[t._v(t._s(t.strings.keyphrase))]),s("th",{staticClass:"keyphrase-volume"},[t._v(t._s(t.strings.volume))]),s("th",{staticClass:"keyphrase-trend"},[t._v(t._s(t.strings.trend))]),t.isUnlicensed?t._e():s("th",{staticClass:"keyphrase-actions"})])]),s("tbody",{staticClass:"keyphrases-rows"},[t.semrush.results.length&&!t.loadingResults?t._l(t.semrush.results,(function(e,o){return s("tr",{key:o,staticClass:"keyphrase-row",class:{even:0===o%2}},[s("td",{staticClass:"keyphrase"},[t._v(" "+t._s(e[0])+" ")]),s("td",{staticClass:"keyphrase-volume"},[t._v(" "+t._s(e[1])+" ")]),s("td",{staticClass:"keyphrase-trend"},[s("svg-area-chart",{attrs:{width:66,height:24,data:t.transformTrendDataToChartPoints(e[2]),strokeWidth:1.8,strokeColor:"#498afc",fillColor:"#ade3fc"}})],1),t.isUnlicensed?t._e():s("td",{staticClass:"keyphrase-actions"},[e[0]===t.currentPost.keyphrases.focus.keyphrase.toLowerCase()?s("div",{staticClass:"focus-keyphrase"},[s("svg-circle-check"),t._v(" "+t._s(t.strings.focusKeyphrase)+" ")],1):t._e(),e[0]!==t.currentPost.keyphrases.focus.keyphrase.toLowerCase()?s("div",[o===t.removingAdditionalKeyphrase||o!==t.addingAdditionalKeyphrase&&t.hasAdditionalKeyphrase(e[0])?t._e():s("base-button",{attrs:{type:"gray",size:"small",loading:o===t.addingAdditionalKeyphrase},on:{click:function(s){return t.addAdditionalKeyphrase(e[0],o)}}},[t._v(" "+t._s(t.strings.addAdditionalKeyphrase)+" ")]),t.getAdditionalKeyphrase(e[0])&&o!==t.addingAdditionalKeyphrase&&(o===t.removingAdditionalKeyphrase||t.hasAdditionalKeyphrase(e[0]))?s("div",{staticClass:"remove-keyphrase"},[s("span",{staticClass:"keyphrase-score",class:t.scoreClass(t.getAdditionalKeyphrase(e[0]).score),on:{click:function(s){return t.goToAdditionalKeyphrase(e[0])}}},[t._v(t._s(t.getAdditionalKeyphrase(e[0]).score)+"/100")]),s("core-tooltip",{attrs:{type:"action"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._v(" "+t._s(t.strings.delete)+" ")]},proxy:!0}],null,!0)},[s("svg-trash",{nativeOn:{click:function(s){return t.removeAdditionalKeyphrase(e[0],o)}}})],1)],1):t._e()],1):t._e()])])})):t._e(),!t.semrush.results.length||t.loadingResults?[s("tr",{staticClass:"keyphrase-row"},[s("td",{staticClass:"no-results",attrs:{colspan:t.isUnlicensed?3:4}},[s("div",[t.loadingResults?s("core-loader",{attrs:{dark:""}}):t._e(),t.loadingResults||t.semrush.error?t._e():s("span",[t._v(" "+t._s(t.strings.noResults)+" ")]),t.semrush.error&&!t.semrush.error.includes("TOTAL LIMIT EXCEEDED")?s("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.semrushError)+" ")]):t._e(),t.semrush.error&&t.semrush.error.includes("TOTAL LIMIT EXCEEDED")?[s("div",{staticClass:"semrush-logo"},[s("svg-logo-semrush")],1),s("div",{staticClass:"semrush-upsell"},[s("span",[s("strong",{domProps:{innerHTML:t._s(t.strings.youHaveExceededSemrush)}})]),t._v(t._s(" ")+" "),s("span",{domProps:{innerHTML:t._s(t.strings.inOrderToUpgradeSemrush)}})])]:t._e()],2)])])]:t._e()],2)])])],1)])]):t._e()],1)},H=[],K=(s("caad"),s("2532"),s("ac1f"),s("1276"),s("d3b7"),s("3ca3"),s("ddb0"),s("2b3d"),s("841c"),s("c740"),s("e935")),R={mixins:[_["e"]],components:{metaboxAnalysisDetail:I},data:function(){return{showSemrushTooltip:!1,loadingResults:!1,semrushShowModal:!1,addingAdditionalKeyphrase:!1,removingAdditionalKeyphrase:!1,semrushCountry:{value:"US",label:"United States of America - US"},strings:{modalTitle:this.$t.sprintf(this.$t.__("Additional Keyphrases by %1$s",this.$td),"Semrush"),addKeyphrase:this.$t.__("Add Focus Keyphrase",this.$td),getAdditionalKeyphrases:this.$t.__("Get Additional Keyphrases",this.$td),showResultsFor:this.$t.__("Show Results For:",this.$td),keyphrase:this.$t.__("Keyphrase",this.$td),volume:this.$t.__("Volume",this.$td),trend:this.$t.__("Trend",this.$td),addAdditionalKeyphrase:this.$t.__("Add Keyphrase",this.$td),removeAdditionalKeyphrase:this.$t.__("Remove Keyphrase",this.$td),noResults:this.$t.__("No results",this.$td),upsell:this.$t.sprintf(this.$t.__("Analyzing your content with %1$s keywords is only available to licensed %2$s users. %3$s",this.$td),"Semrush","<strong>".concat("AIOSEO"," Pro</strong>"),this.$links.getUpsellLink("semrush-keywords",this.$constants.GLOBAL_STRINGS.learnMore,null,!0)),semrushGetAdditionalKeyphrases:this.$t.sprintf(this.$t.__("%1$s integrates directly with %2$s to provide you with actionable keyphrases to help you write better content.",this.$td),"AIOSEO","Semrush"),pleaseAddFocusKeyphrase:this.$t.__("To use this feature, first add a focus keyphrase.",this.$td),focusKeyphrase:this.$t.__("Focus Keyphrase",this.$td),delete:this.$t.__("Delete",this.$td),semrushTooltip:this.$t.sprintf(this.$t.__("Get Additional Keyphrases with %1$s!",this.$td),"Semrush"),semrushTooltipLicenseKey:this.$t.sprintf(this.$t.__("%1$sA valid license key is required%2$s in order to connect with %3$s.",this.$td),'<a href="'+this.$aioseo.urls.aio.settings+'">',"</a>","Semrush"),youHaveExceededSemrush:this.$t.sprintf(this.$t.__("You have exceeded the number of requests allowed by your %1$s plan.",this.$td),"Semrush"),inOrderToUpgradeSemrush:this.$t.sprintf(this.$t.__("In order to continue searching for additional keyphrases, you'll need to upgrade. %1$s",this.$td),this.$links.getUpsellLink("semrush-pricing",this.$constants.GLOBAL_STRINGS.learnMore,"semrushPricing",!0))}}},watch:{semrushCountry:{deep:!0,handler:function(){this.getKeyphrases()}}},computed:Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(d["c"])("integrations",["semrushExpired","semrushHasValidTokens"])),Object(d["c"])(["isUnlicensed","isConnected"])),Object(d["e"])(["currentPost","internalOptions"])),Object(d["e"])("integrations",["semrush"])),{},{semrushError:function(){return this.semrush.error.includes("TOTAL LIMIT EXCEEDED")?this.$t.__("You have exceeded the limit for requests. Please try again later.",this.$td):this.$t.__("An error occurred while fetching keyphrases. Please try again later.",this.$td)},semrushDatabase:function(){var t=this;return this.$constants.COUNTRY_LIST.map((function(t){return"GB"===t.value&&(t.value="UK",t.label="United Kingdom"),"KR"===t.value&&(t.label="South Korea"),t})).filter((function(e){return t.$constants.SEMRUSH_DATABASE.includes(e.value.toLowerCase())})).map((function(t){return t.label=t.label+" - "+t.value.toUpperCase(),t}))}}),methods:Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(d["b"])("integrations",["semrushAuthenticate","semrushRefresh","semrushGetKeyphrases"])),Object(d["b"])(["saveConnectToken"])),{},{getAdditionalKeyphrases:function(){this.showSemrushTooltip=!1,this.isConnected?this.semrushHasValidTokens?this.openModal():this.openPopup("https://oauth.semrush.com/auth/login?client_id=aioseo&redirect_uri=https%3A%2F%2Foauth.semrush.com%2Foauth2%2Faioseo%2Fsuccess&ref=2190331110&response_type=code&scope=user.id"):this.openConnectPopup(this.$aioseo.urls.connect+"&semrush=true")},transformTrendDataToChartPoints:function(t){var e=t.split(",");return e.map((function(t,e){return{x:e,y:parseFloat(t)}}))},openConnectPopup:function(t){Object(K["a"])(t,this.connectWithAioseo,600,630,!0,["token"],this.completedConnectCallback,this.closedConnectCallback)},openPopup:function(t){Object(K["a"])(t,"Semrush Oauth",450,570,!0,["code"],this.completedCallback,this.closedCallback,this.postMessageCallback)},completedCallback:function(t){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.abrupt("return",e.semrushAuthenticate(t.code));case 1:case"end":return s.stop()}}),s)})))()},completedConnectCallback:function(t){return this.saveConnectToken(t.token)},openModal:function(){this.semrushShowModal=!0,this.semrush.error||this.getKeyphrases()},getKeyphrases:function(){var t=this;this.loadingResults=!0,this.semrushGetKeyphrases(this.semrushCountry.value).then((function(){t.loadingResults=!1})).catch((function(e){t.semrushShowModal=!1,t.loadingResults=!1,console.error(e.message)}))},closedCallback:function(t){t&&this.openModal()},closedConnectCallback:function(t){t&&(this.semrushHasValidTokens?this.$nextTick(this.getAdditionalKeyphrases):this.showSemrushTooltip=!0)},postMessageCallback:function(t,e,s){var o=this;return Object(r["a"])(regeneratorRuntime.mark((function a(){var n,i,r,l,c;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=t.data,i=t.source,r=t.origin,"https://oauth.semrush.com"===r&&e===i){a.next=3;break}return a.abrupt("return");case 3:if("semrush:oauth:success"===n.type){window.removeEventListener("message",s,!1),l={};try{c=new URL(n.url),l=Object(p["a"])(c.search)}catch(u){}o.completedCallback(l).then((function(){e.close(),e=null,o.closedCallback(!0)}))}"semrush:oauth:denied"===n.type&&(e.close(),window.removeEventListener("message",s,!1),e=null,o.closedCallback());case 5:case"end":return a.stop()}}),a)})))()},onSaved:function(t){var e=this,s=t.value;this.currentPost.keyphrases.focus.keyphrase=s,this.currentPost.loading.focus=!0,setTimeout((function(){e.$truSEO.runAnalysis({postId:e.currentPost.id,postData:e.currentPost}),e.currentPost.loading.focus=!1,e.setIsDirty()}),2e3)},onDeleted:function(){var t=this;this.currentPost.keyphrases.focus={},this.currentPost.loading.focus=!0,setTimeout((function(){t.$truSEO.runAnalysis({postId:t.currentPost.id,postData:t.currentPost}),t.currentPost.loading.focus=!1,t.setIsDirty()}),2e3)},addKeyphraseEv:function(){var t=this,e=document.getElementsByClassName("add-focus-keyphrase-".concat(this.$root._data.screenContext,"-input")),s=e[0].querySelector(".medium");if(s.value){var o={keyphrase:s.value,score:0,analysis:{}};this.$set(this.currentPost.keyphrases,"focus",o),this.currentPost.loading.focus=!0,s.value="",s.blur(),setTimeout((function(){t.$truSEO.runAnalysis({postId:t.currentPost.id,postData:t.currentPost}),t.currentPost.loading.focus=!1,t.setIsDirty()}),2e3)}},hasAdditionalKeyphrase:function(t){var e=this.currentPost.keyphrases.additional;return e.filter((function(e){return e.keyphrase.toLowerCase()===t})).length},getAdditionalKeyphrase:function(t){var e=this.currentPost.keyphrases.additional;return e.find((function(e){return e.keyphrase.toLowerCase()===t}))},scoreClass:function(t){return 80<t?"score-green":50<t?"score-orange":1<t?"score-red":"score-none"},addAdditionalKeyphrase:function(t,e){var s=this;this.addingAdditionalKeyphrase=e;var o=this.currentPost.keyphrases.additional,a=o.push({keyphrase:t,score:0}),n=document.getElementsByClassName("keyphrase-name");this.$set(this.currentPost.keyphrases,"additional",o),this.$nextTick((function(){setTimeout((function(){s.$truSEO.runAnalysis({postId:s.currentPost.id,postData:s.currentPost}),n[a]&&n[a].click(),s.setIsDirty(),s.addingAdditionalKeyphrase=!1}),2e3)}))},goToAdditionalKeyphrase:function(t){var e=this.currentPost.keyphrases.additional,s=e.findIndex((function(e){return e.keyphrase.toLowerCase()===t}));if(-1!==s){var o=document.getElementsByClassName("keyphrase-name");o[s+1]&&o[s+1].click(),this.semrushShowModal=!1}},removeAdditionalKeyphrase:function(t,e){var s=this;this.removingAdditionalKeyphrase=e;var o=this.currentPost.keyphrases.additional,a=o.findIndex((function(e){return e.keyphrase.toLowerCase()===t}));if(-1!==a){o.splice(a,1),this.$set(this.currentPost.keyphrases,"additional",o);var n=document.getElementsByClassName("keyphrase-name");n[0]&&n[0].click()}this.$nextTick((function(){s.removingAdditionalKeyphrase=!1}))},toggleDescriptionEv:function(t){t.target.parentElement.classList.toggle("toggled")},pressEnter:function(t){var e=document.getElementById("add-focus-keyphrase");t.preventDefault(),e.click()}}),mounted:function(){var t=[];this.internalOptions.integrations.semrush.accessToken&&this.semrushExpired&&t.push(this.semrushRefresh())}},N=R,F=(s("e2aa"),Object(f["a"])(N,B,H,!1,null,null,null)),U=F.exports,W=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"additional-keyphrases-panel"},[t.currentPost.keyphrases.additional&&t.currentPost.keyphrases.additional.length&&t.$isPro&&t.$aioseo.license.isActive?s("div",[t._l(t.currentPost.keyphrases.additional,(function(e,o){return s("core-keyphrase",{key:o,staticClass:"aioseo-keyphrase-tag additional-keyphrase",class:t.selectedKeyphrase===o?"selected":null,attrs:{index:o,keyphrase:e.keyphrase,score:e.score},on:{saved:t.onSaved,deleted:t.onDeleted,selectedKeyphrase:t.onSelectedKeyphrase}})})),s("div",{staticClass:"analysis-wrapper"},[t.currentPost.loading.additional[this.selectedKeyphrase]&&t.currentPost.keyphrases.additional[this.selectedKeyphrase].keyphrase?s("core-loader",{staticClass:"analysis-loading",attrs:{dark:""}}):t._e(),!t.currentPost.loading.additional[this.selectedKeyphrase]&&t.currentPost.keyphrases.additional[this.selectedKeyphrase].keyphrase?s("metaboxAnalysisDetail",{attrs:{analysisItems:t.currentPost.keyphrases.additional[this.selectedKeyphrase].analysis}}):t._e()],1)],2):t._e(),t.$isPro&&t.$aioseo.license.isActive?s("base-input",{class:"add-keyphrase-"+this.$root._data.screenContext+"-input",attrs:{size:"medium"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.pressEnter.apply(null,arguments)}}}):t._e(),t.$isPro&&t.$aioseo.license.isActive?s("base-button",{staticClass:"add-keyphrase gray small",attrs:{id:"add-additional-keyphrase"},on:{click:t.addKeyphraseEv}},[s("svg-circle-plus",{attrs:{width:"14",height:"14"}}),t._v(" "+t._s(t.strings.addKeyphrase)+" ")],1):t._e(),t.$isPro&&t.$aioseo.license.isActive?t._e():[s("div",{staticClass:"aioseo-description additional-keyphrases-description"},[t._v(" "+t._s(t.strings.keyphraseDocumentation)+" ")]),s("core-alert",{staticClass:"inline-upsell",attrs:{type:"yellow"}},[s("div",{domProps:{innerHTML:t._s(t.strings.upSell)}})])]],2)},z=[],V=(s("159b"),{mixins:[_["e"]],components:{metaboxAnalysisDetail:I},data:function(){return{selectedKeyphrase:0,strings:{additional:this.$t.__("Additional Keyphrases",this.$td),addKeyphrase:this.$t.__("Add Additional Keyphrases",this.$td),keyphraseDocumentation:this.$t.__("Improve your SEO rankings with additional keyphrases.",this.$td),upSell:this.$t.sprintf(this.$t.__("Multiple Keyphrases is a %1$s feature. %2$s",this.$td),"Pro",this.$links.getUpsellLink("seo-settings",this.$t.__("Click here to get",this.$td)+" AIOSEO Pro","additional-keyphrases",!0))}}},watch:{"currentPost.keyphrases.additional":function(){this.currentPost.keyphrases.additional[this.selectedKeyphrase]||(this.selectedKeyphrase=0)}},computed:Object(l["a"])({},Object(d["e"])(["currentPost"])),methods:{onSelectedKeyphrase:function(t){this.selectedKeyphrase=t},onSaved:function(t){var e=this,s=t.index,o=t.value;this.currentPost.keyphrases.additional[s].keyphrase=o,this.currentPost.keyphrases.additional[s].score=0,this.currentPost.loading.additional[s]=!0,setTimeout((function(){e.$truSEO.runAnalysis({postId:e.currentPost.id,postData:e.currentPost}),e.currentPost.loading.additional[s]=!1,e.selectedKeyphrase=s,e.setIsDirty()}),2e3)},onDeleted:function(t){this.currentPost.keyphrases.additional.splice(t,1),this.selectedKeyphrase=0,this.setIsDirty()},addKeyphraseEv:function(){var t=this,e=document.getElementsByClassName("add-keyphrase-".concat(this.$root._data.screenContext,"-input")),s=e[0].querySelector(".medium");if(s.value){var o={keyphrase:s.value,score:0},a=this.currentPost.keyphrases.additional.push(o),n=document.getElementsByClassName("keyphrase-name");this.currentPost.loading.additional[0]=!0,s.value="",s.blur(),setTimeout((function(){t.$truSEO.runAnalysis({postId:t.currentPost.id,postData:t.currentPost}),n[a].click(),t.setIsDirty()}),2e3)}},pressEnter:function(t){var e=document.getElementById("add-additional-keyphrase");t.preventDefault(),e.click()},created:function(){var t=this;this.currentPost.keyphrases.forEach((function(e,s){t.currentPost.loading.additional[s]=!1}))}}}),q=V,G=(s("7197"),Object(f["a"])(q,W,z,!1,null,null,null)),Y=G.exports,Z={mixins:[_["h"],_["m"],_["r"],_["e"]],components:{pageAnalysis:M,focusKeyphrase:U,additionalKeyphrases:Y,metaboxAnalysisDetail:I},props:{disabled:{type:Boolean,default:function(){return!1}},parentComponentContext:String},data:function(){return{titleCount:0,descriptionCount:0,keywords:null,keyphrases:null,selectedKeyphrase:0,editSnippet:!1,truSEO:null,strings:{pageName:this.$t.__("General",this.$td),snippetPreview:this.$t.__("Snippet Preview",this.$td),snippetPreviewContent:this.$t.__("Snippet Preview content here.",this.$td),editSnippet:this.$t.__("Edit Snippet",this.$td),clickToAddTitle:this.$t.__("Click on the tags below to insert variables into your title.",this.$td),metaDescription:this.$t.__("Meta Description",this.$td),clickToAddDescription:this.$t.__("Click on the tags below to insert variables into your meta description.",this.$td),pillarContent:this.$t.__("Pillar Content",this.$td),pillarContentCopy:this.$t.__("Cornerstone content should be the most important and extensive articles on your site.",this.$td),focusKeyphrase:this.$t.__("Focus Keyphrase",this.$td),additionalKeyphrases:this.$t.__("Additional Keyphrases",this.$td),pageAnalysis:this.$t.__("Page Analysis",this.$td),basicSeo:this.$t.__("Basic SEO",this.$td),title:this.$t.__("Title",this.$td),readability:this.$t.__("Readability",this.$td),lookingForMetaKeywords:this.$t.__("Looking for meta keywords? Click on the advanced tab above to add/edit meta keywords.",this.$td),keyphraseDocumentation:this.$t.sprintf(this.$t.__("Not sure what keyphrases are used for? Check out our documentation for more information. %1$s",this.$td),this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore,"useKeyphrasesTooltip",!0))}}},watch:{"currentPost.title":function(){var t=this;Object(k["a"])((function(){return t.runAnalysis({postId:t.currentPost.id})}),2e3)},"currentPost.description":function(){var t=this;Object(k["a"])((function(){return t.runAnalysis({postId:t.currentPost.id})}),2e3)}},computed:Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(d["e"])(["currentPost","options"])),Object(d["e"])("live-tags",["liveTags"])),{},{title:function(){return this.$t.sprintf(this.$t.__("%1$s Title",this.$td),this.currentPost.type)},toggled:function(){return 1===this.currentPost.pillar_content},displayTruSeoMetaboxCard:function(){return Object(P["r"])()&&"metabox"===this.$root._data.screenContext&&"post"===this.currentPost.context&&"attachment"!==this.currentPost.postType&&"modal"!==this.parentComponentContext&&this.$allowed("aioseo_page_analysis")&&!this.isWooCommerceProduct&&!this.currentPost.isSpecialPage&&!this.isForum},displayTruSeoSidebarKeyphraseCard:function(){return Object(P["r"])()&&"sidebar"===this.$root._data.screenContext&&"modal"!==this.parentComponentContext&&this.$allowed("aioseo_page_analysis")&&!this.currentPost.isSpecialPage&&!this.isForum},displayTruSeoSidebarAnalysisCard:function(){return Object(P["r"])()&&"sidebar"===this.$root._data.screenContext&&this.currentPost.page_analysis&&"modal"!==this.parentComponentContext&&this.$allowed("aioseo_page_analysis")&&!this.currentPost.isSpecialPage&&!this.isForum},isWooCommerceProduct:function(){return!(!window.aioseo.data.isWooCommerceActive||"product"!==this.currentPost.postType)},isForum:function(){return!("forum"!==this.currentPost.postType&&"topic"!==this.currentPost.postType&&"reply"!==this.currentPost.postType||!window.aioseo.data.isBBPressActive)}}),methods:Object(l["a"])(Object(l["a"])({},Object(d["b"])(["changeGeneralPreview","openModal","savePostState"])),{},{hideKeywordsLooking:function(){this.options.searchAppearance.advanced.keywordsLooking=!1,this.saveChanges()},isMobilePreviewEv:function(t){this.changeGeneralPreview(t)},editSnippetEv:function(){this.editSnippet=!this.editSnippet,this.$set(this.currentPost.tabs,"tab_modal","general"),this.openModal(!0)},setContent:function(){var t=this,e=function(){return Object(k["a"])((function(){var e=window.wp.data?window.wp.data.select("core/editor"):null;t.setIsDirty(),"post"===t.currentPost.context&&"attachment"!==t.currentPost.postType&&"product"!==t.currentPost.postType&&e&&t.runAnalysis({postId:t.currentPost.id,postData:t.currentPost,content:e.getEditedPostContent(),slug:e.getPermalink()})}),1e3)};e()},getDefaultTags:function(t){switch(t){case"title":return"post"===this.currentPost.context?["post_title","separator_sa","site_title"]:["taxonomy_title","separator_sa","site_title"];case"description":return"post"===this.currentPost.context?"attachment"===this.currentPost.postType?["attachment_caption","separator_sa","site_title"]:"product"===this.currentPost.postType?["post_excerpt","post_content"]:["post_excerpt","post_content","separator_sa"]:["taxonomy_title","separator_sa","taxonomy_description"]}}}),mounted:function(){this.keyphrases=this.currentPost.keyphrases,"post"!==this.currentPost.context||this.currentPost.keyphrases.length||(this.selectedKeyphrase=-1)}},J=Z,X=(s("40ea"),Object(f["a"])(J,v,w,!1,null,null,null)),Q=X.exports,tt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-post-schema-view"},[t.isUnlicensed?t._e():s("schema"),t.isUnlicensed?s("schema-lite"):t._e()],1)},et=[],st=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-post-schema-lite"},[s("core-settings-row",{attrs:{name:t.strings.schemaType},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-select",{staticClass:"schema-type",attrs:{disabled:"",size:"medium",options:[{value:"default",label:"Default (Set in Search Appearance)"},{value:"none",label:"None"},{value:"Article",label:"Article"}],value:{value:"Article",label:"Article"}}})]},proxy:!0}])}),s("core-settings-row",{attrs:{name:t.strings.articleType,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-radio-toggle",{attrs:{disabled:"",name:"articleType",value:"BlogPosting",options:[{label:t.strings.article,value:"Article"},{label:t.strings.blogPost,value:"BlogPosting"},{label:t.strings.newsArticle,value:"NewsArticle"}]}})]},proxy:!0}])}),t.$isPro&&t.$aioseo.license.isActive?t._e():s("core-alert",{staticClass:"schema-upsell inline-upsell",attrs:{type:"blue"}},[s("div",{domProps:{innerHTML:t._s(t.strings.schemaUpsell)}})])],1)},ot=[],at={data:function(){return{strings:{schemaType:this.$t.__("Schema Type",this.$td),articleType:this.$t.__("Article Type",this.$td),article:this.$t.__("Article",this.$td),blogPost:this.$t.__("Blog Post",this.$td),newsArticle:this.$t.__("News Article",this.$td),schemaUpsell:this.$t.sprintf(this.$t.__("This feature is only for licensed %1$s users. %2$s",this.$td),"<strong>".concat("AIOSEO"," Pro</strong>"),this.$links.getUpsellLink("post-schema",this.$constants.GLOBAL_STRINGS.learnMore,null,!0))}}},computed:Object(l["a"])({},Object(d["e"])(["currentPost"]))},nt=at,it=(s("5282"),Object(f["a"])(nt,st,ot,!1,null,null,null)),rt=it.exports,lt={components:{Schema:rt,SchemaLite:rt},computed:Object(l["a"])({},Object(d["c"])(["isUnlicensed"]))},ct=lt,ut=Object(f["a"])(ct,tt,et,!1,null,null,null),dt=ut.exports,pt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-post-social"},[s("core-settings-row",{staticClass:"mobile-radio-buttons",scopedSlots:t._u([{key:"content",fn:function(){return[s("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:t.initTab,internal:""},on:{changed:function(e){return t.processChangeTab(e)}}}),"metabox"===t.$root._data.screenContext||"modal"===t.parentComponentContext?s("base-radio-toggle",{staticClass:"circle",attrs:{value:t.currentPost.socialMobilePreview,name:"previewSocialIsMobile",options:[{label:"desktop",value:!1,activeClass:"dark",slot:"desktop"},{label:"mobile",value:!0,slot:"mobile"}]},on:{input:t.isMobilePreviewEv},scopedSlots:t._u([{key:"desktop",fn:function(){return[s("svg-desktop")]},proxy:!0},{key:"mobile",fn:function(){return[s("svg-mobile")]},proxy:!0}],null,!1,3417581673)}):t._e()]},proxy:!0}])}),s("transition",{attrs:{name:"route-fade",mode:"out-in"}},[s(t.initTab,{tag:"component"})],1),"modal"!==this.parentComponentContext?s("social-side-bar"):t._e()],1)},ht=[],gt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tab-facebook"},[s("core-settings-row",{attrs:{name:t.strings.tabName},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-facebook-preview",{class:{ismobilecard:t.currentPost.socialMobilePreview},attrs:{image:t.currentPost.og_image_custom_url||t.currentPost.og_image},scopedSlots:t._u([{key:"site-url",fn:function(){return[s("span",[t._v(t._s(t.liveTags.permalink))])]},proxy:!0},{key:"site-title",fn:function(){return[s("span",[t._v(t._s(t.truncate(t.parseTags(t.currentPost.og_title||t.currentPost.title||t.currentPost.tags.title||"#post_title #separator_sa #site_title"),100)))])]},proxy:!0},{key:"site-description",fn:function(){return[s("span",[t._v(t._s(t.truncate(t.parseTags(t.currentPost.og_description||t.currentPost.description||t.currentPost.tags.description||"#post_content"))))])]},proxy:!0}])})]},proxy:!0}])}),s("core-settings-row",{staticClass:"facebook-title-settings",attrs:{name:t.strings.facebookTitle,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-html-tags-editor",{staticClass:"facebook-meta-input",attrs:{"line-numbers":!1,single:"","tags-context":(t.currentPost.postType||t.currentPost.termType)+"Title","default-tags":t.$tags.getDefaultTags("term"===t.currentPost.context?"taxonomies":null,null,"title")},on:{counter:function(e){return t.updateCount(e,"titleCount")},input:t.setIsDirty},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddSiteName)+" ")]},proxy:!0}]),model:{value:t.currentPost.og_title,callback:function(e){t.$set(t.currentPost,"og_title",e)},expression:"currentPost.og_title"}}),s("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.titleCount,95))}})]},proxy:!0}])}),s("core-settings-row",{staticClass:"facebook-description-settings",attrs:{name:t.strings.facebookDescription,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-html-tags-editor",{staticClass:"facebook-meta-input",attrs:{"line-numbers":!1,description:"","tags-context":(t.currentPost.postType||t.currentPost.termType)+"Description","default-tags":t.$tags.getDefaultTags("term"===t.currentPost.context?"taxonomies":null,null,"description")},on:{counter:function(e){return t.updateCount(e,"descriptionCount")},input:t.setIsDirty},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddHomePageDescription)+" ")]},proxy:!0}]),model:{value:t.currentPost.og_description,callback:function(e){t.$set(t.currentPost,"og_description",e)},expression:"currentPost.og_description"}}),s("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.descriptionCount,200))}})]},proxy:!0}])}),s("core-settings-row",{staticClass:"facebook-image-source",attrs:{name:t.strings.imageSource,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-select",{attrs:{size:"medium",options:t.imageSourceOptionsFiltered,value:t.getImageSourceOptionFiltered(t.currentPost.og_image_type)},on:{input:function(e){return t.saveImageType(e.value)}}})]},proxy:!0}])}),"custom"===t.currentPost.og_image_type?s("core-settings-row",{attrs:{name:t.strings.customFieldsName,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-input",{attrs:{type:"text",size:"medium",placeholder:t.strings.placeholder},on:{input:t.setIsDirty},model:{value:t.currentPost.og_image_custom_fields,callback:function(e){t.$set(t.currentPost,"og_image_custom_fields",e)},expression:"currentPost.og_image_custom_fields"}})]},proxy:!0}],null,!1,1200630708)}):t._e(),"custom_image"===t.currentPost.og_image_type?s("core-settings-row",{staticClass:"facebook-image",attrs:{name:t.strings.facebookImage},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"facebook-image-upload"},[s("base-input",{attrs:{size:"medium",placeholder:t.strings.pasteYourImageUrl},on:{input:t.setIsDirty},model:{value:t.currentPost.og_image_custom_url,callback:function(e){t.$set(t.currentPost,"og_image_custom_url",e)},expression:"currentPost.og_image_custom_url"}}),s("base-button",{staticClass:"insert-image",attrs:{size:"medium",type:"black"},on:{click:function(e){return t.openUploadModal("facebookImage",["currentPost","og_image_custom_url"])}}},[s("svg-circle-plus"),t._v(" "+t._s(t.strings.uploadOrSelectImage)+" ")],1),s("base-button",{staticClass:"remove-image",attrs:{size:"medium",type:"gray"},on:{click:function(e){t.currentPost.og_image_custom_url=null}}},[t._v(" "+t._s(t.strings.remove)+" ")])],1),s("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.minimumSize)+" ")]),s("base-img",{attrs:{src:t.currentPost.og_image_custom_url}})]},proxy:!0}],null,!1,2350594857)}):t._e(),s("core-settings-row",{staticClass:"facebook-video",attrs:{name:t.strings.video,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-input",{attrs:{type:"text",size:"medium"},model:{value:t.currentPost.og_video,callback:function(e){t.$set(t.currentPost,"og_video",e)},expression:"currentPost.og_video"}})]},proxy:!0}])}),s("core-settings-row",{staticClass:"facebook-object-type",attrs:{name:t.strings.facebookObjectType,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-select",{attrs:{size:"medium","open-direction":"top",options:t.objectTypeOptions,"group-label":"groupLabel","group-values":"options",value:t.getObjectTypeOptions(t.currentPost.og_object_type)},on:{input:function(e){return t.setObjectType(e.value)}}})]},proxy:!0}])}),t.shouldShowArticleSection?s("core-settings-row",{attrs:{name:t.strings.articleSection,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-input",{attrs:{type:"text",size:"medium"},model:{value:t.currentPost.og_article_section,callback:function(e){t.$set(t.currentPost,"og_article_section",e)},expression:"currentPost.og_article_section"}})]},proxy:!0}],null,!1,1205905290)}):t._e(),t.shouldShowArticleSection?s("core-settings-row",{attrs:{name:t.strings.articleTags,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-select",{attrs:{multiple:"",taggable:"",options:t.getJsonValue(t.currentPost.og_article_tags)||[],value:t.getJsonValue(t.currentPost.og_article_tags)||[],"tag-placeholder":t.strings.tagPlaceholder},on:{input:function(e){return t.currentPost.og_article_tags=t.setJsonValue(e)}}})]},proxy:!0}],null,!1,2497302637)}):t._e()],1)},_t=[],mt={mixins:[_["d"],_["f"],_["h"],_["p"],_["s"],_["e"]],props:{isMobilePreview:{type:Boolean,default:function(){return!1}}},data:function(){return{titleCount:0,descriptionCount:0,strings:{tabName:this.$t.__("Facebook Preview",this.$td),imageSource:this.$t.__("Image Source",this.$td),customFieldsName:this.$t.__("Custom Field Name",this.$td),video:this.$t.__("Video URL",this.$td),width:this.$t.__("Width",this.$td),height:this.$t.__("Height",this.$td),facebookObjectType:this.$t.__("Object Type",this.$td),facebookImage:this.$t.__("Facebook Image",this.$td),facebookTitle:this.$t.__("Facebook Title",this.$td),facebookDescription:this.$t.__("Facebook Description",this.$td),uploadOrSelectImage:this.$t.__("Upload or Select Image",this.$td),pasteYourImageUrl:this.$t.__("Paste your image URL or select a new image",this.$td),minimumSize:this.$t.__("Minimum size: 200px x 200px, ideal ratio 1.91:1, 5MB max. (eg: 1640px x 856px or 3280px x 1712px for retina screens)",this.$td),remove:this.$t.__("Remove",this.$td),clickToAddSiteName:this.$t.__("Click on the tags below to insert variables into your site name.",this.$td),clickToAddHomePageDescription:this.$t.__("Click on the tags below to insert variables into your meta description.",this.$td),articleSection:this.$t.__("Article Section",this.$td),articleTags:this.$t.__("Article Tags",this.$td),tagPlaceholder:this.$t.__("Press enter to create an article tag",this.$td)}}},computed:Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(d["e"])("live-tags",["liveTags"])),Object(d["e"])(["currentPost","options","dynamicOptions"])),{},{objectTypeOptions:function(){return[{groupLabel:this.$t.__("Default",this.$td),options:[{label:this.$t.__("Default Object Type (Set in Social Networks)",this.$td),value:"default"}]}].concat(this.$constants.OG_TYPE_OPTIONS)},shouldShowArticleSection:function(){var t="term"===this.currentPost.context?"taxonomies":"postTypes";return"article"===this.currentPost.og_object_type||"default"===this.currentPost.og_object_type&&"article"===this.dynamicOptions.social.facebook.general[t][this.currentPost.postType||this.currentPost.termType].objectType}}),methods:{scrollToElement:function(){var t=document.getElementsByClassName("component-wrapper")[0];setTimeout((function(){t&&(t.firstChild.scrollTop=0)}),10)},saveImageType:function(t){this.$set(this.currentPost,"og_image_type",t),this.$store.commit("isDirty",!0)},getObjectTypeOptions:function(t){var e=null;return this.objectTypeOptions.forEach((function(s){var o=s.options.find((function(e){return e.value===t}));o&&(e=o)})),e},setObjectType:function(t){this.$set(this.currentPost,"og_object_type",t),this.$store.commit("isDirty",!0)}},mounted:function(){this.scrollToElement()}},bt=mt,ft=(s("98a3"),Object(f["a"])(bt,gt,_t,!1,null,null,null)),yt=ft.exports,$t=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tab-twitter"},[s("core-settings-row",{attrs:{name:t.strings.twitterPreview},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-twitter-preview",{class:{ismobilecard:t.currentPost.socialMobilePreview},attrs:{image:t.currentPost.twitter_use_og?t.currentPost.og_image_custom_url||t.currentPost.og_image:t.currentPost.twitter_image_custom_url||t.currentPost.twitter_image,card:t.currentPost.twitter_card},scopedSlots:t._u([{key:"site-title",fn:function(){return[s("span",[t._v(t._s(t.previewTitle))])]},proxy:!0},{key:"site-description",fn:function(){return[s("span",[t._v(t._s(t.previewDescription))])]},proxy:!0}])})]},proxy:!0}])}),s("core-settings-row",{staticClass:"use-facebook",attrs:{name:t.strings.useFB,leftSize:"5",rightSize:"7"},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-toggle",{on:{input:t.setIsDirty},model:{value:t.currentPost.twitter_use_og,callback:function(e){t.$set(t.currentPost,"twitter_use_og",e)},expression:"currentPost.twitter_use_og"}})]},proxy:!0}])}),t.currentPost.twitter_use_og?t._e():s("core-settings-row",{staticClass:"twitter-title-settings",attrs:{name:t.strings.twitterTitle,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-html-tags-editor",{staticClass:"twitter-meta-input",attrs:{"line-numbers":!1,single:"","tags-context":(t.currentPost.postType||t.currentPost.termType)+"Title","default-tags":t.$tags.getDefaultTags("term"===t.currentPost.context?"taxonomies":null,null,"title")},on:{counter:function(e){return t.updateCount(e,"titleCount")},input:t.setIsDirty},model:{value:t.currentPost.twitter_title,callback:function(e){t.$set(t.currentPost,"twitter_title",e)},expression:"currentPost.twitter_title"}}),s("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.titleCount,70))}})]},proxy:!0}],null,!1,4187010693)}),t.currentPost.twitter_use_og?t._e():s("core-settings-row",{staticClass:"twitter-description-settings",attrs:{name:t.strings.twitterDescription,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("core-html-tags-editor",{staticClass:"twitter-meta-input",attrs:{"line-numbers":!1,description:"","tags-context":(t.currentPost.postType||t.currentPost.termType)+"Description","default-tags":t.$tags.getDefaultTags("term"===t.currentPost.context?"taxonomies":null,null,"description")},on:{counter:function(e){return t.updateCount(e,"descriptionCount")},input:t.setIsDirty},scopedSlots:t._u([{key:"tags-description",fn:function(){return[t._v(" "+t._s(t.strings.clickToAddHomePageDescription)+" ")]},proxy:!0}],null,!1,3376949532),model:{value:t.currentPost.twitter_description,callback:function(e){t.$set(t.currentPost,"twitter_description",e)},expression:"currentPost.twitter_description"}}),s("div",{staticClass:"max-recommended-count",domProps:{innerHTML:t._s(t.maxRecommendedCount(t.descriptionCount,200))}})]},proxy:!0}],null,!1,577802586)}),t.currentPost.twitter_use_og?t._e():s("core-settings-row",{staticClass:"twitter-image-source",attrs:{name:t.strings.imageSource,leftSize:"5",rightSize:"7",align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-select",{attrs:{size:"medium",options:t.imageSourceOptionsFiltered,value:t.getImageSourceOptionFiltered(t.currentPost.twitter_image_type)},on:{input:function(e){return t.saveTwitterImageType(e.value)}}})]},proxy:!0}],null,!1,45254494)}),t.currentPost.twitter_use_og||"custom"!==t.currentPost.twitter_image_type?t._e():s("core-settings-row",{staticClass:"twitter-custom-field",attrs:{name:t.strings.customFieldsName,leftSize:"5",rightSize:"7",align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-input",{attrs:{type:"text",size:"medium",placeholder:t.strings.placeholder},on:{input:t.setIsDirty},model:{value:t.currentPost.twitter_image_custom_fields,callback:function(e){t.$set(t.currentPost,"twitter_image_custom_fields",e)},expression:"currentPost.twitter_image_custom_fields"}})]},proxy:!0}],null,!1,2513842721)}),t.currentPost.twitter_use_og||"custom_image"!==t.currentPost.twitter_image_type?t._e():s("core-settings-row",{staticClass:"twitter-image",attrs:{name:t.strings.twitterImage},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"twitter-image-upload"},[s("base-input",{attrs:{size:"medium",placeholder:t.strings.pasteYourImageUrl},on:{input:t.setIsDirty},model:{value:t.currentPost.twitter_image_custom_url,callback:function(e){t.$set(t.currentPost,"twitter_image_custom_url",e)},expression:"currentPost.twitter_image_custom_url"}}),s("base-button",{staticClass:"insert-image",attrs:{size:"medium",type:"black"},on:{click:function(e){return t.openUploadModal("twitterImage",["currentPost","twitter_image_custom_url"])}}},[s("svg-circle-plus"),t._v(" "+t._s(t.strings.uploadOrSelectImage)+" ")],1),s("base-button",{staticClass:"remove-image",attrs:{size:"medium",type:"gray"},on:{click:function(e){t.currentPost.twitter_image_custom_url=null}}},[t._v(" "+t._s(t.strings.remove)+" ")])],1),s("div",{staticClass:"aioseo-description"},["summary"===t.currentPost.twitter_card?s("span",[t._v(t._s(t.strings.minimumSizeSummary))]):t._e(),"summary_large_image"===t.currentPost.twitter_card?s("span",[t._v(t._s(t.strings.minimumSizeSummaryWithLarge))]):t._e()]),s("base-img",{attrs:{src:t.currentPost.twitter_image_custom_url}})]},proxy:!0}],null,!1,2880913534)}),s("core-settings-row",{staticClass:"twitter-card-type",attrs:{name:t.strings.twitterCardType,leftSize:"5",rightSize:"7",align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("base-select",{attrs:{size:"medium","open-direction":"top",options:t.twitterCards,value:t.getCardOptions(t.currentPost.twitter_card)},on:{input:function(e){return t.cardSelect(e.value)}}})]},proxy:!0}])})],1)},vt=[],wt=(s("a4d3"),s("e01a"),{mixins:[_["d"],_["h"],_["p"],_["s"],_["e"]],props:{isMobilePreview:{type:Boolean,default:function(){return!1}}},data:function(){return{titleCount:0,descriptionCount:0,strings:{twitterPreview:this.$t.__("Twitter Preview",this.$td),useFB:this.$t.__("Use Data from Facebook Tab",this.$td),imageSource:this.$t.__("Image Source",this.$td),customFieldsName:this.$t.__("Custom Field Name",this.$td),twitterImage:this.$t.__("Twitter Image",this.$td),twitterTitle:this.$t.__("Twitter Title",this.$td),twitterDescription:this.$t.__("Twitter Description",this.$td),twitterCardType:this.$t.__("Twitter Card Type",this.$td),pasteYourImageUrl:this.$t.__("Paste your image URL or select a new image",this.$td),uploadOrSelectImage:this.$t.__("Upload or Select Image",this.$td),remove:this.$t.__("Remove",this.$td),minimumSizeSummary:this.$t.__("Minimum size: 144px x 144px, ideal ratio 1:1, 5MB max. JPG, PNG, WEBP and GIF formats only.",this.$td),minimumSizeSummaryWithLarge:this.$t.__("Minimum size: 300px x 157px, ideal ratio 2:1, 5MB max. JPG, PNG, WEBP and GIF formats only.",this.$td)}}},computed:Object(l["a"])(Object(l["a"])({},Object(d["e"])(["currentPost","options"])),{},{twitterCards:function(){return[{label:this.$t.__("Default (Set under Social Networks)",this.$td),value:"default"},{label:this.$t.__("Summary",this.$td),value:"summary"},{label:this.$t.__("Summary with Large Image",this.$td),value:"summary_large_image"}]},previewTitle:function(){var t=this.currentPost.twitter_use_og?this.currentPost.og_title:this.currentPost.twitter_title;return this.truncate(this.parseTags(t||this.currentPost.title||this.currentPost.tags.title||"#post_title #separator_sa #site_title"),100)},previewDescription:function(){var t=this.currentPost.twitter_use_og?this.currentPost.og_description:this.currentPost.twitter_description;return this.truncate(this.parseTags(t||this.currentPost.description||this.currentPost.tags.description||"#post_content"))}}),methods:{getCardOptions:function(t){return this.twitterCards.find((function(e){return e.value===t}))},cardSelect:function(t){this.$set(this.currentPost,"twitter_card",t),this.$store.commit("isDirty",!0)},scrollToElement:function(){var t=document.getElementsByClassName("component-wrapper")[0];setTimeout((function(){t&&(t.firstChild.scrollTop=0)}),10)},saveTwitterImageType:function(t){this.$set(this.currentPost,"twitter_image_type",t),this.$store.commit("isDirty",!0)}},mounted:function(){this.scrollToElement()}}),kt=wt,Pt=(s("81a1"),Object(f["a"])(kt,$t,vt,!1,null,null,null)),Ct=Pt.exports,xt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return"sidebar"===t.$root._data.screenContext?s("core-settings-row",{staticClass:"snippet-description-row open-social-copy",attrs:{name:t.strings.metaDescription},scopedSlots:t._u([{key:"content",fn:function(){return[s("p",[t._v(t._s(t.strings.sidebarCopy))]),s("base-button",{staticClass:"open-social-modal gray small",on:{click:t.openModalEv}},[s("svg-pencil"),t._v(" "+t._s(t.strings.editSnippet)+" ")],1)]},proxy:!0}],null,!1,3842645279)}):t._e()},Ot=[],St={data:function(){return{strings:{sidebarCopy:this.$t.__("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media. Click on the button below to view and edit the preview.",this.$td),editSnippet:this.$t.__("Preview & Edit",this.$td)}}},methods:Object(l["a"])(Object(l["a"])({},Object(d["b"])(["openModal"])),{},{openModalEv:function(){this.$store.commit("changeTabSettings",{setting:"tab_modal",value:"social"}),this.openModal(!0)}})},Tt=St,Lt=(s("e6ba"),Object(f["a"])(Tt,xt,Ot,!1,null,null,null)),jt=Lt.exports,It={components:{Facebook:yt,Twitter:Ct,SocialSideBar:jt},props:{parentComponentContext:String},data:function(){return{strings:{pageName:this.$t.__("Social",this.$td)},tabs:[{slug:"facebook",name:this.$t.__("Facebook",this.$td)},{slug:"twitter",name:this.$t.__("Twitter",this.$td)}]}},computed:Object(l["a"])(Object(l["a"])({},Object(d["e"])(["currentPost","options"])),{},{initTab:function(){return Object(p["a"])()["social-tab"]?Object(p["a"])()["social-tab"]:"modal"===this.parentComponentContext?this.currentPost.tabs.tab_modal_social:this.currentPost.tabs.tab_social}}),methods:Object(l["a"])(Object(l["a"])({},Object(d["b"])(["changeSocialPreview"])),{},{isMobilePreviewEv:function(t){this.changeSocialPreview(t)},processChangeTab:function(t){"modal"===this.parentComponentContext?this.$set(this.currentPost.tabs,"tab_modal_social",t):this.$set(this.currentPost.tabs,"tab_social",t)}})},At=It,Et=(s("8dbd"),Object(f["a"])(At,pt,ht,!1,null,null,null)),Dt=Et.exports,Mt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-modal-content"},[s("core-settings-row",{staticClass:"mobile-radio-buttons",scopedSlots:t._u([{key:"content",fn:function(){return[s("core-main-tabs",{attrs:{tabs:t.getTabs,showSaveButton:!1,active:t.currentPost.tabs.tab_modal,internal:""},on:{changed:function(e){return t.processChangeTab(e)}}})]},proxy:!0}])}),s("div",{staticClass:"component-wrapper"},[s("transition",{attrs:{name:"route-fade",mode:"out-in"}},[s(this.activeTab,{tag:"component",attrs:{parentComponentContext:"modal"}})],1)],1)],1)},Bt=[],Ht={components:{General:Q,Social:Dt},data:function(){return{activeTab:"general",strings:{pageName:this.$t.__("Modal Content",this.$td)},tabs:[{slug:"general",icon:"svg-settings",name:"General"},{slug:"social",icon:"svg-share",name:"Social"}]}},computed:Object(l["a"])(Object(l["a"])({},Object(d["e"])(["currentPost"])),{},{getTabs:function(){var t=this;return this.tabs.filter((function(e){return t.$allowed("aioseo_page_".concat(e.slug,"_settings"))}))}}),methods:Object(l["a"])(Object(l["a"])({},Object(d["b"])(["changeTabSettings"])),{},{processChangeTab:function(t){this.activeTab=t,this.changeTabSettings({setting:"tab_modal",value:t})}})},Kt=Ht,Rt=(s("483d"),Object(f["a"])(Kt,Mt,Bt,!1,null,null,null)),Nt=Rt.exports,Ft=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-link-assistant"},[t.isUnlicensed||!t.$addons.isActive("aioseo-link-assistant")||t.$addons.requiresUpgrade("aioseo-link-assistant")?t._e():s("Links",{attrs:{parentComponentContext:t.parentComponentContext}}),t.isUnlicensed||t.$addons.isActive("aioseo-link-assistant")||!t.$addons.canActivate("aioseo-link-assistant")||t.$addons.requiresUpgrade("aioseo-link-assistant")?t._e():s("LinksActivate",{attrs:{parentComponentContext:t.parentComponentContext}}),t.isUnlicensed||t.$addons.requiresUpgrade("aioseo-link-assistant")?s("LinksLite",{attrs:{parentComponentContext:t.parentComponentContext}}):t._e()],1)},Ut=[],Wt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-link-assistant"},["metabox"===t.$root._data.screenContext?s("div",[s("core-blur",[s("core-main-tabs",{staticClass:"link-tabs",attrs:{internal:"",tabs:t.tabs,active:t.initialTab,showSaveButton:!1}}),"inbound-internal"===t.activeTab?s("link-assistant-inbound-internal",{attrs:{post:t.mockedPostData,metabox:""}}):t._e()],1),s("cta",{attrs:{"cta-link":t.$links.getPricingUrl("link-assistant","link-assistant-upsell","metabox"),"button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getUpsellUrl("link-assistant","metabox","home"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks]},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t.$isPro&&t.$addons.requiresUpgrade("aioseo-link-assistant")&&t.$addons.currentPlans("aioseo-link-assistant")?s("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.strings.thisFeatureRequires)+" "),s("strong",[t._v(t._s(t.$addons.currentPlans("aioseo-link-assistant")))])]):t._e(),t._v(" "+t._s(t.strings.linkAssistantDescription)+" ")]},proxy:!0}],null,!1,719893283)})],1):t._e(),t.currentPost.linkAssistant.modalOpen&&"sidebar"===t.$root._data.screenContext?s("core-modal",{staticClass:"aioseo-link-assistant-modal",attrs:{isolate:""},on:{close:t.toggleLinkAssistantModal}},[s("div",{attrs:{slot:"headerTitle"},slot:"headerTitle"},[t._v(" "+t._s(t.modalHeader)+" ")]),s("div",{attrs:{slot:"body"},slot:"body"},[s("core-blur",[s("core-main-tabs",{staticClass:"link-tabs",attrs:{internal:"",tabs:t.tabs,active:t.initialTab,showSaveButton:!1}}),"inbound-internal"===t.activeTab?s("link-assistant-inbound-internal",{attrs:{post:t.mockedPostData,metabox:""}}):t._e()],1),s("cta",{attrs:{"cta-link":t.$links.getPricingUrl("link-assistant","link-assistant-upsell","metabox"),"button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getUpsellUrl("link-assistant","metabox","home"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks]},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t.$isPro&&t.$addons.requiresUpgrade("aioseo-link-assistant")&&t.$addons.currentPlans("aioseo-link-assistant")?s("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.strings.thisFeatureRequires)+" "),s("strong",[t._v(t._s(t.$addons.currentPlans("aioseo-link-assistant")))])]):t._e(),t._v(" "+t._s(t.strings.linkAssistantDescription)+" ")]},proxy:!0}],null,!1,719893283)})],1)]):t._e(),"modal"!==this.parentComponentContext?s("links-side-bar"):t._e()],1)},zt=[],Vt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-link-assistant-sidebar"},["sidebar"===t.$root._data.screenContext?s("core-settings-row",{staticClass:"snippet-description-row open-link-assistant-copy",scopedSlots:t._u([{key:"content",fn:function(){return[s("p",[t._v(t._s(t.strings.description))]),s("base-button",{staticClass:"open-link-assistant-modal gray small",on:{click:t.toggleLinkAssistantModal}},[s("svg-right-arrow-short"),t._v(" "+t._s(t.strings.button)+" ")],1)]},proxy:!0}],null,!1,1785311628)}):t._e()],1)},qt=[],Gt={data:function(){return{strings:{description:this.$t.__("Here you can view an overview of your existing links as well as find suggestions for new internal links. Click on the button below to view the Link Assistant panel.",this.$td),button:this.$t.__("Open Link Assistant",this.$td)}}},methods:Object(l["a"])({},Object(d["d"])(["toggleLinkAssistantModal"]))},Yt=Gt,Zt=(s("f0a8"),Object(f["a"])(Yt,Vt,qt,!1,null,null,null)),Jt=Zt.exports,Xt={components:{LinksSideBar:Jt},props:{parentComponentContext:String},data:function(){return{activeTab:"inbound-internal",activeSuggestionTab:"suggestions-inbound",mockedPostData:{links:{inboundInternal:{rows:[{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#"}},{phrase:"AIOSEO also allows you to create video sitemaps and comes with tons of different SEO tools.",anchor:"video sitemaps",url:"#",context:{postTitle:"How to Create WordPress Image Sitemap",permalink:"#",editLink:"#"}},{phrase:"You may also want to check out how to name your image files for SEO in WordPress and write alt text for images.",anchor:"how to name your image files for SEO in WordPress",url:"#",context:{postTitle:"What’s the Best Image Format for Your Website?",permalink:"#",editLink:"#"}},{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#"}},{phrase:"To learn more, please check out our post on image SEO: how to best optimize your images in WordPress. ",anchor:"image SEO",url:"#",context:{postTitle:"How to Write Alt Text for Images for SEO",permalink:"#",editLink:"#"}},{phrase:"So let’s now move on to showing you exactly how easy it is to import and export redirects using the best redirect plugin for WordPress.",anchor:"best redirect plugin for WordPress",url:"#",context:{postTitle:"How to Easily Import and Export Redirects in WordPress",permalink:"#",editLink:"#"}}],totals:{total:6}},outboundInternal:{totals:{total:12}},affiliate:{totals:{total:8}},external:{totals:{total:24}},suggestionsInbound:{totals:{total:9}},suggestionsOutbound:{totals:{total:9}}}},strings:{ctaButtonText:this.$t.sprintf(this.$t.__("Upgrade to %1$s and Unlock Link Assistant",this.$td),"Pro"),ctaHeader:this.$t.sprintf(this.$t.__("Link Assistant is only available for licensed %1$s %2$s users.",this.$td),"AIOSEO","Pro"),linkAssistantDescription:this.$t.__("Get relevant suggestions for adding internal links to all your content as well as finding any orphaned posts that have no internal links.",this.$td),thisFeatureRequires:this.$t.__("This feature requires one of the following plans:",this.$td),linkOpportunities:this.$t.__("Actionable Link Suggestions",this.$td),orphanedPosts:this.$t.__("See Orphaned Posts",this.$td),affiliateLinks:this.$t.__("See Affiliate Links",this.$td),domainReports:this.$t.__("Top Domain Reports",this.$td)}}},computed:Object(l["a"])(Object(l["a"])({},Object(d["e"])(["currentPost"])),{},{initialTab:function(){return"inbound-internal"},tabs:function(){return[{slug:"inbound-internal",icon:"svg-link-internal-inbound",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.inboundInternal.totals.total,this.$t.__("Inbound Internal",this.$tdPro))},{slug:"outbound-internal",icon:"svg-link-internal-outbound",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.outboundInternal.totals.total,this.$t.__("Outbound Internal",this.$tdPro))},{slug:"affiliate",icon:"svg-link-affiliate",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.affiliate.totals.total,this.$t.__("Affiliate",this.$tdPro))},{slug:"external",icon:"svg-link-external",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.external.totals.total,this.$t.__("External",this.$tdPro))},{slug:"link-suggestions",icon:"svg-link-suggestion",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.suggestionsOutbound.totals.total+this.mockedPostData.links.suggestionsInbound.totals.total,this.$t.__("Link Suggestions",this.$tdPro))}]},modalHeader:function(){return this.$t.sprintf(this.$t.__('Links & Suggestions for "%1$s"',this.$t.tdPro),window.wp.data.select("core/editor").getEditedPostAttribute("title"))}}),methods:Object(l["a"])({},Object(d["d"])(["toggleLinkAssistantModal"]))},Qt=Xt,te=Object(f["a"])(Qt,Wt,zt,!1,null,null,null),ee=te.exports,se=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-link-assistant"},["metabox"===t.$root._data.screenContext?s("div",[s("core-blur",[s("core-main-tabs",{staticClass:"link-tabs",attrs:{internal:"",tabs:t.tabs,active:t.initialTab,showSaveButton:!1}}),"inbound-internal"===t.activeTab?s("link-assistant-inbound-internal",{attrs:{post:t.mockedPostData,metabox:""}}):t._e()],1),s("cta",{attrs:{"cta-link":t.$aioseo.urls.aio.featureManager+"&aioseo-activate=aioseo-link-assistant","cta-button-action":"","cta-button-loading":t.activationLoading,"same-tab":"","button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getDocUrl("link-assistant"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks]},on:{"cta-button-click":t.activateAddon},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t.failed?s("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.strings.activateError)+" ")]):t._e(),t._v(" "+t._s(t.strings.ctaDescription)+" ")]},proxy:!0},{key:"learn-more-text",fn:function(){return[t._v(" "+t._s(t.strings.learnMoreText)+" ")]},proxy:!0}],null,!1,2680951548)})],1):t._e(),t.currentPost.linkAssistant.modalOpen&&"sidebar"===t.$root._data.screenContext?s("core-modal",{staticClass:"aioseo-link-assistant-modal",attrs:{isolate:""},on:{close:t.toggleLinkAssistantModal}},[s("div",{attrs:{slot:"headerTitle"},slot:"headerTitle"},[t._v(" "+t._s(t.modalHeader)+" ")]),s("div",{attrs:{slot:"body"},slot:"body"},[s("core-blur",[s("core-main-tabs",{staticClass:"link-tabs",attrs:{internal:"",tabs:t.tabs,active:t.initialTab,showSaveButton:!1}}),"inbound-internal"===t.activeTab?s("link-assistant-inbound-internal",{attrs:{post:t.mockedPostData,metabox:""}}):t._e()],1),s("cta",{attrs:{"cta-link":t.$aioseo.urls.aio.featureManager+"&aioseo-activate=aioseo-link-assistant","cta-button-action":"","cta-button-loading":t.activationLoading,"same-tab":"","button-text":t.strings.ctaButtonText,"learn-more-link":t.$links.getDocUrl("link-assistant"),"feature-list":[t.strings.linkOpportunities,t.strings.domainReports,t.strings.orphanedPosts,t.strings.affiliateLinks]},on:{"cta-button-click":t.activateAddon},scopedSlots:t._u([{key:"header-text",fn:function(){return[t._v(" "+t._s(t.strings.ctaHeader)+" ")]},proxy:!0},{key:"description",fn:function(){return[t.failed?s("core-alert",{attrs:{type:"red"}},[t._v(" "+t._s(t.strings.activateError)+" ")]):t._e(),t._v(" "+t._s(t.strings.ctaDescription)+" ")]},proxy:!0},{key:"learn-more-text",fn:function(){return[t._v(" "+t._s(t.strings.learnMoreText)+" ")]},proxy:!0}],null,!1,2680951548)})],1)]):t._e(),"modal"!==this.parentComponentContext?s("links-side-bar"):t._e()],1)},oe=[],ae={components:{LinksSideBar:Jt},props:{parentComponentContext:String},data:function(){return{activeTab:"inbound-internal",activeSuggestionTab:"suggestions-inbound",mockedPostData:{links:{inboundInternal:{rows:[{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#"}},{phrase:"AIOSEO also allows you to create video sitemaps and comes with tons of different SEO tools.",anchor:"video sitemaps",url:"#",context:{postTitle:"How to Create WordPress Image Sitemap",permalink:"#",editLink:"#"}},{phrase:"You may also want to check out how to name your image files for SEO in WordPress and write alt text for images.",anchor:"how to name your image files for SEO in WordPress",url:"#",context:{postTitle:"What’s the Best Image Format for Your Website?",permalink:"#",editLink:"#"}},{phrase:"Are you looking for an easy way to do an SEO analysis for your website?",anchor:"SEO analysis",url:"#",context:{postTitle:"How to Perform an SEO Analysis on Your WordPress Website",permalink:"#",editLink:"#"}},{phrase:"To learn more, please check out our post on image SEO: how to best optimize your images in WordPress. ",anchor:"image SEO",url:"#",context:{postTitle:"How to Write Alt Text for Images for SEO",permalink:"#",editLink:"#"}},{phrase:"So let’s now move on to showing you exactly how easy it is to import and export redirects using the best redirect plugin for WordPress.",anchor:"best redirect plugin for WordPress",url:"#",context:{postTitle:"How to Easily Import and Export Redirects in WordPress",permalink:"#",editLink:"#"}}],totals:{total:6}},outboundInternal:{totals:{total:12}},affiliate:{totals:{total:8}},external:{totals:{total:24}},suggestionsInbound:{totals:{total:9}},suggestionsOutbound:{totals:{total:9}}}},strings:{ctaButtonText:this.$t.__("Activate Link Assistant",this.$tdPro),ctaHeader:this.$t.__("Enable Link Assistant on your Site",this.$tdPro),ctaDescription:this.$t.__("Get relevant suggestions for adding internal links to all your content as well as finding any orphaned posts that have no internal links.",this.$td),linkOpportunities:this.$t.__("Actionable Link Suggestions",this.$td),orphanedPosts:this.$t.__("See Orphaned Posts",this.$td),affiliateLinks:this.$t.__("See Affiliate Links",this.$td),domainReports:this.$t.__("Top Domain Reports",this.$td),activateError:this.$t.__("An error occurred while activating the addon. Please upload it manually or contact support for more information.",this.$td),permissionWarning:this.$t.__("You currently don't have permission to activate this addon. Please ask a site administrator to activate first.",this.$td)},failed:!1,activationLoading:!1}},computed:Object(l["a"])(Object(l["a"])({},Object(d["e"])(["currentPost"])),{},{initialTab:function(){return"inbound-internal"},tabs:function(){return[{slug:"inbound-internal",icon:"svg-link-internal-inbound",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.inboundInternal.totals.total,this.$t.__("Inbound Internal",this.$tdPro))},{slug:"outbound-internal",icon:"svg-link-internal-outbound",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.outboundInternal.totals.total,this.$t.__("Outbound Internal",this.$tdPro))},{slug:"affiliate",icon:"svg-link-affiliate",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.affiliate.totals.total,this.$t.__("Affiliate",this.$tdPro))},{slug:"external",icon:"svg-link-external",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.external.totals.total,this.$t.__("External",this.$tdPro))},{slug:"link-suggestions",icon:"svg-link-suggestion",name:this.$t.sprintf("%1$s %2$s",this.mockedPostData.links.suggestionsOutbound.totals.total+this.mockedPostData.links.suggestionsInbound.totals.total,this.$t.__("Link Suggestions",this.$tdPro))}]},modalHeader:function(){return this.$t.sprintf(this.$t.__('Links & Suggestions for "%1$s"',this.$t.tdPro),window.wp.data.select("core/editor").getEditedPostAttribute("title"))}}),methods:Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(d["d"])(["toggleLinkAssistantModal","updateAddon"])),Object(d["b"])("linkAssistant",["getPostData"])),Object(d["b"])(["installPlugins"])),{},{activateAddon:function(){var t=this;this.failed=!1,this.activationLoading=!0;var e=this.$addons.getAddon("aioseo-link-assistant");this.installPlugins([{plugin:e.basename}]).then((function(s){if(s.body.failed.length)return t.activationLoading=!1,void(t.failed=!0);var o=[t.getPostData()];Promise.all(o).then((function(){t.activationLoading=!1,e.isActive=!0,t.updateAddon(e)}))})).catch((function(){t.activationLoading=!1}))}})},ne=ae,ie=Object(f["a"])(ne,se,oe,!1,null,null,null),re=ie.exports,le={components:{Links:ee,LinksActivate:re,LinksLite:ee},props:{parentComponentContext:String},computed:Object(l["a"])({},Object(d["c"])(["isUnlicensed"]))},ce=le,ue=(s("6622"),Object(f["a"])(ce,Ft,Ut,!1,null,null,null)),de=ue.exports,pe={components:{Advanced:$,General:Q,Schema:dt,Social:Dt,ModalContent:Nt,Links:de},data:function(){return{activeTab:"general",modal:!1,strings:{pageName:"General",modalTitle:this.$t.__("Preview Snippet Editor",this.$td)}}},watch:{currentPost:{deep:!0,handler:function(){this.savePostState()}}},computed:Object(l["a"])(Object(l["a"])({},Object(d["e"])(["currentPost"])),{},{tabs:function(){var t=[{slug:"general",icon:"svg-settings",name:"General"},{slug:"social",icon:"svg-share",name:"Social"},{slug:"schema",icon:"svg-receipt",name:"Schema"},{slug:"advanced",icon:"svg-build",name:"Advanced"}];return this.currentPost.linkAssistant&&this.currentPost.linkAssistant.isExcludedPost||t.splice(3,0,{slug:"links",icon:"svg-link-suggestion",name:"Link Assistant"}),t},initTab:function(){return"sidebar"===this.$root._data.screenContext?this.currentPost.tabs.tab_sidebar&&this.$allowed("aioseo_page_".concat(this.currentPost.tabs.tab_sidebar,"_settings"))?this.currentPost.tabs.tab_sidebar:this.$allowed("aioseo_page_general_settings")?"general":this.$allowed("aioseo_page_social_settings")?"social":this.$allowed("aioseo_page_schema_settings")?"schema":"advanced":this.currentPost.tabs.tab&&this.$allowed("aioseo_page_".concat(this.currentPost.tabs.tab,"_settings"))?this.currentPost.tabs.tab:this.$allowed("aioseo_page_general_settings")?"general":this.$allowed("aioseo_page_social_settings")?"social":this.$allowed("aioseo_page_schema_settings")?"schema":"advanced"},getTabs:function(){var t=this;return"term"===this.currentPost.context||this.currentPost.isWooCommercePageWithoutSchema?this.tabs.filter((function(e){var s="links"!==e.slug?e.slug:"link_assistant";return"schema"!==s&&t.$allowed("aioseo_page_".concat(s,"_settings"))})):this.tabs.filter((function(e){var s="links"!==e.slug?e.slug:"link_assistant";return!!t.$allowed("aioseo_page_".concat(s,"_settings"))||"general"===s&&(t.$allowed("aioseo_page_analysis")||t.$allowed("aioseo_page_".concat(s,"_settings")))}))}}),methods:Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(d["d"])(["toggleLinkAssistantModal"])),Object(d["b"])(["openModal","updateState","savePostState"])),{},{processChangeTab:function(t){switch(this.activeTab=t,this.$root._data.screenContext){case"sidebar":this.$set(this.currentPost.tabs,"tab_sidebar",t);break;default:this.$set(this.currentPost.tabs,"tab",t);break}this.currentPost.linkAssistant&&!this.currentPost.linkAssistant.modalOpen&&"links"===t&&"sidebar"===this.$root._data.screenContext&&this.toggleLinkAssistantModal()},closeModal:function(){this.openModal(!1)}}),created:function(){var t=this;switch(this.modal=Object(p["a"])()["aioseo-modaltab"]||this.modal,this.modal&&(this.$set(this.currentPost.tabs,"tab_modal",this.modal),this.openModal(!0),setTimeout((function(){Object(p["b"])("aioseo-modaltab")}),500)),this.$bus.$on("open-post-settings",(function(e){t.processChangeTab(e.tab)})),this.$root._data.screenContext){case"sidebar":this.activeTab=Object(p["a"])()["aioseo-sidebartab"]||this.initTab,this.$set(this.currentPost.tabs,"tab_sidebar",this.activeTab),setTimeout((function(){Object(p["b"])("aioseo-sidebartab")}),500);break;default:this.activeTab=Object(p["a"])()["aioseo-tab"]||this.initTab,this.$set(this.currentPost.tabs,"tab",this.activeTab),setTimeout((function(){Object(p["b"])("aioseo-tab")}),500);break}}},he=pe,ge=(s("549f"),Object(f["a"])(he,c,u,!1,null,null,null)),_e=ge.exports,me=s("bfad"),be=s("4245"),fe=s.n(be),ye={components:{"main-view":_e},computed:Object(l["a"])(Object(l["a"])({},Object(d["c"])(["isUnlicensed"])),Object(d["e"])(["currentPost","pong"])),created:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var s,o,a,n,r,c,u,d,p,h,g,_;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(me["a"])(t.$http);case 2:s=e.sent,o=s.internalOptions,a=s.options,n=s.dynamicOptions,r=s.networkOptions,c=s.settings,u=s.notifications,d=s.addons,p=s.license,h=s.currentPost,g=s.tags,_=s.linkAssistant,t.$set(t.$store.state,"internalOptions",fe()(Object(l["a"])({},t.$store.state.internalOptions),Object(l["a"])({},o))),t.$set(t.$store.state,"options",fe()(Object(l["a"])({},t.$store.state.options),Object(l["a"])({},a))),t.$set(t.$store.state,"dynamicOptions",fe()(Object(l["a"])({},t.$store.state.dynamicOptions),Object(l["a"])({},n))),t.$set(t.$store.state,"networkOptions",fe()(Object(l["a"])({},t.$store.state.networkOptions),Object(l["a"])({},r))),t.$set(t.$store.state,"settings",fe()(Object(l["a"])({},t.$store.state.settings),Object(l["a"])({},c))),t.$set(t.$store.state,"notifications",fe()(Object(l["a"])({},t.$store.state.notifications),Object(l["a"])({},u))),t.$set(t.$store.state,"addons",fe()(Object(i["a"])(t.$store.state.addons),Object(i["a"])(d))),t.$set(t.$store.state,"license",fe()(Object(l["a"])({},t.$store.state.license),Object(l["a"])({},p))),t.$set(t.$store.state,"currentPost",fe()(Object(l["a"])({},t.$store.state.currentPost),Object(l["a"])({},h))),t.$set(t.$store.state,"tags",fe()(Object(l["a"])({},t.$store.state.tags),Object(l["a"])({},g))),t.$set(t.$store.state,"linkAssistant",fe()(Object(l["a"])({},t.$store.state.linkAssistant),Object(l["a"])({},_)));case 25:case"end":return e.stop()}}),e)})))()}},$e=ye,ve=(s("276a"),Object(f["a"])($e,a,n,!1,null,null,null)),we=ve.exports,ke=s("561c");(function(t){var e="all-in-one-seo-pack";if(Object(P["d"])()&&Object(P["p"])()){var s=t.plugins.registerPlugin,o=t.editPost.PluginSidebarMoreMenuItem,a=t.editPost.PluginSidebar,n=t.element.Fragment,i=t.element.createElement,r=window.aioseo.user.capabilities.aioseo_page_analysis,l=window.aioseo.currentPost.seo_score,c=Object(ke["__"])("N/A",e),u=function(t){return r&&Object(P["q"])()?80<t?"score-green":50<t?"score-orange":1<t?"score-red":"score-disabled":"score-disabled"},d=i("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47716 0 0 4.47715 0 10C0 15.5228 4.47716 20 10 20ZM8.40767 3.65998C8.27222 3.45353 8.02129 3.357 7.79121 3.43828C7.52913 3.53087 7.27279 3.63976 7.02373 3.76429C6.80511 3.87361 6.69542 4.12332 6.74355 4.36686L6.91501 5.23457C6.95914 5.45792 6.86801 5.68459 6.69498 5.82859C6.42152 6.05617 6.16906 6.31347 5.94287 6.59826C5.80229 6.77526 5.58046 6.86908 5.36142 6.82484L4.51082 6.653C4.27186 6.60473 4.02744 6.71767 3.92115 6.94133C3.86111 7.06769 3.80444 7.19669 3.75129 7.32826C3.69815 7.45983 3.64929 7.59212 3.60464 7.72495C3.52562 7.96007 3.62107 8.21596 3.82396 8.35351L4.54621 8.84316C4.73219 8.96925 4.82481 9.19531 4.80234 9.42199C4.7662 9.78671 4.76767 10.1508 4.80457 10.5089C4.82791 10.7355 4.73605 10.9619 4.55052 11.0886L3.82966 11.5811C3.62734 11.7193 3.53274 11.9753 3.61239 12.2101C3.70314 12.4775 3.80985 12.7391 3.93188 12.9932C4.03901 13.2163 4.28373 13.3282 4.5224 13.2791L5.37279 13.1042C5.59165 13.0591 5.8138 13.1521 5.95491 13.3287C6.17794 13.6077 6.43009 13.8653 6.70918 14.0961C6.88264 14.2396 6.97459 14.4659 6.93122 14.6894L6.76282 15.5574C6.71551 15.8013 6.8262 16.0507 7.04538 16.1591C7.16921 16.2204 7.29563 16.2782 7.42457 16.3324C7.55352 16.3867 7.68316 16.4365 7.81334 16.4821C8.19418 16.6154 8.72721 16.1383 9.1213 15.7855C9.31563 15.6116 9.4355 15.3654 9.43677 15.1018C9.43677 15.1004 9.43678 15.099 9.43678 15.0976L9.43677 13.6462C9.43677 13.6308 9.43736 13.6155 9.43852 13.6004C8.27454 13.3165 7.40918 12.248 7.40918 10.9732V9.43198C7.40918 9.31483 7.50224 9.21986 7.61706 9.21986H8.338V7.70343C8.338 7.49405 8.50433 7.32432 8.70952 7.32432C8.9147 7.32432 9.08105 7.49405 9.08105 7.70343V9.21986H11.0316V7.70343C11.0316 7.49405 11.1979 7.32432 11.4031 7.32432C11.6083 7.32432 11.7746 7.49405 11.7746 7.70343V9.21986H12.4956C12.6104 9.21986 12.7034 9.31483 12.7034 9.43198V10.9732C12.7034 12.2883 11.7825 13.3838 10.5628 13.625C10.5631 13.632 10.5632 13.6391 10.5632 13.6462L10.5632 15.0914C10.5632 15.36 10.6867 15.6107 10.8868 15.7853C11.2879 16.1351 11.8302 16.6079 12.2088 16.4742C12.4708 16.3816 12.7272 16.2727 12.9762 16.1482C13.1949 16.0389 13.3046 15.7891 13.2564 15.5456L13.085 14.6779C13.0408 14.4545 13.132 14.2278 13.305 14.0838C13.5785 13.8563 13.8309 13.599 14.0571 13.3142C14.1977 13.1372 14.4195 13.0434 14.6385 13.0876L15.4892 13.2595C15.7281 13.3077 15.9725 13.1948 16.0788 12.9711C16.1389 12.8448 16.1955 12.7158 16.2487 12.5842C16.3018 12.4526 16.3507 12.3204 16.3953 12.1875C16.4744 11.9524 16.3789 11.6965 16.176 11.559L15.4537 11.0693C15.2678 10.9432 15.1752 10.7171 15.1976 10.4905C15.2338 10.1258 15.2323 9.76167 15.1954 9.40357C15.1721 9.17699 15.2639 8.95062 15.4495 8.82387L16.1703 8.33141C16.3726 8.1932 16.4672 7.93715 16.3876 7.70238C16.2968 7.43495 16.1901 7.17337 16.0681 6.91924C15.961 6.69615 15.7162 6.58422 15.4776 6.63333L14.6272 6.8083C14.4083 6.85333 14.1862 6.76033 14.0451 6.58377C13.822 6.30474 13.5699 6.04713 13.2908 5.81632C13.1173 5.67287 13.0254 5.44652 13.0688 5.22301L13.2372 4.35503C13.2845 4.11121 13.1738 3.86179 12.9546 3.75334C12.8308 3.69208 12.7043 3.63424 12.5754 3.58002C12.4465 3.52579 12.3168 3.47593 12.1866 3.43037C11.9562 3.34974 11.7055 3.44713 11.5707 3.65416L11.0908 4.39115C10.9672 4.58093 10.7457 4.67543 10.5235 4.65251C10.1661 4.61563 9.80932 4.61712 9.45837 4.65477C9.23633 4.6786 9.01448 4.58486 8.89027 4.39554L8.40767 3.65998Z",fillRule:"evenodd",clipRule:"evenodd"})),p=i("div",{id:"aioseo-post-settings-sidebar-button",className:u(l)},d,i("span",{id:"aioseo-post-score-disabled"},c),i("span",{id:"aioseo-post-score"},l),i("span",{},"/100")),h=window.aioseo.user;s("aioseo-post-settings-sidebar",{render:function(){return h.capabilities.aioseo_page_analysis||h.capabilities.aioseo_page_general_settings||h.capabilities.aioseo_page_social_settings||h.capabilities.aioseo_page_schema_settings||h.capabilities.aioseo_page_advanced_settings?i(n,{},i(o,{target:"aioseo-post-settings-sidebar",icon:d},"AIOSEO"),i(a,{name:"aioseo-post-settings-sidebar",icon:p,title:"AIOSEO"},i("div",{id:"aioseo-post-settings-sidebar",className:"aioseo-post-settings-sidebar"},i("div",{id:"aioseo-post-settings-sidebar-vue",className:"aioseo-post-settings-sidebar-vue"},i("div",{className:"aioseo-loading-spinner dark"},i("div",{className:"double-bounce1"},null),i("div",{className:"double-bounce2"},null)))))):null}})}})(window.wp);var Pe=s("cf27"),Ce=s("7b8f"),xe=s("0d58"),Oe=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.currentPost.id?s("main-view"):t._e()],1)},Se=[],Te=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-app"},[s("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:t.tab,internal:"",disableMobile:""},on:{changed:function(e){return t.processChangeTab(e)}}}),s("transition",{attrs:{name:"route-fade",mode:"out-in"}},[s(t.tab,{tag:"component"})],1)],1)},Le=[],je=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-localseo-info"},[s("core-settings-row",{staticClass:"info-name-row",attrs:{name:t.strings.name,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("local-business-name")]},proxy:!0}])}),s("core-settings-row",{staticClass:"info-business-type",attrs:{name:t.strings.businessType,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("local-business-business-type")]},proxy:!0}])}),s("core-settings-row",{staticClass:"info-business-image",attrs:{name:t.strings.image,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("local-business-image")]},proxy:!0}])}),s("core-settings-row",{staticClass:"info-businessaddress-row",attrs:{name:t.strings.businessAddress,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("local-business-business-address")]},proxy:!0}])}),s("core-settings-row",{attrs:{name:t.strings.map,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("local-business-map")]},proxy:!0}])}),s("core-settings-row",{staticClass:"info-businesscontact-row",attrs:{name:t.strings.businessContact,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("local-business-business-contact")]},proxy:!0}])}),s("core-settings-row",{staticClass:"info-businessids-row",attrs:{name:t.strings.businessIDs,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("local-business-business-ids")]},proxy:!0}])}),s("core-settings-row",{staticClass:"info-paymentinfo-row",attrs:{name:t.strings.paymentInfo,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("local-business-payment-info")]},proxy:!0}])}),s("core-settings-row",{staticClass:"info-area-row",attrs:{name:t.strings.areaServed,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("local-business-area-served")]},proxy:!0}])})],1)},Ie=[],Ae={data:function(){return{strings:{pageName:this.$t.__("Business Info",this.$td),name:this.$t.__("Name",this.$td),businessType:this.$t.__("Type",this.$td),image:this.$t.__("Image",this.$td),urls:this.$t.__("URLs",this.$td),websiteDesc:this.$t.__("Website URL",this.$td),aboutDesc:this.$t.__("About Page URL",this.$td),contactDesc:this.$t.__("Contact Page URL",this.$td),businessAddress:this.$t.__("Address",this.$td),businessContact:this.$t.__("Contact Info",this.$td),businessIDs:this.$t.__("IDs",this.$td),paymentInfo:this.$t.__("Payment Info",this.$td),areaServed:this.$t.__("Area Served",this.$td),map:this.$t.__("Map",this.$td)}}}},Ee=Ae,De=(s("55e8"),Object(f["a"])(Ee,je,Ie,!1,null,null,null)),Me=De.exports,Be=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-localseo-opening"},[s("core-settings-row",{attrs:{name:t.strings.useDefaults,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"aioseo-col col-xs-12 text-xs-left"},[s("base-radio-toggle",{attrs:{name:"useDefaults",options:[{label:t.$constants.GLOBAL_STRINGS.no,value:!1},{label:t.$constants.GLOBAL_STRINGS.yes,value:!0}]},model:{value:t.currentPost.local_seo.openingHours.useDefaults,callback:function(e){t.$set(t.currentPost.local_seo.openingHours,"useDefaults",e)},expression:"currentPost.local_seo.openingHours.useDefaults"}})],1)]},proxy:!0}])}),t.currentPost.local_seo.openingHours.useDefaults?t._e():s("div",[s("core-settings-row",{staticClass:"info-openinghours-row",attrs:{name:t.strings.showOpeningHours,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"aioseo-col col-xs-12 text-xs-left"},[s("base-radio-toggle",{attrs:{name:"openingHours",options:[{label:t.$constants.GLOBAL_STRINGS.no,value:!1},{label:t.$constants.GLOBAL_STRINGS.yes,value:!0}]},model:{value:t.currentPost.local_seo.openingHours.show,callback:function(e){t.$set(t.currentPost.local_seo.openingHours,"show",e)},expression:"currentPost.local_seo.openingHours.show"}})],1)]},proxy:!0}],null,!1,288768593)}),t.currentPost.local_seo.openingHours.show?s("core-settings-row",{staticClass:"info-labels-row",attrs:{name:t.strings.labels,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"aioseo-col col-xs-12 text-xs-left"},[s("span",{staticClass:"field-description"},[t._v(t._s(t.strings.closedLabel))]),s("base-input",{attrs:{type:"text",size:"medium"},model:{value:t.currentPost.local_seo.openingHours.labels.closed,callback:function(e){t.$set(t.currentPost.local_seo.openingHours.labels,"closed",e)},expression:"currentPost.local_seo.openingHours.labels.closed"}}),s("span",{staticClass:"field-description mt-10"},[t._v(t._s(t.strings.closedLabelDesc))])],1),s("div",{staticClass:"aioseo-col col-xs-12 text-xs-left"},[s("span",{staticClass:"field-description mt-8"},[t._v(t._s(t.strings.open24Label))]),s("base-input",{attrs:{size:"medium"},model:{value:t.currentPost.local_seo.openingHours.labels.alwaysOpen,callback:function(e){t.$set(t.currentPost.local_seo.openingHours.labels,"alwaysOpen",e)},expression:"currentPost.local_seo.openingHours.labels.alwaysOpen"}}),s("span",{staticClass:"field-description mt-10"},[t._v(t._s(t.strings.open24LabelDesc))])],1)]},proxy:!0}],null,!1,580101848)}):t._e(),t.currentPost.local_seo.openingHours.show?s("core-settings-row",{staticClass:"info-settings-row",attrs:{name:t.strings.settings,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"aioseo-col col-xs-12 text-xs-left"},[s("base-toggle",{model:{value:t.currentPost.local_seo.openingHours.alwaysOpen,callback:function(e){t.$set(t.currentPost.local_seo.openingHours,"alwaysOpen",e)},expression:"currentPost.local_seo.openingHours.alwaysOpen"}},[t._v(" "+t._s(t.strings.alwaysOpen)+" ")])],1),s("div",{staticClass:"aioseo-col col-xs-12 text-xs-left"},[s("base-toggle",{model:{value:t.currentPost.local_seo.openingHours.use24hFormat,callback:function(e){t.$set(t.currentPost.local_seo.openingHours,"use24hFormat",e)},expression:"currentPost.local_seo.openingHours.use24hFormat"}},[t._v(" "+t._s(t.strings.use24hFormat)+" ")])],1)]},proxy:!0}],null,!1,3414950736)}):t._e(),t.currentPost.local_seo.openingHours.show&&!t.currentPost.local_seo.openingHours.alwaysOpen?s("core-settings-row",{staticClass:"info-hours-row",attrs:{name:t.strings.hours,align:""},scopedSlots:t._u([{key:"content",fn:function(){return[s("div",{staticClass:"aioseo-col col-xs-12 text-xs-left"},t._l(t.weekdays,(function(e,o){return s("div",{key:o,staticClass:"aioseo-col-flex text-xs-left"},[s("div",{staticClass:"aioseo-col-day text-xs-left"},[t._v(" "+t._s(e)+" ")]),s("div",{staticClass:"aioseo-col-hours text-xs-left"},[s("base-select",{attrs:{disabled:t.getWeekDay(o).open24h||t.getWeekDay(o).closed,size:"medium",options:t.currentPost.local_seo.openingHours.use24hFormat?t.$constants.HOURS_24H_FORMAT:t.$constants.HOURS_12H_FORMAT,value:t.getSelectOptions(t.getWeekDay(o).openTime)},on:{input:function(e){return t.saveDay(o,"openTime",e.value)}}}),s("span",{staticClass:"separator"},[t._v("-")]),s("base-select",{attrs:{disabled:t.getWeekDay(o).open24h||t.getWeekDay(o).closed,size:"medium",options:t.currentPost.local_seo.openingHours.use24hFormat?t.$constants.HOURS_24H_FORMAT:t.$constants.HOURS_12H_FORMAT,value:t.getSelectOptions(t.getWeekDay(o).closeTime)},on:{input:function(e){return t.saveDay(o,"closeTime",e.value)}}})],1),s("div",{staticClass:"aioseo-col-alwaysopen text-xs-left"},[s("base-checkbox",{attrs:{disabled:t.getWeekDay(o).closed,size:"medium"},model:{value:t.getWeekDay(o).open24h,callback:function(e){t.$set(t.getWeekDay(o),"open24h",e)},expression:"getWeekDay(index).open24h"}},[t._v(" "+t._s(t.strings.open24h)+" ")]),s("base-checkbox",{staticClass:"closed-label",attrs:{size:"medium"},model:{value:t.getWeekDay(o).closed,callback:function(e){t.$set(t.getWeekDay(o),"closed",e)},expression:"getWeekDay(index).closed"}},[t._v(" "+t._s(t.strings.closed)+" ")])],1)])})),0)]},proxy:!0}],null,!1,3641072399)}):t._e()],1)],1)},He=[],Ke={data:function(){return{selectTimezone:[{value:"none",label:this.$t.__("Select your timezone",this.$td)}],strings:{pageName:this.$t.__("Opening Hours",this.$td),useDefaults:this.$t.__("Use Defaults",this.$td),useDefaultsDesc:this.$t.__("Will default opening hours set globally",this.$td),showOpeningHours:this.$t.__("Show Opening Hours",this.$td),labels:this.$t.__("Labels",this.$td),closedLabel:this.$t.__("Closed",this.$td),closedLabelDesc:this.$t.__("Displayed when the business is closed.",this.$td),closed:this.$t.__("Closed",this.$td),settings:this.$t.__("Settings",this.$td),open24h:this.$t.__("Open 24h",this.$td),open24Label:this.$t.__("Open 24h",this.$td),open24LabelDesc:this.$t.__("Displayed when the business is open all day long.",this.$td),alwaysOpen:this.$t.__("Open 24/7",this.$td),use24hFormat:this.$t.__("Use 24h format",this.$td),twoSets:this.$t.__("I have two sets of openning hours per day",this.$td),timezone:this.$t.__("Timezone",this.$td),hours:this.$t.__("Hours",this.$td)},weekdays:{monday:this.$t.__("Monday",this.$td),tuesday:this.$t.__("Tuesday",this.$td),wednesday:this.$t.__("Wednesday",this.$td),thursday:this.$t.__("Thursday",this.$td),friday:this.$t.__("Friday",this.$td),saturday:this.$t.__("Saturday",this.$td),sunday:this.$t.__("Sunday",this.$td)}}},computed:Object(l["a"])(Object(l["a"])({},Object(d["e"])(["currentPost"])),{},{toggled:function(){return!0},unToggled:function(){return!1},closedLabel:{get:function(){return this.currentPost.local_seo.openingHours.closedLabel},set:function(t){this.$set(this.currentPost.local_seo.openingHours,"closedLabel",t)}}}),methods:{getSelectOptions:function(t){return this.currentPost.local_seo.openingHours.use24hFormat?this.$constants.HOURS_24H_FORMAT.find((function(e){return e.value===t})):this.$constants.HOURS_12H_FORMAT.find((function(e){return e.value===t}))},saveDay:function(t,e,s){this.$set(this.currentPost.local_seo.openingHours.days[t],e,s)},getWeekDay:function(t){return this.currentPost.local_seo.openingHours.days[t]}}},Re=Ke,Ne=(s("fd80"),Object(f["a"])(Re,Be,He,!1,null,null,null)),Fe=Ne.exports,Ue=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-tab-content aioseo-localseo-maps"},[s("local-business-map-default-style"),s("local-business-map-custom-marker")],1)},We=[],ze={data:function(){return{strings:{}}}},Ve=ze,qe=(s("b908"),Object(f["a"])(Ve,Ue,We,!1,null,null,null)),Ge=qe.exports,Ye={components:{BusinessInfo:Me,OpeningHours:Fe,Maps:Ge},watch:{currentPost:{deep:!0,handler:function(){this.savePostState()}}},data:function(){return{tab:"business-info",tabs:[{slug:"business-info",icon:"svg-settings",name:this.$t.__("Business Info",this.$td)},{slug:"opening-hours",icon:"svg-settings",name:this.$t.__("Opening Hours",this.$td)},{slug:"maps",icon:"svg-settings",name:this.$t.__("Maps",this.$td)}]}},computed:Object(l["a"])({},Object(d["e"])(["currentPost"])),methods:Object(l["a"])(Object(l["a"])({},Object(d["b"])(["savePostState"])),{},{processChangeTab:function(t){this.tab=t}})},Ze=Ye,Je=Object(f["a"])(Ze,Te,Le,!1,null,null,null),Xe=Je.exports,Qe={components:{"main-view":Xe},computed:Object(l["a"])({},Object(d["e"])(["currentPost"])),created:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var s,o,a,n,r,c,u,d,p,h;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(me["a"])(t.$http);case 2:s=e.sent,o=s.internalOptions,a=s.options,n=s.dynamicOptions,r=s.settings,c=s.notifications,u=s.addons,d=s.currentPost,p=s.tags,h=s.backups,t.$set(t.$store.state,"internalOptions",fe()(Object(l["a"])({},t.$store.state.internalOptions),Object(l["a"])({},o))),t.$set(t.$store.state,"options",fe()(Object(l["a"])({},t.$store.state.options),Object(l["a"])({},a))),t.$set(t.$store.state,"dynamicOptions",fe()(Object(l["a"])({},t.$store.state.dynamicOptions),Object(l["a"])({},n))),t.$set(t.$store.state,"settings",fe()(Object(l["a"])({},t.$store.state.settings),Object(l["a"])({},r))),t.$set(t.$store.state,"notifications",fe()(Object(l["a"])({},t.$store.state.notifications),Object(l["a"])({},c))),t.$set(t.$store.state,"addons",fe()(Object(i["a"])(t.$store.state.addons),Object(i["a"])(u))),t.$set(t.$store.state,"backups",fe()(Object(i["a"])(t.$store.state.backups),Object(i["a"])(h))),t.$set(t.$store.state,"currentPost",fe()(Object(l["a"])({},t.$store.state.currentPost),Object(l["a"])({},d))),t.$set(t.$store.state,"tags",fe()(Object(l["a"])({},t.$store.state.tags),Object(l["a"])({},p)));case 21:case"end":return e.stop()}}),e)})))()}},ts=Qe,es=Object(f["a"])(ts,Oe,Se,!1,null,null,null),ss=es.exports,os=(s("b64b"),function(){var t=this,e=this,s=e.$createElement,o=e._self._c||s;return o("div",[e.locationsList.length&&!e.isLocationPostType()?o("div",{staticClass:"sidebar-row"},[o("p",{staticClass:"title"},[e._v(e._s(e.strings.selectLocation))]),o("base-select",{attrs:{size:"medium",options:e.locationsList,value:e.getLocationOptions(this.$root.$data.locationId),"track-by":"value"},on:{input:function(e){return t.$root.$data.locationId=e.value}}})],1):e._e(),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showLabels,callback:function(t){e.$set(e.$root.$data,"showLabels",t)},expression:"$root.$data.showLabels"}},[e._v(" "+e._s(e.strings.showLabels)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showIcons,callback:function(t){e.$set(e.$root.$data,"showIcons",t)},expression:"$root.$data.showIcons"}},[e._v(" "+e._s(e.strings.showIcons)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("p",{staticClass:"title"},[e._v(e._s(e.strings.businessInfo))])]),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showName,callback:function(t){e.$set(e.$root.$data,"showName",t)},expression:"$root.$data.showName"}},[e._v(" "+e._s(e.strings.showName)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showAddress,callback:function(t){e.$set(e.$root.$data,"showAddress",t)},expression:"$root.$data.showAddress"}},[e._v(" "+e._s(e.strings.address)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showPhone,callback:function(t){e.$set(e.$root.$data,"showPhone",t)},expression:"$root.$data.showPhone"}},[e._v(" "+e._s(e.strings.phoneNumber)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showFax,callback:function(t){e.$set(e.$root.$data,"showFax",t)},expression:"$root.$data.showFax"}},[e._v(" "+e._s(e.strings.faxNumber)+" ")])],1),e.$root.$data.showPhone||e.$root.$data.showFax?o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showCountryCode,callback:function(t){e.$set(e.$root.$data,"showCountryCode",t)},expression:"$root.$data.showCountryCode"}},[e._v(" "+e._s(e.strings.countryCode)+" ")])],1):e._e(),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showEmail,callback:function(t){e.$set(e.$root.$data,"showEmail",t)},expression:"$root.$data.showEmail"}},[e._v(" "+e._s(e.strings.emailAddress)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showVat,callback:function(t){e.$set(e.$root.$data,"showVat",t)},expression:"$root.$data.showVat"}},[e._v(" "+e._s(e.strings.showVat)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showTax,callback:function(t){e.$set(e.$root.$data,"showTax",t)},expression:"$root.$data.showTax"}},[e._v(" "+e._s(e.strings.showTax)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("p",{staticClass:"title"},[e._v(e._s(e.strings.labels))])]),e.$root.$data.showLabels?o("div",{staticClass:"sidebar-row labels"},[e.$root.$data.showAddress?o("div",[o("label",[e._v(e._s(e.strings.addressLabel))]),o("base-input",{attrs:{size:"small"},model:{value:e.$root.$data.addressLabel,callback:function(t){e.$set(e.$root.$data,"addressLabel",t)},expression:"$root.$data.addressLabel"}})],1):e._e(),e.$root.$data.showVat?o("div",[o("label",[e._v(e._s(e.strings.vatIdLabel))]),o("base-input",{attrs:{size:"small"},model:{value:e.$root.$data.vatIdLabel,callback:function(t){e.$set(e.$root.$data,"vatIdLabel",t)},expression:"$root.$data.vatIdLabel"}})],1):e._e(),e.$root.$data.showTax?o("div",[o("label",[e._v(e._s(e.strings.taxIdLabel))]),o("base-input",{attrs:{size:"small"},model:{value:e.$root.$data.taxIdLabel,callback:function(t){e.$set(e.$root.$data,"taxIdLabel",t)},expression:"$root.$data.taxIdLabel"}})],1):e._e(),e.$root.$data.showPhone?o("div",[o("label",[e._v(e._s(e.strings.phoneLabel))]),o("base-input",{attrs:{size:"small"},model:{value:e.$root.$data.phoneLabel,callback:function(t){e.$set(e.$root.$data,"phoneLabel",t)},expression:"$root.$data.phoneLabel"}})],1):e._e(),e.$root.$data.showFax?o("div",[o("label",[e._v(e._s(e.strings.faxLabel))]),o("base-input",{attrs:{size:"small"},model:{value:e.$root.$data.faxLabel,callback:function(t){e.$set(e.$root.$data,"faxLabel",t)},expression:"$root.$data.faxLabel"}})],1):e._e(),e.$root.$data.showEmail?o("div",[o("label",[e._v(e._s(e.strings.emailLabel))]),o("base-input",{attrs:{size:"small"},model:{value:e.$root.$data.emailLabel,callback:function(t){e.$set(e.$root.$data,"emailLabel",t)},expression:"$root.$data.emailLabel"}})],1):e._e()]):e._e()])}),as=[],ns={data:function(){return{locationsList:[],strings:{selectLocation:window.aioseo.localBusiness.postTypeSingleLabel,showLabels:this.$t.__("Show labels",this.$td),showIcons:this.$t.__("Show icons",this.$td),businessInfo:this.$t.__("Business Info",this.$td),showName:this.$t.__("Name",this.$td),address:this.$t.__("Address",this.$td),phoneNumber:this.$t.__("Phone Number",this.$td),faxNumber:this.$t.__("Fax Number",this.$td),emailAddress:this.$t.__("Email Address",this.$td),showVat:this.$t.__("Show VAT ID",this.$td),showTax:this.$t.__("Show Tax ID",this.$td),countryCode:this.$t.__("Phone/Fax Country Code",this.$td),labels:this.$t.__("Labels",this.$td),addressLabel:this.$t.__("Address",this.$td),vatIdLabel:this.$t.__("Vat ID",this.$td),taxIdLabel:this.$t.__("Tax ID",this.$td),phoneLabel:this.$t.__("Phone",this.$td),faxLabel:this.$t.__("Fax",this.$td),emailLabel:this.$t.__("Email",this.$td)}}},methods:{getLocationOptions:function(t){var e=this.locationsList.find((function(e){return e.value===t}));return e||this.isLocationPostType()||(e=this.locationsList.find((function(t){return!!t})),e&&(this.$root.$data.locationId=e.value)),e},isLocationPostType:function(){return window.aioseo.currentPost.postType===window.aioseo.localBusiness.postTypeName}},created:function(){var t=this;this.$root.$data.locations&&this.$root.$data.locations.forEach((function(e){t.locationsList.push({value:e.id,label:e.title.rendered})}))}},is=ns,rs=(s("ec6f"),Object(f["a"])(is,os,as,!1,null,"02c60080",null)),ls=rs.exports,cs=(s("2d26"),s("5c0f"));(function(t){if("undefined"!==typeof t.blocks&&"undefined"!==typeof t.blockEditor){var e=null;if(window.aioseo.currentPost&&window.aioseo.localBusiness){var s=t.element.createElement,a=t.element.Fragment,n=t.blockEditor.InspectorControls||t.editor.InspectorControls,i=t.components.PanelBody,r=t.serverSideRender||t.components.ServerSideRender,l=t.data.withSelect,c="all-in-one-seo-pack",u=s("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},s("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"})),d=window.aioseo.options.localBusiness.locations.general.multiple;t.blocks.registerBlockType("aioseo/businessinfo",{title:Object(ke["sprintf"])(Object(ke["__"])("%1$s Local - Business Info",c),"AIOSEO"),category:"aioseo",icon:u,example:{},attributes:{locationId:{type:"number",default:null},showLabels:{type:"boolean",default:!0},addressLabel:{type:"string",default:Object(ke["__"])("Address:",c)},vatIdLabel:{type:"string",default:Object(ke["__"])("VAT ID:",c)},taxIdLabel:{type:"string",default:Object(ke["__"])("Tax ID:",c)},phoneLabel:{type:"string",default:Object(ke["__"])("Phone:",c)},faxLabel:{type:"string",default:Object(ke["__"])("Fax:",c)},emailLabel:{type:"string",default:Object(ke["__"])("Email:",c)},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()}},save:function(){return null},edit:l((function(t){var e=t("core").getEntityRecords("postType",window.aioseo.localBusiness.postTypeName,{per_page:100});return{locations:e}}))((function(t){var l=t.setAttributes,u=t.attributes,p=t.className,h=t.clientId,g=t.locations,_="aioseo-"+h;if(!d&&u.locationId)return s(a,{},s("div",{},Object(ke["__"])("Please enable multiple locations before using this block.",c)));if(null===g)return s(a,{},s("div",{},Object(ke["__"])("Loading...",c)));if(d&&0===g.length)return s(a,{},s("div",{},Object(ke["sprintf"])(Object(ke["__"])("No %s found",c),window.aioseo.localBusiness.postTypePluralLabel)));u.locationId=u.locationId||window.aioseo.currentPost.postType!==window.aioseo.localBusiness.postTypeName?u.locationId:window.aioseo.currentPost.id,null===e&&(e={},Object.keys(u).forEach((function(t){e[t]=u[t]})),e.locations=g),Object(cs["b"])({id:_,parent:document.querySelector(".block-editor"),subtree:!0,done:function(t){new o["default"]({el:t,data:function(){return e},watch:{$data:{handler:function(t){l(t)},deep:!0}},render:function(t){return t(ls)}})}}),window.aioseo.currentPost.postType===window.aioseo.localBusiness.postTypeName&&Object(cs["b"])({id:_+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(t){new o["default"]({el:t,data:function(){return window.aioseo.currentPost.local_seo.locations.business},watch:{$data:{handler:function(){l({updated:Date.now()})},deep:!0}},render:function(t){return t(null)}})}});var m=s(n,null,s(i,{title:Object(ke["__"])("Display Settings",c),initialOpen:!0},s("div",null,s("div",{id:_},null))));return d&&!u.locationId?s(a,{},m,s("div",{},Object(ke["sprintf"])(Object(ke["__"])("Select a %s",c),window.aioseo.localBusiness.postTypeSingleLabel))):s(a,{},m,s("div",{className:p},[s(r,{block:"aioseo/businessinfo",attributes:{locationId:u.locationId?u.locationId:0,layout:u.layout,showLabels:u.showLabels,showIcons:u.showIcons,showName:u.showName,showAddress:u.showAddress,showPhone:u.showPhone,showFax:u.showFax,showCountryCode:u.showCountryCode,showEmail:u.showEmail,showVat:u.showVat,showTax:u.showTax,addressLabel:u.addressLabel,vatIdLabel:u.vatIdLabel,taxIdLabel:u.taxIdLabel,phoneLabel:u.phoneLabel,faxLabel:u.faxLabel,emailLabel:u.emailLabel,updated:u.updated,dataObject:window.aioseo.currentPost.postType===window.aioseo.localBusiness.postTypeName?JSON.stringify(window.aioseo.currentPost.local_seo.locations.business):null}}),s("div",{},s("div",{id:_+"-watcher"},null))]))}))})}}})(window.wp);var us=function(){var t=this,e=this,s=e.$createElement,o=e._self._c||s;return o("div",[o("div",{staticClass:"sidebar-row"},[o("p",{staticClass:"title"},[e._v(e._s(e.strings.selectLocation))]),o("base-select",{attrs:{size:"medium",options:e.locationCategories,value:e.getCategoryOptions(this.$root.$data.categoryId),"track-by":"value"},on:{input:function(e){return t.$root.$data.categoryId=e.value}}})],1)])},ds=[],ps=(s("b0c0"),{data:function(){return{locationCategories:[],strings:{selectLocation:window.aioseo.localBusiness.taxonomySingleLabel}}},methods:{getCategoryOptions:function(t){var e=this.locationCategories.find((function(e){return e.value===t}));return e||(e=this.locationCategories.find((function(t){return t.value===window.aioseo.currentPost.localBusinessCategory}))||this.locationCategories.find((function(t){return!!t})),e&&(this.$root.$data.categoryId=e.value)),e}},created:function(){var t=this;this.$root.$data.categories&&this.$root.$data.categories.forEach((function(e){t.locationCategories.push({value:e.id,label:e.name})}))}}),hs=ps,gs=(s("1d2a"),Object(f["a"])(hs,us,ds,!1,null,null,null)),_s=gs.exports;(function(t){if("undefined"!==typeof t.blocks&&"undefined"!==typeof t.blockEditor){var e=null;if(window.aioseo.currentPost&&window.aioseo.localBusiness){var s=t.element.createElement,a=t.element.Fragment,n=t.blockEditor.InspectorControls||t.editor.InspectorControls,i=t.components.PanelBody,r=t.serverSideRender||t.components.ServerSideRender,l=t.data.withSelect,c="all-in-one-seo-pack",u=s("svg",{width:20,height:19,viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg"},s("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"})),d=window.aioseo.options.localBusiness.locations.general.multiple;t.blocks.registerBlockType("aioseo/locations",{title:Object(ke["sprintf"])(Object(ke["__"])("%1$s Local - Locations",c),"AIOSEO"),category:"aioseo",icon:u,example:{},attributes:{categoryId:{type:"number",default:null}},save:function(){return null},edit:l((function(t){var e=t("core").getEntityRecords("taxonomy",window.aioseo.localBusiness.taxonomyName);return{categories:e}}))((function(t){var l=t.setAttributes,u=t.attributes,p=t.className,h=t.clientId,g=t.categories,_="aioseo-"+h;if(null===g)return s(a,{},s("div",{},Object(ke["__"])("Loading...",c)));if(!d)return s(a,{},s("div",{},Object(ke["__"])("Please enable multiple locations before using this block.",c)));if(0===g.length)return s(a,{},s("div",{},Object(ke["sprintf"])(Object(ke["__"])("No %s found",c),window.aioseo.localBusiness.taxonomyPluralLabel)));null===e&&(e={},Object.keys(u).forEach((function(t){e[t]=u[t]})),e.categories=g),Object(cs["b"])({id:_,parent:document.querySelector(".block-editor"),subtree:!0,done:function(t){new o["default"]({el:t,data:function(){return e},watch:{$data:{handler:function(t){l(t)},deep:!0}},render:function(t){return t(_s)}})}});var m=s(n,null,s(i,{title:window.aioseo.localBusiness.postTypePluralLabel,initialOpen:!0},s("div",{},s("div",{id:_},null))));return null!==g&&0===g.length?s(a,{},s("div",{},Object(ke["sprintf"])(Object(ke["__"])("No %s found",c),window.aioseo.localBusiness.taxonomyPluralLabel))):u.categoryId?s(a,{},m,s("div",{className:p},[s(r,{block:"aioseo/locations",attributes:{categoryId:u.categoryId}})])):s(a,{},m,s("div",{},Object(ke["sprintf"])(Object(ke["__"])("Select a %s",c),window.aioseo.localBusiness.taxonomySingleLabel)))}))})}}})(window.wp);var ms=function(){var t=this,e=this,s=e.$createElement,o=e._self._c||s;return o("div",[e.locationsList.length&&!e.isLocationPostType()?o("div",{staticClass:"sidebar-row"},[o("p",{staticClass:"title"},[e._v(e._s(e.strings.selectLocation))]),o("base-select",{attrs:{size:"medium",options:e.locationsList,value:e.getLocationOptions(this.$root.$data.locationId),"track-by":"value"},on:{input:function(e){return t.$root.$data.locationId=e.value}}})],1):e._e(),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showTitle,callback:function(t){e.$set(e.$root.$data,"showTitle",t)},expression:"$root.$data.showTitle"}},[e._v(" "+e._s(e.strings.showTitle)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showIcons,callback:function(t){e.$set(e.$root.$data,"showIcons",t)},expression:"$root.$data.showIcons"}},[e._v(" "+e._s(e.strings.showIcons)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showMonday,callback:function(t){e.$set(e.$root.$data,"showMonday",t)},expression:"$root.$data.showMonday"}},[e._v(" "+e._s(e.strings.Monday)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showTuesday,callback:function(t){e.$set(e.$root.$data,"showTuesday",t)},expression:"$root.$data.showTuesday"}},[e._v(" "+e._s(e.strings.Tuesday)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showWednesday,callback:function(t){e.$set(e.$root.$data,"showWednesday",t)},expression:"$root.$data.showWednesday"}},[e._v(" "+e._s(e.strings.Wednesday)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showThursday,callback:function(t){e.$set(e.$root.$data,"showThursday",t)},expression:"$root.$data.showThursday"}},[e._v(" "+e._s(e.strings.Thursday)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showFriday,callback:function(t){e.$set(e.$root.$data,"showFriday",t)},expression:"$root.$data.showFriday"}},[e._v(" "+e._s(e.strings.Friday)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showSaturday,callback:function(t){e.$set(e.$root.$data,"showSaturday",t)},expression:"$root.$data.showSaturday"}},[e._v(" "+e._s(e.strings.Saturday)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showSunday,callback:function(t){e.$set(e.$root.$data,"showSunday",t)},expression:"$root.$data.showSunday"}},[e._v(" "+e._s(e.strings.Sunday)+" ")])],1),e.$root.$data.showTitle?o("div",{staticClass:"sidebar-row labels"},[o("label",[e._v(e._s(e.strings.label))]),o("base-input",{attrs:{size:"small"},model:{value:e.$root.$data.label,callback:function(t){e.$set(e.$root.$data,"label",t)},expression:"$root.$data.label"}})],1):e._e()])},bs=[],fs={data:function(){return{locationsList:[],strings:{selectLocation:window.aioseo.localBusiness.postTypeSingleLabel,showTitle:this.$t.__("Show Title",this.$td),showIcons:this.$t.__("Show Icons",this.$td),Monday:this.$t.__("Monday",this.$td),Tuesday:this.$t.__("Tuesday",this.$td),Wednesday:this.$t.__("Wednesday",this.$td),Thursday:this.$t.__("Thursday",this.$td),Friday:this.$t.__("Friday",this.$td),Saturday:this.$t.__("Saturday",this.$td),Sunday:this.$t.__("Sunday",this.$td),label:this.$t.__("Label",this.$td)}}},methods:{getLocationOptions:function(t){var e=this.locationsList.find((function(e){return e.value===t}));return e||this.isLocationPostType()||(e=this.locationsList.find((function(t){return!!t})),e&&(this.$root.$data.locationId=e.value)),e},isLocationPostType:function(){return window.aioseo.currentPost.postType===window.aioseo.localBusiness.postTypeName}},created:function(){var t=this;this.$root._data.locations&&this.$root._data.locations.forEach((function(e){t.locationsList.push({value:e.id,label:e.title.rendered})}))}},ys=fs,$s=(s("adc4"),Object(f["a"])(ys,ms,bs,!1,null,"1fafd93c",null)),vs=$s.exports;(function(t){if("undefined"!==typeof t.blocks&&"undefined"!==typeof t.blockEditor){var e=null;if(window.aioseo.currentPost&&window.aioseo.localBusiness){var s=t.element.createElement,a=t.element.Fragment,n=t.blockEditor.InspectorControls||t.editor.InspectorControls,i=t.components.PanelBody,r=t.serverSideRender||t.components.ServerSideRender,l=t.data.withSelect,c="all-in-one-seo-pack",u=s("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},s("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"})),d=window.aioseo.options.localBusiness.locations.general.multiple;t.blocks.registerBlockType("aioseo/openinghours",{title:Object(ke["sprintf"])(Object(ke["__"])("%1$s Local - Opening Hours",c),"AIOSEO"),category:"aioseo",icon:u,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:Object(ke["__"])("Our Opening Hours:",c)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},save:function(){return null},edit:l((function(t){var e=t("core").getEntityRecords("postType",window.aioseo.localBusiness.postTypeName,{per_page:100});return{locations:e}}))((function(t){var l=t.setAttributes,u=t.attributes,p=t.className,h=t.clientId,g=t.locations,_="aioseo-".concat(h,"-settings");if(!d&&u.locationId)return s(a,{},s("div",{},Object(ke["__"])("Please enable multiple locations before using this block.",c)));if(null===g)return s(a,{},s("div",{},Object(ke["__"])("Loading...",c)));if(d&&0===g.length)return s(a,{},s("div",{},Object(ke["sprintf"])(Object(ke["__"])("No %s found",c),window.aioseo.localBusiness.postTypePluralLabel)));u.locationId=u.locationId||window.aioseo.currentPost.postType!==window.aioseo.localBusiness.postTypeName?u.locationId:window.aioseo.currentPost.id,null===e&&(e={},Object.keys(u).forEach((function(t){e[t]=u[t]})),e.locations=g),Object(cs["b"])({id:_,parent:document.querySelector(".block-editor"),subtree:!0,done:function(t){new o["default"]({el:t,data:function(){return e},watch:{$data:{handler:function(t){l(t)},deep:!0}},render:function(t){return t(vs)}})}}),window.aioseo.currentPost.postType===window.aioseo.localBusiness.postTypeName&&Object(cs["b"])({id:_+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(t){new o["default"]({el:t,data:function(){return window.aioseo.currentPost.local_seo.openingHours},watch:{$data:{handler:function(){l({updated:Date.now()})},deep:!0}},render:function(t){return t(null)}})}});var m=s(n,null,s(i,{title:Object(ke["__"])("Display Settings",c),initialOpen:!0},s("div",{},s("div",{id:_},null))));return d&&!u.locationId?s(a,{},m,s("div",{},Object(ke["sprintf"])(Object(ke["__"])("Select a %s",c),window.aioseo.localBusiness.postTypeSingleLabel))):s(a,{},m,s("div",{className:p},[s(r,{block:"aioseo/openinghours",attributes:{locationId:u.locationId?u.locationId:0,layout:u.layout,showTitle:u.showTitle,showIcons:u.showIcons,showMonday:u.showMonday,showTuesday:u.showTuesday,showWednesday:u.showWednesday,showThursday:u.showThursday,showFriday:u.showFriday,showSaturday:u.showSaturday,showSunday:u.showSunday,label:u.label,updated:u.updated,dataObject:window.aioseo.currentPost.postType===window.aioseo.localBusiness.postTypeName?JSON.stringify(window.aioseo.currentPost.local_seo.openingHours):null}}),s("div",{},s("div",{id:_+"-watcher"},null))]))}))})}}})(window.wp),function(t){if("undefined"!==typeof t.blocks&&window.aioseo.currentPost&&window.aioseo.localBusiness){var e=t.element.createElement,s=t.element.Fragment,o=t.serverSideRender||t.components.ServerSideRender,a=t.data.withSelect,n="all-in-one-seo-pack",i=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"})),r=window.aioseo.options.localBusiness.locations.general.multiple;t.blocks.registerBlockType("aioseo/locationcategories",{title:Object(ke["sprintf"])(Object(ke["__"])("%1$s Local - Location Categories",n),"AIOSEO"),category:"aioseo",icon:i,example:{},save:function(){return null},edit:a((function(t){var e=t("core").getEntityRecords("taxonomy",window.aioseo.localBusiness.taxonomyName);return{categories:e}}))((function(t){var a=t.className,i=t.categories;return null===i?e(s,{},e("div",{},Object(ke["__"])("Loading...",n))):r?0===i.length?e(s,{},e("div",{},Object(ke["sprintf"])(Object(ke["__"])("No %s found",n),window.aioseo.localBusiness.taxonomyPluralLabel))):e(s,{},e("div",{className:a},[e(o,{block:"aioseo/locationcategories"})])):e(s,{},e("div",{},Object(ke["__"])("Please enable multiple locations before using this block.",n)))}))})}}(window.wp);var ws=function(){var t=this,e=this,s=e.$createElement,o=e._self._c||s;return o("div",[e.locationsList.length&&!e.isLocationPostType()?o("div",{staticClass:"sidebar-row"},[o("p",{staticClass:"title"},[e._v(e._s(e.strings.selectLocation))]),o("base-select",{attrs:{size:"medium",options:e.locationsList,value:e.getLocationOptions(this.$root.$data.locationId),"track-by":"value"},on:{input:function(e){return t.$root.$data.locationId=e.value}}})],1):e._e(),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showLabel,callback:function(t){e.$set(e.$root.$data,"showLabel",t)},expression:"$root.$data.showLabel"}},[e._v(" "+e._s(e.strings.showLabel)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("base-toggle",{model:{value:e.$root.$data.showIcon,callback:function(t){e.$set(e.$root.$data,"showIcon",t)},expression:"$root.$data.showIcon"}},[e._v(" "+e._s(e.strings.showIcon)+" ")])],1),o("div",{staticClass:"sidebar-row"},[o("p",{staticClass:"title"},[e._v(e._s(e.strings.customMarker))]),o("div",{staticClass:"image-upload"},[o("base-input",{attrs:{size:"medium",placeholder:e.strings.pasteYourImageUrl},model:{value:e.$root.$data.customMarker,callback:function(t){e.$set(e.$root.$data,"customMarker",t)},expression:"$root.$data.customMarker"}}),o("base-button",{staticClass:"insert-image",attrs:{size:"medium",type:"black"},on:{click:function(t){return e.openUploadModal("image",["$root","$data","customMarker"])}}},[o("svg-circle-plus"),e._v(" "+e._s(e.strings.uploadOrSelectImage)+" ")],1),e.$root.$data.customMarker?o("base-button",{staticClass:"remove-image",attrs:{size:"medium",type:"gray"},on:{click:function(t){e.$root.$data.customMarker=null}}},[e._v(" "+e._s(e.strings.remove)+" ")]):e._e()],1),o("div",{staticClass:"aioseo-description",domProps:{innerHTML:e._s(e.strings.minimumSize)}}),o("base-img",{attrs:{src:e.$root.$data.customMarker}})],1),o("div",{staticClass:"sidebar-row"},[o("p",{staticClass:"title"},[e._v(e._s(e.strings.mapDisplay))])]),o("div",{staticClass:"sidebar-row dimensions"},[o("div",[o("label",[e._v(e._s(e.strings.width)+":")]),o("base-input",{model:{value:e.$root.$data.width,callback:function(t){e.$set(e.$root.$data,"width",t)},expression:"$root.$data.width"}})],1),o("div",[o("div",[o("label",[e._v(e._s(e.strings.height)+":")]),o("base-input",{model:{value:e.$root.$data.height,callback:function(t){e.$set(e.$root.$data,"height",t)},expression:"$root.$data.height"}})],1)])]),e.$root.$data.showLabel?o("div",{staticClass:"sidebar-row labels"},[o("p",{staticClass:"title"},[e._v(e._s(e.strings.label))]),o("base-input",{attrs:{size:"small"},model:{value:e.$root.$data.label,callback:function(t){e.$set(e.$root.$data,"label",t)},expression:"$root.$data.label"}})],1):e._e()])},ks=[],Ps={mixins:[_["s"]],data:function(){return{locationsList:[],strings:{selectLocation:window.aioseo.localBusiness.postTypeSingleLabel,showLabel:this.$t.__("Show label",this.$td),showIcon:this.$t.__("Show icon",this.$td),businessInfo:this.$t.__("Business Info",this.$td),mapDisplay:this.$t.__("Map Display",this.$td),width:this.$t.__("Width",this.$td),height:this.$t.__("Height",this.$td),customMarker:this.$t.__("Custom Marker",this.$td),uploadOrSelectImage:this.$t.__("Upload or Select Image",this.$td),pasteYourImageUrl:this.$t.__("Paste your image URL or select a new image",this.$td),minimumSize:this.$t.sprintf(this.$t.__("%1$sThe custom marker should be: 100x100 px.%2$s If the image exceeds those dimensions it could (partially) cover the info popup.",this.$td),"<strong>","</strong>"),remove:this.$t.__("Remove",this.$td),label:this.$t.__("Label",this.$td)}}},methods:{getLocationOptions:function(t){var e=this.locationsList.find((function(e){return e.value===t}));return e||this.isLocationPostType()||(e=this.locationsList.find((function(t){return!!t})),e&&(this.$root.$data.locationId=e.value)),e},isLocationPostType:function(){return window.aioseo.currentPost.postType===window.aioseo.localBusiness.postTypeName}},created:function(){var t=this;this.$root.$data.locations&&this.$root.$data.locations.forEach((function(e){t.locationsList.push({value:e.id,label:e.title.rendered})}))}},Cs=Ps,xs=(s("e4dc"),Object(f["a"])(Cs,ws,ks,!1,null,"3fa2ee12",null)),Os=xs.exports,Ss=s("ff09");if(function(t){if("undefined"!==typeof t.blocks&&"undefined"!==typeof t.blockEditor&&window.aioseo.currentPost&&window.aioseo.localBusiness){var e=t.element.createElement,s=t.element.Fragment,a=t.blockEditor.InspectorControls||t.editor.InspectorControls,n=t.components.PanelBody,i=t.serverSideRender||t.components.ServerSideRender,r=t.data.withSelect,l="all-in-one-seo-pack",c=e("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e("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"})),u=window.aioseo.options.localBusiness.locations.general.multiple;t.blocks.registerBlockType("aioseo/locationmap",{title:Object(ke["sprintf"])(Object(ke["__"])("%1$s Local - Map",l),"AIOSEO"),category:"aioseo",icon:c,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:Object(ke["__"])("Our location:",l)},dataObject:{type:"string",default:null},updated:{type:"string",default:Date.now()}},save:function(){return null},edit:r((function(t){var e=t("core").getEntityRecords("postType",window.aioseo.localBusiness.postTypeName,{per_page:100});return{locations:e}}))((function(t){var r=t.setAttributes,c=t.attributes,d=t.className,p=t.clientId,h=t.locations,g="aioseo-location-map-"+p;if(!u&&c.locationId)return e(s,{},e("div",{},Object(ke["__"])("Please enable multiple locations before using this block.",l)));if(null===h)return e(s,{},e("div",{},Object(ke["__"])("Loading...",l)));if(u&&0===h.length)return e(s,{},e("div",{},Object(ke["sprintf"])(Object(ke["__"])("No %s found",l),window.aioseo.localBusiness.postTypePluralLabel)));var _=window.aioseo.currentPost.postType===window.aioseo.localBusiness.postTypeName;c.locationId=!c.locationId&&_?window.aioseo.currentPost.id:c.locationId;var m=h.find((function(t){return t.id===c.locationId})),b=_?window.aioseo.currentPost.local_seo.maps:m?m.maps:null,f={};Object.keys(c).forEach((function(t){f[t]=c[t]})),f.locations=h,Object(cs["b"])({id:g,parent:document.querySelector(".block-editor"),subtree:!0,done:function(t){new o["default"]({el:t,data:function(){return f},watch:{$data:{handler:function(t){Object(k["a"])((function(){r(t)}),1e3)},deep:!0}},render:function(t){return t(Os)}})}}),_&&Object(cs["b"])({id:g+"-watcher",parent:document.querySelector(".block-editor"),subtree:!0,done:function(t){new o["default"]({el:t,data:function(){return window.aioseo.currentPost.local_seo.maps},watch:{$data:{handler:function(){r({updated:Date.now()})},deep:!0}},render:function(t){return t(null)}})}});var y=e(a,null,e(n,{title:Object(ke["__"])("Settings",l),initialOpen:!0},e("div",null,e("div",{id:g},null))));if(u){if(!c.locationId)return e(s,{},y,e("div",{},Object(ke["sprintf"])(Object(ke["__"])("Select a %s",l),window.aioseo.localBusiness.postTypeSingleLabel)));if(!b){var $=Object(Ss["a"])("post.php",{post:c.locationId,action:"edit"});return e(s,{},y,e("div",{dangerouslySetInnerHTML:{__html:Object(ke["sprintf"])(Object(ke["__"])("Please configure the map for this location: %s",l),'<a href="'+$+'" target="_blank">'+m.title.rendered+"</a>")}}))}}var v="#"+g+"-preview .aioseo-local-map";return Object(cs["b"])({selector:v,parent:document.querySelector(".block-editor"),subtree:!0,done:function(){var t=b||window.aioseo.options.localBusiness.maps;document.dispatchEvent(new CustomEvent(window.aioseo.localBusiness.mapLoadEvent,{detail:{element:v,mapOptions:t.mapOptions,customMarker:c.customMarker||t.customMarker||window.aioseo.options.localBusiness.maps.customMarker,instance:c,placeId:window.aioseo.options.localBusiness.maps.mapsEmbedApiEnabled?t.placeId:null,infoWindowContent:t.infoWindowContent?t.infoWindowContent:null}}))}}),e(s,{},y,e("div",{className:d,id:g+"-preview"},[e(i,{block:"aioseo/locationmap",attributes:{locationId:c.locationId?c.locationId:0,showLabel:c.showLabel,showIcon:c.showIcon,customMarker:c.customMarker,width:c.width,height:c.height,label:c.label,updated:c.updated,dataObject:_?JSON.stringify(window.aioseo.currentPost.local_seo.maps):null}}),e("div",{},e("div",{id:g+"-watcher"},null))]))}))})}}(window.wp),window.aioseo.currentPost){o["default"].config.productionTip=!1;var Ts=window.aioseo.currentPost.context,Ls=document.querySelector("#aioseo-".concat(Ts,"-settings-metabox"));if(Ls&&Object(P["p"])()&&(!window.wp.blockEditor&&window.wp.blocks&&window.wp.oldEditor&&(window.wp.blockEditor=window.editor),new o["default"]({store:Pe["a"],data:{tableContext:Ts,screenContext:"metabox"},render:function(t){return t(we)}}).$mount("#aioseo-".concat(Ts,"-settings-metabox")),"post"===Ts)){var js=document.getElementById("aioseo-post-settings-sidebar-vue");js?new o["default"]({store:Pe["a"],data:{tableContext:"post",screenContext:"sidebar"},render:function(t){return t(we)}}).$mount("#aioseo-post-settings-sidebar-vue"):(Object(Ce["a"])("#aioseo-post-settings-sidebar-vue","aioseoSidebarVisible"),document.addEventListener("animationstart",(function(t){"aioseoSidebarVisible"===t.animationName&&new o["default"]({store:Pe["a"],data:{tableContext:"post",screenContext:"sidebar"},render:function(t){return t(we)}}).$mount("#aioseo-post-settings-sidebar-vue")}),{passive:!0}))}}window.addEventListener("load",xe["a"]),window.aioseo.currentPost&&window.aioseo.localBusiness&&document.getElementById("aioseo-location-settings-metabox")&&(o["default"].config.productionTip=!1,new o["default"]({store:Pe["a"],data:{screenContext:"metabox"},render:function(t){return t(ss)}}).$mount("#aioseo-location-settings-metabox"))},"1cfa":function(t,e,s){},"1d2a":function(t,e,s){"use strict";s("3642")},2309:function(t,e,s){},2388:function(t,e,s){},"243b":function(t,e,s){},"276a":function(t,e,s){"use strict";s("2388")},"281b":function(t,e,s){},3642:function(t,e,s){},"3d9a":function(t,e,s){},"40ea":function(t,e,s){"use strict";s("588d")},"483d":function(t,e,s){"use strict";s("b604")},"4c91":function(t,e,s){},5282:function(t,e,s){"use strict";s("3d9a")},"549f":function(t,e,s){"use strict";s("9a45")},"55e8":function(t,e,s){"use strict";s("d8ed")},"588d":function(t,e,s){},"5e7f":function(t,e,s){"use strict";s("fc16")},"5fed":function(t,e,s){},"606f":function(t,e,s){},6622:function(t,e,s){"use strict";s("bd40")},7197:function(t,e,s){"use strict";s("606f")},"7cb2":function(t,e,s){},"7eee":function(t,e,s){},"81a1":function(t,e,s){"use strict";s("4c91")},"8c79":function(t,e,s){"use strict";s("5fed")},"8dbd":function(t,e,s){"use strict";s("2309")},9:function(t,e,s){t.exports=s("0e57")},"98a3":function(t,e,s){"use strict";s("243b")},"9a45":function(t,e,s){},a072:function(t,e,s){"use strict";s("1cfa")},adc4:function(t,e,s){"use strict";s("d53d")},b604:function(t,e,s){},b908:function(t,e,s){"use strict";s("7eee")},bd40:function(t,e,s){},d53d:function(t,e,s){},d8ed:function(t,e,s){},e2aa:function(t,e,s){"use strict";s("fe51")},e4dc:function(t,e,s){"use strict";s("f24b")},e6ba:function(t,e,s){"use strict";s("08d2")},ec6f:function(t,e,s){"use strict";s("7cb2")},f0a8:function(t,e,s){"use strict";s("0580")},f24b:function(t,e,s){},fc16:function(t,e,s){},fd80:function(t,e,s){"use strict";s("281b")},fe51:function(t,e,s){}});