{"version":3,"sources":["webpack:///./resources/js/src/app/components/item/ItemBundle.vue?0669","webpack:///resources/js/src/app/components/item/ItemBundle.vue","webpack:///./resources/js/src/app/components/item/ItemBundle.vue?f8ac","webpack:///./resources/js/src/app/components/item/ItemBundle.vue","webpack:///./resources/js/src/app/components/item/SingleItemBundle.vue?e17e","webpack:///./resources/js/src/app/components/item/SingleItemBundle.vue?3c6f","webpack:///resources/js/src/app/components/item/SingleItemBundle.vue","webpack:///./resources/js/src/app/components/item/SingleItemBundle.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","showItemBundleItems","staticClass","_v","_s","$translate","_l","bundleComponents","item","class","paddingClasses","style","paddingInlineStyles","quantity","attrs","href","_f","data","getBundleInnerText","_t","_withStripped","component","options","__file","bundleType","isPreview","_e"],"mappings":"qGAAA,IAAIA,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACTC,EAAKJ,EAAIK,MAAMD,IAAMF,EACzB,OAAOE,EAAG,MAAO,CACfJ,EAAIM,oBACAF,EACE,MACA,CAAEG,YAAa,+BACf,CACEH,EAAG,SAAU,CACXJ,EAAIQ,GACFR,EAAIS,GAAGT,EAAIU,WAAW,yCAG1BV,EAAIQ,GAAG,KACPR,EAAIW,GAAGX,EAAIY,kBAAkB,SAASC,GACpC,OAAOT,EACL,MACA,CAAEU,MAAOd,EAAIe,eAAgBC,MAAOhB,EAAIiB,qBACxC,CACEb,EAAG,OAAQ,CAAEG,YAAa,cAAgB,CACxCP,EAAIQ,GAAGR,EAAIS,GAAGI,EAAKK,UAAY,QAEjClB,EAAIQ,GAAG,KACPJ,EACE,IACA,CACEG,YAAa,kBACbY,MAAO,CAAEC,KAAMpB,EAAIqB,GAAG,UAAPrB,CAAkBa,EAAKS,QAExC,CACEtB,EAAIQ,GACF,IACER,EAAIS,GACFT,EAAIqB,GAAG,WAAPrB,CACEA,EAAIuB,mBAAmBV,EAAKS,QAGhC,aAQhB,GAEFlB,EAAG,MAAO,CAACJ,EAAIw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ACA,KACA,MAuBF2B,EAAUC,QAAQC,OAAS,4DACZ,UAAAF,E","file":"chunks/ceres-20.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(\"div\", [\n    _vm.showItemBundleItems\n      ? _c(\n          \"div\",\n          { staticClass: \"small font-weight-bold mb-3\" },\n          [\n            _c(\"strong\", [\n              _vm._v(\n                _vm._s(_vm.$translate(\"Ceres::Template.itemBundleContent\"))\n              )\n            ]),\n            _vm._v(\" \"),\n            _vm._l(_vm.bundleComponents, function(item) {\n              return _c(\n                \"div\",\n                { class: _vm.paddingClasses, style: _vm.paddingInlineStyles },\n                [\n                  _c(\"span\", { staticClass: \"text-muted\" }, [\n                    _vm._v(_vm._s(item.quantity) + \" x\")\n                  ]),\n                  _vm._v(\" \"),\n                  _c(\n                    \"a\",\n                    {\n                      staticClass: \"text-appearance\",\n                      attrs: { href: _vm._f(\"itemURL\")(item.data) }\n                    },\n                    [\n                      _vm._v(\n                        \" \" +\n                          _vm._s(\n                            _vm._f(\"itemName\")(\n                              _vm.getBundleInnerText(item.data)\n                            )\n                          ) +\n                          \" \"\n                      )\n                    ]\n                  )\n                ]\n              )\n            })\n          ],\n          2\n        )\n      : _c(\"div\", [_vm._t(\"default\")], 2)\n  ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","<template>\n    <div>\n        <div class=\"small font-weight-bold mb-3\" v-if=\"showItemBundleItems\">\n            <strong>{{ $translate(\"Ceres::Template.itemBundleContent\") }}</strong>\n            <div v-for=\"item in bundleComponents\" :class=\"paddingClasses\" :style=\"paddingInlineStyles\">\n                <span class=\"text-muted\">{{ item.quantity }} x</span>\n                <a class=\"text-appearance\" :href=\"item.data | itemURL\"> {{ getBundleInnerText(item.data) | itemName }} </a>\n            </div>\n        </div>\n        <div v-else><slot></slot></div>\n    </div>\n</template>\n\n<script>\nexport default {\n\n    name: \"item-bundle\",\n\n    props: {\n        paddingClasses: {\n            type: String,\n            default: null\n        },\n        paddingInlineStyles: {\n            type: String,\n            default: null\n        },\n        bundleType: String,\n        bundleComponents: Array\n    },\n    \n    computed:\n    {\n        showItemBundleItems()\n        {\n            return App.bundleSetting !== 1 && this.bundleType === \"bundle\";\n        }\n    },\n\n    methods:\n    {\n        getBundleInnerText(item)\n        {\n            item.variation.bundleType = null;\n\n            return item;\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!./ItemBundle.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!./ItemBundle.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ItemBundle.vue?vue&type=template&id=4a0735cf&\"\nimport script from \"./ItemBundle.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemBundle.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/runner/work/plugin-ceres/plugin-ceres/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('4a0735cf')) {\n      api.createRecord('4a0735cf', component.options)\n    } else {\n      api.reload('4a0735cf', component.options)\n    }\n    module.hot.accept(\"./ItemBundle.vue?vue&type=template&id=4a0735cf&\", function () {\n      api.rerender('4a0735cf', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/item/ItemBundle.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(\n    \"item-bundle\",\n    {\n      attrs: {\n        \"bundle-type\": _vm.bundleType,\n        \"bundle-components\": _vm.bundleComponents,\n        \"padding-classes\": _vm.paddingClasses,\n        \"padding-inline-styles\": _vm.paddingInlineStyles\n      }\n    },\n    [\n      _vm.isPreview\n        ? _c(\"div\", { staticClass: \"widget-placeholder p-0\" }, [\n            _c(\"div\", [\n              _c(\"p\", { staticClass: \"title mb-0\" }, [\n                _vm._v(\n                  _vm._s(\n                    _vm.$translate(\"Ceres::Widget.itemBundlePlaceholderTitle\")\n                  )\n                )\n              ]),\n              _vm._v(\" \"),\n              _c(\"p\", { staticClass: \"description mt-3\" }, [\n                _vm._v(\n                  _vm._s(\n                    _vm.$translate(\n                      \"Ceres::Widget.itemBundlePlaceholderDescription\"\n                    )\n                  )\n                )\n              ])\n            ])\n          ])\n        : _vm._e()\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!./SingleItemBundle.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!./SingleItemBundle.vue?vue&type=script&lang=js&\"","<template>\n    <item-bundle\n        :bundle-type=\"bundleType\"\n        :bundle-components=\"bundleComponents\"\n        :padding-classes=\"paddingClasses\"\n        :padding-inline-styles=\"paddingInlineStyles\">\n        <div class=\"widget-placeholder p-0\" v-if=\"isPreview\">\n            <div>\n                <p class=\"title mb-0\">{{ $translate(\"Ceres::Widget.itemBundlePlaceholderTitle\") }}</p>\n                <p class=\"description mt-3\">{{ $translate(\"Ceres::Widget.itemBundlePlaceholderDescription\") }}</p>\n            </div>\n        </div>\n    </item-bundle>\n</template>\n\n<script>\nimport ItemBundle from \"./ItemBundle.vue\";\n\nexport default {\n\n    name: \"single-item-bundle\",\n\n    components: {\n        ItemBundle\n    },\n\n    props:{\n        isPreview: Boolean,\n        paddingClasses: {\n            type: String,\n            default: null\n        },\n        paddingInlineStyles: {\n            type: String,\n            default: null\n        },\n    },\n\n    inject: {\n        itemId: {\n            default: null\n        }\n    },\n\n    computed: {\n        bundleType() {\n            return this.isPreview ? 'bundle' : this.$store.getters[`${this.itemId}/currentItemVariation`].variation.bundleType\n        },\n\n        bundleComponents () {\n            return this.$store.getters[`${this.itemId}/currentItemVariation`].bundleComponents;\n        }\n    }\n}\n</script>\n","import { render, staticRenderFns } from \"./SingleItemBundle.vue?vue&type=template&id=605aaeb7&\"\nimport script from \"./SingleItemBundle.vue?vue&type=script&lang=js&\"\nexport * from \"./SingleItemBundle.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/runner/work/plugin-ceres/plugin-ceres/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('605aaeb7')) {\n      api.createRecord('605aaeb7', component.options)\n    } else {\n      api.reload('605aaeb7', component.options)\n    }\n    module.hot.accept(\"./SingleItemBundle.vue?vue&type=template&id=605aaeb7&\", function () {\n      api.rerender('605aaeb7', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/item/SingleItemBundle.vue\"\nexport default component.exports"],"sourceRoot":""}