1import{c as Kt,d as Zt,e as en,f as tn}from"./chunk-KVP3H224.js";import{J as Jt,K as qt,Yb as Qt,ye as hi}from"./chunk-6QDVQ5WV.js";import{$a as u,A as Qi,Ac as ui,B as Ai,Ba as b,Bb as ct,Bn as Be,C as Ki,Ca as at,Cc as ue,D as Ye,Dl as Gi,Dm as bt,Eb as _t,Ec as gt,Ed as Si,Eu as A,Fa as oi,Fc as wt,Fd as ht,Gu as Vt,H as Zi,Ha as d,Hc as U,Hl as je,Hu as Xt,Ia as $e,Ib as g,In as Ci,Ja as S,Jb as w,K as et,Ka as rt,La as st,Lc as ft,Ln as $t,M as ce,Ma as we,Mb as ut,Mc as Et,Mm as De,Mu as zt,N as _e,Na as fe,Nc as Nt,Nl as Ft,O as Le,Oa as s,Pa as a,Pc as mi,Pm as Ni,Qa as r,Qc as It,Ra as _,Re as Tt,Sa as lt,Sb as Ce,Sc as O,Sl as X,Sn as xt,Ta as pt,Tb as ci,Ti as At,Tn as Dt,Um as Ot,V as it,Vg as He,Vm as Gt,Vq as Wt,Vt as Ge,W as ti,Wb as L,Wm as Ii,Wp as Bt,Xm as Pt,Ya as q,Yk as vt,Ym as Mt,Z as p,Za as Q,_a as K,_u as Yt,ac as M,ad as di,am as wi,bb as Z,c as Ui,ca as j,cb as ee,cn as Rt,da as J,eb as h,ef as Ut,ev as Ht,fb as I,fc as Fi,fe as gi,g as Yi,gb as Ee,gc as mt,gl as G,gn as Lt,gw as We,h as Hi,hb as ge,i as yi,ja as tt,jb as ai,jn as Ue,k as C,kb as ri,kc as dt,kq as y,l as f,la as ie,lb as si,m as ji,mh as le,nd as bi,ob as li,od as Ct,op as ye,pa as nt,pb as B,pm as ne,pu as kt,q as Ze,qa as ot,qb as te,r as ei,rc as Y,rm as z,s as Ji,sa as o,sm as fi,t as ii,tb as Ne,tc as se,tl as pe,tm as Ei,uc as _i,um as Te,uy as jt,v as H,vb as Ie,vc as St,wd as Oi,wg as yt,xb as xe,xg as he,y as qi,ya as T,yb as vi,yc as k,yp as Ae,za as ni,zb as pi}from"./chunk-6VDOBKBI.js";import"./chunk-UNNH6OJB.js";import{a as Me,b as Re,h as N}from"./chunk-HE2D45TV.js";function nn(i){return`/signup${i.path?`/${i.path}`:""}`}function bn(i,l){if(i&1&&_(0,"ww-badge",3),i&2){let e=l.$implicit,n=l.$index;s("ngClass","ww-sign-up-account-found-illustration-initial ww-sign-up-account-found-illustration-initial-"+n)("component",e.name)("wwBackgroundColor",e.background)("wwBorderColor",e.border)("wwColor",e.color)}}var Ti=(()=>{class i extends G{constructor(){super(...arguments),this.initials=[{name:"FD",background:"#D3DBFF",border:"white",color:"primary"},{name:"AP",background:"#5C4EFC",border:"white",color:"#D3DBFF"},{name:"DR",background:"primary",border:"white",color:"#D3DBFF"},{name:"NR",background:"#D3DBFF",border:"white",color:"primary"},{name:"MT",background:"#9CA4FD",border:"white",color:"primary"},{name:"CM",background:"primary",border:"white",color:"#D3DBFF"},{name:"LO",background:"#5C4EFC",border:"white",color:"#D3DBFF"},{name:"JL",background:"primary",border:"white",color:"#D3DBFF"}]}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=ie(i)))(t||i)}})()}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-account-found-illustration"]],hostAttrs:[1,"ww-sign-up-account-found-illustration"],features:[b],decls:5,vars:4,consts:[[1,"ww-sign-up-account-found-illustration-orbital"],[1,"ww-sign-up-account-found-illustration-logo",3,"wwBackgroundColor"],[3,"icon","color","sizeStyle"],[3,"ngClass","component","wwBackgroundColor","wwBorderColor","wwColor"]],template:function(n,t){n&1&&(a(0,"div",0)(1,"div",1),_(2,"ww-icon",2),r()(),we(3,bn,1,5,"ww-badge",3,rt)),n&2&&(o(),s("wwBackgroundColor","primary"),o(),s("icon","ww-waitwhile")("color","white")("sizeStyle","5vw"),o(),fe(t.initials))},dependencies:[M,ci,U,O,y,Ni,ne,z],styles:[`.ww-sign-up-account-found-illustration .ww-badge.ww-badge{--ww-badge-size: 32px;border:1px solid;position:absolute}.ww-sign-up-account-found-illustration-logo{width:11vw;height:11vw;display:flex;align-items:center;border-radius:100%;justify-content:center;border:2px solid var(--ww-color-primary-dark)}.ww-sign-up-account-found-illustration-orbital{display:flex;align-items:center;justify-content:center;height:25vw;width:25vw;position:relative}.ww-sign-up-account-found-illustration-orbital:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border:2px dashed var(--ww-color-primary);border-radius:100%;animation:spin 36s linear infinite;transition:opacity .4s ease-in-out}.ww-sign-up-account-found-illustration-initial{top:calc(50% - 16px);right:calc(50% - 16px);transform-origin:50% 50%;z-index:1;transition:opacity .4s ease-in-out}.ww-sign-up-account-found-illustration-initial.ww-sign-up-account-found-illustration-initial-0{animation:orbit0 36s linear infinite}.ww-sign-up-account-found-illustration-initial.ww-sign-up-account-found-illustration-initial-1{animation:orbit1 36s linear infinite}.ww-sign-up-account-found-illustration-initial.ww-sign-up-account-found-illustration-initial-2{animation:orbit2 36s linear infinite}.ww-sign-up-account-found-illustration-initial.ww-sign-up-account-found-illustration-initial-3{animation:orbit3 36s linear infinite}.ww-sign-up-account-found-illustration-initial.ww-sign-up-account-found-illustration-initial-4{animation:orbit4 36s linear infinite}.ww-sign-up-account-found-illustration-initial.ww-sign-up-account-found-illustration-initial-5{animation:orbit5 36s linear infinite}.ww-sign-up-account-found-illustration-initial.ww-sign-up-account-found-illustration-initial-6{animation:orbit6 36s linear infinite}.ww-sign-up-account-found-illustration-initial.ww-sign-up-account-found-illustration-initial-7{animation:orbit7 36s linear infinite}.ww-sign-up-account-found-illustration-initial.ww-sign-up-account-found-illustration-initial-8{animation:orbit8 36s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes orbit0{0%{transform:rotate(0) translate(12.5vw) rotate(0)}to{transform:rotate(360deg) translate(12.5vw) rotate(-360deg)}}@keyframes orbit1{0%{transform:rotate(45deg) translate(12.5vw) rotate(-45deg)}to{transform:rotate(405deg) translate(12.5vw) rotate(-405deg)}}@keyframes orbit2{0%{transform:rotate(90deg) translate(12.5vw) rotate(-90deg)}to{transform:rotate(450deg) translate(12.5vw) rotate(-450deg)}}@keyframes orbit3{0%{transform:rotate(135deg) translate(12.5vw) rotate(-135deg)}to{transform:rotate(495deg) translate(12.5vw) rotate(-495deg)}}@keyframes orbit4{0%{transform:rotate(180deg) translate(12.5vw) rotate(-180deg)}to{transform:rotate(540deg) translate(12.5vw) rotate(-540deg)}}@keyframes orbit5{0%{transform:rotate(225deg) translate(12.5vw) rotate(-225deg)}to{transform:rotate(585deg) translate(12.5vw) rotate(-585deg)}}@keyframes orbit6{0%{transform:rotate(270deg) translate(12.5vw) rotate(-270deg)}to{transform:rotate(630deg) translate(12.5vw) rotate(-630deg)}}@keyframes orbit7{0%{transform:rotate(315deg) translate(12.5vw) rotate(-315deg)}to{transform:rotate(675deg) translate(12.5vw) rotate(-675deg)}}@keyframes orbit8{0%{transform:rotate(360deg) translate(12.5vw) rotate(-360deg)}to{transform:rotate(720deg) translate(12.5vw) rotate(-720deg)}} 2/*noopsign-up-account-found-illustration.component-PFXWTHWP.css.map */ 3`],encapsulation:2,changeDetection:0})}}return i})();var On=["*"],oe=(()=>
3{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-page-primary-actions"]],hostAttrs:[1,"ww-sign-up-page-primary-actions"],ngContentSelectors:On,decls:1,vars:0,template:function(n,t){n&1&&(Ee(),ge(0))},dependencies:[U,y],encapsulation:2,changeDetection:0})}}return i})();var v=(()=>{class i{constructor(){this.accountRx=p(Ge),this.environment=p(At),this.router=p(mi),this.signUpStateService=p(A),this.lastStepIndex=on,this.emailVerificationRedirectUrl=`${this.environment.hostingUrl}/signup/email-verify`,this.currentStep$=this.router.events.pipe(H(e=>e instanceof ft),ce(null),f(()=>{let e=this.router.url;return Fe.find(n=>n.path&&e.includes(n.path))??F}),Ye()),this.currentStepIndex$=this.currentStep$.pipe(f(e=>e?.stepIndex),Ye()),this.emailValidation$=ji([this.signUpStateService.email$,this.signUpStateService.providerId$]).pipe(_e(([e,n])=>!e||!n?yi({type:"EMAIL_EMPTY",valid:!1}):this.accountRx.validateEmail(e,n).pipe(f(t=>t.isValid?t.hasOrganization?{type:"HAS_ORGANIZATION",valid:!0}:{type:"NEW_ORGANIZATION",valid:!0}:t.errorCode==="ORG_DISALLOWS_NEW_ACCOUNTS"?{type:"ORG_DISALLOWS_NEW_ACCOUNTS",valid:!0,serverMessage:t.message}:t.errorCode==="SSO_ACCOUNT_EXISTS"?{type:"SSO_ACCOUNT_EXISTS",contact:t.contact,valid:!1,serverMessage:t.message}:t.errorCode==="EMAIL_NOT_ALLOWED"?{type:"EMAIL_NOT_ALLOWED",valid:!1,serverMessage:t.message}:t.errorCode==="INVITE_EXISTS"?{type:"INVITE_EXISTS",contact:t.contact,valid:!1,serverMessage:t.message}:t.errorCode==="USER_EXISTS"?{type:"USER_EXISTS",valid:!1,serverMessage:t.message}:t.errorCode==="PROVIDER_EXISTS"?{type:"PROVIDER_EXISTS",valid:!1,providers:t.data?.providers??[]}:{type:"EMAIL_NOT_ALLOWED",valid:!1,serverMessage:t.message}),qi(t=>{if(Ct(t)&&He(t.error)&&t.error.errorCode==="validation_error")return yi({type:"EMAIL_NOT_ALLOWED",valid:!1});throw t})))),this.emailValidationLoading$=ii(this.signUpStateService.email$.pipe(f(()=>!0)),this.emailValidation$.pipe(f(()=>!1))).pipe(et({bufferSize:1,refCount:!0})),this.emailNotAllowedValidationError$=this.emailValidation$.pipe(f(e=>e?.type==="EMAIL_NOT_ALLOWED"?e:null)),this.providerExistsValidationError$=this.emailValidation$.pipe(f(e=>e?.type==="PROVIDER_EXISTS"?Re(Me({},e),{hasGoogleProvider:e.providers.includes("google.com")}):null)),this.existingEmailValidationError$=this.emailValidation$.pipe(f(e=>e?.type==="USER_EXISTS"?e:null)),this.invalidDomainEmailValidationError$=this.emailValidation$.pipe(f(e=>e?.type==="EMAIL_NOT_ALLOWED"?e:null)),this.invitedEmailValidationError$=this.emailValidation$.pipe(f(e=>e?.type==="INVITE_EXISTS"?e:null)),this.orgDisallowsNewAccountsEmailValidationError$=this.emailValidation$.pipe(f(e=>e?.type==="ORG_DISALLOWS_NEW_ACCOUNTS"?e:null)),this.ssoAccountExistsEmailValidationError$=this.emailValidation$.pipe(f(e=>e?.type==="SSO_ACCOUNT_EXISTS"?e:null)),this.emailValidationLoading$.subscribe()}navigateToStep(e){return N(this,null,function*(){this.router.navigate([nn(e)])})}navigateToStepAfter(e){return N(this,null,function*(){let t=(e?.stepIndex??-1)+1;this.navigateToStepIndex(t)})}navigateToNextStep(){return N(this,null,function*(){let t=((yield C(this.currentStep$))?.stepIndex??0)+1;this.navigateToStepIndex(t)})}navigateToPreviousStep(){return N(this,null,function*(){let t=((yield C(this.currentStep$))?.stepIndex??0)-1;this.navigateToStepIndex(t)})}navigateToStepIndex(e){return N(this,null,function*(){let n=Fe.find(t=>t.stepIndex===e)??F;this.navigateToStep(n)})}navigateAfterEmailVerification(){return N(this,null,function*(){(yield C(this.emailValidation$)).type==="HAS_ORGANIZATION"?this.navigateToStep(be):this.navigateToStep(de)})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=it({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Gn=["*"];function Pn(i,l){i&1&&(a(0,"ww-link",1),_(1,"img",2),r()),i&2&&s("href","https://waitwhile.com")("hideIcon",!0)}function Mn(i,l){i&1&&_(0,"img",2)}var $=(()=>{class i{constructor(){this.breakpoints=p(pe),this.signUpService=p(v),this.activateLink$=this.signUpService.currentStep$.pipe(f(e=>e===F))}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-page-primary"]],hostAttrs:[1,"ww-sign-up-page-primary"],inputs:{hidePreviousButton:"hidePreviousButton"},ngContentSelectors:Gn,decls:6,vars:4,consts:[[1,"ww-sign-up-page-primary-logo",3,"wwBackgroun
3dColor"],["type","external-in-same-tab",3,"href","hideIcon"],["src","assets/logos/waitwhile-logo.svg",1,"h-4"],[1,"ww-sign-up-page-primary-content"]],template:function(n,t){n&1&&(Ee(),a(0,"div",0),d(1,Pn,2,2,"ww-link",1),g(2,"async"),$e(3,Mn,1,0,"img",2),r(),a(4,"div",3),ge(5),r()),n&2&&(s("wwBackgroundColor","white"),o(),S(w(2,2,t.activateLink$)?1:3))},dependencies:[U,y,ne,Ae,L],encapsulation:2,changeDetection:0})}}return i})();var Ln=["*"];function $n(i,l){if(i&1&&_(0,"ww-illustration",7),i&2){let e=l.$implicit;s("icon",e)}}function xn(i,l){if(i&1&&(a(0,"p",4),u(1,0),r(),a(2,"div",5)(3,"div",6),we(4,$n,1,1,"ww-illustration",7,st),r()(),a(6,"a",8),_(7,"ww-illustration",9),r()),i&2){let e=I();o(4),fe(e.logos),o(3),s("icon","ww-g2-rating")}}function Dn(i,l){i&1&&_(0,"ww-illustration",3),i&2&&s("icon","ww-sign-up-bubbles")}var W=(()=>{class i{constructor(){this.logos=Array(20).fill(["ww-logo-samsung","ww-logo-applebees","ww-logo-best-buy","ww-logo-ace-hardware","ww-logo-united","ww-logo-us-air-force","ww-logo-louis-vuitton","ww-logo-delta"]).flat()}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-page-secondary"]],hostAttrs:[1,"ww-sign-up-page-secondary"],hostVars:2,hostBindings:function(n,t){n&2&&te("ww-sign-up-page-secondary-disable-animation",t.disableAnimation)},inputs:{withBrands:"withBrands",disableAnimation:"disableAnimation",withBackgroundBubbles:"withBackgroundBubbles"},ngContentSelectors:Ln,decls:5,vars:2,consts:()=>{let e;return e=$localize` Used by 250M+ customers of leading brands globally `,[e,[1,"ww-sign-up-page-secondary-background"],[1,"ww-sign-up-page-secondary-content"],[1,"ww-sign-up-page-secondary-background-bubbles",3,"icon"],["wwColor","white"],[1,"ww-sign-up-secondary-logo-carousel","mt-6"],[1,"ww-sign-up-secondary-logo-carousel-animation"],[1,"ww-sign-up-secondary-page-logo-illustration",3,"icon"],["href","https://www.g2.com/products/waitwhile/reviews","target","_blank",1,"mt-10"],[3,"icon"]]},template:function(n,t){n&1&&(Ee(),a(0,"div",1)(1,"div",2),ge(2),d(3,xn,8,1),r(),d(4,Dn,1,1,"ww-illustration",3),r()),n&2&&(o(3),S(t.withBrands?3:-1),o(),S(t.withBackgroundBubbles?4:-1))},dependencies:[U,y,ne,Ei],encapsulation:2,changeDetection:0})}}return i})();var Bn=[[["ww-sign-up-page-primary"]],[["ww-sign-up-page-secondary"]]],Wn=["ww-sign-up-page-primary","ww-sign-up-page-secondary"];function kn(i,l){i&1&&ge(0,1)}var x=(()=>{class i{constructor(){this.breakpoints=p(pe)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-page"]],hostAttrs:[1,"ww-sign-up-page"],ngContentSelectors:Wn,decls:4,vars:3,consts:[[1,"flex","gap-4","h-full"]],template:function(n,t){n&1&&(Ee(Bn),lt(0,"div",0),ge(1),d(2,kn,1,0),g(3,"async"),pt()),n&2&&(o(2),S(w(3,1,t.breakpoints.isAboveMedium$)?2:-1))},dependencies:[M,U,y,L],styles:[`.ww-sign-up-page-primary{--content-max-width: 446px;display:flex;flex-direction:column;min-width:0;flex:1;padding:0 16px}.ww-sign-up-page-primary-logo{display:flex;position:sticky;top:0;padding-bottom:8px;padding-top:32px}.ww-sign-up-page-primary-content-width{max-width:var(--content-max-width);width:100%;align-self:center}.ww-sign-up-page-primary-actions{width:100%;padding-bottom:16px}.ww-sign-up-page-primary-actions>.ww-button{width:100%}.ww-sign-up-page-primary-content{display:flex;flex-direction:column;padding-top:min(15vh,15vw);max-width:var(--content-max-width);width:100%;height:100%;align-self:center}.ww-breakpoints-below-mobile .ww-sign-up-page-primary-content{padding-top:32px}.ww-sign-up-secondary-logo-carousel{position:relative;width:100%;overflow:hidden;mask:linear-gradient(to right,transparent 0%,black 10%,black 90%,transparent 100%)}.ww-sign-up-secondary-logo-carousel .ww-sign-up-secondary-logo-carousel-animation{display:flex;align-items:center;justify-content:center;gap:48px;animation:carousel 120s linear infinite alternate}.ww-sign-up-page-secondary-background-bubbles{position:absolute;z-index:0;inset:80px;pointer-events:none}.ww-sign-up-page-secondary-background-bubbles svg{height:100%;width:100%}.ww-sign-up-secondary-page-logo-illustration svg{height:60px}.ww-sign-up-page-secondary{flex:1}.ww-sign-up-page-secondary .ww-sign-up-page-secondary-image{width:40vw;max-width:1000px}.ww-sign-up-page-secondary .ww-sign-up-page-secondary-illustration svg{width:40vw;max-width:1000px;height:auto}.ww-sign-up-page-secondary .ww-illustration{max-width:100%}.ww-sign-up-page-secondary-disable-animation .ww-sign-up-page-secondary-content{animation:none}.ww-sign-up-page-secondary-content{display:flex;flex-direction:column;height:100%;align-items:center;justify-content:center;padding:32px;position:relative;z-index:1;animation-timing-function:cubic-bezier(.04,.65,.36,1.01);animation:enter .5s ease-in-out}.ww-sign-up-page-secondary-background{display:block;position:fixed;top:16px;right:16px;bottom:16px;width:calc(50% - 36px);min-width:0;border-radius:20px;overflow:hidden;background:radial-gradient(72.22% 72.22% at 50% 50%,#1a098ccc,#1a098c00),#000f43}@keyframes enter{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes carousel{0%{transform:translate(0)}to{transform:translate(-200%)}} 4/*noopsign-up-page.component-PXWVS2SZ.css.map */ 5`],encapsulation:2,changeDetection:0})}}return i})();function Vn(i,l){if(i&1&&(a(0,"h3"),u(1,3),r()),i&2){I();let e=pi(2);o(),Z(e),ee(1)}}function Xn(i,l){i&1&&(a(0,"h3"),u(1,4),r())}function zn(i,l){if(i&1&&(a(0,"h5"),u(1,5),r()),i&2){I();let e=pi(2);o(),Z(e),ee(1)}}function Yn(i,l){i&1&&(a(0,"h5"),u(1,6),r())}function Hn(i,l){if(i&1){let e=q();a(0,"img",17),h("error",function(){j(e);let t=I();return J(t.logoLoadFailed=!0)}),r()}if(i&2){let e=I(),n=pi(15);s("src",n,nt),oi("alt",e.signUpStateService.state.enrichment==null?null:e.signUpStateService.state.enrichment.businessName)}}function jn(i,l){i&1&&(a(0,"div",13),_(1,"ww-icon",18),r()),i&2&&(s("wwBackgroun
5dColor","lightGrey"),o(),s("icon","bx-user-plus")("size","x-large"))}var an=(()=>{class i extends G{constructor(){super(...arguments),this.breakpoints=p(pe),this.signUpService=p(v),this.signUpStateService=p(A),this.illustration=be.illustration,this.logoLoadFailed=!1,this.createNewAccountDisabled$=this.signUpService.orgDisallowsNewAccountsEmailValidationError$.pipe(f(e=>!!e)),this.createNewAccountLabel$=this.createNewAccountDisabled$.pipe(f(e=>e?$localize`This option is disabled as your organization already has a central Waitwhile account.`:$localize`Start a fresh workspace with its own settings, members, and data.`))}joinExistingAccount(){this.signUpService.navigateToStep(Mi)}createNewAccount(){this.signUpService.navigateToStep(de)}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=ie(i)))(t||i)}})()}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-account-found"]],hostAttrs:[1,"ww-sign-up-account-found"],features:[b],decls:31,vars:23,consts:()=>{let e;e=$localize`Join their account to collaborate â or create your own account.`;let n;n=$localize` Connect with your teammates to access shared settings, data, and resources. `;let t;t=$localize`Create new account`;let c;c=$localize` Good news! ${"\uFFFD0\uFFFD"}:INTERPOLATION: already has a Waitwhile account! `;let m;m=$localize`We found your teammates on Waitwhile!`;let E;E=$localize`Join existing ${"\uFFFD0\uFFFD"}:INTERPOLATION: account`;let R;return R=$localize`Join existing account`,[e,n,t,c,m,E,R,[1,"flex","flex-col","gap-4","mt-8"],["wwCard","",1,"flex","gap-6","p-6","text-start","items-center","justify-between","ww-elevation-medium",3,"click","wwBackgroundColor"],[1,"flex","flex-col","gap-1"],[3,"wwColor","wwTypography"],[1,"ww-sign-up-account-found-icon","ww-elevation-medium"],[1,"ww-sign-up-account-found-company-logo",3,"src"],[1,"ww-sign-up-account-found-icon","ww-elevation-medium",3,"wwBackgroundColor"],["wwCard","",1,"flex","gap-6","p-6","text-start","items-center","justify-between","ww-elevation-medium",3,"click","disabled","wwBackgroundColor","wwColor"],[3,"icon","size","wwColor"],[3,"withBackgroundBubbles"],[1,"ww-sign-up-account-found-company-logo",3,"error","src"],[3,"icon","size"]]},template:function(n,t){if(n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary"),xe(2),d(3,Vn,2,1,"h3")(4,Xn,2,0,"h3"),a(5,"p"),u(6,0),r(),a(7,"div",7)(8,"button",8),h("click",function(){return t.joinExistingAccount()}),a(9,"div",9),d(10,zn,2,1,"h5")(11,Yn,2,0,"h5"),a(12,"p",10),u(13,1),r()(),a(14,"div",11),xe(15),d(16,Hn,1,2,"img",12)(17,jn,2,3,"div",13),r()(),xe(18),g(19,"async"),a(20,"button",14),h("click",function(){return t.createNewAccount()}),a(21,"div",9)(22,"h5"),u(23,2),r(),a(24,"p",10),Ne(25),g(26,"async"),r()(),a(27,"div",13),_(28,"ww-icon",15),r()()()(),a(29,"ww-sign-up-page-secondary",16),_(30,"ww-sign-up-account-found-illustration"),r()()),n&2){o(2);let c=vi(t.signUpStateService.state.enrichment==null?null:t.signUpStateService.state.enrichment.businessName);o(),S(c?3:4),o(5),s("wwBackgroundColor","white"),o(2),S(c?10:11),o(2),s("wwColor","darkerGrey")("wwTypography","body2"),o(3);let m=vi(t.signUpStateService.state.enrichment==null?null:t.signUpStateService.state.enrichment.logoUrl);o(),S(m&&!t.logoLoadFailed?16:17);let E=w(19,19,t.createNewAccountDisabled$);o(4),s("disabled",E)("wwBackgroundColor",E?"lightGrey":"white")("wwColor",E?"darkerGrey":"black"),o(4),s("wwColor","darkerGrey")("wwTypography","body2"),o(),Ie(" ",w(26,21,t.createNewAccountLabel$)," "),o(2),s("wwBackgroundColor","lightGrey"),o(),s("icon","bx-plus")("size","x-large")("wwColor",E?"darkerGrey":"black"),o(),s("withBackgroundBubbles",!0)}},dependencies:[M,U,O,Ti,x,$,W,y,Pt,ne,z,bt,L],styles:[`.ww-sign-up-account-found-icon{display:flex;align-items:center;justify-content:center;min-height:80px;min-width:80px;max-height:80px;max-width:80px;border-radius:8px;padding:8px}.ww-sign-up-account-found-company-logo{height:100%;object-fit:contain;width:100%} 6/*noopsign-up-account-found.component-TM4GVL3T.css.map */ 7`],encapsulation:2,changeDetection:0})}}return i})();var Je=[{min:1,max:10,value:5},{min:10,max:50,value:30},{min:51,max:100,value:80},{min:101,max:500,value:300},{min:501,max:1e3,value:750},{min:1e3,value:2e3}],rn={ANIMAL:"bxs-dog",APP:"bxs-mobile",AUTOMOTIVE:"bxs-car",BAR:"bxs-wine",CAFE:"bxs-coffee",DENTAL:"bx-tooth",DOCTOR:"bxs-first-aid",FINANCE:"bxs-dollar-circle",ENTERTAINMENT:"bxs-movie",EVENT:"bxs-calendar-event",GOVERNMENT:"bxs-bank",HAIRDRESSER:"bx-cut",HEALTH:"bxs-heart",INDIVIDUAL:"bxs-user",IT:"bxs-chip",LEGAL:"bx-gavel",LODGING:"bxs-hotel",LOGISTICS:"bxs-truck",OTHER:"bxs-category",PHARMACY:"bxs-capsule","REAL-ESTATE":"bxs-building-house",RENTAL:"bxs-key",RESTAURANT:"bxs-bowl-hot",RETAIL:"bxs-store",SALON:"bxs-face",SCHOOL:"bxs-graduation",SPA:"bxs-spa",TRAVEL:"bxs-plane-alt"};function qn(i,l){i&1&&(a(0,"p"),u(1,3),r())}function Qn(i,l){i&1&&(a(0,"p"),u(1,4),r())}function Kn(i,l){if(i&1){let e=q();a(0,"ww-input",13),h("focusout",function(){j(e);let t=I();return J(t.setInitialShortName())}),r(),_(1,"ww-input",14),a(2,"div",15),_(3,"ww-business-type-select",16)(4,"ww-select",17),r(),_(5,"ww-country-select",16)}if(i&2){let e=I();s("label",e.businessNameLabel)("formControlName","businessName")("autoFocus",!e.breakpoints.isTouch)("size","full"),o(),s("label",e.shortNameLabel)("readonly",e.
7shortNameReadonly)("formControlName","shortName")("prefixComponent","waitwhile.com/welcome/")("size","full"),o(2),s("label",e.businessTypeLabel)("formControlName","businessType")("size","full"),o(),s("label",e.locationCountLabel)("data",e.locationCounterIntervals)("pluckLabel",e.pluckLocationCountIntervalLabel)("formControlName","locationCount")("size","full"),o(),s("label",e.countryLabel)("formControlName","country")("size","full")}}function Zn(i,l){if(i&1&&(_(0,"ww-skeleton-form-field",18)(1,"ww-skeleton-form-field",19),a(2,"div",15),_(3,"ww-skeleton-form-field",18)(4,"ww-skeleton-form-field",18),r(),_(5,"ww-skeleton-form-field",19)),i&2){let e=I();s("label",e.businessNameLabel)("size","full"),o(),s("label",e.shortNameLabel)("size","full"),o(2),s("label",e.businessTypeLabel)("size","full"),o(),s("label",e.locationCountLabel)("size","full"),o(),s("label",e.countryLabel)("size","full")}}function eo(i,l){if(i&1&&(a(0,"div",12)(1,"div",20)(2,"ww-chip",21),_(3,"ww-icon",22),r(),a(4,"ww-chip",21),_(5,"ww-icon",22),r()(),a(6,"div",20)(7,"ww-chip",21),_(8,"ww-icon",22),r(),a(9,"ww-chip",23),g(10,"async"),_(11,"ww-icon",22)(12,"ww-animate-text",24),g(13,"async"),r()(),a(14,"div",20)(15,"ww-chip",25),g(16,"async"),_(17,"ww-animate-text",24),g(18,"async"),r(),_(19,"ww-icon",26),a(20,"ww-chip",27),g(21,"async"),_(22,"ww-icon",22),g(23,"async"),r()(),a(24,"div",20)(25,"ww-chip",21),_(26,"ww-icon",22),r(),a(27,"ww-chip",21),g(28,"async"),_(29,"ww-icon",22)(30,"ww-animate-text",24),g(31,"async"),r(),a(32,"ww-chip",21),_(33,"ww-icon",22),r()(),a(34,"div",20)(35,"ww-chip",21),_(36,"ww-icon",22),r(),a(37,"ww-chip",21),_(38,"ww-icon",22),r(),a(39,"ww-chip",21),_(40,"ww-icon",22),r()()()),i&2){let e=I();o(),B("--column-index",0),o(),B("--row-index",0),s("backgroundColor","primary")("color","white"),o(),s("icon","bxs-heart"),o(),B("--row-index",1),s("backgroundColor","#d3dbff")("color","primary"),o(),s("icon","ww-waitwhile"),o(),B("--column-index",1),o(),B("--row-index",0),s("backgroundColor","#cdffb6")("color","#0d0c68"),o(),s("icon","bxs-heart"),o(),B("--row-index",1),te("ww-sign-up-business-info-animate",w(10,85,e.animateBusinessNameLabel$)),s("color","#0d0c68")("backgroundColor","#d3dbff"),o(2),s("icon","bxs-buildings"),o(),s("content",w(13,87,e.businessNameLabel$)),o(2),B("--column-index",2),o(),B("--row-index",0),te("ww-sign-up-business-info-animate",w(16,89,e.animateCountryLabel$)),s("backgroundColor","primary")("backgroundColor","transparent")("borderColor","white")("color","white"),o(2),s("content",w(18,91,e.countryLabel$)),o(2),B("--row-index",1),s("color","white")("icon","bxs-heart"),o(),B("--row-index",2),te("ww-sign-up-business-info-animate",w(21,93,e.animateBusinessTypeIcon$)),s("backgroundColor","primary"),o(2),s("icon",w(23,95,e.businessTypeIcon$)),o(2),B("--column-index",3),o(),B("--row-index",0),s("backgroundColor","white")("color","#0d0c68"),o(),s("icon","bxs-bell"),o(),B("--row-index",1),te("ww-sign-up-business-info-animate",w(28,97,e.animateLocationCountLabel$)),s("backgroundColor","#d3dbff")("color","#0d0c68"),o(2),s("icon","bxs-map"),o(),s("content",w(31,99,e.locationCountLabel$)),o(2),B("--row-index",2),s("backgroundColor","#cdffb6")("color","#0d0c68"),o(),s("icon","bxs-bolt"),o(),B("--column-index",4),o(),B("--row-index",0),s("backgroundColor","primary")("color","white"),o(),s("icon","ww-waitwhile"),o(),B("--row-index",1),s("backgroundColor","#D3DBFF")("color","primary"),o(),s("icon","bxs-heart"),o(),B("--row-index",2),s("backgroundColor","primary")("color","white"),o(),s("icon","bxs-envelope")}}function io(i,l){i&1&&(a(0,"span"),Q(1,5),a(2,"ww-link",28),h("click",function(n){return n.stopPropagation()}),r(),K(),r()),i&2&&(o(2),s("type","external-in-new-tab")("hideIcon",!0)("inline",!0))}var ln=(()=>{class i extends G{constructor(){super(),this.breakpoints=p(pe),this.signUpService=p(v),this.signUpStateService=p(A),this.accountRx=p(Ge),this.changeDetectorRef=p(Ce),this.commonValidators=p(qt),this.illustration=de.illustration,this.hasSetInitialValue=!1,this.shortNameReadonly=!1,this.formGroup=new St({businessName:new k(this.signUpStateService.state.businessName??"",{nonNullable:!0,validators:[Y.required],updateOn:"blur"}),businessType:new k(this.signUpStateService.state.enrichment?.businessType??void 0,{nonNullable:!0,validators:[Y.required]}),country:new k(this.signUpStateService.state.country,{nonNullable:!0,validators:[Y.required]}),locationCount:new k(null,{validators:[Y.required]}),shortName:new k(this.signUpStateService.state.shortName??"",{nonNullable:!0,updateOn:"blur",asyncValidators:[e=>
7this.commonValidators.shortNameAvailabilityValidator(e)],validators:[Y.required,he.patternWithMessage(vt,$localize`Must contain 3-30 lowercase letters, numbers or hyphens.`)]}),termsOfService:new k(!!this.signUpStateService.state.termsOfService,{nonNullable:!0,validators:[Y.requiredTrue]})}),this.businessNameLabel=$localize`Business name`,this.businessTypeLabel=$localize`Industry`,this.countryLabel=$localize`Country`,this.locationCountLabel=$localize`Number of locations`,this.shortNameLabel=$localize`Choose a public link`,this.locationCounterIntervals=Je,this.animationDelays={},this.pluckLocationCountIntervalLabel=e=>e.max?$localize`${e.min} - ${e.max}`:$localize`More than ${e.min}`,this.value$=ht(this.formGroup),this.businessNameLabel$=this.value$.pipe(f(e=>e.businessName??null)),this.animateBusinessNameLabel$=this.businessNameLabel$.pipe(this.animateChanges()),this.countryLabel$=this.value$.pipe(f(e=>{if(!e.country)return null;let n=di(e.country);return n?n.name:e.country})),this.animateCountryLabel$=this.countryLabel$.pipe(this.animateChanges()),this.locationCountLabel$=this.value$.pipe(f(e=>e.locationCount?this.pluckLocationCountIntervalLabel(e.locationCount):null)),this.animateLocationCountLabel$=this.locationCountLabel$.pipe(this.animateChanges()),this.businessTypeIcon$=this.value$.pipe(f(e=>e.businessType?rn[e.businessType]:null)),this.animateBusinessTypeIcon$=this.businessTypeIcon$.pipe(this.animateChanges()),this.setInitialValue().then(()=>{this.hasSetInitialValue=!0,this.changeDetectorRef.markForCheck()})}continue(){return N(this,null,function*(){this.signUpStateService.update({businessName:this.formGroup.value.businessName,country:this.formGroup.value.country,shortName:this.formGroup.value.shortName,termsOfService:this.formGroup.value.termsOfService,enrichment:Re(Me({},this.signUpStateService.state.enrichment),{businessType:this.formGroup.value.businessType??this.signUpStateService.state.enrichment?.businessType,locations:this.formGroup.value.locationCount?.value??this.signUpStateService.state.enrichment?.locations})}),this.signUpStateService.logGa4Event("lead_identified"),this.signUpService.navigateToNextStep()})}setInitialShortName(){return N(this,null,function*(){if(this.formGroup.value.shortName||!this.formGroup.value.businessName)return;this.shortNameReadonly=!0;let e=yield this.accountRx.createShortName(this.formGroup.value.businessName,4);this.shortNameReadonly=!1,this.changeDetectorRef.markForCheck(),e&&(this.formGroup.controls.shortName.setValue(e),this.formGroup.controls.shortName.markAsTouched(),this.formGroup.controls.shortName.markAsDirty())})}setInitialValue(){return N(this,null,function*(){let e=this.signUpStateService.state,n=e.email;if(!n)return;let t=gi(n);if(!t)return;let c=yield C(this.accountRx.enrich(t));if(!c)return;this.signUpStateService.update({enrichment:c});let m=yield this.getInitialShortName(c.businessName??void 0);this.changeDetectorRef.markForCheck(),this.formGroup.markAsTouched(),this.formGroup.patchValue({businessName:e.businessName??c.businessName??"",businessType:e.enrichment?.businessType??c.businessType??void 0,country:this.getInitialCountry(c),locationCount:this.getInitialLocationCountInterval(e.enrichment?.locations??c.locations??void 0),shortName:m,termsOfService:!!e.termsOfService})})}getInitialLocationCountInterval(e){return e?Je.find(n=>n.max?e>=n.min&&e<=n.max:e>=n.min)||Je[0]:Je[0]}getInitialCountry(e){if(this.signUpStateService.state.country)return this.signUpStateService.state.country;if(e.address?.country?.code)return e.address.country.code}getInitialShortName(e){return N(this,null,function*(){if(this.signUpStateService.state.shortName)return this.signUpStateService.state.shortName;if(e){let n=yield this.accountRx.createShortName(e,4);if(n)return n}return""})}animateChanges(){return e=>e.pipe(Ye(),_e(()=>ei(1e3).pipe(f(()=>!1),ce(!0),Ki(0),ce(!1))))}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-business-info"]],hostAttrs:[1,"ww-sign-up-business-info"],features:[ct([...Jt({shortNameUnavailable:{provide:yt,multi:!0,useValue:e=>e.shortNameUnavailable?e.shortNameUnavailable:null}})]),b],decls:20,vars:13,consts:()=>{let e;e=$localize`Tell us about your business`;let n;n=$localize` Continue `;let t;t=$localize` Based on your email, we think these are your business details. Please change if needed. `;let c;c=$localize` These details will be used to tailor your Waitwhile experience to your business. `;let m;return m=$localize` I accept Waitwhile's ${"\uFFFD#2\uFFFD"}:START_TAG_WW_LINK: Terms of Service ${"\uFFFD/#2\uFFFD"}
7:CLOSE_TAG_WW_LINK:`,[["termsOfServiceLabel",""],e,n,t,c,m,[3,"hidePreviousButton"],["wwForm","",1,"flex","flex-col","gap-6","mt-8",3,"formGroup"],[3,"formControlName","label"],[1,"mt-8"],["wwButton","primary",3,"click","disabled"],[1,"relative",3,"withBackgroundBubbles"],[1,"flex","flex-col","justify-center","items-center","gap-2","max-w-full"],[1,"flex-1",3,"focusout","label","formControlName","autoFocus","size"],[1,"ww-sign-up-business-info-short-name",3,"label","readonly","formControlName","prefixComponent","size"],[1,"flex","gap-6","items-start","below-mobile:gap-6","below-mobile:items-stretch","below-mobile:flex-col"],[1,"flex-1","min-w-0",3,"label","formControlName","size"],[1,"flex-1","min-w-0",3,"label","data","pluckLabel","formControlName","size"],[1,"flex-1",3,"label","size"],[1,"flex-1","min-w-0",3,"label","size"],[1,"ww-sign-up-business-info-row"],[1,"ww-sign-up-business-info-cell",3,"backgroundColor","color"],[3,"icon"],[1,"ww-sign-up-business-info-cell",3,"color","backgroundColor"],[3,"content"],[1,"ww-sign-up-business-info-cell",3,"backgroundColor","borderColor","color"],[1,"ww-sign-up-business-info-cell",3,"color","icon"],[1,"ww-sign-up-business-info-cell",3,"backgroundColor"],["href","https://waitwhile.com/self-serve-plans-terms/",3,"click","type","hideIcon","inline"]]},template:function(n,t){if(n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary",6)(2,"h3"),u(3,1),r(),d(4,qn,2,0,"p"),g(5,"async"),$e(6,Qn,2,0,"p"),a(7,"form",7),d(8,Kn,6,20)(9,Zn,6,10),_(10,"ww-checkbox",8),r(),a(11,"ww-sign-up-page-primary-actions",9)(12,"button",10),h("click",function(){return t.continue()}),u(13,2),r()()(),a(14,"ww-sign-up-page-secondary",11),xe(15),g(16,"async"),d(17,eo,41,101,"div",12),r()(),at(18,io,3,3,"ng-template",null,0,ut)),n&2){let c=li(19);o(),s("hidePreviousButton",!0),o(3),S(w(5,9,t.signUpStateService.hasEnrichment$)?4:6),o(3),s("formGroup",t.formGroup),o(),S(t.hasSetInitialValue?8:9),o(2),s("formControlName","termsOfService")("label",c),o(2),s("disabled",t.formGroup.invalid||!t.formGroup.controls.termsOfService.value),o(2),s("withBackgroundBubbles",!0);let m=w(16,11,t.signUpStateService.state$);o(3),S(m?17:-1)}},dependencies:[M,U,ui,se,_i,wt,gt,hi,Qt,x,oe,$,W,y,Ft,X,Rt,Lt,Dt,wi,z,Te,Ae,xt,Bt,L],styles:[`.ww-sign-up-business-info .ww-sign-up-business-info-short-name .ww-form-field-container{gap:0}.ww-sign-up-business-info .ww-sign-up-business-info-short-name .ww-form-field-prefix{color:var(--ww-color-darkGrey);max-width:100%;min-width:0;overflow:hidden}.ww-sign-up-business-info .ww-label-required label:after{display:none}.ww-sign-up-business-info .ww-sign-up-page-secondary .ww-icon{--ww-icon-size: 28px}.ww-sign-up-business-info .ww-chip{display:flex;align-items:center;justify-content:center;border:1.5px solid;border-radius:6px;min-height:64px;min-width:64px;font-size:18px;padding:16px;border-color:transparent;transform:translate(0) rotate(0);transition:transform 1s linear}.ww-sign-up-business-info-row{display:flex;align-items:center;gap:8px;z-index:10;max-width:100%;animation:bounceY 5s ease-in-out infinite}.ww-sign-up-business-info-cell{display:flex;align-items:center;gap:8px;max-width:100%;animation:bounceX 5s ease-in-out infinite}@keyframes bounceY{0%,to{transform:translateY(0)}40%{transform:translateY(calc(-12px + var(--column-index) * 6px))}}@keyframes bounceX{0%,to{transform:translate(0)}40%{transform:translate(calc(-6px + var(--row-index) * 6px))}} 8/*noopsign-up-business-info.component-YHRUQ4ME.css.map */ 9`],encapsulation:2,changeDetection:0})}}return i})();function to(i,l){if(i&1&&_(0,"iframe",7),i&2){let e=I();s("src",e.calendarUrl,ot)}}var pn=(()=>{class i extends G{constructor(){super(),this.signUpService=p(v),this.signUpStateService=p(A),this.changeDetectorRef=p(Ce),this.domSanitizer=p(dt),this.calendarUrl=this.signUpStateService.state.calendarUrl&&this.domSanitizer.bypassSecurityTrustResourceUrl(this.signUpStateService.state.calendarUrl),this.image=Qe.image,this.continueButtonType="tertiary",this.continueLabel=$localize`Skip and finish`,this.subscribe()}continue(){this.signUpService.navigateToStep(Ve)}previous(){this.signUpService.navigateToStep($i)}subscribe(){Ze(window,"message").pipe(Le(this.ngOnDestroy$)).subscribe(e=>
9{if(!(e.origin==="https://waitwhile.chilipiper.com"))return;let t=$localize`Create account`;e.data.action==="booked"||e.data.action==="booking-confirmed"?(this.signUpStateService.logGa4Event("enterprise_meeting_scheduled"),this.continueLabel=t,this.continueButtonType="primary",this.changeDetectorRef.markForCheck()):e.data.action==="close"&&(this.continueLabel=t,this.continueButtonType="primary",this.changeDetectorRef.markForCheck())})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-chili-piper"]],hostAttrs:[1,"ww-sign-up-chili-piper"],features:[b],decls:19,vars:7,consts:()=>{let e;e=$localize` It looks like ${"\uFFFD0\uFFFD"}:INTERPOLATION: qualifies for Waitwhile for Enterprise. `;let n;n=$localize` We'll connect you with one of our experts to learn about your business and share how others in your industry drive results with Waitwhile. `;let t;t=$localize`Back`;let c;return c=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[e,n,t,c,[1,"ww-sign-up-page-primary-content-width"],[1,"ww-sign-up-page-primary-content-width","mt-2"],[1,"ww-sign-up-chili-piper-iframe-container"],[1,"ww-sign-up-chili-piper-iframe","mt-4",3,"src"],[1,"flex","mt-2","justify-between"],["wwButton","tertiary"],[3,"icon"],[3,"click"],[3,"wwButton"],[1,"ww-sign-up-page-secondary-illustration",3,"image"]]},template:function(n,t){n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary")(2,"h3",4),u(3,0),r(),a(4,"p",5),u(5,1),r(),a(6,"div",6),d(7,to,1,1,"iframe",7),a(8,"ww-sign-up-page-primary-actions",8)(9,"button",9),_(10,"ww-icon",10),a(11,"span",11),h("click",function(){return t.previous()}),u(12,2),r()(),a(13,"button",12)(14,"span",11),h("click",function(){return t.continue()}),u(15,3),r(),_(16,"ww-icon",10),r()()()(),a(17,"ww-sign-up-page-secondary"),_(18,"ww-image",13),r()()),n&2&&(o(3),Z(t.signUpStateService.state.businessName),ee(3),o(4),S(t.calendarUrl?7:-1),o(3),s("icon","bx-chevron-left"),o(3),s("wwButton",t.continueButtonType),o(2),Z(t.continueLabel),ee(15),o(),s("icon","bx-chevron-right"),o(2),s("image",t.image))},dependencies:[U,O,x,oe,$,W,y,X,z,ye],styles:[`.ww-sign-up-chili-piper .ww-sign-up-page-primary-content{max-width:100%}.ww-sign-up-chili-piper-iframe-container{display:flex;flex-direction:column;min-height:400px;max-width:650px;width:100%;height:100%;align-self:center}.ww-sign-up-chili-piper-iframe{width:100%;height:100%} 10/*noopsign-up-chili-piper.component-AV5DIMWX.css.map */ 11`],encapsulation:2,changeDetection:0})}}return i})();var no=["reCaptchaComponent"];function oo(i,l){if(i&1){let e=q();a(0,"re-captcha",8,0),h("resolved",function(t){j(e);let c=I();return J(c.v2recaptchaResolved(t))}),r()}}var _n=(()=>{class i extends G{constructor(){super(),this.coreLocationRx=p(jt),this.createV2Api=p(zt),this.errorHandler=p(Yt),this.firebaseAuth=p(le),this.httpClient=p(mt),this.recaptchaV3Service=p(en),this.router=p(mi),this.sessionRx=p(Xt),this.signUpService=p(v),this.signUpStateService=p(A),this.snackBar=p(Ue),this.updateLocationWrite=p(Vt),this.recaptchaVersionSub=new Ui("v3"),this.recaptchaV2TokenSub=new Ui(null),this.recaptchaToken$=this.recaptchaVersionSub.pipe(_e(e=>e==="v2"?this.recaptchaV2TokenSub.pipe(f(n=>n?{token:n,version:e}:null)):this.recaptchaV3Service.execute(Wt.accountSignup).pipe(f(n=>({token:n,version:e})))),this.shareReplay()),this.withV2Recaptcha$=this.recaptchaVersionSub.pipe(f(e=>e==="v2"),this.shareReplay()),this.createAccount()}v2recaptchaResolved(e){this.recaptchaV2TokenSub.next(e)}createAccount(e=1){return N(this,null,function*(){let n=yield C(this.recaptchaToken$.pipe(H(bi))),t=yield this.signUpStateToCreateAccountPayload(this.signUpStateService.state,n.token,this.recaptchaVersionSub.value);if(t){try{yield C(this.createV2Api.post(t,{},(c,m,E)=>this.httpClient.post(m,E,{headers:Tt(c,["Authorization"])})))}catch(c){let m=c.error;if(this.errorHandler.logError(c),e<=0){let E=He(m)?$localize`There was an error creating your account: ${c.message}.`:$localize`There was an error creating your account. Please try again.`;this.snackBar.open({message:E}),this.signUpService.navigateToStep(F);return}if(He(m)){if(this.recaptchaVersionSub.value==="v3"&&m.statusCode===Fi.Forbidden){this.snackBar.open({message:$localize`Additional verification is required. Please complete the recaptcha flow below.`}),this.recaptchaVersionSub.next("v2"),yield this.createAccount(1);return}if(this.recaptchaVersionSub.value==="v2"&&m.statusCode===Fi.Forbidden){this.snackBar.open({message:$localize`The recaptcha verification failed. Please try again.`}),this.recaptchaV2TokenSub.value&&this.recaptchaV2TokenSub.next(null),this.reCaptchaComponent&&this.reCaptchaComponent.reset(),yield this.createAccount(1);return}if(m.statusCode===400&&m.validation?.keys.some(E=>E.includes("potential.enrichment"))){this.signUpStateService.update({enrichment:{}}),yield this.createAccount(e-1);return}}this.createAccount(0);return}yield C(this.sessionRx.isValidSession$.pipe(H(c=>c))),this.updateInitialLocation(),this.signUpStateService.reset(),this.router.navigate(["/visits"]),this.signUpStateService.logGa4Event("signup")}})}signUpStateToCreateAccountPayload(e,n,t){return N(this,null,function*(){let c=yield C(this.firebaseAuth.uninitializedUser$);if(!c)return this.snackBar.open({message:$localize`There was an error creating your account. Please try again.`}),this.signUpService.navigateToStep(F),null;let m=e.country?di(e.country):void 0,E=`${t}:${n}`;return{address:{country:{code:m?.cca2,name:m?.name}},businessName:e.businessName??"",businessType:e.enrichment?.businessType??void 0,name:e.name,recaptcha:E,short
11Name:e.shortName,userId:c.uid,useTemplateLocation:!0,potential:{enrichment:Re(Me({},e.enrichment),{companyStatusDate:e.enrichment?.companyStatusDate?new Date(e.enrichment.companyStatusDate):void 0,created:e.enrichment?.created?new Date(e.enrichment.created):void 0,updated:e.enrichment?.updated?new Date(e.enrichment.updated):void 0}),goals:e.goals,isIcp:e.isIcp,useCases:e.useCases}}})}updateInitialLocation(){return N(this,null,function*(){let e=yield C(this.coreLocationRx.nullableLocationId$.pipe(H(bi)));this.updateLocationWrite.muted=!0,this.updateLocationWrite.payload.next({locationId:e,updates:{isBookingActive:!this.signUpStateService.state.useCases||this.signUpStateService.state.useCases.includes("APPOINTMENT-SCHEDULING"),isWaitlistActive:!this.signUpStateService.state.useCases||this.signUpStateService.state.useCases.includes("QUEUE-MANAGEMENT")}}),yield C(this.updateLocationWrite.response$),this.updateLocationWrite.muted=!1})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-create-account"]],viewQuery:function(n,t){if(n&1&&ai(no,5),n&2){let c;ri(c=si())&&(t.reCaptchaComponent=c.first)}},hostAttrs:[1,"ww-sign-up-create-account"],features:[b],decls:10,vars:6,consts:()=>{let e;e=$localize`Your account is being created!`;let n;return n=$localize` We are putting the final touches on your new account. This will not take more than a few seconds. `,[["reCaptchaComponent",""],e,n,[3,"hidePreviousButton"],[1,"flex","flex-col","text-center"],[1,"self-center",3,"icon","sizeStyle"],[1,"mt-24"],[1,"mt-8","self-center"],[1,"mt-8","self-center",3,"resolved"]]},template:function(n,t){n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary",3)(2,"div",4),_(3,"ww-icon",5),a(4,"h3",6),u(5,1),r(),a(6,"p"),u(7,2),r(),d(8,oo,2,0,"re-captcha",7),g(9,"async"),r()()()),n&2&&(o(),s("hidePreviousButton",!0),o(2),s("icon","ww-waitwhile-loader")("sizeStyle","200px"),o(5),S(w(9,4,t.withV2Recaptcha$)?8:-1))},dependencies:[M,U,Zt,Kt,tn,O,x,$,y,z,L],encapsulation:2,changeDetection:0})}}return i})();function ro(i,l){if(i&1&&(a(0,"ww-info-bubble",7),Ne(1),r()),i&2){let e=I();s("color","warning"),o(),Ie(" ",e.firebaseAuthErrorMessage," ")}}function so(i,l){i&1&&_(0,"mat-spinner",10),i&2&&s("diameter",16)}function lo(i,l){i&1&&(a(0,"span"),u(1,2),r())}var dn=(()=>{class i extends G{constructor(){super(...arguments),this.breakpoints=p(pe),this.changeDetectorRef=p(Ce),this.firebaseAuth=p(le),this.signUpService=p(v),this.signUpStateService=p(A),this.verifyEmailWrite=p(We),this.firebaseAuthErrorMessage=null,this.loading=!1,this.image=Ke.image,this.nameFormControl=new k(this.signUpStateService.state.name??"",{nonNullable:!0,validators:[Y.required]}),this.passwordFormControl=new k("",{nonNullable:!0,validators:[Y.required,he.password]})}continue(){return N(this,null,function*(){if(this.signUpStateService.update({name:this.nameFormControl.value}),!this.passwordFormControl.valid||!this.signUpStateService.state.email)return;this.loading=!0;let e;try{e=yield this.firebaseAuth.signUpWithEmailAndPassword(this.signUpStateService.state.email,this.passwordFormControl.value)}catch(n){try{n&&n.code==="auth/email-already-in-use"?e=yield this.firebaseAuth.signInWithEmailAndPassword(this.signUpStateService.state.email,this.passwordFormControl.value):(this.firebaseAuthErrorMessage=this.firebaseAuth.formatAuthenticationError(n)??null,this.changeDetectorRef.markForCheck())}catch(t){this.signUpService.navigateToStep(Pe);return}}finally{this.loading=!1,this.changeDetectorRef.markForCheck()}if(!e){this.signUpService.navigateToStep(Pe);return}this.verifyEmailWrite.payload.next({userId:e.user.uid,continueUrl:this.signUpService.emailVerificationRedirectUrl}),yield C(this.signUpStateService.isEmailSignedIn$.pipe(H(n=>n))),this.signUpService.navigateToStep(Se)})}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=ie(i)))(t||i)}})()}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-email"]],hostAttrs:[1,"ww-sign-up-email"],features:[b],decls:17,vars:8,consts:()=>{let e;e=$localize`Full name`;let n;n=$localize`Enter name`;let t;t=$localize`Create password`;let c;c=$localize`Enter password`;let m;m=$localize`Let's get your account created!`;let E;E=$localize` We'll start with the basics â add your name and choose a password. `;let R;return R=$localize`Continue`,[m,E,R,["wwForm",""],[1,"flex","flex-col","gap-6","mt-8"],["label",e,"placeholder",n,3,"formControl","autoF
11ocus"],["label",t,"placeholder",c,3,"formControl","type"],[3,"color"],[1,"mt-8"],["wwButton","primary",3,"click","disabled"],[3,"diameter"],[1,"ww-sign-up-page-secondary-image",3,"image"]]},template:function(n,t){n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary")(2,"h3"),u(3,0),r(),a(4,"p"),u(5,1),r(),a(6,"form",3)(7,"div",4),_(8,"ww-input",5)(9,"ww-password",6),d(10,ro,2,2,"ww-info-bubble",7),r(),a(11,"ww-sign-up-page-primary-actions",8)(12,"button",9),h("click",function(){return t.continue()}),d(13,so,1,1,"mat-spinner",10)(14,lo,2,0,"span"),r()()()(),a(15,"ww-sign-up-page-secondary"),_(16,"ww-image",11),r()()),n&2&&(o(8),s("formControl",t.nameFormControl)("autoFocus",!t.breakpoints.isTouch),o(),s("formControl",t.passwordFormControl)("type","new-password"),o(),S(t.firebaseAuthErrorMessage?10:-1),o(2),s("disabled",t.loading),o(),S(t.loading?13:14),o(3),s("image",t.image))},dependencies:[U,ui,se,_i,ue,O,x,$,W,oe,y,De,X,wi,ye,Be,Te,Ci],encapsulation:2,changeDetection:0})}}return i})();function po(i,l){if(i&1){let e=q();a(0,"h3"),u(1,0),r(),a(2,"p"),u(3,1),r(),a(4,"ww-sign-up-page-primary-actions",9)(5,"button",10),h("click",function(){j(e);let t=I();return J(t.continue())}),a(6,"span"),u(7,2),r()()()}}function co(i,l){i&1&&(a(0,"h3"),u(1,3),r(),a(2,"p"),u(3,4),r())}function _o(i,l){i&1&&(a(0,"span"),Ne(1),r()),i&2&&(o(),Ie("(",l,")"))}function uo(i,l){if(i&1){let e=q();a(0,"h3"),u(1,5),r(),a(2,"p"),Q(3,6),_(4,"b"),K(),r(),a(5,"ww-sign-up-page-primary-actions",9)(6,"button",11),g(7,"async"),h("click",function(){j(e);let t=I();return J(t.resend())}),a(8,"span"),u(9,7),r(),d(10,_o,2,1,"span"),g(11,"async"),r()()}if(i&2){let e,n=I();o(4),Z(n.email),ee(3),o(2),s("disabled",w(7,3,n.resendDisabled$)),o(4),S((e=w(11,5,n.resendDisabledFor$))?10:-1,e)}}var Sn=(()=>{class i extends G{constructor(){super(),this.firebaseAuth=p(le),this.route=p(Et),this.signUpService=p(v),this.signUpStateService=p(A),this.snackBar=p(Ue),this.verifyEmailWrite=p(We),this.email=this.signUpStateService.get().email,this.illustration=Se.illustration,this.state=tt("waiting"),this.polledIsEmailVerified$=ii(Ji(5e3),Ze(document,"visibilitychange")).pipe(ce(null),Qi(0),_e(()=>this.firebaseAuth.uninitializedUser$.pipe(Ai(1))),_e(n=>n?Hi(n.reload()).pipe(f(()=>n)):Yi),f(n=>n.emailVerified),H(n=>n)),this.resendDisabledFor$=this.verifyEmailWrite.throttleTimeRemaining$.pipe(f(n=>n>0?Math.ceil(n/1e3):null),ce(null)),this.resendDisabled$=this.verifyEmailWrite.throttleTimeRemaining$.pipe(f(n=>n>0),ce(!1));let e=this.route.snapshot.queryParams.oobCode;e?this.applyActionCode(e):this.subscribe()}resend(){this.verifyEmailWrite.payload.next({continueUrl:this.signUpService.emailVerificationRedirectUrl})}continue(){this.signUpService.navigateAfterEmailVerification()}applyActionCode(e){return N(this,null,function*(){this.state.set("verifying");try{yield this.firebaseAuth.applyActionCode(e),this.state.set("verified")}catch(n){this.state.set("waiting"),this.snackBar.open({message:$localize`Failed to verify email`}),this.subscribe()}})}subscribe(){this.polledIsEmailVerified$.pipe(Ai(1),Le(this.ngOnDestroy$)).subscribe(()=>{this.signUpService.navigateAfterEmailVerification()})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-email-verify"]],hostAttrs:[1,"ww-sign-up-email-verify"],features:[b],decls:7,vars:2,consts:()=>{let e;e=$localize`Your email has been verified`;let n;n=$localize` Your email has been successfully verified. You can now continue to the next step. `;let t;t=$localize`Continue`;
11let c;c=$localize`Verifying your email`;let m;m=$localize`Please wait while we verify your email address.`;let E;E=$localize`Verify your email`;let R;R=$localize` Security is really important to us. Please check ${"\uFFFD#4\uFFFD"}:START_BOLD_TEXT:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#4\uFFFD"}:CLOSE_BOLD_TEXT: to verify your account and continue. `;let P;return P=$localize`Resend verification email`,[e,n,t,c,m,E,R,P,[1,"ww-sign-up-page-secondary-illustration",3,"icon"],[1,"mt-8"],["wwButton","",3,"click"],["wwButton","secondary",3,"click","disabled"]]},template:function(n,t){n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary"),d(2,po,8,0)(3,co,4,0)(4,uo,12,7),r(),a(5,"ww-sign-up-page-secondary"),_(6,"ww-illustration",8),r()()),n&2&&(o(2),S(t.state()==="verified"?2:t.state()==="verifying"?3:4),o(4),s("icon",t.illustration))},dependencies:[M,U,O,x,oe,$,W,y,X,Ei,L],encapsulation:2,changeDetection:0})}}return i})();var gn={"REDUCE-WAIT-TIMES":"bx-hourglass","REDUCE-NO-SHOWS":"bx-calendar-x","IMPROVE-CUSTOMER-SATISFACTION":"bx-smile","IMPROVE-STAFF-SATISFACTION":"bx-like","INCREASE-REVENUE":"bx-dollar-circle","INCREASE-PRODUCTIVITY":"bx-trending-up",OTHER:"ww-sign-up-other"},wn={"REDUCE-WAIT-TIMES":"bxs-hourglass","REDUCE-NO-SHOWS":"bxs-calendar-x","IMPROVE-CUSTOMER-SATISFACTION":"bxs-smile","IMPROVE-STAFF-SATISFACTION":"bxs-like","INCREASE-REVENUE":"bxs-dollar-circle","INCREASE-PRODUCTIVITY":"bx-trending-up",OTHER:"ww-sign-up-other"};var So=(i,l)=>l.goal;function go(i,l){i&1&&_(0,"mat-spinner",11),i&2&&s("diameter",16)}function wo(i,l){i&1&&(a(0,"span"),u(1,3),r())}function fo(i,l){if(i&1&&(a(0,"ww-badge",19),_(1,"ww-icon",20),r()),i&2){let e=I(),n=e.$implicit,t=e.$index;te("ww-sign-up-goals-planet-hidden",n.hidden),s("ngClass","ww-sign-up-goals-planet ww-sign-up-goals-planet-"+t)("wwBackgroundColor","primary")("wwColor","white"),o(),s("icon",n.icon)("sizeStyle","24px")}}function Eo(i,l){if(i&1&&d(0,fo,2,7,"ww-badge",18),i&2){let e=l.$implicit;S(e.goal?0:-1)}}var fn=(()=>{class i extends G{constructor(){super(...arguments),this.signUpService=p(v),this.signUpStateService=p(A),this.goalsFormControl=new k(this.signUpStateService.state.goals??[],{nonNullable:!0,validators:Y.required}),this.loading=!1,this.goals=xi,this.pluckGoalLabel=e=>je({components:[fi({icon:gn[e]}),En[e]??e],$element:{classList:"flex items-center gap-x-3"}}),this.goals$=Si(this.goalsFormControl),this.planets$=this.goals$.pipe(f(e=>xi.filter(n=>n!=="OTHER").map(n=>({goal:n,hidden:!e.includes(n),icon:wn[n],size:"48px"}))),this.shareReplay()),this.hasInnerOrbital$=this.planets$.pipe(f(e=>e.some((n,t)=>!n.hidden&&t%2===0))),this.hasOuterOrbital$=this.planets$.pipe(f(e=>e.some((n,t)=>!n.hidden&&t%2===1)))}continue(){return N(this,null,function*(){this.signUpStateService.update({goals:this.goalsFormControl.value}),this.loading=!0,this.signUpService.navigateToStep(Qe)})}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=ie(i)))(t||i)}})()}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-goals"]],hostAttrs:[1,"ww-sign-up-goals"],features:[b],decls:27,vars:27,consts:()=>{let e;e=$localize`Which business results are you looking to improve?`;let n;n=$localize` Check all the options that apply. This will help set your goals and show real impact from Waitwhile. `;let t;t=$localize` Back `;let c;return c=$localize`Continue`,[e,n,t,c,[1,"mt-8",3,"formControl","data","size","selection","direction","pluckLabel","withCheckboxes","checkboxPosition"],[1,"flex","items-center","gap-2","mt-8"],[1,"flex-1"],["wwButton","tertiary"],[3,"icon"],[3,"click"],["wwButton","primary",1,"flex-1",3,"click","disabled"],[3,"diameter"],[1,"relative",3,"withBackgroundBubbles"],[1,"relative","z-20"],[1,"ww-sign-up-goals-orbital"],[1,"ww-sign-up-goals-orbital","ww-sign-up-goals-orbital-inner"],[1,"rounded-full","ww-sign-up-goals-logo",3,"wwBackgroundColor"],[3,"icon","color","sizeStyle"],[3,"ww-sign-up-goals-planet-hidden","ngClass","wwBackgroundColor","wwColor"],[3,"ngClass","wwBackgroundColor","wwColor"],[3,"icon","sizeStyle"]]},template:function(n,t){n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary")(2,"h3"),u(3,0),r(),a(4,"p"),u(5,1),r(),_(6,"ww-button-toggle-group",4),a(7,"ww-sign-up-page-primary-actions",5)(8,"div",6)(9,"button",7),_(10,"ww-icon",8),a(11,"span",9),h("click",function(){return t.signUpService.navigateToPreviousStep()}),u(12,2),r()()(),a(13,"button",10),h("click",function(){return t.continue()}),d(14,go,1,1,"mat-spinner",11)(15,wo,2,0,"span"),r()()(),a(16,"ww-sign-up-page-secondary",12)(17,"div",13)(18,"div",14),g(19,"async"),a(20,"div",15),g(21,"async"),a(22,"div",16),_(23,"ww-icon",17),r()()(),we(24,Eo,1,1,null,null,So),g(26,"async"),r()()()),n&2&&(o(6),s("formControl",t.goalsFormControl)("data",t.goals)("size","large")("selection","multiple")("direction","vertical")("data",t.goals)("pluckLabel",t.pluckGoalLabel)("withCheckboxes",!0)("checkboxPosition","after"),o(4),s("icon","bx-chevron-left"),o(3),s("disabled",t.loading||t.goalsFormControl.invalid),o(),S(t.loading?14:15),o(2),s("withBackgroun
11dBubbles",!0),o(2),te("ww-sign-up-goals-orbital-visible",w(19,21,t.hasOuterOrbital$)),o(2),te("ww-sign-up-goals-orbital-visible",w(21,23,t.hasInnerOrbital$)),o(2),s("wwBackgroundColor","primary"),o(),s("icon","ww-waitwhile")("color","white")("sizeStyle","5vw"),o(),fe(w(26,25,t.planets$)))},dependencies:[M,ci,U,se,ue,O,x,oe,$,W,y,De,Ni,X,Ii,ne,z,L],styles:[`.ww-sign-up-goals-planet{--ww-badge-size: 40px !important;position:absolute!important;top:calc(50% - 20px);right:calc(50% - 20px);transform-origin:50% 50%;z-index:1;opacity:1;transition:opacity .4s ease-in-out}.ww-sign-up-goals-planet.ww-sign-up-goals-planet-hidden{opacity:0}.ww-sign-up-goals-planet.ww-sign-up-goals-planet-0{animation:orbit0 36s linear infinite}.ww-sign-up-goals-planet.ww-sign-up-goals-planet-1{animation:orbit1 36s linear infinite reverse}.ww-sign-up-goals-planet.ww-sign-up-goals-planet-2{animation:orbit2 36s linear infinite}.ww-sign-up-goals-planet.ww-sign-up-goals-planet-3{animation:orbit3 36s linear infinite reverse}.ww-sign-up-goals-planet.ww-sign-up-goals-planet-4{animation:orbit4 36s linear infinite}.ww-sign-up-goals-planet.ww-sign-up-goals-planet-5{animation:orbit5 36s linear infinite reverse}.ww-sign-up-goals-logo{width:11vw;height:11vw;display:flex;align-items:center;justify-content:center;border:2px solid var(--ww-color-primary-dark)}.ww-sign-up-goals-orbital{padding:3.5vw;position:relative}.ww-sign-up-goals-orbital:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border:2px dashed var(--ww-color-primary);opacity:0;border-radius:100%;animation:spin 36s linear infinite reverse;transition:opacity .4s ease-in-out}.ww-sign-up-goals-orbital.ww-sign-up-goals-orbital-visible:before{opacity:1}.ww-sign-up-goals-orbital.ww-sign-up-goals-orbital-inner:before{animation:spin 36s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes orbit0{0%{transform:rotate(0) translate(9vw) rotate(0)}to{transform:rotate(360deg) translate(9vw) rotate(-360deg)}}@keyframes orbit4{0%{transform:rotate(120deg) translate(9vw) rotate(-120deg)}to{transform:rotate(480deg) translate(9vw) rotate(-480deg)}}@keyframes orbit2{0%{transform:rotate(240deg) translate(9vw) rotate(-240deg)}to{transform:rotate(600deg) translate(9vw) rotate(-600deg)}}@keyframes orbit1{0%{transform:rotate(60deg) translate(12.5vw) rotate(-60deg)}to{transform:rotate(420deg) translate(12.5vw) rotate(-420deg)}}@keyframes orbit3{0%{transform:rotate(180deg) translate(12.5vw) rotate(-180deg)}to{transform:rotate(540deg) translate(12.5vw) rotate(-540deg)}}@keyframes orbit5{0%{transform:rotate(300deg) translate(12.5vw) rotate(-300deg)}to{transform:rotate(660deg) translate(12.5vw) rotate(-660deg)}} 12/*noopsign-up-goals.component-5T4ZXL74.css.map */ 13`],encapsulation:2,changeDetection:0})}}return i})();function No(i,l){if(i&1&&(a(0,"h3"),Q(1,5),_(2,"span"),K(),r()),i&2){let e=I();o(2),Z(e.signUpStateService.state.businessName),ee(1)}}function Io(i,l){i&1&&(a(0,"h3"),u(1,6),r())}function Co(i,l){if(i&1){let e=q();a(0,"p"),Q(1,7),a(2,"ww-link",16),h("click",function(){j(e);let t=I();return J(t.continue())}),r(),K(),r()}
13i&2&&(o(2),s("inline",!0))}var Nn=(()=>{class i extends G{constructor(){super(...arguments),this.signUpService=p(v),this.signUpStateService=p(A),this.illustration=be.illustration,this.showCreateAccountHint$=this.signUpService.orgDisallowsNewAccountsEmailValidationError$.pipe(f(e=>!e))}continue(){this.signUpService.navigateToStep(de)}previous(){this.signUpService.navigateToStep(be)}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=ie(i)))(t||i)}})()}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-join-existing"]],hostAttrs:[1,"ww-sign-up-join-existing"],features:[b],decls:24,vars:11,consts:()=>{let e;e=$localize` To join your team's Waitwhile account, you'll need an invite from an admin. `;let n;n=$localize`Here's what you can do:`;let t;t=$localize` Ask within your company to find who has a Waitwhile account. That person can invite you in. `;let c;c=$localize` Not sure who that is? ${"\uFFFD#15\uFFFD"}:START_TAG_WW_LINK:Chat with support${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_WW_LINK: and we'll try to get the right person. `;let m;m=$localize` Back `;let E;E=$localize` Instructions for how to join the existing Waitwhile account ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN: for ${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let R;R=$localize`Instructions for how to join an existing Waitwhile account`;let P;return P=$localize` If you prefer, you can also proceed to ${"\uFFFD#2\uFFFD"}:START_TAG_WW_LINK:create your own Waitwhile account.${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_WW_LINK:`,[e,n,t,c,m,E,R,P,[1,"flex","flex-col","gap-4"],["wwBackgroundColor","lighterGrey",1,"p-4","flex","flex-col","gap-2",3,"bordered"],[3,"char"],["type","external-in-new-tab",3,"inline","href","hideIcon"],["wwButton","tertiary",1,"mt-8","justify-self-start","w-fit"],[3,"icon"],[3,"click"],[3,"withBackgroundBubbles"],["type","button",3,"click","inline"]]},template:function(n,t){n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary")(2,"div",8),d(3,No,3,1,"h3")(4,Io,2,0,"h3"),a(5,"p"),u(6,0),r(),a(7,"ww-card",9)(8,"h5"),u(9,1),r(),a(10,"ww-bullet-list",10)(11,"ww-bullet-list-item"),u(12,2),r(),a(13,"ww-bullet-list-item"),Q(14,3),_(15,"ww-link",11),K(),r()()(),d(16,Co,3,1,"p"),g(17,"async"),r(),a(18,"button",12),_(19,"ww-icon",13),a(20,"span",14),h("click",function(){return t.previous()}),u(21,4),r()()(),a(22,"ww-sign-up-page-secondary",15),_(23,"ww-sign-up-account-found-illustration"),r()()),n&2&&(o(3),S(t.signUpStateService.state.businessName?3:4),o(4),s("bordered",!1),o(3),s("char","\xB7"),o(5),s("inline",!0)("href","https://www.waitwhile.com/contact")("hideIcon",!0),o(),S(w(17,9,t.showCreateAccountHint$)?16:-1),o(3),s("icon","bx-chevron-left"),o(3),s("withBackgroundBubbles",!0))},dependencies:[M,U,O,Ti,x,$,W,y,Ot,Gt,X,Mt,ne,z,Ae,L],encapsulation:2,changeDetection:0})}}return i})();var To=["emailInput"],Uo=i=>({email:i});function yo(i,l){if(i&1&&(a(0,"ww-info-bubble",18),Q(1,6),a(2,"span"),_(3,"a",26),r(),K(),r()),i&2){let e=I();s("color","primary"),o(3),s("routerLink","/login")("queryParams",_t(4,Uo,e.signUpStateService.state.email)),Z(e.signUpStateService.state.email),ee(1)}}function Ao(i,l){i&1&&(a(0,"ww-info-bubble",18),u(1,7),r()),i&2&&s("color","alert")}function vo(i,l){i&1&&(a(0,"ww-info-bubble",18),u(1,8),r()),i&2&&s("color","success")}function Fo(i,l){if(i&1){let e=q();a(0,"ww-info-bubble",18)(1,"span"),Q(2,9),a(3,"a",27),h("click",function(){j(e);let t=I(2);return J(t.sendInviteLink())}),r(),K(),r()()}if(i&2){let e=I();s("color","warning"),o(3),Z(e.contact),ee(2)}}function bo(i,l){if(i&1&&d(0,vo,2,1,"ww-info-bubble",18)(1,Fo,4,2,"ww-info-bubble",18),i&2){let e=I();S(e.inviteLinkSent?0:1)}}function Oo(i,l){i&1&&(a(0,"ww-info-bubble",18),u(1,10),r()),i&2&&s("color","warning")}function Go(i,l){i&1&&(a(0,"span"),u(1,11),r())}function Po(i,l){i&1&&(a(0,"span"),Q(1,12),_(2,"ww-link",28),K(),r()),i&2&&(o(2),s("inline",!0)("href","https://www.waitwhile.com/contact")("hideIcon",!0))}function Mo(i,l){i&1&&(a(0,"ww-info-bubble",18),d(1,Go,2,0,"span")(2,Po,3,3,"span"),r()),i&2&&(s("color","warning"),o(),S(l.hasGoogleProvider?1:2))}function Ro(i,l){i&1&&_(0,"mat-spinner",20),i&2&&s("diameter",16)}function Lo(i,l){i&1&&(a(0,"span"),u(1,13),r())}var In=(()=>{class i extends G{constructor(){super(),this.emailInput=null,this.breakpoints=p(pe),this.signUpService=p(v),this.signUpStateService=p(A),this.changeDetectorRef=p(Ce),this.firebaseAuth=p(le),this.inviteRx=p(kt),this.snackBar=p(Ue),this.verifyEmailWrite=p(We),this.signingUpEmail=!1,this.image=F.image,this.snackBarRef=null,this.emailFormControl=new k(this.signUpStateService.state.email??"",{nonNullable:!0,updateOn:"blur",validators:[Y.required,he.emailWithDomain]}
13),this.inviteLinkSent=!1,this.signOutExistingUser(),this.subscribe()}sendInviteLink(){this.emailFormControl.valid&&(this.inviteLinkSent=!0,this.inviteRx.resendInvite(this.emailFormControl.value))}signUpEmail(){return N(this,null,function*(){if(this.emailFormControl.invalid){this.breakpoints.isTouch||this.emailInput?.focus();return}this.signingUpEmail=!0,this.signUpStateService.update({email:this.emailFormControl.value,providerId:"password"}),yield C(this.signUpService.emailValidationLoading$.pipe(H(n=>!n)));let e=yield C(this.signUpService.emailValidation$);if(this.signingUpEmail=!1,this.changeDetectorRef.markForCheck(),!e.valid){e.serverMessage&&(this.snackBarRef=this.snackBar.open({message:e.serverMessage})),this.breakpoints.isTouch||this.emailInput?.focus();return}this.snackBarRef&&this.snackBarRef.dismiss(),this.signUpService.navigateToStep(Ke)})}signUpWithGoogle(){return N(this,null,function*(){this.emailFormControl.markAsPristine();let e=yield this.firebaseAuth.signInWithGoogle();if(!e){this.snackBarRef=this.snackBar.open({message:$localize`Google sign in was not completed`});return}let n=e.user.email;if(!n){this.snackBarRef=this.snackBar.open({message:$localize`Could not read email address from Google sign in`});return}this.signUpStateService.update({email:n,providerId:"google.com",name:e.user.displayName??""}),this.emailFormControl.setValue(n),this.emailFormControl.markAsDirty();let t=yield C(this.signUpService.emailValidation$);if(!t.valid){t.serverMessage&&(this.snackBarRef=this.snackBar.open({message:t.serverMessage}));return}e.user.emailVerified||this.verifyEmailWrite.payload.next({continueUrl:this.signUpService.emailVerificationRedirectUrl}),this.signUpService.navigateToStep(Se)})}signOutExistingUser(){this.firebaseAuth.signOut()}subscribe(){this.emailFormControl.valueChanges.pipe(Le(this.ngOnDestroy$)).subscribe(e=>{this.emailFormControl.valid&&this.signUpStateService.update({email:e})})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-landing"]],viewQuery:function(n,t){if(n&1&&ai(To,5),n&2){let c;ri(c=si())&&(t.emailInput=c.first)}},hostAttrs:[1,"ww-sign-up-landing"],features:[b],decls:33,vars:24,consts:()=>{let e;e=$localize`Work or SSO email`;let n;n=$localize`Log in`;let t;t=$localize`Get started with Waitwhile`;let c;c=$localize` The modern way to manage queues and appointments - trusted by 50k business locations worldwide. Try it free. No credit card needed. `;let m;m=$localize`Sign up with Google for work`;let E;E=$localize` Already have an account? ${"\uFFFD#30\uFFFD"}:START_TAG_WW_LINK:${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_WW_LINK:`;let R;R=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPAN: ${"\uFFFD0\uFFFD"}:INTERPOLATION: is already registered with Waitwhile. Did you mean to ${"\uFFFD#3\uFFFD"}:START_LINK:log in${"\uFFFD/#3\uFFFD"}:CLOSE_LINK:? ${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let P;P=$localize` An account with your email already exists using Single Sign-On (SSO). Please use your SSO provider to log in. `;let D;D=$localize` Invite link sent! `;let Xe;Xe=$localize` Your email is already invited to a Waitwhile account. ${"\uFFFD#3\uFFFD"}:START_LINK:Send yourself a new invite link${"\uFFFD/#3\uFFFD"}:CLOSE_LINK: or reach out to your account administrator ${"\uFFFD0\uFFFD"}:INTERPOLATION: for help. `;let ze;ze=$localize` Use your work email with Waitwhile. It will make it easier for your colleagues to collaborate. `;let ae;ae=$localize` Please use the "Sign up with Google for work" button to log in. `;let Xi;Xi=$localize`Unable to sign up with your email. Please ${"\uFFFD#2\uFFFD"}:START_TAG_WW_LINK:contact support${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_WW_LINK: for assistance.`;let zi;return zi=$localize`Sign up`,[["emailInput",""],["signUpButton",""],t,c,m,E,R,P,D,Xe,ze,ae,Xi,zi,[1,"!mt-10"],[1,"mt-1"],[1,"mt-8","flex","gap-6","flex-col"],["label",e,3,"keydown.enter","formControl","autoFocus"],[3,"color"],["wwButton","primary","type","button",3,"click","disabled"],[3,"diameter"],["wwButton","secondary","type","button",3,"click"],["icon","bxl-google"],["content",n,"href","/login",3,"type","inline"],[3,"withBrands","disableAnimation"],[1,"ww-sign-up-page-secondary-image",3,"image"],[3,"routerLink","queryParams"],[3,"click"],["type","external-in-new-tab",3,"inline","href","hideIcon"]]},template:function(n,t){if(n&1){let c=q();a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary")(2,"h3",14),u(3,2),r(),a(4,"p",15),u(5,3),r(),a(6,"div",16)(7,"ww-input",17,0
13),h("keydown.enter",function(){return j(c),li(20).focus(),J(t.signUpEmail())}),r(),d(9,yo,4,6,"ww-info-bubble",18),g(10,"async"),d(11,Ao,2,1,"ww-info-bubble",18),g(12,"async"),d(13,bo,2,1),g(14,"async"),d(15,Oo,2,1,"ww-info-bubble",18),g(16,"async"),d(17,Mo,3,2,"ww-info-bubble",18),g(18,"async"),a(19,"button",19,1),h("click",function(){return t.signUpEmail()}),d(21,Ro,1,1,"mat-spinner",20)(22,Lo,2,0,"span"),r(),_(23,"ww-section-divider"),a(24,"button",21),h("click",function(){return t.signUpWithGoogle()}),_(25,"ww-icon",22),a(26,"span"),u(27,4),r()(),a(28,"p"),Q(29,5),_(30,"ww-link",23),K(),r()()(),a(31,"ww-sign-up-page-secondary",24),_(32,"ww-image",25),r()()}if(n&2){let c,m;o(7),s("formControl",t.emailFormControl)("autoFocus",!t.breakpoints.isTouch),o(2),S(w(10,14,t.signUpService.existingEmailValidationError$)?9:-1),o(2),S(w(12,16,t.signUpService.ssoAccountExistsEmailValidationError$)?11:-1),o(2),S((c=w(14,18,t.signUpService.invitedEmailValidationError$))?13:-1,c),o(2),S(w(16,20,t.signUpService.emailNotAllowedValidationError$)?15:-1),o(2),S((m=w(18,22,t.signUpService.providerExistsValidationError$))?17:-1,m),o(2),s("disabled",t.signingUpEmail),o(2),S(t.signingUpEmail?21:22),o(9),s("type","router-link")("inline",!0),o(),s("withBrands",!0)("disableAnimation",!0),o(),s("image",t.image)}},dependencies:[M,x,$,W,U,se,ue,O,It,y,De,X,z,ye,Be,Te,Ae,$t,L],encapsulation:2,changeDetection:0})}}return i})();function $o(i,l){i&1&&(a(0,"p"),u(1,3),r())}function xo(i,l){i&1&&(a(0,"p"),Q(1,5),_(2,"strong"),K(),r()),i&2&&(o(2),Z(l),ee(1))}function Do(i,l){i&1&&(a(0,"p"),u(1,6),r())}function Bo(i,l){if(i&1&&(d(0,xo,3,1,"p"),g(1,"async"),$e(2,Do,2,0,"p"),a(3,"p",17),u(4,4),r()),i&2){let e,n=I();S((e=w(1,1,n.firebaseAuth.email$))?0:2,e)}}function Wo(i,l){if(i&1&&_(0,"ww-password",10),i&2){let e=I();s("formControl",e.passwordFormControl)("type","new-password")}}function ko(i,l){if(i&1){let e=q();a(0,"button",18),h("click",function(){j(e);let t=I();return J(t.resetPassword())}),u(1,7),r()}}var Cn=(()=>{class i extends G{constructor(){super(...arguments),this.firebaseAuth=p(le),this.snackBar=p(Ue),this.signUpService=p(v),this.signUpStateService=p(A),this.image=Pe.image,this.nameFormControl=new k(this.signUpStateService.state.name??"",{nonNullable:!0,validators:[Y.required]}),this.passwordFormControl=new k("",{nonNullable:!0,validators:[Y.required,he.password]})}continue(){return N(this,null,function*(){if(this.signUpStateService.update({name:this.nameFormControl.value}),yield C(this.signUpStateService.isEmailSignedIn$)){this.signUpService.navigateToStep(Se);return}if(!(!this.passwordFormControl.valid||!this.signUpStateService.state.email))try{yield this.firebaseAuth.signInWithEmailAndPassword(this.signUpStateService.state.email,this.passwordFormControl.value),yield C(this.signUpStateService.isEmailSignedIn$.pipe(H(n=>n))),this.signUpService.navigateToStep(Se)}catch(n){this.firebaseAuth.notifyAuthenticationError($localize`Could not sign in`,n)}})}startOver(){return N(this,null,function*(){yield this.firebaseAuth.signOut(),this.signUpService.navigateToStep(F)})}resetPassword(){return N(this,null,function*(){if(this.signUpStateService.state.email)try{yield this.firebaseAuth.sendPasswordResetEmail(this.signUpStateService.state.email),this.snackBar.open({message:$localize`Password reset email sent to ${this.signUpStateService.state.email}`})}catch(e){this.firebaseAuth.notifyAuthenticationError($localize`Could not send password reset email`,e)}})}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=ie(i)))(t||i)}})()}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-ongoing-found"]],hostAttrs:[1,"ww-sign-up-ongoing-found"],features:[b],decls:21,vars:14,consts:()=>{let e;e=$localize`Full name`;let n;n=$localize`Enter name`;let t;t=$localize`Enter password`;let c;c=$localize`Ongoing signup found`;let m;m=$localize` Start over `;let E;E=$localize` Continue `;let R;R=$localize`Enter the previous password to resume where you left off.`;let P;P=$localize` You can continue where you left off or start over with a new account. `;let D;D=$localize` An ongoing signup was found for ${"\uFFFD#2\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_STRONG:. `;let Xe;Xe=$localize`We found an ongoing sign up for this email address.`;let ze;return ze=$localize` Reset password `,[c,m,E,R,P,D,Xe,ze,[1,"flex","flex-col","gap-6","mt-8"],["label",e,"placeholder",n,3,"formControl"],["placeholder",t,3,"formControl","type"],[1,"flex","gap-2","mt-8"],["wwButton","secondary",1,"flex-1",3,"click"],["wwButton","secondary"],["wwButton","primary",1,"flex-1",3,"click"],[1,"relative"],[1,"ww-sign-up-page-secondary-image",3,"image"],[1,"mt-2"],["wwButton","secondary",3,"click"]]},template:function(n,t){n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary")(2,"h3"),u(3,0),r(),d(4,$o,2,0,"p"),g(5,"async"),d(6,Bo,5,3),g(7,"async"),a(8,"div",8),_(9,"ww-input",9),d(10,Wo,1,2,"ww-password",10),g(11,"async"),r(),a(12,"ww-sign-up-page-primary-actions",11)(13,"button",12),h("click",function(){return t.startOver()}),u(14,1),r(),d(15,ko,2,0,"button",13),g(16,"async"),a(17,"button",14),h("click",function(){return t.continue()}),u(18,2),r()()(),a(19,"ww-sign-up-page-secondary",15),_(20,"ww-image",16),r()()),n&2&&(o(4),S(w(5,6,t.signUpStateService.isEmailSignedOut$)?4:-1),o(2),S(w(7,8,t.signUpStateService.isEmailSignedIn$)?6:-1),o(3),s("formControl",t.nameFormControl),o(),S(w(11,10,t.signUpStateService.isEmailSignedOut$)?10:-1),o(5),S(w(16,12,t.signUpStateService.isEmailSignedOut$)?15:-1),o(5),s("image",t.image))},dependencies:[M,U,se,ue,O,x,oe,$,W,y,X,ye,Te,Ci,L],encapsulation:2,changeDetection:0})}}return i})();var Di={"QUEUE-MANAGEMENT":"bx-group","APPOINTMENT-SCHEDULING":"bx-calendar",EVENTS:"bx-balloon","PRODUCT-DROPS":"bx-calendar-star","CAPTURE-CUSTOMER-DATA":"bx-user-plus",OTHER:"ww-sign-up-other"},hn=800,Bi=220,Wi=36;var Vo=(i,l)=>l.useCase;function Xo(i,l){i&1&&(a(0,"ww-info-bubble",6),Ne(1),r()),i&2&&(s("color","alert"),o(),Ie(" ",l," "))}function zo(i,l){if(i&1&&(a(0,"div",16),g(1,"async"),a(2,"div",17),_(3,"ww-icon",18),r()()),i&2){let e=l.$implicit,n=l.$index,t=I();B("--bubble-index",n)("--bubble-size",e.size)("left",e.position==null?null:e.position.left,"px")("bottom",e.position==null?null:e.position.bottom,"px"),te("ww-sign-up-use-cases-bubble-swapping",w(1,19,t.swapping$))("ww-sign-up-use-cases-bubble-hidden",e.hidden),s("wwBackgroun
13dColor","primary"),oi("data-bubble-index",e.stateIndex),o(3),te("ww-sign-up-use-cases-bubble-reversed",e.reversed),s("icon",e.icon)("wwColor","white")("sizeStyle","calc(var(--bubble-size) / 3)")}}var Tn=(()=>{class i extends G{constructor(){super(...arguments),this.signUpService=p(v),this.signUpStateService=p(A),this.useCasesFormControl=new k(this.signUpStateService.state.useCases??["QUEUE-MANAGEMENT","APPOINTMENT-SCHEDULING"],{nonNullable:!0}),this.illustration=Vi.illustration,this.useCases=ki,this.pluckUseCaseLabel=e=>je({components:[fi({icon:Di[e]}),je({components:[Gi({content:Un[e]??e,$element:{typography:"h5"}}),Gi({content:yn[e]??e,$element:{typography:"caption1",color:"darkerGrey"}})],$element:{classList:"flex flex-col"}})],$element:{classList:"flex items-center gap-x-3"}}),this.useCases$=Si(this.useCasesFormControl),this.useCasesWarning$=this.useCases$.pipe(f(e=>e.length===1&&e[0]==="PRODUCT-DROPS"?$localize`Waitwhile is not the right solution for a pre-launch waitlist. We recommend getwaitlist.com.`:null),this.shareReplay()),this.continueDisabled$=this.useCasesWarning$.pipe(f(e=>e!==null)),this.bubbles$=this.useCases$.pipe(f(e=>e.filter(n=>n!=="OTHER")),f(e=>{let n=Bi-Wi*e.length;return ki.filter(t=>t!=="OTHER").map(t=>{let c=e.indexOf(t),m=c===-1?0:Bi-Wi*c,E=[1,3];return{useCase:t,size:`${m}px`,hidden:!e.includes(t),icon:Di[t],stateIndex:c,reversed:E.includes(c),position:this.getPosition(c,e.length,n)}})})),this.swapping$=this.useCases$.pipe(Zi(),H(([e,n])=>e.length>n.length),_e(()=>ei(hn).pipe(f(()=>!1),ce(!0))))}continue(){return N(this,null,function*(){this.signUpStateService.update({useCases:this.useCasesFormControl.value}),this.signUpService.navigateToNextStep()})}getPosition(e,n,t){let c=[{bottom:-256,left:0},{bottom:-20,left:50},{bottom:-66,left:-100},{bottom:96,left:-66},{bottom:180,left:46}];return c[e]?c[e]:c[n]?{bottom:c[n].bottom+t*.5,left:c[n].left+t*.5}:null}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=ie(i)))(t||i)}})()}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up-use-cases"]],hostAttrs:[1,"ww-sign-up-use-cases"],features:[b],decls:24,vars:19,consts:()=>{let e;e=$localize`What would you like to do with Waitwhile?`;let n;n=$localize` Check all the options that apply. This will help us configure your account in the best way. `;let t;t=$localize` Back `;let c;return c=$localize` Continue `,[e,n,t,c,[1,"flex","flex-col","gap-6"],[1,"mt-8",3,"formControl","data","size","selection","direction","pluckLabel","withCheckboxes","checkboxPosition"],[3,"color"],[1,"flex","items-center","gap-2","mt-8"],[1,"flex-1"],["wwButton","tertiary"],[3,"icon"],[3,"click"],["wwButton","primary",1,"flex-1",3,"click","disabled"],[1,"relative",3,"withBackgroundBubbles"],[1,"ww-sign-up-use-cases-bubble-origin"],[1,"ww-sign-up-use-cases-bubble",3,"ww-sign-up-use-cases-bubble-swapping","ww-sign-up-use-cases-bubble-hidden","wwBackgroundColor","--bubble-index","--bubble-size","left","bottom"],[1,"ww-sign-up-use-cases-bubble",3,"wwBackgroundColor"],[1,"flex","items-center","justify-center","h-full","w-full","relative"],[1,"absolute","margin-auto",3,"icon","wwColor","sizeStyle"]]},template:function(n,t){if(n&1&&(a(0,"ww-sign-up-page")(1,"ww-sign-up-page-primary")(2,"h3"),u(3,0),r(),a(4,"p"),u(5,1),r(),a(6,"div",4),_(7,"ww-button-toggle-group",5),d(8,Xo,2,2,"ww-info-bubble",6),g(9,"async"),r(),a(10,"ww-sign-up-page-primary-actions",7)(11,"div",8)(12,"button",9),_(13,"ww-icon",10),a(14,"span",11),h("click",function(){return t.signUpService.navigateToPreviousStep()}),u(15,2),r()()(),a(16,"button",12),g(17,"async"),h("click",function(){return t.continue()}),u(18,3),r()()(),a(19,"ww-sign-up-page-secondary",13)(20,"div",14),we(21,zo,4,21,"div",15,Vo),g(23,"async"),r()()()),n&2){let c;o(7),s("formControl",t.useCasesFormControl)("data",t.useCases)("size","large")("selection","multiple")("direction","vertical")("data",t.useCases)("pluckLabel",t.pluckUseCaseLabel)("withCheckboxes",!0)("checkboxPosition","after"),o(),S((c=w(9,13,t.useCasesWarning$))?8:-1,c),o(5),s("icon","bx-chevron-left"),o(3),s("disabled",w(17,15,t.continueDisabled$)),o(3),s("withBackgroun
13dBubbles",!0),o(2),fe(w(23,17,t.bubbles$))}},dependencies:[M,U,se,ue,O,x,$,W,y,X,Ii,ne,z,Be,oe,L],styles:[`.ww-sign-up-use-cases .ww-sign-up-use-cases-bubble-origin{height:1px;width:1px;max-height:1px;max-width:1px;margin-right:116px;margin-top:20px;position:relative}.ww-sign-up-use-cases .ww-sign-up-use-cases-bubble{border-radius:100%;position:absolute;animation:bounce 5s ease-in-out infinite;transform-origin:0% 50%;transition-property:left,bottom,transform,opacity,height,width,box-shadow;transition-duration:.4s;transition-timing-function:ease-in-out;height:var(--bubble-size);width:var(--bubble-size)}.ww-sign-up-use-cases .ww-sign-up-use-cases-bubble.ww-sign-up-use-cases-bubble-hidden{transform:scale(0);opacity:0}.ww-sign-up-use-cases .ww-sign-up-use-cases-bubble.ww-sign-up-use-cases-bubble-swapping{box-shadow:0 0 16px #0003}.ww-sign-up-use-cases .ww-sign-up-use-cases-bubble .ww-icon{animation:rotate 4s linear infinite}.ww-sign-up-use-cases .ww-sign-up-use-cases-bubble .ww-icon.ww-sign-up-use-cases-bubble-reversed{animation:rotate 4s linear infinite reverse}.ww-sign-up-use-cases .ww-sign-up-use-cases-bubble .ww-icon,.ww-sign-up-use-cases .ww-sign-up-use-cases-bubble .ww-icon svg{transition-property:height,width,min-width,min-height,font-size;transition-duration:.4s;transition-timing-function:ease-in-out}@keyframes rotate{0%,to{transform:rotate(0)}25%{transform:rotate(4deg)}75%{transform:rotate(-4deg)}}@keyframes bounce{0%,to{transform:translateY(0)}40%{transform:translateY(calc(-48px - var(--bubble-index) * 4px))}} 14/*noopsign-up-use-cases.component-5KUE7Q4Y.css.map */ 15`],encapsulation:2,changeDetection:0})}}return i})();var F={component:In,image:"sign-up-devices",path:""},Ke={component:dn,image:"sign-up-staff",path:"email",canActivate:[()=>N(null,null,function*(){let i=p(v),l=p(A);return l.state.email?(yield C(l.isEmailSignedIn$))?(i.navigateToStep(Pe),!1):!0:(i.navigateToStep(F),!1)})]},Pe={component:Cn,image:"sign-up-staff",path:"ongoing-found"},Se={component:Sn,illustration:"ww-sign-up-verify-email",path:"email-verify",canActivate:[i=>N(null,null,function*(){if(i.queryParams.oobCode)return!0;let l=p(le),e=p(v),n=p(A),t=n.get().email;if(!t||!(yield C(n.isEmailSignedIn$)))return e.navigateToStep(F),!1;let[m,E]=yield Promise.all([C(l.uninitializedUser$),C(l.isEmailVerified$)]),R=E;return Ut()&&(R=!0),m&&m.email!==t?(e.navigateToStep(F),!1):R?(e.navigateAfterEmailVerification(),!1):!0})]},be={component:an,path:"account-found",canActivate:[()=>N(null,null,function*(){let i=p(Ge),l=p(v),e=p(A),n=e.get().email,t=e.get().providerId;if(!n||!t||!(yield C(e.isEmailSignedIn$)))return l.navigateToStep(F),!1;let m=gi(n);if(!m)return l.navigateToStep(F),!1;let[E,R]=yield Promise.all([C(i.validateEmail(n,t)),C(i.enrich(m))]);return e.update({enrichment:R}),E.hasOrganization?!0:(l.navigateToStep(de),!1)})]},Mi={component:Nn,path:"join-existing",canActivate:[()=>N(null,null,function*(){let i=p(v),l=p(A);return!l.state.email||!(yield C(l.isEmailSignedIn$))?(i.navigateToStep(F),!1):!0})]},de={component:ln,illustration:"ww-sign-up-business-info",path:"business-info",stepIndex:0,canActivate:[()=>N(null,null,function*(){let i=p(v),l=p(A);return!l.state.email||!(yield C(l.isEmailSignedIn$))?(i.navigateToStep(F),!1):!0})]},Vi={component:Tn,path:"use-cases",stepIndex:1,canActivate:[()=>N(null,null,function*(){let i=p(v),l=p(A);return!l.state.email||!(yield C(l.isEmailSignedIn$))?(i.navigateToStep(F),!1):!0})]},$i={component:fn,path:"goals",stepIndex:2,canActivate:[()=>N(null,null,function*(){let i=p(v),l=p(A);return!l.state.email||!(yield C(l.isEmailSignedIn$))?(i.navigateToStep(F),!1):!0})]},Qe={component:pn,image:"sign-up-experts",path:"chili-piper",canActivate:[()=>N(null,null,function*(){let i=p(Ge),l=p(v),e=p(A);if(!e.state.email||!(yield C(e.isEmailSignedIn$)))return l.navigateToStep(F),!1;if(!e.state.enrichment)return l.navigateToStep(Ve),!1;try{let t=yield C(i.getIcpStatus(e.state.email,e.state.enrichment,e.state.goals??[],e.state.useCases??[]));if(e.update({calendarUrl:t.calendarUrl??void 0,isIcp:t.isIcp}),!t.isIcp||!t.calendarUrl)return l.navigateToStep(Ve),!1}catch(t){return l.navigateToStep(Ve),!1}return!0})]},Ve={component:_n,path:"create-account",stepIndex:3},Fe=[F,Ke,Pe,Se,be,Mi,de,Vi,$i,Qe,Ve],on=Fe.reduce((i,l)=>l.stepIndex?Math.max(i,l.stepIndex):i,0),xi=Oi()(["REDUCE-WAIT-TIMES","REDUCE-NO-SHOWS","IMPROVE-CUSTOMER-SATISFACTION","IMPROVE-STAFF-SATISFACTION","INCREASE-REVENUE","INCREASE-PRODUCTIVITY","OTHER"]),En={"IMPROVE-CUSTOMER-SATISFACTION":$localize`Improve customer satisfaction`,"IMPROVE-STAFF-SATISFACTION":$localize`Improve staff satisfaction`,"INCREASE-PRODUCTIVITY":$localize`Increase staff productivity`,"INCREASE-REVENUE":$localize`Increase services or products sold`,"REDUCE-NO-SHOWS":$localize`Eliminate no-shows`,"REDUCE-WAIT-TIMES":$localize`Reduce wait times`,OTHER:$localize`Other business results`},ki=Oi()(["QUEUE-MANAGEMENT","APPOINTMENT-SCHEDULING","EVENTS","PRODUCT-DROPS","CAPTURE-CUSTOMER-DATA","OTHER"]),Un={"APPOINTMENT-SCHEDULING":$localize`Appointment scheduling`,"CAPTURE-CUSTOMER-DATA":$localize`Visitor sign-in`,EVENTS:$localize`Event experiences`,"PRODUCT-DROPS":$localize`Pre-launch waitlist`,"QUEUE-MANAGEMENT":$localize`Queue management`,OTHER:$localize`Other use-cases`},yn={"APPOINTMENT-SCHEDULING":$localize`Let customers book, reschedule, and get reminders`,"CAPTURE-CUSTOMER-DATA":$localize`Digitize sign-ins and capture guest details with ease`,EVENTS:$localize`Streamline check-ins at events, booths, or activations`,"PRODUCT-DROPS":$localize`Collect signups for product drops and releases`,"QUEUE-MANAGEMENT":$localize`Effortlessly handle virtual queues and waitlists`,OTHER:$localize`Exploring Waitwhile for another purpose`};var An=(()=>{class i extends G{constructor(){super(),this.layout=p(Ht),this.preloadAssets(),this.layout.enableRestoreScrollPosition(this.ngOnDestroy$)}preloadAssets(){for(let e of Fe)e.illustration&&fetch(`assets/icons/waitwhile/${e.illustration}.svg`),e.image&&fetch(`assets/images/${e.image}.png`)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=T({type:i,selectors:[["ww-sign-up"]],hostAttrs:[1,"ww-sign-up"],features:[b],decls:1,vars:0,template:function(n,t){n&1&&_(0,"router-outlet")},dependencies:[O,Nt],styles:[`.ww-sign-up{display:flex;flex-direction:column;align-items:center;padding:0 16px;height:100%;width:100%}.ww-sign-up router-outlet+*{display:block;margin:auto;height:100%;width:100%}.ww-breakpoints-below-small .ww-sign-up{height:auto}.ww-sign-up .ww-card,.ww-sign-up .ww-form-field-container{background:var(--ww-color-white)}.ww-sign-up h3{margin-bottom:12px} 16/*noopsign-up.component-ESGBAMCH.css.map */ 17`],encapsulation:2,changeDetection:0})}}return i})();var Yo=[{path:"",component:An,children:Fe}],vn=(()=>
17{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=ni({type:i})}static{this.\u0275inj=ti({imports:[O.forChild(Yo)]})}}return i})();var qc=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=ni({type:i})}static{this.\u0275inj=ti({imports:[M,U,hi,vn,y]})}}return i})();export{v as SignUpService,An as WwSignUpComponent,qc as WwSignUpModule,nn as getStepPath}; 18//noopchunk-QPYEYD5Q.js.map
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.