PageSourceSearch

https://www.birchbox.co.uk/_next/static/chunks/pages/profile/subscriptions-aa926044a4976cf1.js

js birchbox.co.uk collected 2026-10-02 15:09:15 UTC 132,574 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2224],{10904:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>el});var i=s(37876),l=s(14232),n=s(89099),a=s(62867);let o=JSON.parse('{"DD":[{"Qq":"Customise"}],"Q7":{"dimensions":{"width":5464,"height":8192},"alt":null,"copyright":null,"url":"https://images.prismic.io/birchbox/Zw_2h4F3NbkBXlKQ_0K9A4872.jpg?auto=format,compress","id":"Zw_2h4F3NbkBXlKQ","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"oM":[{"type":"paragraph","text":"+Plus 5 additional best selling beauty products","spans":[],"direction":"ltr"}],"w$":{"dimensions":{"width":300,"height":300},"alt":null,"copyright":null,"url":"https://images.prismic.io/birchbox/ZqUOsR5LeNNTxil5_open-box-svgrepo-com.jpg?auto=format,compress","id":"ZqUOsR5LeNNTxil5","edit":{"x":0,"y":0,"zoom":1,"background":"transparent"}},"C8":"https://help.birchbox.com/hc/en-us","pd":"[email protected]"}');var r=s(50614),c=s(48230),d=s.n(c),u=s(36854),C=s(27798),m=s(79684),x=s(10553),p=s(99116),h=s(81560),f=s(46462);let b=JSON.parse('[{"title":[{"type":"heading1","text":"Birchbox Standard Box","spans":[],"direction":"ltr"}],"configuration_notes":"migration from previous birchbox standard box configuration","customization_frequency":"Monthly","product_skus":[{"sku":"bb-box-1"},{"sku":"bb-box-2"},{"sku":"bb-box-3"},{"sku":"bb-box-4"},{"sku":"bb-box-5"},{"sku":"bb-box-6"},{"sku":"bb-box-7"},{"sku":"bb-box-1-test"},{"sku":"bb-box-7-test"},{"sku":"bb-box-1-ace"},{"sku":"bb-box-place"},{"sku":"bb-box-8"},{"sku":"bb-box-9"}],"nmc":{"stock_tolerance":5,"notes":"basic migration from standard box","landing_page_header":[{"type":"heading1","text":"Customise your first box","spans":[],"direction":"ltr"}],"steps_header":[{"type":"heading1","text":"First Box Customisation","spans":[],"direction":"ltr"}],"steps_description":[{"type":"paragraph","text":"Select a product to customize your box.","spans":[],"direction":"ltr"}],"review_description":[{"type":"paragraph","text":"Review your items and submit your choices.","spans":[],"direction":"ltr"}],"customization_hours":24,"post_submit_redirect":"My Account","customization_groups":[{"name":"Select Product","collection_slug":"evergreen-new-member-customization","max_items":1,"bonus_items":false,"hide_from_summary":false},{"name":"Review","collection_slug":"","max_items":1,"bonus_items":false,"hide_from_summary":false}],"bonus_item_tag_text":null,"bonus_item_tag_color":null,"bonus_item_tooltip_text":[],"additional_products":[{"hide":false,"tag_icon":"none","tag_text":null,"variant_id":null}]},"rmc":{"stock_tolerance":5,"customization_enabled":true,"notes":null,"landing_page_header":[{"type":"heading1","text":"August Box Customisation","spans":[],"direction":"ltr"}],"steps_header":[{"type":"heading1","text":"August Box Customisation","spans":[],"direction":"ltr"}],"steps_description":[{"type":"paragraph","text":"Select a product to customize your box.","spans":[],"direction":"ltr"}],"post_submit_redirect":"My Account","use_custom_dates":true,"default_start_day":null,"default_start_time":null,"default_end_day":null,"default_end_time":null,"customization_start_date":"2026-08-19T00:00:00+0000","customization_close_date":"2026-08-23T22:59:00+0000","customization_groups":[{"name":"Group 1","collection_slug":"august-september-2026-box","max_items":1,"bonus_items":false,"hide_from_summary":false},{"name":"Review","collection_slug":"","max_items":1,"bonus_items":false,"hide_from_summary":false}],"bonus_item_tag_text":null,"bonus_item_tag_color":null,"bonus_item_tooltip_text":[],"additional_products":[{"hide":false,"tag_icon":"none","tag_text":null,"variant_id":null}]}}]');var g=s(19958);async function L(e,t){let s=e.filter(e=>!0===e.bonus_items);if(0===s.length)return[];let i=[],l=e=>!0===e.hide_from_summary,n=s.map(async e=>{if(!e.collection_slug)return console.warn("Bonus group missing collection_slug:",e),[];try{let s=await (0,g.vf)(e.collection_slug,t,0),i=[];for(let n of s){let s=n.sampleVariants.find(e=>"RMC"===t?!0===e.isRMC:!0===e.isNMC);s?i.push({product:n,variant:s,isBonus:!0,hideFromSummary:l(e)}):console.warn("No visible variant found for bonus item product ".concat(n.id," in collection ").concat(e.collection_slug))}return i}catch(t){return console.error("Error fetching bonus items from collection ".concat(e.collection_slug,":"),t),[]}});return i.push(...(await Promise.all(n)).flat()),i}function v(e){return e.filter(e=>!e.bonus_items)}var H=s(11728),j=s(98571),w=s(37214);function y(e,t){let{brazeFunction:s}=(0,j.Ay)(),[i,n]=(0,l.useState)(!1),[a,o]=(0,l.useState)(!1),[r,c]=(0,l.useState)([]),[d,u]=(0,l.useState)([]),[C,m]=(0,l.useState)(!1),x=b.find(e=>e.product_skus.some(e=>e.sku===t)),p=[];x&&(p="NMC"===e?x.nmc.customization_groups:x.rmc.customization_groups);let h=v(p);async function f(e,t){let s=r.map((s,i)=>{if(i===e){if(s.selections.find(e=>e.product.id===t.product.id)){let e=s.selections.filter(e=>e.product.id!==t.product.id);return{...s,selections:[...e,t]}}return{...s,selections:[...s.selections,t]}}return s});console.log("updateStepSelection - newSelections:",s),c(s)}async function g(e,t){c(r.map((s,i)=>i===e?{...s,selections:s.selections.filter(e=>e.variant.id!==t.variant.id)}:s))}async function H(t){console.log("submitSelections - orderId:",t),n(!0),o(!0);let i=r.filter(e=>e.selections.length).map(e=>e.selections.map(e=>{var t,s,i,l;return{variantId:null!=(i=null==(t=e.variant)?void 0:t.id)?i:"",variantSku:null!=(l=null==(s=e.variant)?void 0:s.sku)?l:""}})),l=d.map(e=>e.variant.id),a=await fetch("/api/shopify/box-customization",{method:"POST",body:JSON.stringify({orderId:t,selections:i,bonusItemIds:l}),headers:{"Content-Type":"application/json"}}),c=await a.json();if(c.success){if(console.log("selections submitted successfully - responseBody",c),"NMC"===e){let e=await s();e&&(e.logCustomEvent("nmc_customization_completed",{order_id:t}),e.requestImmediateDataFlush())}}else console.log("selections submitted with error - responseBody",c);n(!1)}async function y(t,s){console.log("submitSelections - orderId:",t),n(!0);let i=r[s].selections.map(e=>{var t,s,i,l;return{variantId:null!=(i=null==(t=e.variant)?void 0:t.id)?i:"",variantSku:null!=(l=null==(s=e.variant)?void 0:s.sku)?l:""}}),l=d.map(e=>e.variant.id),a=await fetch("/api/shopify/box-partial-customization",{method:"POST",body:JSON.stringify({orderId:t,selections:i,customizationGroupId:s,customizationType:e,bonusItemIds:l}),headers:{"Content-Type":"application/json"}}),o=await a.json();o.success?console.log("selections submitted successfully - responseBody",o):console.log("selections submitted with error - responseBody",o),c(e=>e.map((e,t)=>t===s?{...e,submitted:!0}:e)),n(!1)}async function _(t){if(0===d.length)return;console.log("submitBonusItems - orderId:",t),n(!0);let s=d.map(e=>e.variant.id),i=await fetch("/api/shopify/box-partial-customization",{method:"POST",body:JSON.stringify({orderId:t,selections:[],customizationGroupId:-1,customizationType:e,bonusItemIds:s}),headers:{"Content-Type":"application/json"}}),l=await i.json();l.success?console.log("bonus items submitted successfully - responseBody",l):console.log("bonus items submitted with error - responseBody",l),n(!1)}async function N(t){console.log("submitSelections - orderId:",t),n(!0),o(!0);let i=await fetch("/api/shopify/box-confirm-customization",{method:"POST",body:JSON.stringify({orderId:t,customizationType:e}),headers:{"Content-Type":"application/json"}}),l=await i.json();if(l.success){if("NMC"===e){let e=await s();e&&(e.logCustomEvent("nmc_customization_completed",{order_id:t}),e.requestImmediateDataFlush())}}else console.log("selections submitted with error - responseBody",l);n(!1)}function M(e){return e.startsWith("gid://")?e:"gid://shopify/Order/".concat(e)}
1async function S(t,s){if(n(!0),s){var i,l;let e=null==(l=t.find(e=>"customization_cycle"===e.key))||null==(i=l.value)?void 0:i.trim();if(t.some(e=>e.key.startsWith("c_group_")||"bonus_item_ids"===e.key)&&!e)return n(!1),{didRestore:!1,hasStaleAttributes:!0};if(e){let t=M(s);if(M(e)!==t)return n(!1),{didRestore:!1,hasStaleAttributes:!0}}}let a=t.filter(e=>e.key.startsWith("c_group_")),o=t.find(e=>"bonus_item_ids"===e.key),d=o?o.value.split(","):[],C=[...new Set([...a.map(e=>e.value.split(",")).flat(),...d])].filter(e=>!!e),m=await (0,w.Vu)(C,e),x=d.map(e=>{let t=m.find(t=>t.sampleVariants.some(t=>t.id===e));if(!t)return null;let s=t.sampleVariants.find(t=>t.id===e);return s?{product:t,variant:s,isBonus:!0}:null}).filter(e=>!!e);return x.length>0&&u(x),c(a.reduce((e,t)=>{let s=t.key.match(/^c_group_(\d+)$/);if(s){let i=parseInt(s[1],10);if(i>=0&&i<e.length){let s=t.value.split(",").map(e=>{let t=m.find(t=>t.sampleVariants.some(t=>t.id===e));if(!t)return null;let s=t.sampleVariants.find(t=>t.id===e);return s?{product:t,variant:s}:null}).filter(e=>!!e);e[i]={...e[i],selections:s,submitted:!0}}}return e},[...r])),n(!1),{didRestore:!0}}0===r.length&&h.length>0&&c(h.map(e=>({selections:[],submitted:!1,maxItems:e.max_items}))),(0,l.useEffect)(()=>{!async function(){if(!C&&p.length)try{n(!0);let t=await L(p,e);t.length>0&&(console.log("Bonus items initialized:",t),u(t)),m(!0)}catch(e){console.error("Error initializing bonus items:",e)}finally{n(!1)}}()},[e,t,C]);let Z={tagText:"Free Gift!",tagColor:"#10b981",tooltipText:void 0};return(x&&(Z="NMC"===e?{tagText:x.nmc.bonus_item_tag_text||"Free Gift!",tagColor:x.nmc.bonus_item_tag_color||"#10b981",tooltipText:x.nmc.bonus_item_tooltip_text||void 0}:{tagText:x.rmc.bonus_item_tag_text||"Free Gift!",tagColor:x.rmc.bonus_item_tag_color||"#10b981",tooltipText:x.rmc.bonus_item_tooltip_text||void 0}),x)?{selections:r,bonusItemSelections:d,bonusItemConfig:Z,addSelectionToStep:f,deleteSelectionToStep:g,submitSelections:H,loading:i,reviewSubmitted:a,submitStepSelections:y,confirmSelections:N,restoreSelectionsFromCustomAttributes:S,submitBonusItems:_}:(console.error("No box configuration found for SKU: ".concat(t)),{selections:r,bonusItemSelections:d,bonusItemConfig:Z,addSelectionToStep:async()=>{},deleteSelectionToStep:async()=>{},submitSelections:async()=>{},loading:i,reviewSubmitted:a,submitStepSelections:async()=>{},confirmSelections:async()=>{},restoreSelectionsFromCustomAttributes:async()=>({didRestore:!1,hasStaleAttributes:!1}),submitBonusItems:async()=>{}})}var _=s(67559),N=s.n(_);function M(e){let{closeModal:t,currentStep:s,setStep:n,currentSelection:a,submitSelections:o,customizationType:r,subscriptionProductSKU:c}=e,[d,u]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=document.getElementById("customizationModal");e&&e.scrollTo(0,0)},[s]),(0,l.useEffect)(()=>{u(!1);let e=setTimeout(()=>{(null==a?void 0:a.selections.length)!==(null==a?void 0:a.maxItems)&&u(!0)},1500);return()=>clearTimeout(e)},[a]);let C=b.find(e=>e.product_skus.some(e=>e.sku===c));if(!C)return console.error("No box configuration found for SKU: ".concat(c)),(0,i.jsx)("div",{children:"Error: No box configuration found"});let m=v("NMC"===r?C.nmc.customization_groups:C.rmc.customization_groups),x=0===s,p=s>=m.length-1;return(0,i.jsxs)("div",{className:"controlBar bg-bbx-glow fixed bottom-0 w-full flex justify-between items-center py-[8px] px-[10px] md:py-[16px] md:px-[30px] text-white z-40",children:[(0,i.jsx)("div",{className:"flex-grow flex justify-start z-50",children:(0,i.jsx)("button",{type:"button",className:"".concat(N().closeBtn," button p-[0px] min-w-fit"),onClick:t,children:"Exit"})}),!p&&(0,i.jsxs)("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-[18px] max-md:text-[16px]",children:[(0,i.jsxs)("p",{className:"hidden md:block",children:[(0,i.jsx)("strong",{children:null==a?void 0:a.selections.length})," of ",null==a?void 0:a.maxItems," ","selected"]}),(0,i.jsxs)("p",{className:"md:hidden font-bold",children:[(0,i.jsx)("strong",{children:null==a?void 0:a.selections.length})," of ",null==a?void 0:a.maxItems]})]}),(0,i.jsxs)("div",{className:"flex-grow flex justify-end gap-[16px]",children:[!x&&!p&&(0,i.jsxs)("div",{className:"".concat("RMC"===r&&(null==a?void 0:a.selections.length)!==(null==a?void 0:a.maxItems)?N().nextBtn:""," relative"),children:[(0,i.jsxs)("button",{type:"button",className:"button button-secondary border-white ".concat("RMC"===r&&(null==a?void 0:a.selections.length)!==(null==a?void 0:a.maxItems)?"disabled":""," py-[6px] md:py-[10px] px-[10px] md:px-[16px] min-w-fit"),onClick:()=>{let e=s-1;e>=0&&n(e)},children:[(0,i.jsx)("svg",{fill:"#ffffff",height:"16",viewBox:"0 -960 960 960",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"m384-109.85-370.15-370.15 370.15-370.15 53.77 53.77-316.39 316.38 316.39 316.38z",transform:"translate(192.5, 0)"})}),(0,i.jsx)("span",{className:"hidden md:block",children:"Previous"})]}),d&&(0,i.jsx)("p",{className:"hidden",children:(null==a?void 0:a.maxItems)===1?"You must select 1 item":"You must select ".concat(null==a?void 0:a.maxItems," items")})]}),!p&&(0,i.jsxs)("div",{className:"".concat((null==a?void 0:a.selections.length)!==(null==a?void 0:a.maxItems)?N().nextBtn:""," relative"),children:[(0,i.jsxs)("button",{type:"button",className:"button button-action light ".concat((null==a?void 0:a.selections.length)!==(null==a?void 0:a.maxItems)?"disabled":""," py-[8px] md:py-[10px] px-[10px] md:px-[16px] min-w-fit"),onClick:()=>{let e=s+1;e<m.length&&n(e)},children:[(0,i.jsx)("span",{className:"hidden md:block",children:"Next"}),(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16px",viewBox:"0 -960 960 960",width:"16px",fill:"#ffffff",children:(0,i.jsx)("path",{d:"m287.62-109.85-53.77-53.77L550.23-480 233.85-796.38l53.77-53.77L657.77-480 287.62-109.85Z"})})]}),d&&(0,i.jsx)("p",{className:"hidden",children:(null==a?void 0:a.maxItems)===1?"You must select 1 item":"You must select ".concat(null==a?void 0:a.maxItems," items")})]}),p&&(0,i.jsxs)("button",{type:"button",className:"button button-action light  py-[6px] md:py-[10px]",onClick:o,children:[(0,i.jsx)("span",{children:"Confirm & Submit"}),(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16px",viewBox:"0 -960 960 960",width:"16px",fill:"#ffffff",children:(0,i.jsx)("path",{d:"m287.62-109.85-53.77-53.77L550.23-480 233.85-796.38l53.77-53.77L657.77-480 287.62-109.85Z"})})]})]})]})}function S(e){let{currentStep:t=2,customizationType:s,subscriptionProductSKU:l}=e,n=b.find(e=>e.product_skus.some(e=>e.sku===l));if(!n)return console.error("No box configuration found for SKU: ".concat(l)),(0,i.jsx)("div",{children:"Error: No box configuration found"});
1let a=v("NMC"===s?n.nmc.customization_groups:n.rmc.customization_groups);return(0,i.jsx)("div",{className:N().stepperWrapper,children:a.map((e,s)=>{let{name:l}=e,n=null;switch(s<t?"completed":s===t?"active":"upcoming"){case"completed":n="".concat(N().completed);break;case"active":n="".concat(N().active);break;case"upcoming":n=""}return(0,i.jsxs)("div",{className:"".concat(N().stepperItem).concat(n?" ".concat(n):""),children:[(0,i.jsx)("div",{className:N().stepCounter}),(0,i.jsx)("div",{className:N().stepName,children:l})]},"customization-progress-".concat(s))})})}var Z=s(78799),k=s(99219);function z(e){var t,s;let{handleCloseDetails:n,product:a,onSelect:o,variant:r,updateVariantSelection:c,errorMessage:d,isSelected:u,isLimitSelections:C,maxSelections:m}=e,[x,p]=(0,l.useState)(null),h=null==x?void 0:x.variants.find(e=>e.id===(null==r?void 0:r.id)),f=a.sampleVariants.some(e=>e.hasStock),b=async()=>{a.handle&&p(await (0,w.M$)(a.handle,!1))};(0,l.useEffect)(()=>{b()},[]);let{description:g="",price:L,images:v,ingredients:H=[],howToUse:j,highlights:y=[],name:_,vendor:N,type:M}=x||{},[S,z]=(0,l.useState)(!1),I=()=>{z(!S)},V=S?H:H.slice(0,7),A=V.length>7;return x?(0,i.jsx)("div",{className:"fixed inset-0 pt-[none] md:pt-[24px] overflow-y-auto flex items-center flex-col z-50 bg-bbx-pearl-light pb-[100px]",tabIndex:-1,role:"dialog","aria-modal":"true",children:(0,i.jsxs)("div",{className:"bg-white w-full max-w-[1000px] relative shadow-bbx-card",children:[(0,i.jsx)("button",{className:"closeButton button absolute right-[-30px] top-[0px] opacity-60 hover:opacity-100",type:"button",onClick:n,children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40px",viewBox:"0 -960 960 960",width:"40px",fill:"#1C1B1F",children:(0,i.jsx)("path",{d:"M256-227.69 227.69-256l224-224-224-224L256-732.31l224 224 224-224L732.31-704l-224 224 224 224L704-227.69l-224-224-224 224Z"})})}),(0,i.jsxs)("div",{className:"grid grid-cols-none gap-[60px] p-[24px] md:p-[60px] md:grid-cols-[2fr,2fr]",children:[(0,i.jsx)("div",{children:v&&v.length>0&&(0,i.jsx)("img",{src:"".concat(v[0].url,"&width=500&height=500"),alt:_})}),(0,i.jsxs)("div",{className:"text-left",children:[N&&(0,i.jsx)("span",{className:"inline-block mb-3 text-sm font-medium",children:N}),(0,i.jsx)("h1",{className:"mb-4 product title",children:_}),(0,i.jsxs)("div",{className:"mb-6 pt-[20px] mt-[20px] border-t-[1px]",children:[(0,i.jsx)("div",{className:"descriptionWrapper ".concat(S?"":"line-clamp-4"),children:S?g:"".concat(g.slice(0,224),"...")}),g.length>224&&(0,i.jsx)("button",{className:"mt-1 button pr-0 pl-0 min-w-0 underline",type:"button",onClick:I,children:S?"Show Less":"Read More"})]}),a.sampleVariants.length>1&&(0,i.jsx)("div",{className:" ".concat(d?"error":""," form-control mb-[18px]"),children:(0,i.jsxs)("div",{className:"w-full select cardSelect",children:[(0,i.jsxs)("select",{value:null!=(s=null==r?void 0:r.id)?s:"",onChange:e=>{c(e.target.value)},name:"variant-selection",id:"variant-selection",children:[(0,i.jsx)("option",{value:"",disabled:!0,children:"-select color-"}),a.sampleVariants.map(e=>(0,i.jsx)("option",{value:e.id,children:e.title},e.id))]}),d&&(0,i.jsx)("p",{className:"text-bbx-red text-sm mt-[1px] absolute left-0 right-0",children:d})]})}),h&&h.weight>0&&(0,i.jsxs)("p",{children:[(0,i.jsx)("span",{className:"font-medium",children:"Weight: "}),(0,i.jsxs)("span",{children:[h.weight,h.weightUnit&&Z.$l[h.weightUnit]]})]}),r&&(null==r||null==(t=r.compareAtPriceV2)?void 0:t.amount)&&(0,i.jsxs)("p",{className:"mb-8 text-[18px] text-bbx-spark font-bold",children:["(",(0,i.jsx)(k.A,{price:null==r?void 0:r.compareAtPriceV2})," Value)"]}),!u&&C?(0,i.jsxs)("button",{className:"border-bbx-red border-2 w-full text-bbx-red pointer-events-none py-2",type:"button",children:[(0,i.jsxs)("strong",{className:"font-bold",children:["You've selected ",m," of ",m," items"]}),(0,i.jsx)("br",{}),"Remove one to add this item"]}):(0,i.jsx)("button",{className:"button button-primary whitespace-nowrap ".concat(!f||u?"disabled":""),type:"button",onClick:()=>{o()&&n()},children:f?u?"Selected":"Select":"Out of Stock"})]})]}),(y&&(null==y?void 0:y.length)||j||V&&V.length>0)&&(0,i.jsxs)("div",{className:"bg-bbx-pearl-lightest p-[24px] md:p-[60px] text-left",children:[y&&(null==y?void 0:y.length)<0&&(0,i.jsxs)("div",{className:"pb-16 mb-16 border-b",children:[(0,i.jsx)("h2",{className:"mb-8 text-3xl title",children:"Highlights"}),(0,i.jsxs)("ul",{className:"flex flex-wrap items-center gap-x-16 gap-y-8",children:[(0,i.jsxs)("li",{className:"flex items-center",children:[(0,i.jsx)("div",{className:"flex items-center justify-center mr-3 text-2xl rounded-full w-14 h-14 bg-bbx-pearl text-bbx-spark",children:(0,i.jsx)("i",{className:"fa-regular fa-sheep","aria-hidden":"true"})}),(0,i.jsx)("span",{className:"font-medium",children:"Not Tested On Animals"})]}),y.map(e=>(0,i.jsxs)("li",{className:"flex items-center",children:[(0,i.jsx)("div",{className:"flex items-center justify-center mr-3 text-2xl rounded-full w-14 h-14 bg-bbx-pearl text-bbx-spark",children:(0,i.jsx)("i",{className:"fa-regular fa-".concat(e.icon)})}),(0,i.jsx)("span",{className:"font-medium",children:e.name})]},"".concat(e.name,"-").concat(e.icon)))]})]}),(j||V&&V.length>0)&&(0,i.jsxs)("div",{className:"grid grid-cols-1 gap-16 md:grid-cols-2",children:[j&&(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{className:"mb-4 text-3xl title",children:"How to use it"}),(0,i.jsx)("div",{className:"max-w-[480px]",children:(0,i.jsx)("p",{children:j})})]}
1),V&&V.length>0&&(0,i.jsxs)("div",{className:"p-8 bg-white",children:[(0,i.jsx)("h2",{className:"mb-4 text-xl font-medium",children:"Ingredients"}),(0,i.jsxs)("div",{children:[(0,i.jsx)("ul",{className:"break-all",children:V.map((e,t)=>(0,i.jsx)("li",{children:e},t))}),A&&(0,i.jsx)("button",{className:"mt-1 button button-link",type:"button",onClick:I,children:S?"Collapse":"View all"})]})]})]})]})]})}):null}function I(e){var t,s;let{currentStep:n,addSelectionToStep:a,deleteSelectionToStep:o,product:r,stepSelection:c}=e,[d,u]=(0,l.useState)(!1),[C,m]=(0,l.useState)(void 0),[x,p]=(0,l.useState)((null==(t=r.images[0])?void 0:t.url)||""),h=void 0!==C?r.sampleVariants[C]:void 0,[f,b]=(0,l.useState)(null),g=r.sampleVariants.some(e=>e.hasStock),L=c.selections.findIndex(e=>e.product.id===r.id),v=L>=0,H=v?r.sampleVariants.findIndex(e=>{var t;return e.id===(null==(t=c.selections[L].variant)?void 0:t.id)}):-1,j=c.selections.length>=c.maxItems;(0,l.useEffect)(()=>{var e,t,s,i,l;if(v&&H>=0){m(H),p((null==(e=r.sampleVariants[H].image)?void 0:e.url)||(null==(t=r.images[0])?void 0:t.url)||"");return}1===r.sampleVariants.length?(m(0),p((null==(s=r.sampleVariants[0].image)?void 0:s.url)||(null==(i=r.images[0])?void 0:i.url)||"")):(m(void 0),p((null==(l=r.images[0])?void 0:l.url)||""))},[r,c.selections.length]);let w=e=>{let t=r.sampleVariants.findIndex(t=>t.id===e);if(t>=0){var s,i;m(t),p((null==(s=r.sampleVariants[t].image)?void 0:s.url)||(null==(i=r.images[0])?void 0:i.url)||""),b(null),v&&a(n,{product:r,variant:r.sampleVariants[t]})}},y=()=>j?(console.warn("Max items reached"),!1):h?(a(n,{product:r,variant:h}),!0):(b("You must pick an option"),!1);return(0,i.jsxs)("li",{className:"w-[calc(50%-1rem)] sm:w-1/3 md:w-1/4 lg:w-1/6 xl:w-1/7 text-center mb-[55px] relative ".concat(v?N().cardActive:""),children:[(0,i.jsxs)("div",{className:"".concat(N().cardContent," bg-white shadow-bbx-card mb-[12px] h-full flex flex-col justify-between"),children:[(0,i.jsxs)("div",{className:"".concat(N().cardActiveHeader," flex flex-col z-10"),children:[(0,i.jsx)("span",{children:"Your Choice"}),(0,i.jsx)("button",{type:"button",className:"absolute right-0",title:"Remove Item",onClick:()=>o(n,{product:r,variant:h}),children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"30px",viewBox:"0 -960 960 960",width:"30px",fill:"#5f6368",children:(0,i.jsx)("path",{d:"M291-253.85 253.85-291l189-189-189-189L291-706.15l189 189 189-189L706.15-669l-189 189 189 189L669-253.85l-189-189-189 189Z"})})})]}),(0,i.jsx)("div",{className:"relative w-full aspect-[1] bg-contain bg-center bg-no-repeat",style:{backgroundImage:"url(".concat(x,"&height=400&width=400)")}}),(0,i.jsxs)("div",{className:"py-[16px] px-[8px] flex flex-col justify-between flex-grow ".concat(g?"":"bg-gray-100"),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h4",{className:"font-bold text-[12px] md:text-[13px]",children:r.vendor}),(0,i.jsx)("p",{className:"mb-[16px] text-[14px] md:text-[14px]",children:(null==h?void 0:h.title)||r.name})]}),r.sampleVariants.length>1&&g&&(0,i.jsx)("div",{className:" ".concat(f?"error":""," form-control mb-[16px]"),children:(0,i.jsxs)("div",{className:"w-full select cardSelect",children:[(0,i.jsxs)("select",{value:void 0!==C?null==(s=r.sampleVariants[C])?void 0:s.id:"",onChange:e=>{w(e.target.value)},name:"variant-selection",id:"variant-selection",children:[(0,i.jsx)("option",{value:"",disabled:!0,children:"-select color-"}),r.sampleVariants.map(e=>(0,i.jsx)("option",{value:e.id,disabled:!e.hasStock,children:e.title},e.id))]}),f&&(0,i.jsx)("p",{className:"text-bbx-red text-sm mt-[1px] absolute left-0 right-0",children:f})]})}),(0,i.jsxs)("div",{className:"".concat(!v&&j?N().selectedBtn:""," relative"),children:[(0,i.jsx)("button",{id:N().selectButton,type:"button",className:"button button-secondary py-[6px] px-[30px] ".concat(!g||j?"disabled":""),onClick:y,children:g?"Select":"Out of Stock"}),(0,i.jsx)("button",{id:N().selectedButton,type:"button",className:"button py-[6px] px-[30px] disabled",children:"Selected"}),(0,i.jsxs)("p",{className:"hidden",children:[(0,i.jsxs)("strong",{children:["You've selected ",c.selections.length," of ",c.maxItems," ","
1items"]}),(0,i.jsx)("br",{}),"Remove one to add this item"]})]})]})]}),(0,i.jsx)("button",{type:"button",className:"button button-link text-bbx-style absolute m-auto left-0 right-0",onClick:()=>{u(!d)},children:"Details"}),d&&(0,i.jsx)(z,{handleCloseDetails:()=>u(!1),product:r,variant:h,onSelect:y,updateVariantSelection:w,errorMessage:f,isSelected:v,isLimitSelections:j,maxSelections:c.maxItems})]})}function V(e){let{productSamples:t,currentStep:s,selections:l,addSelectionToStep:n,deleteSelectionToStep:a}=e,o=l[s];return(0,i.jsx)("div",{className:"flex justify-center w-full",children:(0,i.jsx)("ul",{className:"flex flex-wrap justify-center gap-4 w-full",children:t.map((e,t)=>(0,i.jsx)(I,{currentStep:s,stepSelection:o,product:e,addSelectionToStep:n,deleteSelectionToStep:a},t))})})}function A(e){let{classes:t=""}=e;return(0,i.jsxs)("svg",{width:"192",height:"115",viewBox:"0 0 192 115",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M0.539062 59.5L42.5391 1H190.289L191.461 49.1592L153.539 114.5H0.539062V59.5Z",fill:"#F98A79"}),(0,i.jsx)("path",{d:"M0.539062 59.5L42.5391 1C42.5391 1 180.539 1 190.289 1M0.539062 59.5V114.5H153.539M0.539062 59.5H153.539M153.539 114.5L191.461 49.1592L190.289 1M153.539 114.5V59.5M190.289 1L153.539 59.5",stroke:"black",strokeOpacity:"0.2"}),(0,i.jsxs)("g",{clipPath:"url(#clip0_54_16665)",children:[(0,i.jsx)("path",{d:"M126.284 85.3575L131.617 81.0432L132.275 80.5176H131.222H128.818H128.588L128.423 80.6271L124.473 83.8683L120.49 80.6271L120.325 80.5176H120.095H117.692H116.671L117.329 81.0432L122.629 85.3575L117 89.9345L116.342 90.4601H117.395H119.765H120.029L120.16 90.3506L124.473 86.8466L128.753 90.3506L128.917 90.4601H129.148H131.551H132.571L131.913 89.9345L126.284 85.3575Z",fill:"white"}),(0,i.jsx)("path",{d:"M98.4325 83.4741C98.4325 81.8316 96.4244 80.5176 93.9883 80.5176H85.8571H85.3633V80.8461V90.1536V90.482H85.8571H94.1858C96.6549 90.482 98.6301 89.1461 98.6301 87.5255C98.6301 86.7152 98.1362 85.9706 97.3132 85.4232C98.0045 84.8976 98.4325 84.2187 98.4325 83.4741ZM88.1944 82.401H93.9553C94.8442 82.401 95.5684 82.8828 95.5684 83.4741C95.5684 84.0654 94.8442 84.5472 93.9553 84.5472H88.1944V82.401ZM94.1858 88.5986H88.1944V86.4524H94.1858C95.0747 86.4524 95.7989 86.9342 95.7989 87.5255C95.7989 88.1168 95.0747 88.5986 94.1858 88.5986Z",fill:"white"}),(0,i.jsx)("path",{d:"M31.1442 80.5176H30.6504V80.8461V90.1317V90.4601H31.1442H33.0206H33.5144V90.1317V80.8461V80.5176H33.0206H31.1442Z",fill:"white"}),(0,i.jsx)("path",{d:"M27.3583 83.4741C27.3583 81.8316 25.3831 80.5176 22.9141 80.5176H14.7829H14.2891V80.8461V90.1536V90.482H14.7829H23.1116C25.5806 90.482 27.5558 89.1461 27.5558 87.5255C27.5558 86.7152 27.062 85.9706 26.239 85.4232C26.9633 84.8976 27.3583 84.2187 27.3583 83.4741ZM17.1531 82.401H22.9141C23.8029 82.401 24.5272 82.8828 24.5272 83.4741C24.5272 84.0654 23.8029 84.5472 22.9141 84.5472H17.1531V82.401ZM23.1445 88.5767H17.1531V86.4306H23.1445C24.0334 86.4306 24.7576 86.9123 24.7576 87.5036C24.7576 88.0949 24.0334 88.5767 23.1445 88.5767Z",fill:"white"}),(0,i.jsx)("path",{d:"M45.1025 86.4306C47.5715 86.2772 49.3492 85.0947 49.3492 83.4741C49.3492 81.8316 47.341 80.5176 44.9049 80.5176H37.5309H37.0371V80.8461V90.1536V90.482H37.5309H39.3744H39.8682V90.1536V86.4306H41.4813L46.1559 90.3506L46.3206 90.482H46.551H48.9212H49.9418L49.3162 89.9564L45.1025 86.4306ZM39.8682 84.5472V82.401H44.9049C45.7938 82.401 46.518 82.8828 46.518 83.4741C46.518 84.0654 45.7938 84.5472 44.9049 84.5472H39.8682Z",fill:"white"}),(0,i.jsx)("path",{d:"M58.8626 82.1818C60.5087 82.1818 62.0559 82.7293 62.9777 83.6272L63.5043 84.1309L63.7678 84.3937L64.1628 84.2185L65.71 83.5177L66.1051 83.3425L65.8416 83.0797L65.315 82.576C63.8664 81.1525 61.4303 80.3203 58.8626 80.3203C54.5502 80.3203 51.0605 82.6636 51.0605 85.5106C51.0605 88.3795 54.5831 90.7009 58.8626 90.7009C61.4303 90.7009 63.8664 89.8468 65.315 88.4452L65.71 88.051C65.71 88.051 65.71 88.0291 65.7429 88.0291L65.8416 87.9196C65.9404 87.832 66.0392 87.7444 66.1051 87.6568C65.9075 87.5692 65.71 87.4816 65.5124 87.394L64.1628 86.7808L63.7678 86.6056L63.5043 86.8684L62.9777 87.3721C62.0559 88.27 60.5087 88.8174 58.8626 88.8174C56.
11303 88.8174 53.8917 87.3283 53.8917 85.5106C53.8917 83.671 56.1303 82.1818 58.8626 82.1818Z",fill:"white"}),(0,i.jsx)("path",{d:"M79.4069 80.5176H78.913V80.8461V84.7224H71.4073V80.8461V80.5176H70.9135H69.07H68.5762V80.8461V90.1317V90.4601H69.07H70.9135H71.4073V90.1317V86.6057H78.913V90.1317V90.4601H79.4069H81.2833H81.7771V90.1317V80.8461V80.5176H81.2833H79.4069Z",fill:"white"}),(0,i.jsx)("path",{d:"M108.835 80.2988C104.523 80.2988 101.033 82.6421 101.033 85.4891C101.033 88.358 104.556 90.6794 108.835 90.6794C113.148 90.6794 116.67 88.3361 116.67 85.4891C116.67 82.6202 113.148 80.2988 108.835 80.2988ZM108.835 88.796C106.103 88.796 103.864 87.3068 103.864 85.4891C103.864 83.6714 106.103 82.1822 108.835 82.1822C111.568 82.1822 113.806 83.6714 113.806 85.4891C113.806 87.3068 111.6 88.796 108.835 88.796Z",fill:"white"}),(0,i.jsx)("path",{d:"M138.727 82.4629L134.164 85.498L138.727 88.5332L143.289 85.498L138.727 82.4629Z",fill:"white"}),(0,i.jsx)("path",{d:"M16.1489 81.5579C16.1428 81.5247 16.1182 81.4989 16.0749 81.4806C16.0317 81.4622 15.9787 81.453 15.9159 81.453C15.87 81.453 15.8298 81.4578 15.7954 81.4675C15.7613 81.4771 15.7346 81.4903 15.7154 81.5071C15.6965 81.5239 15.687 81.543 15.687 81.5644C15.687 81.5824 15.6936 81.5978 15.7068 81.6107C15.7203 81.6233 15.7375 81.6339 15.7584 81.6424C15.7794 81.6507 15.8013 81.6576 15.8243 81.6631C15.8472 81.6683 15.8683 81.6726 15.8876 81.6759L15.9929 81.6942C16.0199 81.6988 16.05 81.7051 16.083 81.7132C16.1165 81.7213 16.1484 81.7323 16.1788 81.7463C16.2095 81.7601 16.2348 81.7778 16.2547 81.7994C16.2747 81.821 16.2846 81.8476 16.2846 81.879C16.2846 81.9153 16.2699 81.9481 16.2406 81.9773C16.2115 82.0066 16.169 82.0299 16.1129 82.0471C16.0572 82.0644 15.9895 82.073 15.9098 82.073C15.8356 82.073 15.7713 82.0653 15.7169 82.0498C15.6629 82.0343 15.6203 82.0126 15.5893 81.9849C15.5585 81.9571 15.5412 81.9249 15.5371 81.8882H15.6668C15.6701 81.9136 15.6833 81.9345 15.7063 81.9511C15.7296 81.9675 15.7589 81.9797 15.7944 81.9878C15.8302 81.9957 15.8687 81.9996 15.9098 81.9996C15.9578 81.9996 16.0008 81.9946 16.039 81.9845C16.0771 81.9743 16.1074 81.9601 16.1296 81.942C16.1519 81.9236 16.1631 81.9022 16.1631 81.8777C16.1631 81.8554 16.1534 81.8373 16.1342 81.8233C16.115 81.8093 16.0896 81.798 16.0582 81.7892C16.0268 81.7805 15.9929 81.7729 15.9564 81.7663L15.8288 81.7427C15.7478 81.7276 15.6836 81.7061 15.6364 81.6782C15.5891 81.6502 15.5655 81.6136 15.5655 81.5684C15.5655 81.5308 15.5812 81.498 15.6126 81.4701C15.6443 81.4419 15.6868 81.42 15.7402 81.4045C15.7939 81.3888 15.8538 81.3809 15.92 81.3809C15.9868 81.3809 16.0463 81.3887 16.0982 81.4042C16.1502 81.4195 16.1914 81.4405 16.2218 81.4671C16.2525 81.4938 16.2687 81.524 16.2704 81.5579H16.1489ZM16.8011 82.0717C16.7261 82.0717 16.6614 82.061 16.6071 82.0396C16.5531 82.018 16.5114 81.9878 16.482 81.9492C16.453 81.9103 16.4384 81.8651 16.4384 81.8135C16.4384 81.7619 16.453 81.7165 16.482 81.6772C16.5114 81.6376 16.5522 81.6068 16.6046 81.5848C16.6572 81.5625 16.7187 81.5513 16.7889 81.5513C16.8294 81.5513 16.8694 81.5557 16.9089 81.5644C16.9484 81.5732 16.9844 81.5874 17.0168 81.607C17.0492 81.6265 17.075 81.6523 17.0943 81.6844C17.1135 81.7165 17.1231 81.756 17.1231 81.803V81.8358H16.5235V81.7689H17.0016C17.0016 81.7405 16.9928 81.7152 16.9753 81.6929C16.9581 81.6706 16.9334 81.653 16.9013 81.6401C16.8696 81.6273 16.8321 81.6208 16.7889 81.6208C16.7413 81.6208 16.7001 81.6285 16.6653 81.6437C16.6309 81.6588 16.6044 81.6785 16.5858 81.7027C16.5672 81.727 16.558 81.753 16.558 81.7807V81.8253C16.558 81.8633 16.5681 81.8955 16.5883 81.922C16.609 81.9482 16.6375 81.9682 16.6739 81.9819C16.7104 81.9955 16.7528 82.0023 16.8011 82.0023C16.8325 82.0023 16.8608 81.9994 16.8861 81.9937C16.9118 81.9878 16.9339 81.9791 16.9525 81.9675C16.971 81.9557 16.9854 81.9411 16.9955 81.9236L17.111 81.9446C17.0988 81.9699 17.0784 81.9922 17.0497 82.0114C17.021 82.0304 16.9856 82.0453 16.9434 82.056C16.9012 82.0665 16.8537 82.0717 16.8011 82.0717ZM17.621 82.0717C17.548 82.0717 17.4853 82.0606 17.4326 82.0383C17.3799 82.016 17.3394 81.9853 17.311 81.9462C17.2827 81.9071 17.2685 81.8624 17.2685 81.8122C17.2685 81.7611 17.283 81.716 17.312 81.6768C17.3414 81.6375 17.3823 81.6068 17.4346 81.5848C17.4873 81.5625 17.5487 81.5513 17.6189 81.5513C17.6736 81.5513 17.7229 81.5579 17.7668 81.571C17.8107 81.5841 17.8467 81.6025 17.8747 81.6261C17.9027 81.6496 17.9201 81.6772 17.9269 81.7086H17.8073C17.7982 81.6857 17.778 81.6654 17.7466 81.6477C17.7155 81.6298 17.6736 81.6208 17.621 81.6208C17.5744 81.6208 17.5335 81.6287 17.4984 81.6444C17.4636 81.6599 17.4365 81.6819 17.4169 81.7103C17.3976 81.7384 17.388 81.7716 17.388 81.8096C17.388 81.8484 17.3975 81.8823 17.4164 81.9111C17.4356 81.94 17.4626 81.9624 17.4974 81.9783C17.5325 81.9943 17.5737 82.0023 17.621 82.0023C17.652 82.0023 17.6802 81.9988 17.7056 81.9918C17.7309 81.9848 17.7523 81.9747 17.7699 81.9616C17.7874 81.9485 17.7999 81.9328 17.8073 81.9144H17.9269C17.9201 81.9441 17.9034 81.9709 17.8767 81.9947C17.8504 82.0183 17.8154 82.0371 17.7719 82.0511C17.7287 82.0648 17.6784 82.0717 17.621 82.0717ZM18.4399 81.5579V81.6234H18.0368V81.5579H18.4399ZM18.1543 81.4373H18.2738V81.917C18.2738 81.9389 18.2787 81.9553 18.2885 81.9662C18.2986 81.9769 18.3114 81.9841 18.327 81.9878C18.3428 81.9913 18.3595 81.9931 18.3771 81.9931C18.3903 81.9931 18.4011 81.9926 18.4095 81.9918C18.4179 81.9907 18.4247 81.9898 18.4298 81.9891L18.4541 82.0586C18.446 82.0606 18.4347 82.0625 18.4201 82.0645C18.4056 82.0667 18.3872 82.0678 18.3649 82.0678C18.3312 82.0678 18.2981 82.0631 18.2657 82.0537C18.2336 82.0443 18.2069 82.03 18.1857 82.0108C18.1647 81.9915 18.1543 81.9673 18.1543 81.938V81.4373ZM18.6197 82.0612V81.5579H18.7392V82.0612H18.6197ZM18.6804 81.474C18.6571 81.474 18.6371 81.4689 18.6202 81.4586C18.6036 81.4483 18.5954 81.436 18.5954 81.4216C18.5954 81.4072 18.6036 81.3948 18.6202 81.3845C18.6371 81.3743 18.6571 81.3691 18.6804 81.3691C18.7037 81.3691 18.7237 81.3743 18.7402 81.3845C18.7571 81.3948 18.7655 81.4072 18.7655 81.4216C18.7655 81.436 18.7571 81.4483 18.7402 81.4586C18.7237 81.4689 18.7037 81.474 18.6804 81.474ZM19.2741 82.0717C19.2039 82.0717 19.1423 82.0609 19.0893 82.0393C19.0366 82.0177 18.9954 81.9874 18.9657 81.9485C18.9363 81.9096 18.9216 81.8642 18.9216 81.8122C18.9216 81.7597 18.9363 81.714 18.9657 81.6749C18.9954 81.6358 19.0366 81.6054 19.0893 81.5838C19.1423 81.5622 19.2039 81.5513 19.2741 81.5513C19.3443 81.5513 19.4058 81.5622 19.4585 81.5838C19.5115 81.6054 19.5527 81.6358 19.582 81.6749C19.6117 81.714 19.6266 81.7597 19.6266 81.8122C19.6266 81.8642 19.6117 81.9096 19.582 81.9485C19.5527 81.9874 19.5115 82.0177 19.4585 82.0393C19.4058 82.0609 19.3443 82.0717 19.2741 82.0717ZM19.2741 82.0023C19.3275 82.0023 19.3714 81.9934 19.4058 81.9757C19.4402 81.958 19.4657 81.9347 19.4823 81.9059C19.4988 81.8771 19.5071 81.8458 19.5071 81.8122C19.5071 81.7785 19.4988 81.7472 19.4823 81.7181C19.4657 81.6891 19.4402 81.6656 19.4058 81.6477C19.3714 81.6298 19.3275 81.6208 19.2741 81.6208C19.2208 81.6208 19.1769 81.6298 19.1424 81.6477C19.108 81.6656 19.0825 81.6891 19.066 81.7181C19.0494 81.7472 19.0412 81.7785 19.0412 81.8122C19.0412 81.8458 19.0494 81.8771 19.066 81.9059C19.0825 81.9347 19.108 81.958 19.1424 81.9757C19.1769 81.9934 19.2208 82.0023 19.2741 82.0023ZM19.9286 81.7584V82.0612H19.809V81.5579H19.9245V81.6365H19.9346C19.9529 81.611 19.9806 81.5904 20.0177 81.5749C20.0548 81.5592 20.1028 81.5513 20.1615 81.5513C20.2142 81.5513 20.2603 81.5583 20.2998 81.5723C20.3393 81.5861 20.37 81.607 20.392 81.6352C20.4139 81.6632 20.4249 81.6986 20.4249 81.7414V82.0612H20.3054V81.7466C20.3054 81.7071 20.2895 81.6763 20.2577 81.6542C20.226 81.632 20.1825 81.6208 20.1271 81.6208C20.0889 81.6208 20.0548 81.6262 20.0248 81.6369C19.9951 81.6476 19.9716 81.6632 19.9544 81.6837C19.9372 81.7043 19.9286 81.7292 19.9286 81.7584Z",fill:"white"})]}),(0,i.jsxs)("g",{clipPath:"url(#clip1_54_16665)",children:[(0,i.jsx)("path",{d:"M156.443 9.67324L163.82 6.24569L164.727 5.82812H163.721H161.427H161.207L160.992 5.91512L155.503 8.49013
1L153.416 5.91512L153.317 5.82812H153.097H150.802H149.828L150.178 6.24569L152.954 9.67324L145.155 13.3096L144.248 13.7271H145.253H147.517H147.768L147.952 13.6401L153.925 10.8563L156.156 13.6401L156.255 13.7271H156.475H158.77H159.744L159.394 13.3096L156.443 9.67324Z",fill:"white"}),(0,i.jsx)("path",{d:"M130.848 8.17695C131.718 6.87205 130.497 5.82812 128.171 5.82812H120.407H119.936L119.762 6.08911L114.832 13.4836L114.658 13.7445H115.129H123.082C125.439 13.7445 128.033 12.6832 128.891 11.3957C129.32 10.752 129.243 10.1604 128.747 9.72543C129.686 9.30786 130.454 8.7685 130.848 8.17695ZM121.641 7.32441H127.142C127.991 7.32441 128.427 7.70718 128.114 8.17695C127.801 8.64672 126.854 9.02949 126.005 9.02949H120.505L121.641 7.32441ZM124.079 12.2482H118.359L119.495 10.5432H125.216C126.065 10.5432 126.501 10.9259 126.188 11.3957C125.875 11.8655 124.928 12.2482 124.079 12.2482Z",fill:"white"}),(0,i.jsx)("path",{d:"M68.1649 5.82812H67.6934L67.5194 6.08911L62.6013 13.4662L62.4274 13.7271H62.8989H64.6905H65.1621L65.336 13.4662L70.2541 6.08911L70.428 5.82812H69.9565H68.1649Z",fill:"white"}),(0,i.jsx)("path",{d:"M62.9833 8.17695C63.8532 6.87205 62.6632 5.82812 60.3057 5.82812H52.5418H52.0703L51.8963 6.08911L46.9667 13.4836L46.7927 13.7445H47.2642H55.2167C57.5742 13.7445 60.1677 12.6832 61.0261 11.3957C61.4552 10.752 61.3781 10.1604 60.8823 9.72543C61.8522 9.30786 62.5889 8.7685 62.9833 8.17695ZM53.8074 7.32441H59.3082C60.1569 7.32441 60.5932 7.70718 60.2801 8.17695C59.9669 8.64672 59.0202 9.02949 58.1715 9.02949H52.6707L53.8074 7.32441ZM56.2573 12.2308H50.5365L51.6732 10.5258H57.394C58.2427 10.5258 58.679 10.9085 58.3659 11.3783C58.0527 11.8481 57.106 12.2308 56.2573 12.2308Z",fill:"white"}),(0,i.jsx)("path",{d:"M78.3623 10.5258C80.801 10.404 83.1246 9.46445 83.983 8.17695C84.8529 6.87205 83.6314 5.82812 81.3054 5.82812H74.2645H73.793L73.619 6.08911L68.6893 13.4836L68.5154 13.7445H68.9869H70.7471H71.2186L71.3926 13.4836L73.3644 10.5258H74.9047L77.2919 13.6401L77.3795 13.7445H77.5995H79.8626H80.8371L80.5182 13.3269L78.3623 10.5258ZM74.362 9.02949L75.4987 7.32441H80.3079C81.1566 7.32441 81.5929 7.70718 81.2797 8.17695C80.9665 8.64672 80.0199 9.02949 79.1712 9.02949H74.362Z",fill:"white"}),(0,i.jsx)("path",{d:"M93.7489 7.14881C95.3205 7.14881 96.5079 7.58378 96.9125 8.29713L97.1486 8.69729L97.2609 8.90608L97.7309 8.76689L99.5794 8.21013L100.049 8.07094L99.937 7.86216L99.701 7.46198C99.0718 6.33107 97.1865 5.66992 94.7348 5.66992C90.6171 5.66992 86.044 7.53158 84.5362 9.79341C83.0167 12.0726 85.1506 13.9169 89.2368 13.9169C91.6885 13.9169 94.4669 13.2384 96.5924 12.1248L97.1784 11.8117C97.1784 11.8117 97.19 11.7943 97.2214 11.7943L97.3736 11.7073C97.5144 11.6377 97.6551 11.5681 97.7644 11.4985C97.6221 11.4289 97.48 11.3593 97.3377 11.2897L96.3738 10.8025L96.0894 10.6633L95.6987 10.8721L94.9291 11.2723C93.5733 11.9856 91.806 12.4206 90.2344 12.4206C87.6255 12.4206 86.2767 11.2375 87.2394 9.79341C88.2137 8.33192 91.14 7.14881 93.7489 7.14881Z",fill:"white"}),(0,i.jsx)("path",{d:"M114.248 5.82812H113.776L113.602 6.08911L111.549 9.16867H104.382L106.436 6.08911L106.609 5.82812H106.138H104.378H103.906L103.732 6.08911L98.8142 13.4662L98.6403 13.7271H99.1118H100.872H101.344L101.517 13.4662L103.385 10.665H110.552L108.684 13.4662L108.51 13.7271H108.982H110.773H111.245L111.419 13.4662L116.337 6.08911L116.511 5.82812H116.039H114.248Z",fill:"white"}),(0,i.jsx)("path",{d:"M142.463 5.65234C138.346 5.65234 133.773 7.51401 132.265 9.77584C130.745 12.0551 132.879 13.8993 136.965 13.8993C141.083 13.8993 145.687 12.0377 147.195 9.77584C148.715 7.4966 146.581 5.65234 142.463 5.65234ZM137.963 12.403C135.354 12.403 134.005 11.2199 134.968 9.77584C135.931 8.33174 138.857 7.14863 141.466 7.14863C144.075 7.14863 145.423 8.33174 144.461 9.77584C143.498 11.2199 140.603 12.403 137.963 12.403Z",fill:"white"}),(0,i.jsx)("path",{d:"M169.856 7.37305L163.892 9.78436L166.641 12.1957L172.605 9.78436L169.856 7.37305Z",fill:"white"}),(0,i.jsx)("path",{d:"M53.2967 6.65386C53.3085 6.62748 53.2986 6.607 53.267 6.59242C53.2355 6.57785 53.1897 6.57055 53.1298 6.57055C53.0859 6.57055 53.045 6.57437 53.007 6.58201C52.9694 6.58965 52.9369 6.60015 52.9096 6.61351C52.8827 6.62688 52.8635 6.64206 52.8522 6.65907C52.8427 6.6733 52.8408 6.68554 52.8466 6.69578C52.8528 6.70584 52.8636 6.71426 52.8791 6.72103C52.8947 6.72763 52.912 6.73309 52.931 6.73743C52.9501 6.74
116 52.968 6.74498 52.9847 6.74758L53.0755 6.76217C53.0989 6.76581 53.1242 6.77084 53.1515 6.77727C53.1792 6.78369 53.2038 6.79245 53.2254 6.80356C53.2474 6.8145 53.2623 6.82855 53.2698 6.84574C53.2774 6.86292 53.2728 6.884 53.2562 6.909C53.237 6.93781 53.2056 6.96384 53.162 6.9871C53.1188 7.01036 53.0659 7.02884 53.0032 7.04255C52.9409 7.05627 52.8717 7.06312 52.7956 7.06312C52.7247 7.06312 52.6674 7.05696 52.6237 7.04464C52.5803 7.03232 52.5511 7.01513 52.5362 6.99309C52.5215 6.97105 52.522 6.94545 52.5376 6.91629H52.6614C52.6512 6.93642 52.6526 6.95308 52.6658 6.96627C52.6793 6.97929 52.7009 6.98901 52.7305 6.99543C52.7605 7.00168 52.7951 7.0048 52.8345 7.0048C52.8802 7.0048 52.924 7.00081 52.9658 6.99283C53.0076 6.98467 53.044 6.97339 53.0749 6.95898C53.1059 6.94441 53.1279 6.9274 53.1408 6.90796C53.1526 6.89026 53.153 6.87585 53.1421 6.86474C53.1311 6.85363 53.1129 6.84461 53.0876 6.83766C53.0622 6.83072 53.0339 6.82465 53.0025 6.81944L52.8932 6.8007C52.8238 6.78872 52.7739 6.77162 52.7436 6.74941C52.7133 6.7272 52.7101 6.69812 52.7341 6.66219C52.754 6.63234 52.7863 6.60631 52.8311 6.58409C52.8763 
16.5617 52.9285 6.54435 52.9877 6.53202C53.0473 6.51953 53.1086 6.51328 53.1718 6.51328C53.2357 6.51328 53.2883 6.51944 53.3297 6.53176C53.3713 6.54391 53.3995 6.56058 53.4144 6.58175C53.4296 6.60292 53.429 6.62696 53.4127 6.65386H53.2967ZM53.6472 7.06208C53.5757 7.06208 53.5196 7.05358 53.479 7.03657C53.4389 7.01939 53.4151 6.99543 53.4075 6.96472C53.4004 6.93382 53.4105 6.89789 53.4378 6.85693C53.4651 6.81597 53.503 6.77987 53.5516 6.74863C53.6005 6.71721 53.6559 6.69274 53.7175 6.67521C53.7796 6.65751 53.8442 6.64866 53.9112 6.64866C53.9499 6.64866 53.9858 6.65213 54.0189 6.65907C54.052 6.66601 54.0788 6.6773 54.0993 6.69291C54.12 6.70836 54.131 6.72884 54.1324 6.75435C54.1337 6.77987 54.122 6.81129 54.0971 6.8486L54.0797 6.87463H53.5072L53.5426 6.82152H53.9991C54.0141 6.79896 54.0192 6.77883 54.0142 6.76113C54.0096 6.74342 53.9954 6.72945 53.9716 6.71921C53.9481 6.70897 53.9157 6.70385 53.8745 6.70385C53.829 6.70385 53.7856 6.70992 53.7443 6.72207C53.7034 6.73405 53.6677 6.74967 53.6372 6.76894C53.6066 6.7882 53.5839 6.80885 53.5692 6.83089L53.5456 6.8663C53.5255 6.8965 53.5181 6.9221 53.5235 6.9431C53.5292 6.96393 53.5459 6.97981 53.5734 6.99075C53.6011 7.0015 53.6379 7.00689 53.684 7.00689C53.714 7.00689 53.7426 7.00463 53.7698 7.00012C53.7974 6.99543 53.8232 6.98849 53.847 6.97929C53.871 6.96992 53.8924 6.95829 53.9114 6.94441L54.0105 6.96107C53.9855 6.9812 53.9542 6.99891 53.9166 7.01417C53.8791 7.02928 53.8374 7.04108 53.7914 7.04958C53.7456 7.05792 53.6975 7.06208 53.6472 7.06208ZM54.4301 7.06208C54.3605 7.06208 54.3064 7.05323 54.2679 7.03553C54.2295 7.01782 54.207 6.99344 54.2007 6.96237C54.1943 6.9313 54.2044 6.89581 54.231 6.85589C54.2581 6.81528 54.2959 6.77943 54.3443 6.74837C54.3932 6.71713 54.4484 6.69274 54.5101 6.67521C54.5722 6.65751 54.6368 6.64866 54.7038 6.64866C54.756 6.64866 54.7996 6.65386 54.8346 6.66427C54.8696 6.67469 54.8942 6.68927 54.9084 6.70801C54.9227 6.72676 54.9247 6.74863 54.9145 6.77362H54.8004C54.8038 6.75539 54.7952 6.73925 54.7746 6.7252C54.7545 6.71097 54.7192 6.70385 54.6689 6.70385C54.6245 6.70385 54.5813 6.71009 54.5394 6.72259C54.498 6.73491 54.4604 6.75236 54.4267 6.77492C54.3934 6.79731 54.3667 6.82361 54.3465 6.85381C54.3259 6.8847 54.317 6.9116 54.3198 6.93451C54.3229 6.95742 54.3368 6.97521 54.3616 6.98788C54.3867 7.00055 54.4218 7.00689 54.4669 7.00689C54.4966 7.00689 54.5253 7.00411 54.5532 6.99856C54.5811 6.993 54.6069 6.98502 54.6306 6.97461C54.6543 6.96419 54.6746 6.95169 54.6914 6.93712H54.8055C54.7833 6.96072 54.7532 6.98198 54.7151 7.0009C54.6775 7.01965 54.6341 7.03457 54.5852 7.04568C54.5366 7.05662 54.4849 7.06208 54.4301 7.06208ZM55.4842 6.65386L55.4495 6.70593H55.0646L55.0993 6.65386H55.4842ZM55.2753 6.55806H55.3894L55.1354 6.9392C55.1238 6.95656 55.1198 6.96957 55.1233 6.97825C55.1273 6.98676 55.1358 6.99248 55.1486 6.99543C55.1619 6.99821 55.177 6.9996 55.1937 6.9996C55.2063 6.9996 55.2169 6.99925 55.2254 6.99856C55.234 6.99769 55.2409 6.99699 55.2461 6.99647L55.2325 7.05166C55.2237 7.05323 55.2119 7.05479 55.197 7.05636C55.182 7.05809 55.1638 7.05895 55.1426 7.05895C55.1103 7.05895 55.0812 7.05522 55.0552 7.04776C55.0296 7.0403 55.0117 7.02893 55.0016 7.01365C54.9918 6.99839 54.9946 6.97912 55.0101 6.95586L55.2753 6.55806ZM55.3893 7.05375L55.6559 6.65386H55.77L55.5034 7.05375H55.3893ZM55.7583 6.58722C55.7361 6.58722 55.7196 6.58314 55.7089 6.57498C55.6986 6.56682 55.6972 6.55702 55.7048 6.54556C55.7125 6.5341 55.7269 6.5243 55.7481 6.51614C55.7697 6.50799 55.7916 6.50391 55.8138 6.50391C55.8361 6.50391 55.8524 6.50799 55.8628 6.51614C55.8734 6.5243 55.875 6.5341 55.8673 6.54556C55.8597 6.55702 55.8451 6.56682 55.8235 6.57498C55.8023 6.58314 55.7805 6.58722 55.7583 6.58722ZM56.0086 7.06208C55.9415 7.06208 55.8884 7.05349 55.8493 7.03631C55.8104 7.01913 55.7871 6.99509 55.7794 6.96419C55.7719 6.9333 55.782 6.89719 55.8095 6.85589C55.8373 6.81423 55.8755 6.77787 55.9243 6.7468C55.9734 6.71574 56.0288 6.69161 56.0905 6.67443C56.1526 6.65725 56.2172 6.64866 56.2842 6.64866C56.3513 6.64866 56.4042 6.65725 56.443 6.67443C56.4822 6.69161 56.5054 6.71574 56.5128 6.7468C56.5204 6.77787 56.5104 6.81423 56.4826 6.85589C56.4551 6.89719 56.4168 6.9333 56.3678 6.96419C56.3192 6.99509 56.2638 7.01913 56.2018 7.03631C56.14 7.05349 56.0756 7.06208 56.0086 7.06208ZM56.0454 7.00689C56.0963 7.00689 56.1429 6.99986 56.1852 6.9858C56.2274 6.97174 56.2641 6.95326 56.2952 6.93034C56.3262 6.90744 56.3507 6.88262 56.3685 6.85589C56.3863 6.82916 56.395 6.80425 56.3946 6.78117C56.3942 6.75809 56.3823 6.73943 56.3589 6.7252C56.3355 6.71097 56.2983 6.70385 56.2474 6.70385C56.1965 6.70385 56.1498 6.71097 56.1074 6.7252C56.0651 6.73943 56.0283 6.75809 55.9971 6.78117C55.9659 6.80425 55.9414 6.82916 55.9236 6.85589C55.9058 6.88262 55.8971 6.90744 55.8977 6.93034C55.8982 6.95326 55.9102 6.97174 55.9337 6.9858C55.9572 6.99986 55.9944 7.00689 56.0454 7.00689ZM56.7994 6.81319L56.639 7.05375H56.5249L56.7915 6.65386H56.9017L56.8601 6.71635H56.8698C56.9
1007 6.69604 56.938 6.67972 56.9817 6.6674C57.0255 6.6549 57.0754 6.64866 57.1315 6.64866C57.1818 6.64866 57.2221 6.65421 57.2524 6.66532C57.2828 6.67625 57.3011 6.69291 57.3071 6.71531C57.3133 6.73752 57.305 6.76564 57.2823 6.79966L57.1129 7.05375H56.9988L57.1654 6.80382C57.1864 6.7724 57.1875 6.74794 57.1689 6.7304C57.1504 6.7127 57.1147 6.70385 57.0618 6.70385C57.0254 6.70385 56.99 6.7081 56.9557 6.71661C56.9216 6.72511 56.8909 6.73752 56.8636 6.75384C56.8363 6.77015 56.8149 6.78994 56.7994 6.81319Z",fill:"white"})]}),(0,i.jsxs)("g",{clipPath:"url(#clip2_54_16665)",children:[(0,i.jsx)("path",{d:"M149.558 20.0014L156.935 16.5738L157.842 16.1562H156.837H154.542H154.322L154.107 16.2432L148.618 18.8183L146.532 16.2432L146.432 16.1562H146.212H143.918H142.943L143.293 16.5738L146.069 20.0014L138.27 23.6377L137.363 24.0552H138.369H140.632H140.883L141.067 23.9683L147.041 21.1845L149.271 23.9683L149.37 24.0552H149.59H151.885H152.859L152.509 23.6377L149.558 20.0014Z",fill:"white"}),(0,i.jsx)("path",{d:"M123.964 18.5051C124.834 17.2002 123.612 16.1562 121.286 16.1562H113.522H113.051L112.877 16.4172L107.947 23.8117L107.773 24.0726H108.245H116.197C118.555 24.0726 121.148 23.0113 122.007 21.7238C122.436 21.0801 122.359 20.4885 121.863 20.0536C122.801 19.636 123.569 19.0966 123.964 18.5051ZM114.757 17.6525H120.257C121.106 17.6525 121.542 18.0353 121.229 18.5051C120.916 18.9748 119.969 19.3576 119.12 19.3576H113.62L114.757 17.6525ZM117.195 22.5764H111.474L112.611 20.8713H118.331C119.18 20.8713 119.616 21.2541 119.303 21.7238C118.99 22.1936 118.043 22.5764 117.195 22.5764Z",fill:"white"}),(0,i.jsx)("path",{d:"M61.2801 16.1562H60.8086L60.6346 16.4172L55.7166 23.7943L55.5426 24.0552H56.0141H57.8058H58.2773L58.4512 23.7943L63.3693 16.4172L63.5433 16.1562H63.0718H61.2801Z",fill:"white"}),(0,i.jsx)("path",{d:"M56.1004 18.5051C56.9704 17.2002 55.7804 16.1562 53.4229 16.1562H45.659H45.1875L45.0135 16.4172L40.0839 23.8117L39.9099 24.0726H40.3814H48.3339C50.6914 24.0726 53.2849 23.0113 54.1433 21.7238C54.5724 21.0801 54.4953 20.4885 53.9994 20.0536C54.9693 19.636 55.7061 19.0966 56.1004 18.5051ZM46.9246 17.6525H52.4254C53.2741 17.6525 53.7104 18.0353 53.3973 18.5051C53.0841 18.9748 52.1374 19.3576 51.2887 19.3576H45.7879L46.9246 17.6525ZM49.3745 22.559H43.6537L44.7904 20.8539H50.5112C51.3599 20.8539 51.7962 21.2367 51.483 21.7064C51.1699 22.1762 50.2232 22.559 49.3745 22.559Z",fill:"white"}),(0,i.jsx)("path",{d:"M71.4775 20.8539C73.9162 20.7321 76.2399 19.7926 77.0982 18.5051C77.9681 17.2002 76.7467 16.1562 74.4206 16.1562H67.3797H66.9082L66.7342 16.4172L61.8046 23.8117L61.6306 24.0726H62.1021H63.8623H64.3339L64.5078 23.8117L66.4797 20.8539H68.0199L70.4071 23.9682L70.4947 24.0726H70.7147H72.9779H73.9524L73.6334 23.6551L71.4775 20.8539ZM67.4772 19.3576L68.6139 17.6525H73.4231C74.2718 17.6525 74.7081 18.0353 74.395 18.5051C74.0818 18.9748 73.1351 19.3576 72.2864 19.3576H67.4772Z",fill:"white"}),(0,i.jsx)("path",{d:"M86.8661 17.4789C88.4377 17.4789 89.6251 17.9139 90.0297 18.6272L90.2657 19.0274L90.3781 19.2362L90.8481 19.097L92.6966 18.5402L93.1666 18.401L93.0542 18.1922L92.8182 17.7921C92.189 16.6612 90.3037 16 87.852 16C83.7343 16 79.1612 17.8617 77.6533 20.1235C76.1339 22.4027 78.2678 24.247 82.354 24.247C84.8057 24.247 87.5841 23.5684 89.7096 22.4549L90.2956 22.1417C90.2956 22.1417 90.3072 22.1243 90.3386 22.1243L90.4908 22.0373C90.6315 21.9678 90.7723 21.8982 90.8816 21.8286C90.7393 21.759 90.5972 21.6894 90.4549 21.6198L89.491 21.1326L89.2066 20.9934L88.8159 21.2022L88.0462 21.6024C86.6905 22.3157 84.9232 22.7507 83.3516 22.7507C80.7426 22.7507 79.3939 21.5676 80.3566 20.1235C81.3309 18.662 84.2572 17.4789 86.8661 17.4789Z",fill:"white"}),(0,i.jsx)("path",{d:"M107.363 16.1562H106.891L106.717 16.4172L104.664 19.4968H97.4977L99.5507 16.4172L99.7247 16.1562H99.2532H97.493H97.0215L96.8475 16.4172L91.9295 23.7943L91.7555 24.0552H92.227H93.9872H94.4587L94.6327 23.7943L96.5002 20.9931H103.667L101.799 23.7943L101.625 24.0552H102.097H103.889H104.36L104.534 23.7943L109.452 16.4172L109.626 16.1562H109.155H107.363Z",fill:"white"}),(0,i.jsx)("path",{d:"M135.578 15.9824C131.461 15.9824 126.888 17.8441 125.38 20.1059C123.86 22.3851 125.994 24.2294 130.08 24.2294C134.198 24.2294 138.803 22.3677 140.31 20.1059C141.83 17.8267 139.696 15.9824 135.578 15.9824ZM131.078 22.7331C128.469 22.7331 127.12 21.55 128.083 20.1059C129.046 18.6618 131.972 17.4787 134.581 17.4787C137.19 17.4787 138.539 18.6618 137.576 20.1059C136.613 21.55 133.718 22.7331 131.078 22.7331Z",fill:"white"}),(0,i.jsx)("path",{d:"M162.974 17.7012L157.01 20.1125L159.758 22.5238L165.722 20.1125L162.974 17.7012Z",fill:"white"}),(0,i.jsx)("path",{d:"M46.4139 16.982C46.4256 16.9556 46.4158 16.9351 46.3842 16.9205C46.3527 16.906 46.3069 16.8987 46.247 16.8987C46.2031 16.8987 46.1622 16.9025 46.1242 16.9101C46.0866 16.9178 46.0541 16.9283 46.0268 16.9416C45.9999 16.955 45.9807 16.9702 45.9694 16.9872
1C45.9599 17.0014 45.958 17.0137 45.9638 17.0239C45.97 17.034 45.9808 17.0424 45.9963 17.0492C46.0118 17.0558 46.0292 17.0612 46.0482 17.0656C46.0673 17.0697 46.0852 17.0731 46.1019 17.0757L46.1927 17.0903C46.2161 17.0939 46.2414 17.099 46.2687 17.1054C46.2964 17.1118 46.321 17.1206 46.3426 17.1317C46.3646 17.1426 46.3794 17.1567 46.387 17.1739C46.3946 17.191 46.39 17.2121 46.3734 17.2371C46.3542 17.2659 46.3228 17.292 46.2792 17.3152C46.236 17.3385 46.1831 17.357 46.1204 17.3707C46.0581 17.3844 45.9889 17.3912 45.9128 17.3912C45.8419 17.3912 45.7846 17.3851 45.7409 17.3728C45.6975 17.3604 45.6683 17.3433 45.6534 17.3212C45.6387 17.2992 45.6392 17.2736 45.6548 17.2444H45.7786C45.7684 17.2645 45.7698 17.2812 45.783 17.2944C45.7965 17.3074 45.8181 17.3171 45.8477 17.3236C45.8777 17.3298 45.9123 17.3329 45.9517 17.3329C45.9974 17.3329 46.0412 17.3289 46.083 17.321C46.1248 17.3128 46.1612 17.3015 46.1921 17.2871C46.2231 17.2725 46.245 17.2555 46.258 17.2361C46.2698 17.2184 46.2702 17.204 46.2593 17.1929C46.2483 17.1818 46.2301 17.1727 46.2048 17.1658C46.1794 17.1588 46.1511 17.1528 46.1197 17.1476L46.0104 17.1288C45.941 17.1168 45.8911 17.0997 45.8608 17.0775C45.8305 17.0553 45.8273 17.0262 45.8512 16.9903C45.8711 16.9605 45.9035 16.9344 45.9483 16.9122C45.9935 16.8898 46.0457 16.8725 46.1048 16.8601C46.1644 16.8477 46.2258 16.8414 46.289 16.8414C46.3528 16.8414 46.4055 16.8476 46.4469 16.8599C46.4885 16.872 46.5167 16.8887 46.5316 16.9099C46.5468 16.931 46.5462 16.9551 46.5299 16.982H46.4139ZM46.7644 17.3902C46.6929 17.3902 46.6368 17.3817 46.5962 17.3647C46.5561 17.3475 46.5322 17.3236 46.5247 17.2928C46.5176 17.2619 46.5276 17.226 46.5549 17.1851C46.5823 17.1441 46.6202 17.108 46.6687 17.0768C46.7177 17.0453 46.7731 17.0209 46.8347 17.0033C46.8968 16.9856 46.9614 16.9768 47.0284 16.9768C47.0671 16.9768 47.103 16.9803 47.1361 16.9872C47.1692 16.9941 47.196 17.0054 47.2165 17.021C47.2372 17.0365 47.2482 17.057 47.2495 17.0825C47.2509 17.108 47.2392 17.1394 47.2143 17.1767L47.1969 17.2028H46.6244L46.6598 17.1496H47.1163C47.1313 17.1271 47.1364 17.107 47.1314 17.0893C47.1268 17.0715 47.1126 17.0576 47.0887 17.0473C47.0653 17.0371 47.0329 17.032 46.9916 17.032C46.9462 17.032 46.9028 17.038 46.8615 17.0502C46.8206 17.0622 46.7849 17.0778 46.7543 17.0971C46.7238 17.1163 46.7011 17.137 46.6864 17.159L46.6628 17.1944C46.6427 17.2246 46.6353 17.2502 46.6406 17.2712C46.6464 17.2921 46.6631 17.3079 46.6906 17.3189C46.7182 17.3296 46.7551 17.335 46.8012 17.335C46.8312 17.335 46.8598 17.3328 46.887 17.3282C46.9146 17.3236 46.9403 17.3166 46.9642 17.3074C46.9882 17.298 47.0096 17.2864 47.0286 17.2725L47.1277 17.2892C47.1027 17.3093 47.0714 17.327 47.0338 17.3423C46.9963 17.3574 46.9546 17.3692 46.9086 17.3777C46.8628 17.386 46.8147 17.3902 46.7644 17.3902ZM47.5473 17.3902C47.4777 17.3902 47.4236 17.3814 47.3851 17.3637C47.3466 17.3459 47.3242 17.3216 47.3178 17.2905C47.3115 17.2594 47.3216 17.2239 47.3482 17.184C47.3753 17.1434 47.413 17.1076 47.4615 17.0765C47.5104 17.0453 47.5656 17.0209 47.6273 17.0033C47.6894 16.9856 47.7539 16.9768 47.821 16.9768C47.8732 16.9768 47.9168 16.982 47.9518 16.9924C47.9867 17.0028 48.0114 17.0174 48.0256 17.0361C48.0399 17.0549 48.0419 17.0768 48.0317 17.1017H47.9176C47.921 17.0835 47.9124 17.0674 47.8918 17.0533C47.8716 17.0391 47.8364 17.032 47.7861 17.032C47.7416 17.032 47.6985 17.0382 47.6566 17.0507C47.6152 17.063 47.5776 17.0805 47.5439 17.103C47.5106 17.1254 47.4839 17.1517 47.4637 17.1819C47.4431 17.2128 47.4342 17.2397 47.437 17.2626C47.4401 17.2855 47.454 17.3033 47.4788 17.316C47.5039 17.3287 47.539 17.335 47.5841 17.335C47.6138 17.335 47.6425 17.3322 47.6704 17.3267C47.6983 17.3211 47.7241 17.3131 47.7478 17.3027C47.7715 17.2923 47.7918 17.2798 47.8086 17.2652H47.9227C47.9005 17.2888 47.8704 17.3101 47.8323 17.329C47.7947 17.3478 47.7513 17.3627 47.7023 17.3738C47.6538 17.3847 47.6021 17.3902 47.5473 17.3902ZM48.6014 16.982L48.5667 17.0341H48.1817L48.2165 16.982H48.6014ZM48.3925 16.8862H48.5066L48.2525 17.2673C48.241 17.2847 48.237 17.2977 48.2405 17.3064C48.2445 17.3149 48.253 17.3206 48.2658 17.3236C48.2791 17.3263 48.2942 17.3277 48.3109 17.3277C48.3235 17.3277 48.334 17.3274 48.3426 17.3267C48.3512 17.3258 48.3581 17.3251 48.3633 17.3246L48.3497 17.3798C48.3409 17.3814 48.3291 17.3829 48.3142 17.3845C48.2992 17.3862 48.281 17.3871 48.2597 17.3871C48.2275 17.3871 48.1984 17.3833 48.1724 17.3759C48.1468 17.3684 48.1289 17.3571 48.1188 17.3418C48.109 17.3265 48.1118 17.3072 48.1273 17.284L48.3925 16.8862ZM48.5064 17.3819L48.773 16.982H48.8871L48.6206 17.3819H48.5064ZM48.8755 16.9153C48.8532 16.9153 48.8368 16.9113 48.8261 16.9031C48.8158 16.8949 48.8144 16.8851 48.822 16.8737C48.8297 16.8622 48.8441 16.8524 48.8653 16.8443C48.8869 16.8361 48.9088 16.832 48.931 16.832C48.9533 16.832 48.9696 16.8361 48.9799 16.8443C48.9906 16.8524 48.9921 16.8622 48.9845 16.8737C48.9769 16.8851 48.9623 16.8949 48.9407 16.9031C48.9195 16.9113 48.8977 16.9153 48.8755 16.9153ZM49.1258 17.3902C49.0587 17.3902 49.0056 17.3816 48.9664 17.3644C48.9276 17.3473 48.9043 17.3232 48.8965 17.2923C48.8891 17.2614 48.8991 17.2253 48.9267 17.184C48.9544 17.1424 48.9927 17.106 49.0415 17.0749C49.0905 17.0439 49.146 17.0197 49.2077 17.0026C49.2698 16.9854 49.3343 16.9768 49.4014 16.9768C49.4684 
116.9768 49.5214 16.9854 49.5602 17.0026C49.5994 17.0197 49.6226 17.0439 49.63 17.0749C49.6376 17.106 49.6276 17.1424 49.5998 17.184C49.5723 17.2253 49.534 17.2614 49.485 17.2923C49.4364 17.3232 49.381 17.3473 49.319 17.3644C49.2572 17.3816 49.1928 17.3902 49.1258 17.3902ZM49.1626 17.335C49.2135 17.335 49.2601 17.328 49.3023 17.3139C49.3446 17.2999 49.3813 17.2814 49.4123 17.2585C49.4434 17.2356 49.4679 17.2107 49.4857 17.184C49.5035 17.1573 49.5122 17.1324 49.5118 17.1093C49.5114 17.0862 49.4995 17.0676 49.4761 17.0533C49.4527 17.0391 49.4155 17.032 49.3646 17.032C49.3137 17.032 49.267 17.0391 49.2246 17.0533C49.1823 17.0676 49.1455 17.0862 49.1143 17.1093C49.0831 17.1324 49.0586 17.1573 49.0408 17.184C49.023 17.2107 49.0143 17.2356 49.0149 17.2585C49.0154 17.2814 49.0274 17.2999 49.0509 17.3139C49.0744 17.328 49.1116 17.335 49.1626 17.335ZM49.9166 17.1413L49.7562 17.3819H49.6421L49.9087 16.982H50.0189L49.9773 17.0445H49.9869C50.0179 17.0242 50.0552 17.0078 50.0989 16.9955C50.1427 16.983 50.1926 16.9768 50.2487 16.9768C50.299 16.9768 50.3393 16.9823 50.3696 16.9934C50.4 17.0044 50.4183 17.021 50.4243 17.0434C50.4304 17.0656 50.4222 17.0938 50.3995 17.1278L50.2301 17.3819H50.116L50.2826 17.1319C50.3035 17.1005 50.3047 17.0761 50.2861 17.0585C50.2676 17.0408 50.2319 17.032 50.179 17.032C50.1426 17.032 50.1072 17.0362 50.0729 17.0447C50.0388 17.0532 50.0081 17.0656 49.9808 17.082C49.9535 17.0983 49.9321 17.1181 49.9166 17.1413Z",fill:"white"})]}),(0,i.jsxs)("g",{clipPath:"url(#clip3_54_16665)",children:[(0,i.jsx)("path",{d:"M142.673 30.3295L150.051 26.9019L150.958 26.4844H149.952H147.657H147.437L147.222 26.5714L141.733 29.1464L139.647 26.5714L139.548 26.4844H139.328H137.033H136.058L136.409 26.9019L139.184 30.3295L131.385 33.9658L130.478 34.3834H131.484H133.747H133.999L134.182 34.2964L140.156 31.5126L142.386 34.2964L142.485 34.3834H142.706H145H145.975L145.624 33.9658L142.673 30.3295Z",fill:"white"}),(0,i.jsx)("path",{d:"M117.077 28.8332C117.947 27.5283 116.725 26.4844 114.399 26.4844H106.636H106.164L105.99 26.7454L101.06 34.1398L100.886 34.4007H101.358H109.311C111.668 34.4007 114.262 33.3394 115.12 32.052C115.549 31.4082 115.472 30.8166 114.976 30.3817C115.914 29.9641 116.683 29.4248 117.077 28.8332ZM107.87 27.9807H113.37C114.219 27.9807 114.655 28.3634 114.342 28.8332C114.029 29.303 113.082 29.6857 112.234 29.6857H106.733L107.87 27.9807ZM110.308 32.9045H104.587L105.724 31.1994H111.445C112.293 31.1994 112.73 31.5822 112.417 32.052C112.103 32.5217 111.157 32.9045 110.308 32.9045Z",fill:"white"}),(0,i.jsx)("path",{d:"M54.3954 26.4844H53.9238L53.7498 26.7454L48.8318 34.1224L48.6578 34.3834H49.1294H50.921H51.3925L51.5665 34.1224L56.4845 26.7454L56.6585 26.4844H56.187H54.3954Z",fill:"white"}),(0,i.jsx)("path",{d:"M49.2137 28.8332C50.0837 27.5283 48.8937 26.4844 46.5362 26.4844H38.7723H38.3008L38.1268 26.7454L33.1972 34.1398L33.0232 34.4007H33.4947H41.4472C43.8047 34.4007 46.3982 33.3394 47.2565 32.052C47.6857 31.4082 47.6086 30.8166 47.1127 30.3817C48.0826 29.9641 48.8194 29.4248 49.2137 28.8332ZM40.0379 27.9807H45.5387C46.3874 27.9807 46.8237 28.3634 46.5105 28.8332C46.1974 29.303 45.2507 29.6857 44.402 29.6857H38.9012L40.0379 27.9807ZM42.4878 32.8871H36.767L37.9037 31.182H43.6245C44.4732 31.182 44.9095 31.5648 44.5963 32.0346C44.2831 32.5043 43.3364 32.8871 42.4878 32.8871Z",fill:"white"}),(0,i.jsx)("path",{d:"M64.5908 31.182C67.0295 31.0602 69.3531 30.1207 70.2115 28.8332C71.0814 27.5283 69.86 26.4844 67.5339 26.4844H60.493H60.0215L59.8475 26.7454L54.9179 34.1398L54.7439 34.4007H55.2154H56.9756H57.4471L57.6211 34.1398L59.593 31.182H61.1332L63.5204 34.2964L63.608 34.4007H63.828H66.0911H67.0656L66.7467 33.9832L64.5908 31.182ZM60.5905 29.6857L61.7272 27.9807H66.5364C67.3851 27.9807 67.8214 28.3634 67.5082 28.8332C67.1951 29.303 66.2484 29.6857 65.3997 29.6857H60.5905Z",fill:"white"}),(0,i.jsx)("path",{d:"M79.9794 27.8051C81.551 27.8051 82.7384 28.24 83.143 28.9534L83.379 29.3535L83.4914 29.5623L83.9614 29.4231L85.8099 28.8664L86.2799 28.7272L86.1675 28.5184L85.9314 28.1182C85.3023 26.9873 83.417 26.3262 80.9653 26.3262C76.8476 26.3262 72.2745 28.1878 70.7666 30.4497C69.2471 32.7289 71.3811 34.5732 75.4673 34.5732C77.919 34.5732 80.6974 33.8946 82.8229 32.7811L83.4089 32.4679C83.4089 32.4679 83.4205 32.4505 83.4519 32.4505L83.6041 32.3635C83.7448 32.2939 83.8855 32.2243 83.9948 32.1547C83.8526 32.0851 83.7104 32.0155 83.5682 31.946L82.6043 31.4588L82.3199 31.3196L81.9291 31.5284L81.1595 31.9285C79.8038 32.6419 78.0365 33.0768 76.4648 33.0768C73.8559 33.0768 72.5071 31.8938 73.4699 30.4497C74.4442 28.9882 77.3704 27.8051 79.9794 27.8051Z",fill:"white"}),(0,i.jsx)("path",{d:"M100.478 26.4844H100.007L99.8326 26.7454L97.7796 29.8249H90.6129L92.666 26.7454L92.84 26.4844H92.3684H90.6082H90.1367L89.9627 26.7454L85.0447 34.1224L84.8707 34.3834H85.3423H87.1025H87.574L87.7479 34.1224L89.6154 31.3212H96.7821L94.9146 34.1224L94.7407 34.3834H95.2122H97.0038H97.4753L97.6493 34.1224L102.567 26.7454L102.741 26.4844H102.27H100.478Z",fill:"white"}),(0,i.jsx)("path",{d:"M128.692 26.3086C124.574 26.3086 120.001 28.1703 118.493 30.4321C116.974 32.7113 119.107 34.5556 123.194 34.5556C127.311 34.5556 131.916 32.6939 133.424 30.4321C134.943 28.1529 132.809 26.3086 128.692 26.3086ZM124.191 33.0593C121.582 33.0593 120.234 31.8762 121.196 30.4321C122.159 28.988 125.085 27.8049 127.694 27.8049C130.303 27.8049 131.652 28.988 130.689 30.4321C129.726 31.8762 126.832 33.0593 124.191 33.0593Z",fill:"white"}),(0,i.jsx)("path",{d:"M156.087 28.0293L150.123 30.4406L152.872 32.8519L158.836 30.4406L156.087 28.0293Z",fill:"white"}),(0,i.jsx)("path",{d:"M39.5252 27.3101C39.537 27.2837 39.5271 27.2633 39.4955 27.2487C39.464 27.2341 39.4183 27.2268 39.3583 27.2268C39.3144 27.2268 39.2735 27.2306 39.2356 27.2383C39.1979 27.2459 39.1654 27.2564 39.1382 27.2698C39.1112 27.2831 39.0921 27.2983 39.0807 27.3153C39.0712 27.3296 39.0693 27.3418 39.0751 27.352C39.0813 27.3621 39.0921 27.3705 39.1076 27.3773C39.1232 27.3839 39.1405 27.3893 39.1595 27.3937C39.1787 27.3978 39.1965 27.4012 39.2132 27.4038L39.304 27.4184C39.3274 27.4221 39.3527 27.4271 39.38 27.4335C39.4077 27.4399 39.4323 27.4487 39.4539 27.4598C39.476 27.4707 39.4908 27.4848 39.4983 27.502C39.5059 27.5192 39.5014 27.5403 39.4847 27.5652C39.4655 27.5941 39.4341 27.6201 39.3906 27.6434C39.3473 27.6666 39.2944 27.6851 39.2317 27.6988C39.1694 27.7125 39.1002 27.7194 39.0241 27.7194C38.9532 27.7194 38.8959 27.7132 38.8522 27.7009C38.8088 27.6886 38.7797 27.6714 38.7647 27.6493C38.7501 27.6273 38.7505 27.6017 38.7661 27.5725H38.8899C38.8797 27.5927 38.8812 27.6093 38.8943 27.6225C38.9078 27.6355 38.9294 27.6453 38.959 27.6517C38.989 27.6579 39.0237 27.6611 39.063 27.6611C39.1088 27.6611 39.1525 27.6571 39.1943 27.6491C39.23
161 27.6409 39.2725 27.6296 39.3034 27.6152C39.3344 27.6007 39.3564 27.5836 39.3693 27.5642C39.3811 27.5465 39.3815 27.5321 39.3706 27.521C39.3596 27.5099 39.3414 27.5009 39.3161 27.4939C39.2907 27.487 39.2624 27.4809 39.231 27.4757L39.1217 27.4569C39.0523 27.445 39.0024 27.4279 38.9721 27.4057C38.9418 27.3834 38.9386 27.3544 38.9626 27.3184C38.9825 27.2886 39.0148 27.2626 39.0596 27.2403C39.1048 27.218 39.157 27.2006 39.2162 27.1883C39.2758 27.1758 39.3372 27.1695 39.4003 27.1695C39.4642 27.1695 39.5168 27.1757 39.5582 27.188C39.5998 27.2002 39.628 27.2168 39.6429 27.238C39.6581 27.2592 39.6576 27.2832 39.6412 27.3101H39.5252ZM39.8757 27.7183C39.8042 27.7183 39.7481 27.7098 39.7075 27.6928C39.6674 27.6756 39.6436 27.6517 39.636 27.621C39.6289 27.5901 39.639 27.5541 39.6663 27.5132C39.6936 27.4722 39.7315 27.4361 39.7801 27.4049C39.8291 27.3735 39.8844 27.349 39.946 27.3315C40.0081 27.3138 40.0727 27.3049 40.1398 27.3049C40.1784 27.3049 40.2143 27.3084 40.2474 27.3153C40.2805 27.3223 40.3073 27.3335 40.3279 27.3492C40.3485 27.3646 40.3595 27.3851 40.3609 27.4106C40.3622 27.4361 40.3505 27.4675 40.3256 27.5049L40.3083 27.5309H39.7357L39.7711 27.4778H40.2276C40.2427 27.4552 40.2477 27.4351 40.2427 27.4174C40.2381 27.3997 40.2239 27.3857 40.2001 27.3755C40.1766 27.3652 40.1442 27.3601 40.103 27.3601C40.0575 27.3601 40.0141 27.3662 39.9728 27.3783C39.932 27.3903 39.8962 27.4059 39.8657 27.4252C39.8351 27.4444 39.8125 27.4651 39.7978 27.4871L39.7742 27.5226C39.754 27.5528 39.7466 27.5784 39.752 27.5994C39.7578 27.6202 39.7744 27.6361 39.8019 27.647C39.8296 27.6578 39.8664 27.6631 39.9125 27.6631C39.9425 27.6631 39.9711 27.6609 39.9983 27.6564C40.0259 27.6517 40.0517 27.6447 40.0755 27.6355C40.0995 27.6262 40.121 27.6145 40.1399 27.6007L40.239 27.6173C40.214 27.6375 40.1827 27.6552 40.1451 27.6704C40.1076 27.6855 40.0659 27.6973 40.02 27.7058C39.9741 27.7142 39.926 27.7183 39.8757 27.7183ZM40.6586 27.7183C40.589 27.7183 40.5349 27.7095 40.4964 27.6918C40.458 27.6741 40.4355 27.6497 40.4292 27.6186C40.4228 27.5876 40.4329 27.5521 40.4595 27.5121C40.4866 27.4715 40.5244 27.4357 40.5728 27.4046C40.6217 27.3734 40.6769 27.349 40.7386 27.3315C40.8007 27.3138 40.8653 27.3049 40.9323 27.3049C40.9845 27.3049 41.0281 27.3101 41.0631 27.3205C41.0981 27.3309 41.1227 27.3455 41.1369 27.3643C41.1512 27.383 41.1532 27.4049 41.143 27.4299H41.0289C41.0323 27.4116 41.0238 27.3955 41.0031 27.3814C40.983 27.3672 40.9477 27.3601 40.8974 27.3601C40.853 27.3601 40.8098 27.3663 40.7679 27.3788C40.7265 27.3912 40.6889 27.4086 40.6552 27.4312C40.6219 27.4536 40.5952 27.4799 40.575 27.5101C40.5545 27.5409 40.5455 27.5679 40.5483 27.5908C40.5514 27.6137 40.5654 27.6315 40.5901 27.6441C40.6152 27.6568 40.6503 27.6631 40.6954 27.6631C40.7251 27.6631 40.7539 27.6604 40.7817 27.6548C40.8096 27.6493 40.8354 27.6413 40.8591 27.6309C40.8828 27.6204 40.9031 27.6079 40.9199 27.5934H41.034C41.0118 27.617 40.9817 27.6382 40.9436 27.6571C40.906 27.6759 40.8627 27.6908 40.8137 27.7019C40.7651 27.7129 40.7134 27.7183 40.6586 27.7183ZM41.7127 27.3101L41.678 27.3622H41.2931L41.3278 27.3101H41.7127ZM41.5038 27.2143H41.618L41.3639 27.5954C41.3523 27.6128 41.3483 27.6258 41.3519 27.6345C41.3559 27.643 41.3643 27.6487 41.3772 27.6517C41.3905 27.6545 41.4055 27.6558 41.4222 27.6558C41.4348 27.6558 41.4454 27.6555 41.4539 27.6548C41.4625 27.6539 41.4694 27.
16532 41.4746 27.6527L41.461 27.7079C41.4523 27.7095 41.4404 27.711 41.4255 27.7126C41.4105 27.7143 41.3923 27.7152 41.3711 27.7152C41.3388 27.7152 41.3097 27.7115 41.2838 27.704C41.2581 27.6966 41.2402 27.6852 41.2301 27.6699C41.2203 27.6546 41.2231 27.6354 41.2386 27.6121L41.5038 27.2143ZM41.6178 27.71L41.8844 27.3101H41.9985L41.7319 27.71H41.6178ZM41.9868 27.2435C41.9646 27.2435 41.9481 27.2394 41.9374 27.2312C41.9271 27.2231 41.9257 27.2133 41.9334 27.2018C41.941 27.1904 41.9554 27.1806 41.9767 27.1724C41.9982 27.1642 42.0201 27.1602 42.0424 27.1602C42.0646 27.1602 42.0809 27.1642 42.0913 27.1724C42.1019 27.1806 42.1035 27.1904 42.0958 27.2018C42.0882 27.2133 42.0736 27.2231 42.052 27.2312C42.0308 27.2394 42.0091 27.2435 41.9868 27.2435ZM42.2371 27.7183C42.1701 27.7183 42.1169 27.7097 42.0778 27.6926C42.0389 27.6754 42.0156 27.6513 42.0079 27.6204C42.0004 27.5895 42.0105 27.5534 42.038 27.5121C42.0658 27.4705 42.104 27.4341 42.1528 27.4031C42.2019 27.372 42.2573 27.3479 42.319 27.3307C42.3811 27.3135 42.4457 27.3049 42.5127 27.3049C42.5798 27.3049 42.6327 27.3135 42.6715 27.3307C42.7107 27.3479 42.734 27.372 42.7413 27.4031C42.7489 27.4341 42.7389 27.4705 42.7111 27.5121C42.6836 27.5534 42.6453 27.5895 42.5964 27.6204C42.5477 27.6513 42.4924 27.6754 42.4303 27.6926C42.3685 27.7097 42.3042 27.7183 42.2371 27.7183ZM42.2739 27.6631C42.3248 27.6631 42.3714 27.6561 42.4137 27.6421C42.4559 27.628 42.4926 27.6095 42.5237 27.5866C42.5547 27.5637 42.5792 27.5389 42.597 27.5121C42.6148 27.4854 42.6235 27.4605 42.6231 27.4374C42.6227 27.4143 42.6108 27.3957 42.5874 27.3814C42.564 27.3672 42.5269 27.3601 42.4759 27.3601C42.425 27.3601 42.3783 27.3672 42.336 27.3814C42.2936 27.3957 42.2568 27.4143 42.2256 27.4374C42.1944 27.4605 42.1699 27.4854 42.1521 27.5121C42.1343 27.5389 42.1256 27.5637 42.1262 27.5866C42.1267 27.6095 42.1387 27.628 42.1622 27.6421C42.1857 27.6561 42.223 27.6631 42.2739 27.6631ZM43.0279 27.4694L42.8675 27.71H42.7534L43.02 27.3101H43.1303L43.0886 27.3726H43.0983C43.1292 27.3523 43.1665 27.336 43.2102 27.3236C43.254 27.3112 43.3039 27.3049 43.36 27.3049C43.4103 27.3049 43.4506 27.3105 43.4809 27.3216C43.5114 27.3325 43.5296 27.3492 43.5356 27.3716C43.5418 27.3938 43.5335 27.4219 43.5108 27.4559L43.3414 27.71H43.2273L43.3939 27.4601C43.4149 27.4287 43.416 27.4042 43.3974 27.3867C43.3789 27.369 43.3432 27.3601 43.2904 27.3601C43.2539 27.3601 43.2185 27.3644 43.1842 27.3729C43.1501 27.3814 43.1195 27.3938 43.0921 27.4101C43.0648 27.4264 43.0434 27.4462 43.0279 27.4694Z",fill:"white"})]}),(0,i.jsxs)("g",{clipPath:"url(#clip4_54_16665)",children:[(0,i.jsx)("path",{d:"M135.787 40.6557L143.164 37.2281L144.071 36.8105H143.065H140.7
171H140.55L140.335 36.8975L134.847 39.4725L132.76 36.8975L132.661 36.8105H132.441H130.146H129.172L129.522 37.2281L132.298 40.6557L124.498 44.292L123.591 44.7095H124.597H126.86H127.112L127.296 44.6225L133.269 41.8388L135.5 44.6225L135.599 44.7095H135.819H138.113H139.088L138.738 44.292L135.787 40.6557Z",fill:"white"}),(0,i.jsx)("path",{d:"M110.192 39.1594C111.062 37.8545 109.841 36.8105 107.515 36.8105H99.7508H99.2793L99.1053 37.0715L94.1757 44.466L94.0017 44.7269H94.4732H102.426C104.783 44.7269 107.377 43.6656 108.235 42.3781C108.664 41.7344 108.587 41.1428 108.091 40.7079C109.03 40.2903 109.798 39.7509 110.192 39.1594ZM100.985 38.3068H106.486C107.334 38.3068 107.771 38.6896 107.458 39.1594C107.144 39.6291 106.198 40.0119 105.349 40.0119H99.8483L100.985 38.3068ZM103.423 43.2307H97.7025L98.8392 41.5256H104.56C105.409 41.5256 105.845 41.9084 105.532 42.3781C105.219 42.8479 104.272 43.2307 103.423 43.2307Z",fill:"white"}),(0,i.jsx)("path",{d:"M47.5086 36.8105H47.0371L46.8631 37.0715L41.9451 44.4486L41.7711 44.7095H42.2426H44.0343H44.5058L44.6798 44.4486L49.5978 37.0715L49.7718 36.8105H49.3003H47.5086Z",fill:"white"}),(0,i.jsx)("path",{d:"M42.327 39.1594C43.1969 37.8545 42.0069 36.8105 39.6495 36.8105H31.8856H31.4141L31.2401 37.0715L26.3104 44.466L26.1365 44.7269H26.608H34.5605C36.918 44.7269 39.5115 43.6656 40.3698 42.3781C40.799 41.7344 40.7218 41.1428 40.226 40.7079C41.1959 40.2903 41.9326 39.7509 42.327 39.1594ZM33.1512 38.3068H38.652C39.5006 38.3068 39.937 38.6896 39.6238 39.1594C39.3106 39.6291 38.3639 40.0119 37.5152 40.0119H32.0145L33.1512 38.3068ZM35.601 43.2133H29.8802L31.017 41.5082H36.7377C37.5864 41.5082 38.0228 41.891 37.7096 42.3607C37.3964 42.8305 36.4497 43.2133 35.601 43.2133Z",fill:"white"}),(0,i.jsx)("path",{d:"M57.706 41.5082C60.1447 41.3864 62.4684 40.4469 63.3267 39.1594C64.1967 37.8545 62.9752 36.8105 60.6491 36.8105H53.6082H53.1367L52.9627 37.0715L48.0331 44.466L47.8591 44.7269H48.3307H50.0909H50.5624L50.7363 44.466L52.7082 41.5082H54.2484L56.6356 44.6225L56.7232 44.7269H56.9432H59.2064H60.1809L59.8619 44.3094L57.706 41.5082ZM53.7057 40.0119L54.8424 38.3068H59.6516C60.5003 38.3068 60.9367 38.6896 60.6235 39.1594C60.3103 39.6291 59.3636 40.0119 58.5149 40.0119H53.7057Z",fill:"white"}),(0,i.jsx)("path",{d:"M73.0926 38.1312C74.6643 38.1312 75.8517 38.5662 76.2562 39.2795L76.4923 39.6797L76.6047 39.8885L77.0747 39.7493L78.9232 39.1926L79.3931 39.0534L79.2808 38.8446L79.0447 38.4444C78.4155 37.3135 76.5303 36.6523 74.0786 36.6523C69.9609 36.6523 65.3878 38.514 63.8799 40.7758C62.3604 43.0551 64.4943 44.8993 68.5806 44.8993C71.0323 44.8993 73.8107 44.2208 75.9362 43.1073L76.5221 42.7941C76.5221 42.7941 76.5337 42.7767 76.5652 42.7767L76.7174 42.6897C76.8581 42.6201 76.9988 42.5505 77.1081 42.4809C76.9659 42.4113 76.8237 42.3417 76.6815 42.2721L75.7176 41.785L75.4332 41.6458L75.0424 41.8546L74.2728 42.2547C72.9171 42.9681 71.1498 43.403 69.5781 43.403C66.9692 43.403 65.6204 42.2199 66.5832 40.7758C67.5575 39.3143 70.4837 38.1312 73.0926 38.1312Z",fill:"white"}),(0,i.jsx)("path",{d:"M93.5914 36.8105H93.1199L92.9459 37.0715L90.8929 40.1511H83.7262L85.7793 37.0715L85.9532 36.8105H85.4817H83.7215H83.25L83.076 37.0715L78.158 44.4486L77.984 44.7095H78.4555H80.2157H80.6873L80.8612 44.4486L82.7287 41.6474H89.8954L88.0279 44.4486L87.8539 44.7095H88.3255H90.1171H90.5886L90.7626 44.4486L95.6806 37.0715L95.8546 36.8105H95.3831H93.5914Z",fill:"white"}),(0,i.jsx)("path",{d:"M121.807 36.6348C117.689 36.6348 113.116 38.4964 111.608 40.7583C110.089 43.0375 112.223 44.8817 116.309 44.8817C120.427 44.8817 125.031 43.0201 126.539 40.7583C128.058 38.479 125.925 36.6348 121.807 36.6348ZM117.307 43.3854C114.698 43.3854 113.349 42.2023 114.312 40.7583C115.274 39.3142 118.201 38.1311 120.809 38.1311C123.418 38.1311 124.767 39.3142 123.804 40.7583C122.842 42.2023 119.947 43.3854 117.307 43.3854Z",fill:"white"}),(0,i.jsx)("path",{d:"M149.202 38.3555L143.238 40.7668L145.987 43.1781L151.951 40.7668L149.202 38.3555Z",fill:"white"}),(0,i.jsx)("path",{d:"M32.6424 37.6343C32.6542 37.608 32.6443 37.5875 32.6127 37.5729C32.5812 37.5583 32.5354 37.551 32.4755 37.551C32.4316 37.551 32.3907 37.5548 32.3528 37.5625C32.3151 37.5701 32.2826 37.5806 32.2553 37.594C32.2284 37.6073 32.2092 37.6225 32.1979 37.6395C32.1884 37.6538 32.1865 37.666 32.1923 37.6762C32.1985 37.6863 32.2093 37.6947 32.2248 37.7015C32.2404 37.7081 32.2577 37.7136 32.2767 37.7179C32.2958 37.7221 32.3137 37.7255 32.3304 37.7281L32.4212 37.7426C32.4446 37.7463 32.4699 37.7513 32.4972 37.7577C32.5249 37.7642 32.5495 37.7729 32.5711 37.784C32.5932 37.795 32.608 37.809 32.6155 37.8262C32.6231 37.8434 32.6185 37.8645 32.6019 37.8895C32.5827 37.9183 32.5513 37.9443 32.5077 37.9676C32.4645 37.9908 32.4116 38.0093 32.3489 38.023C32.2866 38.0367 32.2174 38.0436 32.1413 38.0436C32.0704 38.0436 32.0131 38.0374 31.9694 38.0251C31.926 38.0128 31.8968 37.9956 31.8819 37.9736C31.8672 37.9515 31.8677 37.9259 31.8833 37.8968H32.0071C31.9969 37.9169 31.9983 37.9336 32.0115 37.9467C32.025 37.9598 32.0466 37.9695 32.0762 37.9759C32.1062 37.9821 32.1408 37.9853 32.1802 37.9853C32.226 37.9853 32.2697 37.9813 32.3115 37.9733C32.3533 37.9651 32.3897 37.9539 32.4206 37.9395C32.4516 37.9249 32.4736 37.9079 32.4865 37.8884C32.4983 37.8707 32.4987 37.8563 32.4878 37.8452C32.4768 37.8341 32.4586 37.8251 32.4333 37.8181C32.4079 37.8112 32.3796 37.8051 32.3482 37.7999L32.2389 37.7812C32.1695 37.7692 32.1196 37.7521 32.0893 37.7299C32.059 37.7077 32.0558 37.6786 32.0798 37.6427C32.0997 37.6128 32.132 37.5868 32.1768 37.5646C32.222 37.5422 32.2742 37.5248 32.3334 37.5125C32.393 37.5 32.4543 37.4937 32.5175 37.4937C32.5814 37.4937 32.634 37.4999 32.6754 37.5122C32.717 37.5244 32.7452 37.541 32.7601 37.5622C32.7753 37.5834 32.7747 37.6074 32.7584 37.6343H32.6424ZM32.9929 38.0425C32.9214 38.0425 32.8653 38.034 32.8247 38.017C32.7846 37.9999 32.7608 37.9759 32.7532 37.9452C32.7461 37.9143 32.7562 37.8784 32.7835 37.8374C32.8108 37.7964 32.8487 37.7603 32.8973 37.7291C32.9462 37.6977 33.0016 37.6732 33.0632 37.6557C33.1253 37.638 33.1899 37.6291 33.2569 37.6291C33.2956 37.6291 33.3315 37.6326 33.3646 37.6395C33.3977 37.6465 33.4245 37.6578 33.445 37.6734C33.4657 37.6888 33.4767 37.7093 33.4781 37.7348C33.4794 37.7603 33.4677 37.7918 33.4428 37.8291L33.4254 37.8551H32.8529L32.8883 37.802H33.3448C33.3598 37.7794 33.3649 37.7593 33.3599 37.7416C33.3553 37.7239 33.3411 37.7099 33.3173 37.6997C33.2938 37.6894 33.2614 37.6843 33.2202 37.6843C33.1747 37.6843 33.1313 37.6904 33.09 37.7025C33.0491 37.7145 33.0134 37.7301 32.9829 37.7494C32.9523 37.7687 32.9296 37.7893 32.9149 37.8114L32.8913 37.8468C32.8712 37.877 32.8638 37.9026 32.8692 37.9236C32.8749 37.9444 32.8916 37.9603 32.9191 37.9712C32.9468 37.982 32.9836 37.9874 33.0297 37.9874C33.0597 37.9874 33.0883 37.9851 33.1155 37.9806C33.1431 37.9759 33.1689 37.969 33.1927 37.9598C33.2167 37.9504 33.2381 37.9388 33.2571 37.9249L33.3562 37.9415C33.3312 37.9617 33.2999 37.9794 33.2623 37.9946C33.2248 38.0097 33.1831 38.0215 33.1371 38.0301C33.0913 38.0384 33.0432 38.0425 32.9929 38.0425ZM33.7758 38.0425C33.7062 38.0425 33.6521 38.0337 33.6136 38.016C33.5752 37.9983 33.5527 37.9739 33.5464 37.9428C33.54 37.9118 33.5501 37.8763 33.5767 37.8364C33.6038 37.7957 33.6416 37.7599 33.69 37.7288C33.7389 37.6976 33.7941 37.6732 33.8558 37.6557C33.9179 37.638 33.9825 37.6291 34.0495 37.6291C34.1017 37.6291 34.1453 37.6343 34.1803 37.6447C34.2153 37.6552 34.2399 37.6697 34.2541 37.6885C34.2684 37.7072 34.2704 37.7291 34.2602 37.7541H34.1461C34.1495 37.7359 34.1409 37.7197 34.1203 37.7057C34.1002 37.6914 34.0649 37.6843 34.0146 37.6843C33.9702 37.6843 33.927 37.6906 33.8851 37.7031C33.8437 37.7154 33.8061 37.7328 33.7724 37.7554C33.7391 37.7778 33.7124 37.8041 33.6922 37.8343C33.6716 37.8652 33.6627 37.8921 33.6655 37.915C33.6686 37.9379 33.6825 37.9557 33.7073 37.9684C33.7324 37.981 33.7675 37.9874 33.8126 37.9874C33.8423 37.9874 33.871 37.9846 33.8989 37.979C33.9268 37.9735 33.9526 37.9655 33.9763 37.9551C34 37.9447 34.0203 37.9322 34.0371 37.9176H34.1512C34.129 37.9412 34.0989 37.9625 34.0608 37.9814C34.0232 38.0001 33.9798 38.015 33.9309 38.0261C33.8823 38.0371 33.8306 38.0425 33.7758 38.0425ZM34.8299 37.6343L34.7952 37.6864H34.4103L34.445 37.6343H34.8299ZM34.621 37.5385H34.7351L34.4811 37.9197C34.4695 37.937 34.4655 37.95 34.469 37.9587C34.473 37.9672 34.4815 37.9729 34.4943 37.9759C34.5076 37.9787 34.5227 37.9801 34.5394 37.9801C34.552 37.9801 34.5626 37.9797 34.5711 37.979C34.5797 37.9782 34.5866 37.9775 34.5918 37.9769L34.5782 38.0321C34.5694 38.0337 34.5576 38.0353 34.5427 38.0368C34.5277 38.0386 34.5095 38.0394 34.4883 38.0394C34.456 38.0394 34.4269 38.0357 34.4009 38.0282C34.3753 38.0208 34.3574 38.0094 34.3473 37.9941C34.3375 37.9789 34.3403 37.9596 34.3558 37.9363L34.621 37.5385ZM34.735 38.0342L35.0016 37.6343H35.1157L34.8491 38.0342H34.735ZM35.104 37.5677C35.0818 37.5677 35.0653 37.5636 35.0546 37.5554C35.0443 37.5473 35.0429 37.5375 35.
10505 37.526C35.0582 37.5146 35.0726 37.5048 35.0939 37.4966C35.1154 37.4885 35.1373 37.4844 35.1595 37.4844C35.1818 37.4844 35.1981 37.4885 35.2085 37.4966C35.2191 37.5048 35.2207 37.5146 35.213 37.526C35.2054 37.5375 35.1908 37.5473 35.1692 37.5554C35.148 37.5636 35.1263 37.5677 35.104 37.5677ZM35.3543 38.0425C35.2872 38.0425 35.2341 38.034 35.195 38.0168C35.1561 37.9996 35.1328 37.9756 35.1251 37.9447C35.1176 37.9138 35.1277 37.8777 35.1552 37.8364C35.183 37.7947 35.2212 37.7583 35.27 37.7273C35.3191 37.6962 35.3745 37.6721 35.4362 37.6549C35.4983 37.6377 35.5629 37.6291 35.6299 37.6291C35.697 37.6291 35.7499 37.6377 35.7887 37.6549C35.8279 37.6721 35.8511 37.6962 35.8585 37.7273C35.8661 37.7583 35.8561 37.7947 35.8283 37.8364C35.8008 37.8777 35.7625 37.9138 35.7136 37.9447C35.6649 37.9756 35.6095 37.9996 35.5475 38.0168C35.4857 38.034 35.4213 38.0425 35.3543 38.0425ZM35.3911 37.9874C35.442 37.9874 35.4886 37.9803 35.5309 37.9663C35.5731 37.9522 35.6098 37.9337 35.6409 37.9108C35.6719 37.8879 35.6964 37.8631 35.7142 37.8364C35.732 37.8096 35.7407 37.7847 35.7403 37.7616C35.7399 37.7386 35.728 37.7199 35.7046 37.7057C35.6812 37.6914 35.644 37.6843 35.5931 37.6843C35.5422 37.6843 35.4955 37.6914 35.4532 37.7057C35.4108 37.7199 35.374 37.7386 35.3428 37.7616C35.3116 37.7847 35.2871 37.8096 35.2693 37.8364C35.2515 37.8631 35.2428 37.8879 35.2434 37.9108C35.2439 37.9337 35.2559 37.9522 35.2794 37.9663C35.3029 37.9803 35.3402 37.9874 35.3911 37.9874ZM36.1451 37.7937L35.9847 38.0342H35.8706L36.1372 37.6343H36.2474L36.2058 37.6968H36.2155C36.2464 37.6765 36.2837 37.6602 36.3274 37.6479C36.3712 37.6354 36.4211 37.6291 36.4772 37.6291C36.5275 37.6291 36.5678 37.6347 36.5981 37.6458C36.6286 37.6567 36.6468 37.6734 36.6528 37.6958C36.659 37.718 36.6507 37.7461 36.628 37.7801L36.4586 38.0342H36.3445L36.5111 37.7843C36.5321 37.7529 36.5332 37.7284 36.5146 37.7109C36.4961 37.6932 36.4604 37.6843 36.4075 37.6843C36.3711 37.6843 36.3357 37.6886 36.3014 37.6971C36.2673 37.7056 36.2366 37.718 36.2093 37.7343C36.182 37.7506 36.1606 37.7704 36.1451 37.7937Z",fill:"white"})]}),(0,i.jsxs)("g",{clipPath:"url(#clip5_54_16665)",children:[(0,i.jsx)("path",{d:"M128.904 50.9838L136.281 47.5562L137.188 47.1387H136.182H133.888H133.668L133.453 47.2257L127.964 49.8007L125.877 47.2257L125.778 47.1387H125.558H123.263H122.289L122.639 47.5562L125.415 50.9838L117.616 54.6201L116.709 55.0376H117.714H119.978H120.229L120.413 54.9507L126.386 52.1669L128.617 54.9507L128.716 55.0376H128.936H131.231H132.205L131.855 54.6201L128.904 50.9838Z",fill:"white"}),(0,i.jsx)("path",{d:"M103.307 49.4875C104.177 48.1826 102.956 47.1387 100.63 47.1387H92.8661H92.3945L92.2205 47.3997L87.2909 54.7941L87.117 55.055H87.5885H95.541C97.8985 55.055 100.492 53.9937 101.35 52.7063C101.779 52.0625 101.702 51.4709 101.206 51.036C102.145 50.6184 102.913 50.079 103.307 49.4875ZM94.1003 48.635H99.6009C100.45 48.635 100.886 49.0177 100.573 49.4875C100.26 49.9573 99.3129 50.34 98.4642 50.34H92.9635L94.1003 48.635ZM96.5385 53.5588H90.8177L91.9544 51.8537H97.6752C98.5239 51.8537 98.9602 52.2365 98.6471 52.7063C98.3339 53.176 97.3872 53.5588 96.5385 53.5588Z",fill:"white"}),(0,i.jsx)("path",{d:"M40.6239 47.1387H40.1523L39.9784 47.3997L35.0603 54.7767L34.8864 55.0376H35.3579H37.1495H37.621L37.795 54.7767L42.713 47.3997L42.887 47.1387H42.4155H40.6239Z",fill:"white"}),(0,i.jsx)("path",{d:"M35.4442 49.4875C36.3141 48.1826 35.1241 47.1387 32.7667 47.1387H25.0027H24.5312L24.3573 47.3997L19.4276 54.7941L19.2537 55.055H19.7252H27.6777C30.0351 55.055 32.6287 53.9937 33.487 52.7063C33.9162 52.0625 33.839 51.4709 33.3432 51.036C34.3131 50.6184 35.0498 50.079 35.4442 49.4875ZM26.2684 48.635H31.7691C32.6178 48.635 33.0542 49.0177 32.741 49.4875C32.4278 49.9573 31.4811 50.34 30.6324 50.34H25.1317L26.2684 48.635ZM28.7182 53.5414H22.9974L24.1341 51.8363H29.8549C30.7036 51.8363 31.14 52.2191 30.8268 52.6889C30.5136 53.1586 29.5669 53.5414 28.7182 53.5414Z",fill:"white"}),(0,i.jsx)("path",{d:"M50.8213 51.8363C53.26 51.7145 55.5836 50.775 56.442 49.4875C57.3119 48.1826 56.0904 47.1387 53.7644 47.1387H46.7235H46.252L46.078 47.3997L41.1483 54.7941L40.9744 55.055H41.4459H43.2061H43.6776L43.8516 54.7941L45.8234 51.8363H47.3636L49.7508 54.9507L49.8385 55.055H50.0585H52.3216H53.2961L52.9772 54.6375L50.8213 51.8363ZM46.821 50.34L47.9577 48.635H52.7669C53.6156 48.635 54.0519 49.0177 53.7387 49.4875C53.4255 49.9573 52.4789 50.34 51.6301 50.34H46.821Z",fill:"white"}),(0,i.jsx)("path",{d:"M66.2098 48.4613C67.7815 48.4613 68.9688 48.8963 69.3734 49.6096L69.6095 50.0098L69.7219 50.2186L70.1918 50.0794L72.0403 49.5226L72.5103 49.3834L72.398 49.1747L72.1619 48.7745C71.5327 47.6436 69.6474 46.9824 67.1958 46.9824C63.0781 46.9824 58.505 48.8441 56.9971 51.1059C55.4776 53.3851 57.6115 55.2294 61.6978 55.2294C64.1495 55.2294 66.9279 54.5509 69.0533 53.4373L69.6393 53.1242C69.6393 53.1242 69.6509 53.1068 69.6824 53.1068L69.8346 53.0198C69.9753 52.9502 70.116 52.8806 70.2253 52.811C70.
1083 52.7414 69.9409 52.6718 69.7986 52.6022L68.8347 52.115L68.5503 51.9758L68.1596 52.1846L67.39 52.5848C66.0343 53.2981 64.267 53.7331 62.6953 53.7331C60.0864 53.7331 58.7376 52.55 59.7003 51.1059C60.6747 49.6444 63.6009 48.4613 66.2098 48.4613Z",fill:"white"}),(0,i.jsx)("path",{d:"M86.7067 47.1387H86.2352L86.0612 47.3997L84.0081 50.4792H76.8414L78.8945 47.3997L79.0685 47.1387H78.597H76.8368H76.3652L76.1912 47.3997L71.2732 54.7767L71.0993 55.0376H71.5708H73.331H73.8025L73.9764 54.7767L75.8439 51.9755H83.0106L81.1431 54.7767L80.9692 55.0376H81.4407H83.2323H83.7038L83.8778 54.7767L88.7958 47.3997L88.9698 47.1387H88.4983H86.7067Z",fill:"white"}),(0,i.jsx)("path",{d:"M114.922 46.9648C110.805 46.9648 106.232 48.8265 104.724 51.0883C103.204 53.3676 105.338 55.2118 109.424 55.2118C113.542 55.2118 118.146 53.3502 119.654 51.0883C121.174 48.8091 119.04 46.9648 114.922 46.9648ZM110.422 53.7155C107.813 53.7155 106.464 52.5324 107.427 51.0883C108.39 49.6442 111.316 48.4611 113.925 48.4611C116.534 48.4611 117.882 49.6442 116.92 51.0883C115.957 52.5324 113.062 53.7155 110.422 53.7155Z",fill:"white"}),(0,i.jsx)("path",{d:"M142.317 48.6836L136.353 51.0949L139.102 53.5062L145.066 51.0949L142.317 48.6836Z",fill:"white"}),(0,i.jsx)("path",{d:"M25.7557 47.9644C25.7674 47.938 25.7576 47.9176 25.726 47.903C25.6945 47.8884 25.6487 47.8811 25.5888 47.8811C25.5449 47.8811 25.504 47.8849 25.466 47.8926C25.4284 47.9002 25.3959 47.9107 25.3686 47.9241C25.3417 47.9374 25.3225 47.9526 25.3112 47.9696C25.3017 47.9839 25.2998 47.9961 25.3056 48.0063C25.3118 48.0164 25.3226 48.0248 25.338 48.0316C25.3536 48.0382 25.371 48.0436 25.39 48.048C25.4091 48.0521 25.427 48.0555 25.4437 48.0581L25.5345 48.0727C25.5579 48.0764 25.5832 48.0814 25.6105 48.0878C25.6382 48.0942 25.6628 48.103 25.6844 48.1141C25.7064 48.125 25.7212 48.1391 25.7288 48.1563C25.7364 48.1735 25.7318 48.1946 25.7152 48.2195C25.6959 48.2484 25.6646 48.2744 25.621 48.2976C25.5778 48.3209 25.5249 48.3394 25.4622 48.3531C25.3999 48.3668 25.3307 48.3737 25.2546 48.3737C25.1837 48.3737 25.1263 48.3675 25.0827 48.3552C25.0393 48.3429 25.0101 48.3257 24.9952 48.3036C24.9805 48.2816 24.981 48.256 24.9966 48.2268H25.1204C25.1102 48.247 25.1116 48.2636 25.1247 48.2768C25.1383 48.2898 25.1599 48.2996 25.1895 48.306C25.2195 48.3122 25.2541 48.3154 25.2935 48.3154C25.3392 48.3154 25.383 48.3114 25.4247 48.3034C25.4666 48.2952 25.503 48.2839 25.5339 48.2695C25.5649 48.255 25.5868 48.2379 25.5998 48.2185C25.6116 48.2008 25.612 48.1864 25.601 48.1753C25.5901 48.1642 25.5719 48.1552 25.5466 48.1482C25.5212 48.1413 25.4929 48.1352 25.4615 48.13L25.3522 48.1112C25.2828 48.0993 25.2329 48.0822 25.2026 48.06C25.1723 48.0377 25.1691 48.0087 25.193 47.9727C25.2129 47.9429 25.2453 47.9169 25.2901 47.8946C25.3353 47.8723 25.3875 47.8549 25.4466 47.8426C25.5062 47.8301 25.5676 47.8238 25.6308 47.8238C25.6946 47.8238 25.7473 47.83 25.7887 47.8423C25.8302 47.8545 25.8585 47.8711 25.8734 47.8923C25.8886 47.9135 25.888 47.9375 25.8717 47.9644H25.7557ZM26.1062 48.3726C26.0346 48.3726 25.9786 48.3641 25.938 48.3471C25.8979 48.3299 25.874 48.306 25.8665 48.2753C25.8594 48.2444 25.8694 48.2084 25.8967 48.1675C25.9241 48.1265 25.962 48.0904 26.0105 48.0592C26.0595 48.0278 26.1149 48.0033 26.1765 47.9858C26.2386 47.9681 26.3032 47.9592 26.3702 47.9592C26.4089 47.9592 26.4448 47.9627 26.4779 47.9696C26.511 47.9766 26.5378 47.9878 26.5583 48.0035C26.579 48.0189 26.59 48.0394 26.5913 48.0649C26.5927 48.0904 26.581 48.1218 26.5561 48.1591L26.5387 48.1852H25.9662L26.0016 48.1321H26.4581C26.4731 48.1095 26.4782 48.0894 26.4732 48.0717C26.4686 48.054 26.4543 48.04 26.4305 48.0298C26.4071 48.0195 26.3747 48.0144 26.3334 48.0144C26.288 48.0144 26.2446 48.0205 26.2033 48.0326C26.1624 48.0446 26.1267 48.0602 26.0961 48.0795C26.0656 48.0987 26.0429 48.1194 26.0282 48.1414L26.0046 48.1768C25.9845 48.207 25.9771 48.2326 25.9824 48.2536C25.9882 48.2745 26.0049 48.2904 26.0324 48.3013C26.06 48.3121 26.0969 48.3174 26.143 48.3174C26.173 48.3174 26.2016 48.3152 26.2288 48.3107C26.2564 48.306 26.2821 48.299 26.306 48.2898C26.33 48.2805 26.3514 48.2688 26.3704 48.255L26.4695 48.2716C26.4445 48.2918 26.4132 48.3095 26.3756 48.3247C26.3381 48.3398 26.2964 48.3516 26.2504 48.3601C26.2046 48.3685 26.1565 48.3726 26.1062 48.3726ZM26.8891 48.3726C26.8195 48.3726 26.7654 48.3638 26.7269 48.3461C26.6884 48.3284 26.666 48.304 26.6596 48.2729C26.6533 48.2419 26.6634 48.2064 26.69 48.1664C26.7171 48.1258 26.7548 48.09 26.8033 48.0589C26.8521 48.0277 26.9074 48.0033 26.9691 47.9858C27.0312 47.9681 27.0957 47.9592 27.1628 47.9592C27.215 47.9592 27.2586 47.9644 27.2936 47.9748C27.3285 47.9852 27.3531 47.9998 27.3674 48.0186C27.3817 48.0373 27.3837 48.0592 27.3735 48.0842H27.2594C27.2628 48.0659 27.2542 48.0498 27.2336 48.0357C27.2134 48.0215 27.1782 48.0144 27.1279 48.0144C27.0834 48.0144 27.0403 48.0206 26.9984 48.0331C26.957 48.0455 26.9194 48.0629 26.8857 48.0855C26.8524 48.1079 26.8256 48.1342 26.8055 48.1644C26.7849 48.1952 26.776 48.2222 26.7788 48.2451C26.7819 48.268 26.7958 48.2858 26.8206 48.2984C26.8457 48.3111 26.8808 48.3174 26.9259 48.3174C26.9556 48.3174 26.9843 48.3147 27.0122 48.3091C27.0401 48.3035 27.0659 48.2956 27.0896 48.2852
1C27.1133 48.2747 27.1336 48.2622 27.1504 48.2477H27.2645C27.2423 48.2713 27.2122 48.2925 27.1741 48.3114C27.1364 48.3302 27.0931 48.3451 27.0441 48.3562C26.9956 48.3672 26.9439 48.3726 26.8891 48.3726ZM27.9432 47.9644L27.9085 48.0165H27.5235L27.5583 47.9644H27.9432ZM27.7343 47.8686H27.8484L27.5943 48.2497C27.5828 48.2671 27.5788 48.2801 27.5823 48.2888C27.5863 48.2973 27.5948 48.303 27.6076 48.306C27.6209 48.3088 27.636 48.3101 27.6527 48.3101C27.6653 48.3101 27.6758 48.3098 27.6844 48.3091C27.693 48.3082 27.6999 48.3075 27.7051 48.307L27.6915 48.3622C27.6827 48.3638 27.6709 48.3653 27.656 48.3669C27.641 48.3686 27.6228 48.3695 27.6015 48.3695C27.5693 48.3695 27.5402 48.3658 27.5142 48.3583C27.4886 48.3508 27.4707 48.3395 27.4606 48.3242C27.4508 48.3089 27.4536 48.2897 27.4691 48.2664L27.7343 47.8686ZM27.8482 48.3643L28.1148 47.9644H28.2289L27.9624 48.3643H27.8482ZM28.2173 47.8978C28.195 47.8978 28.1786 47.8937 28.1679 47.8855C28.1575 47.8774 28.1562 47.8676 28.1638 47.8561C28.1715 47.8447 28.1859 47.8348 28.2071 47.8267C28.2287 47.8185 28.2506 47.8145 28.2728 47.8145C28.2951 47.8145 28.3114 47.8185 28.3217 47.8267C28.3324 47.8348 28.3339 47.8447 28.3263 47.8561C28.3187 47.8676 28.3041 47.8774 28.2825 47.8855C28.2613 47.8937 28.2395 47.8978 28.2173 47.8978ZM28.4676 48.3726C28.4005 48.3726 28.3474 48.364 28.3082 48.3469C28.2694 48.3297 28.2461 48.3056 28.2383 48.2747C28.2309 48.2438 28.2409 48.2077 28.2685 48.1664C28.2962 48.1248 28.3345 48.0884 28.3833 48.0574C28.4323 48.0263 28.4878 48.0022 28.5495 47.985C28.6116 47.9678 28.6761 47.9592 28.7432 47.9592C28.8102 47.9592 28.8632 47.9678 28.902 47.985C28.9412 48.0022 28.9644 48.0263 28.9718 48.0574C28.9794 48.0884 28.9694 48.1248 28.9416 48.1664C28.9141 48.2077 28.8758 48.2438 28.8268 48.2747C28.7782 48.3056 28.7228 48.3297 28.6608 48.3469C28.599 48.364 28.5346 48.3726 28.4676 48.3726ZM28.5044 48.3174C28.5553 48.3174 28.6019 48.3104 28.6441 48.2963C28.6864 48.2823 28.7231 48.2638 28.7541 48.2409C28.7852 48.218 28.8096 48.1932 28.8275 48.1664C28.8453 48.1397 28.854 48.1148 28.8536 48.0917C28.8532 48.0686 28.8413 48.05 28.8179 48.0357C28.7945 48.0215 28.7573 48.0144 28.7064 48.0144C28.6555 48.0144 28.6088 48.0215 28.5664 48.0357C28.5241 48.05 28.4873 48.0686 28.4561 48.0917C28.4249 48.1148 28.4004 48.1397 28.3826 48.1664C28.3648 48.1932 28.3561 48.218 28.3567 48.2409C28.3572 48.2638 28.3692 48.2823 28.3927 48.2963C28.4162 48.3104 28.4534 48.3174 28.5044 48.3174ZM29.2584 48.1237L29.098 48.3643H28.9839L29.2505 47.9644H29.3607L29.3191 48.0269H29.3287C29.3597 48.0066 29.397 47.9903 29.4407 47.9779C29.4845 47.9655 29.5344 47.9592 29.5905 47.9592C29.6408 47.9592 29.6811 47.9648 29.7114 47.9759C29.7418 47.9868 29.7601 48.0035 29.7661 48.0259C29.7722 48.0481 29.764 48.0762 29.7413 48.1102L29.5719 48.3643H29.4578L29.6244 48.1144C29.6453 48.0829 29.6465 48.0585 29.6279 48.0409C29.6094 48.0232 29.5737 48.0144 29.5208 48.0144C29.4844 48.0144 29.449 48.0186 29.4146 48.0272C29.3806 48.0357 29.3499 48.0481 29.3226 48.0644C29.2953 48.0807 29.2739 48.1005 29.2584 48.1237Z",fill:"white"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsx)("clipPath",{id:"clip0_54_16665",children:(0,i.jsx)("rect",{width:"130",height:"11",fill:"white",transform:"translate(13.7891 80)"})}),(0,i.jsx)("clipPath",{id:"clip1_54_16665",children:(0,i.jsx)("rect",{width:"124.128",height:"10.5031",fill:"white",transform:"matrix(1 0 -0.5547 0.83205 51.8691 5.41602)"})}),(0,i.jsx)("clipPath",{id:"clip2_54_16665",children:(0,i.jsx)("rect",{width:"124.128",height:"10.5031",fill:"white",transform:"matrix(1 0 -0.5547 0.83205 44.9844 15.7441)"})}),(0,i.jsx)("clipPath",{id:"clip3_54_16665",children:(0,i.jsx)("rect",{width:"124.128",height:"10.5031",fill:"white",transform:"matrix(1 0 -0.5547 0.83205 38.0977 26.0723)"})}),(0,i.jsx)("clipPath",{id:"clip4_54_16665",children:(0,i.jsx)("rect",{width:"124.128",height:"10.5031",fill:"white",transform:"matrix(1 0 -0.5547 0.83205 31.2129 36.3984)"})}),(0,i.jsx)("clipPath",{id:"clip5_54_16665",children:(0,i.jsx)("rect",{width:"124.128",height:"10.5031",fill:"white",transform:"matrix(1 0 -0.5547 0.83205 24.3281 46.7266)"})})]})]})}function T(e){let{isSubmitting:t}=e;return(0,i.jsx)("div",{className:"bg-[#FDF1E3]/90 h-full fixed inset-0 overflow-y-auto flex items-center flex-col z-[4000]",role:"dialog","aria-modal":"true",children:t?(0,i.jsxs)("div",{className:"m-auto text-center",children:[(0,i.jsx)("div",{className:"max-w-full flex flex-col justify-center items-center",children:(0,i.jsx)("div",{className:"border-gray-300 h-32 w-32 animate-spin rounded-full border-[10px] border-t-[#FF5C39]"})}),(0,i.jsx)("p",{className:"text-[16px] mt-4 w-32",children:"Building your box..."})]}):(0,i.jsxs)("div",{className:"m-auto text-center w-[390px]",children:[(0,i.jsx)("h2",{className:"text-5xl title",children:"Thank y
1ou!"}),(0,i.jsx)("p",{className:"text-[26px] subtitle",children:"We will let you know when your items are ready to ship"}),(0,i.jsx)("div",{className:"max-w-full flex flex-col justify-center items-center mt-16",children:(0,i.jsx)(A,{})})]})})}var B=s(54587),E=s.n(B),O=s(82851),P=s.n(O);function F(e){let{className:t,shippingInfo:s}=e;return s?(0,i.jsxs)("address",{className:"not-italic border-solid border-[2px] border-gray-300 p-[16px] mb-[16px] ".concat(t),children:[(0,i.jsx)("p",{className:"font-bold mb-2",children:"Box shipping address:"}),(0,i.jsxs)("p",{children:[s.first_name||s.firstName," ",s.last_name||s.lastName]}),(0,i.jsxs)("p",{children:[s.address1,s.address2?", ".concat(s.address2):""]}),(0,i.jsxs)("p",{children:[s.city,", ",s.province,", ",s.zip]})]}):null}function R(e){let{product:t,variant:s,onEdit:n,tagText:a,tagIcon:o="none",tooltipText:r}=e,[c,d]=(0,l.useState)(!1);return(0,i.jsx)("li",{className:"customization-card w-auto text-left",children:(0,i.jsxs)("div",{className:"".concat(N().cardContent," grid grid-cols-[1.5fr,2.5fr] items-center bg-white shadow-bbx-card mb-[12px] relative"),children:[(0,i.jsxs)("div",{className:"text-center relative w-full aspect-[1] bg-contain bg-center bg-no-repeat h-full max-w-[176px] max-h-fit",children:[s.image?(0,i.jsx)("img",{src:"".concat(s.image.url,"&width=400"),alt:s.image.altText||"Product image",className:"w-full object-contain max-h-full"}):t.images.map((e,t)=>(0,i.jsx)("img",{src:e.url,alt:"",className:"w-full h-full object-contain"},t)),a&&(0,i.jsxs)("div",{style:{position:"absolute",top:0,left:0,width:"100%"},className:"flex items-center justify-center px-3 py-1 bg-bbx-glimmer z-20 relative","data-testid":"customization-tag",children:["plus"===o&&(0,i.jsx)("span",{className:"mr-2",children:(0,i.jsx)("img",{src:"/images/plus.svg",alt:"plus icon",width:16,height:16})}),(0,i.jsx)("span",{className:"text-white text-sm font-medium",children:a}),"info"===o&&r&&(0,i.jsxs)("span",{className:"ml-2 cursor-pointer relative",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),role:"button",tabIndex:0,"aria-label":"More information",children:[(0,i.jsx)("i",{className:"fa-solid fa-circle-info text-white text-base"}),c&&(0,i.jsxs)("div",{className:"absolute left-1/2 -translate-x-1/2 top-full mt-2 bg-white text-gray-800 p-3 rounded-lg shadow-lg z-30 w-64 text-left",style:{minWidth:"256px"},children:[(0,i.jsx)("div",{className:"text-sm",children:(0,i.jsx)(f.$,{field:r})}),(0,i.jsx)("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 w-0 h-0",style:{borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderBottom:"8px solid white"}})]})]})]})]}),(0,i.jsxs)("div",{className:"py-[24px] px-[24px]",children:[(0,i.jsx)("h4",{className:"font-bold",children:t.vendor}),(0,i.jsx)("p",{className:"mb-[8px]",children:s.title}),n?(0,i.jsx)("button",{type:"button",className:"text-bbx-spark hover:underline",onClick:n,children:"Edit"}):null]})]})})}function U(e){let{className:t}=e;return(0,i.jsx)("div",{className:"flex items-center bg-bbx-spark/10 p-4 ".concat(t),children:(0,i.jsx)("p",{className:"text-sm text-center text-bbx-spark",children:"Once you submit your selection, we'll start processing your order, and changes will no longer be possible"})})}function D(e){let{shippingInfo:t,selections:s,bonusItemSelections:n=[],updateStep:a,submitSelections:r,customizationType:c,subscriptionProductSKU:d,bonusItemConfig:u}=e,C=b.find(e=>e.product_skus.some(e=>e.sku===d)),m=v("NMC"===c?null==C?void 0:C.nmc.customization_groups:null==C?void 0:C.rmc.customization_groups),x=(("NMC"===c?null==C?void 0:C.nmc.additional_products:null==C?void 0:C.rmc.additional_products)||[]).filter(e=>!e.hide&&e.variant_id),[p,h]=(0,l.useState)([]);if((0,l.useEffect)(()=>{(async()=>{if(x.length>0){let e=x.map(e=>"gid://shopify/ProductVariant/".concat(e.variant_id)),t=await (0,w.Vu)(e);h(e.map(e=>{let s=t.find(t=>t.sampleVariants.some(t=>t.id===e)),i=null==s?void 0:s.sampleVariants.find(t=>t.id===e);return i?{product:s,variant:i}:null}).filter(e=>null!==e))}})()},[]),!C)return console.error("No box configuration found for SKU: ".concat(d)),(0,i.jsx)("div",{children:"Error: No box configuration found"});
1let f=o.oM,g=o.w$,L=o.C8,H=o.pd;return(0,i.jsxs)("div",{className:"flex max-md:block gap-[60px] w-[100%] max-w-[900px] px-[30px]",children:[(0,i.jsx)(F,{shippingInfo:t,className:"hidden max-md:block"}),(0,i.jsx)(U,{className:"hidden max-md:block mb-4"}),(0,i.jsxs)("ul",{className:"gap-[16px] w-[60%] max-md:w-full mb-[24px]",children:[n.filter(e=>!e.hideFromSummary).map(e=>(0,i.jsx)(R,{product:e.product,variant:e.variant,tagText:null==u?void 0:u.tagText,tagIcon:(null==u?void 0:u.tooltipText)?"info":"none",tooltipText:null==u?void 0:u.tooltipText,onEdit:void 0},e.variant.id)),m&&P().zip(s,m).map((e,t)=>{let[s,l]=e;return null!=s&&!!s.selections&&null!=s&&!!s.selections.length&&(null==s?void 0:s.selections.map(e=>(0,i.jsx)(R,{product:e.product,variant:e.variant,onEdit:()=>a(t)},t)))}),x.map(e=>{let t=p.find(t=>t.variant.id.endsWith(e.variant_id||"-"));return t?(0,i.jsx)(R,{product:t.product,variant:t.variant,tagText:e.tag_text||void 0,tagIcon:e.tag_icon},t.variant.id):null}),f[0]&&(0,i.jsx)("li",{className:"customization-card w-auto text-left",children:(0,i.jsxs)("div",{className:"".concat(N().cardContent," grid grid-cols-[1.5fr,2.5fr] items-center bg-white shadow-bbx-card mb-[12px]"),children:[(0,i.jsx)("div",{className:"text-center relative w-full aspect-[1] bg-contain bg-center bg-no-repeat h-full max-w-[176px]",children:(0,i.jsx)(E(),{src:"".concat(g.url,"&width=400"),className:"w-full object-contain max-h-full",alt:g.alt||"Birchbox Image",layout:"fill"})}),(0,i.jsx)("div",{className:"py-[24px] px-[24px]",children:(0,i.jsx)("h4",{className:"font-bold",children:f[0].text})})]})})]}),(0,i.jsxs)("div",{className:"w-[40%] max-md:w-full",children:[(0,i.jsx)(F,{shippingInfo:t,className:"max-md:hidden"}),(0,i.jsx)("button",{className:"button button-action w-full mb-2 max-md:hidden disabled:",type:"button",onClick:r,children:"Confirm & Submit"}),(0,i.jsx)(U,{className:"max-md:hidden mb-4"}),(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("p",{className:"font-bold",children:"Need Help?"}),(0,i.jsxs)("p",{children:[(0,i.jsxs)("a",{className:"underline",href:L,target:"_blank",rel:"noopener noreferrer",children:["FAQ"," "]}),"or"," ",(0,i.jsx)("a",{className:"underline",rel:"noopener noreferrer",target:"_blank",href:"mailto:".concat(H),children:"Contact Support"})]})]})]})]})}function K(e){var t,s;let{isModalOpen:a,closeModal:o,subscription:r,shopifyOrder:c,revalidateChargeOrder:d,revalidateOnly:u,customizationType:C,subscriptionProductSKU:m,isPreview:x}=e,[p,h]=(0,l.useState)(0),[L,j]=(0,l.useState)([]),[w,_]=(0,l.useState)(!1),[N,Z]=(0,l.useState)(!1),{selections:k,bonusItemSelections:z,bonusItemConfig:I,addSelectionToStep:A,deleteSelectionToStep:B,loading:E,reviewSubmitted:O,submitSelections:P,restoreSelectionsFromCustomAttributes:F}=y(C,m),R=(0,n.useRouter)(),U=k?k[p]:null;(0,l.useEffect)(()=>{h(0),j([])},[m,C]),(0,l.useEffect)(()=>(a?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[a]),(0,l.useEffect)(()=>{let e=!1;return c.customAttributes.length>0&&F(c.customAttributes,c.id).then(t=>{!e&&t.hasStaleAttributes&&(Z(!0),fetch("/api/shopify/box-clear-stale-customization",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderId:c.id})}).then(()=>(null!=u?u:d)()))}),()=>{e=!0}},[c.customAttributes,c.id,d,u]),(0,l.useEffect)(()=>{N&&0===c.customAttributes.length&&Z(!1)},[N,c.customAttributes.length]),(0,l.useEffect)(()=>{J||G()},[p]);let K=b.find(e=>e.product_skus.some(e=>e.sku===m));if(!K)return console.error("No box configuration found for SKU: ".concat(m)),null;let q=v("NMC"===C?K.nmc.customization_groups:K.rmc.customization_groups),W=(0,H.OQ)("NMC"===C?K.nmc.steps_header:K.rmc.steps_header),Y="NMC"===C?K.nmc.review_description:K.rmc.review_description||"",$="NMC"===C?K.nmc.post_submit_redirect:K.rmc.post_submit_redirect,Q=q[p],J=p>=q.length-1,X=async()=>{if(x)return void alert("Preview mode — submission is disabled. No changes have been saved.");await P(c.id),console.log("Submitting selections and closing modal - revalidateChargeOrder"),setTimeout(()=>{d(),$&&"Members Market"===$?R.push("/members-market"):o()},3e3)},G=async()=>{_(!0);try{let e="NMC"===C?K.nmc.stock_tolerance:K.rmc.stock_tolerance,t=await (0,g.vf)(Q.collection_slug,C,null!=e?e:5);j(t),console.log("Updating product samples:",t)}catch(e){console.error("Error fetching customization products:",e),j([])}finally{_(!1)}},ee=async()=>{await d(),setTimeout(()=>{F(c.customAttributes,c.id)},2e3),o()};return a?(0,i.jsxs)("div",{id:"customizationModal",className:"fixed inset-0 pt-16 overflow-y-auto flex items-center flex-col z-50 bg-[#FDF1E3] pb-[100px] px-2",tabIndex:-1,role:"dialog","aria-modal":"true",children:[(w||E||N)&&(0,i.jsx)("div",{className:"bg-[#FDF1E3]/90 h-full fixed inset-0 overflow-y-auto flex items-center flex-col z-[4000]",role:"dialog","aria-modal":"true",children:(0,i.jsxs)("div",{className:"m-auto text-center",children:[(0,i.jsx)("div",{className:"max-w-full flex flex-col justify-center items-center",children:(0,i.jsx)("div",{className:"border-gray-300 h-32 w-32 animate-spin rounded-full border-[10px] border-t-[#FF5C39]"})}),(0,i.jsx)("p",{className:"text-[16px] mt-4 w-32",children:"Saving your choices..."})]})}),(0,i.jsxs)("div",{className:"w-full max-w-[600px] text-center mb-16",children:[(0,i.jsx)("h2",{className:"text-3xl xl:text-4xl title mb-[30px]",children:(0,i.jsx)(f.$,{field:W})}),(0,i.jsx)(S,{currentStep:p,customizationType:C,subscriptionProductSKU:m}),(0,i.jsxs)("h3",{className:"mt-4 lg:mt-6 text-[18px] max-sm:text-[16
1px]",children:[J&&(0,i.jsx)(f.$,{field:Y}),!J&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("strong",{children:"Select ".concat(null==(t=k[p])?void 0:t.maxItems)})," ",(null==(s=k[p])?void 0:s.maxItems)===1?"product":"products"," from this group"]})]})]}),!J&&(0,i.jsx)(V,{productSamples:L,currentStep:p,selections:k,addSelectionToStep:A,deleteSelectionToStep:B}),J&&(0,i.jsx)(D,{shippingInfo:null==r?void 0:r.address,selections:k,bonusItemSelections:z,updateStep:h,submitSelections:X,customizationType:C,subscriptionProductSKU:m,bonusItemConfig:I}),(0,i.jsx)(M,{closeModal:ee,currentStep:p,setStep:h,currentSelection:U,submitSelections:X,customizationType:C,subscriptionProductSKU:m}),O&&(0,i.jsx)(T,{isSubmitting:E})]}):null}var q=s(62429);function W(e){var t,s;let{isModalOpen:a,closeModal:o,subscription:r,shopifyOrder:c,revalidateChargeOrder:d,revalidateOnly:u,customizationType:C,subscriptionProductSKU:m}=e,[x,p]=(0,l.useState)(!1),[h,L]=(0,l.useState)(0),[j,w]=(0,l.useState)([]),[_,N]=(0,l.useState)(!1),[Z,k]=(0,l.useState)(!1),{selections:z,bonusItemSelections:I,bonusItemConfig:A,addSelectionToStep:B,deleteSelectionToStep:E,loading:O,reviewSubmitted:P,submitStepSelections:F,confirmSelections:R,restoreSelectionsFromCustomAttributes:U,submitBonusItems:K}=y(C,m),q=(0,n.useRouter)(),W=z?z[h]:null;(0,l.useEffect)(()=>{L(0),p(!1),w([])},[m,C]),(0,l.useEffect)(()=>(a?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll"),()=>{document.body.classList.remove("no-scroll")}),[a]),(0,l.useEffect)(()=>{let e=!1;return c.customAttributes.length>0&&U(c.customAttributes,c.id).then(t=>{!e&&t.hasStaleAttributes&&(k(!0),fetch("/api/shopify/box-clear-stale-customization",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderId:c.id})}).then(()=>(null!=u?u:d)()))}),()=>{e=!0}},[c.customAttributes,c.id,d,u]),(0,l.useEffect)(()=>{Z&&0===c.customAttributes.length&&k(!1)},[Z,c.customAttributes.length]),(0,l.useEffect)(()=>{if(a&&I.length>
10&&c.id){let e=c.customAttributes.find(e=>"bonus_item_ids"===e.key),t=e?e.value.split(","):[],s=I.map(e=>e.variant.id);t.length===s.length&&s.every(e=>t.includes(e))?console.log("Bonus items already in order, skipping submission"):(console.log("Bonus items changed, submitting...",{existingIds:t,currentIds:s}),K(c.id))}},[a,I.length,c.id]),(0,l.useEffect)(()=>{ee||es()},[h]);let Y=b.find(e=>e.product_skus.some(e=>e.sku===m));if(!Y)return console.error("No box configuration found for SKU: ".concat(m)),null;let $=v("NMC"===C?Y.nmc.customization_groups:Y.rmc.customization_groups),Q=(0,H.OQ)("NMC"===C?Y.nmc.steps_header:Y.rmc.steps_header),J="NMC"===C?Y.nmc.review_description:Y.rmc.review_description||"",X="NMC"===C?Y.nmc.post_submit_redirect:Y.rmc.post_submit_redirect,G=$[h],ee=h>=$.length-1,et=async()=>{await R(c.id),console.log("Submitting selections and closing modal - revalidateChargeOrder"),setTimeout(()=>{d(),X&&"Members Market"===X?q.push("/members-market"):o()},3e3)},es=async()=>{N(!0);try{let e="NMC"===C?Y.nmc.stock_tolerance:Y.rmc.stock_tolerance,t=await (0,g.vf)(G.collection_slug,C,null!=e?e:5);w(t),console.log("Updating product samples:",t)}catch(e){console.error("Error fetching customization products:",e),w([])}finally{N(!1)}},ei=async e=>{x||(p(!0),await F(c.id,h),L(e),p(!1))},el=async()=>{await d(),setTimeout(()=>{U(c.customAttributes,c.id)},2e3),o()};return a?(0,i.jsxs)("div",{id:"customizationModal",className:"fixed inset-0 pt-16 overflow-y-auto flex items-center flex-col z-50 bg-[#FDF1E3] pb-[100px] px-2",tabIndex:-1,role:"dialog","aria-modal":"true",children:[(_||O||Z)&&(0,i.jsx)("div",{className:"bg-[#FDF1E3]/90 h-full fixed inset-0 overflow-y-auto flex items-center flex-col z-[4000]",role:"dialog","aria-modal":"true",children:(0,i.jsxs)("div",{className:"m-auto text-center",children:[(0,i.jsx)("div",{className:"max-w-full flex flex-col justify-center items-center",children:(0,i.jsx)("div",{className:"border-gray-300 h-32 w-32 animate-spin rounded-full border-[10px] border-t-[#FF5C39]"})}),(0,i.jsx)("p",{className:"text-[16px] mt-4 w-32",children:"Saving your choices..."})]})}),(0,i.jsxs)("div",{className:"w-full max-w-[600px] text-center mb-16",children:[(0,i.jsx)("h2",{className:"text-3xl xl:text-4xl title mb-[30px]",children:(0,i.jsx)(f.$,{field:Q})}),(0,i.jsx)(S,{currentStep:h,customizationType:C,subscriptionProductSKU:m}),(0,i.jsxs)("h3",{className:"mt-4 lg:mt-6 text-[18px] max-sm:text-[16px]",children:[ee&&(0,i.jsx)(f.$,{field:J}),!ee&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("strong",{children:"Select ".concat(null==(t=z[h])?void 0:t.maxItems)})," ",(null==(s=z[h])?void 0:s.maxItems)===1?"product":"products"," from this group"]})]})]}),!ee&&(0,i.jsx)(V,{productSamples:j,currentStep:h,selections:z,addSelectionToStep:B,deleteSelectionToStep:E}),ee&&(0,i.jsx)(D,{shippingInfo:null==r?void 0:r.address,selections:z,bonusItemSelections:I,updateStep:L,submitSelections:et,customizationType:C,subscriptionProductSKU:m,bonusItemConfig:A}),(0,i.jsx)(M,{closeModal:el,currentStep:h,setStep:ei,currentSelection:W,submitSelections:et,customizationType:C,subscriptionProductSKU:m}),P&&(0,i.jsx)(T,{isSubmitting:O})]}):null}var Y=s(36346),$=s.n(Y),Q=s(14059);function J(e){return e>48?"".concat(Math.floor(e/24)," days left"):"".concat(Math.floor(e)," hours left")}function X(e){let[t,s]=e.split(":").map(Number);return{hours:t,minutes:s}}var G=s(71984);function ee(e){var t,s;let{shippingInfo:n,chargeShopifyOrder:a,setIsModalOpen:o,numberOrders:r,productName:c,index:u,subscriptionId:C,isEndingSoon:p=!1,remainingBoxes:h,subscriptionSKU:f,isDunning:g=!1}=e,{data:L}=(0,x.useSession)(),[v,H]=(0,l.useState)(null),[j,w]=(0,l.useState)(!1),[y,_]=(0,l.useState)(!1),N=(null==v||null==(s=v.lineItems)||null==(t=s.nodes)?void 0:t.filter(e=>e.currentQuantity>0))||[];(0,l.useEffect)(()=>{!async function(){if(null==a?void 0:a.id){let e=a.id.split("/").pop(),t=await fetch("/api/shopify/orderitems/".concat(e)),s=await t.json();s.success&&H({...s.data,lineItems:{...s.data.lineItems,nodes:s.data.lineItems.nodes.filter(e=>!e.sellingPlan)}})}}()},[null==a?void 0:a.id]);let{customizationType:M,customizationHoursLeft:S,timeLeftMessage:Z,boxPartiallyCustomized:k,customizableBox:z}=function(e,t,s){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return{customizationType:null,customizationHoursLeft:null,timeLeftMessage:null,boxPartiallyCustomized:!1,customizableBox:null};let l=b.find(e=>e.product_skus.some(e=>e.sku===s));if(!l)return console.error("No box configuration found for SKU: ".concat(s)),{
1customizationType:null,customizationHoursLeft:null,timeLeftMessage:null,boxPartiallyCustomized:!1,customizableBox:null};let n=null;1===t?n="NMC":t>1&&(n="RMC");let a=0,o="",r=!0,c=!1;if("RMC"===n){if(r=e.tags.includes("rmc_box_customized"),c=e.tags.includes("rmc_box_partial_customized"),i)a=72-(0,Q.gR)(e.processedAt);else{let{start:e,close:t}=function(e){var t,s,i,l;if(e.use_custom_dates)return{start:new Date(e.customization_start_date),close:new Date(e.customization_close_date)};let n=new Date,a=n.getUTCFullYear(),o=n.getUTCMonth(),r=null!=(t=e.default_start_day)?t:1,c=null!=(s=e.default_end_day)?s:5,{hours:d,minutes:u}=X(null!=(i=e.default_start_time)?i:"07:00"),{hours:C,minutes:m}=X(null!=(l=e.default_end_time)?l:"06:59");return{start:new Date(Date.UTC(a,o,r,d,u,0)),close:new Date(Date.UTC(a,o,c,C,m,59))}}(l.rmc),s=new Date<e,i=(0,Q.Xb)(new Date().toISOString(),t.toISOString());!s&&i>0&&(a=i)}o=J(a)}else"NMC"===n&&(r=e.tags.includes("box_customized"),c=!1,o=J(a=l.nmc.customization_hours-(0,Q.gR)(e.processedAt)));let d=!r&&a>0;return{customizationType:n,customizationHoursLeft:a,timeLeftMessage:o,boxCustomized:r,boxPartiallyCustomized:c,customizableBox:d}}(a,r,f,g),I=z&&!(null==v?void 0:v.cancelledAt),V=async()=>{try{_(!0);let e=await (0,m.AZ)(null==L?void 0:L.shopifyAccessToken);if(!e)throw Error("Failed to get Recharge session");await (0,m.pl)(e,Number(C)),window.location.reload()}catch(e){console.error("Failed to reactivate subscription:",e)}finally{_(!1)}};return(0,i.jsxs)("li",{className:"border-t border-gray-200 py-6",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,i.jsx)("div",{className:"flex flex-col",children:(0,i.jsx)("p",{className:"text-lg font-medium",children:c})}),(0,i.jsx)(d(),{href:"/profile/subscriptions/".concat(C),children:(0,i.jsx)("span",{className:"underline cursor-pointer",children:q.j0._})})]}),(0,i.jsxs)("div",{className:"flex max-md:flex-col items-start md:items-center justify-between mb-6 gap-4",children:[(0,i.jsxs)("address",{className:"not-italic",children:[(0,i.jsxs)("p",{className:"",children:[(null==n?void 0:n.first_name)||(null==n?void 0:n.firstName)," ",(null==n?void 0:n.last_name)||(null==n?void 0:n.lastName)]}),(0,i.jsxs)("p",{className:"text-gray-600",children:[null==n?void 0:n.address1,(null==n?void 0:n.address2)?", ".concat(null==n?void 0:n.address2):""]}),(0,i.jsxs)("p",{className:"text-gray-600",children:[null==n?void 0:n.city,", ",null==n?void 0:n.province,", ",null==n?void 0:n.zip]})]}),I?(0,i.jsxs)("button",{type:"button",onClick:()=>o(M),className:"button button-action text-sm max-md:w-full flex items-center gap-2 justify-center",children:[!k&&(0,i.jsx)("img",{src:"/images/customize-box.svg",alt:"",className:"w-4 h-4"}),k?"Continue Customizing":"Customize"]}):(0,i.jsx)("div",{className:"".concat(!S||S<=0||(null==v?void 0:v.cancelledAt)?"bg-gray-200":"bg-green-100"," rounded-md p-3 max-md:w-full"),children:(0,i.jsxs)("div",{className:"flex items-center gap-2 max-md:justify-center",children:[S&&S>0&&!(null==v?void 0:v.cancelledAt)?(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#5f6368",children:(0,i.jsx)("path",{d:"M460-171.46v-297.08L200-619.08v283.23q0 6.16 3.08 11.54 3.07 5.39 9.23 9.23L460-171.46Zm40 0 247.69-143.62q6.16-3.84 9.23-9.23 3.08-5.38 3.08-11.54v-283.23L500-468.54v297.08Zm-52.31 38.92L192.31-279.69q-15.16-8.69-23.73-23.62-8.58-14.92-8.58-32.31v-288.76q0-17.39 8.58-32.31 8.57-14.93 23.73-23.62l255.38-147.15q15.16-8.69 32.31-8.69 17.15 0 32.31 8.69l255.38 147.15q15.16 8.69 23.73 23.62 8.58 14.92 8.58 32.31v288.76q0 17.39-8.58 32.31-8.57 14.93-23.73 23.62L512.31-132.54q-15.16 8.69-32.31 8.69-17.15 0-32.31-8.69Z"})}):null,(0,i.jsx)("span",{className:"text-sm",children:!S||S<=0||(null==v?void 0:v.cancelledAt)?"Customization Closed":"Preparing to ship"})]})})]}),!p&&N.length>0?(0,i.jsx)("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-4",children:(0,i.jsxs)("div",{className:"flex items-center gap-4 flex-grow w-full justify-between",children:[(0,i.jsxs)("div",{className:"flex items-center gap-4",children:[(0,i.jsx)("h3",{className:"font-medium whitespace-pre-line",children:q.j0.d.split(" ").join("\n")}),(0,i.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,i.jsx)("div",{className:"hidden md:flex items-center gap-0.5",children:N.map((e,t)=>{var s,l;return(null==(l=e.variant)||null==(s=l.image)?void 0:s.url)&&(0,i.jsx)("div",{className:"w-12 h-12 bg-gray-50 p-2 rounded-md",children:(0,i.jsx)(E(),{src:e.variant.image.url,alt:e.title,width:48,height:48,className:"object-contain"})},"".concat(null==v?void 0:v.id,"--").concat(e.variant.id,"--").concat(t))})}),(0,i.jsxs)("div",{className:"flex md:hidden items-center gap-0.5",children:[N.slice(0,4).map((e,t)=>{var s,l;return(null==(l=e.variant)||null==(s=l.image)?void 0:s.url)&&(0,i.jsx)("div",{className:"w-12 h-12 bg-gray-50 p-2 rounded-md",children:(0,i.jsx)(E(),{src:e.variant.image.url,alt:e.title,width:48,height:48,className:"object-contain"})},"".concat(null==v?void 0:v.id,"--").concat(e.variant.id,"--").concat(t))}),N.length>4&&(0,i.jsx)("div",{className:"w-12 h-12 bg-gray-50 p-2 rounded-md flex items-center justify-center",children:(0,i.jsx)("span",{className:"text-gray-500 text-sm",children:"..."})})]})]})]}),(0,i.jsx)("button",{type:"button",onClick:()=>w(!0),className:"text-bbx-spark hover:underline",children:"View"})]})}):null,p&&(0,i.jsx)("div",{className:"bg-bbx-spark/10 rounded-md p-4 mb-6",children:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM11 15H9V13H11V15ZM11 11H9V5H11V11Z",fill:"#F27168"})}),(0,i.jsx)("span",{className:"font-medium",children:"Subscription ending soon!"})]}),(0,i.jsxs)("p",{className:"pl-7 text-sm",children:["You'll still receive your"," ",1===h?"final box":"".concat(h," remaining boxes"),", but your subscription won't renew."]}),(0,i.jsx)("div",{className:"pl-7 mt-1",children:(0,i.jsx)("button",{onClick:V,disabled:y,className:"text-sm text-bbx-spark font-medium underline",type:"button",children:y?"Reactivating...":"Reactivate"})})]})}),v&&(0,i.jsx)(G.A,{order:{fulfillmentOrderId:v.id,fulfillmentLineItemId:v.id,createdAt:new Date().toISOString(),month:new Date().toLocaleStr
1ing("default",{month:"long"}),fulfillAt:new Date().toISOString(),customizationExpiration:new Date().toISOString(),selectionType:"CUSTOMIZED_BOX",productSelections:N.map((e,t)=>{var s,i,l;return{postion:t+1,imageUrl:null==(i=e.variant)||null==(s=i.image)?void 0:s.url,variantId:null==(l=e.variant)?void 0:l.id}}),shippingDetail:{shippedAt:"",deliveredAt:"",trackingNumber:"",trackingUrl:"",fulfillmentStatus:"FULFILLED",orderNumber:v.id}},activeOrder:j?v.id:null,closeModal:()=>w(!1)})]})}function et(e){let{shippingInfo:t,chargeShopifyOrder:s,setIsModalOpen:n,numberOrders:a,productName:o,subscriptionId:r,onReactivate:c,index:u}=e,[C,m]=(0,l.useState)(!1),x=async()=>{try{m(!0),await c()}catch(e){console.error("Failed to reactivate subscription:",e)}finally{m(!1)}};return(0,i.jsxs)("li",{className:"border-t border-gray-200 pt-6",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,i.jsx)("p",{className:"text-lg font-medium",children:o}),(0,i.jsx)(d(),{href:"/profile/subscriptions/".concat(r),children:(0,i.jsx)("span",{className:"underline cursor-pointer",children:q.j0._})})]}),(0,i.jsxs)("div",{className:"flex max-md:flex-col items-start md:items-center justify-between mb-6 gap-4",children:[(0,i.jsxs)("address",{className:"not-italic",children:[(0,i.jsxs)("p",{className:"",children:[(null==t?void 0:t.first_name)||(null==t?void 0:t.firstName)," ",(null==t?void 0:t.last_name)||(null==t?void 0:t.lastName)]}),(0,i.jsxs)("p",{className:"text-gray-600",children:[null==t?void 0:t.address1,(null==t?void 0:t.address2)?", ".concat(null==t?void 0:t.address2):""]}),(0,i.jsxs)("p",{className:"text-gray-600",children:[null==t?void 0:t.city,", ",null==t?void 0:t.province,", ",null==t?void 0:t.zip]})]}),(0,i.jsx)("button",{type:"button",onClick:x,disabled:C,className:"button button-secondary text-sm bg-bbx-coral hover:bg-bbx-coral-dark max-md:w-full",children:C?"Reactivating...":"Reactivate"})]})]})}let es={id:"preview-mode",tags:[],cancelledAt:null,processedAt:new Date().toISOString(),customAttributes:[],shippingAddress:{address1:"",address2:"",city:"",firstName:"",lastName:"",province:"",zip:""},lineItems:{nodes:[]}},ei=function(e){let{initialOrder:t,activeSubscriptions:s,cancelledSubscriptions:n,previewConfig:a}=e,{data:c}=(0,x.useSession)(),{loading:f,revalidateAll:b}=(0,C.A)(),[g,L]=(0,l.useState)(t||null),v=s||[],H=n||[],[j,w]=(0,l.useState)(!1),[y,_]=(0,l.useState)(null),[N,M]=(0,l.useState)(!1),[S,Z]=(0,l.useState)(null),k=null!==y?v[y]:null,z=e=>{var t;return!(null==(t=e.tags)?void 0:t.some(e=>"box_customized"===e.toLowerCase()))},I=o.Q7,V=o.C8,A=o.pd;(0,l.useEffect)(()=>{g&&(z(g)?(_(null),w(!0),Z(null)):(w(!1),Z("This order has already been customized.")))},[]);let T=async()=>{await b()},B=async()=>{var e,t,s;if(u.Ay.capture("box_customization_submitted",{subscription_id:null!=(e=null==k?void 0:k.id)?e:null,order_id:null!=(t=null==g?void 0:g.id)?t:null}),await b(),null==g?void 0:g.id){let e=await (0,r.Y)([g.id]),t=null==e?void 0:e[0];if(t){let e=(null==(s=t.lineItems.nodes.find(e=>{var t;return!!(null==(t=e.sellingPlan)?void 0:t.sellingPlanId)}))?void 0:s.sku)||null,i={...t,subscriptionSKU:e};L(i),z(i)?(_(null),w(!0)):w(!1)}else w(!1),L(null)}else w(!1),L(null)},[E,O]=(0,l.useState)(!1),P=E?H:H.slice(0,2),F=async e=>{try{let t=await (0,m.AZ)(null==c?void 0:c.shopifyAccessToken);if(!t)throw Error("Failed to get Recharge session");await (0,m.pl)(t,e),u.Ay.capture("subscription_reactivated",{subscription_id:e}),await b()}catch(e){u.Ay.captureException(e),console.error("Failed to reactivate subscription:",e)}};if(a){let e=async()=>{};return(0,i.jsxs)("div",{className:"section",children:[(0,i.jsx)("div",{className:"bg-yellow-100 border border-yellow-400 text-yellow-800 px-4 py-3 text-center font-medium",children:"Preview Mode — You are viewing a read-only preview. No changes will be saved."}),(0,i.jsx)(K,{isModalOpen:!0,closeModal:e,subscription:null,shopifyOrder:es,revalidateChargeOrder:e,revalidateOnly:e,customizationType:a.previewType,subscriptionProductSKU:a.previewSku,isPreview:!0})]})}if(f||N)return(0,i.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-white/50 pointer-events-none",children:(0,i.jsx)(h.A,{})});let R=null;if(null==k?void 0:k.lastBox){var U,D;if("RMC"!==k.customizationType||g){let e=null==(D=k.lastBox)?void 0:D.lineItems.nodes.find(e=>{var t;return!!(null==(t=e.sellingPlan)?void 0:t.sellingPlanId)||e.sku.startsWith("bb-box")||e.sku.startsWith("signature-box")}),t=k.sku||(null==e?void 0:e.sku)||"";if(!t)return console.error("No SKU found for selected subscription"),(0,i.jsx)("div",{children:"Error: No SKU found for selected subscription"});R=(0,i.jsx)(K,{isModalOpen:j,closeModal:()=>{w(!1),_(null)},subscription:k,shopifyOrder:k.lastBox,revalidateChargeOrder:B,revalidateOnly:T,customizationType:"NMC",subscriptionProductSKU:t})}else{let e=null==(U=k.lastBox)?void 0:U.lineItems.nodes.find(e=>{var t;return!!(null==(t=e.sellingPlan)?void 0:t.sellingPlanId)||e.sku.startsWith("bb-box")||e.sku.startsWith("signature-box")}),t=k.sku||(null==e?void 0:e.sku)||"";if(!t)return console.error("No SKU found for selected subscription"),(0,i.jsx)("div",{children:"Error: No SKU found for selected subscription"});R=(0,i.jsx)(W,{isModalOpen:j,closeModal:()=>{w(!1),_(null)},subscription:k,shopifyOrder:k.lastBox,revalidateChargeOrder:B,revalidateOnly:T,customizationType:"RMC",subscriptionProductSKU:t})}}else if(g&&j&&z(g)){if(!g.subscriptionSKU)return console.error("No subscription SKU found for initial order"),(0,i.jsx)("div",{children:"Error: No subscription SKU found for initial order"});R=(0,i.jsx)(K,{isModalOpen:j,closeModal:()=>{w(!1),_(null)},subscription:null,shopifyOrder:g,revalidateChargeOrder:B,revalidateOnly:T,customizationType:"NMC",subscriptionProductSKU:g.subscriptionSKU})}return v.length||H.length||g?(0,i.jsxs)("div",{className:"section",children:[R,S&&(0,i.jsx)("div",{className:"container mb-6",children:(0,i.jsxs)("div",{className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative",role:"alert",children:[(0,i.jsx)("strong",{className:"font-bold",children:"Error: "}),(0,i.jsx)("span",{className:"block sm:inline",children:S})]})}),(0,i.jsx)("section",{className:"customization-wrapper",children:(0,i.jsxs)("div",{className:"container grid md:grid-cols-2 lg:grid-cols-2 max-lg:gap-y-10 md:gap-x-20 lg:gap-x-40",children:[(0,i.jsxs)("div",{className:"flex flex-col order-2 md:order-1",children:[(0,i.jsx)("header",{className:"hidden md:block lg:block mb-8",children:(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(p.A,{className:"w-8 fill-bbx-style"}),(0,i.jsx)("h2",{className:"text-4xl xl:text-5xl title",children:q.vS.D})]})}),v.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("h3",{className:"text-lg font-medium mb-4",children:["Active Subscriptions (",v.length,")"]}),(0,i.jsx)("ul",{children:v.map((e,t)=>{var s;let l=null==(s=e.lastBox)?void 0:s.lineItems.nodes.find(e=>{var t;return!!(null==(t=e.sellingPlan)?void 0:t.sellingPlanId)||e.sku.startsWith("bb-box")||e.sku.startsWith("signature-box")}),n=e.sku||(null==l?void 0:l.sku)||"";return(0,i.jsx)(ee,{shippingInfo:e.address,chargeShopifyOrder:e.lastBox||null,setIsModalOpen:()=>{_(t),w(!0)},numberOrders:e.numOrders,productName:e.product_title,index:t,subscriptionId:e.id,isEndingSoon:e.isEndingSoon,remainingBoxes:e.remainingBoxes,subscriptionSKU:n,isDunning:e.isDunning},e.id)})})]}),H.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("h3",{className:"text-lg font-medium mb-4 mt-8",children:["Inactive Subscriptions (",H.length,")"]}),(0,i.jsx)("ul",{children:P.map((e,t)=>(0,i.jsx)(et,{shippingInfo:e.address,chargeShopifyOrder:e.lastBox||null,setIsModalOpen:()=>{},numberOrders:e.numOrders,productName:e.product_title,subscriptionId:e.id,onReactivate:()=>F(Number(e.id)),index:v.length+t},e.id))}),H.length>2&&(0,i.jsx)("button",{type:"button",onClick:()=>O(!E),className:"text-bg-bbx-style underline text-sm",children:E?"Show less":"Show ".concat(H.length-2," more")})]}),(0,i.jsxs)("div",{className:"text-center mt-8",children:[(0,i.jsx)("p",{className:"font-bold",children:"Need Help?"}),(0,i.jsxs)("p",{children:[(0,i.jsx)("a",{className:"underline",href:V,target:"_blank",rel:"noopener noreferrer",children:"FAQ"}),"  ","or","  ",(0,i.jsx)("a",{className:"underline",rel:"noopener noreferrer",target:"_blank",href:"mailto:".concat(A),children:"Contact Support"})]})]})]}),(0,i.jsxs)("div",{className:"order-1 lg:order-2",children:[(0,i.jsx)("header",{className:"block md:hidden mb-6",children:(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(p.A,{className:"w-8 fill-bbx-style"}),(0,i.jsx)("h2",{className:"text-4xl xl:text-5xl title",children:q.vS.D})]})}),(0,i.jsx)("figure",{className:$()["image-with-background"],children:(0,i.jsx)("img",{src:I.url,className:"relative block max-w-full w-full object-cover -top-4 -left-4 lg:-top-16 lg:-left-16",alt:I.alt||"Birchbox Image"})})]})]})})]}):(0,i.jsx)("div",{className:"container",children:(0,i.jsxs)("div",{className:"mx-auto mt-6 lg:mt-12 max-w-[500px] text-center",children:[(0,i.jsx)("h3",{className:"pt-8 text-2xl mb-8",children:"You don't currently have any active subscriptions, follow the link below to join"}),(0,i.jsx)(d(),{legacyBehavior:!0,href:"/membership",children:(0,i.jsx)("a",{className:"button button-primary shrink-0 max-lg:w-full",children:"Purchase a Subscription"})})]})})};function el(){let e=o.DD[0].Qq,t=(0,n.useRouter)(),[s,c]=(0,l.useState)(!1),[d,u]=(0,l.useState)(null),{activeSubscriptions:m,cancelledSubscriptions:x}=(0,C.A)(),p=t.isReady?function(e){let t=Array.isArray(e.preview)?e.preview[0]:e.preview,s=Array.isArray(e.sku)?e.sku[0]:e.sku,i=Array.isArray(e.type)?e.type[0]:e.type;return"bb-preview-x7k2m4p9"===t&&s?{isPreview:!0,previewSku:s,previewType:"RMC"===i?"RMC":"NMC"}:null}(t.query):null;return((0,l.useEffect)(()=>{let e=async()=>{let{orderId:e}=t.query;if(e)try{c(!0);let t=await (0,r.Y)([e]);if(t&&t.length>0){var s;let e=(null==(s=t[0].lineItems.nodes.find(e=>{var t;return!!(null==(t=e.sellingPlan)?void 0:t.sellingPlanId)}))?void 0:s.sku)||null;u({...t[0],subscriptionSKU:e})}}catch(e){console.error("Failed to retrieve order:",e)}finally{c(!1)}};t.isReady&&e()},[t.isReady,t.query]),s)?(0,i.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-white/50 pointer-events-none",children:(0,i.jsx)(h.A,{})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.bV,{title:e}),(0,i.jsx)(ei,{initialOrder:d,activeSubscriptions:m,cancelledSubscriptions:x,previewConfig:p})]})}el.Layout=s(18813).A},19958:(e,t,s)=>{"use strict";s.d(t,{V4:()=>c,rT:()=>d,vf:()=>u});var i=s(85391),l=s(57629),n=s(33568),a=s(93890);let o="\n	query getCollectionProducts(\n		$collectionHandle: String\n		$first: Int = 20\n	) {\n		collection(handle: $collectionHandle) {\n			id\n			title\n			handle\n			products(\n				first: $first\n			) {\n				edges {\n					node {\n						...collectionProduct\n					}\n				}\n			}\n		}\n	}\n\n	".concat(n.If,"\n	").concat(a.G,"\n");var r=s(51725);let c=20,d=async function(e){var t,s;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{endCursor:null,sortBy:"COLLECTION_DEFAULT",reverse:!1,filters:[],productsPerPage:c,onlyFullSizeProducts:!0,onlyWithStock:!0},{collection:a}=await (0,i.Ay)({variables:{collectionHandle:e,first:n.productsPerPage,after:n.endCursor,sortKey:n.sortBy,reverse:n.reverse,filters:n.filters},query:l.ts}),o=a&&a.products&&a.products.edges&&a.products.edges.length>0?(0,r.S4)(a.products.edges,{onlyFullSizeProducts:null==(t=n.onlyFullSizeProducts)||t,onlyWithStock:null==(s=n.onlyWithStock)||s}):[];return("PRICE"===n.sortBy&&(o=o.sort((e,t)=>
1Number(e.price.amount)+(n.reverse?1:-1)*Number(t.price.amount))),a)?{collection:a?(0,r.ID)(a):null,filters:a?(0,r.hv)(a.products.filters):[],products:o,pageInfo:a?a.products.pageInfo:null}:null},u=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{collection:l}=await (0,i.Ay)({variables:{collectionHandle:e},query:o});return l&&l.products&&l.products.edges&&l.products.edges.length>0?(0,r.oi)(l.products.edges,t,s):[]}},27798:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var i=s(10553),l=s(18559),n=s(58149),a=s(50614),o=s(79684);async function r(e,t,s){var i,l;let r=await (0,o.Jr)(e,t.id,void 0,"success"),c=null;if(r&&r.length>0){let e=null==(i=r[0].external_order_id)?void 0:i.ecommerce;if(e){let t=await (0,a.Y)([e]);c=(null==t?void 0:t.find(t=>t.id.includes(e)))||null}}let d=(null==r?void 0:r.length)||0,u="NONE";1===d?u="NMC":d>1&&(u="RMC");let C=!1;if("RMC"===u){let s=await (0,o.F5)(e,t.id);C=(null!=(l=null==s?void 0:s.charge_attempts)?l:1)>1}let m=async()=>{await (0,n.Tk)("/subscriptions/".concat(s))},x=!1,p=t.charge_interval_frequency?t.charge_interval_frequency-d%t.charge_interval_frequency:0;if((p===t.charge_interval_frequency||1===t.charge_interval_frequency)&&(p=+!(null==c?void 0:c.tags.includes(1===d?"box_customized":"rmc_box_customized"))),t.is_prepaid&&"cancelled"===t.status&&c){let e=c.tags.includes(1===d?"box_customized":"rmc_box_customized");x=p>0||!e}return{...t,address:t.address,status:t.status,numOrders:d,orders:r,lastBox:c,customizationType:u,isDunning:C,revalidate:m,isEndingSoon:x,remainingBoxes:p}}function c(){let{data:e}=(0,i.useSession)(),t=null==e?void 0:e.shopifyAccessToken,{data:s,isValidating:a,mutate:c,error:d}=(0,n.Ay)(t?"/subscriptions/".concat(t):null,async()=>{try{let e=await (0,o.AZ)(t);if(!e)return null;let s=await (0,o.X4)(e,!0);if(!s)return null;return(await Promise.all(s.map(s=>r(e,{...s,address:s.include.address},t)))).sort((e,t)=>"active"===e.status&&"active"!==t.status?-1:"active"!==e.status&&"active"===t.status?1:e.isEndingSoon&&!t.isEndingSoon?-1:!e.isEndingSoon&&t.isEndingSoon?1:0)}catch(e){return console.error("Error fetching subscriptions:",e),l.Cp(e),null}},{revalidateIfStale:!0,revalidateOnMount:!0}),u=void 0===e,C=(null==s?void 0:s.filter(e=>"active"===e.status||e.isEndingSoon))||[],m=(null==s?void 0:s.filter(e=>("cancelled"===e.status||"expired"===e.status)&&!e.isEndingSoon))||[];return{subscriptions:s,activeSubscriptions:C,cancelledSubscriptions:m,loading:a,subscriptionLoading:u,revalidateAll:c,error:d}}},36346:e=>{e.exports={"image-with-background":"Customization_image-with-background__7oCZ_"}},50614:(e,t,s)=>{"use strict";s.d(t,{Y:()=>i}),s(85391);let i=async e=>{let t=encodeURIComponent(e.join(",")),s=await fetch("/api/shopify/order/list/".concat(t));return(await s.json()).data}},67559:e=>{e.exports={closeBtn:"CustomizationModal_closeBtn__NfPYc",nextBtn:"CustomizationModal_nextBtn__VScY3",stepperWrapper:"CustomizationModal_stepperWrapper__oeooh",stepperItem:"CustomizationModal_stepperItem__y7Z50",stepCounter:"CustomizationModal_stepCounter__mZ_xK",active:"CustomizationModal_active__fEc8a",completed:"CustomizationModal_completed__DWhaJ",cardContent:"CustomizationModal_cardContent__LK7iN",selectedButton:"CustomizationModal_selectedButton__C1cOv",cardActive:"CustomizationModal_cardActive__2RwOS",selectButton:"CustomizationModal_selectButton__DUOfe",cardActiveHeader:"CustomizationModal_cardActiveHeader__hEEX5",selectedBtn:"CustomizationModal_selectedBtn__KTg71",cardHeader:"CustomizationModal_cardHeader__l3dIf",descriptionWrapper:"CustomizationModal_descriptionWrapper__wBRTL","line-clamp-4":"CustomizationModal_line-clamp-4__H_CH6"}},87057:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/subscriptions",function(){return s(10904)}])}},e=>{e.O(0,[888,137,4868,1984,636,6593,8792],()=>e(e.s=87057)),_N_E=e.O()}]);
2//# sourceMappingURL=subscriptions-aa926044a4976cf1.js.map

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.