1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[169],{"+QRC":function(e,t,n){"use strict";var o=n("E9nw"),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,s,a,c,l,u=!1;t||(t={}),n=t.debug||!1;try{if(s=o(),a=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),"undefined"===typeof o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(l),a.selectNodeContents(l),c.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(a):c.removeAllRanges()),l&&document.body.removeChild(l),s()}return u}},"11jv":function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var o=n("nKUr"),r=n("cpVT"),i=n("20a2"),s=n("q1tI"),a=n("y2Vs"),c=n("wyBh"),l=(n("aoo5"),n("p7LQ")),u=n("WkpF"),d=n("wd/R"),p=n.n(d),m=n("/MKj"),f=n("QnuM"),b=n("Glxs"),h=n("a0wy"),g=n("lRVB"),j=n("0wdU");function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=[{label:"Every 1 month ",value:{value:30,frequency:"days"}},{label:"Every 2 months",value:{value:60,frequency:"days"}},{label:"Every 3 months",value:{value:90,frequency:"days"}}],O={control:function(e){return y(y({},e),{},{minHeight:"48px"})},singleValue:function(e){return y(y({},e),{},{color:c.u,fontFamily:"Avenir_Light",fontStyle:"normal",fontWeight:400,fontSize:"18px",lineHeight:"25px"})},menu:function(e){return y(y({},e),{},{borderBottom:"1px dotted pink",color:c.u,fontSize:"20px",padding:0})},input:function(e){return y(y({},e),{},{fontSize:"16px"})}};function x(e){var t=e.activeSubscription,n=e.closeModal,r=e.checkCardExpiry,d=Object(s.useState)(void 0),v=d[0],x=d[1],w=Object(i.useRouter)(),C=Object(m.useDispatch)(),k=Object(s.useState)("update"),S=k[0],N=k[1],E=Object(s.useState)(!1),I=E[0],M=E[1];Object(s.useEffect)((function(){if(null!==t&&void 0!==t&&t.period){var e=_.find((function(e){return(null===t||void 0===t?void 0:t.period.value)===e.value.value}));x(e)}var n=r(null===t||void 0===t?void 0:t.cardDetails);null!==n&&void 0!==n&&n.includes("Expir")&&N("expired")}),[t]);var P=Object(s.useMemo)((function(){var e;return null===t||void 0===t||null===(e=t.items)||void 0===e?void 0:e.reduce((function(e,t){return e+=Number(t.price)}),0)}),[t]),T=Object(s.useMemo)((function(){var e,n;return null!==t&&void 0!==t&&t.promotionDetail&&null!==t&&void 0!==t&&null!==(e=t.promotionDetail)&&void 0!==e&&e.percentageValue?(null===t||void 0===t||null===(n=t.promotionDetail)||void 0===n?void 0:n.percentageValue)+"%":"15%"}),[t]),A=Object(s.useCallback)((function(){M(!0),C(Object(f.d)({id:null===t||void 0===t?void 0:t._id,userId:null===t||void 0===t?void 0:t.user,callback:function(e){M(!1),e?(w.pathname.includes("/account")&&C(Object(j.d)(null===t||void 0===t?void 0:t._id,{subscriptionPeriod:null===v||void 0===v?void 0:v.value})),w.pathname.includes("/account")||window.analytics.track("subpage_resume_success",{subscriptionId:null===t||void 0===t?void 0:t._id,userId:null===t||void 0===t?void 0:t.user,source:"update sub page"}),N("success"),setTimeout((function(){n()}),3e3)):(w.pathname.includes("/account")||window.analytics.track("subpage_resume_failed",{subscriptionId:null===t||void 0===t?void 0:t._id,userId:null===t||void 0===t?void 0:t.user,source:"update sub page"}),N("expired"))}}))}),[n,v]),z=Object(s.useCallback)((function(){window.analytics.track("subpage_edit_card",{subscriptionId:null===t||void 0===t?void 0:t._id,userId:null===t||void 0===t?void 0:t.user,source:"update sub page"}),sessionStorage.setItem("isLastFailed","true"),w.push("/update-cards?user=".concat(null===t||void 0===t?void 0:t.user,"&subscription=").concat(null===t||void 0===t?void 0:t.id,"&utm_medium=UpdateCard_viaUpdateSub&redirect=cancelled_subscription"))}),[t]);return Object(o.jsxs)("div",{className:"organisms-cancel-subscription",children:[Object(o.jsx)("div",{className:"organisms-cancel-subscription__title-block",children:Object(o.jsx)("h3",{children:"Resume Subscription"})}),"update"===S&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"organisms-cancel-subscription__content-block organisms-cancel-subscription__content-frequency",children:[Object(o.jsx)("p",{className:"organisms-cancel-subscription__content-title",children:"Frequency"}),Object(o.jsx)(a.default,{className:"organisms-subscriptions-edit__content-body-select",classNamePrefix:"select-dropdown",options:_,value:v,onCh
1ange:function(e){x(e),window.analytics.track("subpage_frequency",{subscriptionId:null===t||void 0===t?void 0:t._id,userId:null===t||void 0===t?void 0:t.user,source:"update sub page"})},styles:O,theme:function(e){return y(y({},e),{},{colors:y(y({},e.colors),{},{primary:c.u})})}})]}),Object(o.jsxs)("div",{className:"organisms-cancel-subscription__content-block",children:[Object(o.jsx)("p",{className:"organisms-cancel-subscription__content-title",children:"Resume Order Date"}),Object(o.jsxs)("p",{className:"organisms-cancel-subscription__content-date",children:["Today - ",p()().format("MMM DD YYYY")]})]}),Object(o.jsxs)("div",{className:"organisms-cancel-subscription__content-block",children:[Object(o.jsx)("p",{className:"organisms-cancel-subscription__content-title",children:"Total Price"}),Object(o.jsxs)("p",{className:"organisms-cancel-subscription__content-price",children:[(null===t||void 0===t?void 0:t.currency)&&"$"+(null===t||void 0===t?void 0:t.chargedPrice)+" ",Object(o.jsx)("s",{style:{opacity:.65,marginRight:"5px"},children:"$"+P}),Object(o.jsx)("span",{className:"discount-block",children:T+" off"})]})]}),Object(o.jsx)("div",{className:"organisms-cancel-subscription__content-block",children:I?Object(o.jsx)(u.a,{onClick:function(){},maxWidth:"100%",bordered:!0,children:Object(o.jsx)(h.a,{})}):Object(o.jsx)(u.a,{onClick:A,maxWidth:"100%",bordered:!0,children:"Resume"})}),Object(o.jsxs)("div",{className:"organisms-cancel-subscription__content-block",children:[Object(o.jsx)("p",{className:"organisms-cancel-subscription__content-footer-title",children:"Peace of mind \ud83d\ude07"}),Object(o.jsx)("p",{className:"organisms-cancel-subscription__content-footer-description",children:"You can edit products, shipping info, or payment method after you\u2019ve resumed your subscription or simply reach out to our support team."})]})]}),"expired"===S&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"organisms-cancel-subscription__failed",children:[Object(o.jsx)(b.a,{size:81}),Object(o.jsx)(l.c,{size:"s18",children:"Update card details"}),Object(o.jsxs)("p",{className:"organisms-cancel-subscription__failed__message",children:["Oops! We couldn't charge your card. Please update your info or try a new payment method to continue."," "]})]}),Object(o.jsx)(u.a,{onClick:z,maxWidth:"100%",bordered:!0,children:"Update Card"})]}),"success"===S&&Object(o.jsx)(o.Fragment,{children:Object(o.jsxs)("div",{className:"organisms-cancel-subscription__active",children:[Object(o.jsx)(g.a,{size:81}),Object(o.jsx)(l.c,{size:"s18",children:"Subscription Activated!"}),Object(o.jsx)("p",{className:"organisms-cancel-subscription__active__message",children:"All set! Your subscription has been activated and you will receive an email confirmation shortly."})]})})]})}},"1K8p":function(e,t,n){"use strict";var o=n("jrfk"),r=n("ez49");function i(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}i.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=i},"1OyB":function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return o}))},"2W6z":function(e,t,n){"use strict";var o=function(){};e.exports=o},"2XsU":function(e,t,n){"use strict";n.r(t),n.d(t,"OrderCard",(function(){return O}));var o=n("nKUr"),r=n("q1tI"),i=n("/MKj"),s=n("TSYQ"),a=n.n(s),c=n("WkpF"),l=n("Kb/T"),u=n("LVGJ"),d=n("RFl8"),p=n("9UUy"),m=n("28Sl"),f=n("wyBh"),b=n("eNdw"),h=n("mgTO"),g=n("Oy3s"),j=n("uwT8"),v=n("IF/j"),y=n("ktuI"),_=(n("yGFO"),[{name:"paraben free",img:"https://de5ibyzj5jw9r.cloudfront.net/static/images/paraben.svg"},{name:"toxin free",img:"https://de5ibyzj5jw9r.cloudfront.net/static/images/toxin.svg"},{name:"phthalate free",img:"https://de5ibyzj5jw9r.cloudfront.net/static/images/phatalate.svg"},{name:"sulfate free",img:"https://de5ibyzj5jw9r.cloudfront.net/static/images/sulfate.svg"}]),O=function(e){var t,n,s,O,x,w,C,k,S,N,E,I,M,P=e.orderHistoryList,T=e.reOrder,A=Object(r.useState)(!1),z=A[0],D=A[1],L=Object(r.useState)(!1),R=L[0],F=L[1],B=Object(r.useState)(),H=B[0],U=B[1],W=Object(r.useState)(""),Z=W[0],G=W[1],Y=Object(r.useState)(!1),V=Y[0],q=Y[1],K=Object(r.useState)(!1),X=K[0],J=K[1],Q=Object(i.useSelector)((function(e){var t,n;return{allProducts:e.sidePanelCart.allProducts,locale:(null===e||void 0===e||null===(t=e.category)||void 0===t||null===(n=t.currentUserLoaction)||void 0===n?void 0:n.country_code)||"US"}})),$=Q.allProducts,ee=Q.locale,te=function(e){if(e&&$.length>0){var t=$.find((function(t){return t.name===e}));if(t&&"bundle"!==t.productType){var n;G(t.name);for(var o=[],r=null===t||void 0===t||null===(n=t.listIngredients)||void 0===n?void 0:n.split("|"),i=null===r||void 0===r?void 0:r.filter((function(e,t){return t%2===0})),s=null===r||void 0===r?void 0:r.filter((function(e,t){return t%2!==0})),a=0;a<i.length;a++)o.push({name:i[a],rating:s[a]});U(o),J("bundle"===t.productType)}else if(t){G(t.name);var c=[];
1t.products.forEach((function(e){for(var t,n=$.find((function(t){return t.id===e.id})),o=(null===n||void 0===n||null===(t=n.listIngredients)||void 0===t?void 0:t.split("|"))||[],r=null===o||void 0===o?void 0:o.filter((function(e,t){return t%2===0})),i=null===o||void 0===o?void 0:o.filter((function(e,t){return t%2!==0})),s=0;s<r.length;s++)c.push({productName:null===n||void 0===n?void 0:n.name,name:r[s],rating:i[s]})})),c&&(null===c||void 0===c?void 0:c.length)&&U(c),J("bundle"===t.productType)}}q(!V)},ne=Object(r.useRef)(null);function oe(){var e,t=null===(e=P.currency)||void 0===e?void 0:e.code,n=(P&&4==P.status?(null===P||void 0===P?void 0:P.refundItems)||[]:P.items).filter((function(e){var t,n,o;return!(null!==(t=e.product)&&void 0!==t&&null!==(n=t.category)&&void 0!==n&&null!==(o=n.name)&&void 0!==o&&o.toLowerCase().includes("freebies"))})).filter((function(e){var t;return"5df88fa82b08ab622a06a1e5"!==(null===(t=e.product)||void 0===t?void 0:t.id)})).map((function(e){var n,o,r,i,s,a,c,l={quantity:e.quantity,name:null===(n=e.product)||void 0===n?void 0:n.name,category_id:null===(o=e.product)||void 0===o||null===(r=o.category)||void 0===r?void 0:r.yotpoId,category_name:null===(i=e.product)||void 0===i||null===(s=i.category)||void 0===s?void 0:s.name,product_id:null===(a=e.product)||void 0===a?void 0:a.id,price:e.amount/e.quantity,product_yotpo_id:null===(c=e.product)||void 0===c?void 0:c.yotpoId,currency:t};return Object(v.C)(l),l}));D(!0),Object(j.a)("AddToCart",{products:n})}Object(r.useLayoutEffect)((function(){ne&&F(!0)}),[ne]),Object(r.useEffect)((function(){var e=null;return z&&(e=setTimeout((function(){T(P),D(!1)}),2e3)),function(){e&&clearTimeout(e)}}),[z]);var re=Object(r.useMemo)((function(){return(null===P||void 0===P?void 0:P.fulfillmentStatus)==f.h[3].key||(null===P||void 0===P?void 0:P.fulfillmentStatus)==f.h[4].key||(null===P||void 0===P?void 0:P.fulfillmentStatus)==f.h[5].key}),[P]),ie=Object(r.useCallback)((function(){var e,t,n,o,r=String(null===P||void 0===P?void 0:P.chargedPrice),i=0;null!==P&&void 0!==P&&null!==(e=P.tax_details)&&void 0!==e&&e.tax_amount&&(i=(null===P||void 0===P||null===(t=P.tax_details)||void 0===t?void 0:t.tax_amount)/100,r="".concat(r," + ").concat(Object(y.f)(null===P||void 0===P||null===(n=P.currency)||void 0===n||null===(o=n.code)||void 0===o?void 0:o.toUpperCase())).concat(i," tax"));return r}),[P]);return Object(o.jsxs)("div",{className:a()("organisms-order-card",{"go-green":(null===P||void 0===P?void 0:P.goGreenPackaging)&&!(re&&(null!==P&&void 0!==P&&P.trackingNumber||null!==(t=P.trackingDetails)&&void 0!==t&&t.trackingLink))}),children:[P.goGreenPackaging&&!(re&&!Object(v.w)()&&(null!==P&&void 0!==P&&P.trackingNumber||null!==(n=P.trackingDetails)&&void 0!==n&&n.trackingLink))&&Object(o.jsx)("div",{className:"organisms-order-card__go-green-packaging",children:Object(o.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/img/gogreen.png",alt:"go green packaging"})}),re&&!Object(v.w)()&&((null===P||void 0===P?void 0:P.trackingNumber)||(null===(s=P.trackingDetails)||void 0===s?void 0:s.trackingLink))&&Object(o.jsxs)("div",{className:"organisms-order-card__tracking-link",children:[Object(o.jsx)(u.a,{href:null!==(O=P.trackingDetails)&&void 0!==O&&O.trackingLink?null===(x=P.trackingDetails)||void 0===x?void 0:x.trackingLink:["United States","Singapore"].includes(P.shippingAddress.country)?"https://www.trackmyshipment.co/shipment-tracking/".concat(P.trackingNumber):"https://www.dhl.com/global-en/home/tracking/tracking-express.html?submit=1&tracking-id=".concat(P.trackingNumber),target:"_blank",children:"TRACK DELIVERY"}),Object(o.jsx)("img",{src:"https://lovefromyours-cdn.s3.us-east-1.amazonaws.com/tracking-link-arrow.svg",alt:"tracking link"})]}),Object(o.jsxs)("div",{className:"organisms-order-card__slider-wrapper",children:[Object(o.jsx)(l.a,{black:!0,size:"middle",strong:!0,children:Object(v.w)()?Object(o.jsxs)(o.Fragment,{children:[Object(y.i)(Number(null===P||void 0===P?void 0:P.chargedPrice),Object(y.f)(null===P||void 0===P?void 0:P.currency.code.toUpperCase()))," ","(",4==P.status?null===P||void 0===P||null===(w=P.refundItems)||void 0===w?void 0:w.length:P.items.length," ",1==P.items.length?"item":"items",")",4==P.status&&Object(o.jsx)("span",{className:"refund-notification",children:"Refunded"})]}):Object(o.jsxs)(o.Fragment,{children:[" ","Number of Products -"," ",4==P.status?null===P||void 0===P||null===(C=P.refundItems)||void 0===C?void 0:C.length:P.items.length,0==P.items.length&&Object(o.jsx)("span",{className:"refund-notification",children:"Refunded"})]})}),Object(o.jsx)("div",{ref:ne,className:"organisms-order-card__slider-content",children:R&&Object(o.jsx)(d.a,{items:4==P.status?(null===P||void 0===P?void 0:P.refundItems)||[]:P.items,slidersContainer:ne.current,onClickItem:te,locale:P.countryCode,showLabel:3==P.status})})]}),Object(o.jsxs)("div",{className:"organisms-order-card__shipping-info-wrapper",children:[Object(o.jsxs)("div",{className:"organisms-order-card__shipping-info-top",children:[Object(o.jsx)(p.a,{title:"Order Number",children:P.shortId}),Object(o.jsx)(p.a,{title:"Total Price ".concat(null!==P&&void 0!==P&&null!==(k=P.tax_details)&&void 0!==k&&k.tax_amount?"(+ Tax)":""),children:Object(y.i)(ie(),Object(y.f)(null===P||void 0===P?void 0:P.currency.code.toUpperCase()))}),Object(o.jsx)(p.a,{title:"Payment",children:void 0!==P.status&&(null===(S=f.i.find((function(e){return e.key==P.status})))||void 0===S?void 0:S.value)||"--"}),Object(o.jsx)(p.a,{title:"Payment Method",children:P.paymentMethod}),Object(o.jsx)(p.a,{title:"Order Date",children:P.createdAt&&Object(h.a)(P.createdAt)}),(null===P||void 0===P?void 0:P.status)==f.i[0].key?Object(o.jsx)(p.a,{title:"Order Status",children:"Incomplete order \u26a0\ufe0f"}):Object(o.jsx)(p.a,{title:"Order Status",children:void 0!==P.fulfillmentStatus&&(null===(N=f.h.find((function(e){return e.key==P.fulfillmentStatus})))||void 0===N?void 0:N.value)||"--"}),re&&Object(v.w)()&&(null!==P&&void 0!==P&&P.trackingNumber||null!==(E=P.trackingDetails)&&void 0!==E&&E.trackingLink)?Object(o.jsx)("div",{className:"molecules-info-card",children:Object(o.jsxs)("div",{className:"organisms-order-card__tracking-link",children:[Object(o.jsx)(u.a,{href:null!==(I=P.trackingDetails)&&void 0!==I&&I.trackingLink?null===(M=P.trackingDetails)||void 0===M?void 0:M.trackingLink:["United States","Singapore"].includes(P.shippingAddress.country)?"https://www.trackmyshipment.co/shipment-tracking/".concat(P.trackingNumber):"https://www.dhl.com/global-en/home/tracking/tracking-express.html?submit=1&tracking-id=".concat(P.trackingNumber),target:"_blank",children:"TRACK DELIVERY"}),Object(o.jsx)("img",{src:"https://lovefromyours-cdn.s3.us-east-1.amazonaws.com/tracking-link-arrow.svg",alt:"tracking link"})]})}):null,Object(o.jsx)(p.a,{title:"Shipping Address",children:P.shippingAddress&&Object(g.a)(P.shippingAddress)})]}),Object(o.jsxs)("div",{className:"organisms-order-card__shipping-info-bottom",onClick:function(e){e.preventDefault();var t=localStorage.getItem("guestEmail");window.analytics.identify(t,{email:t,name:P.user.firstName+P.user.lastName,orderId:P.shortId}),Object(v.h)("Ask CS",{}),window.location.href="mailto:[email protected]"},children:[Object(o.jsx)("span",{className:"organisms-order-card__shipping-info-bottom_desktop",children:Object(o.jsx)(p.a,{title:"Need help with this order?",bordered:!0,hyperlink:!0,href:"mailto:[email protected]",children:"To edit products or cancel contact our support team."})}),Object(o.jsx)("span",{className:"organisms-order-card__shipping-info-bottom_mobile",children:Object(o.jsx)(p.a,{title:"Need help with this order?",bordered:!0,hyperlink:!0,href:"mailto:[email protected]",children:"To cancel please contact our support team."})})]})]}),Object(o.jsx)("div",{className:a()("organisms-order-card__buttons-wrapper",{"incomplete-order":(null===P||void 0===P?void 0:P.status)==f.i[0].key}),children:(null===P||void 0===P?void 0:P.status)==f.i[0].key?Object(o.jsx)(c.a,{maxWidth:"100%",onClick:function(){return oe()},bordered:!0,loading:z,children:z?Object(o.jsx)(b.a,{}):"Complete your order"}):Object(o.jsx)(o.Fragment,{children:("US"===ee||"AU"===ee)&&Object(o.jsx)(c.a,{maxWidth:"100%",onClick:function(){return oe()},bordered:!0,loading:z,round:!0,children:z?Object(o.jsx)(b.a,{}):"Reorder"})})}),Object(o.jsx)(m.a,{warningItems:_,name:Z,ingredients:H,turnOn:V,onClick:te,isBundle:X})]})}},"2rMq":function(e,t,n){var o;!function(){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseVie
1wport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},"2zs7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=n("2rMq");var i=((o=r)&&o.__esModule?o:{default:o}).default,s=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=s},"5kql":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var o=n("k2H8");function r(e){return{type:o.a.GET_PAGINATED_LIST_OF_CATEGORY,country:e}}function i(e,t){return{type:o.a.GET_CATEGORY_BY_ID,payload:e}}function s(){return{type:o.a.GET_CURRENCY_USING_USER_IP}}},"94HM":function(e,t,n){(e.exports=n("I1BE")(!1)).push([e.i,"@keyframes closeWindow {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n\n.ril__outer {\n background-color: rgba(0, 0, 0, 0.85);\n outline: none;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n width: 100%;\n height: 100%;\n -ms-content-zooming: none;\n -ms-user-select: none;\n -ms-touch-select: none;\n touch-action: none;\n}\n\n.ril__outerClosing {\n opacity: 0;\n}\n\n.ril__inner {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.ril__image,\n.ril__imagePrev,\n.ril__imageNext {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n max-width: none;\n -ms-content-zooming: none;\n -ms-user-select: none;\n -ms-touch-select: none;\n touch-action: none;\n}\n\n.ril__imageDiscourager {\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n}\n\n.ril__navButtons {\n border: none;\n position: absolute;\n top: 0;\n bottom: 0;\n width: 20px;\n height: 34px;\n padding: 40px 30px;\n margin: auto;\n cursor: pointer;\n opacity: 0.7;\n}\n.ril__navButtons:hover {\n opacity: 1;\n}\n.ril__navButtons:active {\n opacity: 0.7;\n}\n\n.ril__navButtonPrev {\n left: 0;\n background: rgba(0, 0, 0, 0.2)\n url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==')\n no-repeat center;\n}\n\n.ril__navButtonNext {\n right: 0;\n background: rgba(0, 0, 0, 0.2)\n url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+')\n no-repeat center;\n}\n\n.ril__downloadBlocker {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');\n background-size: cover;\n}\n\n.ril__caption,\n.ril__toolbar {\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n left: 0;\n right: 0;\n display: flex;\n justify-content: space-between;\n}\n\n.ril__caption {\n bottom: 0;\n max-height: 150px;\n overflow: auto;\n}\n\n.ril__captionContent {\n padding: 10px 20px;\n color: #fff;\n}\n\n.ril__toolbar {\n top: 0;\n height: 50px;\n}\n\n.ril__toolbarSide {\n height: 50px;\n margin: 0;\n}\n\n.ril__toolbarLeftSide {\n padding-left: 20px;\n padding-right: 0;\n flex: 0 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ril__toolbarRightSide {\n padding-left: 0;\n padding-right: 20px;\n flex: 0 0 auto;\n}\n\n.ril__toolbarItem {\n display: inline-block;\n line-height: 50px;\n padding: 0;\n color: #fff;\n font-size: 120%;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ril__toolbarItemChild {\n vertical-align: middle;\n}\n\n.ril__builtinButton {\n width: 40px;\n height: 35px;\n cursor: pointer;\n border: none;\n opacity: 0.7;\n}\n.ril__builtinButton:hover {\n opacity: 1;\n}\n.ril__builtinButton:active {\n outline: none;\n}\n\n.ril__builtinButtonDisabled {\n cursor: default;\n opacity: 0.5;\n}\n.ril__builtinButtonDisabled:hover {\n opacity: 0.5;\n}\n\n.ril__closeButton {\n background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcu
1NSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=')\n no-repeat center;\n}\n\n.ril__zoomInButton {\n background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+')\n no-repeat center;\n}\n\n.ril__zoomOutButton {\n background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=')\n no-repeat center;\n}\n\n.ril__outerAnimating {\n animation-name: closeWindow;\n}\n\n@keyframes pointFade {\n 0%,\n 19.999%,\n 100% {\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n}\n\n.ril__loadingCircle {\n width: 60px;\n height: 60px;\n position: relative;\n}\n\n.ril__loadingCirclePoint {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n}\n.ril__loadingCirclePoint::before {\n content: '';\n display: block;\n margin: 0 auto;\n width: 11%;\n height: 30%;\n background-color: #fff;\n border-radius: 30%;\n animation: pointFade 800ms infinite ease-in-out both;\n}\n.ril__loadingCirclePoint:nth-of-type(1) {\n transform: rotate(0deg);\n}\n.ril__loadingCirclePoint:nth-of-type(7) {\n transform: rotate(180deg);\n}\n.ril__loadingCirclePoint:nth-of-type(1)::before,\n.ril__loadingCirclePoint:nth-of-type(7)::before {\n animation-delay: -800ms;\n}\n.ril__loadingCirclePoint:nth-of-type(2) {\n transform: rotate(30deg);\n}\n.ril__loadingCirclePoint:nth-of-type(8) {\n transform: rotate(210deg);\n}\n.ril__loadingCirclePoint:nth-of-type(2)::before,\n.ril__loadingCirclePoint:nth-of-type(8)::before {\n animation-delay: -666ms;\n}\n.ril__loadingCirclePoint:nth-of-type(3) {\n transform: rotate(60deg);\n}\n.ril__loadingCirclePoint:nth-of-type(9) {\n transform: rotate(240deg);\n}\n.ril__loadingCirclePoint:nth-of-type(3)::before,\n.ril__loadingCirclePoint:nth-of-type(9)::before {\n animation-delay: -533ms;\n}\n.ril__loadingCirclePoint:nth-of-type(4) {\n transform: rotate(90deg);\n}\n.ril__loadingCirclePoint:nth-of-type(10) {\n transform: rotate(270deg);\n}\n.ril__loadingCirclePoint:nth-of-type(4)::before,\n.ril__loadingCirclePoint:nth-of-type(10)::before {\n animation-delay: -400ms;\n}\n.ril__loadingCirclePoint:nth-of-type(5) {\n transform: rotate(120deg);\n}\n.ril__loadingCirclePoint:nth-of-type(11) {\n transform: rotate(300deg);\n}\n.ril__loadingCirclePoint:nth-of-type(5)::before,\n.ril__loadingCirclePoint:nth-of-type(11)::before {\n animation-delay: -266ms;\n}\n.ril__loadingCirclePoint:nth-of-type(6) {\n transform: rotate(150deg);\n}\n.ril__loadingCirclePoint:nth-of-type(12) {\n transform: rotate(330deg);\n}\n.ril__loadingCirclePoint:nth-of-type(6)::before,\n.ril__loadingCirclePoint:nth-of-type(12)::before {\n animation-delay: -133ms;\n}\n.ril__loadingCirclePoint:nth-of-type(7) {\n transform: rotate(180deg);\n}\n.ril__loadingCirclePoint:nth-of-type(13) {\n transform: rotate(360deg);\n}\n.ril__loadingCirclePoint:nth-of-type(7)::before,\n.ril__loadingCirclePoint:nth-of-type(13)::before {\n animation-delay: 0ms;\n}\n\n.ril__loadingContainer {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.ril__imagePrev .ril__loadingContainer,\n.ril__imageNext .ril__loadingContainer {\n display: none;\n}\n\n.ril__errorContainer {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #fff;\n}\n.ril__imagePrev .ril__errorContainer,\n.ril__imageNext .ril__errorContainer {\n display: none;\n}\n\n.ril__loadingContainer__icon {\n color: #fff;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n}\n",""])},"9PRL":function(e,t,n){"use strict";n.r(t);var o=n("DfXw");t.default=o.default},"9rZX":function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var o,r=n("qFS3"),i=(o=r)&&o.__esModule?o:{default:o};t.default=i.default,e.exports=t.default},BsWD:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("a3WO");function r(e,t){if(e){if("string"===typeof e)return Object(o.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(o.a)(e,t):void 0}}},DfXw:function(e,t,n){"use strict";n.r(t);var o=n("cpVT"),r=n("nKUr"),i=n("q1tI"),s=n("/MKj"),a=n("20a2"),c=n.n(a),l=n("Vvt1"),u=n.n(l),d=n("TSYQ"),p=n.n(d),m=n("p46w"),f=n.n(m),b=n("IF/j"),h=n("0wdU"),g=n("xD5/"),j=n("THy4"),v=n("p7LQ"),y=n("2XsU"),_=(n("C0Ud"),n("wyBh")),O=function(e){var t=e.orderList,n=e.reOrder;return t=t.filter((function(e){if(2==e.status||4==e.status||3==e.status)return e})),Object(r.jsx)("div",{className:"templates-order-history",children:Object(r.jsxs)("div",{className:"templates-order-history__content-wrapper",children:[t&&t.length>0&&Object(r.jsxs)("main",{className:"templates-order-history__main",children:[Object(r.jsx)("div",{className:"templates-order-history__title-wrapper",children:Object(r.jsx)(v.a,{size:"s48",children:"Your Order History"})}),t.map((function(e){var t;return Object(r.jsx)("div",{className:p()("templates-order-history__order-card-wrapper",{"tracking-link-spacing":(e.fulfillmentStatus==_.h[3].key||e.fulfillmentStatus==_.h[4].key||e.fulfillmentStatus==_.h[5].key)&&(e.trackingNumber||(null===(t=e.trackingDetails)||void 0===t?void 0:t.trackingLink))}),children:Object(r.jsx)(y.OrderCard,{orderHistoryList:e,reOrder:n})},e.id)}))]}),Object(b.w)()&&Object(r.jsx)(g.a,{})]})})},x=n("WkpF"),w=n("LVGJ"),C=(n("DHtI"),function(){return Object(r.jsx)("div",{className:"molecules-empty-order-history__wrapper",children:Object(r.jsxs)("div",{className:"molecules-empty-order-history__container",children:[Object(r.jsx)("div",{className:"molecules-empty-order-history__title",children:Object(r.jsx)(v.b,{size:"s36",children:"Your Order History"})}),Object(r.jsxs)("div",{className:"molecules-empty-order-history__content",children:[Object(r.jsxs)("div",{className:"molecules-empty-order-history__picture",children:[Object(r.jsx)("div",{className:"molecules-empty-order-history__circle"}),Object(r.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/images/EmptyOrderHistory.png",alt:"A box with set of products",className:"molecules-empty-order-history__img"})]}),Object(r.jsx)("p",{className:"molecules-empty-order-history__text",children:"You have no orders. Get yours now!"})]}),Object(r.jsxs)("div",{className:"molecules-empty-order-history__buttons",children:[Object(r.jsx)("div",{className:"molecules-empty-order-history__button",children:Object(r.jsx)(w.a,{type:"block",href:"/products",children:Object(r.jsx)(x.a,{type:"ghost",maxWidth:"320px",bordered:!0,round:!0,children:"See Products"})})}),Object(r.jsx)("div",{className:"molecules-empty-order-history__button",children:Object(r.jsx)(w.a,{type:"block",href:"/assessment",children:Object(r.jsx)(x.a,{type:"primary",maxWidth:"320px",bordered:!0,round:!0,children:"Build Your Routine"})})})]})]})})}),k=n("DXSD"),S=(n("og01"),function(){return Object(r.jsx)("div",{className:"molecules-empty-subscribtions__wrapper",children:Object(r.jsxs)("div",{className:"molecules-empty-subscribtions__container",children:[Object(r.jsxs)("div",{className:"molecules-empty-subscribtions__content",children:[Object(r.jsx)("div",{className:"molecules-empty-subscribtions__title",children:Object(r.jsx)(v.b,{size:"s36",children:"Your Subscriptions"})}),Object(r.jsx)("p",{className:"molecules-empty-subscribtions__discount",children:"Subscribe and save 15%"}),Object(r.jsx)("p",{className:"molecules-empty-subscribtions__text molecules-empty-subscribtions__info",children:"Personalised skin care delivered to your doorstep at regular intervals. Simply start by taking an assessment or subscribing to any of your previous orders."}),Object(r.jsx)("p",{className:"molecules-empty-subscribtions__subtitle",children:"How does it work?"}),Object(r.jsxs)("ul",{className:"molecules-empty-subscribtions__advantages",children:[Object(r.jsxs)("li",{className:"molecules-empty-subscribtions__advantages-item",children:[Object(r.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/icons/subscriptions/updates.svg",alt:"A package with a bottle",className:"molecules-empty-subscribtions__advantages-img"}),Object(r.jsxs)("span",{className:"molecules-empty-subscribtions__text molecules-empty-subscribtions__advantages-caption",children:["Updates with ",Object(r.jsx)("br",{})," your skin needs"]})]}),Object(r.jsxs)("li",{className:"molecules-empty-subscribtions__advantages-item",children:[Object(r.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/icons/subscriptions/discount.svg",alt:"A discount tag",className:"molecules-empty-subscribtions__advantages-img"}),Object(r.jsxs)("span",{className:"molecules-empty-subscribtions__text molecules-empty-subscribtions__advantages-caption",children:["15% savings, ",Object(r.jsx)("br",{})," every time"]})]}),Object(r.jsxs)("li",{className:"molecules-empty-subscribtions__advantages-item",children:[Object(r.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/icons/subscriptions/cansel.svg",alt:"A hand holding a smartphone with a cancel button on its screen",className:"molecules-empty-subscribtions__advantages-img"}),Object(r.jsxs)("span",{className:"molecules-empty-subscribtions__text molecules-empty-subscribtions__advantages-caption",children:["Cancel or ",Object(r.jsx)("br",{})," pause anytime"]})]}),Object(r.jsxs)("li",{className:"molecules-empty-subscribtions__advantages-item",children:[Object(r.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/icons/subscriptions/shipping.svg",alt:"Fast moving truck",className:"molecules-empty-subscribtions__advantages-img"}),Object(r.jsxs)("span",{className:"molecules-empty-subscribtions__text molecules-empty-subscribtions__advantages-caption",children:["Free express ",Object(r.jsx)("br",{})," shipping"]})]}),Object(r.jsxs)("li",{className:"molecules-empty-subscribtions__advantages-item",children:[Object(r.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/icons/subscriptions/support.svg",alt:"A handset",className:"molecules-empty-subscribtions__advantages-img"}),Object(r.jsxs)("span",{className:"molecules-empty-subscribtions__text molecules-empty-subscribtions__advantages-caption",children:["Endless ",Object(r.jsx)("br",{})," priority support"]})]}),Object(r.jsxs)("li",{className:"molecules-empty-subscribtions__advantages-item",children:[Object(r.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/icons/subscriptions/early-access.svg",alt:"A hand holding a badge with a VIP' caption",className:"molecules-empty-subscribtions__advantages-img"}),Object(r.jsxs)("span",{className:"molecules-empty-subscribtions__text molecules-empty-subscribtions__advantages-caption",children:["Exclusive ",Object(r.jsx)("br",{})," early access"]})]})]})]}),Object(r.jsxs)("div",{className:"molecules-empty-subscribtions__buttons",children:[Object(r.jsx)("div",{className:"molecules-empty-subscribtions__button",children:Object(r.jsx)(w.a,{type:"block",href:"/accounts/order-history",children:Object(r.jsx)(x.a,{type:"ghost",maxWidth:"320px",bordered:!0,round:!0,children:"See Previous Orders"})})}),Object(r.jsx)("div",{className:"molecules-empty-subscribtions__button",children:Object(r.jsx)(w.a,{type:"block",href:"/assessment",children:Object(r.jsx)(x.a,{type:"primary",maxWidth:"320px",bordered:!0,round:!0,children:"Build Your Routine"})})})]})]})})}),N=n("Lnei"),E=n("11jv"),I=n("y2Vs"),M=(n("aoo5"),n("wd/R")),P=n.n(M),T=n("a0wy"),A=n("lRVB");function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?z(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=[{label:"Every 1 month ",value:{value:30,frequency:"days"}},{label:"Every 2 months",value:{value:60,frequency:"days"}},{label:"Every 3 months",value:{value:90,frequency:"days"}}],R={control:function(e){return D(D({},e),{},{minHeight:"48px"})},singleValue:function(e){return D(D({},e),{},{color:_.u,fontFamily:"Avenir_Light",fontStyle:"normal",fontWeight:400,fontSize:"18px",lineHeight:"25px"})},menu:function(e){return D(D({},e),{},{borderBottom:"1px dotted pink",color:_.u,fontSize:"20px",padding:0})},input:function(e){return D(D({},e),{},{fontSize:"16px"})}};function F(e){var t=e.activeSubscription,n=e.closeModal,o=e.checkCardExpiry,a=Object(i.useState)(void 0),c=a[0],l=a[1],u=Object(s.useDispatch)(),d=Object(i.useState)("update"),p=d[0],m=d[1],f=Object(i.useState)(!1),b=f[0],g=f[1];Object(i.useEffect)((function(){if(null!==t&&void 0!==t&&t.period){var e=L.find((function(e){return(null===t||void 0===t?void 0:t.period.value)===e.value.value}));l(e)}var n=o(null===t||void 0===t?void 0:t.cardDetails);null!==n&&void 0!==n&&n.includes("Expir")&&m("expired")}),[t]);var j=Object(i.useMemo)((function(){var e;return null===t||void 0===t||null===(e=t.items)||void 0===e?void 0:e.reduce((function(e,t){return e+=Number(t.price)}),0)}),[t]),y=Object(i.useMemo)((function(){var e,n;return null!==t&&void 0!==t&&t.promotionDetail&&null!==t&&void 0!==t&&null!==(e=t.promotionDetail)&&void 0!==e&&e.percentageValue?(null===t||void 0===t||null===(n=t.promotionDetail)||void 0===n?void 0:n.percentageValue)+"%":"15%"}),[t]),O=Object(i.useCallback)((function(){g(!0),u(Object(h.d)(null===t||void 0===t?void 0:t._id,{subscriptionPeriod:null===c||void 0===c?void 0:c.value,isPaused:!1,isActive:!0,callback:function(e){g(!1),e?(m("success"),setTimeout((function(){n()}),3e3)):m("expired")}}))}),[n,c]);return Object(r.jsxs)("div",{className:"organisms-cancel-subscription",children:[Object(r.jsx)("div",{className:"organisms-cancel-subscription__title-block",children:Object(r.jsx)("h3",{children:"Resume Subscription"})}),"update"===p&&Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)("div",{className:"organisms-cancel-subscription__content-block organisms-cancel-subscription__content-frequency",children:[Object(r.jsx)("p",{className:"organisms-cancel-subscription__content-title",children:"Frequency"}),Object(r.jsx)(I.default,{className:"organisms-subscriptions-edit__content-body-select",classNamePrefix:"select-dropdown",options:L,value:c,onChange:function(e){l(e),window.analytics.track("subpage_frequency",{subscriptionId:null===t||void 0===t?void 0:t._id,userId:null===t||void 0===t?void 0:t.user,source:"update sub page"})},styles:R,theme:function(e){return D(D({},e),{},{colors:D(D({},e.colors),{},{primary:_.u})})}})]}),Object(r.jsxs)("div",{className:"organisms-cancel-subscription__content-block",children:[Object(r.jsx)("p",{className:"organisms-cancel-subscription__content-title",children:"Resume Order Date"}),Object(r.jsxs)("p",{className:"organisms-cancel-subscription__content-date",children:["Today - ",P()().format("MMM DD YYYY")]})]}),Object(r.jsxs)("div",{className:"organisms-cancel-subscription__content-block",children:[Object(r.jsx)("p",{className:"organisms-cancel-subscription__content-title",children:"Total Price"}),Object(r.jsxs)("p",{className:"organisms-cancel-subscription__content-price",children:[(null===t||void 0===t?void 0:t.currency)&&"$"+(null===t||void 0===t?void 0:t.chargedPrice)+" ",Object(r.jsx)("s",{style:{opacity:.65,marginRight:"5px"},children:"$"+j}),Object(r.jsx)("span",{className:"discount-block",children:y+" off"})]})]}),Object(r.jsx)("div",{className:"organisms-cancel-subscription__content-block",children:b?Object(r.jsx)(x.a,{onClick:function(){},maxWidth:"100%",bordered:!0,children:Object(r.jsx)(T.a,{})}):Object(r.jsx)(x.a,{onClick:O,maxWidth:"100%",bordered:!0,children:"Resume"})}),Object(r.jsxs)("div",{className:"organisms-cancel-subscription__content-block",children:[Object(r.jsx)("p",{className:"organisms-cancel-subscription__content-footer-title",children:"Peace of mind \ud83d\ude07"}),Object(r.jsx)("p",{className:"organisms-cancel-subscription__content-footer-description",children:"You can edit products, shipping info, or payment method after you\u2019ve resumed your subscription or simply reach out to our support team."})]})]}),"success"===p&&Object(r.jsx)(r.Fragment,{children:Object(r.jsxs)("div",{className:"organisms-cancel-subscription__active",children:[Object(r.jsx)(A.a,{size:81}),Object(r.jsx)(v.c,{size:"s18",children:"Subscription Activated!"}),Object(r.jsx)("p",{className:"organisms-cancel-subscription__active__message",children:"All set! Your subscription has been activated and you will receive an email confirmation shortly."})]})})]})}n("XOX4");function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var H=function(e){var t=e.subscriptionList,n=Object(s.useDispatch)(),a=Object(s.useSelector)((function(e){var t=e.category,n=e.cart;return{locale:t.currentUserLoaction.country_code,cartOpen:n.showCart}})),c=a.locale,l=a.cartOpen,u=Object(i.useState)(!1),d=u[0],p=u[1],m=Object(i.useState)({}),f=m[0],j=m[1],y=Object(i.useState)(!1),_=y[0],O=y[1],x=Object(i.useCallback)((function(){p(!0)}),[]),w=Object(i.useCallback)((function(){p(!1),j({})}),[]),C=Object(i.useCallback)((function(){O(!0)}),[]),I=Object(i.useCallback)((function(){O(!1),j({})}),[]),M=function(e){if(e&&e.exp_month&&e.exp_year){var t=new Date;if(t.getFullYear()<=e.exp_year){var n=P()([t.getFullYear(),t.getMonth(),t.getDate()]),o=P()([e.exp_year,e.exp_month-1,27]).diff(n,"days");return o>0&&o<60?"Expiring Soon":o<=0?"Expired":""}return"Expired"}return""},T=function(e){var t={items:e.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?B(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{product:e.product._id,quantity:e.quantity,recommendationType:e.recommendationType?e.recommendationType:e&&e.product&&e.product.category&&e.product.category.name,item_source:"order_history"})}))};n(Object(h.u)(t)),n(Object(h.M)(!l))};return Object(r.jsxs)("div",{className:"templates-subscriptions",children:[t.length>0?Object(r.jsx)("div",{className:"templates-subscriptions__content-wrapper",children:Object(r.jsxs)("main",{className:"templates-subscriptions__main",children:[Object(r.jsx)("div",{className:"templates-subscriptions__title-wrapper",children:Object(r.jsx)(v.a,{size:"s48",children:"Your Subscriptions"})}),t.map((function(e){return Object(r.jsx)("div",{className:"templates-subscriptions__order-card-wrapper",children:Object(r.jsx)(k.SubscriptionCard,{subscribedList:e,cancelledPage:!1,nextOrderBlock:!0,showNeedHelp:!0,showAddProduct:!0,showEditProduct:!1,action:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"resume";j(e),"resume"===t?"SG"===c?T(e.items):x():"SG"===c?T(e.items):C()},pauseAction:function(e){n(Object(h.t)(e))}})},e.id)}))]})}):Object(r.jsx)(S,{}),Object(r.jsx)("div",{style:{marginBottom:"25px"}}),Object(b.w)()&&Object(r.jsx)(g.a,{}
1),Object(r.jsx)(N.b,{open:d,onClose:w,center:!0,showCloseIcon:!0,classNames:{modal:"cancelled-subscription-modal"},children:Object(r.jsx)(E.a,{activeSubscription:f,closeModal:w,checkCardExpiry:M})}),Object(r.jsx)(N.b,{open:_,onClose:I,center:!0,showCloseIcon:!0,classNames:{modal:"cancelled-subscription-modal"},children:Object(r.jsx)(F,{activeSubscription:f,closeModal:w,checkCardExpiry:M})})]})},U=(n("fBqk"),n("BMod"),n("SMlj"),n("Ma5Y")),W=n.n(U),Z=n("MEqd"),G=n("NKo/"),Y=n("rTo2"),V=n("QnuM"),q=n("5kql"),K=n("gtM7"),X=n("xGhK"),J=(n("iPWt"),n("g4pe")),Q=n.n(J),$=n("JhT1"),ee=n("eN0u"),te=n("bq1B");function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var oe=u()((function(){return Promise.all([n.e(11),n.e(399)]).then(n.bind(null,"J8E0"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["J8E0"]},modules:["accounts/accounts.js -> components/header/header"]}}),re=u()((function(){return Promise.all([n.e(9),n.e(396)]).then(n.bind(null,"s8Nk"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["s8Nk"]},modules:["accounts/accounts.js -> components/accounts/accountsSidebar/accountsSidebar"]}}),ie=u()((function(){return Promise.all([n.e(46),n.e(51),n.e(110),n.e(9),n.e(361)]).then(n.bind(null,"a/Ih"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["a/Ih"]},modules:["accounts/accounts.js -> components/accounts/accountsDetails/accountsDetails"]}}),se=u()((function(){return Promise.all([n.e(46),n.e(51),n.e(9),n.e(392)]).then(n.bind(null,"n8uj"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["n8uj"]},modules:["accounts/accounts.js -> components/accounts/addressBook/addressBook"]}}),ae=u()((function(){return Promise.all([n.e(9),n.e(404)]).then(n.bind(null,"HX4D"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["HX4D"]},modules:["accounts/accounts.js -> components/accounts/userHistory/userHistory"]}}),ce=u()((function(){return Promise.all([n.e(9),n.e(381)]).then(n.bind(null,"CfYG"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["CfYG"]},modules:["accounts/accounts.js -> components/accounts/assessmentHistory/assessmentHistory"]}}),le=u()((function(){return Promise.all([n.e(9),n.e(403)]).then(n.bind(null,"dgox"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["dgox"]},modules:["accounts/accounts.js -> components/accounts/help/help"]}}),ue=(u()((function(){return Promise.all([n.e(9),n.e(370)]).then(n.bind(null,"q2Oi"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["q2Oi"]},modules:["accounts/accounts.js -> components/accounts/completed-assessment"]}}),function(e){var t={};Object(s.useSelector)((function(e){var t,n;return null===(t=e.ui)||void 0===t||null===(n=t.referralResultPage)||void 0===n?void 0:n.url}));return e.isMobileView&&(t.display=-1!==e.currentIndex?"block":"none"),Object(r.jsx)("div",{style:t,className:p()("render-layout relative",{nonPaddedLayout:2===e.currentIndex&&e.isMobileView||3===e.currentIndex||4===e.currentIndex||5===e.currentIndex}),children:e.children})}),de={"/accounts/subscription":3,"/accounts/order-history":2,"/accounts/assessment":1,"/accounts/help":4,"/accounts/detail":0},pe=function(){var e=window&&window.location.pathname;return"/accounts/assessment"==e?"Your Assessment":"/accounts/referral"==e?"Refer & Earn \ud83c\udf81":"/accounts/subscription"==e?"Your Subscriptions":"/accounts/order-history"==e?"Your Order History":"/accounts/progress-tracker"==e?"Your Progress Tracker":void 0},me=function(e){return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(ae,{heading:"Start your custom skincare routine",subHeading:"Hi, ".concat(e.guestName," you currently have not taken your assessment. Lets get you started!"),text1:"Start Skin assessment",text2:"Start New Assessment",handleSecondButtonClick:function(){window.analytics.track("start assessment magic link",{source:"account page"}),c.a.push("/assessment")}}),Object(b.w)()&&Object(r.jsx)(g.a,{})]})},fe=function(e){var t,l,u=Object(i.useState)(!1),d=(u[0],u[1],Object(i.useRef)()),m=Object(i.useState)(!1),v=(m[0],m[1]),y=Object(s.useSelector)((function(e){return e.category.currentUserLoaction.country_code})),x=function(t){var n={};console.log(t);var r=4==t.status?t.refundItems:t.items;n.items=r.filter((function(e){var t,n,o,r,i;return!e.product.category.name.toLowerCase().includes("freebies")&&!(null!==(t=e.product)&&void 0!==t&&null!==(n=t.category)&&void 0!==n&&null!==(o=n.id)&&void 0!==o&&o.includes("6392b9560e3f1017881bc338"))&&!e.product.name.includes("Clean Slate")&&!(null!==(r=e.product)&&void 0!==r&&null!==(i=r._id)&&void 0!==i&&i.includes("5f226d8393606f3249cf557d"))})).filter((function(t){if(!_.k.includes(null===t||void 0===t?void 0:t.product.name)||!_.c.includes(e.currentUserLocation.country_code))return t})).filter((function(e){var t,n;return"5f98fce8e0c08057d695632f"!==(null===(t=e.product)||void 0===t?void 0:t._id)&&"5df88f702b08ab622a06a1df"!==(null===(n=e.product)||void 0===n?void 0:n._id)})).filter((function(e){var t;return"5df88ee52b08ab622a06a1cd"!==(null===(t=e.product)||void 0===t?void 0:t._id)&&("US"===y||"AU"===y)})).filter((function(e){var t;return"5df88f4b2b08ab622a06a1d9"!==(null===(t=e.product)||void 0===t?void 0:t._id)||"AU"!==y})).map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ne(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{product:e.product._id,quantity:e.quantity,recommendationType:e.recommendationType?e.recommendationType:e&&e.product&&e.product.category&&e.product.category.name,item_source:"order_history"})})),e.dispatch(Object(h.u)(n)),e.dispatch(Object(h.M)(!e.cartOpen)),v(!0)},w=Object(a.useRouter)(),k=w.query.activeTab,S=2;e.isMobileView&&(S=-1),!k||"2"!==k&&"1"!==k||(S=parseInt(k));var N=Object(i.useState)(0),E=(N[0],N[1]),I=Object(i.useState)(S),M=I[0],P=I[1],T=Object(i.useState)(""),A=T[0],z=T[1],D=Object(i.useState)(""),L=(D[0],D[1],Object(i.useState)(null)),R=L[0],F=L[1];return Object(i.useEffect)((function(){var e=de[w.pathname];e&&P(e)}),[w.pathname]),Object(i.useEffect)((function(){var t;null!==e&&void 0!==e&&null!==(t=e.currentUserLocation)&&void 0!==t&&t.country_code||e.dispatch(Object(q.b)())}),[null===e||void 0===e||null===(t=e.currentUserLocation)||void 0===t?void 0:t.country_code]),Object(i.useEffect)((function(){e.currentUserLocation&&e.currentUserLocation.country_code&&(e.dispatch(Object(V.j)(Object(b.n)(e.currentUserLocation.country_code))),e.dispatch(Object(X.b)(e.currentUserLocation.country_code||"US")))}),[e.currentUserLocation.country_code]),Object(i.useEffect)((function(){if(n("Y9L4"),F(localStorage.getItem("isEmailVerified")),d.current)c.a.push("/sign-in");else{if("false"===localStorage.getItem("isEmailVerified"))c.a.push("/");else{var t=Object($.e)();if(null!==t&&void 0!==t&&t.userid&&(f.a.get("token")||e.dispatch(Object(h.s)({id:null===t||void 0===t?void 0:t.userid}))),f.a.get("token")){e.dispatch(Object(V.c)(localStorage.userId)),e.dispatch(Object(Z.e)({updateCart:!1})),e.dispatch(Object(h.k)(localStorage.userId)),e.dispatch(Object(Y.d)()),e.dispatch(Object(h.q)()),e.dispatch(Object(h.n)()),e.dispatch(Object(te.a)());var o=null===e||void 0===e?void 0:e.guestEmail;o&&window.analytics.identify(o,{email:o,account_section:!0}),e.dispatch(Object(h.o)(localStorage.userId))}}var r=Object(b.v)();z(r)}}),[e.name,e.guestEmail,e.isLogin]),Object(i.useEffect)((function(){e.assessmentResult.attempt&&e.dispatch(Object(Y.f)(e.assessmentResult.attempt))}),[e.assessmentResult.attempt]),R?Object(r.jsxs)("div",{className:"view-accounts",children:[Object(r.jsxs)(Q.a,{children:[Object(r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0"}),Object(r.jsx)("script",{src:"https://maps.googleapis.com/maps/api/js?key=AIzaSyBeu357yLXlkCC70TTnIq0R77if3iNx5Go&libraries=places"})]}),Object(r.jsx)(oe,{initials:A,page:"ingredients",extendedHeaderHeight:"100px",headerPadding:"0px 65px 0px 50px",headerElementColor:_.u,headerBorderRadius:"0",headerBackgroundColor:"white",title:"Learn",justifyRightContent:"flex-end",products:"Products",rightText:Object(K.a)(y,"Personalise"),personaliseBackgroundColor:"transparent",personaliseMargin:"0",personaliseFontWeight:"semibold",personaliseOpacity:"1",personaliseFontSize:"16px",personaliseColor:"#fff",srcPage:"accounts"}),Object(r.jsxs)("div",{className:"accounts-main-container",children:[Object(b.w)()?Object(r.jsx)(ee.a,{title:pe(),to:"accounts"}):Object(r.jsxs)("div",{onClick:function(){E(M),c.a.push("/accounts")},className:"account-user-name",children:[-1===M?"":Object(r.jsx)("i",{children:Object(r.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/img/left-arrow.svg",alt:""})}),Object(r.jsx)("h3",{style:{paddingLeft:"12px",color:"#312f2a"}
1,className:p()({"mar-left":-1===M,"no-left":-1!==M,flex:null===e||void 0===e||null===(l=e.userData)||void 0===l?void 0:l.isVIP}),children:pe()})]}),Object(r.jsx)(re,{accountsSidebarBgColor:"white",name:e.guestName,initials:A,currentIndex:M,changeIndex:function(e){return P(e)},isMobileView:e.isMobileView}),Object(r.jsx)(ue,{currentIndex:M,isMobileView:e.isMobileView,isOrderHistoryExist:e.orderList&&e.orderList.length>0,children:function(t){switch(t){case 0:return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(G.a,{page:"account/your-account"}),Object(r.jsxs)("div",{className:"flex render-right-container-components fadeInAnimate",children:[Object(r.jsx)("div",{className:"w-full render-left",children:Object(r.jsx)(ie,{email:e.guestEmail,name:e.guestName})}),Object(r.jsx)("div",{className:p()("w-full render-right",{"pl-10 pr-10":e.isMobileView}),children:Object(r.jsx)(se,{})})]})]});case 1:return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(G.a,{page:"account/your-assessment"}),!e.latestAssessment||e.latestAssessment.length<1?Object(r.jsx)(me,{aprop:e,guestName:e.guestName}):Object(r.jsx)(ce,{guestName:e.guestName,assessmentsHistoryList:e.latestAssessment,mobileView:e.isMobileView})]});case 2:return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(G.a,{page:"account/your-order-history"}),e.orderList&&e.orderList.length>0?Object(r.jsx)(O,{orderList:e.orderList,reOrder:x}):Object(r.jsx)(C,{})]});case 3:return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(G.a,{page:"account/your-subscriptions"}),Object(r.jsx)(H,{subscriptionList:e.subscriptionList,orderList:e.orderList,reOrder:x,dispatch:e.dispatch})]});case 4:return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(G.a,{page:"account/referral"})," ",Object(r.jsx)("div",{className:"referral-section-wrapper",children:Object(r.jsx)(j.a,{referralCode:e.referralCode.code,referralLink:e.referralCode.shortLink,redeemCodes:e.redeemCodes,country:e.currentUserLocation.country_code})}),Object(b.w)()?Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("div",{style:{marginBottom:"25px"}}),Object(r.jsx)(g.a,{title:"GET $25"})]}):null]});case 5:return Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(G.a,{page:"account/help-center"})," ",Object(r.jsx)(le,{})]});case 6:return""}}(M)})]})]}):null};fe.getInitialProps=function(e){var t=e.ctx,n=W()(t).token,o=(t.req?t.req.headers["user-agent"]:navigator.userAgent).match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);return{isLogin:Boolean(n),isMobileView:Boolean(o)}};t.default=Object(s.connect)((function(e){var t=e.auth,n=e.assessment,o=e.results,r=e.user,i=e.cart,s=e.category;return{activeUser:t.activeUser,userData:r.userData,latestAssessment:n.latestcompletedAssessmentState,assessmentResult:o.result,name:"".concat(r.userData?r.userData.firstName:""," ").concat(r.userData?r.userData.lastName:""),guestName:"".concat(r.userData?r.userData.firstName:""),guestEmail:r.userData?r.userData.email:"",orderList:i.orderList,showReOrderModal:i.showReOrderModal,cart:i,skinAssessment:n.skinAssessment,subscriptionList:i.subscriptionList,currentUserLocation:s.currentUserLoaction,cartOpen:i.showCart,referralCode:i.referralCode,redeemCodes:i.redeemCodes}}))(fe)},E9nw:function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)}
1)),t&&t.focus()}}},Ff2n:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("zLVn");function r(e,t){if(null==e)return{};var n,r,i=Object(o.a)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},Glxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("nKUr"),r=(n("q1tI"),function(e){var t=e.size,n=void 0===t?24:t;return Object(o.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",children:[Object(o.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"white"}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22.7143C17.9173 22.7143 22.7143 17.9173 22.7143 12C22.7143 6.08266 17.9173 1.28571 12 1.28571C6.08266 1.28571 1.28571 6.08266 1.28571 12C1.28571 17.9173 6.08266 22.7143 12 22.7143ZM12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#F03D3E"}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5C12.4142 5 12.75 5.30526 12.75 5.68182V14.3182C12.75 14.6947 12.4142 15 12 15C11.5858 15 11.25 14.6947 11.25 14.3182V5.68182C11.25 5.30526 11.5858 5 12 5Z",fill:"#F03D3E"}),Object(o.jsx)("circle",{cx:"12",cy:"17.75",r:"1",fill:"#F03D3E"})]})})},Gytx:function(e,t){e.exports=function(e,t,n,o){var r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!a(l))return!1;var u=e[l],d=t[l];if(!1===(r=n?n.call(o,u,d,l):void 0)||void 0===r&&u!==d)return!1}return!0}},I1BE:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"===typeof btoa){var r=(s=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),i=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[n].concat(i).concat([r]).join("\n")}var s;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"===typeof i&&(o[i]=!0)}for(r=0;r<e.length;r++){var s=e[r];"number"===typeof s[0]&&o[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},JIlm:function(e,t,n){},Ji7U:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("s4An");function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}
1),t&&Object(o.a)(e,t)}},KxSY:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o={Logo:"https://de5ibyzj5jw9r.cloudfront.net/static/images/logo_result.svg",Cart:"https://lovefromyours-cdn.s3.us-east-1.amazonaws.com/cart+icon.svg",IconArm:"https://de5ibyzj5jw9r.cloudfront.net/static/images/arm_result.svg",IconMountain:"https://de5ibyzj5jw9r.cloudfront.net/static/images/mountain_result.svg",IconRabbit:"https://de5ibyzj5jw9r.cloudfront.net/static/images/rabbit_result.svg",IconWorld:"https://de5ibyzj5jw9r.cloudfront.net/static/images/world_result.svg",IconDownArrow:"https://de5ibyzj5jw9r.cloudfront.net/static/images/down_arrow_result.svg",Minus:"https://de5ibyzj5jw9r.cloudfront.net/static/images/minus_result.svg",Plus:"https://de5ibyzj5jw9r.cloudfront.net/static/images/plus_result.svg",ImgCream:"https://de5ibyzj5jw9r.cloudfront.net/static/images/cream_result.png",ImgSunscreenCream:"https://de5ibyzj5jw9r.cloudfront.net/static/images/sunscreen_cream_result.png",ImgEyeSerumCream:"https://de5ibyzj5jw9r.cloudfront.net/static/images/EyeSerum_cream_result.png",IconEye:"https://de5ibyzj5jw9r.cloudfront.net/static/images/eye_result.svg",IconInfo:"https://de5ibyzj5jw9r.cloudfront.net/static/images/info_result.svg",ImgSugarbeet:"https://de5ibyzj5jw9r.cloudfront.net/static/images/sugarbeet_result.png",ImgShorea:"https://de5ibyzj5jw9r.cloudfront.net/static/images/shorea_result.png",Arrow:"https://de5ibyzj5jw9r.cloudfront.net/static/images/arrow_result.svg",Polygon:"https://de5ibyzj5jw9r.cloudfront.net/static/images/polygon_result.svg",Stress:"https://de5ibyzj5jw9r.cloudfront.net/static/images/stress_result.svg",Skin:"https://de5ibyzj5jw9r.cloudfront.net/static/images/skin_result.svg",Hydration:"https://de5ibyzj5jw9r.cloudfront.net/static/images/hydration_result.svg",Smile:"https://de5ibyzj5jw9r.cloudfront.net/static/images/smile_result.svg",Face:"https://de5ibyzj5jw9r.cloudfront.net/static/images/face_result.svg",SadFace:"https://de5ibyzj5jw9r.cloudfront.net/static/images/sad_result.svg",ArrowDown:"https://de5ibyzj5jw9r.cloudfront.net/static/images/arrow_down_result.svg",IconSkin:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_skin_result.svg",IconStress:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_stress_result.svg",IconArrows:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_arrows_result.svg",IconHand:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_hand_result.svg",MainImg:"https://de5ibyzj5jw9r.cloudfront.net/static/images/price_img_result.png",SmallMainImg:"https://de5ibyzj5jw9r.cloudfront.net/static/images/full_set_result.png",IconCar:"https://de5ibyzj5jw9r.cloudfront.net/static/images/car_result.svg",IconDiscount:"https://de5ibyzj5jw9r.cloudfront.net/static/images/discount_result.svg",IconBox:"https://de5ibyzj5jw9r.cloudfront.net/static/images/box_result.svg",PinkCream:"https://de5ibyzj5jw9r.cloudfront.net/static/images/pink_result.png",OrangeCream:"https://de5ibyzj5jw9r.cloudfront.net/static/images/orange_result.png",PurpleCream:"https://de5ibyzj5jw9r.cloudfront.net/static/images/purple_result.png",BlueCream:"https://de5ibyzj5jw9r.cloudfront.net/static/images/blue_result.png",PurpleSmallCream:"https://de5ibyzj5jw9r.cloudfront.net/static/images/purple_small_result.png",Icon00:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_0_result.png",Icon01:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_1_result.png",Icon02:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_2_result.png",SkinTone:"https://de5ibyzj5jw9r.cloudfront.net/static/images/skin_tone_result.svg",Regeneration:"https://de5ibyzj5jw9r.cloudfront.net/static/images/regeneration_result.svg",Premature:"https://de5ibyzj5jw9r.cloudfront.net/static/images/premature_result.svg",Close:"https://de5ibyzj5jw9r.cloudfront.net/static/images/close_result.svg",WarningOne:"https://de5ibyzj5jw9r.cloudfront.net/static/images/warning_one_result.svg",WarningTwo:"https://de5ibyzj5jw9r.cloudfront.net/static/images/warning_two_result.svg",WarningThree:"https://de5ibyzj5jw9r.cloudfront.net/static/images/warning_three_result.svg",WarningFour:"https://de5ibyzj5jw9r.cloudfront.net/static/images/warning_four_result.svg",IconMenu:"https://de5ibyzj5jw9r.cloudfront.net/static/images/menu_result.svg",CirclePlus:"https://de5ibyzj5jw9r.cloudfront.net/static/images/circle_plus_result.svg",CircleMinus:"https://de5ibyzj5jw9r.cloudfront.net/static/images/circle_minus_result.svg",CloseCart:"https://de5ibyzj5jw9r.cloudfront.net/static/images/close_cart_result.svg",CloseItem:"https://de5ibyzj5jw9r.cloudfront.net/static/images/close_item_result.svg",PayIcon:"https://de5ibyzj5jw9r.cloudfront.net/static/images/pay_icon_result.svg",PaypalIcon:"https://de5ibyzj5jw9r.cloudfront.net/static/images/paypal_icon_result.svg",CreamMobOne:"https://de5ibyzj5jw9r.cloudfront.net/static/images/cream_mob_one_result.png",CreamMobTwo:"https://de5ibyzj5jw9r.cloudfront.net/static/images/cream_mob_two_result.png",SmallMainMob:"https://de5ibyzj5jw9r.cloudfront.net/static/images/small_main_mob_result.png",WhiteCart:"https://de5ibyzj5jw9r.cloudfront.net/static/images/white_cart_result.svg",CloseWhite:"https://de5ibyzj5jw9r.cloudfront.net/static/images/white_close_result.svg",SelectIcon:"https://de5ibyzj5jw9r.cloudfront.net/static/images/select_icon_result.svg",InfoOne:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_info1_result.png",InfoTwo:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_info2_result.svg",InfoThree:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_info3_result.svg",InfoFour:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_info4_result.svg",InfoFive:"https://de5ibyzj5jw9r.cloudfront.net/static/images/icon_info5_result.svg",OrangeCreamRec:"https://de5ibyzj5jw9r.cloudfront.net/static/images/OrangeCreamRec_result.png",FaceImg:"https://de5ibyzj5jw9r.cloudfront.net/static/images/FaceImg_result.png",OrangeMobRec:"https://de5ibyzj5jw9r.cloudfront.net/static/images/OrangeMobRec_result.png",SmallCreamOne:"https://de5ibyzj5jw9r.cloudfront.net/static/images/small_cream_one_result.png",SmallCreamTwo:"https://de5ibyzj5jw9r.cloudfront.net/static/images/small_cream_two_result.png",SmallCreamThree:"https://de5ibyzj5jw9r.cloudfront.net/static/images/small_cream_three_result.png",SmallCreamFour:"https://de5ibyzj5jw9r.cloudfront.net/static/images/small_cream_four_result.png",SmallCreamFive:"https://de5ibyzj5jw9r.cloudfront.net/static/images/small_cream_five_result.png",SmallCreamSix:"https://de5ibyzj5jw9r.cloudfront.net/static/images/small_cream_six_result.png",NextArrow:"https://de5ibyzj5jw9r.cloudfront.net/static/images/next_arrow_result.svg",Bottle_1:"https://de5ibyzj5jw9r.cloudfront.net/static/images/bottles/bottle_1.png",Bottle_2:"https://de5ibyzj5jw9r.cloudfront.net/static/images/bottles/bottle_2.png",Bottle_3:"https://de5ibyzj5jw9r.cloudfront.net/static/images/bottles/bottle_3.png",Bottle_4:"https://de5ibyzj5jw9r.cloudfront.net/static/images/bottles/bottle_4.png",Bottle_5:"https://de5ibyzj5jw9r.cloudfront.net/static/images/bottles/bottle_5.png",Bottle_6:"https://de5ibyzj5jw9r.cloudfront.net/static/images/bottles/bottle_6.png",Bottles:"https://de5ibyzj5jw9r.cloudfront.net/static/images/bottles/bottles_bg.png",Bottles_mobile:"https://de5ibyzj5jw9r.cloudfront.net/static/images/bottles/bottles_mobile_bg.png",aspect:"https://de5ibyzj5jw9r.cloudfront.net/static/images/aspect/aspect.png",lab:"https://de5ibyzj5jw9r.cloudfront.net/static/images/aspect/lab.svg",Arrow_aspect:"https://de5ibyzj5jw9r.cloudfront.net/static/images/aspect/arrow.svg",lab_video:"https://de5ibyzj5jw9r.cloudfront.net/static/images/aspect/Lab-video.gif",swiss:"https://de5ibyzj5jw9r.cloudfront.net/static/images/aspect/swiss.png",reuse:"https://de5ibyzj5jw9r.cloudfront.net/static/images/aspect/reuse.png",Question_safe:"https://de5ibyzj5jw9r.cloudfront.net/static/images/safeSection/question_icon.svg",Plus_safe:"https://de5ibyzj5jw9r.cloudfront.net/static/images/safeSection/plus.svg",Toxin_safe:"https://de5ibyzj5jw9r.cloudfront.net/static/images/safeSection/toxin_icon.svg",Paraben_safe:"https://de5ibyzj5jw9r.cloudfront.net/static/images/safeSection/paraben_icon.svg",Phthalate_safe:"https://de5ibyzj5jw9r.cloudfront.net/static/images/safeSection/phthalate_icon.svg",Sls_safe:"https://de5ibyzj5jw9r.cloudfront.net/static/images/safeSection/sls_icon.svg",Backgroun
1d_safe:"https://de5ibyzj5jw9r.cloudfront.net/static/images/safeSection/background.png",Background_mob_safe:"https://de5ibyzj5jw9r.cloudfront.net/static/images/safeSection/background_mob.png",Foot_next:"https://de5ibyzj5jw9r.cloudfront.net/static/images/nextSection/foot.svg",Bottle_next:"https://de5ibyzj5jw9r.cloudfront.net/static/images/nextSection/bottle.svg",List_next:"https://de5ibyzj5jw9r.cloudfront.net/static/images/nextSection/list.svg",Arrow_next:"https://de5ibyzj5jw9r.cloudfront.net/static/images/nextSection/arrow.svg",community_1:"https://de5ibyzj5jw9r.cloudfront.net/static/images/community_section/community_1.png",community_2:"https://de5ibyzj5jw9r.cloudfront.net/static/images/community_section/community_2.png",community_3:"https://de5ibyzj5jw9r.cloudfront.net/static/images/community_section/community_3.png",community_4:"https://de5ibyzj5jw9r.cloudfront.net/static/images/community_section/community_4.png"}},"LK+K":function(e,t,n){"use strict";function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return c}));var r=n("cDf5"),i=n.n(r),s=n("JX7q");function a(e,t){return!t||"object"!==i()(t)&&"function"!==typeof t?Object(s.a)(e):t}function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}},LboF:function(e,t,n){"use strict";var o=function(){var e;return function(){return"undefined"===typeof e&&(e=Boolean(window&&document&&document.all&&!window.atob)),e}}(),r=function(){var e={};return function(t){if("undefined"===typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(o){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function a(e,t){for(var n={},o=[],r=0;r<e.length;r++){var a=e[r],c=t.base?a[0]+t.base:a[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),p={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(i[d].references++,i[d].updater(p)):i.push({identifier:u,updater:f(p,t),references:1}),o.push(u)}return o}function c(e){var t=document.createElement("style"),o=e.attributes||{};if("undefined"===typeof o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"===typeof e.insert)e.insert(t);else{var s=r(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var l=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function u(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=l(t,r);else{var i=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function d(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!==typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var p=null,m=0;function f(e,t){var n,o,r;if(t.singleton){var i=m++;n=p||(p=c(t)),o=u.bind(null,n,i,!1),r=u.bind(null,n,i,!0)}else n=c(t),o=d.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"===typeof t.singleton||(t.singleton=o());var n=a(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=s(n[o]);i[r].references--}for(var c=a(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}n=c}}}},Lnei:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return C}));
1var o=n("q1tI"),r=n.n(o),i=n("i8i4"),s=n.n(i),a=n("TSYQ"),c=n.n(a),l=n("eAd9"),u=n.n(l);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var p=function(e){var t=e.classes,n=e.classNames,o=e.styles,i=e.id,s=e.closeIcon,a=e.onClickCloseIcon;return r.a.createElement("button",{id:i,className:c()(t.closeButton,null==n?void 0:n.closeButton),style:null==o?void 0:o.closeButton,onClick:a,"data-testid":"close-button"},s||r.a.createElement("svg",{className:null==n?void 0:n.closeIcon,style:null==o?void 0:o.closeIcon,xmlns:"http://www.w3.org/2000/svg",width:28,height:28,viewBox:"0 0 36 36","data-testid":"close-icon"},r.a.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"})))},m=[],f=function(){return m},b=function(e,t){-1===m.findIndex((function(t){return t.element===e}))&&m.push({element:e,blockScroll:t})},h=function(e){var t=m.findIndex((function(t){return t.element===e}));-1!==t&&m.splice(t,1)},g=function(e){var t;return!!m.length&&(null==(t=m[m.length-1])?void 0:t.element)===e},j="undefined"!==typeof window,v=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function y(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function _(e){for(var t=e.querySelectorAll(v.join(",")),n=[],o=0;o<t.length;o++){var r=t[o];!r.disabled&&O(r)>-1&&!y(r)&&n.push(r)}return n}function O(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:t}var x=function(e){var t=e.container,n=Object(o.useRef)();return Object(o.useEffect)((function(){var e=function(e){(null==t?void 0:t.current)&&function(e,t){if(e&&"Tab"===e.key){if(!t||!t.contains)return!1;if(!t.contains(e.target))return!1;var n=_(t),o=n[0],r=n[n.length-1];e.shiftKey&&e.target===o?(r.focus(),e.preventDefault()):!e.shiftKey&&e.target===r&&(o.focus(),e.preventDefault())}}(e,t.current)};if(j&&document.addEventListener("keydown",e),j&&(null==t?void 0:t.current)){var o=_(t.current);o[0]&&(-1!==v.findIndex((function(e){var t;return null==(t=document.activeElement)?void 0:t.matches(e)}))&&(n.current=document.activeElement),o[0].focus())}return function(){var t;j&&(document.removeEventListener("keydown",e),null==(t=n.current)||t.focus())}}),[t]),null},w={overlay:"react-responsive-modal-overlay",modal:"react-responsive-modal-modal",modalCenter:"react-responsive-modal-modalCenter",closeButton:"react-responsive-modal-closeButton",animationIn:"react-responsive-modal-fadeIn",animationOut:"react-responsive-modal-fadeOut"},C=function(e){var t,n,i=e.open,a=e.center,l=e.blockScroll,m=void 0===l||l,v=e.closeOnEsc,y=void 0===v||v,_=e.closeOnOverlayClick,O=void 0===_||_,C=e.container,k=e.showCloseIcon,S=void 0===k||k,N=e.closeIconId,E=e.closeIcon,I=e.focusTrapped,M=void 0===I||I,P=e.animationDuration,T=void 0===P?500:P,A=e.classNames,z=e.styles,D=e.role,L=void 0===D?"dialog":D,R=e.ariaDescribedby,F=e.ariaLabelledby,B=e.modalId,H=e.onClose,U=e.onEscKeyDown,W=e.onOverlayClick,Z=e.onAnimationEnd,G=e.children,Y=Object(o.useRef)(null),V=Object(o.useRef)(null),q=Object(o.useRef)(null);null===q.current&&j&&(q.current=document.createElement("div"));var K=Object(o.useState)(!1),X=K[0],J=K[1],Q=function(){b(q.current,m),m&&u.a.on(),!q.current||C||document.body.contains(q.current)||document.body.appendChild(q.current),document.addEventListener("keydown",ee)},$=function(){h(q.current),m&&0===f().filter((function(e){return e.blockScroll})).length&&u.a.off(),q.current&&!C&&document.body.contains(q.current)&&document.body.removeChild(q.current),document.removeEventListener("keydown",ee)},ee=function(e){27===e.keyCode&&g(q.current)&&(null==U||U(e),y&&H())};Object(o.useEffect)((function(){return function(){X&&$()}}),[X]),Object(o.useEffect)((function(){i&&!X&&(J(!0),Q())}),[i]);var te=function(){V.current=!1},ne=C||q.current;return X&&ne?s.a.createPortal(r.a.createElement("div",{style:d({animation:(i?null!=(t=null==A?void 0:A.animationIn)?t:w.animationIn:null!=(n=null==A?void 0:A.animationOut)?n:w.animationOut)+" "+T+"ms"},null==z?void 0:z.overlay),className:c()(w.overlay,null==A?void 0:A.overlay),onClick:function(e){null===V.current&&(V.current=!0),V.current?(null==W||W(e),O&&H(),V.current=null):V.current=null},onAnimationEnd:function(){i||J(!1),null==Z||Z()},"data-testid":"overlay"},r.a.createElement("div",{ref:Y,className:c()(w.modal,a&&w.modalCenter,null==A?void 0:A.modal),style:null==z?void 0:z.modal,onMouseDown:te,onMouseUp:te,onClick:te,id:B,role:L,"aria-modal":"true","aria-labelledby":F,"aria-describedby":R,"data-testid":"modal"}
1,M&&r.a.createElement(x,{container:Y}),G,S&&r.a.createElement(p,{classes:w,classNames:A,styles:z,closeIcon:E,onClickCloseIcon:function(){H()},id:N}))),ne):null};t.b=C}).call(this,n("8oxB"))},MDE7:function(e,t,n){},ODXe:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("BsWD");function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);s=!0);}catch(c){a=!0,r=c}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||Object(o.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},P0g6:function(e,t,n){},P5Jw:function(e,t,n){"use strict";var o=n("rHrb").CopyToClipboard;o.CopyToClipboard=o,e.exports=o},QEso:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n("q1tI"),a=h(n("17x9")),c=b(n("VKEO")),l=h(n("S1to")),u=b(n("Ye7m")),d=b(n("fbhf")),p=n("2zs7"),m=h(p),f=h(n("UIKY"));function b(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}n("WkvU");var g={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},j=0,v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&d.remove(document.body,i),r&&d.remove(document.getElementsByTagName("html")[0],r),o&&j>0&&0===(j-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(n.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.ke
vendor: 4,713 bytes, line 1
1yCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===("undefined"===typeof t?"undefined":r(t))?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"===typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName;r&&d.add(document.body,r),o&&d.add(document.getElementsByTagName("html")[0],o),n&&(j+=1,u.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,c=r?{}:i.overlay;if(this.shouldBeClosed())return null;var l={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},c,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,s);return this.props.overlayElement(l,d)}}]),t}(s.Component);v.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},v.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(m.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(m.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=v,e.exports=t.default},S1to:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var o=void 0,r=t.shiftKey,s=n[0],a=n[n.length-1];if(e===document.activeElement){if(!r)return;o=a}a!==document.activeElement||r||(o=s);s===document.activeElement&&r&&(o=a);if(o)return t.preventDefault(),void o.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var l=n.indexOf(document.activeElement);l>-1&&(l+=r?-1:1);if("undefined"===typeof(o=n[l]))return t.preventDefault(),void(o=r?a:s).focus();t.preventDefault(),o.focus()};var o,r=n("ZDLa"),i=(o=r)&&o.__esModule?o:{default:o};e.exports=t.default},THy4:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o=n("nKUr"),r=n("vJKn"),i=n.n(r),s=n("rg98"),a=n("q1tI"),c=n("P5Jw"),l=n("YFqc"),u=n.n(l),d=function(e){var t=e.color,n=void 0===t?"#373873":t;return Object(o.jsx)("svg",{width:"15",height:"19",viewBox:"0 0 15 19",fill:"none",children:Object(o.jsx)("path",{d:"M7.5 18.25C6.88602 18.247 6.34585 17.931 6.03127 17.4531C5.72549 16.9886 6.19504 16.5 6.75119 16.5H8.54169C8.92894 16.5 9.25647 16.824 9.11 17.1825C8.88103 17.7079 8.41397 18.0915 7.85428 18.2141C7.85144 18.2147 7.84853 18.215 7.84563 18.215H7.8325H7.81675C7.81151 18.215 7.80629 18.2155 7.80116 18.2166C7.70199 18.2368 7.60119 18.2479 7.5 18.25ZM14.5 14.625C14.5 15.1773 14.0523 15.625 13.5 15.625H1.5C0.947716 15.625 0.5 15.1773 0.5 14.625V14.493C0.5 14.1143 0.714002 13.768 1.05279 13.5986L1.69721 13.2764C2.036 13.107 2.25 12.7607 2.25 12.382V8.1875C2.2039 6.95298 2.48269 5.72799 3.0585 4.635C3.49781 3.85805 4.17595 3.25373 4.98144 2.90398C5.41396 2.71618 5.75 2.32063 5.75 1.8491V1.75C5.75 1.19771 6.19772 0.75 6.75 0.75H8.25C8.80229 0.75 9.25 1.19772 9.25 1.75V1.86763C9.25 2.33069 9.57425 2.72121 9.99975 2.90392C11.7804 3.66856 12.75 5.5125 12.75 8.1875V12.382C12.75 12.7607 12.964 13.107 13.3028 13.2764L13.9472 13.5986C14.286 13.768 14.5 14.1143 14.5 14.493V14.625Z",fill:n})})},p=(n("y30z"),n("TSYQ")),m=n.n(p),f=n("wd/R"),b=n.n(f),h=[{id:1,name:"Email",icon:function(e){var t=e.color,n=void 0===t?"black":t;return Object(o.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:[Object(o.jsx)("rect",{width:"48",height:"48",rx:"24",fill:"white"}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48ZM24.3344 22.653C26.2995 22.653 35.8544 17.28 35.8544 17.28L35.8698 16.32C35.8698 15.2602 35.0096 14.4 33.9469 14.4H14.7219C13.6602 14.4 12.8 15.2602 12.8 16.32V17.1754C12.8 17.1754 22.4595 22.653 24.3344 22.653ZM12.8154 20.16C12.8154 20.16 22.4595 25.293 24.3344 25.293C26.3898 25.293 35.8544 20.16 35.8544 20.16L35.8698 31.68C35.8698 32.7398 35.0096 33.6 33.9469 33.6H14.7219C13.6611 33.6 12.8 32.7398 12.8 31.68L12.8154 20.16Z",fill:n})]})}},{id:2,name:"SMS",icon:function(){return Object(o.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:[Object(o.jsxs)("g",{clipPath:"url(#clip0_230_1019)",children:[Object(o.jsx)("rect",{width:"48",height:"48",rx:"24",fill:"url(#paint0_linear_230_1019)"}),Object(o.jsx)("path",{d:"M9.44238 37.963L11.5002 30.4902C10.228 28.2968 9.56057 25.8128 9.56752 23.2735C9.56752 15.3164 16.0748 8.84692 24.063 8.84692C27.9423 8.84692 31.5853 10.3484 34.3175 13.0746C37.0567 15.8007 38.5654 19.4264 38.5584 23.2804C38.5584 31.2375 32.0511 37.707 24.056 37.707H24.0491C21.6227 37.707 19.2381 37.0981 17.1177 35.9495L9.44238 37.963ZM17.4861 33.341L17.9241 33.6039C19.7734 34.6971 21.8939 35.2714 24.056 35.2783H24.063C30.7024 35.2783 36.1112 29.9021 36.1112 23.2873C36.1112 20.0837 34.8598 17.0739 32.5864 14.8044C30.313 12.5349 27.2819 11.2894 24.063 11.2894C17.4236 11.2825 12.0147 16.6587 12.0147 23.2735C12.0147 25.5361 12.6474 27.7433 13.8571 29.653L14.1421 30.1097L12.9255 34.5311L17.4861 33.341Z",fill:"white"}),Object(o.jsx)("path",{d:"M9.9502 37.4579L11.9385 30.2412C10.708 28.1308 10.0614 25.7298 10.0614 23.2804C10.0684 15.6001 16.3463 9.35205 24.0633 9.35205C27.8105 9.35205 31.3214 10.8051 33.9633 13.4344C36.6051 16.0637 38.0582 19.5648 38.0582 23.2874C38.0582 30.9677 31.7733 37.2157 24.0633 37.2157H24.0563C21.7134 37.2157 19.4122 36.6276 17.3682 35.5205L9.9502 37.4579Z",fill:"url(#paint1_linear_230_1019)"}),Object(o.jsx)("path",{d:"M9.44238 37.963L11.5002 30.4902C10.228 28.2968 9.56057 25.8128 9.56752 23.2735C9.56752 15.3164 16.0748 8.84692 24.063 8.84692C27.9423 8.84692 31.5853 10.3484 34.3175 13.0746C37.0567 15.8007 38.5654 19.4264 38.5584 23.2804C38.5584 31.2375 32.0511 37.707 24.056 37.707H24.0491C21.6227 37.707 19.2381 37.0981 17.1177 35.9495L9.44238 37.963ZM17.4861 33.341L17.9241 33.6039C19.7734 34.6971 21.8939 35.2714 24.056 35.2783H24.063C30.7024 35.2783 36.1112 29.9021 36.1112 23.2873C36.1112 20.0837 34.8598 17.0739 32.5864 14.8044C30.313 12.5349 27.2819 11.2894 24.063 11.2894C17.4236 11.2825 12.0147 16.6587 12.0147 23.2735C12.0147 25.5361 12.6474 27.7433 13.8571 29.653L14.1421 30.1097L12.9255 34.5311L17.4861 33.341Z",fill:"url(#paint2_linear_230_1019)"}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4405 17.24C20.1694 16.638 19.8843 16.6242 19.6271 16.6173C19.4185 16.6104 19.1752 16.6104 18.9319 16.6104C18.6885 16.6104 18.2992 16.7003 17.9655 17.0601C17.6318 17.4199 16.7002 18.2917 16.7002 20.07C16.7002 21.8413 18.0003 23.5572 18.181 23.7994C18.3618 24.0416 20.6908 27.7987 24.3685 29.2448C27.4275 30.4488 28.0532 30.2066 28.7137 30.1443C29.3742 30.0821 30.855 29.2725 31.1609 28.4284C31.4598 27.5842 31.4598 26.8646 31.3695 26.7124C31.2791 26.5602 31.0357 26.4702 30.6742 26.2903C30.3127 26.1104 28.5329 25.2386 28.1992 25.1141C27.8655 24.9964 27.6222 24.9342 27.3858 25.294C27.1425 25.6538 26.4473 26.4633 26.2387 26.7055C26.0301 26.9477 25.8146 26.9753 25.4531 26.7954C25.0916 26.6155 23.9236 26.235 22.5401 25.0034C21.4625 24.0485 20.7325 22.8653 20.5239 22.5055C20.3154 22.1457 20.5031 21.952 20.6838 21.7721C20.8437 21.6129 21.0454 21.35 21.2261 21.1424C21.4069 20.9349 21.4694 20.7826 21.5876 20.5405C21.7058 20.2983 21.6502 20.0907 21.5598 19.9108C21.4694 19.7378 20.7603 17.9527 20.4405 17.24Z",fill:"white"}),Object(o.jsx)("rect",{width:"48",height:"48",fill:"url(#paint3_linear_230_1019)"}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 36.5455C32.8366 36.5455 40 30.6031 40 23.2727C40 15.9424 32.8366 10 24 10C15.1634 10 8 15.9424 8 23.2727C8 28.06 11.0552 32.2552 15.6365 34.59V35.0909C15.6365 36.1733 14.2728 37.5237 13.699 38.0918C13.5258 38.2634 13.4245 38.3637 13.4546 38.3637C15.0528 38.3637 16.3531 37.6684 17.3646 37.1275C17.8161 36.8861 18.2101 36.6755 18.5473 36.5712C19.4594 36.289 19.9878 36.2066 20.8778 36.2929C21.8876 36.4586 22.9316 36.5455 24 36.5455Z",fill:"white"})]}),Object(o.jsxs)("defs",{children:[Object(o.jsxs)("linearGradient",{id:"paint0_linear_230_1019",x1:"23.9988",y1:"47.9976",x2:"23.9988",y2:"-0.0016794",gradientUnits:"userSpaceOnUse",children:[Object(o.jsx)("stop",{stopColor:"#20B038"}),Object(o.jsx)("stop",{offset:"1",stopColor:"#60D66A"})]}),Object(o.jsxs)("linearGradient",{id:"paint1_linear_230_1019",x1:"24.0034",y1:"37.4565",x2:"24.0034",y2:"9.35107",gradientUnits:"userSpaceOnUse",children:[Object(o.jsx)("stop",{stopColor:"#20B038"}),Object(o.jsx)("stop",{offset:"1",stopColor:"#60D66A"})]}),Object(o.jsxs)("linearGradient",{id:"paint2_linear_230_1019",x1:"24.0032",y1:"37.9602",x2:"24.0032",y2:"8.84692",gradientUnits:"userSpaceOnUse",children:[Object(o.jsx)("stop",{stopColor:"#F9F9F9"}),Object(o.jsx)("stop",{offset:"1",stopColor:"white"})]}),Object(o.jsxs)("linearGradient",{id:"paint3_linear_230_1019",x1:"0",y1:"0",x2:"52.6484",y2:"42.2008",gradientUnits:"userSpaceOnUse",children:[Object(o.jsx)("stop",{stopColor:"#67FF81"}),Object(o.jsx)("stop",{offset:"1",stopColor:"#01B41F"})]}),Object(o.jsx)("clipPath",{id:"clip0_230_1019",children:Object(o.jsx)("rect",{width:"48",height:"48",rx:"24",fill:"white"})})]})]})}},{id:3,name:"Facebook",icon:function(){return Object(o.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:[Object(o.jsx)("rect",{width:"48",height:"48",rx:"24",fill:"#1877F2"}),Object(o.jsx)("path",{d:"M33.3422 30.9375L34.4062 24H27.75V19.5C27.75 17.6016 28.6781 15.75 31.6594 15.75H34.6875V9.84375C34.6875 9.84375 31.9406 9.375 29.3156 9.375C23.8313 9.375 20.25 12.6984 20.25 18.7125V24H14.1562V30.9375H20.25V47.7094C21.4734 47.9016 22.725 48 24 48C25.275 48 26.5266 47.9016 27.75 47.7094V30.9375H33.3422Z",fill:"white"})]})}}],g=function(e){var t,n,r,l,p=e.referralCode,f=e.referralLink,g=e.redeemCodes,j=(e.country,Object(a.useState)("Email")),v=j[0],y=j[1],_=Object(a.useState)(!1),O
1=_[0],x=_[1],w=Object(a.useCallback)((function(){return!!(g&&g.unused&&g.used&&g.pending&&(Number(g.unused.count)>0||Number(g.used.count)>0||Number(g.pending.count)>0))}),[g]),C=function(e){if(e){var t=b()(e.toString()),n=b()(new Date);if(Number(t.diff(n,"days"))<90)return!1}return!0},k="Hi \ud83d\udc4b Sending you a $25 gift card",S=function(e,t){return"Been using Yours personalized skincare and I'm already seeing improvements to my skin! Thought you\u2019d like to give it a try :) Use my code ".concat(e," to get $25 off on your first order at ").concat(t)},N=function(e,t){return"Hi, I've been using my personalized skincare routine from Yours and it's been really good to my skin so far! They take into consideration your skin, lifestyle and environment in creating your skincare routine, so they just get it. 100% clean, recyclable, and vegan too. Thought you'd like to try :) Just use my code ".concat(e," to get $25 off your first order at ").concat(t)};return Object(o.jsxs)("div",{className:"referral-section",children:[Object(o.jsx)("h2",{className:"referral-section__title",children:"Refer & Earn \ud83c\udf81"}),Object(o.jsx)("div",{className:"referral-section__banner",children:Object(o.jsxs)("div",{className:"referral-section__banner-wrapper",children:[Object(o.jsx)("h3",{className:"referral-section__banner-title",children:"Give $25, Get $25"}),Object(o.jsx)("p",{className:"referral-section__banner-description",children:"Give your friends $25 off and get $25 off when they place their first order.*"}),Object(o.jsxs)("p",{className:"referral-section__banner-subtitle",children:[Object(o.jsx)("span",{children:"SHARE YOUR LINK"}),Object(o.jsx)("span",{children:"SHARE YOUR LINK"})]}),Object(o.jsxs)("div",{className:"referral-section__banner-input",children:[Object(o.jsx)("p",{className:"referral-section__referral-text",children:f}),Object(o.jsx)(c.CopyToClipboard,{text:f,onCopy:function(){O||(x(!0),setTimeout((function(){x(!1)}),2e3))},children:Object(o.jsx)("button",{className:"referral-section__copy-button",onClick:function(){window.analytics.track("refer_earn",{mode:"copy"})},children:O?"Copied!":"Copy"})})]}),Object(o.jsxs)("p",{className:"referral-section__banner-subtitle referral-section__banner-subtitle_increased-indentation",children:[Object(o.jsx)("span",{children:"OR SHARE VIA"}),Object(o.jsx)("span",{children:"OR"})]}),Object(o.jsx)("div",{className:"referral-section__icons-wrapper",children:h.map((function(e,t){var n=e.icon,r=e.name,i=e.id;return Object(o.jsxs)("div",{className:"referral-section__icon-wrapper",onClick:function(){y(r),1==i?(window.analytics.track("refer_earn",{mode:"email"}),window.open("mailto:?subject="+k+"&body="+N(p,f),"_self")):2==i?(window.analytics.track("refer_earn",{mode:"sms"}),window.open("sms:?&body="+S(p,f),"_self")):3==i&&(window.analytics.track("refer_earn",{mode:"facebook"}),window.open("https://www.facebook.com/sharer/sharer.php?u="+f+"&src=sdkpreparse","_blank"))},children:[Object(o.jsx)(n,{}
1),Object(o.jsx)("p",{className:m()("referral-section__icons-text",{"referral-section__icons-text_active":r===v}),children:r})]},t)}))}),Object(o.jsx)("button",{className:"referral-section__invite-button",onClick:Object(s.a)(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.analytics.track("refer_earn",{mode:"Invite Link"}),t={title:"Hi \ud83d\udc4b Sending you a $25 gift card",text:S(p,f)},e.prev=2,e.next=5,navigator.share(t);case 5:console.log("MDN shared successfully"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.log("Error: ".concat(e.t0));case 11:case"end":return e.stop()}}),e,null,[[2,8]])}))),children:"Invite Friends"})]})}),Object(o.jsxs)("div",{className:"referral-section__cards-wrapper",children:[Object(o.jsx)("h2",{className:"referral-section__title referral-section__title_small-theme",children:"Earned Promos \ud83d\udcb0"}),Object(o.jsxs)("div",{className:"referral-section__text-wrapper",children:[Object(o.jsxs)("p",{children:["Total Earned:"," ",Object(o.jsxs)("span",{children:[" ","$",25*(null!==g&&void 0!==g&&g.used?Number(null===g||void 0===g||null===(t=g.used)||void 0===t?void 0:t.count):0)+25*(null!==g&&void 0!==g&&g.unused?Number(null===g||void 0===g||null===(n=g.unused)||void 0===n?void 0:n.count):0)]})]}),Object(o.jsxs)("p",{children:["Used:"," ",Object(o.jsxs)("span",{children:["$",25*(null!==g&&void 0!==g&&g.used?Number(null===g||void 0===g||null===(r=g.used)||void 0===r?void 0:r.count):0)]})]}),Object(o.jsxs)("p",{children:["Balance:"," ",Object(o.jsxs)("span",{children:["$",25*(null!==g&&void 0!==g&&g.unused?Number(null===g||void 0===g||null===(l=g.unused)||void 0===l?void 0:l.count):0)]})]})]}),w()?Object(o.jsxs)(o.Fragment,{children:[Number(g.unused.count)>0?Object(o.jsxs)("div",{className:"referral-section__card",children:[Object(o.jsx)("h3",{className:"referral-section__card-title",children:"Successful"}),Object(o.jsx)("div",{className:"scroll-card",children:g.unused.data.map((function(e,t){return Object(o.jsxs)("div",{className:"referral-section__card-item",children:[Object(o.jsxs)("div",{children:[Object(o.jsx)("p",{className:"referral-section__text",children:e.email}),C(e.endDate)?Object(o.jsxs)("p",{className:"referral-section__text referral-section__text_grey-theme",children:["Valid till ",b()(e.endDate).format("LL")]}):Object(o.jsxs)("p",{className:"referral-section__text referral-section__text_red-theme",children:["Expires on ",b()(e.endDate).format("LL")]})]}),Object(o.jsx)("button",{className:"referral-section__card-button",onClick:function(){window.open("/products?p=".concat(e.code),"_blank")},children:"Redeem $25"})]},t)}))})]}):Object(o.jsx)("div",{}),Number(g.pending.count)>0?Object(o.jsxs)("div",{className:"referral-section__card",children:[Object(o.jsx)("h3",{className:"referral-section__card-title",children:"PENDING"}),Object(o.jsx)("div",{className:"scroll-card",children:g.pending.data.map((function(e,t){return Object(o.jsxs)("div",{className:"referral-section__card-item",children:[Object(o.jsxs)("div",{children:[Object(o.jsx)("p",{className:"referral-section__text",children:e.email}),Object(o.jsxs)("p",{className:"referral-section__text referral-section__text_grey-theme",children:["Invited: ",b()(e.startDate).format("LL")]})]}),Object(o.jsxs)("button",{className:"referral-section__send-button",onClick:function(){window.open("mailto:"+e.email+"?subject="+k+"&body="+N(p,f),"_self")},children:[Object(o.jsx)(d,{}),Object(o.jsx)("span",{children:"Send Reminder"})]})]},t)}))})]}):Object(o.jsx)("div",{}),Number(g.used.count)>0?Object(o.jsxs)("div",{className:"referral-section__card",children:[Object(o.jsx)("h3",{className:"referral-section__card-title",children:"USED"}),Object(o.jsx)("div",{className:"scroll-card",children:g.used.data.map((function(e,t){return Object(o.jsx)("div",{className:"referral-section__card-item",children:Object(o.jsxs)("div",{children:[Object(o.jsx)("p",{className:"referral-section__text",children:e.email}),Object(o.jsxs)("p",{className:"referral-section__text referral-section__text_grey-theme",children:["Redeemed on ",b()(e.startDate).format("LL")]})]})},t)}))})]}):Object(o.jsx)("div",{})]}):Object(o.jsx)("p",{className:"referral-section__text",children:"You have not referred any friends and haven\u2019t earned any promo codes."})]}),Object(o.jsxs)("p",{className:"referral-section__text referral-section__text_small-theme",children:["*Terms & conditions apply."," ",Object(o.jsx)(u.a,{href:"https://help.lovefromyours.com/en/collections/3075290-referrals",children:"Read FAQs."})]})]})}},U8pU:function(e,t,n){"use strict";function o(e){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return o}
1))},UIKY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new o};var o=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new o;t.default=r},VKEO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s=[]},t.log=function(){return void 0;console.log("focusManager ----------"),s.forEach((function(e){var t=e||{};console.log(t.nodeName,t.className,t.id)})),console.log("end focusManager ----------")},t.handleBlur=l,t.handleFocus=u,t.markForFocusLater=function(){s.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==s.length&&(t=s.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){s.length>0&&s.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",u))};var o,r=n("ZDLa"),i=(o=r)&&o.__esModule?o:{default:o};var s=[],a=null,c=!1;function l(){c=!0}function u(){if(c){if(c=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()}),0)}}},VTBJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("rePB");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},WkpF:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("nKUr"),r=n("cpVT"),i=(n("q1tI"),n("TSYQ")),s=n.n(i),a=n("Xa+n"),c=n("hb4M"),l=function(){return Object(o.jsx)("svg",{width:"45",height:"19",viewBox:"0 0 45 19",fill:"none",children:Object(o.jsx)("path",{d:"M8.22235 2.38211C7.69495 3.0062 6.8511 3.49845 6.00725 3.42813C5.90177 2.58428 6.3149 1.68769 6.79836 1.13392C7.32576 0.492244 8.24872 0.0351603 8.99588 0C9.08378 0.879007 8.74096 1.74043 8.22235 2.38211ZM8.98709 3.59514C7.76527 3.52482 6.71925 4.28955 6.1391 4.28955C5.55017 4.28955 4.66237 3.6303 3.69546 3.64788C2.43848 3.66546 1.2694 4.37745 0.627729 5.51137C-0.690781 7.77921 0.284917 11.137 1.55948 12.9829C2.18357 13.8971 2.93073 14.8992 3.91522 14.864C4.84696 14.8288 5.21615 14.2575 6.34127 14.2575C7.47519 14.2575 7.80043 14.864 8.78491 14.8464C9.80456 14.8288 10.4462 13.9323 11.0703 13.0181C11.7823 11.9809 12.0724 10.97 12.09 10.9173C12.0724 10.8997 10.121 10.1525 10.1034 7.90227C10.0858 6.0212 11.6417 5.12461 11.712 5.07187C10.833 3.77094 9.46175 3.6303 8.98709 3.59514ZM16.0455 1.04602V14.7497H18.1727V10.0646H21.1174C23.8071 10.0646 25.697 8.21871 25.697 5.54653C25.697 2.87435 23.8423 1.04602 21.1877 1.04602H16.0455ZM18.1727 2.83919H20.6251C22.4711 2.83919 23.5259 3.82368 23.5259 5.55532C23.5259 7.28697 22.4711 8.28025 20.6163 8.28025H18.1727V2.83919ZM29.5822 14.8552C30.9183 14.8552 32.1577 14.1784 32.7203 13.106H32.7642V14.7497H34.7332V7.92864C34.7332 5.95088 33.151 4.67632 30.7161 4.67632C28.4571 4.67632 26.787 5.96846 26.7254 7.74405H28.6417C28.7999 6.9002 29.5822 6.34643 30.6546 6.34643C31.9555 6.34643 32.6851 6.95295 32.6851 8.06928V8.82523L30.0305 8.98345C27.5605 9.13288 26.2244 10.1437 26.2244 11.9018C26.2244 13.6773 27.6045 14.8552 29.5822 14.8552ZM30.1536 13.2291C29.0197 13.2291 28.2989 12.6841 28.2989 11.849C28.2989 10.9876 28.9933 10.4866 30.3206 10.4074L32.6851 10.258V11.0315C32.6851 12.3149 31.5951 13.2291 30.1536 13.2291ZM37.3614 18.4767C39.4359 18.4767 40.4116 17.6856 41.2642 15.2859L45 4.80817H42.8376L40.3325 12.9038H40.2885L37.7834 4.80817H35.5595L39.1634 14.7849L38.97 15.3914C38.6448 16.4199 38.1174 16.8154 37.1768 16.8154C37.0098 16.8154 36.6846 16.7978 36.5527 16.7802V18.424C36.6758 18.4591 37.2032 18.4767 37.3614 18.4767Z",fill:"white"})})},u=(n("fLWC"),function(e){var t,n=e.children,i=e.type,u=void 0===i?"primary":i,d=e.arrow,p=e.smallArrow,m=e.loading,f=e.height,b=void 0===f?48:f,h=e.maxWidth,g=void 0===h?"152px":h,j=e.round,v=void 0!==j&&j,y=e.bordered,_=void 0!==y&&y,O=e.uppercase,x=void 0!==O&&O,w=e.smallText,C=void 0!==w&&w,k=e.disabled,S=void 0!==k&&k,N=e.htmlType,E=void 0===N?"button":N,I=(e.paddingRight,e.id),M=void 0===I?"":I,P=e.onClick,T=e.ariaLabel,A=void 0===T?"":T,z=e.buttonSave,D=void 0===z?"":z;return Object(o.jsxs)("button",{type:E,disabled:S,onClick:P,style:{maxWidth:g,height:b,borderRadius:v?b/2:D?32:void 0,backgroundColor:D?"#373873":"",color:D?"#FFFFFF":""},className:s()("atoms-button",(t={},Object(r.a)(t,"atoms-button_primary","primary"===u),Object(r.a)(t,"atoms-button_preorder","preorder"===u||"preorder-product"===u),Object(r.a)(t,"atoms-button_preorder-border-radius","preorder-product"===u),Object(r.a)(t,"atoms-button_secondary","secondary"===u),Object(r.a)(t,"atoms-button_ghost","ghost"===u),Object(r.a)(t,"atoms-button_green","green"===u),Object(r.a)(t,"atoms-button_alternatePink","alternatePink"===u),Object(r.a)(t,"atoms-button_alternateGray","alternateGray"===u),Object(r.a)(t,"atoms-button_link","link"===u),Object(r.a)(t,"atoms-button_golden","golden"===u),Object(r.a)(t,"atoms-button_pay","pay"===u),Object(r.a)(t,"atoms-button_bordered",_),Object(r.a)(t,"atoms-button_uppercase",x),Object(r.a)(t,"atoms-button_small-text",C),Object(r.a)(t,"atoms-button_with-arrow-left","left"===d&&!p),Object(r.a)(t,"atoms-button_with-arrow-right","right"===d&&!p),Object(r.a)(t,"atoms-button_with-arrow-small",p),Object(r.a)(t,"atoms-button_loading",m),t)),id:M,"aria-label":A,children:["left"===d&&Object(o.jsx)(c.a,{size:p?12:void 0}),n,"right"===d&&Object(o.jsx)(a.a,{size:p?12:void 0}),"pay"===u&&Object(o.jsx)(l,{})]})})},WkvU:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[s,a],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}s=a=null,c=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(c.length);for(var e=[s,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,r=n("UIKY"),i=(o=r)&&o.__esModule?o:{default:o};var s=void 0,a=void 0,c=[];function l(){0!==c.length&&c[c.length-1].focusContent()}i.default.subscribe((function(e,t){s||a||((s=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),s.style.position="absolute",s.style.opacity="0",s.setAttribute("tabindex","0"),s.addEventListener("focus",l),(a=s.cloneNode()).addEventListener("focus",l)),(c=t).length>0?(document.body.firstChild!==s&&document.body.insertBefore(s,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(s.parentElement&&s.parentElement.removeChild(s),a.parentElement&&a.parentElement.removeChild(a))}))},"Xa+n":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("nKUr"),r=(n("q1tI"),function(e){var t=e.size,n=void 0===t?14:t;return Object(o.jsx)("svg",{width:n,height:n,viewBox:"0 0 10 16",children:Object(o.jsx)("path",{d:"M2.2 15.7L.8 14.3 7.2 8 .3 2 1.6.5l7.6 6.6c.2.2.3.4.3.7 0 .3-.1.5-.3.7l-7 7.2z"})})})},Y9L4:function(e,t,n){"use strict";n.r(t);var o=n("LboF"),r=n.n(o),i=n("94HM"),s=n.n(i),a={insert:"head",singleton:!1};r()(s.a,a);t.default=s.a.locals||{}},Ye7m:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")})));a=null},t.log=function(){return void 0;var e=a||{};console.log("ariaAppHider ----------"),console.log(e.nodeName,e.className,e.id),console.log("end ariaAppHider ----------")},t.assertNodeList=c,t.setElement=function(e){var t=e;if("string"===typeof t&&s.canUseDOM){var n=document.querySelectorAll(t);c(n,t),t=n}return a=t||a},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.setAttribute("aria-hidden","true")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.removeAttribute("aria-hidden")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=n("2W6z"),i=(o=r)&&o.__esModule?o:{default:o},s=n("2zs7");var a=null;function c(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},ZDLa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(s)};var o=/input|select|textarea|button|object/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(o){return console.warn("Failed to inspect element style"),!1}}function i(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(r(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},a0wy:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("nKUr");n("q1tI"),n("P0g6");function r(){return Object(o.jsx)("div",{className:"spin-loader"})}},a3WO:function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,"a",(function(){return o}
1))},bq1B:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u}));var o=n("k2H8");function r(){return{type:o.a.GET_IMAGE_LIST}}function i(e){return{type:o.a.SET_IMAGE_LIST,payload:e}}function s(e){return{type:o.a.UPLOAD_SELFIE,payload:e}}function a(e){return{type:o.a.CREATE_SELFIE_SHARE_IMAGE,payload:e}}function c(e,t){return{type:o.a.UPDATE_SELFIE,payload:e,callback:t}}function l(e){return{type:o.a.SET_SHARE_SELFIE_LIST,payload:e}}function u(e,t){return{type:o.a.SHARE_PROGRESS_SELFIE,payload:e,callback:t}}},cDf5:function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},eAd9:function(e,t,n){!function(t){var n,o,r=!1;function i(e){if("undefined"!==typeof document&&!r){var t=document.documentElement;o=window.pageYOffset,document.documentElement.scrollHeight>window.innerHeight?t.style.width="calc(100% - "+function(){if("undefined"!==typeof n)return n;var e=document.documentElement,t=document.createElement("div");return t.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),e.appendChild(t),n=t.offsetWidth-t.clientWidth,e.removeChild(t),n}()+"px)":t.style.width="100%",t.style.position="fixed",t.style.top=-o+"px",t.style.overflow="hidden",r=!0}}function s(){if("undefined"!==typeof document&&r){var e=document.documentElement;e.style.width="",e.style.position="",e.style.top="",e.style.overflow="",window.scroll(0,o),r=!1}}var a={on:i,off:s,toggle:function(){r?s():i()}};"undefined"!==typeof e.exports?e.exports=a:t.noScroll=a}(this)},ez49:function(e,t,n){"use strict";var o,r=n("o97j");r.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var s=document.createElement("div");s.setAttribute(n,"return;"),i="function"===typeof s[n]}return!i&&o&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},fBqk:function(e,t,n){"use strict";n.r(t);var o=n("nKUr"),r=n("vJKn"),i=n.n(r),s=n("rg98"),a=n("cpVT"),c=n("q1tI"),l=n.n(c),u=function(e){var t=e.color,n=void 0===t?"#312F2A":t;return Object(o.jsxs)("svg",{width:"46",height:"46",viewBox:"0 0 46 46",fill:"none",children:[Object(o.jsx)("path",{d:"M12.3915 11.6588L13.2107 7.56299C13.5546 5.8431 15.0648 4.6051 16.8187 4.6051H29.1832C30.9372 4.6051 32.4473 5.8431 32.7913 7.56299L33.6104 11.6588C33.8724 12.9687 34.8656 14.0104 36.1616 14.3344C39.2393 15.1038 41.3984 17.8691 41.3984 21.0416V34.041C41.3984 38.1052 38.1036 41.4 34.0394 41.4H11.9625C7.89824 41.4 4.60352 38.1052 4.60352 34.041V21.0416C4.60352 17.8691 6.76258 15.1038 9.84025 14.3344C11.1362 14.0104 12.1295 12.9687 12.3915 11.6588Z",stroke:n,strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.jsx)("path",{d:"M23.0009 34.0359C27.0652 34.0359 30.3599 30.7412 30.3599 26.6769C30.3599 22.6127 27.0652 19.3179 23.0009 19.3179C18.9367 19.3179 15.642 22.6127 15.642 26.6769C15.642 30.7412 18.9367 34.0359 23.0009 34.0359Z",stroke:n,strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.jsx)("path",{d:"M21.1611 11.9608H24.8406",stroke:n,strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})]})},d=n("3Nzr"),p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var m=function(){return(m=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create;var f=n("wJiJ"),b=n.n(f);function h(e,t,n,o,r,i){void 0===i&&(i=0);var s=S(e,t,i),a=s.width,c=s.height,l=Math.min(a,n),u=Math.min(c,o);return l>u*r?{width:u*r,height:u}:{width:l,height:l/r}}function g(e,t,n,o,r){void 0===r&&(r=0);var i=S(t.width,t.height,r),s=i.width,a=i.height;return{x:j(e.x,s,n.width,o),y:j(e.y,a,n.height,o)}}function j(e,t,n,o){var r=t*o/2-n/2;return N(e,-r,r)}function v(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function y(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function _(e,t,n,o,r,i,s){void 0===i&&(i=0),void 0===s&&(s=!0);
1var a=s?O:x,c=S(t.width,t.height,i),l=S(t.naturalWidth,t.naturalHeight,i),u={x:a(100,((c.width-n.width/r)/2-e.x/r)/c.width*100),y:a(100,((c.height-n.height/r)/2-e.y/r)/c.height*100),width:a(100,n.width/c.width*100/r),height:a(100,n.height/c.height*100/r)},d=Math.round(a(l.width,u.width*l.width/100)),p=Math.round(a(l.height,u.height*l.height/100)),f=l.width>=l.height*o?{width:Math.round(p*o),height:p}:{width:d,height:Math.round(d/o)};return{croppedAreaPercentages:u,croppedAreaPixels:m(m({},f),{x:Math.round(a(l.width-f.width,u.x*l.width/100)),y:Math.round(a(l.height-f.height,u.y*l.height/100))})}}function O(e,t){return Math.min(e,Math.max(0,t))}function x(e,t){return t}function w(e,t,n,o,r,i){var s=S(t.width,t.height,n),a=N(o.width/s.width*(100/e.width),r,i);return{crop:{x:a*s.width/2-o.width/2-s.width*a*(e.x/100),y:a*s.height/2-o.height/2-s.height*a*(e.y/100)},zoom:a}}function C(e,t,n,o,r,i){void 0===n&&(n=0);var s=S(t.naturalWidth,t.naturalHeight,n),a=N(function(e,t,n){var o=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*o):n.width/(e.width*o)}(e,t,o),r,i),c=o.height>o.width?o.height/e.height:o.width/e.width;return{crop:{x:((s.width-e.width)/2-e.x)*c,y:((s.height-e.height)/2-e.y)*c},zoom:a}}function k(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function S(e,t,n){var o=n*Math.PI/180;return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function N(e,t,n){return Math.min(Math.max(e,t),n)}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"===typeof e&&e.length>0})).join(" ").trim()}var I=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=l.a.createRef(),n.videoRef=l.a.createRef(),n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!==typeof document?document:null,n.currentWindow="undefined"!==typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.initResizeObserver=function(){if("undefined"!==typeof window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=w(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),o=t.crop,r=t.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}else if(n.props.initialCroppedAreaPixels){var i=C(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);o=i.crop,r=i.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}},n.computeSizes=function(){var e,t,o,r,i,s,a=n.imageRef.current||n.videoRef.current;if(a&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect();var c=n.containerRect.width/n.containerRect.height,l=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWi
1dth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(o=n.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef.current)||void 0===r?void 0:r.videoHeight)||0,d=l/u,p=void 0;if(a.offsetWidth<l||a.offsetHeight<u)switch(n.props.objectFit){default:case"contain":p=c>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":p={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":p={width:n.containerRect.height*d,height:n.containerRect.height};break;case"auto-cover":p=l>u?{width:n.containerRect.width,height:n.containerRect.width/d}:{width:n.containerRect.height*d,height:n.containerRect.height}}else p={width:a.offsetWidth,height:a.offsetHeight};n.mediaSize=m(m({},p),{naturalWidth:l,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var f=n.props.cropSize?n.props.cropSize:h(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(i=n.state.cropSize)||void 0===i?void 0:i.height)===f.height&&(null===(s=n.state.cropSize)||void 0===s?void 0:s.width)===f.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(f),n.setState({cropSize:f},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(f),f}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var o=t.getMousePoint(e),r=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(r,o,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+e.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,o,r=e.x,i=e.y;n.dragStartPosition={x:r,y:i},n.dragStartCrop=m({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,i={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},s=n.props.restrictPosition?g(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(s)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var o=t.getMousePoint(e),r=b()(e).pixelY,i=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(i,o,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e){var t=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(o-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,i=r.crop,s=r.zoom;return{x:(t+i.x)/s,y:(o+i.y)/s}},n.setNewZoom=function(e,t,o){var r=(void 0===o?{}:o).shouldUpdatePosition,i=void 0===r||r;if(n.state.cropSize&&n.props.onZoomChange){var s=N(e,n.props.minZoom,n.props.maxZoom);if(i){var a=n.getPointOnContainer(t),c=n.getPointOnMedia(a),l={x:c.x*s-a.x,y:c.y*s-a.y},u=n.props.restrictPosition?g(l,n.mediaSize,n.state.cropSize,s,n.props.rotation):l;n.props.onCropChange(u)}n.props.onZoomChange(s)}},n.getCropData=function(){return n.state.cropSize?_(n.props.restrictPosition?g(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?g(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),"undefined"===typeof window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}
1\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&("undefined"===typeof window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,o,r,i,s,a,c,l;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(i=e.crop)||void 0===i?void 0:i.x)===(null===(s=this.props.crop)||void 0===s?void 0:s.x)&&(null===(a=e.crop)||void 0===a?void 0:a.y)===(null===(c=this.props.crop)||void 0===c?void 0:c.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(l=this.videoRef.current)||void 0===l||l.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=v(n,o),this.lastPinchRotation=y(n,o),this.onDragStart(k(n,o))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),i=k(o,r);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=v(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var s=y(o,r),a=n.props.rotation+(s-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(a),n.lastPinchRotation=s}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,i=t.transform,s=t.crop,a=s.x,c=s.y,u=t.rotation,d=t.zoom,p=t.cropShape,f=t.showGrid,b=t.style,h=b.containerStyle,g=b.cropAreaStyle,j=b.mediaStyle,v=t.classes,y=v.containerClassName,_=v.cropAreaClassName,O=v.mediaClassName,x=t.objectFit;return l.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:h,className:E("reactEasyCrop_Container",y)},n?l.a.createElement("img",m({alt:"",className:E("reactEasyCrop_Image","contain"===x&&"reactEasyCrop_Contain","horizontal-cover"===x&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===x&&"reactEasyCrop_Cover_Vertical","auto-cover"===x&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),O)},r,{src:n,ref:this.imageRef,style:m(m({},j),{transform:i||"translate(".concat(a,"px, ").concat(c,"px) rotate(").concat(u,"deg) scale(").concat(d,")")}),onLoad:this.onMediaLoad})):o&&l.a.createElement("video",m({autoPlay:!0,loop:!0,muted:!0,className:E("reactEasyCrop_Video","contain"===x&&"reactEasyCrop_Contain","horizontal-cover"===x&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===x&&"reactEasyCrop_Cover_Vertical","auto-cover"===x&&(this.mediaSize.naturalWi
1dth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),O)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:m(m({},j),{transform:i||"translate(".concat(a,"px, ").concat(c,"px) rotate(").concat(u,"deg) scale(").concat(d,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return l.a.createElement("source",m({key:e.src},e))}))),this.state.cropSize&&l.a.createElement("div",{style:m(m({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:E("reactEasyCrop_CropArea","round"===p&&"reactEasyCrop_CropAreaRound",f&&"reactEasyCrop_CropAreaGrid",_)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(l.a.Component),M=function(e){return new Promise((function(t,n){var o=new Image;o.addEventListener("load",(function(){return t(o)})),o.addEventListener("error",(function(e){return n(e)})),o.setAttribute("crossOrigin",window.localStorage.imageCors),o.src=e}))};function P(e){return e*Math.PI/180}function T(e,t,n){var o=P(n);return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function A(e,t){return z.apply(this,arguments)}function z(){return(z=Object(s.a)(i.a.mark((function e(t,n){var o,r,s,a,c,l,u,d,p,m,f,b=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=b.length>2&&void 0!==b[2]?b[2]:0,r=b.length>3&&void 0!==b[3]?b[3]:{horizontal:!1,vertical:!1},s=new Date,e.next=5,M(t+"?a=".concat(s.valueOf()));case 5:if(a=e.sent,c=document.createElement("canvas"),l=c.getContext("2d")){e.next=10;break}return e.abrupt("return",null);case 10:return u=P(o),d=T(a.width,a.height,o),p=d.width,m=d.height,c.width=p,c.height=m,l.translate(p/2,m/2),l.rotate(u),l.scale(r.horizontal?-1:1,r.vertical?-1:1),l.translate(-a.width/2,-a.height/2),l.drawImage(a,0,0),f=l.getImageData(n.x,n.y,n.width,n.height),c.width=n.width,c.height=n.height,l.putImageData(f,0,0),e.abrupt("return",new Promise((function(e,t){c.toBlob((function(t){e({url:URL.createObjectURL(t),file:t})}),"image/png")})));case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}n("yL64");var D=n("/MKj"),L=n("bq1B"),R=n("eNdw"),F=n("GGqY"),B=n("b6Qr"),H=function(){return Object(o.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(o.jsx)("g",{filter:"url(#filter0_b_819_2797)",children:Object(o.jsx)("rect",{x:"0.491211",y:"0.957031",width:"28.6881",height:"28.6881",rx:"14.344",fill:"white",fillOpacity:"0.6"})}),Object(o.jsx)("path",{d:"M19.6164 10.5195L10.0537 20.0822M10.0537 10.5195L19.6164 20.0822",stroke:"#312F2A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.jsx)("defs",{children:Object(o.jsxs)("filter",{id:"filter0_b_819_2797",x:"-3.50879",y:"-3.04297",width:"36.688",height:"36.688",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Object(o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Object(o.jsx)("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"2"}),Object(o.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_819_2797"}),Object(o.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_backgroundBlur_819_2797",result:"shape"})]})})]})},U=function(e){var t=e.beforeImg,n=void 0===t?"":t,r=e.afterImg,a=void 0===r?"":r,l=e.onClickBefore,u=e.onClickAfter,p=e.dateAfter,m=void 0===p?"":p,f=e.dateBefore,b=void 0===f?"":f,h=e.resetAfterImage,g=e.resetBeforeImage,j=e.setShareSelfieImage,v=e.beforeImgId,y=void 0===v?"":v,_=e.afterImgId,O=void 0===_?"":_,x=Object(c.useState)({x:0,y:0}),w=x[0],C=x[1],k=Object(c.useState)(2),S=k[0],N=k[1],E=Object(c.useState)(2),M=E[0],P=E[1],T=Object(c.useState)({x:0,y:0}),z=T[0],U=T[1],W=Object(c.useState)(2),Z=W[0],G=W[1],Y=Object(c.useState)(2),V=Y[0],q=Y[1],K=Object(c.useState)(!1),X=K[0],J=K[1],Q=Object(c.useState)(),$=Q[0],ee=Q[1],te=Object(c.useState)(),ne=te[0],oe=te[1],re=Object(D.useDispatch)(),ie=Object(c.useCallback)((function(e,t){ee(t)}),[]),se=Object(c.useCallback)((function(e,t){oe(t)}),[]),ae=function(e,t){var n=new Image;n.onload=function(){return t(null,n)},n.onerror=function(e){return t(e)},n.src=e},ce=function(e,t,n){var o=e-t;return o<0?n+.1:o>0&&o<=170||o>170&&o<=230?n:o>230&&o<400?n+.2:n+.55};Object(c.useEffect)((function(){n.length&&ae(n,(function(e,t){if(!e){var n=Math.ceil(t.naturalWi
1dth/t.naturalHeight)+.5,o=ce(t.naturalWidth,t.naturalHeight,n);P(o),N(o)}})),a.length&&ae(a,(function(e,t){if(!e){var n=Math.ceil(t.naturalWidth/t.naturalHeight)+.5,o=ce(t.naturalWidth,t.naturalHeight,n);q(o),G(o)}}))}),[n,a]);var le=Object(c.useCallback)(Object(s.a)(i.a.mark((function e(){var t,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n&&a){e.next=4;break}return F.a.error("Please select image for comparison"),e.abrupt("return");case 4:return J(!0),e.next=7,A(n,$,0);case 7:return t=e.sent,e.next=10,A(a,ne,0);case 10:o=e.sent,re(Object(L.b)({selfieUrl1:t.file,selfieUrl2:o.file,selfieUrl1Id:y,selfieUrl2Id:O,callback:function(e,t){null!==e&&void 0!==e&&e.length&&B.isMobile&&j(e,t),J(!1)}})),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.error(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])}))),[$,n,ne,a,y,O]);return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("div",{className:"atoms-skin-progress-block__wrapper",children:Object(o.jsxs)("div",{className:"atoms-skin-progress-block",children:[Object(o.jsx)("div",{className:"atoms-skin-progress-block__item atoms-skin-progress-block__item__right-gutter",children:n?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("div",{className:"atoms-skin-progress-block__item__right-tools",children:Object(o.jsx)("div",{className:"atoms-skin-progress-block__item__right-tools__group",children:Object(o.jsx)("button",{onClick:function(){C({x:0,y:0}),g()},children:Object(o.jsx)(H,{})})})}),Object(o.jsxs)("div",{className:"atoms-skin-progress-block__item__cropper-container",children:[Object(o.jsx)(I,{image:n,crop:w,zoom:S,minZoom:M,maxZoom:10,cropSize:B.isMobile?{width:196,height:334}
1:{width:208,height:370},showGrid:!1,onCropChange:C,onCropComplete:ie,onZoomChange:N}),Object(o.jsx)("div",{className:"atoms-skin-progress-block__item__cropper-container__date",children:Object(o.jsxs)("p",{className:"atoms-skin-progress-block__item__cropper-container__date__text",children:[" ",b]})})]}),Object(o.jsx)("div",{children:Object(o.jsx)("p",{className:"atoms-skin-progress-block__text",children:"BEFORE"})})]}):Object(o.jsxs)("div",{className:"atoms-skin-progress-block__button-wrapper",children:[Object(o.jsx)("button",{onClick:l,className:"atoms-skin-progress-block__button",children:Object(o.jsx)(d.a,{color:"#A6A6A6"})}),Object(o.jsx)("div",{children:Object(o.jsx)("p",{className:"atoms-skin-progress-block__text",children:"BEFORE"})})]})}),Object(o.jsx)("div",{className:"atoms-skin-progress-block__item",children:a?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("div",{className:"atoms-skin-progress-block__item__left-tools",children:Object(o.jsx)("div",{className:"atoms-skin-progress-block__item__left-tools__group",children:Object(o.jsx)("button",{onClick:function(){U({x:0,y:0}),h()},children:Object(o.jsx)(H,{})})})}),Object(o.jsxs)("div",{className:"atoms-skin-progress-block__item__cropper-container",children:[Object(o.jsx)(I,{image:a,crop:z,zoom:Z,minZoom:V,maxZoom:10,cropSize:B.isMobile?{width:196,height:334}
1:{width:208,height:370},showGrid:!1,onCropChange:U,onCropComplete:se,onZoomChange:G}),Object(o.jsx)("div",{className:"atoms-skin-progress-block__item__cropper-container__date",children:Object(o.jsx)("p",{className:"atoms-skin-progress-block__item__cropper-container__date__text",children:m})})]}),Object(o.jsx)("div",{children:Object(o.jsx)("p",{className:"atoms-skin-progress-block__text",children:"AFTER"})})]}):Object(o.jsxs)("div",{className:"atoms-skin-progress-block__button-wrapper",children:[Object(o.jsx)("button",{onClick:u,className:"atoms-skin-progress-block__button",children:Object(o.jsx)(d.a,{color:"#A6A6A6"})}),Object(o.jsx)("div",{children:Object(o.jsx)("p",{className:"atoms-skin-progress-block__text",children:"AFTER"})})]})})]})}),Object(o.jsx)("div",{className:"atoms-skin-progress-block__share-btn-wrapper",children:Object(o.jsx)("button",{className:"atoms-skin-progress-block__share-btn",type:"button",onClick:le,disabled:X,children:X?Object(o.jsx)(R.a,{}):"Save Your Skin Journey"})})]})},W=n("wScR"),Z=function(e){var t=e.color,n=void 0===t?"#373873":t;return Object(o.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[Object(o.jsx)("path",{d:"M1 5C1 2.79086 2.79086 1 5 1H17C19.2091 1 21 2.79086 21 5V17C21 19.2091 19.2091 21 17 21H5C2.79086 21 1 19.2091 1 17V5Z",stroke:n,strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),Object(o.jsx)("path",{d:"M16.3203 21C18.1757 20 18.0597 18.5 17.9438 18C17.8278 17.5 17.4799 16.75 16.3203 16.5C15.1606 16.25 14.2329 16 10.8699 16C7.50696 16 6.34732 16.25 5.4196 16.5C4.49189 16.75 4.16972 17.3893 4.02803 18C3.88634 18.6107 4.25998 20.25 5.65153 21",stroke:n,strokeWidth:"1.25"}),Object(o.jsx)("circle",{cx:"11",cy:"9",r:"4",stroke:n,strokeWidth:"1.25"})]})},G=n("PQRc"),Y=n("wd/R"),V=n.n(Y),q=n("oOSY"),K=n.n(q),X=(n("+v1v"),n("TSYQ")),J=n.n(X),Q=n("xD5/"),$=n("ZG8f"),ee=n("Lnei"),te=n("WkpF"),ne=n("nnlb"),oe=n("NKo/");function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var se=function(){var e=Object(c.useState)({img:"",date:"",id:""}),t=e[0],n=e[1],r=Object(c.useState)(!1),a=r[0],l=r[1],d=Object(c.useState)(!1),p=d[0],m=d[1],f=Object(c.useState)(!0),b=f[0],h=f[1],g=Object(c.useState)(""),j=g[0],v=g[1],y=Object(c.useState)(""),_=y[0],O=y[1],x=Object(c.useState)(!1),w=x[0],C=x[1],k=Object(c.useState)(!1),S=k[0],N=k[1],E=Object(c.useState)(!1),I=E[0],M=E[1],P=Object(c.useState)(!1),T=P[0],A=P[1],z=Object(c.useState)(!1),Y=z[0],q=z[1],X=Object(c.useState)({img:"",date:"",id:""}),re=X[0],se=X[1],ae=Object(c.useState)({img:"",date:"",id:""}),ce=ae[0],le=ae[1],ue=Object(c.useState)(null),de=ue[0],pe=ue[1],me=Object(c.useState)(""),fe=me[0],be=me[1],he=Object(c.useState)(!1),ge=he[0],je=he[1],ve=Object(c.useState)(""),ye=ve[0],_e=ve[1],Oe=Object(c.useState)(!1),xe=Oe[0],we=Oe[1],Ce=Object(c.useState)("star"),ke=Ce[0],Se=Ce[1],Ne=Object(c.useState)(0),Ee=Ne[0],Ie=Ne[1],Me=Object(c.useState)(""),Pe=Me[0],Te=Me[1],Ae=Object(c.useState)(""),ze=Ae[0],De=Ae[1],Le=Object(c.useRef)(null),Re=Object(D.useDispatch)(),Fe=Object(D.useSelector)((function(e){var t=e.imageAnalysis,n=e.user;return{imageList:[].concat(t.images).reverse(),shareSelfieList:[].concat(t.shareSelfieList).reverse(),user:n.userData}})),Be=Fe.imageList,He=Fe.shareSelfieList,Ue=Fe.user,We=document.getElementsByTagName("video")[0],Ze=function(e){var t=e.img,o=e.date,r=e.id,i=e.showModalType;n({img:t,date:V()(o).format("ll"),id:r}),"gallery"===i?l(!0):m(!0)},Ge=function(e,t){var n=V()(e),o=V()(t);return!!n.isAfter(o)},Ye=function(e){if(I){if(null!==ce&&void 0!==ce&&ce.date&&Ge(e.date,null===ce||void 0===ce?void 0:ce.date))return void F.a.warn("Please select old image to compare with after image");se(ie(ie({},e),{},{date:e.date})),M(!1),window.analytics.track("progress tracker before image selected",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"})}else{if(null!==re&&void 0!==re&&re.date&&Ge(null===re||void 0===re?void 0:re.date,e.date))return void F.a.warn("Please select latest image to compare with before image");le(ie(ie({},e),{},{date:e.date})),A(!1),window.analytics.track("progress tracker after image selected",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"})}},Ve=function(){var e=480;B.isMobile&&(e=640),navigator.mediaDevices.getUserMedia({audio:!1,video:{width:700,height:e}}).then((function(e){q(!0),pe(e),We.srcObject=e,window.analytics.track("progress tracker camera opened",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"})}))},qe=function(){_e(""),Y&&de&&(be(""),q(!1),de.getVideoTracks().forEac
1h((function(e){e.stop()})),pe(null),We.srcObject=null,window.analytics.track("progress tracker camera closed",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"}))},Ke=Object(c.useCallback)((function(){fetch(j).then((function(e){e.blob().then(function(){var e=Object(s.a)(i.a.mark((function e(t){var n,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=window.URL.createObjectURL(t),(o=document.createElement("a")).href=n,o.download="selfie.png",o.click(),window.analytics.track("progress tracker share selfie image download",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"}),b?we(!0):Re(Object(L.e)({rating:0,consent:b,id:_,feedback:Pe},(function(){Se("success")})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}))}),[j,b]);return Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)(oe.a,{page:"/progress-tracker",subPage:""}),Object(o.jsxs)("div",{className:"organisms-skin-comparison-section",children:[Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__padding-wrapper organisms-skin-comparison-section__padding-wrapper__mobile",children:[Object(o.jsxs)("h2",{className:"organisms-skin-comparison-section__title",children:["Track Your Skin Health \ud83e\udd33"," "]}),Object(o.jsx)("h3",{className:"organisms-skin-comparison-section__subtitle",children:"Selfie Library"}),Object(o.jsx)("p",{className:"organisms-skin-comparison-section__desc",children:"Add your selfies and see your skin improvement."}),Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__wrap-photo",children:[Object(o.jsx)("button",{onClick:Ve,className:"organisms-skin-comparison-section__add-button",children:Object(o.jsx)(u,{})}),Be.slice(0,B.isMobile?5:3).map((function(e,t){return Object(o.jsx)("div",{className:"organisms-skin-comparison-section__photo-wrapper",children:Object(o.jsx)("div",{onClick:function(){return Ze(ie(ie({},e),{},{showModalType:"gallery"}))},className:"organisms-skin-comparison-section__photo",style:{backgroundImage:"url(".concat(e.img,")"),backgroundSize:"cover",backgroundPositionX:"center"}})},t)}))]}),0!==Be.length?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("button",{onClick:function(){return C(!0)},className:"organisms-skin-comparison-section__button",children:"View All Photos"}),Object(o.jsx)("button",{onClick:function(){return C(!0)},className:"organisms-skin-comparison-section__button organisms-skin-comparison-section__button_mob",children:"View All Photos"})]}):null]}),He.length>0&&Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__share-selfie organisms-skin-comparison-section__share-selfie__mobile",children:[Object(o.jsx)("h3",{className:"organisms-skin-comparison-section__subtitle organisms-skin-comparison-section__subtitle__share-selfie",children:"Past Comparisons"}),Object(o.jsx)("div",{className:J()("organisms-skin-comparison-section__wrap-photo organisms-skin-comparison-section__wrap-photo__share-selfie",{"organisms-skin-comparison-section__wrap-photo__share-selfie__spacing":He.length<3}),children:He.slice(0,B.isMobile?3:4).map((function(e,t){return Object(o.jsx)("div",{className:"organisms-skin-comparison-section__photo-wrapper",children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__photo",onClick:function(){return Ze({img:e.image,date:e.createdAt,id:e.id,showModalType:"selfie"})},style:{backgroundImage:"url(".concat(e.image,")"),backgroundSize:"cover",backgroundPositionX:"center"}})},t)}))}),He.length>(B.isMobile?3:4)?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("button",{onClick:function(){return N(!0)},className:"organisms-skin-comparison-section__button organisms-skin-comparison-section__button__share-selfie",children:"View All Photos"}),Object(o.jsx)("button",{onClick:function(){return N(!0)},className:"organisms-skin-comparison-section__button organisms-skin-comparison-section__button_mob organisms-skin-comparison-section__button__share-selfie",children:"View All Photos"})]}):null]}),Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__cropper organisms-skin-comparison-section__cropper__mobile",children:[Object(o.jsx)("h3",{className:"organisms-skin-comparison-section__subtitle",children:"Track Your Skin Progress"}),Object(o.jsx)("p",{className:"organisms-skin-comparison-section__desc organisms-skin-comparison-section__desc__upload-selfie",children:"Select two selfies & create side-by-side comparisons of your photos for before-and-after."})]}),!B.isMobile&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__wrap-skin-progress",children:Object(o.jsx)(U,{dateBefore:V()(re.date).format("DD MMM YYYY"),dateAfter:V()(ce.date).format("DD MMM YYYY"),beforeImg:re.img,afterImg:ce.img,beforeImgId:re.id,afterImgId:ce.id,onClickAfter:function(){0===(null===Be||void 0===Be?void 0:Be.length)?(_e("after"),Ve()):(_e("after"),A(!0))},onClickBefore:function(){0===(null===Be||void 0===Be?void 0:Be.length)?(_e("before"),Ve()):(_e("before"),M(!0))},resetAfterImage:function(){return le({img:"",date:"",id:""})},resetBeforeImage:function(){return se({img:"",date:"",id:""})},setShareSelfieImage:function(e,t){v(e),O(t)}})})}),Object(o.jsx)(W.a,{showModal:Y,showTitle:!1,onClose:qe,children:Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__modal-video",children:[Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__video-wrapper",children:[Object(o.jsx)("img",{src:fe,className:J()("app__videoFeed",{none:0===(null===fe||void 0===fe?void 0:fe.length)}),alt:"captured image"}
1),Object(o.jsx)("video",{id:"accounts_selfie_camera",ref:Le,muted:!0,autoPlay:!0,playsInline:!0,className:J()("app__videoFeed",{none:0!==(null===fe||void 0===fe?void 0:fe.length)})}),Object(o.jsx)("button",{onClick:qe,className:"organisms-skin-comparison-section__button-close",children:Object(o.jsx)(G.a,{})})]}),Object(o.jsxs)("div",{className:J()("organisms-skin-comparison-section__wrapper-button",{"organisms-skin-comparison-section__wrapper-button__center":0===fe.length}),children:[fe.length>0&&Object(o.jsx)("button",{className:"organisms-skin-comparison-section__button-download",onClick:function(){be(""),Ve(),window.analytics.track("progress tracker camera retake",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"})},children:Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("span",{children:"Retake Selfie"})})}),0===fe.length?Object(o.jsxs)("button",{className:"organisms-skin-comparison-section__button-download organisms-skin-comparison-section__button-download_blue",type:"button",onClick:function(){var e=document.createElement("canvas");e.width=Le.current.videoWidth,e.height=Le.current.videoHeight;var t=e.getContext("2d");t.drawImage(Le.current,0,0,e.width,e.height),null===t||void 0===t||t.save(),null===t||void 0===t||t.scale(-1,1),null===t||void 0===t||t.drawImage(null===Le||void 0===Le?void 0:Le.current,-1*e.width,0),null===t||void 0===t||t.restore(),Le.current.srcObject.getVideoTracks().forEach((function(e){e.stop()})),be(e.toDataURL()),window.analytics.track("progress tracker camera image clicked",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"})},children:[Object(o.jsx)("span",{children:"Click"}),Object(o.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/click-icon-white-11-04-23.png",height:20,width:20,alt:"camera"})]}):Object(o.jsx)("button",{className:"organisms-skin-comparison-section__button-download organisms-skin-comparison-section__button-download_blue",type:"button",onClick:function(){try{je(!0),Re(Object(L.g)({capturedImage:fe,callback:function(e,t,n){e&&(je(!1),qe(),"before"===ye&&(se({img:t,date:V()(new Date).format("ll"),id:n}),_e("")),"after"===ye&&(le({img:t,date:V()(new Date).format("ll"),id:n}),_e("")),window.analytics.track("progress tracker camera image upload success",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"}))}}))}catch(e){je(!1),window.analytics.track("progress tracker camera image upload failed",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"})}},disabled:ge,children:ge?Object(o.jsx)(R.a,{}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("span",{children:"Save"}),Object(o.jsx)(Z,{color:"white"})]})})]})]})}),Object(o.jsx)(W.a,{customCls:"organisms-skin-comparison-section__modal-big-photo__overlay",showModal:a,title:t.date,onClose:function(){return l(!1)},children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__modal-big-photo",style:{backgroundImage:"url(".concat(t.img,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__modal-big-photo__delete-button",children:Object(o.jsx)("button",{onClick:function(){return De(t.id)},children:Object(o.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/trash-icon-selfie.png",alt:"trash"})})})})}),Object(o.jsx)(W.a,{customCls:"organisms-skin-comparison-section__modal-big-photo__overlay",showModal:p,title:t.date,onClose:function(){return m(!1)},children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__modal-big-photo",style:{backgroundImage:"url(".concat(t.img,")"),backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat"}})}),0!==(null===j||void 0===j?void 0:j.length)&&Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__modal-share-selfie__container",children:[Object(o.jsx)("div",{className:"organisms-skin-comparison-section__modal-share-selfie__close-icon",children:Object(o.jsx)("button",{onClick:function(){v(""),O("")},children:Object(o.jsx)(H,{})})}),Object(o.jsx)("div",{className:"organisms-skin-comparison-section__modal-share-selfie__image",children:Object(o.jsx)("div",{className:"lazy-load-img",children:Object(o.jsx)($.a,{className:"",webPSrc:j,fallBackSrc:j,alt:"share selfie image"})})}),Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__modal-share-selfie__button-wrapper",children:[Object(o.jsxs)("div",{className:"selfie-consent-update",children:[Object(o.jsx)("input",{id:"selfie-consent-update__text",type:"checkbox",name:"receiveSMSUpdate",onCh
1ange:function(){h(!b)},checked:b}),Object(o.jsx)("label",{htmlFor:"selfie-consent-update__label selfie-consent-update__text",onClick:function(){h(!b)}}),Object(o.jsx)("span",{className:"selfie-consent-update__text",onClick:function(){h(!b)},children:"Share your progress with Yours Community"})]}),Object(o.jsx)("button",{className:"organisms-skin-comparison-section__button-download organisms-skin-comparison-section__button-download_blue",type:"button",onClick:Ke,children:Object(o.jsx)("span",{children:b?"Save & Share":"Save"})})]})]}),Object(o.jsx)(ee.a,{open:xe,onClose:function(){return we(!1)},center:!0,showCloseIcon:!1,classNames:{modal:"rating-modal"},children:Object(o.jsxs)("div",{children:["star"===ke&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("h3",{className:"rating-modal__title",children:" Rate Your Progress "}),Object(o.jsx)("p",{className:"rating-modal__sub-title",children:"Share with us how satisfied your are with the results. We monitor this daily!"}),Object(o.jsx)(K.a,{rating:Ee,starRatedColor:"#FAA85E",numberOfStars:5,name:"rating",starDimension:"48px",starSpacing:"2px",starHoverColor:"#FAA85E",changeRating:function(e){Ie(e)}})]}),"feedback"===ke&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("h3",{className:"rating-modal__title",children:[" ","Tell us your feedback about the product"," "]}),Object(o.jsx)("div",{className:"rating-modal__textarea__wrapper",children:Object(o.jsx)("textarea",{className:"rating-modal__textarea",rows:8,cols:4,name:"message",onChange:function(e){return Te(e.target.value)},value:Pe})})]}),"success"===ke&&Object(o.jsxs)("div",{className:"rating-modal__success__wrapper",children:[Object(o.jsx)("p",{className:"rating-modal__success__emote",children:"\ud83d\ude4f"}),Object(o.jsx)("p",{className:"rating-modal__success__title",children:"Thank you!"}),Object(o.jsxs)("p",{className:"rating-modal__success__sub-title",children:["We\u2019ll now redirect you back to your account."," "]}),Object(o.jsx)("p",{className:"rating-modal__success__close-link",onClick:function(){we(!1),Se("star"),Ie(0)},children:"Take me to My Account \ud83c\udfe0"})]}),"success"!==ke&&Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("div",{className:"flex justify-center mt-2",children:Object(o.jsx)(te.a,{round:!0,maxWidth:"200px",height:45,disabled:0===Ee,onClick:function(){var e;Ee>3?Re(Object(L.e)({rating:Ee,consent:b,id:_,feedback:Pe},(function(){Se("success")}))):(we(!1),null===(e=window.open("https://lovefromyours.typeform.com/to/qFsog1SV#a=".concat(Ue.email,"&b=").concat(Ue.firstName+(Ue.lastName?Ue.lastName:"")),"_blank"))||void 0===e||e.focus())},htmlType:"button",children:Ee>3?"Submit":"Leave Feedback"})}),Object(o.jsx)("p",{className:"rating-modal__footer-text",onClick:function(){we(!1),Se("star"),Ie(0)},children:"Skip"})]})]})}),Object(o.jsx)(W.a,{showModal:w,title:"Selfie Library",onClose:function(){return C(!1)},customCls:"organisms-skin-comparison-section__gallery__container",bodyCls:"organisms-skin-comparison-section__gallery__body",children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery",children:Be.map((function(e,t){return Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery-item-wrapper",onClick:function(){return Ze(ie(ie({},e),{},{showModalType:"gallery"}))},children:Object(o.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")"),backgroundSize:"cover",backgroundPositionX:"center"},className:"organisms-skin-comparison-section__gallery-item",children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery-date",children:Object(o.jsx)("p",{children:V()(e.date).format("ll")})})})},t)}))})}),Object(o.jsx)(W.a,{showModal:S,title:"Progress Tracker",onClose:function(){return N(!1)},customCls:"organisms-skin-comparison-section__gallery__container",bodyCls:"organisms-skin-comparison-section__gallery__body",children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery",children:He.map((function(e,t){return Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery-item-wrapper",children:Object(o.jsx)("div",{onClick:function(){return Ze({img:e.image,date:e.createdAt,id:e.id,showModalType:"selfie"})},style:{backgroundImage:"url(".concat(e.image,")"),backgroundSize:"cover",backgroundPositionX:"center"},className:"organisms-skin-comparison-section__gallery-item",children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery-date",children:Object(o.jsx)("p",{children:V()(e.createdAt).format("ll")})})})},t)}))})}),Object(o.jsx)(W.a,{showModal:T,title:"Select Selfies To Compare",onClose:function(){A(!1),_e("")},customCls:"organisms-skin-comparison-section__gallery__container",bodyCls:"organisms-skin-comparison-section__gallery__body",children:Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__gallery",children:[Object(o.jsx)("button",{onClick:function(){A(!1),Ve()},className:"organisms-skin-comparison-section__gallery-button",children:Object(o.jsx)(u,{})}),Be.map((function(e,t){return Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery-item-wrapper",children:Object(o.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")"),backgroundSize:"cover",backgroundPositionX:"center"},className:"organisms-skin-comparison-section__gallery-item",onClick:function(){return Ye(e)},children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery-date",children:Object(o.jsx)("p",{children:V()(e.date).format("ll")})})})},t)}))]})}),Object(o.jsx)(W.a,{showModal:I,title:"Select Selfies To Compare",onClose:function(){M(!1),_e("")},customCls:"organisms-skin-comparison-section__gallery__container",bodyCls:"organisms-skin-comparison-section__gallery__body",children:Object(o.jsxs)("div",{className:"organisms-skin-comparison-section__gallery",children:[Object(o.jsx)("button",{onClick:function(){M(!1),Ve()},className:"organisms-skin-comparison-section__gallery-button",children:Object(o.jsx)(u,{})}),Be.map((function(e,t){return Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery-item-wrapper",children:Object(o.jsx)("div",{style:{backgroundImage:"url(".concat(e.img,")"),backgroundSize:"cover",backgroundPositionX:"center"},className:"organisms-skin-comparison-section__gallery-item",onClick:function(){return Ye(e)},children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__gallery-date",children:Object(o.jsx)("p",{children:V()(e.date).format("ll")})})})},t)}))]})})]}),B.isMobile&&Object(o.jsx)(o.Fragment,{children:Object(o.jsx)("div",{className:"organisms-skin-comparison-section__wrap-skin-progress",children:Object(o.jsx)(U,{dateBefore:V()(re.date).format("DD MMM YYYY"),dateAfter:V()(ce.date).format("DD MMM YYYY"),beforeImg:re.img,beforeImgId:re.id,afterImgId:ce.id,afterImg:ce.img,onClickAfter:function(){0===(null===Be||void 0===Be?void 0:Be.length)?(_e("after"),Ve()):(_e("after"),A(!0))},onClickBefore:function(){0===(null===Be||void 0===Be?void 0:Be.length)?(_e("before"),Ve()):(_e("before"),M(!0))},resetAfterImage:function(){return le({img:"",date:"",id:""})},resetBeforeImage:function(){return se({img:"",date:"",id:""})},setShareSelfieImage:function(e,t){v(e),O(t)}})})}),B.isMobile&&Object(o.jsx)(Q.a,{}
1),Object(o.jsx)(ne.a,{removeModal:Boolean(ze.length),page:"products",setRemoveModal:function(){return De("")},yesRemoveItem:function(){return e=ze,void Re(Object(L.f)({id:e,isActive:!1},(function(){F.a.success("Selfie removed successfully"),n({img:"",date:"",id:""}),l(!1),De(""),window.analytics.track("progress tracker selfie image delete",{userId:window.localStorage.getItem("userId"),email:window.localStorage.getItem("guestEmail"),source:"progress tracker page"})})));var e},description:"Are you sure you want to remove this selfie from your library?"})]})};t.default=l.a.memo(se)},fLWC:function(e,t,n){},fbhf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in o)i(e,o[t]);var n=document.body;for(var s in r)i(n,r[s]);o={},r={}},t.log=function(){return void 0;var e=document.getElementsByTagName("html")[0].className,t="Show tracked classes:\n\n";for(var n in t+="<html /> ("+e+"):\n",o)t+=" "+n+" "+o[n]+"\n";for(var i in e=document.body.className,t+="\n\ndoc.body ("+e+"):\n",r)t+=" "+i+" "+r[i]+"\n";t+="\n",console.log(t)};var o={},r={};function i(e,t){e.classList.remove(t)}t.add=function(e,t){return n=e.classList,i="html"==e.nodeName.toLowerCase()?o:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),n.add(e)}));var n,i},t.remove=function(e,t){return n=e.classList,i="html"==e.nodeName.toLowerCase()?o:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&n.remove(e)}));var n,i}},jrfk:function(e,t){var n,o,r,i,s,a,c,l,u,d,p,m,f,b,h,g=!1;function j(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Ice
1weasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),j=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),b=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),p=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);a=v?parseFloat(v[1])+4:n,o=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,(i=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else n=o=r=s=i=NaN;if(j){if(j[1]){var y=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!y||parseFloat(y[1].replace("_","."))}else c=!1;l=!!j[2],u=!!j[3]}else c=l=u=!1}}var v={ie:function(){return j()||n},ieCompatibilityMode:function(){return j()||a>n},ie64:function(){return v.ie()&&p},firefox:function(){return j()||o},opera:function(){return j()||r},webkit:function(){return j()||i},safari:function(){return v.webkit()},chrome:function(){return j()||s},windows:function(){return j()||l},osx:function(){return j()||c},linux:function(){return j()||u},iphone:function(){return j()||m},mobile:function(){return j()||m||f||d||h},nativeApp:function(){return j()||b},android:function(){return j()||d},ipad:function(){return j()||f}};e.exports=v},lRVB:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("nKUr"),r=(n("q1tI"),function(e){var t=e.size,n=void 0===t?24:t,r=e.background,i=void 0===r?"white":r,s=e.color,a=void 0===s?"#6FCF97":s;return Object(o.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",children:[Object(o.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:i}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22.7143C17.9173 22.7143 22.7143 17.9173 22.7143 12C22.7143 6.08266 17.9173 1.28571 12 1.28571C6.08266 1.28571 1.28571 6.08266 1.28571 12C1.28571 17.9173 6.08266 22.7143 12 22.7143ZM12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:a}),Object(o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3438 7.67441C16.7161 7.98932 16.7885 8.5354 16.5112 8.9365L11.9026 15.6027C11.7424 15.8345 11.4996 15.9785 11.2365 15.9978C10.9733 16.0171 10.7154 15.9099 10.5289 15.7036L7.5819 12.4438C7.25147 12.0783 7.25147 11.5219 7.5819 11.1564C7.96297 10.7349 8.62478 10.7349 9.00585 11.1564L11.0839 13.455L14.9526 7.85899C15.2708 7.3987 15.9165 7.31303 16.3438 7.67441Z",fill:a})]})})},"nNS+":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/accounts/progress-tracker",function(){return n("9PRL")}])},nnlb:function(e,t,n){"use strict";var o=n("jT3O"),r=n("nKUr"),i=n("cpVT"),s=n("9rZX"),a=n.n(s),c=n("TSYQ"),l=n.n(c),u=n("kDDq"),d=n("xUQq"),p=n("KxSY"),m=n("WkpF");function f(){var e=Object(o.a)(["\n width: 12px;\n position: absolute;\n top: 16px;\n right: 16px;\n padding: 0;\n outline: none;\n cursor: pointer;\n border: 0;\n height: 12px;\n background: url('","') 0px 0px / 12px no-repeat;\n "]);return f=function(){return e},e}function b(){var e=Object(o.a)(["\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n\n button {\n width: 100%;\n max-width: 144px;\n min-height: 40px;\n font-family: 'Avenir_Medium', sans-serif;\n font-size: 14px;\n cursor: pointer;\n line-height: 19px;\n }\n\n button:first-child {\n margin-right: 8px;\n background-color: ",";\n color: ",";\n }\n\n button:last-child {\n background-color: ",";\n color: ",";\n }\n "]);return b=function(){return e},e}function h(){var e=Object(o.a)(["\n font-family: 'Avenir', sans-serif;\n font-size: 14px;\n line-height: 19px;\n color: ",";\n margin-bottom: 18px;\n "]);return h=function(){return e},e}function g(){var e=Object(o.a)(["\n font-family: 'Avenir_Medium', sans-serif;\n font-size: 16px;\n line-height: 22px;\n color: ",";\n margin-bottom: 13px;\n "]);return g=function(){return e},e}function j(){var e=Object(o.a)(["\n width: 100%;\n max-width: 344px;\n min-height: 175px;\n background-color: ",";\n padding: 19px 24px 0px;\n box-sizing: border-box;\n position: relative;\n outline: none;\n border-radius: 8px;\n "]);return j=function(){return e},e}function v(){var e=Object(o.a)(["\n z-index: 1003;\n "]);return v=function(){return e},e}function y(){var e=Object(o.a)(["\n position: fixed;\n width: 100%;\n height: 100%;\n background-color: ",";\n top: 0;\n z-index: 100;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;
1\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n "]);return y=function(){return e},e}t.a=function(e){var t=e.removeModal,n=e.page,o=e.setRemoveModal,s=e.yesRemoveItem,c=e.heading,u=void 0===c?"Remove Confirmation":c,d=e.description,p=void 0===d?"Are you sure you want to remove this item from your skincare bag?":d;return Object(r.jsxs)(a.a,{isOpen:t,className:_.modal,overlayClassName:l()(_.overlay,Object(i.a)({},_.overlay_page_products,"products"===n)),children:[Object(r.jsx)("p",{className:_.modal_title,children:u}),Object(r.jsx)("p",{className:_.modal_subtitle,children:p}),Object(r.jsxs)("div",{className:_.modal_buttons,children:[Object(r.jsx)(m.a,{maxWidth:"144px",height:45,round:!0,onClick:function(){return o(!1)},children:"Cancel"}),Object(r.jsx)(m.a,{maxWidth:"144px",height:45,round:!0,onClick:function(){return s(!0)},children:"Remove"})]}),Object(r.jsx)("button",{onClick:function(){return o(!1)},className:_.modal_close})]})};var _={overlay:Object(u.a)(y(),d.a.transparent_black),overlay_page_products:Object(u.a)(v()),modal:Object(u.a)(j(),d.a.white),modal_title:Object(u.a)(g(),d.a.blue),modal_subtitle:Object(u.a)(h(),d.a.blue),modal_buttons:Object(u.a)(b(),d.a.pink_1,d.a.blue,d.a.blue,d.a.white),modal_close:Object(u.a)(f(),p.a.Close)}},o97j:function(e,t,n){"use strict";var o=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:o,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen,isInWorker:!o};e.exports=r},p7LQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u}));var o=n("nKUr"),r=(n("q1tI"),n("TSYQ")),i=n.n(r),s=(n("JIlm"),{s48:"atoms-title_l",s36:"atoms-title_m",s22:"atoms-title_s",s18:"atoms-title_xs"}),a=function(e){var t=e.size,n=e.centered,r=e.centeredOnMobile,a=e.centeredOnDesktop,c=e.textTransform,l=e.color,u=e.children;return Object(o.jsx)("h1",{className:i()("atoms-title",s[t],{"atoms-title_centered":n,"atoms-title_centered-on-mobile":r,"atoms-title_centered-on-desktop":a,"atoms-title_capitalize":"capitalize"===c,"atoms-title_lowercase":"lowercase"===c,"atoms-title_uppercase":"uppercase"===c}),style:{color:l},children:u})},c=function(e){var t=e.size,n=e.centered,r=e.centeredOnMobile,a=e.centeredOnDesktop,c=e.textTransform,l=e.color,u=e.children;return Object(o.jsx)("h2",{className:i()("atoms-title",s[t],{"atoms-title_centered":n,"atoms-title_centered-on-mobile":r,"atoms-title_centered-on-desktop":a,"atoms-title_capitalize":"capitalize"===c,"atoms-title_lowercase":"lowercase"===c,"atoms-title_uppercase":"uppercase"===c}),style:{color:l},children:u})},l=function(e){var t=e.size,n=e.centered,r=e.centeredOnMobile,a=e.centeredOnDesktop,c=e.textTransform,l=e.color,u=e.children;return Object(o.jsx)("h3",{className:i()("atoms-title",s[t],{"atoms-title_centered":n,"atoms-title_centered-on-mobile":r,"atoms-title_centered-on-desktop":a,"atoms-title_capitalize":"capitalize"===c,"atoms-title_lowercase":"lowercase"===c,"atoms-title_uppercase":"uppercase"===c}),style:{color:l},children:u})},u=function(e){var t=e.size,n=e.centered,r=e.centeredOnMobile,a=e.centeredOnDesktop,c=e.textTransform,l=e.color,u=e.children;return Object(o.jsx)("h4",{className:i()("atoms-title",s[t],{"atoms-title_centered":n,"atoms-title_centered-on-mobile":r,"atoms-title_centered-on-desktop":a,"atoms-title_capitalize":"capitalize"===c,"atoms-title_lowercase":"lowercase"===c,"atoms-title_uppercase":"uppercase"===c}),style:{color:l},children:u})}},qFS3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n("q1tI"),s=f(i),a=f(n("i8i4")),c=f(n("17x9")),l=f(n("QEso")),u=function(e){if(e&&e.__esMo
vendor: 5,233 bytes, line 1
1dule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n("Ye7m")),d=n("2zs7"),p=f(d),m=n("VCL8");function f(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var g=t.portalClassName="ReactModalPortal",j=t.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==a.default.createPortal,y=function(e){return document.createElement(e)},_=function(){return v?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var x=function(e){function t(){var e,n,r;b(this,t);for(var i=arguments.length,c=Array(i),u=0;u<i;u++)c[u]=arguments[u];return n=r=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r.removePortal=function(){!v&&a.default.unmountComponentAtNode(r.node);var e=O(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=_()(r,s.default.createElement(l.default,o({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},h(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=y("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var o=this.props,r=o.isOpen,i=o.portalClassName;e.portalClassName!==i&&(this.node.className=i);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||r)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=y("div")),_()(s.default.createElement(l.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(i.Component);x.propTypes={isOpen:c.default.bool.isRequired,style:c.default.shape({content:c.default.object,overlay:c.default.object}),portalClassName:c.default.string,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,className:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),overlayClassName:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),appElement:c.default.oneOfType([c.default.instanceOf(p.default),c.default.instanceOf(d.SafeHTMLCollection),c.default.instanceOf(d.SafeNodeList),c.default.arrayOf(c.default.instanceOf(p.default))]),onAfterOpen:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,ariaHideApp:c.default.bool,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,parentSelector:c.default.func,aria:c.default.object,data:c.default.object,role:c.default.string,contentLabel:c.default.string,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func},x.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:j,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},x.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,m.polyfill)(x),t.default=x},rHrb:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=i(n("q1tI")),r=i(n("+QRC"));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?m(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(){var e,n;l(this,t);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return b(m(n=d(this,(e=p(t)).call.apply(e,[this].concat(s)))),"onClick",(function(e){var t=n.props,i=t.text,s=t.onCopy,a=t.children,c=t.options,l=o.default.Children.only(a),u=(0,r.default)(i,c);s&&s(i,u),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(e)})),n}var n,i,s;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=c(e,["text","onCopy","options","children"]),r=o.default.Children.only(t);return o.default.cloneElement(r,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}])&&u(n.prototype,i),s&&u(n,s),t}(o.default.PureComponent);t.CopyToClipboard=h,b(h,"defaultProps",{onCopy:void 0,options:void 0})},rTo2:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"l",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"m",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"o",(function(){return m})),n.d(t,"g",(function(){return f})),n.d(t,"r",(function(){return b})),n.d(t,"f",(function(){return h})),n.d(t,"p",(function(){return g})),n.d(t,"a",(function(){return j})),n.d(t,"h",(function(){return v})),n.d(t,"q",(function(){return y})),n.d(t,"k",(function(){return _}));var o=n("k2H8");function r(){return{type:o.a.GET_PUBLISHED_ASSESSMENT}}function i(e){return{type:o.a.SET_LATEST_ASSESSMENT,payload:e}}function s(){return{type:o.a.GET_LATEST_ASSESSMENT_ATTEMPT}}function a(e){return{type:o.a.SET_LATEST_COMPLETED_ASSESSMENT_ATTEMPT,payload:e}}function c(){return{type:o.a.GET_LATEST_COMPLETED_ASSESSMENT_ATTEMPT}}function l(){return{type:o.a.GET_ASSESSMENT_ATTEMPT_BY_ID}}function u(e){return{type:o.a.SET_ASSESSMENT_ATTEMPT_BY_ID,payload:e}}function d(e){return{type:o.a.SET_PUBLISHED_ASSESSMENT,payload:e}}function p(e){return{type:o.a.SET_ACTIVE_ASSESSMENT_STATE,state:e}}function m(e){return{type:o.a.SKIP_ASSESSMENT_ATTEMPT_MODAL,payload:e}}function f(e){return{type:o.a.GET_WEATHER_DATA,payload:e}}function b(e){return{type:o.a.SUBMIT_SKIN_ANALYSIS,payload:e}}function h(e){return{type:o.a.GET_IMAGE_ANALYSIS_DATA,payload:e}}function g(e){return{type:o.a.SHOW_ASSESSMENT_ATTEMPT_MODAL,payload:e}}function j(e){return{type:o.a.ASSESSMENT_ATTEMPT_ANSWER,payload:e}}function v(){return{type:o.a.RESET_ASSESSMENT_STATE}}function y(e){return{type:o.a.SUBMIT_ASSESSMENT_META,payload:e}}function _(e){return{type:o.a.SET_ASSESSMENT_LOADER,payload:e}}},rePB:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return o}
1))},vuIU:function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.d(t,"a",(function(){return r}))},wJiJ:function(e,t,n){e.exports=n("1K8p")},wScR:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("nKUr"),r=n("q1tI"),i=n("PQRc"),s=(n("MDE7"),n("TSYQ")),a=n.n(s),c=n("b6Qr"),l=function(e){var t=e.showModal,n=void 0!==t&&t,s=e.showTitle,l=void 0===s||s,u=e.onClose,d=e.children,p=e.title,m=void 0===p?"":p,f=e.customCls,b=void 0===f?"":f,h=e.bodyCls,g=void 0===h?"":h,j=e.background,v=void 0===j?"white":j;return Object(r.useEffect)((function(){var e=document.getElementsByTagName("body")[0];return n?e.classList.add("prevent-scroll"):e.classList.remove("prevent-scroll"),function(){e.classList.remove("prevent-scroll")}}),[n]),Object(o.jsx)("div",{style:{display:n?"flex":"none"},className:a()("atoms-modal__overlay",b),children:Object(o.jsxs)("div",{style:{paddingTop:l?c.isMobile?"26px":"52px":"0",background:v},className:"atoms-modal",children:[Object(o.jsxs)("div",{style:{display:l?"flex":"none"},className:"atoms-modal__title-wrap",children:[Object(o.jsx)("p",{className:"atoms-modal__title",children:m}),Object(o.jsx)("button",{onClick:u,className:"atoms-modal__close-button",children:Object(o.jsx)(i.a,{})})]}),Object(o.jsx)("div",{className:g,style:{height:l?"91%":"100%"},children:d})]})})}},"xD5/":function(e,t,n){"use strict";var o=n("nKUr"),r=n("JqvK"),i=n("kmf4"),s=n("/pPz"),a=n("q1tI"),c=n("2T+c"),l=n("/MKj"),u=[{id:"1",title:"HOME",icon:Object(o.jsx)(i.a,{}),activeIcon:Object(o.jsx)(i.a,{isFill:!0}),path:"/accounts"},{id:"2",title:"BAG",icon:Object(o.jsx)(s.a,{}),activeIcon:Object(o.jsx)(s.a,{isFill:!0})},{id:"3",title:"ACCOUNT",icon:Object(o.jsx)(c.a,{}),activeIcon:Object(o.jsx)(c.a,{isFill:!0}),path:"/account-new/account"}];t.a=function(e){var t=e.title,n=void 0===t?"":t,i=function(e){return e.reduce((function(e,t){return e+t.quantity}),0)},c=Object(l.useSelector)((function(e){var t,n;return null===e||void 0===e||null===(t=e.cart)||void 0===t||null===(n=t.cartDetails)||void 0===n?void 0:n.items}));return Object(a.useEffect)((function(){u[1].icon=Object(o.jsx)(s.a,{count:c?i(c):0})}),[c]),Object(o.jsx)(r.a,{items:u,activeItem:n})}},xGhK:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}));var o=n("k2H8");function r(e){return{type:o.a.Add_Items_To_Cart,payload:e}}function i(e){return{type:o.a.GET_ALL_PRODUCTS,payload:e}}function s(e){return{type:o.a.SET_ALL_PRODUCTS,payload:e}}},xUQq:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o,r=n("cpVT"),i=(o={white:"#ffffff",white_transparent:"rgba(229, 228, 237, 0)",transparent_black:"rgba(0, 0, 0, 0.75)",transparent_black_2:"rgba(0, 0, 0, 0.1)",transparent_black_3:"rgba(37, 37, 37, 0.6)",transparent_black_4:"rgba(37, 37, 37, 0.5)",black:"#000000",black_2:"#252525",black_3:"#312F2A",blue:"#373873",blue_6:"#EEF4F8",yellow:"#E0E285",yellow_2:"rgba(224, 226, 133, 0.38)",yellow_3:"#F7C557",orange:"#E69A87",purple_2:"#FDEEEB",purple_3:"rgba(255, 228, 222, 0.8)",purple_5:"#d99bff",gray:"rgba(55, 56, 115, 0.7)",gray_2:"rgba(55, 56, 115, 0.3)",gray_3:"#fffaf8",gray_4:"rgba(55, 56, 115, 0.15)",gray_5:"#F1F0F6",gray_6:"#E7E5F0",blue_2:"#383873",blue_3:"#fbfafc",blue_4:"#f4f3f8",blue_5:"#E5E4ED"},Object(r.a)(o,"blue_6","#d7dcf0"),Object(r.a)(o,"light_blue","#EBF0F3"),Object(r.a)(o,"purple","#373974"),Object(r.a)(o,"pink","#fbded7"),Object(r.a)(o,"light_pink","#F7F5F6"),Object(r.a)(o,"pink_1","#ffe9e5"),Object(r.a)(o,"light_purple","rgba(55, 56, 115, 0.8)"),Object(r.a)(o,"purple_4","#9B9BB9"),Object(r.a)(o,"green","#6FCF97"),Object(r.a)(o,"light_green","#E8F6EB"),o)}},[["nNS+",2,1,23,3,4,5,6,7,0,8,10,12,14,16,22,24,27,33,39,40,44,48,55,56,58,9]]]);
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.