PageSourceSearch

https://booking.stey.com/_next/static/chunks/7124-9b75ad5f608e25a9.js

js stey.com collected 2026-10-01 15:33:05 UTC 12,613 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7124],{57124:function(e,l,n){n.d(l,{Z:function(){return S}});var t=n(52676),o=n(63939),i=n(23769),s=n(62523),a=n(31864),r=n(8471),c=n(73952),d=n(33220),h=n(58547),x=n(29094),C=n(11530),u=n(32579),p=n(96119),g=n(35364),m=n(31936),Z=n.n(m),j=n(6894),f=n(75271),v=n(44643),w=n(48789),L=n(12667),k=n(38645),y=n(38781),M=n(63858),b=n(88725),N=n(47414),H=n(16024),B=n(20063),V=n(28372),O=n(81297),E=n(43728),A=n(25765),F=n(78908),J=n(58331),_=n(73144),T=n(20672);function S(e){let{title:l,isDark:n}=e;const m=(0,j.useRouter)(),S=(0,o.Z)(),z=(0,o.Z)({threshold:150,disableHysteresis:!0}),{redirectionBanner:D,hideRedirectionBanner:U}=(0,N.Z)(),{pathname:P,asPath:G,query:W,locale:q}=m,[I,R]=(0,f.useState)(""),X=(0,E.vf)(),Y=(0,_.kt)(),{success:K}=(0,T.p)(),{config:Q}=(0,B.DO)(),{enableUserLogin:$,showNavigation:ee}=Q.features,le=Q.theme.headerBackgroundColor,ne=(0,F.G)(le),[te,oe]=ne?["#12022F"===ne,ne]:n||z?[!0,"#12022F"]:[!1,"#FFF"],{user:ie,setUser:se,openLoginDialog:ae,setOpenLoginDialog:re,userAccount:ce,setUserAccount:de}=(0,V.Z)(),he=(0,f.useMemo)((()=>ce?"Hi, ".concat(ce.firstName):""),[ce]),[xe,Ce]=(0,f.useState)(null),[ue,pe]=(0,f.useState)(null);(0,H.Z)((()=>{(0,A.nJ)("token"),(0,A.nJ)("email"),(0,A.nJ)("mobile"),(0,A.nJ)("firstName"),(0,A.nJ)("lastName"),se({token:null,mobile:null,email:null,firstName:null,lastName:null})}));return(0,f.useEffect)((()=>{R((0,J._9)(q))}),[q]),(0,f.useEffect)((()=>{$&&(null===ie||void 0===ie?void 0:ie.token)&&""!==I&&(0,w.FC)({headers:{"Content-Type":"application/json","Accept-Language":I,"X-Stey-Browser-Type":"pc"}}).then((e=>{var l,n;e&&de({...e,loginMethods:null!==(l=e.loginMethods)&&void 0!==l?l:[],contactOptions:null!==(n=e.contactOptions)&&void 0!==n?n:[]});return!0})).catch((e=>{}))}),[$,I,de,null===ie||void 0===ie?void 0:ie.token]),(0,t.jsx)(O.l,{children:(0,t.jsx)(i.Z,{in:!S,children:(0,t.jsx)(s.Z,{elevation:0,sx:{color:oe,backgroundColor:le||(te?"common.white":"transparent")},children:(0,t.jsxs)(a.Z,{sx:{px:"0!important"},children:[(0,t.jsxs)(r.Z,{className:"w-full",children:[D&&(0,t.jsx)(c.Z,{bgcolor:"background.neutral",className:"flex items-center w-full",children:(0,t.jsxs)(c.Z,{className:"xl:flex items-center w-[1152px] justify-between py-[24px] xl:py-[20px] mx-auto",children:[(0,t.jsx)(d.Z,{className:"text-center xl:text-left",color:"text.primary",variant:"body1",children:D.description}),(0,t.jsxs)(r.Z,{className:"mt-[24px] xl:mt-0 justify-center xl:justify-end",direction:"row",spacing:3,children:[(0,t.jsx)(h.Z,{variant:"outlined",sx:{color:"text.primary"},onClick:U,children:D.continueButton}),(0,t.jsx)(h.Z,{color:"primary",variant:"contained",onClick:()=>{window.location.href=D.redirectionUrl},children:D.goToButton})]})]})}),(0,t.jsxs)(c.Z,{className:"max-w-[1152px] w-full flex justify-between items-center px-[16px] lg:pl-0 relative",sx:{height:"72px",margin:"0 auto",zIndex:2},children:[(0,t.jsx)(M.Z,{width:86,height:40,color:oe,useConfiguredLogo:!0}),ee&&(0,t.jsx)(c.Z,{className:"mt-[5px] hidden xl:block",children:(0,t.jsx)(v.Z,{type:"web",color:te?"dark":void 0,title:l})}),(0,t.jsxs)(c.Z,{className:"flex flex-row-reverse lg:flex-row items-center",children:[ee&&(0,t.jsx)(c.Z,{className:"xl:hidden lg:mt-[5px] ml-[10px]",children:(0,t.jsx)(v.Z,{type:"mobile",color:te?"dark":void 0,title:l})}),(0,t.jsxs)(c.Z,{className:"flex justify-end items-center xl:w-[287px] xl:h-[48px] mt-[5px] xl:gap-[12px]",children:[(0,t.jsx)(x.Z,{onClick:e=>{Ce(e.currentTarget)},children:(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.4321 10.4C15.4321 10.4 15.4321 10.4 15.4321 10.4C15.4272 10.3503 15.422 10.3008 15.4165 10.2515C15.422 10.3008 15.4272 10.3503 15.4321 10.4ZM17.2098 11.4H21.291L21.2202 10.8375C20.8142 7.6132 18.7572 4.90558 15.9244 3.57984L14.5414 2.93256L15.2738 4.27251C16.407 6.34589 17.0609 8.62179 17.1844 10.9268L17.2098 11.4ZM12.9813 2.92746L12.8428 2.74496L12.6142 2.73067C12.5754 2.72825 12.5342 2.72538 12.4913 2.7224C12.3411 2.71195 12.1693 2.7 12 2.7C11.8411 2.7 11.6764 2.71114 11.5339 2.72078C11.4865 2.72399 11.4416 2.72703 11.4001 2.72944L11.1681 2.74293L11.0289 2.92893
1C9.36273 5.15425 8.39152 7.92603 8.23372 10.8733L8.20551 11.4H16.005L15.9717 10.8687C15.7436 7.22711 14.1572 4.47717 12.9813 2.92746ZM8.80034 4.2305L9.47189 2.93996L8.14886 3.54499C5.2776 4.85803 3.18924 7.58543 2.77982 10.8375L2.70901 11.4H7.00988L7.03244 10.9237C7.14578 8.53067 7.75291 6.24341 8.80034 4.2305ZM7.01953 12.6H2.70915L2.7798 13.1623C3.18346 16.3753 5.2279 19.0736 8.04527 20.4051L9.36753 21.0299L8.70458 19.7263C7.76128 17.8715 7.19289 15.6325 7.04649 13.0715L7.01953 12.6ZM11.0093 21.0885L11.1478 21.2563L11.365 21.2694C11.4061 21.2719 11.4495 21.2748 11.4945 21.2778H11.4946C11.6501 21.2882 11.8259 21.3 12 21.3C12.1847 21.3 12.3684 21.287 12.5305 21.2756H12.5305C12.5679 21.273 12.6042 21.2704 12.639 21.2681L12.8524 21.254L12.9896 21.0901C14.7033 19.0419 15.7329 16.2714 15.968 13.1374L16.0083 12.6H8.21288L8.24607 13.1312C8.44975 16.39 9.38322 19.1177 11.0093 21.0885ZM15.3657 19.6862L14.6475 21.0354L16.0243 20.3715C18.8047 19.0306 20.8201 16.3485 21.2191 13.1621L21.2895 12.6H17.1994L17.1683 13.0668C17.0042 15.5337 16.3797 17.7814 15.3657 19.6862ZM1.5 12C1.5 6.21074 6.21074 1.5 12 1.5C17.7893 1.5 22.5 6.21074 22.5 12C22.5 17.7893 17.7893 22.5 12 22.5C6.21074 22.5 1.5 17.7893 1.5 12Z",fill:oe})})}),(0,t.jsx)(C.ZP,{anchorEl:xe,open:Boolean(xe),disableScrollLock:!0,onClose:()=>{Ce(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,t.jsx)(u.Z,{sx:{minWidth:200,maxHeight:420,overflowY:"auto"},children:b.d.map((e=>(0,t.jsx)(p.Z,{selected:q===e.value,onClick:()=>{var l;q!==e.value&&(l=e.value,m.replace({pathname:P,query:W},G,{locale:l}).then((()=>!0)).catch((e=>{}))),Ce(null)},children:e.label},e.value)))})}),$&&(null===ie||void 0===ie?void 0:ie.token)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.Z,{onClick:e=>{pe(e.currentTarget)},children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("g",{"clip-path":"url(#clip0_4191_2689)",children:(0,t.jsx)("path",{d:"M12 1.00003C5.92476 1.00003 1 5.92479 1 12C1 18.0753 5.92476 23 12 23C18.0752 23 23 18.0753 23 12C22.9919 5.92828 18.0718 1.00836 12 1.00003ZM18.9166 18.7998L18.6354 19.099L18.5605 18.7042C18.3532 17.5763 17.8596 16.5206 17.1275 15.6379C16.8941 15.3819 16.5007 15.3556 16.2354 15.5777C15.9698 15.7998 15.9265 16.1916 16.1374 16.4664C16.9409 17.4326 17.3813 18.6497 17.3818 19.9065C17.3832 19.9264 17.3832 19.9466 17.3818 19.9664V20.08L17.286 20.1429C14.0698 22.2408 9.9179 22.2408 6.70195 20.1429L6.60608 20.08V19.9095C6.60608 18.4813 7.17327 17.1117 8.1833 16.1017C9.19307 15.0919 10.5627 14.5244 11.9909 14.5244C14.2569 14.5304 16.1954 12.8978 16.5746 10.6634C16.9538 8.42933 15.6628 6.24839 13.5216 5.50611C11.3804 4.76382 9.01663 5.67798 7.93193 7.66744C6.84697 9.65716 7.35911 12.1391 9.14285 13.537L9.40898 13.7435L9.10981 13.8901C7.19341 14.8158 5.83103 16.5969 5.43921 18.6887L5.36455 19.0834L5.08337 18.7843C3.29211 16.9806 2.28853 14.5411 2.29229 11.9995C2.28691 7.61346 5.22329 3.76856 9.45598 2.61915C13.6887 1.46973 18.1666 3.30128 20.3802 7.08763C22.5942 10.874 21.9943 15.6744 18.9166 18.7993V18.7998ZM8.66724 9.89107C8.66885 8.05255 10.1604 6.56341 11.9989 6.56448C13.8375 6.56556 15.3271 8.05657 15.3266 9.8951C15.326 11.7336 13.8356 13.2236 11.9968 13.2236C10.1574 13.222 8.66724 11.7304 8.66724 9.89107Z",fill:oe,stroke:oe,"stroke-width":"0.22"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_4191_2689",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})}),(0,t.jsx)(C.ZP,{anchorEl:ue,open:Boolean(ue),disableScrollLock:!0,onClose:()=>{pe(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,t.jsxs)(r.Z,{py:"6px",minWidth:200,children:[(0,t.jsx)(c.Z,{p:"8px",children:(0,t.jsx)(d.Z,{variant:he.length<11?"h4":"h6",textOverflow:"ellipsis",title:he,noWrap:!0,children:he})}),(0,t.jsxs)(u.Z,{sx:{my:.5},children:[(0,t.jsx)(p.Z,{selected:"My Account"===l,onClick:()=>{"My Account"!==l&&m.push({pathname:"/".concat(q,"/booking/my-account")}
1)},children:(0,t.jsxs)(r.Z,{direction:"row",spacing:1,children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,t.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:"#1C252E"})}),(0,t.jsx)(d.Z,{variant:"My Account"===l?"subtitle2":"body2",children:X.formatMessage({id:"bookingFlow.header.MyAccount",defaultMessage:"My Account"})})]})}),(0,t.jsx)(p.Z,{selected:"My Booking"===l,onClick:()=>{"My Booking"!==l&&m.push({pathname:"/".concat(q,"/booking/my-booking")})},children:(0,t.jsxs)(r.Z,{direction:"row",spacing:1,children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,t.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:"#1C252E"}),(0,t.jsx)("path",{d:"M9 12H4.5V13.5H9V12Z",fill:"#1C252E"}),(0,t.jsx)("path",{d:"M12 9H4.5V10.5H12V9Z",fill:"#1C252E"}),(0,t.jsx)("path",{d:"M12 6H4.5V7.5H12V6Z",fill:"#1C252E"}),(0,t.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:"#1C252E"})]}),(0,t.jsx)(d.Z,{variant:"My Booking"===l?"subtitle2":"body2",children:X.formatMessage({id:"bookingFlow.header.MyBooking",defaultMessage:"My Booking"})})]})})]}),(0,t.jsx)(g.Z,{sx:{borderStyle:"dashed"}}),(0,t.jsx)(u.Z,{sx:{my:.5},children:(0,t.jsx)(p.Z,{onClick:()=>{const e=(0,J._9)(q);L.Z.post("".concat(Y,"/api/web/auth/logout"),{data:{accessToken:null===ie||void 0===ie?void 0:ie.token,firstName:null===ie||void 0===ie?void 0:ie.firstName,lastName:null===ie||void 0===ie?void 0:ie.lastName}},{headers:{...(null===ie||void 0===ie?void 0:ie.token)&&{Authorization:"Bearer ".concat(ie.token)},"Content-Type":"application/json","Accept-Language":e,"X-Stey-Browser-Type":"pc"}}).then((()=>((0,A.nJ)("token"),(0,A.nJ)("email"),(0,A.nJ)("mobile"),(0,A.nJ)("firstName"),(0,A.nJ)("lastName"),se({token:null,mobile:null,email:null,firstName:null,lastName:null}),pe(null),K("Logout success!"),"My Account"===l&&m.push({pathname:"/".concat(q)}),"Booking Detail"===l&&m.push({pathname:"/".concat(q,"/booking/my-booking")}),!0))).catch((e=>{}))},children:(0,t.jsxs)(r.Z,{direction:"row",spacing:1,children:[(0,t.jsx)(Z(),{alt:"logout",src:k.Z,width:24,height:24}),(0,t.jsx)(d.Z,{variant:"body2",children:X.formatMessage({id:"bookingFlow.header.login.Logout",defaultMessage:"LOG OUT"})})]})})})]})})]}):$?(0,t.jsx)(h.Z,{size:"large",color:"inherit",className:"lg:mt-[5px] rounded-[8px]",onClick:()=>{re(!0)},sx:{color:oe},children:X.formatMessage({id:"bookingFlow.header.login.Login",defaultMessage:"LOG IN"})}):null]})]})]})]}),$&&(0,t.jsx)(y.Z,{open:ae,setOpen:re})]})})})})}}}]);

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.