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kB,G,uDCKtB,IAAqBC,EAArB,cAAyCC,EAAAA,GAAGC,eAAAC,GAAA,SAAAA,IAAAC,EAAAA,EAAAA,GAAA,sBAAAA,EAAAA,EAAAA,GAAA,iBAGlB,GAAE,CAExBjB,SAASL,GACL,OAAOA,EAAKuB,MAAQjC,EAAAA,EAAekC,MACvC,CAEAf,YAAYT,GACR,OAAOA,EAAKuB,MAAQjC,EAAAA,EAAemC,SACvC,CAEAf,OAAOV,GACH,OAAOA,EAAKuB,MAAQjC,EAAAA,EAAeoC,IACvC,CAEAtB,YAAYH,GACR,OAAOR,KAAKkC,UAAUC,SAAS3B,EACnC,CAEAY,WAAWZ,GACHR,KAAKkC,UAAUC,SAAS3B,GACzBR,KAAKkC,UAAYlC,KAAKkC,UAAUE,QAAOC,GAAKA,GAAK7B,IAEhDR,KAAKkC,UAAUI,KAAK9B,EAC5B,IAzBuC+B,EAAAA,EAAAA,IAAA,EAAtCC,EAAAA,EAAAA,IAAK,CAAEV,KAAMW,MAAOC,UAAU,KAAO,4BADrBjB,GAAWc,EAAAA,EAAAA,IAAA,EAH/BI,EAAAA,EAAAA,IAAU,CACPC,KAAM,iBAEWnB,G,UCPyc,I,eCO1doB,GAAY,OACd,EACA/C,EACA0B,GACA,EACA,KACA,KACA,MAIF,QAAeqB,EAAiB,O","sources":["webpack://website-js/./src/models/Recipe.ts","webpack://website-js/./src/components/recipe/RecipeSteps.vue","webpack://website-js/./src/components/recipe/RecipeSteps.vue?ac06","webpack://website-js/./src/components/recipe/RecipeSteps.vue?9035","webpack://website-js/./src/components/recipe/RecipeSteps.vue?243d"],"sourcesContent":["import { DisplayPriceInfo } from \"./Product\";\r\n\r\nexport interface RecipeIngredient {\r\n type: RecipeItemType;\r\n displayquantity: string;\r\n quantity: number;\r\n displaylabel: string;\r\n unit?: string;\r\n link: string;\r\n info: string;\r\n variants: RecipeIngredientVariant[];\r\n}\r\n\r\nexport enum RecipeItemType {\r\n Header,\r\n Display,\r\n Product\r\n}\r\n\r\nexport interface RecipeIngredientVariant {\r\n productid: string;\r\n consumptionprbatch: string;\r\n consumptionprbatchasdecimal: number;\r\n}\r\n\r\nexport interface RecipeContainer {\r\n type: RecipeItemType;\r\n quantityprbatch: string;\r\n displaylabel: string;\r\n link: string;\r\n productid: string;\r\n quantityprbatchasdecimal: number;\r\n}\r\n\r\nexport interface RecipeStep {\r\n type: RecipeStepType;\r\n number?: number | null;\r\n text: string;\r\n}\r\n\r\nexport enum RecipeStepType {\r\n Header,\r\n Subheader,\r\n Step\r\n}\r\n\r\nexport interface RecipeCalculationRequest {\r\n contentid: number;\r\n noofbatches: number;\r\n containerid: string;\r\n}\r\n\r\nexport interface RecipeCalculationResponse {\r\n ingredients: RecipeCalculationResponseIngredient[];\r\n containers: RecipeCalculationResponseContainer[];\r\n outofstockitems: string[];\r\n priceperbatch: DisplayPriceInfo;\r\n pricetotal: DisplayPriceInfo;\r\n}\r\n\r\nexport interface RecipeCalculationResponseItem {\r\n id: string;\r\n name: string;\r\n volume: string;\r\n price: DisplayPriceInfo;\r\n quantity: string;\r\n quantityasnumeric: number;\r\n}\r\n\r\nexport interface RecipeCalculationResponseIngredient extends RecipeCalculationResponseItem {\r\n parent: string;\r\n usage: number;\r\n}\r\n\r\nexport interface RecipeCalculationResponseContainer extends RecipeCalculationResponseItem {\r\n selected: boolean;\r\n}\r\n\r\nexport interface AddedRecipe {\r\n id: string;\r\n name: string;\r\n url: string;\r\n}\r\n\r\nexport interface RecipePreview {\r\n id: number;\r\n name: string;\r\n summary: string;\r\n image: string;\r\n url: string;\r\n}","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"recipe-steps\"},_vm._l((_vm.steps),function(step,idx){return _c('div',{key:idx,staticClass:\"recipe-step\",class:{ 'recipe-step-completed' : _vm.isCompleted(idx) }},[(_vm.isHeader(step))?_c('div',{staticClass:\"recipe-step-header\"},[_c('h3',[_vm._v(_vm._s(step.text))])]):(_vm.isSubheader(step))?_c('div',{staticClass:\"recipe-step-subheader\"},[_c('h5',[_vm._v(_vm._s(step.text))])]):(_vm.isStep(step))?[_c('div',{staticClass:\"recipe-step-number\",on:{\"click\":function($event){return _vm.toggleStep(idx)}}},[(_vm.isCompleted(idx))?[_c('span',{staticClass:\"uk-icon\",attrs:{\"uk-icon\":\"icon: check; ratio: .7\"}})]:[_vm._v(_vm._s(step.number))]],2),_c('div',{staticClass:\"recipe-step-text\"},[_vm._v(_vm._s(step.text))])]:_vm._e()],2)}),0)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { RecipeStep, RecipeStepType } from '@/models/Recipe';\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n\r\n@Component({\r\n name: 'RecipeSteps',\r\n})\r\nexport default class RecipeSteps extends Vue {\r\n @Prop({ type: Array, required: true }) steps: RecipeStep[];\r\n\r\n completed: number[] = [];\r\n\r\n isHeader(step: RecipeStep): boolean {\r\n return step.type == RecipeStepType.Header;\r\n }\r\n\r\n isSubheader(step: RecipeStep): boolean {\r\n return step.type == RecipeStepType.Subheader;\r\n }\r\n\r\n isStep(step: RecipeStep): boolean {\r\n return step.type == RecipeStepType.Step;\r\n }\r\n\r\n isCompleted(idx: number) {\r\n return this.completed.includes(idx);\r\n }\r\n\r\n toggleStep(idx: number) {\r\n if (this.completed.includes(idx))\r\n this.completed = this.completed.filter(c => c != idx);\r\n else\r\n this.completed.push(idx); \r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./RecipeSteps.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./RecipeSteps.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RecipeSteps.vue?vue&type=template&id=17a2d738&\"\nimport script from \"./RecipeSteps.vue?vue&type=script&lang=ts&\"\nexport * from \"./RecipeSteps.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["RecipeItemType","RecipeStepType","render","_vm","this","_c","_self","_setupProxy","staticClass","_l","steps","step","idx","key","class","isCompleted","isHeader","_v","_s","text","isSubheader","isStep","on","$event","toggleStep","attrs","number","_e","staticRenderFns","RecipeSteps","Vue","constructor","args","_defineProperty","type","Header","Subheader","Step","completed","includes","filter","c","push","__decorate","Prop","Array","required","Component","name","component"],"sourceRoot":""}