PageSourceSearch

https://cosmosrx.com/_next/static/chunks/91-cb9b76bc39440a20.js

js cosmosrx.com collected 2026-10-05 20:50:43 UTC 12,202 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91],{1423:(e,t,n)=>{n.d(t,{u:()=>r,w:()=>o});var a=n(10273);function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];"granted"===(0,a.hr)()&&!function(){(window.dataLayer=window.dataLayer||[]).push(arguments)}(...t)}function r(e,t){if("granted"===(0,a.hr)()){try{var n,r;null==(r=window.zaraz)||null==(n=r.track)||n.call(r,e,t)}catch(e){}try{o("event",e.replace(/[^a-zA-Z0-9_]/g,"_").slice(0,40),null!=t?t:{})}catch(e){}}}},2817:(e,t,n)=>{n.d(t,{ContactForm:()=>h});var a=n(98914),o=n(59626),r=n(75847),s=n(89742),i=n(10737);let c=(0,i.A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),l=(0,i.A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);var d=n(53212),m=n(82450),u=n(1423);let p="mt-1.5 w-full rounded-lg border border-line bg-base-900/70 px-3.5 py-2.5 text-sm text-ink placeholder:text-ink-faint focus-visible:border-brand-cyan/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-brand-cyan/40";function h(){let[e,t]=(0,o.useState)("idle"),[n,i]=(0,o.useState)(""),h=(0,o.useRef)(!1);async function g(n){if(n.preventDefault(),"submitting"===e)return;let a=n.currentTarget,o=new FormData(a),r=String(o.get("name")||"").trim(),s=String(o.get("email")||"").trim(),c=String(o.get("organization")||"").trim(),l=String(o.get("phone")||"").trim(),m=String(o.get("message")||"").trim(),p=l.replace(/\D/g,"");if(l&&(p.length<10||p.length>15)){t("error"),i("Please enter a valid phone number (10 to 15 digits)."),(0,u.u)("contact_form_error",{reason:"validation"});return}(0,u.u)("contact_form_submit");let g=d._.contact.formEndpoint;if(!g){let e="CosmosRx\xae website \xb7 Contact Us form".concat(r?" \xb7 ".concat(r):""),n=["Name: ".concat(r),"Email: ".concat(s),...c?["Organization: ".concat(c)]:[],...l?["Phone: ".concat(l)]:[],"",m].join("\n");h.current=!0,window.location.href="mailto:".concat(d._.contact.email,"?subject=").concat(encodeURIComponent(e),"&body=").concat(encodeURIComponent(n)),t("success"),(0,u.u)("contact_form_success",{method:"mailto"});return}let f=new AbortController,x=setTimeout(()=>f.abort(),15e3);try{t("submitting"),i("");let e={name:r,email:s,organization:c,phone:l,message:m,botcheck:String(o.get("botcheck")||""),subject:"CosmosRx\xae website \xb7 Contact Us form".concat(r?" \xb7 ".concat(r):"")};d._.contact.formAccessKey&&(e.access_key=d._.contact.formAccessKey);let n=await fetch(g,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e),signal:f.signal});if(!n.ok)throw Error("Request failed (".concat(n.status,")"));let p=await n.json().catch(()=>null);if(!p||!0!==p.success)throw Error("The form service rejected the submission.");a.reset(),t("success"),(0,u.u)("contact_form_success",{method:"form"})}catch(e){console.error("Contact form submission failed:",e),t("error"),i("Couldn't send your message. Please try again, or email us directly at ".concat(d._.contact.email,".")),(0,u.u)("contact_form_error",{reason:"request_failed"})}finally{clearTimeout(x)}}return"success"===e?(0,a.jsxs)("div",{role:"status",className:"mx-auto flex max-w-md flex-col items-center rounded-2xl border border-line bg-white/[0.02] px-6 py-10 text-center",children:[(0,a.jsx)("span",{className:"grid size-14 place-items-center rounded-full bg-signal-ok/15 text-signal-ok",children:(0,a.jsx)(r.A,{className:"size-7",strokeWidth:2.5})}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-ink",children:h.current?"Almost there":"Message sent"}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-ink-dim",children:h.current?"We've opened a pre-filled email to our team. Just press send to reach us.":"Thanks for reaching out. We'll get back to you shortly."})]}):(0,a.jsxs)("form",{method:"post",onSubmit:g,className:"mx-auto max-w-xl text-left",children:[(0,a.jsx)("input",{type:"checkbox",name:"botcheck",tabIndex:-1,"aria-hidden":"true",className:"absolute -left-[9999px] size-px opacity-0"}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsxs)("label",{className:"block",children:[(0,a.jsx)("span",{className:"mono-label text-ink-dim",children:"Name"}),(0,a.jsx)("input",{name:"name",required:!0,autoComplete:"name",placeholder:"Jordan Rivera",className:p})]}),(0,a.jsxs)("label",{className:"block",children:[(0,a.jsx)("span",{className:"mono-label text-ink-dim",children:"Email"}),(0,a.jsx)("input",{name:"email",type:"email",required:!0,autoComplete:"email",placeholder:"[email protected]",className:p})]})]}),(0,a.jsxs)("div",{className:"mt-4 grid gap-4 sm:grid-cols-2",children:[(0,a.jsxs)("label",{className:"block",children:[(0,a.jsxs)("span",{className:"mono-label text-ink-dim",children:["Organization ",(0,a.jsx)("span",{className:"text-ink-faint",children:"(optional)"})]}),(0,a.jsx)("input",{name:"organization",placeholder:"Clinic, hospital, or program",className:p})]}),(0,a.jsxs)("label",{className:"block",children:[(0,a.jsxs)("span",{className:"mono-label text-ink-dim",children:["Phone ",(0,a.jsx)("span",{className:"text-ink-faint",children:"(optional)"})]}),(0,a.jsx)("input",{name:"phone",type:"tel",autoComplete:"tel",inputMode:"tel",maxLength:30,pattern:"(?:\\D*\\d){10,15}\\D*",title:"Enter a valid phone number (10 to 15 digits)",placeholder:"(555) 000-0000",className:p,onChange:e=>{let t=e.currentTarget,n=t.value,a=n.replace(/[^0-9()+\-.\s]/g,"");if(a!==n){var o;let e=null!=(o=t.selectionStart)?o:n.length,r=n.slice(0,e).replace(/[^0-9()+\-.\s]/g,"").length;t.value=a,t.setSelectionRange(r,r)}}})]})]}),(0,a.jsxs)("label",{className:"mt-4 block",children:[(0,a.jsx)("span",{className:"mono-label text-ink-dim",children:"Message"}),(0,a.jsx)("textarea",{name:"message",required:!0,rows:5,placeholder:"Tell us about your home or program…",className:(0,m.cn)(p,"resize-y")})]}),"error"===e&&(0,a.jsxs)("p",{role:"alert",className:"mt-3 flex items-center gap-2 text-[13px] text-signal-warn",children:[(0,a.jsx)(s.A,{className:"size-4 shrink-0"}),n||"Couldn't send. Please email us directly."]}),(0,a.jsx)("button",{type:"submit",disabled:"submitting"===e,className:"mt-6 inline-flex w-full items-center justify-center gap-2 rounded-full bg-gradient-to-b from-brand-blue to-brand-deep px-7 py-3.5 text-[15px] font-semibold text-white shadow-glow transition-all hover:-translate-y-0.5 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 sm:w-auto",children:"submitting"===e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c,{className:"size-4 animate-spin"})," Sending…"]}):(0,a.jsxs)(a.Fragment,{children:["Send message ",(0,a.jsx)(l,{className:"size-4"})]})})]})}},10273:(e,t,n)=>{n.d(t,{AK:()=>c,Hr:()=>s,Ri:()=>r,St:()=>p,bi:()=>d,hp:()=>u,hr:()=>l});let a="fortiskap_analytics_consent",o="fortiskap:consent",r="fortiskap:consent-open";function s(){window.dispatchEvent(new CustomEvent(r))}let i="fortiskap_analytics_swept";function c(){if(null===l()){try{if(window.sessionStorage.getItem(i))return;window.sessionStorage.setItem(i,"1")}catch(e){}
1m(),fetch("/api/consent/revoke",{method:"POST",cache:"no-store",credentials:"same-origin"}).catch(()=>{})}}function l(){try{let e=window.localStorage.getItem(a);if(!e)return null;let[t,n]=e.split(":");if("1"!==t)return null;return"granted"===n?"granted":"denied"===n?"denied":null}catch(e){return null}}function d(e){let t=l();try{window.localStorage.setItem(a,"".concat("1",":").concat(e))}catch(e){}"denied"===e&&m(),window.dispatchEvent(new CustomEvent(o,{detail:e})),function(e,t){if("granted"===t)return;let n=()=>window.location.reload(),a=fetch("/api/consent/revoke",{method:"POST",cache:"no-store",credentials:"same-origin"});"granted"===e&&a.then(n).catch(n)}(t,e)}function m(){if("undefined"==typeof document)return;let e=window.location.hostname,t=e.split(".").slice(-2).join("."),n=[void 0,e,".".concat(e),t,".".concat(t)];for(let e of document.cookie.split(";")){var a;let t=null==(a=e.split("=")[0])?void 0:a.trim();if(t&&t.startsWith("_ga"))for(let e of n)document.cookie="".concat(t,"=; Max-Age=0; path=/").concat(e?"; domain=".concat(e):"")}}function u(e){let t=()=>e(l());return window.addEventListener(o,t),window.addEventListener("storage",t),()=>{window.removeEventListener(o,t),window.removeEventListener("storage",t)}}function p(){let e="granted"===l(),t=()=>{let t=l();if(e&&"granted"!==t){e=!1,window.location.reload();return}e="granted"===t};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)}},36590:(e,t,n)=>{n.r(t),n.d(t,{Reveal:()=>m});var a=n(98914),o=n(59626),r=n(42023),s=n(82450);let i="cubic-bezier(0.16, 1, 0.3, 1)",c={arm:{io:null,rootMargin:"0px 0px 400px 0px"},trigger:{io:null,rootMargin:"0px 0px 0px 0px"}},l={arm:new WeakMap,trigger:new WeakMap};function d(e,t,n){let a=c[e],o=l[e];return a.io||(a.io=new IntersectionObserver(e=>{for(let n of e){var t;if(!n.isIntersecting)continue;let e=o.get(n.target);e&&(o.delete(n.target),null==(t=a.io)||t.unobserve(n.target),e(n))}},{rootMargin:a.rootMargin})),o.set(t,n),a.io.observe(t),()=>{var e;o.delete(t),null==(e=a.io)||e.unobserve(t)}}function m(e){let{children:t,className:n,delay:c=0,y:l=22,immediate:m=!1}=e,u=(0,r.D)(),p=(0,o.useRef)(null),[h,g]=(0,o.useState)({show:!1,quick:!1}),[f,x]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(m||u){g({show:!0,quick:!1}),x(!0);return}let e=p.current;if(!e)return;if(e.getBoundingClientRect().top<.92*window.innerHeight){g({show:!0,quick:!1}),x(!0);return}let t=d("arm",e,()=>x(!0)),n=d("trigger",e,e=>{g({show:!0,quick:e.boundingClientRect.top<.85*window.innerHeight})});return()=>{t(),n()}},[m,u]);let w=h.quick?.3:.5,b=h.quick?0:c,y="opacity ".concat(w,"s ").concat(i," ").concat(b,"s, transform ").concat(w,"s ").concat(i," ").concat(b,"s");return(0,o.useEffect)(()=>{if(!h.show||!f)return;let e=window.setTimeout(()=>x(!1),(w+b)*1e3+120);return()=>window.clearTimeout(e)},[h.show,f,w,b]),(0,a.jsx)("div",{ref:p,className:(0,s.cn)(n),onTransitionEnd:e=>{e.target===e.currentTarget&&"opacity"===e.propertyName&&x(!1)},style:u?void 0:{opacity:+!!h.show,transform:h.show?"none":"translate3d(0,".concat(l,"px,0)"),transition:y,willChange:f?"opacity, transform":void 0},children:t})}},63680:(e,t,n)=>{n.d(t,{Fingerprint:()=>c});var a=n(98914),o=n(59626),r=n(68243),s=n(82450);let i=Array.from({length:20},(e,t)=>{let n=t/19,a=Math.pow(n,1.04),o=120+4*Math.sin(7*n)*(1-n);return{rx:9+96*a,ry:11+122*a,cx:o,cy:138+4*Math.cos(5.5*n)*(1-n)-8*n,rot:-8+22*n,dash:t%4==2?"".concat(6+40*n," ").concat(10+26*n):void 0}});function c(e){let{className:t,tone:n="gradient",draw:c=!1,drawStagger:l=.045,drawDuration:d=1.1,strokeWidth:m=1.4,glow:u=!1}=e,p=(0,o.useId)().replace(/[:]/g,""),h="fp-grad-".concat(p),g="fp-clip-".concat(p),f="bright"===n?"#E8FBFF":"dim"===n?"rgba(124,150,190,0.5)":"url(#".concat(h,")");return(0,a.jsxs)("svg",{viewBox:"0 0 240 280",className:(0,s.cn)(t),fill:"none","aria-hidden":"true",style:u?{filter:"drop-shadow(0 0 12px rgb(var(--accent) / 0.55))"}:void 0,children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:h,x1:"0",y1:"0",x2:"0.3",y2:"1",children:[(0,a.jsx)("stop",{offset:"0",stopColor:"#D4A2DE"}),(0,a.jsx)("stop",{offset:"0.5",stopColor:"#BF74CE"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#AA46BE"})]}),(0,a.jsx)("clipPath",{id:g,children:(0,a.jsx)("path",{d:"M120 6 C58 6 26 56 26 134 C26 214 66 274 120 274 C174 274 214 214 214 134 C214 56 182 6 120 6 Z"})})]}),(0,a.jsx)("g",{clipPath:"url(#".concat(g,")"),stroke:f,strokeWidth:m,strokeLinecap:"round",fill:"none",children:i.map((e,t)=>c?(0,a.jsx)(r.P.ellipse,{cx:e.cx,cy:e.cy,rx:e.rx,ry:e.ry,transform:"rotate(".concat(e.rot," ").concat(e.cx," ").concat(e.cy,")"),strokeDasharray:e.dash,initial:{pathLength:0,opacity:0}
1,animate:{pathLength:1,opacity:1},transition:{pathLength:{duration:d,ease:"easeInOut",delay:t*l},opacity:{duration:.3,delay:t*l}}},t):(0,a.jsx)("ellipse",{cx:e.cx,cy:e.cy,rx:e.rx,ry:e.ry,transform:"rotate(".concat(e.rot," ").concat(e.cx," ").concat(e.cy,")"),strokeDasharray:e.dash},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.