PageSourceSearch

https://www.cloudtailor.com/_next/static/chunks/pages/address/[id]-723c890b3204093a.js

js cloudtailor.com collected 2026-10-08 01:58:19 UTC 13,898 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4073],{88613:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/address/[id]",function(){return r(27389)}])},84370:function(e,t,r){"use strict";var s=r(64836);t.Z=void 0;var n=s(r(33651)),a=r(85893);t.Z=(0,n.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")},52358:function(e,t,r){"use strict";var s=r(64836);t.Z=void 0;var n=s(r(33651)),a=r(85893);t.Z=(0,n.default)((0,a.jsx)("path",{d:"M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2m6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2z"}),"ShoppingBagOutlined")},45002:function(e,t,r){"use strict";var s=r(30139),n=r(85893);t.Z=(0,s.Z)((0,n.jsx)("path",{d:"M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2M5 8V7h2v3.82C5.84 10.4 5 9.3 5 8m7 6c-1.65 0-3-1.35-3-3V5h6v6c0 1.65-1.35 3-3 3m7-6c0 1.3-.84 2.4-2 2.82V7h2z"}),"EmojiEventsOutlined")},21367:function(e,t,r){"use strict";var s=r(30139),n=r(85893);t.Z=(0,s.Z)((0,n.jsx)("path",{d:"M1 21h12v2H1zM5.24 8.07l2.83-2.83 14.14 14.14-2.83 2.83zM12.32 1l5.66 5.66-2.83 2.83-5.66-5.66zM3.83 9.48l5.66 5.66-2.83 2.83L1 12.31z"}),"GavelOutlined")},41791:function(e,t,r){"use strict";var s=r(30139),n=r(85893);t.Z=(0,s.Z)((0,n.jsx)("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutline")},19357:function(e,t,r){"use strict";var s=r(30139),n=r(85893);t.Z=(0,s.Z)((0,n.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"Place")},49891:function(e,t,r){"use strict";var s=r(30139),n=r(85893);t.Z=(0,s.Z)((0,n.jsx)("path",{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14M12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2"}),"PlaceOutlined")},48447:function(e,t,r){"use strict";var s=r(30139),n=r(85893);t.Z=(0,s.Z)((0,n.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm7 10c0 1.85-.51 3.65-1.38 5.21l-1.45-1.45c1.29-1.94 1.07-4.58-.64-6.29-1.95-1.95-5.12-1.95-7.07 0-1.95 1.95-1.95 5.12 0 7.07 1.71 1.71 4.35 1.92 6.29.64l1.72 1.72c-1.19 1.42-2.73 2.51-4.47 3.04-4.02-1.25-7-5.42-7-9.94V6.3l7-3.11 7 3.11zm-7 4c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3"}),"PolicyOutlined")},64247:function(e,t,r){"use strict";var s=r(30139),n=r(85893);t.Z=(0,s.Z)((0,n.jsx)("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"SettingsOutlined")},27389:function(e,t,r){"use strict";r.r(t);var s=r(85893),n=r(41664),a=r.n(n),i=r(37257),l=r(16310),c=r(19357),o=r(84677),d=r(60990),u=r(68573),h=r(26541),p=r(72093),_=r(97724),m=r(98352),x=r(82034),Z=r(31920),y=r(49727),f=r(60007),v=r(73359),g=r(50319),j=r(67294),C=r(11163),P=r(66003),S=r(20377),b=r(93646);t.default=e=>{let{address:t}=e,r=(0,C.useRouter)(),{id:n}=r.query,{enqueueSnackbar:z}=(0,S.Ds)(),[w,{loading:M,data:k,error:q,refetch:T}]=(0,v.t)(P.ts),[E,A]=(0,g.D)(f.AU),[H,O]=(0,g.D)(f.BO),[V,B]=(0,j.use
1State)(null),[N,I]=(0,j.useState)({tag:"",street_address_1:"",street_address_2:"",city:"",country_area:"",city_area:"",postal_code:"",country:"",phone:""}),W=l.Ry().shape({tag:l.Z_(),street_address_1:l.Z_().required("Address Line1 is required"),street_address_2:l.Z_().required("Address Line2 is required"),city:l.Z_().required("City is required"),country_area:l.Z_().required("Country Area is required"),city_area:l.Z_().required("State is required"),postal_code:l.Z_().required("Zip/Postal Code is required"),country:l.Z_().required("Country is required"),phone:l.Z_()}),L=async e=>{try{var t,s;localStorage.getItem("user_id"),e.country=V?V.code:"";let a={id:Number(n)},i={tag:e.tag,street_address_1:e.street_address_1,street_address_2:e.street_address_2,city:e.city,country_area:e.country_area,city_area:e.city_area,postal_code:e.postal_code,country:V?V.code:"",phone:e.phone},l=await E({variables:{data:i,pk_columns:a}});(null==l?void 0:null===(s=l.data)||void 0===s?void 0:null===(t=s.update_account_address_by_pk)||void 0===t?void 0:t.id)&&(z("Address Updated",{variant:"success"}),r.push("/address"))}catch(e){console.error("Mutation error:",e)}};(0,j.useEffect)(()=>{let e=localStorage.getItem("user_id");e&&n&&w({variables:{userId:e}})},[n,w]);let R=e=>{I({tag:e.tag||"",street_address_1:e.street_address_1||"",street_address_2:e.street_address_2||"",city:e.city||"",country_area:e.country_area||"",city_area:e.city_area||"",postal_code:e.postal_code||"",country:e.country||"",phone:""}),B(y.Z.find(t=>t.code===e.country))};(0,j.useEffect)(()=>{if(k&&n){let e=k.account_user_by_pk.account_user_addresses.find(e=>e.account_address.id===Number(n));e&&R(e.account_address)}},[k,n]);let D=(0,s.jsx)(o.Z,{href:"/address",LinkComponent:a(),variant:"contained",size:"large",color:"dark",sx:{fontSize:"0.7rem",fontWeight:500,letterSpacing:.5},children:"Back to Address"});return(0,s.jsxs)(x.Z,{children:[(0,s.jsx)(b.Z,{title:"Orders",description:""}),(0,s.jsx)(m.Z,{icon:c.Z,button:D,title:"Edit Address",navigation:(0,s.jsx)(Z.Z,{})}),(0,s.jsx)(_.Z,{children:(0,s.jsx)(i.J9,{enableReinitialize:!0,onSubmit:L,initialValues:N,validationSchema:W,children:e=>{let{values:t,errors:r,touched:n,handleChange:a,handleBlur:i,handleSubmit:l}=e;return(0,s.jsxs)("form",{onSubmit:l,children:[(0,s.jsx)(d.Z,{mb:4,children:(0,s.jsxs)(u.ZP,{container:!0,spacing:3,children:[(0,s.jsx)(u.ZP,{item:!0,md:12,xs:12,children:(0,s.jsx)(h.Z,{fullWidth:!0,name:"street_address_1",onBlur:i,placeholder:"Address Line1",value:t.street_address_1,onChange:a,error:!!n.street_address_1&&!!r.street_address_1,helperText:n.street_address_1&&r.street_address_1})}),(0,s.jsx)(u.ZP,{item:!0,md:12,xs:12,children:(0,s.jsx)(h.Z,{fullWidth:!0,name:"street_address_2",onBlur:i,placeholder:"Address Line2",value:t.street_address_2,onChange:a,error:!!n.street_address_2&&!!r.street_address_2,helperText:n.street_address_2&&r.street_address_2})}),(0,s.jsx)(u.ZP,{item:!0,md:6,xs:12,children:(0,s.jsx)(h.Z,{fullWidth:!0,placeholder:"City",name:"city",onBlur:i,value:t.city,onChange:a,error:!!n.city&&!!r.city,helperText:n.city&&r.city})}),(0,s.jsx)(u.ZP,{item:!0,md:6,xs:12,children:(0,s.jsx)(h.Z,{fullWidth:!0,label:"Zip/Postal Code",name:"postal_code",onBlur:i,value:t.postal_code,onChange:a,error:!!n.postal_code&&!!r.postal_code,helperText:n.postal_code&&r.postal_code})}),(0,s.jsx)(u.ZP,{item:!0,md:6,xs:12,children:(0,s.jsx)(h.Z,{fullWidth:!0,placeholder:"City Area",name:"city_area",onBlur:i,value:t.city_area,onChange:a,error:!!n.city_area&&!!r.city_area,helperText:n.city_area&&r.city_area})}),(0,s.jsx)(u.ZP,{item:!0,md:6,xs:12,children:(0,s.jsx)(h.Z,{fullWidth:!0,placeholder:"Country Area",name:"country_area",onBlur:i,value:t.country_area,onChange:a,error:!!n.country_area&&!!r.country_area,helperText:n.country_area&&r.country_area})}),(0,s.jsx)(u.ZP,{item:!0,md:6,xs:12,children:(0,s.jsx)(p.Z,{fullWidth:!0,sx:{mb:2},options:y.Z,getOptionLabel:e=>e.label,onChange:(e,t)=>
1{B(t)},renderInput:e=>(0,s.jsx)(h.Z,{...e,size:"small",variant:"outlined",placeholder:"Select Country",name:"country",value:V?V.label:"",onChange:a,error:!!n.country&&!!r.country,helperText:n.country&&r.country})})}),(0,s.jsx)(u.ZP,{item:!0,md:6,xs:12,children:(0,s.jsx)(h.Z,{fullWidth:!0,name:"tag",placeholder:"Tag",onBlur:i,value:t.tag,onChange:a,error:!!n.tag&&!!r.tag,helperText:n.tag&&r.tag})})]})}),(0,s.jsx)(o.Z,{type:"submit",variant:"contained",size:"large",color:"dark",sx:{fontSize:"0.7rem",fontWeight:500,letterSpacing:.5},fullWidth:!0,children:"Save Changes"})]})}})})]})}},97724:function(e,t,r){"use strict";var s=r(77527),n=r(60762);let a=(0,s.ZP)(n.Z)({position:"relative",padding:"2.5rem 1.75rem","@media only screen and (max-width: 678px)":{padding:"1rem"}});t.Z=a},53471:function(e,t,r){"use strict";var s=r(85893),n=r(67294),a=r(86010),i=r(77527),l=r(60990),c=r(37958),o=r(95307);let d=(0,i.ZP)(l.Z)({"& .handle":{cursor:"pointer"}}),u=e=>{var t;let{position:r,open:i,width:l="100%",handle:u,children:h,toggleSidenav:p}=e,[_,m]=(0,n.useState)(i);return(0,n.useEffect)(()=>m(i),[i]),(0,s.jsxs)(d,{children:[(0,s.jsx)(c.ZP,{anchor:r,open:_,onClose:()=>{p&&p(),m(!1)},SlideProps:{style:{width:l}},sx:{zIndex:15001},children:(0,s.jsx)(o.Z,{autoHide:!1,children:h})}),u&&(0,n.cloneElement)(u,{onClick:p||(()=>m(!_)),className:(0,a.Z)(null===(t=u.props)||void 0===t?void 0:t.className,"handle")})]})};u.defaultProps={width:1e4,position:"left",open:!1},t.Z=u},98352:function(e,t,r){"use strict";var s=r(85893),n=r(84370),a=r(77527),i=r(60990),l=r(53471),c=r(40913),o=r(68067),d=r(71191);let u=(0,a.ZP)(i.Z)(e=>{let{theme:t}=e;return{display:"flex",marginTop:t.spacing(-2),marginBottom:t.spacing(3),"& .headerHold":{flexGrow:1,alignItems:"center",justifyContent:"space-between"},[t.breakpoints.up("md")]:{"& .sidenav":{display:"none"}},[t.breakpoints.down("md")]:{flexDirection:"column"}}});t.Z=e=>{let{title:t,button:r,navigation:a,...h}=e,p=1025>(0,d.Z)();return(0,s.jsxs)(u,{children:[(0,s.jsxs)(o.hs,{mt:2,className:"headerHold",children:[(0,s.jsxs)(o.hs,{alignItems:"center",children:[h.icon&&(0,s.jsx)(h.icon,{color:"primary"}),(0,s.jsx)(c.H2,{ml:1.5,my:"0px",lineHeight:"1",whiteSpace:"pre",children:t})]}),(0,s.jsx)(i.Z,{className:"sidenav",children:(0,s.jsx)(l.Z,{position:"left",handle:(0,s.jsx)(n.Z,{fontSize:"small"}),children:a})}),!p&&r]}),p&&!!r&&(0,s.jsx)(i.Z,{mt:2,children:r})]})}},31920:function(e,t,r){"use strict";var s=r(85893),n=r(67294),a=r(11163),i=r(77527),l=r(60762),c=r(96788),o=r(45002),d=r(41791),u=r(49891),h=r(64247),p=r(21367),_=r(48447),m=r(52358),x=r(68067),Z=r(94735);let y=(0,i.ZP)(l.Z)(e=>{let{theme:t}=e;return{paddingBottom:"1.5rem",[t.breakpoints.down("md")]:{boxShadow:"none",overflowY:"auto",height:"calc(100vh - 64px)"}}}),f=(0,i.ZP)(e=>{let{children:t,isCurrentPath:r,...n}=e;return(0,s.jsx)(Z.Z,{...n,children:t})})(e=>{let{theme:t,isCurrentPath:r}=e;return{display:"flex",alignItems:"center",borderLeft:"4px solid",paddingLeft:"1.5rem",paddingRight:"1.5rem",marginBottom:"1.25rem",justifyContent:"space-between",borderColor:r?t.palette.primary.main:"transparent","& .nav-icon":{color:r?t.palette.primary.main:t.palette.grey[600]},"&:hover":{borderColor:t.palette.primary.main,"& .nav-icon":{color:t.palette.primary.main}}}}),v=[{title:"DASHBOARD",list:[{href:"/enquiry",title:"Enquiry",icon:m.Z,count:""},{href:"/orders",title:"Orders",icon:m.Z,count:""},{href:"/refer-and-earn",title:"Refer and Earn",icon:m.Z,count:""},{href:"/my-rewards",title:"Rewards",icon:o.Z,count:""}]},{title:"ACCOUNT SETTINGS",list:[{href:"/profile",title:"My Profile",icon:d.Z,count:null},{href:"/address",title:"Addresses",icon:u.Z,count:""},{href:"/address",title:"Settings",icon:h.Z,count:""}]},{title:"Terms and Policies",list:[{href:"/terms-of-use",title:"Terms of Use",icon:p.Z,count:null},{href:"/privacy-policy",title:"Privacy Policy",icon:_.Z,count:null}]}];t.Z=()=>{let{pathname:e}=(0,a.useRouter)();return(0,s.jsx)(y,{children:v.map(t=>(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(c.Z,{p:"26px 30px 1rem",color:"grey.600",fontSize:"12px",children:t.title}),t.list.map(t=>(0,s.jsxs)(f,{href:t.href,isCurrentPath:e.includes(t.href),children:[(0,s.jsxs)(x.hs,{alignItems:"center",gap:1,children:[(0,s.jsx)(t.icon,{color:"inherit",fontSize:"small",className:"nav-icon"}),(0,s.jsx)("span",{children:t.title})]}),(0,s.jsx)("span",{children:t.count})]},t.title))]},t.title))})}},82034:function(e,t,r){"use strict";var s=r(85893),n=r(67294),a=r(11032),i=r(68573),l=r(31920),c=r(29146),o=r(11163);t.Z=e=>{let{children:t}
1=e,[r,d]=(0,n.useState)(!1),u=(0,o.useRouter)();return(0,n.useEffect)(()=>{(()=>{let e=localStorage.getItem("id_token"),t=localStorage.getItem("user_id");e&&t?d(!0):u.push("/login?callback=".concat(window.location.href))})()},[]),(0,s.jsx)(c.Z,{children:(0,s.jsx)(a.Z,{sx:{my:"2rem"},children:(0,s.jsxs)(i.ZP,{container:!0,spacing:3,children:[(0,s.jsx)(i.ZP,{item:!0,lg:3,xs:12,sx:{display:{xs:"none",sm:"none",md:"block"}},children:(0,s.jsx)(l.Z,{})}),(0,s.jsx)(i.ZP,{item:!0,lg:9,xs:12,children:t})]})})})}}},function(e){e.O(0,[3812,5044,6388,8807,6896,6310,7257,1873,5527,2093,9146,3727,2888,9774,179],function(){return e(e.s=88613)}),_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.