"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[3],{234:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.automatic_site_wide_discount=void 0;const r=o(3);t.automatic_site_wide_discount=r.content.object({name:"automatic_site_wide_discount",type:"automatic_site_wide_discount",key:"key",fields:{percentage:r.content.decimalField({name:"percentage",required:!1}),key:r.content.singleLineTextField({name:"key",required:!1})}})},48:(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:r})=>{let i=100*parseFloat(t.price.amount);return isNaN(i)&&(i="--"),{items:[{id:t.id,quantity:o,image:t.image?.src??"",product_title:e.title,price:i,variant_title:t.title.includes("Default")||t.title===e.title?"":t.title,properties:{...r},final_price:i,variant_id:Number(t.id),url:`/products/${e.handle}`,vendor:e.vendor,sku:t.sku}]}},t.SHIPPING_ITEM_ID=47171828482281},27:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mapSharedStructure=t.getAutomaticSiteWideDiscount=t.sanitizeUrl=t.addToCartProperties=t.truncateOneDecimal=t.truncateDecimal=t.replaceToFastImage=void 0;const r=o(17),i=o(21),a=o(234);t.replaceToFastImage=(e,t=!1,o=600)=>e,t.truncateDecimal=(e,t=2)=>{if(!e)return"0";const o=Math.max(0,Math.floor(t));if(0===o)return String(Math.round(e));const r=e.toString(),i=r.indexOf(".");if(-1===i)return String(e);const a=10**o,s=r.slice(i+o,i+o+1);if("0"===s||""===s)return String(e.toFixed(o));const n=Math.ceil(e*a),c=Math.floor(e*a);return String(n-e*a<.5?(n/a).toFixed(o):(c/a).toFixed(o))},t.truncateOneDecimal=e=>(0,t.truncateDecimal)(e,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(i.twelvePackHandle)?e.replace(i.twelvePackHandle,i.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,r.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};if(t.footer&&(t.footer={...t.footer},t.footer.footer?.logo?.src&&(t.footer.footer={...t.footer.footer,logo:{...t.footer.footer.logo,src:(0,r.getFastImage)(t.footer.footer.logo.src)}}),t.footer.ordersSupport?.logo?.src&&(t.footer.ordersSupport={...t.footer.ordersSupport,logo:{...t.footer.ordersSupport.logo,src:(0,r.getFastImage)(t.footer.ordersSupport.logo.src)}}),t.footer.social?.logo?.src&&(t.footer.social={...t.footer.social,logo:{...t.footer.social.logo,src:(0,r.getFastImage)(t.footer.social.logo.src)}})),t.menu?.logo?.src){const e=e=>e?.logo?.src?{...e,logo:{...e.logo,src:(0,r.getFastImage)(e.logo.src,220)}}:e;t.menu={...t.menu,logo:{...t.menu.logo,src:(0,r.getFastImage)(t.menu.logo.src,220)},desktop:e(t.menu.desktop),mobile:e(t.menu.mobile)}}return t}},21:(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"}},17:function(e,t,o){var r=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 i=r(o(230)),a=o(231);let s=[...i.default];function n(e,t=NaN,o=""){const r=(0,a.getSizeFromShopify)(e);e=r.url;let i=NaN;isNaN(t)&&(t=r.width,i=r.height);const n=o?`,c_pad,ar_${o},g_north`:"";if(s.some((t=>{let{template:o,folder:r}=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/${r}/`),!0})),~e.indexOf("/fast-image")){const o=/\/fast-image(\/[^/]*(c_scale|c_limit|fl_progressive)[^/]*)*/,r=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,i,n);e=`/fast-image/${a}${r}`}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},231:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSizeFromShopify=void 0;const o="\\.[a-zA-Z][a-zA-Z0-9]{1,4}\\b",r="cdn.shopify.com/",i="\\?v=\\d+$",a=new RegExp(`(${r}.*)_(?\\d+)x(?\\d*)(${o}${i})`),s=new RegExp(`(${r}.*)_(?\\w+)(${o}${i})`),n=new RegExp(`(${r}.+\\.(png|jpg))\\.(pjpg|jpg)(${i})`),c=new RegExp(`(${r}.+).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??"",r=t.groups?.height??"",i=parseInt(o),s=parseInt(r);return{url:e=e.replace(a,"$1$4"),width:i,height:s}}const o=e.match(s)?.groups?.size,r=l[o??""];return r?{url:e=e.replace(s,"$1$3"),width:r,height:r}:{url:e,width:NaN,height:NaN}};const u=e=>e.replace(n,"$1$4"),d=e=>e.replace(c,"$1$2")}}]);