@webjet/react 4.0.2 → 4.0.3

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
- (()=>{"use strict";var e={624:(e,t,o)=>{var r=o(3751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,a=r(o(7826)),l=r(o(1116)),d=r(o(2015)),u=(r(o(9825)),o(8335)),p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=y(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(722)),c=r(o(1291)),f=r(o(4124)),s=r(o(4315)),m=r(o(3214)),h=r(o(2166)),x=r(o(6268)),g=r(o(293)),b=r(o(5081));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(y=function(e){return e?o:t})(e)}var F=(i={},(0,l.default)(i,"mail",f.default),(0,l.default)(i,"facebook",s.default),(0,l.default)(i,"instagram",m.default),(0,l.default)(i,"twitter",h.default),(0,l.default)(i,"youtube",x.default),(0,l.default)(i,"linkedin",g.default),(0,l.default)(i,"tiktok",b.default),i),v=function(e){var t=e.name,o=e.link,r=F[t];return d.default.createElement(u.FooterSocialBtn,{href:(null==o?void 0:o.href)||"#",target:(null==o?void 0:o.target)||"_blank"},r&&d.default.createElement(r,{size:16}))};t.default=function(e){var t,o=e.footNote,r=e.primary,n=void 0===r?[]:r,i=e.secondary,l=void 0===i?[]:i,f=e.logo,s=e.links,m=void 0===s?{}:s;return d.default.createElement(u.StyledFooter,null,d.default.createElement(u.FooterContentArea,null,d.default.createElement(u.FooterBranding,null,Boolean(f)&&d.default.createElement(u.FooterLogo,{href:(null==f?void 0:f.href)||"#"},d.default.createElement("img",{src:null==f?void 0:f.url,alt:"Webjet"})),(null==l?void 0:l.length)>0&&d.default.createElement(u.FooterSocialContainer,null,Object.keys(m).length>0&&l.length>0&&(null===(t=l[0])||void 0===t?void 0:t.keys.map((function(e){var t;return d.default.createElement(v,{key:null===(t=m[e])||void 0===t?void 0:t.label,name:e,link:m[e]})}))))),d.default.createElement(u.FooterMenuWrapper,null,Object.keys(m).length>0&&n.length>0&&n.map((function(e){return function(e,t){var o=d.default.useState(!1),r=(0,a.default)(o,2),n=r[0],i=r[1],l=window.matchMedia("(max-width: 767px)");return d.default.createElement(u.FooterColumn,{key:e.label},d.default.createElement(u.GroupTitle,{onClick:function(){return l.matches&&i(!n)}},d.default.createElement(p.default,{variant:p.VARIANT.TITLE05},e.title),d.default.createElement(c.default,{size:12,className:n?"rotated":""})),d.default.createElement(u.FooterList,{className:n?"expanded":""},e.keys.map((function(e){var o,r,n,i;return d.default.createElement(u.FooterListItem,{key:null===(o=t[e])||void 0===o?void 0:o.label},d.default.createElement(u.FooterLink,{href:(null===(r=t[e])||void 0===r?void 0:r.href)||"#",target:null===(n=t[e])||void 0===n?void 0:n.target},d.default.createElement(p.default,{as:"span",variant:p.VARIANT.BODY03},null===(i=t[e])||void 0===i?void 0:i.label)))}))))}(e,m)})))),Boolean(o)&&d.default.createElement(u.FooterNote,null,o))}},8335:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledFooter=t.GroupTitle=t.FooterSocialContainer=t.FooterSocialBtn=t.FooterNote=t.FooterMenuWrapper=t.FooterLogo=t.FooterListItem=t.FooterList=t.FooterLink=t.FooterContentArea=t.FooterColumn=t.FooterBranding=void 0;var n=r(o(2770)),i=o(3290),a=o(9292);t.StyledFooter=n.default.footer.withConfig({displayName:"FooterNavigationstyle__StyledFooter",componentId:"sc-1bqrzmo-0"})(["display:flex;flex-direction:column;margin:0 auto;width:100%;padding:32px;background:",";position:relative;@media ","{padding:24px 12px;}"],i.themeV2.color[11],i.themeV2.media.mobileAndTablet),t.FooterContentArea=n.default.div.withConfig({displayName:"FooterNavigationstyle__FooterContentArea",componentId:"sc-1bqrzmo-1"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:stretch;min-height:256px;@media ","{flex-direction:column;gap:16px;margin-bottom:16px;min-height:none;}@media ","{gap:10px;margin-bottom:10px;}"],i.themeV2.media.mobileAndTablet,i.themeV2.media.mobile),t.FooterBranding=n.default.div.withConfig({displayName:"FooterNavigationstyle__FooterBranding",componentId:"sc-1bqrzmo-2"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;flex:1;gap:16px;@media ","{align-items:center;}"],i.themeV2.media.mobileAndTablet),t.FooterLogo=n.default.a.withConfig({displayName:"FooterNavigationstyle__FooterLogo",componentId:"sc-1bqrzmo-3"})(["display:flex;justify-content:center;align-items:center;width:136px;height:auto;img{display:block;width:100%;height:auto;}@media ","{width:100px;}"],i.themeV2.media.mobileAndTablet),t.FooterSocialContainer=n.default.div.withConfig({displayName:"FooterNavigationstyle__FooterSocialContainer",componentId:"sc-1bqrzmo-4"})(["display:flex;justify-content:flex-start;align-items:center;gap:8px;"]),t.FooterSocialBtn=n.default.a.withConfig({displayName:"FooterNavigationstyle__FooterSocialBtn",componentId:"sc-1bqrzmo-5"})(["display:flex;justify-content:center;align-items:center;width:16px;height:16px;svg{fill:",";}"],i.themeV2.color[6]),t.FooterMenuWrapper=n.default.ul.withConfig({displayName:"FooterNavigationstyle__FooterMenuWrapper",componentId:"sc-1bqrzmo-6"})(["display:flex;flex-wrap:nowrap;justify-content:flex-end;list-style:none;padding:0;margin:0;gap:32px;@media ","{gap:16px;}@media ","{padding:16px;gap:16px;}@media ","{flex-direction:column;padding:0;gap:0;}"],i.themeV2.media.desktop,i.themeV2.media.mobileAndTablet,i.themeV2.media.mobile),t.FooterColumn=n.default.li.withConfig({displayName:"FooterNavigationstyle__FooterColumn",componentId:"sc-1bqrzmo-7"})(["display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:flex-start;gap:12px;margin:0 auto;width:150px;@media ","{width:100%;gap:0;border-bottom:1px solid ",";}"],i.themeV2.media.mobile,i.themeV2.color[1]),t.GroupTitle=n.default.a.withConfig({displayName:"FooterNavigationstyle__GroupTitle",componentId:"sc-1bqrzmo-8"})(["all:unset;cursor:text;width:100%;color:",";& > svg{display:none;}&:hover{color:",";text-decoration:none;}@media ","{cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:16px;box-sizing:border-box;transition:all 0.2s ease;background-color:",";gap:10px;& > h6{font-size:14px;font-weight:500;line-height:20px;color:",";}& > svg{display:block;fill:",";transition:transform 0.2s ease;flex:none;&.rotated{transform:rotate(-180deg);}}&:hover{background-color:",";text-decoration:none;}}"],i.themeV2.color[12],i.themeV2.color[12],i.themeV2.media.mobile,i.themeV2.color[11],i.themeV2.color[10],i.themeV2.color[10],(0,a.darken)(.05,i.themeV2.color[1])),t.FooterList=n.default.ul.withConfig({displayName:"FooterNavigationstyle__FooterList",componentId:"sc-1bqrzmo-9"})(["list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;margin:0 auto;width:100%;@media ","{gap:10px;padding:16px;display:none;&.expanded{display:flex;}}"],i.themeV2.media.mobile),t.FooterListItem=n.default.li.withConfig({displayName:"FooterNavigationstyle__FooterListItem",componentId:"sc-1bqrzmo-10"})(["display:block;"]),t.FooterLink=n.default.a.withConfig({displayName:"FooterNavigationstyle__FooterLink",componentId:"sc-1bqrzmo-11"})(["display:block;& > span{color:",";}@media ","{color:",";}"],i.themeV2.color[7],i.themeV2.media.mobile,i.themeV2.color[8]),t.FooterNote=n.default.div.withConfig({displayName:"FooterNavigationstyle__FooterNote",componentId:"sc-1bqrzmo-12"})(["display:flex;flex-direction:column;justify-content:space-between;margin-top:auto;gap:12px;position:absolute;bottom:32px;left:32px;text-align:left;width:auto;> span{margin:0;color:",";}@media ","{max-width:145px;}@media ","{max-width:235px;}@media ","{position:relative;left:0;bottom:0;max-width:none;width:100%;align-items:center;text-align:center;}"],i.themeV2.color[7],i.themeV2.media.desktop,i.themeV2.media.wideDesktop,i.themeV2.media.mobileAndTablet)},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",offWhite:"#FFEADC",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},4341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elevation01:"0px 1px 2px 0px rgba(51, 51, 51, 0.08)",elevation02:"0px 2px 4px 0px rgba(51, 51, 51, 0.10)",elevation03:"0px 6px 8px 0px rgba(51, 51, 51, 0.10)",elevation04:"0px 10px 16px 0px rgba(51, 51, 51, 0.10)",elevation05:"0px 16px 32px 0px rgba(51, 51, 51, 0.16)"}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}});var n=r(o(1267)),i=r(o(492)),a=r(o(9098)),l=r(o(9090)),d=r(o(5050)),u=r(o(509)),p=r(o(4341))},9098:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(2770),i=r(o(1267)),a=(0,n.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontFamily.primary,i.default.fontSize,i.default.fontColor);t.default={globalStyles:a}},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA","#C81209","#BD1109","#E44C45"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],r={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},3817:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(6031)),i=r(o(2462)),a=r(o(2015)),l=(r(o(9825)),o(5718)),d=["variant","mobileStyle","color","className","children"];t.default=function(e){var t=e.variant,o=void 0===t?"lead-06":t,r=e.mobileStyle,u=e.color,p=e.className,c=e.children,f=(0,i.default)(e,d);return a.default.createElement(l.StyledTypography,(0,n.default)({$variant:o,$mobileStyle:r,$color:u,className:p,"data-testid":"typography-".concat(o)},f),c)}},5718:(e,t,o)=>{var r=o(3751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledTypography=void 0;var i=r(o(2462)),a=o(2015),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=c(t);if(o&&o.has(e))return o.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,o&&o.set(e,r),r}(o(2770)),d=o(3290),u=o(6499),p=["$variant","children"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(c=function(e){return e?o:t})(e)}t.StyledTypography=(0,l.default)((function(e){var t=e.$variant,o=e.children,r=(0,i.default)(e,p),n=u.VARIANT_MAP[t],l=u.VALID_TAGS.includes(n)?n:"h6";return(0,a.createElement)(l,r,o)})).withConfig({displayName:"Typographystyle__StyledTypography",componentId:"sc-hvfh95-0"})((function(e){var t=e.$variant,o=e.$mobileStyle,r=e.$color;return(0,l.css)(["font-family:",";margin:0;padding:0;"," "," @media ","{"," ","}"],d.themeV2.fontFamily.primary,u.TYPOGRAPHY_CONFIG[t],!!r&&(0,l.css)(["color:",";"],r),d.themeV2.media.mobile,u.TYPOGRAPHY_CONFIG[o],!!r&&(0,l.css)(["color:",";"],r))}))},6499:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.VARIANT_MAP=t.VARIANT=t.VALID_TAGS=t.TYPOGRAPHY_CONFIG=void 0;var n,i,a=r(o(1116)),l=(t.VALID_TAGS=["h1","h2","h3","h4","h5","h6","p","span"],t.VARIANT={LEAD01:"lead-01",LEAD02:"lead-02",LEAD03:"lead-03",LEAD04:"lead-04",LEAD05:"lead-05",LEAD06:"lead-06",TITLE01:"title-01",TITLE02:"title-02",TITLE03:"title-03",TITLE04:"title-04",TITLE05:"title-05",TITLE06:"title-06",SUBTITLE01:"sub-title-01",SUBTITLE02:"sub-title-02",SUBTITLE03:"sub-title-03",SUBTITLE04:"sub-title-04",SUBTITLE05:"sub-title-05",SUBTITLE06:"sub-title-06",BODY01:"body-01",BODY02:"body-02",BODY03:"body-03",BODY04:"body-04"});t.VARIANT_MAP=(n={},(0,a.default)(n,l.LEAD01,"h1"),(0,a.default)(n,l.LEAD02,"h2"),(0,a.default)(n,l.LEAD03,"h3"),(0,a.default)(n,l.LEAD04,"h4"),(0,a.default)(n,l.LEAD05,"h5"),(0,a.default)(n,l.LEAD06,"h6"),(0,a.default)(n,l.TITLE01,"h6"),(0,a.default)(n,l.TITLE02,"h6"),(0,a.default)(n,l.TITLE03,"h6"),(0,a.default)(n,l.TITLE04,"h6"),(0,a.default)(n,l.TITLE05,"h6"),(0,a.default)(n,l.TITLE06,"h6"),(0,a.default)(n,l.SUBTITLE01,"h6"),(0,a.default)(n,l.SUBTITLE02,"h6"),(0,a.default)(n,l.SUBTITLE03,"h6"),(0,a.default)(n,l.SUBTITLE04,"h6"),(0,a.default)(n,l.SUBTITLE05,"h6"),(0,a.default)(n,l.SUBTITLE06,"h6"),(0,a.default)(n,l.BODY01,"p"),(0,a.default)(n,l.BODY02,"p"),(0,a.default)(n,l.BODY03,"p"),(0,a.default)(n,l.BODY04,"p"),n),t.TYPOGRAPHY_CONFIG=(i={},(0,a.default)(i,l.LEAD01,{color:"inherit",fontSize:"44px",lineHeight:"50px",fontWeight:900}),(0,a.default)(i,l.LEAD02,{color:"inherit",fontSize:"32px",lineHeight:"38px",fontWeight:900}),(0,a.default)(i,l.LEAD03,{color:"inherit",fontSize:"28px",lineHeight:"34px",fontWeight:900}),(0,a.default)(i,l.LEAD04,{color:"inherit",fontSize:"24px",lineHeight:"30px",fontWeight:900}),(0,a.default)(i,l.LEAD05,{color:"inherit",fontSize:"22px",lineHeight:"28px",fontWeight:900}),(0,a.default)(i,l.LEAD06,{color:"inherit",fontSize:"20px",lineHeight:"26px",fontWeight:900}),(0,a.default)(i,l.TITLE01,{color:"inherit",fontSize:"20px",lineHeight:"26px",fontWeight:700}),(0,a.default)(i,l.TITLE02,{color:"inherit",fontSize:"18px",lineHeight:"24px",fontWeight:700}),(0,a.default)(i,l.TITLE03,{color:"inherit",fontSize:"16px",lineHeight:"22px",fontWeight:700}),(0,a.default)(i,l.TITLE04,{color:"inherit",fontSize:"14px",lineHeight:"20px",fontWeight:700}),(0,a.default)(i,l.TITLE05,{color:"inherit",fontSize:"12px",lineHeight:"18px",fontWeight:700}),(0,a.default)(i,l.TITLE06,{color:"inherit",fontSize:"10px",lineHeight:"14px",fontWeight:700}),(0,a.default)(i,l.SUBTITLE01,{color:"inherit",fontSize:"20px",lineHeight:"26px",fontWeight:500}),(0,a.default)(i,l.SUBTITLE02,{color:"inherit",fontSize:"18px",lineHeight:"24px",fontWeight:500}),(0,a.default)(i,l.SUBTITLE03,{color:"inherit",fontSize:"16px",lineHeight:"22px",fontWeight:500}),(0,a.default)(i,l.SUBTITLE04,{color:"inherit",fontSize:"14px",lineHeight:"20px",fontWeight:500}),(0,a.default)(i,l.SUBTITLE05,{color:"inherit",fontSize:"12px",lineHeight:"18px",fontWeight:500}),(0,a.default)(i,l.SUBTITLE06,{color:"inherit",fontSize:"10px",lineHeight:"14px",fontWeight:500}),(0,a.default)(i,l.BODY01,{color:"inherit",fontSize:"16px",lineHeight:"22px",fontWeight:400}),(0,a.default)(i,l.BODY02,{color:"inherit",fontSize:"14px",lineHeight:"20px",fontWeight:400}),(0,a.default)(i,l.BODY03,{color:"inherit",fontSize:"12px",lineHeight:"18px",fontWeight:400}),(0,a.default)(i,l.BODY04,{color:"inherit",fontSize:"10px",lineHeight:"14px",fontWeight:400}),i)},722:(e,t,o)=>{var r=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"COLOR",{enumerable:!0,get:function(){return a.color}}),Object.defineProperty(t,"VARIANT",{enumerable:!0,get:function(){return i.VARIANT}}),t.default=void 0;var n=r(o(3817)),i=o(6499),a=o(3290);t.default=n.default},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},1291:e=>{e.exports=require("@webjet/react-icons/arrow-down")},4315:e=>{e.exports=require("@webjet/react-icons/facebook")},3214:e=>{e.exports=require("@webjet/react-icons/instagram")},293:e=>{e.exports=require("@webjet/react-icons/linkedIn")},4124:e=>{e.exports=require("@webjet/react-icons/mail")},5081:e=>{e.exports=require("@webjet/react-icons/tiktok")},2166:e=>{e.exports=require("@webjet/react-icons/twitter")},6268:e=>{e.exports=require("@webjet/react-icons/youtube")},9292:e=>{e.exports=require("polished")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}var r={};(()=>{var e=r,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(o(624));e.default=n.default})(),module.exports=r})();
1
+ (()=>{"use strict";var e={624:(e,t,o)=>{var n=o(3751),i=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=n(o(7826)),l=n(o(1116)),d=n(o(2015)),u=(n(o(9825)),o(8335)),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=i(e)&&"function"!=typeof e)return{default:e};var o=v(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=r?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,o&&o.set(e,n),n}(o(722)),s=n(o(1291)),p=n(o(4124)),f=n(o(4315)),g=n(o(3214)),m=n(o(2166)),h=n(o(6268)),x=n(o(293)),b=n(o(5081)),y=o(3465);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(v=function(e){return e?o:t})(e)}var F=(r={},(0,l.default)(r,"mail",p.default),(0,l.default)(r,"facebook",f.default),(0,l.default)(r,"instagram",g.default),(0,l.default)(r,"twitter",m.default),(0,l.default)(r,"youtube",h.default),(0,l.default)(r,"linkedin",x.default),(0,l.default)(r,"tiktok",b.default),r),w=function(e){var t=e.name,o=e.link,n=F[t];return d.default.createElement(u.FooterSocialBtn,{href:(null==o?void 0:o.href)||"#",target:(null==o?void 0:o.target)||"_blank"},n&&d.default.createElement(n,{size:16}))};t.default=function(e){var t,o=e.footNote,n=e.primary,i=void 0===n?[]:n,r=e.secondary,l=void 0===r?[]:r,p=e.logo,f=e.links,g=void 0===f?{}:f;return d.default.createElement(u.StyledFooter,null,d.default.createElement(u.FooterContentArea,null,d.default.createElement(u.FooterBranding,null,Boolean(p)&&d.default.createElement(u.FooterLogo,{href:(null==p?void 0:p.href)||"#"},d.default.createElement("img",{src:null==p?void 0:p.url,alt:"Webjet"})),(null==l?void 0:l.length)>0&&d.default.createElement(u.FooterSocialContainer,null,Object.keys(g).length>0&&l.length>0&&(null===(t=l[0])||void 0===t?void 0:t.keys.map((function(e){var t;return d.default.createElement(w,{key:null===(t=g[e])||void 0===t?void 0:t.label,name:e,link:g[e]})}))))),d.default.createElement(u.FooterMenuWrapper,null,Object.keys(g).length>0&&i.length>0&&i.map((function(e){return function(e,t){var o=d.default.useState(!1),n=(0,a.default)(o,2),i=n[0],r=n[1];return d.default.createElement(u.FooterColumn,{key:e.label},d.default.createElement(u.GroupTitle,{onClick:function(){var e;(null===(e=window)||void 0===e?void 0:e.innerWidth)<y.BREAKPOINTS.MOBILE&&r(!i)},className:i?"active":""},d.default.createElement(c.default,{variant:c.VARIANT.TITLE05},e.title),d.default.createElement(s.default,{size:12,className:i?"rotated":""})),d.default.createElement(u.FooterList,{className:i?"expanded":""},e.keys.map((function(e){var o,n,i,r;return d.default.createElement(u.FooterListItem,{key:null===(o=t[e])||void 0===o?void 0:o.label},d.default.createElement(u.FooterLink,{href:(null===(n=t[e])||void 0===n?void 0:n.href)||"#",target:null===(i=t[e])||void 0===i?void 0:i.target},d.default.createElement(c.default,{as:"span",variant:c.VARIANT.BODY03},null===(r=t[e])||void 0===r?void 0:r.label)))}))))}(e,g)})))),Boolean(o)&&d.default.createElement(u.FooterNote,null,o))}},8335:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledFooter=t.GroupTitle=t.FooterSocialContainer=t.FooterSocialBtn=t.FooterNote=t.FooterMenuWrapper=t.FooterLogo=t.FooterListItem=t.FooterList=t.FooterLink=t.FooterContentArea=t.FooterColumn=t.FooterBranding=void 0;var i=n(o(2770)),r=o(3290),a=o(9292);t.StyledFooter=i.default.footer.withConfig({displayName:"FooterNavigationstyle__StyledFooter",componentId:"sc-1bqrzmo-0"})(["display:flex;flex-direction:column;margin:0 auto;width:100%;padding:32px;background:",";position:relative;box-sizing:border-box;@media ","{padding:24px 12px;}"],r.themeV2.color[11],r.themeV2.media.mobileAndTablet),t.FooterContentArea=i.default.div.withConfig({displayName:"FooterNavigationstyle__FooterContentArea",componentId:"sc-1bqrzmo-1"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:stretch;min-height:256px;box-sizing:border-box;@media ","{flex-direction:column;gap:16px;margin-bottom:16px;min-height:none;}@media ","{gap:10px;margin-bottom:10px;}"],r.themeV2.media.mobileAndTablet,r.themeV2.media.mobile),t.FooterBranding=i.default.div.withConfig({displayName:"FooterNavigationstyle__FooterBranding",componentId:"sc-1bqrzmo-2"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;flex:1;gap:16px;@media ","{align-items:center;}"],r.themeV2.media.mobileAndTablet),t.FooterLogo=i.default.a.withConfig({displayName:"FooterNavigationstyle__FooterLogo",componentId:"sc-1bqrzmo-3"})(["display:flex;justify-content:center;align-items:center;width:136px;height:auto;img{display:block;width:100%;height:auto;}@media ","{width:100px;}"],r.themeV2.media.mobileAndTablet),t.FooterSocialContainer=i.default.div.withConfig({displayName:"FooterNavigationstyle__FooterSocialContainer",componentId:"sc-1bqrzmo-4"})(["display:flex;justify-content:flex-start;align-items:center;gap:8px;"]),t.FooterSocialBtn=i.default.a.withConfig({displayName:"FooterNavigationstyle__FooterSocialBtn",componentId:"sc-1bqrzmo-5"})(["display:flex;justify-content:center;align-items:center;width:16px;height:16px;svg{fill:",";}"],r.themeV2.color[6]),t.FooterMenuWrapper=i.default.ul.withConfig({displayName:"FooterNavigationstyle__FooterMenuWrapper",componentId:"sc-1bqrzmo-6"})(["display:flex;flex-wrap:nowrap;justify-content:flex-end;list-style:none;padding:0;margin:0;gap:32px;box-sizing:border-box;@media ","{gap:16px;}@media ","{padding:16px;gap:16px;}@media ","{flex-direction:column;padding:0;gap:0;}"],r.themeV2.media.desktop,r.themeV2.media.mobileAndTablet,r.themeV2.media.mobile),t.FooterColumn=i.default.li.withConfig({displayName:"FooterNavigationstyle__FooterColumn",componentId:"sc-1bqrzmo-7"})(["display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:flex-start;gap:12px;margin:0 auto;width:150px;box-sizing:border-box;@media ","{width:100%;gap:0;border-bottom:1px solid ",";}"],r.themeV2.media.mobile,r.themeV2.color[1]),t.GroupTitle=i.default.a.withConfig({displayName:"FooterNavigationstyle__GroupTitle",componentId:"sc-1bqrzmo-8"})(["all:unset;cursor:text;width:100%;color:",";& > svg{display:none;}&:hover{color:",";text-decoration:none;}@media ","{cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:16px;box-sizing:border-box;transition:all 0.2s ease;background-color:",";gap:10px;& > h6{font-size:14px;font-weight:500;line-height:20px;color:",";}& > svg{display:block;fill:",";transition:transform 0.2s ease;flex:none;&.rotated{transform:rotate(-180deg);}}&.active{background:",";}&:hover{background-color:",";text-decoration:none;}}"],r.themeV2.color[12],r.themeV2.color[12],r.themeV2.media.mobile,r.themeV2.color[11],r.themeV2.color[10],r.themeV2.color[10],r.themeV2.color[1],(0,a.darken)(.05,r.themeV2.color[1])),t.FooterList=i.default.ul.withConfig({displayName:"FooterNavigationstyle__FooterList",componentId:"sc-1bqrzmo-9"})(["list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;margin:0 auto;width:100%;box-sizing:border-box;@media ","{gap:10px;padding:16px;display:none;&.expanded{display:flex;}}"],r.themeV2.media.mobile),t.FooterListItem=i.default.li.withConfig({displayName:"FooterNavigationstyle__FooterListItem",componentId:"sc-1bqrzmo-10"})(["display:block;"]),t.FooterLink=i.default.a.withConfig({displayName:"FooterNavigationstyle__FooterLink",componentId:"sc-1bqrzmo-11"})(["display:block;text-decoration:none;& > span{color:",";}@media ","{color:",";}"],r.themeV2.color[7],r.themeV2.media.mobile,r.themeV2.color[8]),t.FooterNote=i.default.div.withConfig({displayName:"FooterNavigationstyle__FooterNote",componentId:"sc-1bqrzmo-12"})(["display:flex;flex-direction:column;justify-content:space-between;margin-top:auto;gap:12px;position:absolute;bottom:32px;left:32px;text-align:left;width:auto;> span{margin:0;color:",";}@media ","{max-width:145px;}@media ","{max-width:235px;}@media ","{position:relative;left:0;bottom:0;max-width:none;width:100%;align-items:center;text-align:center;}"],r.themeV2.color[7],r.themeV2.media.desktop,r.themeV2.media.wideDesktop,r.themeV2.media.mobileAndTablet)},509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={greys:{white:"#FFFFFF",offWhite:"#FFEADC",grey50:"#F5F5F5",grey100:"#EBEBEB",grey200:"#DFDFDF",grey300:"#CCCCCC",grey400:"#BFBFBF",grey500:"#999999",grey600:"#878787",grey700:"#646464",grey800:"#4D4D4D",grey900:"#333333",black:"#000000"}}},9090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={dateFormatExtraShort:"d MMM",dateFormatShort:"E d MMM",dateFormat:"E d MMM yyyy",dateFormatLong:"E d MMMM yyyy",timeFormat:"h:mm a",dayLabelFormat:"E MMM dd yyyy",weekStartsOn:1,weekFormat:"E",scrollToViewOptions:{behavior:"smooth",block:"end",scrollMode:"if-needed"}}},4341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={elevation01:"0px 1px 2px 0px rgba(51, 51, 51, 0.08)",elevation02:"0px 2px 4px 0px rgba(51, 51, 51, 0.10)",elevation03:"0px 6px 8px 0px rgba(51, 51, 51, 0.10)",elevation04:"0px 10px 16px 0px rgba(51, 51, 51, 0.10)",elevation05:"0px 16px 32px 0px rgba(51, 51, 51, 0.16)"}},5050:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={notification:{success:{color:"#149000",backgroundColor:"#EEF7EB"},error:{color:"#BE0000",backgroundColor:"#F2DEDE"},warning:{color:"#FF5C00",backgroundColor:"#F6EDE6"},info:{color:"#3D9AF2",backgroundColor:"#ECF5FE"},notice:{color:"#FEB42B",backgroundColor:"#FFF3CD"}},textLink:{color:"#0060BB",hoverColor:"#00509C"},webjetRed:"#DC140A"}},3290:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return r.default}});var i=n(o(1267)),r=n(o(492)),a=n(o(9098)),l=n(o(9090)),d=n(o(5050)),u=n(o(509)),c=n(o(4341))},9098:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(2770),r=n(o(1267)),a=(0,i.css)(["font-family:",";font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],r.default.fontFamily.primary,r.default.fontSize,r.default.fontColor);t.default={globalStyles:a}},492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA","#C81209","#BD1109","#E44C45"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",tabletAndSmallDesktop:"only screen and (min-width: 768px) and (max-width: 1199px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},1267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=["#DC140A","#F5F5F5","#DFDFDF","#EBEBEB","#CCCCCC","#BFBFBF","#999999","#878787","#646464","#4D4D4D","#333333","#FFFFFF","#000000","#3D9AF2","#0060BB","#00509C","#FF8C00","#2DB300","#B0CFE2","#3587D4","#E07B00","#29A300","#D5EFCC","#F6F2E6","#CFCFCF","#454545","#F2DEDE","#B13312","#FFF3CD","#7A7A7A","#FEB42B","#E96962","#FEFAFA"],n={fontFamily:{primary:"Roboto, Arial, sans-serif",icon:"WebjetIcons"},fontSize:"13px",fontColor:o[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:o[5],hoverColor:o[6],hoverDarkColor:o[7],textHighlight:o[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:o[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:o[5],inputIcon:o[9],inputIconBackground:o[2],inputIconHoverBackground:o[5],inputCrossBtn:"#a8a8a8",btnStandard:o[2],btnStandardHover:o[5],btnAction:o[17],btnActionHover:"#259400",btnActive:o[13],btnActiveHover:o[19],btnSelection:o[16],btnSelectionHover:o[20],successBackground:o[22],successText:o[21],errorBackground:o[26],errorText:o[27],sliderPrimary:o[13],color:o,media:{smallMobilePortrait:"only screen and (max-width: 374px)",mobilePortrait:"only screen and (max-width: 567px)",mobileLandscape:"only screen and (min-width: 567px) and (max-width: 767px)",mobile:"only screen and (max-width: 767px)",notMobile:"only screen and (min-width: 768px)",tablet:"only screen and (min-width: 768px) and (max-width: 991px)",mobileAndTablet:"only screen and (max-width: 991px)",tabletAndDesktop:"only screen and (min-width: 768px)",desktop:"only screen and (min-width: 992px) and (max-width: 1199px)",desktopAndWideDesktop:"only screen and (min-width: 992px)",wideDesktop:"only screen and (min-width: 1200px)"},validationColors:{inputErrorBackground:"#F2DEDE",inputErrorHoverBackground:"#E8D5D5",inputErrorText:o[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=n},3817:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(6031)),r=n(o(2462)),a=n(o(2015)),l=(n(o(9825)),o(5718)),d=["variant","mobileStyle","color","className","children"];t.default=function(e){var t=e.variant,o=void 0===t?"lead-06":t,n=e.mobileStyle,u=e.color,c=e.className,s=e.children,p=(0,r.default)(e,d);return a.default.createElement(l.StyledTypography,(0,i.default)({$variant:o,$mobileStyle:n,$color:u,className:c,"data-testid":"typography-".concat(o)},p),s)}},5718:(e,t,o)=>{var n=o(3751),i=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledTypography=void 0;var r=n(o(2462)),a=o(2015),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=i(e)&&"function"!=typeof e)return{default:e};var o=s(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=r?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,o&&o.set(e,n),n}(o(2770)),d=o(3290),u=o(6499),c=["$variant","children"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(s=function(e){return e?o:t})(e)}t.StyledTypography=(0,l.default)((function(e){var t=e.$variant,o=e.children,n=(0,r.default)(e,c),i=u.VARIANT_MAP[t],l=u.VALID_TAGS.includes(i)?i:"h6";return(0,a.createElement)(l,n,o)})).withConfig({displayName:"Typographystyle__StyledTypography",componentId:"sc-hvfh95-0"})((function(e){var t=e.$variant,o=e.$mobileStyle,n=e.$color;return(0,l.css)(["font-family:",";margin:0;padding:0;"," "," @media ","{"," ","}"],d.themeV2.fontFamily.primary,u.TYPOGRAPHY_CONFIG[t],!!n&&(0,l.css)(["color:",";"],n),d.themeV2.media.mobile,u.TYPOGRAPHY_CONFIG[o],!!n&&(0,l.css)(["color:",";"],n))}))},6499:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),t.VARIANT_MAP=t.VARIANT=t.VALID_TAGS=t.TYPOGRAPHY_CONFIG=void 0;var i,r,a=n(o(1116)),l=(t.VALID_TAGS=["h1","h2","h3","h4","h5","h6","p","span"],t.VARIANT={LEAD01:"lead-01",LEAD02:"lead-02",LEAD03:"lead-03",LEAD04:"lead-04",LEAD05:"lead-05",LEAD06:"lead-06",TITLE01:"title-01",TITLE02:"title-02",TITLE03:"title-03",TITLE04:"title-04",TITLE05:"title-05",TITLE06:"title-06",SUBTITLE01:"sub-title-01",SUBTITLE02:"sub-title-02",SUBTITLE03:"sub-title-03",SUBTITLE04:"sub-title-04",SUBTITLE05:"sub-title-05",SUBTITLE06:"sub-title-06",BODY01:"body-01",BODY02:"body-02",BODY03:"body-03",BODY04:"body-04"});t.VARIANT_MAP=(i={},(0,a.default)(i,l.LEAD01,"h1"),(0,a.default)(i,l.LEAD02,"h2"),(0,a.default)(i,l.LEAD03,"h3"),(0,a.default)(i,l.LEAD04,"h4"),(0,a.default)(i,l.LEAD05,"h5"),(0,a.default)(i,l.LEAD06,"h6"),(0,a.default)(i,l.TITLE01,"h6"),(0,a.default)(i,l.TITLE02,"h6"),(0,a.default)(i,l.TITLE03,"h6"),(0,a.default)(i,l.TITLE04,"h6"),(0,a.default)(i,l.TITLE05,"h6"),(0,a.default)(i,l.TITLE06,"h6"),(0,a.default)(i,l.SUBTITLE01,"h6"),(0,a.default)(i,l.SUBTITLE02,"h6"),(0,a.default)(i,l.SUBTITLE03,"h6"),(0,a.default)(i,l.SUBTITLE04,"h6"),(0,a.default)(i,l.SUBTITLE05,"h6"),(0,a.default)(i,l.SUBTITLE06,"h6"),(0,a.default)(i,l.BODY01,"p"),(0,a.default)(i,l.BODY02,"p"),(0,a.default)(i,l.BODY03,"p"),(0,a.default)(i,l.BODY04,"p"),i),t.TYPOGRAPHY_CONFIG=(r={},(0,a.default)(r,l.LEAD01,{color:"inherit",fontSize:"44px",lineHeight:"50px",fontWeight:900}),(0,a.default)(r,l.LEAD02,{color:"inherit",fontSize:"32px",lineHeight:"38px",fontWeight:900}),(0,a.default)(r,l.LEAD03,{color:"inherit",fontSize:"28px",lineHeight:"34px",fontWeight:900}),(0,a.default)(r,l.LEAD04,{color:"inherit",fontSize:"24px",lineHeight:"30px",fontWeight:900}),(0,a.default)(r,l.LEAD05,{color:"inherit",fontSize:"22px",lineHeight:"28px",fontWeight:900}),(0,a.default)(r,l.LEAD06,{color:"inherit",fontSize:"20px",lineHeight:"26px",fontWeight:900}),(0,a.default)(r,l.TITLE01,{color:"inherit",fontSize:"20px",lineHeight:"26px",fontWeight:700}),(0,a.default)(r,l.TITLE02,{color:"inherit",fontSize:"18px",lineHeight:"24px",fontWeight:700}),(0,a.default)(r,l.TITLE03,{color:"inherit",fontSize:"16px",lineHeight:"22px",fontWeight:700}),(0,a.default)(r,l.TITLE04,{color:"inherit",fontSize:"14px",lineHeight:"20px",fontWeight:700}),(0,a.default)(r,l.TITLE05,{color:"inherit",fontSize:"12px",lineHeight:"18px",fontWeight:700}),(0,a.default)(r,l.TITLE06,{color:"inherit",fontSize:"10px",lineHeight:"14px",fontWeight:700}),(0,a.default)(r,l.SUBTITLE01,{color:"inherit",fontSize:"20px",lineHeight:"26px",fontWeight:500}),(0,a.default)(r,l.SUBTITLE02,{color:"inherit",fontSize:"18px",lineHeight:"24px",fontWeight:500}),(0,a.default)(r,l.SUBTITLE03,{color:"inherit",fontSize:"16px",lineHeight:"22px",fontWeight:500}),(0,a.default)(r,l.SUBTITLE04,{color:"inherit",fontSize:"14px",lineHeight:"20px",fontWeight:500}),(0,a.default)(r,l.SUBTITLE05,{color:"inherit",fontSize:"12px",lineHeight:"18px",fontWeight:500}),(0,a.default)(r,l.SUBTITLE06,{color:"inherit",fontSize:"10px",lineHeight:"14px",fontWeight:500}),(0,a.default)(r,l.BODY01,{color:"inherit",fontSize:"16px",lineHeight:"22px",fontWeight:400}),(0,a.default)(r,l.BODY02,{color:"inherit",fontSize:"14px",lineHeight:"20px",fontWeight:400}),(0,a.default)(r,l.BODY03,{color:"inherit",fontSize:"12px",lineHeight:"18px",fontWeight:400}),(0,a.default)(r,l.BODY04,{color:"inherit",fontSize:"10px",lineHeight:"14px",fontWeight:400}),r)},722:(e,t,o)=>{var n=o(3751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"COLOR",{enumerable:!0,get:function(){return a.color}}),Object.defineProperty(t,"VARIANT",{enumerable:!0,get:function(){return r.VARIANT}}),t.default=void 0;var i=n(o(3817)),r=o(6499),a=o(3290);t.default=i.default},3465:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.detectOS=t.BREAKPOINTS=void 0,t.fetchDateInMilliseconds=function(){return(new Date).getTime()},t.getDateWithoutTime=t.getBoundingClientInfo=t.formatNumber=void 0,t.getDurationInMiliSeconds=function(e,t){return t-e},t.withScroll=t.setTwoDirectionStickyPanelById=t.setTwoDirectionStickyPanel=t.scrollTo=t.sanitiseInputText=t.removeHtmlTags=t.isValidIconName=t.isValidIconElement=t.isUserLoggedIn=t.isTouchDevice=t.isMobileTablet=t.isMobilePortrait=t.isMobile=t.isMatchMedia=t.hasScrollReachedBottom=t.getRandomArrayItem=t.getMonthName=t.getLoggedInUserDetails=t.getFormattedDate=void 0;var n=o(4513),i=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},r=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return r("(max-width: ".concat(i.MOBILE,"px)"))},t.isMobileTablet=function(){return r("(max-width: ".concat(i.TABLET,"px)"))},t.isMobilePortrait=function(){return r("(max-width: ".concat(i.MOBILE_PORTRAIT,"px)"))},t.isTouchDevice=function(){return window.matchMedia("(pointer: coarse)").matches},t.detectOS=function(e){var t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!o&&/(iPhone\sOS)\s([\d_]+)/.test(t)||o,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}},t.getLoggedInUserDetails=function(){var e=(0,n.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var o=0;o<e.length;o++){var i,r=null===(i=window.atob(e[o].split(".")[1]))||void 0===i?void 0:i.toString("ascii"),a=JSON.parse(r),l=a.firstName,d=a.email,u=a.dev;window.location.hostname.includes("dev.webjet")&&!u||(t={firstName:l,email:d})}return t}),l=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,n=window.innerHeight,i=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){n=window.innerHeight,i=e.offsetHeight})),document.addEventListener("scroll",(function(){i=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var r=parseInt(e.style.top.replace("px;",""));0===window.scrollY||i<=n?e.style.top="0px":window.scrollY<o?r<0?e.style.top=r+o-window.scrollY+"px":r>=0&&0!==r&&(e.style.top="0px"):r>t?e.style.top=r+o-window.scrollY+"px":r<t&&r!==t&&(e.style.top=t+"px"),o=window.scrollY}),{capture:!0,passive:!0})}});t.setTwoDirectionStickyPanelById=function(e){l(document.getElementById(e))},t.hasScrollReachedBottom=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.scrollTop,n=e.clientHeight,i=t-o;return i>=n-1&&i<=n+1},t.withScroll=function(e){if(!e)return!1;var t=e.scrollHeight,o=e.clientHeight;return!(t>=o-1&&t<=o+1)},t.escapeRegExp=function(e){return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},t.sanitiseInputText=function(e){return"string"==typeof e?e.replace(/[^a-zA-Z0-9\s,\\(\\)]/g,""):""},t.removeHtmlTags=function(e){return"string"==typeof e?String(e).replace(/(<([^>]+)>)/gi,""):e},t.isValidIconElement=function(e){var t;return"function"==typeof e&&"svg"===(null===(t=e())||void 0===t?void 0:t.type)},t.isValidIconName=function(e){return!!e&&"string"==typeof e},t.formatNumber=function(e,t){return e.toLocaleString("en-AU",{minimumFractionDigits:t,maximumFractionDigits:t})||0},t.scrollTo=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";"function"==typeof(null==e?void 0:e.scrollTo)&&e.scrollTo({behavior:o,top:t.top,left:t.left})},t.getBoundingClientInfo=function(e){return{height:Math.round(e.getBoundingClientRect().height),top:Math.round(e.getBoundingClientRect().top),bottom:Math.round(e.getBoundingClientRect().bottom),left:Math.round(e.getBoundingClientRect().left),right:Math.round(e.getBoundingClientRect().right)}},t.getMonthName=function(e){return null==e?void 0:e.toLocaleDateString(void 0,{month:"long"})},t.getFormattedDate=function(e){return"".concat(e.getDate(),"/").concat(e.getMonth()+1,"/").concat(e.getFullYear())},t.getDateWithoutTime=function(e){return new Date(e.toDateString())},t.getRandomArrayItem=function(e){return Array.isArray(e)&&e.length>0?e[Math.floor(Math.random()*e.length)]:null}},4513:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setSessionStorageJson=t.setSessionStorage=t.setCookieStorage=t.getSessionStorageJson=t.getSessionStorage=t.getCookieStorage=t.getAllCookiesStorage=void 0;var o=function(){var e="WJtestStorage";try{return!!window.sessionStorage&&(window.sessionStorage.setItem(e,1),window.sessionStorage.removeItem(e),!0)}catch(e){return!1}},n=(t.getSessionStorage=function(e){if(e&&o())try{return window.sessionStorage.getItem(e)}catch(e){return}},t.setSessionStorage=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,t)}catch(e){return}},t.getSessionStorageJson=function(e){if(e&&o())try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return}},t.setSessionStorageJson=function(e,t){if(e&&o())try{return window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return}},t.getCookieStorage=function(e){var t=n(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),n=[],i=0;i<o.length;i++){for(var r=o[i];" "===r.charAt(0);)r=r.substring(1,r.length);0===r.indexOf(t)&&n.push(r.substring(t.length,r.length))}return n});t.setCookieStorage=function(e,t,o){var n=window.location.hostname,i="localhost"===n?n:n.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(i,"; Path=/; Max-Age=").concat(o||86400)}},1116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},3751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},7826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},1291:e=>{e.exports=require("@webjet/react-icons/arrow-down")},4315:e=>{e.exports=require("@webjet/react-icons/facebook")},3214:e=>{e.exports=require("@webjet/react-icons/instagram")},293:e=>{e.exports=require("@webjet/react-icons/linkedIn")},4124:e=>{e.exports=require("@webjet/react-icons/mail")},5081:e=>{e.exports=require("@webjet/react-icons/tiktok")},2166:e=>{e.exports=require("@webjet/react-icons/twitter")},6268:e=>{e.exports=require("@webjet/react-icons/youtube")},9292:e=>{e.exports=require("polished")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")},2770:e=>{e.exports=require("styled-components")}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}var n={};(()=>{var e=n,t=o(3751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(o(624));e.default=i.default})(),module.exports=n})();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webjet/react",
3
3
  "side-effects": false,
4
- "version": "4.0.2",
4
+ "version": "4.0.3",
5
5
  "description": "Common react components",
6
6
  "main": "components/index.js",
7
7
  "scripts": {