{"version":3,"sources":["webpack:///./resources/js/src/app/mixins/componentId.mixin.js","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilterList.vue?8c6e","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilter.vue?db71","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilterPrice.vue?9960","webpack:///resources/js/src/app/components/itemList/filter/ItemFilterPrice.vue","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilterPrice.vue?d65f","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilterPrice.vue","webpack:///resources/js/src/app/components/itemList/filter/ItemFilter.vue","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilter.vue?f0bc","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilter.vue","webpack:///resources/js/src/app/components/itemList/filter/ItemFilterList.vue","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilterList.vue?6efa","webpack:///./resources/js/src/app/components/itemList/filter/ItemFilterList.vue"],"names":["KEYS","document","debug_component_ids","ComponentIdMixin","created","this","$options","_componentTag","$vnode","tag","_cid","node","prevNode","isNullOrUndefined","hasSiblings","$children","occurenceIndex","getOwnOccurenceIndex","$parent","potentialSiblings","potentialSibling","filter","indexOf","render","_vm","_h","$createElement","_c","_self","filterListBulk","_l","facets","facet","key","id","attrs","paddingClasses","paddingInlineStyles","directives","name","rawName","value","length","expression","staticClass","href","_v","_s","$translate","class","isLoading","type","_withStripped","cssClass","facetName","_uid","disabled","count","domProps","checked","isSelected","on","change","$event","updateFacet","style","for","_e","currency","priceMin","placeholder","focus","selectAll","input","target","composing","priceMax","isDisabled","title","click","triggerFilter","icon","loading","component","options","__file"],"mappings":"guCAOA,IAAMA,EAAO,GAEW,oBAAbC,WAEPA,SAASC,oBAAsBF,GAG5B,IAAMG,EAAmB,CAC5BC,QAD4B,WAE5B,MAEI,GAAKC,KAAKC,SAASC,eAAiB,UAACF,KAAKG,cAAN,OAAC,EAAaC,IAAlD,CAKAJ,KAAKK,KAAO,GAMZ,IAJA,IAAI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AAR,kBExFI,EAAY,YACd,EACA,EPgEoB,IO9DpB,EACA,KACA,KACA,M,sVAuBF,EAAUC,QAAQC,OAAS,iECE3B,ICvC4N,EDuC5N,CAEE,KAAF,mBAEE,WACF,CACI,WDPW,E,SCUb,OAAF,C,OAAA,GAEE,MAAF,CACI,eAAJ,QACI,UACJ,CACM,KAAN,MACM,QAFN,WAIQ,MAAR,KAGI,mBACJ,CACM,KAAN,MACM,QAAN,WAAQ,MAAR,KAEI,eACJ,CACM,KAAN,OACM,QAAN,MAEI,oBACJ,CACM,KAAN,OACM,QAAN,OAIE,S,+VAAF,IAEA,aACI,OADJ,SACA,GACM,IAAN,OACM,OAAN,+BAKA,kBACA,oBAAQ,OAAR,8EAJA,mBAMI,UAAJ,YAAM,OAAN,sBACI,eAAJ,YAAM,OAAN,8BAIE,QAxDF,WAyDI,IAAJ,EACA,oEAEM,KAAN,4CE5FI,EAAY,YACd,EACA9D,EXqHoB,IWnHpB,EACA,KACA,KACA,MAuBF,EAAU6D,QAAQC,OAAS,qEACZ,Y","file":"chunks/ceres-17.min.js","sourcesContent":["/**\n * Mixing for generating unique keys, that can be similarly created on server and clientside.\n * Collisions are possible in theory, be advised that this is an experimental mixin and may be removed in the future.\n */\n\nimport { isNullOrUndefined } from \"../helper/utils\";\n\nconst KEYS = {};\n\nif (typeof document !== \"undefined\")\n{\n    document.debug_component_ids = KEYS;\n}\n\nexport const ComponentIdMixin = {\n    created()\n    {\n        // Root elements, early exit\n        if (!this.$options._componentTag && !this.$vnode?.tag)\n        {\n            return;\n        }\n\n        this._cid = \"\";\n\n        let node = this;\n\n        let prevNode = null;\n\n        while (!isNullOrUndefined(node))\n        {\n            if (!isNullOrUndefined(prevNode))\n            {\n                if (hasSiblings(node.$children, prevNode))\n                {\n                    const occurenceIndex = getOwnOccurenceIndex(node.$children, prevNode);\n\n                    this._cid += occurenceIndex;\n                }\n            }\n\n            this._cid += \"_\";\n\n            if (node.$options._componentTag)\n            {\n                this._cid += node.$options._componentTag;\n            }\n\n            prevNode = node;\n            node = node.$parent;\n        }\n\n        if (!KEYS[this._cid])\n        {\n            KEYS[this._cid] = 0;\n        }\n\n        KEYS[this._cid]++;\n    }\n};\n\nfunction hasSiblings(potentialSiblings, node)\n{\n    for (const potentialSibling of potentialSiblings)\n    {\n        if (potentialSibling.$options._componentTag === node.$options._componentTag && potentialSibling !== node)\n        {\n            return true;\n        }\n    }\n\n    return false;\n}\n\nfunction getOwnOccurenceIndex(potentialSiblings, node)\n{\n    const siblings = potentialSiblings.filter(potentialSibling => potentialSibling.$options._componentTag === node.$options._componentTag);\n\n    return siblings.indexOf(node);\n}\n","var render = function () {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _vm.filterListBulk\n    ? _c(\n        \"div\",\n        _vm._l(_vm.facets, function (facet) {\n          return _c(\"item-filter\", {\n            key: facet.id,\n            attrs: {\n              facet: facet,\n              \"padding-classes\": _vm.paddingClasses,\n              \"padding-inline-styles\": _vm.paddingInlineStyles,\n            },\n          })\n        }),\n        1\n      )\n    : _c(\n        \"div\",\n        {\n          directives: [\n            {\n              name: \"show\",\n              rawName: \"v-show\",\n              value: _vm.facets && _vm.facets.length > 0,\n              expression: \"facets && facets.length > 0\",\n            },\n          ],\n          staticClass: \"filter-wrapper\",\n        },\n        [\n          _c(\n            \"a\",\n            {\n              staticClass: \"btn btn-link filter-toggle\",\n              attrs: {\n                \"data-toggle\": \"collapse\",\n                href: \"#filter-collapse_\" + _vm._cid,\n                \"aria-expanded\": \"false\",\n                \"aria-controls\": \"filter-collapse_\" + _vm._cid,\n              },\n            },\n            [\n              _c(\"i\", {\n                staticClass: \"fa fa-sliders default-float\",\n                attrs: { \"aria-hidden\": \"true\" },\n              }),\n              _vm._v(\n                \" \" +\n                  _vm._s(_vm.$translate(\"Ceres::Template.itemFilter\")) +\n                  \"\\n    \"\n              ),\n            ]\n          ),\n          _vm._v(\" \"),\n          _c(\n            \"div\",\n            {\n              directives: [\n                {\n                  name: \"open-filter-toolbar\",\n                  rawName: \"v-open-filter-toolbar\",\n                },\n              ],\n              staticClass: \"filter-collapse collapse\",\n              attrs: { id: \"filter-collapse_\" + _vm._cid },\n            },\n            [\n              _c(\n                \"div\",\n                {\n                  staticClass: \"container-max page-content component-loading\",\n                  class: { \"is-loading\": _vm.isLoading },\n                },\n                [\n                  _c(\n                    \"div\",\n                    { staticClass: \"card-columns\" },\n                    _vm._l(_vm.facets, function (facet) {\n                      return _c(\"item-filter\", {\n                        key: facet.id,\n                        attrs: { facet: facet },\n                      })\n                    }),\n                    1\n                  ),\n                  _vm._v(\" \"),\n                  _c(\"div\", { staticClass: \"row\" }, [\n                    _c(\"div\", { staticClass: \"col-12 text-right\" }, [\n                      _c(\n                        \"button\",\n                        {\n                          staticClass: \"btn btn-primary btn-medium-large\",\n                          attrs: {\n                            type: \"button\",\n                            \"data-toggle\": \"collapse\",\n                            href: \"#filter-collapse_\" + _vm._cid,\n                            \"aria-controls\": \"filter-collapse_\" + _vm._cid,\n                          },\n                        },\n                        [\n                          _c(\"i\", {\n                            staticClass: \"fa fa-times\",\n                            attrs: { \"aria-hidden\": \"true\" },\n                          }),\n                          _vm._v(\" \"),\n                          _c(\"span\", [\n                            _vm._v(\n                              _vm._s(\n                                _vm.$translate(\"Ceres::Template.itemClose\")\n                              ) + \" \"\n                            ),\n                          ]),\n                        ]\n                      ),\n                    ]),\n                  ]),\n                ]\n              ),\n            ]\n          ),\n        ]\n      )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","var render = function () {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _vm.facet.name\n    ? _c(\n        \"div\",\n        { staticClass: \"card pt-4 border-0\", class: _vm.facet.cssClass },\n        [\n          _c(\"div\", { staticClass: \"h3 title py-0\" }, [\n            _vm._v(_vm._s(_vm.facetName)),\n          ]),\n          _vm._v(\" \"),\n          _vm.facet.type === \"price\"\n            ? _c(\"div\", [_c(\"item-filter-price\")], 1)\n            : _vm._l(_vm.facets, function (value) {\n                return _c(\n                  \"div\",\n                  {\n                    key: value.id,\n                    staticClass: \"form-check-wrapper\",\n                    class: value.cssClass,\n                  },\n                  [\n                    _c(\"div\", { staticClass: \"form-check mb-0 pl-0\" }, [\n                      _c(\"input\", {\n                        staticClass: \"form-check-input d-none\",\n                        attrs: {\n                          id: \"option-\" + value.id + \"-\" + _vm._uid,\n                          type: \"checkbox\",\n                          disabled: _vm.isLoading || value.count <= 0,\n                        },\n                        domProps: { checked: _vm.isSelected(value.id) },\n                        on: {\n                          change: function ($event) {\n                            return _vm.updateFacet(value)\n                          },\n                        },\n                      }),\n                      _vm._v(\" \"),\n                      _c(\n                        \"label\",\n                        {\n                          staticClass: \"form-check-label\",\n                          class: [\n                            _vm.paddingClasses,\n                            _vm.isSelected(value.id) ? \"bg-appearance\" : \"\",\n                            \"option-\" + value.id,\n                          ],\n                          style: _vm.paddingInlineStyles,\n                          attrs: { for: \"option-\" + value.id + \"-\" + _vm._uid },\n                        },\n                        [\n                          _c(\"div\", { staticClass: \"d-flex\" }, [\n                            _c(\"span\", { staticClass: \"flex-grow-1\" }, [\n                              _vm._v(_vm._s(value.name)),\n                            ]),\n                            _vm._v(\" \"),\n                            _c(\"div\", { staticClass: \"filter-badge\" }, [\n                              _vm._v(_vm._s(value.count)),\n                            ]),\n                          ]),\n                        ]\n                      ),\n                    ]),\n                  ]\n                )\n              }),\n        ],\n        2\n      )\n    : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","var render = function () {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\"div\", { staticClass: \"item-filter-price\" }, [\n    _c(\"div\", { staticClass: \"input-group\" }, [\n      _c(\"div\", { staticClass: \"input-group-prepend\" }, [\n        _c(\"span\", { staticClass: \"input-group-text\" }, [\n          _vm._v(_vm._s(_vm.currency)),\n        ]),\n      ]),\n      _vm._v(\" \"),\n      _c(\"input\", {\n        directives: [\n          {\n            name: \"model\",\n            rawName: \"v-model\",\n            value: _vm.priceMin,\n            expression: \"priceMin\",\n          },\n        ],\n        staticClass: \"form-control\",\n        attrs: {\n          type: \"number\",\n          placeholder: \"Min\",\n          \"aria-label\": _vm.$translate(\"Ceres::Template.itemFilterPriceMin\"),\n        },\n        domProps: { value: _vm.priceMin },\n        on: {\n          focus: function ($event) {\n            return _vm.selectAll($event)\n          },\n          input: function ($event) {\n            if ($event.target.composing) {\n              return\n            }\n            _vm.priceMin = $event.target.value\n          },\n        },\n      }),\n    ]),\n    _vm._v(\" \"),\n    _c(\"div\", { staticClass: \"input-group\" }, [\n      _c(\"div\", { staticClass: \"input-group-prepend\" }, [\n        _c(\"span\", { staticClass: \"input-group-text\" }, [\n          _vm._v(_vm._s(_vm.currency)),\n        ]),\n      ]),\n      _vm._v(\" \"),\n      _c(\"input\", {\n        directives: [\n          {\n            name: \"model\",\n            rawName: \"v-model\",\n            value: _vm.priceMax,\n            expression: \"priceMax\",\n          },\n        ],\n        staticClass: \"form-control\",\n        attrs: {\n          type: \"number\",\n          placeholder: \"Max\",\n          \"aria-label\": _vm.$translate(\"Ceres::Template.itemFilterPriceMax\"),\n        },\n        domProps: { value: _vm.priceMax },\n        on: {\n          focus: function ($event) {\n            return _vm.selectAll($event)\n          },\n          input: function ($event) {\n            if ($event.target.composing) {\n              return\n            }\n            _vm.priceMax = $event.target.value\n          },\n        },\n      }),\n    ]),\n    _vm._v(\" \"),\n    _c(\n      \"button\",\n      {\n        directives: [{ name: \"tooltip\", rawName: \"v-tooltip\" }],\n        staticClass: \"btn btn-primary btn-appearance\",\n        class: { disabled: _vm.isDisabled },\n        attrs: {\n          type: \"button\",\n          \"data-toggle\": \"tooltip\",\n          \"data-placement\": \"top\",\n          title: _vm.$translate(\"Ceres::Template.itemApply\"),\n          \"aria-label\": _vm.$translate(\"Ceres::Template.itemFilterButton\"),\n        },\n        on: {\n          click: function ($event) {\n            return _vm.triggerFilter()\n          },\n        },\n      },\n      [_c(\"icon\", { attrs: { icon: \"check\", loading: _vm.isLoading } })],\n      1\n    ),\n  ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","<template>\n    <div class=\"item-filter-price\">\n        <div class=\"input-group\">\n            <div class=\"input-group-prepend\">\n                <span class=\"input-group-text\">{{ currency }}</span>\n            </div>\n\n            <input type=\"number\"\n                   class=\"form-control\"\n                   @focus=\"selectAll($event)\"\n                   placeholder=\"Min\"\n                   v-model=\"priceMin\"\n                   :aria-label=\"$translate('Ceres::Template.itemFilterPriceMin')\">\n        </div>\n\n        <div class=\"input-group\">\n            <div class=\"input-group-prepend\">\n                <span class=\"input-group-text\">{{ currency }}</span>\n            </div>\n\n            <input type=\"number\"\n                   class=\"form-control\"\n                   @focus=\"selectAll($event)\"\n                   placeholder=\"Max\"\n                   v-model=\"priceMax\"\n                   :aria-label=\"$translate('Ceres::Template.itemFilterPriceMax')\">\n        </div>\n\n        <button type=\"button\" class=\"btn btn-primary btn-appearance\" :class=\"{'disabled': isDisabled}\" v-tooltip\n                data-toggle=\"tooltip\" data-placement=\"top\" @click=\"triggerFilter()\" :title=\"$translate('Ceres::Template.itemApply')\" :aria-label=\"$translate('Ceres::Template.itemFilterButton')\">\n            <icon icon=\"check\" :loading=\"isLoading\"></icon>\n        </button>\n    </div>\n</template>\n\n<script>\nimport UrlService from \"../../../services/UrlService\";\nimport { mapState } from \"vuex\";\n\nexport default {\n    data()\n    {\n        return {\n            priceMin: \"\",\n            priceMax: \"\",\n            currency: App.activeCurrency\n        };\n    },\n\n    mounted()\n    {\n        const urlParams = UrlService.getUrlParams(document.location.search);\n\n        this.priceMin = urlParams.priceMin || \"\";\n        this.priceMax = urlParams.priceMax || \"\";\n    },\n\n    computed:\n    {\n        isDisabled()\n        {\n            return (this.priceMin === \"\" && this.priceMax === \"\") ||\n                (parseInt(this.priceMin) >= parseInt(this.priceMax)) ||\n                this.isLoading;\n        },\n\n        ...mapState({\n            isLoading: state => state.itemList.isLoading\n        })\n    },\n\n    methods:\n    {\n        selectAll(event)\n        {\n            event.target.select();\n        },\n\n        triggerFilter()\n        {\n            if (!this.isDisabled)\n            {\n                window.localStorage.setItem(\"openFilterToolbar\", true);\n                this.$store.dispatch(\"selectPriceFacet\", { priceMin: this.priceMin, priceMax: this.priceMax });\n            }\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!./ItemFilterPrice.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!./ItemFilterPrice.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ItemFilterPrice.vue?vue&type=template&id=60aef3ba&\"\nimport script from \"./ItemFilterPrice.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemFilterPrice.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(\"/Users/philippneumann/Documents/frontendstudios/8291/430/GonserDT/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('60aef3ba')) {\n      api.createRecord('60aef3ba', component.options)\n    } else {\n      api.reload('60aef3ba', component.options)\n    }\n    module.hot.accept(\"./ItemFilterPrice.vue?vue&type=template&id=60aef3ba&\", function () {\n      api.rerender('60aef3ba', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/itemList/filter/ItemFilterPrice.vue\"\nexport default component.exports","<template>\n    <div v-if=\"facet.name\" class=\"card pt-4 border-0\" :class=\"facet.cssClass\">\n        <div class=\"h3 title py-0\">{{ facetName }}</div>\n\n        <div v-if=\"facet.type === 'price'\">\n            <item-filter-price></item-filter-price>\n        </div>\n\n        <div v-else class=\"form-check-wrapper\" v-for=\"value in facets\" :key=\"value.id\" :class=\"value.cssClass\">\n            <div class=\"form-check mb-0 pl-0\">\n                <input :id=\"'option-' + value.id + '-' + _uid\" class=\"form-check-input d-none\" type=\"checkbox\" :checked=\"isSelected(value.id)\" @change=\"updateFacet(value)\" :disabled=\"isLoading || value.count <= 0\">\n                <label :for=\"'option-' + value.id + '-' + _uid\" class=\"form-check-label\" :class=\"[paddingClasses, isSelected(value.id) ? 'bg-appearance' : '', 'option-' + value.id]\" :style=\"paddingInlineStyles\">\n                    <div class=\"d-flex\">\n                        <span class=\"flex-grow-1\">{{ value.name }}</span>\n                        <div class=\"filter-badge\">{{ value.count }}</div>\n                    </div>\n                </label>\n            </div>\n        </div>\n    </div>\n</template>\n\n<script>\nimport { mapState } from \"vuex\";\nimport ItemFilterPrice from \"./ItemFilterPrice.vue\";\n\nexport default {\n\n    name: \"item-filter\",\n\n    components:\n    {\n        ItemFilterPrice\n    },\n\n    props:\n    {\n        facet:\n        {\n            type: Object\n        },\n        paddingClasses:\n        {\n            type: String,\n            default: null\n        },\n        paddingInlineStyles:\n        {\n            type: String,\n            default: null\n        }\n    },\n\n    computed:\n    {\n        facets()\n        {\n            return this.facet.values;\n        },\n\n        facetName()\n        {\n            if (this.facet.translationKey && this.facet.translationKey.length > 0)\n            {\n                return this.$translate(\"Ceres::Template.\" + this.facet.translationKey);\n            }\n\n            return this.facet.name;\n        },\n\n        ...mapState({\n            selectedFacets: state => state.itemList.selectedFacets,\n            isLoading: state => state.itemList.isLoading\n        })\n    },\n\n    methods:\n    {\n        updateFacet(facetValue)\n        {\n            const toolbarElements = document.getElementsByClassName(\"widget-toolbar\");\n\n            for (const toolbarElement of toolbarElements)\n            {\n                if (toolbarElement.contains(this.$vnode.elm))\n                {\n                    window.localStorage.setItem(\"openFilterToolbar\", true);\n                }\n            }\n\n            this.$store.dispatch(\"selectFacet\", { facetValue });\n        },\n\n        isSelected(facetValueId)\n        {\n            return this.selectedFacets.findIndex(selectedFacet => selectedFacet.id === facetValueId) > -1;\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!./ItemFilter.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!./ItemFilter.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ItemFilter.vue?vue&type=template&id=e3ecc314&\"\nimport script from \"./ItemFilter.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemFilter.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(\"/Users/philippneumann/Documents/frontendstudios/8291/430/GonserDT/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('e3ecc314')) {\n      api.createRecord('e3ecc314', component.options)\n    } else {\n      api.reload('e3ecc314', component.options)\n    }\n    module.hot.accept(\"./ItemFilter.vue?vue&type=template&id=e3ecc314&\", function () {\n      api.rerender('e3ecc314', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/itemList/filter/ItemFilter.vue\"\nexport default component.exports","<template>\n    <div v-if=\"filterListBulk\">\n        <item-filter v-for=\"facet in facets\"\n            :facet=\"facet\"\n            :key=\"facet.id\"\n            :padding-classes=\"paddingClasses\"\n            :padding-inline-styles=\"paddingInlineStyles\">\n        </item-filter>\n    </div>\n\n    <div v-else class=\"filter-wrapper\" v-show=\"facets && facets.length > 0\">\n        <a class=\"btn btn-link filter-toggle\" data-toggle=\"collapse\" :href=\"'#filter-collapse_' + _cid\" aria-expanded=\"false\" :aria-controls=\"'filter-collapse_' + _cid\">\n            <i class=\"fa fa-sliders default-float\" aria-hidden=\"true\"></i> {{ $translate(\"Ceres::Template.itemFilter\") }}\n        </a>\n\n        <div v-open-filter-toolbar class=\"filter-collapse collapse\" :id=\"'filter-collapse_' + _cid\">\n            <div class=\"container-max page-content component-loading\" :class=\"{ 'is-loading': isLoading }\">\n                <div class=\"card-columns\">\n                    <item-filter v-for=\"facet in facets\" :facet=\"facet\" :key=\"facet.id\"></item-filter>\n                </div>\n\n                <div class=\"row\">\n                    <div class=\"col-12 text-right\">\n                        <button type=\"button\" class=\"btn btn-primary btn-medium-large\" data-toggle=\"collapse\" :href=\"'#filter-collapse_' + _cid\" :aria-controls=\"'filter-collapse_' + _cid\">\n                            <i class=\"fa fa-times\" aria-hidden=\"true\"></i>\n                            <span>{{ $translate(\"Ceres::Template.itemClose\") }}&nbsp;</span>\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</template>\n\n<script>\nimport { mapState } from \"vuex\";\nimport ItemFilter from \"./ItemFilter.vue\";\nimport { ComponentIdMixin } from \"../../../mixins/componentId.mixin\";\n\nexport default {\n\n    name: \"item-filter-list\",\n\n    components:\n    {\n        ItemFilter\n    },\n\n    mixins: [ComponentIdMixin], // Experimental mixin, may be removed in the future.\n\n    props: {\n        filterListBulk: Boolean,\n        facetData:\n        {\n            type: Array,\n            default()\n            {\n                return [];\n            }\n        },\n        allowedFacetsTypes:\n        {\n            type: Array,\n            default: () => []\n        },\n        paddingClasses:\n        {\n            type: String,\n            default: null\n        },\n        paddingInlineStyles:\n        {\n            type: String,\n            default: null\n        }\n    },\n\n    computed:\n    {\n        ...mapState({\n            facets(state)\n            {\n                if (!this.allowedFacetsTypes.length)\n                {\n                    return state.itemList.facets;\n                }\n\n                return state.itemList.facets\n                    .filter(facet => this.allowedFacetsTypes.includes(facet.id) || this.allowedFacetsTypes.includes(facet.type));\n            },\n            isLoading: state => state.itemList.isLoading,\n            selectedFacets: state => state.itemList.selectedFacets\n        })\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</script>\n","import mod from \"-!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ItemFilterList.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!./ItemFilterList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ItemFilterList.vue?vue&type=template&id=d687d598&\"\nimport script from \"./ItemFilterList.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemFilterList.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(\"/Users/philippneumann/Documents/frontendstudios/8291/430/GonserDT/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('d687d598')) {\n      api.createRecord('d687d598', component.options)\n    } else {\n      api.reload('d687d598', component.options)\n    }\n    module.hot.accept(\"./ItemFilterList.vue?vue&type=template&id=d687d598&\", function () {\n      api.rerender('d687d598', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/itemList/filter/ItemFilterList.vue\"\nexport default component.exports"],"sourceRoot":""}