@webjet/react 4.3.0 → 4.5.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.
- package/components/accordion.js +1 -1
- package/components/anchor-link.js +1 -1
- package/components/autocomplete.js +1 -1
- package/components/badge.js +1 -0
- package/components/banner.js +1 -1
- package/components/breadcrumb.js +1 -1
- package/components/button.js +1 -1
- package/components/card.js +1 -1
- package/components/carousel-cards.js +1 -1
- package/components/carousel-content.js +1 -1
- package/components/carousel.js +1 -1
- package/components/checkbox-list.js +1 -1
- package/components/checkbox.js +1 -1
- package/components/checklist.js +1 -1
- package/components/copy-button.js +1 -1
- package/components/countdown.js +1 -1
- package/components/date-picker-input.js +1 -1
- package/components/date-picker.js +1 -1
- package/components/date-range-picker-input.js +1 -1
- package/components/date-range-picker.js +1 -1
- package/components/drawer.js +1 -1
- package/components/error-message-field.js +1 -1
- package/components/fare-card.js +1 -1
- package/components/filter-dropdown.js +1 -1
- package/components/flight-card-footer.js +1 -1
- package/components/flight-card-header.js +1 -1
- package/components/flight-card-info.js +1 -1
- package/components/flight-summary.js +1 -1
- package/components/floating-panel.js +1 -1
- package/components/footer-navigation.js +1 -1
- package/components/helper-text.js +1 -1
- package/components/icon.js +1 -1
- package/components/iframe-link.js +1 -1
- package/components/info-modal.js +1 -1
- package/components/journey-line.js +1 -1
- package/components/label.js +1 -1
- package/components/leg-segment.js +1 -1
- package/components/linear-loader.js +1 -1
- package/components/link.js +1 -1
- package/components/menu-list.js +1 -1
- package/components/modal.js +1 -1
- package/components/notification.js +1 -1
- package/components/number-stepper.js +1 -1
- package/components/pagination.js +1 -1
- package/components/panel-with-scroll-fade.js +1 -1
- package/components/payment-breakdown-panel.js +1 -1
- package/components/payment-breakdown.js +1 -1
- package/components/payment-card.js +1 -1
- package/components/payment-confirmation-panel.js +1 -1
- package/components/personal-info.js +1 -1
- package/components/pills.js +1 -1
- package/components/price-breakdown.js +1 -1
- package/components/product-card.js +1 -1
- package/components/product-navigation-drawer.js +1 -1
- package/components/product-navigation.js +1 -1
- package/components/products-cross-sell-banner.js +1 -1
- package/components/products-cross-sell-image.js +1 -1
- package/components/products-cross-sell-list.js +1 -1
- package/components/products-cross-sell-panel.js +1 -1
- package/components/program-label.js +1 -1
- package/components/quality-rating-filter.js +1 -1
- package/components/quality-rating.js +1 -1
- package/components/radio-group.js +1 -0
- package/components/radios.js +1 -1
- package/components/rating.js +1 -1
- package/components/select.js +1 -1
- package/components/selectable-card.js +1 -1
- package/components/settings.js +1 -1
- package/components/slider.js +1 -1
- package/components/spinner.js +1 -1
- package/components/tab.js +1 -1
- package/components/table.js +1 -1
- package/components/text-divider.js +1 -1
- package/components/textarea.js +1 -1
- package/components/textfield-button.js +1 -1
- package/components/textfield.js +1 -1
- package/components/toast-bar.js +1 -1
- package/components/tooltip-modal.js +1 -1
- package/components/tooltip.js +1 -1
- package/components/typography.js +1 -1
- package/components/user-review-details.js +1 -1
- package/components/user-review-filter.js +1 -1
- package/components/user-review-panel.js +1 -1
- package/components/user-review.js +1 -1
- package/components/utility-panel.js +1 -1
- package/package.json +2 -2
package/components/textfield.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={78627:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var n=r(o(82015)),i=(r(o(29825)),o(54144)),a=t.ErrorMessageField=function(e){var t=e.children,o=void 0===t?null:t;return o&&n.default.createElement(i.ErrorMessage,{"data-testid":"error-message",role:"error-message"},o)};t.default=a},54144:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var n=r(o(32770)),i=o(33290);t.ErrorMessage=n.default.label.withConfig({displayName:"ErrorMessageFieldstyle__ErrorMessage",componentId:"sc-s1cvz0-0"})(["&&{"," display:block;position:relative;margin-top:10px;background:",";padding:6px 8px 6px 8px;border-radius:",";font-size:14px;color:",";line-height:130%;text-align:left;font-weight:normal;box-sizing:border-box;&:before{width:0;top:-8px;z-index:1;position:absolute;content:'';height:0;left:0;right:0;text-align:center;margin:0 auto;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:10px solid #f2dede;}}"],i.mixins.globalStyles,i.theme.validationColors.inputErrorBackground,i.theme.borderRadius,i.theme.validationColors.inputErrorText)},31792:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(78627));t.default=n.default},41522:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.HelperText=void 0;var n=r(o(46031)),i=r(o(52462)),a=r(o(82015)),l=(r(o(29825)),r(o(23420))),s=o(8833),c=["htmlFor","state","helperIcon","children"],d=t.HelperText=function(e){var t=e.htmlFor,o=e.state,r=void 0===o?"initial":o,d=e.helperIcon,u=e.children,p=void 0===u?null:u,f=(0,i.default)(e,c),g=!0===d?l.default:d;return p&&a.default.createElement(s.StyledHelperText,(0,n.default)({"data-testid":"helper-text",role:"helper-text",htmlFor:t,state:r},f),!!g&&a.default.createElement(g,null),p)};t.default=d},8833:(e,t,o)=>{var r=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledHelperText=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(n,l,s):n[l]=e[l]}return n.default=e,o&&o.set(e,n),n}(o(32770)),i=o(33290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}var l={initial:{color:i.tokens.colours.text["text-tertiary"],iconColor:i.tokens.colours.icon["icon-tertiary"],fontWeight:"regular"},error:{color:i.tokens.colours.text["text-critical"],iconColor:i.tokens.colours.icon["icon-critical"],fontWeight:"semi-bold"},success:{color:i.tokens.colours.text["text-positive"],iconColor:i.tokens.colours.icon["icon-positive"],fontWeight:"regular"}};t.StyledHelperText=n.default.label.withConfig({displayName:"HelperTextstyle__StyledHelperText",componentId:"sc-1t1iwlp-0"})((function(e){var t=e.state;return(0,n.css)([""," ",";display:flex;align-items:flex-start;gap:4px;margin-top:8px;color:",";text-align:left;> svg{flex:0 0 16px;width:16px;height:16px;font-size:16px;fill:",";}"],i.mixins.globalStyles,i.mixins.typography("body-02",l[t].fontWeight),l[t].color,l[t].iconColor)}))},33805:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(41522));t.default=n.default},72078:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(32770)),i=o(33290),a=n.default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:",";display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],i.theme.fontFamily.icon,(function(e){var t=e.iconName;return l(t)})),l=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""};t.default=a},62846:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(46031)),i=r(o(52462)),a=r(o(82015)),l=(r(o(29825)),r(o(72078))),s=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,s);return a.default.createElement(l.default,(0,n.default)({iconName:t},o))}},89473:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(29825)),i=function(e){var t=e.condition,o=void 0!==t&&t,r=e.children;return!0===o?r:null};i.propTypes={condition:n.default.bool},t.default=i},23080:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(89473));t.default=n.default},60509:(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"}}},34341:(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)"}},35050:(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"}},33290:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"tokens",{enumerable:!0,get:function(){return a.default}});var n=r(o(61267)),i=r(o(60492)),a=r(o(74362)),l=r(o(19098)),s=r(o(9090)),c=r(o(35050)),d=r(o(60509)),u=r(o(34341))},19098:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(32770),i=r(o(61267)),a=r(o(74362)),l=(0,n.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:l,typography:function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=a.default.typography[e],i=r.lineHeight,l=r.lineHeightType,s=r.fontSize;return(0,n.css)(["line-height:",";font-size:",";font-weight:",";",""],a.default.font.desktop["line-height"][l][i],a.default.font.desktop.size[s],a.default.font.desktop.weight[t],o&&(0,n.css)(["@media ","{line-height:",";font-size:",";font-weight:",";}"],a.default.media.mobile,a.default.font.mobile["line-height"][l][i],a.default.font.mobile.size[s],a.default.font.mobile.weight[t]))}}},60492:(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:"inherit",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},61267:(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:{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},74362:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(62530)),i={surface:{button:{prominent:"#6D28D9",neutral:"#D8DAE5"},neutral:{slate:{base:"#FFFFFF",subtlest:"#F1F2F6",subtle:"#EBECF2",strong:"#D8DAE5"},warm:{base:"#FFFFFF",subtlest:"#F7F8F7",subtle:"#F0F1F0",strong:"#EBECEB"}},feedback:{"positive-subtlest":"#F7FCFA","positive-subtle":"#EFFAF4","positive-strong":"#DAF2E4","critical-subtlest":"#FFF7F7","critical-subtle":"#FFEEEE","critical-strong":"#FFE5E5","info-subtlest":"#F7FAFF","info-subtle":"#EDF4FF","info-strong":"#E0EBFF","warning-subtlest":"#FFE8CC","warning-subtle":"#FFD8A8","warning-strong":"#FFC078"},container:{base:"#FFFFFF"},interactive:{actions:{"primary-default":"#6D28D9","primary-hover":"#5B21B6","primary-active":"#4C1D95","secondary-default":"#D8DAE5","secondary-hover":"#BABDCC","secondary-active":"#9A9EB2"},overlays:{default:"#3A3D4D00",hover:(0,n.default)(.96,"#3A3D4D"),active:(0,n.default)(.92,"#3A3D4D")},control:{track:{default:(0,n.default)(.96,"#3A3D4D"),hover:(0,n.default)(.92,"#3A3D4D")}},focus:{default:(0,n.default)(1-.32,"#3A3D4D")}}},border:{"critical-subtle":"#FFE5E5","critical-strong":"#B22424","critical-strongest":"#8C1515","positive-subtle":"#DAF2E4","positive-strong":"#0B7337","info-subtle":"#E0EBFF","info-strong":"#003CB2","default-subtle":"#F1F2F6","default-default":"#CBD4E0","default-strong":"#B1BCCA","input-default":"#BABDCC","input-active":"#515466","warning-subtle":"#FFC078","warning-strong":"#F76707"},text:{"text-primary":"#0A0B0D","text-secondary":"#44506A","text-tertiary":"#6A758D","text-muted":"#9BA1AE","text-on-colour":"#FFFFFF","text-info":"#0044CC","text-positive":"#0B7337","text-critical":"#B22424","text-warning":"#F76707","text-link":"#004DE5","text-accented":"#4C1D95"},icon:{"icon-primary":"#12131A","icon-secondary":"#696C80","icon-tertiary":"#6A758D","icon-muted":"#BABDCC","icon-on-colour":"#FFFFFF","icon-info":"#0044CC","icon-positive":"#0B7337","icon-critical":"#B22424","icon-warning":"#F76707","icon-link":"#004DE5","icon-accented":"#4C1D95","icon-rating":"#FFA94D"}};t.default={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)"},font:{desktop:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"32px",500:"36px",600:"40px",700:"48px",800:"56px",900:"60px"},condensed:{100:"16px",200:"18px",300:"20px",400:"24px",500:"28px",600:"32px",700:"40px",800:"44px",900:"48px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}},mobile:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"28px",500:"32px",600:"36px",700:"40px",800:"48px",900:"56px"},condensed:{100:"16px",200:"18px",300:"20px",400:"22px",500:"24px",600:"28px",700:"32px",800:"40px",900:"44px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}}},colours:i,dimensions:{radius:{none:0,xsmall:"2px",small:"4px",medium:"8px",large:"12px",xlarge:"16px",rounded:"9999px"},stroke:{regular:"1px",strong:"2px",bold:"4px"}},typography:{"heading-01":{fontSize:100,lineHeight:100,lineHeightType:"condensed"},"heading-02":{fontSize:200,lineHeight:200,lineHeightType:"condensed"},"heading-03":{fontSize:300,lineHeight:300,lineHeightType:"condensed"},"heading-04":{fontSize:400,lineHeight:400,lineHeightType:"condensed"},"heading-05":{fontSize:500,lineHeight:500,lineHeightType:"condensed"},"heading-06":{fontSize:600,lineHeight:600,lineHeightType:"condensed"},"heading-07":{fontSize:700,lineHeight:700,lineHeightType:"condensed"},"heading-08":{fontSize:800,lineHeight:800,lineHeightType:"condensed"},"heading-09":{fontSize:900,lineHeight:900,lineHeightType:"condensed"},"body-01":{fontSize:50,lineHeight:50,lineHeightType:"standard"},"body-02":{fontSize:100,lineHeight:100,lineHeightType:"standard"},"body-03":{fontSize:200,lineHeight:200,lineHeightType:"standard"},"body-04":{fontSize:300,lineHeight:300,lineHeightType:"standard"},"label-03":{fontSize:200,lineHeight:200,lineHeightType:"equal"}}}},10349:(e,t,o)=>{var r=o(33751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(46031)),a=r(o(61116)),l=r(o(17826)),s=r(o(52462)),c=w(o(82015)),d=r(o(3892)),u=(r(o(29825)),r(o(31792))),p=r(o(33805)),f=w(o(16355)),g=w(o(87754)),h=o(63465),x=r(o(23080)),b=o(27236),v=["isV2","inputId","maxLength","type","className","hasClearBtn","value","icon","iconColor","iconBackground","onChange","onClearBtnClick","size","state","helperText","helperIcon","errorMessage","disabled","labelText","gaProps","onBlur","onFocus"],m=["event"];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)}function w(e,t){if(!t&&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}function k(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function F(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?k(Object(o),!0).forEach((function(t){(0,a.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var C=c.default.forwardRef((function(e,t){var o=e.isV2,r=void 0!==o&&o,n=e.inputId,a=e.maxLength,y=void 0===a?512:a,w=e.type,k=void 0===w?"text":w,C=e.className,B=e.hasClearBtn,E=void 0===B||B,S=e.value,D=void 0===S?"":S,I=e.icon,j=e.iconColor,O=e.iconBackground,_=e.onChange,M=e.onClearBtnClick,A=e.size,P=void 0===A?"lg":A,T=e.state,H=void 0===T?"initial":T,z=e.helperText,W=e.helperIcon,N=e.errorMessage,L=void 0===N?null:N,R=e.disabled,q=e.labelText,V=e.gaProps,X=e.onBlur,J=e.onFocus,Y=(0,s.default)(e,v),G=(0,c.useState)(D),U=(0,l.default)(G,2),$=U[0],K=U[1];(0,c.useEffect)((function(){return K(D)}),[D]);var Z=!!(0,h.isValidIconElement)(I)&&I,Q=!!(0,h.isValidIconName)(I)&&I,ee=y;y=512;var te=r?g.default:f.default,oe=r?g.ClearBtnIcon:f.ClearBtnIcon,re=r?g.InputWrapper:f.InputWrapper,ne=r?g.InputIcon:f.InputIcon,ie=r?g.InputSvgIcon:f.InputSvgIcon,ae=r?g.StyledLabel:f.StyledLabel,le=c.default.createRef(),se=V||{},ce=se.event,de=(0,s.default)(se,m);return c.default.createElement(c.default.Fragment,null,c.default.createElement(re,{ref:t,className:(0,d.default)(C,{hidden:"hidden"===k}),state:H,disabled:R},c.default.createElement(x.default,{condition:(null==q?void 0:q.length)>0},c.default.createElement(ae,{htmlFor:n},q)),c.default.createElement(te,(0,i.default)({id:n,type:"text",ref:le,icon:Z||Q,value:$,onChange:function(e){var t=e.target.value;if(["number","tel"].includes(k)&&!/^\d*$/.test(t)){var o=t.replace(/\s/g,"").replace(/\D/g,",").split(",").filter((function(e){return e}));if(o.length<1)return;t=o.sort((function(e,t){return t.length-e.length}))[0]}t&&t.length>ee&&(t=t.substring(0,ee)),K(t),_&&_(t)},onBlur:function(e){ce&&(0,b.pushGAEvent)(ce,F({action:"blur",value:e.target.value,type:"text-input"},de)),X&&X(e)},onFocus:function(e){ce&&(0,b.pushGAEvent)(ce,F({action:"focus",value:e.target.value,type:"text-input"},de)),J&&J(e)},size:P,state:H,disabled:R,hasClearBtn:E},Y)),E&&$&&!R&&c.default.createElement(oe,{"data-testid":"clear-icon",role:"input-clear",onClick:function(e){K(""),_&&_(""),M&&M(e),le.current.focus()},fieldsize:P}),Z&&c.default.createElement(ie,{iconColor:j,iconBackground:O,"data-testid":"input-icon",role:"input-icon",size:P},c.default.createElement(Z,null)),!Z&&Q&&c.default.createElement(ne,{"data-testid":"input-icon",name:Q,iconColor:j,iconBackground:O,size:P,role:"input-icon"})),z&&c.default.createElement(p.default,{htmlFor:n,state:H,helperIcon:W},z),"error"===H&&L&&!r&&c.default.createElement(u.default,null,L))}));t.default=C},16355:(e,t,o)=>{var r=o(33751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StyledLabel=t.InputWrapper=t.InputSvgIcon=t.InputIcon=t.ClearBtnIcon=void 0;var i=r(o(62846)),a=r(o(61642)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=d(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(32770)),s=o(33290),c=o(17427);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(d=function(e){return e?o:t})(e)}t.ClearBtnIcon=(0,l.default)(a.default).withConfig({displayName:"TextfieldV1style__ClearBtnIcon",componentId:"sc-1q98ovj-0"})((function(e){var t=e.fieldsize,o=(0,c.isSizeSm)(t),r=(0,c.isSizeXs)(t);return(0,l.css)(["position:absolute;bottom:23px;right:6px;transform:translateY(50%);fill:",";font-size:16px;padding-right:inherit;cursor:pointer;",""],s.theme.inputCrossBtn,(o||r)&&(0,l.css)(["bottom:20px;"]))}));var u=t.InputIcon=(0,l.default)(i.default).withConfig({displayName:"TextfieldV1style__InputIcon",componentId:"sc-1q98ovj-1"})((function(e){var t=e.iconColor,o=e.iconBackground,r=e.size,n=(0,c.isSizeSm)(r),i=(0,c.isSizeXs)(r);return(0,l.css)(["&&{box-sizing:border-box;position:absolute;top:0;left:0;background:",";color:",";font-size:32px;width:46px;height:46px;line-height:1;border:1px solid ",";border-right:0;border-top-left-radius:3px;border-bottom-left-radius:3px;pointer-events:none;display:flex;justify-content:space-around;align-items:center;"," "," ","}"],s.theme.color[2],s.theme.inputIcon,s.theme.color[4],(n||i)&&(0,l.css)(["width:40px;height:40px;line-height:40px;"]),t&&(0,l.css)(["color:",";"],t),o&&(0,l.css)(["background:",";"],o))})),p=t.InputSvgIcon=l.default.span.withConfig({displayName:"TextfieldV1style__InputSvgIcon",componentId:"sc-1q98ovj-2"})((function(e){var t=e.iconColor,o=e.iconBackground,r=e.size,n=(0,c.isSizeSm)(r),i=(0,c.isSizeXs)(r);return(0,l.css)(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;position:absolute;bottom:0;left:0;background:",";font-size:24px;width:46px;height:46px;border:1px solid ",";border-right:0;border-top-left-radius:",";border-bottom-left-radius:",";pointer-events:none;"," "," svg{fill:",";}"],s.theme.color[2],s.theme.color[4],s.theme.borderRadius,s.theme.borderRadius,(n||i)&&(0,l.css)(["width:40px;height:40px;line-height:40px;"]),o&&(0,l.css)(["background:",";"],o),t||s.theme.inputIcon)})),f=l.default.input.withConfig({displayName:"TextfieldV1style__StyledTextfield",componentId:"sc-1q98ovj-3"})((function(e){var t=e.disabled,o=e.icon,r=e.size,n=e.hasClearBtn,i=(0,c.isSizeSm)(r),a=(0,c.isSizeXs)(r);return(0,l.css)([""," appearance:none;font-size:16px;height:46px;line-height:normal;padding:",";margin:0;border-radius:",";background:",";border:1px solid ",";outline:none;cursor:pointer;width:100%;"," &::-ms-clear,&::-ms-reveal{display:none;}&::-moz-selection{background:rgba(99,158,200,0.5);}&::selection{background:rgba(99,158,200,0.5);}&::placeholder{color:",";}"," "," "," "," ",""],s.mixins.globalStyles,n?"0 28px 0 9px":"0 9px 0 9px",s.theme.borderRadius,s.theme.color[11],s.theme.color[4],(i||a)&&(0,l.css)(["height:40px;"]),s.theme.color[6],!t&&(0,l.css)(["&:active,&:focus{background:",";}&:focus{box-shadow:",";}"],s.theme.inputHoverBackground,s.theme.activeItemOutline),t&&(0,l.css)(["box-shadow:none;opacity:0.5;cursor:default;~ ","{opacity:0.5;}"],u),o&&(0,l.css)(["padding-left:59px;"," ",""],!t&&(0,l.css)(["&:focus{~ ","{background:",";}}"],u,s.theme.btnStandardHover),(i||a)&&(0,l.css)(["padding-left:53px;"])),(function(e){return"error"===e.state&&(0,l.css)(["&&:focus,&&:active{background-color:",";~ ","{background:",";}}"],s.theme.validationColors.inputErrorHoverBackground,u,s.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,l.css)(["&&:active,&&:focus{filter:brightness(97%);background:",";}"],s.theme.successBackground)}))}));t.InputWrapper=l.default.div.withConfig({displayName:"TextfieldV1style__InputWrapper",componentId:"sc-1q98ovj-4"})(["display:inline-block;width:100%;position:relative;vertical-align:top;"," "," ",""],(function(e){return"error"===e.state&&(0,l.css)(["","{background-color:",";color:",";}","{background:",";color:",";}","{background:",";svg{fill:",";}}&&&:hover{","{background-color:",";}","{background:",";}","{background:",";}}"],f,s.theme.validationColors.inputErrorBackground,s.theme.validationColors.inputErrorText,u,s.theme.validationColors.inputErrorIconBackground,s.theme.validationColors.inputErrorIcon,p,s.theme.validationColors.inputErrorIconBackground,s.theme.validationColors.inputErrorIcon,f,s.theme.validationColors.inputErrorHoverBackground,u,s.theme.validationColors.inputErrorIconHoverBackground,p,s.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,l.css)(["","{background:",";color:",";}&&&:hover{","{filter:brightness(97%);background:",";}}"],f,s.theme.successBackground,s.theme.successText,f,s.theme.successBackground)}),(function(e){return!e.disabled&&(0,l.css)(["&&:hover{","{background:",";}","{background:",";}","{background:",";}}"],f,s.theme.inputHoverBackground,u,s.theme.btnStandardHover,p,s.theme.btnStandardHover)})),t.StyledLabel=l.default.label.withConfig({displayName:"TextfieldV1style__StyledLabel",componentId:"sc-1q98ovj-5"})(["color:",";font-size:14px;line-height:20px;padding-bottom:8px;display:inline-block;"],s.theme.color[10]),t.default=f},87754:(e,t,o)=>{var r=o(33751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StyledLabel=t.InputWrapper=t.InputSvgIcon=t.InputIcon=t.ClearBtnIcon=void 0;var i=r(o(62846)),a=r(o(29609)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=d(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(32770)),s=o(33290),c=o(17427);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(d=function(e){return e?o:t})(e)}var u={labelTextColor:s.tokens.colours.text["text-secondary"],clearIconColor:s.tokens.colours.icon["icon-primary"],placeholderTextColor:s.tokens.colours.text["text-muted"],valueSelectionBackgroundColor:"rgba(99, 158, 200, 0.5)",inputBorderRadius:s.tokens.dimensions.radius.small,focusBoxShadow:"0 0 0 ".concat(s.tokens.dimensions.stroke.bold," ").concat(s.tokens.colours.surface.interactive.focus.default),initial:{backgroundColor:s.tokens.colours.surface.neutral.slate.default,hoverBackgroundColor:"linear-gradient(".concat(s.tokens.colours.surface.interactive.overlays.hover,"),").concat(s.tokens.colours.surface.neutral.slate.base),textColor:s.tokens.colours.text["text-secondary"],iconColor:s.tokens.colours.icon["icon-primary"],border:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-default"]),activeBorder:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-active"]),outline:"none"},error:{backgroundColor:s.tokens.colours.surface.feedback["critical-strong"],hoverBackgroundColor:"linear-gradient(".concat(s.tokens.colours.surface.interactive.overlays.hover,"),").concat(s.tokens.colours.surface.feedback["critical-strong"]),textColor:s.tokens.colours.text["text-secondary"],iconColor:s.tokens.colours.icon["icon-primary"],border:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-default"]),activeBorder:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-active"]),outline:"".concat(s.tokens.dimensions.stroke.strong," solid ").concat(s.tokens.colours.border["critical-strong"])},success:{backgroundColor:s.tokens.colours.surface.neutral.slate.default,hoverBackgroundColor:"linear-gradient(".concat(s.tokens.colours.surface.interactive.overlays.hover,"),").concat(s.tokens.colours.surface.neutral.slate.base),textColor:s.tokens.colours.text["text-secondary"],iconColor:s.tokens.colours.icon["icon-primary"],border:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-default"]),activeBorder:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-active"]),outline:"none"},disabled:{backgroundColor:s.tokens.colours.surface.neutral.slate.subtlest,hoverBackgroundColor:s.tokens.colours.surface.neutral.slate.subtlest,textColor:s.tokens.colours.text["text-muted"],iconColor:s.tokens.colours.icon["icon-muted"],border:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["default-subtle"]),activeBorder:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["default-subtle"]),outline:"none"}},p=(t.ClearBtnIcon=(0,l.default)(a.default).withConfig({displayName:"TextfieldV2style__ClearBtnIcon",componentId:"sc-ytle21-0"})((function(e){var t=e.fieldsize,o=(0,c.isSizeSm)(t),r=(0,c.isSizeXs)(t);return(0,l.css)(["position:absolute;bottom:16px;right:16px;font-size:16px;fill:",";cursor:pointer;",""],u.clearIconColor,(o||r)&&(0,l.css)(["top:12px;"]))})),t.InputIcon=(0,l.default)(i.default).withConfig({displayName:"TextfieldV2style__InputIcon",componentId:"sc-ytle21-1"})(["display:none;"]),t.InputSvgIcon=l.default.span.withConfig({displayName:"TextfieldV2style__InputSvgIcon",componentId:"sc-ytle21-2"})((function(e){var t=e.size,o=(0,c.isSizeSm)(t),r=(0,c.isSizeXs)(t);return(0,l.css)(["position:absolute;top:16px;left:16px;font-size:16px;pointer-events:none;",""],(o||r)&&(0,l.css)(["top:12px;"]))}))),f=l.default.input.withConfig({displayName:"TextfieldV2style__StyledTextfield",componentId:"sc-ytle21-3"})((function(e){var t=e.icon,o=e.size,r=e.hasClearBtn,n=(0,c.isSizeSm)(o),i=(0,c.isSizeXs)(o);return(0,l.css)([""," "," appearance:none;height:48px;padding-top:0px;padding-bottom:0px;padding-right:",";padding-left:",";margin:0;border-radius:",";outline:none;cursor:pointer;width:100%;"," &::-ms-clear,&::-ms-reveal{display:none;}&::-moz-selection{background:",";}&::selection{background:",";}&::placeholder{"," color:",";}"],s.mixins.globalStyles,s.mixins.typography("label-03","regular"),r?"40px":"16px",t?"40px":"16px",u.inputBorderRadius,(n||i)&&(0,l.css)(["height:40px;"]),u.valueSelectionBackgroundColor,u.valueSelectionBackgroundColor,s.mixins.typography("label-03","regular"),u.placeholderTextColor)}));t.InputWrapper=l.default.div.withConfig({displayName:"TextfieldV2style__InputWrapper",componentId:"sc-ytle21-4"})((function(e){var t=e.disabled,o=e.state,r=t?"disabled":["initial","error","success"].includes(o)?o:"initial";return(0,l.css)(["display:inline-block;width:100%;position:relative;","{&:focus-visible{box-shadow:",";}}"," "," "," ",""],f,u.focusBoxShadow,"initial"===r&&!t&&(0,l.css)(["","{background:",";color:",";border:",";&:hover{background:",";}&:active,&:focus{border:",";}}"," svg{fill:",";}"],f,u[r].backgroundColor,u[r].textColor,u[r].border,u[r].hoverBackgroundColor,u[r].activeBorder,p,u[r].iconColor),"error"===r&&(0,l.css)(["",",",":active{background:",";color:",";border:",";outline:",";outline-offset:-2px;&:hover{background:",";}&:active,&:focus{border:",";}}"," svg{fill:",";}"],f,f,u[r].backgroundColor,u[r].textColor,u[r].border,u[r].outline,u[r].hoverBackgroundColor,u[r].activeBorder,p,u[r].iconColor),"success"===r&&(0,l.css)(["",",",":active{background:",";color:",";border:",";&:hover{background:",";}&:active,&:focus{border:",";}}"," svg{fill:",";}"],f,f,u[r].backgroundColor,u[r].textColor,u[r].border,u[r].hoverBackgroundColor,u[r].activeBorder,p,u[r].iconColor),"disabled"===r&&(0,l.css)(["",",",":active{background:",";color:",";border:",";&:hover{background:",";}&:active,&:focus{border:",";}}"," svg{fill:",";}"],f,f,u[r].backgroundColor,u[r].textColor,u[r].border,u[r].hoverBackgroundColor,u[r].activeBorder,p,u[r].iconColor))})),t.StyledLabel=l.default.label.withConfig({displayName:"TextfieldV2style__StyledLabel",componentId:"sc-ytle21-5"})([""," display:block;margin-bottom:8px;color:",";"],s.mixins.typography("label-03","regular"),u.labelTextColor),t.default=f},63465:(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 r=o(84513),n=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.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,r.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var o=0;o<e.length;o++){var n,i=null===(n=window.atob(e[o].split(".")[1]))||void 0===n?void 0:n.toString("ascii"),a=JSON.parse(i),l=a.firstName,s=a.email,c=a.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:l,email:s})}return t}),l=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,r=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||n<=r?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==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,r=e.clientHeight,n=t-o;return n>=r-1&&n<=r+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}},27236:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=r(o(61116)),i=r(o(17826));function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var o=(0,i.default)(e,2),r=o[0],n=o[1];null!=n&&(t["data-ga-".concat(r)]=String(n))})),t},t.pushGAEvent=function(e,t){var o=window.dataLayer;e&&o&&o.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){(0,n.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({event:e},t)}},17427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},84513:(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}},r=(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=r(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=[],n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);0===i.indexOf(t)&&r.push(i.substring(t.length,i.length))}return r});t.setCookieStorage=function(e,t,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}},61116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},46031:e=>{e.exports=require("@babel/runtime/helpers/extends")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},52462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},29609:e=>{e.exports=require("@webjet/react-icons/close")},61642:e=>{e.exports=require("@webjet/react-icons/common/x-circle-fill")},23420:e=>{e.exports=require("@webjet/react-icons/info-outline")},3892:e=>{e.exports=require("classnames")},62530:e=>{e.exports=require("polished/lib/color/transparentize.js")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},32770: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(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(o(10349));e.default=n.default})(),module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={78627:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorMessageField=void 0;var n=r(o(82015)),i=(r(o(29825)),o(54144)),a=t.ErrorMessageField=function(e){var t=e.children,o=void 0===t?null:t;return o&&n.default.createElement(i.ErrorMessage,{"data-testid":"error-message",role:"error-message"},o)};t.default=a},54144:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var n=r(o(32770)),i=o(33290);t.ErrorMessage=n.default.label.withConfig({displayName:"ErrorMessageFieldstyle__ErrorMessage",componentId:"sc-s1cvz0-0"})(["&&{"," display:block;position:relative;margin-top:10px;background:",";padding:6px 8px 6px 8px;border-radius:",";font-size:14px;color:",";line-height:130%;text-align:left;font-weight:normal;box-sizing:border-box;&:before{width:0;top:-8px;z-index:1;position:absolute;content:'';height:0;left:0;right:0;text-align:center;margin:0 auto;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:10px solid #f2dede;}}"],i.mixins.globalStyles,i.theme.validationColors.inputErrorBackground,i.theme.borderRadius,i.theme.validationColors.inputErrorText)},31792:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(78627));t.default=n.default},41522:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.HelperText=void 0;var n=r(o(46031)),i=r(o(52462)),a=r(o(82015)),l=(r(o(29825)),r(o(23420))),s=o(8833),c=["htmlFor","state","helperIcon","children"],d=t.HelperText=function(e){var t=e.htmlFor,o=e.state,r=void 0===o?"initial":o,d=e.helperIcon,u=e.children,p=void 0===u?null:u,f=(0,i.default)(e,c),g=!0===d?l.default:d;return p&&a.default.createElement(s.StyledHelperText,(0,n.default)({"data-testid":"helper-text",role:"helper-text",htmlFor:t,state:r},f),!!g&&a.default.createElement(g,null),p)};t.default=d},8833:(e,t,o)=>{var r=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledHelperText=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var o=a(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(n,l,s):n[l]=e[l]}return n.default=e,o&&o.set(e,n),n}(o(32770)),i=o(33290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:t})(e)}var l={initial:{color:i.tokens.colours.text["text-tertiary"],iconColor:i.tokens.colours.icon["icon-tertiary"],fontWeight:"regular"},error:{color:i.tokens.colours.text["text-critical"],iconColor:i.tokens.colours.icon["icon-critical"],fontWeight:"semi-bold"},success:{color:i.tokens.colours.text["text-positive"],iconColor:i.tokens.colours.icon["icon-positive"],fontWeight:"regular"}};t.StyledHelperText=n.default.label.withConfig({displayName:"HelperTextstyle__StyledHelperText",componentId:"sc-1t1iwlp-0"})((function(e){var t=e.state;return(0,n.css)([""," ",";display:flex;align-items:flex-start;gap:4px;margin-top:8px;color:",";text-align:left;> svg{flex:0 0 16px;width:16px;height:16px;font-size:16px;fill:",";}"],i.mixins.globalStyles,i.mixins.typography("body-02",l[t].fontWeight),l[t].color,l[t].iconColor)}))},33805:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(41522));t.default=n.default},72078:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(32770)),i=o(33290),a=n.default.span.withConfig({displayName:"Iconstyle__Icon",componentId:"sc-1gq7yvz-0"})(["font-family:",";display:inline-block;font-size:16px;font-weight:normal;-webkit-font-smoothing:antialiased;&:after{content:'","';}"],i.theme.fontFamily.icon,(function(e){var t=e.iconName;return l(t)})),l=function(e){switch(e){case"wj-alt-cross":return"\\E027";case"wj-caret-up":return"\\E001";case"wj-caret-right":return"\\E002";case"wj-caret-down":return"\\E003";case"wj-caret-left":return"\\E004";case"wj-check":return"\\E028";case"wj-cross":return"\\E016";case"wj-destination-search":return"\\F094";case"wj-calendar":return"\\F012";case"wj-dbl-calendar":return"\\F026";case"wj-depart":return"\\F018";case"wj-arrival":return"\\F019";case"wj-dollar":return"\\E059";case"wj-expand":return"\\E01F";case"wj-time":return"\\E021";case"wj-arrow-left":return"\\E00C";case"wj-arrow-right":return"\\E00A";case"wj-arrow-previous":return"\\F01D";case"wj-arrow-next":return"\\F01E";case"wj-mappin":return"\\E01D";case"wj-car-pickup":return"\\F074";case"wj-car-dropoff":return"\\F075";case"wj-alt-info":return"\\F01A";case"wj-alt-plus":return"\\E025";case"wj-tag":return"\\E023";case"wj-unlock":return"\\F072"}return""};t.default=a},62846:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(46031)),i=r(o(52462)),a=r(o(82015)),l=(r(o(29825)),r(o(72078))),s=["name"];t.default=function(e){var t=e.name,o=(0,i.default)(e,s);return a.default.createElement(l.default,(0,n.default)({iconName:t},o))}},89473:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(29825)),i=function(e){var t=e.condition,o=void 0!==t&&t,r=e.children;return!0===o?r:null};i.propTypes={condition:n.default.bool},t.default=i},23080:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(89473));t.default=n.default},60509:(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"}}},34341:(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)"}},35050:(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"}},33290:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"tokens",{enumerable:!0,get:function(){return a.default}});var n=r(o(61267)),i=r(o(60492)),a=r(o(74362)),l=r(o(19098)),s=r(o(9090)),c=r(o(35050)),d=r(o(60509)),u=r(o(34341))},19098:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(32770),i=r(o(61267)),a=r(o(74362)),l=(0,n.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:l,typography:function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=a.default.typography[e],i=r.lineHeight,l=r.lineHeightType,s=r.fontSize;return(0,n.css)(["line-height:",";font-size:",";font-weight:",";",""],a.default.font.desktop["line-height"][l][i],a.default.font.desktop.size[s],a.default.font.desktop.weight[t],o&&(0,n.css)(["@media ","{line-height:",";font-size:",";font-weight:",";}"],a.default.media.mobile,a.default.font.mobile["line-height"][l][i],a.default.font.mobile.size[s],a.default.font.mobile.weight[t]))}}},60492:(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:"inherit",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},61267:(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:{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},74362:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={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)"},font:{desktop:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"32px",500:"36px",600:"40px",700:"48px",800:"56px",900:"60px"},condensed:{100:"16px",200:"18px",300:"20px",400:"24px",500:"28px",600:"32px",700:"40px",800:"44px",900:"48px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}},mobile:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"28px",500:"32px",600:"36px",700:"40px",800:"48px",900:"56px"},condensed:{100:"16px",200:"18px",300:"20px",400:"22px",500:"24px",600:"28px",700:"32px",800:"40px",900:"44px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}}},colours:{surface:{button:{prominent:"#6D28D9",neutral:"#EBECF2",passive:"#E7E7E8"},neutral:{slate:{base:"#FFFFFF",subtlest:"#F1F2F6",subtle:"#EBECF2",strong:"#D8DAE5"},warm:{base:"#FFFFFF",subtlest:"#F7F8F7",subtle:"#F0F1F0",strong:"#EBECEB"}},feedback:{"positive-subtlest":"#F7FCFA","positive-subtle":"#EFFAF4","positive-strong":"#DAF2E4","positive-strongest":"#0B7337","neutral-subtlest":"#F1F2F6","neutral-subtle":"#EBECF2","neutral-strong":"#828699","neutral-strongest":"#696C80","critical-subtlest":"#FFF7F7","critical-subtle":"#FFEEEE","critical-strong":"#FFE5E5","critical-strongest":"#B22424","info-subtlest":"#F7FAFF","info-subtle":"#EDF4FF","info-strong":"#E0EBFF","info-strongest":"#003CB2","accent-subtlest":"#F7F6FF","accent-subtle":"#DDD6FE","accent-strong":"#C4B5FD","accent-strongest":"#4C1D95","warning-subtlest":"#FFE8CC","warning-subtle":"#FFD8A8","warning-strong":"#FFC078","warning-strongest":"#E8590C"},container:{base:"#FFFFFF"},interactive:{actions:{"primary-default":"#6D28D9","primary-hover":"#5B21B6","primary-active":"#4C1D95","secondary-default":"#D8DAE5","secondary-hover":"#BABDCC","secondary-active":"#9A9EB2"},overlay:{universal:{default:"#3A3D4D00",hover:"color-mix(in srgb, #3A3D4D 4%, transparent)",active:"color-mix(in srgb, #3A3D4D 8%, transparent)"},button:{default:"#3A3D4D00",hover:"color-mix(in srgb, #3A3D4D 24%, transparent)",active:"color-mix(in srgb, #3A3D4D 32%, transparent)"}},control:{track:{default:"color-mix(in srgb, #3A3D4D 4%, transparent)",hover:"color-mix(in srgb, #3A3D4D 8%, transparent)"}},focus:{default:"color-mix(in srgb, #3A3D4D 32%, transparent)"}}},border:{"critical-subtle":"#FFE5E5","critical-strong":"#B22424","critical-strongest":"#8C1515","positive-subtle":"#DAF2E4","positive-strong":"#0B7337","info-subtle":"#E0EBFF","info-strong":"#0044CC","default-subtle":"#E4E7EE","default-default":"#CBD4E0","default-strong":"#B1BCCA","input-default":"#BABDCC","input-active":"#515466","warning-subtle":"#FFC078","warning-strong":"#E8590C","accent-subtle":"#C4B5FD","accent-strong":"#4C1D95"},text:{"text-primary":"#0A0B0D","text-secondary":"#44506A","text-tertiary":"#6A758D","text-muted":"#9BA1AE","text-on-colour":"#FFFFFF","text-info":"#0044CC","text-positive":"#0B7337","text-critical":"#B22424","text-warning":"#F76707","text-link":"#004DE5","text-accented":"#4C1D95"},icon:{"icon-primary":"#12131A","icon-secondary":"#696C80","icon-tertiary":"#6A758D","icon-muted":"#BABDCC","icon-on-colour":"#FFFFFF","icon-info":"#0044CC","icon-positive":"#0B7337","icon-critical":"#B22424","icon-warning":"#F76707","icon-link":"#004DE5","icon-accented":"#4C1D95","icon-rating":"#FFA94D"}},dimensions:{radius:{none:0,xsmall:"2px",small:"4px",medium:"8px",large:"12px",xlarge:"16px",rounded:"9999px"},stroke:{regular:"1px",strong:"2px",bold:"4px"}},typography:{"heading-01":{fontSize:100,lineHeight:100,lineHeightType:"condensed"},"heading-02":{fontSize:200,lineHeight:200,lineHeightType:"condensed"},"heading-03":{fontSize:300,lineHeight:300,lineHeightType:"condensed"},"heading-04":{fontSize:400,lineHeight:400,lineHeightType:"condensed"},"heading-05":{fontSize:500,lineHeight:500,lineHeightType:"condensed"},"heading-06":{fontSize:600,lineHeight:600,lineHeightType:"condensed"},"heading-07":{fontSize:700,lineHeight:700,lineHeightType:"condensed"},"heading-08":{fontSize:800,lineHeight:800,lineHeightType:"condensed"},"heading-09":{fontSize:900,lineHeight:900,lineHeightType:"condensed"},"body-01":{fontSize:50,lineHeight:50,lineHeightType:"standard"},"body-02":{fontSize:100,lineHeight:100,lineHeightType:"standard"},"body-03":{fontSize:200,lineHeight:200,lineHeightType:"standard"},"body-04":{fontSize:300,lineHeight:300,lineHeightType:"standard"},"label-02":{fontSize:100,lineHeight:100,lineHeightType:"equal"},"label-03":{fontSize:200,lineHeight:200,lineHeightType:"equal"}}}},10349:(e,t,o)=>{var r=o(33751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(o(46031)),a=r(o(61116)),l=r(o(17826)),s=r(o(52462)),c=w(o(82015)),d=r(o(3892)),u=(r(o(29825)),r(o(31792))),p=r(o(33805)),f=w(o(92650)),g=w(o(87754)),x=o(63465),b=r(o(23080)),h=o(27236),m=["isV2","inputId","maxLength","type","className","hasClearBtn","value","icon","iconColor","iconBackground","onChange","onClearBtnClick","size","state","helperText","helperIcon","errorMessage","disabled","labelText","gaProps","onBlur","onFocus"],v=["event"];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)}function w(e,t){if(!t&&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}function k(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function F(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?k(Object(o),!0).forEach((function(t){(0,a.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var C=c.default.forwardRef((function(e,t){var o=e.isV2,r=void 0!==o&&o,n=e.inputId,a=e.maxLength,y=void 0===a?512:a,w=e.type,k=void 0===w?"text":w,C=e.className,E=e.hasClearBtn,B=void 0===E||E,S=e.value,D=void 0===S?"":S,I=e.icon,O=e.iconColor,j=e.iconBackground,_=e.onChange,M=e.onClearBtnClick,A=e.size,P=void 0===A?"lg":A,T=e.state,H=void 0===T?"initial":T,z=e.helperText,W=e.helperIcon,N=e.errorMessage,L=void 0===N?null:N,R=e.disabled,q=e.labelText,V=e.gaProps,X=e.onBlur,J=e.onFocus,Y=(0,s.default)(e,m),G=(0,c.useState)(D),U=(0,l.default)(G,2),$=U[0],K=U[1];(0,c.useEffect)((function(){return K(D)}),[D]);var Z=!!(0,x.isValidIconElement)(I)&&I,Q=!!(0,x.isValidIconName)(I)&&I,ee=y;y=512;var te=r?g.default:f.default,oe=r?g.ClearBtnIcon:f.ClearBtnIcon,re=r?g.InputWrapper:f.InputWrapper,ne=r?g.InputIcon:f.InputIcon,ie=r?g.InputSvgIcon:f.InputSvgIcon,ae=r?g.StyledLabel:f.StyledLabel,le=c.default.createRef(),se=V||{},ce=se.event,de=(0,s.default)(se,v);return c.default.createElement(c.default.Fragment,null,c.default.createElement(re,{ref:t,role:"textfield",className:(0,d.default)(C,{hidden:"hidden"===k}),state:H,disabled:R},c.default.createElement(b.default,{condition:(null==q?void 0:q.length)>0},c.default.createElement(ae,{htmlFor:n},q)),c.default.createElement(te,(0,i.default)({id:n,type:"text",ref:le,icon:Z||Q,value:$,onChange:function(e){var t=e.target.value;if(["number","tel"].includes(k)&&!/^\d*$/.test(t)){var o=t.replace(/\s/g,"").replace(/\D/g,",").split(",").filter((function(e){return e}));if(o.length<1)return;t=o.sort((function(e,t){return t.length-e.length}))[0]}t&&t.length>ee&&(t=t.substring(0,ee)),K(t),_&&_(t)},onBlur:function(e){ce&&(0,h.pushGAEvent)(ce,F({action:"blur",value:e.target.value,type:"text-input"},de)),X&&X(e)},onFocus:function(e){ce&&(0,h.pushGAEvent)(ce,F({action:"focus",value:e.target.value,type:"text-input"},de)),J&&J(e)},size:P,state:H,disabled:R,hasClearBtn:B},Y)),B&&$&&!R&&c.default.createElement(oe,{"data-testid":"clear-icon",role:"input-clear",onClick:function(e){K(""),_&&_(""),M&&M(e),le.current.focus()},fieldsize:P}),Z&&c.default.createElement(ie,{iconColor:O,iconBackground:j,"data-testid":"input-icon",role:"input-icon",size:P},c.default.createElement(Z,null)),!Z&&Q&&c.default.createElement(ne,{"data-testid":"input-icon",name:Q,iconColor:O,iconBackground:j,size:P,role:"input-icon"})),z&&c.default.createElement(p.default,{htmlFor:n,state:H,helperIcon:W},z),"error"===H&&L&&!r&&c.default.createElement(u.default,null,L))}));t.default=C},92650:(e,t,o)=>{var r=o(33751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StyledLabel=t.InputWrapper=t.InputSvgIcon=t.InputIcon=t.ClearBtnIcon=void 0;var i=r(o(62846)),a=r(o(61642)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=d(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(32770)),s=o(33290),c=o(17427);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(d=function(e){return e?o:t})(e)}t.ClearBtnIcon=(0,l.default)(a.default).withConfig({displayName:"Textfieldstyle__ClearBtnIcon",componentId:"sc-13wk8xr-0"})((function(e){var t=e.fieldsize,o=(0,c.isSizeSm)(t),r=(0,c.isSizeXs)(t);return(0,l.css)(["position:absolute;bottom:23px;right:6px;transform:translateY(50%);fill:",";font-size:16px;padding-right:inherit;cursor:pointer;",""],s.theme.inputCrossBtn,(o||r)&&(0,l.css)(["bottom:20px;"]))}));var u=t.InputIcon=(0,l.default)(i.default).withConfig({displayName:"Textfieldstyle__InputIcon",componentId:"sc-13wk8xr-1"})((function(e){var t=e.iconColor,o=e.iconBackground,r=e.size,n=(0,c.isSizeSm)(r),i=(0,c.isSizeXs)(r);return(0,l.css)(["&&{box-sizing:border-box;position:absolute;top:0;left:0;background:",";color:",";font-size:32px;width:46px;height:46px;line-height:1;border:1px solid ",";border-right:0;border-top-left-radius:3px;border-bottom-left-radius:3px;pointer-events:none;display:flex;justify-content:space-around;align-items:center;"," "," ","}"],s.theme.color[2],s.theme.inputIcon,s.theme.color[4],(n||i)&&(0,l.css)(["width:40px;height:40px;line-height:40px;"]),t&&(0,l.css)(["color:",";"],t),o&&(0,l.css)(["background:",";"],o))})),p=t.InputSvgIcon=l.default.span.withConfig({displayName:"Textfieldstyle__InputSvgIcon",componentId:"sc-13wk8xr-2"})((function(e){var t=e.iconColor,o=e.iconBackground,r=e.size,n=(0,c.isSizeSm)(r),i=(0,c.isSizeXs)(r);return(0,l.css)(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;position:absolute;bottom:0;left:0;background:",";font-size:24px;width:46px;height:46px;border:1px solid ",";border-right:0;border-top-left-radius:",";border-bottom-left-radius:",";pointer-events:none;"," "," svg{fill:",";}"],s.theme.color[2],s.theme.color[4],s.theme.borderRadius,s.theme.borderRadius,(n||i)&&(0,l.css)(["width:40px;height:40px;line-height:40px;"]),o&&(0,l.css)(["background:",";"],o),t||s.theme.inputIcon)})),f=l.default.input.withConfig({displayName:"Textfieldstyle__StyledTextfield",componentId:"sc-13wk8xr-3"})((function(e){var t=e.disabled,o=e.icon,r=e.size,n=e.hasClearBtn,i=(0,c.isSizeSm)(r),a=(0,c.isSizeXs)(r);return(0,l.css)([""," appearance:none;font-size:16px;height:46px;line-height:normal;padding:",";margin:0;border-radius:",";background:",";border:1px solid ",";outline:none;cursor:pointer;width:100%;"," &::-ms-clear,&::-ms-reveal{display:none;}&::-moz-selection{background:rgba(99,158,200,0.5);}&::selection{background:rgba(99,158,200,0.5);}&::placeholder{color:",";}"," "," "," "," ",""],s.mixins.globalStyles,n?"0 28px 0 9px":"0 9px 0 9px",s.theme.borderRadius,s.theme.color[11],s.theme.color[4],(i||a)&&(0,l.css)(["height:40px;"]),s.theme.color[6],!t&&(0,l.css)(["&:active,&:focus{background:",";}&:focus{box-shadow:",";}"],s.theme.inputHoverBackground,s.theme.activeItemOutline),t&&(0,l.css)(["box-shadow:none;opacity:0.5;cursor:default;~ ","{opacity:0.5;}"],u),o&&(0,l.css)(["padding-left:59px;"," ",""],!t&&(0,l.css)(["&:focus{~ ","{background:",";}}"],u,s.theme.btnStandardHover),(i||a)&&(0,l.css)(["padding-left:53px;"])),(function(e){return"error"===e.state&&(0,l.css)(["&&:focus,&&:active{background-color:",";~ ","{background:",";}}"],s.theme.validationColors.inputErrorHoverBackground,u,s.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,l.css)(["&&:active,&&:focus{filter:brightness(97%);background:",";}"],s.theme.successBackground)}))}));t.InputWrapper=l.default.div.withConfig({displayName:"Textfieldstyle__InputWrapper",componentId:"sc-13wk8xr-4"})(["display:inline-block;width:100%;position:relative;vertical-align:top;"," "," ",""],(function(e){return"error"===e.state&&(0,l.css)(["","{background-color:",";color:",";}","{background:",";color:",";}","{background:",";svg{fill:",";}}&&&:hover{","{background-color:",";}","{background:",";}","{background:",";}}"],f,s.theme.validationColors.inputErrorBackground,s.theme.validationColors.inputErrorText,u,s.theme.validationColors.inputErrorIconBackground,s.theme.validationColors.inputErrorIcon,p,s.theme.validationColors.inputErrorIconBackground,s.theme.validationColors.inputErrorIcon,f,s.theme.validationColors.inputErrorHoverBackground,u,s.theme.validationColors.inputErrorIconHoverBackground,p,s.theme.validationColors.inputErrorIconHoverBackground)}),(function(e){return"success"===e.state&&(0,l.css)(["","{background:",";color:",";}&&&:hover{","{filter:brightness(97%);background:",";}}"],f,s.theme.successBackground,s.theme.successText,f,s.theme.successBackground)}),(function(e){return!e.disabled&&(0,l.css)(["&&:hover{","{background:",";}","{background:",";}","{background:",";}}"],f,s.theme.inputHoverBackground,u,s.theme.btnStandardHover,p,s.theme.btnStandardHover)})),t.StyledLabel=l.default.label.withConfig({displayName:"Textfieldstyle__StyledLabel",componentId:"sc-13wk8xr-5"})(["color:",";font-size:14px;line-height:20px;padding-bottom:8px;display:inline-block;"],s.theme.color[10]),t.default=f},87754:(e,t,o)=>{var r=o(33751),n=o(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StyledLabel=t.InputWrapper=t.InputSvgIcon=t.InputIcon=t.ClearBtnIcon=void 0;var i=r(o(62846)),a=r(o(29609)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var o=d(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(32770)),s=o(33290),c=o(17427);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(d=function(e){return e?o:t})(e)}var u={labelTextColor:s.tokens.colours.text["text-secondary"],clearIconColor:s.tokens.colours.icon["icon-primary"],placeholderTextColor:s.tokens.colours.text["text-muted"],valueSelectionBackgroundColor:"rgba(99, 158, 200, 0.5)",inputBorderRadius:s.tokens.dimensions.radius.small,focusBoxShadow:"0 0 0 ".concat(s.tokens.dimensions.stroke.bold," ").concat(s.tokens.colours.surface.interactive.focus.default),initial:{backgroundColor:s.tokens.colours.surface.neutral.slate.default,hoverBackgroundColor:"linear-gradient(".concat(s.tokens.colours.surface.interactive.overlay.universal.hover,"),").concat(s.tokens.colours.surface.neutral.slate.base),textColor:s.tokens.colours.text["text-secondary"],iconColor:s.tokens.colours.icon["icon-primary"],border:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-default"]),activeBorder:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-active"]),outline:"none"},error:{backgroundColor:s.tokens.colours.surface.feedback["critical-strong"],hoverBackgroundColor:"linear-gradient(".concat(s.tokens.colours.surface.interactive.overlay.universal.hover,"),").concat(s.tokens.colours.surface.feedback["critical-strong"]),textColor:s.tokens.colours.text["text-secondary"],iconColor:s.tokens.colours.icon["icon-primary"],border:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-default"]),activeBorder:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-active"]),outline:"".concat(s.tokens.dimensions.stroke.strong," solid ").concat(s.tokens.colours.border["critical-strong"])},success:{backgroundColor:s.tokens.colours.surface.neutral.slate.default,hoverBackgroundColor:"linear-gradient(".concat(s.tokens.colours.surface.interactive.overlay.universal.hover,"),").concat(s.tokens.colours.surface.neutral.slate.base),textColor:s.tokens.colours.text["text-secondary"],iconColor:s.tokens.colours.icon["icon-primary"],border:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-default"]),activeBorder:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["input-active"]),outline:"none"},disabled:{backgroundColor:s.tokens.colours.surface.neutral.slate.subtlest,hoverBackgroundColor:s.tokens.colours.surface.neutral.slate.subtlest,textColor:s.tokens.colours.text["text-muted"],iconColor:s.tokens.colours.icon["icon-muted"],border:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["default-subtle"]),activeBorder:"".concat(s.tokens.dimensions.stroke.regular," solid ").concat(s.tokens.colours.border["default-subtle"]),outline:"none"}},p=(t.ClearBtnIcon=(0,l.default)(a.default).withConfig({displayName:"TextfieldV2style__ClearBtnIcon",componentId:"sc-ytle21-0"})((function(e){var t=e.fieldsize,o=(0,c.isSizeSm)(t),r=(0,c.isSizeXs)(t);return(0,l.css)(["position:absolute;bottom:16px;right:16px;font-size:16px;fill:",";cursor:pointer;",""],u.clearIconColor,(o||r)&&(0,l.css)(["top:12px;"]))})),t.InputIcon=(0,l.default)(i.default).withConfig({displayName:"TextfieldV2style__InputIcon",componentId:"sc-ytle21-1"})(["display:none;"]),t.InputSvgIcon=l.default.span.withConfig({displayName:"TextfieldV2style__InputSvgIcon",componentId:"sc-ytle21-2"})((function(e){var t=e.size,o=(0,c.isSizeSm)(t),r=(0,c.isSizeXs)(t);return(0,l.css)(["position:absolute;top:16px;left:16px;font-size:16px;pointer-events:none;",""],(o||r)&&(0,l.css)(["top:12px;"]))}))),f=l.default.input.withConfig({displayName:"TextfieldV2style__StyledTextfield",componentId:"sc-ytle21-3"})((function(e){var t=e.icon,o=e.size,r=e.hasClearBtn,n=(0,c.isSizeSm)(o),i=(0,c.isSizeXs)(o);return(0,l.css)([""," "," appearance:none;height:48px;padding-top:0px;padding-bottom:0px;padding-right:",";padding-left:",";margin:0;border-radius:",";outline:none;cursor:pointer;width:100%;"," &::-ms-clear,&::-ms-reveal{display:none;}&::-moz-selection{background:",";}&::selection{background:",";}&::placeholder{"," color:",";}"],s.mixins.globalStyles,s.mixins.typography("label-03","regular"),r?"40px":"16px",t?"40px":"16px",u.inputBorderRadius,(n||i)&&(0,l.css)(["height:40px;"]),u.valueSelectionBackgroundColor,u.valueSelectionBackgroundColor,s.mixins.typography("label-03","regular"),u.placeholderTextColor)}));t.InputWrapper=l.default.div.withConfig({displayName:"TextfieldV2style__InputWrapper",componentId:"sc-ytle21-4"})((function(e){var t=e.disabled,o=e.state,r=t?"disabled":["initial","error","success"].includes(o)?o:"initial";return(0,l.css)(["display:inline-block;width:100%;position:relative;","{&:focus-visible{box-shadow:",";}}"," "," "," ",""],f,u.focusBoxShadow,"initial"===r&&!t&&(0,l.css)(["","{background:",";color:",";border:",";&:hover{background:",";}&:active,&:focus{border:",";}}"," svg{fill:",";}"],f,u[r].backgroundColor,u[r].textColor,u[r].border,u[r].hoverBackgroundColor,u[r].activeBorder,p,u[r].iconColor),"error"===r&&(0,l.css)(["",",",":active{background:",";color:",";border:",";outline:",";outline-offset:-2px;&:hover{background:",";}&:active,&:focus{border:",";}}"," svg{fill:",";}"],f,f,u[r].backgroundColor,u[r].textColor,u[r].border,u[r].outline,u[r].hoverBackgroundColor,u[r].activeBorder,p,u[r].iconColor),"success"===r&&(0,l.css)(["",",",":active{background:",";color:",";border:",";&:hover{background:",";}&:active,&:focus{border:",";}}"," svg{fill:",";}"],f,f,u[r].backgroundColor,u[r].textColor,u[r].border,u[r].hoverBackgroundColor,u[r].activeBorder,p,u[r].iconColor),"disabled"===r&&(0,l.css)(["",",",":active{background:",";color:",";border:",";&:hover{background:",";}&:active,&:focus{border:",";}}"," svg{fill:",";}"],f,f,u[r].backgroundColor,u[r].textColor,u[r].border,u[r].hoverBackgroundColor,u[r].activeBorder,p,u[r].iconColor))})),t.StyledLabel=l.default.label.withConfig({displayName:"TextfieldV2style__StyledLabel",componentId:"sc-ytle21-5"})([""," display:block;margin-bottom:8px;color:",";"],s.mixins.typography("label-03","regular"),u.labelTextColor),t.default=f},63465:(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 r=o(84513),n=t.BREAKPOINTS={MOBILE_PORTRAIT:567,MOBILE:767,TABLET:991,DESKTOP:1199},i=t.isMatchMedia=function(e){return window.matchMedia(e).matches},a=(t.isMobile=function(){return i("(max-width: ".concat(n.MOBILE,"px)"))},t.isMobileTablet=function(){return i("(max-width: ".concat(n.TABLET,"px)"))},t.isMobilePortrait=function(){return i("(max-width: ".concat(n.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,r.getAllCookiesStorage)("customer-soft-id"),t={};if((null==e?void 0:e.length)>0)for(var o=0;o<e.length;o++){var n,i=null===(n=window.atob(e[o].split(".")[1]))||void 0===n?void 0:n.toString("ascii"),a=JSON.parse(i),l=a.firstName,s=a.email,c=a.dev;window.location.hostname.includes("dev.webjet")&&!c||(t={firstName:l,email:s})}return t}),l=(t.isUserLoggedIn=function(){return!!a().firstName},t.setTwoDirectionStickyPanel=function(e){if(e){var t=window.innerHeight-e.offsetHeight,o=window.scrollY,r=window.innerHeight,n=e.offsetHeight;e.style.top="0px",window.addEventListener("resize",(function(){r=window.innerHeight,n=e.offsetHeight})),document.addEventListener("scroll",(function(){n=e.offsetHeight,t=window.innerHeight-e.offsetHeight;var i=parseInt(e.style.top.replace("px;",""));0===window.scrollY||n<=r?e.style.top="0px":window.scrollY<o?i<0?e.style.top=i+o-window.scrollY+"px":i>=0&&0!==i&&(e.style.top="0px"):i>t?e.style.top=i+o-window.scrollY+"px":i<t&&i!==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,r=e.clientHeight,n=t-o;return n>=r-1&&n<=r+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}},27236:(e,t,o)=>{var r=o(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.pushGAEvent=t.gaAttributes=void 0;var n=r(o(61116)),i=r(o(17826));function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}t.gaAttributes=function(e){var t={};return Object.entries(e).forEach((function(e){var o=(0,i.default)(e,2),r=o[0],n=o[1];null!=n&&(t["data-ga-".concat(r)]=String(n))})),t},t.pushGAEvent=function(e,t){var o=window.dataLayer;e&&o&&o.push(l(e,t))};var l=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){(0,n.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({event:e},t)}},17427:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isSizeXs=t.isSizeSm=void 0,t.isSizeSm=function(e){return"sm"===e},t.isSizeXs=function(e){return"xs"===e}},84513:(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}},r=(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=r(e);return t.length>0?t[0]:null},t.getAllCookiesStorage=function(e){for(var t=e+"=",o=document.cookie.split(";"),r=[],n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);0===i.indexOf(t)&&r.push(i.substring(t.length,i.length))}return r});t.setCookieStorage=function(e,t,o){var r=window.location.hostname,n="localhost"===r?r:r.match(/(\.\w+){3}$/g);document.cookie="".concat(e,"=").concat(t,"; Domain=").concat(n,"; Path=/; Max-Age=").concat(o||86400)}},61116:e=>{e.exports=require("@babel/runtime/helpers/defineProperty")},46031:e=>{e.exports=require("@babel/runtime/helpers/extends")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},52462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},29609:e=>{e.exports=require("@webjet/react-icons/close")},61642:e=>{e.exports=require("@webjet/react-icons/common/x-circle-fill")},23420:e=>{e.exports=require("@webjet/react-icons/info-outline")},3892:e=>{e.exports=require("classnames")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},32770: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(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(o(10349));e.default=n.default})(),module.exports=r})();
|
package/components/toast-bar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={60509:(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"}}},34341:(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)"}},35050:(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"}},33290:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"tokens",{enumerable:!0,get:function(){return a.default}});var r=o(n(61267)),i=o(n(60492)),a=o(n(74362)),d=o(n(19098)),l=o(n(9090)),p=o(n(35050)),s=o(n(60509)),u=o(n(34341))},19098:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(32770),i=o(n(61267)),a=o(n(74362)),d=(0,r.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:d,typography:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=a.default.typography[e],i=o.lineHeight,d=o.lineHeightType,l=o.fontSize;return(0,r.css)(["line-height:",";font-size:",";font-weight:",";",""],a.default.font.desktop["line-height"][d][i],a.default.font.desktop.size[l],a.default.font.desktop.weight[t],n&&(0,r.css)(["@media ","{line-height:",";font-size:",";font-weight:",";}"],a.default.media.mobile,a.default.font.mobile["line-height"][d][i],a.default.font.mobile.size[l],a.default.font.mobile.weight[t]))}}},60492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#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"],o={fontFamily:{primary:"inherit",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,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:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},61267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#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"],o={fontFamily:{icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,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:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=o},74362:(e,t,n)=>{var o=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(62530)),i={surface:{button:{prominent:"#6D28D9",neutral:"#D8DAE5"},neutral:{slate:{base:"#FFFFFF",subtlest:"#F1F2F6",subtle:"#EBECF2",strong:"#D8DAE5"},warm:{base:"#FFFFFF",subtlest:"#F7F8F7",subtle:"#F0F1F0",strong:"#EBECEB"}},feedback:{"positive-subtlest":"#F7FCFA","positive-subtle":"#EFFAF4","positive-strong":"#DAF2E4","critical-subtlest":"#FFF7F7","critical-subtle":"#FFEEEE","critical-strong":"#FFE5E5","info-subtlest":"#F7FAFF","info-subtle":"#EDF4FF","info-strong":"#E0EBFF","warning-subtlest":"#FFE8CC","warning-subtle":"#FFD8A8","warning-strong":"#FFC078"},container:{base:"#FFFFFF"},interactive:{actions:{"primary-default":"#6D28D9","primary-hover":"#5B21B6","primary-active":"#4C1D95","secondary-default":"#D8DAE5","secondary-hover":"#BABDCC","secondary-active":"#9A9EB2"},overlays:{default:"#3A3D4D00",hover:(0,r.default)(.96,"#3A3D4D"),active:(0,r.default)(.92,"#3A3D4D")},control:{track:{default:(0,r.default)(.96,"#3A3D4D"),hover:(0,r.default)(.92,"#3A3D4D")}},focus:{default:(0,r.default)(1-.32,"#3A3D4D")}}},border:{"critical-subtle":"#FFE5E5","critical-strong":"#B22424","critical-strongest":"#8C1515","positive-subtle":"#DAF2E4","positive-strong":"#0B7337","info-subtle":"#E0EBFF","info-strong":"#003CB2","default-subtle":"#F1F2F6","default-default":"#CBD4E0","default-strong":"#B1BCCA","input-default":"#BABDCC","input-active":"#515466","warning-subtle":"#FFC078","warning-strong":"#F76707"},text:{"text-primary":"#0A0B0D","text-secondary":"#44506A","text-tertiary":"#6A758D","text-muted":"#9BA1AE","text-on-colour":"#FFFFFF","text-info":"#0044CC","text-positive":"#0B7337","text-critical":"#B22424","text-warning":"#F76707","text-link":"#004DE5","text-accented":"#4C1D95"},icon:{"icon-primary":"#12131A","icon-secondary":"#696C80","icon-tertiary":"#6A758D","icon-muted":"#BABDCC","icon-on-colour":"#FFFFFF","icon-info":"#0044CC","icon-positive":"#0B7337","icon-critical":"#B22424","icon-warning":"#F76707","icon-link":"#004DE5","icon-accented":"#4C1D95","icon-rating":"#FFA94D"}};t.default={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)"},font:{desktop:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"32px",500:"36px",600:"40px",700:"48px",800:"56px",900:"60px"},condensed:{100:"16px",200:"18px",300:"20px",400:"24px",500:"28px",600:"32px",700:"40px",800:"44px",900:"48px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}},mobile:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"28px",500:"32px",600:"36px",700:"40px",800:"48px",900:"56px"},condensed:{100:"16px",200:"18px",300:"20px",400:"22px",500:"24px",600:"28px",700:"32px",800:"40px",900:"44px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}}},colours:i,dimensions:{radius:{none:0,xsmall:"2px",small:"4px",medium:"8px",large:"12px",xlarge:"16px",rounded:"9999px"},stroke:{regular:"1px",strong:"2px",bold:"4px"}},typography:{"heading-01":{fontSize:100,lineHeight:100,lineHeightType:"condensed"},"heading-02":{fontSize:200,lineHeight:200,lineHeightType:"condensed"},"heading-03":{fontSize:300,lineHeight:300,lineHeightType:"condensed"},"heading-04":{fontSize:400,lineHeight:400,lineHeightType:"condensed"},"heading-05":{fontSize:500,lineHeight:500,lineHeightType:"condensed"},"heading-06":{fontSize:600,lineHeight:600,lineHeightType:"condensed"},"heading-07":{fontSize:700,lineHeight:700,lineHeightType:"condensed"},"heading-08":{fontSize:800,lineHeight:800,lineHeightType:"condensed"},"heading-09":{fontSize:900,lineHeight:900,lineHeightType:"condensed"},"body-01":{fontSize:50,lineHeight:50,lineHeightType:"standard"},"body-02":{fontSize:100,lineHeight:100,lineHeightType:"standard"},"body-03":{fontSize:200,lineHeight:200,lineHeightType:"standard"},"body-04":{fontSize:300,lineHeight:300,lineHeightType:"standard"},"label-03":{fontSize:200,lineHeight:200,lineHeightType:"equal"}}}},47340:(e,t,n)=>{var o=n(33751),r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(46031)),a=o(n(17826)),d=o(n(52462)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(o,a,d):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(82015)),p=n(22326),s=(o(n(29825)),o(n(74788))),u=n(25787),c=n(33290),x=["text","show","duration","state","portalTarget","onDismissed"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var F={success:{icon:s.default,color:c.theme.color[17],name:"check-round"}};t.default=function(e){var t,n,o,r=e.text,s=e.show,c=void 0!==s&&s,f=e.duration,b=void 0===f?5e3:f,g=e.state,m=void 0===g?"standard":g,h=e.portalTarget,y=void 0===h||h,v=e.onDismissed,D=(0,d.default)(e,x),E=(0,l.useState)(!1),B=(0,a.default)(E,2),C=B[0],w=B[1],A=null===(t=F[m])||void 0===t?void 0:t.icon,k=null;!0===y?k=document.body:y instanceof HTMLElement&&(k=y),(0,l.useEffect)((function(){c&&setTimeout((function(){return w(!0),void(v&&setTimeout((function(){w(!1),v()}),u.ANIMATION_DURATION))}),b)}),[c]);var H=l.default.createElement(u.StyledToastBar,(0,i.default)({"data-testid":"toastbar",isSlidingOut:C},D),l.default.createElement(u.StyledText,{"data-testid":"toastbar-text"},r),!!A&&l.default.createElement(A,{fill:null===(n=F[m])||void 0===n?void 0:n.color,"data-testid":"toastbar-icon","data-icon-name":null===(o=F[m])||void 0===o?void 0:o.name}));return c&&l.default.createElement(l.default.Fragment,null,k?(0,p.createPortal)(H,k):H)}},25787:(e,t,n)=>{var o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledToastBar=t.StyledText=t.ANIMATION_DURATION=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in e)if("default"!==d&&{}.hasOwnProperty.call(e,d)){var l=i?Object.getOwnPropertyDescriptor(e,d):null;l&&(l.get||l.set)?Object.defineProperty(r,d,l):r[d]=e[d]}return r.default=e,n&&n.set(e,r),r}(n(32770)),i=n(33290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var d=t.ANIMATION_DURATION=500,l=(0,r.keyframes)(["0%{top:-100px;}100%{top:24px;}"]),p=(0,r.keyframes)(["0%{top:24px;}100%{top:-100px;}"]);t.StyledToastBar=r.default.div.withConfig({displayName:"ToastBarstyle__StyledToastBar",componentId:"sc-1i7fgq5-0"})((function(e){var t=e.isSlidingOut;return(0,r.css)(["position:fixed;display:flex;align-items:center;top:-100px;left:50%;transform:translateX(-50%);z-index:1000;padding:12px 16px;border-radius:8px;background:",";box-shadow:0px 16px 40px 0px rgba(0,0,0,0.16);animation-name:",";animation-duration:","ms;animation-timing-function:cubic-bezier(0.68,-0.55,0.265,1.35);animation-fill-mode:forwards;"," svg{font-size:16px;margin-left:8px;@media ","{font-size:20px;}}"],i.theme.color[11],l,d,t&&(0,r.css)(["animation-name:",";"],p),i.theme.media.tabletAndDesktop)})),t.StyledText=r.default.span.withConfig({displayName:"ToastBarstyle__StyledText",componentId:"sc-1i7fgq5-1"})(["font-size:12px;font-weight:500;line-height:18px;color:",";@media ","{font-size:14px;line-height:20px;}"],i.theme.color[9],i.theme.media.tabletAndDesktop)},46031:e=>{e.exports=require("@babel/runtime/helpers/extends")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},52462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},74788:e=>{e.exports=require("@webjet/react-icons/check-round")},62530:e=>{e.exports=require("polished/lib/color/transparentize.js")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},32770:e=>{e.exports=require("styled-components")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}var o={};(()=>{var e=o,t=n(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(n(47340));e.default=r.default})(),module.exports=o})();
|
|
1
|
+
(()=>{"use strict";var e={60509:(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"}}},34341:(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)"}},35050:(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"}},33290:(e,t,n)=>{var r=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"color",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"elevation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"identifiers",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"mixins",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"themeV2",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"tokens",{enumerable:!0,get:function(){return a.default}});var o=r(n(61267)),i=r(n(60492)),a=r(n(74362)),d=r(n(19098)),l=r(n(9090)),p=r(n(35050)),s=r(n(60509)),u=r(n(34341))},19098:(e,t,n)=>{var r=n(33751);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(32770),i=r(n(61267)),a=r(n(74362)),d=(0,o.css)(["font-size:",";color:",";&,> *,> *:before,> *:after{box-sizing:border-box;}"],i.default.fontSize,i.default.fontColor);t.default={globalStyles:d,typography:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=a.default.typography[e],i=r.lineHeight,d=r.lineHeightType,l=r.fontSize;return(0,o.css)(["line-height:",";font-size:",";font-weight:",";",""],a.default.font.desktop["line-height"][d][i],a.default.font.desktop.size[l],a.default.font.desktop.weight[t],n&&(0,o.css)(["@media ","{line-height:",";font-size:",";font-weight:",";}"],a.default.media.mobile,a.default.font.mobile["line-height"][d][i],a.default.font.mobile.size[l],a.default.font.mobile.weight[t]))}}},60492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#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:"inherit",icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,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:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},61267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#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:{icon:"WebjetIcons"},fontSize:"13px",fontColor:n[10],gutterWidth:"12px",halfGutterWidth:"6px",borderRadius:"4px",borderColor:n[5],hoverColor:n[6],hoverDarkColor:n[7],textHighlight:n[18],activeItemOutline:"0 0 0 4px rgba(135, 135, 135, 0.75)",dropdownShadow:"0 2px 6px rgba(0, 0, 0, 0.7)",userSelection:n[16],inputHoverBackground:"#F6F2E7",inputActiveBackground:n[5],inputIcon:n[9],inputIconBackground:n[2],inputIconHoverBackground:n[5],inputCrossBtn:"#a8a8a8",btnStandard:n[2],btnStandardHover:n[5],btnAction:n[17],btnActionHover:"#259400",btnActive:n[13],btnActiveHover:n[19],btnSelection:n[16],btnSelectionHover:n[20],successBackground:n[22],successText:n[21],errorBackground:n[26],errorText:n[27],sliderPrimary:n[13],color:n,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:n[27],inputErrorIcon:"#A1605F",inputErrorIconBackground:"#D4C3C3",inputErrorIconHoverBackground:"#BFB0B0",inputErrorCrossBtn:"#858585"}};t.default=r},74362:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={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)"},font:{desktop:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"32px",500:"36px",600:"40px",700:"48px",800:"56px",900:"60px"},condensed:{100:"16px",200:"18px",300:"20px",400:"24px",500:"28px",600:"32px",700:"40px",800:"44px",900:"48px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"20px",500:"24px",600:"28px",700:"32px",800:"36px",900:"40px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}},mobile:{size:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"},"line-height":{standard:{50:"16px",100:"18px",200:"20px",300:"24px",400:"28px",500:"32px",600:"36px",700:"40px",800:"48px",900:"56px"},condensed:{100:"16px",200:"18px",300:"20px",400:"22px",500:"24px",600:"28px",700:"32px",800:"40px",900:"44px"},equal:{50:"10px",100:"12px",200:"14px",300:"16px",400:"18px",500:"20px",600:"24px",700:"28px",800:"32px",900:"36px"}},weight:{light:300,regular:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800}}},colours:{surface:{button:{prominent:"#6D28D9",neutral:"#EBECF2",passive:"#E7E7E8"},neutral:{slate:{base:"#FFFFFF",subtlest:"#F1F2F6",subtle:"#EBECF2",strong:"#D8DAE5"},warm:{base:"#FFFFFF",subtlest:"#F7F8F7",subtle:"#F0F1F0",strong:"#EBECEB"}},feedback:{"positive-subtlest":"#F7FCFA","positive-subtle":"#EFFAF4","positive-strong":"#DAF2E4","positive-strongest":"#0B7337","neutral-subtlest":"#F1F2F6","neutral-subtle":"#EBECF2","neutral-strong":"#828699","neutral-strongest":"#696C80","critical-subtlest":"#FFF7F7","critical-subtle":"#FFEEEE","critical-strong":"#FFE5E5","critical-strongest":"#B22424","info-subtlest":"#F7FAFF","info-subtle":"#EDF4FF","info-strong":"#E0EBFF","info-strongest":"#003CB2","accent-subtlest":"#F7F6FF","accent-subtle":"#DDD6FE","accent-strong":"#C4B5FD","accent-strongest":"#4C1D95","warning-subtlest":"#FFE8CC","warning-subtle":"#FFD8A8","warning-strong":"#FFC078","warning-strongest":"#E8590C"},container:{base:"#FFFFFF"},interactive:{actions:{"primary-default":"#6D28D9","primary-hover":"#5B21B6","primary-active":"#4C1D95","secondary-default":"#D8DAE5","secondary-hover":"#BABDCC","secondary-active":"#9A9EB2"},overlay:{universal:{default:"#3A3D4D00",hover:"color-mix(in srgb, #3A3D4D 4%, transparent)",active:"color-mix(in srgb, #3A3D4D 8%, transparent)"},button:{default:"#3A3D4D00",hover:"color-mix(in srgb, #3A3D4D 24%, transparent)",active:"color-mix(in srgb, #3A3D4D 32%, transparent)"}},control:{track:{default:"color-mix(in srgb, #3A3D4D 4%, transparent)",hover:"color-mix(in srgb, #3A3D4D 8%, transparent)"}},focus:{default:"color-mix(in srgb, #3A3D4D 32%, transparent)"}}},border:{"critical-subtle":"#FFE5E5","critical-strong":"#B22424","critical-strongest":"#8C1515","positive-subtle":"#DAF2E4","positive-strong":"#0B7337","info-subtle":"#E0EBFF","info-strong":"#0044CC","default-subtle":"#E4E7EE","default-default":"#CBD4E0","default-strong":"#B1BCCA","input-default":"#BABDCC","input-active":"#515466","warning-subtle":"#FFC078","warning-strong":"#E8590C","accent-subtle":"#C4B5FD","accent-strong":"#4C1D95"},text:{"text-primary":"#0A0B0D","text-secondary":"#44506A","text-tertiary":"#6A758D","text-muted":"#9BA1AE","text-on-colour":"#FFFFFF","text-info":"#0044CC","text-positive":"#0B7337","text-critical":"#B22424","text-warning":"#F76707","text-link":"#004DE5","text-accented":"#4C1D95"},icon:{"icon-primary":"#12131A","icon-secondary":"#696C80","icon-tertiary":"#6A758D","icon-muted":"#BABDCC","icon-on-colour":"#FFFFFF","icon-info":"#0044CC","icon-positive":"#0B7337","icon-critical":"#B22424","icon-warning":"#F76707","icon-link":"#004DE5","icon-accented":"#4C1D95","icon-rating":"#FFA94D"}},dimensions:{radius:{none:0,xsmall:"2px",small:"4px",medium:"8px",large:"12px",xlarge:"16px",rounded:"9999px"},stroke:{regular:"1px",strong:"2px",bold:"4px"}},typography:{"heading-01":{fontSize:100,lineHeight:100,lineHeightType:"condensed"},"heading-02":{fontSize:200,lineHeight:200,lineHeightType:"condensed"},"heading-03":{fontSize:300,lineHeight:300,lineHeightType:"condensed"},"heading-04":{fontSize:400,lineHeight:400,lineHeightType:"condensed"},"heading-05":{fontSize:500,lineHeight:500,lineHeightType:"condensed"},"heading-06":{fontSize:600,lineHeight:600,lineHeightType:"condensed"},"heading-07":{fontSize:700,lineHeight:700,lineHeightType:"condensed"},"heading-08":{fontSize:800,lineHeight:800,lineHeightType:"condensed"},"heading-09":{fontSize:900,lineHeight:900,lineHeightType:"condensed"},"body-01":{fontSize:50,lineHeight:50,lineHeightType:"standard"},"body-02":{fontSize:100,lineHeight:100,lineHeightType:"standard"},"body-03":{fontSize:200,lineHeight:200,lineHeightType:"standard"},"body-04":{fontSize:300,lineHeight:300,lineHeightType:"standard"},"label-02":{fontSize:100,lineHeight:100,lineHeightType:"equal"},"label-03":{fontSize:200,lineHeight:200,lineHeightType:"equal"}}}},47340:(e,t,n)=>{var r=n(33751),o=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(46031)),a=r(n(17826)),d=r(n(52462)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var d=i?Object.getOwnPropertyDescriptor(e,a):null;d&&(d.get||d.set)?Object.defineProperty(r,a,d):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(82015)),p=n(22326),s=(r(n(29825)),r(n(74788))),u=n(25787),c=n(33290),x=["text","show","duration","state","portalTarget","onDismissed"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var F={success:{icon:s.default,color:c.theme.color[17],name:"check-round"}};t.default=function(e){var t,n,r,o=e.text,s=e.show,c=void 0!==s&&s,f=e.duration,g=void 0===f?5e3:f,b=e.state,m=void 0===b?"standard":b,h=e.portalTarget,y=void 0===h||h,v=e.onDismissed,D=(0,d.default)(e,x),E=(0,l.useState)(!1),C=(0,a.default)(E,2),B=C[0],w=C[1],A=null===(t=F[m])||void 0===t?void 0:t.icon,k=null;!0===y?k=document.body:y instanceof HTMLElement&&(k=y),(0,l.useEffect)((function(){c&&setTimeout((function(){return w(!0),void(v&&setTimeout((function(){w(!1),v()}),u.ANIMATION_DURATION))}),g)}),[c]);var H=l.default.createElement(u.StyledToastBar,(0,i.default)({"data-testid":"toastbar",isSlidingOut:B},D),l.default.createElement(u.StyledText,{"data-testid":"toastbar-text"},o),!!A&&l.default.createElement(A,{fill:null===(n=F[m])||void 0===n?void 0:n.color,"data-testid":"toastbar-icon","data-icon-name":null===(r=F[m])||void 0===r?void 0:r.name}));return c&&l.default.createElement(l.default.Fragment,null,k?(0,p.createPortal)(H,k):H)}},25787:(e,t,n)=>{var r=n(8063);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledToastBar=t.StyledText=t.ANIMATION_DURATION=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in e)if("default"!==d&&{}.hasOwnProperty.call(e,d)){var l=i?Object.getOwnPropertyDescriptor(e,d):null;l&&(l.get||l.set)?Object.defineProperty(o,d,l):o[d]=e[d]}return o.default=e,n&&n.set(e,o),o}(n(32770)),i=n(33290);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var d=t.ANIMATION_DURATION=500,l=(0,o.keyframes)(["0%{top:-100px;}100%{top:24px;}"]),p=(0,o.keyframes)(["0%{top:24px;}100%{top:-100px;}"]);t.StyledToastBar=o.default.div.withConfig({displayName:"ToastBarstyle__StyledToastBar",componentId:"sc-1i7fgq5-0"})((function(e){var t=e.isSlidingOut;return(0,o.css)(["position:fixed;display:flex;align-items:center;top:-100px;left:50%;transform:translateX(-50%);z-index:1000;padding:12px 16px;border-radius:8px;background:",";box-shadow:0px 16px 40px 0px rgba(0,0,0,0.16);animation-name:",";animation-duration:","ms;animation-timing-function:cubic-bezier(0.68,-0.55,0.265,1.35);animation-fill-mode:forwards;"," svg{font-size:16px;margin-left:8px;@media ","{font-size:20px;}}"],i.theme.color[11],l,d,t&&(0,o.css)(["animation-name:",";"],p),i.theme.media.tabletAndDesktop)})),t.StyledText=o.default.span.withConfig({displayName:"ToastBarstyle__StyledText",componentId:"sc-1i7fgq5-1"})(["font-size:12px;font-weight:500;line-height:18px;color:",";@media ","{font-size:14px;line-height:20px;}"],i.theme.color[9],i.theme.media.tabletAndDesktop)},46031:e=>{e.exports=require("@babel/runtime/helpers/extends")},33751:e=>{e.exports=require("@babel/runtime/helpers/interopRequireDefault")},52462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},17826:e=>{e.exports=require("@babel/runtime/helpers/slicedToArray")},8063:e=>{e.exports=require("@babel/runtime/helpers/typeof")},74788:e=>{e.exports=require("@webjet/react-icons/check-round")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},32770:e=>{e.exports=require("styled-components")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}var r={};(()=>{var e=r,t=n(33751);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(n(47340));e.default=o.default})(),module.exports=r})();
|