{"version":3,"sources":["webpack:///./resources/js/src/app/components/item/ItemAvailability.vue?3bb4","webpack:///./resources/js/src/app/components/item/ItemAvailability.vue?46e9","webpack:///resources/js/src/app/components/item/ItemAvailability.vue","webpack:///./resources/js/src/app/components/item/ItemAvailability.vue"],"names":["render","_h","this","$createElement","_c","_self","availability","class","classes","style","paddingStyles","_v","_s","name","_e","_withStripped","component","options","__file"],"mappings":"kGAAA,IAAIA,EAAS,WACX,IACIC,EADMC,KACGC,eACTC,EAFMF,KAEGG,MAAMD,IAAMH,EACzB,OAHUC,KAGCI,aACPF,EAAG,OAAQ,CAAEG,MAJPL,KAIkBM,QAASC,MAJ3BP,KAIsCQ,eAAiB,CAJvDR,KAKAS,GALAT,KAKOU,GALPV,KAKcW,SALdX,KAOFY,MAGVd,EAAOe,eAAgB,E,eCXiM,ECKxN,CACE,KAAF,oBAEE,MAAF,CACI,eAAJ,OACI,cAAJ,QAGE,OAAF,CACI,OAAJ,CACM,QAAN,OAIE,SACF,CACI,aADJ,WAEM,IAAN,sEACM,OAAN,0CAGI,QANJ,WAOM,MAAN,CACA,eACA,0DACA,sBAII,KAdJ,WAeM,IAAN,2EAMM,OALN,oEACA,4BAEQ,EAAR,uEAEA,K,OClCIC,EAAY,YACd,EACAhB,EHCoB,IGCpB,EACA,KACA,KACA,MAuBFgB,EAAUC,QAAQC,OAAS,4DACZ,UAAAF,E","file":"chunks/ceres-26.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.availability\n    ? _c(\"span\", { class: _vm.classes, style: _vm.paddingStyles }, [\n        _vm._v(_vm._s(_vm.name))\n      ])\n    : _vm._e()\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!./ItemAvailability.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!./ItemAvailability.vue?vue&type=script&lang=js&\"","<template>\n    <span v-if=\"availability\" :class=\"classes\" :style=\"paddingStyles\">{{ name }}</span>\n</template>\n\n<script>\nexport default {\n    name: \"item-availability\",\n\n    props: {\n        paddingClasses: String,\n        paddingStyles: String\n    },\n\n    inject: {\n        itemId: {\n            default: null\n        }\n    },\n\n    computed:\n    {\n        availability() {\n            const currentVariation = this.$store.getters[`${this.itemId}/currentItemVariation`];\n            return currentVariation && currentVariation.variation && currentVariation.variation.availability;\n        },\n\n        classes() {\n            return [\n                \"availability\",\n                \"availability-\" + (this.availability && this.availability.id),\n                this.paddingClasses\n            ];\n        },\n\n        name() {\n            let aname = this.availability && this.availability.names && this.availability.names.name;\n            const currentVariation = this.$store.getters[`${this.itemId}/currentItemVariation`];\n            if (!currentVariation.filter.isSalableAndActive)\n            {\n                aname = this.$translate(\"Ceres::Template.singleItemPleaseSelectNotAvailable\")\n            }\n            return aname;\n        }\n    }\n}\n</script>\n","import { render, staticRenderFns } from \"./ItemAvailability.vue?vue&type=template&id=3f09aa68&\"\nimport script from \"./ItemAvailability.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemAvailability.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/uweschurmann/PhpstormProjects/19338/15137/51/HydronalinTheme/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('3f09aa68')) {\n      api.createRecord('3f09aa68', component.options)\n    } else {\n      api.reload('3f09aa68', component.options)\n    }\n    module.hot.accept(\"./ItemAvailability.vue?vue&type=template&id=3f09aa68&\", function () {\n      api.rerender('3f09aa68', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/item/ItemAvailability.vue\"\nexport default component.exports"],"sourceRoot":""}