PageSourceSearch

https://www.velocityfrequentflyer.com/etc.clientlibs/my-velocity/c…eJoinCreatePassword.a5308cdb7a47feea67e4.js

js velocityfrequentflyer.com collected 2026-09-24 10:08:05 UTC 3,366 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkvff_my_velocity=self.webpackChunkvff_my_velocity||[]).push([[6507],{23839(e,t,s){s.r(t),s.d(t,{default:()=>x});var a=s(74848),n=s(96540),i=s(92816),r=s(17911),o=s(32002),l=s(55691),c=s(74049),d=s(96758),m=s(69147),u=s(77023),w=s(7641),v=s(76820),p=s(49184),h=s(95516),f=s(85486),C=s(38092),P=s(42073),g=s(3848);const j="src-features-LiteJoinCreatePassword-LiteJoinCreatePassword_loadingContainer",x=({title:e,description:t,ctaContainer:s,errorMessages:x})=>{const y=(0,r.A)(e=>e.user),A=(0,n.useRef)(null),[J,N]=(0,n.useState)(!1),[_,L]=(0,n.useState)(null),[S,E]=(0,n.useState)(!0),[b,k]=(0,n.useState)(!1),I=(0,g.S_)(y),$=(0,g.R$)(y),F=(0,g.ls)(y),M=(0,g.W7)(y),{form:T}=l.Ne,{liteJoinIncompleteStart:V,liteJoinIncompleteSetPasswordSubmit:B,liteJoinIncompleteSetPasswordError:O}=l.Y_,{velocityLiteJoin:R}=l.kj,{click:D,impression:Q}=l.df;(0,c.A)({additionalData:{eventName:V,eventCategory:T,eventElementName:R,eventElementText:"Step 1"}}),(0,n.useEffect)(()=>{(async()=>{const e=(0,C.Br)("login_hint",!0);if(e){const t=(0,C.le)(e),s=null==t?void 0:t.sub;if(s){const t=await m.Ay.login({url:`${window.location.origin}${window.location.pathname}`,authFlowName:m.J8.passwordProtectedPage,extraQueryParams:{login_hint:s,id_token_hint:e},signInUrlOnly:!0});await m.Ay.logout(t)}else E(!1),k(!0)}else E(!1)})()},[]);const U=(0,a.jsx)("div",{className:j,children:(0,a.jsx)(p.A,{})}),W=(0,a.jsx)("div",{className:"src-features-LiteJoinCreatePassword-LiteJoinCreatePassword_errorMessage",children:(0,a.jsx)(h.A,{theme:"error",description:"Sorry, we're having issues with our system."})}),Y=(0,g.O4)(y),q=(0,g.w5)(y);return(0,a.jsx)(u.A,{section:i.E.liteJoinCreatePassword,children:(0,a.jsx)("div",{className:"src-features-LiteJoinCreatePassword-LiteJoinCreatePassword_container",children:S||b?(0,a.jsxs)(a.Fragment,{children:[S&&U,b&&W]}):(0,a.jsxs)(a.Fragment,{children:[!I&&$&&(0,a.jsx)("div",{className:j,children:(0,a.jsx)(p.A,{})}),!I&&F&&W,I&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(w.A,{theme:"typeB",children:[!J&&_&&(0,a.jsx)(h.A,{className:"src-features-LiteJoinCreatePassword-LiteJoinCreatePassword_errorMsg",ref:A,theme:"error",description:_.description}),(0,a.jsxs)("div",{className:"src-features-LiteJoinCreatePassword-LiteJoinCreatePassword_welcomeMsg",children:[e&&(0,a.jsx)(f.A,{className:"src-features-LiteJoinCreatePassword-LiteJoinCreatePassword_title",content:(0,P.A)(e||"",{firstName:`<span class='pii-data'>${Y||""}</span>`,lastName:`<span class='pii-data'>${q||""}</span>`})}),t&&(0,a.jsx)(f.A,{className:"src-features-LiteJoinCreatePassword-LiteJoinCreatePassword_description",content:t||""})]})]}),!J&&(0,a.jsx)(v.A,{onSubmit:async e=>{try{N(!1),L(null),await d.A.vffV2Api.patch("/loyalty/v2/password/lite-join-reset",{data:{membershipId:M,newPassword:null==e?void 0:e.newPassword}}),await m.Ay.logout(`${window.location.origin}/lite-join-create-password-success`)}catch(e){const t=(0,C.rC)(e,x);(e=>{const t=(0,C.VE)(e);(0,o.A)({eventAction:Q,eventName:O,eventCategory:T,eventElementName:R,eventElementValue:t})})(null==t?void 0:t.description),L(t),A.current&&(0,C.Pj)(A.current,(0,C.I8)())}},onSubmitClick:e=>{const t=null==e?void 0:e.currentTarget;(0,o.A)({eventAction:D,eventName:B,eventCategory:T,eventElementName:R,eventElementText:(null==t?void 0:t.innerText)||"Submit"})},ctaContainer:s})]})]})})})}}}]);

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.