{"version":3,"sources":["webpack:///./node_modules/Ceres/resources/js/src/app/components/item/VariationSelect.vue?9d6a","webpack:///./node_modules/Ceres/resources/js/src/app/components/item/VariationSelect.vue?f63c","webpack:///./node_modules/Ceres/resources/js/src/app/components/item/VariationSelect.vue?3210","webpack:///node_modules/Ceres/resources/js/src/app/components/item/VariationSelect.vue","webpack:///./node_modules/Ceres/resources/js/src/app/components/item/VariationSelect.vue","webpack:///./node_modules/core-js/internals/object-to-array.js","webpack:///./node_modules/core-js/modules/es.object.entries.js","webpack:///./node_modules/core-js/modules/es.object.values.js"],"names":["name","props","forceContent","type","default","inject","itemId","data","filteredVariationsCache","lastContentCount","mounted","computed","currentVariation","currentVariationSelect","hasEmptyOption","addPleaseSelectOption","currentSelection","possibleUnits","variations","variation","possibleUnitCombinationIds","isContentVisible","hasSelection","attributes","selectedAttributes","selectedUnit","methods","selectAttribute","attributeId","attributeValueId","selectUnit","unitId","onSelectionChange","unsetInvalidSelection","getTooltip","attribute","attributeValue","value","getInvalidOptionTooltip","invalidSelections","invalidSelection","names","getQualifiedVariations","getClosestVariations","qualifiedVariations","changes","closestSalableVariation","numberOfSalableChanges","closestNonSalableVariation","numberOfNonSalableChanges","getInvalidSelectionByVariation","selectedAttributeId","attributesToReset","newUnit","correctSelection","attributeToReset","messages","NotificationService","closeAfter","filterVariations","strict","ignoreUnit","variationAttribute","isAttributeSelectionValid","filterSalableVariations","isUnitSelectionValid","filter","length","setVariation","variationId","document","detail","documents","isTextCut","content","getSelectedAttributeValueName","transformPossibleUnits","unitA","unitB","splitUnitName","unitName","unitNameSplit","watch","render","_vm","_c","_self","staticClass","_l","index","key","ref","refInFor","attrs","id","on","change","$event","target","domProps","_v","_s","$translate","_e","selected","values","directives","rawName","expression","for","title","class","images","active","invalid","click","src","imageUrl","alt","unitCombinationId","parseInt","_t","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAA8F;AAC3B;AACL;;;AAG9D;AAC4F;AA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CAACmB,EAAJ,EA3aN,CAFJ,GA+aI,CAACnB,GAAG,CAACqC,EAAJ,CAAO,SAAP,CAAD,CAhbN,CAHO,EAqbP,CArbO,CAAT;AAubD,CA1bD;;AA2bA,IAAIC,eAAe,GAAG,EAAtB;AACAvC,MAAM,CAACwC,aAAP,GAAuB,IAAvB;;;;;;;;;;;;AC5bA,kBAAkB,mBAAO,CAAC,iFAA0B;AACpD,kBAAkB,mBAAO,CAAC,qGAAoC;AAC9D,iBAAiB,mBAAO,CAAC,iFAA0B;AACnD,sBAAsB,mBAAO,CAAC,6FAAgC;AAC9D,4BAA4B,mBAAO,CAAC,qHAA4C;;AAEhF;AACA;;AAEA,YAAY,kBAAkB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACnCA,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,eAAe,mBAAO,CAAC,yFAA8B;;AAErD;AACA;AACA,GAAG,+BAA+B;AAClC;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACTD,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,cAAc,mBAAO,CAAC,yFAA8B;;AAEpD;AACA;AACA,GAAG,+BAA+B;AAClC;AACA;AACA;AACA,CAAC","file":"chunks/ceres-client-14.js","sourcesContent":["import { render, staticRenderFns } from \"./VariationSelect.vue?vue&type=template&id=761e51cf&\"\nimport script from \"./VariationSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./VariationSelect.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../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:\\\\PlentyMarkets\\\\49869\\\\20\\\\DiaWolfMoebel\\\\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('761e51cf')) {\n api.createRecord('761e51cf', component.options)\n } else {\n api.reload('761e51cf', component.options)\n }\n module.hot.accept(\"./VariationSelect.vue?vue&type=template&id=761e51cf&\", function () {\n api.rerender('761e51cf', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"node_modules/Ceres/resources/js/src/app/components/item/VariationSelect.vue\"\nexport default component.exports","import mod from \"-!../../../../../../../babel-loader/lib/index.js!../../../../../../../vue-loader/lib/index.js??vue-loader-options!./VariationSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../babel-loader/lib/index.js!../../../../../../../vue-loader/lib/index.js??vue-loader-options!./VariationSelect.vue?vue&type=script&lang=js&\"","export * from \"-!../../../../../../../babel-loader/lib/index.js!../../../../../../../vue-loader/lib/loaders/templateLoader.js??ref--6!../../../../../../../vue-loader/lib/index.js??vue-loader-options!./VariationSelect.vue?vue&type=template&id=761e51cf&\"","\n\n\n","var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\n \"div\",\n { staticClass: \"row\" },\n [\n _vm.attributes.length ||\n (_vm.possibleUnitCombinationIds.length > 1 && _vm.isContentVisible)\n ? [\n _vm._l(_vm.attributes, function (attribute, index) {\n return _c(\n \"div\",\n { key: index, staticClass: \"col-12 variation-select\" },\n [\n attribute.type === \"dropdown\"\n ? _c(\n \"div\",\n {\n ref: \"attributesContaner\",\n refInFor: true,\n staticClass: \"input-unit\",\n },\n [\n _c(\n \"select\",\n {\n staticClass: \"custom-select\",\n attrs: {\n id: \"custom-select_\" + attribute.name,\n \"data-testing\": \"variation-select-dropdown\",\n },\n on: {\n change: function ($event) {\n return _vm.selectAttribute(\n attribute.attributeId,\n $event.target.value\n )\n },\n },\n },\n [\n _vm.addPleaseSelectOption || !_vm.hasSelection\n ? _c(\"option\", { domProps: { value: -1 } }, [\n _vm._v(\n _vm._s(\n _vm.$translate(\n \"Ceres::Template.singleItemPleaseSelect\"\n )\n )\n ),\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.hasEmptyOption ||\n _vm.selectedAttributes[attribute.attributeId] ===\n null\n ? _c(\n \"option\",\n {\n domProps: {\n value: null,\n selected:\n _vm.selectedAttributes[\n attribute.attributeId\n ] === null,\n },\n },\n [\n _vm._v(\n _vm._s(\n _vm.$translate(\n \"Ceres::Template.singleItemNoSelection\"\n )\n )\n ),\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(attribute.values, function (value) {\n return _c(\n \"option\",\n {\n key: value.attributeValueId,\n domProps: {\n value: value.attributeValueId,\n selected:\n value.attributeValueId ===\n _vm.selectedAttributes[\n attribute.attributeId\n ],\n },\n },\n [\n _vm.isAttributeSelectionValid(\n attribute.attributeId,\n value.attributeValueId,\n true\n )\n ? [\n _vm._v(\n \"\\n \" +\n _vm._s(value.name) +\n \"\\n \"\n ),\n ]\n : _vm.isAttributeSelectionValid(\n attribute.attributeId,\n value.attributeValueId,\n false\n )\n ? [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.$translate(\n \"Ceres::Template.singleItemNotSalableAttribute\",\n { name: value.name }\n )\n ) +\n \"\\n \"\n ),\n ]\n : [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.$translate(\n \"Ceres::Template.singleItemInvalidAttribute\",\n { name: value.name }\n )\n ) +\n \"\\n \"\n ),\n ],\n ],\n 2\n )\n }),\n ],\n 2\n ),\n _vm._v(\" \"),\n _c(\n \"label\",\n {\n directives: [\n {\n name: \"tooltip\",\n rawName: \"v-tooltip\",\n value: _vm.isTextCut(attribute.name),\n expression: \"isTextCut(attribute.name)\",\n },\n ],\n attrs: {\n for: \"custom-select_\" + attribute.name,\n \"data-toggle\": \"tooltip\",\n \"data-placement\": \"top\",\n title: attribute.name,\n \"data-testing\":\n \"variation-select-dropdown-label\",\n },\n },\n [_vm._v(_vm._s(attribute.name))]\n ),\n ]\n )\n : attribute.type === \"box\" || attribute.type === \"image\"\n ? _c(\"div\", [\n _c(\n \"span\",\n {\n staticClass: \"text-muted\",\n attrs: { \"data-testing\": \"attribute-name\" },\n },\n [_vm._v(_vm._s(attribute.name) + \":\")]\n ),\n _vm._v(\" \"),\n _c(\n \"b\",\n { attrs: { \"data-testing\": \"attribute-value\" } },\n [\n _vm._v(\n _vm._s(\n _vm.getSelectedAttributeValueName(attribute)\n )\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass: \"v-s-boxes py-3\",\n class: { images: attribute.type === \"image\" },\n },\n [\n _vm.addPleaseSelectOption\n ? _c(\n \"div\",\n {\n staticClass:\n \"v-s-box bg-white empty-option\",\n class: {\n active:\n _vm.selectedAttributes[\n attribute.attributeId\n ] === -1,\n invalid: !_vm.isAttributeSelectionValid(\n attribute.attributeId,\n -1\n ),\n },\n attrs: {\n \"data-testing\": \"variation-select-box\",\n },\n on: {\n click: function ($event) {\n return _vm.selectAttribute(\n attribute.attributeId,\n -1\n )\n },\n },\n },\n [\n _c(\"span\", { staticClass: \"mx-3\" }, [\n _vm._v(\n _vm._s(\n _vm.$translate(\n \"Ceres::Template.singleItemPleaseSelect\"\n )\n )\n ),\n ]),\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.hasEmptyOption\n ? _c(\n \"div\",\n {\n staticClass:\n \"v-s-box bg-white empty-option\",\n class: {\n active:\n _vm.selectedAttributes[\n attribute.attributeId\n ] === null,\n invalid: !_vm.isAttributeSelectionValid(\n attribute.attributeId,\n null,\n true\n ),\n },\n attrs: {\n \"data-testing\": \"variation-select-box\",\n },\n on: {\n click: function ($event) {\n return _vm.selectAttribute(\n attribute.attributeId,\n null\n )\n },\n },\n },\n [\n _c(\"span\", { staticClass: \"mx-3\" }, [\n _vm._v(\n _vm._s(\n _vm.$translate(\n \"Ceres::Template.singleItemNoSelection\"\n )\n )\n ),\n ]),\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm._l(attribute.values, function (value) {\n return _c(\n \"div\",\n {\n directives: [\n {\n name: \"tooltip\",\n rawName: \"v-tooltip\",\n value: true,\n expression: \"true\",\n },\n ],\n key: value.attributeValueId,\n staticClass: \"v-s-box bg-white\",\n class: {\n active:\n value.attributeValueId ===\n _vm.selectedAttributes[\n attribute.attributeId\n ],\n invalid: !_vm.isAttributeSelectionValid(\n attribute.attributeId,\n value.attributeValueId,\n true\n ),\n },\n attrs: {\n \"data-testing\": \"variation-select-box\",\n \"data-html\": \"true\",\n \"data-toggle\": \"tooltip\",\n \"data-placement\": \"top\",\n \"data-original-title\": _vm.getTooltip(\n attribute,\n value\n ),\n },\n on: {\n click: function ($event) {\n return _vm.selectAttribute(\n attribute.attributeId,\n value.attributeValueId\n )\n },\n },\n },\n [\n attribute.type === \"box\"\n ? _c(\"span\", { staticClass: \"mx-3\" }, [\n _vm._v(_vm._s(value.name)),\n ])\n : _c(\"img\", {\n staticClass: \"p-1\",\n attrs: {\n src: value.imageUrl,\n alt: value.name,\n },\n }),\n ]\n )\n }),\n ],\n 2\n ),\n ])\n : _vm._e(),\n ]\n )\n }),\n _vm._v(\" \"),\n _vm.possibleUnitCombinationIds.length > 1 && _vm.isContentVisible\n ? _c(\"div\", { staticClass: \"col-12 variation-select\" }, [\n _c(\"div\", { staticClass: \"input-unit\" }, [\n _c(\n \"select\",\n {\n staticClass: \"custom-select\",\n attrs: {\n id: \"unit-combination-ids-select\",\n \"data-testing\": \"variation-select-unit\",\n },\n on: {\n change: function ($event) {\n return _vm.selectUnit($event.target.value)\n },\n },\n },\n _vm._l(\n _vm.possibleUnitCombinationIds,\n function (unitCombinationId) {\n return _c(\n \"option\",\n {\n key: unitCombinationId,\n domProps: {\n value: unitCombinationId,\n selected:\n parseInt(unitCombinationId) ===\n _vm.selectedUnit,\n },\n },\n [\n _vm.isUnitSelectionValid(unitCombinationId)\n ? [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.possibleUnits[unitCombinationId]\n ) +\n \"\\n \"\n ),\n ]\n : [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.$translate(\n \"Ceres::Template.singleItemInvalidAttribute\",\n {\n name: _vm.possibleUnits[\n unitCombinationId\n ],\n }\n )\n ) +\n \"\\n \"\n ),\n ],\n ],\n 2\n )\n }\n ),\n 0\n ),\n _vm._v(\" \"),\n _c(\n \"label\",\n {\n attrs: {\n for: \"unit-combination-ids-select\",\n \"data-testing\": \"variation-select-unit-label\",\n },\n },\n [\n _vm._v(\n _vm._s(\n _vm.$translate(\"Ceres::Template.singleItemContent\")\n )\n ),\n ]\n ),\n ]),\n ])\n : _vm._e(),\n ]\n : [_vm._t(\"default\")],\n ],\n 2\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.es/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n"],"sourceRoot":""}