"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[3],{152:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sellingPlans=t.convertProductToPayload=void 0,t.convertProductToPayload=({product:e,variant:t,quantity:i=1,additionalProperties:r})=>{let a=100*parseFloat(t.price.amount);return isNaN(a)&&(a="--"),{items:[{id:t.id,quantity:i,image:t.image?.src??"",product_title:e.title,price:a,variant_title:t.title.includes("Default")||t.title===e.title?"":t.title,properties:{...r},final_price:a,variant_id:Number(t.id),url:`/products/${e.handle}`,vendor:e.vendor,sku:t.sku}]}},t.sellingPlans={"peanut-butter-blackberry":3397714153,"the-raspberry-donut":3397746921,"cookies-and-cream":3397681385,"birthday-cake-chocolate-chip":3397517545,"dark-chocolate-coconut":3311567081,"espresso-vanilla-cinnamon":3311599849,"cacao-salt-caramel-peanut":3311468777,"signature-flavors-variety-set":3320348905,"peppermint-mocha":3723198697,"gingerbread-cookie":3723231465}},24:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=t.addToCartProperties=t.truncateOneDecimal=t.replaceToFastImage=void 0,t.replaceToFastImage=(e,t=!1,i=600)=>e,t.truncateOneDecimal=e=>{if(!e)return"0";const t=e.toString(),i=t.indexOf(".");if(-1===i)return String(e);if("0"===t.slice(i+1,i+2))return String(e.toFixed(1));const r=Math.ceil(10*e),a=Math.floor(10*e);return String(r-10*e<.5?(r/10).toFixed(1):(a/10).toFixed(1))},t.addToCartProperties=({payload:e})=>{const t=e.items[0];return t?(t.properties={...t.properties,_size:t.variant_title,_subscription:t.selling_plan?"subscription":"one-time"},e):e},t.sanitizeUrl=e=>e.includes("signature-tasting-gift-set-12-pack-copy")?e.replace("signature-tasting-gift-set-12-pack-copy","signature-flavors-variety-set"):e}}]);