1"use strict";(self.webpackChunkmy_travel_portal_frontend=self.webpackChunkmy_travel_portal_frontend||[]).push([[8051],{3474:function(e,t,o){o.d(t,{A:function(){return r}});var s=o(65043),i=o(47644),n=o(70579);class r extends s.Component{constructor(...e){super(...e),this.onChange=({value:e})=>{const{onChange:t}=this.props;t(e)},this.getOptions=e=>e.map((({value:e,displayValue:t,iconType:o})=>({value:e,label:t,iconType:o}))),this.getValue=e=>{const{value:t,displayValue:o,iconType:s}=e.find((({selected:e})=>e))||e[0];return{value:t,label:o,iconType:s}},this.formatOptionLabel=({label:e,iconType:t})=>{const{hideIcon:o}=this.props;return(0,n.jsx)("div",{className:`DropDown__label DropDown__label--${t} ${o?"DropDown_personalisation":""}`,children:e})}}render(){const{items:e,title:t,suppress:o}=this.props;return(0,n.jsx)(i.A,{componentName:"DropDown",children:(0,n.jsx)(i.A.Input,{type:"select",name:"DropDown",title:t,suppress:o,maxMenuHeight:300,prefixClassName:"DropDownSelect",onChange:this.onChange,value:this.getValue(e),options:this.getOptions(e),formatOptionLabel:this.formatOptionLabel})})}}r.displayName="DropDown",r.defaultProps={items:[],title:"",onChange:()=>{},hideIcon:!1,suppress:!1}},93752:function(e,t,o){o.d(t,{A:function(){return f}});var s=o(65043),i=o(60400),n=o(97508),r=o(91688),a=(o(51763),o(45205)),l=o(22908),c=o.n(l),d=o(38743),p=o(60483),m=o(3474),h=o(70579);const{MultiGuest:{header:u,titleHeading:v,edit:g,currentlyEdit:x,themeName:_}}=i.Aq.getTranslations();class N extends s.PureComponent{constructor(e){super(e),this.onChange=e=>{const{history:t,location:{pathname:o}}=this.props;t.push(`${o}?id=${e}`)},this.onEdit=()=>{const{location:{pathname:e}}=this.props,t={action:"edit_guest",category:"edit_guest_information",label:`Edit ${e}`};i.j0.click(t)},this.clickMultiGuestButton=e=>{e&&("function"===typeof e.stopPropagation&&e.stopPropagation(),e.nativeEvent&&"function"===typeof e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()),this.onEdit()};const{bookingDetails:{passengers:t}}=this.props;this.state={activePassengerClientId:t[0].clientID}}clickUniWorldMultiGuestButton(e){this.setState({activePassengerClientId:e},(()=>{const{onPassengerChange:t}=this.props;t&&t(e)}))}render(){const{activePassengerClientId:e}=this.state,{bookingDetails:{passengers:t,paxesWithRegComplete:o,paxesWithPrefComplete:s},loggedInPaxClientId:n,location:{pathname:r,search:l},subHeading:N,progress:f,isSuccessPage:A}=this.props,S=(e,t)=>"/registration"===r?e:t,P=c().parse(l,{ignoreQueryPrefix:!0}).id,k=i.Aq.isUniworldBrand(),y=t.map((({firstName:e,lastName:t,id:o,registrationComplete:s,preferenceComplete:i})=>({value:`${o}`,displayValue:`${e} ${t}`,selected:o===Number(P||n),iconType:S(s,i)?"active":"exclamation"}))),j=t.map((({firstName:e,lastName:t,id:o})=>({value:`${o}`,displayValue:`${e} ${t}`,selected:o===Number(P||n),iconType:""}))),C=t.map((({firstName:e,lastName:t,id:o,registrationComplete:s,preferenceComplete:i,registrationProgress:a,preferenceProgress:l})=>({title:(0,h.jsxs)("div",{className:"MultiGuest__accordion__title "+(S(s,i)?"MultiGuest__accordion--complete":"MultiGuest__accordion--incomplete"),children:[S(s,i),(0,h.jsxs)("div",{className:"MultiGuest__accordion__list",children:[(0,h.jsx)("p",{className:"MultiGuest__accordion__titleHeading",children:v}),(0,h.jsx)("span",{"data-hj-suppress":!0,className:"MultiGuest__accordion__name",children:`${e} ${t}`})]}),o!==Number(P||n)||A?(0,h.jsx)("div",{children:(0,h.jsx)(p.A,{type:"link",to:`${r}?id=${o}`,onClick:this.clickMultiGuestButton,className:"tertiary MultiGuest__button",children:g})}):(0,h.jsx)(h.Fragment,{})]}),content:(0,h.jsxs)("div",{className:"MultiGuest__progress",children:[(0,h.jsx)("p",{className:"MultiGuest__progress__heading",children:f[S(s,i)?"complete":"incomplete"]}),(0,h.jsx)("progress",{id:"file",max:"100",value:S(a,l)}),(0,h.jsx)("span",{className:"MultiGuest__progress__progressValue",children:`${S(a,l)}%`})]}),expanded:"/registration"===r&&o===Number(P||n)})));return(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"show-for-medium",children:(0,h.jsxs)(a.A,{componentName:"MultiGuest",themeName:_,children:[(0,h.jsxs)(a.A.Header,{children:[(0,h.jsx)("span",{children:u}),!k&&(0,h.jsx)("span",{className:"MultiGuest__subHeading",children:i.Aq.replaceParamsInString(N,{completed:S(o,s),total:t.length})})]}),(0,h.jsx)(a.A.Body,{children:k?(0,h.jsx)("nav",{className:"UniWorldMultiGuest",children:(0,h.jsx)("ul",{children:t.map((({firstName:t,lastName:o,clientID:s})=>{const n=s===e;return(0,h.jsxs)("li",{className:"UniWorldMultiGuest__title "+(n?"UniWorldMultiGuest__title--active ":""),children:[(0,h.jsx)("span",{className:"UniWorldMultiGuest__list",children:`${t} ${o}`}),n?(0,h.jsx)("span",{className:"UniWorldMultiGuest__button--text",children:x}):(0,h.jsx)(p.A,{type:"button",onClick:()=>this.clickUniWorldMultiGuestButton(s),className:"tertiary MultiGuest__button UniWorldMultiGuest__button",children:g})]},i.Aq.getUID())}))})}):(0,h.jsx)(d.A,{allowMultiple:!0,className:"MultiGuest__accordion",items:C})})]})}),t.length>1&&(0,h.jsx)("div",{children:k?(0,h.jsx)("div",{className:"show-for-small-only MultiGuest__dropdown UniWorldMultiGuest",children:(0,h.jsx)(m.A,{suppress:!0,onChange:this.onChange,items:j})}):(0,h.jsx)("div",{className:"show-for-small-only MultiGuest__dropdown",children:(0,h.jsx)(m.A,{suppress:!0,hideIcon:!0,onChange:this.onChange,items:y})})})]})}}N.displayName="MultiGuest",N.defaultProps={loggedInPaxClientId:"",subHeading:"",isSuccessPage:!1,progress:{incomplete:"",complete:""}};var f=(0,r.y)((0,n.Ng)((({activeBooking:e,activeBookingDetails:t})=>({bookingDetails:t,loggedInPaxClientId:e.bookingPassenger&&e.bookingPassenger.clientID})))(N))},7263:function(e,t,o){o.d(t,{A:function(){return x}});o(65043);var s=o(60400),i=o(45205),n=o(64097),r=o(62582),a=o(91688),l=(o(51763),o(97508)),c=o(67978),d=o(50805),p=o(53536),m=o.n(p),h=o(54939),u=o(70579);const v=({activeBooking:e,activeBookingDetails:t,bookingDetailsForOverview:o,sellingCompanyShortName:i})=>{const{App:{routes:r,FTCSidebarNavigationRoutes:{clientDirectRoutes:a,travelAgentRoutes:l},showKnowBeforeYouGoPage:c,tppProductsIds:d}}=s.Aq.getConfigs(),{isFullyOrOverPaid:p,isSpecialOrGroupBookingType:h,travelExtraConfig:u={}
1,paymentInstalmentPlanTileState:v,instalmentPlan:g,passengers:x}=t,{bookingNumber:_,isfutureTravelCredit:N,tripStarted:f,tripEnded:A}=e,{isLeadPassenger:S}=x.find((({isLoggedInPassenger:e})=>e))||{},{bookingType:P}=_;let k=m().cloneDeep(r);const y=sessionStorage.getItem("insecurelogin");y&&(k=k.filter((e=>!e.hideInInsecureMode)));const{bookingDetails:{tours:j=[]}={}}=o;let C=!1;j.filter((e=>e.tourType!==n.m.DAY_TOUR)).length>1&&i.indexOf("USAS")>=0&&j.forEach((e=>{e.travelProtectionPerPax&&e.travelProtectionPerPax.length>0&&(C=!0)}));let B=!1;i.indexOf("USAS")>=0&&j.forEach((e=>{e.travelProtectionPerPax&&e.travelProtectionPerPax.length>0&&e.travelProtectionPerPax.forEach((e=>{d.indexOf(e.data.productId)>=0&&(B=!0)}))}));const I=k.find((e=>"KnowBeforeYouGo"===e.name));if(I&&(I.hideFromNavigation=!c),N){(e=>{k.forEach((t=>{e.includes(t.path)||(t.hideFromNavigation=!0)}))})(P===n.m.BOOKING_TYPE_TRAVEL_AGENT?l:a)}const T=k.find((e=>"/payment"===e.path));T&&(p||P!==n.m.BOOKING_TYPE_CLIENT_DIRECT)&&(T.hideFromNavigation=!0);const b=k.find((e=>"/instalmentplan"===e.path)),M=sessionStorage.getItem("plancancelled");let w=g;M&&(w=!1),!b||u.showPaymentInstalment&&S&&"hide"!==v&&("edit"!==v||M)&&!w||(b.hideFromNavigation=!0);const D=k.find((e=>"/editinstalmentplan"===e.path));!D||u.showPaymentInstalment&&w||(D.hideFromNavigation=!0);const E=k.find((e=>"/travelextraslanding"===e.path));E&&(P!==n.m.BOOKING_TYPE_CLIENT_DIRECT||f||N||C||B||y)&&(E.hideFromNavigation=!0);const q=k.find((e=>"/documents"===e.path));return q&&(h||A)&&(q.hideFromNavigation=!0),k},g=e=>{const{location:{pathname:t},activeBooking:o,activeBookingDetails:n,bookingDetailsForOverview:a,sellingCompanyShortName:l}=e,{Navigation:{navigationList:c}}=s.Aq.getTranslations(),d=v({activeBooking:o,activeBookingDetails:n,bookingDetailsForOverview:a,sellingCompanyShortName:l});return(0,u.jsx)(i.A,{noPadding:!0,componentName:"Navigation",children:(0,u.jsx)(i.A.Body,{children:(0,u.jsx)("nav",{className:"Navigation__nav",children:d.filter((({path:e,hideFromNavigation:o})=>t.toLowerCase()!==e&&!o)).map((({name:e,path:t})=>(0,u.jsxs)(r.N_,{to:t,className:"Navigation__link",onClick:()=>(e=>{const t={action:"navigation_link",category:"navigation_list",label:e};s.j0.click(t),(0,h.l)({message:`User clicked on [${e}] on the Navigation Panel`,status:"info",userEmail:localStorage.getItem("USER_EMAIL"),loginSource:localStorage.getItem("LOGIN_SOURCE"),corrId:localStorage.getItem("CORRELATION_ID")})})(c[e]),children:[c[e],(0,u.jsx)("div",{className:"Navigation__arrow",role:"presentation"})]},e)))})})})};g.displayName="Navigation";var x=(0,a.y)((0,l.Ng)((e=>({activeBooking:e.activeBooking,activeBookingDetails:e.activeBookingDetails,bookingDetailsForOverview:e.bookingDetailsForOverview,sellingCompanyShortName:e.activeBooking.sellingCompany.sellingCompanyShortName})),(e=>({actions:(0,d.zH)(c,e)})))(g))},91894:function(e,t,o){o.d(t,{A:function(){return d}});var s=o(65043),i=o(60400),n=o(47644),r=o(60483),a=o(70579);const{VersionModal:{Card:{confirmDetails:l},Form:{header:c}}}=i.Aq.getTranslations();class d extends s.Component{constructor(e){super(e),this.openModal=()=>this.setState({isOpen:!0}),this.confirmChanges=()=>{const{confirmVersionModalChanges:e,stepIndex:t}=this.props;this.setState({isOpen:!1}),e(t)},this.closeModal=()=>{this.setState({isOpen:!1})};const{open:t}=this.props;this.state={isOpen:t}}componentDidMount(){const e=e=>{27===e.keyCode&&this.closeModal()};this.mountedHandler=e,window.addEventListener("keyup",e)}componentWillUnmount(){window.removeEventListener("keyup",this.mountedHandler)}render(){const{heading:e,title:t,dataToCompare:o,onChange:s,versionToSave:d}=this.props,{isOpen:p}=this.state;return(0,a.jsx)("div",{className:"VersionModal",children:(0,a.jsx)("div",{className:"VersionModal__canvas "+(p?"VersionModal__canvas--open":""),onClick:this.closeModal,role:"dialog","aria-modal":"true",children:(0,a.jsxs)("div",{className:"VersionModal__box "+(p?"VersionModal__box--open":""),onClick:e=>e.stopPropagation(),children:[t&&(0,a.jsxs)("div",{className:"VersionModal__title-bar",children:[(0,a.jsx)("h1",{children:t}),(0,a.jsx)(r.A,{className:"VersionModal__button--close quit",onClick:this.closeModal,children:"\u2a09"})]}),(0,a.jsx)("div",{className:"VersionModal__content",children:(0,a.jsxs)(n.A,{componentName:"VersionModalForm",renderAsDiv:!0,children:[(0,a.jsx)(n.A.Header,{title:c}),(0,a.jsxs)(n.A.Fieldset,{title:t,children:[(0,a.jsx)(n.A.Header,{className:"VersionModalForm__fieldsetTitle",children:e}),(0,a.jsxs)("div",{className:"grid-x grid-margin-x",children:[(0,a.jsx)("div",{className:"cell medium-6 VersionModalForm__column VersionModalForm__section",children:(0,a.jsx)(n.A.Input,{type:"radio",id:"oldValue",name:"oldValue",value:"old",checked:"old"===d,onChange:e=>s(e),children:(0,a.jsx)("div",{className:"VersionModalForm__details",children:o.map((e=>e.oldValue&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"VersionModalForm__details__label",children:e.title}),(0,a.jsx)("div",{className:"VersionModalForm__details__input",children:e.oldValue})]},i.Aq.getUID())))})})}),(0,a.jsx)("div",{className:"cell medium-6 VersionModalForm__column",children:(0,a.jsx)(n.A.Input,{type:"radio",id:"newValue",name:"newValue",value:"new",checked:"new"===d,onChange:e=>s(e),children:(0,a.jsx)("div",{className:"VersionModalForm__details",children:o.map((e=>e.newValue&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"VersionModalForm__details__label",children:e.title}),(0,a.jsx)("div",{className:"VersionModalForm__details__input",children:e.newValue})]},i.Aq.getUID())))})})})]})]})]})}),(0,a.jsx)("div",{className:"VersionModal__footer",children:(0,a.jsx)(r.A,{className:"primary medium-down-expanded VersionModal__button",onClick:this.confirmChanges,children:l})})]})})})}}d.displayName="VersionModal",d.defaultProps={open:!1,title:""}},89815:function(e,t,o){o.d(t,{A:function(){return b}});var s=o(65043),i=o(45205),n=o(60400);const r=n.Aq.createContext("Wizard"),a=n.Aq.withContext.bind(n.Aq,r);var l=r,c=o(70579);const d=({wizardProps:e,componentName:t,className:o,...s})=>{const r=n.Aq.removeDuplicates(...n.Aq.stringToArray(o)),a=n.Aq.argsToString(...n.Aq.addSuffixToEachString(t,"__header"),...r);return(0,c.jsx)(i.A.Header,{...s,className:a})};d.displayName="WizardHeader",d.defaultProps={className:""};var p=a(d);const m=({wizardProps:e,componentName:t,className:o,...s})=>{const r=n.Aq.removeDuplicates(...n.Aq.stringToArray(o)),a=n.Aq.argsToString(...n.Aq.addSuffixToEachString(t,"__subHeader"),...r);return(0,c.jsx)(i.A.Body,{...s,className:a})};m.displayName="WizardSubHeader",m.defaultProps={className:""};var h=a(m),u=o(53536),v=o.n(u);class g extends s.PureComponent{constructor(e){super(e),this.state={headers:e.headers}}static getDerivedStateFromProps(e,t){return v().isEqual(e.headers,t.headers)?null:{headers:e.headers}}render(){const{componentName:e,className:t,heading:o,wizardProps:{activeStepIndex:s,buttonsProps:{onNext:r}}
1,isSpecialOrGroupBookingType:a,...l}=this.props,{headers:d}=this.state,p=n.Aq.removeDuplicates(...n.Aq.stringToArray(t)),m=n.Aq.argsToString("Timeline",...n.Aq.addSuffixToEachString(e,"__timeline"),...p);return(0,c.jsx)(i.A.Banner,{...l,className:m,children:(0,c.jsxs)("ul",{className:"Timeline__list",children:[(0,c.jsx)("li",{className:"Timeline__item show-for-small-only",children:(0,c.jsx)("div",{className:"Timeline__steps",children:o})}),d.map((({content:e,completed:t,hideTab:o},i)=>{const a=i===s;let l="Timeline__circle--inActive";l=!0===t?"Timeline__circle--completed Timeline__circle--checkMark":l,l=!1===t||!t&&s>i?"Timeline__circle--skipped Timeline__circle--crossMark":l,l=a?"Timeline__circle--active":l;let d="";d=a?"Timeline__content--active":d;let p="Timeline__link--inActive";p=a?"Timeline__link--active":p;const m={...a?{tabIndex:-1}:{},...a?{}:{onClick:t=>((e,t,o)=>{e&&"function"===typeof e.preventDefault&&e.preventDefault(),r(t,!0);const s={action:"timeline_steps",category:"timeline_steps",label:o};n.j0.click(s)})(t,i,e)}};return o?null:(0,c.jsx)("li",{className:"Timeline__item",children:(0,c.jsxs)("a",{...m,href:"#",className:`Timeline__link ${p}`,children:[(0,c.jsx)("div",{className:`Timeline__circle ${l}`}),(0,c.jsx)("div",{className:`Timeline__content show-for-medium ${d}`,children:e})]})},n.Aq.getUID())}))]})})}}g.displayName="WizardTimeline",g.defaultProps={className:"",isSpecialOrGroupBookingType:!1};var x=a(g);const _=({wizardProps:e,componentName:t,className:o,...s})=>{const r=n.Aq.removeDuplicates(...n.Aq.stringToArray(o)),a=n.Aq.argsToString(...n.Aq.addSuffixToEachString(t,"__banner"),...r);return(0,c.jsx)(i.A.Banner,{...s,className:a})};_.displayName="WizardBanner",_.defaultProps={className:""};var N=a(_);const f=({wizardProps:e,componentName:t,className:o,...s})=>{const r=n.Aq.removeDuplicates(...n.Aq.stringToArray(o)),a=n.Aq.argsToString(...n.Aq.addSuffixToEachString(t,"__body"),...r);return(0,c.jsx)(i.A.Body,{...s,className:a})};f.displayName="WizardBody",f.defaultProps={className:""};var A=a(f);const S=e=>{const{className:t,componentName:o,children:r,wizardProps:{activeStepIndex:a},...l}=e,d=n.Aq.removeDuplicates(...n.Aq.stringToArray(t)),p=n.Aq.argsToString(...n.Aq.addSuffixToEachString(o,"__steps"),...d);return(0,c.jsx)(i.A.Body,{...l,className:p,children:s.Children.toArray(r).filter((e=>0===e||e)).filter(((e,t)=>t===a)).map((e=>(0,s.cloneElement)(e)))})};S.displayName="WizardSteps",S.defaultProps={className:"",children:null};var P=a(S);const k=({wizardProps:e,componentName:t,className:o,...s})=>{const r=n.Aq.removeDuplicates(...n.Aq.stringToArray(o)),a=n.Aq.argsToString(...n.Aq.addSuffixToEachString(t,"__footer"),...r);return(0,c.jsx)(i.A.Footer,{...s,className:a})};k.displayName="WizardFooter",k.defaultProps={className:""};var y=a(k),j=o(60483);o(54939);const C=e=>{const{componentName:t,className:o,wizardProps:{activeStepIndex:s,totalSteps:r,buttonsProps:{onNext:a,confirmBeforePrevious:l,onPrevious:d,confirmBeforeSkip:p,onSkip:m,onComplete:h}},hideCompleteButton:u,hideSkipButton:v,hideBackButton:g,hideNextButton:x,hideSubmitButton:_,labels:{back:N,skip:f,submit:A,next:S,complete:P},...k}=e,y=n.Aq.removeDuplicates(...n.Aq.stringToArray(o)),C=n.Aq.argsToString("Buttons",...n.Aq.addSuffixToEachString(t,"__buttons"),...y),B=s>0&&s<r-1&&!g,I=s<r-1&&!v,T=s<r-2&&!x,b=s===r-2&&!_,M=s===r-1&&!u;return(B||I||T||b||M)&&(0,c.jsx)(i.A.Footer,{...k,className:C,componentName:t,children:(0,c.jsx)("div",{className:"Buttons__wrapper",children:(0,c.jsxs)("div",{className:"grid-y",children:[(0,c.jsx)("div",{className:"cell shrink",children:(0,c.jsxs)("div",{className:"grid-x",children:[B&&(0,c.jsx)("div",{className:"cell shrink align-self-left Buttons__back",children:(0,c.jsx)(j.A,{confirmBeforeAction:l,className:"tertiary leftArrow smallButton",onClick:d,children:(0,c.jsx)("span",{className:"hide-for-small-only",children:N})})}),(0,c.jsxs)("div",{className:"cell auto flex-container align-right",children:[I&&(0,c.jsx)("div",{className:"hide-for-small-only Buttons__skip Buttons__skip--small",children:(0,c.jsx)(j.A,{confirmBeforeAction:p,className:"tertiary",onClick:m,children:f})}),T&&(0,c.jsx)(j.A,{className:"small-only-expanded primary rightArrow",onClick:a,children:S}),b&&(0,c.jsx)(j.A,{className:"small-only-expanded primary rightArrow",onClick:a,children:A}),M&&(0,c.jsx)(j.A,{className:"small-only-expanded primary rightArrow",onClick:h,children:P})]})]})}),I&&(0,c.jsx)("div",{className:"cell shrink show-for-small-only Buttons__skip Buttons__skip--expanded",children:(0,c.jsx)(j.A,{confirmBeforeAction:p,className:"small-only-expanded tertiary",onClick:m,children:f})})]})})})};C.displayName="WizardButtons",C.defaultProps={className:"",hideCompleteButton:!1,hideSkipButton:!1,hideBackButton:!1,hideNextButton:!1,hideSubmitButton:!1};var B=a(C);const I=({wizardProps:e,...t})=>(0,c.jsx)(i.A.Callout,{...t});I.displayName="WizardCallout";var T=a(I);class b extends s.PureComponent{constructor(e){super(e),this.gotoStep=(e,t,o)=>{this.setState({activeStepIndex:e,previousStepIndex:t},(()=>o()))},this.onError=(e,t)=>
1{const{onError:o}=this.props;o({location:e,error:t})},this.onBeforeNext=(e,t)=>{const{activeStepIndex:o}=this.state,{totalSteps:s,onBeforeNext:i}=this.props,r="number"===typeof e?e:o+1;r>=0&&r<=s-1&&i({currentStepIndex:o,nextStepIndex:r}).then((e=>!e||this.onNext(o,r,t))).catch((e=>this.onError("onBeforeNext",e)));n.j0.click({action:"next",category:"next_button",label:"Next Section"})},this.onNext=(e,t,o)=>{const{onNext:s}=this.props;return s({currentStepIndex:e,nextStepIndex:t,timeLineEvent:o}).then((()=>this.gotoStep(t,e,this.onAfterNext))).catch((e=>this.onError("onNext",e)))},this.onAfterNext=()=>{const{activeStepIndex:e,previousStepIndex:t}=this.state,{onAfterNext:o}=this.props;o({currentStepIndex:e,previousStepIndex:t}).catch((e=>this.onError("onAfterNext",e)))},this.onBeforePrevious=()=>{const{activeStepIndex:e}=this.state,{totalSteps:t,onBeforePrevious:o}=this.props,s=e-1;s>=0&&s<=t-1&&o({currentStepIndex:e,nextStepIndex:s}).then((t=>!t||this.onPrevious(e,s))).catch((e=>this.onError("onBeforePrevious",e)));n.j0.click({action:"back",category:"back_button",label:"Back to previous section"})},this.onPrevious=(e,t)=>{const{onPrevious:o}=this.props;return o({currentStepIndex:e,nextStepIndex:t}).then((()=>this.gotoStep(t,e,this.onAfterPrevious))).catch((e=>this.onError("onPrevious",e)))},this.onAfterPrevious=()=>{const{activeStepIndex:e,previousStepIndex:t}=this.state,{onAfterPrevious:o}=this.props;o({currentStepIndex:e,previousStepIndex:t}).catch((e=>this.onError("onAfterPrevious",e)))},this.onBeforeSkip=()=>{const{activeStepIndex:e}=this.state,{totalSteps:t,onBeforeSkip:o}=this.props,s=e+1;s>=0&&s<=t-1&&o({currentStepIndex:e,nextStepIndex:s}).then((t=>!t||this.onSkip(e,s))).catch((e=>this.onError("onBeforeSkip",e)));n.j0.click({action:"complete_later",category:"complete_later_button",label:"Complete Later"})},this.onSkip=(e,t)=>{const{onSkip:o}=this.props;return o({currentStepIndex:e,nextStepIndex:t}).then((()=>this.gotoStep(t,e,this.onAfterSkip))).catch((e=>this.onError("onSkip",e)))},this.onAfterSkip=()=>{const{activeStepIndex:e,previousStepIndex:t}=this.state,{onAfterSkip:o}=this.props;o({currentStepIndex:e,previousStepIndex:t}).catch((e=>this.onError("onAfterSkip",e)))},this.onBeforeComplete=()=>{const{onBeforeComplete:e}=this.props;e().then((e=>!e||this.onComplete())).catch((e=>this.onError("onBeforeComplete",e)))},this.onComplete=()=>{const{onComplete:e}=this.props;return e().catch((e=>this.onError("onComplete",e)))},this.onAfterComplete=()=>{const{onAfterComplete:e}=this.props;e().catch((e=>this.onError("onAfterComplete",e)))};const{activeStepIndex:t}=this.props;this.state={activeStepIndex:t,previousStepIndex:-1}}render(){const{onBeforeNext:e,onNext:t,onAfterNext:o,confirmBeforePrevious:s,onBeforePrevious:r,onPrevious:a,onAfterPrevious:d,confirmBeforeSkip:p,onBeforeSkip:m,onSkip:h,onAfterSkip:u,onBeforeComplete:v,onComplete:g,onAfterComplete:x,onError:_,activeStepIndex:N,className:f,componentName:A,children:S,totalSteps:P,shareableProps:k,...y}=this.props,j=n.Aq.removeDuplicates(...n.Aq.addToArray("Wizard",A)),C=n.Aq.removeDuplicates(...n.Aq.stringToArray(f)),B=n.Aq.argsToString(...n.Aq.addSuffixToEachString(j,`--step${N+1}`),...C),I={componentName:j,shareableProps:k,wizardProps:{activeStepIndex:N,totalSteps:P,buttonsProps:{onNext:this.onBeforeNext,confirmBeforePrevious:s,onPrevious:this.onBeforePrevious,confirmBeforeSkip:p,onSkip:this.onBeforeSkip,onComplete:this.onBeforeComplete}}};return(0,c.jsx)(l.Provider,{value:I,children:(0,c.jsx)(i.A,{...y,componentName:j,className:B,children:S})})}}b.displayName="Wizard",b.defaultProps={componentName:"",className:"",themeName:"",activeStepIndex:0,onBeforeNext:()=>Promise.resolve(!0),onNext:()=>Promise.resolve(!0),onAfterNext:()=>Promise.resolve(!0),confirmBeforePrevious:!1,onBeforePrevious:()=>Promise.resolve(!0),onPrevious:()=>Promise.resolve(!0),onAfterPrevious:()=>Promise.resolve(!0),confirmBeforeSkip:!1,onBeforeSkip:()=>Promise.resolve(!0),onSkip:()=>Promise.resolve(!0),onAfterSkip:()=>Promise.resolve(!0),onBeforeComplete:()=>Promise.resolve(!0),onComplete:()=>Promise.resolve(!0),onAfterComplete:()=>Promise.resolve(!0),onError:()=>Promise.resolve(!0),children:null,shareableProps:{}},b.Header=p,b.SubHeader=h,b.Timeline=x,b.Banner=N,b.Body=A,b.Steps=P,b.Footer=y,b.Buttons=B,b.Callout=T,b.withWizard=a}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.