1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[38652],{34963:(e,l,t)=>{t.d(l,{A:()=>v});var a=t(95155),s=t(53735),i=t(69393),n=t(83726),r=t(9561),d=t(89142),o=t(4617),u=t.n(o);let c=(0,d.Ay)("div",{name:"MuiCustomInputHorizontal",slot:"root"})(e=>{let{theme:l}=e;return{blockSize:"100%",display:"flex",gap:l.spacing(1),borderRadius:"var(--mui-shape-borderRadius)",cursor:"pointer",position:"relative",alignItems:"flex-start",border:"1px solid var(--mui-palette-customColors-inputBorder)",padding:l.spacing(4),color:"var(--mui-palette-text-primary)",transition:l.transitions.create(["border-color"],{duration:l.transitions.duration.shorter}),"&:hover":{borderColor:"var(--mui-palette-action-active)"},"&.active":{borderColor:"var(--mui-palette-primary-main)","& i, & svg":{color:"var(--mui-palette-primary-main) !important"}}}}),m=(0,d.Ay)(r.default,{name:"MuiCustomInputHorizontal",slot:"title"})(e=>{let{theme:l}=e;return{fontWeight:l.typography.fontWeightMedium,color:"var(--mui-palette-text-primary) !important"}}),p=(0,d.Ay)(r.default,{name:"MuiCustomInputHorizontal",slot:"meta"})(e=>{let{theme:l}=e;return{...l.typography.body2,color:"var(--mui-palette-text-disabled) !important"}}),f=(0,d.Ay)(r.default,{name:"MuiCustomInputHorizontal",slot:"content"})(e=>{let{theme:l}=e;return{...l.typography.body2}}),x=(0,d.Ay)(i.A,{name:"MuiCustomInputHorizontal",slot:"input"})(e=>{let{theme:l}=e;return{marginBlockStart:l.spacing(-.25),marginInlineStart:l.spacing(-.25)}}),h=(0,d.Ay)(n.default,{name:"MuiCustomInputHorizontal",slot:"input"})(e=>{let{theme:l}=e;return{marginBlockStart:l.spacing(-.25),marginInlineStart:l.spacing(-.25)}}),v=e=>{let{type:l,data:t,name:i,selected:n,gridProps:r,handleChange:d,color:o="primary"}=e,{meta:v,title:g,value:j,content:y}=t;return t?(0,a.jsx)(s.default,{...r,children:(0,a.jsxs)(c,{onClick:()=>d(j),className:u()({active:"radio"===l?n===j:n.includes(j)}),children:["radio"===l?(0,a.jsx)(x,{name:i,color:o,value:j,onChange:d,checked:n===j}):(0,a.jsx)(h,{color:o,name:"".concat(i,"-").concat(j),checked:n.includes(j),onChange:()=>d(j)}),v&&g&&y?(0,a.jsxs)("div",{className:"flex flex-col bs-full is-full gap-1.5",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between is-full mbs-1.5 gap-1.5",children:["string"==typeof g?(0,a.jsx)(m,{children:g}):g,"string"==typeof v?(0,a.jsx)(p,{children:v}):v]}),"string"==typeof y?(0,a.jsx)(f,{children:y}):y]}):v&&g&&!y?(0,a.jsxs)("div",{className:"flex items-start justify-between is-full mbs-1.5 gap-1.5",children:["string"==typeof g?(0,a.jsx)(m,{children:g}):g,"string"==typeof v?(0,a.jsx)(p,{children:v}):v]}):!v&&g&&y?(0,a.jsxs)("div",{className:"flex flex-col bs-full gap-1.5 mbs-1.5",children:["string"==typeof g?(0,a.jsx)(m,{children:g}):g,"string"==typeof y?(0,a.jsx)(f,{children:y}):y]}):v||g||!y?v||!g||y?null:"string"==typeof g?(0,a.jsx)(m,{className:"mbs-1.5",children:g}):g:"string"==typeof y?(0,a.jsx)(f,{className:"mbs-1.5",children:y}):y]})}):null}},66646:(e,l,t)=>{t.r(l),t.d(l,{default:()=>i});var a=t(95155),s=t(12115);let i=e=>{let{element:l,dialog:t,elementProps:i,dialogProps:n}
1=e,[r,d]=(0,s.useState)(!1),{onClick:o,...u}=i;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l,{onClick:e=>{o&&o(e),d(!0)},...u}),(0,a.jsx)(t,{open:r,setOpen:d,...n,closeAfterTransition:!1})]})}},88245:(e,l,t)=>{t.r(l),t.d(l,{default:()=>z});var a=t(95155),s=t(12115),i=t(78416),n=t(36417),r=t(27753),d=t(26214),o=t(2295),u=t(894),c=t(9561),m=t(53735),p=t(39905),f=t(22678),x=t(43038),h=t(90847),v=t(91888),g=t(99489),j=t(60615),y=t(89142),b=t(34963);let C=["Select Country","France","Russia","China","UK","US"],N={firstName:"",lastName:"",country:"",address1:"",address2:"",landmark:"",city:"",state:"",zipCode:""},k=(0,y.Ay)(c.default,{name:"MuiCustomInputVertical",slot:"title"})(e=>{let{theme:l}=e;return{fontWeight:l.typography.fontWeightMedium,color:"var(--mui-palette-text-primary) !important"}}),A=[{title:(0,a.jsxs)(k,{component:"div",className:"flex items-center gap-1",children:[(0,a.jsx)("i",{className:"ri-home-smile-2-line text-xl"}),(0,a.jsx)(c.default,{color:"text.primary",className:"font-medium",children:"Home"})]}),content:"Delivery Time (7am - 9pm)",value:"home",isSelected:!0},{title:(0,a.jsxs)(k,{component:"div",className:"flex items-center gap-1",children:[(0,a.jsx)("i",{className:"ri-building-line text-xl"}),(0,a.jsx)(c.default,{color:"text.primary",className:"font-medium",children:"Office"})]}),content:"Delivery Time (10am - 6pm)",value:"office"}],z=e=>{var l,t;let{open:y,setOpen:k,data:z}=e,S=(null==A?void 0:null===(l=A.find(e=>
1e.isSelected))||void 0===l?void 0:l.value)||"",[W,M]=(0,s.useState)(S),[I,H]=(0,s.useState)(N),w=e=>{"string"==typeof e?M(e):M(e.target.value)};return(0,s.useEffect)(()=>{H(null!=z?z:N)},[y]),(0,a.jsxs)(i.A,{open:y,maxWidth:"md",scroll:"body",onClose:()=>{k(!1),M(S)},closeAfterTransition:!1,children:[(0,a.jsxs)(n.A,{variant:"h4",className:"flex gap-2 flex-col text-center sm:pbs-16 sm:pbe-6 sm:pli-16",children:[z?"Edit Address":"Add New Address",(0,a.jsx)(c.default,{component:"span",className:"flex flex-col text-center",children:z?"Edit Address for future billing":"Add address for billing address"})]}),(0,a.jsxs)("form",{onSubmit:e=>e.preventDefault(),children:[(0,a.jsxs)(r.A,{className:"pbs-0 sm:pbe-6 sm:pli-16",children:[(0,a.jsx)(u.default,{onClick:()=>k(!1),className:"absolute block-start-4 inline-end-4",children:(0,a.jsx)("i",{className:"ri-close-line text-textSecondary"})}),(0,a.jsxs)(m.default,{container:!0,spacing:5,children:[A.map((e,l)=>(0,a.jsx)(m.default,{size:{xs:12,sm:6},children:(0,a.jsx)(b.A,{type:"radio",name:"addressType",selected:W,data:e,handleChange:w},l)},l)),(0,a.jsx)(m.default,{size:{xs:12,sm:6},children:(0,a.jsx)(p.default,{fullWidth:!0,label:"First Name",name:"firstName",variant:"outlined",placeholder:"John",value:null==I?void 0:I.firstName,onChange:e=>H({...I,firstName:e.target.value})})}),(0,a.jsx)(m.default,{size:{xs:12,sm:6},children:(0,a.jsx)(p.default,{fullWidth:!0,label:"Last Name",name:"lastName",variant:"outlined",placeholder:"Doe",value:null==I?void 0:I.lastName,onChange:e=>H({...I,lastName:e.target.value})})}),(0,a.jsx)(m.default,{size:{xs:12},children:(0,a.jsxs)(f.default,{fullWidth:!0,children:[(0,a.jsx)(x.default,{children:"Country"}),(0,a.jsx)(h.default,{label:"Country",name:"country",variant:"outlined",value:(null==I?void 0:null===(t=I.country)||void 0===t?void 0:t.toLowerCase().replace(/\s+/g,"-"))||"",onChange:e=>H({...I,country:e.target.value}),children:C.map((e,l)=>(0,a.jsx)(v.default,{value:e.toLowerCase().replace(/\s+/g,"-"),children:e},l))})]})}),(0,a.jsx)(m.default,{size:{xs:12},children:(0,a.jsx)(p.default,{fullWidth:!0,label:"Address Line 1",name:"address1",variant:"outlined",placeholder:"12, Business Park",value:null==I?void 0:I.address1,onChange:e=>H({...I,address1:e.target.value})})}),(0,a.jsx)(m.default,{size:{xs:12},children:(0,a.jsx)(p.default,{fullWidth:!0,label:"Address Line 2",name:"address1",variant:"outlined",placeholder:"Mall Road",value:null==I?void 0:I.address2,onChange:e=>H({...I,address2:e.target.value})})}),(0,a.jsx)(m.default,{size:{xs:12,sm:6},children:(0,a.jsx)(p.default,{fullWidth:!0,label:"Landmark",name:"landmark",variant:"outlined",placeholder:"Nr. Hard Rock Cafe",value:null==I?void 0:I.landmark,onChange:e=>H({...I,landmark:e.target.value})})}),(0,a.jsx)(m.default,{size:{xs:12,sm:6},children:(0,a.jsx)(p.default,{fullWidth:!0,label:"City",name:"city",variant:"outlined",placeholder:"Los Angeles",value:null==I?void 0:I.city,onChange:e=>H({...I,city:e.target.value})})}),(0,a.jsx)(m.default,{size:{xs:12,sm:6},children:(0,a.jsx)(p.default,{fullWidth:!0,label:"State",name:"state",variant:"outlined",placeholder:"California",value:null==I?void 0:I.state,onChange:e=>H({...I,state:e.target.value})})}),(0,a.jsx)(m.default,{size:{xs:12,sm:6},children:(0,a.jsx)(p.default,{fullWidth:!0,label:"Zip Code",type:"number",name:"zipCode",variant:"outlined",placeholder:"99950",value:null==I?void 0:I.zipCode,onChange:e=>H({...I,zipCode:e.target.value})})}),(0,a.jsx)(m.default,{size:{xs:12},children:(0,a.jsx)(j.default,{control:(0,a.jsx)(g.default,{defaultChecked:!0}),label:"Make this default shipping address"})})]})]}),(0,a.jsxs)(d.A,{className:"justify-center pbs-0 sm:pbe-16 sm:pli-16",children:[(0,a.jsx)(o.default,{variant:"contained",onClick:()=>k(!1),type:"submit",children:z?"Update":"Submit"}),(0,a.jsx)(o.default,{variant:"outlined",color:"secondary",onClick:()=>{k(!1),M(S)},type:"reset",children:"Cancel"})]})]})]})}}}]);
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.