1function __vite__mapDeps(indexes) { 2 if (!__vite__mapDeps.viteFileDeps) { 3 __vite__mapDeps.viteFileDeps = ["assets/index-CIB3lfUZ.js","assets/index-5gpOmtDw.js","assets/__commonjsHelpers__-BosuxZz1.js","assets/index-BORonP-u.css","assets/IO-DKLnjszC.js","assets/message-CIOZxjnF.js","assets/index-l__SSYY5.js","assets/Header-D6ryxk-A.js","assets/index-Cdr4pL0B.css","assets/index-HwcieIux.css"] 4 } 5 return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) 6} 7import{l as S,_ as P,r as d,u as T,x as I,j as e,P as i}from"./index-5gpOmtDw.js";import $ from"./index-DLB-Yl0M.js";import{S as F}from"./Loadable-B6k3LHTx.js";import{S as j}from"./IO-DKLnjszC.js";import{m as a}from"./index-l__SSYY5.js";import{M as n}from"./message-CIOZxjnF.js";import"./__commonjsHelpers__-BosuxZz1.js";import"./Header-D6ryxk-A.js";const O=S(()=>P(()=>import("./index-CIB3lfUZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),h=({objective_index:o})=>{const{registration_id:l,registration_processed:c,paid:v,registration:t,headline:w,social_share:y,redirect:k,redirect_url:u,redirect_after_registration:b,events:R,checkReg
7istration:_}=T(r=>({registration_processed:r.registration_submission.registration_processed,registration_id:r.registration_submission.registration_id,paid:r.registration_submission.paid,registration:r.registration_submission.registration,headline:r.campaign.headline,social_share:r.advisor.social_share,redirect:r.campaign.redirect,redirect_url:r.campaign.redirect_url,redirect_after_registration:r.campaign.redirect_after_registration,events:r.events,checkRegistration:r.checkRegistration})),p=I(),[f,N]=d.useState(!1),g=d.useRef(),m=d.useRef();d.useEffect(()=>{window.scrollTo(0,0)},[]),d.useEffect(()=>{if(_(),c)g.current&&clearTimeout(g.current);else{const r=new j;r.join(`registration_${l}`,p),r.on(`registration_${l}`,_),g.current||(g.current=setTimeout(()=>{N(!0)},1e4))}return()=>{const r=new j;r.off(`registration_${l}`,_),r.leave(`registration_${l}`,p)}},[c,l]),d.useEffect(()=>{c?m.current&&clearInterval(m.current):m.current||(m.current=setInterval(()=>{c?clearInterval(m.current):_()},5e3))},[c,l]);const s=R.find(r=>r.id===t.event_id),x=c&&(!s||s&&!s.has_cost||s&&s.has_cost&&v),E=o===0&&!t.waitlisted&&!!t.event_id&&s&&s.has_cost;return e.jsxs("div",{className:"p-5",children:[!!c&&e.jsxs("div",{children:[e.jsx("h3",{className:"text-center text-white",children:w}),e.jsxs("div",{className:"mx-auto pb-4",style:{maxWidth:750},children:[e.jsxs("h5",{className:"text-white text-center",children:[o===0&&!t.waitlisted&&!!t.event_id&&s&&!s.has_cost&&!t.needs_digital_confirmation&&e.jsx(n,{...a.event_registered}),o===0&&!t.waitlisted&&!!t.event_id&&s&&!s.has_cost&&t.needs_digital_confirmation&&e.jsx(n,{...a.needs_digital_confirmation}),o===0&&!!t.waitlisted&&!!t.event_id&&e.jsx(n,{...a.event_waitlisted}),o===0&&!t.event_id&&e.jsx(n,{...a.registered}),o===1&&!!t.appointment_time&&e.jsx(n,{...a.appointment_registered}),o===1&&!t.appointment_time&&e.jsx(n,{...a.registered}),(o===2||o===3||o===5)&&e.jsx(n,{...a.registered})]}),k&&u&&b&&e.jsx("h5",{className:"text-white text-center",children:e.jsx(n,{...a.redirect,values:{link:e.jsx("a",{href:u,target:"_bank",children:"click here"})}})}),t.webinar_key&&e.jsx("h5",{className:"text-white text-center",children:e.jsx(n,{...a.redirect,values:{link:e.jsx("a",{href:t.webinar_key.comment==="Just in time"?t.webinar_live_room_url:t.webinar_thank_you_url,target:"_bank",children:"click here"})}})}),E&&e.jsx("div",{className:"mx-auto py-4 text-center text-white","data-testid":`payment-${t.attendee_record_id}`,children:e.jsx($,{attendee_record_id:t.attendee_record_id})})]}),x&&y&&e.jsx(O,{referral_code:t.referral_code,registration_event:s}),x&&o!==5&&e.jsx("p",{className:"text-center text-white",children:e.jsx("small",{children:e.jsx(n,{...a.navigate_away})})})]}),!c&&e.jsxs("div",{children:[e.jsx("span",{onClick:_,onKeyPress:r=>{r.key==="Enter"&&_()},role:"button",tabIndex:-1,children:e.jsxs("h4",{className:"text-center text-white",children:[!f&&e.jsx(n,{...a.processing}),f&&e.jsx(n,{...a.processing_timedout})]})}),e.jsx("div",{className:"py-3",children:e.jsx(F,{color:"#FFF"})})]}),!c&&!1]})};h.propTypes={registration_processed:i.number,registration_id:i.string,checkRegistration:i.func,paid:i.bool,objective_index:i.number,headline:i.string,social_share:i.bool,redirect:i.bool,redirect_url:i.string,redirect_after_registration:i.bool,registration:i.objectOf(i.any),events:i.arrayOf(i.objectOf(i.any))};h.defaultProps={events:[]};const V=d.memo(h);export{V as default};
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.