@cleartrip/ct-design-header 1.2.0-SNAPSHOT-segment-disable6.0 → 1.2.0-SNAPSHOT-segment-disable7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/components/Header/src/constants.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,eAAO,MAAM,WAAW,aAAa,CAAC;AACtC,eAAO,MAAM,UAAU,YAAY,CAAC;AACpC,eAAO,MAAM,OAAO,SAAS,CAAC;AAC9B,eAAO,MAAM,UAAU,mCAAmC,CAAC;AAC3D,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAC7C,eAAO,MAAM,sBAAsB,oCAAoC,CAAC;AACxE,eAAO,MAAM,WAAW,aAAa,CAAC;AACtC,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;CACrD;AAED,eAAO,MAAM,cAAc,EAAE,YAAY,EAgCxC,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;GA+BpB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MA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AAM,cAAc,EAAE,YAAY,EAgCxC,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;GAgCpB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,QAAQ,EAAE,aAAa,EA0BnC,CAAC;AAEF,eAAO,MAAM,yBAAyB,4BAA4B,CAAC;AAEnE,oBAAY,gBAAgB;IAC1B,YAAY,qBAAqB;IACjC,WAAW,eAAe;IAC1B,YAAY,iBAAiB;CAC9B;AAED,oBAAY,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;CAiBxB,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),r=require("react"),t=require("@cleartrip/ct-design-container"),o=require("@cleartrip/ct-design-typography"),i=require("@cleartrip/ct-design-button"),a=require("@cleartrip/ct-design-divider"),s=require("@cleartrip/ct-design-icons"),c=require("styled-components");function l(e){return e&&e.__esModule?e:{default:e}}var d,u,p=l(c),g=[{lefticon:s.Offers,text:"Offers",ravenActionName:"offers",isHoverable:!1,isClickable:!0,link:"all-offers/?categories=flights"},{lefticon:s.BusinessBag,text:"Business",ravenActionName:"business",rightIcon:s.ChevronDown,isHoverable:!0},{lefticon:s.MyTrips,text:"My Trips",ravenActionName:"mytrips",isHoverable:!1,isClickable:!0,link:"/account/trips"},{lefticon:s.SupportIcon,text:"Support",ravenActionName:"support",isHoverable:!1,isClickable:!0,link:"/support"}],h=[{title:"Flights",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Flights.png?cache=true",link:"/flights"},{title:"Hotels",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Hotels.png?cache=true",link:"/hotels"},{title:"Buses",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Buses.png?cache=true",link:"/bus"},{title:"Trains",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Trains.png?cache=true",link:"/pages/trains/appOnly"},{title:"Packages",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Packages.png?cache=true",link:"/holidays"}],f=[{title:"AgentBox",subtitle:"For travel agents",details:"One-stop travel solution offering the best deals to our travel agency partners",link:"https://agency.cleartrip.com"},{title:"OutOfOffice",subtitle:"For startups, corporates and SMEs",details:"Manage corporate business travel, smartly",link:"https://ooo.cleartrip.com/",ravenActionName:"ooo"},{title:"MICE",subtitle:"For corporate events",details:"An end-to-end management solution for all your corporate events",link:"https://business.cleartrip.com/"},{title:"API",subtitle:"For developers",details:"Unlock seamless integration and scale with our powerful, reliable APIs",link:"https://business.cleartrip.com/api-customers/more-details"}];exports.RAVEN_PAGE_NAMES=void 0,(d=exports.RAVEN_PAGE_NAMES||(exports.RAVEN_PAGE_NAMES={})).UNIFIED_HOME="unified_homepage",d.HOTELS_HOME="hotel_home",d.FLIGHTS_HOME="flights_home",function(e){e.DESKTOP="desktop"}(u||(u={}));var x={NOVAC:{headerBackground:"transparent",hoverColor:"#FDBA12",logoFill:"#FFF",fkcompanyColor:"#FFF",typographyColor:"#FFF",loginButtonColorVariant:i.ButtonColor.NEUTRAL},DEFAULT:{headerBackground:"#FFFFFF",hoverColor:"#FF4F17",logoFill:"#FF4F17",fkcompanyColor:"#1A1A1A",typographyColor:"#1A1A1A",loginButtonColorVariant:i.ButtonColor.PRIMARY}},m=r.createContext(void 0),v=function(){var e=r.useContext(m);if(!e)throw new Error("useHeaderContext must be used within a HeaderProvider");return e},y=function(r){var t=r.value,o=r.children;return n.jsx(m.Provider,e.__assign({value:t},{children:o}))},_=function(){var r=v().selectedLOB;return n.jsx(t.Container,e.__assign({display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",background:"#F7FAFF",top:"64px",zIndex:2,css:{gap:24}},{children:h.map(function(i,a){var s=i.title,c=i.link,l=i.image,d=r===s;return n.jsx("a",e.__assign({href:d?void 0:c,style:{textDecoration:"none",pointerEvents:d?"none":"auto"}},{children:n.jsxs(t.Container,e.__assign({display:"flex",alignItems:"center",width:"116px",height:"48px",justifyContent:"center",cursor:"pointer",css:{gap:8,background:d?"#FFFFFF":"transparent",border:d?"1px solid #E6E6E6":"",borderRadius:"40px",padding:"8px 16px 8px 8px",transition:"background 0.2s ease"}},{children:[n.jsx("img",{src:l,alt:s,width:32,height:32}),n.jsx(o.Typography,e.__assign({variant:d?o.TypographyVariant.HM3:o.TypographyVariant.B1,isClickable:!0},{children:s}))]}),a)}))})}))};function C(o){var i=o.children,a=o.onMaskClick,s=o.show,c=o.marginTop,l=o.handleDropdownMouseEnter,d=o.handleDropdownMouseLeave;r.useEffect(function(){return s&&(document.body.style.overflow="hidden"),function(){document.body.style.overflow="initial"}},[s]);var u=function(e,n){var t=r.useState(e),o=t[0],i=t[1],a=r.useRef();return r.useEffect(function(){return e?i(e):a.current=setTimeout(function(){i(!1)},n),function(){(null==a?void 0:a.current)&&clearTimeout(a.current)}},[e]),o}(s,300),p=function(e,n){var t=r.useState(!1),o=t[0],i=t[1],a=r.useRef();return r.useEffect(function(){return e&&!o?setTimeout(function(){i(!0)},0):!e&&o&&(a.current=setTimeout(function(){return i(!1)},n)),function(){a&&a.current&&clearTimeout(a.current)}},[n,e]),o}(s,100),g=p;return n.jsxs(n.Fragment,{children:[u&&n.jsx(t.Container,{id:"mask-container",css:{position:"fixed",backgroundColor:"#000",opacity:g?.4:0,width:"100%",height:"100vh",left:0,top:c||0,zIndex:9,transition:"opacity 300ms ease-in"},onClick:a}),u&&n.jsx(t.Container,e.__assign({onMouseEnter:l,onMouseLeave:d},{children:i}))]})}var b,k,w,j,F,E,L=function(e){var n=void 0===e?{}:e,t=n.closeDelay,o=void 0===t?0:t,i=n.openDelay,a=void 0===i?500:i,s=Math.max(o,150),c=r.useState(!1),l=c[0],d=c[1],u=r.useState(null),p=u[0],g=u[1],h=r.useRef(null),f=r.useRef(null),x=r.useRef(!1),m=r.useCallback(function(e){h.current&&clearTimeout(h.current),f.current&&clearTimeout(f.current),x.current=!1,f.current=setTimeout(function(){d(!0),x.current||g(e)},a)},[a]),v=r.useCallback(function(){x.current=!0,h.current=setTimeout(function(){d(!1),g(null)},s)},[s]),y=r.useCallback(function(){h.current&&clearTimeout(h.current)},[]),_=r.useCallback(function(){x.current=!0,(null==h?void 0:h.current)&&clearTimeout(h.current),h.current=setTimeout(function(){d(!1),g(null)},s)},[]);return r.useEffect(function(){var e=function(e){e.clientY<=0&&(d(!1),g(null))};return window.addEventListener("mouseleave",e),function(){window.removeEventListener("mouseleave",e)}},[]),{isDropdownVisible:l,hoveredElemIndex:p,handleOnMouseEnter:m,handleOnMouseLeave:v,handleDropdownMouseEnter:y,handleDropdownMouseLeave:_}},T=function(e){var n=r.useRef(null);return r.useEffect(function(){e?function(){if(n.current){var e=n.current.scrollHeight;n.current.style.maxHeight="".concat(e/2,"px"),n.current.style.opacity="0",requestAnimationFrame(function(){n.current&&(n.current.style.transition="max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",n.current.style.maxHeight="".concat(e,"px"),n.current.style.opacity="1")})}}():function(){if(n.current){var e=n.current.scrollHeight;n.current.style.transition="max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",n.current.style.maxHeight="".concat(e/2,"px"),n.current.style.opacity="0",setTimeout(function(){n.current&&(n.current.style.maxHeight="0px")},300)}}()},[e]),{containerRef:n}},I=function(e){var n=Object.keys(e),r=[];return n.forEach(function(n){r.includes(n)?e[n]=Number(e[n]):e[n]=""+e[n]}),e},M=function(e){return"undefined"!=typeof window&&window?new URLSearchParams(window.location.search).get(e):""},A=function(e){switch(e){case"FkVip":return"fk_vip";case"FkPremium":return"fk_plus_premium";case"InsiderIcon":return"myntra_insidericon";case"InsiderElite":return"myntra_insiderelite";default:return""}},D=function(n,r,t,o,i,a){var s;if("function"==typeof i){var c={page_name:a,platform:u.DESKTOP,login_status:n?"yes":"no",domain:null===(s=null===window||void 0===window?void 0:window.location)||void 0===s?void 0:s.host},l=I(t),d=I(o),p=e.__assign(e.__assign(e.__assign({},c),l),d);try{1===i.length?i({eventName:r,eventData:p}):i(r,p)}catch(e){return void console.error(e)}}else console.error("ravenPushCallback is not provided or is not a function")},N={transition:"background-color 0.2s ease-in-out","&:hover":{backgroundColor:"#ECF3FF"}},B={transition:"background-color 0.2s ease-in-out","&:hover":{backgroundColor:"#FBEFEF"}},P=c.keyframes(b||(b=e.__makeTemplateObject(["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"],["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"]))),R=c.keyframes(k||(k=e.__makeTemplateObject(["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"],["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"]))),S={display:"flex",backgroundColor:"black",transition:"background-color 200ms ease","flex-direction":"row",justifyContent:"center",width:"20px",height:"20px",overflow:"hidden",borderRadius:"50%"},H=function(){return n.jsx(t.Container,e.__assign({className:"bd-arrow-container-js",css:S},{children:e.__spreadArray([],Array(3),!0).map(function(r,o){return n.jsx(t.Container,e.__assign({className:"bd-arrow-wrapper-js",display:"flex",alignItems:"center"},{children:n.jsx(s.ArrowRight,{})}),o)})}))},O=p.default.div.withConfig({displayName:"BusinessDropdown__BDHoverContainer",componentId:"sc-1tsshe4-0"})(w||(w=e.__makeTemplateObject(["\n cursor: pointer;\n width: 200px;\n &:hover {\n .bd-arrow-container-js {\n background-color: rgba(255, 79, 23, 1);\n transition: color 200ms ease;\n }\n .bd-arrow-wrapper-js {\n animation: "," 200ms linear;\n display: flex;\n }\n .color-orange-on-hover-js {\n color: rgba(255, 79, 23, 1);\n transition: background-color 200ms ease;\n }\n }\n &:not(:hover) .bd-arrow-wrapper-js {\n animation: "," 200ms linear backwards;\n }\n"],["\n cursor: pointer;\n width: 200px;\n &:hover {\n .bd-arrow-container-js {\n background-color: rgba(255, 79, 23, 1);\n transition: color 200ms ease;\n }\n .bd-arrow-wrapper-js {\n animation: "," 200ms linear;\n display: flex;\n }\n .color-orange-on-hover-js {\n color: rgba(255, 79, 23, 1);\n transition: background-color 200ms ease;\n }\n }\n &:not(:hover) .bd-arrow-wrapper-js {\n animation: "," 200ms linear backwards;\n }\n"])),P,R),G=function(i){var a=i.isOpen,s=v(),c=s.isUserLoggedIn,l=s.ravenPushCallback,d=s.ravenPageName,u=s.ravenEventName,p=s.loyaltyType,g=s.ravenPayload,h=void 0===g?{}:g,x=r.useState(0),m=x[0],y=x[1],_=T(a).containerRef;r.useEffect(function(){var e=function(){if(_.current){var e=(window.innerWidth-(_.current.offsetWidth||0))/2;e!==m&&y(e)}};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[_,m]);var C=r.useCallback(function(e,n,r){var t,o=null!==(t=M("utm_source"))&&void 0!==t?t:"organic",i={action_name:r?"".concat(r,"_business_click"):n?"".concat(n.toLowerCase(),"_business_click"):"",action_type:"click",u_utm_source:o,loyalty_type:A(p)};e&&(D(c,u,i,h,l,d),window.location.href=e)},[c,u,h,l,d,p]);return n.jsxs(t.Container,e.__assign({ref:_,backgroundColor:"#fff",top:"76px",position:"fixed",left:"".concat(m,"px"),borderRadius:24,boxShadow:"0px 8px 24px 0px rgba(26, 26, 26, 0.10)",width:"fit-content",zIndex:1002,css:{overflow:"hidden",opacity:0}},{children:[n.jsx(t.Container,e.__assign({padding:"20px 24px 20px 24px",backgroundColor:"#FFF1EC"},{children:n.jsx(o.Typography,e.__assign({variant:"HM2"},{children:"Other business services"}))})),n.jsx(t.Container,e.__assign({display:"flex",flexDirection:"row",padding:"24px",columnGap:"48px",width:"fit-content"},{children:f.map(function(r){var i=r.title,a=r.subtitle,s=r.details,c=r.link,l=r.ravenActionName;return n.jsxs(O,e.__assign({className:"bd-hover-container-js",onClick:function(){return C(c,i,l)}},{children:[n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"column",rowGap:"4px"},{children:[n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center",columnGap:"8px"},{children:[n.jsx(o.Typography,e.__assign({variant:"HM2",className:"color-orange-on-hover-js",css:{transition:"color 200ms ease"}},{children:i})),n.jsx(H,{})]})),n.jsx(o.Typography,e.__assign({variant:"B3",css:{marginTop:"4px",opacity:.75}},{children:a}))]})),n.jsx(o.Typography,e.__assign({variant:"P3",color:"subheading",css:{marginTop:"12px"}},{children:s}))]}),i)})}))]}))},V=[{text:"My Profile",icon:n.jsx(s.MyAccount,{width:24,height:24}),redirectionLink:"/accounts/profile"},{text:"My Trips",icon:n.jsx(s.MyTrips,{width:24,height:24}),redirectionLink:"/accounts/trips"},{text:"Saved Cards",icon:n.jsx(s.SavedCard,{}),redirectionLink:"/accounts/expressway"},{text:"Saved Travellers",icon:n.jsx(s.Travellers,{width:24,height:24}),redirectionLink:"/account/travellers"},{text:"Hi-Five",icon:n.jsx(s.HiFive,{}),redirectionLink:"/accounts/hi-five?src=fh"},{text:"Wallet",icon:n.jsx(s.Wallet,{width:24,height:24}),redirectionLink:"/accounts/wallet"},{text:"Settings",icon:n.jsx(s.SettingsCog,{width:24,height:24}),redirectionLink:"/account/settings"},{text:"Privacy Rights",icon:n.jsx(s.PrivacyRights,{}),redirectionLink:"accounts/personal-data-dashboard"}],U="Logout",W="My Account",q="You are logged in with",z="header-acc-btn",X="account-options",Y=function(o){var i=o.icon,a=o.borderGradient,c=o.backgroundGradient,l=o.handleChipClick,d=o.chevronFillColor,u=v(),p=u.loyaltyType,g=u.isUserLoggedIn,h=u.ravenPushCallback,f=u.ravenPageName,x=u.ravenPayload,m=void 0===x?{}:x,y=u.ravenEventName,_=r.useState(!1),C=_[0],b=_[1],k=r.useCallback(function(){var e;if(l)l();else{var n={action_name:"loyalty_account_click",action_type:"click",u_utm_source:null!==(e=M("utm_source"))&&void 0!==e?e:"organic",loyaltyType:A(p)};D(g,y,n,m,h,f),window.location.href="/all-offers/loyalty-october"}},[l,p,g,y,m,h,f]);return n.jsxs(t.Container,e.__assign({display:"flex",position:"relative",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",paddingLeft:"8px",paddingRight:C?"4px":"8px",css:{overflow:"hidden",height:32,paddingLeft:8,transition:"padding-right 0.2s ease-in-out"},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)},onClick:k},{children:[n.jsx(t.Container,{css:{content:'""',position:"absolute",inset:0,borderRadius:"inherit",background:c,zIndex:-2}}),n.jsx(t.Container,{css:{content:'""',position:"absolute",inset:0,borderRadius:"inherit",padding:"1px",background:a,WebkitMask:"linear-gradient(white, white) content-box, linear-gradient(white, white)",WebkitMaskComposite:"destination-out",maskComposite:"exclude",zIndex:-1}}),n.jsx(t.Container,e.__assign({display:"flex",alignItems:"center",position:"relative"},{children:i})),n.jsx(t.Container,e.__assign({display:"flex",alignItems:"center",css:{overflow:"hidden",maxWidth:C?16:0,transition:"max-width 0.2s ease-in-out, opacity 0.2s ease-in-out",opacity:C?.5:0}},{children:n.jsx(s.HeaderChevronRight,{color:d})}))]}))};exports.LOBS_VALUES=void 0,(j=exports.LOBS_VALUES||(exports.LOBS_VALUES={})).FLIGHTS="Flights",j.HOTELS="Hotels",j.BUSES="Buses",j.TRAINS="Trains",j.PACKAGES="Packages",exports.LoyaltyType=void 0,(F=exports.LoyaltyType||(exports.LoyaltyType={})).FkVip="FkVip",F.FkPremium="FkPremium",F.InsiderIcon="InsiderIcon",F.InsiderElite="InsiderElite",F.CtLoyalty="CtLoyalty";var K=((E={})[exports.LoyaltyType.FkVip]={icon:n.jsx(s.FkVip,{}),borderGradient:"linear-gradient(222.13deg, rgba(243, 179, 39, 0) 2.08%, #F3B327 85.17%)",backgroundGradient:"linear-gradient(111deg, #360042 0%, #540061 100%)",chevronFillColor:"#FFF"},E[exports.LoyaltyType.FkPremium]={icon:n.jsx(s.FkPremium,{}),borderGradient:"linear-gradient(230.68deg, rgba(243, 179, 39, 0) 10.1%, #F3B327 45.74%)",backgroundGradient:"linear-gradient(180deg, #04176A 0%, #082395 100%)",chevronFillColor:"#FFF"},E[exports.LoyaltyType.InsiderIcon]={icon:n.jsx(s.InsiderIcon,{}),borderGradient:"linear-gradient(230.68deg, rgba(208, 175, 101, 0) 10.1%, #D0AF65 45.74%)",backgroundGradient:"linear-gradient(111deg, #2E3042 0%, #1A1C23 100%)",chevronFillColor:"#FFF"},E[exports.LoyaltyType.InsiderElite]={icon:n.jsx(s.InsiderElite,{}),borderGradient:"linear-gradient(230.68deg, rgba(208, 175, 101, 0) 10.1%, #D0AF65 45.74%)",backgroundGradient:"linear-gradient(111deg, #2E3042 0%, #1A1C23 100%)",chevronFillColor:"#FFF"},E[exports.LoyaltyType.CtLoyalty]={icon:n.jsx(s.CtLoyalty,{}),borderGradient:"linear-gradient(230.68deg, rgba(243, 179, 39, 0) 10.1%, #F3B327 45.74%)",backgroundGradient:"linear-gradient(110.82deg, #FFF9EC 0%, #FEE3A8 100%)",chevronFillColor:"#1A1A1A"},E),J=function(i){var a=i.icon,c=i.handleChipClick,l=i.value,d=i.type,u=v(),p=u.loyaltyType,g=u.isUserLoggedIn,h=u.ravenPushCallback,f=u.ravenPageName,x=u.ravenEventName,m=u.ravenPayload,y=void 0===m?{}:m,_=r.useState(!1),C=_[0],b=_[1],k=r.useCallback(function(){var e;if(c)c();else{var n=null!==(e=M("utm_source"))&&void 0!==e?e:"organic",r={action_name:"".concat(d,"_account_click"),action_type:"click",u_utm_source:n,loyaltyType:A(p)};D(g,x,r,y,h,f);var t={supercoin:"/all-offers/supercoins/",wallet:"/accounts/wallet"};t[d]&&(window.location.href=t[d])}},[c,d,p,g,x,y,h,f]);return n.jsxs(t.Container,e.__assign({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",css:{height:32,paddingLeft:8,paddingRight:C?4:8,transition:"padding-right 0.2s ease-in-out",background:C?"#ffd7ca":"#ffe6df"},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)},onClick:k},{children:[n.jsxs(t.Container,e.__assign({display:"flex",alignItems:"center",css:{gap:"4px"}},{children:[a,n.jsx(o.Typography,e.__assign({variant:"B3",isClickable:!0},{children:l}))]})),n.jsx(t.Container,e.__assign({display:"flex",alignItems:"center",css:{overflow:"hidden",maxWidth:C?16:0,transition:"max-width 0.2s ease-in-out, opacity 0.2s ease-in-out",opacity:C?1:0}},{children:n.jsx(s.HeaderChevronRight,{})}))]}))},Q=function(){var r,o=v(),i=o.loyaltyType,a=o.fkSupercoinBurnBalance,c=void 0===a?0:a,l=o.walletBalance,d=void 0===l?0:l,u=o.loyaltyLoading,p=o.superCoinsLoading,g=o.walletLoading,h=o.walletChipClick,f=o.supercoinsChipClick,x=o.loyaltyChipClick,m=o.hideWalletChip,y=o.hideSupercoinsChip,_=o.hideLoyaltyChip;return u||i&&K[i]&&!_||(p||!y)||(g||!m)?n.jsxs(t.Container,e.__assign({display:"flex",padding:"0 16px 16px 16px",justifyContent:"flex-start",css:{alignSelf:"stretch",gap:"4px"}},{children:[u?n.jsx(t.Container,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):i&&K[i]&&!_&&n.jsx(Y,{icon:K[i].icon,borderGradient:K[i].borderGradient,backgroundGradient:K[i].backgroundGradient,chevronFillColor:(null===(r=K[i])||void 0===r?void 0:r.chevronFillColor)||"#FFF",handleChipClick:x}),p?n.jsx(t.Container,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):!y&&n.jsx(J,{icon:n.jsx(s.Supercoin,{width:20,height:20}),value:c,handleChipClick:f,type:"supercoin"}),g?n.jsx(t.Container,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):!m&&n.jsx(J,{icon:n.jsx(s.Wallet,{width:20,height:20}),value:d,handleChipClick:h,type:"wallet"})]})):null},Z=function(i){var c=i.isOpen,l=v(),d=l.handleLogoutClick,u=l.userName,p=l.userMobileNumber,g=l.countryCode,h=l.userDetailsLoading,f=l.loyaltyType,x=l.isUserLoggedIn,m=l.ravenEventName,y=l.ravenPageName,_=l.ravenPayload,C=void 0===_?{}:_,b=l.ravenPushCallback,k=T(c).containerRef,w=r.useMemo(function(){return{userGreeting:u?"Hello ".concat(u,"!"):"",phoneNumber:g&&p?"".concat(g," ").concat(p):""}},[u,p,g]),j=w.userGreeting,F=w.phoneNumber,E=function(e){var n;return{action_name:e.toLowerCase().replace(/[\s-]/g,"")+"_account_click",action_type:"click",u_utm_source:null!==(n=M("utm_source"))&&void 0!==n?n:"organic",loyalty_type:A(f)}},L=r.useCallback(function(e,n){D(x,m,E(e),C,b,y),window.location.href=n},[x,m,C,b,y]);r.useCallback(function(){D(x,m,E(U),C,b,y),d()},[x,m,C,b,y,d]);var I=r.useCallback(function(){var e=document.getElementById(z),n=document.getElementById(X);if(e&&n){var r=e.getBoundingClientRect().right;n.style.left="".concat(r-328,"px")}},[]);r.useEffect(function(){I()},[I]);var P;return n.jsxs(t.Container,e.__assign({id:X,ref:k,display:"flex",flexDirection:"column",borderRadius:"16px",zIndex:1002,top:"76px",position:"fixed",css:{opacity:0,overflow:"hidden"},width:"".concat(328,"px"),background:"#FFF1EC"},{children:[n.jsx(t.Container,e.__assign({padding:"16px",height:"76px"},{children:(P=function(r,i,a,s){return n.jsx(o.Typography,e.__assign({variant:a,color:s},{children:r?n.jsx(t.Container,{height:"HM3"===a?"18px":"12px",width:"HM3"===a?"140px":"200px",backgroundColor:"#efefef",borderRadius:"8px"}):i}))},n.jsx(t.Container,e.__assign({display:"flex",flexDirection:"column",css:{gap:"4px"}},{children:j?n.jsxs(n.Fragment,{children:[P(h,j,"HM3","primary"),P(h,"".concat(q," ").concat(F),"P3","subheading")]}):n.jsxs(n.Fragment,{children:[P(h,q,"P3","subheading"),P(h,F,"HM3","primary")]})})))})),n.jsx(Q,{}),n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"column",padding:"8px",backgroundColor:"white",rowGap:"8px",css:{borderBottomLeftRadius:12,borderBottomRightRadius:12}},{children:[V.map(function(r){var i=r.text,a=r.icon,s=r.redirectionLink;return n.jsx(t.Container,e.__assign({padding:"8px",borderRadius:"8px",cursor:"pointer",onClick:function(){return L(i,s)},css:N},{children:n.jsxs(t.Container,e.__assign({display:"flex",cursor:"pointer",css:{columnGap:"8px"}},{children:[a,n.jsx(o.Typography,e.__assign({variant:"P1",css:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:i}))]}))}),"account-option-".concat(i))}),n.jsx(a.Divider,{css:{borderBottom:"1px dashed #E6E6E6"}}),n.jsxs(t.Container,e.__assign({display:"flex",padding:"8px",borderRadius:"8px",cursor:"pointer",columnGap:"8px",onClick:d,css:B},{children:[n.jsx(s.Signout,{height:24,width:24}),n.jsx(o.Typography,e.__assign({variant:"P1",css:{display:"flex",alignItems:"center",cursor:"pointer"},color:"warning"},{children:U}))]}))]}))]}))},$=function(){var i=v(),a=i.isNovacThemeEnabled,c=i.ravenEventName,l=i.ravenPayload,d=void 0===l?{}:l,u=i.ravenPushCallback,p=i.isUserLoggedIn,g=i.loyaltyType,h=i.ravenPageName,f=L({openDelay:0}),m=f.isDropdownVisible,y=f.handleOnMouseEnter,_=f.handleOnMouseLeave,b=f.handleDropdownMouseEnter,k=f.handleDropdownMouseLeave,w=r.useState(!1),j=w[0],F=w[1];r.useEffect(function(){var e=function(){F(window.scrollY>=50)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]);var E=a&&!j?x.NOVAC:x.DEFAULT,T=E.hoverColor,I=E.typographyColor,N=r.useCallback(function(){var e,n=null!==(e=M("utm_source"))&&void 0!==e?e:"organic",r={action_name:"".concat(W.toLowerCase().replace(/[\s-]/g,""),"_header_hover"),action_type:"hover",u_utm_source:n,loyalty_type:A(g)};D(p,c,r,d,u,h)},[p,c,d,u,h,g]);return n.jsxs(t.Container,{children:[n.jsxs(t.Container,e.__assign({display:"flex",padding:"8px 12px",alignItems:"center",borderRadius:"12px",height:"100%",cursor:"pointer",css:{columnGap:8,height:64},onMouseEnter:function(){y(0),N()},onMouseLeave:_,id:z},{children:[n.jsx(s.MyAccount,{color:m?T:I}),n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center"},{children:[n.jsx(o.Typography,e.__assign({variant:"B2",css:{cursor:"pointer"},colorCode:m?T:I},{children:W})),n.jsx(s.ChevronDown,{width:20,height:20,fill:m?T:I})]}))]})),n.jsx(C,e.__assign({show:m,marginTop:"64px",handleDropdownMouseEnter:b,handleDropdownMouseLeave:k,onMaskClick:k},{children:n.jsx(Z,{isOpen:m})}))]})},ee=function(){var c,l=v(),d=l.onLoginButtonClick,u=l.showAllLobs,p=void 0!==u&&u,h=l.isUserLoggedIn,f=l.loyaltyType,m=l.isNovacThemeEnabled,y=void 0!==m&&m,b=l.ravenPayload,k=void 0===b?{}:b,w=l.ravenPushCallback,j=l.ravenPageName,F=l.ravenEventName,E=r.useState(!1),T=E[0],I=E[1];r.useEffect(function(){var e=function(){I(window.scrollY>=50)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]);var N,B=y&&!T?x.NOVAC:x.DEFAULT,P=B.headerBackground,R=B.logoFill,S=B.loginButtonColorVariant,H=B.hoverColor,O=B.fkcompanyColor,V=B.typographyColor,U=L({openDelay:0}),W=U.isDropdownVisible,q=U.hoveredElemIndex,z=U.handleOnMouseEnter,X=U.handleOnMouseLeave,Y=U.handleDropdownMouseEnter,K=U.handleDropdownMouseLeave,J=null!==(c=M("utm_source"))&&void 0!==c?c:"organic",Q=r.useCallback(function(e,n){return{action_name:e,action_type:n,u_utm_source:J,loyalty_type:A(f)}},[J,f]),Z=r.useCallback(function(e){if(e.isClickable&&e.link){var n="".concat(e.text.toLowerCase().replace(/\s/g,""),"_header_click"),r=Q(n,"click");D(h,F,r,k,w,j),window.location.href=e.link}},[Q,h,F,k,w,j]),ee=r.useCallback(function(){var e=Q("home_header_click","click");D(h,F,e,k,w,j),window.location.href="/"},[Q,h,F,k,w,j]),ne=r.useCallback(function(e){var n="".concat(e.text.toLowerCase().replace(/\s/g,""),"_header_hover"),r=Q(n,"hover");D(h,F,r,k,w,j)},[Q,h,F,k,w,j]);return n.jsxs(n.Fragment,{children:[n.jsx(t.Container,e.__assign({display:"flex",top:0,position:"sticky",width:"100%",alignItems:"center",justifyContent:"center",zIndex:1e3,height:"64px",background:P,css:{gap:"24px",flexShrink:0,borderBottom:"transparent"===P?"":"1px solid #E6E6E6",transition:"background-color 0.3s ease-in-out, border-bottom 0.3s ease-in-out"}},{children:n.jsxs(t.Container,e.__assign({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 28px",flex:1,css:{gap:"24px",maxWidth:1440}},{children:[n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",cursor:"pointer",onClick:ee},{children:[n.jsx(s.CTLogo,{fillColor:R}),n.jsx(a.Divider,{css:{width:12,marginLeft:2,marginRight:2,transform:"rotate(90deg)",borderBottom:"1px solid #e0e0e0"}}),n.jsx(s.Fkcompany,{color:O})]})),n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:"24px"},{children:[n.jsx(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:"4px"},{children:g.map(function(r,i){var a=r.text,s=r.lefticon,c=r.rightIcon,l=r.isHoverable,d=q===i;return n.jsxs(t.Container,{children:[n.jsxs(t.Container,e.__assign({onMouseEnter:function(){z(i),r.isHoverable&&ne(r)},onMouseLeave:X,display:"flex",flexDirection:"row",alignItems:"center",padding:"8px 12px 8px 12px",cursor:"pointer",position:"relative",columnGap:8,height:"64px",onClick:function(){return Z(r)}},{children:[n.jsx(s,{color:d?H:V}),n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center"},{children:[n.jsx(o.Typography,e.__assign({variant:"B2",colorCode:d?H:V,isClickable:!0},{children:a})),c&&n.jsx(c,{width:20,height:20,fill:d?H:V})]}))]}),"nav-option-".concat(i)),n.jsx(C,e.__assign({show:q===i&&l&&W,marginTop:"64px",handleDropdownMouseEnter:Y,handleDropdownMouseLeave:K,onMaskClick:K},{children:n.jsx(G,{isOpen:q===i&&l&&W})}))]})})})),h&&n.jsx(a.Divider,{css:{width:12,margin:"0 -18px",transform:"rotate(90deg)",borderBottom:"1px solid #e0e0e0"}}),n.jsx(t.Container,{children:h?n.jsx(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center"},{children:n.jsx($,{})})):n.jsx(i.Button,e.__assign({onClick:d,css:e.__assign({width:153,height:40},(N="transparent"===P,N?{backgroundColor:"transparent !important","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.25)!important"}}:{backgroundColor:"transparent !important","&:hover":{backgroundColor:"#F3F3F3 !important"}})),loading:!1,color:S,variant:i.ButtonVariant.OUTLINE},{children:"Log in"}))})]}))]}))})),p&&n.jsx(_,{})]})};exports.Header=function(r){return n.jsx(y,e.__assign({value:r},{children:n.jsx(ee,{})}))};
1
+ "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),r=require("react"),t=require("@cleartrip/ct-design-container"),o=require("@cleartrip/ct-design-typography"),i=require("@cleartrip/ct-design-button"),a=require("@cleartrip/ct-design-divider"),s=require("@cleartrip/ct-design-icons"),c=require("styled-components");function l(e){return e&&e.__esModule?e:{default:e}}var d,u,p=l(c),g=[{lefticon:s.Offers,text:"Offers",ravenActionName:"offers",isHoverable:!1,isClickable:!0,link:"all-offers/?categories=flights"},{lefticon:s.BusinessBag,text:"Business",ravenActionName:"business",rightIcon:s.ChevronDown,isHoverable:!0},{lefticon:s.MyTrips,text:"My Trips",ravenActionName:"mytrips",isHoverable:!1,isClickable:!0,link:"/account/trips"},{lefticon:s.SupportIcon,text:"Support",ravenActionName:"support",isHoverable:!1,isClickable:!0,link:"/support"}],h=[{title:"Flights",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Flights.png?cache=true",link:"/flights"},{title:"Hotels",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Hotels.png?cache=true",link:"/hotels"},{title:"Buses",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Buses.png?cache=true",link:"/bus"},{title:"Packages",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Packages.png?cache=true",link:"/holidays"}],f=[{title:"AgentBox",subtitle:"For travel agents",details:"One-stop travel solution offering the best deals to our travel agency partners",link:"https://agency.cleartrip.com"},{title:"OutOfOffice",subtitle:"For startups, corporates and SMEs",details:"Manage corporate business travel, smartly",link:"https://ooo.cleartrip.com/",ravenActionName:"ooo"},{title:"MICE",subtitle:"For corporate events",details:"An end-to-end management solution for all your corporate events",link:"https://business.cleartrip.com/"},{title:"API",subtitle:"For developers",details:"Unlock seamless integration and scale with our powerful, reliable APIs",link:"https://business.cleartrip.com/api-customers/more-details"}];exports.RAVEN_PAGE_NAMES=void 0,(d=exports.RAVEN_PAGE_NAMES||(exports.RAVEN_PAGE_NAMES={})).UNIFIED_HOME="unified_homepage",d.HOTELS_HOME="hotel_home",d.FLIGHTS_HOME="flights_home",function(e){e.DESKTOP="desktop"}(u||(u={}));var x={NOVAC:{headerBackground:"transparent",hoverColor:"#FDBA12",logoFill:"#FFF",fkcompanyColor:"#FFF",typographyColor:"#FFF",loginButtonColorVariant:i.ButtonColor.NEUTRAL},DEFAULT:{headerBackground:"#FFFFFF",hoverColor:"#FF4F17",logoFill:"#FF4F17",fkcompanyColor:"#1A1A1A",typographyColor:"#1A1A1A",loginButtonColorVariant:i.ButtonColor.PRIMARY}},m=r.createContext(void 0),v=function(){var e=r.useContext(m);if(!e)throw new Error("useHeaderContext must be used within a HeaderProvider");return e},y=function(r){var t=r.value,o=r.children;return n.jsx(m.Provider,e.__assign({value:t},{children:o}))},_=function(){var r=v().selectedLOB;return n.jsx(t.Container,e.__assign({display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",background:"#F7FAFF",top:"64px",zIndex:2,css:{gap:24}},{children:h.map(function(i,a){var s=i.title,c=i.link,l=i.image,d=r===s;return n.jsx("a",e.__assign({href:d?void 0:c,style:{textDecoration:"none",pointerEvents:d?"none":"auto"}},{children:n.jsxs(t.Container,e.__assign({display:"flex",alignItems:"center",width:"116px",height:"48px",justifyContent:"center",cursor:"pointer",css:{gap:8,background:d?"#FFFFFF":"transparent",border:d?"1px solid #E6E6E6":"",borderRadius:"40px",padding:"8px 16px 8px 8px",transition:"background 0.2s ease"}},{children:[n.jsx("img",{src:l,alt:s,width:32,height:32}),n.jsx(o.Typography,e.__assign({variant:d?o.TypographyVariant.HM3:o.TypographyVariant.B1,isClickable:!0},{children:s}))]}),a)}))})}))};function C(o){var i=o.children,a=o.onMaskClick,s=o.show,c=o.marginTop,l=o.handleDropdownMouseEnter,d=o.handleDropdownMouseLeave;r.useEffect(function(){return s&&(document.body.style.overflow="hidden"),function(){document.body.style.overflow="initial"}},[s]);var u=function(e,n){var t=r.useState(e),o=t[0],i=t[1],a=r.useRef();return r.useEffect(function(){return e?i(e):a.current=setTimeout(function(){i(!1)},n),function(){(null==a?void 0:a.current)&&clearTimeout(a.current)}},[e]),o}(s,300),p=function(e,n){var t=r.useState(!1),o=t[0],i=t[1],a=r.useRef();return r.useEffect(function(){return e&&!o?setTimeout(function(){i(!0)},0):!e&&o&&(a.current=setTimeout(function(){return i(!1)},n)),function(){a&&a.current&&clearTimeout(a.current)}},[n,e]),o}(s,100),g=p;return n.jsxs(n.Fragment,{children:[u&&n.jsx(t.Container,{id:"mask-container",css:{position:"fixed",backgroundColor:"#000",opacity:g?.4:0,width:"100%",height:"100vh",left:0,top:c||0,zIndex:9,transition:"opacity 300ms ease-in"},onClick:a}),u&&n.jsx(t.Container,e.__assign({onMouseEnter:l,onMouseLeave:d},{children:i}))]})}var b,k,w,j,F,E,L=function(e){var n=void 0===e?{}:e,t=n.closeDelay,o=void 0===t?0:t,i=n.openDelay,a=void 0===i?500:i,s=Math.max(o,150),c=r.useState(!1),l=c[0],d=c[1],u=r.useState(null),p=u[0],g=u[1],h=r.useRef(null),f=r.useRef(null),x=r.useRef(!1),m=r.useCallback(function(e){h.current&&clearTimeout(h.current),f.current&&clearTimeout(f.current),x.current=!1,f.current=setTimeout(function(){d(!0),x.current||g(e)},a)},[a]),v=r.useCallback(function(){x.current=!0,h.current=setTimeout(function(){d(!1),g(null)},s)},[s]),y=r.useCallback(function(){h.current&&clearTimeout(h.current)},[]),_=r.useCallback(function(){x.current=!0,(null==h?void 0:h.current)&&clearTimeout(h.current),h.current=setTimeout(function(){d(!1),g(null)},s)},[]);return r.useEffect(function(){var e=function(e){e.clientY<=0&&(d(!1),g(null))};return window.addEventListener("mouseleave",e),function(){window.removeEventListener("mouseleave",e)}},[]),{isDropdownVisible:l,hoveredElemIndex:p,handleOnMouseEnter:m,handleOnMouseLeave:v,handleDropdownMouseEnter:y,handleDropdownMouseLeave:_}},T=function(e){var n=r.useRef(null);return r.useEffect(function(){e?function(){if(n.current){var e=n.current.scrollHeight;n.current.style.maxHeight="".concat(e/2,"px"),n.current.style.opacity="0",requestAnimationFrame(function(){n.current&&(n.current.style.transition="max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",n.current.style.maxHeight="".concat(e,"px"),n.current.style.opacity="1")})}}():function(){if(n.current){var e=n.current.scrollHeight;n.current.style.transition="max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",n.current.style.maxHeight="".concat(e/2,"px"),n.current.style.opacity="0",setTimeout(function(){n.current&&(n.current.style.maxHeight="0px")},300)}}()},[e]),{containerRef:n}},I=function(e){var n=Object.keys(e),r=[];return n.forEach(function(n){r.includes(n)?e[n]=Number(e[n]):e[n]=""+e[n]}),e},M=function(e){return"undefined"!=typeof window&&window?new URLSearchParams(window.location.search).get(e):""},A=function(e){switch(e){case"FkVip":return"fk_vip";case"FkPremium":return"fk_plus_premium";case"InsiderIcon":return"myntra_insidericon";case"InsiderElite":return"myntra_insiderelite";default:return""}},D=function(n,r,t,o,i,a){var s;if("function"==typeof i){var c={page_name:a,platform:u.DESKTOP,login_status:n?"yes":"no",domain:null===(s=null===window||void 0===window?void 0:window.location)||void 0===s?void 0:s.host},l=I(t),d=I(o),p=e.__assign(e.__assign(e.__assign({},c),l),d);try{1===i.length?i({eventName:r,eventData:p}):i(r,p)}catch(e){return void console.error(e)}}else console.error("ravenPushCallback is not provided or is not a function")},N={transition:"background-color 0.2s ease-in-out","&:hover":{backgroundColor:"#ECF3FF"}},B={transition:"background-color 0.2s ease-in-out","&:hover":{backgroundColor:"#FBEFEF"}},P=c.keyframes(b||(b=e.__makeTemplateObject(["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"],["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"]))),R=c.keyframes(k||(k=e.__makeTemplateObject(["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"],["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"]))),S={display:"flex",backgroundColor:"black",transition:"background-color 200ms ease","flex-direction":"row",justifyContent:"center",width:"20px",height:"20px",overflow:"hidden",borderRadius:"50%"},H=function(){return n.jsx(t.Container,e.__assign({className:"bd-arrow-container-js",css:S},{children:e.__spreadArray([],Array(3),!0).map(function(r,o){return n.jsx(t.Container,e.__assign({className:"bd-arrow-wrapper-js",display:"flex",alignItems:"center"},{children:n.jsx(s.ArrowRight,{})}),o)})}))},O=p.default.div.withConfig({displayName:"BusinessDropdown__BDHoverContainer",componentId:"sc-1tsshe4-0"})(w||(w=e.__makeTemplateObject(["\n cursor: pointer;\n width: 200px;\n &:hover {\n .bd-arrow-container-js {\n background-color: rgba(255, 79, 23, 1);\n transition: color 200ms ease;\n }\n .bd-arrow-wrapper-js {\n animation: "," 200ms linear;\n display: flex;\n }\n .color-orange-on-hover-js {\n color: rgba(255, 79, 23, 1);\n transition: background-color 200ms ease;\n }\n }\n &:not(:hover) .bd-arrow-wrapper-js {\n animation: "," 200ms linear backwards;\n }\n"],["\n cursor: pointer;\n width: 200px;\n &:hover {\n .bd-arrow-container-js {\n background-color: rgba(255, 79, 23, 1);\n transition: color 200ms ease;\n }\n .bd-arrow-wrapper-js {\n animation: "," 200ms linear;\n display: flex;\n }\n .color-orange-on-hover-js {\n color: rgba(255, 79, 23, 1);\n transition: background-color 200ms ease;\n }\n }\n &:not(:hover) .bd-arrow-wrapper-js {\n animation: "," 200ms linear backwards;\n }\n"])),P,R),G=function(i){var a=i.isOpen,s=v(),c=s.isUserLoggedIn,l=s.ravenPushCallback,d=s.ravenPageName,u=s.ravenEventName,p=s.loyaltyType,g=s.ravenPayload,h=void 0===g?{}:g,x=r.useState(0),m=x[0],y=x[1],_=T(a).containerRef;r.useEffect(function(){var e=function(){if(_.current){var e=(window.innerWidth-(_.current.offsetWidth||0))/2;e!==m&&y(e)}};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[_,m]);var C=r.useCallback(function(e,n,r){var t,o=null!==(t=M("utm_source"))&&void 0!==t?t:"organic",i={action_name:r?"".concat(r,"_business_click"):n?"".concat(n.toLowerCase(),"_business_click"):"",action_type:"click",u_utm_source:o,loyalty_type:A(p)};e&&(D(c,u,i,h,l,d),window.location.href=e)},[c,u,h,l,d,p]);return n.jsxs(t.Container,e.__assign({ref:_,backgroundColor:"#fff",top:"76px",position:"fixed",left:"".concat(m,"px"),borderRadius:24,boxShadow:"0px 8px 24px 0px rgba(26, 26, 26, 0.10)",width:"fit-content",zIndex:1002,css:{overflow:"hidden",opacity:0}},{children:[n.jsx(t.Container,e.__assign({padding:"20px 24px 20px 24px",backgroundColor:"#FFF1EC"},{children:n.jsx(o.Typography,e.__assign({variant:"HM2"},{children:"Other business services"}))})),n.jsx(t.Container,e.__assign({display:"flex",flexDirection:"row",padding:"24px",columnGap:"48px",width:"fit-content"},{children:f.map(function(r){var i=r.title,a=r.subtitle,s=r.details,c=r.link,l=r.ravenActionName;return n.jsxs(O,e.__assign({className:"bd-hover-container-js",onClick:function(){return C(c,i,l)}},{children:[n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"column",rowGap:"4px"},{children:[n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center",columnGap:"8px"},{children:[n.jsx(o.Typography,e.__assign({variant:"HM2",className:"color-orange-on-hover-js",css:{transition:"color 200ms ease"}},{children:i})),n.jsx(H,{})]})),n.jsx(o.Typography,e.__assign({variant:"B3",css:{marginTop:"4px",opacity:.75}},{children:a}))]})),n.jsx(o.Typography,e.__assign({variant:"P3",color:"subheading",css:{marginTop:"12px"}},{children:s}))]}),i)})}))]}))},V=[{text:"My Profile",icon:n.jsx(s.MyAccount,{width:24,height:24}),redirectionLink:"/accounts/profile"},{text:"My Trips",icon:n.jsx(s.MyTrips,{width:24,height:24}),redirectionLink:"/accounts/trips"},{text:"Saved Cards",icon:n.jsx(s.SavedCard,{}),redirectionLink:"/accounts/expressway"},{text:"Saved Travellers",icon:n.jsx(s.Travellers,{width:24,height:24}),redirectionLink:"/account/travellers"},{text:"Hi-Five",icon:n.jsx(s.HiFive,{}),redirectionLink:"/accounts/hi-five?src=fh"},{text:"Wallet",icon:n.jsx(s.Wallet,{width:24,height:24}),redirectionLink:"/accounts/wallet"},{text:"Settings",icon:n.jsx(s.SettingsCog,{width:24,height:24}),redirectionLink:"/account/settings"},{text:"Privacy Rights",icon:n.jsx(s.PrivacyRights,{}),redirectionLink:"accounts/personal-data-dashboard"}],U="Logout",W="My Account",q="You are logged in with",z="header-acc-btn",X="account-options",Y=function(o){var i=o.icon,a=o.borderGradient,c=o.backgroundGradient,l=o.handleChipClick,d=o.chevronFillColor,u=v(),p=u.loyaltyType,g=u.isUserLoggedIn,h=u.ravenPushCallback,f=u.ravenPageName,x=u.ravenPayload,m=void 0===x?{}:x,y=u.ravenEventName,_=r.useState(!1),C=_[0],b=_[1],k=r.useCallback(function(){var e;if(l)l();else{var n={action_name:"loyalty_account_click",action_type:"click",u_utm_source:null!==(e=M("utm_source"))&&void 0!==e?e:"organic",loyaltyType:A(p)};D(g,y,n,m,h,f),window.location.href="/all-offers/loyalty-october"}},[l,p,g,y,m,h,f]);return n.jsxs(t.Container,e.__assign({display:"flex",position:"relative",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",paddingLeft:"8px",paddingRight:C?"4px":"8px",css:{overflow:"hidden",height:32,paddingLeft:8,transition:"padding-right 0.2s ease-in-out"},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)},onClick:k},{children:[n.jsx(t.Container,{css:{content:'""',position:"absolute",inset:0,borderRadius:"inherit",background:c,zIndex:-2}}),n.jsx(t.Container,{css:{content:'""',position:"absolute",inset:0,borderRadius:"inherit",padding:"1px",background:a,WebkitMask:"linear-gradient(white, white) content-box, linear-gradient(white, white)",WebkitMaskComposite:"destination-out",maskComposite:"exclude",zIndex:-1}}),n.jsx(t.Container,e.__assign({display:"flex",alignItems:"center",position:"relative"},{children:i})),n.jsx(t.Container,e.__assign({display:"flex",alignItems:"center",css:{overflow:"hidden",maxWidth:C?16:0,transition:"max-width 0.2s ease-in-out, opacity 0.2s ease-in-out",opacity:C?.5:0}},{children:n.jsx(s.HeaderChevronRight,{color:d})}))]}))};exports.LOBS_VALUES=void 0,(j=exports.LOBS_VALUES||(exports.LOBS_VALUES={})).FLIGHTS="Flights",j.HOTELS="Hotels",j.BUSES="Buses",j.TRAINS="Trains",j.PACKAGES="Packages",exports.LoyaltyType=void 0,(F=exports.LoyaltyType||(exports.LoyaltyType={})).FkVip="FkVip",F.FkPremium="FkPremium",F.InsiderIcon="InsiderIcon",F.InsiderElite="InsiderElite",F.CtLoyalty="CtLoyalty";var K=((E={})[exports.LoyaltyType.FkVip]={icon:n.jsx(s.FkVip,{}),borderGradient:"linear-gradient(222.13deg, rgba(243, 179, 39, 0) 2.08%, #F3B327 85.17%)",backgroundGradient:"linear-gradient(111deg, #360042 0%, #540061 100%)",chevronFillColor:"#FFF"},E[exports.LoyaltyType.FkPremium]={icon:n.jsx(s.FkPremium,{}),borderGradient:"linear-gradient(230.68deg, rgba(243, 179, 39, 0) 10.1%, #F3B327 45.74%)",backgroundGradient:"linear-gradient(180deg, #04176A 0%, #082395 100%)",chevronFillColor:"#FFF"},E[exports.LoyaltyType.InsiderIcon]={icon:n.jsx(s.InsiderIcon,{}),borderGradient:"linear-gradient(230.68deg, rgba(208, 175, 101, 0) 10.1%, #D0AF65 45.74%)",backgroundGradient:"linear-gradient(111deg, #2E3042 0%, #1A1C23 100%)",chevronFillColor:"#FFF"},E[exports.LoyaltyType.InsiderElite]={icon:n.jsx(s.InsiderElite,{}),borderGradient:"linear-gradient(230.68deg, rgba(208, 175, 101, 0) 10.1%, #D0AF65 45.74%)",backgroundGradient:"linear-gradient(111deg, #2E3042 0%, #1A1C23 100%)",chevronFillColor:"#FFF"},E[exports.LoyaltyType.CtLoyalty]={icon:n.jsx(s.CtLoyalty,{}),borderGradient:"linear-gradient(230.68deg, rgba(243, 179, 39, 0) 10.1%, #F3B327 45.74%)",backgroundGradient:"linear-gradient(110.82deg, #FFF9EC 0%, #FEE3A8 100%)",chevronFillColor:"#1A1A1A"},E),J=function(i){var a=i.icon,c=i.handleChipClick,l=i.value,d=i.type,u=v(),p=u.loyaltyType,g=u.isUserLoggedIn,h=u.ravenPushCallback,f=u.ravenPageName,x=u.ravenEventName,m=u.ravenPayload,y=void 0===m?{}:m,_=r.useState(!1),C=_[0],b=_[1],k=r.useCallback(function(){var e;if(c)c();else{var n=null!==(e=M("utm_source"))&&void 0!==e?e:"organic",r={action_name:"".concat(d,"_account_click"),action_type:"click",u_utm_source:n,loyaltyType:A(p)};D(g,x,r,y,h,f);var t={supercoin:"/all-offers/supercoins/",wallet:"/accounts/wallet"};t[d]&&(window.location.href=t[d])}},[c,d,p,g,x,y,h,f]);return n.jsxs(t.Container,e.__assign({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",css:{height:32,paddingLeft:8,paddingRight:C?4:8,transition:"padding-right 0.2s ease-in-out",background:C?"#ffd7ca":"#ffe6df"},onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)},onClick:k},{children:[n.jsxs(t.Container,e.__assign({display:"flex",alignItems:"center",css:{gap:"4px"}},{children:[a,n.jsx(o.Typography,e.__assign({variant:"B3",isClickable:!0},{children:l}))]})),n.jsx(t.Container,e.__assign({display:"flex",alignItems:"center",css:{overflow:"hidden",maxWidth:C?16:0,transition:"max-width 0.2s ease-in-out, opacity 0.2s ease-in-out",opacity:C?1:0}},{children:n.jsx(s.HeaderChevronRight,{})}))]}))},Q=function(){var r,o=v(),i=o.loyaltyType,a=o.fkSupercoinBurnBalance,c=void 0===a?0:a,l=o.walletBalance,d=void 0===l?0:l,u=o.loyaltyLoading,p=o.superCoinsLoading,g=o.walletLoading,h=o.walletChipClick,f=o.supercoinsChipClick,x=o.loyaltyChipClick,m=o.hideWalletChip,y=o.hideSupercoinsChip,_=o.hideLoyaltyChip;return u||i&&K[i]&&!_||(p||!y)||(g||!m)?n.jsxs(t.Container,e.__assign({display:"flex",padding:"0 16px 16px 16px",justifyContent:"flex-start",css:{alignSelf:"stretch",gap:"4px"}},{children:[u?n.jsx(t.Container,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):i&&K[i]&&!_&&n.jsx(Y,{icon:K[i].icon,borderGradient:K[i].borderGradient,backgroundGradient:K[i].backgroundGradient,chevronFillColor:(null===(r=K[i])||void 0===r?void 0:r.chevronFillColor)||"#FFF",handleChipClick:x}),p?n.jsx(t.Container,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):!y&&n.jsx(J,{icon:n.jsx(s.Supercoin,{width:20,height:20}),value:c,handleChipClick:f,type:"supercoin"}),g?n.jsx(t.Container,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):!m&&n.jsx(J,{icon:n.jsx(s.Wallet,{width:20,height:20}),value:d,handleChipClick:h,type:"wallet"})]})):null},Z=function(i){var c=i.isOpen,l=v(),d=l.handleLogoutClick,u=l.userName,p=l.userMobileNumber,g=l.countryCode,h=l.userDetailsLoading,f=l.loyaltyType,x=l.isUserLoggedIn,m=l.ravenEventName,y=l.ravenPageName,_=l.ravenPayload,C=void 0===_?{}:_,b=l.ravenPushCallback,k=T(c).containerRef,w=r.useMemo(function(){return{userGreeting:u?"Hello ".concat(u,"!"):"",phoneNumber:g&&p?"".concat(g," ").concat(p):""}},[u,p,g]),j=w.userGreeting,F=w.phoneNumber,E=function(e){var n;return{action_name:e.toLowerCase().replace(/[\s-]/g,"")+"_account_click",action_type:"click",u_utm_source:null!==(n=M("utm_source"))&&void 0!==n?n:"organic",loyalty_type:A(f)}},L=r.useCallback(function(e,n){D(x,m,E(e),C,b,y),window.location.href=n},[x,m,C,b,y]);r.useCallback(function(){D(x,m,E(U),C,b,y),d()},[x,m,C,b,y,d]);var I=r.useCallback(function(){var e=document.getElementById(z),n=document.getElementById(X);if(e&&n){var r=e.getBoundingClientRect().right;n.style.left="".concat(r-328,"px")}},[]);r.useEffect(function(){I()},[I]);var P;return n.jsxs(t.Container,e.__assign({id:X,ref:k,display:"flex",flexDirection:"column",borderRadius:"16px",zIndex:1002,top:"76px",position:"fixed",css:{opacity:0,overflow:"hidden"},width:"".concat(328,"px"),background:"#FFF1EC"},{children:[n.jsx(t.Container,e.__assign({padding:"16px",height:"76px"},{children:(P=function(r,i,a,s){return n.jsx(o.Typography,e.__assign({variant:a,color:s},{children:r?n.jsx(t.Container,{height:"HM3"===a?"18px":"12px",width:"HM3"===a?"140px":"200px",backgroundColor:"#efefef",borderRadius:"8px"}):i}))},n.jsx(t.Container,e.__assign({display:"flex",flexDirection:"column",css:{gap:"4px"}},{children:j?n.jsxs(n.Fragment,{children:[P(h,j,"HM3","primary"),P(h,"".concat(q," ").concat(F),"P3","subheading")]}):n.jsxs(n.Fragment,{children:[P(h,q,"P3","subheading"),P(h,F,"HM3","primary")]})})))})),n.jsx(Q,{}),n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"column",padding:"8px",backgroundColor:"white",rowGap:"8px",css:{borderBottomLeftRadius:12,borderBottomRightRadius:12}},{children:[V.map(function(r){var i=r.text,a=r.icon,s=r.redirectionLink;return n.jsx(t.Container,e.__assign({padding:"8px",borderRadius:"8px",cursor:"pointer",onClick:function(){return L(i,s)},css:N},{children:n.jsxs(t.Container,e.__assign({display:"flex",cursor:"pointer",css:{columnGap:"8px"}},{children:[a,n.jsx(o.Typography,e.__assign({variant:"P1",css:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:i}))]}))}),"account-option-".concat(i))}),n.jsx(a.Divider,{css:{borderBottom:"1px dashed #E6E6E6"}}),n.jsxs(t.Container,e.__assign({display:"flex",padding:"8px",borderRadius:"8px",cursor:"pointer",columnGap:"8px",onClick:d,css:B},{children:[n.jsx(s.Signout,{height:24,width:24}),n.jsx(o.Typography,e.__assign({variant:"P1",css:{display:"flex",alignItems:"center",cursor:"pointer"},color:"warning"},{children:U}))]}))]}))]}))},$=function(){var i=v(),a=i.isNovacThemeEnabled,c=i.ravenEventName,l=i.ravenPayload,d=void 0===l?{}:l,u=i.ravenPushCallback,p=i.isUserLoggedIn,g=i.loyaltyType,h=i.ravenPageName,f=L({openDelay:0}),m=f.isDropdownVisible,y=f.handleOnMouseEnter,_=f.handleOnMouseLeave,b=f.handleDropdownMouseEnter,k=f.handleDropdownMouseLeave,w=r.useState(!1),j=w[0],F=w[1];r.useEffect(function(){var e=function(){F(window.scrollY>=50)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]);var E=a&&!j?x.NOVAC:x.DEFAULT,T=E.hoverColor,I=E.typographyColor,N=r.useCallback(function(){var e,n=null!==(e=M("utm_source"))&&void 0!==e?e:"organic",r={action_name:"".concat(W.toLowerCase().replace(/[\s-]/g,""),"_header_hover"),action_type:"hover",u_utm_source:n,loyalty_type:A(g)};D(p,c,r,d,u,h)},[p,c,d,u,h,g]);return n.jsxs(t.Container,{children:[n.jsxs(t.Container,e.__assign({display:"flex",padding:"8px 12px",alignItems:"center",borderRadius:"12px",height:"100%",cursor:"pointer",css:{columnGap:8,height:64},onMouseEnter:function(){y(0),N()},onMouseLeave:_,id:z},{children:[n.jsx(s.MyAccount,{color:m?T:I}),n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center"},{children:[n.jsx(o.Typography,e.__assign({variant:"B2",css:{cursor:"pointer"},colorCode:m?T:I},{children:W})),n.jsx(s.ChevronDown,{width:20,height:20,fill:m?T:I})]}))]})),n.jsx(C,e.__assign({show:m,marginTop:"64px",handleDropdownMouseEnter:b,handleDropdownMouseLeave:k,onMaskClick:k},{children:n.jsx(Z,{isOpen:m})}))]})},ee=function(){var c,l=v(),d=l.onLoginButtonClick,u=l.showAllLobs,p=void 0!==u&&u,h=l.isUserLoggedIn,f=l.loyaltyType,m=l.isNovacThemeEnabled,y=void 0!==m&&m,b=l.ravenPayload,k=void 0===b?{}:b,w=l.ravenPushCallback,j=l.ravenPageName,F=l.ravenEventName,E=r.useState(!1),T=E[0],I=E[1];r.useEffect(function(){var e=function(){I(window.scrollY>=50)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]);var N,B=y&&!T?x.NOVAC:x.DEFAULT,P=B.headerBackground,R=B.logoFill,S=B.loginButtonColorVariant,H=B.hoverColor,O=B.fkcompanyColor,V=B.typographyColor,U=L({openDelay:0}),W=U.isDropdownVisible,q=U.hoveredElemIndex,z=U.handleOnMouseEnter,X=U.handleOnMouseLeave,Y=U.handleDropdownMouseEnter,K=U.handleDropdownMouseLeave,J=null!==(c=M("utm_source"))&&void 0!==c?c:"organic",Q=r.useCallback(function(e,n){return{action_name:e,action_type:n,u_utm_source:J,loyalty_type:A(f)}},[J,f]),Z=r.useCallback(function(e){if(e.isClickable&&e.link){var n="".concat(e.text.toLowerCase().replace(/\s/g,""),"_header_click"),r=Q(n,"click");D(h,F,r,k,w,j),window.location.href=e.link}},[Q,h,F,k,w,j]),ee=r.useCallback(function(){var e=Q("home_header_click","click");D(h,F,e,k,w,j),window.location.href="/"},[Q,h,F,k,w,j]),ne=r.useCallback(function(e){var n="".concat(e.text.toLowerCase().replace(/\s/g,""),"_header_hover"),r=Q(n,"hover");D(h,F,r,k,w,j)},[Q,h,F,k,w,j]);return n.jsxs(n.Fragment,{children:[n.jsx(t.Container,e.__assign({display:"flex",top:0,position:"sticky",width:"100%",alignItems:"center",justifyContent:"center",zIndex:1e3,height:"64px",background:P,css:{gap:"24px",flexShrink:0,borderBottom:"transparent"===P?"":"1px solid #E6E6E6",transition:"background-color 0.3s ease-in-out, border-bottom 0.3s ease-in-out"}},{children:n.jsxs(t.Container,e.__assign({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 28px",flex:1,css:{gap:"24px",maxWidth:1440}},{children:[n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",cursor:"pointer",onClick:ee},{children:[n.jsx(s.CTLogo,{fillColor:R}),n.jsx(a.Divider,{css:{width:12,marginLeft:2,marginRight:2,transform:"rotate(90deg)",borderBottom:"1px solid #e0e0e0"}}),n.jsx(s.Fkcompany,{color:O})]})),n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:"24px"},{children:[n.jsx(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:"4px"},{children:g.map(function(r,i){var a=r.text,s=r.lefticon,c=r.rightIcon,l=r.isHoverable,d=q===i;return n.jsxs(t.Container,{children:[n.jsxs(t.Container,e.__assign({onMouseEnter:function(){z(i),r.isHoverable&&ne(r)},onMouseLeave:X,display:"flex",flexDirection:"row",alignItems:"center",padding:"8px 12px 8px 12px",cursor:"pointer",position:"relative",columnGap:8,height:"64px",onClick:function(){return Z(r)}},{children:[n.jsx(s,{color:d?H:V}),n.jsxs(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center"},{children:[n.jsx(o.Typography,e.__assign({variant:"B2",colorCode:d?H:V,isClickable:!0},{children:a})),c&&n.jsx(c,{width:20,height:20,fill:d?H:V})]}))]}),"nav-option-".concat(i)),n.jsx(C,e.__assign({show:q===i&&l&&W,marginTop:"64px",handleDropdownMouseEnter:Y,handleDropdownMouseLeave:K,onMaskClick:K},{children:n.jsx(G,{isOpen:q===i&&l&&W})}))]})})})),h&&n.jsx(a.Divider,{css:{width:12,margin:"0 -18px",transform:"rotate(90deg)",borderBottom:"1px solid #e0e0e0"}}),n.jsx(t.Container,{children:h?n.jsx(t.Container,e.__assign({display:"flex",flexDirection:"row",alignItems:"center"},{children:n.jsx($,{})})):n.jsx(i.Button,e.__assign({onClick:d,css:e.__assign({width:153,height:40},(N="transparent"===P,N?{backgroundColor:"transparent !important","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.25)!important"}}:{backgroundColor:"transparent !important","&:hover":{backgroundColor:"#F3F3F3 !important"}})),loading:!1,color:S,variant:i.ButtonVariant.OUTLINE},{children:"Log in"}))})]}))]}))})),p&&n.jsx(_,{})]})};exports.Header=function(r){return n.jsx(y,e.__assign({value:r},{children:n.jsx(ee,{})}))};
2
2
  //# sourceMappingURL=ct-design-header.browser.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-design-header.browser.cjs.js","sources":["../packages/components/Header/src/constants.ts","../packages/components/Header/src/context/HeaderProvider.tsx","../packages/components/Header/src/LobsHeader/index.tsx","../packages/components/Header/src/HeaderAnimatedMask /index.tsx","../packages/components/Header/src/HeaderAnimatedMask /hooks.ts","../packages/components/Header/src/hooks/useHoverDropdown.tsx","../packages/components/Header/src/LobsHeader/type.ts","../packages/components/Header/src/type.ts","../packages/components/Header/src/hooks/useDropdownAnimation.tsx","../packages/components/Header/src/utils.ts","../packages/components/Header/src/styles.tsx","../packages/components/Header/src/BusinessDropdown/index.tsx","../packages/components/Header/src/UserAccount/accountOptions.tsx","../packages/components/Header/src/RewardsSection/LoyaltyChips.tsx","../packages/components/Header/src/RewardsSection/loyaltyTypes.tsx","../packages/components/Header/src/RewardsSection/index.tsx","../packages/components/Header/src/UserAccount/UserAccountDropdown.tsx","../packages/components/Header/src/UserAccount/index.tsx","../packages/components/Header/src/Header.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["RAVEN_PAGE_NAMES","RAVEN_PLATFORMS","NAVBAR_OPTIONS","lefticon","Offers","text","ravenActionName","isHoverable","isClickable","link","BusinessBag","rightIcon","ChevronDown","MyTrips","SupportIcon","LOB_DATA","title","image","bdConfig","subtitle","details","THEME_CONFIG","NOVAC","headerBackground","hoverColor","logoFill","fkcompanyColor","typographyColor","loginButtonColorVariant","ButtonColor","NEUTRAL","DEFAULT","PRIMARY","HeaderContext","createContext","undefined","useHeaderContext","context","useContext","Error","HeaderProvider","_a","value","children","_jsx","Provider","__assign","LobsHeader","selectedLOB","jsx","Container","display","alignItems","justifyContent","padding","background","top","zIndex","css","gap","map","item","index","isSelected","href","style","textDecoration","pointerEvents","_jsxs","width","height","cursor","border","borderRadius","transition","src","alt","Typography","variant","TypographyVariant","HM3","B1","HeaderAnimatedMask","onMaskClick","show","marginTop","handleDropdownMouseEnter","handleDropdownMouseLeave","useEffect","document","body","overflow","showFlagProxy","unmountDelay","useState","showComponent","setShowComponent","timerRef","useRef","current","setTimeout","clearTimeout","useDelayedUnmount","triggerTransition","isMounted","hasTransitionedIn","setHasTransitionedIn","timeoutIdRef","useMountTransition","triggerOpenTransition","_Fragment","id","position","backgroundColor","opacity","left","onClick","onMouseEnter","onMouseLeave","LOBS_VALUES","LoyaltyType","useHoverDropdown","_b","_c","closeDelay","closeDelayArg","_d","openDelay","Math","max","_e","isDropdownVisible","setIsDropdownVisible","_f","hoveredElemIndex","setHoveredElemIndex","timeoutRef","openTimeoutRef","cancelElementHover","handleOnMouseEnter","useCallback","handleOnMouseLeave","handleMouseLeaveWindow","event","clientY","window","addEventListener","removeEventListener","useDropdownAnimation","isOpen","containerRef","fullHeight_1","scrollHeight","maxHeight","concat","requestAnimationFrame","openDropdown","fullHeight","closeDropdown","stringifyPayload","payload","keys","Object","numericValues","forEach","key","includes","Number","getQueryParam","queryParam","URLSearchParams","location","search","get","ravenLoyaltyTypes","loyaltyType","ravenSDKTrigger","isUserLoggedIn","eventName","ravenPayload","customRavenPayload","ravenPushCallback","pageName","commonPayload","page_name","platform","DESKTOP","login_status","domain","host","newRavenPayload","parsedCustomRavenPayload","finalPayload","length","eventData","err","console","error","accountOptionHoverStyles","logoutButtonHoverStyles","moveRight","keyframes","templateObject_1","__makeTemplateObject","moveRightAgain","templateObject_2","arrowContainerStyles","AnimatedArrow","className","__spreadArray","Array","_","ArrowRight","BDHoverContainer","styled","div","withConfig","displayName","componentId","BusinessDropdownContent","ravenPageName","ravenEventName","leftPosition","setLeftPosition","updatePosition","newLeft","innerWidth","offsetWidth","handleBusinessDropdownClick","utmSource","defaultPayload","action_name","toLowerCase","action_type","u_utm_source","loyalty_type","jsxs","ref","boxShadow","flexDirection","columnGap","rowGap","color","ACCOUNT_OPTIONS_POPUP_CONFIG","icon","MyAccount","redirectionLink","SavedCard","Travellers","HiFive","Wallet","SettingsCog","PrivacyRights","SIGN_OUT_TEXT","MY_ACCOUNT_TEXT","LOGGEDIN_USER_TEXT","HEADER_ACCOUNTS_OPTIONS_OPEN_BTN_ID","ACCOUNT_OPTIONS_CONTAINER_ID","LoyaltyChip","borderGradient","backgroundGradient","handleChipClick","chevronFillColor","isHovered","setIsHovered","handleClick","paddingLeft","paddingRight","content","inset","WebkitMask","WebkitMaskComposite","maskComposite","maxWidth","HeaderChevronRight","LOYALTY_DATA","FkVip","FkPremium","InsiderIcon","InsiderElite","CtLoyalty","ExpandableItem","type","handleDefaultClick","redirectUrls","supercoin","wallet","RewardsSection","selectedLoyaltyType","superCoinBalance","walletBalance","loyaltyLoading","superCoinsLoading","walletLoading","walletChipClick","supercoinsChipClick","loyaltyChipClick","hideWalletChip","hideSupercoinsChip","hideLoyaltyChip","alignSelf","Supercoin","AccountDropdownContent","handleLogoutClick","userName","userMobileNumber","countryCode","userDetailsLoading","useMemo","userGreeting","phoneNumber","generateRavenPayload","actionName","replace","handleAccountOptionsClick","redirectLink","positionAccountOptionsDiv","headerAccBtn","getElementById","accountOptionsElem","headerBtnRight","getBoundingClientRect","right","renderContent","loading","borderBottomLeftRadius","borderBottomRightRadius","Divider","borderBottom","Signout","UserAccount","isNovacThemeEnabled","scrolled","setScrolled","handleScroll","scrollY","theme","triggerRavenEventOnHover","colorCode","fill","HeaderContent","onLoginButtonClick","showAllLobs","saleThemeEnabled","headerTheme","_g","createPayload","actionType","handleNavbarOptionsClick","option","handleHomeClick","flexShrink","flex","CTLogo","fillColor","marginLeft","marginRight","transform","Fkcompany","LeftIcon","RightIcon","margin","Button","ButtonVariant","OUTLINE","props"],"mappings":"gYAuIYA,EAMAC,SAvHCC,EAAiC,CAC5C,CACEC,SAAUC,EAAMA,OAChBC,KAAM,SACNC,gBAAiB,SACjBC,aAAa,EACbC,aAAa,EACbC,KAvBsB,kCAyBxB,CACEN,SAAUO,EAAWA,YACrBL,KAAM,WACNC,gBAAiB,WACjBK,UAAWC,EAAWA,YACtBL,aAAa,GAEf,CACEJ,SAAUU,EAAOA,QACjBR,KAAM,WACN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W,OAGd9R,EAAAA,IAAC8T,EAAMA,OAAA5T,WAAA,CACLsE,QAASiO,EACT3R,IAAGZ,EAAAA,SAAA,CACDuB,MAAO,IACPC,OAAQ,KRpLgBiR,EQqL4B,gBAArBhU,ERpL7CgU,EACK,CACLtO,gBAAiB,yBACjB,UAAW,CACTA,gBAAiB,wCAId,CACLA,gBAAiB,yBACjB,UAAW,CACTA,gBAAiB,yBQ2KPmN,SAAS,EACTlF,MAAOtN,EACPkD,QAAS6R,EAAaA,cAACC,mBlBtFd,yBkB+FpBtB,GAAe1S,EAAAK,IAACF,EAAa,CAAA,KAGpC,iBAlOuC,SAAC8T,GACtC,OACEjU,EAAAK,IAACT,EAAcM,WAAA,CAACJ,MAAOmU,GAAK,CAAAlU,SAC1BC,EAAAA,IAACwS,GAAgB,MAGvB"}
1
+ {"version":3,"file":"ct-design-header.browser.cjs.js","sources":["../packages/components/Header/src/constants.ts","../packages/components/Header/src/context/HeaderProvider.tsx","../packages/components/Header/src/LobsHeader/index.tsx","../packages/components/Header/src/HeaderAnimatedMask /index.tsx","../packages/components/Header/src/HeaderAnimatedMask /hooks.ts","../packages/components/Header/src/hooks/useHoverDropdown.tsx","../packages/components/Header/src/LobsHeader/type.ts","../packages/components/Header/src/type.ts","../packages/components/Header/src/hooks/useDropdownAnimation.tsx","../packages/components/Header/src/utils.ts","../packages/components/Header/src/styles.tsx","../packages/components/Header/src/BusinessDropdown/index.tsx","../packages/components/Header/src/UserAccount/accountOptions.tsx","../packages/components/Header/src/RewardsSection/LoyaltyChips.tsx","../packages/components/Header/src/RewardsSection/loyaltyTypes.tsx","../packages/components/Header/src/RewardsSection/index.tsx","../packages/components/Header/src/UserAccount/UserAccountDropdown.tsx","../packages/components/Header/src/UserAccount/index.tsx","../packages/components/Header/src/Header.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["RAVEN_PAGE_NAMES","RAVEN_PLATFORMS","NAVBAR_OPTIONS","lefticon","Offers","text","ravenActionName","isHoverable","isClickable","link","BusinessBag","rightIcon","ChevronDown","MyTrips","SupportIcon","LOB_DATA","title","image","bdConfig","subtitle","details","THEME_CONFIG","NOVAC","headerBackground","hoverColor","logoFill","fkcompanyColor","typographyColor","loginButtonColorVariant","ButtonColor","NEUTRAL","DEFAULT","PRIMARY","HeaderContext","createContext","undefined","useHeaderContext","context","useContext","Error","HeaderProvider","_a","value","children","_jsx","Provider","__assign","LobsHeader","selectedLOB","jsx","Container","display","alignItems","justifyContent","padding","background","top","zIndex","css","gap","map","item","index","isSelected","href","style","textDecoration","pointerEvents","_jsxs","width","height","cursor","border","borderRadius","transition","src","alt","Typography","variant","TypographyVariant","HM3","B1","HeaderAnimatedMask","onMaskClick","show","marginTop","handleDropdownMouseEnter","handleDropdownMouseLeave","useEffect","document","body","overflow","showFlagProxy","unmountDelay","useState","showComponent","setShowComponent","timerRef","useRef","current","setTimeout","clearTimeout","useDelayedUnmount","triggerTransition","isMounted","hasTransitionedIn","setHasTransitionedIn","timeoutIdRef","useMountTransition","triggerOpenTransition","_Fragment","id","position","backgroundColor","opacity","left","onClick","onMouseEnter","onMouseLeave","LOBS_VALUES","LoyaltyType","useHoverDropdown","_b","_c","closeDelay","closeDelayArg","_d","openDelay","Math","max","_e","isDropdownVisible","setIsDropdownVisible","_f","hoveredElemIndex","setHoveredElemIndex","timeoutRef","openTimeoutRef","cancelElementHover","handleOnMouseEnter","useCallback","handleOnMouseLeave","handleMouseLeaveWindow","event","clientY","window","addEventListener","removeEventListener","useDropdownAnimation","isOpen","containerRef","fullHeight_1","scrollHeight","maxHeight","concat","requestAnimationFrame","openDropdown","fullHeight","closeDropdown","stringifyPayload","payload","keys","Object","numericValues","forEach","key","includes","Number","getQueryParam","queryParam","URLSearchParams","location","search","get","ravenLoyaltyTypes","loyaltyType","ravenSDKTrigger","isUserLoggedIn","eventName","ravenPayload","customRavenPayload","ravenPushCallback","pageName","commonPayload","page_name","platform","DESKTOP","login_status","domain","host","newRavenPayload","parsedCustomRavenPayload","finalPayload","length","eventData","err","console","error","accountOptionHoverStyles","logoutButtonHoverStyles","moveRight","keyframes","templateObject_1","__makeTemplateObject","moveRightAgain","templateObject_2","arrowContainerStyles","AnimatedArrow","className","__spreadArray","Array","_","ArrowRight","BDHoverContainer","styled","div","withConfig","displayName","componentId","BusinessDropdownContent","ravenPageName","ravenEventName","leftPosition","setLeftPosition","updatePosition","newLeft","innerWidth","offsetWidth","handleBusinessDropdownClick","utmSource","defaultPayload","action_name","toLowerCase","action_type","u_utm_source","loyalty_type","jsxs","ref","boxShadow","flexDirection","columnGap","rowGap","color","ACCOUNT_OPTIONS_POPUP_CONFIG","icon","MyAccount","redirectionLink","SavedCard","Travellers","HiFive","Wallet","SettingsCog","PrivacyRights","SIGN_OUT_TEXT","MY_ACCOUNT_TEXT","LOGGEDIN_USER_TEXT","HEADER_ACCOUNTS_OPTIONS_OPEN_BTN_ID","ACCOUNT_OPTIONS_CONTAINER_ID","LoyaltyChip","borderGradient","backgroundGradient","handleChipClick","chevronFillColor","isHovered","setIsHovered","handleClick","paddingLeft","paddingRight","content","inset","WebkitMask","WebkitMaskComposite","maskComposite","maxWidth","HeaderChevronRight","LOYALTY_DATA","FkVip","FkPremium","InsiderIcon","InsiderElite","CtLoyalty","ExpandableItem","type","handleDefaultClick","redirectUrls","supercoin","wallet","RewardsSection","selectedLoyaltyType","superCoinBalance","walletBalance","loyaltyLoading","superCoinsLoading","walletLoading","walletChipClick","supercoinsChipClick","loyaltyChipClick","hideWalletChip","hideSupercoinsChip","hideLoyaltyChip","alignSelf","Supercoin","AccountDropdownContent","handleLogoutClick","userName","userMobileNumber","countryCode","userDetailsLoading","useMemo","userGreeting","phoneNumber","generateRavenPayload","actionName","replace","handleAccountOptionsClick","redirectLink","positionAccountOptionsDiv","headerAccBtn","getElementById","accountOptionsElem","headerBtnRight","getBoundingClientRect","right","renderContent","loading","borderBottomLeftRadius","borderBottomRightRadius","Divider","borderBottom","Signout","UserAccount","isNovacThemeEnabled","scrolled","setScrolled","handleScroll","scrollY","theme","triggerRavenEventOnHover","colorCode","fill","HeaderContent","onLoginButtonClick","showAllLobs","saleThemeEnabled","headerTheme","_g","createPayload","actionType","handleNavbarOptionsClick","option","handleHomeClick","flexShrink","flex","CTLogo","fillColor","marginLeft","marginRight","transform","Fkcompany","LeftIcon","RightIcon","margin","Button","ButtonVariant","OUTLINE","props"],"mappings":"gYAwIYA,EAMAC,SAxHCC,EAAiC,CAC5C,CACEC,SAAUC,EAAMA,OAChBC,KAAM,SACNC,gBAAiB,SACjBC,aAAa,EACbC,aAAa,EACbC,KAvBsB,kCAyBxB,CACEN,SAAUO,EAAWA,YACrBL,KAAM,WACNC,gBAAiB,WACjBK,UAAWC,EAAWA,YACtBL,aAAa,GAEf,CACEJ,SAAUU,EAAOA,QACjBR,KAAM,WACNC,gBAAiB,UACjBC,aAAa,EACbC,aAAa,EACbC,KArCwB,kBAuC1B,CACEN,SAAUW,EAAWA,YACrBT,KAAM,UACNC,gBAAiB,UACjBC,aAAa,EACbC,aAAa,EACbC,KA3CuB,aAuDdM,EAAW,CACtB,CACEC,MATO,UAUPC,MACE,8HACFR,KAAM,YAER,CACEO,MAdM,SAeNC,MACE,6HACFR,KAAM,WAER,CACEO,MAjBK,QAkBLC,MACE,4HACFR,KAAM,QASR,CACEO,MA/BQ,WAgCRC,MACE,+HACFR,KAAM,cAYGS,EAA4B,CACvC,CACEF,MAAO,WACPG,SAAU,oBACVC,QAAS,iFACTX,KAAM,gCAER,CACEO,MAAO,cACPG,SAAU,oCACVC,QAAS,4CACTX,KAAM,6BACNH,gBAAiB,OAEnB,CACEU,MAAO,OACPG,SAAU,uBACVC,QAAS,kEACTX,KAAM,mCAER,CACEO,MAAO,MACPG,SAAU,iBACVC,QAAS,yEACTX,KAAM,8DAMET,QAIXA,sBAAA,GAJWA,EAAAA,2BAAAA,QAAAA,iBAIX,CAAA,IAHC,aAAA,mBACAA,EAAA,YAAA,aACAA,EAAA,aAAA,e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EAACK,IAAAiC,cACCE,KAAMkD,IAAqBxE,GAASvD,GAAe4H,EACnD9C,UAAU,OACVC,yBAA0BA,EAC1BC,yBAA0BA,EAC1BJ,YAAaI,GAAwB,CAAA5C,SAErCC,MAAC+K,EAAuB,CACtBtE,OAAQf,IAAqBxE,GAASvD,GAAe4H,eAOhE8C,GACCrI,EAACK,IAAAsR,UACC,CAAA7Q,IAAK,CACHW,MAAO,GACPoS,OAAQ,UACRJ,UAAW,gBACX7B,aAAc,uBAIpB5R,EAAAK,IAACC,YACE,CAAAP,SAAAsI,EACCrI,MAACM,EAAAA,UAAUJ,EAAAA,SAAA,CAAAK,QAAQ,OAAO4L,cAAc,MAAM3L,WAAW,UAAQ,CAAAT,SAC/DC,EAAAA,IAAC8R,EAAW,OAGd9R,EAAAA,IAAC8T,EAAMA,OAAA5T,WAAA,CACLsE,QAASiO,EACT3R,IAAGZ,EAAAA,SAAA,CACDuB,MAAO,IACPC,OAAQ,KRpLgBiR,EQqL4B,gBAArBhU,ERpL7CgU,EACK,CACLtO,gBAAiB,yBACjB,UAAW,CACTA,gBAAiB,wCAId,CACLA,gBAAiB,yBACjB,UAAW,CACTA,gBAAiB,yBQ2KPmN,SAAS,EACTlF,MAAOtN,EACPkD,QAAS6R,EAAaA,cAACC,mBlBrFd,yBkB8FpBtB,GAAe1S,EAAAK,IAACF,EAAa,CAAA,KAGpC,iBAlOuC,SAAC8T,GACtC,OACEjU,EAAAK,IAACT,EAAcM,WAAA,CAACJ,MAAOmU,GAAK,CAAAlU,SAC1BC,EAAAA,IAACwS,GAAgB,MAGvB"}
@@ -1,2 +1,2 @@
1
- import{__assign as e,__makeTemplateObject as n,__spreadArray as r}from"tslib";import{jsx as o,jsxs as t,Fragment as i}from"react/jsx-runtime";import{createContext as a,useContext as c,useState as l,useRef as s,useEffect as d,useCallback as u,useMemo as p}from"react";import{Container as h}from"@cleartrip/ct-design-container";import{Typography as f,TypographyVariant as g}from"@cleartrip/ct-design-typography";import{ButtonColor as m,Button as v,ButtonVariant as x}from"@cleartrip/ct-design-button";import{Divider as y}from"@cleartrip/ct-design-divider";import{Offers as b,BusinessBag as w,ChevronDown as k,MyTrips as C,SupportIcon as F,ArrowRight as _,MyAccount as E,SavedCard as L,Travellers as I,HiFive as M,Wallet as T,SettingsCog as D,PrivacyRights as N,HeaderChevronRight as A,FkVip as P,FkPremium as B,InsiderIcon as H,InsiderElite as G,CtLoyalty as R,Supercoin as O,Signout as j,CTLogo as S,Fkcompany as U}from"@cleartrip/ct-design-icons";import V,{keyframes as z}from"styled-components";var W,X,Y=[{lefticon:b,text:"Offers",ravenActionName:"offers",isHoverable:!1,isClickable:!0,link:"all-offers/?categories=flights"},{lefticon:w,text:"Business",ravenActionName:"business",rightIcon:k,isHoverable:!0},{lefticon:C,text:"My Trips",ravenActionName:"mytrips",isHoverable:!1,isClickable:!0,link:"/account/trips"},{lefticon:F,text:"Support",ravenActionName:"support",isHoverable:!1,isClickable:!0,link:"/support"}],K=[{title:"Flights",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Flights.png?cache=true",link:"/flights"},{title:"Hotels",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Hotels.png?cache=true",link:"/hotels"},{title:"Buses",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Buses.png?cache=true",link:"/bus"},{title:"Trains",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Trains.png?cache=true",link:"/pages/trains/appOnly"},{title:"Packages",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Packages.png?cache=true",link:"/holidays"}],q=[{title:"AgentBox",subtitle:"For travel agents",details:"One-stop travel solution offering the best deals to our travel agency partners",link:"https://agency.cleartrip.com"},{title:"OutOfOffice",subtitle:"For startups, corporates and SMEs",details:"Manage corporate business travel, smartly",link:"https://ooo.cleartrip.com/",ravenActionName:"ooo"},{title:"MICE",subtitle:"For corporate events",details:"An end-to-end management solution for all your corporate events",link:"https://business.cleartrip.com/"},{title:"API",subtitle:"For developers",details:"Unlock seamless integration and scale with our powerful, reliable APIs",link:"https://business.cleartrip.com/api-customers/more-details"}];!function(e){e.UNIFIED_HOME="unified_homepage",e.HOTELS_HOME="hotel_home",e.FLIGHTS_HOME="flights_home"}(W||(W={})),function(e){e.DESKTOP="desktop"}(X||(X={}));var J={NOVAC:{headerBackground:"transparent",hoverColor:"#FDBA12",logoFill:"#FFF",fkcompanyColor:"#FFF",typographyColor:"#FFF",loginButtonColorVariant:m.NEUTRAL},DEFAULT:{headerBackground:"#FFFFFF",hoverColor:"#FF4F17",logoFill:"#FF4F17",fkcompanyColor:"#1A1A1A",typographyColor:"#1A1A1A",loginButtonColorVariant:m.PRIMARY}},Q=a(void 0),Z=function(){var e=c(Q);if(!e)throw new Error("useHeaderContext must be used within a HeaderProvider");return e},$=function(n){var r=n.value,t=n.children;return o(Q.Provider,e({value:r},{children:t}))},ee=function(){var n=Z().selectedLOB;return o(h,e({display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",background:"#F7FAFF",top:"64px",zIndex:2,css:{gap:24}},{children:K.map(function(r,i){var a=r.title,c=r.link,l=r.image,s=n===a;return o("a",e({href:s?void 0:c,style:{textDecoration:"none",pointerEvents:s?"none":"auto"}},{children:t(h,e({display:"flex",alignItems:"center",width:"116px",height:"48px",justifyContent:"center",cursor:"pointer",css:{gap:8,background:s?"#FFFFFF":"transparent",border:s?"1px solid #E6E6E6":"",borderRadius:"40px",padding:"8px 16px 8px 8px",transition:"background 0.2s ease"}},{children:[o("img",{src:l,alt:a,width:32,height:32}),o(f,e({variant:s?g.HM3:g.B1,isClickable:!0},{children:a}))]}),i)}))})}))};function ne(n){var r=n.children,a=n.onMaskClick,c=n.show,u=n.marginTop,p=n.handleDropdownMouseEnter,f=n.handleDropdownMouseLeave;d(function(){return c&&(document.body.style.overflow="hidden"),function(){document.body.style.overflow="initial"}},[c]);var g=function(e,n){var r=l(e),o=r[0],t=r[1],i=s();return d(function(){return e?t(e):i.current=setTimeout(function(){t(!1)},n),function(){(null==i?void 0:i.current)&&clearTimeout(i.current)}},[e]),o}(c,300),m=function(e,n){var r=l(!1),o=r[0],t=r[1],i=s();return d(function(){return e&&!o?setTimeout(function(){t(!0)},0):!e&&o&&(i.current=setTimeout(function(){return t(!1)},n)),function(){i&&i.current&&clearTimeout(i.current)}},[n,e]),o}(c,100);return t(i,{children:[g&&o(h,{id:"mask-container",css:{position:"fixed",backgroundColor:"#000",opacity:m?.4:0,width:"100%",height:"100vh",left:0,top:u||0,zIndex:9,transition:"opacity 300ms ease-in"},onClick:a}),g&&o(h,e({onMouseEnter:p,onMouseLeave:f},{children:r}))]})}var re,oe,te,ie,ae,ce,le=function(e){var n=void 0===e?{}:e,r=n.closeDelay,o=void 0===r?0:r,t=n.openDelay,i=void 0===t?500:t,a=Math.max(o,150),c=l(!1),p=c[0],h=c[1],f=l(null),g=f[0],m=f[1],v=s(null),x=s(null),y=s(!1),b=u(function(e){v.current&&clearTimeout(v.current),x.current&&clearTimeout(x.current),y.current=!1,x.current=setTimeout(function(){h(!0),y.current||m(e)},i)},[i]),w=u(function(){y.current=!0,v.current=setTimeout(function(){h(!1),m(null)},a)},[a]),k=u(function(){v.current&&clearTimeout(v.current)},[]),C=u(function(){y.current=!0,(null==v?void 0:v.current)&&clearTimeout(v.current),v.current=setTimeout(function(){h(!1),m(null)},a)},[]);return d(function(){var e=function(e){e.clientY<=0&&(h(!1),m(null))};return window.addEventListener("mouseleave",e),function(){window.removeEventListener("mouseleave",e)}},[]),{isDropdownVisible:p,hoveredElemIndex:g,handleOnMouseEnter:b,handleOnMouseLeave:w,handleDropdownMouseEnter:k,handleDropdownMouseLeave:C}},se=function(e){var n=s(null);return d(function(){e?function(){if(n.current){var e=n.current.scrollHeight;n.current.style.maxHeight="".concat(e/2,"px"),n.current.style.opacity="0",requestAnimationFrame(function(){n.current&&(n.current.style.transition="max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",n.current.style.maxHeight="".concat(e,"px"),n.current.style.opacity="1")})}}():function(){if(n.current){var e=n.current.scrollHeight;n.current.style.transition="max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",n.current.style.maxHeight="".concat(e/2,"px"),n.current.style.opacity="0",setTimeout(function(){n.current&&(n.current.style.maxHeight="0px")},300)}}()},[e]),{containerRef:n}},de=function(e){var n=Object.keys(e),r=[];return n.forEach(function(n){r.includes(n)?e[n]=Number(e[n]):e[n]=""+e[n]}),e},ue=function(e){return"undefined"!=typeof window&&window?new URLSearchParams(window.location.search).get(e):""},pe=function(e){switch(e){case"FkVip":return"fk_vip";case"FkPremium":return"fk_plus_premium";case"InsiderIcon":return"myntra_insidericon";case"InsiderElite":return"myntra_insiderelite";default:return""}},he=function(n,r,o,t,i,a){var c;if("function"==typeof i){var l={page_name:a,platform:X.DESKTOP,login_status:n?"yes":"no",domain:null===(c=null===window||void 0===window?void 0:window.location)||void 0===c?void 0:c.host},s=de(o),d=de(t),u=e(e(e({},l),s),d);try{1===i.length?i({eventName:r,eventData:u}):i(r,u)}catch(e){return void console.error(e)}}else console.error("ravenPushCallback is not provided or is not a function")},fe={transition:"background-color 0.2s ease-in-out","&:hover":{backgroundColor:"#ECF3FF"}},ge={transition:"background-color 0.2s ease-in-out","&:hover":{backgroundColor:"#FBEFEF"}},me=z(re||(re=n(["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"],["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"]))),ve=z(oe||(oe=n(["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"],["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"]))),xe={display:"flex",backgroundColor:"black",transition:"background-color 200ms ease","flex-direction":"row",justifyContent:"center",width:"20px",height:"20px",overflow:"hidden",borderRadius:"50%"},ye=function(){return o(h,e({className:"bd-arrow-container-js",css:xe},{children:r([],Array(3),!0).map(function(n,r){return o(h,e({className:"bd-arrow-wrapper-js",display:"flex",alignItems:"center"},{children:o(_,{})}),r)})}))},be=V.div.withConfig({displayName:"BusinessDropdown__BDHoverContainer",componentId:"sc-1tsshe4-0"})(te||(te=n(["\n cursor: pointer;\n width: 200px;\n &:hover {\n .bd-arrow-container-js {\n background-color: rgba(255, 79, 23, 1);\n transition: color 200ms ease;\n }\n .bd-arrow-wrapper-js {\n animation: "," 200ms linear;\n display: flex;\n }\n .color-orange-on-hover-js {\n color: rgba(255, 79, 23, 1);\n transition: background-color 200ms ease;\n }\n }\n &:not(:hover) .bd-arrow-wrapper-js {\n animation: "," 200ms linear backwards;\n }\n"],["\n cursor: pointer;\n width: 200px;\n &:hover {\n .bd-arrow-container-js {\n background-color: rgba(255, 79, 23, 1);\n transition: color 200ms ease;\n }\n .bd-arrow-wrapper-js {\n animation: "," 200ms linear;\n display: flex;\n }\n .color-orange-on-hover-js {\n color: rgba(255, 79, 23, 1);\n transition: background-color 200ms ease;\n }\n }\n &:not(:hover) .bd-arrow-wrapper-js {\n animation: "," 200ms linear backwards;\n }\n"])),me,ve),we=function(n){var r=n.isOpen,i=Z(),a=i.isUserLoggedIn,c=i.ravenPushCallback,s=i.ravenPageName,p=i.ravenEventName,g=i.loyaltyType,m=i.ravenPayload,v=void 0===m?{}:m,x=l(0),y=x[0],b=x[1],w=se(r).containerRef;d(function(){var e=function(){if(w.current){var e=(window.innerWidth-(w.current.offsetWidth||0))/2;e!==y&&b(e)}};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[w,y]);var k=u(function(e,n,r){var o,t=null!==(o=ue("utm_source"))&&void 0!==o?o:"organic",i={action_name:r?"".concat(r,"_business_click"):n?"".concat(n.toLowerCase(),"_business_click"):"",action_type:"click",u_utm_source:t,loyalty_type:pe(g)};e&&(he(a,p,i,v,c,s),window.location.href=e)},[a,p,v,c,s,g]);return t(h,e({ref:w,backgroundColor:"#fff",top:"76px",position:"fixed",left:"".concat(y,"px"),borderRadius:24,boxShadow:"0px 8px 24px 0px rgba(26, 26, 26, 0.10)",width:"fit-content",zIndex:1002,css:{overflow:"hidden",opacity:0}},{children:[o(h,e({padding:"20px 24px 20px 24px",backgroundColor:"#FFF1EC"},{children:o(f,e({variant:"HM2"},{children:"Other business services"}))})),o(h,e({display:"flex",flexDirection:"row",padding:"24px",columnGap:"48px",width:"fit-content"},{children:q.map(function(n){var r=n.title,i=n.subtitle,a=n.details,c=n.link,l=n.ravenActionName;return t(be,e({className:"bd-hover-container-js",onClick:function(){return k(c,r,l)}},{children:[t(h,e({display:"flex",flexDirection:"column",rowGap:"4px"},{children:[t(h,e({display:"flex",flexDirection:"row",alignItems:"center",columnGap:"8px"},{children:[o(f,e({variant:"HM2",className:"color-orange-on-hover-js",css:{transition:"color 200ms ease"}},{children:r})),o(ye,{})]})),o(f,e({variant:"B3",css:{marginTop:"4px",opacity:.75}},{children:i}))]})),o(f,e({variant:"P3",color:"subheading",css:{marginTop:"12px"}},{children:a}))]}),r)})}))]}))},ke=[{text:"My Profile",icon:o(E,{width:24,height:24}),redirectionLink:"/accounts/profile"},{text:"My Trips",icon:o(C,{width:24,height:24}),redirectionLink:"/accounts/trips"},{text:"Saved Cards",icon:o(L,{}),redirectionLink:"/accounts/expressway"},{text:"Saved Travellers",icon:o(I,{width:24,height:24}),redirectionLink:"/account/travellers"},{text:"Hi-Five",icon:o(M,{}),redirectionLink:"/accounts/hi-five?src=fh"},{text:"Wallet",icon:o(T,{width:24,height:24}),redirectionLink:"/accounts/wallet"},{text:"Settings",icon:o(D,{width:24,height:24}),redirectionLink:"/account/settings"},{text:"Privacy Rights",icon:o(N,{}),redirectionLink:"accounts/personal-data-dashboard"}],Ce="Logout",Fe="My Account",_e="You are logged in with",Ee="header-acc-btn",Le="account-options",Ie=function(n){var r=n.icon,i=n.borderGradient,a=n.backgroundGradient,c=n.handleChipClick,s=n.chevronFillColor,d=Z(),p=d.loyaltyType,f=d.isUserLoggedIn,g=d.ravenPushCallback,m=d.ravenPageName,v=d.ravenPayload,x=void 0===v?{}:v,y=d.ravenEventName,b=l(!1),w=b[0],k=b[1],C=u(function(){var e;if(c)c();else{var n={action_name:"loyalty_account_click",action_type:"click",u_utm_source:null!==(e=ue("utm_source"))&&void 0!==e?e:"organic",loyaltyType:pe(p)};he(f,y,n,x,g,m),window.location.href="/all-offers/loyalty-october"}},[c,p,f,y,x,g,m]);return t(h,e({display:"flex",position:"relative",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",paddingLeft:"8px",paddingRight:w?"4px":"8px",css:{overflow:"hidden",height:32,paddingLeft:8,transition:"padding-right 0.2s ease-in-out"},onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onClick:C},{children:[o(h,{css:{content:'""',position:"absolute",inset:0,borderRadius:"inherit",background:a,zIndex:-2}}),o(h,{css:{content:'""',position:"absolute",inset:0,borderRadius:"inherit",padding:"1px",background:i,WebkitMask:"linear-gradient(white, white) content-box, linear-gradient(white, white)",WebkitMaskComposite:"destination-out",maskComposite:"exclude",zIndex:-1}}),o(h,e({display:"flex",alignItems:"center",position:"relative"},{children:r})),o(h,e({display:"flex",alignItems:"center",css:{overflow:"hidden",maxWidth:w?16:0,transition:"max-width 0.2s ease-in-out, opacity 0.2s ease-in-out",opacity:w?.5:0}},{children:o(A,{color:s})}))]}))};!function(e){e.FLIGHTS="Flights",e.HOTELS="Hotels",e.BUSES="Buses",e.TRAINS="Trains",e.PACKAGES="Packages"}(ie||(ie={})),function(e){e.FkVip="FkVip",e.FkPremium="FkPremium",e.InsiderIcon="InsiderIcon",e.InsiderElite="InsiderElite",e.CtLoyalty="CtLoyalty"}(ae||(ae={}));var Me=((ce={})[ae.FkVip]={icon:o(P,{}),borderGradient:"linear-gradient(222.13deg, rgba(243, 179, 39, 0) 2.08%, #F3B327 85.17%)",backgroundGradient:"linear-gradient(111deg, #360042 0%, #540061 100%)",chevronFillColor:"#FFF"},ce[ae.FkPremium]={icon:o(B,{}),borderGradient:"linear-gradient(230.68deg, rgba(243, 179, 39, 0) 10.1%, #F3B327 45.74%)",backgroundGradient:"linear-gradient(180deg, #04176A 0%, #082395 100%)",chevronFillColor:"#FFF"},ce[ae.InsiderIcon]={icon:o(H,{}),borderGradient:"linear-gradient(230.68deg, rgba(208, 175, 101, 0) 10.1%, #D0AF65 45.74%)",backgroundGradient:"linear-gradient(111deg, #2E3042 0%, #1A1C23 100%)",chevronFillColor:"#FFF"},ce[ae.InsiderElite]={icon:o(G,{}),borderGradient:"linear-gradient(230.68deg, rgba(208, 175, 101, 0) 10.1%, #D0AF65 45.74%)",backgroundGradient:"linear-gradient(111deg, #2E3042 0%, #1A1C23 100%)",chevronFillColor:"#FFF"},ce[ae.CtLoyalty]={icon:o(R,{}),borderGradient:"linear-gradient(230.68deg, rgba(243, 179, 39, 0) 10.1%, #F3B327 45.74%)",backgroundGradient:"linear-gradient(110.82deg, #FFF9EC 0%, #FEE3A8 100%)",chevronFillColor:"#1A1A1A"},ce),Te=function(n){var r=n.icon,i=n.handleChipClick,a=n.value,c=n.type,s=Z(),d=s.loyaltyType,p=s.isUserLoggedIn,g=s.ravenPushCallback,m=s.ravenPageName,v=s.ravenEventName,x=s.ravenPayload,y=void 0===x?{}:x,b=l(!1),w=b[0],k=b[1],C=u(function(){var e;if(i)i();else{var n=null!==(e=ue("utm_source"))&&void 0!==e?e:"organic",r={action_name:"".concat(c,"_account_click"),action_type:"click",u_utm_source:n,loyaltyType:pe(d)};he(p,v,r,y,g,m);var o={supercoin:"/all-offers/supercoins/",wallet:"/accounts/wallet"};o[c]&&(window.location.href=o[c])}},[i,c,d,p,v,y,g,m]);return t(h,e({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",css:{height:32,paddingLeft:8,paddingRight:w?4:8,transition:"padding-right 0.2s ease-in-out",background:w?"#ffd7ca":"#ffe6df"},onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onClick:C},{children:[t(h,e({display:"flex",alignItems:"center",css:{gap:"4px"}},{children:[r,o(f,e({variant:"B3",isClickable:!0},{children:a}))]})),o(h,e({display:"flex",alignItems:"center",css:{overflow:"hidden",maxWidth:w?16:0,transition:"max-width 0.2s ease-in-out, opacity 0.2s ease-in-out",opacity:w?1:0}},{children:o(A,{})}))]}))},De=function(){var n,r=Z(),i=r.loyaltyType,a=r.fkSupercoinBurnBalance,c=void 0===a?0:a,l=r.walletBalance,s=void 0===l?0:l,d=r.loyaltyLoading,u=r.superCoinsLoading,p=r.walletLoading,f=r.walletChipClick,g=r.supercoinsChipClick,m=r.loyaltyChipClick,v=r.hideWalletChip,x=r.hideSupercoinsChip,y=r.hideLoyaltyChip;return d||i&&Me[i]&&!y||(u||!x)||(p||!v)?t(h,e({display:"flex",padding:"0 16px 16px 16px",justifyContent:"flex-start",css:{alignSelf:"stretch",gap:"4px"}},{children:[d?o(h,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):i&&Me[i]&&!y&&o(Ie,{icon:Me[i].icon,borderGradient:Me[i].borderGradient,backgroundGradient:Me[i].backgroundGradient,chevronFillColor:(null===(n=Me[i])||void 0===n?void 0:n.chevronFillColor)||"#FFF",handleChipClick:m}),u?o(h,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):!x&&o(Te,{icon:o(O,{width:20,height:20}),value:c,handleChipClick:g,type:"supercoin"}),p?o(h,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):!v&&o(Te,{icon:o(T,{width:20,height:20}),value:s,handleChipClick:f,type:"wallet"})]})):null},Ne=function(n){var r=n.isOpen,a=Z(),c=a.handleLogoutClick,l=a.userName,s=a.userMobileNumber,g=a.countryCode,m=a.userDetailsLoading,v=a.loyaltyType,x=a.isUserLoggedIn,b=a.ravenEventName,w=a.ravenPageName,k=a.ravenPayload,C=void 0===k?{}:k,F=a.ravenPushCallback,_=se(r).containerRef,E=p(function(){return{userGreeting:l?"Hello ".concat(l,"!"):"",phoneNumber:g&&s?"".concat(g," ").concat(s):""}},[l,s,g]),L=E.userGreeting,I=E.phoneNumber,M=function(e){var n;return{action_name:e.toLowerCase().replace(/[\s-]/g,"")+"_account_click",action_type:"click",u_utm_source:null!==(n=ue("utm_source"))&&void 0!==n?n:"organic",loyalty_type:pe(v)}},T=u(function(e,n){he(x,b,M(e),C,F,w),window.location.href=n},[x,b,C,F,w]);u(function(){he(x,b,M(Ce),C,F,w),c()},[x,b,C,F,w,c]);var D=u(function(){var e=document.getElementById(Ee),n=document.getElementById(Le);if(e&&n){var r=e.getBoundingClientRect().right;n.style.left="".concat(r-328,"px")}},[]);d(function(){D()},[D]);var N;return t(h,e({id:Le,ref:_,display:"flex",flexDirection:"column",borderRadius:"16px",zIndex:1002,top:"76px",position:"fixed",css:{opacity:0,overflow:"hidden"},width:"".concat(328,"px"),background:"#FFF1EC"},{children:[o(h,e({padding:"16px",height:"76px"},{children:(N=function(n,r,t,i){return o(f,e({variant:t,color:i},{children:n?o(h,{height:"HM3"===t?"18px":"12px",width:"HM3"===t?"140px":"200px",backgroundColor:"#efefef",borderRadius:"8px"}):r}))},o(h,e({display:"flex",flexDirection:"column",css:{gap:"4px"}},{children:t(i,L?{children:[N(m,L,"HM3","primary"),N(m,"".concat(_e," ").concat(I),"P3","subheading")]}:{children:[N(m,_e,"P3","subheading"),N(m,I,"HM3","primary")]})})))})),o(De,{}),t(h,e({display:"flex",flexDirection:"column",padding:"8px",backgroundColor:"white",rowGap:"8px",css:{borderBottomLeftRadius:12,borderBottomRightRadius:12}},{children:[ke.map(function(n){var r=n.text,i=n.icon,a=n.redirectionLink;return o(h,e({padding:"8px",borderRadius:"8px",cursor:"pointer",onClick:function(){return T(r,a)},css:fe},{children:t(h,e({display:"flex",cursor:"pointer",css:{columnGap:"8px"}},{children:[i,o(f,e({variant:"P1",css:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:r}))]}))}),"account-option-".concat(r))}),o(y,{css:{borderBottom:"1px dashed #E6E6E6"}}),t(h,e({display:"flex",padding:"8px",borderRadius:"8px",cursor:"pointer",columnGap:"8px",onClick:c,css:ge},{children:[o(j,{height:24,width:24}),o(f,e({variant:"P1",css:{display:"flex",alignItems:"center",cursor:"pointer"},color:"warning"},{children:Ce}))]}))]}))]}))},Ae=function(){var n=Z(),r=n.isNovacThemeEnabled,i=n.ravenEventName,a=n.ravenPayload,c=void 0===a?{}:a,s=n.ravenPushCallback,p=n.isUserLoggedIn,g=n.loyaltyType,m=n.ravenPageName,v=le({openDelay:0}),x=v.isDropdownVisible,y=v.handleOnMouseEnter,b=v.handleOnMouseLeave,w=v.handleDropdownMouseEnter,C=v.handleDropdownMouseLeave,F=l(!1),_=F[0],L=F[1];d(function(){var e=function(){L(window.scrollY>=50)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]);var I=r&&!_?J.NOVAC:J.DEFAULT,M=I.hoverColor,T=I.typographyColor,D=u(function(){var e,n=null!==(e=ue("utm_source"))&&void 0!==e?e:"organic",r={action_name:"".concat(Fe.toLowerCase().replace(/[\s-]/g,""),"_header_hover"),action_type:"hover",u_utm_source:n,loyalty_type:pe(g)};he(p,i,r,c,s,m)},[p,i,c,s,m,g]);return t(h,{children:[t(h,e({display:"flex",padding:"8px 12px",alignItems:"center",borderRadius:"12px",height:"100%",cursor:"pointer",css:{columnGap:8,height:64},onMouseEnter:function(){y(0),D()},onMouseLeave:b,id:Ee},{children:[o(E,{color:x?M:T}),t(h,e({display:"flex",flexDirection:"row",alignItems:"center"},{children:[o(f,e({variant:"B2",css:{cursor:"pointer"},colorCode:x?M:T},{children:Fe})),o(k,{width:20,height:20,fill:x?M:T})]}))]})),o(ne,e({show:x,marginTop:"64px",handleDropdownMouseEnter:w,handleDropdownMouseLeave:C,onMaskClick:C},{children:o(Ne,{isOpen:x})}))]})},Pe=function(n){return o($,e({value:n},{children:o(Be,{})}))},Be=function(){var n,r=Z(),a=r.onLoginButtonClick,c=r.showAllLobs,s=void 0!==c&&c,p=r.isUserLoggedIn,g=r.loyaltyType,m=r.isNovacThemeEnabled,b=void 0!==m&&m,w=r.ravenPayload,k=void 0===w?{}:w,C=r.ravenPushCallback,F=r.ravenPageName,_=r.ravenEventName,E=l(!1),L=E[0],I=E[1];d(function(){var e=function(){I(window.scrollY>=50)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]);var M,T=b&&!L?J.NOVAC:J.DEFAULT,D=T.headerBackground,N=T.logoFill,A=T.loginButtonColorVariant,P=T.hoverColor,B=T.fkcompanyColor,H=T.typographyColor,G=le({openDelay:0}),R=G.isDropdownVisible,O=G.hoveredElemIndex,j=G.handleOnMouseEnter,V=G.handleOnMouseLeave,z=G.handleDropdownMouseEnter,W=G.handleDropdownMouseLeave,X=null!==(n=ue("utm_source"))&&void 0!==n?n:"organic",K=u(function(e,n){return{action_name:e,action_type:n,u_utm_source:X,loyalty_type:pe(g)}},[X,g]),q=u(function(e){if(e.isClickable&&e.link){var n="".concat(e.text.toLowerCase().replace(/\s/g,""),"_header_click"),r=K(n,"click");he(p,_,r,k,C,F),window.location.href=e.link}},[K,p,_,k,C,F]),Q=u(function(){var e=K("home_header_click","click");he(p,_,e,k,C,F),window.location.href="/"},[K,p,_,k,C,F]),$=u(function(e){var n="".concat(e.text.toLowerCase().replace(/\s/g,""),"_header_hover"),r=K(n,"hover");he(p,_,r,k,C,F)},[K,p,_,k,C,F]);return t(i,{children:[o(h,e({display:"flex",top:0,position:"sticky",width:"100%",alignItems:"center",justifyContent:"center",zIndex:1e3,height:"64px",background:D,css:{gap:"24px",flexShrink:0,borderBottom:"transparent"===D?"":"1px solid #E6E6E6",transition:"background-color 0.3s ease-in-out, border-bottom 0.3s ease-in-out"}},{children:t(h,e({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 28px",flex:1,css:{gap:"24px",maxWidth:1440}},{children:[t(h,e({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",cursor:"pointer",onClick:Q},{children:[o(S,{fillColor:N}),o(y,{css:{width:12,marginLeft:2,marginRight:2,transform:"rotate(90deg)",borderBottom:"1px solid #e0e0e0"}}),o(U,{color:B})]})),t(h,e({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:"24px"},{children:[o(h,e({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:"4px"},{children:Y.map(function(n,r){var i=n.text,a=n.lefticon,c=n.rightIcon,l=n.isHoverable,s=O===r;return t(h,{children:[t(h,e({onMouseEnter:function(){j(r),n.isHoverable&&$(n)},onMouseLeave:V,display:"flex",flexDirection:"row",alignItems:"center",padding:"8px 12px 8px 12px",cursor:"pointer",position:"relative",columnGap:8,height:"64px",onClick:function(){return q(n)}},{children:[o(a,{color:s?P:H}),t(h,e({display:"flex",flexDirection:"row",alignItems:"center"},{children:[o(f,e({variant:"B2",colorCode:s?P:H,isClickable:!0},{children:i})),c&&o(c,{width:20,height:20,fill:s?P:H})]}))]}),"nav-option-".concat(r)),o(ne,e({show:O===r&&l&&R,marginTop:"64px",handleDropdownMouseEnter:z,handleDropdownMouseLeave:W,onMaskClick:W},{children:o(we,{isOpen:O===r&&l&&R})}))]})})})),p&&o(y,{css:{width:12,margin:"0 -18px",transform:"rotate(90deg)",borderBottom:"1px solid #e0e0e0"}}),o(h,{children:p?o(h,e({display:"flex",flexDirection:"row",alignItems:"center"},{children:o(Ae,{})})):o(v,e({onClick:a,css:e({width:153,height:40},(M="transparent"===D,M?{backgroundColor:"transparent !important","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.25)!important"}}:{backgroundColor:"transparent !important","&:hover":{backgroundColor:"#F3F3F3 !important"}})),loading:!1,color:A,variant:x.OUTLINE},{children:"Log in"}))})]}))]}))})),s&&o(ee,{})]})};export{Pe as Header,ie as LOBS_VALUES,ae as LoyaltyType,W as RAVEN_PAGE_NAMES};
1
+ import{__assign as e,__makeTemplateObject as n,__spreadArray as r}from"tslib";import{jsx as o,jsxs as t,Fragment as i}from"react/jsx-runtime";import{createContext as a,useContext as c,useState as l,useRef as s,useEffect as d,useCallback as u,useMemo as p}from"react";import{Container as h}from"@cleartrip/ct-design-container";import{Typography as f,TypographyVariant as g}from"@cleartrip/ct-design-typography";import{ButtonColor as m,Button as v,ButtonVariant as x}from"@cleartrip/ct-design-button";import{Divider as y}from"@cleartrip/ct-design-divider";import{Offers as b,BusinessBag as w,ChevronDown as k,MyTrips as C,SupportIcon as F,ArrowRight as _,MyAccount as E,SavedCard as L,Travellers as I,HiFive as M,Wallet as D,SettingsCog as T,PrivacyRights as A,HeaderChevronRight as N,FkVip as P,FkPremium as B,InsiderIcon as H,InsiderElite as G,CtLoyalty as R,Supercoin as O,Signout as j,CTLogo as S,Fkcompany as U}from"@cleartrip/ct-design-icons";import V,{keyframes as z}from"styled-components";var W,X,Y=[{lefticon:b,text:"Offers",ravenActionName:"offers",isHoverable:!1,isClickable:!0,link:"all-offers/?categories=flights"},{lefticon:w,text:"Business",ravenActionName:"business",rightIcon:k,isHoverable:!0},{lefticon:C,text:"My Trips",ravenActionName:"mytrips",isHoverable:!1,isClickable:!0,link:"/account/trips"},{lefticon:F,text:"Support",ravenActionName:"support",isHoverable:!1,isClickable:!0,link:"/support"}],K=[{title:"Flights",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Flights.png?cache=true",link:"/flights"},{title:"Hotels",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Hotels.png?cache=true",link:"/hotels"},{title:"Buses",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Buses.png?cache=true",link:"/bus"},{title:"Packages",image:"https://rukmini-ct.flixcart.com/f_auto,w_32,h_32,dpr_4/offermgmt-prod/offermgmt/images/banner/Navbar_Packages.png?cache=true",link:"/holidays"}],q=[{title:"AgentBox",subtitle:"For travel agents",details:"One-stop travel solution offering the best deals to our travel agency partners",link:"https://agency.cleartrip.com"},{title:"OutOfOffice",subtitle:"For startups, corporates and SMEs",details:"Manage corporate business travel, smartly",link:"https://ooo.cleartrip.com/",ravenActionName:"ooo"},{title:"MICE",subtitle:"For corporate events",details:"An end-to-end management solution for all your corporate events",link:"https://business.cleartrip.com/"},{title:"API",subtitle:"For developers",details:"Unlock seamless integration and scale with our powerful, reliable APIs",link:"https://business.cleartrip.com/api-customers/more-details"}];!function(e){e.UNIFIED_HOME="unified_homepage",e.HOTELS_HOME="hotel_home",e.FLIGHTS_HOME="flights_home"}(W||(W={})),function(e){e.DESKTOP="desktop"}(X||(X={}));var J={NOVAC:{headerBackground:"transparent",hoverColor:"#FDBA12",logoFill:"#FFF",fkcompanyColor:"#FFF",typographyColor:"#FFF",loginButtonColorVariant:m.NEUTRAL},DEFAULT:{headerBackground:"#FFFFFF",hoverColor:"#FF4F17",logoFill:"#FF4F17",fkcompanyColor:"#1A1A1A",typographyColor:"#1A1A1A",loginButtonColorVariant:m.PRIMARY}},Q=a(void 0),Z=function(){var e=c(Q);if(!e)throw new Error("useHeaderContext must be used within a HeaderProvider");return e},$=function(n){var r=n.value,t=n.children;return o(Q.Provider,e({value:r},{children:t}))},ee=function(){var n=Z().selectedLOB;return o(h,e({display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",background:"#F7FAFF",top:"64px",zIndex:2,css:{gap:24}},{children:K.map(function(r,i){var a=r.title,c=r.link,l=r.image,s=n===a;return o("a",e({href:s?void 0:c,style:{textDecoration:"none",pointerEvents:s?"none":"auto"}},{children:t(h,e({display:"flex",alignItems:"center",width:"116px",height:"48px",justifyContent:"center",cursor:"pointer",css:{gap:8,background:s?"#FFFFFF":"transparent",border:s?"1px solid #E6E6E6":"",borderRadius:"40px",padding:"8px 16px 8px 8px",transition:"background 0.2s ease"}},{children:[o("img",{src:l,alt:a,width:32,height:32}),o(f,e({variant:s?g.HM3:g.B1,isClickable:!0},{children:a}))]}),i)}))})}))};function ne(n){var r=n.children,a=n.onMaskClick,c=n.show,u=n.marginTop,p=n.handleDropdownMouseEnter,f=n.handleDropdownMouseLeave;d(function(){return c&&(document.body.style.overflow="hidden"),function(){document.body.style.overflow="initial"}},[c]);var g=function(e,n){var r=l(e),o=r[0],t=r[1],i=s();return d(function(){return e?t(e):i.current=setTimeout(function(){t(!1)},n),function(){(null==i?void 0:i.current)&&clearTimeout(i.current)}},[e]),o}(c,300),m=function(e,n){var r=l(!1),o=r[0],t=r[1],i=s();return d(function(){return e&&!o?setTimeout(function(){t(!0)},0):!e&&o&&(i.current=setTimeout(function(){return t(!1)},n)),function(){i&&i.current&&clearTimeout(i.current)}},[n,e]),o}(c,100);return t(i,{children:[g&&o(h,{id:"mask-container",css:{position:"fixed",backgroundColor:"#000",opacity:m?.4:0,width:"100%",height:"100vh",left:0,top:u||0,zIndex:9,transition:"opacity 300ms ease-in"},onClick:a}),g&&o(h,e({onMouseEnter:p,onMouseLeave:f},{children:r}))]})}var re,oe,te,ie,ae,ce,le=function(e){var n=void 0===e?{}:e,r=n.closeDelay,o=void 0===r?0:r,t=n.openDelay,i=void 0===t?500:t,a=Math.max(o,150),c=l(!1),p=c[0],h=c[1],f=l(null),g=f[0],m=f[1],v=s(null),x=s(null),y=s(!1),b=u(function(e){v.current&&clearTimeout(v.current),x.current&&clearTimeout(x.current),y.current=!1,x.current=setTimeout(function(){h(!0),y.current||m(e)},i)},[i]),w=u(function(){y.current=!0,v.current=setTimeout(function(){h(!1),m(null)},a)},[a]),k=u(function(){v.current&&clearTimeout(v.current)},[]),C=u(function(){y.current=!0,(null==v?void 0:v.current)&&clearTimeout(v.current),v.current=setTimeout(function(){h(!1),m(null)},a)},[]);return d(function(){var e=function(e){e.clientY<=0&&(h(!1),m(null))};return window.addEventListener("mouseleave",e),function(){window.removeEventListener("mouseleave",e)}},[]),{isDropdownVisible:p,hoveredElemIndex:g,handleOnMouseEnter:b,handleOnMouseLeave:w,handleDropdownMouseEnter:k,handleDropdownMouseLeave:C}},se=function(e){var n=s(null);return d(function(){e?function(){if(n.current){var e=n.current.scrollHeight;n.current.style.maxHeight="".concat(e/2,"px"),n.current.style.opacity="0",requestAnimationFrame(function(){n.current&&(n.current.style.transition="max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",n.current.style.maxHeight="".concat(e,"px"),n.current.style.opacity="1")})}}():function(){if(n.current){var e=n.current.scrollHeight;n.current.style.transition="max-height 0.3s ease-in-out, opacity 0.3s ease-in-out",n.current.style.maxHeight="".concat(e/2,"px"),n.current.style.opacity="0",setTimeout(function(){n.current&&(n.current.style.maxHeight="0px")},300)}}()},[e]),{containerRef:n}},de=function(e){var n=Object.keys(e),r=[];return n.forEach(function(n){r.includes(n)?e[n]=Number(e[n]):e[n]=""+e[n]}),e},ue=function(e){return"undefined"!=typeof window&&window?new URLSearchParams(window.location.search).get(e):""},pe=function(e){switch(e){case"FkVip":return"fk_vip";case"FkPremium":return"fk_plus_premium";case"InsiderIcon":return"myntra_insidericon";case"InsiderElite":return"myntra_insiderelite";default:return""}},he=function(n,r,o,t,i,a){var c;if("function"==typeof i){var l={page_name:a,platform:X.DESKTOP,login_status:n?"yes":"no",domain:null===(c=null===window||void 0===window?void 0:window.location)||void 0===c?void 0:c.host},s=de(o),d=de(t),u=e(e(e({},l),s),d);try{1===i.length?i({eventName:r,eventData:u}):i(r,u)}catch(e){return void console.error(e)}}else console.error("ravenPushCallback is not provided or is not a function")},fe={transition:"background-color 0.2s ease-in-out","&:hover":{backgroundColor:"#ECF3FF"}},ge={transition:"background-color 0.2s ease-in-out","&:hover":{backgroundColor:"#FBEFEF"}},me=z(re||(re=n(["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"],["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"]))),ve=z(oe||(oe=n(["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"],["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"]))),xe={display:"flex",backgroundColor:"black",transition:"background-color 200ms ease","flex-direction":"row",justifyContent:"center",width:"20px",height:"20px",overflow:"hidden",borderRadius:"50%"},ye=function(){return o(h,e({className:"bd-arrow-container-js",css:xe},{children:r([],Array(3),!0).map(function(n,r){return o(h,e({className:"bd-arrow-wrapper-js",display:"flex",alignItems:"center"},{children:o(_,{})}),r)})}))},be=V.div.withConfig({displayName:"BusinessDropdown__BDHoverContainer",componentId:"sc-1tsshe4-0"})(te||(te=n(["\n cursor: pointer;\n width: 200px;\n &:hover {\n .bd-arrow-container-js {\n background-color: rgba(255, 79, 23, 1);\n transition: color 200ms ease;\n }\n .bd-arrow-wrapper-js {\n animation: "," 200ms linear;\n display: flex;\n }\n .color-orange-on-hover-js {\n color: rgba(255, 79, 23, 1);\n transition: background-color 200ms ease;\n }\n }\n &:not(:hover) .bd-arrow-wrapper-js {\n animation: "," 200ms linear backwards;\n }\n"],["\n cursor: pointer;\n width: 200px;\n &:hover {\n .bd-arrow-container-js {\n background-color: rgba(255, 79, 23, 1);\n transition: color 200ms ease;\n }\n .bd-arrow-wrapper-js {\n animation: "," 200ms linear;\n display: flex;\n }\n .color-orange-on-hover-js {\n color: rgba(255, 79, 23, 1);\n transition: background-color 200ms ease;\n }\n }\n &:not(:hover) .bd-arrow-wrapper-js {\n animation: "," 200ms linear backwards;\n }\n"])),me,ve),we=function(n){var r=n.isOpen,i=Z(),a=i.isUserLoggedIn,c=i.ravenPushCallback,s=i.ravenPageName,p=i.ravenEventName,g=i.loyaltyType,m=i.ravenPayload,v=void 0===m?{}:m,x=l(0),y=x[0],b=x[1],w=se(r).containerRef;d(function(){var e=function(){if(w.current){var e=(window.innerWidth-(w.current.offsetWidth||0))/2;e!==y&&b(e)}};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[w,y]);var k=u(function(e,n,r){var o,t=null!==(o=ue("utm_source"))&&void 0!==o?o:"organic",i={action_name:r?"".concat(r,"_business_click"):n?"".concat(n.toLowerCase(),"_business_click"):"",action_type:"click",u_utm_source:t,loyalty_type:pe(g)};e&&(he(a,p,i,v,c,s),window.location.href=e)},[a,p,v,c,s,g]);return t(h,e({ref:w,backgroundColor:"#fff",top:"76px",position:"fixed",left:"".concat(y,"px"),borderRadius:24,boxShadow:"0px 8px 24px 0px rgba(26, 26, 26, 0.10)",width:"fit-content",zIndex:1002,css:{overflow:"hidden",opacity:0}},{children:[o(h,e({padding:"20px 24px 20px 24px",backgroundColor:"#FFF1EC"},{children:o(f,e({variant:"HM2"},{children:"Other business services"}))})),o(h,e({display:"flex",flexDirection:"row",padding:"24px",columnGap:"48px",width:"fit-content"},{children:q.map(function(n){var r=n.title,i=n.subtitle,a=n.details,c=n.link,l=n.ravenActionName;return t(be,e({className:"bd-hover-container-js",onClick:function(){return k(c,r,l)}},{children:[t(h,e({display:"flex",flexDirection:"column",rowGap:"4px"},{children:[t(h,e({display:"flex",flexDirection:"row",alignItems:"center",columnGap:"8px"},{children:[o(f,e({variant:"HM2",className:"color-orange-on-hover-js",css:{transition:"color 200ms ease"}},{children:r})),o(ye,{})]})),o(f,e({variant:"B3",css:{marginTop:"4px",opacity:.75}},{children:i}))]})),o(f,e({variant:"P3",color:"subheading",css:{marginTop:"12px"}},{children:a}))]}),r)})}))]}))},ke=[{text:"My Profile",icon:o(E,{width:24,height:24}),redirectionLink:"/accounts/profile"},{text:"My Trips",icon:o(C,{width:24,height:24}),redirectionLink:"/accounts/trips"},{text:"Saved Cards",icon:o(L,{}),redirectionLink:"/accounts/expressway"},{text:"Saved Travellers",icon:o(I,{width:24,height:24}),redirectionLink:"/account/travellers"},{text:"Hi-Five",icon:o(M,{}),redirectionLink:"/accounts/hi-five?src=fh"},{text:"Wallet",icon:o(D,{width:24,height:24}),redirectionLink:"/accounts/wallet"},{text:"Settings",icon:o(T,{width:24,height:24}),redirectionLink:"/account/settings"},{text:"Privacy Rights",icon:o(A,{}),redirectionLink:"accounts/personal-data-dashboard"}],Ce="Logout",Fe="My Account",_e="You are logged in with",Ee="header-acc-btn",Le="account-options",Ie=function(n){var r=n.icon,i=n.borderGradient,a=n.backgroundGradient,c=n.handleChipClick,s=n.chevronFillColor,d=Z(),p=d.loyaltyType,f=d.isUserLoggedIn,g=d.ravenPushCallback,m=d.ravenPageName,v=d.ravenPayload,x=void 0===v?{}:v,y=d.ravenEventName,b=l(!1),w=b[0],k=b[1],C=u(function(){var e;if(c)c();else{var n={action_name:"loyalty_account_click",action_type:"click",u_utm_source:null!==(e=ue("utm_source"))&&void 0!==e?e:"organic",loyaltyType:pe(p)};he(f,y,n,x,g,m),window.location.href="/all-offers/loyalty-october"}},[c,p,f,y,x,g,m]);return t(h,e({display:"flex",position:"relative",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",paddingLeft:"8px",paddingRight:w?"4px":"8px",css:{overflow:"hidden",height:32,paddingLeft:8,transition:"padding-right 0.2s ease-in-out"},onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onClick:C},{children:[o(h,{css:{content:'""',position:"absolute",inset:0,borderRadius:"inherit",background:a,zIndex:-2}}),o(h,{css:{content:'""',position:"absolute",inset:0,borderRadius:"inherit",padding:"1px",background:i,WebkitMask:"linear-gradient(white, white) content-box, linear-gradient(white, white)",WebkitMaskComposite:"destination-out",maskComposite:"exclude",zIndex:-1}}),o(h,e({display:"flex",alignItems:"center",position:"relative"},{children:r})),o(h,e({display:"flex",alignItems:"center",css:{overflow:"hidden",maxWidth:w?16:0,transition:"max-width 0.2s ease-in-out, opacity 0.2s ease-in-out",opacity:w?.5:0}},{children:o(N,{color:s})}))]}))};!function(e){e.FLIGHTS="Flights",e.HOTELS="Hotels",e.BUSES="Buses",e.TRAINS="Trains",e.PACKAGES="Packages"}(ie||(ie={})),function(e){e.FkVip="FkVip",e.FkPremium="FkPremium",e.InsiderIcon="InsiderIcon",e.InsiderElite="InsiderElite",e.CtLoyalty="CtLoyalty"}(ae||(ae={}));var Me=((ce={})[ae.FkVip]={icon:o(P,{}),borderGradient:"linear-gradient(222.13deg, rgba(243, 179, 39, 0) 2.08%, #F3B327 85.17%)",backgroundGradient:"linear-gradient(111deg, #360042 0%, #540061 100%)",chevronFillColor:"#FFF"},ce[ae.FkPremium]={icon:o(B,{}),borderGradient:"linear-gradient(230.68deg, rgba(243, 179, 39, 0) 10.1%, #F3B327 45.74%)",backgroundGradient:"linear-gradient(180deg, #04176A 0%, #082395 100%)",chevronFillColor:"#FFF"},ce[ae.InsiderIcon]={icon:o(H,{}),borderGradient:"linear-gradient(230.68deg, rgba(208, 175, 101, 0) 10.1%, #D0AF65 45.74%)",backgroundGradient:"linear-gradient(111deg, #2E3042 0%, #1A1C23 100%)",chevronFillColor:"#FFF"},ce[ae.InsiderElite]={icon:o(G,{}),borderGradient:"linear-gradient(230.68deg, rgba(208, 175, 101, 0) 10.1%, #D0AF65 45.74%)",backgroundGradient:"linear-gradient(111deg, #2E3042 0%, #1A1C23 100%)",chevronFillColor:"#FFF"},ce[ae.CtLoyalty]={icon:o(R,{}),borderGradient:"linear-gradient(230.68deg, rgba(243, 179, 39, 0) 10.1%, #F3B327 45.74%)",backgroundGradient:"linear-gradient(110.82deg, #FFF9EC 0%, #FEE3A8 100%)",chevronFillColor:"#1A1A1A"},ce),De=function(n){var r=n.icon,i=n.handleChipClick,a=n.value,c=n.type,s=Z(),d=s.loyaltyType,p=s.isUserLoggedIn,g=s.ravenPushCallback,m=s.ravenPageName,v=s.ravenEventName,x=s.ravenPayload,y=void 0===x?{}:x,b=l(!1),w=b[0],k=b[1],C=u(function(){var e;if(i)i();else{var n=null!==(e=ue("utm_source"))&&void 0!==e?e:"organic",r={action_name:"".concat(c,"_account_click"),action_type:"click",u_utm_source:n,loyaltyType:pe(d)};he(p,v,r,y,g,m);var o={supercoin:"/all-offers/supercoins/",wallet:"/accounts/wallet"};o[c]&&(window.location.href=o[c])}},[i,c,d,p,v,y,g,m]);return t(h,e({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",cursor:"pointer",css:{height:32,paddingLeft:8,paddingRight:w?4:8,transition:"padding-right 0.2s ease-in-out",background:w?"#ffd7ca":"#ffe6df"},onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onClick:C},{children:[t(h,e({display:"flex",alignItems:"center",css:{gap:"4px"}},{children:[r,o(f,e({variant:"B3",isClickable:!0},{children:a}))]})),o(h,e({display:"flex",alignItems:"center",css:{overflow:"hidden",maxWidth:w?16:0,transition:"max-width 0.2s ease-in-out, opacity 0.2s ease-in-out",opacity:w?1:0}},{children:o(N,{})}))]}))},Te=function(){var n,r=Z(),i=r.loyaltyType,a=r.fkSupercoinBurnBalance,c=void 0===a?0:a,l=r.walletBalance,s=void 0===l?0:l,d=r.loyaltyLoading,u=r.superCoinsLoading,p=r.walletLoading,f=r.walletChipClick,g=r.supercoinsChipClick,m=r.loyaltyChipClick,v=r.hideWalletChip,x=r.hideSupercoinsChip,y=r.hideLoyaltyChip;return d||i&&Me[i]&&!y||(u||!x)||(p||!v)?t(h,e({display:"flex",padding:"0 16px 16px 16px",justifyContent:"flex-start",css:{alignSelf:"stretch",gap:"4px"}},{children:[d?o(h,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):i&&Me[i]&&!y&&o(Ie,{icon:Me[i].icon,borderGradient:Me[i].borderGradient,backgroundGradient:Me[i].backgroundGradient,chevronFillColor:(null===(n=Me[i])||void 0===n?void 0:n.chevronFillColor)||"#FFF",handleChipClick:m}),u?o(h,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):!x&&o(De,{icon:o(O,{width:20,height:20}),value:c,handleChipClick:g,type:"supercoin"}),p?o(h,{width:"50px",height:"32px",borderRadius:"8px",backgroundColor:"#efefef"}):!v&&o(De,{icon:o(D,{width:20,height:20}),value:s,handleChipClick:f,type:"wallet"})]})):null},Ae=function(n){var r=n.isOpen,a=Z(),c=a.handleLogoutClick,l=a.userName,s=a.userMobileNumber,g=a.countryCode,m=a.userDetailsLoading,v=a.loyaltyType,x=a.isUserLoggedIn,b=a.ravenEventName,w=a.ravenPageName,k=a.ravenPayload,C=void 0===k?{}:k,F=a.ravenPushCallback,_=se(r).containerRef,E=p(function(){return{userGreeting:l?"Hello ".concat(l,"!"):"",phoneNumber:g&&s?"".concat(g," ").concat(s):""}},[l,s,g]),L=E.userGreeting,I=E.phoneNumber,M=function(e){var n;return{action_name:e.toLowerCase().replace(/[\s-]/g,"")+"_account_click",action_type:"click",u_utm_source:null!==(n=ue("utm_source"))&&void 0!==n?n:"organic",loyalty_type:pe(v)}},D=u(function(e,n){he(x,b,M(e),C,F,w),window.location.href=n},[x,b,C,F,w]);u(function(){he(x,b,M(Ce),C,F,w),c()},[x,b,C,F,w,c]);var T=u(function(){var e=document.getElementById(Ee),n=document.getElementById(Le);if(e&&n){var r=e.getBoundingClientRect().right;n.style.left="".concat(r-328,"px")}},[]);d(function(){T()},[T]);var A;return t(h,e({id:Le,ref:_,display:"flex",flexDirection:"column",borderRadius:"16px",zIndex:1002,top:"76px",position:"fixed",css:{opacity:0,overflow:"hidden"},width:"".concat(328,"px"),background:"#FFF1EC"},{children:[o(h,e({padding:"16px",height:"76px"},{children:(A=function(n,r,t,i){return o(f,e({variant:t,color:i},{children:n?o(h,{height:"HM3"===t?"18px":"12px",width:"HM3"===t?"140px":"200px",backgroundColor:"#efefef",borderRadius:"8px"}):r}))},o(h,e({display:"flex",flexDirection:"column",css:{gap:"4px"}},{children:t(i,L?{children:[A(m,L,"HM3","primary"),A(m,"".concat(_e," ").concat(I),"P3","subheading")]}:{children:[A(m,_e,"P3","subheading"),A(m,I,"HM3","primary")]})})))})),o(Te,{}),t(h,e({display:"flex",flexDirection:"column",padding:"8px",backgroundColor:"white",rowGap:"8px",css:{borderBottomLeftRadius:12,borderBottomRightRadius:12}},{children:[ke.map(function(n){var r=n.text,i=n.icon,a=n.redirectionLink;return o(h,e({padding:"8px",borderRadius:"8px",cursor:"pointer",onClick:function(){return D(r,a)},css:fe},{children:t(h,e({display:"flex",cursor:"pointer",css:{columnGap:"8px"}},{children:[i,o(f,e({variant:"P1",css:{display:"flex",alignItems:"center",cursor:"pointer"}},{children:r}))]}))}),"account-option-".concat(r))}),o(y,{css:{borderBottom:"1px dashed #E6E6E6"}}),t(h,e({display:"flex",padding:"8px",borderRadius:"8px",cursor:"pointer",columnGap:"8px",onClick:c,css:ge},{children:[o(j,{height:24,width:24}),o(f,e({variant:"P1",css:{display:"flex",alignItems:"center",cursor:"pointer"},color:"warning"},{children:Ce}))]}))]}))]}))},Ne=function(){var n=Z(),r=n.isNovacThemeEnabled,i=n.ravenEventName,a=n.ravenPayload,c=void 0===a?{}:a,s=n.ravenPushCallback,p=n.isUserLoggedIn,g=n.loyaltyType,m=n.ravenPageName,v=le({openDelay:0}),x=v.isDropdownVisible,y=v.handleOnMouseEnter,b=v.handleOnMouseLeave,w=v.handleDropdownMouseEnter,C=v.handleDropdownMouseLeave,F=l(!1),_=F[0],L=F[1];d(function(){var e=function(){L(window.scrollY>=50)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]);var I=r&&!_?J.NOVAC:J.DEFAULT,M=I.hoverColor,D=I.typographyColor,T=u(function(){var e,n=null!==(e=ue("utm_source"))&&void 0!==e?e:"organic",r={action_name:"".concat(Fe.toLowerCase().replace(/[\s-]/g,""),"_header_hover"),action_type:"hover",u_utm_source:n,loyalty_type:pe(g)};he(p,i,r,c,s,m)},[p,i,c,s,m,g]);return t(h,{children:[t(h,e({display:"flex",padding:"8px 12px",alignItems:"center",borderRadius:"12px",height:"100%",cursor:"pointer",css:{columnGap:8,height:64},onMouseEnter:function(){y(0),T()},onMouseLeave:b,id:Ee},{children:[o(E,{color:x?M:D}),t(h,e({display:"flex",flexDirection:"row",alignItems:"center"},{children:[o(f,e({variant:"B2",css:{cursor:"pointer"},colorCode:x?M:D},{children:Fe})),o(k,{width:20,height:20,fill:x?M:D})]}))]})),o(ne,e({show:x,marginTop:"64px",handleDropdownMouseEnter:w,handleDropdownMouseLeave:C,onMaskClick:C},{children:o(Ae,{isOpen:x})}))]})},Pe=function(n){return o($,e({value:n},{children:o(Be,{})}))},Be=function(){var n,r=Z(),a=r.onLoginButtonClick,c=r.showAllLobs,s=void 0!==c&&c,p=r.isUserLoggedIn,g=r.loyaltyType,m=r.isNovacThemeEnabled,b=void 0!==m&&m,w=r.ravenPayload,k=void 0===w?{}:w,C=r.ravenPushCallback,F=r.ravenPageName,_=r.ravenEventName,E=l(!1),L=E[0],I=E[1];d(function(){var e=function(){I(window.scrollY>=50)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}},[]);var M,D=b&&!L?J.NOVAC:J.DEFAULT,T=D.headerBackground,A=D.logoFill,N=D.loginButtonColorVariant,P=D.hoverColor,B=D.fkcompanyColor,H=D.typographyColor,G=le({openDelay:0}),R=G.isDropdownVisible,O=G.hoveredElemIndex,j=G.handleOnMouseEnter,V=G.handleOnMouseLeave,z=G.handleDropdownMouseEnter,W=G.handleDropdownMouseLeave,X=null!==(n=ue("utm_source"))&&void 0!==n?n:"organic",K=u(function(e,n){return{action_name:e,action_type:n,u_utm_source:X,loyalty_type:pe(g)}},[X,g]),q=u(function(e){if(e.isClickable&&e.link){var n="".concat(e.text.toLowerCase().replace(/\s/g,""),"_header_click"),r=K(n,"click");he(p,_,r,k,C,F),window.location.href=e.link}},[K,p,_,k,C,F]),Q=u(function(){var e=K("home_header_click","click");he(p,_,e,k,C,F),window.location.href="/"},[K,p,_,k,C,F]),$=u(function(e){var n="".concat(e.text.toLowerCase().replace(/\s/g,""),"_header_hover"),r=K(n,"hover");he(p,_,r,k,C,F)},[K,p,_,k,C,F]);return t(i,{children:[o(h,e({display:"flex",top:0,position:"sticky",width:"100%",alignItems:"center",justifyContent:"center",zIndex:1e3,height:"64px",background:T,css:{gap:"24px",flexShrink:0,borderBottom:"transparent"===T?"":"1px solid #E6E6E6",transition:"background-color 0.3s ease-in-out, border-bottom 0.3s ease-in-out"}},{children:t(h,e({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 28px",flex:1,css:{gap:"24px",maxWidth:1440}},{children:[t(h,e({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",cursor:"pointer",onClick:Q},{children:[o(S,{fillColor:A}),o(y,{css:{width:12,marginLeft:2,marginRight:2,transform:"rotate(90deg)",borderBottom:"1px solid #e0e0e0"}}),o(U,{color:B})]})),t(h,e({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:"24px"},{children:[o(h,e({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",columnGap:"4px"},{children:Y.map(function(n,r){var i=n.text,a=n.lefticon,c=n.rightIcon,l=n.isHoverable,s=O===r;return t(h,{children:[t(h,e({onMouseEnter:function(){j(r),n.isHoverable&&$(n)},onMouseLeave:V,display:"flex",flexDirection:"row",alignItems:"center",padding:"8px 12px 8px 12px",cursor:"pointer",position:"relative",columnGap:8,height:"64px",onClick:function(){return q(n)}},{children:[o(a,{color:s?P:H}),t(h,e({display:"flex",flexDirection:"row",alignItems:"center"},{children:[o(f,e({variant:"B2",colorCode:s?P:H,isClickable:!0},{children:i})),c&&o(c,{width:20,height:20,fill:s?P:H})]}))]}),"nav-option-".concat(r)),o(ne,e({show:O===r&&l&&R,marginTop:"64px",handleDropdownMouseEnter:z,handleDropdownMouseLeave:W,onMaskClick:W},{children:o(we,{isOpen:O===r&&l&&R})}))]})})})),p&&o(y,{css:{width:12,margin:"0 -18px",transform:"rotate(90deg)",borderBottom:"1px solid #e0e0e0"}}),o(h,{children:p?o(h,e({display:"flex",flexDirection:"row",alignItems:"center"},{children:o(Ne,{})})):o(v,e({onClick:a,css:e({width:153,height:40},(M="transparent"===T,M?{backgroundColor:"transparent !important","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.25)!important"}}:{backgroundColor:"transparent !important","&:hover":{backgroundColor:"#F3F3F3 !important"}})),loading:!1,color:N,variant:x.OUTLINE},{children:"Log in"}))})]}))]}))})),s&&o(ee,{})]})};export{Pe as Header,ie as LOBS_VALUES,ae as LoyaltyType,W as RAVEN_PAGE_NAMES};
2
2
  //# sourceMappingURL=ct-design-header.browser.esm.js.map