UNPKG

@europeana/portal

Version:
2 lines 23 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[78,4,10,22],{1068:function(t,e,r){"use strict";r.r(e);var n=r(16),l=(r(21),r(42),r(22),r(43),r(14),r(38),r(860),r(864),r(253),r(107),r(265)),o=r.n(l),c=r(832),d=r(641),h=r(648),m=r(660),f=r(665),v={name:"StoriesPage",components:{AlertMessage:()=>r.e(3).then(r.bind(null,658)),RelatedCategoryTags:c.default,ContentCard:d.default,ContentHeader:h.a,LoadingSpinner:m.default,CallToActionBanner:()=>r.e(100).then(r.bind(null,831)),PaginationNavInput:f.default},data:()=>({perPage:24,selectedTags:[],filteredTags:null,stories:[],tags:[],total:0,sections:[],pageFetched:!1}),fetch(){var t=this;return Object(n.a)((function*(){yield Promise.all([t.fetchPage(),t.fetchStories()]),t.$scrollTo&&t.$scrollTo("#header")}))()},head(){return{title:this.$pageHeadTitle(this.pageTitle),meta:[{hid:"og:type",property:"og:type",content:"article"},{hid:"title",name:"title",content:this.pageTitle},{hid:"og:title",property:"og:title",content:this.pageTitle}]}},computed:{pageTitle(){return this.$t("storiesPage.title")},callsToAction(){return this.sections.filter((section=>"PrimaryCallToAction"===section.__typename))},displayTags(){return this.filteredTags?this.tags.filter((t=>this.filteredTags.includes(t.identifier)||this.selectedTags.includes(t.identifier))):this.tags}},watch:{"$route.query.page":"$fetch","$route.query.tags":"$fetch"},mounted(){this.fetchCategories()},methods:{fetchPage(){var t=this;return Object(n.a)((function*(){var e;if(!t.pageFetched){var r={identifier:"stories",locale:t.$i18n.isoLocale(),preview:"preview"===t.$route.query.mode},n=(yield t.$contentful.query("storiesPage",r)).data.data.browsePageCollection.items[0];t.sections=(null==n||null===(e=n.hasPartCollection)||void 0===e?void 0:e.items)||[],t.pageFetched=!0}}))()},fetchStories(){var t=this;return Object(n.a)((function*(){var e,r;t.selectedTags=(null===(e=t.$route.query.tags)||void 0===e?void 0:e.split(","))||[];var n={locale:t.$i18n.isoLocale(),preview:"preview"===t.$route.query.mode},l=yield t.$contentful.query("storiesMinimal",n);r=[l.data.data.blogPostingCollection.items,l.data.data.exhibitionPageCollection.items].flat(),t.selectedTags.length>0&&(r=r.filter((e=>{var r=e.cats.items.map((t=>null==t?void 0:t.id));return t.selectedTags.every((t=>r.includes(t)))}))),t.filteredTags=o()(r.map((t=>t.cats.items.filter((t=>!!t)).map((t=>t.id)))).flat()),r=r.sort(((a,b)=>new Date(b.date).getTime()-new Date(a.date).getTime())),t.total=r.length;var c=((t.$route.query.page||1)-1)*t.perPage,d=c+t.perPage,h=r.slice(c,d).map((t=>t.sys.id)),m={locale:t.$i18n.isoLocale(),preview:"preview"===t.$route.query.mode,limit:t.perPage,ids:h},f=yield t.$contentful.query("storiesBySysId",m);r=[f.data.data.blogPostingCollection.items,f.data.data.exhibitionPageCollection.items].flat(),t.stories=h.map((t=>r.find((e=>e.sys.id===t)))).filter(Boolean)}))()},fetchCategories(){var t=this;return Object(n.a)((function*(){var e={locale:t.$i18n.isoLocale(),preview:"preview"===t.$route.query.mode},r=yield t.$contentful.query("categories",e);t.tags=(r.data.data.categoryCollection.items||[]).sort(((a,b)=>a.name.trim().toLowerCase().localeCompare(b.name.trim().toLowerCase())))}))()},entryUrl(t){var e;return"BlogPosting"===t.__typename?e="/blog":"ExhibitionPage"===t.__typename&&(e="/exhibitions"),"".concat(e,"/").concat(t.identifier)}}},y=(r(865),r(40)),component=Object(y.a)(v,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.$fetchState.pending?r("b-container",{attrs:{"data-qa":"loading spinner container"}},[r("b-row",{staticClass:"flex-md-row py-4 text-center"},[r("b-col",{attrs:{cols:"12"}},[r("LoadingSpinner")],1)],1)],1):t.$fetchState.error?r("b-container",{attrs:{"data-qa":"alert message container"}},[r("b-row",{staticClass:"flex-md-row py-4"},[r("b-col",{attrs:{cols:"12"}},[r("AlertMessage",{attrs:{error:t.$fetchState.error.message}})],1)],1)],1):r("div",{staticClass:"page white-page gridless-container responsive-font"},[r("ContentHeader",{attrs:{title:t.pageTitle}}),t._v(" "),t.callsToAction[0]?r("CallToActionBanner",{attrs:{name:t.callsToAction[0].name,text:t.callsToAction[0].text,link:t.callsToAction[0].relatedLink,illustration:t.callsToAction[0].image}}):t._e(),t._v(" "),(t.$features.storiesPageAllTags||t.selectedTags.length>0)&&t.displayTags.length>0?r("RelatedCategoryTags",{staticClass:"responsive-font",attrs:{tags:t.displayTags,selected:t.selectedTags}}):t._e(),t._v(" "),r("div",{staticClass:"mb-4 context-label"},[t._v("\n "+t._s(t.$tc("items.itemCount",t.total,{count:t.total}))+"\n ")]),t._v(" "),r("b-card-group",{staticClass:"card-deck-4-cols gridless-browse-cards",attrs:{deck:""}},t._l(t.stories,(function(e,n){return r("ContentCard",{key:n,attrs:{title:e.name,url:t.entryUrl(e),"image-url":e.primaryImageOfPage&&e.primaryImageOfPage.image.url,"image-content-type":e.primaryImageOfPage&&e.primaryImageOfPage.image.contentType}})})),1),t._v(" "),r("PaginationNavInput",{attrs:{"per-page":t.perPage,"total-results":t.total}})],1)],1)}),[],!1,null,"0f77d27e",null);e.default=component.exports},637:function(t,e,r){var content=r(640);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(106).default)("688b9c6f",content,!0,{sourceMap:!1})},638:function(t,e,r){"use strict";var n=r(6),l=r(82);function o(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function c(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?o(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):o(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var d={name:"SocialShare",props:{mediaUrl:{type:String,default:""},withText:{type:Boolean,default:!1}},computed:c(c({},Object(l.b)({shareUrl:"http/canonicalUrlWithoutLocale"})),{},{networks(){return[{identifier:"facebook",name:"Facebook",url:"https://www.facebook.com/sharer/sharer.php?display=page&u=".concat(this.shareUrl)},{identifier:"twitter",name:"Twitter",url:"https://twitter.com/intent/tweet?text=".concat(this.shareUrl)},{identifier:"pinterest",name:"Pinterest",url:"https://pinterest.com/pin/create/link/?url=".concat(this.shareUrl)+(this.mediaUrl?"&media=".concat(this.mediaUrl):"")}]}})},h=(r(639),r(40)),component=Object(h.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",t._l(t.networks,(function(e,n){return r("b-link",{key:n,class:"social-share mr-1 "+e.identifier,attrs:{title:t.$t("actions.shareOn",{social:e.name}),href:e.url,"data-qa":"share "+e.identifier+" button"},nativeOn:{click:function(r){t.$matomo&&t.$matomo.trackEvent("Item_share","Click social share button",e.url)}}},[r("span",{class:"icon-"+e.identifier}),t._v(" "),t.withText?r("span",{staticClass:"text"},[t._v(t._s(e.name)+"\n ")]):t._e()])})),1)}),[],!1,null,"a553b8a4",null);e.a=component.exports},639:function(t,e,r){"use strict";r(637)},640:function(t,e,r){var n=r(105)(!1);n.push([t.i,"a[data-v-a553b8a4]{align-items:center;background:transparent;border:1px solid #1a1a1a;border-radius:50%;color:#1a1a1a;display:inline-flex;height:calc(2.5rem - 1px);justify-content:center;text-decoration:none;transition:background .25s;width:calc(2.5rem - 1px)}a [class^=icon][data-v-a553b8a4]{color:#1a1a1a;font-size:1.25rem}a[data-v-a553b8a4]:hover{background:#1a1a1a}a:hover [class^=icon][data-v-a553b8a4]{color:#fff}",""]),t.exports=n},641:function(t,e,r){"use strict";r.r(e);r(21),r(42),r(22),r(14),r(38),r(43),r(48),r(80),r(41),r(76);var n=r(141),l=r.n(n),o=r(159),c=r(642),d=r(24),h=r(160),m={name:"ContentCard",components:{ClientOnly:l.a,SmartLink:o.a,MediaDefaultThumbnail:()=>r.e(23).then(r.bind(null,1101))},mixins:[c.a],props:{title:{type:[String,Object],default:""},subTitle:{type:String,default:null},texts:{type:Array,default:()=>[]},hitsText:{type:Object,default:null},url:{type:[String,Object],default:""},imageUrl:{type:String,default:""},imageContentType:{type:String,default:null},imageWidth:{type:Number,default:null},imageHeight:{type:Number,default:null},imageAlt:{type:String,default:""},imageOptimisationOptions:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},variant:{type:String,default:"default"},omitAllUris:{type:Boolean,default:!1},omitUrisIfOtherValues:{type:Boolean,default:!1},limitValuesWithinEachText:{type:Number,default:-1},blankImageHeight:{type:Number,default:null},blankImageWidth:{type:Number,default:null},logo:{type:Boolean,default:!1},mediaType:{type:String,default:null},offset:{type:Number,default:null}},data(){return{cardImageUrl:this.imageUrl,displayLabelTypes:"exhibitions|galleries|blog|collections",themes:h.a.map((t=>t.id))}},computed:{cardClass(){return"".concat(this.variant,"-card")},displayTitle(){if(this.title){if("string"==typeof this.title)return{value:this.title,code:null};var t=Object(d.h)(this.title,this.$i18n.locale);return{value:t.values[0],code:t.code}}return null},displaySubTitle(){return this.subTitle||this.displayLabel},displayLabel(){if(!this.displayLabelType)return!1;if("collections"===this.displayLabelType){var t="string"==typeof this.url?this.url.split("/").pop().split("-").shift():this.url.params.pathMatch;return this.themes.includes(t)?this.$t("cardLabels.theme"):this.$t("cardLabels.".concat(this.displayLabelTypeCollections))}return"blog"===this.displayLabelType?this.$tc("blog.posts",1):this.$tc("".concat(this.displayLabelType,".").concat(this.displayLabelType),1)},displayLabelTypeCollections(){return"object"==typeof this.url?this.url.params.type:this.url.split("/").slice(-2,-1)},displayLabelType(){return!!this.displayLabelMatch&&this.displayLabelMatch[1]},displayLabelMatch(){return"object"==typeof this.url?this.displayLabelMatchObject:this.displayLabelMatchString},displayLabelMatchObject(){return this.url.name.match(new RegExp("(".concat(this.displayLabelTypes,")")))},displayLabelMatchString(){return this.url.match(new RegExp("/(".concat(this.displayLabelTypes,")[/.]")))},displayTexts(){return this.texts.filter(Boolean).map((t=>"string"==typeof t?{values:[t],code:null}:Array.isArray(t)?{values:t,code:null}:Object(d.h)(t,this.$i18n.locale,{omitUrisIfOtherValues:this.omitUrisIfOtherValues,omitAllUris:this.omitAllUris})))},optimisedImageUrl(){return this.$options.filters.optimisedImageUrl(this.imageUrl,this.imageContentType,this.imageOptimisationOptions)}},watch:{imageUrl(){this.cardImageUrl=this.imageUrl}},methods:{cardText(t){var e=this.limitValuesWithinEachText>-1?t.slice(0,this.limitValuesWithinEachText):[].concat(t);t.length>e.length&&e.push(this.$t("formatting.ellipsis"));var r=e.join(this.$t("formatting.listSeperator")+" "),n=this.stripMarkdown(r);return this.$options.filters.truncate(n,255,this.$t("formatting.ellipsis"))},redrawMasonry(){this.$redrawVueMasonry&&this.$nextTick((()=>{this.$redrawVueMasonry()}))},imageNotFound(){this.cardImageUrl="",this.redrawMasonry()},imageLoaded(t){t.target.src.startsWith("data:")||this.redrawMasonry()}}},f=r(40),v=r(643),y=r.n(v),component=Object(f.a)(m,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("b-card",{staticClass:"text-left content-card",class:t.cardClass,attrs:{"data-qa":"content card","no-body":""}},[r("div",{staticClass:"card-wrapper"},[r("SmartLink",{attrs:{destination:t.url,"link-class":"card-link","aria-label":t.displayTitle?t.displayTitle.value:null,title:"mosaic"===t.variant&&t.displayTitle?t.displayTitle.value:null}}),t._v(" "),"mini"!==t.variant?r("MediaDefaultThumbnail",{directives:[{name:"show",rawName:"v-show",value:!t.cardImageUrl,expression:"!cardImageUrl"}],attrs:{"media-type":t.mediaType,offset:t.offset}}):t._e(),t._v(" "),t.cardImageUrl?r("div",{staticClass:"card-img",class:{logo:t.logo}},[t.lazy?r("b-img-lazy",{attrs:{src:t.optimisedImageUrl,"blank-width":t.blankImageWidth,"blank-height":t.blankImageHeight,width:t.imageWidth,height:t.imageHeight,alt:t.imageAlt},nativeOn:{error:function(e){return t.imageNotFound.apply(null,arguments)},load:function(e){return t.imageLoaded.apply(null,arguments)}}}):r("b-img",{attrs:{src:t.optimisedImageUrl,width:t.imageWidth,height:t.imageHeight,alt:t.imageAlt},on:{error:t.imageNotFound,load:t.imageLoaded}})],1):t._e(),t._v(" "),"mosaic"!==t.variant?r("b-card-body",{attrs:{"data-qa":"card body"}},[t.displaySubTitle&&"mini"!==t.variant&&t.showSubtitle?r("b-card-sub-title",{staticClass:"mt-0",attrs:{"sub-title-tag":"div","sub-title-text-variant":"default"}},[t._v("\n "+t._s(t.displaySubTitle)+"\n ")]):t._e(),t._v(" "),r("div",{staticClass:"title-texts-wrapper"},[t.displayTitle?r("b-card-title",{attrs:{"title-tag":"div","data-qa":"card title",lang:t.displayTitle.code}},[r("span",[t._v("\n "+t._s(t._f("truncate")(t.displayTitle.value,90,t.$t("formatting.ellipsis")))+"\n ")])]):t._e(),t._v(" "),t.hitsText?r("b-card-text",{attrs:{"text-tag":"div","data-qa":"highlighted search term"}},[r("p",[t._v("\n "+t._s(t.hitsText.prefix)),r("strong",{staticClass:"has-text-highlight"},[t._v(t._s(t.hitsText.exact))]),t._v(t._s(t.hitsText.suffix)+"\n ")])]):t._e(),t._v(" "),t.displayTexts.length>0?t._l(t.displayTexts,(function(text,e){return r("b-card-text",{key:e,attrs:{lang:text.code,"text-tag":"div"}},[r("p",{domProps:{innerHTML:t._s(t.cardText(text.values))}})])})):t._e()],2),t._v(" "),r("client-only",[t._t("footer")],2)],1):t._e()],1),t._v(" "),r("client-only",[t._t("image-overlay")],2)],1)}),[],!1,null,null,null);"function"==typeof y.a&&y()(component);e.default=component.exports},642:function(t,e,r){"use strict";r(80),r(14),r(41),r(21),r(22),r(28);var n=r(645);e.a={methods:{stripMarkdown(text){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""];for(var pattern of(text=n.marked.parse(text),(t=>[/\n$/].concat(t.map((t=>new RegExp("</?".concat(t,".*?>"),"gi")))))(t)))text=text.replace(pattern,"");return text}}}},643:function(t,e){},648:function(t,e,r){"use strict";var n={components:{SocialShare:r(638).a},props:{title:{type:String,required:!0},description:{type:String,default:null},mediaUrl:{type:String,default:null},contextLabel:{type:String,default:null}}},l=r(40),component=Object(l.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("header",{staticClass:"row"},[r("b-col",{staticClass:"col lead mt-3",attrs:{cols:"12",lg:"9"}},[t.contextLabel?r("div",{staticClass:"context-label",attrs:{"data-qa":"context label"}},[t._v("\n "+t._s(t.contextLabel)+"\n ")]):t._e(),t._v(" "),r("h1",{attrs:{"data-qa":"page title"}},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.description?r("div",{domProps:{innerHTML:t._s(t.description)}}):t._e()]),t._v(" "),t.mediaUrl?r("b-col",{staticClass:"pt-0 pb-3 py-lg-3 text-left text-lg-right",attrs:{cols:"12",lg:"3"}},[r("SocialShare",{attrs:{"media-url":t.mediaUrl}})],1):t._e()],1)}),[],!1,null,null,null);e.a=component.exports},660:function(t,e,r){"use strict";r.r(e);var n={name:"LoadingSpinner",props:{statusMessage:{type:String,default:null}}},l=r(40),component=Object(l.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",{attrs:{role:"status","data-qa":"loading spinner"}},[r("span",{staticClass:"visually-hidden"},[t._v("\n "+t._s(t.statusMessage||t.$t("loading"))+"\n ")]),t._v(" "),r("span",{staticClass:"spinner-border spinner-border-sm",attrs:{"aria-hidden":"true"}})])}),[],!1,null,null,null);e.default=component.exports},665:function(t,e,r){"use strict";r.r(e);var n=r(6);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function o(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var c={name:"PaginationNavInput",components:{SmartLink:r(159).a},props:{perPage:{type:Number,default:24},totalResults:{type:Number,default:0},maxResults:{type:Number,default:null}},data(){var t,e;return{page:Number(null===(t=this.$route)||void 0===t||null===(e=t.query)||void 0===e?void 0:e.page)||1}},computed:{showPagination(){return this.totalResults>this.perPage},totalPages(){var t=Math.max(this.totalResults,1);return Math.ceil(Math.min(t,this.maxResults||t)/this.perPage)},prevDisabled(){return this.page<=1},prevUrl(){return this.linkGen(this.page-1)},nextUrl(){return this.linkGen(this.page+1)},nextDisabled(){return this.page===this.totalPages}},watch:{"$route.query.page"(){var t,e;this.page=Number(null===(t=this.$route)||void 0===t||null===(e=t.query)||void 0===e?void 0:e.page)||1},page:"changePaginationNav"},methods:{changePaginationNav(){var t=o(o({},this.$route.query),{},{page:this.page}),e={path:this.$route.path,query:t};this.$goto(e)},linkGen(t){return{path:this.$route.path,query:o(o({},this.$route.query),{},{page:t})}}}},d=r(40),component=Object(d.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("nav",{directives:[{name:"show",rawName:"v-show",value:t.showPagination,expression:"showPagination"}],staticClass:"pagination-nav-input",attrs:{"aria-hidden":"false","aria-label":t.$t("pagination.label"),"data-qa":"pagination navigation"}},[r("ul",{staticClass:"pl-0 d-flex justify-content-center"},[r("li",{staticClass:"page-item btn-prev pl-0",class:{disabled:t.prevDisabled},attrs:{"data-qa":"prev button"}},[r("SmartLink",{staticClass:"page-link",attrs:{destination:t.prevUrl,"aria-label":t.$t("actions.previous"),disabled:t.prevDisabled,"aria-hidden":t.prevDisabled}},[r("span",{staticClass:"icon-arrow-down"}),t._v("\n "+t._s(t.$t("actions.previous"))+"\n ")])],1),t._v(" "),r("li",{staticClass:"page-item page-input"},[r("b-form-input",{attrs:{"aria-label":t.$t("pageNumber"),lazy:!0,max:t.totalPages,min:1,number:!0,"data-qa":"pagination input",type:"number"},model:{value:t.page,callback:function(e){t.page=e},expression:"page"}}),t._v(" "+t._s(t.$t("of"))+" "+t._s(t.totalPages)+"\n ")],1),t._v(" "),r("li",{staticClass:"page-item btn-next pr-0",class:{disabled:t.nextDisabled},attrs:{"data-qa":"next button"}},[r("SmartLink",{staticClass:"page-link",attrs:{destination:t.nextUrl,"aria-label":t.$t("actions.next"),disabled:t.nextDisabled,"aria-hidden":t.nextDisabled}},[t._v("\n "+t._s(t.$t("actions.next"))+"\n "),r("span",{staticClass:"icon-arrow-down"})])],1)])])}),[],!1,null,null,null);e.default=component.exports},679:function(t,e,r){var content=r(732);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(106).default)("53546325",content,!0,{sourceMap:!1})},731:function(t,e,r){"use strict";r(679)},732:function(t,e,r){var n=r(105)(!1);n.push([t.i,".related-category-tags[data-v-3d98ef0a]{margin-bottom:.5rem}.icon-ic-tag[data-v-3d98ef0a]{color:#4d4d4d;display:inline-block;font-size:1.5rem;line-height:calc(2rem - 1px)}@media(min-width: 1920px){.responsive-font .icon-ic-tag[data-v-3d98ef0a]{line-height:2.25vw;font-size:1.5vw}}.badge-outline-light[data-v-3d98ef0a]{margin:0 .25rem .5rem}@media(min-width: 768px){.badge-outline-light[data-v-3d98ef0a]{overflow:visible;max-width:none}.badge-outline-light span[data-v-3d98ef0a]{overflow:visible}}@media(min-width: 1920px){.responsive-font .badge-outline-light[data-v-3d98ef0a]{margin:0 .25vw .5vw}}",""]),t.exports=n},772:function(t,e,r){var content=r(866);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(106).default)("3ce2a1db",content,!0,{sourceMap:!1})},832:function(t,e,r){"use strict";r.r(e);r(43);var n={name:"RelatedCategoryTags",props:{tags:{type:Array,required:!0},selected:{type:Array,default:()=>[]}},methods:{badgeLink(t){var e={name:"stories"};if(this.selected.includes(t)){var r=this.selected.filter((e=>e!==t));r.length>0&&(e.query={tags:r.join(",")})}else e.query={tags:this.selected.concat(t).join(",")};return this.$path(e)},isActive(t){return this.selected.includes(t)},clickBadge(t){if(this.$matomo){var e=this.isActive(t)?"Deselect tag":"Select tag";this.$matomo.trackEvent("Tags",e,t)}}}},l=(r(731),r(40)),component=Object(l.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("b-row",{staticClass:"flex-md-row related-category-tags"},[t.tags.length>0?r("b-col",{staticClass:"d-flex",attrs:{"data-qa":"related category tags",cols:"12"}},[r("span",{staticClass:"icon-ic-tag"}),t._v(" "),r("div",t._l(t.tags.filter((function(t){return!!t})),(function(e,n){return r("b-badge",{key:n,attrs:{variant:"outline-light",active:t.isActive(e.identifier),to:t.badgeLink(e.identifier)},nativeOn:{click:function(r){return t.clickBadge(e.identifier)}}},[r("span",[t._v(t._s(e.name))]),t._v(" "),t.isActive(e.identifier)?r("span",{staticClass:"icon icon-clear clear-indicator"}):t._e()])})),1)]):t._e()],1)}),[],!1,null,"3d98ef0a",null);e.default=component.exports},860:function(t,e,r){"use strict";var n=r(31),l=r(861),o=r(108),c=r(119),d=r(121),h=r(862);n({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),r=c(e),n=h(e,0);return n.length=l(n,e,e,r,0,void 0===t?1:d(t)),n}})},861:function(t,e,r){"use strict";var n=r(18),l=r(364),o=r(119),c=r(70),d=n.TypeError,h=function(t,e,source,r,n,m,f,v){for(var element,y,x=n,_=0,w=!!f&&c(f,v);_<r;){if(_ in source){if(element=w?w(source[_],_,e):source[_],m>0&&l(element))y=o(element),x=h(t,e,element,y,x,m-1)-1;else{if(x>=9007199254740991)throw d("Exceed the acceptable array length");t[x]=element}x++}_++}return x};t.exports=h},862:function(t,e,r){var n=r(863);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},863:function(t,e,r){var n=r(18),l=r(364),o=r(259),c=r(89),d=r(49)("species"),h=n.Array;t.exports=function(t){var e;return l(t)&&(e=t.constructor,(o(e)&&(e===h||l(e.prototype))||c(e)&&null===(e=e[d]))&&(e=void 0)),void 0===e?h:e}},864:function(t,e,r){r(358)("flat")},865:function(t,e,r){"use strict";r(772)},866:function(t,e,r){var n=r(105)(!1);n.push([t.i,".page[data-v-0f77d27e]{padding-bottom:1rem;padding-top:1rem;margin-top:-1rem}.page[data-v-0f77d27e] header .col{margin-bottom:1em}.context-label[data-v-0f77d27e]{font-size:.875rem}@media(min-width: 1920px){.context-label[data-v-0f77d27e]{font-size:.875vw}}",""]),t.exports=n}}]); //# sourceMappingURL=4ba6525.modern.js.map