1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[665],{2563:function(e,r,a){"use strict";a.d(r,{Z:function(){return k}});var t=a(7568),i=a(92),s=a(5893),n=a(7294),d=a(1010),c=a(1163),o=a(2159),l=a(7904);var u=function(){var e=(0,c.useRouter)(),r=(0,n.useContext)(o.Z),a=r.user,t=r.setShouldShowAuthDropdown,i=(0,n.useState)(!1),s=i[0],d=i[1];return(0,n.useEffect)((function(){var r=l.Z.get(l.m.USER_DATA);a||r?d(!0):(d(!1),t(!0),e.replace("/"))}),[a]),s},_=a(1664),p=a.n(_),m=a(3127),h=a.n(m),v=a(6026),x=a(8103),g="Make someone feel special today!",f="Start Here",j="/product-category/flowers-for-love-birthday-anniversary-etc",b=function(e){var r=e.onLogout,a=(0,c.useRouter)(),t=(0,n.useContext)(o.Z).showSiteWideAlert;return(0,s.jsxs)("aside",{className:[h().sidebar,t&&h()["with-site-wide-alert"]].join(" "),children:[(0,s.jsxs)("nav",{className:h().nav,children:[v.NL.map((function(e){var r=e.label,t=e.href,i=e.icon,n=a.pathname===t;return(0,s.jsx)(p(),{href:t,children:(0,s.jsxs)("a",{className:[h()["nav-item"],n&&h().active].filter(Boolean).join(" "),children:[(0,s.jsx)(i,{}),(0,s.jsx)("span",{children:r})]})},t)})),(0,s.jsxs)("button",{className:[h()["nav-item"],h().logout].join(" "),onClick:r,children:[(0,s.jsx)(x.R0,{}),(0,s.jsx)("span",{children:"Logout"})]})]}),(0,s.jsxs)("div",{className:h()["promo-card"],children:[(0,s.jsx)("img",{src:"/images/dashboard/promo-bg.png",alt:"",className:h()["promo-bg"]}),(0,s.jsx)("img",{src:"/images/dashboard/promo-product.png",alt:"",className:h()["promo-image"]}),(0,s.jsx)("p",{className:h()["promo-heading"],children:g}),f&&j&&(0,s.jsx)(p(),{href:j,children:(0,s.jsx)("a",{className:h()["promo-cta"],children:f})})]})]})},N=a(2281),y=a.n(N),C=function(e){var r=e.onLogout,a=(0,c.useRouter)();return(0,s.jsxs)("nav",{className:y()["tab-bar"],children:[v.NL.map((function(e){var r=e.label,t=e.href,i=e.icon,n=a.pathname===t;return(0,s.jsx)(p(),{href:t,children:(0,s.jsxs)("a",{className:[y()["tab-item"],n&&y().active].filter(Boolean).join(" "),children:[(0,s.jsx)(i,{}),(0,s.jsx)("span",{children:r})]})},t)})),(0,s.jsxs)("button",{className:[y()["tab-item"]].join(" "),onClick:r,children:[(0,s.jsx)(x.R0,{}),(0,s.jsx)("span",{children:"Logout"})]})]})},D=a(6574),O=a.n(D),S=a(387),w=a(3269),Z=function(e){var r=e.sections,a=(0,d.Z)();return r.length?(0,s.jsx)("div",{className:O()["dashboard-page-sections"],children:r.map((function(e){return(0,s.jsx)(w.Z,{section:e,deviceType:a},e.id)}))}):null},k=function(e){var r=e.children,a=e.pageSections,c=void 0===a?[]:a,_=(0,d.Z)(),p=u(),m=(0,S.useRouter)(),h=(0,n.useContext)(o.Z),v=h.showSiteWideAlert,x=h.setUser,g=h.setCartItems,f=function(){var e=(0,t.Z)((function(){return(0,i.__generator)(this,(function(e){return l.Z.remove("userData"),g([]),x(null),m.push("/"),[2]}))}));return function(){return e.apply(this,arguments)}}();return p?(0,s.jsxs)("div",{className:[O().dashboard,v&&O()["with-site-wide-alert"]].join(" "),children:["desktop"===_&&(0,s.jsx)(b,{onLogout:f}),(0,s.jsxs)("section",{className:O().content,children:[r,(0,s.jsx)(Z,{sections:c})]}),"mobile"===_&&(0,s.jsx)(C,{onLogout:f})]}):null}},3350:function(e,r,a){"use strict";var t=a(5893),i=a(3419),s=a(4552),n=a.n(s);r.Z=function(e){var r=e.imageSrc,a=e.imageAlt,s=e.heading,d=e.subtext,c=e.ctaLabel,o=e.ctaUrl,l=e.onCtaClick;return(0,t.jsxs)("div",{className:n()["empty-state"],children:[(0,t.jsx)("img",{src:r,alt:a||"",className:n().image}),(0,t.jsxs)("div",{className:n().text,children:[(0,t.jsx)("p",{className:n().heading,children:s}),(0,t.jsx)("p",{className:n().subtext,children:d})]}),c&&(l?(0,t.jsx)(i.Z,{type:"primary",onClick:l,children:c}):o&&(0,t.jsx)(i.Z,{type:"primary",url:o,children:c}))]})}},9268:function(e,r,a){"use strict";var t=a(5893),i=a(5982),s=a.n(i);r.Z=function(e){var r=e.text,a=void 0===r?"Loading...":r;return(0,t.jsxs)("div",{className:s().loader,children:[(0,t.jsx)("img",{src:"/images/spinner.svg",alt:"loader",className:s().icon}),a&&(0,t.jsx)("span",{className:s().text,children:a})]})}},2384:function(e,r,a){"use strict";var t=a(5893),i=a(7294),s=a(3419),n=a(9525),d=a(3395),c=a(7071),o=a.n(c),l=a(1664),u=a.n(l),_=a(7484),p=a.n(_);r.Z=function(e){var r,a,c=e.order,l=e.onDelete,_=(0,d.Z)(),m=(0,i.useState)(!1),h=m[0],v=m[1],x=(0,n.iN)(c.deliveryStatus),g=n.Pn[x],f=c.deliveryDate?p()(c.deliveryDate).format("D MMM YYYY"):"",j=c.orderProducts.length>3,b=h?c.orderProducts:c.orderProducts.slice(0,3);return(0,t.jsx)(u(),{href:"/dashboard/orders/details?orderId=".concat(c.id),children:(0,t.jsxs)("a",{className:o()["order-card"],children:[(0,t.jsxs)("div",{className:o().header,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:(0,t.jsx)("strong",{children:c.fullOrderId})}),(0,t.jsx)("p",{children:f})]}),(0,t.jsx)("span",{className:"".concat(o().tag," ").concat(o()[g]),children:x})]}),(0,t.jsxs)("div",{className:o().actions,onClick:function(e){return e.stopPropagation()},children:[(0,t.jsx)(s.Z,{type:"primary",size:"small",onClick:function(e){e.preventDefault(),_(c)},minWidth:!0,children:"Buy Again"}),(0,t.jsx)(s.Z,{url:"/order-tracker/result?orderNumber=".concat(c.fullOrderId),minWidth:!0,type:"plain",urlOnNewTab:!0,className:o()["track-order"],children:"Track Order"})]}),(0,t.jsxs)("div",{className:o().products,children:[b.map((function(e){var r,a;return(0,t.jsxs)("div",{className:o().product,children:[(0,t.jsx)("img",{src:null===(r=e.image)||void 0===r?void 0:r.src,alt:(null===(a=e.image)||void 0===a?void 0:a.alt)||e.nameClient||e.name,className:o()["product-image"]}),(0,t.jsxs)("div",{className:o()["product-details"],children:[(0,t.jsx)("span",{className:o()["product-name"],children:e.nameClient||e.name}),e.subtitle&&(0,t.jsx)("span",{className:o()["product-size"],style:{color:"#6b7280"}
1,children:e.subtitle}),e.size&&(0,t.jsx)("span",{className:o()["product-size"],children:e.size})]})]},e.id)})),j&&(0,t.jsx)(s.Z,{type:"plain",size:"small",onClick:function(e){e.preventDefault(),e.stopPropagation(),v((function(e){return!e}))},className:o()["toggle-products"],children:h?"Show fewer products":"Show ".concat(c.orderProducts.length-3," more products")})]}),(0,t.jsx)("div",{className:o().divider}),(0,t.jsxs)("div",{className:o().footer,children:["Pickup"===c.recipient.firstname?(0,t.jsxs)("strong",{className:o()["receiver-label"],children:["Pick Up Location: ",c.despatchFrom]}):(0,t.jsxs)("div",{className:o().receiver,children:[(0,t.jsx)("span",{className:o()["receiver-label"],children:"Receiver"}),(0,t.jsxs)("div",{className:o()["receiver-details"],children:[(0,t.jsx)("span",{children:null===(r=c.recipient)||void 0===r?void 0:r.name}),(0,t.jsx)("span",{children:null===(a=c.recipient)||void 0===a?void 0:a.phone})]})]}),(0,t.jsx)(s.Z,{iconOnly:!0,type:"transparent",tooltip:"Delete order",onClick:function(e){e.preventDefault(),e.stopPropagation(),l(c)},children:(0,t.jsx)("img",{alt:"button icon",src:"/icons/delete-cart.svg",className:o().icon})})]})]})})}},3395:function(e,r,a){"use strict";var t=a(6042),i=a(9396),s=a(9815),n=a(7294),d=a(2159);r.Z=function(){var e=(0,n.useContext)(d.Z),r=e.cartItems,a=e.setCartItems,c=e.setShouldShowCart,o=e.notify;return function(e){var n=(0,s.Z)(r);e.orderProducts.forEach((function(e){if(n.find((function(r){return r.productId===e.id})))n=n.map((function(r){return r.productId===e.id?(0,i.Z)((0,t.Z)({},r),{quantity:r.quantity+e.quantity}):r}));else{var r={productId:e.id,name:e.nameClient||e.name,price:e.price,description:e.description,quantity:e.quantity,image:e.image,size:e.size,design:null,SKU:e.SKU||""};n=(0,s.Z)(n).concat([r])}})),a(n),c(!0),o("success","Added to cart")}}},9525:function(e,r,a){"use strict";a.d(r,{Pn:function(){return s},Z_:function(){return i},iN:function(){return n}});var t={"Not Arranged":"Order Received",Arranged:"Order Arranged","Arranged and Sorted":"Order Arranged","Arranged and Inspected":"Order Arranged","Despatched (given to driver/trip not started)":"Despatched",Despatched:"Despatched","Despatched and Client Notified":"Despatched","Despatched (drivers update)":"Despatched","Delivered (drivers update)":"Delivered",Delivered:"Delivered","Delivered and Client Notified":"Delivered","Delivery Failed/Issues with Delivery":"Delivery Failed"},i=["Order Received","Order Arranged","Despatched","Delivered","Delivery Failed"],s={"Order Received":"yellow","Order Arranged":"grey",Despatched:"blue",Delivered:"success","Delivery Failed":"failure"},n=function(e){return t[e||"Not Arranged"]}},6574:function(e){e.exports={dashboard:"DashboardLayout_dashboard__4cLwy","with-site-wide-alert":"DashboardLayout_with-site-wide-alert__c7eUZ",content:"DashboardLayout_content__i40SB","dashboard-page-sections":"DashboardLayout_dashboard-page-sections__TbVM3"}},4552:function(e){e.exports={"empty-state":"EmptyState_empty-state__SWGd5",image:"EmptyState_image__GBWN9",text:"EmptyState_text__R5Ve5",heading:"EmptyState_heading__6BOw9",subtext:"EmptyState_subtext__fZt5n"}},5982:function(e){e.exports={icon:"Loader_icon__cy9jX",loader:"Loader_loader__lrrEW",text:"Loader_text__AYFku"}},2281:function(e){e.exports={"tab-bar":"MobileTabBar_tab-bar__V5Lmy","tab-item":"MobileTabBar_tab-item__Gr_OI",active:"MobileTabBar_active__YDuuQ"}},7071:function(e){e.exports={"order-card":"OrderCard_order-card__frsQ1",header:"OrderCard_header__NsTRY",products:"OrderCard_products__cQHLN","toggle-products":"OrderCard_toggle-products__Ik91n",product:"OrderCard_product__XFy3N","product-image":"OrderCard_product-image__HqVcB","product-details":"OrderCard_product-details__BVC8s","product-name":"OrderCard_product-name__cm3Uw",divider:"OrderCard_divider__UugRe",receiver:"OrderCard_receiver__lOAKV","receiver-label":"OrderCard_receiver-label__A50i4","receiver-details":"OrderCard_receiver-details__czOmv",actions:"OrderCard_actions__VhLB0",track:"OrderCard_track__OErPV","track-order":"OrderCard_track-order__D_aVE",tag:"OrderCard_tag__X5brF",failure:"OrderCard_failure__kuYP_",yellow:"OrderCard_yellow__VZbYg",grey:"OrderCard_grey__Oz3Fc",blue:"OrderCard_blue__G_Nl2",success:"OrderCard_success__uUQUv",footer:"OrderCard_footer__aiA_a"}},3127:function(e){e.exports={sidebar:"Sidebar_sidebar__yvqjp","with-site-wide-alert":"Sidebar_with-site-wide-alert__JDaVt",nav:"Sidebar_nav__43MeB","nav-item":"Sidebar_nav-item__XfJm3",active:"Sidebar_active__vsiVJ","promo-card":"Sidebar_promo-card__k2hKf","promo-bg":"Sidebar_promo-bg__XfCKd","promo-image":"Sidebar_promo-image__AUDfR","promo-heading":"Sidebar_promo-heading__tUH27","promo-cta":"Sidebar_promo-cta__IQmA4"}}}]);
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.