{"version":3,"sources":["webpack:///./resources/js/src/modeherz/components/item/VariationTags.vue?61f5","webpack:///resources/js/src/modeherz/components/item/VariationTags.vue","webpack:///./resources/js/src/modeherz/components/item/VariationTags.vue?45ee","webpack:///./resources/js/src/modeherz/components/item/VariationTags.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_l","variationTags","ref","selection","value","key","propertyId","style","color","backgroundColor","bgcolor","_v","_s","texts","lang","replace","values","_withStripped","component","options","__file"],"mappings":"kGAAA,IAAIA,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACTC,EAAKJ,EAAIK,MAAMD,IAAMF,EACzB,OAAOE,EACL,MACA,CACEE,YACE,gEAEJN,EAAIO,GAAGP,EAAIQ,eAAe,SAAUC,GAClC,IAAIC,EAAYD,EAAIC,UAChBC,EAAQF,EAAIE,MAChB,OAAOP,EAAG,OAAQ,CAAEQ,IAAKF,EAAUG,YAAc,CAC/CT,EACE,OACA,CACEE,YAAa,QACbQ,MAAO,CACLC,MAAOL,EAAUK,MACjBC,gBAAiBN,EAAUO,UAG/B,CACEjB,EAAIkB,GACF,WACElB,EAAImB,GACFT,EAAUU,MAAMpB,EAAIqB,MAAMC,QAAQ,KAAMX,EAAMY,OAAOZ,QAEvD,iBAMZ,IAIJZ,EAAOyB,eAAgB,E,67BCpBvB,ICnBqN,EDmBrN,CACA,uBACA,Q,OAAA,GACA,OACA,qBACA,WACA,+BAGA,UACA,qBACA,qE,+VAAA,gCAEA,gBACA,qBAEA,yBACA,gCAGA,yGAFA,M,QE9BIC,EAAY,YACd,EACA1B,EH6BoB,IG3BpB,EACA,KACA,KACA,MAuBF0B,EAAUC,QAAQC,OAAS,8DACZ,UAAAF,E","file":"chunks/ceres-55.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 {\n staticClass:\n \"variation-tags-wrapper d-flex flex-wrap pt-md-3 pl-md-3 mt-3\",\n },\n _vm._l(_vm.variationTags, function (ref) {\n var selection = ref.selection\n var value = ref.value\n return _c(\"span\", { key: selection.propertyId }, [\n _c(\n \"span\",\n {\n staticClass: \"badge\",\n style: {\n color: selection.color,\n backgroundColor: selection.bgcolor,\n },\n },\n [\n _vm._v(\n \"\\n \" +\n _vm._s(\n selection.texts[_vm.lang].replace(\"$1\", value.values.value)\n ) +\n \"\\n \"\n ),\n ]\n ),\n ])\n }),\n 0\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","<template>\n <div class=\"variation-tags-wrapper d-flex flex-wrap pt-md-3 pl-md-3 mt-3\">\n <span\n v-for=\"({selection, value}) in variationTags\"\n :key=\"selection.propertyId\"\n >\n <span\n class=\"badge\"\n :style=\"{color: selection.color, backgroundColor: selection.bgcolor}\"\n >\n {{ selection.texts[lang].replace('$1', value.values.value) }}\n </span>\n\n </span>\n </div>\n</template>\n\n<script>\nimport normalizeVariationProperties from '../../mixins/property-normalizer'\nexport default {\n name: 'MhVariationTags',\n mixins: [normalizeVariationProperties],\n props: {\n variationProperties: {\n type: Array,\n default: () => []\n }\n },\n computed: {\n validTags () {\n return App.modeherzConfig.variationTags.reduce((agg, cur) => ({ [cur.propertyId]: cur, ...agg }), {})\n },\n lang () {\n return App.language\n },\n variationTags () {\n if (!this.variationProperties) {\n return []\n }\n return this.normalizeVariationProperties(this.variationProperties, { selection: this.validTags, sortByPriority: true })\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!./VariationTags.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!./VariationTags.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VariationTags.vue?vue&type=template&id=330013ab&\"\nimport script from \"./VariationTags.vue?vue&type=script&lang=js&\"\nexport * from \"./VariationTags.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(\"C:\\\\Users\\\\schuckerp\\\\git\\\\plenty-plugins\\\\4024\\\\15\\\\modeherz\\\\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('330013ab')) {\n api.createRecord('330013ab', component.options)\n } else {\n api.reload('330013ab', component.options)\n }\n module.hot.accept(\"./VariationTags.vue?vue&type=template&id=330013ab&\", function () {\n api.rerender('330013ab', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"resources/js/src/modeherz/components/item/VariationTags.vue\"\nexport default component.exports"],"sourceRoot":""}