import{b0 as x,hh as L,y as k,aI as c,az as u,bu as z,fi as E,ao as s,iG as g,hi as B,v as H,p as m,f as b,e as j,o as v,W as w,am as D,E as F,r as M,g7 as G}from"./app-k0jcl5PQ.js";import{u as R,a as T,s as q,M as K,S as N,b as W,c as V,D as O}from"./CiRQuJ84.chunk.js";import{u as $,A as J}from"./ClXKCv7P.chunk.js";import{u as Q}from"./CZ0F-BpO.chunk.js";import{U as X}from"./Cq8Wr_gd.chunk.js";import{u as Y}from"./XE7YT6KE.chunk.js";import"./CK1wYtr2.chunk.js";import"./D41e4O-3.chunk.js";import"./kLXBNYk1.chunk.js";import"./CRGucDdi.chunk.js";import"./Dh_4ebb2.chunk.js";import"./ChH5FnWn.chunk.js";function ce(a){const d=x(),f=L(k.BrazeClient),{trialAppLinkString:S}=Q(),[o,i]=c.useState("lg"),[y,U]=c.useState(),{createOrUpdateProfile:A}=R(),r=u(z.config()),t=$(),n=u((t==null?void 0:t.countryCode)&&J.globalIdps(t.countryCode,E.Primary)),p=T(),{entryPage:h}=Y();async function C(e){const I=await d(X.getLookups(e));return G.getCrmId(I)}function l(){a.closePopup();const e=O.filterBlacklistedKeys(y);v.logUserAction(e||{},{actionType:M.Click,location:m.SignUpPopup,entity:F.SignUp,descriptor:D.ClosePopup,workflowPhase:w.Discard})}function P(e){if(U(e),e.currentStepId==="completed"){i(void 0);return}o!=="lg"&&i("lg")}return!r.hasCompleted||!t||!p||!n.hasCompleted?s.jsx(s.Fragment,{}):s.jsx(g,{show:!0,onHide:l,size:o,children:s.jsx(g.Body,{className:`mx-auto p-0 ${q.modalBody} w-100 position-relative`,children:s.jsx(K,{initialValues:{email:a.email},onStepUpdate:P,pageAppLinkString:S,entryPage:h,close:l,type:V.Popup,location:m.SignUpPopup,googleMapsApiKey:r.data.googleMapsApiKey,geoLocation:t,imageUrls:W,ajaxUrls:p,productName:N.Lite,getSignInUrl:e=>H.getHref({application:j.DEFAULT,action:b.Default.CHALLENGE,params:e}),globalIdps:n.data,logBrazeEvent:e=>B.logBrazeEvent(f,e),createOrUpdateProfile:A,getCrmIdForProspect:C})})})}export{ce as StartSignUpView};
//# sourceMappingURL=BnhrHH2d.chunk.js.map
