UNPKG

@europeana/portal

Version:
2 lines 26.2 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[97],{1053:function(e,t,r){"use strict";r.r(t);var n=r(6),o=(r(21),r(42),r(22),r(14),r(58),r(38),r(43),r(81),r(141)),l=r.n(o),c=r(955),h=r.n(c),d=r(82),f=r(126),v=r(160),m=r(16),F=(r(253),r(28),r(107),{name:"ColourSwatch",props:{hexCode:{type:String,default:""}}}),y=r(40),O=Object(y.a)(F,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"colour-palette",style:"backgroundColor: "+e.hexCode,attrs:{"data-qa":"colour swatch "+e.hexCode}})}),[],!1,null,null,null).exports,S=r(1047),w=r(977),_=r(24),C=r(811);function T(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?T(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):T(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var E={name:"SideFacetDropdown",components:{BFormTags:S.a,BFormTag:w.a,ColourSwatch:O,AlertMessage:()=>r.e(11).then(r.bind(null,658)),LoadingSpinner:()=>r.e(4).then(r.bind(null,660))},mixins:[C.a],props:{name:{type:String,required:!0},selected:{type:[Array,String],default:()=>[]},type:{type:String,required:!0},staticFields:{type:Array,default:null},search:{type:Boolean,default:!1},groupBy:{type:Array,default:null}},data(){return{searchFacet:"",RADIO:"radio",CHECKBOX:"checkbox",MAXIMUM_VALUES_DISPLAY_COUNT:50,MAXIMUM_VALUES_RETRIEVAL_COUNT:125e3,preSelected:null,fetched:!!this.staticFields,fields:this.staticFields||[],selectedOptions:this.selected||[],activeSearchInput:!1,mayFetch:!1,fetching:!1}},fetch(){return this.staticFields?(this.fields=this.staticFields,this.fetched=!0,Promise.resolve()):!this.mayFetch||this.fetching?Promise.resolve():(this.fetching=!0,this.queryFacet().then((e=>{this.fetching=!1,this.fields=e||[],this.fetched=!0})))},computed:A({searchable(){return this.search&&this.fields.length>0},selectedFilters(){return{[this.name]:[].concat(this.selected)}},groupedOptions(){if(!this.groupBy)return this.fields;var e=this.groupBy.map((e=>({label:"*".concat(e,"*"),substring:e,count:0}))),t=function(t){var r=e.find((e=>t.label.includes(e.substring)));r?r.count=r.count+t.count:e.push(t)};for(var r of this.fields)t(r);return e.filter((e=>e.count>0)).map((e=>({label:e.label,count:e.count})))},sortedOptions(){if(this.isRadio)return this.fields.slice(0).sort(((a,b)=>this.tFacetOption(this.name,a).localeCompare(this.tFacetOption(this.name,b))));var e=this.groupedOptions,t=(a,b)=>b.count-a.count,r=e.filter((e=>this.selected.includes(e.label))).sort(t),n=e.filter((e=>!this.selected.includes(e.label))).sort(t);return r.concat(n)},availableSortedOptions(){if(!this.fetched)return[];var e=this.criteria,t=this.selectedOptions.map((option=>Object(_.k)(option.replace(/^"(.*)"$/,"$1")))),r=this.sortedOptions.filter((option=>-1===t.indexOf(this.isRadio?option:option.label)));return e?r.filter((option=>{var t=this.isRadio?option:option.label,r=this.tFacetOption(this.name,t).toLowerCase().indexOf(e)>-1,n=t.toLowerCase().indexOf(e)>-1;return r||n})):r},availableSortedDisplayableOptions(){return this.search&&this.availableSortedOptions.length>this.MAXIMUM_VALUES_DISPLAY_COUNT?this.availableSortedOptions.slice(0,this.MAXIMUM_VALUES_DISPLAY_COUNT):this.availableSortedOptions},truncated(){return this.search&&this.availableSortedOptions.length-this.MAXIMUM_VALUES_DISPLAY_COUNT>=0},truncatedAmount(){return this.truncated?this.availableSortedOptions.length-this.MAXIMUM_VALUES_DISPLAY_COUNT:0},isColourPalette(){return"COLOURPALETTE"===this.name},facetName(){return this.tFacetName(this.name)},facetNameNoSpaces(){return this.tFacetName(this.name).replace(/\s/g,"-").toLowerCase()},isRadio(){return this.type===this.RADIO},collection(){return this.$store.getters["search/collection"]},theme(){return v.a.find((e=>e.qf===this.collection))},moreOptionsName(){return this.tFacetKey(this.name,"moreName")},themeSpecificFieldLabelPattern(){var e,t;return null===(e=((null===(t=this.theme)||void 0===t?void 0:t.facets)||[]).find((e=>e.field===this.name)))||void 0===e?void 0:e.label},paramsForFacets(){var e=A(A({},this.apiParams),{},{rows:0,profile:"facets",facet:this.name});return this.search&&(e["f.".concat(this.name,".facet.limit")]=this.MAXIMUM_VALUES_RETRIEVAL_COUNT),e},criteria(){return this.searchFacet.trim().toLowerCase()},activeLabel(){return this.selectedFilters[this.name].length>0||this.activeSearchInput}},Object(d.c)({apiOptions:e=>e.search.apiOptions,apiParams:e=>e.search.apiParams})),watch:{selected(){this.init()},"$route.query.reusability":"refetch","$route.query.api":"refetch","$route.query.query":"refetch","$route.query.qf":"refetch"},mounted(){this.init()},methods:{queryFacet(){var e=this;return this.$apis.record.search(this.paramsForFacets,A(A({},this.apiOptions),{},{locale:this.$i18n.locale})).then((e=>{var t,r;return(null===(t=e.facets)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.fields)||[]})).then((e=>this.filterFacetFields(e))).catch(function(){var t=Object(m.a)((function*(t){yield e.$store.dispatch("search/updateForFailure",t)}));return function(e){return t.apply(this,arguments)}}())},filterFacetFields(e){return"REUSABILITY"===this.name?e=e.filter((e=>"uncategorized"!==e.label)):"contentTier"===this.name&&(e=this.filterContentTierFields(e)),this.themeSpecificFieldLabelPattern&&(e=e.filter((e=>this.themeSpecificFieldLabelPattern.test(e.label)))),e},filterContentTierFields(e){var t=["0"];return this.collection?t=["2","3","4"]:this.$store.getters["entity/id"]&&(t=this.$store.getters["entity/id"].includes("/organization/")?null:["1","2","3","4"]),t&&(e=e.filter((e=>t.includes(e.label)))),e},enquoteFacetFieldFilterValue(e){return f.e.includes(this.name)||this.groupBy?e:'"'.concat(Object(_.e)(e),'"')},refetch(){this.$nextTick((()=>{this.fetched=!1,this.$fetch()}))},prefetch(){return this.fetched?Promise.resolve():(this.mayFetch=!0,this.$fetch().then((()=>{this.mayFetch=!1})))},init(){this.isRadio&&Array.isArray(this.selected)?this.preSelected=this.selected[0]:this.preSelected=this.selected,this.selectedOptions=this.selected||[]},removeOption(e){var{tag:t,removeTag:r}=e;r(t),this.$emit("changed",this.name,this.selected.filter((e=>e!==t)))},selectOption(e){var{option:option,addTag:t,removeTag:r}=e;this.isRadio&&1===this.selectedOptions.length&&r(this.selectedOptions[0]);var n=this.isRadio?option:option.label;t(n),this.searchFacet="",this.$emit("changed",this.name,this.isRadio?n:this.selected.concat(this.enquoteFacetFieldFilterValue(n)))},shownDropdown(){this.searchable&&this.setSearchFocus()},setSearchFocus(){this.$refs["search-input"].focus()},resetDropdown(){this.searchFacet="",this.$refs.dropdown.$refs.menu.scrollTop=0,this.mayFetch=!1}}},$=E,P=r(978),x=r.n(P),k=Object(y.a)($,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("b-form-tags",{staticClass:"side-filter-autosuggest",attrs:{id:e.facetNameNoSpaces,"no-outer-focus":"",limit:e.isRadio?1:null},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.tags,o=t.addTag,l=t.removeTag;return[r("label",{staticClass:"facet-label",class:{"facet-label-active":e.activeLabel}},[e._v("\n "+e._s(e.facetName)+"\n ")]),e._v(" "),e.$fetchState.error?r("b-container",[r("AlertMessage",{attrs:{error:e.$fetchState.error.message}})],1):[n.length>0?r("ul",e._l(n,(function(t){return r("li",{key:t,staticClass:"list-inline-item mw-100"},[r("b-form-tag",{staticClass:"remove-button",attrs:{"data-qa":"filter badge",pill:"",variant:"primary-light"},on:{remove:function(r){return e.removeOption({tag:t,removeTag:l})}}},[r("span",[e._v("\n "+e._s(e.tFacetOption(e.name,t,!0))+"\n ")])])],1)})),0):e._e(),e._v(" "),r("b-dropdown",{ref:"dropdown",attrs:{block:"","no-flip":"","data-qa":e.name+" side facet dropdown button"},on:{show:e.prefetch,shown:e.shownDropdown,hidden:e.resetDropdown},nativeOn:{mouseover:function(t){return e.prefetch.apply(null,arguments)},focusin:function(t){return e.prefetch.apply(null,arguments)}},scopedSlots:e._u([{key:"button-content",fn:function(){return[r("span",{staticClass:"select-label"},[e._v("\n "+e._s(e.tFacetKey(e.name,"select"))+"\n ")])]},proxy:!0}],null,!0)},[e._v(" "),e.searchable?[r("b-dropdown-form",{on:{submit:function(e){return e.stopPropagation(),e.preventDefault(),function(){}.apply(null,arguments)}}},[r("b-form-group",{attrs:{"label-for":e.facetNameNoSpaces+"-search-input"}},[r("b-form-input",{ref:"search-input",attrs:{id:e.facetNameNoSpaces+"-search-input",type:"text",autocomplete:"off",placeholder:e.$t("sideFilters.search"),"data-qa":"side facet dropdown search input"},on:{input:function(t){e.activeSearchInput=!0},blur:function(t){e.activeSearchInput=!1}},model:{value:e.searchFacet,callback:function(t){e.searchFacet=t},expression:"searchFacet"}}),e._v(" "),r("span",{staticClass:"icon-search"})],1)],1)]:e._e(),e._v(" "),e._l(e.availableSortedDisplayableOptions,(function(option,t){return r("b-dropdown-item-button",{key:t,attrs:{"data-qa":(e.isRadio?option:option.label)+" "+e.name+" field"},on:{click:function(t){return e.selectOption({option:option,addTag:o,removeTag:l})}}},[e.isRadio?r("span",[e._v("\n "+e._s(e.tFacetOption(e.name,option))+"\n ")]):[e.isColourPalette?r("ColourSwatch",{attrs:{"hex-code":option.label}}):e._e(),e._v(" "),r("span",[e._v("\n "+e._s(e.tFacetOption(e.name,option.label))+"\n ")]),e._v(" "),r("span",[e._v("("+e._s(e._f("localise")(option.count))+")")])]],2)})),e._v(" "),e.truncated?[r("b-dropdown-divider"),e._v(" "),r("b-dropdown-item-button",{staticClass:"more-facet-values-button",attrs:{"data-qa":"more facet values available button"},nativeOn:{"!click":function(t){return t.stopPropagation(),e.setSearchFocus.apply(null,arguments)}}},[r("i18n",{attrs:{path:"facets.moreOptions",tag:"span"}},[r("span",{staticClass:"font-weight-bold"},[e._v("\n "+e._s(e._f("localise")(e.truncatedAmount))+"\n ")]),e._v("\n "+e._s(e.moreOptionsName))])],1)]:e._e(),e._v(" "),e.$fetchState.pending?r("b-dropdown-text",{staticClass:"text-center"},[r("LoadingSpinner")],1):e.fetched&&0===e.availableSortedDisplayableOptions.length?r("b-dropdown-text",[e._v("\n "+e._s(e.$t("sideFilters.noOptions"))+"\n ")]):e._e()],2)]]}}]),model:{value:e.selectedOptions,callback:function(t){e.selectedOptions=t},expression:"selectedOptions"}})],1)}),[],!1,null,null,null);"function"==typeof x.a&&x()(k);var R=k.exports;function D(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function L(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?D(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):D(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var j={name:"SideFilters",components:{ClientOnly:l.a,SideFacetDropdown:R,SideDateFilter:()=>r.e(112).then(r.bind(null,1117)),SideSwitchFilter:()=>Promise.all([r.e(17),r.e(102)]).then(r.bind(null,1118))},props:{route:{type:Object,default:()=>({name:"search"})}},data:()=>({DEFAULT_FACET_NAMES:["TYPE","REUSABILITY","COUNTRY","LANGUAGE","PROVIDER","DATA_PROVIDER","COLOURPALETTE","IMAGE_ASPECTRATIO","IMAGE_SIZE","MIME_TYPE","RIGHTS","contentTier"],SEARCHABLE_FACETS:["COUNTRY","LANGUAGE","PROVIDER","DATA_PROVIDER","COLOURPALETTE","MIME_TYPE","CREATOR","proxy_dc_type.en","proxy_dc_format.en","proxy_dcterms_medium.en"],hideFilterSheet:!0}),computed:L(L(L({},Object(d.c)({collectionFacetEnabled:e=>e.search.collectionFacetEnabled,showFiltersSheet:e=>e.search.showFiltersSheet,totalResults:e=>e.search.totalResults,userParams:e=>e.search.userParams})),Object(d.b)({collection:"search/collection"})),{},{filters(){var e,t,r,n=Object(f.b)(null===(e=this.$store.state.search.userParams)||void 0===e?void 0:e.qf);return null!==(t=this.$store.state.search.userParams)&&void 0!==t&&t.reusability&&(n.REUSABILITY=this.$store.state.search.userParams.reusability.split(",")),null!==(r=this.$store.state.search.apiParams)&&void 0!==r&&r.api&&(n.api=this.$store.state.search.apiParams.api),n},resettableFilters(){var e=this.filterableFacets.map((e=>e.name)).filter((e=>this.filters[e]));return this.contentTierFacetSwitch&&this.filters.contentTier&&e.push("contentTier"),this.enableApiFilter&&this.filters.api!==this.apiFilterDefaultValue&&e.push("api"),this.enableDateFilter&&this.filters[this.dateFilterField]&&e.push(this.dateFilterField),e},theme(){return v.a.find((e=>e.qf===this.collection))},themeSpecificFacetNames(){var e;return((null===(e=this.theme)||void 0===e?void 0:e.facets)||[]).map((e=>e.field))},facetNames(){return this.themeSpecificFacetNames.concat(this.DEFAULT_FACET_NAMES)},resetButtonDisabled(){return this.$store.state.search.liveQueries.length>0},filterableFacets(){var e=this.facetNames.map((e=>({name:e,search:this.SEARCHABLE_FACETS.includes(e)})));return this.collectionFacetEnabled&&e.unshift({name:"collection",staticFields:v.a.map((e=>e.qf))}),this.contentTierFacetSwitch&&(e=e.filter((e=>"contentTier"!==e.name))),e},contentTierFacetSwitch(){return!this.$store.getters["search/collection"]&&!this.$store.getters["entity/id"]},boost(){return this.userParams.boost},qf(){return this.userParams.qf},query(){return this.userParams.query},reusability(){return this.userParams.reusability},api(){return this.userParams.api},view(){return this.userParams.view},page(){return Number(this.$route.query.page||1)},enableApiFilter(){var e,t;return!(null===(e=this.theme)||void 0===e||null===(t=e.filters)||void 0===t||!t.api)},apiFilterDefaultValue(){var e,t,r;return(null===(e=this.theme)||void 0===e||null===(t=e.filters)||void 0===t||null===(r=t.api)||void 0===r?void 0:r.default)||null},enableDateFilter(){var e,t;return!(null===(e=this.theme)||void 0===e||null===(t=e.filters)||void 0===t||!t.date)},dateFilterField(){var e,t,r;return(null===(e=this.theme)||void 0===e||null===(t=e.filters)||void 0===t||null===(r=t.date)||void 0===r?void 0:r.field)||null},dateFilter(){var e=this.filters[this.dateFilterField];if(!e||e.length<1)return{start:null,end:null,specific:this.isCheckedSpecificDate};var t=Object(f.c)(e[0]);return t?L(L({},t),{},{specific:!1}):{start:e[0],end:null,specific:!0}},totalResultsLocalised(){return this.$options.filters.localise(this.totalResults)}}),watch:{showFiltersSheet(e){e?this.hideFilterSheet=!1:setTimeout((()=>this.hideFilterSheet=!0),300)}},created(){this.$store.commit("search/setShowFiltersToggle",!0)},beforeDestroy(){this.$store.commit("search/setShowFiltersToggle",!1)},methods:{facetDropdownType:e=>"collection"===e||"api"===e?"radio":"checkbox",changeFacet(e,t){void 0===this.filters[e]&&(Array.isArray(t)&&0===t.length||!t)||h()(this.filters[e],t)||this.rerouteSearch(this.queryUpdatesForFacetChanges({[e]:t}))},queryUpdatesForFacetChanges(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},this.filters);for(var r in e)t[r]=e[r];if(Object.prototype.hasOwnProperty.call(e,"collection")||!this.collection)for(var n in t)"collection"!==n&&!this.DEFAULT_FACET_NAMES.includes(n)&&this.resettableFilters.includes(n)&&(t[n]=[]);return Object.prototype.hasOwnProperty.call(e,"collection")&&Object.prototype.hasOwnProperty.call(t,"contentTier")&&(t.contentTier=[]),this.queryUpdatesForFilters(t)},queryUpdatesForFilters(e){var t={qf:[],page:1};for(var r in e)switch(r){case"REUSABILITY":t.reusability=e[r].length>0?e[r].join(","):null;break;case"api":t.api=e[r];break;default:t.qf=t.qf.concat(this.queryUpdatesForFilter(r,e[r]))}return t},queryUpdatesForFilter:(e,t)=>[].concat(t).filter((e=>null!=e)).map((t=>"".concat(e,":").concat(t))),rerouteSearch(e){var t=this.updateCurrentSearchQuery(e);this.$goto(this.$path(L(L({},this.route),{query:t}))),e.qf&&e.qf.forEach((filter=>this.$matomo&&this.$matomo.trackEvent("Filters","Filter selected",filter))),e.reusability&&this.$matomo&&this.$matomo.trackEvent("Filters","Reusability filter selected",e.reusability)},updateCurrentSearchQuery(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=L(L({},{boost:this.boost,page:this.page,qf:this.qf,query:this.query,reusability:this.reusability,view:this.view,api:this.api}),e);for(var r in t)null===t[r]&&delete t[r];return t},resetFilters(){var e=Object.assign({},this.filters);for(var t of this.resettableFilters)e[t]=[];return this.rerouteSearch(this.queryUpdatesForFilters(e))},hasResettableFilters(){return this.resettableFilters.length>0},dateFilterSelected(e,t){var r=[];t.specific?t.start&&(r=[t.start]):(t.start||t.end)&&(r=[Object(f.d)(t)]),this.isCheckedSpecificDate=t.specific,this.changeFacet(e,r)},toggleFilterSheet(){this.$store.commit("search/setShowFiltersSheet",!this.$store.state.search.showFiltersSheet)},sideFacetDropdownGroupBy:e=>"RIGHTS"===e?["/CNE/","/InC-EDU/","/InC-OW-EU/","/InC/","/licenses/by-nc-nd/","/licenses/by-nc-sa/","/licenses/by-nc/","/licenses/by-nd/","/licenses/by-sa/","/licenses/by/","/NoC-NC/","/NoC-OKLR/","/publicdomain/mark/","/publicdomain/zero/","/rights/out-of-copyright-non-commercial/","/rights/rr-f/","/rights/unknown/"]:null}},I=j,U=(r(979),Object(y.a)(I,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-col",{staticClass:"col-filters col-3",class:{open:e.showFiltersSheet,hide:e.hideFilterSheet}},[r("div",{staticClass:"filters-backdrop",on:{click:e.toggleFilterSheet}}),e._v(" "),r("b-container",{staticClass:"side-filters",attrs:{"data-qa":"side filters"}},[r("client-only",[r("b-row",{staticClass:"border-bottom border-top d-flex justify-content-between align-items-center flex-nowrap"},[e.totalResults?r("div",{staticClass:"filters-title",attrs:{"data-qa":"total results"}},[e._v("\n "+e._s(e.$tc("items.itemCount",e.totalResultsLocalised,{count:e.totalResultsLocalised}))+"\n "),r("div",{staticClass:"visually-hidden",attrs:{role:"status"}},[e._v("\n "+e._s(e.$t("searchHasLoaded",[e.totalResultsLocalised]))+"\n ")])]):r("h2",{staticClass:"filters-title"},[e._v("\n "+e._s(e.$t("filterResults"))+"\n ")]),e._v(" "),e.hasResettableFilters()?r("button",{staticClass:"btn btn-outline-primary mr-3",attrs:{disabled:e.resetButtonDisabled,"data-qa":"reset filters button"},on:{click:e.resetFilters}},[e._v("\n "+e._s(e.$t("reset"))+"\n ")]):e._e(),e._v(" "),r("b-button",{staticClass:"button-icon-only icon-clear mx-3",attrs:{"data-qa":"close filters button",variant:"light-flat","aria-label":e.$t("header.closeSidebar")},on:{click:e.toggleFilterSheet}})],1),e._v(" "),r("b-row",{staticClass:"mb-3 mt-4"},[r("b-col",{attrs:{"data-qa":"search filters"}},[r("div",{staticClass:"position-relative"},[e.enableApiFilter?r("SideSwitchFilter",{attrs:{value:e.filters.api,name:"api",label:e.$t("facets.api.switch"),tooltip:e.$t("facets.api.switchMoreInfo"),"checked-value":"fulltext","unchecked-value":"metadata","default-value":e.apiFilterDefaultValue},on:{changed:e.changeFacet}}):e._e(),e._v(" "),e.enableDateFilter?r("SideDateFilter",{attrs:{name:e.dateFilterField,start:e.dateFilter.start,end:e.dateFilter.end,specific:e.dateFilter.specific},on:{dateFilter:e.dateFilterSelected}}):e._e(),e._v(" "),e._l(e.filterableFacets,(function(t){return r("SideFacetDropdown",{key:t.name,attrs:{name:t.name,type:e.facetDropdownType(t.name),selected:e.filters[t.name],"static-fields":t.staticFields,search:t.search,"group-by":e.sideFacetDropdownGroupBy(t.name),role:"search","aria-label":t.name},on:{changed:e.changeFacet}})})),e._v(" "),e.contentTierFacetSwitch?r("SideSwitchFilter",{attrs:{value:e.filters.contentTier,name:"contentTier",label:e.$t("facets.contentTier.options.0"),"checked-value":'"0"',"unchecked-value":null,"default-value":null},on:{changed:e.changeFacet}}):e._e()],2)])],1)],1)],1)],1)}),[],!1,null,"34be82f6",null));t.default=U.exports},811:function(e,t,r){"use strict";r(14),r(28),r(38);var n=r(160),o=r(24),l=(e,t,r)=>{var n=null;return e.$te(t)?n=r(null):e.$i18n.locale!==e.$i18n.fallbackLocale&&e.$te(t,e.$i18n.fallbackLocale)&&(n=r(e.$i18n.fallbackLocale)),n};t.a={methods:{tNull(e,t){return l(this,e,(r=>this.$t(e,r,t)))},tcNull(e,t,r){return l(this,e,(n=>this.$tc(e,t,n,r)))},tFacetKey(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=e.replace(/\..*$/,""),o=this.$store.getters["search/collection"];if(o){var l=this.tcNull("collections.".concat(o,".facets.").concat(n,".").concat(t),r);if(l)return l}return this.tcNull("facets.".concat(n,".").concat(t),r)||n},tFacetName(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.tFacetKey(e,"name",t)},tFacetOption(e,t,r){var l,c,h=this.$store.getters["search/collection"],d=n.a.find((e=>e.qf===h)),f=null===(l=((null==d?void 0:d.facets)||[]).find((t=>t.field===e)))||void 0===l?void 0:l.label,v=()=>{var n=t;r&&(n=Object(o.k)(n.replace(/^"(.*)"$/,"$1"))),f&&(n=n.replace(f,""));var l="facets.".concat(e,".options.").concat(n);return this.tNull(l)||n};return"MIME_TYPE"===e?(c=v())!==t?c:t.split("/")[1].replace(/^x-/,"").toUpperCase():v()}}}},812:function(e,t,r){var content=r(980);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(106).default)("65be4708",content,!0,{sourceMap:!1})},978:function(e,t){},979:function(e,t,r){"use strict";r(812)},980:function(e,t,r){var n=r(105)(!1);n.push([e.i,'[class^=icon-][data-v-34be82f6],[class*=" icon-"][data-v-34be82f6]{font-family:"icomoon";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;vertical-align:middle;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-accept[data-v-34be82f6]::before{content:""}.icon-ic-add[data-v-34be82f6]::before{content:""}.icon-arrow-down[data-v-34be82f6]::before{content:""}.icon-back[data-v-34be82f6]::before{content:""}.icon-cancel-circle[data-v-34be82f6]::before{content:""}.icon-caret-down[data-v-34be82f6]::before{content:""}.icon-check-circle[data-v-34be82f6]::before{content:""}.icon-clear[data-v-34be82f6]::before{content:""}.icon-close[data-v-34be82f6]::before{content:""}.icon-ic-download[data-v-34be82f6]::before{content:""}.icon-edit[data-v-34be82f6]::before{content:""}.icon-external-link[data-v-34be82f6]::before{content:""}.icon-facebook[data-v-34be82f6]::before{content:""}.icon-ic-feedback[data-v-34be82f6]::before{content:""}.icon-file[data-v-34be82f6]::before{content:""}.icon-filter[data-v-34be82f6]::before{content:""}.icon-globe[data-v-34be82f6]::before{content:""}.icon-heart[data-v-34be82f6]::before{content:""}.icon-info[data-v-34be82f6]::before{content:""}.icon-info-outline[data-v-34be82f6]::before{content:""}.icon-instagram[data-v-34be82f6]::before{content:""}.icon-language[data-v-34be82f6]::before{content:""}.icon-license[data-v-34be82f6]::before{content:""}.icon-link[data-v-34be82f6]::before{content:""}.icon-linkedin[data-v-34be82f6]::before{content:""}.icon-pinterest[data-v-34be82f6]::before{content:""}.icon-push-pin[data-v-34be82f6]::before{content:""}.icon-reject[data-v-34be82f6]::before{content:""}.icon-search[data-v-34be82f6]::before{content:""}.icon-share[data-v-34be82f6]::before{content:""}.icon-ic-tag[data-v-34be82f6]::before{content:""}.icon-temporary-tag[data-v-34be82f6]::before{content:""}.icon-translate[data-v-34be82f6]::before{content:""}.icon-twitter[data-v-34be82f6]::before{content:""}.icon-3d[data-v-34be82f6]::before{content:""}.icon-sound[data-v-34be82f6]::before{content:""}.icon-text[data-v-34be82f6]::before{content:""}.icon-image[data-v-34be82f6]::before{content:""}.icon-video[data-v-34be82f6]::before{content:""}.icon-unavailable[data-v-34be82f6]::before{content:""}.icon-ic-move-vert[data-v-34be82f6]::before{content:""}.icon-ic-move-xy[data-v-34be82f6]::before{content:""}.icon-menu[data-v-34be82f6]::before{content:""}.filters-title[data-v-34be82f6]{font-size:.875rem;font-weight:600;line-height:1;margin:1.25rem 1rem}.col-filters[data-v-34be82f6]{flex-grow:0;padding:0;margin-top:-1rem}@media(max-width: 991px){.col-filters[data-v-34be82f6]{display:flex;position:fixed;right:0;top:0;bottom:0;padding-top:1rem;transition:right 300ms ease-in-out;z-index:1050;max-width:none;overflow:hidden}.col-filters .side-filters[data-v-34be82f6]{flex-shrink:0;margin-right:-320px;overflow-y:auto;width:320px;max-width:75vw;animation:appear-data-v-34be82f6 300ms ease-in-out;transition:margin-right 300ms ease-in-out}@keyframes appear-data-v-34be82f6{from{margin-right:-320px}to{margin-right:0}}.col-filters.hide[data-v-34be82f6]{display:none}.col-filters.open[data-v-34be82f6]{left:0}.col-filters.open .side-filters[data-v-34be82f6]{margin-right:0}.col-filters.open .filters-backdrop[data-v-34be82f6]{content:"";width:100%;height:100%;background-color:rgba(0,0,0,.7)}}@media(min-width: 992px){.col-filters[data-v-34be82f6]{max-width:320px;min-width:220px;min-height:31rem}.col-filters[data-v-34be82f6]::after{border-top:145px solid #fff;border-left:60px solid transparent;content:"";display:block;height:0;position:absolute;right:0;top:100%;width:0;z-index:1}.col-filters .filters-backdrop[data-v-34be82f6]{display:none}}.col-filters .side-filters[data-v-34be82f6]{background-color:#fff;height:100%}@media(min-width: 992px){.col-filters .icon-clear[data-v-34be82f6]{display:none}}.form-group[data-v-34be82f6]{margin-bottom:1.5rem}',""]),e.exports=n}}]); //# sourceMappingURL=f2987ab.modern.js.map