PageSourceSearch

https://dannykinz.com/_nuxt/ByamwK2W.js

js dannykinz.com collected 2026-10-08 06:02:28 UTC 1,904 bytes, 1 lines download raw bytes

1import{Ct as e,Et as t,Gt as n,Ot as r,Zt as i,cn as a,en as o,gt as s,ht as c,mt as l,pn as u,rn as d,t as f,wt as p,xt as m,zt as h}from"./DgRgCsqZ.js";var g={class:`reveal post_newsletter`},_={key:0,class:`newsletter_success`,role:`status`},v=[`disabled`],y=[`disabled`],b={key:0,class:`admin_error`,role:`alert`},x=Object.assign(r({__name:`NewsletterForm`,setup(r){let x=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,S=d(``),C=d(!1),w=d(`idle`),T=d(``),E=async()=>{let e=S.value.trim().toLowerCase();if(!x.test(e)){T.value=`Enter a valid email address.`,w.value=`error`;return}C.value=!0,T.value=``;try{let{error:t}=await f().from(`subscribers`).insert({email:e});if(t&&!t.message.toLowerCase().includes(`duplicate`))throw Error(t.message);w.value=`done`}catch{T.value=`Something went wrong — try again in a moment.`,w.value=`error`}finally{C.value=!1}};return(r,d)=>{let f=n(`scramble-hover`),x=n(`reveal`);return i((h(),p(`section`,g,[d[1]||=m(`h2`,{class:`post_newsletter_title`},`Newsletter`,-1),d[2]||=m(`p`,{class:`post_newsletter_text`},` I write about AI, design, and building better products. If you want practical ideas in your inbox, I'd love to have you sign up. `,-1),a(w)===`done`?(h(),p(`p`,_,` You're in — thanks for subscribing. `)):(h(),p(s,{key:1},[m(`form`,{class:`post_newsletter_form`,method:`post`,novalidate:``,onSubmit:c(E,[`prevent`])},[i(m(`input`,{"onUpdate:modelValue":d[0]||=e=>o(S)?S.value=e:null,type:`email`,class:`post_newsletter_input`,placeholder:`Your fancy email`,"aria-label":`Email address`,autocomplete:`email`,autocapitalize:`off`,spellcheck:`false`,maxlength:`120`,required:``,disabled:a(C)},null,8,v),[[l,a(S)]]),i((h(),p(`button`,{type:`submit`,class:`button_base button_primary`,disabled:a(C)},[t(u(a(C)?`Subscribing…`:`Subscribe`),1)],8,y)),[[f]])],32),a(w)===`error`?(h(),p(`p`,b,u(a(T)),1)):e(``,!0)],64))])),[[x]])}}}),{__name:`NewsletterForm`});export{x 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.