1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5172],{7157:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/shaperbox-order-details",function(){return i(95315)}])},62957:function(e,t,i){"use strict";i.d(t,{v:function(){return a}});var n=i(85893);i(67294);let a=e=>{let{height:t=28,width:i=32,fill:a="#292929"}=e;return(0,n.jsx)("svg",{width:i,height:t,viewBox:"0 0 28 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M27.8177 15.3667C27.8177 17.1877 27.8438 19.0086 27.8095 20.8303C27.7769 22.5338 27.1474 24.0367 25.8932 25.1784C25.1593 25.8455 24.2476 26.3201 23.4036 26.8623C21.5008 28.0883 19.5916 29.3079 17.6758 30.5213C16.7707 31.0993 15.7696 31.5108 14.7197 31.7364C13.9377 31.9052 13.1883 31.7494 12.4364 31.5178C10.9686 31.0636 9.76333 30.1495 8.49609 29.3422C6.49331 28.0668 4.49053 26.7914 2.5008 25.4956C1.60379 24.9109 1.07211 24.0221 0.67253 23.0549C0.328699 22.2118 0.158942 21.3078 0.173467 20.3973C0.1963 16.9327 0.1963 13.4678 0.173467 10.0026C0.166127 8.75982 0.662745 7.86689 1.72285 7.20881C5.1478 5.08371 8.53442 2.90071 11.9683 0.793546C13.3261 -0.0398595 14.7841 0.00743648 16.1386 0.847366C19.6182 3.00509 23.0766 5.20684 26.5464 7.3825C27.4034 7.92071 27.8063 8.70356 27.8087 9.70087C27.8136 11.5895 27.8087 13.4781 27.8087 15.3667H27.8177ZM13.0162 29.6953C13.0284 29.4506 13.0407 29.3161 13.0407 29.1848C13.0407 25.0808 13.038 20.9763 13.0325 16.8713C13.024 16.5613 12.953 16.2562 12.8238 15.9742C12.4821 15.2028 11.8656 14.6605 11.1724 14.2194C8.65266 12.6178 6.12472 11.0274 3.58863 9.44808C3.31884 9.29288 3.02714 9.17933 2.72342 9.11129C2.37604 9.0224 2.17788 9.17979 2.12813 9.53533C2.11357 9.68409 2.10921 9.83367 2.11509 9.98302C2.11509 13.5303 2.09959 17.0776 2.13058 20.6248C2.13547 21.1957 2.28797 21.7763 2.46981 22.3202C2.81639 23.3558 3.64001 23.9511 4.54028 24.513C6.83499 25.9368 9.08812 27.4266 11.3722 28.8676C11.8697 29.1815 12.4226 29.4001 13.0162 29.6953ZM14.9432 29.6953C15.5507 29.4009 16.0848 29.1995 16.5619 28.9002C18.9618 27.3891 21.3282 25.8243 23.7379 24.3336C25.1984 23.4309 25.8638 22.1555 25.8638 20.4789C25.8638 16.9729 25.8638 13.4664 25.8638 9.95937C25.8714 9.81003 25.867 9.66033 25.8508 9.51168C25.7962 9.17816 25.6127 8.98326 25.2555 9.09009C24.9673 9.16284 24.6896 9.27248 24.4294 9.41627C22.6844 10.49 20.9447 11.5743 19.2105 12.6692C18.2923 13.2473 17.3651 13.8149 16.4819 14.4436C15.4585 15.1718 14.8885 16.1023 14.913 17.4649C14.9831 21.3237 14.9374 25.1841 14.9374 29.0445L14.9432 29.6953ZM23.4476 7.73479C23.2772 7.61491 23.1508 7.51869 23.0171 7.43469C21.8925 6.72769 20.7566 6.0378 19.6459 5.30796C19.3255 5.09757 19.1085 5.10328 18.7889 5.30796C16.9386 6.4912 15.0712 7.64834 13.2111 8.81446C12.0792 9.52881 10.9425 10.2456 9.75354 10.9966C11.2214 12.029 12.8702 12.7581 13.9507 14.177C14.4107 13.748 14.8013 13.2751 15.2905 12.9489C17.0259 11.7901 18.797 10.6786 20.5527 9.55572C21.4995 8.95146 22.4528 8.35943 23.4476 7.73479ZM4.51744 7.70053C4.64873 7.79676 4.73028 7.86363 4.81917 7.92071C5.70313 8.47849 6.59769 9.01833 7.46616 9.59731C7.79724 9.8183 8.03699 9.80933 8.37051 9.59731C10.6579 8.14252 12.9608 6.70404 15.2596 5.26148C15.9568 4.82439 16.6524 4.38485 17.4034 3.91188C16.6287 3.42261 15.9095 2.9741 15.1927 2.51907C14.3903 2.01022 13.596 2.0094 12.7887 2.51907C10.8724 3.7265 8.95275 4.92904 7.02989 6.12669L4.51744 7.70053Z",fill:a})})}},82374:function(e,t,i){"use strict";i.d(t,{G:function(){return l}});let n=[{name:"Intuitive Shipping-65717.table-6.95",value:8},{name:"Intuitive Shipping-65700.table-0.00",value:8},{name:"Intuitive Shipping-77515.table-0.00",value:4},{name:"Intuitive Shipping-65716.table-9.95",value:4},{name:"Intuitive Shipping-65701.table-9.95",value:15},{name:"Intuitive Shipping-65715.table-9.95",value:15},{name:"Intuitive Shipping-65703.table-9.95",value:15},{name:"Intuitive Shipping-65704.table-9.95",value:15},{name:"Intuitive Shipping-65705.table-9.95",value:15},{name:"Intuitive Shipping-65706.table-9.95",value:15}];var a=i(1410);let l=function(e){var t;let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=new Date(e),s=null!==(t=n.find(e=>""===e.name))&&void 0!==t?t:{name:"default",value:"15"},r=new Date(l.setDate(l.getDate()+Number(s.value)+1));return i?(0,a.x)(r.toDateString(),"long"):r}},95315:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return P},default:function(){return w}});var n=i(85893),a=i(67294),l=i(60814),s=i(83566),r=i(27034),o=i(20243),d=i(57491),c=i(82374),u=i(49605),h=i(87027),_=i(62957),C=i(57742),x=i(5793),v=i(30719);i(64274);var m=i(79824),p=i.n(m),g=i(73755),R=i(14126),T=i(94123),E=e=>{let{isLoadingProducts:t,products:i,title:a,subtitle:s,backgroundColor:r="var(--component-deliveryDetails-note-backgroundColor)",hideHelp:o,onlySwipper:c,estimatedDeliveryDate:u}=e,{translate:h}=(0,R.T)(),_=a||h(T.dg.ACCOUNT.SHAPERBOX_EXCITING_NEWS),C=s||h(T.dg.ACCOUNT.SHAPERBOX_CURATING_BOX);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:p().orderSummaryProductsContainer,style:{backgroundColor:r},children:[(0,n.jsx)(l.x,{variant:"heading5",weight:"demi",style:{color:"var(--colors-pallete-wine-color)"},children:_}),(0,n.jsx)(l.x,{variant:"body",weight:"demi",style:{margin:"4px 0 24px"},children:C}),t&&(0,n.jsx)(g.Z,{width:"100%",height:"226px"}),!t&&!!i.length&&(0,n.jsx)(v.tq,{className:"swiper",slidesPerView:"auto",loop:!0,loopedSlides:3,spaceBetween:8,"data-show":c?"":"mobile",children:i.map(e=>{var t,i;
1return(0,n.jsx)(v.o5,{children:(0,n.jsxs)("div",{className:p().productContainer,children:[(0,n.jsx)(x.E,{src:null===(i=e.images)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.src,width:"160px",height:"213px",alt:h(T.dg.ACCOUNT.SHAPERBOX_PRODUCT_IMAGE_ALT)}),(0,n.jsx)(l.x,{variant:"body",size:"small",weight:"bold",children:e.title})]})},e.id)})}),!c&&!t&&!!i.length&&(0,n.jsx)("div",{className:p().productsContainer,"data-show":"desktop",children:i.map(e=>{var t,i;return(0,n.jsxs)("div",{className:p().productContainer,children:[(0,n.jsx)(x.E,{src:null===(i=e.images)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.src,width:"160px",height:"213px",alt:h(T.dg.ACCOUNT.SHAPERBOX_PRODUCT_IMAGE_ALT)}),(0,n.jsx)(l.x,{variant:"body",size:"small",weight:"bold",children:e.title})]},e.id)})})]}),u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.x,{variant:"body",size:"small",weight:"demi",style:{marginTop:"16px"},children:h(T.dg.ACCOUNT.SHAPERBOX_TRACK_ESTIMATED_DELIVERY_LABEL)}),(0,n.jsx)(l.x,{variant:"heading6",weight:"demi",style:{color:"var(--colors-pallete-wine-color)"},children:u})]}),!o&&(0,n.jsxs)("div",{className:p().helpContainer,children:[(0,n.jsx)(l.x,{variant:"body",size:"small",weight:"demi",children:h(T.dg.ACCOUNT.SHAPERBOX_DASHBOARD_PREPARING_CHAT_MESSAGE)}),(0,n.jsx)("button",{type:"button",className:p().adaChatLink,onClick:()=>{var e;return null===(e=globalThis.adaEmbed)||void 0===e?void 0:e.toggle()},onKeyDown:e=>(0,d.$)(e,()=>{var e;return null===(e=globalThis.adaEmbed)||void 0===e?void 0:e.toggle()},["Enter"," "]),"aria-label":h(T.dg.ACCOUNT.SHAPERBOX_DASHBOARD_PREPARING_CHAT_LINK),children:h(T.dg.ACCOUNT.SHAPERBOX_DASHBOARD_PREPARING_CHAT_LINK)})]})]})},A=i(74888),O=i.n(A),N=i(11163),j=i(61867);let S=e=>{let{orderPlacedDate:t,shippingAddress:i,orderPlacedLabel:a,orderNumberLine:s,totalLine:r,statusOnDateLine:o,shipsToLabel:d}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:O().orderContent,style:{borderRadius:"8px 8px 0 0"},children:[(0,n.jsxs)("div",{className:O().orderText,style:{marginRight:"12px"},children:[(0,n.jsx)(l.x,{variant:"body",weight:"demi",className:O().sectionHeaderText,children:a}),(0,n.jsx)(l.x,{variant:"body",weight:"regular",className:O().sectionHeaderText,children:"".concat((0,c.G)(t,!0))})]}),(0,n.jsxs)("div",{className:O().orderText,style:{marginLeft:"12px"},children:[(0,n.jsx)(l.x,{variant:"body",weight:"demi",className:O().sectionHeaderText,children:s}),(0,n.jsx)(l.x,{variant:"body",weight:"regular",className:O().sectionHeaderText,children:r})]})]}),(0,n.jsx)("div",{className:O().orderContent,style:{borderRadius:"0 0 8px 8px"},children:(0,n.jsxs)("div",{className:O().orderDetails,children:[(0,n.jsx)(l.x,{variant:"heading6",weight:"demi",className:O().orderDetailsTitle,children:o}),(0,n.jsx)(l.x,{variant:"body",weight:"bold",children:d}),(0,n.jsxs)(l.x,{variant:"body",weight:"regular",className:O().orderDetailsText,children:[null==i?void 0:i.firstName," ",null==i?void 0:i.lastName,(0,n.jsx)("br",{}),null==i?void 0:i.address1,(0,n.jsx)("br",{}),null==i?void 0:i.city,(0,n.jsx)("br",{}),null==i?void 0:i.zip,(0,n.jsx)("br",{})]})]})})]})};var b=()=>{var e,t,i,x;let{translate:v,TRANSLATION_KEYS:m}=(0,o.T)(),{locale:p}=(0,N.useRouter)(),g=(0,j.Cm)(p),R=null==g?void 0:g.localePrefix,T=m.ACCOUNT,A=(0,a.useRef)(!1),[b,P]=(0,a.useState)(null),[w,y]=(0,a.useState)(null),{shaperboxOrders:D}=(0,h.q3)(),I=(0,a.useCallback)(e=>{e&&e.lineItems.length>0&&y(e.lineItems.map(e=>({title:e.name,images:[{src:e.imageUrl}],slug:e.name,id:e.id})))},[]);(0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("order_id");if(e&&D&&(null==D?void 0:D.length)>0){let t=D.find(t=>t.id===e);t&&(P(t),I(t))}},[]);let H=()=>{window.location.assign("".concat(R,"/account/shapermint-club-plus"))};return(0,n.jsx)(C.Z,{children:b&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:O().sectionHeader,role:"button",tabIndex:0,"aria-label":v(T.SHAPERBOX_ORDER_BACK_ARIA),onClick:H,onKeyDown:e=>(0,d.$)(e,H,["Enter"," "]),children:[(0,n.jsx)(s.J.Arrows.ChevronLeft,{width:1.5,height:1.5}),(0,n.jsx)(l.x,{variant:"heading2",weight:"demi",className:O().sectionHeaderTitle,children:v(T.SHAPERBOX_ORDER_PAGE_TITLE)})]}),(0,n.jsx)("div",{className:O().sectionBody,children:(0,n.jsx)(r.Z,{variant:"box",openIcon:s.J.PDP.Plus,closeIcon:s.J.PDP.Minus,defaultOpen:!0,controlIconPos:"right",onClick:()=>{{let e=A.current;A.current=!e}},testId:"shaperbox-order-accordion-shipping",header:(0,n.jsxs)("div",{className:O().accordionTitle,children:[(0,n.jsx)(s.J.Navigation.AddressInformation,{width:2,height:2}),(0,n.jsx)(l.x,{variant:"heading5",weight:"demi",children:v(T.SHAPERBOX_ORDER_SHIPPING_DETAILS)})]}),content:(0,n.jsx)(S,{orderPlacedDate:(null==b?void 0:null===(e=b.shipping)||void 0===e?void 0:e.updateDate)||"",shippingAddress:null==b?void 0:b.shippingAddress,orderPlacedLabel:v(T.SHAPERBOX_ORDER_ORDER_PLACED),orderNumberLine:v(T.SHAPERBOX_ORDER_ORDER_NUMBER_TOTAL,{number:(null==b?void 0:b.number)||""}),totalLine:v(T.SHAPERBOX_ORDER_TOTAL_AMOUNT,{amount:(null==b?void 0:null===(t=b.totals)||void 0===t?void 0:t.total)||""}),statusOnDateLine:v(T.SHAPERBOX_ORDER_STATUS_ON_DATE,{status:(0,u.fm)((null==b?void 0:null===(i=b.status)||void 0===i?void 0:i.value)||""),date:"".concat((0,c.G)((null==b?void 0:null===(x=b.status)||void 0===x?void 0:x.dateUpdated)||"",!0))}),shipsToLabel:v(T.SHAPERBOX_ORDER_SHIPS_TO)})})}),(0,n.jsx)("div",{className:O().sectionBody,children:(0,n.jsx)(r.Z,{variant:"box",openIcon:s.J.PDP.Plus,closeIcon:s.J.PDP.Minus,defaultOpen:!0,controlIconPos:"right",onClick:()=>null,testId:"shaperbox-order-accordion-summary",header:(0,n.jsxs)("div",{className:O().accordionTitle,children:[(0,n.jsx)(_.v,{}),(0,n.jsx)(l.x,{variant:"heading5",weight:"demi",children:v(T.SHAPERBOX_ORDER_ORDER_SUMMARY)})]}),content:(0,n.jsx)("div",{className:O().orderProductsContainer,children:(0,n.jsx)(E,{isLoadingProducts:!1,products:null!=w?w:[],title:v(T.SHAPERBOX_ORDER_WHAT_IN_BOX),subtitle:v(T.SHAPERBOX_ORDER_BOX_ITEMS_SUBTITLE),backgroundColor:"var(--colors-pallete-creamy-soft-color)",hideHelp:!0,onlySwipper:!0})})})})]})})},P=!0,w=()=>(0,n.jsx)(b,{})},79824:function(e){e.exports={orderSummaryProductsContainer:"styles_orderSummaryProductsContainer___SNFi",productsContainer:"styles_productsContainer__xcXzO",productC
1ontainer:"styles_productContainer__USy9h",pdpLink:"styles_pdpLink__lZCEA",helpContainer:"styles_helpContainer__t4SVM",adaChatLink:"styles_adaChatLink__sqGWO"}},74888:function(e){e.exports={sectionHeader:"styles_sectionHeader___jkD5",sectionBody:"styles_sectionBody__XC5_z",sectionHeaderText:"styles_sectionHeaderText__wuBd8",sectionHeaderTitle:"styles_sectionHeaderTitle__NehUr",accordionTitle:"styles_accordionTitle__qf4Dq",orderContent:"styles_orderContent__ljWFS",orderText:"styles_orderText__JmJ_x",orderDetails:"styles_orderDetails__3HgmI",orderDetailsTitle:"styles_orderDetailsTitle__IxVNr",orderDetailsText:"styles_orderDetailsText__55CZN",orderProductsContainer:"styles_orderProductsContainer__OaTqw"}}},function(e){e.O(0,[2647,38,2888,9774,179],function(){return e(e.s=7157)}),_N_E=e.O()}]);
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.