1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4a6351c4-f6c2-42b8-befb-24705dae7b55",e._sentryDebugIdIdentifier="sentry-dbid-4a6351c4-f6c2-42b8-befb-24705dae7b55")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4894],{37466:function(e,t,r){r.d(t,{U:function(){return p}});var n=r(6162),a=r(39833),s=r(69899),l=r(19580),i=r(97709),o=r(81895),d=r(16581),u=r(55492),c=r(34062),m=r(76289),f=r(5838),x=r(65800),h=r(96811);function p(e){var t,r,p,g,b;let{onNavigate:v,subtotal:j}=e,{data:D,status:N}=(0,o.useSession)(),{cartData:w}=(0,u.j)(),y=(0,i.usePathname)(),C=!!w.is_wholesale,k="loading"===N,F=!!(null==D?void 0:D.user),{data:A,isPending:_}=c.h.loyaltyPoints.getBalance.useQuery(void 0,{enabled:F&&!C,retry:!1}),{data:T,isPending:E}=c.h.loyaltyPoints.getPublicConfiguration.useQuery(void 0,{enabled:!k&&!F&&!C,retry:!1}),I=F?A:T,{data:P}=c.h.loyaltyPoints.listActivePromotions.useQuery(void 0,{enabled:!C,staleTime:h.u}),M=(null!==(t=w.cart_items)&&void 0!==t?t:[]).filter(e=>e.product_type_id===m.kv.GiftCard.valueOf()).reduce((e,t)=>e+parseFloat(t.subtotal),0),Z=null!==(r=null==I?void 0:I.pointsPerDollar)&&void 0!==r?r:0,S=Math.floor(Math.max(0,j-M)*Z),L=(null!=P?P:[]).filter(h.hs).reduce((e,t)=>e+Math.floor(S*(t.multiplier-1)),0),B=S+L,R=null!==(p=null==A?void 0:A.enrolled)&&void 0!==p&&p,z=null!==(g=null==I?void 0:I.signupBonusPoints)&&void 0!==g?g:0,U=null!==(b=null==I?void 0:I.welcomeBonusPromoActive)&&void 0!==b&&b,q=null==I?void 0:I.welcomeBonusPromoEndsAt,Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:900,[r,n]=(0,d.useState)(e),a=(0,d.useRef)(null);return(0,d.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||e<=0){n(e);return}n(0);let r=performance.now(),s=l=>{let i=Math.min(1,(l-r)/t);n(Math.round(e*(1-Math.pow(1-i,3)))),i<1&&(a.current=requestAnimationFrame(s))};return a.current=requestAnimationFrame(s),()=>{null!==a.current&&cancelAnimationFrame(a.current)}},[e,t]),r}(B);if(C||k||(F?_:E)||!Z||B<=0||F&&(null==A?void 0:A.banned))return null;let O=U&&q?new Date(q).toLocaleDateString("en-US",{day:"numeric",month:"short"}):null,Q=y?"/login?callbackUrl=".concat(encodeURIComponent(y)):"/login";return(0,n.jsxs)("div",{className:"relative mb-3 overflow-hidden rounded-xl border border-amber-300/70 bg-gradient-to-br from-amber-50 to-yellow-100/70 p-4 shadow-sm dark:border-amber-700/60 dark:from-amber-950/40 dark:to-yellow-900/20",children:[(0,n.jsx)("div",{className:"absolute inset-x-0 top-0 h-1 bg-gradient-to-r from-amber-400 via-yellow-300 to-amber-400"}),(0,n.jsxs)("div",{className:"flex items-center gap-3.5",children:[(0,n.jsxs)("div",{className:"relative flex h-12 w-12 shrink-0 items-center justify-center",children:[(0,n.jsx)("div",{className:"absolute inset-0 scale-150 rounded-full bg-amber-300/30 blur-md dark:bg-amber-500/20"}),(0,n.jsx)("div",{className:"relative flex h-12 w-12 items-center justify-center rounded-full bg-gradient-to-br from-amber-300 to-yellow-500 shadow-inner",children:(0,n.jsx)(a.Z,{"aria-hidden":"true",className:"h-6 w-6 text-white"})})]}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,n.jsx)("span",{className:"font-recoleta text-3xl font-extrabold tabular-nums leading-none text-amber-900 dark:text-amber-100",children:Y.toLocaleString()}),(0,n.jsx)("span",{className:"text-sm font-bold text-amber-900 dark:text-amber-100",children:"points"})]}),(0,n.jsxs)("p",{className:"mt-1 text-xs text-amber-800/90 dark:text-amber-200/80",children:["you'll earn on ",(0,n.jsx)("strong",{children:"this order"})]})]})]}),L>0?(0,n.jsxs)("div",{className:"mt-2.5 flex items-center gap-2 rounded-lg bg-amber-100/80 px-2.5 py-1.5 dark:bg-amber-900/40",children:[(0,n.jsx)(s.Z,{"aria-hidden":"true",className:"h-3.5 w-3.5 shrink-0 text-amber-700 dark:text-amber-300"}),(0,n.jsxs)("span",{className:"text-xs text-amber-900 dark:text-amber-100",children:["Includes +",(0,n.jsx)("strong",{children:L.toLocaleStr
1ing()})," ","bonus points from an active promo"]})]}):null,!R&&z>0?(0,n.jsxs)("div",{className:"mt-2.5 flex items-center gap-2 rounded-lg bg-amber-100/80 px-2.5 py-1.5 dark:bg-amber-900/40",children:[(0,n.jsx)(s.Z,{"aria-hidden":"true",className:"h-3.5 w-3.5 shrink-0 text-amber-700 dark:text-amber-300"}),(0,n.jsxs)("span",{className:"text-xs text-amber-900 dark:text-amber-100",children:["+",(0,n.jsx)("strong",{children:z.toLocaleString()})," ",U?"limited-time welcome bonus":"welcome bonus"," when you join",O?(0,n.jsxs)("span",{className:"text-amber-700/80 dark:text-amber-300/70",children:[" ","\xb7 ends ",O]}):null]})]}):null,R?(0,n.jsx)("p",{className:"mt-2.5 text-center text-[10px] text-amber-700/80 dark:text-amber-300/70",children:"Credited within 48 hours of shipping"}):F?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.Button,{asChild:!0,className:"bg-primary-dark hover:bg-primary-dark/90 mt-3 w-full gap-2 text-white",children:(0,n.jsxs)(x.a,{href:"/my-account/wellness-points",onClick:v,children:["Join Wellness Points â it's free",(0,n.jsx)(l.Z,{"aria-hidden":"true",className:"h-4 w-4"})]})}),(0,n.jsx)("p",{className:"mt-2 text-center text-[10px] text-amber-700/80 dark:text-amber-300/70",children:"10 pts per $1 \xb7 1,000 pts = $3 off future orders"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.Button,{asChild:!0,className:"bg-primary-dark hover:bg-primary-dark/90 mt-3 w-full gap-2 text-white",children:(0,n.jsxs)(x.a,{href:Q,onClick:v,children:["Log in or sign up to join",(0,n.jsx)(l.Z,{"aria-hidden":"true",className:"h-4 w-4"})]})}),(0,n.jsx)("p",{className:"mt-2 text-center text-[10px] text-amber-700/80 dark:text-amber-300/70",children:"A free Earthley account is required to join \xb7 10 pts per $1"})]})]})}},49552:function(e,t,r){r.d(t,{p:function(){return s}});var n=r(6162),a=r(87462);function s(e){var t,r;let{fallbackHeight:s=900,fallbackWidth:l=1200,image:i,...o}=e;return(0,n.jsx)(a.default,{alt:i.alt,height:null!==(t=i.height)&&void 0!==t?t:s,src:i.src,width:null!==(r=i.width)&&void 0!==r?r:l,...o})}},96811:function(e,t,r){r.d(t,{Hu:function(){return a},M:function(){return s},Mc:function(){return l},hs:function(){return i},u:function(){return n}});let n=3e5;function a(e){return"".concat(e,"x")}function s(e){let t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{day:"numeric",month:"short",timeZone:"UTC"})}function l(e){let t=s(e.startsAt),r=s(e.endsAt);return t&&r?"".concat(t," to ").concat(r):""}function i(e){return"purchase"===e.sourceFilter||null===e.sourceFilter}},38033:function(e,t,r){r.d(t,{AddressesProvider:function(){return d},J:function(){return u}});var n=r(6162),a=r(81895),s=r(16581),l=r(34062);let i=(0,s.createContext)(void 0),o=[];function d(e){let{children:t}=e,{data:r}=(0,a.useSession)(),s=null==r?void 0:r.user.id,{data:d=o,isFetching:u,isLoading:c,isPending:m}=l.h.addresses.getUserAddresses.useQuery({id:null!=s?s:0},{enabled:!!s});return(0,n.jsx)(i.Provider,{value:{addresses:d,isFetching:u,isLoading:c,isPending:m},children:t})}function u(){let e=(0,s.useContext)(i);if(!e)throw Error("useAddresses must be used within an AddressesProvider");return e}},26314:function(e,t,r){r.d(t,{Eb:function(){return o},ZP:function(){return u},xb:function(){return d}});var n=r(6162),a=r(16581),s=r(55492),l=r(82009);r(47233);var i=r(87956);function o(e){let t=e.filter(e=>{let{addon_id:t,parent_id:r,is_gift:n}=e;return!r&&!t&&!n}),r=e.filter(e=>{let{addon_id:t}=e;return t}),n=e.filter(e=>{let{is_gift:t,parent_id:r}=e;return t&&!r}),a={};return t.forEach(e=>{let{id:t}=e;a[t]=[]}),n.forEach(e=>{let{id:t,product_type_id:r}=e;2===r&&(a[t]=[])}),{addonList:r,bundleList:e.reduce((e,t)=>{if(t.parent_id&&!t.addon_id){var r;null===(r=e[t.parent_id])||void 0===r||r.push(t)}return e},a),cartList:t,giftList:n}}function d(e){return e.some(e=>1===e.product_type_id)?e.filter(e=>1===e.product_type_id||3===e.product_type_id).reduce((e,t)=>e+Number(t.subtotal),0):0}function u(e){let{alert:t,item:r,mutatingItemId:d,saveCartItemForLater:u=()=>{},hideAddons:c=!1,showAddonsOnly:m=!1,...f}=e,{cartData:{cart_coupons:x=[],cart_items:h,is_wholesale:p},isPending:g}=(0,s.j)(),b=(0,a.useRef)(d);if(0===h.length)return(0,n.jsx)("div",{className:"w-full p-4 text-center ",children:g?(0,n.jsx)("div",{className:"flex h-[500px] items-center justify-center",children:(0,n.jsx)("div",{className:"border-t-vgray h-20 w-20 animate-spin rounded-full border-8 border-gray-300"})}):(0,n.jsx)("div",{className:"flex h-[100px] items-center justify-center rounded-lg border-2 border-dashed border-gray-300 bg-gray-100 px-6 text-gray-500",children:"Your Cart is Empty"})});let{bundleList:v,cartList:j,addonList:D}=o(h);if(b.current=null!=d?d:b.current,!p)return(0,n.jsxs)("div",{className:"mx-auto flex w-full max-w-full flex-col items-center gap-4 px-0",children:[!m&&j.map(e=>(0,a.createElement)(r,{...f,alert:b.current===e.id?t:null,appliedCoupons:x,bundleList:v,is_addon:!1,is_wholesale:p,isMutating:!!d&&d===e.id,item:e,key:e.id,saveCartItemForLater:u})),(!c||m)&&D.length>0?(0,n.jsx)("div",{className:m?"w-full":"mt-6 w-full",children:(0,n.jsx)(l.Accordion,{collapsible:!0,type:"single",children:(0,n.jsxs)(l.AccordionItem,{className:"border-none",value:"addons",children:[(0,n.jsx)(l.AccordionTrigger,{className:"rounded-lg border border-gray-200 bg-green-50 px-4 py-3 hover:bg-green-100 hover:no-underline",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 text-left",children:[(0,n.jsx)("span",{className:"text-2xl",children:"\uD83C\uDF81"}),(0,n.jsxs)("div",{children:[(0,n.jsxs)(i.Z,{as:"span",className:"font-semibold text-green-800",variant:"p",children:[D.length," Free Add-on",1!==D.length?"s":""]}),(0,n.jsx)(i.Z,{as:"p",className:"text-xs text-green-700",variant:"mutedText",children:"Click to view items"})]})]})}),(0,n.jsx)(l.AccordionContent,{className:"px-1 pt-4",children:(0,n.jsx)("div",{className:"space-y-2",children:D.map(e=>(0,n.jsx)(r,{appliedCoupons:x,bundleList:v,is_addon:!0,is_wholesale:p,item:e},e.id))})})]})})}):null]});let N=function(e){let t={};
1return e.forEach(e=>{if(!e.parent_id){var r,n,a;let s=(null===(n=e.product)||void 0===n?void 0:null===(r=n.primary_category)||void 0===r?void 0:r.name)||"Uncategorized";t[s]||(t[s]=[]),null===(a=t[s])||void 0===a||a.push(e)}}),t}(j),w=Object.keys(N).sort((e,t)=>e.localeCompare(t));return(0,n.jsxs)("div",{className:"flex w-full max-w-full flex-col items-center gap-4 px-2 sm:px-0",children:[!m&&w.map(e=>{var s;return(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)(i.Z,{className:"mb-2 text-center text-lg font-bold sm:text-left",children:e}),N[e]?null===(s=N[e])||void 0===s?void 0:s.map(e=>(0,a.createElement)(r,{...f,alert:b.current===e.id?t:null,appliedCoupons:x,bundleList:v,is_addon:!1,is_wholesale:p,isMutating:!!d&&d===e.id,item:e,key:e.id,saveCartItemForLater:u})):null]},e)}),(!c||m)&&D.length>0?(0,n.jsx)("div",{className:m?"w-full":"mt-6 w-full",children:(0,n.jsx)(l.Accordion,{collapsible:!0,type:"single",children:(0,n.jsxs)(l.AccordionItem,{className:"border-none",value:"addons",children:[(0,n.jsx)(l.AccordionTrigger,{className:"rounded-lg border border-gray-200 bg-green-50 px-4 py-3 hover:bg-green-100 hover:no-underline",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 text-left",children:[(0,n.jsx)("span",{className:"text-2xl",children:"\uD83C\uDF81"}),(0,n.jsxs)("div",{children:[(0,n.jsxs)(i.Z,{as:"span",className:"font-semibold text-green-800",variant:"p",children:[D.length," Free Add-on",1!==D.length?"s":""]}),(0,n.jsx)(i.Z,{as:"p",className:"text-xs text-green-700",variant:"mutedText",children:"Click to view items"})]})]})}),(0,n.jsx)(l.AccordionContent,{className:"px-1 pt-4",children:(0,n.jsx)("div",{className:"space-y-2",children:D.map(e=>(0,n.jsx)(r,{appliedCoupons:x,bundleList:v,is_addon:!0,is_wholesale:p,item:e},e.id))})})]})})}):null]})}},15083:function(e,t,r){r.d(t,{NI:function(){return l},c$:function(){return i}});var n=r(6162),a=r(16581),s=r(62869);function l(e,t){let r;let l=RegExp("\\b(?<alcoholType>alcohol[-\\s]free|alcohol)\\b","gi"),i=[],o=0;for(l.lastIndex=0;null!==(r=l.exec(e));){r.index>o&&i.push((0,n.jsx)(a.Fragment,{children:e.slice(o,r.index)},"text-".concat(o)));let l=r[0],d="alcohol-free"===l.toLowerCase()||"alcohol free"===l.toLowerCase();i.push((0,n.jsx)("span",{className:(0,s.cn)("font-semibold",d?"text-green-600 dark:text-green-400":"text-amber-600 dark:text-amber-400",t),children:l},"match-".concat(r.index))),o=r.index+l.length}return(o<e.length&&i.push((0,n.jsx)(a.Fragment,{children:e.slice(o)},"text-".concat(o))),0===i.length)?[(0,n.jsx)(a.Fragment,{children:e},"original")]:i}function i(e){let{className:t,colorClassName:r,name:a}=e;return a&&"default"!==a?(0,n.jsx)("span",{className:t,children:l(a,r)}):null}},64316:function(e,t,r){r.d(t,{hA:function(){return u},lb:function(){return o},ld:function(){return d}});var n=r(6162),a=r(16581),s=r(34062);let l=(0,a.createContext)(void 0),i={isPending:!0,isSaleMode:!1,itemTiers:[],subscriptionTiers:[]},o={balloon:"\uD83C\uDF88",card:"\uD83D\uDCB3",confetti:"\uD83C\uDF8A",crown:"\uD83D\uDC51",delivery:"\uD83D\uDE9A",diamond:"\uD83D\uDC8E",fire:"\uD83D\uDD25",gift:"\uD83C\uDF81",glow:"\uD83C\uDF1F",heart:"\uD83D\uDC9D",medal:"\uD83C\uDFC5",money:"\uD83D\uDCB0",package:"\uD83D\uDCE6",party:"\uD83C\uDF89",rocket:"\uD83D\uDE80",shopping:"\uD83D\uDECDï¸",sparkle:"â¨",star:"â",target:"\uD83C\uDFAF",trophy:"\uD83C\uDFC6"};function d(e){let{cartProductIds:t,children:r,isCartReady:o=!0}=e,d=t&&t.length>0?{cartProductIds:t}:void 0,{data:u,isPending:c}=s.h.giftTiers.getActive.useQuery(d,{enabled:o,staleTime:36e5}),m=(0,a.useMemo)(()=>{if(c)return i;if(!u)return{...i,isPending:!1};let e=u.saleMode;return u.tiers.reduce((e,t)=>(t.subscriptionOnly?e.subscriptionTiers.push(t):e.itemTiers.push(t),e),{isPending:!1,isSaleMode:e,itemTiers:[],subscriptionTiers:[]})},[u]);return(0,n.jsx)(l.Provider,{value:m,children:r})}let u=()=>{let e=(0,a.useContext)(l);if(!e)throw Error("useGiftTiers must be used within an GiftTiersProvider");return e}},97943:function(e,t,r){r.d(t,{IE:function(){return a.I},dh:function(){return a.d},hA:function(){return n.hA},ld:function(){return n.ld}});var n=r(64316),a=r(89850)},89850:function(e,t,r){r.d(t,{I:function(){return f},d:function(){return u}});var n=r(6162),a=r(5838),s=r(78131),l=r(87956),i=r(62869),o=r(15088),d=r(64316);function u(e,t){var r,n,a,s;let l=e.filter(e=>{let{threshold:r}=e;return t>=r}).sort((e,t)=>
1e.threshold-t.threshold),i=l.length-1,o=null!==(r=e[i])&&void 0!==r?r:null,d=null!==(n=e[i+1])&&void 0!==n?n:null,u=null!==(a=null==o?void 0:o.threshold)&&void 0!==a?a:0,c=null!==(s=null==d?void 0:d.threshold)&&void 0!==s?s:0;return{currentTier:o,currentTierIndex:i,nextTier:d,progressPercentage:Math.min(Math.max(0===c?100:(t-u)/(c-u)*100,0),100),remainingToNextTier:Math.max(c-t,0),unlockedTiers:l}}function c(e){switch(e.rewardType){case"gift":return"- Free Gift";case"discount":return"- ".concat(e.discountPercentage||0,"% Off");case"shipping":return"- Free Shipping";default:return""}}function m(e){let{tier:t}=e;return(0,n.jsxs)("div",{className:"flex items-center gap-2 rounded-full border border-green-200 bg-green-50 px-3 py-1",children:[t.emojiIcon?(0,n.jsx)("span",{children:d.lb[t.emojiIcon]?d.lb[t.emojiIcon]:"\uD83C\uDF81"}):null,(0,n.jsxs)(l.Z,{className:"text-sm font-medium text-green-700",children:[t.name,c(t)]})]},t.id)}function f(e){let{cartSubtotal:t,className:r,is_wholesale:f,location_id:x,onManageRewards:h,showUnlockedTiers:p=!0,subscriptionSubtotal:g=0}=e,{isPending:b,isSaleMode:v,itemTiers:j,subscriptionTiers:D}=(0,d.hA)(),N=v?j.filter(e=>"discount"===e.rewardType):j,w=v?D.filter(e=>"discount"===e.rewardType):D;if(b)return(0,n.jsxs)("div",{className:(0,i.cn)("animate-pulse space-y-4",r),children:[(0,n.jsx)("div",{className:"h-4 w-3/4 rounded bg-gray-200"}),(0,n.jsx)("div",{className:"h-2 rounded bg-gray-200"})]});if(!N.length&&!w.length||f||x)return null;let{unlockedTiers:y}=u(w,g),{currentTier:C,nextTier:k,progressPercentage:F,remainingToNextTier:A,unlockedTiers:_}=u(N,t),T=_.length>0||y.length>0;return(0,n.jsx)("div",{className:(0,i.cn)("space-y-4",r),children:p&&T?(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(l.Z,{className:"hidden font-medium text-green-600 md:block",variant:"p",children:v?"\uD83C\uDFF7ï¸ Active Sale Discounts:":"\uD83C\uDF89 Unlocked Rewards:"}),y.length>0?(0,n.jsxs)("div",{className:"bg-success/10 flex flex-wrap gap-2 rounded-md p-3",children:[(0,n.jsx)(l.Z,{className:"font-small text-green-600",variant:"p",children:"Subscribe & Save Item Rewards:"}),y.map(e=>(0,n.jsx)(m,{tier:e},e.id))]}):null,(0,n.jsxs)("div",{className:"bg-success/10 flex flex-wrap gap-2 rounded-md p-3",children:[(0,n.jsx)(l.Z,{className:"hidden font-medium text-green-600 md:block",variant:"p",children:"Order Rewards:"}),_.map(e=>(0,n.jsx)(m,{tier:e},e.id)),k?(0,n.jsxs)("div",{className:"w-full space-y-2",children:[(0,n.jsx)("div",{className:"flex items-center justify-between",children:(0,n.jsxs)(l.Z,{className:"text-muted-foreground",variant:"p",children:[k.emojiIcon?(0,n.jsx)("span",{className:"mr-2",children:d.lb[k.emojiIcon]?d.lb[k.emojiIcon]:"\uD83C\uDF81"}):null,k.threshold&&k.threshold>0?(0,n.jsxs)(n.Fragment,{children:["Add"," ",o.oB.format(A)," ","more for"," ",(0,n.jsx)("span",{className:"font-semibold",children:c(k)})]}):(0,n.jsxs)(n.Fragment,{children:["You qualify for"," ",(0,n.jsx)("span",{className:"font-semibold",children:c(k)}),"!"]})]})}),(0,n.jsx)(s.E,{className:"h-3 [&>*]:bg-gradient-to-r [&>*]:from-green-500 [&>*]:to-emerald-500",label:"Progress to next reward: ".concat(Math.round(F),"%"),value:F}),(0,n.jsxs)(l.Z,{className:"text-muted-foreground hidden text-right text-xs md:block",children:[Math.round(F),"% to next reward"]})]}):null,C&&!k?(0,n.jsx)("div",{className:"bg-gold-50 border-gold-200 w-full rounded-lg border p-4",children:(0,n.jsxs)(l.Z,{className:"text-gold-900 text-center font-medium",variant:"p",children:[C.emojiIcon?(0,n.jsx)("span",{className:"mr-2",children:d.lb[C.emojiIcon]?d.lb[C.emojiIcon]:"\uD83C\uDF81"}):null,"Congratulations! You've unlocked the highest reward tier:"," ",C.name]})}):null,(0,n.jsx)(a.Button,{onClick:()=>{!function(){if(h){h();return}let e=document.querySelector("[data-cart-sheet-trigger]");e instanceof HTMLElement&&e.click()}()},size:"sm",variant:"link",children:v?"View sale details":"Manage rewards"})]})]}):k?(0,n.jsxs)("div",{className:"w-full space-y-2",children:[(0,n.jsx)(l.Z,{className:"hidden font-medium text-green-600 md:block",variant:"p",children:v?"\uD83C\uDFF7ï¸ Next Sale Discount:":"\uD83C\uDF89 Next Available Reward:"}),(0,n.jsx)("div",{className:"flex items-center justify-between",children:(0,n.jsxs)(l.Z,{className:"text-muted-foreground",variant:"p",children:[k.emojiIcon?(0,n.jsx)("span",{className:"mr-2",children:d.lb[k.emojiIcon]?d.lb[k.emojiIcon]:"\uD83C\uDF81"}):null,k.threshold&&k.threshold>0?(0,n.jsxs)(n.Fragment,{children:["Add ",o.oB.format(A)," ","more for"," ",(0,n.jsx)("span",{className:"font-semibold",children:c(k)})]}):null]})}),(0,n.jsx)(s.E,{className:"h-3 [&>*]:bg-gradient-to-r [&>*]:from-green-500 [&>*]:to-emerald-500",label:"Progress to next reward: ".concat(Math.round(F),"%"),value:F}),(0,n.jsxs)(l.Z,{className:"text-muted-foreground hidden text-right text-xs md:block",children:[Math.round(F),"% to next reward"]})]}):null})}},18167:function(e,t,r){r.d(t,{lb:function(){return n}});let n={balloon:"\uD83C\uDF88",card:"\uD83D\uDCB3",confetti:"\uD83C\uDF8A",crown:"\uD83D\uDC51",delivery:"\uD83D\uDE9A",diamond:"\uD83D\uDC8E",fire:"\uD83D\uDD25",gift:"\uD83C\uDF81",glow:"\uD83C\uDF1F",heart:"\uD83D\uDC9D",medal:"\uD83C\uDFC5",money:"\uD83D\uDCB0",package:"\uD83D\uDCE6",party:"\uD83C\uDF89",rocket:"\uD83D\uDE80",shopping:"\uD83D\uDECDï¸",sparkle:"â¨",star:"â",target:"\uD83C\uDFAF",trophy:"\uD83C\uDFC6"}},82009:function(e,t,r){r.r(t),r.d(t,{Accordion:function(){return o},AccordionBaseHeader:function(){return u},AccordionBaseTrigger:function(){return c},AccordionContent:function(){return f},AccordionItem:function(){return d},AccordionTrigger:function(){return m}});var n=r(6162),a=r(30178),s=r(24900),l=r(16581),i=r(62869);let o=a.fC,d=l.forwardRef((e,t)=>
1{let{className:r,...s}=e;return(0,n.jsx)(a.ck,{className:(0,i.cn)("border-b",r),ref:t,...s})});d.displayName="AccordionItem";let u=l.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,n.jsx)(a.h4,{className:(0,i.cn)("flex",r),ref:t,...l,children:s})});u.displayName=a.xz.displayName;let c=l.forwardRef((e,t)=>{let{className:r,children:l,...o}=e;return(0,n.jsxs)(a.xz,{className:(0,i.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",r),ref:t,...o,children:[l,(0,n.jsx)(s.v4q,{className:"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200"})]})});c.displayName=a.xz.displayName;let m=l.forwardRef((e,t)=>{let{className:r,children:l,...o}=e;return(0,n.jsx)(a.h4,{className:"flex",children:(0,n.jsxs)(a.xz,{className:(0,i.cn)("group flex flex-1 items-center justify-between py-0 text-sm font-medium transition-all [&[data-state=open]>svg]:rotate-180",r),ref:t,...o,children:[l,(0,n.jsx)(s.v4q,{className:"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200"})]})})});m.displayName=a.xz.displayName;let f=l.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,n.jsx)(a.VY,{className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",ref:t,...l,children:(0,n.jsx)("div",{className:(0,i.cn)("pb-0 pt-0",r),children:s})})});f.displayName=a.VY.displayName},78131:function(e,t,r){r.d(t,{E:function(){return i}});var n=r(6162),a=r(1771),s=r(16581),l=r(62869);let i=s.forwardRef((e,t)=>{let{className:r,gradientColor:s="green",label:i,value:o,...d}=e;return(0,n.jsx)(a.fC,{"aria-label":i,className:(0,l.cn)("relative h-4 w-full overflow-hidden rounded-full",{blue:"bg-[#dee2ea]/30",gold:"bg-[#f8efd0]/30",green:"bg-[#d4e5c9]/60"}[s],r),ref:t,value:o,...d,children:(0,n.jsx)(a.z$,{className:(0,l.cn)("absolute inset-y-0 h-full w-full flex-1 rounded-full transition-all duration-500","bg-gradient-to-r",{blue:"from-[#2e6393] via-[#dee2ea] to-[#2e6393]",gold:"from-[#d9b343] via-[#f8efd0] to-[#b3903b]",green:"from-[#739059] via-[#9db57f] to-[#739059]"}[s]),style:{boxShadow:"0 0 10px rgba(0,0,0,0.1)",transform:"translateX(-".concat(100-(o||0),"%)")},children:(0,n.jsx)("div",{className:"animate-shimmer absolute inset-0 rounded-full opacity-30",style:{background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent)"}})})})});i.displayName=a.fC.displayName},47233:function(e,t,r){r.d(t,{TooltipProvider:function(){return a.zt},_v:function(){return i},aJ:function(){return a.xz},u:function(){return a.fC}});var n=r(6162),a=r(67094),s=r(16581),l=r(62869);let i=s.forwardRef((e,t)=>{let{className:r,sideOffset:s=4,...i}=e;return(0,n.jsx)(a.VY,{className:(0,l.cn)("bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[80] overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",r),ref:t,sideOffset:s,...i})});i.displayName=a.VY.displayName}}]);
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.