"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[3],{219:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.automatic_site_wide_discount=void 0;const i=o(3);t.automatic_site_wide_discount=i.content.object({name:"automatic_site_wide_discount",type:"automatic_site_wide_discount",key:"key",fields:{percentage:i.content.decimalField({name:"percentage",required:!1}),key:i.content.singleLineTextField({name:"key",required:!1})}})},42:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SHIPPING_ITEM_ID=t.convertProductToPayload=void 0,t.convertProductToPayload=({product:e,variant:t,quantity:o=1,additionalProperties:i})=>{let r=100*parseFloat(t.price.amount);return isNaN(r)&&(r="--"),{items:[{id:t.id,quantity:o,image:t.image?.src??"",product_title:e.title,price:r,variant_title:t.title.includes("Default")||t.title===e.title?"":t.title,properties:{...i},final_price:r,variant_id:Number(t.id),url:`/products/${e.handle}`,vendor:e.vendor,sku:t.sku}]}},t.SHIPPING_ITEM_ID=47171828482281},28:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapSharedStructure=t.getAutomaticSiteWideDiscount=t.sanitizeUrl=t.addToCartProperties=t.truncateOneDecimal=t.replaceToFastImage=void 0;const i=o(6),r=o(20),a=o(219);t.replaceToFastImage=(e,t=!1,o=600)=>e,t.truncateOneDecimal=e=>{if(!e)return"0";const t=e.toString(),o=t.indexOf(".");if(-1===o)return String(e);if("0"===t.slice(o+1,o+2))return String(e.toFixed(1));const i=Math.ceil(10*e),r=Math.floor(10*e);return String(i-10*e<.5?(i/10).toFixed(1):(r/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?"string"!=typeof e?e:e.includes(r.twelvePackHandle)?e.replace(r.twelvePackHandle,r.bundlePackVarietySetHandle):e:e,t.getAutomaticSiteWideDiscount=async e=>{const t=await e.getContent(a.automatic_site_wide_discount,"default");return t&&t.percentage?t.percentage:0},t.mapSharedStructure=e=>{if(!e)return e;(0,i.setConfig)([{folder:"stars-honey",template:"https://cdn.shopify.com/s/files/1/0664/6100/8105/"},{folder:"stars-honey/files",template:"https://starsandhoney.com/cdn/shop/files/"}]);const t={...e};return t.footer&&(t.footer={...t.footer},t.footer.footer?.logo?.src&&(t.footer.footer={...t.footer.footer,logo:{...t.footer.footer.logo,src:(0,i.getFastImage)(t.footer.footer.logo.src)}}),t.footer.ordersSupport?.logo?.src&&(t.footer.ordersSupport={...t.footer.ordersSupport,logo:{...t.footer.ordersSupport.logo,src:(0,i.getFastImage)(t.footer.ordersSupport.logo.src)}}),t.footer.social?.logo?.src&&(t.footer.social={...t.footer.social,logo:{...t.footer.social.logo,src:(0,i.getFastImage)(t.footer.social.logo.src)}})),t.menu?.logo?.src&&(t.menu={...t.menu,logo:{...t.menu.logo,src:(0,i.getFastImage)(t.menu.logo.src,220)}}),t}},20:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseType=t.twelvePackPrimeHandle=t.varietySetSubscriptionHandle=t.bundlePackVarietySetHandle=t.twelvePackStoreHandle=t.twelvePackWinbackHandle=t.twelvePackHandle=t.BundleSize=void 0,t.BundleSize={"20 Pack":0,"30 Pack":1,"12 Pack":2},t.twelvePackHandle="signature-tasting-gift-set-12-pack",t.twelvePackWinbackHandle="signature-tasting-gift-set-12-pack-winback",t.twelvePackStoreHandle="signature-tasting-gift-set-12-pack-store",t.bundlePackVarietySetHandle="signature-flavors-variety-set",t.varietySetSubscriptionHandle="signature-flavors-variety-set-subscription",t.twelvePackPrimeHandle="signature-tasting-gift-set-12-pack-prime",t.PurchaseType={subscription:"subscription",oneTime:"one-time"}},6:function(e,t,o){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getFastImage=t.getFastSrcSet=t.setConfig=void 0;const r=i(o(215)),a=o(216);let s=[...r.default];function n(e,t=NaN,o=""){const i=(0,a.getSizeFromShopify)(e);e=i.url;let r=NaN;isNaN(t)&&(t=i.width,r=i.height);const n=o?`,c_pad,ar_${o},g_north`:"";if(s.some((t=>{let{template:o,folder:i}=t;if(o=o.replace(/^https?:/,""),~(e=e.replace("downloads.ctfassets.net","images.ctfassets.net")).indexOf(o))return e=e.replace(/^https?:/,"").replace(o,`/fast-image/${i}/`),!0})),~e.indexOf("/fast-image")){const o=/\/fast-image(\/[^/]*(c_scale|c_limit|fl_progressive)[^/]*)*/,i=e.replace(o,""),a=function(e,t,o){return isNaN(e)&&isNaN(t)?"fl_progressive:steep":`c_limit${isNaN(e)?"":`,w_${e}`}${isNaN(t)?"":`,h_${t}`},fl_progressive:steep${o}`}(t,r,n);e=`/fast-image/${a}${i}`}return e}t.setConfig=function(e){s=e},t.getFastSrcSet=function(e){return e.split(",").map((e=>e.trim().split(/\s+/m).map(((e,t)=>0===t?n(e):e)).join(" "))).join(",")},t.getFastImage=n},216:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSizeFromShopify=void 0;const o="\\.[a-zA-Z][a-zA-Z0-9]{1,4}\\b",i="cdn.shopify.com/",r="\\?v=\\d+$",a=new RegExp(`(${i}.*)_(?\\d+)x(?\\d*)(${o}${r})`),s=new RegExp(`(${i}.*)_(?\\w+)(${o}${r})`),n=new RegExp(`(${i}.+\\.(png|jpg))\\.(pjpg|jpg)(${r})`),c=new RegExp(`(${i}.+).progressive(${o})`),l={pico:16,icon:32,thumb:50,small:100,compact:160,medium:240,large:480,grande:600};t.getSizeFromShopify=function(e){e=u(e);const t=(e=d(e)).match(a);if(t){const o=t.groups?.width??"",i=t.groups?.height??"",r=parseInt(o),s=parseInt(i);return{url:e=e.replace(a,"$1$4"),width:r,height:s}}const o=e.match(s)?.groups?.size,i=l[o??""];return i?{url:e=e.replace(s,"$1$3"),width:i,height:i}:{url:e,width:NaN,height:NaN}};const u=e=>e.replace(n,"$1$4"),d=e=>e.replace(c,"$1$2")}}]);