1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2089],{1124:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/booking/my-account",function(){return o(40982)}])},62523:function(e,t,o){"use strict";o.d(t,{Z:function(){return y}});var n=o(71131),a=o(45929),i=o(75271),r=o(4814),s=o(94538),l=o(78808),c=o(28715),d=o(85268),u=o(19096),m=o(15301),p=o(79105);function h(e){return(0,p.ZP)("MuiAppBar",e)}(0,m.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var g=o(52676);const f=["className","color","enableColorOnDark","position"],x=(e,t)=>e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t,v=(0,l.ZP)(u.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t["position".concat((0,d.Z)(o.position))],t["color".concat((0,d.Z)(o.color))]]}})((e=>{let{theme:t,ownerState:o}=e;const n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,a.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===o.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===o.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===o.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===o.position&&{position:"static"},"relative"===o.position&&{position:"relative"},!t.vars&&(0,a.Z)({},"default"===o.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},o.color&&"default"!==o.color&&"inherit"!==o.color&&"transparent"!==o.color&&{backgroundColor:t.palette[o.color].main,color:t.palette[o.color].contrastText},"inherit"===o.color&&{color:"inherit"},"dark"===t.palette.mode&&!o.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===o.color&&(0,a.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,a.Z)({},"default"===o.color&&{"--AppBar-background":o.enableColorOnDark?t.vars.palette.AppBar.defaultBg:x(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":o.enableColorOnDark?t.vars.palette.text.primary:x(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},o.color&&!o.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":o.enableColorOnDark?t.vars.palette[o.
1color].main:x(t.vars.palette.AppBar.darkBg,t.vars.palette[o.color].main),"--AppBar-color":o.enableColorOnDark?t.vars.palette[o.color].contrastText:x(t.vars.palette.AppBar.darkColor,t.vars.palette[o.color].contrastText)},!["inherit","transparent"].includes(o.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===o.color?"inherit":"var(--AppBar-color)"},"transparent"===o.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}));var y=i.forwardRef((function(e,t){const o=(0,c.i)({props:e,name:"MuiAppBar"}),{className:i,color:l="primary",enableColorOnDark:u=!1,position:m="fixed"}=o,p=(0,n.Z)(o,f),x=(0,a.Z)({},o,{color:l,position:m,enableColorOnDark:u}),y=(e=>{const{color:t,position:o,classes:n}=e,a={root:["root","color".concat((0,d.Z)(t)),"position".concat((0,d.Z)(o))]};return(0,s.Z)(a,h,n)})(x);return(0,g.jsx)(v,(0,a.Z)({square:!0,component:"header",ownerState:x,elevation:4,className:(0,r.Z)(y.root,i,"fixed"===m&&"mui-fixed"),ref:t},p))}))},31864:function(e,t,o){"use strict";o.d(t,{Z:function(){return f}});var n=o(71131),a=o(45929),i=o(75271),r=o(4814),s=o(94538),l=o(28715),c=o(78808),d=o(15301),u=o(79105);function m(e){return(0,u.ZP)("MuiToolbar",e)}(0,d.Z)("MuiToolbar",["root","gutters","regular","dense"]);var p=o(52676);const h=["className","component","disableGutters","variant"],g=(0,c.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableGutters&&t.gutters,t[o.variant]]}})((e=>{let{theme:t,ownerState:o}=e;return(0,a.Z)({position:"relative",display:"flex",alignItems:"center"},!o.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===o.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:o}=e;return"regular"===o.variant&&t.mixins.toolbar}));var f=i.forwardRef((function(e,t){const o=(0,l.i)({props:e,name:"MuiToolbar"}),{className:i,component:c="div",disableGutters:d=!1,variant:u="regular"}=o,f=(0,n.Z)(o,h),x=(0,a.Z)({},o,{component:c,disableGutters:d,variant:u}),v=(e=>{const{classes:t,disableGutters:o,variant:n}=e,a={root:["root",!o&&"gutters",n]};return(0,s.Z)(a,m,t)})(x);return(0,p.jsx)(g,(0,a.Z)({as:c,className:(0,r.Z)(v.root,i),ref:t,ownerState:x},f))}))},63939:function(e,t,o){"use strict";o.d(t,{Z:function(){return c}});var n=o(45929),a=o(71131),i=o(75271);const r=["getTrigger","target"];function s(e,t){const{disableHysteresis:o=!1,threshold:n=100,target:a}=t,i=e.current;return a&&(e.current=void 0!==a.pageYOffset?a.pageYOffset:a.scrollTop),!(!o&&void 0!==i&&e.current<i)&&e.current>n}const l=window;function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getTrigger:t=s,target:o=l}=e,c=(0,a.Z)(e,r),d=i.useRef(),[u,m]=i.useState((()=>t(d,c)));return i.useEffect((()=>{const e=()=>{m(t(d,(0,n.Z)({target:o},c)))};return e(),o.addEventListener("scroll",e,{passive:!0}),()=>{o.removeEventListener("scroll",e,{passive:!0})}}),[o,t,JSON.stringify(c)]),u}},22291:function(e,t,o){"use strict";o.d(t,{Z:function(){return m}});var n=o(52676),a=o(73952),i=o(33220),r=o(31936),s=o.n(r),l={src:"/_next/static/media/left-background.d2c9b5bb.png",height:354,width:610,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAV1BMVEWopKCtq67AvsfCvLeXlpnQzs6XmJiqpJ+urLmFiITY2uC0sa+WlaqamsGznZ6nqNx9ftRwcrzDwMi1trG+r6D////GuaXd3OjRztbr6/mnqaGvn5nd2/+kO6hSAAAAEnRSTlPdyuThkejQ6tbn4d3c5N7uwJoXj6w2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAANUlEQVQImWMQEGQU4mBhZGGQ4WcS52UV4mGQ5mMQY+eUYmMQZmYQYecUZmMQ5eKWYGKV5AAAKiAB5o8Gw9oAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5},c={src:"/_next/static/media/stey-qr-code.695111ab.png",height:400,width:400,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEW6urpsbGyenp59fn92dnampqaqqqpcXFyVlZWNjY3Pz8/h37D9AAAACXBIWXMAABcRAAAXEQHKJvM/AAAANUlEQVQImQXBgQHAQAgCsUNE/e4/cBOYmUpBtVfdAWmv3kCu7Q3js+WC94gcSt1aFYSP4/sBIkcA856eRWoAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},d={src:"/_next/static/media/steycn-qr-code.2c969b79.png",height:400,width:400,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJFBMVEVra2t5eXm9vb3c3NyHh4e3t7fk5ORXV1fQ0NDHx8ednZ1iYmIeUt4QAAAACXBIWXMAABcRAAAXEQHKJvM/AAAAOElEQVQImRXJQRLAMAgDsTWGAMn//9uprsI1W1uH6JtPHThBeZcS4aTwlY3qL3UzRCd6b3A4PHM+KPUBGeUVLHgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},u=o(73144);function m(e){let{isStatic:t,isContained:o=!1}=e;const r=function(){const e=(0,u.B8)().REACT_APP_HOST||"";return e.includes("stey.com")&&!e.includes("steycn")?c:d}();return(0,n.jsxs)(a.Z,{component:"section","aria-label":"Get The Stey App",sx:{width:"100%",overflow:"hidden",backgroundColor:{xs:o?"#E0EAE6":"#F4F6F8",lg:"#E0EAE6"}},children:[(0,n.jsxs)(a.Z,{sx:{display:{xs:"flex",lg:"none"},flexDirection:"column",alignItems:"center",width:"100%",maxWidth:o?"1152px":"none",margin:o?"0 auto":0,paddingBottom:"32px",backgroundColor:o?"#E0EAE6":"#F4F6F8"},children:[(0,n.jsx)(a.Z,{sx:{position:"relative",display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",height:"240px",overflow:"hidden",backgroundColor:"#E0EAE6"},children:(0,n.jsx)(s(),{src:l,alt:"",width:324,height:190,priority:!1,style:{width:"324px",height:"190px",maxWidth:"86.4vw",objectFit:"contain"}})}),(0,n.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"20px",width:"100%",paddingTop:"32px"},children:[(0,n.jsx)(s(),{src:r,alt:"Stey app QR code",width:160,height:160,qual
1ity:100,style:{borderRadius:"8px",width:"160px",height:"160px"}}),(0,n.jsx)(i.Z,{variant:"h3",sx:{color:"#1C252E",fontSize:"24px",fontWeight:700,lineHeight:"36px",textAlign:"center"},children:"Get The Stey App"})]})]}),(0,n.jsx)(a.Z,{sx:{display:{xs:"none",lg:"flex"},alignItems:"center",justifyContent:"center",width:"100%",maxWidth:o?"1152px":"none",height:"400px",margin:o?"0 auto":0,backgroundColor:"#E0EAE6"},children:(0,n.jsxs)(a.Z,{sx:{display:"grid",gridTemplateColumns:o?"minmax(720px, 1fr) minmax(320px, 432px)":"minmax(720px, 1fr) minmax(320px, 440px)",alignItems:"center",width:o&&t?"80%":"100%",maxWidth:o?"none":"1200px",height:"100%"},children:[(0,n.jsx)(a.Z,{sx:{position:"relative",display:"flex",justifyContent:"center",alignItems:"flex-end",height:"100%",overflow:"hidden"},children:(0,n.jsx)(s(),{src:l,alt:"",width:486,height:285,priority:!1,style:{width:"614px",height:"360px",objectFit:"contain"}})}),(0,n.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"20px",paddingRight:"48px"},children:[(0,n.jsx)(s(),{src:r,alt:"Stey app QR code",width:110,height:110,quality:100,style:{borderRadius:"8px",width:"110px",height:"110px"}}),(0,n.jsx)(i.Z,{variant:"h3",sx:{color:"#1C252E",fontSize:"32px",fontWeight:700,lineHeight:"48px",textAlign:"center"},children:"Get The Stey App"})]})]})})]})}},38836:function(e,t,o){"use strict";var n=o(52676),a=o(73952),i=o(8471),r=o(76715),s=o(33220),l=o(35364),c=o(31936),d=o.n(c),u=o(6894),m=o(12667),p=o(38645),h=o(20063),g=o(28372),f=o(43728),x=o(25765),v=o(58331),y=o(73144),b=o(7743),A=o(20672),_=o(53796);const j="var(--brand-primary)",C="#1C252E";t.Z=function(e){const{page:t}=e,{user:o,setUser:c,userAccount:w}=(0,g.Z)(),Z=(0,u.useRouter)(),{locale:k}=Z,M=(0,f.vf)(),{config:S}=(0,h.DO)(),B=(0,y.kt)(),{success:N}=(0,A.p)(),E=(0,b.HZ)(S.navigation.returnButtonUrl)?S.navigation.returnButtonUrl:void 0;return(0,n.jsx)(a.Z,{className:"w-full lg:min-w-[280px] lg:w-[280px]",children:(0,n.jsxs)(i.Z,{borderRadius:"16px",border:"1px solid ".concat((0,r.Fq)("#919EAB",.12)),width:"100%",children:[(0,n.jsxs)(i.Z,{p:3,spacing:3,children:[(0,n.jsx)(s.Z,{variant:"h3",sx:{wordBreak:"break-word"},children:"".concat(null===w||void 0===w?void 0:w.lastName,", ").concat(null===w||void 0===w?void 0:w.firstName)}),(0,n.jsxs)(a.Z,{display:"flex",gap:2,minWidth:0,children:[(0,n.jsxs)(i.Z,{flex:1,spacing:.5,minWidth:0,children:[(0,n.jsx)(s.Z,{color:"text.disabled",variant:"caption",children:M.formatMessage({id:"myAccount.AccountNumber",defaultMessage:"Account No."})}),(0,n.jsx)(s.Z,{variant:"subtitle2",sx:{overflowWrap:"anywhere"},children:null===w||void 0===w?void 0:w.userNumber})]}),(0,n.jsxs)(i.Z,{flex:"0 0 auto",spacing:.5,children:[(0,n.jsx)(s.Z,{color:"text.disabled",variant:"caption",children:M.formatMessage({id:"myAccount.JoinedOn",defaultMessage:"Joined On"})}),(0,n.jsx)(s.Z,{variant:"subtitle2",noWrap:!0,children:null===w||void 0===w?void 0:w.joinedOn})]})]})]}),(0,n.jsxs)(i.Z,{className:"hidden lg:block",children:[(0,n.jsx)(l.Z,{className:"display",sx:{borderStyle:"dashed",my:.5}}),(0,n.jsxs)(i.Z,{py:1,px:3,children:[(0,n.jsxs)(i.Z,{direction:"row",spacing:2,py:1.5,sx:{cursor:"pointer"},onClick:()=>{"myAccount"!==t&&(0,_.$Y)(Z,"/".concat(k,"/booking/my-account"))},children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:(0,n.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 1.25C10.7402 1.25 9.53204 1.75044 8.64124 2.64124C7.75045 3.53204 7.25 4.74022 7.25 6C7.25 7.25978 7.75045 8.46796 8.64124 9.35876C9.53204 10.2496 10.7402 10.75 12 10.75C13.2598 10.75 14.468 10.2496 15.3588 9.35876C16.2496 8.46796 16.75 7.25978 16.75 6C16.75 4.74022 16.2496 3.53204 15.3588 2.64124C14.468 1.75044 13.2598 1.25 12 1.25ZM8.75 6C8.75 5.13805 9.09241 4.3114 9.7019 3.7019C10.3114 3.09241 11.138 2.75 12 2.75C12.862 2.75 13.6886 3.09241 14.2981 3.7019C14.9076 4.3114 15.25 5.13805 15.25 6C15.25 6.86195 14.9076 7.6886 14.2981 8.2981C13.6886 8.90759 12.862 9.25 12 9.25C11.138 9.25 10.3114 8.90759 9.7019 8.2981C9.09241 7.6886 8.75 6.86195 8.75 6ZM12 12.25C9.96 12.25 8.078 12.72 6.678 13.52C5.3 14.308 4.25 15.51 4.25 17C4.25 18.49 5.3 19.692 6.678 20.48C8.078 21.28 9.961 21.75 12 21.75C14.04 21.75 15.922 21.28 17.322 20.48C18.7 19.692 19.75 18.49 19.75 17C19.75 15.51 18.7 14.308 17.322 13.52C15.922 12.72 14.039 12.25 12 12.25ZM5.75 17C5.75 16.28 6.267 15.483 7.422 14.823C8.556 14.175 10.173 13.75 12 13.75C13.827 13.75 15.444 14.175 16.578 14.823C17.733 15.483 18.25 16.281 18.25 17C18.25 17.72 17.733 18.517 16.578 19.177C15.444 19.825 13.827 20.25 12 20.25C10.173 20.25 8.556 19.825 7.422 19.177C6.267 18.517 5.75 17.72 5.75 17Z",fill:"myAccount"===t?j:C})}),(0,n.jsx)(s.Z,{color:"myAccount"===t?j:C,variant:"myAccount"===t?"subtitle2":"body2",children:M.formatMessage({id:"bookingFlow.header.MyAccount",defaultMessage:"My Account"})})]}),(0,n.jsxs)(i.Z,{direction:"row",spacing:2,py:1.5,sx:{cursor:"pointer"},onClick:()=>{"myBooking"!==t&&(0,_.$Y)(Z,"/".concat(k,"/booking/my-booking"))},children:[(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:[(0,n.jsx)("path",{d:"M18 12.75L19.434 15.5272L22.5 15.9728L20.25 18L20.8283 21L18 19.3125L15.1718 21L15.75 18L13.5 15.9728L16.65 15.5272L18 12.75Z",fill:"myBooking"===t?j:C}),(0,n.jsx)("path",{d:"M9 12H4.5V13.5H9V12Z",fill:"myBooking"===t?j:C}),(0,n.jsx)("path",{d:"M12 9H4.5V10.5H12V9Z",fill:"myBooking"===t?j:C}),(0,n.jsx)("path",{d:"M12 6H4.5V7.5H12V6Z",fill:"myBooking"===t?j:C}),(0,n.jsx)("path",{d:"M12 19.5H3V4.5H21V12H22.5V4.5C22.5 4.10218 22.342 3.72064 22.0607 3.43934C21.7794 3.15804 21.3978 3 21 3H3C2.60218 3 2.22064 3.15804 1.93934 3.43934C1.65804 3.72064 1.5 4.10218 1.5 4.5V19.5C1.5 19.8978 1.65804 20.2794 1.93934 20.5607C2.22064 20.842 2.60218 21 3 21H12V19.5Z",fill:"myBooking"===t?j:C})]}),(0,n.jsx)(s.Z,{color:"myBooking"===t?j:C,variant:"myBooking"===t?"subtitle2":"body2",children:M.formatMessage({id:"bookingFlow.header.MyBooking",defaultMessage:"My Booking"})})]})]}),(0,n.jsx)(l.Z,{sx:{borderStyle:"dashed",my:.5}}),(0,n.jsxs)(i.Z,{direction:"row",mx:3,spacing:2,py:2.5,sx:{cursor:"pointer"},onClick:()=>{const e=(0,v._9)(k);m.Z.post("".concat(B,"/api/web/auth/logout"),{data:{accessToken:null===o||void 0===o?void 0:o.token,firstName:null===o||void 0===o?void 0:o.firstName,lastName:null===o||void 0===o?void 0:o.lastName}},{headers:{...(null===o||void 0===o?void 0:o.token)&&{Authorization:"Bearer ".concat(o.token)},"Content-Type":"application/json","Accept-Language":e,"X-Stey-Browser-Type":"pc"}}).then((()=>((0,x.nJ)("token"),(0,x.nJ)("email"),(0,x.nJ)("mobile"),(0,x.nJ)("firstName"),(0,x.nJ)("lastName"),c({token:null,mobile:null,email:null,firstName:null,lastName:null}),N("Logout success!"),"myAccount"===t&&(0,_.UO)(Z,null!==E&&void 0!==E?E:(0,_.a)(Z)),!0))).catch((e=>{}))},children:[(0,n.jsx)(d(),{alt:"logout",src:p.Z,width:20,height:20}),(0,n.jsx)(s.Z,{variant:"body2",children:M.formatMessage({id:"bookingFlow.header.login.Logout",defaultMessage:"LOG OUT"})})]})]})]})})}},95417:function(e,t,o){"use strict";o.d(t,{Z:function(){return r}});var n=o(52676),a=o(75271);var i=(0,a.createContext)(null);function r(e){const{children:t}=e,[o,r]=(0,a.useState)(null),[s,l]=(0,a.useState)(null),[c,d]=(0,a.useState)(null),[u,m]=(0,a.useState)(null),[p,h]=(0,a.useState)(null);return(0,n.jsx)(i.Provider,{value:{orderId:o,userId:s,order:c,user:u,setUser:m,setOrderId:e=>{r(null!==e&&void 0!==e?e:null)},setUserId:e=>{l(null!==e&&void 0!==e?e:null)}
1,setOrder:d,loading:p,setLoading:h,refreshOrder:async(e,t)=>{h(!0),h(!1)}},children:t})}},40982:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return Ye},default:function(){return Xe}});var n,a,i,r,s,l,c,d,u,m,p,h,g,f,x,v,y,b,A,_,j,C,w,Z,k,M,S,B,N,E,R,P,T,I,W,O,z,H,L,U,F,D,V,G,Q,Y,X,q,J,K,$,ee,te,oe=o(52676),ne=o(73952),ae=o(6894),ie=o(60005),re=o(22291),se=o(57124),le=o(92916),ce=o(95417),de=o(47414),ue=o(20063),me=o(81297),pe=o(53796),he=o(8471),ge=o(33220),fe=o(58547),xe=o(22642),ve=o(75271),ye=o(28994),be=o(87017),Ae=o(13564),_e=o(32770),je=o(91154),Ce=o(29094),we=o(53074),Ze=o(22455),ke=o(99081),Me=o(31936),Se=o.n(Me),Be=o(73008),Ne=o(25995),Ee=o(84291),Re={src:"/_next/static/media/dialog-close.db041f6d.svg",height:32,width:32,blurWidth:0,blurHeight:0},Pe={src:"/_next/static/media/radio-check.f86c8f17.svg",height:25,width:25,blurWidth:0,blurHeight:0},Te={src:"/_next/static/media/radio-uncheck.b81b6af0.svg",height:25,width:25,blurWidth:0,blurHeight:0};!function(e){e.Feedback="feedback",e.GuestDamage="guest_damage",e.IotMaintenance="iot_maintenance",e.LostFound="lost_found",e.Maintenance="maintenance",e.PrepaidRefund="prepaid_refund",e.Undefined="undefined"}(n||(n={})),function(e){e.Cancelled="cancelled",e.Closed="closed",e.Completed="completed",e.Pending="pending",e.Processing="processing",e.ToSubmit="to_submit"}(a||(a={})),function(e){e.Cancelled="cancelled",e.Closed="closed",e.Completed="completed",e.Pending="pending",e.Processing="processing",e.ToSubmit="to_submit"}(i||(i={})),function(e){e.Description="description",e.IotHardware="iot_hardware",e.IotHardwareIssueType="iot_hardware_issue_type",e.IotHardwareType="iot_hardware_type",e.IotVendor="iot_vendor",e.Reservation="reservation",e.Space="space",e.Upload="upload",e.User="user"}(r||(r={})),function(e){e.Description="description",e.IotHardware="iot_hardware",e.IotHardwareIssueType="iot_hardware_issue_type",e.IotHardwareType="iot_hardware_type",e.IotVendor="iot_vendor",e.Reservation="reservation",e.Space="space",e.Upload="upload",e.User="user"}(s||(s={})),function(e){e.Cash="cash",e.Score="score"}(l||(l={})),function(e){e.Idcard="idcard",e.MainlandPermitForHk="mainland_permit_for_hk",e.MainlandPermitForMo="mainland_permit_for_mo",e.MainlandPermitForTw="mainland_permit_for_tw",e.Other="other",e.Passport="passport"}(c||(c={})),function(e){e.Adjustment="adjustment",e.ColdWater="cold_water",e.Electricity="electricity",e.HotWater="hot_water",e.OverallSocial="overall_social",e.Referral="referral",e.Rerent="rerent",e.Survey="survey"}(d||(d={})),function(e){e.Adjustment="adjustment",e.ColdWater="cold_water",e.CommentBuzz="comment_buzz",e.Electricity="electricity",e.HotWater="hot_water",e.LikeBuzz="like_buzz",e.ParticipateEvent="participate_event",e.PeopleCommentBuzz="people_comment_buzz",e.PeopleLikeBuzz="people_like_buzz",e.PeopleParticipateEvent="people_participate_event",e.PostBuzz="post_buzz",e.PostEvent="post_event",e.RerentComplete="rerent_complete",e.RerentStart="rerent_start",e.Survey="survey"}(u||(u={})),function(e){e.CashReward="cash_reward",e.Environmental="environmental",e.Governance="governance",e.Social="social"}(m||(m={})),function(e){e.Email="email",e.Mobile="mobile"}(p||(p={})),function(e){e.Email="email",e.Mobile="mobile"}(h||(h={})),function(e){e.ApartmentMode="apartment_mode",e.Bathroom="bathroom",e.Bedding="bedding",e.Bin="bin",e.Dust="dust",e.Floor="floor",e.HotelMode="hotel_mode",e.KitchenCleaning="kitchen_cleaning",e.Towel="towel"}(g||(g={})),function(e){e.ApartmentCheckOut="apartment_check_out",e.ApartmentRerentStart="apartment_rerent_start",e.ApartmentRoutine="apartment_routine",e.HotelCheckOut="hotel_check_out",e.HotelRoutine="hotel_routine",e.RoomLayoutUpdate="room_layout_update",e.RoomMakeUp="room_make_up",e.RoomReset="room_reset",e.RoomSetup="room_setup"}(f||(f={})),function(e){e.ApartmentCheckOut="apartment_check_out",e.ApartmentRerentStart="apartment_rerent_start",e.ApartmentRoutine="apartment_routine",e.HotelCheckOut="hotel_check_out",e.HotelRoutine="hotel_routine",e.RoomLayoutUpdate="room_layout_update",e.RoomMakeUp="room_make_up",e.RoomReset="room_reset",e.RoomSetup="room_setup"}(x||(x={})),function(e){e.Failed="failed",e.Success="success",e.ToInspect="to_inspect"}(v||(v={})),function(e){e.Bathroom="bathroom",e.Bed="bed",e.Floor="floor",e.HighTouch="high_touch",e.Security="security",e.Surface="surface",e.Waste="waste"}(y||(y={})),function(e){e.CheckOutService="check_out_service",e.DuringStayService="during_stay_service",e.SecondaryService="secondary_service"}(b||(b={})),function(e){e.Between1To3Month="between_1_to_3_month",e.Between4To6Month="between_4_to_6_month",e.Between7To12Month="between_7_to_12_month",e.LessThan1Month="less_than_1_month",e.MoreThan1Year="more_than_1_year"}(A||(A={})),function(e){e.Between1To3Month="between_1_to_3_month",e.Between4To6Month="between_4_to_6_month",e.Between7To12Month="between_7_to_12_month",e.LessThan1Month="less_than_1_month",e.MoreThan1Year="more_than_1_year"}(_||(_={}
1)),function(e){e.Accesscontrol="accesscontrol",e.Block="block",e.Floor="floor",e.Project="project",e.Publiczone="publiczone",e.Room="room",e.Storage="storage",e.Utility="utility"}(j||(j={})),function(e){e.Baidu="baidu",e.Facebook="facebook",e.Google="google",e.Instagram="instagram",e.Media="media",e.OfflineEvent="offline_event",e.OfflineReferral="offline_referral",e.Others="others",e.Referral="referral",e.RestaurantBarGuest="restaurant_bar_guest",e.SteyCom="stey.com",e.WalkIn="walk_in",e.WebSearch="web_search",e.WechatMiniApp="wechat_mini_app",e.WechatMomentGroup="wechat_moment_group",e.WechatOfficialAccount="wechat_official_account"}(C||(C={})),function(e){e.CreatedAt="created_at"}(w||(w={})),function(e){e.Studio="studio",e.Suite="suite"}(Z||(Z={})),function(e){e.Studio="studio",e.Suite="suite"}(k||(k={})),function(e){e.Studio="studio",e.Suite="suite"}(M||(M={})),function(e){e.Studio="studio",e.Suite="suite"}(S||(S={})),function(e){e.AirPurification="air_purification",e.Bed="bed",e.Clean="clean",e.Curtain="curtain",e.Security="security",e.SmartHome="smart_home",e.SmartHomeSystem="smart_home_system",e.Square="square",e.Tv="tv",e.Washer="washer",e.Wifi="wifi"}(B||(B={})),function(e){e.Nx="nx",e.Perk="perk"}(N||(N={})),function(e){e.Diamond="diamond",e.Gold="gold",e.Silver="silver"}(E||(E={})),function(e){e.GoToBooking="go_to_booking",e.Same="same"}(R||(R={})),function(e){e.Active="active",e.Canceled="canceled",e.Completed="completed",e.PreArrival="pre_arrival",e.Rerenting="rerenting"}(P||(P={})),function(e){e.Active="active",e.Canceled="canceled",e.Completed="completed",e.PreArrival="pre_arrival",e.Rerenting="rerenting"}(T||(T={})),function(e){e.Adyen="adyen",e.Alipay="alipay",e.Asiapay="asiapay",e.SteyWallet="stey_wallet",e.Wechat="wechat"}(I||(I={})),function(e){e.Adyen="adyen",e.Alipay="alipay",e.Asiapay="asiapay",e.SteyWallet="stey_wallet",e.Wechat="wechat"}(W||(W={})),function(e){e.Apartment="apartment",e.Hotel="hotel",e.Rerent="rerent"}(O||(O={})),function(e){e.CheckIn="check_in",e.PostPayment="post_payment",e.PrePayment="pre_payment"}(z||(z={})),function(e){e.CheckIn="check_in",e.PostPayment="post_payment",e.PrePayment="pre_payment"}(H||(H={})),function(e){e.Coolkit="coolkit",e.Illustra="illustra",e.Kaiterra="kaiterra",e.Lifesmart="lifesmart",e.Mock="mock",e.Radix="radix",e.Sensetime="sensetime",e.Skanovo="skanovo",e.Tuya="tuya",e.Unknown="unknown",e.Yeelock="yeelock",e.Yimu="Yimu",e.Yunding="yunding"}(L||(L={})),function(e){e.Address="address",e.Bbq="bbq",e.Book="book",e.Booking="booking",e.Camera="camera",e.Car="car",e.Coffee="coffee",e.Contact="contact",e.ConvenienceStore="convenience_store",e.Dishwasher="dishwasher",e.Dryer="dryer",e.Family="family",e.Fridge="fridge",e.Garden="garden",e.Gym="gym",e.Location="location",e.Love="love",e.Luggage="luggage",e.Map="map",e.Meeting="meeting",e.MiniGolf="mini_golf",e.OpeningTime="opening_time",e.Oven="oven",e.Printer="printer",e.PrivateTrainingSession="private_training_session",e.Projector="projector",e.Refreshment="refreshment",e.RestingArea="resting_area",e.Run="run",e.Shower="shower",e.SmartHome="smart_home",e.SoundSystem="sound_system",e.SteyFit="stey_fit",e.Stove="stove",e.Support="support",e.Swimming="swimming",e.Tv="tv",e.VinylPlayer="vinyl_player",e.Washer="washer",e.Wifi="wifi"}(U||(U={})),function(e){e.Address="address",e.Bbq="bbq",e.Book="book",e.Booking="booking",e.Camera="camera",e.Car="car",e.Coffee="coffee",e.Contact="contact",e.ConvenienceStore="convenience_store",e.Dishwasher="dishwasher",e.Dryer="dryer",e.Family="family",e.Fridge="fridge",e.Garden="garden",e.Gym="gym",e.Location="location",e.Love="love",e.Luggage="luggage",e.Map="map",e.Meeting="meeting",e.MiniGolf="mini_golf",e.OpeningTime="opening_time",e.Oven="oven",e.Printer="printer",e.PrivateTrainingSession="private_training_session",e.Projector="projector",e.Refreshment="refreshment",e.RestingArea="resting_area",e.Run="run",e.Shower="shower",e.SmartHome="smart_home",e.SoundSystem="sound_system",e.SteyFit="stey_fit",e.Stove="stove",e.Support="support",e.Swimming="swimming",e.Tv="tv",e.VinylPlayer="vinyl_player",e.Washer="washer",e.Wifi="wifi"}(F||(F={})),function(e){e.Asc="asc",e.Desc="desc"}(D||(D={})),function(e){e.Chf="chf",e.Cny="cny",e.Eur="eur",e.Nok="nok",e.Pen="pen",e.Sek="sek",e.Usd="usd"}(V||(V={})),function(e){e.Email="email",e.Phone="phone",e.Wechat="wechat"}(G||(G={})),function(e){e.Email="email",e.Phone="phone",e.Wechat="wechat"}(Q||(Q={})),function(e){e.Beijing="beijing",e.Shenzhen="shenzhen",e.Stavanger="stavanger",e.Stockholm="stockholm"}(Y||(Y={})),function(e){e.Beijing="beijing",e.Shanghai="shanghai",e.Shenzhen="shenzhen",e.Stavanger="stavanger",e.Stockholm="stockholm"}(X||(X={})),function(e){e.Beijing="beijing",e.Shanghai="shanghai",e.Shenzhen="shenzhen",e.Stavanger="stavanger",e.Stockholm="stockholm"}(q||(q={})),function(e){e.Beijing="beijing",e.Shanghai="shanghai",e.Shenzhen="shenzhen",e.Stavanger="stavanger",e.Stockholm="stockholm"}(J||(J={})),function(e){e.Canceled="canceled",e.Draft="draft",e.Emitted="emitted",e.Paid="paid"}(K||(K={})),function(e){e.Canceled="canceled",e.Draft="draft",e.Emitted="emitted",e.Paid="paid"}($||($={})),function(e){e.Canceled="canceled",e.Paid="paid",e.WaitPay="wait_pay"}(ee||(ee={})),function(e){e.Canceled="canceled",e.Paid="paid",e.WaitPay="wait_pay"}(te||(te={}));var Ie=o(48789),We=o(55968);function Oe(e){let{children:t,onSubmit:o,methods:n,formProps:a}=e;return(0,oe.jsx)(Ne.RV,{...n,children:(0,oe.jsx)("form",{...a,onSubmit:o,children:t})})}var ze=o(20569),He=o(43728),Le=o(58331),Ue=o(20672);var Fe=function(e){var t,o;const{isOpen:n,onClose:a,onSave:i}=e,{success:r}=(0,Ue.p)(),s=(0,ae.useRouter)(),{locale:l}=s,c=(0,He.vf)(),d=(0,Le._9)(l),[u,m]=(0,ve.useState)("mobile"),h=Ee.Ry({nationCode:"mobile"===u?Ee.Z_().min(1,c.formatMessage({id:"myAccount.PleaseEnter",defaultMessage:"Please enter"})):Ee.Z_(),mobile:"mobile"===u?Ee.Z_().min(1,c.formatMessage({id:"myAccount.PleaseEnter",defaultMessage:"Please enter"})):Ee.Z_(),email:Ee.Z_().email(c.formatMessage({id:"bookingFlow.loginDialog.UnavailableEmail",defaultMessage:"Invailid email"})).or(Ee.i0(""))}).refine((e=>{if(e.nationCode&&e.mobile){const t=(0,Be.phone)("".concat(e.nationCode," ").concat(e.mobile));return!0===(null===t||void 0===t?void 0:t.isValid)}return!0}),{message:c.formatMessage({id:"myAccount.InvalidMobileNumber",defaultMessage:"Invalid mobile"}),path:["mobile"]}).refine((e=>"email"!==u||""!==e.email),{message:c.formatMessage({id:"myAccount.PleaseEnter",defaultMessage:"Please enter"}),path:["email"]}),{value:g,setTrue:f,setFalse:x}=(0,ye.kt)(!1),v=(0,Ne.cI)({resolver:(0,be.F)(h),defaultValues:{nationCode:"+86",mobile:"",email:""},mode:"all"}),{control:y,register:b,formState:{errors:A},handleSubmit:_,reset:j}=v;return(0,ve.useEffect)((()=>{n&&(j({nationCode:"+86",mobile:"",email:""}),m("mobile"))}),[n,j]),(0,oe.jsx)(_e.Z,{open:n,maxWidth:"sm",children:(0,oe.jsxs)(je.Z,{sx:{position:"relative",width:{xs:340,lg:500}},children:[(0,oe.jsx)(Ce.Z,{onClick:a,sx:{position:"absolute",top:20,right:20},children:(0,oe.jsx)(Se(),{className:"w-[24px] lg:w-[32px] l-[24px] lg:h-[32px]",src:Re,alt:"Close"})}),(0,oe.jsx)(Oe,{methods:v,onSubmit:_((async e=>{const{nationCode:t,mobile:o,email:n}=e;f(),(0,Ie.cc)({mobile:{nationCode:t.replace("+",""),mobile:o},email:{email:n},preferredContactMethod:"mobile"===u?p.Mobile:p.Email},{headers:{"Content-Type":"application/json","Accept-Language":d,"X-Stey-Browser-Type":"pc"}}).then((()=>{setTimeout((()=>{r("updated!"),x(),i()}),2e3)})).catch((e=>{x()}))})),children:(0,oe.jsxs)(he.Z,{sx:{py:{xs:3,lg:5},px:{xs:0,lg:2}},children:[(0,oe.jsx)(ge.Z,{color:"#000000",variant:"h3",children:c.formatMessage({id:"myAccount.EditContactInfo",defaultMessage:"Edit Contact Info"})}),(0,oe.jsx)(ge.Z,{color:"text.secondary",variant:"body1",mt:1.5,children:c.formatMessage({id:"myAccount.EditContactInfoHint",defaultMessage:"This will not change your login method."})}),(0,oe.jsxs)(ne.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:3,children:[(0,oe.jsx)(ge.Z,{variant:"subtitle2",children:c.formatMessage({id:"myAccount.ContactInfo",defaultMessage:"Contact Info"})}),(0,oe.jsx)(ge.Z,{variant:"body2",textAlign:"center",sx:{minWidth:{xs:40,lg:63}},children:c.formatMessage({id:"myAccount.Preferred",defaultMessage:"Preferred"})})]}),(0,oe.jsxs)(ne.Z,{display:"flex",justifyContent:"space-between",mt:2,sx:{gap:{xs:1.5,lg:3}},children:[(0,oe.jsxs)(he.Z,{direction:"row",flex:1,children:[(0,oe.jsx)(Ne.Qr,{name:"nationCode",control:y,defaultValue:"+86",render:e=>{let{field:t}=e;var o;return(0,oe.jsxs)(ne.Z,{sx:{width:{xs:80,lg:100},mr:{xs:1,lg:2}},children:[(0,oe.jsx)(ze.Z,{value:t.value,onChange:e=>t.onChange(e)}
1),!!A.nationCode&&(0,oe.jsx)(ne.Z,{pt:"6px",pl:1,children:(0,oe.jsx)(We.Z,{error:!0,text:(null===(o=A.nationCode)||void 0===o?void 0:o.message)||""})})]})}}),(0,oe.jsx)(we.Z,{sx:{flex:1},children:(0,oe.jsx)(Ze.Z,{fullWidth:!0,label:c.formatMessage({id:"myAccount.MobileNumber",defaultMessage:"Mobile Number"}),error:!!A.mobile,...b("mobile"),helperText:(0,oe.jsx)(We.Z,{error:!!A.mobile,text:(null===(t=A.mobile)||void 0===t?void 0:t.message)||""})})})]}),(0,oe.jsx)(ne.Z,{display:"flex",alignItems:"flex-start",justifyContent:"center",pt:1,sx:{width:{xs:40,lg:63}},children:(0,oe.jsx)(ke.Z,{checkedIcon:(0,oe.jsx)(Se(),{src:Pe,alt:"Radio Check",width:24,height:24}),icon:(0,oe.jsx)(Se(),{src:Te,alt:"Radio Uncheck",width:24,height:24}),checked:"mobile"===u,onChange:()=>m("mobile")})})]}),(0,oe.jsxs)(ne.Z,{display:"flex",justifyContent:"space-between",mt:2,sx:{gap:{xs:1.5,lg:3}},children:[(0,oe.jsx)(we.Z,{sx:{flex:1},children:(0,oe.jsx)(Ze.Z,{fullWidth:!0,label:c.formatMessage({id:"myAccount.Email",defaultMessage:"Email"}),error:!!A.email,...b("email"),helperText:(0,oe.jsx)(We.Z,{error:!!A.email,text:(null===(o=A.email)||void 0===o?void 0:o.message)||""})})}),(0,oe.jsx)(ne.Z,{display:"flex",alignItems:"flex-start",justifyContent:"center",pt:1,sx:{width:{xs:40,lg:63}},children:(0,oe.jsx)(ke.Z,{checkedIcon:(0,oe.jsx)(Se(),{src:Pe,alt:"Radio Check",width:24,height:24}),icon:(0,oe.jsx)(Se(),{src:Te,alt:"Radio Uncheck",width:24,height:24}),checked:"email"===u,onChange:()=>m("email")})})]}),(0,oe.jsx)(Ae.Z,{color:"primary",type:"submit",loading:g,size:"large",variant:"contained",sx:{mt:2},children:c.formatMessage({id:"myAccount.Save",defaultMessage:"Save"})})]})})]})})},De=o(28372);var Ve=function(e){var t,o;const{isOpen:n,onClose:a,onSave:i}=e,{userAccount:r}=(0,De.Z)(),{success:s}=(0,Ue.p)(),l=(0,ae.useRouter)(),{locale:c}=l,d=(0,He.vf)(),u=(0,Le._9)(c),m=Ee.Ry({firstName:Ee.Z_().min(1,d.formatMessage({id:"myAccount.PleaseEnter",defaultMessage:"Please enter"})),lastName:Ee.Z_().min(1,d.formatMessage({id:"myAccount.PleaseEnter",defaultMessage:"Please enter"}))}),{value:p,setTrue:h,setFalse:g}=(0,ye.kt)(!1),{register:f,formState:{errors:x},reset:v,watch:y}=(0,Ne.cI)({resolver:(0,be.F)(m),defaultValues:{firstName:"",lastName:""},mode:"all"}),b=y("firstName"),A=y("lastName"),_=b&&A&&!x.firstName&&!x.lastName,j=(0,ve.useCallback)((()=>{h(),(0,Ie._A)({firstName:b,lastName:A},{headers:{"Content-Type":"application/json","Accept-Language":u,"X-Stey-Browser-Type":"pc"}}).then((()=>{setTimeout((()=>{s("updated!"),g(),i()}),2e3)})).catch((e=>{g()}))}),[g,b,A,u,i,s,h]);return(0,ve.useEffect)((()=>{n&&r&&v({firstName:r.firstName,lastName:r.lastName})}),[n,r,v]),(0,oe.jsx)(_e.Z,{open:n,maxWidth:"sm",children:(0,oe.jsxs)(je.Z,{sx:{position:"relative",width:{xs:340,lg:480}},children:[(0,oe.jsx)(Ce.Z,{onClick:a,sx:{position:"absolute",top:20,right:20},children:(0,oe.jsx)(Se(),{className:"w-[24px] lg:w-[32px] l-[24px] lg:h-[32px]",src:Re,alt:"Close"})}),(0,oe.jsxs)(he.Z,{spacing:2,sx:{py:{xs:3,lg:5},px:{xs:0,lg:2}},children:[(0,oe.jsx)(ge.Z,{color:"#000000",variant:"h3",mb:1,children:d.formatMessage({id:"myAccount.EditName",defaultMessage:"Edit Name"})}),(0,oe.jsxs)(he.Z,{spacing:1,children:[(0,oe.jsx)(we.Z,{children:(0,oe.jsx)(Ze.Z,{fullWidth:!0,label:d.formatMessage({id:"myAccount.FirstName",defaultMessage:"First Name"}),error:!!x.firstName,...f("firstName"),helperText:(0,oe.jsx)(We.Z,{error:!!x.firstName,text:(null===(t=x.firstName)||void 0===t?void 0:t.message)||""})})}),(0,oe.jsx)(we.Z,{children:(0,oe.jsx)(Ze.Z,{fullWidth:!0,label:d.formatMessage({id:"myAccount.LastName",defaultMessage:"LastName"}),error:!!x.lastName,...f("lastName"),helperText:(0,oe.jsx)(We.Z,{error:!!x.lastName,text:(null===(o=x.lastName)||void 0===o?void 0:o.message)||""})})})]}),(0,oe.jsx)(Ae.Z,{color:"primary",disabled:!_,loading:p,size:"large",variant:"contained",onClick:j,children:d.formatMessage({id:"myAccount.Save",defaultMessage:"Save"})})]})]})})},Ge=o(38836);function Qe(){var e,t,o,n,a,i,r;const{user:s,userAccount:l,setUserAccount:c}=(0,De.Z)(),d=null===l||void 0===l||null===(e=l.loginMethods)||void 0===e?void 0:e.find((e=>"mobile"===e._type)),u=null===l||void 0===l||null===(t=l.loginMethods)||void 0===t?void 0:t.find((e=>"email"===e._type)),m=null===l||void 0===l||null===(o=l.contactOptions)||void 0===o?void 0:o.find((e=>"mobile"===e._type)),p=null===l||void 0===l||null===(n=l.contactOptions)||void 0===n?void 0:n.find((e=>"email"===e._type)),h=(0,ae.useRouter)(),{locale:g}=h,f=(0,He.vf)(),x=(0,Le._9)(g),{value:v,setFalse:y,setTrue:b}=(0,ye.kt)(!1),{value:A,setFalse:_,setTrue:j}=(0,ye.kt)(!1),C=()=>{(0,Ie.FC)({headers:{"Content-Type":"application/json","Accept-Language":x,"X-Stey-Browser-Type":"pc"}}).then((e=>{var t,o;e&&c({...e,loginMethods:null!==(t=e.loginMethods)&&void 0!==t?t:[],contactOptions:null!==(o=e.contactOptions)&&void 0!==o?o:[]});return!0})).catch((e=>{}))};return(0,oe.jsxs)(ne.Z,{className:"w-full mx-auto max-w-[1152px] lg:py-[20px] mt-[30px]",children:[(0,oe.jsxs)(ne.Z,{className:"w-full lg:flex lg:gap-[64px] px-[16px] lg:px-[0]",children:[(null===s||void 0===s?void 0:s.token)&&(0,oe.jsx)(Ge.Z,{page:"myAccount"}),(0,oe.jsxs)(he.Z,{spacing:7.5,width:"100%",children:[(0,oe.jsxs)(he.Z,{spacing:3,className:"mt-[40px] lg:mt-0",children:[(0,oe.jsx)(ge.Z,{variant:"h5",children:f.formatMessage({id:"myAccount.BasicInfo",defaultMessage:"Basic Info"})}),(0,oe.jsxs)(he.Z,{py:3,gap:2,borderBottom:"1px dashed rgba(145, 158, 171, 0.20)",children:[(0,oe.jsxs)(ne.Z,{alignItems:"center",display:"flex",gap:2,sx:{justifyContent:{xs:"space-between",lg:"flex-start"}},children:[(0,oe.jsx)(ge.Z,{color:"text.secondary",variant:"subtitle1",sx:{width:{xs:"auto",lg:280}},children:f.formatMessage({id:"myAccount.Name",defaultMessage:"Name"})}),(0,oe.jsx)(ge.Z,{className:"lg:flex-grow",variant:"subtitle1",children:"".concat(null===l||void 0===l?void 0:l.lastName,", ").concat(null===l||void 0===l?void 0:l.firstName)}),(0,oe.jsx)(fe.Z,{className:"hidden lg:inline-flex",color:"inherit",size:"small",variant:"soft",onClick:b,children:f.formatMessage({id:"myAccount.Edit",defaultMessage:"Edit"})})]}),(0,oe.jsx)(ne.Z,{className:"flex lg:hidden justify-end",children:(0,oe.jsx)(fe.Z,{color:"inherit",size:"small",variant:"soft",onClick:b,children:f.formatMessage({id:"myAccount.Edit",defaultMessage:"Edit"})})})]})]}),(0,oe.jsxs)(he.Z,{spacing:3,children:[(0,oe.jsxs)(ne.Z,{className:"block lg:flex",justifyContent:"space-between",alignItems:"center",children:[(0,oe.jsx)(ge.Z,{variant:"h5",children:f.formatMessage({id:"myAccount.LoginMethod",defaultMessage:"Login Method"})}),(0,oe.jsxs)(ge.Z,{color:"text.secondary",variant:"body2",sx:{mt:{xs:1.5,lg:0}},children:["*",f.formatMessage({id:"myAccount.LoginMethodHint",defaultMessage:"Use Stey App to customize your Login method"})]})]}),(0,oe.jsxs)(he.Z,{children:[(0,oe.jsxs)(ne.Z,{className:"justify-between lg:justify-start",display:"flex",py:3,gap:2,borderBottom:"1px dashed rgba(145, 158, 171, 0.20)",children:[(0,oe.jsx)(ge.Z,{color:"text.secondary",variant:"subtitle1",sx:{width:{xs:"auto",lg:280}},children:f.formatMessage({id:"myAccount.Mobile",defaultMessage:"Mobile"})}),(0,oe.jsx)(ge.Z,{variant:"subtitle1",children:(null===d||void 0===d?void 0:d.mobile)?"+".concat(d.nationCode," ").concat(null===(a=d.mobile)||void 0===a?void 0:a.replace(/^(\d{3})\d+(\d{3})$/,"$1*****$2")):"-"})]}),(0,oe.jsxs)(ne.Z,{className:"justify-between lg:justify-start",display:"flex",py:3,gap:2,borderBottom:"1px dashed rgba(145, 158, 171, 0.20)",children:[(0,oe.jsx)(ge.Z,{color:"text.secondary",variant:"subtitle1",sx:{width:{xs:"auto",lg:280}},children:f.formatMessage({id:"myAccount.Email",defaultMessage:"Email"})}),(0,oe.jsx)(ge.Z,{variant:"subtitle1",children:(null===u||void 0===u?void 0:u.email)?null===(i=u.email)||void 0===i?void 0:i.replace(/^(.)([^@]+)(@.*)$/,((e,t,o,n)=>t+o.replace(/./g,"*")+n)):"-"})]})]})]}),(0,oe.jsxs)(he.Z,{spacing:3,children:[(0,oe.jsxs)(ne.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,oe.jsx)(ge.Z,{variant:"h5",children:f.formatMessage({id:"myAccount.ContactMethod",defaultMessage:"Contact Method"})}),(0,oe.jsx)(fe.Z,{color:"inherit",size:"small",variant:"soft",onClick:j,children:f.formatMessage({id:"myAccount.Edit",defaultMessage:"Edit"})})]}),(0,oe.jsxs)(he.Z,{children:[(0,oe.jsxs)(ne.Z,{display:"flex",py:3,gap:1,borderBottom:"1px dashed rgba(145, 158, 171, 0.20)",className:"justify-between lg:justify-start",children:[(0,oe.jsx)(ge.Z,{color:"text.secondary",variant:"subtitle1",sx:{width:{xs:"auto",lg:290}},children:f.formatMessage({id:"myAccount.Mobile",defaultMessage:"Mobile"})}),(0,oe.jsxs)(ne.Z,{className:"block lg:flex lg:gap-[8px] text-right lg:text-left",children:[(0,oe.jsx)(ge.Z,{variant:"subtitle1",children:(null===m||void 0===m?void 0:m.mobile)?"+".concat(m.nationCode," ").concat(null===(r=m.mobile)||void 0===r?void 0:r.replace(/^(\d{3})\d+(\d{3})$/,"$1*****$2")):"-"}),"mobile"===(null===l||void 0===l?void 0:l.preferredContactMethod)&&(0,oe.jsx)(xe.Z,{variant:"soft",color:"primary",size:"small",label:f.formatMessage({id:"myAccount.Preferred",defaultMessage:"Preferred"}),sx:{mt:{xs:1,lg:0}}})]})]}),(0,oe.jsxs)(ne.Z,{display:"flex",py:3,gap:1,borderBottom:"1px dashed rgba(145, 158, 171, 0.20)",className:"justify-between lg:justify-start",children:[(0,oe.jsx)(ge.Z,{color:"text.secondary",variant:"subtitle1",sx:{width:{xs:"auto",lg:290}},children:f.formatMessage({id:"myAccount.Email",defaultMessage:"Email"})}),(0,oe.jsxs)(ne.Z,{className:"block lg:flex lg:gap-[8px] text-right lg:text-left",children:[(0,oe.jsx)(ge.Z,{variant:"subtitle1",children:(null===p||void 0===p?void 0:p.email)?p.email.replace(/^(.)([^@]+)(@.*)$/,((e,t,o,n)=>t+o.replace(/./g,"*")+n)):"-"}),"email"===(null===l||void 0===l?void 0:l.preferredContactMethod)&&(0,oe.jsx)(xe.Z,{variant:"soft",color:"primary",size:"small",label:f.formatMessage({id:"myAccount.Preferred",defaultMessage:"Preferred"}),sx:{mt:{xs:1,lg:0}}})]})]})]})]})]})]}),(0,oe.jsx)(Ve,{isOpen:v,onClose:y,onSave:()=>{y(),C()}}),(0,oe.jsx)(Fe,{isOpen:A,onClose:_,onSave:()=>{_(),C()}})]})}var Ye=!0;function Xe(){const e=(0,ae.useRouter)(),{redirectionBanner:t}=(0,de.Z)(),{config:o}=(0,ue.DO)(),n=(0,pe.C2)(e),a=o.features.enableAppDownload,i=o.features.showBookingFooter;return n?(0,oe.jsx)(ce.Z,{children:(0,oe.jsxs)(me.l,{children:[(0,oe.jsx)(le.Z,{logoColor:"#12022F"}),(0,oe.jsx)(ne.Z,{className:"lg:px-40 mx-auto",style:{maxWidth:"1440px",height:"min-content"},children:(0,oe.jsx)(Qe,{})}),a&&(0,oe.jsx)(re.Z,{})]})}):(0,oe.jsx)(ce.Z,{children:(0,oe.jsxs)(me.l,{children:[(0,oe.jsx)(se.Z,{isDark:!0,title:"My Account"}),(0,oe.jsx)(ne.Z,{className:"lg:px-40 mx-auto",style:{maxWidth:"1440px",height:"min-content",paddingTop:t?"148px":"72px"},children:(0,oe.jsx)(Qe,{})}),a&&(0,oe.jsx)(re.Z,{}),i&&(0,oe.jsx)(ie.Z,{})]})})}}},function(e){e.O(0,[6676,365,1585,4124,5001,6303,1936,6754,7204,8948,2407,1588,7643,4291,5995,7017,3728,5919,1297,9274,4170,5,7124,2916,2888,9774,179],(function(){return t=1124,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.