1import{a as ie,b as re,c as ae,d as de}from"./chunk-5UOLNNW5.js";import{a as Jt,c as Xt,d as ee}from"./chunk-YM3WTAQZ.js";import{a as Zt,b as te}from"./chunk-2C4ANAXT.js";import{a as ne}from"./chunk-D255FFTL.js";import{d as Ht,f as Kt,p as Gt,v as Ut,x as Yt}from"./chunk-26OXWAJX.js";import{a as oe}from"./chunk-TJNNGCZV.js";import{a as U}from"./chunk-AHQ4I7ZQ.js";import{a as Wt}from"./chunk-HZ6RXH5X.js";import{Ba as mt,Cb as Rt,Db as Qt,Eb as Lt,Ha as gt,Pa as Ct,Pb as qt,Qb as Bt,Tb as jt,hb as K,ib as ht,jb as ft,kb as yt,lb as G,mb as vt,ob as bt,oc as $t,xa as _t}from"./chunk-QWCWCML6.js";import{$ as w,A as ut,B as E,C as pt,J as H,O as xt,P as Pt,R as F,S as Mt,T as At,V as Ot,W as St,X as Ft,Y as wt,Z as Dt,_ as kt,a as nt,aa as It,ba as Vt,ea as Nt,ha as Tt,i as ot,ia as Et,ja as zt,m as it,q as L,r as rt,v as at,w as dt,x as ct,y as st,z as lt}from"./chunk-PDPZQQLO.js";import{E as et}from"./chunk-BPF6F3AX.js";import{a as W}from"./chunk-ZSKOB7NA.js";import{$ as f,Ab as p,Ac as $,Bb as _,Eb as P,Fb as M,Gb as C,Hb as s,Ib as l,Ic as a,Jb as A,Lc as T,Mc as h,Qb as x,Ub as b,Va as d,W as k,Wb as c,aa as y,ba as Y,fc as Z,gc as B,ib as X,ic as g,jc as O,kc as S,lc as tt,ma as N,pa as J,yb as Q,zc as j}from"./chunk-ZVYK2BWV.js";import{a as D,b as R}from"./chunk-IMPBB4AK.js";function se(o,e){let t=Number(o);if(Number.isFinite(t)&&t>0)return Math.trunc(t);let n=e?Number(e):Number.NaN;return Number.isFinite(n)&&n>0?Math.trunc(n):null}function Xe(o){return o.isAdditionProduct||o.isCartForcedPlan?!0:!o.isPlanMaxReached}function ce(o){return Array.isArray(o)?o.map(e=>{let t=e;return`${t.addon_field_id}:${t.addon_field_option_id??""}:${t.value??""}:${t.quantity??""}`}).sort().join("|"):""}function Ze(o,e){let t=!1,n=o.map(i=>i.product_id!==e.productId||i.mpextra===!0||ce(i.product_addons)===ce(e.hmpAddons)?i:(t=!0,R(D({},i),{product_addons:e.hmpAddons})));return t?n:o}var ue=(o,e)=>e.id??e.label,q=(o,e)=>e.key,me=(o,e)=>e.value;function ge(o,e){if(o&1&&A(0,"app-badge",13),o&2){let t=e.$implicit;C("label",t.label)("textColor",t.textColor)("bgColor",t.backgroundColor||"var(--accent)")}}function Ce(o,e){if(o&1&&(s(0,"div",11),P(1,ge,1,3,"app-badge",13,ue),l()),o&2){let t=c(2);d(),M(t.productBadges())}}function he(o,e){if(o&1&&(s(0,"span",12),g(1),l()),o&2){let t=c(2);d(),O(t.priceDisplay())}}function fe(o,e){if(o&1&&(s(0,"div",5),p(1,Ce,3,0,"div",11),p(2,he,2,1,"span",12),l()),o&2){let t=c();d(),_(t.productBadges().length>0?1:-1),d(),_(t.hidePrice()?-1:2)}}function ye(o,e){if(o&1&&A(0,"app-badge",13),o&2){let t=e.$implicit;C("label",t.label)("textColor",t.textColor)("bgColor",t.backgroundColor||"var(--accent)")}}function ve(o,e){if(o&1&&(s(0,"div",7),P(1,ye,1,3,"app-badge",13,ue),l()),o&2){let t=c();d(),M(t.productBadges())}}function be(o,e){o&1&&(s(0,"span",8),g(1,"Addition"),l())}function xe(o,e){if(o&1&&(s(0,"div",16)(1,"b",17),g(2),l(),s(3,"span",18),g(4),l()()),o&2){let t=e.$implicit;d(2),tt("",t.value,"",t.suffix),d(2),O(t.label)}}function Pe(o,e){if(o&1&&(s(0,"div",14),P(1,xe,5,3,"div",16,q),l()),o&2){let t=c(2);d(),M(t.macroTiles())}}function Me(o,e){o&1&&(s(0,"s"),g(1),l()),o&2&&(d(),O(e))}function Ae(o,e){if(o&1&&(s(0,"div",15)(1,"span",19),g(2),l(),s(3,"span",20),p(4,Me,2,1,"s"),g(5),l()()),o&2){let t,n=c(2);d(2),O(n.priceDisplay()),d(2),_((t=n.compareAtPriceDisplay())?4:-1,t),d(),S(" ",n.subscriptionSavingsLabel()," ")}}function Oe(o,e){if(o&1&&(p(0,Pe,3,0,"div",14),p(1,Ae,6,3,"div",15)),o&2){let t=c();_(t.macroTiles().length>0?0:-1),d(),_(t.hidePrice()?-1:1)}}function Se(o,e){if(o&1&&A(0,"app-progress",21),o&2){let t=e.$implicit,n=c(2);C("max",t.dailyValue)("value",t.value)("color",t.color)("customColor",t.chartColor)("strokeWidth",3)("size",n.ProgressSize.Small)("suffix",t.suffix)("label",t.label)("decimals",t.decimals)}}function Fe(o,e){if(o&1&&(s(0,"div",10),P(1,Se,1,9,"app-progress",21,q),l()),o&2){let t=c();d(),M(t.nutritionItems())}}function we(o,e){o&1&&(s(0,"span",31),g(1,"*"),l())}function De(o,e){if(o&1&&A(0,"app-addon-sub-addons",33),o&2){let t=e.$implicit,n=c(7);C("subAddon",t)("formRecord",n.addonsForm)("allAddons",n.resolvedAddons())}}function ke(o,e){if(o&1&&P(0,De,1,3,"app-addon-sub-addons",33,q),o&2){let t=c().$index,n=c().$implicit,i=c(4);M(i.getSubAddons(n,t))}}function Ie(o,e){if(o&1&&p(0,ke,2,0),o&2){let t=e.$index,n=c().$implicit,i=c(4);_(i.isOptionSelected(n,t)?0:-1)}}function Ve(o,e){if(o&1&&(s(0,"div",29)(1,"h4",30),g(2),j(3,"decodeHtml"),p(4,we,2,0,"span",31),l(),A(5,"app-addon-controls",32),P(6,Ie,1,1,null,null,me),l()),o&2){let t=e.$implicit,n=c(4);Q("data-locked",n.isAddonSelectionLocked(t)?"true":null),d(2),S(" ",$(3,6,t.name)," "),d(2),_(t.required?4:-1),d(),C("addon",t)("formRecord",n.addonsForm)("disabled",n.isAddonSelectionLocked(t)),d(),M(t.options)}}function Ne(o,e){if(o&1){let t=x();s(0,"app-counter",36),b("valueChange",function(i){f(t);let r=c(5);return y(r.onCartQuantityChange(i))})("minReached",function(){f(t);let i=c(5);return y(i.onForcedQuantityMinReached())}),l()}if(o&2){let t=c(5);C("min",t.forcedMinQuantity())("max",t.counterMax())("value",t.cartQuantity())("size",t.CounterSize.Medium)("fullWidth",!0)}}function Te(o,e){if(o&1){let t=x();s(0,"app-counter",42),b("valueChange",function(i){f(t);let r=c(6);return y(r.pendingQuantity.set(i))}),l()}if(o&2){let t=c(6);C("min",1)("max",t.counterMax())("value",t.pendingQuantity())("size",t.CounterSize.Small)("disabled",t.disableAdd())}}function Ee(o,e){if(o&1){let t=x();p(0,Te,1,5,"app-counter",37),s(1,"app-button",38),b("click",function(i){f(t);let r=c(5);return y(r.onAddToCartWithAddons(i))}),s(2,"div",39)(3,"span",40),g(4),l(),s(5,"span",41),g(6),l()()()}if(o&2){let t=c(5);_(t.isMyoMeals?0:-1),d(),B(t.ButtonStyle.Primary),C("size",t.ButtonSize.Wide)("disabled",t.isAddToCartDisabled()),d(3),O(t.addToCartLabel()),d(2),O(t.totalPriceDisplay())}}function ze(o,e){if(o&1){let t=x();s(0,"div",34),b("click",function(i){return f(t),y(i.stopPropagation())}),p(1,Ne,1,5,"app-counter",35)(2,Ee,7,7),l()}if(o&2){let t=c(4);d(),_(t.isInCart()?1:2)}}function Re(o,e){if(o&1){let t=x();s(0,"div",27),b("click",function(i){return f(t),y(i.stopPropagation())}),s(1,"div",28),P(2,Ve,8,8,"div",29,q),l()(),p(4,ze,3,1,"div",22)}if(o&2){let t=c(3);
1d(),C("formGroup",t.addonsForm),d(),M(t.visibleRootAddons()),d(2),_(t.isIncludedListingLocked()?-1:4)}}function Qe(o,e){if(o&1){let t=x();s(0,"button",23),b("click",function(i){f(t);let r=c(2);return y(r.toggleAddons(i))}),s(1,"span",24),g(2),l(),Y(),s(3,"svg",25),A(4,"path",26),l()(),p(5,Re,5,2)}if(o&2){let t=c(2);Q("aria-expanded",t.isAddonsExpanded()),d(2),S(" ",t.isAddonsExpanded()?"Hide Options":"Select Options"," "),d(),Z("product__toggle-icon--flipped",t.isAddonsExpanded()),d(2),_(t.isAddonsExpanded()?5:-1)}}function Le(o,e){if(o&1){let t=x();s(0,"app-counter",44),b("valueChange",function(i){f(t);let r=c(3);return y(r.onCartQuantityChange(i))})("minReached",function(){f(t);let i=c(3);return y(i.onForcedQuantityMinReached())}),l()}if(o&2){let t=c(3);C("min",t.forcedMinQuantity())("max",t.counterMax())("value",t.cartQuantity())("size",t.CounterSize.Medium)("fullWidth",!0)("disabled",t.disableAdd())}}function qe(o,e){if(o&1){let t=x();s(0,"app-counter",42),b("valueChange",function(i){f(t);let r=c(4);return y(r.pendingQuantity.set(i))}),l()}if(o&2){let t=c(4);C("min",1)("max",t.counterMax())("value",t.pendingQuantity())("size",t.CounterSize.Small)("disabled",t.disableAdd())}}function Be(o,e){if(o&1&&g(0),o&2){let t=c(4);S(" ",t.addToCartLabel()," ")}}function je(o,e){o&1&&g(0," Out of Stock ")}function $e(o,e){if(o&1&&(s(0,"span",41),g(1),l()),o&2){let t=c(4);d(),O(t.priceDisplay())}}function We(o,e){if(o&1){let t=x();p(0,qe,1,5,"app-counter",37),s(1,"app-button",38),b("click",function(i){f(t);let r=c(3);return y(r.onAddToCartClick(i))}),s(2,"div",39)(3,"span",40),p(4,Be,1,1)(5,je,1,0),l(),p(6,$e,2,1,"span",41),l()()}if(o&2){let t=c(3);_(t.isMyoMeals&&t.isInStock()?0:-1),d(),B(t.ButtonStyle.Primary),C("size",t.ButtonSize.Wide)("disabled",!t.isInStock()||t.disableAdd()),d(3),_(t.isInStock()?4:5),d(2),_(t.hidePrice()?-1:6)}}function He(o,e){if(o&1){let t=x();s(0,"div",34),b("click",function(i){return f(t),y(i.stopPropagation())}),p(1,Le,1,6,"app-counter",43)(2,We,7,7),l()}if(o&2){let t=c(2);d(),_(t.isInCart()?1:2)}}function Ke(o,e){if(o&1&&p(0,Qe,6,5)(1,He,3,1,"div",22),o&2){let t=c();_(t.hasAddons()?0:t.isIncludedListingLocked()?-1:1)}}var I={calories:2e3,protein:50,fat:65,carbs:300,fiber:28,sugar:50},Ge=[{key:"protein",label:"Protein"},{key:"carbs",label:"Carbs"},{key:"fat",label:"Fat"},{key:"calories",label:"Cals"}];function Ue(o,e){return o.toFixed(Number.isFinite(e)&&e>0?e:0)}var Ye=[{key:"calories",label:"Calories",suffix:"",color:"info"},{key:"protein",label:"Protein",suffix:"g",color:"success"},{key:"carbs",label:"Carbs",suffix:"g",color:"warning"},{key:"fat",label:"Fat",suffix:"g",color:"danger"},{key:"fiber",label:"Fiber",suffix:"g",color:"secondary"},{key:"sugar",label:"Sugar",suffix:"g",color:"primary"}],le=class o{formBuilder=k(Ut);cartService=k($t);mealPlansService=k(Ct);route=k(et);storeDateTime=k(mt);queryParamMap=gt(this.route.queryParamMap);product=h.required();hideActions=h(!1);hidePrice=h(!1);disableAdd=h(!1);addToCartLabel=h("Add to Cart");hideAddons=h(!1);openAddonsByDefault=h(!1);priceOverrideCents=h(null);includeAddonPrices=h(!0);overrideQuantity=h(null);cartItemsOverride=h(null);mealPlanId=h(null);subscriptionSavingsLabel=h(null);addToCart=T();viewOptions=T();quantityChange=T();forcedAddonSelection=T();isAddonsExpanded=N(!1);pendingQuantity=N(1);addonFormValues=N({});addonFormValid=N(!0);addonsForm;cartItems=this.cartService.items;sourceProduct=a(()=>this.product());resolvedAddons=a(()=>ft(Vt(this.sourceProduct()),this.currentForcedProduct()));productImage=a(()=>At(this.sourceProduct()));productName=a(()=>this.product().name);productDescription=a(()=>{let e=this.sourceProduct().short_description||"",t=nt(e);return t.length>100?t.substring(0,100)+"...":t});isMyoMeals=_t(W.tenantId,W.store);productBadges=a(()=>{let e=Ot(this.sourceProduct());return this.isMyoMeals?St(e):e});baseCalories=a(()=>w(this.sourceProduct(),"calories"));baseProtein=a(()=>w(this.sourceProduct(),"protein"));baseFat=a(()=>w(this.sourceProduct(),"fat"));baseCarbs=a(()=>w(this.sourceProduct(),"carbs"));baseFiber=a(()=>w(this.sourceProduct(),"fiber"));baseSugar=a(()=>w(this.sourceProduct(),"sugar"));addonQuantityOptions=a(()=>({productQuantity:Math.max(this.cartQuantity(),1),resolveAddonQuantity:xt(this.matchingCartItem(
1)?.hmp_addons)}));addonMacroAdjustments=a(()=>Pt(this.addonFormValues(),this.resolvedAddons(),this.addonQuantityOptions()));totalMacroAdjustments=a(()=>It(this.sourceProduct(),this.addonMacroAdjustments()));calories=a(()=>F(this.baseCalories(),this.totalMacroAdjustments().calories));protein=a(()=>F(this.baseProtein(),this.totalMacroAdjustments().protein));fat=a(()=>F(this.baseFat(),this.totalMacroAdjustments().fat));carbs=a(()=>F(this.baseCarbs(),this.totalMacroAdjustments().carbs));fiber=a(()=>F(this.baseFiber(),this.totalMacroAdjustments().fiber));sugar=a(()=>F(this.baseSugar(),this.totalMacroAdjustments().sugar));nutritionFacts=a(()=>Ft(this.sourceProduct()));getDailyValue=e=>{let t=this.nutritionFacts(),n=H(e),i=t.find(r=>H(r.name)===n);return i&&parseFloat(i.daily)||0};dailyCalories=a(()=>this.getDailyValue("calories")||I.calories);dailyProtein=a(()=>this.getDailyValue("protein")||I.protein);dailyFat=a(()=>this.getDailyValue("fat")||I.fat);dailyCarbs=a(()=>this.getDailyValue("carbs")||I.carbs);dailyFiber=a(()=>this.getDailyValue("fiber")||I.fiber);dailySugar=a(()=>this.getDailyValue("sugar")||I.sugar);nutritionItems=a(()=>{let e={calories:this.calories(),protein:this.protein(),carbs:this.carbs(),fat:this.fat(),fiber:this.fiber(),sugar:this.sugar()},t={calories:this.dailyCalories(),protein:this.dailyProtein(),carbs:this.dailyCarbs(),fat:this.dailyFat(),fiber:this.dailyFiber(),sugar:this.dailySugar()};return Ye.map(n=>R(D({},n),{value:e[n.key],dailyValue:t[n.key],decimals:kt(this.sourceProduct(),n.key),chartColor:wt(this.sourceProduct(),n.key)})).filter(n=>Dt(this.sourceProduct(),n.key,this.totalMacroAdjustments()[n.key]))});macroTiles=a(()=>{let e=new Map(this.nutritionItems().map(t=>[t.key,t]));return Ge.map(({key:t,label:n})=>{let i=e.get(t);return i?{key:t,label:n,value:Ue(i.value,i.decimals),suffix:i.suffix}:null}).filter(t=>t!==null)});compareAtPriceDisplay=a(()=>{if(this.priceOverrideCents()!==null)return null;let t=this.sourceProduct().regular_price;return typeof t!="number"||!Number.isFinite(t)||t*100<=this.priceInCents()?null:L(t,this.storeDateTime.roundDigits())});priceDisplay=a(()=>{let e=this.priceInCents(),t=Qt(this.addonFormValues(),this.resolvedAddons(),e);return L((e+t)/100,this.storeDateTime.roundDigits())});selectedVariantOption=a(()=>this.getSelectedVariantOption(this.addonFormValues()));totalPriceDisplay=a(()=>{let e=this.priceOverrideCents(),t=this.selectedVariantOption(),n=e??this.priceInCents();e===null&&t?.price&&(n=Math.round(parseFloat(t.price)*100));let i=this.addonFormValues(),r=Rt({isAdditionProduct:this.product().isAdditionProduct,mealPlanIncludeAddonPrices:this.includeAddonPrices(),basePriceCents:n}),m=Lt(i,this.resolvedAddons(),n,r),u=(n+m)/100;return L(u,this.storeDateTime.roundDigits())});priceInCents=a(()=>{let e=this.priceOverrideCents();return e!==null?e:Math.round(Mt(this.sourceProduct())*100)});hiddenAutoSelectKeys=a(()=>{let e=this.currentPlanMpid();if(e===null)return new Set;let t=this.mealPlansService.mealPlanCards().find(n=>n.id===e);return Tt(this.resolvedAddons(),t?.autoSelectAddons,this.mealPlanAutoSelectApplyContext())});mealPlanAutoSelectContext=a(()=>({isAdditionProduct:this.product().isAdditionProduct===!0}));mealPlanAutoSelectApplyContext=a(()=>this.isForcedProductOnPlan()?void 0:this.mealPlanAutoSelectContext());currentForcedProduct=a(()=>{if(this.product().isAdditionProduct===!0)return;let e=this.currentPlanMpid();if(e===null)return;let t=this.mealPlansService.mealPlanCards().find(n=>n.id===e);return ht(t,this.product().id)});hasAddons=a(()=>Et(this.hideAddons(),this.rootAddons()));rootAddons=a(()=>zt(this.resolvedAddons(),this.hiddenAutoSelectKeys()));visibleRootAddons=a(()=>{let e=this.hiddenAutoSelectKeys(),t=lt(this.resolvedAddons(),this.addonFormValues()).filter(n=>!ot(n)).filter(n=>!e.has(n.key));return this.hideAddons()?t.filter(n=>!!n.required):t});isInStock=a(()=>{let e=this.sourceProduct();return typeof e.purchasable=="boolean"?e.purchasable:typeof e.stock_status=="string"?e.stock_status==="in_stock":!0});hasRequiredAddons=a(()=>this.resolvedAddons().some(t=>!!t.required));showInlineAddons=a(()=>this.rootAddons().length<=4);isAddToCartDisabled=a(()=>!this.isInStock()||!this.addonFormValid());currentItemData=a(()=>{let e=this.addonFormValues(),t=this.resolvedAddons(),n=[];return t.forEach(i=>
1{let r=e[i.key];if(r==null||r===""||Array.isArray(r)&&r.length===0)return;if(rt(i)){let u=String(r).trim();u&&n.push({name:i.name,value:u});return}(Array.isArray(r)?r:[r]).forEach(u=>{let v=i.options.find(V=>V.value?.toString()===u?.toString());v&&n.push({name:i.name,value:v.label})})}),n});matchingCartItem=a(()=>{let e=this.currentPlanMpid(),t=ae({cartItemsOverride:this.cartItemsOverride(),cartItems:this.cartItems(),orderPageItems:e===null?[]:this.cartService.orderPageMatchItems(e),currentMpid:e,extractItemMpid:n=>this.extractItemMpid(n)});return de({productId:this.product().id,currentItemData:this.currentItemData(),items:t,allowForcedProductFallback:this.isForcedProductOnPlan()})});isForcedProductOnPlan=a(()=>{if(this.product().isAdditionProduct===!0)return!1;let e=this.currentPlanMpid();return e===null?!1:this.cartService.getForcedMinQuantity(this.product().id,e)>0});isIncludedListingLocked=a(()=>{if(this.product().isAdditionProduct===!0)return!1;let e=this.currentPlanMpid();return e===null?!1:(this.mealPlansService.mealPlanCards().find(n=>n.id===e)?.forcedProducts?.length??0)>0});forcedMinQuantity=a(()=>{let e=this.currentPlanMpid();return e===null||!this.isForcedProductOnPlan()?0:this.cartService.getForcedMinQuantity(this.product().id,e)});cartQuantity=a(()=>{let e=this.overrideQuantity();return e!==null?e:this.matchingCartItem()?.quantity||0});counterMax=a(()=>{let e=this.forcedMinQuantity();if(e>0)return e;let t=this.product(),n=t.should_track_stock&&t.quantity_in_stock!=null&&t.quantity_in_stock>0?t.quantity_in_stock:1/0,i=t.has_item_limit_per_order&&t.item_limit_per_order!=null&&t.item_limit_per_order>0?t.item_limit_per_order:1/0;return Math.min(n,i)});isInCart=a(()=>this.overrideQuantity()!==null?this.overrideQuantity()>0:this.matchingCartItem()!==null);currentPlanMpid=a(()=>se(this.mealPlanId(),this.queryParamMap()?.get("mpid")));ButtonSize=qt;ButtonStyle=Bt;ProgressSize=Jt;CounterSize=Zt;isAddonSelectionLocked=e=>yt(e,this.currentForcedProduct());autoSelectApplied=!1;constructor(){J(()=>{this.mealPlansService.mealPlanCards().length>0&&!this.autoSelectApplied&&this.addonsForm&&this.applyAutoSelectDefaults(),K(this.currentForcedProduct())&&this.isAddonsExpanded.set(!0)})}ngOnInit(){this.isAddonsExpanded.set(this.openAddonsByDefault()||K(this.currentForcedProduct())),this.initAddonsForm()}applyAutoSelectDefaults(){let e=this.currentPlanMpid();if(e===null)return;let n=!!this.mealPlansService.mealPlanCards().find(u=>u.id===e)?.autoSelectAddons?.length,i=(this.currentForcedProduct()?.addons.length??0)>0;if(!n&&!i)return;let r=this.resolvedAddons(),m=!1;for(let u of r){if(this.isVariantAddon(u))continue;let v=this.getPinnedOrAutoSelectedOption(u);if(v==null)continue;let V=this.addonsForm.get(u.key);if(!V)continue;let z=V.value,pe=Array.isArray(z)?z.length===0:z===""||z==null,_e=this.isAddonSelectionLocked(u)&&G(u,this.currentForcedProduct())!=null;(pe||_e)&&(V.setValue(v),m=!0)}m&&(this.autoSelectApplied=!0);for(let u of r){let v=this.addonsForm.get(u.key);v&&(v.setValidators(this.getAddonValidators(u,!0)),v.updateValueAndValidity({emitEvent:!1}))}this.addonFormValid.set(this.addonsForm.valid)}toggleAddons(e){e.stopPropagation(),this.isAddonsExpanded.update(t=>!t)}onAddToCartWithAddons(e){if(e.stopPropagation(),this.addonsForm.invalid){this.addonsForm.markAllAsTouched();return}let t=this.product(),n=this.getSelectedAddonsConfiguration(),i={productId:t.id,quantity:this.quantityToAdd(),selectedAddons:[],unitPrice:this.priceInCents(),variantId:this.selectedVariantOption()?.variant_id,productName:t.name,productImage:this.productImage(),addonsConfiguration:n,isAdditionProduct:t.isAdditionProduct===!0};this.addToCart.emit(i),this.pendingQuantity.set(1)}onAddToCartClick(e){e.stopPropagation(),this.onAddToCart()}onCartQuantityChange(e){if(this.overrideQuantity()!==null||this.cartItemsOverride()!==null){this.quantityChange.emit({productId:this.product().id,quantity:e,itemKey:this.matchingCartItem()?.key});return}let t=this.matchingCartItem();if(!t)return;let n=this.forcedMinQuantity();if(n>0&&e<n){this.cartService.notifyForcedProductCannotRemove();return}e<=0?this.cartService.removeItem(t.key):this.cartService.updateItem(t.key,e)}onForcedQuantityMinReached(){this.forcedMinQuantity()>
10&&this.cartService.notifyForcedProductCannotRemove()}onViewOptions(){this.viewOptions.emit(this.product())}onViewOptionsClick(e){e.stopPropagation(),this.viewOptions.emit(this.product())}isOptionSelected(e,t){let n=this.addonsForm.get(e.key)?.value;return ct(n,e,t)}getSubAddons(e,t){return pt(this.resolvedAddons(),e,t,this.addonsForm.value)}onAddToCart(){let e=this.product(),t=this.getSelectedAddonsConfiguration(),n={productId:e.id,quantity:this.quantityToAdd(),selectedAddons:[],unitPrice:this.priceInCents(),variantId:this.selectedVariantOption()?.variant_id,productName:e.name,productImage:this.productImage(),addonsConfiguration:Object.keys(t).length>0?t:void 0,isAdditionProduct:e.isAdditionProduct===!0};this.addToCart.emit(n),this.pendingQuantity.set(1)}quantityToAdd(){return this.isMyoMeals?Math.max(1,this.pendingQuantity()):1}getSelectedAddonsConfiguration(){let e=E(this.addonsForm.value,this.resolvedAddons());return ne(e)}initAddonsForm(){this.addonsForm=this.formBuilder.record({});let e=this.resolvedAddons();e.forEach(t=>{let n=this.getInitialFormValue(t),i=this.getAddonValidators(t,!0),r=this.formBuilder.control(n,i);this.addonsForm.addControl(t.key,r)}),this.updateConditionalAddonState(),this.addonFormValues.set(E(D({},this.addonsForm.value),e)),this.addonFormValid.set(this.addonsForm.valid),this.addonsForm.valueChanges.subscribe(()=>{this.updateConditionalAddonState(),this.addonFormValues.set(E(D({},this.addonsForm.value),e)),this.addonFormValid.set(this.addonsForm.valid),this.persistForcedAddonSelection()}),this.persistForcedAddonSelection()}updateConditionalAddonState(){let e=this.resolvedAddons();e.filter(i=>st(i,e)).forEach(i=>{let r=this.addonsForm.get(i.key);if(!r)return;let m=this.addonsForm.value,u=ut(i,e,m);if(r.setValidators(this.getAddonValidators(i,u)),r.updateValueAndValidity({emitEvent:!1}),!u)r.setValue(this.getEmptyFormValue(i),{emitEvent:!1});else{let v=dt(i,r.value);v!=null&&r.setValue(v,{emitEvent:!1})}});let n=E(this.addonsForm.value,e);e.forEach(i=>{let r=this.addonsForm.get(i.key);r&&!this.areAddonFormValuesEqual(r.value,n[i.key])&&r.setValue(n[i.key],{emitEvent:!1})})}areAddonFormValuesEqual(e,t){return JSON.stringify(e)===JSON.stringify(t)}getAddonValidators(e,t){if(!t||it(e))return[];let n=[];return e.required&&n.push(Ht.required),e.max_options!=null&&e.max_options!==0&&e.max_options!==""&&n.push(U.maxLength(Number(e.max_options))),e.min!=null&&e.min!==0&&n.push(U.minLength(e.min)),n}persistForcedAddonSelection(){bt({apply:(e,t,n,i,r)=>{let m={mpid:e,productId:t,hmpAddons:n,itemData:i,clearedAddonNames:[...r??[]]};if(this.cartItemsOverride()!==null){this.forcedAddonSelection.emit(m);return}this.cartService.applyForcedProductAddonSelection(e,t,n,i,r)},mpid:this.currentPlanMpid(),productId:this.product().id,isForced:this.isForcedProductOnPlan(),quantity:Math.max(this.forcedMinQuantity(),1),formValues:this.addonsForm.value,productAddons:this.resolvedAddons(),itemData:this.currentItemData(),roundDigits:this.storeDateTime.roundDigits()})}getEmptyFormValue(e){return e.type==="checkbox"||e.type==="multiple_choice"&&(e.display==="radiobutton"||e.display==="image")?[]:""}getInitialFormValue(e){let t=e.type==="checkbox"||e.type==="multiple_choice"&&(e.display==="radiobutton"||e.display==="image"),n=this.getPinnedOrAutoSelectedOption(e);if(n!=null)return n;let i=vt(e,this.matchingCartItem());if(i!=null)return i;let r=at(e);if(r!=null)return r;let m=(e.options??[]).find(u=>u.checked!=null&&u.checked!=="");return m==null?t?[]:"":t?[m.value]:m.value}getPinnedOrAutoSelectedOption(e){let t=G(e,this.currentForcedProduct());if(t!=null)return t;let n=this.currentPlanMpid();if(n===null)return null;let i=this.mealPlansService.mealPlanCards().find(r=>r.id===n);return Nt(e,i?.autoSelectAddons,this.mealPlanAutoSelectApplyContext())}getSelectedVariantOption(e){let t=this.resolvedAddons().find(m=>this.isVariantAddon(m));if(!t)return null;let n=e[t.key];if(n==null||n==="")return null;let r=(Array.isArray(n)?n:[n]).map(m=>m?.toString());return t.options.find(m=>r.includes(m.value?.toString()))??null}isVariantAddon(e){return e.is_variant===!0||e.price_type==="variant"}extractItemMpid(e){let t=e.item_data?.find(r=>r.name?.toLowerCase()==="mpid"),n=Number(t?.value);if(Number.isFinite(n)&&n>0)return Math.trunc(n);let i=e.extensions?.mpid;if(typeof i=="number"&&Number.isFinite(i)&&i>0)return Math.trunc(i);if(typeof i=="string"){let r=Number(i);if(Number.isFinite(r)&&r>0)return Math.trunc(r)}return null}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=X({type:o,selectors:[["app-product-card"]],inputs:{product:[1,"product"],hideActions:[1,"hideActions"],hidePrice
1:[1,"hidePrice"],disableAdd:[1,"disableAdd"],addToCartLabel:[1,"addToCartLabel"],hideAddons:[1,"hideAddons"],openAddonsByDefault:[1,"openAddonsByDefault"],priceOverrideCents:[1,"priceOverrideCents"],includeAddonPrices:[1,"includeAddonPrices"],overrideQuantity:[1,"overrideQuantity"],cartItemsOverride:[1,"cartItemsOverride"],mealPlanId:[1,"mealPlanId"],subscriptionSavingsLabel:[1,"subscriptionSavingsLabel"]},outputs:{addToCart:"addToCart",viewOptions:"viewOptions",quantityChange:"quantityChange",forcedAddonSelection:"forcedAddonSelection"},decls:16,vars:12,consts:[[1,"product",3,"click"],[1,"product__header"],[1,"product__header-image"],[3,"appLazyLoad","alt"],[1,"product__content"],[1,"product__content-meta"],[1,"product__content-title"],[1,"product__title-badges"],[1,"product__content-tag","product__content-tag--addition"],[1,"product__content-subtitle"],[1,"product__content-carbs"],[1,"product__content-badges"],[1,"product__content-price"],[3,"label","textColor","bgColor"],[1,"product__macros"],[1,"product__price"],[1,"product__macro"],[1,"product__macro-value"],[1,"product__macro-label"],[1,"product__price-now"],[1,"product__price-note"],[3,"max","value","color","customColor","strokeWidth","size","suffix","label","decimals"],[1,"product__actions"],["type","button",1,"product__toggle",3,"click"],[1,"product__toggle-label"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2",1,"product__toggle-icon"],["d","M6 9l6 6 6-6"],[1,"product__addons",3,"click"],[1,"product__addons-body",3,"formGroup"],[1,"product__addons-item"],[1,"product__addons-item-title"],[1,"product__addons-item-required"],[3,"addon","formRecord","disabled"],[3,"subAddon","formRecord","allAddons"],[1,"product__actions",3,"click"],[3,"min","max","value","size","fullWidth"],[3,"valueChange","minReached","min","max","value","size","fullWidth"],[1,"product__actions-qty",3,"min","max","value","size","disabled"],[3,"click","size","disabled"],[1,"product__actions-add_wrapper"],[1,"product__actions-add_label"],[1,"product__actions-add_price"],[1,"product__actions-qty",3,"valueChange","min","max","value","size","disabled"],[3,"min","max","value","size","fullWidth","disabled"],[3,"valueChange","minReached","min","max","value","size","fullWidth","disabled"]],template:function(t,n){t&1&&(s(0,"div",0),b("click",function(){return n.onViewOptions()}),s(1,"div",1)(2,"div",2),A(3,"img",3),l()(),s(4,"div",4),p(5,fe,3,2,"div",5),s(6,"h2",6),g(7),j(8,"decodeHtml"),l(),p(9,ve,3,0,"div",7),p(10,be,2,0,"span",8),s(11,"p",9),g(12),l(),p(13,Oe,2,2)(14,Fe,3,0,"div",10),l(),p(15,Ke,2,1),l()),t&2&&(Q("data-myo",n.isMyoMeals?"true":null),d(3),C("appLazyLoad",n.productImage()||"assets/images/image-placeholder.svg")("alt",n.productName()),d(2),_(!n.isMyoMeals&&(n.productBadges().length>0||!n.hidePrice())?5:-1),d(2),S(" ",$(8,10,n.productName())," "),d(2),_(n.isMyoMeals&&n.productBadges().length>0?9:-1),d(),_(n.product().isAdditionProduct?10:-1),d(2),S(" ",n.productDescription()," "),d(),_(n.isMyoMeals?13:n.nutritionItems().length>0?14:-1),d(2),_(n.hideActions()?-1:15))},dependencies:[Xt,jt,te,re,ie,Yt,Kt,Gt,ee,oe,Wt],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.product[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:6px;border:1px solid var(--gray-300);display:flex;flex-direction:column;background-color:var(--white);position:relative;overflow:hidden}.product__header[_ngcontent-%COMP%]{width:100%;height:var(--product-image-height, 250px);aspect-ratio:var(--product-image-aspect-ratio, auto);flex-shrink:0}.product__header-image[_ngcontent-%COMP%]{width:100%;height:100%;aspect-ratio:var(--product-image-aspect-ratio, auto);position:relative;cursor:pointer}.product__header-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px 6px 0 0}.product__content[_ngcontent-%COMP%]{padding:16px 17px;flex:1;display:flex;flex-direction:column}.product__content[_ngcontent-%COMP%]:last-child{padding-bottom:28px;border-bottom:none}.product__content-meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px;margin-bottom:4px}.product__content-badges[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:1;min-width:0}.product__content-title[_ngcontent-%COMP%]{font-family:var(--font-display);font-size:16px;font-weight:700;line-height:27px;color:var(--gray-800);margin:0 0 4px;
1cursor:pointer;height:54px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}.product__content-tag[_ngcontent-%COMP%]{align-self:flex-start;font-size:10px;font-weight:700;padding:1px 6px;border-radius:4px;text-transform:uppercase;letter-spacing:.5px;line-height:14px;margin-bottom:8px}.product__content-tag--addition[_ngcontent-%COMP%]{color:#b45309;background:#fef3c7;border:1px solid #FCD34D}.product__content-subtitle[_ngcontent-%COMP%]{font-family:var(--font-display);font-size:13px;line-height:22px;color:var(--gray-600);display:-webkit-box;line-clamp:2;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:20px;min-height:44px;max-height:44px}.product__content-price[_ngcontent-%COMP%]{flex-shrink:0;margin-left:auto;font-size:13px;font-weight:600;line-height:18px;color:var(--gray-700);text-align:right;white-space:nowrap}.product__content-carbs[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;width:100%;min-width:0;padding:0;gap:2px}.product__content-carbs[_ngcontent-%COMP%] > app-progress[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;max-width:46px;display:block}.product__content-carbs[_ngcontent-%COMP%] > app-progress[_ngcontent-%COMP%] .progress{width:100%}.product__content-carbs[_ngcontent-%COMP%] > app-progress[_ngcontent-%COMP%] .progress__ring-wrapper{width:100%;aspect-ratio:1}.product__content-carbs[_ngcontent-%COMP%] > app-progress[_ngcontent-%COMP%] .progress__ring{width:100%;height:100%}.product__content-carbs[_ngcontent-%COMP%] > app-progress[_ngcontent-%COMP%] .progress__value{font-size:10px}.product__content-carbs[_ngcontent-%COMP%] > app-progress[_ngcontent-%COMP%] .progress__label{margin-top:2px;font-size:10px;line-height:12px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.product__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:14px 16px}.product__actions[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%] .button{height:52px}.product__actions[_ngcontent-%COMP%] app-counter[_ngcontent-%COMP%] .counter{height:52px}.product__actions[_ngcontent-%COMP%] app-counter[_ngcontent-%COMP%] .counter .counter__button{background-color:var(--gray-200);height:52px;width:52px}.product__actions[_ngcontent-%COMP%] app-counter[_ngcontent-%COMP%] .counter .counter__button:hover:not(:disabled){background-color:var(--gray-300)}.product__actions-add_wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.product__expanded[_ngcontent-%COMP%]{position:absolute;top:100%;left:-1px;right:-1px;z-index:10;background:var(--white);border:1px solid var(--gray-300);border-top:none;border-radius:0 0 6px 6px;box-shadow:0 4px 12px #0000001a}.product__addons[_ngcontent-%COMP%]{background:var(--gray-100);border-top:1px solid var(--gray-200)}.product__addons-body[_ngcontent-%COMP%]{background:var(--gray-100);padding:12px 16px;display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--gray-200);border-bottom:1px solid var(--gray-200)}.product__addons-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.product__addons-item[data-locked=true][_ngcontent-%COMP%]{cursor:default}.product__addons-item-title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:var(--gray-900);margin:0}.product__addons-item-required[_ngcontent-%COMP%]{color:var(--danger);font-weight:700}.product__addons-input[_ngcontent-%COMP%], .product__addons-textarea[_ngcontent-%COMP%]{width:100%;padding:8px 12px;font-size:13px;border:1px solid var(--gray-300);border-radius:6px;background-color:var(--white);color:var(--gray-900);transition:border-color .2s;font-family:inherit}.product__addons-input[_ngcontent-%COMP%]:hover, .product__addons-textarea[_ngcontent-%COMP%]:hover{border-color:var(--gray-500)}.product__addons-input[_ngcontent-%COMP%]:focus, .product__addons-textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--accent)}.product__addons-input[_ngcontent-%COMP%]::placeholder, .product__addons-textarea[_ngcontent-%COMP%]::placeholder{color:var(--gray-500)}.product__addons-textarea[_ngcontent-%COMP%]{resize:vertical;min-height:60px}.product__addon-option-label[_ngcontent-%COMP%]{flex:1;font-size:13px;color:var(--gray-900)}.product__addon-option-price[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--danger)}.product__addon-option-price[data-negative][_ngcontent-%COMP%]{color:var(--success)}.product__toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;padding:10px 16px;margin-top:auto;background-color:var(--gray-100);border:none;border-top:1px solid var(--gray-300);
1cursor:pointer;font-family:inherit;transition:background-color .15s}.product__toggle[_ngcontent-%COMP%]:hover{background-color:var(--gray-200)}.product__toggle-label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--gray-900)}.product__toggle-icon[_ngcontent-%COMP%]{width:16px;height:16px;color:var(--gray-900);transition:transform .2s}.product__toggle-icon--flipped[_ngcontent-%COMP%]{transform:rotate(180deg)}html[data-tenant=busybody][data-store=busybody][_nghost-%COMP%] .product__content-title[_ngcontent-%COMP%], html[data-tenant=busybody][data-store=busybody] [_nghost-%COMP%] .product__content-title[_ngcontent-%COMP%]{font-family:var(--font-body);font-weight:600}.product[data-myo=true][_ngcontent-%COMP%]{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-lg);transition:border-color .3s var(--ease),transform .3s var(--ease),box-shadow .3s var(--ease)}.product[data-myo=true][_ngcontent-%COMP%]:hover{border-color:var(--line-2);box-shadow:var(--shadow);transform:translateY(-4px)}.product[data-myo=true][_ngcontent-%COMP%] .product__header-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:0}.product[data-myo=true][_ngcontent-%COMP%] .product__title-badges[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.product[data-myo=true][_ngcontent-%COMP%] .product__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:13px;padding:20px 20px 6px}.product[data-myo=true][_ngcontent-%COMP%] .product__content-title[_ngcontent-%COMP%]{color:var(--fg);font-family:var(--font-display);font-size:18px;font-weight:700;height:auto;letter-spacing:.01em;line-height:1.08;margin:0;text-transform:uppercase}.product[data-myo=true][_ngcontent-%COMP%] .product__content-subtitle[_ngcontent-%COMP%]{color:var(--muted);font-family:var(--font-body);font-size:13px;line-height:1.5;margin:0;max-height:none;min-height:0;-webkit-line-clamp:3;line-clamp:3}.product[data-myo=true][_ngcontent-%COMP%] .product__macros[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:var(--r);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:auto;overflow:hidden}.product[data-myo=true][_ngcontent-%COMP%] .product__macro[_ngcontent-%COMP%]{border-right:1px solid var(--line);min-width:0;overflow:hidden;padding:10px 2px;text-align:center}.product[data-myo=true][_ngcontent-%COMP%] .product__macro[_ngcontent-%COMP%]:last-child{border-right:none}.product[data-myo=true][_ngcontent-%COMP%] .product__macro-value[_ngcontent-%COMP%]{color:var(--fg);display:block;font-family:var(--font-display);font-size:16px;font-weight:700;line-height:1;white-space:nowrap}.product[data-myo=true][_ngcontent-%COMP%] .product__macro-label[_ngcontent-%COMP%]{color:var(--muted);display:block;font-family:var(--font-mono);font-size:8px;font-weight:700;letter-spacing:.02em;line-height:1;margin-top:5px;text-transform:uppercase;white-space:nowrap}.product[data-myo=true][_ngcontent-%COMP%] .product__price[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px}.product[data-myo=true][_ngcontent-%COMP%] .product__price-now[_ngcontent-%COMP%]{color:var(--fg);font-family:var(--font-display);font-size:20px;font-weight:700;line-height:1}.product[data-myo=true][_ngcontent-%COMP%] .product__price-note[_ngcontent-%COMP%]{color:var(--accent);font-family:var(--font-mono);font-size:10.5px;letter-spacing:.02em}.product[data-myo=true][_ngcontent-%COMP%] .product__price-note[_ngcontent-%COMP%] s[_ngcontent-%COMP%]{color:var(--muted);margin-right:5px;opacity:.7}.product[data-myo=true][_ngcontent-%COMP%] .product__actions[_ngcontent-%COMP%]{align-items:stretch;flex-direction:row;gap:8px;padding:14px 16px 18px}.product[data-myo=true][_ngcontent-%COMP%] .product__actions-qty[_ngcontent-%COMP%]{flex:none}.product[data-myo=true][_ngcontent-%COMP%] .product__actions[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%]{flex:1;min-width:0}.product[data-myo=true][_ngcontent-%COMP%] .product__actions-add_price[_ngcontent-%COMP%]{display:none}.product[data-myo=true][_ngcontent-%COMP%] .product__actions-add_wrapper[_ngcontent-%COMP%]{justify-content:center}.product[data-myo=true][_ngcontent-%COMP%] .product__actions-add_label[_ngcontent-%COMP%]{font-family:var(--font-display);font-size:11.5px;font-weight:700;letter-spacing:.04em;line-height:1.15;text-transform:uppercase}.product[data-myo=true][_ngcontent-%COMP%] .product__toggle[_ngcontent-%COMP%]{background:transparent;border-top:1px solid var(--line);margin-top:0}.product[data-myo=true][_ngcontent-%COMP%] .product__toggle-label[_ngcontent-%COMP%]{color:var(--fg);font-family:var(--font-display);font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.product[data-myo=true][_ngcontent-%COMP%] .product__actions[_ngcontent-%COMP%] app-counter[_ngcontent-%COMP%] .counter, .product[data-myo=true][_ngcontent-%COMP%] .product__actions[_ngcontent-%COMP%] app-counter[_ngcontent-%COMP%] .counter__button{height:44px}.product[data-myo=true][_ngcontent-%COMP%] .product__actions[_ngcontent-%COMP%] app-counter[_ngcontent-%COMP%] .counter{border:1px solid var(--accent);border-radius:var(--r)}.product[data-myo=true][_ngcontent-%COMP%] .product__actions[_ngcontent-%COMP%] app-counter[_ngcontent-%COMP%] .counter__button{background-color:transparent;width:30px}.product[data-myo=true][_ngcontent-%COMP%] .product__actions[_ngcontent-%COMP%] app-counter[_ngcontent-%COMP%] .counter__value{font-family:var(--font-display);font-size:15px;font-weight:700;min-width:26px}.product[data-myo=true][_ngcontent-%COMP%] .product__actions[_ngcontent-%COMP%] app-button[_ngcontent-%COMP%] .button{border-radius:var(--r);height:auto;min-height:44px;padding:8px 10px}.product[data-myo=true][_ngcontent-%COMP%] .product__title-badges[_ngcontent-%COMP%] .badge{border-radius:3px;font-family:var(--font-mono);font-size:10px;font-weight:700;letter-spacing:.12em;padding:6px 10px;text-transform:uppercase}@media(max-width:620px){.product[data-myo=true][_ngcontent-%COMP%] .product__content[_ngcontent-%COMP%]{gap:9px;padding:14px 14px 4px}.product[data-myo=true][_ngcontent-%COMP%] .product__content-title[_ngcontent-%COMP%]{font-size:14px;line-height:1.15}.product[data-myo=true][_ngcontent-%COMP%] .product__content-subtitle[_ngcontent-%COMP%]{display:none}.product[data-myo=true][_ngcontent-%COMP%] .product__macros[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.product[data-myo=true][_ngcontent-%COMP%] .product__macro[_ngcontent-%COMP%]{padding:7px 4px}.product[data-myo=true][_ngcontent-%COMP%] .product__macro-value[_ngcontent-%COMP%]{font-size:13px}.product[data-myo=true][_ngcontent-%COMP%] .product__macro-label[_ngcontent-%COMP%]{font-size:8px}.product[data-myo=true][_ngcontent-%COMP%] .product__price-now[_ngcontent-%COMP%]{font-size:16px}.product[data-myo=true][_ngcontent-%COMP%] .product__price-note[_ngcontent-%COMP%]{font-size:9px}.product[data-myo=true][_ngcontent-%COMP%] .product__actions[_ngcontent-%COMP%]{padding:12px 14px 14px}}"]})};export{se as a,Xe as b,Ze as c,le as d};
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.