{"version":3,"sources":["webpack:///./resources/js/src/app/components/item/ItemAvailability.vue?3bb4","webpack:///./resources/js/src/app/components/item/ItemAvailability.vue?8b4e","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,CAC3DN,EAAG,OAAQ,CALPF,KAKYS,GAAG,aALfT,KAKkCU,GALlCV,KAKyCW,MAAQ,cALjDX,KAOFY,MAGVd,EAAOe,eAAgB,E,SCXiM,ECWxN,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,QACA,0DACA,sBAII,KAfJ,WAgBM,OAAN,4E,OCnCIC,EAAY,YACd,EACAhB,EHCoB,IGCpB,EACA,KACA,KACA,MAuBFgB,EAAUC,QAAQC,OAAS,4DACZ,UAAAF,E","file":"chunks/ceres-client-34.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        _c(\"span\", [_vm._v(\"\\n        \" + _vm._s(_vm.name) + \"\\n    \")])\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\"\n        :class=\"classes\"\n        :style=\"paddingStyles\">\n        <span>\n            {{ name }}\n        </span>\n    </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                \"badge\",\n                \"availability-\" + (this.availability && this.availability.id),\n                this.paddingClasses\n            ];\n        },\n\n        name() {\n            return this.availability && this.availability.names && this.availability.names.name;\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(\"/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('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":""}