PageSourceSearch

https://pockethost.io/_app/immutable/chunks/ClwsNX0E2.js

js pockethost.io collected 2026-10-04 00:16:25 UTC 9,405 bytes, 2 lines download raw bytes

1import{$ as e,B as t,Ct as n,G as r,H as i,I as a,K as o,L as s,Q as c,R as l,St as u,T as d,U as f,V as p,W as ee,Y as m,a as h,at as g,c as _,ct as v,et as y,f as b,g as x,gt as S,h as C,lt as w,mt as T,ot as E,pt as D,st as O,u as k,v as A,vt as j,x as M,yt as te,z as N}from"./CzsObDY8.js";import"./wbzwmYu6.js";import"./xihTtKlq.js";import"./C5qy-xbg.js";import{t as P}from"./CmsztqYw.js";import{n as F}from"./DzK1Iyhi.js";import{n as I,r as L}from"./CJQRXGuC2.js";import{r as R,t as ne}from"./Cjx7XaVN2.js";var re=t(`<p class="auth-form-lead">Log in to continue checkout for <strong> </strong>.</p>`),z=t(`<button type="button" class="auth-field-toggle" tabindex="-1"><wa-icon></wa-icon></button>`,2),B=t(`<wa-callout><wa-icon></wa-icon> </wa-callout>`,2),V=t(`<span class="inline-block h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white"></span>`),H=t(` <wa-icon></wa-icon>`,3),U=t(`<form class="auth-form" method="post" autocomplete="on"><h2 class="auth-form-title">Log In</h2> <!> <div class="auth-field-group"><label class="auth-label" for="email">Email</label> <input type="email" id="email" name="email" class="auth-field" placeholder="[email protected]" autocomplete="username" required=""/></div> <div class="auth-field-group"><label class="auth-label" for="password">Password</label> <div class="auth-field-wrap"><input id="password" name="password" class="auth-field auth-field--password" placeholder="Password" autocomplete="current-password" required=""/> <!></div> <div class="auth-link-row"><a href="/login/password-reset" class="auth-link">Forgot Password?</a></div></div> <!> <button type="submit" class="auth-submit"><!></button></form> <div class="auth-footer">Don't have an account? <button type="button" class="auth-footer-button">Create A New Account</button></div>`,1);function W(t,i){te(i,!1);let d=v(),p=v(),h=v(),{authViaEmail:S}=P(),T=_(i,`isSignUpView`,12,!0),D=_(i,`checkoutPvId`,8,``),N=v(``),F=v(``),L=v(``),R=v(!1),W=v(!1),G=()=>{T(!T())},K=async e=>{if(e.preventDefault(),!(!o(N)||!o(F))){w(W,!0),w(L,``),w(R,!1);try{if(await S(o(N),o(F)),D()){await ne(D(),e=>{w(L,e)});return}window.location.href=`/dashboard`}catch(e){w(L,`Something went wrong with logging you in. ${e.message}`)}w(W,!1)}};c(()=>(o(N),o(F)),()=>{w(d,o(N).length===0||o(F).length===0)}),c(()=>(r(D()),I),()=>{w(p,D()?I(D()):``)}),c(()=>r(D()),()=>{w(h,D()?`Log in & subscribe`:`Log In`)}),e(),k();var q=U(),J=E(q),ie=O(g(J),2),ae=e=>{var t=re(),r=O(g(t)),i=g(r,!0);n(r),u(),n(t),y(()=>s(i,o(p))),l(e,t)};a(ie,e=>{D()&&e(ae)});var Y=O(ie,2),oe=O(g(Y),2);C(oe),n(Y);var se=O(Y,2),X=O(g(se),2),Z=g(X);C(Z);var Q=O(Z,2),ce=e=>{var t=z(),r=g(t);y(()=>A(r,`name`,o(R)?`eye-slash`:`eye`)),n(t),y(()=>x(t,`aria-label`,o(R)?`Hide password`:`Show password`)),f(`click`,t,()=>w(R,!o(R))),l(e,t)};a(Q,e=>{o(F),m(()=>o(F).length>0)&&e(ce)}),n(X),u(2),n(se);var le=O(se,2),ue=e=>{var t=B();A(t,`variant`,`danger`),M(t,1,`wa-callout-padded`);var r=g(t);A(r,`slot`,`icon`),A(r,`name`,`circle-xmark`);var i=O(r);n(t),y(()=>s(i,` ${o(L)??``}`)),l(e,t)};a(le,e=>{o(L)&&e(ue)});var $=O(le,2),de=g($),fe=e=>{l(e,V())},pe=e=>{var t=H(),n=E(t);A(O(n),`name`,`arrow-right`),y(()=>s(n,`${o(h)??``} `)),l(e,t)};a(de,e=>{o(W)?e(fe):e(pe,-1)}),n($),n(J);var me=O(J,2),he=O(g(me));n(me),y(()=>{x(Z,`type`,o(R)?`text`:`password`),$.disabled=o(d)||o(W)}),ee(`submit`,J,K),b(oe,()=>o(N),e=>w(N,e)),b(Z,()=>o(F),e=>w(F,e)),f(`click`,he,G),l(t,q),j()}i([`click`]);var G=t(`<div class="p-6"><div class="text-center"><span class="inline-block w-8 h-8 border-2 border-white/30 border-t-white rounded-full animate-spin mb-4"></span> <div><h2 class="mb-12 font-bold text-white text-2xl">Creating Your New Instance...</h2> <p class="italic"></p></div></div></div>`);function K(e){var t=G(),r=g(t),i=O(g(r),2),a=O(g(i),2);a.textContent=`Did you know it takes fourteen sentient robots to create each instance on PocketHost?`,n(i),n(r),n(t),l(e,t)}var q=t(`<div><!></div>`),J=t(`<p class="auth-form-lead">You chose <strong> </strong>. We create your account and first instance, then send you to secure
2          checkout.</p>`),ie=t(`<span class="text-error">Please enter an instance name</span>`),ae=t(`<span class="text-success"> </span>`),Y=t(`<span class="text-error"> </span>`),oe=t(`<wa-callout><wa-icon></wa-icon> </wa-callout>`,2),se=t(`<div><form class="auth-form"><h2 class="auth-form-title"><!></h2> <!> <div class="auth-field-group"><label class="auth-label" for="instance">Instance Name</label> <div class="flex gap-2"><wa-input></wa-input> <wa-button>
2<wa-icon></wa-icon></wa-button></div> <div class="text-sm text-white/70"><!></div></div> <div class="auth-field-group"><label class="auth-label" for="email">Email</label> <wa-input></wa-input></div> <div class="auth-field-group"><label class="auth-label" for="password">Password</label> <wa-input></wa-input></div> <!> <button type="submit" class="auth-submit"> <wa-icon></wa-icon></button></form> <div class="auth-footer">Already have an account? <button type="button" class="auth-footer-button">Log in</button></div></div>`,2);function X(t,i){te(i,!1);let b=()=>T(U,`$instanceInfo`,C),x=()=>T(H,`$instanceNameField`,C),[C,L]=D(),ne=v(),re=v(),z=_(i,`isSignUpView`,12,!1),B=_(i,`checkoutPvId`,8,``),V=v(!1),H=S(``),U=S({name:``,fetching:!0,available:!1}),W=async()=>{U.update(e=>({...e,fetching:!0}));let{instanceName:e}=await P().client.send(`/api/signup`,{});U.update(t=>({...t,available:!0,name:e,fetching:!1})),H.set(e)};h(()=>{H.subscribe(async e=>{if(e!==b().name)try{U.update(e=>({...e,fetching:!0})),await P().client.send(`/api/signup?name=${encodeURIComponent(e)}`,{}),U.update(t=>({...t,fetching:!1,available:!0,name:e}))}catch{U.update(t=>({...t,fetching:!1,available:!1,name:e}))}})}),h(()=>{W()});let G=v(``),X=v(``),Z=v(``),Q=v(!0),ce=()=>{W()},le=()=>{z(!z())},ue=async e=>{e.preventDefault(),w(Q,!0),w(V,!0),w(Z,``),await R(o(G),o(X),b().name,e=>{w(Z,e)},B()||void 0),w(Q,!1),setTimeout(()=>{w(V,!1)},1e3)};c(()=>
2(o(G),o(X),b()),()=>{w(Q,o(G).length===0||o(X).length===0||b().name.length===0||!b().available)}),c(()=>(r(B()),I),()=>{w(ne,B()?I(B()):``)}),c(()=>r(B()),()=>{w(re,B()?`Create account & subscribe`:`Create`)}),e(),k();var $=N(),de=E($),fe=e=>{var t=q();K(g(t),{}),n(t),d(1,t,()=>F,()=>({delay:400})),d(2,t,()=>F),l(e,t)},pe=e=>{var t=se(),r=g(t),i=g(r),c=g(i),h=e=>{l(e,p(`Create your account`))},_=e=>{l(e,p(`Create your first Instance, fast.`))};a(c,e=>{B()?e(h):e(_,-1)}),n(i);var v=O(i,2),S=e=>{var t=J(),r=O(g(t)),i=g(r,!0);n(r),u(),n(t),y(()=>s(i,o(ne))),l(e,t)};a(v,e=>{B()&&e(S)});var C=O(v,2),T=O(g(C),2),E=g(T);A(E,`type`,`text`),A(E,`placeholder`,`instance-name`),y(()=>A(E,`value`,x())),A(E,`id`,`instance`),M(E,1,`w-full`);var D=O(E,2);A(D,`type`,`button`),A(D,`variant`,`neutral`),A(D,`appearance`,`outline`),A(g(D),`name`,`rotate`),n(D),n(T);var k=O(T,2),j=g(k),te=e=>{l(e,ie())},N=e=>{l(e,p(`Verifying...`))},P=e=>{var t=ae(),r=g(t);n(t),y(()=>s(r,`https://${(b(),m(()=>b().name))??``}.pockethost.io ✔︎`)),l(e,t)},I=e=>{var t=Y(),r=g(t);n(t),y(()=>s(r,`https://${(b(),m(()=>b().name))??``}.pockethost.io ❌`)),l(e,t)};a(j,e=>{x()===``?e(te):(b(),m(()=>b().fetching)?e(N,1):(b(),m(()=>b().available)?e(P,2):(b(),m(()=>!b().available)&&e(I,3))))}),n(k),n(C);var L=O(C,2),R=O(g(L),2);A(R,`type`,`email`),A(R,`id`,`email`),A(R,`placeholder`,`[email protected]`),A(R,`autocomplete`,`email`),y(()=>A(R,`value`,o(G))),A(R,`required`,!0),M(R,1,`w-full`),n(L);var z=O(L,2),V=O(g(z),2);A(V,`type`,`password`),A(V,`id`,`password`),A(V,`placeholder`,`Password`),A(V,`autocomplete`,`new-password`),y(()=>A(V,`value`,o(X))),A(V,`required`,!0),M(V,1,`w-full`),n(z);var U=O(z,2),W=e=>{var t=oe();A(t,`variant`,`danger`),M(t,1,`wa-callout-padded`);var r=g(t);A(r,`slot`,`icon`),A(r,`name`,`circle-xmark`);var i=O(r);n(t),y(()=>s(i,` ${o(Z)??``}`)),l(e,t)};a(U,e=>{o(Z)&&e(W)});var K=O(U,2),q=g(K);A(O(q),`name`,`arrow-right`),n(K),n(r);var $=O(r,2),de=O(g($));n($),n(t),y(()=>{K.disabled=o(Q),s(q,`${o(re)??``} `)}),ee(`submit`,r,ue),f(`input`,E,e=>H.set(e.currentTarget.value)),f(`click`,D,ce),f(`input`,R,e=>w(G,e.currentTarget.value)),f(`input`,V,e=>w(X,e.currentTarget.value)),f(`click`,de,le),d(1,t,()=>F,()=>({delay:400})),d(2,t,()=>F),l(e,t)};a(de,e=>{o(V)?e(fe):e(pe,-1)}),l(t,$),j(),L()}i([`input`,`click`]);var Z=t(`<div><!></div>`),Q=t(`<div class="auth-card w-full max-w-md"><!> <!></div>`);function ce(e,t){te(t,!1);let r=_(t,`login`,8,!1),i=v(!r()),s=v(``);h(()=>{new URLSearchParams(window.location.search).get(`view`)===`login`&&w(i,!1),w(s,L(window.location.search))}),k();var c=Q(),u=g(c),f=e=>{var t=N(),c=E(t),u=e=>{X(e,{get checkoutPvId(){return o(s)},get isSignUpView(){return o(i)},set isSignUpView(e){w(i,e)},$$legacy:!0})},f=e=>{var t=Z();X(g(t),{get checkoutPvId(){return o(s)},get isSignUpView(){return o(i)},set isSignUpView(e){w(i,e)},$$legacy:!0}),n(t),d(1,t,()=>F,()=>({delay:400})),d(2,t,()=>F),l(e,t)};a(c,e=>{r()?e(u):e(f,-1)}),l(e,t)};a(u,e=>{o(i)&&e(f)});var p=O(u,2),ee=e=>{var t=N(),c=E(t),u=e=>{W(e,{get checkoutPvId(){return o(s)},get isSignUpView(){return o(i)},set isSignUpView(e){w(i,e)},$$legacy:!0})},f=e=>{var t=Z();W(g(t),{get checkoutPvId(){return o(s)},get isSignUpView(){return o(i)},set isSignUpView(e){w(i,e)},$$legacy:!0}),n(t),d(1,t,()=>F,()=>({delay:400})),d(2,t,()=>F),l(e,t)};a(c,e=>{r()?e(u):e(f,-1)}),l(e,t)};a(p,e=>{o(i)||e(ee)}),n(c),l(e,c),j()}export{ce as t};

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.