PageSourceSearch

https://aangen-prod.firebaseapp.com/assets/news-letter.page-yG_iXwT-.js

js aangen-prod.firebaseapp.com collected 2026-10-03 14:05:05 UTC 1,927 bytes, 1 lines download raw bytes

1import{d as t}from"./ui-vendor-wXL1vB-g.js";import{r as s}from"./react-vendor-BktoabIY.js";import{a7 as w,ak as b,$ as f}from"./index-DW355ds4.js";import{T as x}from"./textfield.atom-DCGjI-fK.js";import{J as g}from"./firebase-vendor-DpNCE-dN.js";import"./redux-vendor-DyFZt5ds.js";import"./chart-vendor-CfmrB_PR.js";import"./form-vendor-B7oKYy-s.js";const E=r=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r},s.createElement("path",{d:"M12.872 17.2H5.6V9.2L12 13.2L18.4 9.2V13.272C18.976 13.368 19.512 13.568 20 13.848V7.6C20 6.72 19.28 6 18.4 6H5.6C4.72 6 4 6.72 4 7.6V17.2C4 18.08 4.72 18.8 5.6 18.8H12.872C12.832 18.536 12.8 18.272 12.8 18C12.8 17.728 12.832 17.464 12.872 17.2ZM18.4 7.6L12 11.6L5.6 7.6H18.4Z",fill:"white"}),s.createElement("path",{d:"M15.2 17.3067L16.48 18.8L19.6 15.6",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),T=()=>{const[r,o]=s.useState({email:""}),[i,n]=s.useState(""),[l,c]=s.useState(!1),[m,u]=s.useState(!1),d=(e,a)=>{o({...r,[a]:e})},p=e=>{n(e)},h=async()=>{try{u(!0),await g.functions().httpsCallable("userFunctions-subscribeToNewsLetter")({userData:{...r,source:"website",sourceType:"newsletter"},status:!0}),c(!0)}catch(e){console.log(e.message)}};return t.jsx("div",{className:"newsletter-component",children:l?t.jsxs("div",{className:"submitted-component",children:[t.jsx(E,{}),t.jsx(f,{type:"h5",children:"Thank you for subscribing to our newsletter."})]}):t.jsx("div",{className:"newsletter-input-container",children:t.jsxs("span",{className:"input-field",children:[t.jsx(x,{required:!0,value:r.email,"data-test":"online-link",label:"Email",setValue:e=>d(e,"email"),setError:e=>p(e),regularExpression:w,type:"email",errorMessage:"Email should be in correct format"}),t.jsx(b,{disabled:i!==!1,handleClick:h,primaryShade:!0,loading:m,children:"Subscribe"})]})})})};export{T as default};

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.