1"use strict";(globalThis["webpackChunkwebsite_js"]=globalThis["webpackChunkwebsite_js"]||[]).push([[7911],{47911(t,e,r){r.r(e),r.d(e,{default:()=>y});var s=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"recipe-containers"},[t._l(t.portionedContainers,function(r,s){return[void 0,e("div",{key:`qty_${s}`},[t._v(t._s(r.quantityprbatch))]),e("div",{key:`text_${s}`,staticClass:"recipe-text"},[r.link?e("a",{attrs:{href:r.link}},[t._v(t._s(r.displaylabel))]):[t._v(t._s(r.displaylabel))]],2)]})],2)},i=[],a=(r(51339),r(15215)),n=r(56025),o=r(78236),c=r(29858),d=r(71886);let l=class extends d.lD{get portions(){return o.A.PORTIONS}get portionedContainers(){return(0,c.C)(this.containers).map(t=>(t.type!==n.A.Header&&(t.quantityprbatch=String(Math.ceil(t.quantityprbatchasdecimal*this.portions))),t))}isNumeric(t){return!isNaN(parseFloat(t))}};(0,a.Cg)([(0,d.kv)({type:Array,required:!0})],l.prototype,"containers",void 0),l=(0,a.Cg)([(0,d.uA)({name:"RecipeContainers"})],l);const p=l,u=p;var h=r(81656),D=(0,h.A)(u,s,i,!1,null,null,null);const y=D.exports},50820(t,e,r){r.d(e,{A:()=>i});var s=r(94335);class i{constructor(t={}){this.profileId=window.CbxApiContextKey,t.profileId&&(this.profileId=t.profileId),this.endpoint=`/contextapi/${this.profileId}/v1/recipe`}async calculate(t){try{const e=await s.A.post(`${this.endpoint}/calculate`,t);return e.data}catch(e){console.log(e)}}async getAdded(){try{const t=await s.A.post(`${this.endpoint}/added`);return t.data}catch(t){console.log(t)}}async removeAdded(t){try{const e=await s.A.post(`${this.endpoint}/remove/${t}`);return e.data}catch(e){console.log(e)}}}},56025(t,e,r){var s,i;r.d(e,{A:()=>s,j:()=>i}),function(t){t[t["Header"]=0]="Header",t[t["Display"]=1]="Display",t[t["Product"]=2]="Product"}(s||(s={})),function(t){t[t["Header"]=0]="Header",t[t["Subheader"]=1]="Subheader",t[t["Step"]=2]="Step"}(i||(i={}))},78236(t,e,r){r.d(e,{A:()=>c});var s=r(15215),i=r(18039),a=r(32800),n=r(50820);let o=class extends i.hw{constructor(){super(...arguments),this.service=new n.A,this.portions=1,this.added=[]}get PORTIONS(){return this.portions}get ADDED(){return this.added}SET_PORTIONS(t){this.portions=t}async GET_ADDED(){return await this.service.getAdded()}async REMOVE_ADDED(t){return await this.service.removeAdded(t)}SET_ADDED(t){this.added=t}};(0,s.Cg)([i.sM],o.prototype,"SET_PORTIONS",null),(0,s.Cg)([(0,i.rc)({commit:"SET_ADDED"})],o.prototype,"GET_ADDED",null),(0,s.Cg)([(0,i.rc)({commit:"SET_ADDED"})],o.prototype,"REMOVE_ADDED",null),(0,s.Cg)([i.sM],o.prototype,"SET_ADDED",null),o=(0,s.Cg)([(0,i.nV)({store:a.A,dynamic:!0,name:"recipe",namespaced:!0})],o);const c=(0,i.f_)(o)}}]); 2//# sourceMappingURL=7911.js.map?id=e625d3492a793ef4
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.