1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4608],{29089:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-account/orders/[id]",function(){return s(66892)}])},10978:function(e,t,s){"use strict";var l=s(85893),a=s(65898),n=s(73213),r=s(43484),c=s(87536),i=s(50899);let d={title:"common:text-subscribe-heading",description:"common:text-subscribe-description",buttonText:"common:button-subscribe"},x={subscription_email:""},o=e=>{var t;let{className:s="px-5 sm:px-8 md:px-16 2xl:px-24",disableBorderRadius:o=!1}=e,{register:m,handleSubmit:u,formState:{errors:p}}=(0,c.cI)({defaultValues:x}),{t:g}=(0,i.$G)(),{title:h,description:f,buttonText:b}=d;async function j(e){}return(0,l.jsxs)("div",{className:"".concat(s," flex flex-col xl:flex-row justify-center xl:justify-between items-center rounded-lg bg-gray-200 py-10 md:py-14 lg:py-16"),children:[(0,l.jsxs)("div",{className:"lg:-mt-2 xl:-mt-0.5 text-center xl:text-start mb-7 md:mb-8 lg:mb-9 xl:mb-0",children:[(0,l.jsx)(a.Z,{variant:"mediumHeading",className:"sm:mb-0 md:mb-2.5 lg:mb-3 xl:mb-3.5",children:g("".concat(h))}),(0,l.jsx)("p",{className:"text-body text-xs md:text-sm leading-6 md:leading-7",children:g("".concat(f))})]}),(0,l.jsx)("form",{onSubmit:u(j),className:"flex-shrink-0 w-full sm:w-96 md:w-[545px]",noValidate:!0,children:(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row items-start justify-end",children:[(0,l.jsx)(n.Z,{disableBorderRadius:o,placeholderKey:"forms:placeholder-email-subscribe",type:"email",variant:"solid",className:"w-full",inputClassName:"px-4 lg:px-7 h-12 lg:h-14 text-center sm:text-start bg-white",...m("subscription_email",{required:"forms:email-required",pattern:{value:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"forms:email-error"}}),errorKey:null===(t=p.subscription_email)||void 0===t?void 0:t.message}),(0,l.jsx)(r.Z,{disableBorderRadius:o,className:"mt-3 sm:mt-0 w-full sm:w-auto sm:ms-2 md:h-full flex-shrink-0",children:(0,l.jsx)("span",{className:"lg:py-0.5",children:g("".concat(b))})})]})})]})};t.Z=o},87990:function(e,t,s){"use strict";s.d(t,{Z:function(){return y}});var l=s(85893),a=s(27127),n=s(71199),r=s(16925),c=s(11163),i=s.n(c),d=s(18318),x=s(13971),o=s(95227),m=s(31955),u=s(88767);async function p(){return{ok:!0,message:"Logout Successful!"}}let g=()=>{let{unauthorize:e}=(0,o.l8)();return(0,u.useMutation)(()=>p(),{onSuccess:t=>{m.Z.remove("auth_token"),e(),i().push("/")},onError:e=>{}})};var h=s(50899);let f=[{slug:x.Z.ACCOUNT,name:"text-dashboard",icon:(0,l.jsx)(d.yl6,{className:"w-5 h-5"})},{slug:x.Z.ORDERS,name:"text-orders",icon:(0,l.jsx)(d.toq,{className:"w-5 h-5"})},{slug:x.Z.ACCOUNT_DETAILS,name:"text-account-details",icon:(0,l.jsx)(d.FJ3,{className:"w-5 h-5"})},{slug:x.Z.CHANGE_PASSWORD,name:"text-change-password",icon:(0,l.jsx)(d.Fuo,{className:"w-5 h-5"})}];function b(){let{mutate:e}=g(),{pathname:t}=(0,c.useRouter)(),s=t.split("/").slice(2,3),a="/".concat(s[0]),{t:n}=(0,h.$G)("common");return(0,l.jsxs)("nav",{className:"flex flex-col md:w-2/6 2xl:w-4/12 md:pe-8 lg:pe-12 xl:pe-16 2xl:pe-20 pb-2 md:pb-0",children:[f.map(e=>{let t=e.slug.split("/").slice(2,3),s="/".concat(t[0]);return(0,l.jsx)(r.Z,{href:e.slug,children:(0,l.jsxs)("a",{className:a===s?"bg-gray-100 font-semibold flex items-center cursor-pointer text-sm lg:text-base text-heading py-3.5 px-4 lg:px-5 rounded mb-2 ":"flex items-center cursor-pointer text-sm lg:text-base text-heading font-normal py-3.5 px-4 lg:px-5 rounded mb-2",children:[e.icon,(0,l.jsx)("span",{className:"ps-2",children:n("".concat(e.name))})]})},e.slug)}),(0,l.jsxs)("button",{className:"flex items-center cursor-pointer text-sm lg:text-base text-heading font-normal py-3.5 px-4 lg:px-5 focus:outline-none",onClick:()=>e(),children:[(0,l.jsx)(d.qgu,{className:"w-5 h-5"}),(0,l.jsx)("span",{className:"ps-2",children:n("text-logout")})]})]})}var j=s(10978);let N=e=>{let{children:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.Z,{pageHeader:"text-page-my-account"}),(0,l.jsxs)(n.Z,{children:[(0,l.jsx)("div",{className:"py-16 lg:py-20 px-0 xl:max-w-screen-xl mx-auto flex md:flex-row w-full",children:(0,l.jsxs)("div",{className:"flex flex-col md:flex-row w-full",children:[(0,l.jsx)(b,{}),(0,l.jsx)("div",{className:"md:w-4/6 2xl:w-8/12 mt-4 md:mt-0",children:t})]})}),(0,l.jsx)(j.Z,{})]})]})};var y=N},5347:function(e,t,s){"use strict";var l=s(85893),a=s(14055),n=s(92987),r=s(11163),c=s(50899);let i=e=>{let{product:t}=e,{price:s}=(0,n.ZP)({amount:t.price*t.quantity,currencyCode:"USD"});return(0,l.jsxs)("tr",{className:"border-b font-normal border-gray-300 last:border-b-0",children:[(0,l.jsxs)("td",{className:"p-4",children:[t.name," * ",t.quantity]}),(0,l.jsx)("td",{className:"p-4",children:s})]},t.id)},d=e=>{let{className:t="pt-10 lg:pt-12"}=e,{query:{id:s}}=(0,r.useRouter)(),{t:d}=(0,c.$G)("common"),{data:x,isLoading:o}=(0,a.O)(null==s?void 0:s.toString()),{price:m}=(0,n.ZP)(x&&{amount:x.total,currencyCode:"USD"}),{price:u}=(0,n.ZP)(x&&{amount:x.shipping_fee?x.total+x.shipping_fee:x.total,currencyCode:"USD"}),{price:p}=(0,n.ZP)(x&&{amount:x.shipping_fee,currencyCode:"USD"});return o?(0,l.jsx)("p",{children:"Loading..."}):(0,l.jsxs)("div",{className:t,children:[(0,l.jsxs)("h2",{className:"text-lg md:text-xl xl:text-2xl font-bold text-heading mb-6 xl:mb-8",children:[d("text-order-details"),":"]}),(0,l.jsxs)("table",{className:"w-full text-heading font-semibold text-sm lg:text-base",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{className:"bg-gray-150 p-4 text-start first:rounded-ts-md w-1/2",children:d("text-product")}),(0,l.jsx)("th",{className:"bg-gray-150 p-4 text-start last:rounded-te-md w-1/2",children:d("text-total")})]})}),(0,l.jsx)("tbody",{children:null==x?void 0:x.products.map((e,t)=>(0,l.jsx)(i,{product:e},t))}),(0,l.jsxs)("tfoot",{children:[(0,l.jsxs)("tr",{className:"odd:bg-gray-150",children:[(0,l.jsxs)("td",{className:"p-4 italic",children:[d("text-sub-total"),":"]}),(0,l.jsx)("td",{className:"p-4",children:m})]}),(0,l.jsxs)("tr",{className:"odd:bg-gray-150",children:[(0,l.jsxs)("td",{className:"p-4 italic",children:[d("text-shipping"),":"]}),(0,l.jsxs)("td",{className:"p-4",children:[p,(0,l.jsx)("span",{className:"text-[13px] font-normal ps-1.5 inline-block",children:"via Flat rate"})]})]}),(0,l.jsxs)("tr",{className:"odd:bg-gray-150",children:[(0,l.jsxs)("td",{className:"p-4 italic",children:[d("text-payment-method"),":"]}),(0,l.jsx)("td",{className:"p-4",children:null==x?void 0:x.payment_gateway})]}),(0,l.jsxs)("tr",{className:"odd:bg-gray-150",children:[(0,l.jsxs)("td",{className:"p-4 italic",children:[d("text-total"),":"]}),(0,l.jsx)("td",{className:"p-4",children:u})]}),(0,l.jsxs)("tr",{className:"odd:bg-gray-150",children:[(0,l.jsxs)("td",{className:"p-4 italic",children:[d("text-note"),":"]}),(0,l.jsx)("td",{className:"p-4",children:"new order"})]})]})]})]})};t.Z=d},71199:function(e,t,s){"use strict";var l=s(85893),a=s(93967),n=s.n(a);let r=e=>{let{children:t,className:s,el:a="div",clean:r}=e,c=n()(s,{"mx-auto px-2 lg:px-8 max-w-[1280px]":!r});return(0,l.jsx)(a,{className:c,children:t})};t.Z=r},27127:function(e,t,s){"use strict";var l=s(85893),a=s(50899);let n=e=>{let{pageSubHeader:t="text-page-explore",pageHeader:s="text-page-header"}=e,{t:n}=(0,a.$G)("common");return(0,l.jsx)("div",{className:"flex justify-center p-6 md:p-10 2xl:p-8 relative bg-no-repeat bg-center bg-contain",style:{backgroundImage:"url(/assets/images/purchace-header.jpg)"},children:(0,l.jsx)("div",{className:"w-full flex items-center justify-center relative z-10 py-10 md:py-14 lg:py-20 xl:py-24 2xl:py-32",children:(0,l.jsx)("h2",{className:"text-xl md:text-2xl lg:text-5xl font-bold text-white text-center",children:n("".concat(s))})})})};t.Z=n},65898:function(e,t,s){"use strict";var l=s(85893);s(67294);var a=s(93967),n=s.n(a);let r=e=>{let{style:t,className:s,variant:a="body",children:r,html:c}=e;return(0,l.jsx)({body:"p",mediumHeading:"h3",heading:"h4",pageHeading:"h1",subHeading:"h2"}[a],{className:n()({"text-sm sm:leading-6 leading-7":"body"===a,"text-body":"body"===a,"text-lg md:text-xl lg:text-2xl 2xl:text-3xl xl:leading-10 font-bold":"mediumHeading"===a,"text-heading":"mediumHeading"===a||"heading"===a||"pageHeading"===a||"subHeading"===a,"text-sm md:text-base xl:text-lg font-semibold":"heading"===a,"text-2xl font-bold":"pageHeading"===a,"text-lg md:text-2xl xl:text-3xl 2xl:text-4xl font-bold":"subHeading"===a},s),style:t,...c?{dangerouslySetInnerHTML:{__html:c}}:{},children:r})};t.Z=r},14055:function(e,t,s){"use strict";s.d(t,{O:function(){return c}});var l=s(46887),a=s(2844),n=s(88767);let r=async e=>{let{data:t}=await l.Z.get("".concat(a.P.ORDER));return t},c=e=>(0,n.useQuery)([a.P.ORDER,e],()=>r(e))},66892:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return c},default:function(){return i}});var l=s(85893),a=s(13252),n=s(87990),r=s(5347),c=!0;function i(){return(0,l.jsx)(n.Z,{children:(0,l.jsx)(r.Z,{className:"p-0"})})}i.Layout=a.Z}},function(e){e.O(0,[3365,4321,8764,6154,5518,5112,3252,9774,2888,179],function(){return e(e.s=29089)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.