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EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;AACA;AACA;;AAEA,2EAAe;EACfC,IAAA;EAEAC,KAAA;IACAC,KAAA;MAAAC,IAAA,EAAAC,KAAA,CAAAC,MAAA;IAAA;IACA3B,QAAA;MAAAyB,IAAA,EAAAG,OAAA;MAAAC,OAAA;IAAA;EACA;EAEAC,MAAA,GAAAV,0BAAA;EAEAW,UAAA;IACAC,UAAA,WAAAA,WAAA;MAAA;IAAA;EACA;EAEAxD,IAAA,WAAAA,KAAA;IACA;MACAgB,OAAA,GACA;QAAAyC,SAAA;QAAAC,OAAA,OAAAnB,EAAA;MAAA,EACA;MACAnB,eAAA;MACAD,cAAA;QACAwC,SAAA;QACAC,eAAA;QACAC,aAAA;QACAC,aAAA;QACAC,SAAA;MACA;MACA9C,UAAA;MACA+C,QAAA;MACAnC,OAAA;MACAC,KAAA;IACA;EACA;EAEA1B,KAAA;IACA4C,KAAA,WAAAA,MAAA;MACA,KAAA5B,eAAA,GAAA6C,CAAA,CAAAC,GAAA,MAAAlB,KAAA;IACA;EACA;EAEAzC,OAAA;IAEA;AACA;AACA;AACA;IACAF,UAAA,WAAAA,WAAA;MACA,KAAAe,eAAA,GAAA6C,CAAA,CAAAC,GAAA,MAAAlB,KAAA;MACA,IAAAmB,MAAA,QAAAlE,cAAA;MACA,KAAAgB,UAAA,QAAAmD,aAAA,CAAAD,MAAA;;MAEA;MACA,KAAAH,QAAA,QAAA/C,UAAA,CAAAoD,MAAA,IACAJ,CAAA,CAAAK,OAA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,CAAA8C,kBAAA,CAAAN,IAAA,YAAAC,GAAA;QAEA,IAAA7D,IAAA,GAAA6D,GAAA,CAAAH,IAAA,CAAAI,IAAA;QACA,KAAA/D,uBAAA,CAAAC,IAAA;UACA;UACA;QACA;;QAEA;QACAA,IAAA,IAAA6D,GAAA,CAAApC,KAAA,IAAA8B,eAAA,CAAAQ,IAAA;UACA9B,KAAA;UACA+B,IAAA,KAAAZ,MAAA,CAAApD,IAAA,QAAAoD,MAAA,CAAAS,GAAA,CAAApC,KAAA;UACAiC,IAAA,EAAA1D,IAAA;UACAyB,KAAA,EAAAoC,GAAA,CAAApC,KAAA;UACApC,GAAA,SAAAW,IAAA;UACAmE,MAAA,EAAApE,uBAAA,CAAAC,IAAA;QACA;MACA;;MAEA;MACAuD,eAAA,GAAApC,CAAA,CAAAK,OAAA,CAAA+B,eAAA;;MAEA;MACA,OAAAD,YAAA,CAAAF,MAAA,CAAAG,eAAA;IACA;EACA;AACA,CAAC;;ACxUmL,CAAC,yFAAe,sCAAG,EAAC;;;;ACAlG;AACpC;AACL;AAC7D,CAA4F;;;AAG5F;AAC6F;AAC7F,gBAAgB,sCAAU;AAC1B,EAAE,oDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,oDAAe","sources":["webpack://finnish-art/./src/components/Base/FacetsMixin.js","webpack://finnish-art/./src/components/SearchOptions/FacetCategories.vue","webpack://finnish-art/./src/components/SearchOptions/FacetCategories.vue?fdeb","webpack://finnish-art/src/components/SearchOptions/FacetCategories.vue","webpack://finnish-art/./src/components/SearchOptions/FacetCategories.vue?9d7f","webpack://finnish-art/./src/components/SearchOptions/FacetCategories.vue?0ad0"],"sourcesContent":["import { createNamespacedHelpers } from 'vuex';\n\nconst mapStateFacets = createNamespacedHelpers('facets').mapState;\nconst mapStateUx = createNamespacedHelpers('ux').mapState;\n\nexport default {\n\n computed: {\n ...mapStateFacets({\n artworksFacetsPublicOnly: state => state.artworksFacetsPublicOnly,\n artworksFacetsViewAll: state => state.artworksFacetsViewAll\n }),\n ...mapStateUx({\n useProfile: state => state.useProfile\n })\n },\n\n data: function () {\n return {\n artworksFacets: []\n };\n },\n\n mounted: function () {\n this.artworksFacets = this.getArtworksFacetsByUseProfile(this.useProfile);\n },\n\n watch: {\n useProfile: function () {\n this.artworksFacets = this.getArtworksFacetsByUseProfile(this.useProfile);\n },\n\n artworksFacets: function () {\n this.initFacets();\n },\n\n artworksFacetsPublicOnly: function () {\n if (this.useProfile && this.useProfile.match('PublicOnly')) {\n this.artworksFacets = this.artworksFacetsPublicOnly;\n }\n },\n\n artworksFacetsViewAll: function () {\n // set `artworksFacets` by ViewAll if UseProfile is not specifically PublicOnly\n if (!(this.useProfile && this.useProfile.match('PublicOnly'))) {\n this.artworksFacets = this.artworksFacetsViewAll;\n }\n }\n },\n\n methods: {\n initFacets: function () {}, // implement this in view\n\n getArtworksFacetsByUseProfile: function (useProfile) {\n if (useProfile && useProfile.match('PublicOnly')) {\n return this.artworksFacetsPublicOnly;\n }\n else {\n return this.artworksFacetsViewAll;\n }\n }\n }\n};\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"div\",\n { staticClass: \"facet-categories\" },\n [\n _c(\"dx-tree-list\", {\n attrs: {\n \"key-expr\": \"key\",\n \"parent-id-expr\": \"parent\",\n \"no-data-text\": \"\",\n width: \"auto\",\n height: \"auto\",\n \"auto-expand-all\": false,\n \"column-auto-width\": false,\n columns: _vm.columns,\n \"data-source\": _vm.categories,\n scrolling: _vm.facetScrolling,\n \"selected-row-keys\": _vm.selectedRowKeys,\n selection: { mode: \"multiple\", allowSelectAll: false },\n \"show-column-headers\": false,\n disabled: _vm.disabled,\n },\n on: {\n \"selection-changed\": _vm.onSelectionChanged,\n \"row-prepared\": _vm.onRowPrepared,\n \"content-ready\": _vm.onContentReady,\n },\n }),\n !_vm.showAll && _vm.ready\n ? _c(\"plus-more\", {\n on: { click: _vm.onShowAll },\n scopedSlots: _vm._u(\n [\n {\n key: \"tooltip\",\n fn: function () {\n return [\n _c(\"div\", [_vm._v(_vm._s(_vm.$t(\"common.showAll\")))]),\n ]\n },\n proxy: true,\n },\n ],\n null,\n false,\n 2268528921\n ),\n })\n : _vm._e(),\n !_vm.ready ? _c(\"div\", { staticClass: \"button is-loading\" }) : _vm._e(),\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!../../../node_modules/pug-plain-loader/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FacetCategories.vue?vue&type=template&id=cf7aa13c&lang=pug\"","\n\n\n\n\n","import mod from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FacetCategories.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FacetCategories.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FacetCategories.vue?vue&type=template&id=cf7aa13c&lang=pug\"\nimport script from \"./FacetCategories.vue?vue&type=script&lang=js\"\nexport * from \"./FacetCategories.vue?vue&type=script&lang=js\"\nimport style0 from \"./FacetCategories.vue?vue&type=style&index=0&id=cf7aa13c&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["createNamespacedHelpers","mapStateFacets","mapState","mapStateUx","computed","_objectSpread","artworksFacetsPublicOnly","state","artworksFacetsViewAll","useProfile","data","artworksFacets","mounted","getArtworksFacetsByUseProfile","watch","initFacets","match","methods","render","_vm","_c","_self","staticClass","attrs","width","height","columns","categories","scrolling","facetScrolling","selectedRowKeys","selection","mode","allowSelectAll","disabled","on","onSelectionChanged","onRowPrepared","onContentReady","showAll","ready","click","onShowAll","scopedSlots","_u","key","fn","_v","_s","$t","proxy","_e","staticRenderFns","_withStripped","FacetsMixin","classificationRelations","name","props","value","type","Array","Object","Boolean","default","mixins","components","DxTreeList","dataField","caption","useNative","scrollByContent","scrollByThumb","showScrollbar","direction","maxCount","_","map","facets","getCategories","length","orderBy","Count","$emit","selectedRowsData","event","element","rowElement","count","setAttribute","Field","_this","querySelectorAll","forEach","row","el","getRowCountIndicator","child","querySelector","appendChild","getAttribute","sub","line","document","createElement","className","lim","style","background","concat","marginLeft","dxCategories","dxSubCategories","classifications","find","Name","compact","Hits","hit","trim","push","Text","take","subClassifications","parent"],"sourceRoot":""}