{"version":3,"sources":["webpack:///./resources/js/src/app/components/item/OrderPropertyValueList.vue?85ed","webpack:///./resources/js/src/app/components/item/OrderPropertyValueListItem.vue?7ab2","webpack:///./resources/js/src/app/components/item/OrderPropertyValueListItem.vue?3e43","webpack:///resources/js/src/app/components/item/OrderPropertyValueListItem.vue","webpack:///./resources/js/src/app/components/item/OrderPropertyValueListItem.vue","webpack:///./resources/js/src/app/components/item/OrderPropertyValueList.vue?fc10","webpack:///resources/js/src/app/components/item/OrderPropertyValueList.vue","webpack:///./resources/js/src/app/components/item/OrderPropertyValueList.vue","webpack:///./resources/js/src/app/components/basket/AddItemToBasketOverlay.vue?76a6","webpack:///resources/js/src/app/components/basket/AddItemToBasketOverlay.vue","webpack:///./resources/js/src/app/components/basket/AddItemToBasketOverlay.vue?9dd5","webpack:///./resources/js/src/app/components/basket/AddItemToBasketOverlay.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","shownProperties","length","staticClass","_v","_s","$translate","attrs","_l","property","key","propertyId","_e","_withStripped","class","colon","showColon","names","name","surcharge","isAdditionalCost","isTaxless","_f","valueType","href","value","target","props","required","type","Object","computed","$options","filters","propertySurcharge","isAdditionalCosts","hasVat","App","useVariationOrderProperties","component","options","__file","components","OrderPropertyValueListItem","basketItem","_this","variation","data","properties","forEach","filledProperty","basketItemOrderParams","find","prop","parseInt","isDefined","selectionValues","isPropertyWithAdditionalCosts","push","methods","isShownAtCheckout","isShownAsAdditionalCosts","isOderProperty","id","role","_m","staticStyle","style","maxHeight","imageUrl","alt","imageAlternativeText","itemName","title","countAdditionalBasketItems","count","quantity","price","attributes","attribute","directives","rawName","urls","basket","rel","checkout","_t","ModalService","require","ApiService","OrderPropertyValueList","defaultTimeToClose","Number","default","mounted","config","addItemToBasketConfirm","listen","updatedBasketItem","basketItems","isBasketItemQuantityUpdate","item","showItem","_objectSpread","mapState","state","items","isLastBasketEntrySet","isNullOrUndefined","images","itemImages","itemImage","itemImageAlternativeText","findModal","document","getElementById","setTimeout","show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Z,UAAAF,E","file":"chunks/ceres-client-12.min.js","sourcesContent":["var render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _vm.shownProperties && _vm.shownProperties.length\n    ? _c(\"div\", { staticClass: \"small\" }, [\n        _c(\"div\", { staticClass: \"font-weight-bold my-1\" }, [\n          _vm._v(\n            _vm._s(_vm.$translate(\"Ceres::Template.basketAdditionalCosts\")) +\n              \":\"\n          )\n        ]),\n        _vm._v(\" \"),\n        _c(\n          \"ul\",\n          {\n            staticClass: \"ml-1 pl-3\",\n            attrs: { \"data-testing\": \"order-property-list\" }\n          },\n          _vm._l(_vm.shownProperties, function(property) {\n            return _c(\"order-property-value-list-item\", {\n              key: property.propertyId,\n              attrs: { property: property }\n            })\n          }),\n          1\n        )\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(\"li\", [\n    _c(\"span\", { staticClass: \"d-block\" }, [\n      _c(\n        \"strong\",\n        { class: { colon: _vm.showColon } },\n        [\n          _vm._v(\n            \"\\n            \" +\n              _vm._s(_vm.property.property.names.name) +\n              \" \\n            \"\n          ),\n          _vm.surcharge > 0\n            ? [\n                _vm.isAdditionalCost || _vm.isTaxless\n                  ? [\n                      _vm._v(\n                        \"\\n                    (\" +\n                          _vm._s(\n                            _vm.$translate(\"Ceres::Template.basketPlusAbbr\")\n                          ) +\n                          \" \" +\n                          _vm._s(_vm._f(\"currency\")(_vm.surcharge)) +\n                          \")\\n                \"\n                      )\n                    ]\n                  : [\n                      _vm._v(\n                        \"\\n                    (\" +\n                          _vm._s(\n                            _vm.$translate(\"Ceres::Template.basketIncludeAbbr\")\n                          ) +\n                          \" \" +\n                          _vm._s(_vm._f(\"currency\")(_vm.surcharge)) +\n                          \")\\n                \"\n                      )\n                    ]\n              ]\n            : _vm._e()\n        ],\n        2\n      ),\n      _vm._v(\" \"),\n      _c(\"span\", [\n        _vm.property.property.valueType === \"file\"\n          ? _c(\"span\", [\n              _c(\n                \"a\",\n                {\n                  attrs: {\n                    href: _vm._f(\"fileUploadPath\")(_vm.property.property.value),\n                    target: \"_blank\"\n                  }\n                },\n                [\n                  _c(\"i\", {\n                    staticClass: \"fa fa-external-link\",\n                    attrs: { \"aria-hidden\": \"true\" }\n                  }),\n                  _vm._v(\n                    \"\\n                    \" +\n                      _vm._s(_vm._f(\"fileName\")(_vm.property.property.value)) +\n                      \"\\n                \"\n                  )\n                ]\n              )\n            ])\n          : _vm.property.property.valueType !== \"empty\"\n          ? _c(\"span\", [_vm._v(_vm._s(_vm.property.property.value))])\n          : _vm._e()\n      ])\n    ])\n  ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderPropertyValueListItem.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!./OrderPropertyValueListItem.vue?vue&type=script&lang=js&\"","<template>\n    <li>\n        <span class=\"d-block\">\n            <strong :class=\"{ 'colon': showColon }\">\n                {{ property.property.names.name }} \n                <template v-if=\"surcharge > 0\">\n                    <template v-if=\"isAdditionalCost || isTaxless\">\n                        ({{ $translate(\"Ceres::Template.basketPlusAbbr\") }} {{ surcharge | currency }})\n                    </template>\n                    <template v-else>\n                        ({{ $translate(\"Ceres::Template.basketIncludeAbbr\") }} {{ surcharge | currency }})\n                    </template>\n                </template>\n            </strong>\n            <span>\n                <span v-if=\"property.property.valueType === 'file'\">\n                    <a :href=\"property.property.value | fileUploadPath\" target=\"_blank\">\n                        <i class=\"fa fa-external-link\" aria-hidden=\"true\"></i>\n                        {{ property.property.value | fileName }}\n                    </a>\n                </span>\n                <span v-else-if=\"property.property.valueType !== 'empty'\">{{ property.property.value }}</span>\n            </span>\n        </span>\n    </li>\n</template>\n\n<script>\nimport { hasVat, isAdditionalCosts } from \"../../helper/OrderPropertyHelper\";\nexport default {\n    name: \"order-property-value-list-item\",\n\n    props:\n    {\n        property:\n        {\n            required: true,\n            type: Object\n        }\n    },\n\n    computed:\n    {\n        surcharge()\n        {\n            return this.$options.filters.propertySurcharge([this.property], this.property.propertyId);\n        },\n\n        isAdditionalCost()\n        {\n            return isAdditionalCosts(this.property);\n        },\n\n        isTaxless()\n        {\n            return !hasVat(this.property) && App.useVariationOrderProperties;\n        },\n\n        showColon()\n        {\n            return this.property && this.property.property.value && this.property.property.valueType !== \"empty\";\n        }\n    }\n}\n</script>\n","import { render, staticRenderFns } from \"./OrderPropertyValueListItem.vue?vue&type=template&id=905d838e&\"\nimport script from \"./OrderPropertyValueListItem.vue?vue&type=script&lang=js&\"\nexport * from \"./OrderPropertyValueListItem.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:\\\\Plentymarkets\\\\26628\\\\48\\\\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('905d838e')) {\n      api.createRecord('905d838e', component.options)\n    } else {\n      api.reload('905d838e', component.options)\n    }\n    module.hot.accept(\"./OrderPropertyValueListItem.vue?vue&type=template&id=905d838e&\", function () {\n      api.rerender('905d838e', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/item/OrderPropertyValueListItem.vue\"\nexport default component.exports","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderPropertyValueList.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!./OrderPropertyValueList.vue?vue&type=script&lang=js&\"","<template>\n    <div class=\"small\" v-if=\"shownProperties && shownProperties.length\">\n        <div class=\"font-weight-bold my-1\">{{ $translate('Ceres::Template.basketAdditionalCosts') }}:</div>\n        <ul class=\"ml-1 pl-3\" data-testing=\"order-property-list\">\n            <order-property-value-list-item v-for=\"property in shownProperties\" :key=\"property.propertyId\" :property=\"property\"></order-property-value-list-item>\n        </ul>\n    </div>\n</template>\n\n<script>\nimport { isDefined } from '../../helper/utils';\nimport OrderPropertyValueListItem from './OrderPropertyValueListItem.vue';\n\nexport default {\n    name: \"order-property-value-list\",\n\n    components:\n    {\n        OrderPropertyValueListItem\n    },\n\n    props:\n    {\n        basketItem:\n        {\n            required: true,\n            type: Object\n        }\n    },\n\n    computed:\n    {\n        shownProperties()\n        {\n            const shownProperties = [];\n\n            this.basketItem.variation.data.properties.forEach(property =>\n            {\n                const filledProperty = this.basketItem.basketItemOrderParams.find(prop =>\n                {\n                    return parseInt(prop.propertyId) === property.propertyId;\n                });\n\n                if (isDefined(filledProperty))\n                {\n                    if (filledProperty.type === \"selection\")\n                    {\n                        property.property.value = property.property.selectionValues[filledProperty.value].name;\n                    }\n                    else\n                    {\n                        property.property.value = filledProperty.value;\n                    }\n                }\n\n                if(isDefined(filledProperty) || this.isPropertyWithAdditionalCosts(property))\n                {\n                    shownProperties.push(property);\n                }\n            });\n\n            return shownProperties;\n        }\n    },\n\n    methods:\n    {\n        isPropertyWithAdditionalCosts(property)\n        {\n            return property.property &&\n                property.property.isShownAtCheckout &&\n                property.property.isShownAsAdditionalCosts &&\n                !property.property.isOderProperty\n        }\n    }\n}\n</script>\n","import { render, staticRenderFns } from \"./OrderPropertyValueList.vue?vue&type=template&id=0f3f4786&\"\nimport script from \"./OrderPropertyValueList.vue?vue&type=script&lang=js&\"\nexport * from \"./OrderPropertyValueList.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:\\\\Plentymarkets\\\\26628\\\\48\\\\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('0f3f4786')) {\n      api.createRecord('0f3f4786', component.options)\n    } else {\n      api.reload('0f3f4786', component.options)\n    }\n    module.hot.accept(\"./OrderPropertyValueList.vue?vue&type=template&id=0f3f4786&\", function () {\n      api.rerender('0f3f4786', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/item/OrderPropertyValueList.vue\"\nexport default component.exports","var render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\"div\", { attrs: { id: \"add-item-to-basket-overlay\" } }, [\n    _c(\"div\", { staticClass: \"modal fade\" }, [\n      _c(\"div\", { staticClass: \"modal-dialog\", attrs: { role: \"document\" } }, [\n        _vm.basketItem\n          ? _c(\n              \"div\",\n              { staticClass: \"modal-content\" },\n              [\n                _c(\"div\", { staticClass: \"modal-header\" }, [\n                  _c(\"div\", { staticClass: \"modal-title h5\" }, [\n                    _vm._v(\n                      _vm._s(_vm.$translate(\"Ceres::Template.singleItemAdded\"))\n                    )\n                  ]),\n                  _vm._v(\" \"),\n                  _vm._m(0),\n                  _vm._v(\" \"),\n                  _c(\n                    \"button\",\n                    {\n                      staticClass: \"close ml-0 pl-1\",\n                      attrs: {\n                        type: \"button\",\n                        \"data-dismiss\": \"modal\",\n                        \"aria-label\": _vm.$translate(\n                          \"Ceres::Template.closeIcon\"\n                        )\n                      }\n                    },\n                    [\n                      _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n                        _vm._v(\"×\")\n                      ])\n                    ]\n                  )\n                ]),\n                _vm._v(\" \"),\n                _c(\"div\", { staticClass: \"modal-body\" }, [\n                  _c(\"div\", { staticClass: \"row is-table-row\" }, [\n                    _c(\n                      \"div\",\n                      {\n                        staticClass: \"col-md-4\",\n                        staticStyle: { \"min-height\": \"80px\" }\n                      },\n                      [\n                        _c(\"lazy-img\", {\n                          style: { maxHeight: \"140px\" },\n                          attrs: {\n                            \"image-url\": _vm.imageUrl,\n                            alt: _vm.imageAlternativeText || _vm.itemName,\n                            title: _vm.itemName,\n                            \"picture-class\": \"img-fluid mx-auto\"\n                          }\n                        })\n                      ],\n                      1\n                    ),\n                    _vm._v(\" \"),\n                    _c(\n                      \"div\",\n                      { staticClass: \"col-md-8\" },\n                      [\n                        _c(\"p\", [\n                          _c(\"strong\", [_vm._v(_vm._s(_vm.itemName))]),\n                          _vm._v(\" \"),\n                          _c(\"br\"),\n                          _vm._v(\" \"),\n                          _vm.countAdditionalBasketItems > 0\n                            ? _c(\"span\", [\n                                _vm._v(\n                                  _vm._s(\n                                    _vm.$translate(\n                                      \"Ceres::Template.basketItemOverlayAdditionalCount\",\n                                      { count: _vm.countAdditionalBasketItems }\n                                    )\n                                  )\n                                )\n                              ])\n                            : _vm._e()\n                        ]),\n                        _vm._v(\" \"),\n                        _c(\"p\", { staticClass: \"small\" }, [\n                          _c(\"strong\", [\n                            _c(\"span\", { staticClass: \"text-muted\" }, [\n                              _vm._v(_vm._s(_vm.basketItem.quantity) + \" x \")\n                            ]),\n                            _vm._v(\" \"),\n                            _c(\"span\", [\n                              _vm._v(_vm._s(_vm._f(\"currency\")(_vm.price)))\n                            ])\n                          ])\n                        ]),\n                        _vm._v(\" \"),\n                        _vm._l(_vm.variation.attributes, function(attribute) {\n                          return _c(\"p\", { staticClass: \"small\" }, [\n                            _c(\"strong\", [\n                              _vm._v(_vm._s(attribute.attribute.names.name))\n                            ]),\n                            _vm._v(\":\\n                                \"),\n                            _c(\"span\", [\n                              _vm._v(_vm._s(attribute.value.names.name))\n                            ])\n                          ])\n                        }),\n                        _vm._v(\" \"),\n                        _c(\"order-property-value-list\", {\n                          attrs: { \"basket-item\": _vm.basketItem }\n                        })\n                      ],\n                      2\n                    )\n                  ])\n                ]),\n                _vm._v(\" \"),\n                _c(\"div\", { staticClass: \"modal-footer\" }, [\n                  _c(\n                    \"a\",\n                    {\n                      directives: [\n                        {\n                          name: \"waiting-animation-infinite\",\n                          rawName: \"v-waiting-animation-infinite\"\n                        }\n                      ],\n                      staticClass: \"btn btn-outline-primary btn-medium mr-2\",\n                      attrs: { href: _vm.urls.basket, rel: \"nofollow\" }\n                    },\n                    [\n                      _c(\"i\", {\n                        staticClass: \"fa fa-shopping-cart\",\n                        attrs: { \"aria-hidden\": \"true\" }\n                      }),\n                      _vm._v(\n                        \"\\n                        \" +\n                          _vm._s(\n                            _vm.$translate(\"Ceres::Template.singleItemBasket\")\n                          ) +\n                          \"\\n                    \"\n                      )\n                    ]\n                  ),\n                  _vm._v(\" \"),\n                  _c(\n                    \"a\",\n                    {\n                      directives: [\n                        {\n                          name: \"waiting-animation-infinite\",\n                          rawName: \"v-waiting-animation-infinite\"\n                        }\n                      ],\n                      staticClass: \"btn btn-primary btn-medium\",\n                      attrs: { href: _vm.urls.checkout, rel: \"nofollow\" }\n                    },\n                    [\n                      _c(\"i\", {\n                        staticClass: \"fa fa-arrow-right\",\n                        attrs: { \"aria-hidden\": \"true\" }\n                      }),\n                      _vm._v(\n                        \"\\n                        \" +\n                          _vm._s(\n                            _vm.$translate(\"Ceres::Template.singleItemCheckout\")\n                          ) +\n                          \"\\n                    \"\n                      )\n                    ]\n                  )\n                ]),\n                _vm._v(\" \"),\n                _vm._t(\"extendOverlayButtons\")\n              ],\n              2\n            )\n          : _vm._e()\n      ])\n    ])\n  ])\n}\nvar staticRenderFns = [\n  function() {\n    var _vm = this\n    var _h = _vm.$createElement\n    var _c = _vm._self._c || _h\n    return _c(\"span\", { staticClass: \"text-muted ml-auto\" }, [\n      _c(\"span\", { staticClass: \"timer\" }),\n      _vm._v(\"s\")\n    ])\n  }\n]\nrender._withStripped = true\n\nexport { render, staticRenderFns }","<template>\n    <div id=\"add-item-to-basket-overlay\">\n        <div class=\"modal fade\">\n            <div class=\"modal-dialog\" role=\"document\">\n                <div class=\"modal-content\" v-if=\"basketItem\">\n\n                    <!-- MODAL HEADER -->\n                    <div class=\"modal-header\">\n                        <div class=\"modal-title h5\">{{ $translate(\"Ceres::Template.singleItemAdded\") }}</div>\n                        <span class=\"text-muted ml-auto\"><span class=\"timer\"></span>s</span>\n                        <button type=\"button\" class=\"close ml-0 pl-1\" data-dismiss=\"modal\" :aria-label=\"$translate('Ceres::Template.closeIcon')\">\n                            <span aria-hidden=\"true\">&times;</span>\n                        </button>\n                    </div>\n                    <!-- ./MODAL HEADER -->\n\n                    <!-- MODAL BODY -->\n                    <div class=\"modal-body\">\n                        <div class=\"row is-table-row\">\n                            <div class=\"col-md-4\" style=\"min-height: 80px;\">\n                                <lazy-img\n                                    :image-url=\"imageUrl\"\n                                    :alt=\"imageAlternativeText || itemName\"\n                                    :title=\"itemName\"\n                                    :style=\"{ maxHeight: '140px' }\"\n                                    picture-class=\"img-fluid mx-auto\" />\n                            </div>\n                            <div class=\"col-md-8\">\n                                <p>\n                                    <strong>{{ itemName }}</strong>\n                                    <br>\n                                    <span v-if=\"countAdditionalBasketItems > 0\">{{ $translate(\"Ceres::Template.basketItemOverlayAdditionalCount\", {\"count\": countAdditionalBasketItems }) }}</span>\n                                </p>\n\n                                <p class=\"small\">\n                                    <strong>\n                                        <span class=\"text-muted\">{{ basketItem.quantity }} x </span>\n                                        <span>{{ price | currency }}</span>\n                                    </strong>\n                                </p>\n                                <!--<p>\n                                    <item-bundle v-if=\"isLastBasketEntrySet\" :bundle-type=\"variation.variation.bundleType\" :bundle-components=\"variation.bundleComponents\"></item-bundle>\n                                </p> -->\n\n                                <p class=\"small\" v-for=\"attribute in variation.attributes\">\n                                    <strong>{{ attribute.attribute.names.name }}</strong>:\n                                    <span>{{ attribute.value.names.name }}</span>\n                                </p>\n\n                                <order-property-value-list :basket-item=\"basketItem\"></order-property-value-list>\n\n                            </div>\n                        </div>\n                    </div>\n                    <!-- ./MODAL BODY -->\n\n                    <!-- MODAL FOOTER -->\n                    <div class=\"modal-footer\">\n                        <a v-waiting-animation-infinite :href=\"urls.basket\" rel=\"nofollow\" class=\"btn btn-outline-primary btn-medium mr-2\">\n                            <i class=\"fa fa-shopping-cart\" aria-hidden=\"true\"></i>\n                            {{ $translate(\"Ceres::Template.singleItemBasket\") }}\n                        </a>\n                        <a v-waiting-animation-infinite :href=\"urls.checkout\" rel=\"nofollow\" class=\"btn btn-primary btn-medium\">\n                            <i class=\"fa fa-arrow-right\" aria-hidden=\"true\"></i>\n                            {{ $translate(\"Ceres::Template.singleItemCheckout\") }}\n                        </a>\n                    </div>\n                    <slot name=\"extendOverlayButtons\"></slot>\n                    <!-- ./MODAL FOOTER -->\n\n                </div>\n            </div>\n        </div>\n    </div>\n</template>\n\n<script>\nimport { isNullOrUndefined } from \"../../helper/utils\";\nimport { mapState } from \"vuex\";\nimport OrderPropertyValueList from \"../item/OrderPropertyValueList.vue\"\n\nconst ModalService  = require(\"../../services/ModalService\");\nconst ApiService    = require(\"../../services/ApiService\");\n\nexport default {\n    name: \"add-item-to-basket-overlay\",\n\n    components: {\n        OrderPropertyValueList\n    },\n    \n    props: {\n        defaultTimeToClose: {\n            type: Number,\n            default: 15\n        }\n    },\n\n    data()\n    {\n        return {\n            price: 0,\n            basketItem: null,\n            countAdditionalBasketItems: 0\n        };\n    },\n\n    mounted()\n    {\n        if (App.config.basket.addItemToBasketConfirm === \"overlay\")\n        {\n            ApiService.listen(\"AfterBasketItemUpdate\", data =>\n            {\n                const updatedBasketItem = data.basketItems[0];\n\n                if (!this.isBasketItemQuantityUpdate)\n                {\n                    const basketItem = this.basketItems.find(item => item.id === updatedBasketItem.id) || {};\n\n                    this.showItem(basketItem);\n                }\n            });\n\n            ApiService.listen(\"AfterBasketItemAdd\", data =>\n            {\n                this.showItem(data.basketItems[0], data.basketItems.length - 1);\n            });\n        }\n    },\n\n    computed:\n    {\n        ...mapState({\n            basketItems: state => state.basket.items,\n            isBasketItemQuantityUpdate: state => state.basket.isBasketItemQuantityUpdate\n        }),\n\n        isLastBasketEntrySet()\n        {\n            return !isNullOrUndefined(this.basketItem);\n        },\n\n        variation()\n        {\n            if (this.basketItem)\n            {\n                return this.basketItem.variation ? this.basketItem.variation.data : null;\n            }\n\n            return null;\n        },\n\n        itemName()\n        {\n            if (this.isLastBasketEntrySet)\n            {\n                return this.$options.filters.itemName(this.variation);\n            }\n\n            return \"\";\n        },\n\n        imageUrl()\n        {\n            if (this.isLastBasketEntrySet)\n            {\n                const images = this.$options.filters.itemImages(this.variation.images, \"urlPreview\");\n\n                return this.$options.filters.itemImage(images);\n            }\n\n            return \"\";\n        },\n\n        imageAlternativeText()\n        {\n            if (this.isLastBasketEntrySet)\n            {\n                const images = this.$options.filters.itemImages(this.variation.images, \"urlPreview\");\n\n                return this.$options.filters.itemImageAlternativeText(images);\n            }\n\n            return \"\";\n        },\n\n        urls()\n        {\n            return {\n                basket: App.urls.basket,\n                checkout: App.urls.checkout\n            }\n        }\n    },\n\n    methods:\n    {\n        showItem(basketItem, countAdditionalBasketItems)\n        {\n            this.basketItem = basketItem;\n            this.countAdditionalBasketItems = countAdditionalBasketItems;\n            this.price = basketItem.price;\n\n            ModalService\n                .findModal(document.getElementById(\"add-item-to-basket-overlay\"))\n                .setTimeout(this.defaultTimeToClose * 1000)\n                .show();\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!./AddItemToBasketOverlay.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!./AddItemToBasketOverlay.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AddItemToBasketOverlay.vue?vue&type=template&id=71cf7942&\"\nimport script from \"./AddItemToBasketOverlay.vue?vue&type=script&lang=js&\"\nexport * from \"./AddItemToBasketOverlay.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:\\\\Plentymarkets\\\\26628\\\\48\\\\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('71cf7942')) {\n      api.createRecord('71cf7942', component.options)\n    } else {\n      api.reload('71cf7942', component.options)\n    }\n    module.hot.accept(\"./AddItemToBasketOverlay.vue?vue&type=template&id=71cf7942&\", function () {\n      api.rerender('71cf7942', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/basket/AddItemToBasketOverlay.vue\"\nexport default component.exports"],"sourceRoot":""}