PageSourceSearch

https://smoreshealth.com/_next/static/chunks/6311-df9a67199bfc596c.js

js smoreshealth.com collected 2026-10-09 23:00:38 UTC 16,303 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6311],{66311:(t,n,e)=>{e.d(n,{A0:()=>tM,A4:()=>tT,A5:()=>tE,AJ:()=>S,AP:()=>A,AW:()=>tp,BN:()=>f,BZ:()=>tS,Bc:()=>q,Bz:()=>tA,D2:()=>I,Dp:()=>z,EG:()=>B,Eh:()=>_,Eu:()=>tG,Gb:()=>tj,JE:()=>O,JW:()=>to,Jj:()=>tf,Jx:()=>ti,K$:()=>p,KQ:()=>tP,KZ:()=>te,L1:()=>Z,Lh:()=>b,Lj:()=>tU,Lx:()=>tl,NI:()=>K,O9:()=>k,Oz:()=>tq,Q3:()=>tz,QV:()=>Y,RE:()=>t$,S7:()=>x,SW:()=>tc,Tf:()=>L,Tt:()=>U,U0:()=>j,Us:()=>J,Uz:()=>tt,Vq:()=>C,WV:()=>Q,Wh:()=>tr,Wp:()=>V,X4:()=>y,XP:()=>ta,XU:()=>$,Yu:()=>tx,Zj:()=>tv,Zt:()=>m,Zu:()=>tB,_R:()=>v,a:()=>tk,ac:()=>X,gj:()=>w,hl:()=>td,ir:()=>W,j1:()=>tu,jC:()=>tV,jr:()=>tg,kQ:()=>tb,kW:()=>tw,mJ:()=>M,nU:()=>ty,nm:()=>tI,o4:()=>tR,ox:()=>tZ,pL:()=>T,qS:()=>F,r6:()=>D,rI:()=>tC,redeemInviteCode:()=>tQ,sA:()=>N,sj:()=>tW,sz:()=>H,t8:()=>G,tZ:()=>E,updateSessionMeetingLink:()=>P,v8:()=>tN,wn:()=>tn,yT:()=>R,yq:()=>g});var a=e(15103);e(91531);var i=e(59024),r=e(59997),o=e(18241),s=e(95046),c=e(85217),u=e(40179),d=e(72094),l=e(91354);async function f(t){if(o.s)return(0,l.mockRespondToBookingRequest)(t);let n=(0,a.Qg)(i.functions,"respondToBookingRequest");return(await n(t)).data}async function g(t){if(o.s)return(0,l.mockCancelBookingWithPolicy)({...t,bookingId:t.bookingId||t.sessionId||""});let n=(0,a.Qg)(i.functions,"cancelBookingWithPolicy");return(await n(t)).data}async function p(t){if(o.s)return(0,l.mockRescheduleBookingWithPolicy)({...t,bookingId:t.bookingId||t.sessionId||""});let n=(0,a.Qg)(i.functions,"rescheduleBookingWithPolicy");return(await n(t)).data}async function y(t){if(o.s)return(0,l.mockStartTelehealthSession)(t);let n=(0,a.Qg)(i.functions,"startTelehealthSession");return(await n({sessionId:t})).data}async function w(t){if(o.s)return(0,l.mockEndTelehealthSession)(t);let n=(0,a.Qg)(i.functions,"endTelehealthSession");return(await n({sessionId:t})).data}function m(t){return t.cleanupPending?"cleanup_pending":t.connected?"connected":t.reauthorizationRequired||t.hasConnection?"reconnect_required":"disconnected"}let h={version:"mock",text:"Only connect an account your organization considers safe for scheduling and video sessions. Smores Health reads only busy times from connected calendars. It creates only generic “Appointment” calendar events or video meetings. These include the scheduled time and, when needed, a meeting link; Smores Health never sends participant names, notes, diagnoses, locations, contact details, or attendee lists. By continuing, you confirm your organization permits this account to be used with Smores Health."};async function k(t,n,e=!1){if(o.s)return n?(0,l.mockBeginZoomOAuthConnect)():{connectionNotice:h};let r=(0,a.Qg)(i.functions,"beginZoomOAuthConnect"),c=window.location.origin;return(await r({returnOrigin:c,returnPath:(0,s.k)(),organizationId:t,noticeVersion:n,cleanupRepair:e,clientPlatform:"web"})).data}async function Q(t,n){if(o.s)return{ok:!0,returnUrl:"/dashboard/schedule"};let e=(0,a.Qg)(i.functions,"completeZoomOAuthConnect");return(await e({state:t,code:n})).data}async function v(t){if(o.s)return(0,l.mockGetZoomConnectionStatus)();let n=(0,a.Qg)(i.functions,"getZoomConnectionStatus");return(await n({organizationId:t})).data}async function I(){if(o.s)return(0,l.mockDisconnectZoomOAuth)();let t=(0,a.Qg)(i.functions,"disconnectZoomOAuth");return(await t({})).data}async function P(t){let n=(0,a.Qg)(i.functions,"updateSessionMeetingLink");return(await n(t)).data}async function b(t){if(o.s)return await new Promise(t=>setTimeout(t,500)),{ok:!0,bookingId:`mock-booking-${Date.now()}`,sessionId:`mock-session-${Date.now()}`,status:"pending"};let n=(0,a.Qg)(i.functions,"peerRequestBooking");return(await n(t)).data}async function O(t){let n=(0,a.Qg)(i.functions,"startWalkInVisitByPeer");return(await n(ts(t))).data}async function C(t){let n=(0,a.Qg)(i.functions,"discardOpenVisitByPeer");return(await n(t)).data}async function S(t){if(o.s){await new Promise(t=>setTimeout(t,500));let n=Date.now();return{ok:!0,groupSessionId:`mock-group-${n}`,seriesId:t.seriesId??`mock-series-${n}`,anchorSessionId:t.isOpenGroup?`mock-anchor-${n}`:void 0,bookingIds:t.isOpenGroup?[`mock-booking-${n}-0`]:t.patientIds.map((t,e)=>`mock-booking-${n}-${e}`),sessionIds:t.isOpenGroup?[`mock-anchor-${n}`]:t.patientIds.map((t,e)=>`mock-session-${n}-${e}`),status:t.isOpenGroup?"rsvp_pending":"pending"}}let n=(0,a.Qg)(i.functions,"peerRequestGroupBooking");return(await n(t)).data}async function A(t){if(o.s)return await new Promise(t=>setTimeout(t,500)),{ok:!0,groupSessionId:t.groupSessionId,attendedCount:t.attendance.filter(t=>t.attended).length};let n=(0,a.Qg)(i.functions,"recordGroupAttendance");return(await n(t)).data}async function T(t){if(o.s)return{groupSourceNoteId:t.groupSourceNoteId,groupSessionId:t.groupSessionId||t.groupReturnId||`standalone-${t.groupSourceNoteId}`,attendedCount:t.attendees.length,sources:t.attendees.map((t,n)=>({patientId:t.patientId,noteId:`mock-group-attendee-${n+1}`}))};let n=(0,a.Qg)(i.functions,"saveGroupDocumentation");return(await n(t)).data}async function E(t){if(o.s)return await new Promise(t=>setTimeout(t,500)),{ok:!0,bookingId:t.bookingId,rsvpStatus:t.rsvpStatus,status:"yes"===t.rsvpStatus?"confirmed":"no"===t.rsvpStatus?"cancelled":"rsvp_pending"};let n=(0,a.Qg)(i.functions,"respondToGroupRsvp");return(await n(t)).data}async function B(t){let n=(0,a.Qg)(i.functions,"approveEnrollment");return(await n(t)).data}async function G(t){let n=(0,a.Qg)(i.functions,"declineEnrollment");return(await n(t)).data}async function $(t){let n=(0,a.Qg)(i.functions,"createPatientInvite");return(await n(t)).data}async function N(){let t=(0,a.Qg)(i.functions,"listParticipantOrganizations");return(await t({})).data}async function z(t){let n=(0,a.Qg)(i.functions,"switchParticipantOrganization");return(await n({organizationId:t})).data}async function M(t){let n=(0,a.Qg)(i.functions,"createPeerClient");return(await n(t)).data}async function R(t){let n=(0,a.Qg)(i.functions,"archivePeerClient");return(await n(t)).data}async function V(t){let n=(0,a.Qg)(i.functions,"restorePeerClient");return(await n(t)).data}async function j(t){let n=(0,a.Qg)(i.functions,"deletePeerClientPermanently");return(await n({...t,mode:"check"})).data}async function x(t){let n=(0,a.Qg)(i.functions,"deletePeerClientPermanently");return(await n({...t,mode:"delete"})).data}async function U(t){let n=(0,a.Qg)(i.functions,"cancelPatientInvite");return(await n(t)).data}async function W(t){let n=(0,a.Qg)(i.functions,"resendPatientInvite");return(await n(t)).data}async function Z(t){if("resume"===t.code)return(0,u.AV)({flow:"participant",action:"resolve"});let n=(0,a.Qg)(i.functions,"lookupPatientInviteByCode");return(await n(t)).data}async function q(t){let n=(0,a.Qg)(i.functions,"updateOrgMemberEhrId");return(await n(t)).data}async function _(t){let n=(0,a.Qg)(i.functions,"updateOrgMemberPermissions");return(await n(t)).data}async function D(t){let n=(0,a.Qg)(i.functions,"listOrgTeamMembers");return(await n(t)).data}async function J(t){let n=(0,a.Qg)(i.functions,"updateOrgMemberWorkspaceModules");return(await n(t)).data}async function L(t){let n=(0,a.Qg)(i.functions,"updateParticipantPeerAssignments");return(await n(t)).data}async function Y(t){let n=(0,a.Qg)(i.functions,"updateOrgMemberRole");return(await n(t)).data}async function H(t){let n=(0,a.Qg)(i.functions,"updateOrgMemberVisibility");return(await n(t)).data}async function F(t){let n=(0,a.Qg)(i.functions,"setPatientBillingStatus");return(await n(t)).data}async function K(t){let n=(0,a.Qg)(i.functions,"claimUnassignedPatient");return(await n(t)).data}async function X(t){let n=(0,a.Qg)(i.functions,"createStaffInvite"),e=t.accessGrants??("peer"===t.type?{certifiedPeer:!0,orgRole:"peer"}:{certifiedPeer:!1,orgRole:"admin"});return(await n({...t,accessGrants:e,...e.certifiedPeer?{requiredCareAgreementVersion:c.O7.telehealthAgreement}:{}})).data}async function tt(t){if("resume"===t)return(0,u.AV)({flow:"staff",action:"resolve"});let n=(0,a.Qg)(i.functions,"getStaffInviteByToken");return(await n({token:t})).data}async function tn(t){if("resume"===t.token){let{token:n,...e}=t;return(0,u.AV)({flow:"staff",action:"redeem",payload:e})}let n=(0,a.Qg)(i.functions,"redeemStaffInvite");return(await n(t)).data}async function te(t){let n=(0,a.Qg)(i.functions,"cancelStaffInvite");return(await n(t)).data}async function ta(t){let n=(0,a.Qg)(i.functions,"resendStaffInvite");return(await n(t)).data}async function ti(t){let n=(0,a.Qg)(i.functions,"resendStaffInviteEmail");return(await n(t)).data}async function tr(t){let n=(0,a.Qg)(i.functions,"updateOrgByOrgAdmin");return(await n(t)).data}async function to(t){let n=(0,a.Qg)(i.functions,"updatePeerCredentialProofByOrgAdmin"),e={organizationId:t.organizationId,staffId:t.staffId,stateCode:t.stateCode,credentialType:t.credentialType,issuingBody:t.issuingBody,verificationStatus:t.verificationStatus};return void 0!==t.credentialId&&(e.credentialId=t.credentialId),void 0!==t.credentialId&&t.expectedCredential&&(e.expectedCredential=t.expectedCredential),void 0!==t.credentialNumber&&(e.credentialNumber=t.credentialNumber),void 0!==t.expiresOn&&(e.expiresOn=t.expiresOn),void 0!==t.issuedOn&&(e.issuedOn=t.issuedOn),void 0!==t.verificationNotes&&(e.verificationNotes=t.verificationNotes),void 0!==t.mnOneYearRecoveryExperienceVerified&&(e.mnOneYearRecoveryExperienceVerified=t.mnOneYearRecoveryExperienceVerified),void 0!==t.mnCredentialAuthority&&(e.mnCredentialAuthority=t.mnCredentialAuthority),(await n(e)).data}function ts(t){return Object.fromEntries(Object.entries(t).filter(([,t])=>void 0!==t))}async function tc(t){let n=(0,a.Qg)(i.functions,"startEvvVisitByPeer");return(await n(t)).data}async function tu(t){let n=(0,a.Qg)(i.functions,"endEvvVisitByPeer");return(await n(ts(t))).data}async function td(t){let n=(0,a.Qg)(i.functions,"reportEvvMissedVisitByPeer");return(await n(ts(t))).data}async function tl(t){let n=(0,a.Qg)(i.functions,"setEvvEditCodesByPeer");return(await n(ts(t))).data}async function tf(t){let n=(0,a.Qg)(i.functions,"requestOrgVerification");await n({orgId:t})}async function tg(t){let n=(0,a.Qg)(i.functions,"removePeerFromOrg");return(await n(t)).data}async function tp(t){let n=(0,a.Qg)(i.functions,"leaveOrg");return(await n(t)).data}async function ty(t){let n="https://us-central1-peerakeet-prod-475616.cloudfunctions.net/api",e=(0,r.xI)().currentUser;if(!n||!e||!t)throw Error("Sign in and select a care organization.");let a=await e.getIdToken(),i=await (0,d.A)();if((0,r.xI)().currentUser!==e)throw Error("The signed-in account changed.");let o=await fetch(`${n}/org/disconnect`,{method:"POST",headers:{...i,Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:JSON.stringify({organizationId:t})}),s=await o.json();if(!o.ok||s?.ok!==!0)throw Error(s?.error||"Could not leave this support team.")}async function tw(t){if(o.s)return await new Promise(t=>setTimeout(t,300)),{ok:!0,organizationId:t.organizationId,authUid:t.authUid,patientId:""};let n=(0,a.Qg)(i.functions,"denyOnboarding");return(await n(t)).data}function tm(t){let n=t&&"object"==typeof t?t:{};return!0===n.ok&&"connected"===n.enrollmentStatus?{ok:!0}:{ok:!1,error:"processing"===n.enrollmentStatus?"Your organization connection is still pending. Please try again.":"string"==typeof n.error&&n.error?n.error:"We could not confirm your organization connection. Please try again."}}async function th(t){let n="https://us-central1-peerakeet-prod-475616.cloudfunctions.net/api";if(!n)return{ok:!1,error:"API endpoint not configured"};let e=(0,r.xI)().currentUser;if(!e)return{ok:!1,error:"Not authenticated"};try{let a=await e.getIdToken(),i=await fetch(`${n}/org/connect`,{method:"POST",headers:{...await (0,d.A)(),Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:JSON.stringify({source:"invite_code",organizationId:"",...t})}),r=await i.json();return i.ok?tm(r):{ok:!1,error:r?.error||"Failed to redeem invite"}}catch(t){return console.error("[redeemParticipantInviteRequest] failed:",t),{ok:!1,error:"Network error"}}}function tk(t){return th({inviteId:t})}async function tQ(t,n){if("resume"===t)try{let t=await (0,u.AV)({flow:"participant",action:"redeem"});return tm(t)}catch(t){return{ok:!1,error:t instanceof Error?t.message:"Failed to redeem invite"}}return th({inviteCode:t,...n?{emailProof:n}:{}})}async function tv(t,n,e=!1){if(o.s)return n?{url:"#"}:{connectionNotice:h};let r=(0,a.Qg)(i.functions,"beginGoogleCalendarConnect");return(await r({returnOrigin:window.location.origin,returnPath:(0,s.k)(),organizationId:t,noticeVersion:n,cleanupRepair:e,clientPlatform:"web"})).data}async function tI(t,n){if(o.s)return{ok:!0,returnUrl:"/dashboard/schedule"};let e=(0,a.Qg)(i.functions,"completeGoogleCalendarConnect");return(await e({state:t,code:n})).data}async function tP(t){if(o.s)return{connected:!1};let n=(0,a.Qg)(i.functions,"getGoogleCalendarStatus");return(await n({organizationId:t})).data}async function tb(){if(o.s)return{ok:!0};let t=(0,a.Qg)(i.functions,"disconnectGoogleCalendar");return(await t({})).data}function tO(t,n){return Array.isArray(t)?t.flatMap(t=>{if(!t||"object"!=typeof t)return[];
1let e="string"==typeof t.id?t.id:"",a="string"==typeof t.startTime?t.startTime:"",i="string"==typeof t.endTime?t.endTime:"";return e&&a&&i?[{id:e,provider:n,startTime:a,endTime:i,isAllDay:!0===t.isAllDay}]:[]}):[]}async function tC(t,n,e){if(o.s)return{events:[]};let r=(0,a.Qg)(i.functions,"fetchGoogleCalendarEvents");return{events:tO((await r({timeMin:t,timeMax:n,organizationId:e})).data.events,"google")}}async function tS(t,n,e=!1){if(o.s)return n?{url:"#"}:{connectionNotice:h};let r=(0,a.Qg)(i.functions,"beginOutlookCalendarConnect");return(await r({returnOrigin:window.location.origin,returnPath:(0,s.k)(),organizationId:t,noticeVersion:n,cleanupRepair:e,clientPlatform:"web"})).data}async function tA(t,n){if(o.s)return{ok:!0,returnUrl:"/dashboard/schedule"};let e=(0,a.Qg)(i.functions,"completeOutlookCalendarConnect");return(await e({state:t,code:n})).data}async function tT(t){if(o.s)return{connected:!1};let n=(0,a.Qg)(i.functions,"getOutlookCalendarStatus");return(await n({organizationId:t})).data}async function tE(){if(o.s)return{ok:!0};let t=(0,a.Qg)(i.functions,"disconnectOutlookCalendar");return(await t({})).data}async function tB(t,n,e){if(o.s)return{events:[]};let r=(0,a.Qg)(i.functions,"fetchOutlookCalendarEvents");return{events:tO((await r({timeMin:t,timeMax:n,organizationId:e})).data.events,"outlook")}}async function tG(t){let n=(0,a.Qg)(i.functions,"createGroupChat");return(await n(t)).data}async function t$(t){let n=(0,a.Qg)(i.functions,"sendGroupMessage");return(await n(t)).data}async function tN(t){let n=(0,a.Qg)(i.functions,"editGroupMessage");return(await n(t)).data}async function tz(t){let n=(0,a.Qg)(i.functions,"deleteGroupMessage");return(await n(t)).data}async function tM(t){let n=(0,a.Qg)(i.functions,"removeGroupMember");return(await n(t)).data}async function tR(t){let n=(0,a.Qg)(i.functions,"updateGroupSettings");return(await n(t)).data}async function tV(t){let n=(0,a.Qg)(i.functions,"listGroupMembers");return(await n(t)).data}async function tj(t){return(await (0,a.Qg)(i.functions,"reinviteGroupMember")(t)).data}async function tx(t){let n=(0,a.Qg)(i.functions,"listPendingGroupMembers");return(await n(t)).data}async function tU(t){let n=(0,a.Qg)(i.functions,"backfillEducationGroupChats");return(await n(t)).data}async function tW(t){let n=(0,a.Qg)(i.functions,"acceptGroupMembership");return(await n(t)).data}async function tZ(t){let n=(0,a.Qg)(i.functions,"acknowledgePart2Redisclosure");return(await n(t)).data}async function tq(t){let n=(0,a.Qg)(i.functions,"approveProgramGroupParentalConsent");return(await n(t)).data}},95046:(t,n,e)=>{function a(){return`${window.location.pathname}${window.location.search}${window.location.hash}`}async function i(t){let n=window.open("about:blank","_blank");if(!n)throw Error("Your browser blocked the sign-in tab. Allow pop-ups for Smores Health and try again.");try{n.opener=null;let e=await t();if(!e)return n.closed||n.close(),!1;if(n.closed)throw Error("The sign-in tab was closed before it finished opening. Try again.");return n.location.replace(e),!0}catch(t){throw n.closed||n.close(),t}}e.d(n,{c:()=>i,k:()=>a})}}]);

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.