@everfur/sdk 1.6.1 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Chat.d-B4GybUU4.d.ts → Chat.d-BIr_4AJt.d.ts} +1 -1
- package/dist/{Chat.d-DPM2ncxi.d.cts → Chat.d-BhevtXn9.d.cts} +1 -1
- package/dist/{DepthViews.d-BGspxovy.d.cts → DepthViews.d-C8KdfzwR.d.cts} +1 -1
- package/dist/{DepthViews.d-BaLh7Lsi.d.cts → DepthViews.d-DWQ-J208.d.cts} +1 -1
- package/dist/{DepthViews.d-BIHVrf9r.d.ts → DepthViews.d-DYVUq4Xk.d.ts} +1 -1
- package/dist/{DepthViews.d-CEVk9poG.d.ts → DepthViews.d-oKr9R0Ql.d.ts} +1 -1
- package/dist/{IntakeMedia.d-CwSkSLNM.d.ts → IntakeMedia.d-B-ZZK6vd.d.ts} +1 -1
- package/dist/{IntakeMedia.d-LRXO38_z.d.cts → IntakeMedia.d-CuVkzIsO.d.cts} +1 -1
- package/dist/{IntakeMedia.d-DmaeGU6T.d.cts → IntakeMedia.d-CyF6NPHx.d.cts} +1 -1
- package/dist/{IntakeMedia.d-Dyb9R8b0.d.ts → IntakeMedia.d-vU8g9OM5.d.ts} +1 -1
- package/dist/{RecordsPage.d-D10RIgdc.d.ts → RecordsPage.d-DU8Nswzh.d.ts} +1 -1
- package/dist/{RecordsPage.d-DbhYNSbq.d.cts → RecordsPage.d-DzPhqMHW.d.cts} +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/{attachments.d-CF4lLuGK.d.cts → attachments.d-0nOPDIng.d.cts} +1 -1
- package/dist/{attachments.d-BlukNfIf.d.ts → attachments.d-BlyI-RCY.d.ts} +1 -1
- package/dist/{bookingCopy.d-Bn8bdo89.d.ts → bookingCopy.d-ClL8OxBS.d.ts} +3 -3
- package/dist/{bookingCopy.d-Dg7bPM-U.d.cts → bookingCopy.d-DUVqhF5f.d.cts} +3 -3
- package/dist/{branding.d-XrZYClN4.d.ts → branding.d-D0LV3aFE.d.ts} +1 -1
- package/dist/{branding.d-CqDLKj1U.d.cts → branding.d-DzSPLZKl.d.cts} +1 -1
- package/dist/{casesRepository.d-CVuKTkJo.d.cts → casesRepository.d-DnanKXJ1.d.cts} +1 -1
- package/dist/{casesRepository.d-Dn1fK1b2.d.ts → casesRepository.d-_4QucKVC.d.ts} +1 -1
- package/dist/chat/index.cjs +239 -238
- package/dist/chat/index.d.cts +11 -11
- package/dist/chat/index.d.ts +11 -11
- package/dist/chat/index.js +241 -240
- package/dist/chat/lite/index.cjs +239 -238
- package/dist/chat/lite/index.d.cts +11 -11
- package/dist/chat/lite/index.d.ts +11 -11
- package/dist/chat/lite/index.js +239 -238
- package/dist/{chatHandoffToken.d-zdp23Ukr.d.ts → chatHandoffToken.d-BoZGGbIB.d.ts} +5 -5
- package/dist/{chatHandoffToken.d-Cap2z62P.d.cts → chatHandoffToken.d-DhhGdLNH.d.cts} +5 -5
- package/dist/{checkin.d-CuIUahcd.d.cts → checkin.d-DB-HlK7r.d.cts} +9 -4
- package/dist/{checkin.d-BoZXWjxX.d.ts → checkin.d-DogrR06X.d.ts} +9 -4
- package/dist/{chunk-RF4N4WUN.js → chunk-25LX7XTO.js} +18 -18
- package/dist/{chunk-CQUKIPRU.js → chunk-7DLCYODF.js} +1 -1
- package/dist/{chunk-ZSCVH4UW.js → chunk-BFCVAT43.js} +16 -16
- package/dist/{chunk-DBQYQLJT.js → chunk-KR75CVE4.js} +1 -1
- package/dist/client/index.cjs +28 -27
- package/dist/client/index.d.cts +13 -13
- package/dist/client/index.d.ts +13 -13
- package/dist/client/index.js +25 -24
- package/dist/{clinicBatch.d-C0xx5L4j.d.cts → clinicBatch.d-BvPF6vXS.d.cts} +2 -2
- package/dist/{clinicBatch.d-DNi4UURs.d.ts → clinicBatch.d-CF0GIvpx.d.ts} +2 -2
- package/dist/{config.d-B7Z-KTGq.d.ts → config.d-Bc41Ax6M.d.ts} +5 -1
- package/dist/{config.d-ClAI2RZ6.d.cts → config.d-Bn6GEGfl.d.cts} +5 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-D7zX6Q0J.d.ts → context.d-0QfLaI3W.d.ts} +5 -5
- package/dist/{context.d-guaLkx5t.d.cts → context.d-CyQpedoU.d.cts} +5 -5
- package/dist/{copy.d--F5A9cXK.d.cts → copy.d-B55PpLxr.d.cts} +2 -2
- package/dist/{copy.d-DmxuFJFe.d.ts → copy.d-B8wIE6cH.d.ts} +2 -2
- package/dist/core/index.cjs +32 -31
- package/dist/core/index.d.cts +16 -16
- package/dist/core/index.d.ts +16 -16
- package/dist/core/index.js +32 -31
- package/dist/{depth.d-CgzYE6_n.d.ts → depth.d-CrtZXnLy.d.ts} +2 -2
- package/dist/{depth.d-DLaP0o8Y.d.cts → depth.d-Cxz6VisZ.d.cts} +2 -2
- package/dist/{entitlementRepository.d-CkUTlVAb.d.ts → entitlementRepository.d-BaZTIe1B.d.ts} +3 -3
- package/dist/{entitlementRepository.d-DVTp-BB9.d.cts → entitlementRepository.d-YeNG2TKI.d.cts} +3 -3
- package/dist/{focus.d-u-HYvim0.d.ts → focus.d-520VEHKB.d.ts} +1 -1
- package/dist/{focus.d-CLTjm6In.d.cts → focus.d-DoempN1I.d.cts} +1 -1
- package/dist/health-plan/index.cjs +236 -235
- package/dist/health-plan/index.d.cts +15 -15
- package/dist/health-plan/index.d.ts +15 -15
- package/dist/health-plan/index.js +236 -235
- package/dist/{healthPlanRepository.d-CwRXeoM7.d.ts → healthPlanRepository.d-BHu9LO0r.d.ts} +2 -2
- package/dist/{healthPlanRepository.d-B22kjrYa.d.cts → healthPlanRepository.d-tUR1f_5s.d.cts} +2 -2
- package/dist/{idempotency.d-DrxKLPPe.d.cts → idempotency.d-CcFLvzYW.d.cts} +1 -1
- package/dist/{idempotency.d-CbB07p64.d.ts → idempotency.d-CvqKG3Uq.d.ts} +1 -1
- package/dist/{identity.d-D4VtpqRr.d.ts → identity.d-Bex_XJZx.d.ts} +1 -1
- package/dist/{identity.d-DDpXOtas.d.cts → identity.d-Dm0Buvn8.d.cts} +1 -1
- package/dist/{inbox.d-B2JXK0uI.d.ts → inbox.d-9ajb0oiJ.d.ts} +1 -1
- package/dist/{inbox.d-CwA1ogzV.d.cts → inbox.d-CGCYOZIq.d.cts} +1 -1
- package/dist/index.cjs +362 -361
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +253 -252
- package/dist/{introEvents.d-DW3gLljE.d.ts → introEvents.d-CuVaufTy.d.ts} +1 -1
- package/dist/{introEvents.d-B7acmGwf.d.cts → introEvents.d-DU6feqx4.d.cts} +1 -1
- package/dist/{layout.d-C8y_ki1V.d.ts → layout.d-BQ5IVS-m.d.ts} +1 -1
- package/dist/{layout.d-DfaFM_lp.d.cts → layout.d-CSPr33BP.d.cts} +1 -1
- package/dist/notifications/inbox/index.d.cts +6 -6
- package/dist/notifications/inbox/index.d.ts +6 -6
- package/dist/notifications/index.d.cts +7 -7
- package/dist/notifications/index.d.ts +7 -7
- package/dist/{optInView.d-Cps7aLQN.d.ts → optInView.d-DpGXnpGw.d.ts} +21 -3
- package/dist/{optInView.d-ChJyJMBA.d.cts → optInView.d-dLjrI3co.d.cts} +21 -3
- package/dist/{pets.d-BpLObpfM.d.ts → pets.d-CHdSIoBf.d.ts} +1 -1
- package/dist/{pets.d-DXhzTNuI.d.cts → pets.d-jnhrJhqm.d.cts} +1 -1
- package/dist/{petsRepository.d-ai_tZ3lu.d.cts → petsRepository.d-BeKRiNao.d.cts} +1 -1
- package/dist/{petsRepository.d-_QfM7F6T.d.ts → petsRepository.d-BjwB1vku.d.ts} +1 -1
- package/dist/{presentation.d-BkIvMtIl.d.cts → presentation.d-Br3TnwA6.d.cts} +17 -1
- package/dist/{presentation.d-BkIvMtIl.d.ts → presentation.d-Br3TnwA6.d.ts} +17 -1
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/index.cjs +237 -228
- package/dist/records/index.d.cts +39 -12
- package/dist/records/index.d.ts +39 -12
- package/dist/records/index.js +155 -146
- package/dist/{requestFunnel.d-DKBPTpsy.d.ts → requestFunnel.d-C_NMgz9R.d.ts} +2 -2
- package/dist/{requestFunnel.d-BwZDfWVD.d.cts → requestFunnel.d-DoJWLySc.d.cts} +2 -2
- package/dist/{route.d-QBCoO62z.d.cts → route.d-BW2abFVK.d.cts} +2 -2
- package/dist/{route.d-B3u14HJT.d.ts → route.d-Olr_gXaa.d.ts} +2 -2
- package/dist/{runtimeTypes.d-hjN6xvxm.d.ts → runtimeTypes.d-Bp2VW6YE.d.ts} +6 -6
- package/dist/{runtimeTypes.d-BSxuUCOX.d.cts → runtimeTypes.d-StvJY45N.d.cts} +6 -6
- package/dist/{screenProps.d-fHBKArt_.d.ts → screenProps.d-BTLSji0N.d.ts} +1 -1
- package/dist/{screenProps.d-6xmE1C-V.d.cts → screenProps.d-B_5Bh7aQ.d.cts} +1 -1
- package/dist/server/events/index.cjs +2 -2
- package/dist/server/events/index.d.cts +19 -5
- package/dist/server/events/index.d.ts +19 -5
- package/dist/server/events/index.js +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +1 -1
- package/dist/shop/index.d.cts +3 -3
- package/dist/shop/index.d.ts +3 -3
- package/dist/slots/index.cjs +200 -199
- package/dist/slots/index.d.cts +5 -5
- package/dist/slots/index.d.ts +5 -5
- package/dist/slots/index.js +200 -199
- package/dist/tabs/index.cjs +200 -190
- package/dist/tabs/index.d.cts +68 -11
- package/dist/tabs/index.d.ts +68 -11
- package/dist/tabs/index.js +201 -191
- package/dist/tabs-bar/index.cjs +247 -0
- package/dist/tabs-bar/index.d.cts +10 -0
- package/dist/tabs-bar/index.d.ts +10 -0
- package/dist/tabs-bar/index.js +247 -0
- package/dist/{tabsModel.d-D9GWPFrL.d.ts → tabsModel.d-B4MSQB57.d.cts} +5 -2
- package/dist/{tabsModel.d-D9GWPFrL.d.cts → tabsModel.d-C8pd-DP3.d.ts} +5 -2
- package/dist/televet/booking/index.cjs +147 -145
- package/dist/televet/booking/index.d.cts +10 -10
- package/dist/televet/booking/index.d.ts +10 -10
- package/dist/televet/booking/index.js +163 -161
- package/dist/televet/call/index.cjs +52 -52
- package/dist/televet/call/index.d.cts +5 -0
- package/dist/televet/call/index.d.ts +5 -0
- package/dist/televet/call/index.js +25 -25
- package/dist/televet/index.d.cts +3 -3
- package/dist/televet/index.d.ts +3 -3
- package/dist/{televetGlobal.d-gZrXPaLl.d.cts → televetGlobal.d-B_I_fy7O.d.cts} +9 -0
- package/dist/{televetGlobal.d-DkJkV55Y.d.ts → televetGlobal.d-DN7o45WJ.d.ts} +9 -0
- package/dist/testing/index.cjs +3 -3
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +3 -3
- package/dist/testing/rn/index.d.cts +9 -9
- package/dist/testing/rn/index.d.ts +9 -9
- package/dist/testing/web/index.d.cts +9 -9
- package/dist/testing/web/index.d.ts +9 -9
- package/dist/texting/index.cjs +32 -27
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/texting/index.js +52 -47
- package/dist/{threadOptions.d-NSlFx-Lp.d.ts → threadOptions.d-D_3hk79R.d.ts} +5 -5
- package/dist/{threadOptions.d-Dc57dm7h.d.cts → threadOptions.d-D_GU6lp9.d.cts} +5 -5
- package/dist/{timelineRows.d-CthNM5hV.d.ts → timelineRows.d-BbVuARtc.d.ts} +1 -1
- package/dist/{timelineRows.d-7w8NsNi4.d.cts → timelineRows.d-BiLAAbYl.d.cts} +1 -1
- package/dist/{typeStyle.d-8mcLhtbH.d.ts → typeStyle.d-DSk99BuZ.d.ts} +1 -1
- package/dist/{typeStyle.d-CLrQZW-r.d.cts → typeStyle.d-DqR6mWCF.d.cts} +1 -1
- package/dist/{useHealthPlanSubscription.d-CV7M21HS.d.ts → useHealthPlanSubscription.d-CpE6l1VW.d.ts} +3 -3
- package/dist/{useHealthPlanSubscription.d-SA9-SuKe.d.cts → useHealthPlanSubscription.d-DRiWDJXq.d.cts} +3 -3
- package/dist/{useInboxUnread.d-0DrQPn7J.d.ts → useInboxUnread.d-BV7PkWDH.d.ts} +1 -1
- package/dist/{useInboxUnread.d-CRcOTkmu.d.cts → useInboxUnread.d-CElyXBkY.d.cts} +1 -1
- package/dist/{usePresentation.d-BJzFicRQ.d.cts → usePresentation.d-BcazazQH.d.cts} +3 -3
- package/dist/{usePresentation.d-DgSGIWS-.d.ts → usePresentation.d-CMOypLlH.d.ts} +3 -3
- package/dist/{useRecordsDepth.d-ZX2rhcUx.d.ts → useRecordsDepth.d-Bka4KQhq.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-C9W45gwS.d.cts → useRecordsDepth.d-TgmpxKdX.d.cts} +1 -1
- package/dist/{useUnread.d-4SbFChbd.d.ts → useUnread.d-CGqaP-dB.d.ts} +27 -5
- package/dist/{useUnread.d-B0YhhR_D.d.cts → useUnread.d-DVVnYNPU.d.cts} +27 -5
- package/dist/{view.d-3lxzyJlL.d.cts → view.d-CwruYhQy.d.cts} +3 -3
- package/dist/{view.d-DRiYNQJ8.d.ts → view.d-DamH8TQF.d.ts} +3 -3
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/health-plan/index.cjs +9 -8
- package/dist/web/health-plan/index.d.cts +16 -16
- package/dist/web/health-plan/index.d.ts +16 -16
- package/dist/web/health-plan/index.js +49 -48
- package/dist/web/inbox/index.d.cts +7 -7
- package/dist/web/inbox/index.d.ts +7 -7
- package/dist/web/index.cjs +185 -184
- package/dist/web/index.d.cts +32 -32
- package/dist/web/index.d.ts +32 -32
- package/dist/web/index.js +179 -178
- package/dist/web/intro/index.d.cts +7 -7
- package/dist/web/intro/index.d.ts +7 -7
- package/dist/web/notifications/index.d.cts +6 -6
- package/dist/web/notifications/index.d.ts +6 -6
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records-sheet/index.cjs +111 -110
- package/dist/web/records-sheet/index.js +111 -110
- package/dist/web/shop/index.cjs +1 -1
- package/dist/web/shop/index.d.cts +3 -3
- package/dist/web/shop/index.d.ts +3 -3
- package/dist/web/shop/index.js +1 -1
- package/dist/web/televet/booking/index.cjs +3 -3
- package/dist/web/televet/booking/index.d.cts +10 -10
- package/dist/web/televet/booking/index.d.ts +10 -10
- package/dist/web/televet/booking/index.js +69 -69
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/televet/index.d.cts +3 -3
- package/dist/web/televet/index.d.ts +3 -3
- package/dist/web/texting/index.cjs +34 -29
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/dist/web/texting/index.js +45 -40
- package/dist/web/ui/index.cjs +1 -1
- package/dist/web/ui/index.js +41 -41
- package/package.json +16 -1
- package/tabs-bar/package.json +8 -0
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
-
"use strict";var e=require("react"),t=require("react-native"),r=require("react-native-safe-area-context"),o=require("react/jsx-runtime");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach(function(r){if(r!=="default"){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:true,get:function(){return e[r]}})}})}t.default=e;return Object.freeze(t)}var i=/*#__PURE__*/l(t);var n=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let r=e.type,o=r.families[t];return t==="mono"||r.namedFaces[t]?{fontFamily:o}:{fontFamily:o,fontWeight:r.weight[n[t]]}}function headingFace(e,t="bold"){let{headingFamily:r,headingWeight:o}=e.type;if(r===null&&o===null)return face(e,t);if(r!==null)return{fontFamily:r,fontWeight:o??e.type.weight[n[t]]};let l=face(e,t);return l.fontWeight===void 0||o===null?l:{fontFamily:l.fontFamily,fontWeight:o}}function a(e){return e<=450?"regular":e<=650?"medium":"bold"}var s={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let r=c.get(e);r===void 0&&(r=/* @__PURE__ */new Map,c.set(e,r));let o=r.get(t);if(o!==void 0)return o;let l=u(e,t);return r.set(t,l),l}var c=/* @__PURE__ */new WeakMap;function u(e,t){let r=e.type.roles[t],o=r.weight==="400"&&r.face!=="mono"?e.type.weight.regular:r.weight,l=a(Number(o)),i=r.face==="mono"?face(e,s[l]):r.face==="heading"?headingFace(e,l):face(e,l),n=r.face==="heading"?e.type.headingWeight??o:o,c=i.fontWeight===void 0?i:{fontFamily:i.fontFamily,fontWeight:n},u=r.size,d={...c,fontSize:u,lineHeight:Math.round(u*r.lineHeight*100)/100};return r.letterSpacing!==0&&(d.letterSpacing=Math.round(u*r.letterSpacing*100)/100),r.uppercase&&(d.textTransform="uppercase"),/* @__PURE__ */Object.freeze(d)}var d=/* @__PURE__ */Object.freeze({track(){},trackExpectedFailure(){}});function f(e,t){let r=globalThis.URL;if(typeof r=="function"){let o;try{o=t===void 0?new r(e):new r(e,t)}catch{return null}try{if(o.protocol)return o}catch{}}return p(e)}var b=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,g=/[\s\u0000-\u001f\u007f\\]/,h={"http:":"80","https:":"443"};function p(e,t){let r=e.trim();let o=g.test(r)?null:b.exec(r);if(o===null)return null;let[,l="",i="",n="",a="",s="",c="",u="",d=""]=o,f=`${l.toLowerCase()}:`,p=Number(s);if(p>65535)return null;let m=s===""||String(p)===h[f]?"":String(p),y=h[f]!==void 0,v=a.toLowerCase()+(m&&`:${m}`),C=c||(y?"/":""),x=i||n?`${i}${n&&`:${n}`}@`:"";return{href:`${f}//${x}${v}${C}${u}${d}`,protocol:f,username:i,password:n,hostname:a.toLowerCase(),port:m,origin:y?`${f}//${v}`:"null",pathname:C,search:u==="?"?"":u,hash:d==="#"?"":d}}function isSafeRoomUrl(e){return f(e.trim())?.protocol==="https:"}function isUsableRoomCredential(e,t){return isSafeRoomUrl(e)&&t.trim().length>0}function m(e){let t=globalThis.console;try{t?.error?.("[everfur] A host callback threw; the SDK ignored it.",e)}catch{}}function y(e){return(typeof e=="object"||typeof e=="function")&&e!==null&&typeof e.then=="function"}function v(e,...t){if(typeof e=="function")try{let r=e(...t);return y(r)&&Promise.resolve(r).then(void 0,m),r}catch(e){m(e);return}}var C=/* @__PURE__ */new WeakMap;function x(e){if(typeof e!="function")return;let t=C.get(e);if(t!==void 0)return t;let r=(...t)=>{v(e,...t)};return C.set(e,r),r}function w(e,t){let r=null;for(let o of t){let t=e[o];typeof t=="function"&&(r??={...e},r[o]=x(t))}return r??e}var j=10,F=/* @__PURE__ */Object.freeze({muteCta:"Mute",unmuteCta:"Unmute",cameraOffCta:"Camera off",cameraOnCta:"Camera on",leaveCta:"Leave",switchCameraCta:"Switch camera",speakerOffCta:"Speaker off",speakerOnCta:"Speaker on",lobbyTitleNoName:"Your vet is joining",lobbySubtitle:"",lobbyPrepLabel:"While you wait",lobbyPrepNoPet:"Have your pet nearby and somewhere well lit.",lobbyTitle:e=>{let t=e?.trim()??"";return t.length>0?`${t} is joining`:F.lobbyTitleNoName},lobbyPrep:e=>{let t=e?.trim()??"";return t.length>0?`Have ${t} nearby and somewhere well lit.`:F.lobbyPrepNoPet},lobbyDuration:e=>`${e} minutes`,waitingRoomLabel:"Waiting room",leaveWaitingRoomLabel:"Leave the waiting room",lobbyTipsTitle:e=>{let t=e?.trim()??"";return t.length>0?`Before ${t} joins`:F.lobbyPrepLabel},lobbyTipSpot:"Find a bright, quiet spot.",joinFailedReason:"That did not open. Try again.",recordingNoticeTitle:"This consultation is recorded.",recordingNoticeCta:"Continue to the call",recordingNoticeDecline:"Not now",selfCameraOffLabel:"Your camera is off"});function S(e){let t=Math.max(0,Math.floor(e/1e3)),r=String(t%60).padStart(2,"0"),o=Math.floor(t%3600/60),l=Math.floor(t/3600);return l>0?`${l}:${String(o).padStart(2,"0")}:${r}`:`${o}:${r}`}var k=/* @__PURE__ */Object.freeze({position:"absolute",top:0,right:0,bottom:0,left:0});var B=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var z=Object.freeze;function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){z(e);for(let t of Object.keys(e))deepFreeze(e[t])}return e}var T=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var D={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},O={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},R={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},I={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},L={regular:"400",medium:"500",bold:"700"},V={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},E=0,H="System",A="monospace",M=["content","heading","control","compact","badge"];function P(e){let t={};for(let r of M)t[r]=e;return t}var W=[];function N(){return{family:H,mono:A,fontUrl:null,families:{regular:H,medium:H,bold:H,mono:A,monoMedium:A,monoBold:A},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:R,tierSizes:P(R),lineHeight:I,weight:L,letterSpacing:V,scale:1,maxScale:E,scaleCaps:T,headingFamily:null,headingWeight:null,fontSources:W,roles:B,typeScale:1}}var $={},G=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var U={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(G.standard),emphasized:cssCubicBezier(G.emphasized),exit:cssCubicBezier(G.exit)},reducedMotion:false},_={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},q=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:_,space:D,radius:O,type:N(),motion:U,slots:$}),Y={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"};deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Y,space:D,radius:O,type:N(),motion:U,slots:$});var X=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),J=globalThis,K=J[X]??(J[X]=e.createContext(q));K.displayName??="EverfurThemeContext";function useEverfurTheme(){return e.useContext(K)}function Q(e,t){let r=e.scaleCaps[t];return r>0?r:void 0}function Text({tier:r,variant:o,...l}){let i=useEverfurTheme(),n=o===void 0?void 0:i.type.roles[o],a=Q(i.type,r??n?.tier??"content"),s=o===void 0?l:{...l,style:[{...textRole(i,o),color:i.color.text.primary,flexShrink:1},l.style]};return e.createElement(t.Text,a===void 0?s:{maxFontSizeMultiplier:a,...s})}e.forwardRef(function(r,o){return e.createElement(t.TextInput,{...r,...o===null?{}:{ref:o}})});var Z=640,ee=600,te=/* @__PURE__ */Object.freeze({width:0,height:0}),re="useWindowDimensions"in i&&typeof i.useWindowDimensions=="function"?i.useWindowDimensions:()=>te,oe=/* @__PURE__ */Object.freeze({width:"100%",maxWidth:Z,alignSelf:"center"});/* @__PURE__ */Object.freeze({...oe,flex:1});var le=/* @__PURE__ */Object.freeze({...oe,flexGrow:1,flexShrink:1});function ie(){return re().width>=ee}var ne=/* @__PURE__ */Symbol.for("@everfur/sdk#InSdkColumn@v1"),ae=globalThis,se=ae[ne]??(ae[ne]=e.createContext(false));se.displayName??="EverfurInSdkColumn";function SdkTabletColumn({children:r,style:l,testID:i}){let n=ie(),a=e.useContext(se);return!n||a?r:/* @__PURE__ */o.jsx(t.View,{style:l===void 0?le:[le,l],testID:i??"everfur-tablet-column",children:/* @__PURE__ */o.jsx(se.Provider,{value:true,children:r})})}function optionalModule(e,t,r){let o;try{o=t()}catch(t){return ue(`optional peer '${e}' is not installed: ${de(t)}`)}let l=ce(o);return l==null?ue(`optional peer '${e}' resolved to no module`):r&&!r(l)?ue(`optional peer '${e}' is present but failed its shape check`):/* @__PURE__ */Object.freeze({available:true,module:l})}function ce(e){return typeof e=="object"&&e!==null&&"default"in e&&Object.keys(e).length<=2?e.default:e}function ue(e){/* @__PURE__ */
|
|
3
|
-
return Object.freeze({available:false,module:null,reason:e})}function
|
|
4
|
-
return Object.freeze({available:false,module:null,reason:e})}function registerEverfurDaily(e){we=e,je=null,ge(e!==null)}function loadEverfurDaily(){if(je!==null)return je;let e=we;if(e===null)return je=
|
|
5
|
-
return o.jsx(t.Pressable,{onPress:
|
|
6
|
-
return o.jsx(t.View,{style:
|
|
7
|
-
return o.jsx(t.View,{style:[
|
|
2
|
+
"use strict";var e=require("react"),t=require("react-native"),r=require("react-native-safe-area-context"),o=require("react/jsx-runtime");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach(function(r){if(r!=="default"){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:true,get:function(){return e[r]}})}})}t.default=e;return Object.freeze(t)}var l=/*#__PURE__*/i(t);var n=/* @__PURE__ */Object.freeze({regular:"regular",medium:"medium",bold:"bold",mono:"regular",monoMedium:"medium",monoBold:"bold"});function face(e,t){let r=e.type,o=r.families[t];return t==="mono"||r.namedFaces[t]?{fontFamily:o}:{fontFamily:o,fontWeight:r.weight[n[t]]}}function headingFace(e,t="bold"){let{headingFamily:r,headingWeight:o}=e.type;if(r===null&&o===null)return face(e,t);if(r!==null)return{fontFamily:r,fontWeight:o??e.type.weight[n[t]]};let i=face(e,t);return i.fontWeight===void 0||o===null?i:{fontFamily:i.fontFamily,fontWeight:o}}function a(e){return e<=450?"regular":e<=650?"medium":"bold"}var s={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let r=c.get(e);r===void 0&&(r=/* @__PURE__ */new Map,c.set(e,r));let o=r.get(t);if(o!==void 0)return o;let i=d(e,t);return r.set(t,i),i}var c=/* @__PURE__ */new WeakMap;function d(e,t){let r=e.type.roles[t],o=r.weight==="400"&&r.face!=="mono"?e.type.weight.regular:r.weight,i=a(Number(o)),l=r.face==="mono"?face(e,s[i]):r.face==="heading"?headingFace(e,i):face(e,i),n=r.face==="heading"?e.type.headingWeight??o:o,c=l.fontWeight===void 0?l:{fontFamily:l.fontFamily,fontWeight:n},d=r.size,u={...c,fontSize:d,lineHeight:Math.round(d*r.lineHeight*100)/100};return r.letterSpacing!==0&&(u.letterSpacing=Math.round(d*r.letterSpacing*100)/100),r.uppercase&&(u.textTransform="uppercase"),/* @__PURE__ */Object.freeze(u)}var u=/* @__PURE__ */Object.freeze({track(){},trackExpectedFailure(){}});function f(e,t){let r=globalThis.URL;if(typeof r=="function"){let o;try{o=t===void 0?new r(e):new r(e,t)}catch{return null}try{if(o.protocol)return o}catch{}}return p(e)}var b=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,g=/[\s\u0000-\u001f\u007f\\]/,h={"http:":"80","https:":"443"};function p(e,t){let r=e.trim();let o=g.test(r)?null:b.exec(r);if(o===null)return null;let[,i="",l="",n="",a="",s="",c="",d="",u=""]=o,f=`${i.toLowerCase()}:`,p=Number(s);if(p>65535)return null;let m=s===""||String(p)===h[f]?"":String(p),y=h[f]!==void 0,v=a.toLowerCase()+(m&&`:${m}`),x=c||(y?"/":""),C=l||n?`${l}${n&&`:${n}`}@`:"";return{href:`${f}//${C}${v}${x}${d}${u}`,protocol:f,username:l,password:n,hostname:a.toLowerCase(),port:m,origin:y?`${f}//${v}`:"null",pathname:x,search:d==="?"?"":d,hash:u==="#"?"":u}}function isSafeRoomUrl(e){return f(e.trim())?.protocol==="https:"}function isUsableRoomCredential(e,t){return isSafeRoomUrl(e)&&t.trim().length>0}function m(e){let t=globalThis.console;try{t?.error?.("[everfur] A host callback threw; the SDK ignored it.",e)}catch{}}function y(e){return(typeof e=="object"||typeof e=="function")&&e!==null&&typeof e.then=="function"}function v(e,...t){if(typeof e=="function")try{let r=e(...t);return y(r)&&Promise.resolve(r).then(void 0,m),r}catch(e){m(e);return}}var x=/* @__PURE__ */new WeakMap;function C(e){if(typeof e!="function")return;let t=x.get(e);if(t!==void 0)return t;let r=(...t)=>{v(e,...t)};return x.set(e,r),r}function w(e,t){let r=null;for(let o of t){let t=e[o];typeof t=="function"&&(r??={...e},r[o]=C(t))}return r??e}var j=10,S=/* @__PURE__ */Object.freeze({muteCta:"Mute",unmuteCta:"Unmute",cameraOffCta:"Camera off",cameraOnCta:"Camera on",leaveCta:"Leave",switchCameraCta:"Switch camera",speakerOffCta:"Speaker off",speakerOnCta:"Speaker on",lobbyTitleNoName:"Your vet is joining",lobbySubtitle:"",lobbyPrepLabel:"While you wait",lobbyPrepNoPet:"Have your pet nearby and somewhere well lit.",lobbyTitle:e=>{let t=e?.trim()??"";return t.length>0?`${t} is joining`:S.lobbyTitleNoName},lobbyPrep:e=>{let t=e?.trim()??"";return t.length>0?`Have ${t} nearby and somewhere well lit.`:S.lobbyPrepNoPet},lobbyDuration:e=>`${e} minutes`,waitingRoomLabel:"Waiting room",leaveWaitingRoomLabel:"Leave the waiting room",lobbyTipsTitle:e=>{let t=e?.trim()??"";return t.length>0?`Before ${t} joins`:S.lobbyPrepLabel},lobbyTipSpot:"Find a bright, quiet spot.",joinFailedReason:"That did not open. Try again.",recordingNoticeTitle:"This consultation is recorded.",recordingNoticeCta:"Continue to the call",recordingNoticeDecline:"Not now",selfCameraOffLabel:"Your camera is off"});function F(e){let t=Math.max(0,Math.floor(e/1e3)),r=String(t%60).padStart(2,"0"),o=Math.floor(t%3600/60),i=Math.floor(t/3600);return i>0?`${i}:${String(o).padStart(2,"0")}:${r}`:`${o}:${r}`}var k=/* @__PURE__ */Object.freeze({position:"absolute",top:0,right:0,bottom:0,left:0});var B=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var z=Object.freeze;function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){z(e);for(let t of Object.keys(e))deepFreeze(e[t])}return e}var T=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var D={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},O={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},R={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},I={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},V={regular:"400",medium:"500",bold:"700"},L={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},E=0,H="System",A="monospace",M=["content","heading","control","compact","badge"];function P(e){let t={};for(let r of M)t[r]=e;return t}var W=[];function N(){return{family:H,mono:A,fontUrl:null,families:{regular:H,medium:H,bold:H,mono:A,monoMedium:A,monoBold:A},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:R,tierSizes:P(R),lineHeight:I,weight:V,letterSpacing:L,scale:1,maxScale:E,scaleCaps:T,headingFamily:null,headingWeight:null,fontSources:W,roles:B,typeScale:1}}var $={},G=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var U={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(G.standard),emphasized:cssCubicBezier(G.emphasized),exit:cssCubicBezier(G.exit)},reducedMotion:false},_={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},q=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:_,space:D,radius:O,type:N(),motion:U,slots:$}),Y={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"};deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Y,space:D,radius:O,type:N(),motion:U,slots:$});var X=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),J=globalThis,K=J[X]??(J[X]=e.createContext(q));K.displayName??="EverfurThemeContext";function useEverfurTheme(){return e.useContext(K)}function Q(e,t){let r=e.scaleCaps[t];return r>0?r:void 0}function Text({tier:r,variant:o,...i}){let l=useEverfurTheme(),n=o===void 0?void 0:l.type.roles[o],a=Q(l.type,r??n?.tier??"content"),s=o===void 0?i:{...i,style:[{...textRole(l,o),color:l.color.text.primary,flexShrink:1},i.style]};return e.createElement(t.Text,a===void 0?s:{maxFontSizeMultiplier:a,...s})}e.forwardRef(function(r,o){return e.createElement(t.TextInput,{...r,...o===null?{}:{ref:o}})});var Z=640,ee=600,te=/* @__PURE__ */Object.freeze({width:0,height:0}),re="useWindowDimensions"in l&&typeof l.useWindowDimensions=="function"?l.useWindowDimensions:()=>te,oe=/* @__PURE__ */Object.freeze({width:"100%",maxWidth:Z,alignSelf:"center"});/* @__PURE__ */Object.freeze({...oe,flex:1});var ie=/* @__PURE__ */Object.freeze({...oe,flexGrow:1,flexShrink:1});function le(){return re().width>=ee}var ne=/* @__PURE__ */Symbol.for("@everfur/sdk#InSdkColumn@v1"),ae=globalThis,se=ae[ne]??(ae[ne]=e.createContext(false));se.displayName??="EverfurInSdkColumn";function SdkTabletColumn({children:r,style:i,testID:l}){let n=le(),a=e.useContext(se);return!n||a?r:/* @__PURE__ */o.jsx(t.View,{style:i===void 0?ie:[ie,i],testID:l??"everfur-tablet-column",children:/* @__PURE__ */o.jsx(se.Provider,{value:true,children:r})})}function optionalModule(e,t,r){let o;try{o=t()}catch(t){return de(`optional peer '${e}' is not installed: ${ue(t)}`)}let i=ce(o);return i==null?de(`optional peer '${e}' resolved to no module`):r&&!r(i)?de(`optional peer '${e}' is present but failed its shape check`):/* @__PURE__ */Object.freeze({available:true,module:i})}function ce(e){return typeof e=="object"&&e!==null&&"default"in e&&Object.keys(e).length<=2?e.default:e}function de(e){/* @__PURE__ */
|
|
3
|
+
return Object.freeze({available:false,module:null,reason:e})}function ue(e){return e instanceof Error?e.message:typeof e=="string"?e:"unknown load error"}var fe=/* @__PURE__ */Symbol.for("@everfur/sdk/televet");function be(){let e=globalThis,t=e[fe];if(t!==void 0)return t;let r={presenter:null,snapshot:/* @__PURE__ */Object.freeze({request:null,serial:0,activeHost:null}),hosts:[],nextHost:1,listeners:/* @__PURE__ */new Set,dailyRegistered:false};return e[fe]=r,r}function ge(e){be().dailyRegistered=e}var he=`[everfur] The in-app vet call needs the Daily native modules, which this app has not registered. Install @daily-co/react-native-daily-js, @daily-co/react-native-webrtc and (Expo) @daily-co/config-plugin-rn-daily-js, rebuild the native app (a JS-only OTA cannot add a native module), and call registerEverfurDaily(() => require('@daily-co/react-native-daily-js')) once in your app entry. ON EXPO GO THIS CANNOT BE FIXED BY INSTALLING: Expo Go runs a fixed set of native modules and cannot load Daily at any version, so you need a development build (expo prebuild, then run the native app) before the in-app call works at all. Until then the in-app visit tells the member the call cannot be joined; <VetVisitButton prefer="redirect" /> is the explicit way to the hosted visit in the browser, which needs no native module.`,pe="@daily-co/react-native-daily-js",me=`optional peer '${pe}' has no registered loader`,ye=`optional peer '${pe}' is present but failed its shape check`;function ve(e){return typeof e=="object"&&e!==null}function xe(e){return ve(e)&&"box"in e}function Ce(e){let t=e.default,r=ve(t)||typeof t=="function"?t:{},o=typeof e.createCallObject=="function"?e:r,i=o.createCallObject,l={createCallObject:typeof i=="function"?i.bind(o):i,DailyMediaView:e.DailyMediaView??r.DailyMediaView};return isEverfurDailyModule(l)?l:null}function isEverfurDailyModule(e){if(!ve(e)||typeof e.createCallObject!="function")return false;let t=e.DailyMediaView;return typeof t=="function"||typeof t=="object"&&t!==null}var we=null,je=null;function Se(e){/* @__PURE__ */
|
|
4
|
+
return Object.freeze({available:false,module:null,reason:e})}function registerEverfurDaily(e){we=e,je=null,ge(e!==null)}function loadEverfurDaily(){if(je!==null)return je;let e=we;if(e===null)return je=Se(me),je;let t=optionalModule(pe,()=>({box:e()}),xe);if(!t.available)return je=Se(t.reason),je;let r=t.module.box;if(!ve(r))return je=Se(ye),je;let o=Ce(r);return je=o===null?Se(ye):/* @__PURE__ */Object.freeze({available:true,module:o}),je}function CallControl({label:e,glyph:r,onPress:i,testID:l,muted:n=false,style:a}){/* @__PURE__ */
|
|
5
|
+
return o.jsx(t.Pressable,{onPress:i,testID:l,accessibilityRole:"button",accessibilityLabel:e,accessibilityState:{selected:n},style:a,children:r})}function GlyphBox({children:e,testID:r}){/* @__PURE__ */
|
|
6
|
+
return o.jsx(t.View,{style:Fe.box,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:r,children:e})}function Slash({color:e}){/* @__PURE__ */
|
|
7
|
+
return o.jsx(t.View,{style:[Fe.slash,{backgroundColor:e}]})}function MicGlyph({color:e,off:r=false}){/* @__PURE__ */
|
|
8
8
|
return o.jsxs(GlyphBox,{testID:r?"glyph-mic-off":"glyph-mic",children:[
|
|
9
|
-
/* @__PURE__ */o.jsxs(t.View,{style:
|
|
10
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
11
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
12
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
9
|
+
/* @__PURE__ */o.jsxs(t.View,{style:Fe.column,children:[
|
|
10
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.micCapsule,{borderColor:e}]}),
|
|
11
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.micCradle,{borderColor:e}]}),
|
|
12
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.micStem,{backgroundColor:e}]})]}),r?/* @__PURE__ */o.jsx(Slash,{color:e}):null]})}function CameraGlyph({color:e,off:r=false}){/* @__PURE__ */
|
|
13
13
|
return o.jsxs(GlyphBox,{testID:r?"glyph-camera-off":"glyph-camera",children:[
|
|
14
|
-
/* @__PURE__ */o.jsxs(t.View,{style:
|
|
15
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
16
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
14
|
+
/* @__PURE__ */o.jsxs(t.View,{style:Fe.row,children:[
|
|
15
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.cameraBody,{borderColor:e}]}),
|
|
16
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.cameraLens,{borderRightColor:e}]})]}),r?/* @__PURE__ */o.jsx(Slash,{color:e}):null]})}function SpeakerGlyph({color:e,off:r=false}){/* @__PURE__ */
|
|
17
17
|
return o.jsxs(GlyphBox,{testID:r?"glyph-speaker-off":"glyph-speaker",children:[
|
|
18
|
-
/* @__PURE__ */o.jsxs(t.View,{style:
|
|
19
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
20
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
21
|
-
return o.jsx(GlyphBox,{testID:"glyph-switch-camera",children:/* @__PURE__ */o.jsxs(t.View,{style:[
|
|
22
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
23
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
24
|
-
return o.jsx(GlyphBox,{testID:"glyph-leave",children:/* @__PURE__ */o.jsxs(t.View,{style:
|
|
25
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
26
|
-
/* @__PURE__ */o.jsxs(t.View,{style:
|
|
27
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
28
|
-
/* @__PURE__ */o.jsx(t.View,{style:[
|
|
29
|
-
return o.jsx(t.Pressable,{onPress:
|
|
18
|
+
/* @__PURE__ */o.jsxs(t.View,{style:Fe.row,children:[
|
|
19
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.speakerBox,{backgroundColor:e}]}),
|
|
20
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.speakerCone,{borderRightColor:e}]}),r?null:/* @__PURE__ */o.jsx(t.View,{style:[Fe.speakerWave,{borderColor:e}]})]}),r?/* @__PURE__ */o.jsx(Slash,{color:e}):null]})}function SwitchCameraGlyph({color:e}){/* @__PURE__ */
|
|
21
|
+
return o.jsx(GlyphBox,{testID:"glyph-switch-camera",children:/* @__PURE__ */o.jsxs(t.View,{style:[Fe.switchBody,{borderColor:e}],children:[
|
|
22
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.switchTurn,{borderColor:e,borderTopColor:"transparent"}]}),
|
|
23
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.switchHead,{borderBottomColor:e}]})]})})}function LeaveGlyph({color:e}){/* @__PURE__ */
|
|
24
|
+
return o.jsx(GlyphBox,{testID:"glyph-leave",children:/* @__PURE__ */o.jsxs(t.View,{style:Fe.column,children:[
|
|
25
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.receiver,{borderColor:e}]}),
|
|
26
|
+
/* @__PURE__ */o.jsxs(t.View,{style:Fe.receiverPads,children:[
|
|
27
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.receiverPad,{backgroundColor:e}]}),
|
|
28
|
+
/* @__PURE__ */o.jsx(t.View,{style:[Fe.receiverPad,{backgroundColor:e}]})]})]})})}var Fe=t.StyleSheet.create({box:{width:24,height:24,alignItems:"center",justifyContent:"center"},row:{flexDirection:"row",alignItems:"center"},column:{alignItems:"center"},slash:{position:"absolute",width:2,height:28,borderRadius:1,transform:[{rotate:"-45deg"}]},micCapsule:{width:10,height:14,borderRadius:5,borderWidth:2},micCradle:{width:16,height:8,marginTop:-5,borderWidth:2,borderTopWidth:0,borderBottomLeftRadius:8,borderBottomRightRadius:8},micStem:{width:2,height:3},cameraBody:{width:14,height:12,borderRadius:3,borderWidth:2},cameraLens:{width:0,height:0,marginLeft:1,borderTopWidth:5,borderBottomWidth:5,borderRightWidth:6,borderTopColor:"transparent",borderBottomColor:"transparent"},speakerBox:{width:4,height:8,borderRadius:1},speakerCone:{width:0,height:0,borderTopWidth:7,borderBottomWidth:7,borderRightWidth:7,borderTopColor:"transparent",borderBottomColor:"transparent",transform:[{rotate:"180deg"}]},speakerWave:{width:7,height:12,marginLeft:2,borderWidth:2,borderLeftWidth:0,borderTopRightRadius:6,borderBottomRightRadius:6},switchBody:{width:20,height:15,borderRadius:3,borderWidth:2,alignItems:"center",justifyContent:"center"},switchTurn:{width:9,height:9,borderRadius:4.5,borderWidth:2},switchHead:{position:"absolute",top:2,right:4,width:0,height:0,borderLeftWidth:3,borderRightWidth:3,borderBottomWidth:4,borderLeftColor:"transparent",borderRightColor:"transparent"},receiver:{width:22,height:10,borderWidth:3,borderBottomWidth:0,borderTopLeftRadius:11,borderTopRightRadius:11},receiverPads:{flexDirection:"row",width:22,justifyContent:"space-between",marginTop:-1},receiverPad:{width:5,height:4,borderRadius:1}});var ke=/* @__PURE__ */Object.freeze({surface:"rgba(255,255,255,0.08)",surfaceRaised:"rgba(255,255,255,0.14)",surfaceActive:"rgba(255,255,255,0.24)",hairline:"rgba(255,255,255,0.18)",glyph:"rgba(255,255,255,0.72)",textSecondary:"rgba(255,255,255,0.78)",textTertiary:"rgba(255,255,255,0.56)"}),Be=3,ze=180,Te=420,De=.35,Oe=.6,Re=360,Ie=132,Ve=184,Le=44;function Ee(e){return typeof e=="number"&&Number.isInteger(e)&&e>=1?e:10}function WaitingDots({reducedMotion:r,styles:i}){let l=e.useRef(Array.from({length:Be},()=>new t.Animated.Value(De))).current;return e.useEffect(()=>{if(r)return;let e=l.map((e,r)=>t.Animated.loop(t.Animated.sequence([t.Animated.delay(r*ze),t.Animated.timing(e,{toValue:1,duration:Te,useNativeDriver:true}),t.Animated.timing(e,{toValue:De,duration:Te,useNativeDriver:true}),t.Animated.delay((Be-r-1)*ze)])));for(let t of e)t.start();return()=>{for(let t of e)t.stop()}},[r,l]),/* @__PURE__ */o.jsx(t.View,{style:i.dotRow,testID:"everfur-vet-lobby-dots",accessibilityElementsHidden:true,importantForAccessibility:"no",children:l.map((e,l)=>/* @__PURE__ */o.jsx(t.Animated.View,{style:[i.dot,{opacity:r?Oe:e}]},l))})}function LobbyControl({label:e,glyph:r,active:i,onPress:l,testID:n,styles:a}){/* @__PURE__ */
|
|
29
|
+
return o.jsx(t.Pressable,{onPress:l,testID:n,accessibilityRole:"button",accessibilityState:{selected:!i},accessibilityLabel:e,style:[a.control,i?null:a.controlOff],children:r})}function EverfurVetCallLobby(i){let{clinicianName:l,petName:n,consultMinutes:a,micOn:s,cameraOn:c,onToggleMic:d,onToggleCamera:u,onSwitchCamera:f,onLeave:b,style:g}=i,h=useEverfurTheme(),p=e.useMemo(()=>He(h),[h]),m=r.useSafeAreaInsets(),{width:y}=t.useWindowDimensions(),v=y<Re?Ie:Ve;/* @__PURE__ */
|
|
30
30
|
return o.jsx(t.View,{style:[p.root,{paddingTop:m.top+h.space.sm,paddingBottom:m.bottom+h.space.lg},g],testID:"everfur-vet-lobby",children:/* @__PURE__ */o.jsxs(SdkTabletColumn,{children:[
|
|
31
31
|
/* @__PURE__ */o.jsxs(t.View,{style:p.topRow,children:[
|
|
32
|
-
/* @__PURE__ */o.jsx(t.Pressable,{onPress:b,accessibilityRole:"button",accessibilityLabel:
|
|
33
|
-
/* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.prepLabel,testID:"everfur-vet-lobby-label",children:
|
|
32
|
+
/* @__PURE__ */o.jsx(t.Pressable,{onPress:b,accessibilityRole:"button",accessibilityLabel:S.leaveCta,testID:"everfur-vet-lobby-leave",hitSlop:12,style:p.leaveHit,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:p.leaveLabel,children:S.leaveCta})}),
|
|
33
|
+
/* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.prepLabel,testID:"everfur-vet-lobby-label",children:S.waitingRoomLabel})]}),
|
|
34
34
|
/* @__PURE__ */o.jsxs(t.View,{style:p.center,children:[
|
|
35
35
|
/* @__PURE__ */o.jsxs(t.View,{style:[p.avatar,{width:v,height:v,borderRadius:v/2}],testID:"everfur-vet-lobby-avatar",accessibilityElementsHidden:true,importantForAccessibility:"no",children:[
|
|
36
36
|
/* @__PURE__ */o.jsx(t.View,{style:p.avatarGlyphHead}),
|
|
37
37
|
/* @__PURE__ */o.jsx(t.View,{style:p.avatarGlyphBody})]}),
|
|
38
|
-
/* @__PURE__ */o.jsx(t.View,{accessibilityLiveRegion:"polite",accessible:true,children:/* @__PURE__ */o.jsx(Text,{tier:"heading",style:p.title,testID:"everfur-vet-lobby-title",children:
|
|
38
|
+
/* @__PURE__ */o.jsx(t.View,{accessibilityLiveRegion:"polite",accessible:true,children:/* @__PURE__ */o.jsx(Text,{tier:"heading",style:p.title,testID:"everfur-vet-lobby-title",children:S.lobbyTitle(l)})}),
|
|
39
39
|
/* @__PURE__ */o.jsx(WaitingDots,{reducedMotion:h.motion.reducedMotion,styles:p})]}),
|
|
40
40
|
/* @__PURE__ */o.jsxs(t.View,{style:p.prepCard,testID:"everfur-vet-lobby-prep",children:[
|
|
41
|
-
/* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.prepLabel,children:
|
|
41
|
+
/* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.prepLabel,children:S.lobbyTipsTitle(l)}),[S.lobbyTipSpot,S.lobbyPrep(n)].map((e,r)=>/* @__PURE__ */o.jsxs(t.View,{style:p.tip,children:[
|
|
42
42
|
/* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.tipNumber,accessibilityElementsHidden:true,importantForAccessibility:"no",children:String(r+1).padStart(2,"0")}),
|
|
43
43
|
/* @__PURE__ */o.jsx(Text,{style:p.prepBody,children:e})]},e))]}),
|
|
44
44
|
/* @__PURE__ */o.jsxs(t.View,{style:p.controls,children:[
|
|
45
|
-
/* @__PURE__ */o.jsx(LobbyControl,{label:s?
|
|
46
|
-
/* @__PURE__ */o.jsx(LobbyControl,{label:c?
|
|
47
|
-
/* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.duration,testID:"everfur-vet-lobby-duration",children:
|
|
45
|
+
/* @__PURE__ */o.jsx(LobbyControl,{label:s?S.muteCta:S.unmuteCta,glyph:/* @__PURE__ */o.jsx(MicGlyph,{color:h.color.text.onBrand,off:!s}),active:s,onPress:d,testID:"everfur-vet-lobby-mic",styles:p}),
|
|
46
|
+
/* @__PURE__ */o.jsx(LobbyControl,{label:c?S.cameraOffCta:S.cameraOnCta,glyph:/* @__PURE__ */o.jsx(CameraGlyph,{color:h.color.text.onBrand,off:!c}),active:c,onPress:u,testID:"everfur-vet-lobby-camera",styles:p}),c&&f?/* @__PURE__ */o.jsx(LobbyControl,{label:S.switchCameraCta,glyph:/* @__PURE__ */o.jsx(SwitchCameraGlyph,{color:h.color.text.onBrand}),active:true,onPress:f,testID:"everfur-vet-lobby-switch-camera",styles:p}):null]}),
|
|
47
|
+
/* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.duration,testID:"everfur-vet-lobby-duration",children:S.lobbyDuration(Ee(a))})]})})}function He(e){let{color:r,space:o,radius:i,type:l}=e;return t.StyleSheet.create({root:{flex:1,backgroundColor:r.brand,paddingHorizontal:o.lg},topRow:{flexDirection:"row",alignItems:"center",gap:o.md},tip:{flexDirection:"row",gap:o.md,alignItems:"flex-start",paddingTop:o.sm},tipNumber:{...face(e,"monoBold"),color:ke.textSecondary,fontSize:13,width:24,paddingTop:4},leaveHit:{minHeight:Le,justifyContent:"center",paddingVertical:o.xs,paddingRight:o.md},leaveLabel:{...face(e,"medium"),color:r.text.onBrand,fontSize:l.size.body},center:{flex:1,alignItems:"center",justifyContent:"center"},avatar:{alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:r.success,backgroundColor:ke.surface,marginBottom:o.lg,overflow:"hidden"},avatarGlyphHead:{width:34,height:34,borderRadius:17,borderWidth:2,borderColor:ke.glyph,marginBottom:6},avatarGlyphBody:{width:66,height:33,borderTopLeftRadius:33,borderTopRightRadius:33,borderWidth:2,borderBottomWidth:0,borderColor:ke.glyph},title:{...face(e,"bold"),color:r.text.onBrand,fontSize:l.size.heading,lineHeight:Math.round(l.size.heading*l.lineHeight.snug),textAlign:"center",paddingHorizontal:o.sm},dotRow:{flexDirection:"row",gap:o.xs,marginTop:o.lg},dot:{width:8,height:8,borderRadius:4,backgroundColor:r.success},prepCard:{borderRadius:i.lg,borderWidth:1,borderColor:ke.hairline,backgroundColor:ke.surface,padding:o.lg,marginBottom:o.lg},prepLabel:{...face(e,"monoBold"),color:r.accent,fontSize:l.size.micro,letterSpacing:1.2,textTransform:"uppercase"},prepBody:{...face(e,"regular"),color:r.text.onBrand,fontSize:l.size.subtitle,lineHeight:Math.round(l.size.subtitle*l.lineHeight.relaxed)},controls:{flexDirection:"row",justifyContent:"center",gap:o.lg,marginBottom:o.lg},control:{minWidth:64,minHeight:48,paddingHorizontal:o.md,alignItems:"center",justifyContent:"center",borderRadius:i.pill,backgroundColor:ke.surfaceRaised},controlOff:{backgroundColor:ke.surfaceActive},duration:{...face(e,"medium"),color:ke.textTertiary,fontSize:l.size.micro,letterSpacing:1.6,textAlign:"center"}})}var Ae=5e3;function Me(e,t){return new Promise(r=>{let o=setTimeout(r,t);e.catch(()=>{}).then(()=>{clearTimeout(o),r()})})}function Pe(t,r){let o=e.useRef(t);e.useEffect(()=>{o.current=t});let i=e.useRef(false);e.useEffect(()=>(i.current=true,()=>{i.current=false}),[]);let l=e.useRef(false),n=e.useCallback(()=>{l.current||!i.current||(l.current=true,o.current())},[]),a=e.useRef(false),s=e.useCallback(()=>{a.current||(a.current=true,Me(r(),Ae).then(n))},[r,n]);return{reportLeft:n,leave:s,leaving:a}}var We=/* @__PURE__ */Symbol.for("@everfur/sdk/televet/recording-notice-receipt");function Ne(){let e=globalThis;return e[We]??=/* @__PURE__ */new Map}function $e(e){return(Ne().get(e)??0)>0}function Ge(t){let[r,o]=e.useState(true),i=e.useRef(true),l=e.useCallback(()=>{let e=t.current;if(!e?.setNativeInCallAudioMode)return;let r=!i.current;i.current=r,o(r),e.setNativeInCallAudioMode(r?"video":"voice")},[t]);return{speakerOn:r,toggleSpeaker:l}}function Ue(e){return e??null}function _e(e){return!!e?.videoTrack}function PersonMark({styles:e}){/* @__PURE__ */
|
|
48
48
|
return o.jsxs(t.View,{style:e.remoteOffAvatar,accessibilityElementsHidden:true,importantForAccessibility:"no",children:[
|
|
49
49
|
/* @__PURE__ */o.jsx(t.View,{style:e.remoteOffHead}),
|
|
50
50
|
/* @__PURE__ */o.jsx(t.View,{style:e.remoteOffBody})]})}function EverfurVetCall(e){/* @__PURE__ */
|
|
51
|
-
return o.jsx(VetCallRoom,{...e},e.roomUrl)}function VetCallRoom(
|
|
52
|
-
return o.jsx(t.View,{style:[
|
|
53
|
-
/* @__PURE__ */o.jsx(Text,{style:
|
|
54
|
-
/* @__PURE__ */o.jsx(t.Pressable,{onPress:()=>
|
|
55
|
-
/* @__PURE__ */o.jsx(t.Pressable,{onPress:
|
|
56
|
-
return o.jsxs(t.View,{style:[
|
|
57
|
-
/* @__PURE__ */o.jsx(Text,{style:
|
|
58
|
-
/* @__PURE__ */o.jsx(t.Pressable,{onPress:
|
|
59
|
-
return o.jsx(EverfurVetCallLobby,{clinicianName:s,petName:c,consultMinutes:
|
|
60
|
-
return o.jsxs(t.View,{style:[
|
|
61
|
-
/* @__PURE__ */o.jsxs(t.View,{style:
|
|
62
|
-
/* @__PURE__ */o.jsx(
|
|
63
|
-
/* @__PURE__ */o.jsx(PersonMark,{styles:
|
|
64
|
-
/* @__PURE__ */o.jsxs(t.View,{style:[
|
|
65
|
-
/* @__PURE__ */o.jsxs(t.View,{style:[
|
|
66
|
-
/* @__PURE__ */o.jsx(
|
|
67
|
-
/* @__PURE__ */o.jsxs(t.View,{style:[
|
|
68
|
-
/* @__PURE__ */o.jsx(CallControl,{label:
|
|
69
|
-
/* @__PURE__ */o.jsx(CallControl,{label:
|
|
70
|
-
/* @__PURE__ */o.jsx(CallControl,{label:
|
|
51
|
+
return o.jsx(VetCallRoom,{...e},e.roomUrl)}function VetCallRoom(i){let{roomUrl:l,token:n,onLeave:a,clinicianName:s,petName:c,consultMinutes:d,privacyNote:f,daily:b,telemetry:g,onUnavailable:h,renderUnavailable:p,style:m}=w(i,["onLeave"]),y=useEverfurTheme(),x=e.useMemo(()=>et(y),[y]),C=r.useSafeAreaInsets(),j=g??u,k=e.useRef(j);e.useEffect(()=>{k.current=j});let B=e.useRef(null),[z,T]=e.useState(()=>$e(l)),[D,O]=e.useState("joining"),[R,I]=e.useState(null),[V,L]=e.useState(null),[E,H]=e.useState(true),[A,M]=e.useState(true),{speakerOn:P,toggleSpeaker:W}=Ge(B),[N,$]=e.useState(true),[G,U]=e.useState({flip:false,speaker:false}),[_,q]=e.useState(null),[Y,X]=e.useState(0),J=isUsableRoomCredential(l,n),K=e.useMemo(()=>J?b?{available:true,module:b,reason:""}:loadEverfurDaily():null,[J,b]),Q=K?.available?K.module:null,Z=e.useMemo(()=>K===null?{reason:"roomUnusable",detail:"[everfur] The vet call needs an https room URL and a non-empty join token."}:K.available?null:{reason:"dailyMissing",detail:`${he} (${K.reason})`},[K]),ee=e.useRef(false);e.useEffect(()=>{if(Z===null){ee.current=false;return}if(v(h,Z.reason,Z.detail),!ee.current){ee.current=true;try{globalThis.console?.warn?.(Z.detail)}catch{}}},[Z,h]);let te=e.useCallback(async()=>{let e=B.current;if(B.current=null,!!e){await Me(new Promise(t=>t(e.leave())),Ae);try{e.setLocalAudio(!1),e.setLocalVideo(!1)}catch{}try{await e.destroy()}catch{}}},[]),{reportLeft:re,leave:oe,leaving:ie}=Pe(a,te);e.useEffect(()=>{if(Q===null||!z)return;let e=false,t=Q.createCallObject();B.current=t,U({flip:typeof t.cycleCamera=="function",speaker:typeof t.setNativeInCallAudioMode=="function"});let r=()=>{let e=Object.values(t.participants());L(e.find(e=>e.local)??null),I(e.find(e=>!e.local)??null)},o=["participant-joined","participant-updated","participant-left"];for(let e of o)t.on(e,r);let i=()=>{e||ie.current||(O("left"),re())},a=()=>{e||O("error")};return t.on("left-meeting",i),t.on("error",a),t.join({url:l,token:n}).then(()=>{e||(O("joined"),q(Date.now()),r(),k.current.track("televet.call.joined",{provider:"daily"}))}).catch(()=>{e||(O("error"),k.current.trackExpectedFailure("televet.call.join_failed",{provider:"daily"}))}),()=>{e=true;for(let e of o)t.off(e,r);t.off("left-meeting",i),t.off("error",a),te()}},[Q,z,l,n,te,re,ie]),e.useEffect(()=>{if(_===null)return;X(Date.now()-_);let e=setInterval(()=>{X(Date.now()-_)},1e3);return()=>{clearInterval(e)}},[_]);let le=e.useCallback(()=>{let e=B.current;e&&H(t=>(e.setLocalAudio(!t),!t))},[]),ne=e.useCallback(()=>{let e=B.current;e&&M(t=>(e.setLocalVideo(!t),!t))},[]),ae=e.useCallback(()=>{let e=B.current;e?.cycleCamera&&e.cycleCamera().then(e=>{let t=e?.device?.facingMode;t&&$(t==="user")},()=>{})},[]);if(Z!==null)return p?/* @__PURE__ */o.jsx(o.Fragment,{children:p(Z.reason,Z.detail)}):null;if(Q===null)return null;if(!z)/* @__PURE__ */
|
|
52
|
+
return o.jsx(t.View,{style:[x.notice,{paddingTop:C.top+y.space.xl,paddingBottom:C.bottom+y.space.xl},m],testID:"everfur-vet-call-recording-notice",children:/* @__PURE__ */o.jsxs(SdkTabletColumn,{style:x.noticeColumn,children:[
|
|
53
|
+
/* @__PURE__ */o.jsx(Text,{style:x.noticeTitle,accessibilityRole:"header",children:S.recordingNoticeTitle}),
|
|
54
|
+
/* @__PURE__ */o.jsx(t.Pressable,{onPress:()=>T(true),accessibilityRole:"button",accessibilityLabel:S.recordingNoticeCta,testID:"everfur-vet-call-recording-continue",style:x.noticeContinue,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:x.noticeContinueLabel,children:S.recordingNoticeCta})}),
|
|
55
|
+
/* @__PURE__ */o.jsx(t.Pressable,{onPress:re,accessibilityRole:"button",accessibilityLabel:S.leaveCta,testID:"everfur-vet-call-recording-leave",style:x.errorLeaveHit,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:x.noticeLeave,children:S.leaveCta})})]})});if(D==="error")/* @__PURE__ */
|
|
56
|
+
return o.jsxs(t.View,{style:[x.centered,m],testID:"everfur-vet-call-error",children:[
|
|
57
|
+
/* @__PURE__ */o.jsx(Text,{style:x.status,accessibilityLiveRegion:"polite",children:S.joinFailedReason}),
|
|
58
|
+
/* @__PURE__ */o.jsx(t.Pressable,{onPress:oe,accessibilityRole:"button",accessibilityLabel:S.leaveCta,testID:"everfur-vet-call-error-leave",style:x.errorLeaveHit,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:x.errorLeave,children:S.leaveCta})})]});if(R===null)/* @__PURE__ */
|
|
59
|
+
return o.jsx(EverfurVetCallLobby,{clinicianName:s,petName:c,consultMinutes:d,micOn:E,cameraOn:A,onToggleMic:le,onToggleCamera:ne,...G.flip?{onSwitchCamera:ae}:{},onLeave:oe,style:m});let se=Q.DailyMediaView,ce=s?.trim()??"",de=Y>=Ee(d)*6e4;/* @__PURE__ */
|
|
60
|
+
return o.jsxs(t.View,{style:[x.root,m],testID:"everfur-vet-call",children:[
|
|
61
|
+
/* @__PURE__ */o.jsxs(t.View,{style:x.fill,testID:"everfur-vet-call-remote",children:[
|
|
62
|
+
/* @__PURE__ */o.jsx(se,{videoTrack:Ue(R.videoTrack),audioTrack:Ue(R.audioTrack),mirror:false,objectFit:"cover",style:x.fill}),_e(R)?null:/* @__PURE__ */o.jsxs(t.View,{style:x.remoteOff,testID:"everfur-vet-call-remote-camera-off",children:[
|
|
63
|
+
/* @__PURE__ */o.jsx(PersonMark,{styles:x}),ce.length>0?/* @__PURE__ */o.jsx(Text,{style:x.remoteOffName,numberOfLines:1,children:ce}):null]})]}),
|
|
64
|
+
/* @__PURE__ */o.jsxs(t.View,{style:[x.statusRow,{top:C.top+y.space.sm}],pointerEvents:"none",children:[ce.length>0?/* @__PURE__ */o.jsx(Text,{tier:"compact",style:x.statusName,numberOfLines:1,testID:"everfur-vet-call-remote-name",children:ce}):null,_!==null?/* @__PURE__ */o.jsx(Text,{tier:"badge",style:[x.statusMeta,de?x.statusMetaOver:null],testID:"everfur-vet-call-elapsed",children:F(Y)}):null]}),
|
|
65
|
+
/* @__PURE__ */o.jsxs(t.View,{style:[x.selfView,{top:C.top+y.space.sm}],testID:"everfur-vet-call-self",children:[
|
|
66
|
+
/* @__PURE__ */o.jsx(se,{videoTrack:A?Ue(V?.videoTrack):null,audioTrack:null,mirror:N,objectFit:"cover",style:x.fill}),V?.videoTrack&&A?null:/* @__PURE__ */o.jsx(t.View,{style:[x.selfViewOff,x.fill],testID:"everfur-vet-call-self-off",children:/* @__PURE__ */o.jsx(Text,{tier:"badge",style:x.selfViewOffLabel,children:S.selfCameraOffLabel})})]}),f?/* @__PURE__ */o.jsx(t.View,{style:[x.privacyRow,{bottom:C.bottom+y.space.lg+Ze}],pointerEvents:"none",children:/* @__PURE__ */o.jsx(Text,{tier:"compact",style:x.privacyNote,testID:"everfur-vet-call-privacy",children:f})}):null,
|
|
67
|
+
/* @__PURE__ */o.jsxs(t.View,{style:[x.controlBar,{bottom:C.bottom+y.space.lg}],children:[G.speaker?/* @__PURE__ */o.jsx(CallControl,{label:P?S.speakerOffCta:S.speakerOnCta,glyph:/* @__PURE__ */o.jsx(SpeakerGlyph,{color:P?y.color.text.onBrand:Je,off:!P}),muted:!P,onPress:W,testID:"everfur-vet-call-speaker",style:[x.control,P?null:x.controlMuted]}):null,
|
|
68
|
+
/* @__PURE__ */o.jsx(CallControl,{label:E?S.muteCta:S.unmuteCta,glyph:/* @__PURE__ */o.jsx(MicGlyph,{color:E?y.color.text.onBrand:Je,off:!E}),muted:!E,onPress:le,testID:"everfur-vet-call-mic",style:[x.control,E?null:x.controlMuted]}),
|
|
69
|
+
/* @__PURE__ */o.jsx(CallControl,{label:A?S.cameraOffCta:S.cameraOnCta,glyph:/* @__PURE__ */o.jsx(CameraGlyph,{color:A?y.color.text.onBrand:Je,off:!A}),muted:!A,onPress:ne,testID:"everfur-vet-call-camera",style:[x.control,A?null:x.controlMuted]}),G.flip&&A?/* @__PURE__ */o.jsx(CallControl,{label:S.switchCameraCta,glyph:/* @__PURE__ */o.jsx(SwitchCameraGlyph,{color:y.color.text.onBrand}),onPress:ae,testID:"everfur-vet-call-switch-camera",style:x.control}):null,
|
|
70
|
+
/* @__PURE__ */o.jsx(CallControl,{label:S.leaveCta,glyph:/* @__PURE__ */o.jsx(LeaveGlyph,{color:y.color.text.onBrand}),onPress:oe,testID:"everfur-vet-call-leave",style:[x.control,x.controlDanger]})]})]})}var qe="#141414",Ye="#1B1B1B",Xe="rgba(20,20,20,0.62)",Je="#141414",Ke=104,Qe={textShadowColor:"rgba(0,0,0,0.55)",textShadowRadius:6},Ze=72;function et(e){let{color:r,space:o,radius:i,type:l}=e;return t.StyleSheet.create({root:{flex:1,backgroundColor:qe},fill:{...k},centered:{flex:1,alignItems:"center",justifyContent:"center",gap:o.lg,padding:o.xl,backgroundColor:qe},statusRow:{position:"absolute",left:o.md,right:Ke+o.md*2,flexDirection:"column",alignItems:"flex-start",gap:2},statusName:{flexShrink:1,...face(e,"medium"),color:r.text.onBrand,fontSize:l.size.body,...Qe},statusMeta:{...face(e,"mono"),color:r.text.onBrand,fontSize:l.size.caption,...Qe},statusMetaOver:{color:r.danger},selfView:{position:"absolute",right:o.md,width:Ke,height:148,borderRadius:i.lg,overflow:"hidden",backgroundColor:Ye,borderWidth:1,borderColor:"rgba(255,255,255,0.24)",shadowColor:"#000",shadowOpacity:.35,shadowRadius:12,shadowOffset:{width:0,height:4},elevation:6},selfViewOff:{alignItems:"center",justifyContent:"center",paddingHorizontal:o.xs,backgroundColor:Ye},remoteOff:{...k,alignItems:"center",justifyContent:"center",gap:o.md,backgroundColor:qe},remoteOffAvatar:{width:96,height:96,borderRadius:i.pill,overflow:"hidden",alignItems:"center",justifyContent:"flex-end",backgroundColor:"rgba(255,255,255,0.14)"},remoteOffHead:{width:36,height:36,borderRadius:18,marginBottom:6,backgroundColor:"rgba(255,255,255,0.56)"},remoteOffBody:{width:64,height:28,borderTopLeftRadius:32,borderTopRightRadius:32,backgroundColor:"rgba(255,255,255,0.56)"},remoteOffName:{...face(e,"medium"),color:r.text.onBrand,fontSize:l.size.subtitle,paddingHorizontal:o.xl},notice:{flex:1,justifyContent:"center",gap:o.lg,paddingHorizontal:o.xl,backgroundColor:r.surface},noticeColumn:{justifyContent:"center",gap:o.lg},noticeTitle:{...face(e,"medium"),fontSize:l.size.subtitle,lineHeight:Math.round(l.size.subtitle*l.lineHeight.relaxed),color:r.text.primary},noticeContinue:{minHeight:44,alignItems:"center",justifyContent:"center",paddingHorizontal:o.xl,borderRadius:i.pill,backgroundColor:r.primary},noticeContinueLabel:{...face(e,"medium"),color:r.onPrimary,fontSize:l.size.body},noticeLeave:{...face(e,"medium"),color:r.brandInk,fontSize:l.size.body},selfViewOffLabel:{...face(e,"medium"),color:"rgba(255,255,255,0.78)",fontSize:l.size.micro,textAlign:"center"},privacyRow:{position:"absolute",left:o.md,right:o.md,alignItems:"center"},privacyNote:{...face(e,"medium"),color:r.text.onBrand,fontSize:l.size.caption,textAlign:"center",overflow:"hidden",paddingHorizontal:o.md,paddingVertical:o.xs+2,borderRadius:i.pill,backgroundColor:Xe},controlBar:{position:"absolute",left:0,right:0,flexDirection:"row",justifyContent:"center",alignItems:"center",gap:o.sm},control:{minWidth:54,minHeight:56,paddingHorizontal:o.md,alignItems:"center",justifyContent:"center",borderRadius:i.pill,backgroundColor:Xe},controlMuted:{backgroundColor:r.text.onBrand},controlDanger:{backgroundColor:r.danger},status:{...face(e,"medium"),fontSize:l.size.subtitle,lineHeight:Math.round(l.size.subtitle*l.lineHeight.relaxed),color:r.surface,textAlign:"center"},errorLeaveHit:{minHeight:44,minWidth:44,alignItems:"center",justifyContent:"center",paddingHorizontal:o.lg},errorLeave:{...face(e,"medium"),color:r.surface,fontSize:l.size.body,textDecorationLine:"underline"}})}exports.EVERFUR_DAILY_SETUP=he;exports.EverfurVetCall=EverfurVetCall;exports.EverfurVetCallLobby=EverfurVetCallLobby;exports.VET_CALL_CONSULT_MINUTES=j;exports.VET_CALL_COPY=S;exports.isEverfurDailyModule=isEverfurDailyModule;exports.isSafeRoomUrl=isSafeRoomUrl;exports.isUsableRoomCredential=isUsableRoomCredential;exports.loadEverfurDaily=loadEverfurDaily;exports.registerEverfurDaily=registerEverfurDaily;
|
|
@@ -117,6 +117,11 @@ interface EverfurVetCallProps {
|
|
|
117
117
|
* `VET_CALL_CONSULT_MINUTES` is used.
|
|
118
118
|
*/
|
|
119
119
|
readonly consultMinutes?: number | null | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* A one-line privacy note drawn over the video above the controls (the `tabs_bar` shell's call passes its
|
|
122
|
+
* "Confidential." line). Absent or empty, nothing is drawn: the call authors no copy of its own.
|
|
123
|
+
*/
|
|
124
|
+
readonly privacyNote?: string | null | undefined;
|
|
120
125
|
/**
|
|
121
126
|
* Host/test seam: the Daily module, instead of the one `registerEverfurDaily` registered. A partner with
|
|
122
127
|
* its own module resolution passes it here and calls no register function at all.
|
|
@@ -117,6 +117,11 @@ interface EverfurVetCallProps {
|
|
|
117
117
|
* `VET_CALL_CONSULT_MINUTES` is used.
|
|
118
118
|
*/
|
|
119
119
|
readonly consultMinutes?: number | null | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* A one-line privacy note drawn over the video above the controls (the `tabs_bar` shell's call passes its
|
|
122
|
+
* "Confidential." line). Absent or empty, nothing is drawn: the call authors no copy of its own.
|
|
123
|
+
*/
|
|
124
|
+
readonly privacyNote?: string | null | undefined;
|
|
120
125
|
/**
|
|
121
126
|
* Host/test seam: the Daily module, instead of the one `registerEverfurDaily` registered. A partner with
|
|
122
127
|
* its own module resolution passes it here and calls no register function at all.
|