PageSourceSearch

https://assistedly.ai/_next/static/chunks/4730-6ab16e3baa1d5f08.js

js assistedly.ai collected 2026-10-09 23:06:36 UTC 9,844 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4730],{21598:e=>{e.exports={ctaContainer:"SaveResultsCTA_ctaContainer__XvdTz",formCard:"SaveResultsCTA_formCard__re0Z0",urgencyCopy:"SaveResultsCTA_urgencyCopy__L6_KV",subtitle:"SaveResultsCTA_subtitle__E3wV8"}},35277:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(37876),n=s(14232),i=s(61954),l=s(70218),r=s.n(l);function c(e){let{facilities:t=[]}=e,[s,l]=(0,n.useState)(!1),[c,o]=(0,n.useState)(""),[u,h]=(0,n.useState)(""),[d,_]=(0,n.useState)(""),[m,p]=(0,n.useState)(!0),[g,f]=(0,n.useState)(""),[v,y]=(0,n.useState)(!1),x=(0,n.useRef)(!1),S=(0,n.useRef)(!1),C=t.slice(0,3).map(e=>e.slug||e.id).filter(Boolean);(0,n.useState)(()=>{(0,i.yS)({top_facilities_count:C.length,cta_variant:"share_family"})});let b=()=>{x.current||(x.current=!0,(0,i.aD)({top_facilities_count:C.length}))},j=(e,t)=>{t(e),!S.current&&e.trim().length>0&&(S.current=!0,(0,i.lt)({top_facilities_count:C.length}))},N=async e=>{e.preventDefault();let t=c.trim(),s=u.trim();if(t&&s){f("Sending...");try{let e=await fetch("/api/comparisons/share",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({facilitySlugs:C,method:"email",senderName:d.trim()||"A family member",senderEmail:t,recipientEmail:s,message:"I used Assistedly.ai to find assisted living matches. Here are the top options — thought you'd want to see."})}),a=await e.json().catch(()=>({}));if(m&&fetch("/api/deep-dive-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,facilitySlugs:C,source:"share_results_cta",deepDive:!0})}).catch(()=>{}),e.ok&&a.ok)y(!0),f(""),(0,i.ae)({top_facilities_count:C.length,deep_dive_requested:m,has_sender_name:!!d.trim()});else{let e=a.error||"Could not send. Please try again.";f(e),(0,i.Y_)({error_message:e,top_facilities_count:C.length})}}catch(t){let e=t?.message||"Network error. Please try again.";f(e),(0,i.Y_)({error_message:e,top_facilities_count:C.length})}}};return v?(0,a.jsx)("div",{className:r().ctaContainer,children:(0,a.jsxs)("div",{className:r().successBox,children:[(0,a.jsx)("h3",{children:"✓ Sent!"}),(0,a.jsx)("p",{children:"Your matched facilities have been shared."}),m&&(0,a.jsx)("p",{className:r().successNote,children:"A detailed AI compliance analysis is on its way to your inbox."})]})}):s?(0,a.jsx)("div",{className:r().ctaContainer,children:(0,a.jsxs)("div",{className:r().formCard,children:[(0,a.jsx)("h3",{children:"\uD83D\uDCE4 Share these matches"}),(0,a.jsxs)("p",{className:r().subtitle,children:["Send your top ",C.length>0?C.length:""," matched facilities to someone who should see them."]}),(0,a.jsxs)("form",{onSubmit:N,children:[(0,a.jsx)("input",{type:"text",placeholder:"Your name (optional)",value:d,onChange:e=>j(e.target.value,_),onFocus:b,className:r().input}),(0,a.jsx)("input",{type:"email",placeholder:"Your email",value:c,onChange:e=>j(e.target.value,o),onFocus:b,required:!0,className:r().input}),(0,a.jsx)("input",{type:"email",placeholder:"Family member's email",value:u,onChange:e=>j(e.target.value,h),onFocus:b,required:!0,className:r().input}),(0,a.jsxs)("label",{className:r().checkboxLabel,children:[(0,a.jsx)("input",{type:"checkbox",checked:m,onChange:e=>p(e.target.checked)}),"Also email me a detailed AI compliance analysis of these facilities"]}),(0,a.jsxs)("button",{type:"submit",className:r().submitBtn,children:["Send Results ",m?"+ Analysis":""]}),g&&(0,a.jsx)("p",{className:r().status,children:g})]}),(0,a.jsx)("button",{className:r().cancelBtn,onClick:()=>l(!1),children:"Cancel"})]})}):(0,a.jsx)("div",{className:r().ctaContainer,children:(0,a.jsxs)("button",{className:r().expandButton,onClick:()=>{l(!0),(0,i.gq)({top_facilities_count:C.length})},children:[(0,a.jsx)("span",{className:r().icon,children:"\uD83D\uDCE4"}),(0,a.jsxs)("div",{className:r().buttonText,children:[(0,a.jsx)("strong",{children:"Share with a family member"}),(0,a.jsx)("span",{children:"Loop in siblings, spouses, or your parent"})]}),(0,a.jsx)("span",{className:r().arrow,children:"→"})]})})}},46855:(e,t,s)=>{"use strict";s.d(t,{A:()=>
1o});var a=s(37876),n=s(68202),i=s(61954),l=s(14232),r=s(21598),c=s.n(r);function o(e){let{resultSnapshot:t,redirectTo:s="/matched",ctaVariant:r="save_results"}=e;return(0,l.useEffect)(()=>{(0,i.K1)({cta_variant:r,has_result_snapshot:!!t})},[t,r]),(0,a.jsx)("div",{className:c().ctaContainer,children:(0,a.jsxs)("div",{className:c().formCard,children:[(0,a.jsx)("h3",{children:"\uD83D\uDD12 Save Your Personalized Report"}),(0,a.jsx)("p",{className:c().urgencyCopy,children:(0,a.jsx)("strong",{children:"Your results disappear if you close this tab."})}),(0,a.jsx)("p",{className:c().subtitle,children:"Enter your email to save, edit, compare, and share these matches — plus get a detailed AI compliance analysis sent to your inbox."}),(0,a.jsx)(n.A,{authSurface:"matched_page_save_results",formId:"matched_save_results_magic_link",reason:"Save your matches and get a detailed compliance analysis.",redirectTo:s,buttonLabel:"Save my results + analysis",resultSnapshot:t,onSubmitStart:()=>(0,i.cu)({cta_variant:r,has_result_snapshot:!!t}),onSuccess:(e,t)=>{(0,i.s4)({cta_variant:r,email:e,...t})},successMessage:"Check your email — your saved results + analysis link is on the way."})]})})}},61954:(e,t,s)=>{"use strict";s.d(t,{K1:()=>p,Y_:()=>m,aD:()=>h,ae:()=>_,cu:()=>g,gq:()=>u,lt:()=>d,s4:()=>f,yS:()=>o});var a=s(5688),n=s(51036),i=s(27812),l=s(16750),r=s(65364);function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{asConversion:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{widget:"custom",...(0,n.kX)(),...e}}(t);if(r.env.NEXT_PUBLIC_POSTHOG_KEY)try{a.default.capture(e,c)}catch{}s?(0,l.Q)({event:e,...c}):(0,i.$P)({event:e,...c})}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c("share_results_cta_shown",e)}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c("share_results_cta_expanded",e)}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c("share_results_form_focused",e)}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c("share_results_form_typing_started",e)}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c("share_results_submitted",e,{asConversion:!0}),c("generate_lead",{lead_source:"share_results_family",...e},{asConversion:!0})}function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c("share_results_failed",e)}function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c("save_results_cta_shown",e)}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c("save_results_cta_clicked",e)}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c("save_results_submitted",e,{asConversion:!0}),c("generate_lead",{lead_source:"save_results",...e},{asConversion:!0})}},68202:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(37876),n=s(14232),i=s(5688),l=s(43229);function r(e){let{buttonLabel:t="Send magic link",submitLabel:s,authSurface:r="magic_link_form",formId:c,reason:o="Enter your email to continue.",redirectTo:u,resultSnapshot:h,onLinkRequested:d,onSuccess:_,onSubmitStart:m,onSubmitResult:p,successMessage:g,fallbackMessage:f}=e,[v,y]=(0,n.useState)(""),[x,S]=(0,n.useState)(""),[C,b]=(0,n.useState)(""),j=(0,n.useRef)(!1),N=(0,n.useRef)(!1),k=c||r,T=()=>({auth_surface:r,form_id:k,redirect_to:u||void 0,has_result_snapshot:!!h}),A=async e=>{e.preventDefault();let t=v.trim();if(!t)return;m?.(),(0,l.h_)({...T(),email_length_bucket:(0,l.LF)(t.length)}),S("Sending sign-in link..."),b("");let s=await fetch("/api/auth/request-magic-link",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,redirectTo:u,resultSnapshot:h,authSurface:r})}),a=await s.json().catch(()=>({}));if(!s.ok){let e=a.error||"Could not send link.";S(e),(0,l.P)({...T(),error_message:e}),p?.({ok:!1,sent:!1,error:e});return}window.localStorage.setItem("assistedly_email",t),(0,i.safeIdentify)(t),d?.(t),_?.(t,a),(0,l.f0)({...T(),email_delivery_sent:!!a.sent,test_mode:!!a.magicLink}),p?.({ok:!0,sent:!!a.sent,data:a}),S(a.sent?g||"Check your email for the sign-in link.":f||"Test mode: use the sign-in link below."),a.magicLink&&b(a.magicLink)};return(0,a.jsxs)("form",{onSubmit:A,id:k,className:"auth-capture-form",children:[(0,a.jsx)("p",{className:"auth-capture-reason",children:o}),(0,a.jsxs)("label",{className:"auth-capture-label",children:["Email address",(0,a.jsx)("input",{type:"email",value:v,onFocus:()=>{j.current||(j.current=!0,(0,l.b)(T()))},onChange:e=>{let t=e.target.value;y(t),!N.current&&t.trim().length>0&&(N.current=!0,(0,l.MO)({...T(),email_length_bucket:(0,l.LF)(t.trim().length)}))},placeholder:"[email protected]",required:!0,autoComplete:"email",className:"auth-capture-input"})]}),(0,a.jsx)("button",{type:"submit",className:"btn-primary auth-capture-button",children:s||t}),x?(0,a.jsx)("small",{className:"auth-capture-status",children:x}):null]})}},70218:e=>{e.exports={ctaContainer:"ShareResultsCTA_ctaContainer___xbMH",expandButton:"ShareResultsCTA_expandButton__innIo",icon:"ShareResultsCTA_icon___hwVr",buttonText:"ShareResultsCTA_buttonText__cloDs",arrow:"ShareResultsCTA_arrow__vl3_7",formCard:"ShareResultsCTA_formCard__ebpP_",subt
1itle:"ShareResultsCTA_subtitle__OeJJV",input:"ShareResultsCTA_input__QOSh9",checkboxLabel:"ShareResultsCTA_checkboxLabel__i96MD",submitBtn:"ShareResultsCTA_submitBtn__wtyBN",cancelBtn:"ShareResultsCTA_cancelBtn__eg958",status:"ShareResultsCTA_status__LF5u_",successBox:"ShareResultsCTA_successBox__i1bwI",successNote:"ShareResultsCTA_successNote__8CgUV"}},77328:(e,t,s)=>{e.exports=s(88005)}}]);

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.