1import{f as se,i as f,j as e,h as ne,T as l,k as ie,l as R,w as F,m as ae,g as u,n as U,o as G,p as S,B as T,H as oe}from"./index-DyTkbfCa.js";import{s as O,C as w,q as Q,G as Ae}from"./5xllJCCXXT.js";import{L as le}from"./Ci1Uru4wex.js";import{u as V}from"./efWzTOxgqY.js";import{r as A}from"./B6hkNntDuE.js";import{F as n,u as K,a as ce,z as de,g as ge,s as d}from"./BR0m47-lJI.js";import{S as he}from"./BmtUS99Y1Q.js";import"./vv13UWeiSq.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new r.Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="68c31f25-8d21-430c-a04a-965f61ec2ed4",r._sentryDebugIdIdentifier="sentry-dbid-68c31f25-8d21-430c-a04a-965f61ec2ed4")}catch{}})();const Y=({type:r="createAccount",className:t="",style:s})=>{se();const i=A.useMemo(()=>({createAccount:f._({id:"create account legal snippet"}),cookies:f._({id:"cookie legal snippet"}),cookiesLink:f._({id:"cookies legal link"}),createAccountLink:f._({id:"user legal link"}),termsLink:f._({id:"terms legal link"})}),[]),o=A.useMemo(()=>({createAccount:[e.jsx("a",{href:i.termsLink}),e.jsx("a",{href:i.createAccountLink})]}),[i.termsLink,i.createAccountLink])[r],c=o==null?void 0:o.reduce((g,m,I)=>(g[I]=m,g),{});return e.jsx(ne.Help,{textColor:"grey",className:ie("legal-snippet",t),style:s,children:e.jsx(l,{id:i[r],values:c??void 0})})},ue="/public/assets/J50Gmiy0R9.png",x={firstName:f._({id:"firstname"}),lastName:f._({id:"lastname"}),SERVER_ERROR:f._({id:"server error"}),409:f._({id:"server error"})},_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",J=61,D=new Uint8Array(256);for(let r=0;r<_.length;r++)D[_.charCodeAt(r)]=r;function Z(r){const t=r.length;let s="";for(let i=0;i<t;i+=3){const a=r[i+0],o=r[i+1],c=r[i+2];s+=_.charAt(a>>>2),s+=_.charAt((a&3)<<4|o>>>4),s+=_.charAt((o&15)<<2|c>>>6),s+=_.charAt(c&63)}return t%3===2?s=s.substring(0,s.length-1)+"=":t%3===1&&(s=s.substring(0,s.length-2)+"=="),s}function me(r){const t=r.length;let s=t*3>>>2;r.charCodeAt(t-1)===J&&s--,r.charCodeAt(t-2)===J&&s--;const i=new Uint8Array(s);for(let a=0,o=0;a<t;a+=4){const c=D[r.charCodeAt(a+0)],g=D[r.charCodeAt(a+1)],m=D[r.charCodeAt(a+2)],I=D[r.charCodeAt(a+3)];i[o++]=c<<2|g>>4,i[o++]=(g&15)<<4|m>>2,i[o++]=(m&3)<<6|I&63}return i}var pe=".frc-captcha *{margin:0;padding:0;border:0;text-align:initial;border-radius:px;filter:none!important;transition:none!important;font-weight:400;font-size:14px;line-height:1.2;text-decoration:none;background-color:initial;color:#222}.frc-captcha{position:relative;width:312px;border:1px solid #f4f4f4;padding-bottom:12px;background-color:#fff}.frc-captcha b{font-weight:700}.frc-container{display:flex;align-items:center;min-height:52px}.frc-icon{fill:#222;stroke:#222;flex-shrink:0;margin:8px 8px 0}.frc-icon.frc-warning{fill:#c00}.frc-success .frc-icon{animation:1s ease-in both frc-fade-in}.frc-content{white-space:nowrap;display:flex;flex-direction:column;margin:4px 6px 0 0;overflow-x:auto;flex-grow:1}.frc-banner{position:absolute;bottom:0;right:6px;line-height:1}.frc-banner *{font-size:10px;opacity:.8;text-decoration:none}.frc-progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:3px 0;height:4px;border:none;background-color:#eee;color:#222;width:100%;transition:.5s linear}.frc-progress::-webkit-progress-bar{background:#eee}.frc-progress::-webkit-progress-value{background:#222}.frc-progress::-moz-progress-bar{background:#222}.frc-button{cursor:pointer;padding:2px 6px;background-color:#f1f1f1;border:1px solid transparent;text-align:center;font-weight:600;text-transform:none}.frc-button:focus{border:1px solid #333}.frc-button:hover{background-color:#ddd}.frc-captcha-solution{display:none}.frc-err-url{text-decoration:underline;font-size:.9em}.dark.frc-captcha{color:#fff;background-color:#222;border-color:#333}.dark.frc-captcha *{color:#fff}.dark.frc-captcha button{background-color:#444}.dark .frc-icon{fill:#fff;stroke:#fff}.dark .frc-progress{background-color:#444}.dark .frc-progress::-webkit-progress-bar{background:#444}.dark .frc-progress::-webkit-progress-value{background:#ddd}.dark .frc-progress::-moz-progress-bar{background:#ddd}@keyframes frc-fade-in{from{opacity:0}
1to{opacity:1}}";const fe=1,Ie=128,W='<circle cx="12" cy="12" r="8" stroke-width="3" stroke-dasharray="15 10" fill="none" stroke-linecap="round" transform="rotate(0 12 12)"><animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="0.9s" values="0 12 12;360 12 12"/></circle>',q='<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>';function j(r,t,s,i,a,o=!1,c,g){return`<div class="frc-container${g?" "+g:""}"> 2<svg class="frc-icon" role="img" xmlns="http://www.w3.org/2000/svg" height="32" width="32" viewBox="0 0 24 24">${t}</svg> 3<div class="frc-content"> 4 <span class="frc-text" ${c?`title="${c}"`:""}>${s}</span> 5 ${a?`<button type="button" class="frc-button">${a}</button>`:""} 6 ${o?'<progress class="frc-progress" value="0">0%</progress>':""} 7</div> 8</div><span class="frc-banner"><a href="https://friendlycaptcha.com/" rel="noopener" target="_blank"><b>Friendly</b>Captcha â</a></span> 9<input name="${r}" class="frc-captcha-solution" type="hidden" value="${i}">`}function Ce(r,t){return j(r,'<path d="M17,11c0.34,0,0.67,0.04,1,0.09V6.27L10.5,3L3,6.27v4.91c0,4.54,3.2,8.79,7.5,9.82c0.55-0.13,1.08-0.32,1.6-0.55 C11.41,19.47,11,18.28,11,17C11,13.69,13.69,11,17,11z"/><path d="M17,13c-2.21,0-4,1.79-4,4c0,2.21,1.79,4,4,4s4-1.79,4-4C21,14.79,19.21,13,17,13z M17,14.38"/>',t.text_ready,".UNSTARTED",t.button_start,!1)}function xe(r,t){return j(r,W,t.text_fetching,".FETCHING",void 0,!0)}function we(r,t){return j(r,W,t.text_solving,".UNFINISHED",void 0,!0)}function ye(r,t,s,i){const a=`Completed: ${i.t.toFixed(0)}s (${(i.h/i.t*.001).toFixed(0)}K/s)${i.solver===fe?" JS Fallback":""}`;return j(r,`<title>${a}</title><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"></path>`,t.text_completed,s,void 0,!1,a,"frc-success")}function Be(r,t){return j(r,q,t.text_expired,".EXPIRED",t.button_restart)}function v(r,t,s,i=!0,a=!1){return j(r,q,`<b>${t.text_error}</b><br>${s}`,a?".HEADLESS_ERROR":".ERROR",i?t.button_retry:void 0)}function be(){if(!document.querySelector("#frc-style")){const r=document.createElement("style");r.id="frc-style",r.innerHTML=pe,document.head.appendChild(r)}}function Ee(r,t){const s=r.querySelector(".frc-progress"),i=(t.i+1)/t.n;s&&(s.value=i,s.innerText=i.toFixed(2)+"%",s.title=t.i+1+"/"+t.n+" ("+(t.h/t.t*.001).toFixed(0)+"K/s)")}function Qe(r){for(;r.tagName!=="FORM";)if(r=r.parentElement,!r)return null;return r}function ke(r,t){r.addEventListener("focusin",t,{once:!0,passive:!0})}let B,N;typeof navigator<"u"&&(B=navigator,N=B.userAgent.toLowerCase());function _e(){let r=!0;try{r=PluginArray.prototype===B.plugins.__proto__,B.plugins.length>0&&(r=r&&Plugin.prototype===B.plugins[0].__proto__)}catch{}return N.indexOf("headless")!==-1||B.appVersion.indexOf("Headless")!==-1||N.indexOf("bot")!==-1||N.indexOf("crawl")!==-1||B.webdriver===!0||!B.language||B.languages!==void 0&&!B.languages.length||!r}function je(r){return r>255?r=255:r<0&&(r=0),Math.pow(2,(255.999-r)/8)>>>0}const De=13,Se=14,ve=15;function Ne(r,t){const s=[];for(let i=0;i<t;i++){const a=new Uint8Array(Ie);a.set(r),a[120]=i,s.push(a)}return s}function Re(r){const t=r.split("."),s=t[1],i=me(s);return{signature:t[0],base64:s,buffer:i,n:i[Se],threshold:je(i[ve]),expiry:i[De]*3e5}}async function Fe(r,t,s){const i=r.split(",");for(let a=0;a<i.length;a++)try{const o=await $(i[a]+"?sitekey="+t,{headers:[["x-frc-client","js-0.9.0"]],mode:"cors"},2);if(o.ok)return(await o.json()).data.puzzle;{let c;try{c=await o.json()}catch{}if(c&&c.errors&&c.errors[0]==="endpoint_not_enabled")throw Error(`Endpoint not allowed (${o.status})`);if(a===i.length-1)throw Error(`Response status ${o.status} ${o.statusText}`)}}catch(o){throw console.error("[FriendlyCaptcha]:",o),Error(`${s.text_fetch_error} <a class="frc-err-url" href="${i[a]}">${i[a]}</a>`)}throw Error("Internal error")}async function $(r,t,s){let i=1e3;return fetch(r,t).catch(async a=>{if(s===0)throw a;return await new Promise(o=>setTimeout(o,i)),i*=4,$(r,t,s-1)})}const Le={text_init:"Initializing..",text_ready:"Anti-Robot Verification",button_start:"Click to start verification",text_fetching:"Fetching Challenge",text_solving:"Verifying you are human..",text_completed:"I am human",text_expired:"Anti-Robot verification expired",button_restart:"Restart",text_error:"Verification failed",button_retry:"Retry",text_fetch_error:"Failed to connect to"},Me={text_init:"Chargement..",text_ready:"Verification Anti-Robot",button_start:"Cliquez ici pour vérifier",text_fetching:"Chargement du challenge",text_solving:"Vérification que vous êtes humain..",text_completed:"Je suis humain",text_expired:"Verification échue",button_restart:"Recommencer",text_error:"Echec de verification",button_retry:"Recommencer",text_fetch_error:"Problème de connexion avec"},ze={text_init:"Initialisierung..",text_ready:"Anti-Roboter-Verifizierung",button_start:"Hier klicken",text_fetching:"Herausforderung laden..",text_solving:"Verifizierung, dass Sie ein Mensch sind..",text_completed:"Ich bin ein Mensch",text_expired:"Verifizierung abgelaufen",button_restart:"Erneut starten",text_error:"Verifizierung fehlgeschlagen",button_retry:"Erneut versuchen",text_fetch_error:"Verbindungsproblem mit"},He={text_init:"Initializeren..",text_ready:"Anti-robotverificatie",button_start:"Klik om te starten",text_fetching:"Aan het laden..",text_solving:"Anti-robotverificatie bezig..",text_completed:"Ik ben een mens",text_expired:"Verificatie verlopen",button_restart:"Opnieuw starten",text_error:"Verificatie mislukt",button_retry:"Opnieuw proberen",text_fetch_error:"Verbinding mislukt met"},Ue={text_init:"Inizializzazione...",text_ready:"Verifica Anti-Robot",button_start:"Clicca per iniziare",text_fetching:"Caricamento...",text_solving:"Verificando che sei umano...",text_completed:"Non sono un robot",text_expired:"Verifica Anti-Robot scaduta",button_restart:"Ricomincia",text_error:"Verifica fallita",button_retry:"Riprova",text_fetch_error:"Problema di connessione con"},Ge={text_init:"Inicializando..",text_ready:"Verificação Anti-Robô",button_start:"Clique para iniciar verificação",text_fetching:"Carregando..",text_solving:"Verificando se você é humano..",text_completed:"Eu sou humano",text_expired:"Verificação Anti-Robô expirada",button_restart:"Reiniciar",text_error:"Verificação falhou",button_retry:"Tentar novamente",text_fetch_error:"Falha de conexão com"},Te={text_init:"Inicializando..",text_ready:"Verificación Anti-Robot",button_start:"Haga clic para iniciar la verificación",text_fetching:"Cargando desafÃo",text_solving:"Verificando que eres humano..",text_completed:"Soy humano",text_expired:"Verificación Anti-Robot expirada",button_restart:"Reiniciar",text_error:"Ha fallado la verificación",button_retry:"Intentar de nuevo",text_fetch_error:"Error al conectarse a"},Oe={text_init:"Inicialitzant...",text_ready:"Verificació Anti-Robot",button_start:"Fes clic per començar la verificació",text_fetching:"Carregant repte",text_solving:"Verificant que ets humà ..",text_completed:"Soc humà ",text_expired:"La verificació Anti-Robot ha expirat",button_restart:"Reiniciar",text_error:"Ha fallat la verificació",button_retry:"Tornar a provar",text_fetch_error:"Error connectant a"},Ve={text_init:"éå§ãã¦ãã¾ã...",text_ready:"ã¢ã³ãããããèªè¨¼",button_start:"ã¯ãªãã¯ãã¦èªè¨¼ãéå§",text_fetching:"ãã¼ããã¦ãã¾ã",text_solving:"èªè¨¼ä¸...",text_completed:"ç§ã¯ããããã§ã¯ããã¾ãã",text_expired:"èªè¨¼ã®æéãåãã¦ãã¾ã",button_restart:"å度èªè¨¼ãè¡ã",text_error:"èªè¨¼ã«ã¨ã©ã¼ãçºçãã¾ãã",button_retry:"å度èªè¨¼ãè¡ã",text_fetch_error:"æ¥ç¶ãã§ãã¾ããã§ãã"},Ke={text_init:"Initialiserer..",text_ready:"Anti-robot verifikation",button_start:"Klik for at starte verifikationen",text_fetching:"Henter udfordring",text_solving:"Bekræfter, at du er menneske..",text_completed:"Jeg er menneske",text_expired:"Anti-Robot-verifikation er udløbet",button_restart:"Genstart",text_error:"Bekræftelse mislykkedes",button_retry:"Prøv igen",text_fetch_error:"Det lykkedes ikke at oprette forbindelse til"},H={en:Le,de:ze,nl:He,fr:Me,it:Ue,pt:Ge,es:Te,ca:Oe,ja:Ve,da:Ke};function Ye(r,t){const s=new Uint8Array(3),i=new DataView(s.buffer);return i.setUint8(0,r),i.setUint16(1,t),s}var Pe='!function(){"use strict";const A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
9+/",I="=".charCodeAt(0),g=new Uint8Array(256);for(let I=0;I<A.length;I++)g[A.charCodeAt(I)]=I;function C(A){const I={},g=A.exports,C=g.memory,t=g.__alloc,B=g.__retain,Q=g.__rtti_base||-1;return I.__allocArray=(A,I)=>{const g=function(A){return new Uint32Array(C.buffer)[(Q+4>>>2)+2*A]}(A),e=31-Math.clz32(g>>>6&31),r=I.length,i=t(r<<e,0),o=t(12,A),n=new Uint32Array(C.buffer);n[o+0>>>2]=B(i),n[o+4>>>2]=i,n[o+8>>>2]=r<<e;const E=C.buffer,s=new Uint8Array(E);if(16384&g)for(let A=0;A<r;++A)s[(i>>>e)+A]=B(I[A]);else s.set(I,i>>>e);return o},I.__getUint8Array=A=>{const I=new Uint32Array(C.buffer),g=I[A+4>>>2];return new Uint8Array(C.buffer,g,I[g-4>>>2]>>>0)},function(A,I={}){const g=A.__argumentsLength?I=>{A.__argumentsLength.value=I}:A.__setArgumentsLength||A.__setargc||(()=>({}));for(const C in A){if(!Object.prototype.hasOwnProperty.call(A,C))continue;const t=A[C],B=C.split(".")[0];"function"==typeof t&&t!==g?(I[B]=(...A)=>(g(A.length),t(...A))).original=t:I[B]=t}return I}(g,I)}class t{constructor(A){this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.v=new Uint32Array(32),this.m=new Uint32Array(32),this.outlen=A}}function B(A,I){return A[I]^A[I+1]<<8^A[I+2]<<16^A[I+3]<<24}function Q(A,I,g,C,t,B,Q,e){const r=I[Q],i=I[Q+1],o=I[e],n=I[e+1];let E,s,w,a,c=A[g],D=A[g+1],f=A[C],h=A[C+1],l=A[t],y=A[t+1],U=A[B],M=A[B+1];E=c+f,s=(c&f|(c|f)&~E)>>>31,c=E,D=D+h+s,E=c+r,s=(c&r|(c|r)&~E)>>>31,c=E,D=D+i+s,w=U^c,a=M^D,U=a,M=w,E=l+U,s=(l&U|(l|U)&~E)>>>31,l=E,y=y+M+s,w=f^l,a=h^y,f=w>>>24^a<<8,h=a>>>24^w<<8,E=c+f,s=(c&f|(c|f)&~E)>>>31,c=E,D=D+h+s,E=c+o,s=(c&o|(c|o)&~E)>>>31,c=E,D=D+n+s,w=U^c,a=M^D,U=w>>>16^a<<16,M=a>>>16^w<<16,E=l+U,s=(l&U|(l|U)&~E)>>>31,l=E,y=y+M+s,w=f^l,a=h^y,f=a>>>31^w<<1,h=w>>>31^a<<1,A[g]=c,A[g+1]=D,A[C]=f,A[C+1]=h,A[t]=l,A[t+1]=y,A[B]=U,A[B+1]=M}const e=[4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225],r=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,28,20,8,16,18,30,26,12,2,24,0,4,22,14,10,6,22,16,24,0,10,4,30,26,20,28,6,12,14,2,18,8,14,18,6,2,26,24,22,28,4,12,10,20,8,0,30,16,18,0,10,14,4,8,20,30,28,2,22,24,12,16,6,26,4,24,12,20,0,22,16,6,8,26,14,10,30,28,2,18,24,10,2,3
90,28,26,8,20,0,14,12,6,18,4,16,22,26,22,14,28,24,2,6,18,10,0,30,8,16,12,4,20,12,30,28,18,22,6,0,16,24,4,26,14,2,8,20,10,20,4,16,8,14,12,2,10,30,22,18,28,6,24,26,0,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,28,20,8,16,18,30,26,12,2,24,0,4,22,14,10,6];function i(A,I){const g=A.v,C=A.m;for(let I=0;I<16;I++)g[I]=A.h[I],g[I+16]=e[I];g[24]=g[24]^A.t,g[25]=g[25]^A.t/4294967296,I&&(g[28]=~g[28],g[29]=~g[29]);for(let I=0;I<32;I++)C[I]=B(A.b,4*I);for(let A=0;A<12;A++)Q(g,C,0,8,16,24,r[16*A+0],r[16*A+1]),Q(g,C,2,10,18,26,r[16*A+2],r[16*A+3]),Q(g,C,4,12,20,28,r[16*A+4],r[16*A+5]),Q(g,C,6,14,22,30,r[16*A+6],r[16*A+7]),Q(g,C,0,10,20,30,r[16*A+8],r[16*A+9]),Q(g,C,2,12,22,24,r[16*A+10],r[16*A+11]),Q(g,C,4,14,16,26,r[16*A+12],r[16*A+13]),Q(g,C,6,8,18,28,r[16*A+14],r[16*A+15]);for(let I=0;I<16;I++)A.h[I]=A.h[I]^g[I]^g[I+16]}function o(A,I){for(let I=0;I<16;I++)A.h[I]=e[I];A.b.set(I),A.h[0]^=16842752^A.outlen}async function n(){return(A,I,g=4294967295)=>[A,function(A,I,g){if(128!=A.length)throw Error("Invalid input");const C=A.buffer,B=new DataView(C),Q=new t(32);Q.t=128;const e=B.getUint32(124,!0),r=e+g;for(let g=e;g<r;g++)if(B.setUint32(124,g,!0),o(Q,A),i(Q,!0),Q.h[0]<I)return 0==ASC_TARGET?new Uint8Array(Q.h.buffer):Uint8Array.wrap(Q.h.buffer);return new Uint8Array(0)}(A,I,g)]}let E,s;Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:function(A,I){return new Uint8Array(Array.prototype.slice.call(this,A,I))}}),self.ASC_TARGET=0;const w=new Promise((A=>s=A));let a=!1;self.onerror=A=>{self.postMessage({type:"error",message:JSON.stringify(A)})},self.onmessage=async A=>{const t=A.data;try{if("solver"===t.type){if(t.forceJS){E=1;const A=await n();s(A)}else try{E=2;const A=WebAssembly.compile(function(A){const C=A.length;let t=3*C>>>2;A.charCodeAt(C-1)===I&&t--,A.charCodeAt(C-2)===I&&t--;const B=new Uint8Array(t);for(let I=0,t=0;I<C;I+=4){const C=g[A.charCodeAt(I+0)],Q=g[A.charCodeAt(I+1)],e=g[A.charCodeAt(I+2)],r=g[A.charCodeAt(I+3)];B[t++]=C<<2|Q>>4,B[t++]=(15&Q)<<4|e>>2,B[t++]=(3&e)<<6|63&r}return B}("AGFzbQEAAAABKghgAABgAn9/AGADf39/AX9gAX8AYAR/f39/AGAAAX9gAX8Bf2ACf38BfwINAQNlbnYFYWJvcnQABAMMCwcGAwAAAQIFAQIABQMBAAEGFgR/AUEAC38BQQALfwBBAwt/AEHgDAsHbgkGbWVtb3J5AgAHX19hbGxvYwABCF9fcmV0YWluAAIJX19yZWxlYXNlAAMJX19jb2xsZWN0AAQHX19yZXNldAAFC19fcnR0aV9iYXNlAwMNVWludDhBcnJheV9JRAMCDHNvbHZlQmxha2UyYgAKCAELCvgSC5IBAQV/IABB8P///wNLBEAACyMBQRBqIgQgAEEPakFwcSICQRAgAkEQSxsiBmoiAj8AIgVBEHQiA0sEQCAFIAIgA2tB//8DakGAgHxxQRB2IgMgBSADShtAAEEASARAIANAAEEASARAAAsLCyACJAEgBEEQayICIAY2AgAgAkEBNgIEIAIgATYCCCACIAA2AgwgBAsEACAACwMAAQsDAAELBgAjACQBC7sCAQF/AkAgAUUNACAAQQA6AAAgACABakEEayICQQA6AAMgAUECTQ0AIABBADoAASAAQQA6AAIgAkEAOgACIAJBADoAASABQQZNDQAgAEEAOgADIAJBADoAACABQQhNDQAgAEEAIABrQQNxIgJqIgBBADYCACAAIAEgAmtBfHEiAmpBHGsiAUEANgIYIAJBCE0NACAAQQA2AgQgAEEANgIIIAFBADYCECABQQA2AhQgAkEYTQ0AIABBADYCDCAAQQA2AhAgAEEANgIUIABBADYCGCABQQA2AgAgAUEANgIEIAFBADYCCCABQQA2AgwgACAAQQRxQRhqIgFqIQAgAiABayEBA0AgAUEgTwRAIABCADcDACAAQgA3AwggAEIANwMQIABCADcDGCABQSBrIQEgAEEgaiEADAELCwsLcgACfyAARQRAQQxBAhABIQALIAALQQA2AgAgAEEANgIEIABBADYCCCABQfD///8DIAJ2SwRAQcAKQfAKQRJBORAAAAsgASACdCIBQQAQASICIAEQBiAAKAIAGiAAIAI2AgAgACACNgIEIAAgATYCCCAAC88BAQJ/QaABQQAQASIAQQxBAxABQYABQQAQBzYCACAAQQxBBBABQQhBAxAHNgIEIABCADcDCCAAQQA2AhAgAEIANwMYIABC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")),t=await async function(A){const I=await async function(A){const I={env:{abort(){throw Error("Wasm aborted")}}};return{exports:C(await WebAssembly.instantiate(A,I))}}(A),g=I.exports.__retain(I.exports.__allocArray(I.exports.Uint8Array_ID,new Uint8Array(128)));let t=I.exports.__getUint8Array(g);return(A,C,B=4294967295)=>{t.set(A);const Q=I.exports.solveBlake2b(g,C,B);t=I.exports.__getUint8Array(g);const e=I.exports.__getUint8Array(Q);return I.exports.__release(Q),[t,e]}}(await A);s(t)}catch(A){console.log("FriendlyCaptcha failed to initialize WebAssembly, falling back to Javascript solver: "+A.toString()),E=1;const I=await n();s(I)}self.postMessage({type:"ready",solver:E})}else if("start"===t.type){if(a)return;a=!0;const A=await w;self.postMessage({type:"started"});let I=0;const g=t.puzzleSolverInputs,C=new Uint8Array(8*t.n);for(let B=t.startIndex;B<g.length;B+=t.numWorkers){let Q;for(let C=0;C<256;C++){g[B][123]=C;const[e,r]=A(g[B],t.threshold);if(0!==r.length){Q=e;break}console.warn("FC: Internal error or no solution found"),I+=Math.pow(2,32)-1}const e=new DataView(Q.slice(-4).buffer).getUint32(0,!0);I+=e,C.set(Q.slice(-8),8*B),self.postMessage({type:"progress",h:e})}const B={type:"done",solution:C,totalH:I,startIndex:t.startIndex};self.postMessage(B)}}catch(A){setTimeout((()=>{throw A}))}}}();';let X;typeof window<"u"&&(X=window.URL||window.webkitURL);class Je{constructor(){this.workers=[],this.numPuzzles=0,this.startTime=0,this.progress=0,this.totalHashes=0,this.puzzleSolverInputs=[],this.solutionBuffer=new Uint8Array(0),this.solverType=1,this.readyCount=0,this.startCount=0,this.doneCount=0,this.progressCallback=()=>0,this.readyCallback=()=>0,this.startedCallback=()=>0,this.doneCallback=()=>0,this.errorCallback=()=>0}init(){if(this.workers.length>0)for(let s=0;s<this.workers.length;s++)this.workers[s].terminate();this.progress=0,this.totalHashes=0,this.readyCount=0,this.startCount=0,this.doneCount=0,this.workers=new Array(4);const t=new Blob([Pe],{type:"text/javascript"});for(let s=0;s<this.workers.length;s++)this.workers[s]=new Worker(X.createObjectURL(t)),this.workers[s].onerror=i=>this.errorCallback(i),this.workers[s].onmessage=i=>{const a=i.data;if(a)if(a.type==="progress")this.progress++,this.totalHashes+=a.h,this.progressCallback({n:this.numPuzzles,h:this.totalHashes,t:(Date.now()-this.startTime)/1e3,i:this.progress});else if(a.type==="ready")this.readyCount++,this.solverType=a.solver,this.readyCount==this.workers.length&&this.readyCallback();else if(a.type==="started")this.startCount++,this.startCount==1&&(this.startTime=Date.now(),this.startedCallback());else if(a.type==="done"){this.doneCount++;for(let o=a.startIndex;o<this.puzzleSolverInputs.length;o+=this.workers.length)this.solutionBuffer.set(a.solution.subarray(o*8,o*8+8),o*8);if(this.doneCount==this.workers.length){const o=(Date.now()-this.startTime)/1e3;this.doneCallback({solution:this.solutionBuffer,h:this.totalHashes,t:o,diagnostics:Ye(this.solverType,o),solver:this.solverType})}}else a.type==="error"&&this.errorCallback(a)}}setupSolver(t=!1){const s={type:"solver",forceJS:t};for(let i=0;i<this.workers.length;i++)this.workers[i].postMessage(s)}start(t){this.puzzleSolverInputs=Ne(t.buffer,t.n),this.solutionBuffer=new Uint8Array(8*t.n),this.numPuzzles=t.n;for(let s=0;s<this.workers.length;s++)this.workers[s].postMessage({type:"start",puzzleSolverInputs:this.puzzleSolverInputs,threshold:t.threshold,n:t.n,numWorkers:this.workers.length,startIndex:s})}terminateWorkers(){if(this.workers.length!=0){for(let t=0;t<this.workers.length;t++)this.workers[t].terminate();this.workers=[]}}}const Ze="https://api.friendlycaptcha.com/api/v1/puzzle";class We{constructor(t,s={}){if(this.workerGroup=new Je,this.valid=!1,this.needsReInit=!1,this.hasBeenStarted=!1,this.hasBeenDestroyed=!1,this.opts=Object.assign({forceJSFallback:!1,startMode:"focus",puzzleEndpoint:t.dataset.puzzleEndpoint||Ze,startedCallback:()=>0,readyCallback:()=>0,doneCallback:()=>0,errorCallback:()=>0,sitekey:t.dataset.sitekey||"",language:t.dataset.lang||"en",solutionFieldName:t.dataset.solutionFieldName||"frc-captcha-solution"},s),this.e=t,typeof this.opts.language=="string"){let i=H[this.opts.language.toLowerCase()];i===void 0&&(console.error('FriendlyCaptcha: language "'+this.opts.language+'" not found.'),i=H.en),this.lang=i}else this.lang=Object.assign(Object.assign({},H.en),this.opts.language);t.innerText=this.lang.text_init,be(),this.init(this.opts.startMode==="auto"||this.e.dataset.start==="auto")}init(t){if(this.hasBeenDestroyed){console.error("FriendlyCaptcha widget has been destroyed using destroy(), it can not be used anymore.");return}if(this.initWorkerGroup(),t)this.start();else if(this.e.dataset.start!=="none"&&(this.opts.startMode==="focus"||this.e.dataset.start==="focus")){const s=Qe(this.e);s?ke(s,()=>{this.hasBeenStarted||this.start()}):console.log("FriendlyCaptcha div seems not to be contained in a form, autostart will not work")}}makeButtonStart(){const t=this.e.querySelector("button");
9t&&(t.addEventListener("click",s=>this.start(),{once:!0,passive:!0}),t.addEventListener("touchstart",s=>this.start(),{once:!0,passive:!0}))}onWorkerError(t){this.needsReInit=!0,this.e.innerHTML=v(this.opts.solutionFieldName,this.lang,"Background worker error "+t.message),this.makeButtonStart(),this.opts.forceJSFallback=!0}initWorkerGroup(){this.workerGroup.progressCallback=t=>{Ee(this.e,t)},this.workerGroup.readyCallback=()=>{this.e.innerHTML=Ce(this.opts.solutionFieldName,this.lang),this.makeButtonStart(),this.opts.readyCallback()},this.workerGroup.startedCallback=()=>{this.e.innerHTML=we(this.opts.solutionFieldName,this.lang),this.opts.startedCallback()},this.workerGroup.doneCallback=t=>{const s=this.handleDone(t);this.opts.doneCallback(s);const i=this.e.dataset.callback;i&&window[i](s)},this.workerGroup.errorCallback=t=>{this.onWorkerError(t)},this.workerGroup.init(),this.workerGroup.setupSolver(this.opts.forceJSFallback)}expire(){this.e.innerHTML=Be(this.opts.solutionFieldName,this.lang),this.makeButtonStart()}async start(){if(this.hasBeenDestroyed){console.error("Can not start FriendlyCaptcha widget which has been destroyed");return}this.hasBeenStarted=!0;const t=this.opts.sitekey||this.e.dataset.sitekey;if(!t){console.error("FriendlyCaptcha: sitekey not set on frc-captcha element"),this.e.innerHTML=v(this.opts.solutionFieldName,this.lang,"Website problem: sitekey not set",!1);return}if(_e()){this.e.innerHTML=v(this.opts.solutionFieldName,this.lang,"Browser check failed, try a different browser",!1,!0);return}if(this.needsReInit){this.needsReInit=!1,this.init(!0);return}try{this.e.innerHTML=xe(this.opts.solutionFieldName,this.lang),this.puzzle=Re(await Fe(this.opts.puzzleEndpoint,t,this.lang)),setTimeout(()=>this.expire(),this.puzzle.expiry-3e4)}catch(s){this.e.innerHTML=v(this.opts.solutionFieldName,this.lang,s.message),this.makeButtonStart(),this.opts.errorCallback({code:"error_getting_puzzle",description:s.toString(),error:s});const a=this.e.dataset["callback-error"];a&&window[a](this);return}this.workerGroup.start(this.puzzle)}handleDone(t){this.valid=!0;const s=`${this.puzzle.signature}.${this.puzzle.base64}.${Z(t.solution)}.${Z(t.diagnostics)}`;return this.e.innerHTML=ye(this.opts.solutionFieldName,this.lang,s,t),this.needsReInit=!0,s}destroy(){this.workerGroup.terminateWorkers(),this.needsReInit=!1,this.hasBeenStarted=!1,this.e&&(this.e.remove(),delete this.e),this.hasBeenDestroyed=!0}reset(){if(this.hasBeenDestroyed){console.error("FriendlyCaptcha widget has been destroyed, it can not be used anymore");return}this.workerGroup.terminateWorkers(),this.needsReInit=!1,this.hasBeenStarted=!1,this.init(this.opts.startMode==="auto"||this.e.dataset.start==="auto")}}const ee=A.forwardRef(({onCaptchaSolved:r,onCaptchaError:t},s)=>{const i=A.useRef(),[a,o]=A.useState(!1),c=R(),g=A.useRef(null),m=A.useCallback(h=>{r==null||r(h)},[r]),I=A.useCallback(h=>{F(p=>{p.setTag("captcha","friendly-captcha"),ae(h)}),t==null||t(h)},[t]);return A.useImperativeHandle(s,()=>({reset:()=>{var h;(h=i.current)==null||h.reset()}}),[]),A.useEffect(()=>(!i.current&&g.current&&a&&u().friendlyCaptcha.enabled&&(i.current=new We(g.current,{startMode:"auto",doneCallback:m,errorCallback:I,language:c.locale})),()=>{var h;i.current!==void 0&&((h=i.current)==null||h.reset())}),[m,I,c,g,a]),u().friendlyCaptcha.enabled?e.jsx(n.Field,{name:"captcha",children:e.jsx(n.Control,{children:e.jsx("div",{ref:h=>{g.current=h,o(!0)},className:"frc-captcha","data-sitekey":u().friendlyCaptcha.sitekey,style:{marginTop:"1rem"}})})}):null}),qe=(r,t)=>[{id:"password min length",isMet:r.length>=t,content:e.jsx(l,{values:{minLength:t},id:"password min length",values:{minLength:t}})},{id:"password missing uppercase",isMet:/[A-Z]/.test(r),content:e.jsx(l,{id:"password missing uppercase"})},{id:"password missing number",isMet:/[0-9]/.test(r),content:e.jsx(l,{id:"password missing number"})}],te=({passwordValue:r,minLength:t,visible:s})=>{if(!s)return null;const i=qe(r,t).filter(a=>!a.isMet);return i.length===0?null:e.jsx("div",{className:"password-requirements",children:i.map(a=>e.jsx("div",{className:"has-text-danger",children:a.content},a.id))})},re=d.object({name:d.string().trim().min(1).max(u().users.signup.firstName.maxLength).trim(),lastname:d.string().trim().min(1).max(u().users.signup.lastName.maxLength).trim(),email:d.str
9ing().email(),timeZone:d.string().optional(),invitationHash:d.string()}),$e=re.extend({sso:d.literal(!1),password:d.string().min(u().users.signup.password.minLength).max(u().users.signup.password.maxLength).regex(/[A-Z]/,{message:f._({id:"password missing uppercase"})}).regex(/[0-9]/,{message:f._({id:"password missing number"})}),passwordConfirmation:d.string()}),Xe=re.extend({sso:d.literal(!0)}),et=de.discriminatedUnion("sso",[$e,Xe]).refine(r=>r.sso?!0:r.password===r.passwordConfirmation,{message:f._({id:"password must match"}),path:["passwordConfirmation"]}),tt=ge(` 10 query GetInvitation($invitationHash: String!) { 11 invitation(invitationHash: $invitationHash) { 12 company 13 email 14 invitationHash 15 SSO 16 } 17 } 18`),rt=()=>{const t=V().get("invitationHash"),{data:s,loading:i}=ce(tt,{variables:{invitationHash:t||""},fetchPolicy:"network-only",skip:!t,context:{endpoint:"/"}}),a=s==null?void 0:s.invitation;return A.useMemo(()=>({invitation:a,loading:i&&!s}),[s,a,i])},st=({errorCode:r})=>{const{invitation:t,loading:s}=rt(),[i,a]=A.useState(null),[o,c]=A.useState(!1),g=A.useRef(null),m=A.useRef(null),{track:I}=U(),{locale:h}=R(),p=K({schema:et,defaultValues:{name:"",lastname:"",password:"",passwordConfirmation:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,email:(t==null?void 0:t.email)??"",invitationHash:(t==null?void 0:t.invitationHash)??"",sso:!!(t!=null&&t.SSO)},mode:"all"}),b=p.watch("password")??"",L=u().users.signup.password.minLength,M=p.formState.submitCount>0;A.useEffect(()=>{p.reset({name:"",lastname:"",password:"",passwordConfirmation:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,email:(t==null?void 0:t.email)??"",invitationHash:(t==null?void 0:t.invitationHash)??"",sso:!!(t!=null&&t.SSO)})},[p,t]);const z=A.useCallback(async y=>{var E;await I({event:"Signed Up",properties:{type:"invitation",first_name:y.name,last_name:y.lastname,email:y.email,username:y.email,companyName:t==null?void 0:t.company,locale:h}}),(E=m.current)==null||E.submit(),setTimeout(()=>{var P;(P=g.current)==null||P.reset()},100),c(!0)},[t==null?void 0:t.company,h,I]),C=A.useCallback(y=>{F(E=>{E.setContext("form",y),G("Register form invalid","warning")})},[]),k=A.useCallback(y=>{a(y)},[]);return s?null:t?e.jsxs(e.Fragment,{children:[e.jsx(S,{size:3,className:"has-text-weight-normal",children:e.jsx(l,{id:"you are joining to company at hireflix",values:{0:t.company},components:{0:e.jsx("b",{})}})}),e.jsxs(n,{formRef:m,name:"register-form",onSubmit:z,onInvalid:C,form:p,children:[r&&e.jsx(O,{color:"warning",children:e.jsx(l,{id:x[r]||x.SERVER_ERROR})}),e.jsx(n.Field,{name:"timeZone",children:e.jsx(n.Input,{type:"hidden"})}),e.jsxs(n.Field,{name:"email",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"your email"})}),e.jsx(n.Control,{children:e.jsx(n.Input,{disabled:!0,size:"medium",value:t==null?void 0:t.email})})]}),e.jsx(n.Field,{name:"invitationHash",children:e.jsx(n.Input,{type:"hidden",value:t==null?void 0:t.invitationHash})}),e.jsx(n.Field,{name:"email",children:e.jsx(n.Input,{type:"hidden",value:t==null?void 0:t.email,name:"email"})}),e.jsxs(n.Field,{name:"name",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"your name"})}),e.jsxs(w,{breakpoint:"mobile",children:[e.jsxs(w.Column,{mobile:{size:"half"},size:"half",children:[e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"text",readOnly:o,placeholder:x.firstName,name:"name"})}),e.jsx(n.Help,{})]}),e.jsx(w.Column,{mobile:{size:"half"},size:"half",children:e.jsxs(n.Field,{name:"lastname",children:[e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"text",readOnly:o,placeholder:x.lastName,name:"lastname"})}),e.jsx(n.Help,{})]})})]})]}),!t.SSO&&e.jsxs(e.Fragment,{children:[e.jsxs(n.Field,{name:"password",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"choose password"})}),e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"password",readOnly:o,placeholder:"********",name:"password"})}),e.jsx(n.Help,{formErrorHasPriority:!1,color:void 0,children:e.jsx(te,{passwordValue:b,minLength:L,visible:M})})]}),e.jsxs(n.Field,{name:"passwordConfirmation",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"repeat password"})}),e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"password",readOnly:o,placeholder:"********",name:"passwordConfirmation"})}),e.jsx(n.Help,{})]})]}),e.jsx(ee,{ref:g,onCaptchaSolved:k}),e.jsx(Q,{children:e.jsx(Y,{})}),e.jsx(Q,{children:e.jsx(T,{type:"submit",loading:o,disabled:!i&&u().friendlyCaptcha.enabled,color:"primary",children:e.jsx(l,{id:"create account"})})})]})]}):e.jsx(S,{size:3,className:"has-text-weight-normal",children:e.jsx(l,{id:"ð Sorry, this inviation link has expired or it doesn't exist"})})},nt=d.object({name:d.string().trim().min(1).max(u().users.signup.firstName.maxLength).trim(),lastname:d.string().trim().min(1).max(u().users.signup.lastName.maxLength).trim(),companyName:d.string().trim().min(1).max(u().companies.signup.name.maxLength).trim(),email:d.str
18ing().email(),timeZone:d.string().optional(),password:d.string().min(u().users.signup.password.minLength).max(u().users.signup.password.maxLength).regex(/[A-Z]/,{message:f._({id:"password missing uppercase"})}).regex(/[0-9]/,{message:f._({id:"password missing number"})}),passwordConfirmation:d.string()}).refine(r=>r.password===r.passwordConfirmation,{message:f._({id:"password must match"}),path:["passwordConfirmation"]}),it=({errorCode:r})=>{const t=K({schema:nt,defaultValues:{name:"",lastname:"",password:"",passwordConfirmation:"",companyName:"",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,email:""},mode:"all"}),[s,i]=A.useState(null),[a,o]=A.useState(!1),c=A.useRef(null),{track:g}=U(),{locale:m}=R(),I=A.useRef(null),h=t.watch("password")??"",p=u().users.signup.password.minLength,b=t.formState.submitCount>0,L=A.useCallback(async C=>{var k,y;await g({event:"Signed Up",properties:{type:"organic",first_name:C.name,last_name:C.lastname,email:C.email,username:C.email,companyName:C.companyName,locale:m,affiliateId:window.tolt_referral}}),window.tolt_referral&&((k=window.tolt)==null||k.signup(C.email)),(y=c.current)==null||y.submit(),setTimeout(()=>{var E;(E=I.current)==null||E.reset()},100),o(!0)},[m,g]),M=A.useCallback(C=>{o(!1),F(k=>{k.setContext("form",C),G("Registration (no invitation) failed")})},[]),z=A.useCallback(C=>{i(C)},[]);return e.jsxs(e.Fragment,{children:[e.jsx(S,{size:2,children:e.jsx(l,{id:"register"})}),e.jsxs(n,{formRef:c,name:"register-form",onSubmit:L,onInvalid:M,form:t,children:[r&&e.jsx(O,{color:"warning",children:e.jsx(l,{id:x[r]||x.SERVER_ERROR})}),e.jsx(n.Field,{name:"timeZone",children:e.jsx(n.Input,{type:"hidden"})}),e.jsxs(n.Field,{name:"name",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"your name"})}),e.jsxs(w,{breakpoint:"mobile",children:[e.jsxs(w.Column,{mobile:{size:"half"},size:"half",children:[e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"text",readOnly:a,placeholder:x.firstName,name:"name"})}),e.jsx(n.Help,{})]}),e.jsx(w.Column,{mobile:{size:"half"},size:"half",children:e.jsxs(n.Field,{name:"lastname",children:[e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"text",readOnly:a,placeholder:x.lastName,name:"lastname"})}),e.jsx(n.Help,{})]})})]})]}),e.jsxs(n.Field,{name:"companyName",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"company name"})}),e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"text",readOnly:a,placeholder:"e.g. Acme Inc.",name:"companyName"})}),e.jsx(n.Help,{})]}),e.jsxs(n.Field,{name:"email",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"your email"})}),e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"email",readOnly:a,placeholder:"e.g. [email protected]",name:"email"})}),e.jsx(n.Help,{})]}),e.jsxs(n.Field,{name:"password",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"choose password"})}),e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"password",readOnly:a,placeholder:"********",name:"password"})}),e.jsx(n.Help,{formErrorHasPriority:!1,color:void 0,children:e.jsx(te,{passwordValue:h,minLength:p,visible:b})})]}),e.jsxs(n.Field,{name:"passwordConfirmation",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"repeat password"})}),e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"password",readOnly:a,placeholder:"********",name:"passwordConfirmation"})}),e.jsx(n.Help,{})]}),e.jsx(ee,{ref:I,onCaptchaSolved:z}),e.jsx(Q,{children:e.jsx(Y,{})}),e.jsx(Q,{className:"register-submit",children:e.jsx(T,{type:"submit",loading:a,disabled:!s&&u().friendlyCaptcha.enabled,color:"primary",fullwidth:!0,children:e.jsx(l,{id:"create account"})})})]}),e.jsx(he,{})]})},at=d.object({name:d.string().trim().min(1).max(u().users.signup.firstName.maxLength).trim(),lastname:d.string().trim().min(1).max(u().users.signup.lastName.maxLength).trim(),companyName:d.string().trim().min(1).max(u().companies.signup.name.maxLength).trim(),email:d.string().optional(),social:d.literal("1"),timeZone:d.string().optional()}),ot=({errorCode:r})=>{const t=V(),s=t.get("email")??"",i=K({schema:at,defaultValues:{name:t.get("name")??"",lastname:t.get("lastname")??"",companyName:"",email:s,social:"1",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},mode:"all"}),[a,o]=A.useState(!1),c=A.useRef(null),{track:g}=U(),{locale:m}=R(),I=A.useCallback(async p=>{var b;await g({event:"Signed Up",properties:{type:"social",first_name:p.name,last_name:p.lastname,email:s,username:s,companyName:p.companyName,locale:m}}),(b=c.current)==null||b.submit(),o(!0)},[s,m,g]),h=A.useCallback(p=>{o(!1),F(b=>{b.setContext("form",p),G("Registration (social) failed")})},[]);return e.jsxs(e.Fragment,{children:[e.jsx(S,{size:2,children:e.jsx(l,{id:"register"})}),e.jsx(Q,{className:"register-social-explainer",children:e.jsx(l,{id:"social signup explainer"})}),e.jsxs(n,{formRef:c,name:"register-form",onSubmit:I,onInvalid:h,form:i,children:[r&&e.jsx(O,{color:"warning",children:e.jsx(l,{id:x[r]||x.SERVER_ERROR})}),e.jsx(n.Field,{name:"social",children:e.jsx(n.Input,{type:"hidden"})}),e.jsx(n.Field,{name:"timeZone",children:e.jsx(n.Input,{type:"hidden"})}),e.jsxs(n.Field,{name:"email",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"your email"})}),e.jsx(n.Control,{children:e.jsx(n.Input,{disabled:!0,size:"medium",value:s})})]}),e.jsx(n.Field,{name:"email",children:e.jsx(n.Input,{type:"hidden",value:s,name:"email"})}),e.jsxs(n.Field,{name:"name",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"your name"})}),e.jsxs(w,{breakpoint:"mobile",children:[e.jsxs(w.Column,{mobile:{size:"half"},size:"half",children:[e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"text",readOnly:a,placeholder:x.firstName,name:"name"})}),e.jsx(n.Help,{})]}),e.jsx(w.Column,{mobile:{size:"half"},size:"half",children:e.jsxs(n.Field,{name:"lastname",children:[e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"text",readOnly:a,placeholder:x.lastName,name:"lastname"})}),e.jsx(n.Help,{})]})})]})]}),e.jsxs(n.Field,{name:"companyName",children:[e.jsx(n.Label,{children:e.jsx(l,{id:"company name"})}),e.jsx(n.Control,{children:e.jsx(n.Input,{size:"medium",type:"text",readOnly:a,placeholder:"e.g. Acme Inc.",name:"companyName"})}),e.jsx(n.Help,{})]}),e.jsx(Q,{children:e.jsx(Y,{})}
18),e.jsx(Q,{children:e.jsx(T,{type:"submit",loading:a,color:"primary",children:e.jsx(l,{id:"create account"})})})]})]})},pt=()=>{const r=V(),t=!!r.get("invitationHash"),s=r.get("social")==="1",i=r.get("error")??"";return e.jsx(Ae,{className:"register-component",size:"fullheight",backgroundColor:"white",children:e.jsx(oe,{breakpoint:"fluid",className:"is-paddingless is-marginless",children:e.jsxs(w,{children:[e.jsx(w.Column,{size:"one-third",className:"sidebar",children:e.jsxs("div",{className:"inner is-full-height-tablet",children:[e.jsx(le,{to:"/login",children:e.jsx("img",{src:ue,alt:"hireflix logo",style:{maxHeight:50}})}),e.jsx(S,{className:"title",style:{marginTop:40},children:e.jsx(l,{id:"create your account"})}),e.jsx("footer",{className:"sidebar-footer",children:e.jsx("p",{children:e.jsx(l,{id:"hireflix copyright",values:{0:new Date().getFullYear()}})})})]})}),e.jsx(w.Column,{className:"is-full-height is-paddingless",children:e.jsxs("div",{className:"main",children:[t&&e.jsx(st,{errorCode:i}),s&&!t&&e.jsx(ot,{errorCode:i}
18),!t&&!s&&e.jsx(it,{errorCode:i})]})})]})})})};export{pt as default}; 19//# sourceMappingURL=D6UCFrCmnB.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.