(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["settings-partials-Breadcrumbs-ContentTypesLite-vue","settings-partials-Breadcrumbs-Preview-vue"],{"1df9":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"content"},e._l(e.postTypes,(function(t){return a("core-settings-row",{key:t.name,staticClass:"aioseo-breadcrumbs-post-type",attrs:{name:t.label},scopedSlots:e._u([{key:"content",fn:function(){return[a("div",[a("preview",{attrs:{"preview-data":e.getPreview(t)}}),a("grid-row",[a("grid-column",[a("base-toggle",{staticClass:"current-item"}),e._v(" "+e._s(e.strings.useDefaultTemplate)+" ")],1)],1)],1)]},proxy:!0}],null,!0)})})),1)},s=[],n=a("5530"),o=(a("b0c0"),a("caad"),a("4de4"),a("ac1f"),a("5319"),a("4d63"),a("25f0"),a("d81d"),a("2532"),a("2f62")),i=a("c468"),u={components:{preview:i["default"]},data:function(){return{strings:{useDefaultTemplate:this.$t.__("Use a default template",this.$td)}}},methods:{getPreview:function(e){var t=this.options.breadcrumbs;return[t.breadcrumbPrefix?t.breadcrumbPrefix:"",t.homepageLink?t.homepageLabel?t.homepageLabel:"Home":"",t.showBlogHome&&"post"===e.name?"Blog Home":"",["post","page","attachment"].includes(e.name)?"":e.label,this.getPostTypeTaxonomy(e).singular,this.postTypeIsHierarchical(e)?"Post Parent":"",this.getPostTypeTemplate(e)]},postTypeIsHierarchical:function(e){return 0<this.$aioseo.postData.postTypes.filter((function(t){return t.name===e.name&&t.hierarchical})).length},postTypeHasArchive:function(e){return 0<this.$aioseo.postData.postTypes.filter((function(t){return t.name===e.name&&t.hasArchive})).length},getPostTypeTemplate:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this.$aioseo.breadcrumbs.defaultTemplate;return a=t?a.replace(new RegExp("#breadcrumb_label","g"),e.singular):a.replace(new RegExp("#breadcrumb_label","g"),"#breadcrumb_post_title_"+e.name),a},getPostTaxonomyOptions:function(e){return this.$aioseo.postData.taxonomies.filter((function(t){return e.taxonomies.includes(t.name)})).map((function(e){return{value:e.name,label:e.label}}))},getPostTypeTaxonomy:function(e){var t=this.$aioseo.postData.taxonomies.filter((function(t){return e.taxonomies.includes(t.name)}));return 0<t.length?t[0]:[]}},computed:Object(n["a"])(Object(n["a"])({},Object(o["e"])(["options"])),{},{postTypes:function(){return this.$aioseo.postData.postTypes.filter((function(e){return["post","page"].includes(e.name)}))}})},l=u,c=a("2877"),p=Object(c["a"])(l,r,s,!1,null,null,null);t["default"]=p.exports},c468:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"preview-box"},[e.label?a("span",{staticClass:"label"},[e._v(" "+e._s(e.label)+": ")]):e._e(),e._l(this.getPreviewData(),(function(t,r){return[1<e.previewLength&&r>0&&r<e.previewLength?a("span",{key:r+"sep",staticClass:"aioseo-breadcrumb-separator",domProps:{innerHTML:e._s(e.options.breadcrumbs.separator)}}):e._e(),r<e.previewLength-1?a("span",{key:r+"crumb",class:{"aioseo-breadcrumb":!t.match(/aioseo-breadcrumb/),link:t!==e.options.breadcrumbs.breadcrumbPrefix&&!t.match(/<a /)},domProps:{innerHTML:e._s(t)}}):e._e(),r===e.previewLength-1?a("span",{key:r+"crumbLast",class:{last:!0,link:e.options.breadcrumbs.linkCurrentItem&&e.useDefaultTemplate&&!t.match(/<a /),noLink:!e.options.breadcrumbs.linkCurrentItem&&e.useDefaultTemplate,"aioseo-breadcrumb":!t.match(/aioseo-breadcrumb/)},domProps:{innerHTML:e._s(t)}}):e._e()]}))],2)},s=[],n=a("5530"),o=(a("d81d"),a("4de4"),a("ac1f"),a("5319"),a("fb6a"),a("2f62")),i={props:{previewData:{type:Array,default:null},useDefaultTemplate:{type:Boolean,default:!0},label:String},computed:Object(n["a"])(Object(n["a"])({},Object(o["e"])(["options"])),{},{previewLength:function(){return this.getPreviewData()?this.getPreviewData().length:0}}),methods:{getPreviewData:function(){var e=this,t=this.previewData.filter((function(e){return!!e})).map((function(t){return e.$tags.decodeHTMLEntities(t).replace(/#breadcrumb_separator/g,'<span class="aioseo-breadcrumb-separator">'+e.options.breadcrumbs.separator+"</span>").replace(/#breadcrumb_link/g,"Permalink")}));return this.useDefaultTemplate&&!this.options.breadcrumbs.showCurrentItem&&(t=t.slice(0,t.length-1)),t}}},u=i,l=a("2877"),c=Object(l["a"])(u,r,s,!1,null,null,null);t["default"]=c.exports}}]);