{"version":3,"sources":["webpack:///./resources/js/src/app/components/basket/BasketPreview.vue?f631","webpack:///resources/js/src/app/components/basket/BasketPreview.vue","webpack:///./resources/js/src/app/components/basket/BasketPreview.vue?ab57","webpack:///./resources/js/src/app/components/basket/BasketPreview.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","class","empty","basketItems","length","hover","_v","_s","$translate","directives","name","rawName","attrs","type","basketNotifications","_l","notification","key","id","message","_e","scopedSlots","_u","fn","_t","proxy","showShippingCountrySelect","href","$ceres","urls","basket","rel","title","checkout","_withStripped","component","options","__file"],"mappings":"kGAAA,IAAIA,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACTC,EAAKJ,EAAIK,MAAMD,IAAMF,EACzB,OAAOE,EACL,MACA,CACEE,YAAa,+BACbC,MAAO,CACLC,OAAQR,EAAIS,YAAYC,OACxB,aAAcV,EAAIW,MAClB,cAAeX,EAAIW,QAGvB,CACEP,EAAG,MAAO,CAAEE,YAAa,2BAA6B,CACpDF,EACE,MACA,CACEE,YACE,uEAEJ,CACEF,EACE,SACA,CAAEE,YAAa,2CACf,CACEF,EAAG,OAAQ,CAAEE,YAAa,WAAa,CACrCN,EAAIY,GACFZ,EAAIa,GAAGb,EAAIc,WAAW,qCAG1Bd,EAAIY,GAAG,KACPR,EACE,SACA,CACEW,WAAY,CACV,CACEC,KAAM,wBACNC,QAAS,4BAGbX,YAAa,QACbY,MAAO,CAAEC,KAAM,SAAU,aAAc,UAEzC,CACEf,EAAG,OAAQ,CAAEc,MAAO,CAAE,cAAe,SAAY,CAC/ClB,EAAIY,GAAG,WAMjBZ,EAAIY,GAAG,KACPZ,EAAIoB,oBAAoBV,OAAS,EAC7BN,EACE,MACAJ,EAAIqB,GAAGrB,EAAIoB,qBAAqB,SAASE,GACvC,OAAOlB,EACL,MACA,CACEmB,IAAKD,EAAaE,GAClBlB,YAAa,4BAEf,CAACF,EAAG,MAAO,CAACJ,EAAIY,GAAGZ,EAAIa,GAA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J,OACA,uDAEM,EAAN,iDAEQ,EAAR,UAGM,EAAN,oDAEA,8BAEU,EAAV,YAME,QACF,CACI,KADJ,WAGM,YAAN,WAEQ,SAAR,oCACA,M,OEjJIC,EAAY,YACd,EACA1C,EH+QoB,IG7QpB,EACA,KACA,KACA,MAuBF0C,EAAUC,QAAQC,OAAS,2DACZ,UAAAF,E","file":"chunks/ceres-19.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: \"basket-preview-wrapper h-100\",\n      class: {\n        empty: !_vm.basketItems.length,\n        \"open-hover\": _vm.hover,\n        \"open-right\": !_vm.hover\n      }\n    },\n    [\n      _c(\"div\", { staticClass: \"position-relative h-100\" }, [\n        _c(\n          \"div\",\n          {\n            staticClass:\n              \"basket-preview d-flex flex-column flex-nowrap bg-white shadow w-100\"\n          },\n          [\n            _c(\n              \"header\",\n              { staticClass: \"basket-preview-header border-bottom p-3\" },\n              [\n                _c(\"span\", { staticClass: \"h3 mb-0\" }, [\n                  _vm._v(\n                    _vm._s(_vm.$translate(\"Ceres::Template.basketPreview\"))\n                  )\n                ]),\n                _vm._v(\" \"),\n                _c(\n                  \"button\",\n                  {\n                    directives: [\n                      {\n                        name: \"toggle-basket-preview\",\n                        rawName: \"v-toggle-basket-preview\"\n                      }\n                    ],\n                    staticClass: \"close\",\n                    attrs: { type: \"button\", \"aria-label\": \"Close\" }\n                  },\n                  [\n                    _c(\"span\", { attrs: { \"aria-hidden\": \"true\" } }, [\n                      _vm._v(\"×\")\n                    ])\n                  ]\n                )\n              ]\n            ),\n            _vm._v(\" \"),\n            _vm.basketNotifications.length > 0\n              ? _c(\n                  \"div\",\n                  _vm._l(_vm.basketNotifications, function(notification) {\n                    return _c(\n                      \"div\",\n                      {\n                        key: notification.id,\n                        staticClass: \"w-100 alert alert-danger\"\n                      },\n                      [_c(\"div\", [_vm._v(_vm._s(notification.message))])]\n                    )\n                  }),\n                  0\n                )\n              : _vm._e(),\n            _vm._v(\" \"),\n            _c(\n              \"div\",\n              { staticClass: \"basket-preview-content d-flex flex-fill\" },\n              [\n                _c(\"basket-list\", {\n                  staticClass:\n                    \"item-list d-flex flex-fill flex-nowrap flex-column overflow-auto px-3\",\n                  attrs: { \"is-preview\": true },\n                  scopedSlots: _vm._u(\n                    [\n                      {\n                        key: \"before-basket-item\",\n                        fn: function() {\n                          return [_vm._t(\"before-basket-item\")]\n                        },\n                        proxy: true\n                      },\n                      {\n                        key: \"after-basket-item\",\n                        fn: function() {\n                          return [_vm._t(\"after-basket-item\")]\n                        },\n                        proxy: true\n                      }\n                    ],\n                    null,\n                    true\n                  )\n                }),\n                _vm._v(\" \"),\n                _c(\n                  \"div\",\n                  {\n                    staticClass:\n                      \"totals d-flex flex-nowrap flex-column px-3 pt-3\"\n                  },\n                  [\n                    _vm.showShippingCountrySelect\n                      ? _c(\"shipping-country-select\", {\n                          attrs: {\n                            \"basket-select\": true,\n                            \"open-basket-preview\": true\n                          }\n                        })\n                      : _vm._e(),\n                    _vm._v(\" \"),\n                    _c(\"hr\"),\n                    _vm._v(\" \"),\n                    _vm._t(\"before-basket-totals\"),\n                    _vm._v(\" \"),\n                    _c(\"basket-totals\", {\n                      scopedSlots: _vm._u(\n                        [\n                          {\n                            key: \"before-item-sum\",\n                            fn: function() {\n                              return [_vm._t(\"before-item-sum\")]\n                            },\n                            proxy: true\n                          },\n                          {\n                            key: \"after-item-sum\",\n                            fn: function() {\n                              return [_vm._t(\"after-item-sum\")]\n                            },\n                            proxy: true\n                          },\n                          {\n                            key: \"before-shipping-costs\",\n                            fn: function() {\n                              return [_vm._t(\"before-shipping-costs\")]\n                            },\n                            proxy: true\n                          },\n                          {\n                            key: \"after-shipping-costs\",\n                            fn: function() {\n                              return [_vm._t(\"after-shipping-costs\")]\n                            },\n                            proxy: true\n                          },\n                          {\n                            key: \"before-total-sum\",\n                            fn: function() {\n                              return [_vm._t(\"before-total-sum\")]\n                            },\n                            proxy: true\n                          },\n                          {\n                            key: \"before-vat\",\n                            fn: function() {\n                              return [_vm._t(\"before-vat\")]\n                            },\n                            proxy: true\n                          },\n                          {\n                            key: \"after-vat\",\n                            fn: function() {\n                              return [_vm._t(\"after-vat\")]\n                            },\n                            proxy: true\n                          },\n                          {\n                            key: \"after-total-sum\",\n                            fn: function() {\n                              return [_vm._t(\"after-total-sum\")]\n                            },\n                            proxy: true\n                          }\n                        ],\n                        null,\n                        true\n                      )\n                    }),\n                    _vm._v(\" \"),\n                    _vm._t(\"after-basket-totals\"),\n                    _vm._v(\" \"),\n                    _c(\n                      \"div\",\n                      { staticClass: \"basket-preview-footer d-flex pb-3\" },\n                      [\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-block\",\n                            attrs: {\n                              href: _vm.$ceres.urls.basket,\n                              rel: \"nofollow\",\n                              title: _vm.$translate(\"Ceres::Template.basket\")\n                            }\n                          },\n                          [\n                            _c(\"i\", { staticClass: \"fa fa-shopping-cart\" }),\n                            _vm._v(\n                              \"\\n                            \" +\n                                _vm._s(\n                                  _vm.$translate(\"Ceres::Template.basket\")\n                                ) +\n                                \"\\n                        \"\n                            )\n                          ]\n                        ),\n                        _vm._v(\" \"),\n                        _vm._t(\"before-checkout-button\"),\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-block\",\n                            attrs: {\n                              href: _vm.$ceres.urls.checkout,\n                              rel: \"nofollow\",\n                              title: _vm.$translate(\n                                \"Ceres::Template.basketCheckout\"\n                              )\n                            }\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(\n                                    \"Ceres::Template.basketCheckout\"\n                                  )\n                                ) +\n                                \"\\n                        \"\n                            )\n                          ]\n                        ),\n                        _vm._v(\" \"),\n                        _vm._t(\"after-checkout-button\")\n                      ],\n                      2\n                    )\n                  ],\n                  2\n                )\n              ],\n              1\n            )\n          ]\n        )\n      ]),\n      _vm._v(\" \"),\n      _c(\"div\", {\n        directives: [\n          { name: \"toggle-basket-preview\", rawName: \"v-toggle-basket-preview\" }\n        ],\n        staticClass: \"basket-preview-overlay\"\n      })\n    ]\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","<template>\n    <div class=\"basket-preview-wrapper h-100\" :class=\"{ 'empty': !basketItems.length, 'open-hover': hover, 'open-right': !hover }\">\n        <div class=\"position-relative h-100\">\n            <div class=\"basket-preview d-flex flex-column flex-nowrap bg-white shadow w-100\">\n\n                <header class=\"basket-preview-header border-bottom p-3\">\n                    <span class=\"h3 mb-0\">{{ $translate(\"Ceres::Template.basketPreview\") }}</span>\n                    <button v-toggle-basket-preview type=\"button\" class=\"close\" aria-label=\"Close\">\n                        <span aria-hidden=\"true\">&times;</span>\n                    </button>\n                </header>\n\n                <div v-if=\"basketNotifications.length > 0\">\n                    <div class=\"w-100 alert alert-danger\" v-for=\"notification in basketNotifications\" :key=\"notification.id\">\n                        <div>{{ notification.message }}</div>\n                    </div>\n                </div>\n\n                <div class=\"basket-preview-content d-flex flex-fill\">\n                    <basket-list class=\"item-list d-flex flex-fill flex-nowrap flex-column overflow-auto px-3\" :is-preview=\"true\">\n                        <template #before-basket-item>\n                            <slot name=\"before-basket-item\"></slot>\n                        </template>\n                        <template #after-basket-item>\n                            <slot name=\"after-basket-item\"></slot>\n                        </template>\n                    </basket-list>\n\n                    <div class=\"totals d-flex flex-nowrap flex-column px-3 pt-3\">\n\n                        <shipping-country-select\n                                v-if=\"showShippingCountrySelect\"\n                                :basket-select=\"true\"\n                                :open-basket-preview=\"true\">\n                        </shipping-country-select>\n                        <hr>\n\n                        <slot name=\"before-basket-totals\"></slot>\n\n                        <basket-totals>\n                            <template #before-item-sum>\n                                <slot name=\"before-item-sum\"></slot>\n                            </template>\n                            <template #after-item-sum>\n                                <slot name=\"after-item-sum\"></slot>\n                            </template>\n                            <template #before-shipping-costs>\n                                <slot name=\"before-shipping-costs\"></slot>\n                            </template>\n                            <template #after-shipping-costs>\n                                <slot name=\"after-shipping-costs\"></slot>\n                            </template>\n                            <template #before-total-sum>\n                                <slot name=\"before-total-sum\"></slot>\n                            </template>\n                            <template #before-vat>\n                                <slot name=\"before-vat\"></slot>\n                            </template>\n                            <template #after-vat>\n                                <slot name=\"after-vat\"></slot>\n                            </template>\n                            <template #after-total-sum>\n                                <slot name=\"after-total-sum\"></slot>\n                            </template>\n                        </basket-totals>\n\n                        <slot name=\"after-basket-totals\"></slot>\n\n                        <div class=\"basket-preview-footer d-flex pb-3\">\n                            <a v-waiting-animation-infinite :href=\"$ceres.urls.basket\" rel=\"nofollow\" class=\"btn btn-outline-primary btn-block\" :title=\"$translate('Ceres::Template.basket')\">\n                                <i class=\"fa fa-shopping-cart\"></i>\n                                {{ $translate(\"Ceres::Template.basket\") }}\n                            </a>\n\n                            <slot name=\"before-checkout-button\"></slot>\n                            <a v-waiting-animation-infinite :href=\"$ceres.urls.checkout\" rel=\"nofollow\" class=\"btn btn-primary btn-block\" :title=\"$translate('Ceres::Template.basketCheckout')\">\n                                <i class=\"fa fa-arrow-right\" aria-hidden=\"true\"></i>\n                                {{ $translate(\"Ceres::Template.basketCheckout\") }}\n                            </a>\n                            <slot name=\"after-checkout-button\"></slot>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class=\"basket-preview-overlay\" v-toggle-basket-preview></div>\n    </div>\n</template>\n\n<script>\nimport ApiService from \"../../services/ApiService\";\nimport { mapState } from \"vuex\";\n\nexport default {\n\n    props:\n    {\n        showNetPrices:\n        {\n            type: Boolean,\n            default: false\n        }\n    },\n\n    computed: {\n        hover()\n        {\n            return App.config.basket.previewType === 'hover';\n        },\n\n        showShippingCountrySelect()\n        {\n            return App.config.basket.showShippingCountrySelect;\n        },\n\n        ...mapState({\n            basket: state => state.basket.data,\n            basketItems: state => state.basket.items,\n            basketNotifications: state => state.basket.basketNotifications,\n            isBasketItemQuantityUpdate: state => state.basket.isBasketItemQuantityUpdate\n        })\n    },\n\n    /**\n     * Bind to basket and bind the basket items\n     */\n    mounted()\n    {\n        if (App.config.basket.addItemToBasketConfirm === \"preview\")\n        {\n            ApiService.listen(\"AfterBasketItemAdd\", data =>\n            {\n                this.show();\n            });\n\n            ApiService.listen(\"AfterBasketItemUpdate\", data =>\n            {\n                if (!this.isBasketItemQuantityUpdate)\n                {\n                    this.show();\n                }\n            });\n        }\n    },\n\n    methods:\n    {\n        show()\n        {\n            setTimeout(function()\n            {\n                document.body.classList.add(\"basket-open\");\n            }, 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!./BasketPreview.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!./BasketPreview.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BasketPreview.vue?vue&type=template&id=614a7aab&\"\nimport script from \"./BasketPreview.vue?vue&type=script&lang=js&\"\nexport * from \"./BasketPreview.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(\"/home/jenkins/workspace/Ceres_Build_Stable/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('614a7aab')) {\n      api.createRecord('614a7aab', component.options)\n    } else {\n      api.reload('614a7aab', component.options)\n    }\n    module.hot.accept(\"./BasketPreview.vue?vue&type=template&id=614a7aab&\", function () {\n      api.rerender('614a7aab', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/basket/BasketPreview.vue\"\nexport default component.exports"],"sourceRoot":""}