{"version":3,"sources":["webpack:///./resources/js/src/app/components/itemList/filter/ItemFilterTagList.vue?d0fb","webpack:///resources/js/src/app/components/itemList/filter/ItemFilterTagList.vue","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilterTagList.vue?334e","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilterTagList.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_l","tagList","tag","class","id","marginClasses","style","marginInlineStyles","on","click","$event","removeTag","attrs","_v","domProps","innerHTML","_s","name","length","resetAllTags","$translate","_e","_withStripped","component","options","__file"],"mappings":"kGAAA,IAAIA,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACTC,EAAKJ,EAAIK,MAAMD,IAAMF,EACzB,OAAOE,EACL,MACA,CAAEE,YAAa,6BACf,CACEN,EAAIO,GAAGP,EAAIQ,SAAS,SAASC,GAC3B,OAAOL,EACL,OACA,CACEM,MACE,0CACAD,EAAIE,GACJ,IACAX,EAAIY,cACNC,MAAOb,EAAIc,mBACXC,GAAI,CACFC,MAAO,SAASC,GACd,OAAOjB,EAAIkB,UAAUT,MAI3B,CACEL,EAAG,IAAK,CACNE,YAAa,cACba,MAAO,CAAE,cAAe,UAE1BnB,EAAIoB,GAAG,KACPhB,EAAG,OAAQ,CAAEiB,SAAU,CAAEC,UAAWtB,EAAIuB,GAAGd,EAAIe,cAIrDxB,EAAIoB,GAAG,KACPpB,EAAIQ,QAAQiB,QAAU,EAClBrB,EACE,OACA,CACEM,MACE,2CAEAV,EAAIY,cACNC,MAAOb,EAAIc,mBACXC,GAAI,CACFC,MAAO,SAASC,GACd,OAAOjB,EAAI0B,kBAIjB,CACE1B,EAAIoB,GACF,aACEpB,EAAIuB,GAAGvB,EAAI2B,WAAW,oCACtB,YAIR3B,EAAI4B,MAEV,IAIJ7B,EAAO8B,eAAgB,E,quBCjDvB,ICf+N,EDe/N,CACE,MAAF,CACI,UACJ,CACM,KAAN,MACM,QAFN,WAIQ,MAAR,KAGI,cACJ,CACM,KAAN,OACM,QAAN,MAEI,mBACJ,CACM,KAAN,OACM,QAAN,OAIE,SAAF,aACI,QAAJ,YAAM,OAAN,6BAGE,QA1BF,WA2BI,IAAJ,EACA,oEAEM,KAAN,2CAIE,QAAF,KAEI,UAFJ,SAEA,GAEM,KAAN,aAAQ,WAAR,IACM,KAAN,gBAGI,aARJ,WAUM,KAAN,yBACM,KAAN,iBAGA,aACA,4BAGA,aACA,cACA,mB,OE9DIC,EAAY,YACd,EACA/B,EHsDoB,IGpDpB,EACA,KACA,KACA,MAuBF+B,EAAUC,QAAQC,OAAS,wEACZ,UAAAF,E","file":"chunks/ceres-client-46.min.js","sourcesContent":["var render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\n    \"div\",\n    { staticClass: \"selected-filters clearfix\" },\n    [\n      _vm._l(_vm.tagList, function(tag) {\n        return _c(\n          \"span\",\n          {\n            class:\n              \"text-appearance selected-filter filter-\" +\n              tag.id +\n              \" \" +\n              _vm.marginClasses,\n            style: _vm.marginInlineStyles,\n            on: {\n              click: function($event) {\n                return _vm.removeTag(tag)\n              }\n            }\n          },\n          [\n            _c(\"i\", {\n              staticClass: \"fa fa-times\",\n              attrs: { \"aria-hidden\": \"true\" }\n            }),\n            _vm._v(\" \"),\n            _c(\"span\", { domProps: { innerHTML: _vm._s(tag.name) } })\n          ]\n        )\n      }),\n      _vm._v(\" \"),\n      _vm.tagList.length >= 2\n        ? _c(\n            \"span\",\n            {\n              class:\n                \"bg-appearance selected-filter reset-all\" +\n                \" \" +\n                _vm.marginClasses,\n              style: _vm.marginInlineStyles,\n              on: {\n                click: function($event) {\n                  return _vm.resetAllTags()\n                }\n              }\n            },\n            [\n              _vm._v(\n                \"\\n        \" +\n                  _vm._s(_vm.$translate(\"Ceres::Template.itemFilterReset\")) +\n                  \"\\n    \"\n              )\n            ]\n          )\n        : _vm._e()\n    ],\n    2\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","<template>\n    <div class=\"selected-filters clearfix\">\n        <span :class=\"'text-appearance selected-filter filter-' + tag.id + ' ' + marginClasses\" :style=\"marginInlineStyles\" v-for=\"tag in tagList\" @click=\"removeTag(tag)\">\n            <i class=\"fa fa-times\" aria-hidden=\"true\"></i> <span v-html=\"tag.name\" />\n        </span>\n\n        <span :class=\"'bg-appearance selected-filter reset-all' + ' '+ marginClasses\" :style=\"marginInlineStyles\" v-if=\"tagList.length >= 2\" @click=\"resetAllTags()\">\n            {{ $translate(\"Ceres::Template.itemFilterReset\") }}\n        </span>\n    </div>\n</template>\n\n<script>\nimport { mapState, mapMutations, mapActions } from \"vuex\";\n\nexport default {\n    props: {\n        facetData:\n        {\n            type: Array,\n            default()\n            {\n                return [];\n            }\n        },\n        marginClasses:\n        {\n            type: String,\n            default: null\n        },\n        marginInlineStyles:\n        {\n            type: String,\n            default: null\n        }\n    },\n\n    computed: mapState({\n        tagList: state => state.itemList.selectedFacets\n    }),\n\n    created()\n    {\n        if (!this.$store.state.itemList.facets?.length)\n        {\n            this.$store.commit(\"addFacets\", this.facetData);\n        }\n    },\n\n    methods:\n    {\n        removeTag(tag)\n        {\n            this.selectFacet({ facetValue: tag });\n            this.loadItemList();\n        },\n\n        resetAllTags()\n        {\n            this.resetAllSelectedFacets();\n            this.loadItemList();\n        },\n\n        ...mapMutations([\n            \"resetAllSelectedFacets\"\n        ]),\n\n        ...mapActions([\n            \"selectFacet\",\n            \"loadItemList\"\n        ])\n    }\n}\n</script>\n","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ItemFilterTagList.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!./ItemFilterTagList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ItemFilterTagList.vue?vue&type=template&id=6da91432&\"\nimport script from \"./ItemFilterTagList.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemFilterTagList.vue?vue&type=script&lang=js&\"\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\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/home/runner/work/plugin-ceres/plugin-ceres/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('6da91432')) {\n      api.createRecord('6da91432', component.options)\n    } else {\n      api.reload('6da91432', component.options)\n    }\n    module.hot.accept(\"./ItemFilterTagList.vue?vue&type=template&id=6da91432&\", function () {\n      api.rerender('6da91432', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/itemList/filter/ItemFilterTagList.vue\"\nexport default component.exports"],"sourceRoot":""}