PageSourceSearch

https://herzlich.app/assets/hooks-CKyvNYax.js

js herzlich.app collected 2026-10-02 15:59:44 UTC 4,159 bytes, 1 lines download raw bytes

1import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{d as t}from"./animation-BmfWTHNX.js";import{t as n}from"./useTranslation-DAhprYe0.js";import{l as r,r as i}from"./index-CCkFuITF.js";import{r as a}from"./vendor-BFRf0H0a.js";import{u as o}from"./chunk-OB3PAWPO-D6lZbUZa.js";var s=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,c=e=>s.test(e.trimRight()),l=a(),u=e(t(),1),d=e=>{let t=(0,l.c)(15),i;t[0]===e?i=t[1]:(i=e===void 0?{}:e,t[0]=e,t[1]=i);let{email:a}=i,o=a===void 0?r.isDevelopmentMode?`[email protected]`:``:a,[s,d]=(0,u.useState)(o),[f,p]=(0,u.useState)(``),{EMPTY_EMAIL_INPUT:m,NOT_VALID_EMAIL:h}=n(),g;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>d(e.currentTarget.value),t[2]=g):g=t[2];let _=g,v;t[3]!==m||t[4]!==s?(v=()=>s!==``||(p(m),!1),t[3]=m,t[4]=s,t[5]=v):v=t[5];let y=v,b;t[6]!==h||t[7]!==s?(b=()=>c(s)?!0:(p(h),!1),t[6]=h,t[7]=s,t[8]=b):b=t[8];let x=b,S=o!==s,C;return t[9]!==s||t[10]!==f||t[11]!==S||t[12]!==y||t[13]!==x?(C={email:s,emailError:f,isEmailChanged:S,setEmail:d,setEmailError:p,isEmailValid:x,isEmailFilled:y,handleChangeEmail:_},t[9]=s,t[10]=f,t[11]=S,t[12]=y,t[13]=x,t[14]=C):C=t[14],C},f=()=>{let e=(0,l.c)(13),t=o(),n;e[0]===t?n=e[1]:(n=async()=>await t(i.paths.Shop.root),e[0]=t,e[1]=n);let r=n,a;e[2]===t?a=e[3]:(a=async()=>await t(i.paths.Shop.premium),e[2]=t,e[3]=a);let s=a,c;e[4]===t?c=e[5]:(c=async()=>await t(i.paths.Shop.turboRocket),e[4]=t,e[5]=c);let u=c,d;e[6]===t?d=e[7]:(d=async e=>await t(i.paths.Shop.selectMethod.replace(`:id`,e)),e[6]=t,e[7]=d);let f=d,p;return e[8]!==r||e[9]!==s||e[10]!==f||e[11]!==u?(p={navigateToShop:r,navigateToShopPremium:s,navigateToShopTurboRocket:u,navigateToShopSelectProduct:f},e[8]=r,e[9]=s,e[10]=f,e[11]=u,e[12]=p):p=e[12],p},p=()=>{let e=(0,l.c)(7),t=o(),n;e[0]===t?n=e[1]:(n=async()=>await t(i.paths.Messages.root),e[0]=t,e[1]=n);let r=n,a;e[2]===t?a=e[3]:(a=async e=>await t(i.paths.Messages.self.replace(`:id`,e)),e[2]=t,e[3]=a);let s=a,c;return e[4]!==r||e[5]!==s?(c={navigateToMessages:r,navigateToMessagesSelf:s},e[4]=r,e[5]=s,e[6]=c):c=e[6],c},m=()=>{let e=(0,l.c)(7),t=o(),n;e[0]===t?n=e[1]:(n=async()=>await t(i.paths.Profile.root),e[0]=t,e[1]=n);let r=n,a;e[2]===t?a=e[3]:(a=async(e,n)=>t(i.paths.Profile.stranger.replace(`:id`,e),n),e[2]=t,e[3]=a);let s=a,c;return e[4]!==r||e[5]!==s?(c={navigateToProfile:r,navigateToProfileStranger:s},e[4]=r,e[5]=s,e[6]=c):c=e[6],c},h=()=>{let e=(0,l.c)(4),t=o(),n;e[0]===t?n=e[1]:(n=async()=>await t(i.paths.Support.tickets.root),e[0]=t,e[1]=n);let r=n,a;return e[2]===r?a=e[3]:(a={navigateToSupportTickets:r},e[2]=r,e[3]=a),a},g=()=>{let e=(0,l.c)(4),t=o(),n;e[0]===t?n=e[1]:(n=async e=>await t(i.paths.User.search.replace(`:id`,e)),e[0]=t,e[1]=n);let r=n,a;return e[2]===r?a=e[3]:(a={navigateToUserSearch:r},e[2]=r,e[3]=a),a},_=()=>{let e=(0,l.c)(4),t=o(),n;e[0]===t?n=e[1]:(n=async e=>await t(i.paths.Event.root.replace(`:id`,e)),e[0]=t,e[1]=n);let r=n,a;return e[2]===r?a=e[3]:(a={navigateToEventRoot:r},e[2]=r,e[3]=a),a},v=()=>{let e=(0,l.c)(10),t=o(),n;e[0]===t?n=e[1]:(n=async e=>await t(i.paths.Auth.register,{state:e?{email:e}:void 0}),e[0]=t,e[1]=n);let r=n,a;e[2]===t?a=e[3]:(a=async()=>await t(i.paths.Auth.login),e[2]=t,e[3]=a);let s=a,c;e[4]===t?c=e[5]:(c=async()=>await t(i.paths.Auth.forgotPassword),e[4]=t,e[5]=c);let u=c,d;return e[6]!==u||e[7]!==s||e[8]!==r?(d={navigateToAuthRegister:r,navigateToAuthLogin:s,navigateToAuthForgetPassword:u},e[6]=u,e[7]=s,e[8]=r,e[9]=d):d=e[9],d},y=()=>{let e=(0,l.c)(4),t=o(),n;e[0]===t?n=e[1]:(n=async()=>await t(-1),e[0]=t,e[1]=n);let r=n,i;return e[2]===r?i=e[3]:(i={navigateBack:r},e[2]=r,e[3]=i),i},b=()=>{let e=(0,l.c)(4),t=o(),n;e[0]===t?n=e[1]:(n=async()=>await t(i.paths.Home.root),e[0]=t,e[1]=n);let r=n,a;return e[2]===r?a=e[3]:(a={navigateToHome:r},e[2]=r,e[3]=a),a},x=()=>{let e=(0,l.c)(4),t=o(),n;e[0]===t?n=e[1]:(n=async()=>await t(i.paths.Explore.root),e[0]=t,e[1]=n);let r=n,a;return e[2]===r?a=e[3]:(a={navigateToExplore:r},e[2]=r,e[3]=a),a};export{_ as a,m as c,d,c as f,v as i,p as l,b as n,g as o,y as r,h as s,x as t,f as u};

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.