{"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?f571","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?402b","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?f556","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","component","options","__file","id","role","basketItem","_m","type","staticStyle","src","imageUrl","alt","imageAlternativeText","itemName","title","countAdditionalBasketItems","count","quantity","price","variation","attributes","attribute","directives","rawName","urls","basket","rel","checkout","_t"],"mappings":"2FAAA,IAAIA,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACTC,EAAKJ,EAAIK,MAAMD,IAAMF,EACzB,OAAOF,EAAIM,iBAAmBN,EAAIM,gBAAgBC,OAC9CH,EAAG,MAAO,CAAEI,YAAa,SAAW,CAClCJ,EAAG,MAAO,CAAEI,YAAa,yBAA2B,CAClDR,EAAIS,GACFT,EAAIU,GAAGV,EAAIW,WAAW,0CACpB,OAGNX,EAAIS,GAAG,KACPL,EACE,KACA,CACEI,YAAa,YACbI,MAAO,CAAE,eAAgB,wBAE3BZ,EAAIa,GAAGb,EAAIM,iBAAiB,SAASQ,GACnC,OAAO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,OACA,uDAEM,EAAN,4CAEQ,IAAR,mBAEQ,IAAR,6BACA,CACU,IAAV,kCAAY,OAAZ,mBAEU,EAAV,gBAIM,EAAN,yCAEQ,EAAR,uDAKE,SAAF,OAEA,aACI,YAAJ,YAAM,OAAN,gBACI,2BAAJ,YAAM,OAAN,wCAJA,IAOI,qBAPJ,WASM,OAAN,8BAGI,UAZJ,WAcM,OAAN,iBAEA,yDAGA,MAGI,SAtBJ,WAwBM,OAAN,0BAEA,+CAGA,IAGI,SAhCJ,WAkCM,GAAN,0BACA,CACQ,IAAR,uEAEQ,OAAR,mCAGM,MAAN,IAGI,qBA5CJ,WA8CM,GAAN,0BACA,CACQ,IAAR,uEAEQ,OAAR,kDAGM,MAAN,IAGI,KAxDJ,WA0DM,MAAN,CACQ,OAAR,gBACQ,SAAR,sBAKE,QACF,CACI,SADJ,SACA,KAEM,KAAN,aACM,KAAN,6BACM,KAAN,cAEM,EACN,iEACA,wCACA,U,OElMIc,EAAY,YACd,EACAjC,EH8KoB,CACpB,WACE,IACIG,EADMD,KACGE,eACTC,EAFMH,KAEGI,MAAMD,IAAMF,EACzB,OAAOE,EAAG,OAAQ,CAAEI,YAAa,sBAAwB,CACvDJ,EAAG,OAAQ,CAAEI,YAAa,UAJlBP,KAKJQ,GAAG,UGnLX,EACA,KACA,KACA,MAuBFuB,EAAUC,QAAQC,OAAS,oEACZ,UAAAF,E","file":"chunks/ceres-client-14.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(\"/Users/LemonGraphixx/Desktop/Sites/8235/15/nextorchVueTheme/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(\"/Users/LemonGraphixx/Desktop/Sites/8235/15/nextorchVueTheme/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(\"img\", {\n                          staticClass: \"img-fluid mx-auto\",\n                          staticStyle: { \"max-height\": \"140px\" },\n                          attrs: {\n                            src: _vm.imageUrl,\n                            alt: _vm.imageAlternativeText || _vm.itemName,\n                            title: _vm.itemName\n                          }\n                        })\n                      ]\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                                <img style=\"max-height: 140px;\" class=\"img-fluid mx-auto\" :src=\"imageUrl\" :alt=\"imageAlternativeText || itemName\" :title=\"itemName\"/>\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(\"/Users/LemonGraphixx/Desktop/Sites/8235/15/nextorchVueTheme/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":""}