@everfur/sdk 1.5.1 → 1.5.2

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.
Files changed (79) hide show
  1. package/dist/care/index.cjs +2 -2
  2. package/dist/care/index.js +2 -2
  3. package/dist/chat/index.cjs +235 -234
  4. package/dist/chat/index.js +311 -310
  5. package/dist/chat/lite/index.cjs +339 -338
  6. package/dist/chat/lite/index.js +314 -313
  7. package/dist/{chunk-NBAOR5TJ.js → chunk-2T5CB5MW.js} +21 -21
  8. package/dist/{chunk-RD6ZGYEJ.js → chunk-ASE36WGP.js} +7 -7
  9. package/dist/{chunk-IO4CGYHT.js → chunk-CMDCBYUH.js} +1 -1
  10. package/dist/{chunk-ZYHPCQVM.js → chunk-K7YHXFPQ.js} +1 -1
  11. package/dist/client/index.cjs +1 -1
  12. package/dist/client/index.d.cts +1 -1
  13. package/dist/client/index.d.ts +1 -1
  14. package/dist/client/index.js +1 -1
  15. package/dist/core/index.cjs +31 -31
  16. package/dist/core/index.js +31 -31
  17. package/dist/health-plan/index.cjs +266 -266
  18. package/dist/health-plan/index.js +443 -443
  19. package/dist/{inbox.d-DJ9xgU1Z.d.ts → inbox.d-B2JXK0uI.d.ts} +1 -1
  20. package/dist/{inbox.d-CPcMMz-Y.d.cts → inbox.d-CwA1ogzV.d.cts} +1 -1
  21. package/dist/index.cjs +257 -256
  22. package/dist/index.js +364 -363
  23. package/dist/notifications/inbox/index.cjs +28 -28
  24. package/dist/notifications/inbox/index.d.cts +5 -5
  25. package/dist/notifications/inbox/index.d.ts +5 -5
  26. package/dist/notifications/inbox/index.js +53 -53
  27. package/dist/notifications/index.cjs +1 -1
  28. package/dist/notifications/index.d.cts +3 -3
  29. package/dist/notifications/index.d.ts +3 -3
  30. package/dist/notifications/index.js +1 -1
  31. package/dist/{parse.d-Cj3fURer.d.ts → parse.d-QjB2LJCd.d.ts} +19 -10
  32. package/dist/{parse.d-cH7ZmMeo.d.cts → parse.d-_Ttu2h5g.d.cts} +19 -10
  33. package/dist/records/depth/index.cjs +80 -80
  34. package/dist/records/depth/index.js +115 -115
  35. package/dist/records/index.cjs +653 -653
  36. package/dist/records/index.js +1074 -1074
  37. package/dist/{route.d-DSYEd2MR.d.ts → route.d-DtuKY5dM.d.ts} +1 -1
  38. package/dist/{route.d-DCzQh4ix.d.cts → route.d-Nt-r-7IO.d.cts} +1 -1
  39. package/dist/server/events/index.cjs +1 -1
  40. package/dist/server/events/index.js +1 -1
  41. package/dist/server/index.cjs +1 -1
  42. package/dist/server/index.js +1 -1
  43. package/dist/shop/index.cjs +188 -188
  44. package/dist/shop/index.js +386 -386
  45. package/dist/shop/orders-v2/index.cjs +72 -72
  46. package/dist/shop/orders-v2/index.js +126 -126
  47. package/dist/tabs/index.cjs +114 -111
  48. package/dist/tabs/index.d.cts +18 -5
  49. package/dist/tabs/index.d.ts +18 -5
  50. package/dist/tabs/index.js +191 -188
  51. package/dist/televet/booking/index.cjs +214 -211
  52. package/dist/televet/booking/index.js +344 -341
  53. package/dist/televet/call/index.cjs +53 -53
  54. package/dist/televet/call/index.js +67 -67
  55. package/dist/{useInboxUnread.d-CXiaR3BZ.d.ts → useInboxUnread.d-0DrQPn7J.d.ts} +1 -1
  56. package/dist/{useInboxUnread.d-DERpMelw.d.cts → useInboxUnread.d-CRcOTkmu.d.cts} +1 -1
  57. package/dist/web/health-plan/index.cjs +1 -1
  58. package/dist/web/health-plan/index.js +1 -1
  59. package/dist/web/inbox/index.cjs +1 -1
  60. package/dist/web/inbox/index.d.cts +6 -6
  61. package/dist/web/inbox/index.d.ts +6 -6
  62. package/dist/web/inbox/index.js +1 -1
  63. package/dist/web/index.cjs +184 -184
  64. package/dist/web/index.js +181 -181
  65. package/dist/web/notifications/index.cjs +1 -1
  66. package/dist/web/notifications/index.d.cts +2 -2
  67. package/dist/web/notifications/index.d.ts +2 -2
  68. package/dist/web/notifications/index.js +1 -1
  69. package/dist/web/records-sheet/index.cjs +1 -1
  70. package/dist/web/records-sheet/index.js +1 -1
  71. package/dist/web/shop/index.cjs +1 -1
  72. package/dist/web/shop/index.js +2 -2
  73. package/dist/web/televet/booking/index.cjs +1 -1
  74. package/dist/web/televet/booking/index.js +1 -1
  75. package/dist/web/televet/call/index.cjs +1 -1
  76. package/dist/web/televet/call/index.js +1 -1
  77. package/dist/web/ui/index.cjs +1 -1
  78. package/dist/web/ui/index.js +16 -16
  79. package/package.json +1 -1
@@ -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");var l=/* @__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[l[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[l[t]]};let i=face(e,t);return i.fontWeight===void 0||o===null?i:{fontFamily:i.fontFamily,fontWeight:o}}function i(e){return e<=450?"regular":e<=650?"medium":"bold"}var a={regular:"mono",medium:"monoMedium",bold:"monoBold"};function textRole(e,t){let r=n.get(e);r===void 0&&(r=/* @__PURE__ */new Map,n.set(e,r));let o=r.get(t);if(o!==void 0)return o;let l=s(e,t);return r.set(t,l),l}var n=/* @__PURE__ */new WeakMap;function s(e,t){let r=e.type.roles[t],o=r.weight==="400"&&r.face!=="mono"?e.type.weight.regular:r.weight,l=i(Number(o)),n=r.face==="mono"?face(e,a[l]):r.face==="heading"?headingFace(e,l):face(e,l),s=r.face==="heading"?e.type.headingWeight??o:o,c=n.fontWeight===void 0?n:{fontFamily:n.fontFamily,fontWeight:s},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 c=/* @__PURE__ */Object.freeze({track(){},trackExpectedFailure(){}});function d(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 g(e)}var u=/^([a-z][a-z0-9+.-]*):\/\/(?:([^:@/?#]*)(?::([^@/?#]*))?@)?(\[[0-9a-f:.]+\]|[\w.~-]+)(?::(\d*))?(\/[^?#]*)?(\?[^#]*)?(#.*)?$/i,f=/[\s\u0000-\u001f\u007f\\]/,b={"http:":"80","https:":"443"};function g(e,t){let r=e.trim();let o=f.test(r)?null:u.exec(r);if(o===null)return null;let[,l="",i="",a="",n="",s="",c="",d="",g=""]=o,h=`${l.toLowerCase()}:`,p=Number(s);if(p>65535)return null;let m=s===""||String(p)===b[h]?"":String(p),y=b[h]!==void 0,v=n.toLowerCase()+(m&&`:${m}`),C=c||(y?"/":""),x=i||a?`${i}${a&&`:${a}`}@`:"";return{href:`${h}//${x}${v}${C}${d}${g}`,protocol:h,username:i,password:a,hostname:n.toLowerCase(),port:m,origin:y?`${h}//${v}`:"null",pathname:C,search:d==="?"?"":d,hash:g==="#"?"":g}}function isSafeRoomUrl(e){return d(e.trim())?.protocol==="https:"}function isUsableRoomCredential(e,t){return isSafeRoomUrl(e)&&t.trim().length>0}function h(e){let t=globalThis.console;try{t?.error?.("[everfur] A host callback threw; the SDK ignored it.",e)}catch{}}function p(e){return(typeof e=="object"||typeof e=="function")&&e!==null&&typeof e.then=="function"}function m(e,...t){if(typeof e=="function")try{let r=e(...t);return p(r)&&Promise.resolve(r).then(void 0,h),r}catch(e){h(e);return}}var y=/* @__PURE__ */new WeakMap;function v(e){if(typeof e!="function")return;let t=y.get(e);if(t!==void 0)return t;let r=(...t)=>{m(e,...t)};return y.set(e,r),r}function C(e,t){let r=null;for(let o of t){let t=e[o];typeof t=="function"&&(r??={...e},r[o]=v(t))}return r??e}var x=10,w=/* @__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`:w.lobbyTitleNoName},lobbyPrep:e=>{let t=e?.trim()??"";return t.length>0?`Have ${t} nearby and somewhere well lit.`:w.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`:w.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 j(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 F=/* @__PURE__ */Object.freeze({position:"absolute",top:0,right:0,bottom:0,left:0});var S=/* @__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 B=Object.freeze;function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){B(e);for(let t of Object.keys(e))deepFreeze(e[t])}return e}var k=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var z={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},T={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},D={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},R={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},O={regular:"400",medium:"500",bold:"700"},L={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},I=0,V="System",E="monospace",H=["content","heading","control","compact","badge"];function A(e){let t={};for(let r of H)t[r]=e;return t}var M=[];function P(){return{family:V,mono:E,fontUrl:null,families:{regular:V,medium:V,bold:V,mono:E,monoMedium:E,monoBold:E},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:D,tierSizes:A(D),lineHeight:R,weight:O,letterSpacing:L,scale:1,maxScale:I,scaleCaps:k,headingFamily:null,headingWeight:null,fontSources:M,roles:S,typeScale:1}}var W={},N=/* @__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 $={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(N.standard),emphasized:cssCubicBezier(N.emphasized),exit:cssCubicBezier(N.exit)},reducedMotion:false},G={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)"},U=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:G,space:z,radius:T,type:P(),motion:$,slots:W}),q={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:q,space:z,radius:T,type:P(),motion:$,slots:W});var _=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),Y=globalThis,X=Y[_]??(Y[_]=e.createContext(U));X.displayName??="EverfurThemeContext";function useEverfurTheme(){return e.useContext(X)}function J(e,t){let r=e.scaleCaps[t];return r>0?r:void 0}function Text({tier:r,variant:o,...l}){let i=useEverfurTheme(),a=o===void 0?void 0:i.type.roles[o],n=J(i.type,r??a?.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,n===void 0?s:{maxFontSizeMultiplier:n,...s})}e.forwardRef(function(r,o){return e.createElement(t.TextInput,{...r,...o===null?{}:{ref:o}})});function optionalModule(e,t,r){let o;try{o=t()}catch(t){return Q(`optional peer '${e}' is not installed: ${Z(t)}`)}let l=K(o);return l==null?Q(`optional peer '${e}' resolved to no module`):r&&!r(l)?Q(`optional peer '${e}' is present but failed its shape check`):/* @__PURE__ */Object.freeze({available:true,module:l})}function K(e){return typeof e=="object"&&e!==null&&"default"in e&&Object.keys(e).length<=2?e.default:e}function Q(e){/* @__PURE__ */
3
- return Object.freeze({available:false,module:null,reason:e})}function Z(e){return e instanceof Error?e.message:typeof e=="string"?e:"unknown load error"}var ee=/* @__PURE__ */Symbol.for("@everfur/sdk/televet");function te(){let e=globalThis,t=e[ee];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[ee]=r,r}function re(e){te().dailyRegistered=e}var oe=`[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.`,le="@daily-co/react-native-daily-js",ie=`optional peer '${le}' has no registered loader`,ae=`optional peer '${le}' is present but failed its shape check`;function ne(e){return typeof e=="object"&&e!==null}function se(e){return ne(e)&&"box"in e}function ce(e){let t=e.default,r=ne(t)||typeof t=="function"?t:{},o=typeof e.createCallObject=="function"?e:r,l=o.createCallObject,i={createCallObject:typeof l=="function"?l.bind(o):l,DailyMediaView:e.DailyMediaView??r.DailyMediaView};return isEverfurDailyModule(i)?i:null}function isEverfurDailyModule(e){if(!ne(e)||typeof e.createCallObject!="function")return false;let t=e.DailyMediaView;return typeof t=="function"||typeof t=="object"&&t!==null}var de=null,ue=null;function fe(e){/* @__PURE__ */
4
- return Object.freeze({available:false,module:null,reason:e})}function registerEverfurDaily(e){de=e,ue=null,re(e!==null)}function loadEverfurDaily(){if(ue!==null)return ue;let e=de;if(e===null)return ue=fe(ie),ue;let t=optionalModule(le,()=>({box:e()}),se);if(!t.available)return ue=fe(t.reason),ue;let r=t.module.box;if(!ne(r))return ue=fe(ae),ue;let o=ce(r);return ue=o===null?fe(ae):/* @__PURE__ */Object.freeze({available:true,module:o}),ue}function CallControl({label:e,glyph:r,onPress:l,testID:i,muted:a=false,style:n}){/* @__PURE__ */
5
- return o.jsx(t.Pressable,{onPress:l,testID:i,accessibilityRole:"button",accessibilityLabel:e,accessibilityState:{selected:a},style:n,children:r})}function GlyphBox({children:e,testID:r}){/* @__PURE__ */
6
- return o.jsx(t.View,{style:be.box,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:r,children:e})}function Slash({color:e}){/* @__PURE__ */
7
- return o.jsx(t.View,{style:[be.slash,{backgroundColor:e}]})}function MicGlyph({color:e,off:r=false}){/* @__PURE__ */
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 de(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 Ce(e){return ve(e)&&"box"in e}function xe(e){let t=e.default,r=ve(t)||typeof t=="function"?t:{},o=typeof e.createCallObject=="function"?e:r,l=o.createCallObject,i={createCallObject:typeof l=="function"?l.bind(o):l,DailyMediaView:e.DailyMediaView??r.DailyMediaView};return isEverfurDailyModule(i)?i: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 Fe(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=Fe(me),je;let t=optionalModule(pe,()=>({box:e()}),Ce);if(!t.available)return je=Fe(t.reason),je;let r=t.module.box;if(!ve(r))return je=Fe(ye),je;let o=xe(r);return je=o===null?Fe(ye):/* @__PURE__ */Object.freeze({available:true,module:o}),je}function CallControl({label:e,glyph:r,onPress:l,testID:i,muted:n=false,style:a}){/* @__PURE__ */
5
+ return o.jsx(t.Pressable,{onPress:l,testID:i,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:Se.box,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:r,children:e})}function Slash({color:e}){/* @__PURE__ */
7
+ return o.jsx(t.View,{style:[Se.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:be.column,children:[
10
- /* @__PURE__ */o.jsx(t.View,{style:[be.micCapsule,{borderColor:e}]}),
11
- /* @__PURE__ */o.jsx(t.View,{style:[be.micCradle,{borderColor:e}]}),
12
- /* @__PURE__ */o.jsx(t.View,{style:[be.micStem,{backgroundColor:e}]})]}),r?/* @__PURE__ */o.jsx(Slash,{color:e}):null]})}function CameraGlyph({color:e,off:r=false}){/* @__PURE__ */
9
+ /* @__PURE__ */o.jsxs(t.View,{style:Se.column,children:[
10
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.micCapsule,{borderColor:e}]}),
11
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.micCradle,{borderColor:e}]}),
12
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.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:be.row,children:[
15
- /* @__PURE__ */o.jsx(t.View,{style:[be.cameraBody,{borderColor:e}]}),
16
- /* @__PURE__ */o.jsx(t.View,{style:[be.cameraLens,{borderRightColor:e}]})]}),r?/* @__PURE__ */o.jsx(Slash,{color:e}):null]})}function SpeakerGlyph({color:e,off:r=false}){/* @__PURE__ */
14
+ /* @__PURE__ */o.jsxs(t.View,{style:Se.row,children:[
15
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.cameraBody,{borderColor:e}]}),
16
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.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:be.row,children:[
19
- /* @__PURE__ */o.jsx(t.View,{style:[be.speakerBox,{backgroundColor:e}]}),
20
- /* @__PURE__ */o.jsx(t.View,{style:[be.speakerCone,{borderRightColor:e}]}),r?null:/* @__PURE__ */o.jsx(t.View,{style:[be.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:[be.switchBody,{borderColor:e}],children:[
22
- /* @__PURE__ */o.jsx(t.View,{style:[be.switchTurn,{borderColor:e,borderTopColor:"transparent"}]}),
23
- /* @__PURE__ */o.jsx(t.View,{style:[be.switchHead,{borderBottomColor:e}]})]})})}function LeaveGlyph({color:e}){/* @__PURE__ */
24
- return o.jsx(GlyphBox,{testID:"glyph-leave",children:/* @__PURE__ */o.jsxs(t.View,{style:be.column,children:[
25
- /* @__PURE__ */o.jsx(t.View,{style:[be.receiver,{borderColor:e}]}),
26
- /* @__PURE__ */o.jsxs(t.View,{style:be.receiverPads,children:[
27
- /* @__PURE__ */o.jsx(t.View,{style:[be.receiverPad,{backgroundColor:e}]}),
28
- /* @__PURE__ */o.jsx(t.View,{style:[be.receiverPad,{backgroundColor:e}]})]})]})})}var be=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 ge=/* @__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)"}),he=3,pe=180,me=420,ye=.35,ve=.6,Ce=360,xe=132,we=184,je=44;function Fe(e){return typeof e=="number"&&Number.isInteger(e)&&e>=1?e:10}function WaitingDots({reducedMotion:r,styles:l}){let i=e.useRef(Array.from({length:he},()=>new t.Animated.Value(ye))).current;return e.useEffect(()=>{if(r)return;let e=i.map((e,r)=>t.Animated.loop(t.Animated.sequence([t.Animated.delay(r*pe),t.Animated.timing(e,{toValue:1,duration:me,useNativeDriver:true}),t.Animated.timing(e,{toValue:ye,duration:me,useNativeDriver:true}),t.Animated.delay((he-r-1)*pe)])));for(let t of e)t.start();return()=>{for(let t of e)t.stop()}},[r,i]),/* @__PURE__ */o.jsx(t.View,{style:l.dotRow,testID:"everfur-vet-lobby-dots",accessibilityElementsHidden:true,importantForAccessibility:"no",children:i.map((e,i)=>/* @__PURE__ */o.jsx(t.Animated.View,{style:[l.dot,{opacity:r?ve:e}]},i))})}function LobbyControl({label:e,glyph:r,active:l,onPress:i,testID:a,styles:n}){/* @__PURE__ */
29
- return o.jsx(t.Pressable,{onPress:i,testID:a,accessibilityRole:"button",accessibilityState:{selected:!l},accessibilityLabel:e,style:[n.control,l?null:n.controlOff],children:r})}function EverfurVetCallLobby(l){let{clinicianName:i,petName:a,consultMinutes:n,micOn:s,cameraOn:c,onToggleMic:d,onToggleCamera:u,onSwitchCamera:f,onLeave:b,style:g}=l,h=useEverfurTheme(),p=e.useMemo(()=>Se(h),[h]),m=r.useSafeAreaInsets(),{width:y}=t.useWindowDimensions(),v=y<Ce?xe:we;/* @__PURE__ */
30
- return o.jsxs(t.View,{style:[p.root,{paddingTop:m.top+h.space.sm,paddingBottom:m.bottom+h.space.lg},g],testID:"everfur-vet-lobby",children:[
18
+ /* @__PURE__ */o.jsxs(t.View,{style:Se.row,children:[
19
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.speakerBox,{backgroundColor:e}]}),
20
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.speakerCone,{borderRightColor:e}]}),r?null:/* @__PURE__ */o.jsx(t.View,{style:[Se.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:[Se.switchBody,{borderColor:e}],children:[
22
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.switchTurn,{borderColor:e,borderTopColor:"transparent"}]}),
23
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.switchHead,{borderBottomColor:e}]})]})})}function LeaveGlyph({color:e}){/* @__PURE__ */
24
+ return o.jsx(GlyphBox,{testID:"glyph-leave",children:/* @__PURE__ */o.jsxs(t.View,{style:Se.column,children:[
25
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.receiver,{borderColor:e}]}),
26
+ /* @__PURE__ */o.jsxs(t.View,{style:Se.receiverPads,children:[
27
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.receiverPad,{backgroundColor:e}]}),
28
+ /* @__PURE__ */o.jsx(t.View,{style:[Se.receiverPad,{backgroundColor:e}]})]})]})})}var Se=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,Le=184,Ve=44;function Ee(e){return typeof e=="number"&&Number.isInteger(e)&&e>=1?e:10}function WaitingDots({reducedMotion:r,styles:l}){let i=e.useRef(Array.from({length:Be},()=>new t.Animated.Value(De))).current;return e.useEffect(()=>{if(r)return;let e=i.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,i]),/* @__PURE__ */o.jsx(t.View,{style:l.dotRow,testID:"everfur-vet-lobby-dots",accessibilityElementsHidden:true,importantForAccessibility:"no",children:i.map((e,i)=>/* @__PURE__ */o.jsx(t.Animated.View,{style:[l.dot,{opacity:r?Oe:e}]},i))})}function LobbyControl({label:e,glyph:r,active:l,onPress:i,testID:n,styles:a}){/* @__PURE__ */
29
+ return o.jsx(t.Pressable,{onPress:i,testID:n,accessibilityRole:"button",accessibilityState:{selected:!l},accessibilityLabel:e,style:[a.control,l?null:a.controlOff],children:r})}function EverfurVetCallLobby(l){let{clinicianName:i,petName:n,consultMinutes:a,micOn:s,cameraOn:c,onToggleMic:u,onToggleCamera:d,onSwitchCamera:f,onLeave:b,style:g}=l,h=useEverfurTheme(),p=e.useMemo(()=>He(h),[h]),m=r.useSafeAreaInsets(),{width:y}=t.useWindowDimensions(),v=y<Re?Ie:Le;/* @__PURE__ */
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:w.leaveCta,testID:"everfur-vet-lobby-leave",hitSlop:12,style:p.leaveHit,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:p.leaveLabel,children:w.leaveCta})}),
33
- /* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.prepLabel,testID:"everfur-vet-lobby-label",children:w.waitingRoomLabel})]}),
32
+ /* @__PURE__ */o.jsx(t.Pressable,{onPress:b,accessibilityRole:"button",accessibilityLabel:F.leaveCta,testID:"everfur-vet-lobby-leave",hitSlop:12,style:p.leaveHit,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:p.leaveLabel,children:F.leaveCta})}),
33
+ /* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.prepLabel,testID:"everfur-vet-lobby-label",children:F.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:w.lobbyTitle(i)})}),
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:F.lobbyTitle(i)})}),
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:w.lobbyTipsTitle(i)}),[w.lobbyTipSpot,w.lobbyPrep(a)].map((e,r)=>/* @__PURE__ */o.jsxs(t.View,{style:p.tip,children:[
41
+ /* @__PURE__ */o.jsx(Text,{tier:"badge",style:p.prepLabel,children:F.lobbyTipsTitle(i)}),[F.lobbyTipSpot,F.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?w.muteCta:w.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?w.cameraOffCta:w.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:w.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:w.lobbyDuration(Fe(n))})]})}function Se(e){let{color:r,space:o,radius:l,type:i}=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:ge.textSecondary,fontSize:13,width:24,paddingTop:4},leaveHit:{minHeight:je,justifyContent:"center",paddingVertical:o.xs,paddingRight:o.md},leaveLabel:{...face(e,"medium"),color:r.text.onBrand,fontSize:i.size.body},center:{flex:1,alignItems:"center",justifyContent:"center"},avatar:{alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:r.success,backgroundColor:ge.surface,marginBottom:o.lg,overflow:"hidden"},avatarGlyphHead:{width:34,height:34,borderRadius:17,borderWidth:2,borderColor:ge.glyph,marginBottom:6},avatarGlyphBody:{width:66,height:33,borderTopLeftRadius:33,borderTopRightRadius:33,borderWidth:2,borderBottomWidth:0,borderColor:ge.glyph},title:{...face(e,"bold"),color:r.text.onBrand,fontSize:i.size.heading,lineHeight:Math.round(i.size.heading*i.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:l.lg,borderWidth:1,borderColor:ge.hairline,backgroundColor:ge.surface,padding:o.lg,marginBottom:o.lg},prepLabel:{...face(e,"monoBold"),color:r.accent,fontSize:i.size.micro,letterSpacing:1.2,textTransform:"uppercase"},prepBody:{...face(e,"regular"),color:r.text.onBrand,fontSize:i.size.subtitle,lineHeight:Math.round(i.size.subtitle*i.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:l.pill,backgroundColor:ge.surfaceRaised},controlOff:{backgroundColor:ge.surfaceActive},duration:{...face(e,"medium"),color:ge.textTertiary,fontSize:i.size.micro,letterSpacing:1.6,textAlign:"center"}})}var Be=5e3;function ke(e,t){return new Promise(r=>{let o=setTimeout(r,t);e.catch(()=>{}).then(()=>{clearTimeout(o),r()})})}function ze(t,r){let o=e.useRef(t);e.useEffect(()=>{o.current=t});let l=e.useRef(false);e.useEffect(()=>(l.current=true,()=>{l.current=false}),[]);let i=e.useRef(false),a=e.useCallback(()=>{i.current||!l.current||(i.current=true,o.current())},[]),n=e.useRef(false),s=e.useCallback(()=>{n.current||(n.current=true,ke(r(),Be).then(a))},[r,a]);return{reportLeft:a,leave:s,leaving:n}}var Te=/* @__PURE__ */Symbol.for("@everfur/sdk/televet/recording-notice-receipt");function De(){let e=globalThis;return e[Te]??=/* @__PURE__ */new Map}function Re(e){return(De().get(e)??0)>0}function Oe(t){let[r,o]=e.useState(true),l=e.useRef(true),i=e.useCallback(()=>{let e=t.current;if(!e?.setNativeInCallAudioMode)return;let r=!l.current;l.current=r,o(r),e.setNativeInCallAudioMode(r?"video":"voice")},[t]);return{speakerOn:r,toggleSpeaker:i}}function Le(e){return e??null}function Ie(e){return!!e?.videoTrack}function PersonMark({styles:e}){/* @__PURE__ */
45
+ /* @__PURE__ */o.jsx(LobbyControl,{label:s?F.muteCta:F.unmuteCta,glyph:/* @__PURE__ */o.jsx(MicGlyph,{color:h.color.text.onBrand,off:!s}),active:s,onPress:u,testID:"everfur-vet-lobby-mic",styles:p}),
46
+ /* @__PURE__ */o.jsx(LobbyControl,{label:c?F.cameraOffCta:F.cameraOnCta,glyph:/* @__PURE__ */o.jsx(CameraGlyph,{color:h.color.text.onBrand,off:!c}),active:c,onPress:d,testID:"everfur-vet-lobby-camera",styles:p}),c&&f?/* @__PURE__ */o.jsx(LobbyControl,{label:F.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:F.lobbyDuration(Ee(a))})]})})}function He(e){let{color:r,space:o,radius:l,type:i}=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:Ve,justifyContent:"center",paddingVertical:o.xs,paddingRight:o.md},leaveLabel:{...face(e,"medium"),color:r.text.onBrand,fontSize:i.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:i.size.heading,lineHeight:Math.round(i.size.heading*i.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:l.lg,borderWidth:1,borderColor:ke.hairline,backgroundColor:ke.surface,padding:o.lg,marginBottom:o.lg},prepLabel:{...face(e,"monoBold"),color:r.accent,fontSize:i.size.micro,letterSpacing:1.2,textTransform:"uppercase"},prepBody:{...face(e,"regular"),color:r.text.onBrand,fontSize:i.size.subtitle,lineHeight:Math.round(i.size.subtitle*i.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:l.pill,backgroundColor:ke.surfaceRaised},controlOff:{backgroundColor:ke.surfaceActive},duration:{...face(e,"medium"),color:ke.textTertiary,fontSize:i.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 l=e.useRef(false);e.useEffect(()=>(l.current=true,()=>{l.current=false}),[]);let i=e.useRef(false),n=e.useCallback(()=>{i.current||!l.current||(i.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),l=e.useRef(true),i=e.useCallback(()=>{let e=t.current;if(!e?.setNativeInCallAudioMode)return;let r=!l.current;l.current=r,o(r),e.setNativeInCallAudioMode(r?"video":"voice")},[t]);return{speakerOn:r,toggleSpeaker:i}}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(l){let{roomUrl:i,token:a,onLeave:n,clinicianName:s,petName:d,consultMinutes:u,daily:f,telemetry:b,onUnavailable:g,renderUnavailable:h,style:p}=C(l,["onLeave"]),y=useEverfurTheme(),v=e.useMemo(()=>We(y),[y]),x=r.useSafeAreaInsets(),F=b??c,S=e.useRef(F);e.useEffect(()=>{S.current=F});let B=e.useRef(null),[k,z]=e.useState(()=>Re(i)),[T,D]=e.useState("joining"),[R,O]=e.useState(null),[L,I]=e.useState(null),[V,E]=e.useState(true),[H,A]=e.useState(true),{speakerOn:M,toggleSpeaker:P}=Oe(B),[W,N]=e.useState(true),[$,G]=e.useState({flip:false,speaker:false}),[U,q]=e.useState(null),[_,Y]=e.useState(0),X=isUsableRoomCredential(i,a),J=e.useMemo(()=>X?f?{available:true,module:f,reason:""}:loadEverfurDaily():null,[X,f]),K=J?.available?J.module:null,Q=e.useMemo(()=>J===null?{reason:"roomUnusable",detail:"[everfur] The vet call needs an https room URL and a non-empty join token."}:J.available?null:{reason:"dailyMissing",detail:`${oe} (${J.reason})`},[J]),Z=e.useRef(false);e.useEffect(()=>{if(Q===null){Z.current=false;return}if(m(g,Q.reason,Q.detail),!Z.current){Z.current=true;try{globalThis.console?.warn?.(Q.detail)}catch{}}},[Q,g]);let ee=e.useCallback(async()=>{let e=B.current;if(B.current=null,!!e){await ke(new Promise(t=>t(e.leave())),Be);try{e.setLocalAudio(!1),e.setLocalVideo(!1)}catch{}try{await e.destroy()}catch{}}},[]),{reportLeft:te,leave:re,leaving:le}=ze(n,ee);e.useEffect(()=>{if(K===null||!k)return;let e=false,t=K.createCallObject();B.current=t,G({flip:typeof t.cycleCamera=="function",speaker:typeof t.setNativeInCallAudioMode=="function"});let r=()=>{let e=Object.values(t.participants());I(e.find(e=>e.local)??null),O(e.find(e=>!e.local)??null)},o=["participant-joined","participant-updated","participant-left"];for(let e of o)t.on(e,r);let l=()=>{e||le.current||(D("left"),te())},n=()=>{e||D("error")};return t.on("left-meeting",l),t.on("error",n),t.join({url:i,token:a}).then(()=>{e||(D("joined"),q(Date.now()),r(),S.current.track("televet.call.joined",{provider:"daily"}))}).catch(()=>{e||(D("error"),S.current.trackExpectedFailure("televet.call.join_failed",{provider:"daily"}))}),()=>{e=true;for(let e of o)t.off(e,r);t.off("left-meeting",l),t.off("error",n),ee()}},[K,k,i,a,ee,te,le]),e.useEffect(()=>{if(U===null)return;Y(Date.now()-U);let e=setInterval(()=>{Y(Date.now()-U)},1e3);return()=>{clearInterval(e)}},[U]);let ie=e.useCallback(()=>{let e=B.current;e&&E(t=>(e.setLocalAudio(!t),!t))},[]),ae=e.useCallback(()=>{let e=B.current;e&&A(t=>(e.setLocalVideo(!t),!t))},[]),ne=e.useCallback(()=>{let e=B.current;e?.cycleCamera&&e.cycleCamera().then(e=>{let t=e?.device?.facingMode;t&&N(t==="user")},()=>{})},[]);if(Q!==null)return h?/* @__PURE__ */o.jsx(o.Fragment,{children:h(Q.reason,Q.detail)}):null;if(K===null)return null;if(!k)/* @__PURE__ */
52
- return o.jsxs(t.View,{style:[v.notice,{paddingTop:x.top+y.space.xl,paddingBottom:x.bottom+y.space.xl},p],testID:"everfur-vet-call-recording-notice",children:[
53
- /* @__PURE__ */o.jsx(Text,{style:v.noticeTitle,accessibilityRole:"header",children:w.recordingNoticeTitle}),
54
- /* @__PURE__ */o.jsx(t.Pressable,{onPress:()=>z(true),accessibilityRole:"button",accessibilityLabel:w.recordingNoticeCta,testID:"everfur-vet-call-recording-continue",style:v.noticeContinue,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:v.noticeContinueLabel,children:w.recordingNoticeCta})}),
55
- /* @__PURE__ */o.jsx(t.Pressable,{onPress:te,accessibilityRole:"button",accessibilityLabel:w.leaveCta,testID:"everfur-vet-call-recording-leave",style:v.errorLeaveHit,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:v.noticeLeave,children:w.leaveCta})})]});if(T==="error")/* @__PURE__ */
56
- return o.jsxs(t.View,{style:[v.centered,p],testID:"everfur-vet-call-error",children:[
57
- /* @__PURE__ */o.jsx(Text,{style:v.status,accessibilityLiveRegion:"polite",children:w.joinFailedReason}),
58
- /* @__PURE__ */o.jsx(t.Pressable,{onPress:re,accessibilityRole:"button",accessibilityLabel:w.leaveCta,testID:"everfur-vet-call-error-leave",style:v.errorLeaveHit,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:v.errorLeave,children:w.leaveCta})})]});if(R===null)/* @__PURE__ */
59
- return o.jsx(EverfurVetCallLobby,{clinicianName:s,petName:d,consultMinutes:u,micOn:V,cameraOn:H,onToggleMic:ie,onToggleCamera:ae,...$.flip?{onSwitchCamera:ne}:{},onLeave:re,style:p});let se=K.DailyMediaView,ce=s?.trim()??"",de=_>=Fe(u)*6e4;/* @__PURE__ */
60
- return o.jsxs(t.View,{style:[v.root,p],testID:"everfur-vet-call",children:[
61
- /* @__PURE__ */o.jsxs(t.View,{style:v.fill,testID:"everfur-vet-call-remote",children:[
62
- /* @__PURE__ */o.jsx(se,{videoTrack:Le(R.videoTrack),audioTrack:Le(R.audioTrack),mirror:false,objectFit:"cover",style:v.fill}),Ie(R)?null:/* @__PURE__ */o.jsxs(t.View,{style:v.remoteOff,testID:"everfur-vet-call-remote-camera-off",children:[
63
- /* @__PURE__ */o.jsx(PersonMark,{styles:v}),ce.length>0?/* @__PURE__ */o.jsx(Text,{style:v.remoteOffName,numberOfLines:1,children:ce}):null]})]}),
64
- /* @__PURE__ */o.jsxs(t.View,{style:[v.statusRow,{top:x.top+y.space.sm}],pointerEvents:"none",children:[ce.length>0?/* @__PURE__ */o.jsx(Text,{tier:"compact",style:v.statusName,numberOfLines:1,testID:"everfur-vet-call-remote-name",children:ce}):null,U!==null?/* @__PURE__ */o.jsx(Text,{tier:"badge",style:[v.statusMeta,de?v.statusMetaOver:null],testID:"everfur-vet-call-elapsed",children:j(_)}):null]}),
65
- /* @__PURE__ */o.jsxs(t.View,{style:[v.selfView,{top:x.top+y.space.sm}],testID:"everfur-vet-call-self",children:[
66
- /* @__PURE__ */o.jsx(se,{videoTrack:H?Le(L?.videoTrack):null,audioTrack:null,mirror:W,objectFit:"cover",style:v.fill}),L?.videoTrack&&H?null:/* @__PURE__ */o.jsx(t.View,{style:[v.selfViewOff,v.fill],testID:"everfur-vet-call-self-off",children:/* @__PURE__ */o.jsx(Text,{tier:"badge",style:v.selfViewOffLabel,children:w.selfCameraOffLabel})})]}),
67
- /* @__PURE__ */o.jsxs(t.View,{style:[v.controlBar,{bottom:x.bottom+y.space.lg}],children:[$.speaker?/* @__PURE__ */o.jsx(CallControl,{label:M?w.speakerOffCta:w.speakerOnCta,glyph:/* @__PURE__ */o.jsx(SpeakerGlyph,{color:M?y.color.text.onBrand:Ae,off:!M}),muted:!M,onPress:P,testID:"everfur-vet-call-speaker",style:[v.control,M?null:v.controlMuted]}):null,
68
- /* @__PURE__ */o.jsx(CallControl,{label:V?w.muteCta:w.unmuteCta,glyph:/* @__PURE__ */o.jsx(MicGlyph,{color:V?y.color.text.onBrand:Ae,off:!V}),muted:!V,onPress:ie,testID:"everfur-vet-call-mic",style:[v.control,V?null:v.controlMuted]}),
69
- /* @__PURE__ */o.jsx(CallControl,{label:H?w.cameraOffCta:w.cameraOnCta,glyph:/* @__PURE__ */o.jsx(CameraGlyph,{color:H?y.color.text.onBrand:Ae,off:!H}),muted:!H,onPress:ae,testID:"everfur-vet-call-camera",style:[v.control,H?null:v.controlMuted]}),$.flip&&H?/* @__PURE__ */o.jsx(CallControl,{label:w.switchCameraCta,glyph:/* @__PURE__ */o.jsx(SwitchCameraGlyph,{color:y.color.text.onBrand}),onPress:ne,testID:"everfur-vet-call-switch-camera",style:v.control}):null,
70
- /* @__PURE__ */o.jsx(CallControl,{label:w.leaveCta,glyph:/* @__PURE__ */o.jsx(LeaveGlyph,{color:y.color.text.onBrand}),onPress:re,testID:"everfur-vet-call-leave",style:[v.control,v.controlDanger]})]})]})}var Ve="#141414",Ee="#1B1B1B",He="rgba(20,20,20,0.62)",Ae="#141414",Me=104,Pe={textShadowColor:"rgba(0,0,0,0.55)",textShadowRadius:6};function We(e){let{color:r,space:o,radius:l,type:i}=e;return t.StyleSheet.create({root:{flex:1,backgroundColor:Ve},fill:{...F},centered:{flex:1,alignItems:"center",justifyContent:"center",gap:o.lg,padding:o.xl,backgroundColor:Ve},statusRow:{position:"absolute",left:o.md,right:Me+o.md*2,flexDirection:"column",alignItems:"flex-start",gap:2},statusName:{flexShrink:1,...face(e,"medium"),color:r.text.onBrand,fontSize:i.size.body,...Pe},statusMeta:{...face(e,"mono"),color:r.text.onBrand,fontSize:i.size.caption,...Pe},statusMetaOver:{color:r.danger},selfView:{position:"absolute",right:o.md,width:Me,height:148,borderRadius:l.lg,overflow:"hidden",backgroundColor:Ee,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:Ee},remoteOff:{...F,alignItems:"center",justifyContent:"center",gap:o.md,backgroundColor:Ve},remoteOffAvatar:{width:96,height:96,borderRadius:l.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:i.size.subtitle,paddingHorizontal:o.xl},notice:{flex:1,justifyContent:"center",gap:o.lg,paddingHorizontal:o.xl,backgroundColor:r.surface},noticeTitle:{...face(e,"medium"),fontSize:i.size.subtitle,lineHeight:Math.round(i.size.subtitle*i.lineHeight.relaxed),color:r.text.primary},noticeContinue:{minHeight:44,alignItems:"center",justifyContent:"center",paddingHorizontal:o.xl,borderRadius:l.pill,backgroundColor:r.primary},noticeContinueLabel:{...face(e,"medium"),color:r.onPrimary,fontSize:i.size.body},noticeLeave:{...face(e,"medium"),color:r.brandInk,fontSize:i.size.body},selfViewOffLabel:{...face(e,"medium"),color:"rgba(255,255,255,0.78)",fontSize:i.size.micro,textAlign:"center"},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:l.pill,backgroundColor:He},controlMuted:{backgroundColor:r.text.onBrand},controlDanger:{backgroundColor:r.danger},status:{...face(e,"medium"),fontSize:i.size.subtitle,lineHeight:Math.round(i.size.subtitle*i.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:i.size.body,textDecorationLine:"underline"}})}exports.EVERFUR_DAILY_SETUP=oe;exports.EverfurVetCall=EverfurVetCall;exports.EverfurVetCallLobby=EverfurVetCallLobby;exports.VET_CALL_CONSULT_MINUTES=x;exports.VET_CALL_COPY=w;exports.isEverfurDailyModule=isEverfurDailyModule;exports.isSafeRoomUrl=isSafeRoomUrl;exports.isUsableRoomCredential=isUsableRoomCredential;exports.loadEverfurDaily=loadEverfurDaily;exports.registerEverfurDaily=registerEverfurDaily;
51
+ return o.jsx(VetCallRoom,{...e},e.roomUrl)}function VetCallRoom(l){let{roomUrl:i,token:n,onLeave:a,clinicianName:s,petName:c,consultMinutes:u,daily:f,telemetry:b,onUnavailable:g,renderUnavailable:h,style:p}=w(l,["onLeave"]),m=useEverfurTheme(),y=e.useMemo(()=>Ze(m),[m]),C=r.useSafeAreaInsets(),x=b??d,j=e.useRef(x);e.useEffect(()=>{j.current=x});let k=e.useRef(null),[B,z]=e.useState(()=>$e(i)),[T,D]=e.useState("joining"),[O,R]=e.useState(null),[I,L]=e.useState(null),[V,E]=e.useState(true),[H,A]=e.useState(true),{speakerOn:M,toggleSpeaker:P}=Ge(k),[W,N]=e.useState(true),[$,G]=e.useState({flip:false,speaker:false}),[U,_]=e.useState(null),[q,Y]=e.useState(0),X=isUsableRoomCredential(i,n),J=e.useMemo(()=>X?f?{available:true,module:f,reason:""}:loadEverfurDaily():null,[X,f]),K=J?.available?J.module:null,Q=e.useMemo(()=>J===null?{reason:"roomUnusable",detail:"[everfur] The vet call needs an https room URL and a non-empty join token."}:J.available?null:{reason:"dailyMissing",detail:`${he} (${J.reason})`},[J]),Z=e.useRef(false);e.useEffect(()=>{if(Q===null){Z.current=false;return}if(v(g,Q.reason,Q.detail),!Z.current){Z.current=true;try{globalThis.console?.warn?.(Q.detail)}catch{}}},[Q,g]);let ee=e.useCallback(async()=>{let e=k.current;if(k.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:te,leave:re,leaving:oe}=Pe(a,ee);e.useEffect(()=>{if(K===null||!B)return;let e=false,t=K.createCallObject();k.current=t,G({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),R(e.find(e=>!e.local)??null)},o=["participant-joined","participant-updated","participant-left"];for(let e of o)t.on(e,r);let l=()=>{e||oe.current||(D("left"),te())},a=()=>{e||D("error")};return t.on("left-meeting",l),t.on("error",a),t.join({url:i,token:n}).then(()=>{e||(D("joined"),_(Date.now()),r(),j.current.track("televet.call.joined",{provider:"daily"}))}).catch(()=>{e||(D("error"),j.current.trackExpectedFailure("televet.call.join_failed",{provider:"daily"}))}),()=>{e=true;for(let e of o)t.off(e,r);t.off("left-meeting",l),t.off("error",a),ee()}},[K,B,i,n,ee,te,oe]),e.useEffect(()=>{if(U===null)return;Y(Date.now()-U);let e=setInterval(()=>{Y(Date.now()-U)},1e3);return()=>{clearInterval(e)}},[U]);let le=e.useCallback(()=>{let e=k.current;e&&E(t=>(e.setLocalAudio(!t),!t))},[]),ie=e.useCallback(()=>{let e=k.current;e&&A(t=>(e.setLocalVideo(!t),!t))},[]),ne=e.useCallback(()=>{let e=k.current;e?.cycleCamera&&e.cycleCamera().then(e=>{let t=e?.device?.facingMode;t&&N(t==="user")},()=>{})},[]);if(Q!==null)return h?/* @__PURE__ */o.jsx(o.Fragment,{children:h(Q.reason,Q.detail)}):null;if(K===null)return null;if(!B)/* @__PURE__ */
52
+ return o.jsx(t.View,{style:[y.notice,{paddingTop:C.top+m.space.xl,paddingBottom:C.bottom+m.space.xl},p],testID:"everfur-vet-call-recording-notice",children:/* @__PURE__ */o.jsxs(SdkTabletColumn,{style:y.noticeColumn,children:[
53
+ /* @__PURE__ */o.jsx(Text,{style:y.noticeTitle,accessibilityRole:"header",children:F.recordingNoticeTitle}),
54
+ /* @__PURE__ */o.jsx(t.Pressable,{onPress:()=>z(true),accessibilityRole:"button",accessibilityLabel:F.recordingNoticeCta,testID:"everfur-vet-call-recording-continue",style:y.noticeContinue,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:y.noticeContinueLabel,children:F.recordingNoticeCta})}),
55
+ /* @__PURE__ */o.jsx(t.Pressable,{onPress:te,accessibilityRole:"button",accessibilityLabel:F.leaveCta,testID:"everfur-vet-call-recording-leave",style:y.errorLeaveHit,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:y.noticeLeave,children:F.leaveCta})})]})});if(T==="error")/* @__PURE__ */
56
+ return o.jsxs(t.View,{style:[y.centered,p],testID:"everfur-vet-call-error",children:[
57
+ /* @__PURE__ */o.jsx(Text,{style:y.status,accessibilityLiveRegion:"polite",children:F.joinFailedReason}),
58
+ /* @__PURE__ */o.jsx(t.Pressable,{onPress:re,accessibilityRole:"button",accessibilityLabel:F.leaveCta,testID:"everfur-vet-call-error-leave",style:y.errorLeaveHit,children:/* @__PURE__ */o.jsx(Text,{tier:"control",style:y.errorLeave,children:F.leaveCta})})]});if(O===null)/* @__PURE__ */
59
+ return o.jsx(EverfurVetCallLobby,{clinicianName:s,petName:c,consultMinutes:u,micOn:V,cameraOn:H,onToggleMic:le,onToggleCamera:ie,...$.flip?{onSwitchCamera:ne}:{},onLeave:re,style:p});let ae=K.DailyMediaView,se=s?.trim()??"",ce=q>=Ee(u)*6e4;/* @__PURE__ */
60
+ return o.jsxs(t.View,{style:[y.root,p],testID:"everfur-vet-call",children:[
61
+ /* @__PURE__ */o.jsxs(t.View,{style:y.fill,testID:"everfur-vet-call-remote",children:[
62
+ /* @__PURE__ */o.jsx(ae,{videoTrack:Ue(O.videoTrack),audioTrack:Ue(O.audioTrack),mirror:false,objectFit:"cover",style:y.fill}),_e(O)?null:/* @__PURE__ */o.jsxs(t.View,{style:y.remoteOff,testID:"everfur-vet-call-remote-camera-off",children:[
63
+ /* @__PURE__ */o.jsx(PersonMark,{styles:y}),se.length>0?/* @__PURE__ */o.jsx(Text,{style:y.remoteOffName,numberOfLines:1,children:se}):null]})]}),
64
+ /* @__PURE__ */o.jsxs(t.View,{style:[y.statusRow,{top:C.top+m.space.sm}],pointerEvents:"none",children:[se.length>0?/* @__PURE__ */o.jsx(Text,{tier:"compact",style:y.statusName,numberOfLines:1,testID:"everfur-vet-call-remote-name",children:se}):null,U!==null?/* @__PURE__ */o.jsx(Text,{tier:"badge",style:[y.statusMeta,ce?y.statusMetaOver:null],testID:"everfur-vet-call-elapsed",children:S(q)}):null]}),
65
+ /* @__PURE__ */o.jsxs(t.View,{style:[y.selfView,{top:C.top+m.space.sm}],testID:"everfur-vet-call-self",children:[
66
+ /* @__PURE__ */o.jsx(ae,{videoTrack:H?Ue(I?.videoTrack):null,audioTrack:null,mirror:W,objectFit:"cover",style:y.fill}),I?.videoTrack&&H?null:/* @__PURE__ */o.jsx(t.View,{style:[y.selfViewOff,y.fill],testID:"everfur-vet-call-self-off",children:/* @__PURE__ */o.jsx(Text,{tier:"badge",style:y.selfViewOffLabel,children:F.selfCameraOffLabel})})]}),
67
+ /* @__PURE__ */o.jsxs(t.View,{style:[y.controlBar,{bottom:C.bottom+m.space.lg}],children:[$.speaker?/* @__PURE__ */o.jsx(CallControl,{label:M?F.speakerOffCta:F.speakerOnCta,glyph:/* @__PURE__ */o.jsx(SpeakerGlyph,{color:M?m.color.text.onBrand:Je,off:!M}),muted:!M,onPress:P,testID:"everfur-vet-call-speaker",style:[y.control,M?null:y.controlMuted]}):null,
68
+ /* @__PURE__ */o.jsx(CallControl,{label:V?F.muteCta:F.unmuteCta,glyph:/* @__PURE__ */o.jsx(MicGlyph,{color:V?m.color.text.onBrand:Je,off:!V}),muted:!V,onPress:le,testID:"everfur-vet-call-mic",style:[y.control,V?null:y.controlMuted]}),
69
+ /* @__PURE__ */o.jsx(CallControl,{label:H?F.cameraOffCta:F.cameraOnCta,glyph:/* @__PURE__ */o.jsx(CameraGlyph,{color:H?m.color.text.onBrand:Je,off:!H}),muted:!H,onPress:ie,testID:"everfur-vet-call-camera",style:[y.control,H?null:y.controlMuted]}),$.flip&&H?/* @__PURE__ */o.jsx(CallControl,{label:F.switchCameraCta,glyph:/* @__PURE__ */o.jsx(SwitchCameraGlyph,{color:m.color.text.onBrand}),onPress:ne,testID:"everfur-vet-call-switch-camera",style:y.control}):null,
70
+ /* @__PURE__ */o.jsx(CallControl,{label:F.leaveCta,glyph:/* @__PURE__ */o.jsx(LeaveGlyph,{color:m.color.text.onBrand}),onPress:re,testID:"everfur-vet-call-leave",style:[y.control,y.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};function Ze(e){let{color:r,space:o,radius:l,type:i}=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:i.size.body,...Qe},statusMeta:{...face(e,"mono"),color:r.text.onBrand,fontSize:i.size.caption,...Qe},statusMetaOver:{color:r.danger},selfView:{position:"absolute",right:o.md,width:Ke,height:148,borderRadius:l.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:l.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:i.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:i.size.subtitle,lineHeight:Math.round(i.size.subtitle*i.lineHeight.relaxed),color:r.text.primary},noticeContinue:{minHeight:44,alignItems:"center",justifyContent:"center",paddingHorizontal:o.xl,borderRadius:l.pill,backgroundColor:r.primary},noticeContinueLabel:{...face(e,"medium"),color:r.onPrimary,fontSize:i.size.body},noticeLeave:{...face(e,"medium"),color:r.brandInk,fontSize:i.size.body},selfViewOffLabel:{...face(e,"medium"),color:"rgba(255,255,255,0.78)",fontSize:i.size.micro,textAlign:"center"},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:l.pill,backgroundColor:Xe},controlMuted:{backgroundColor:r.text.onBrand},controlDanger:{backgroundColor:r.danger},status:{...face(e,"medium"),fontSize:i.size.subtitle,lineHeight:Math.round(i.size.subtitle*i.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:i.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=F;exports.isEverfurDailyModule=isEverfurDailyModule;exports.isSafeRoomUrl=isSafeRoomUrl;exports.isUsableRoomCredential=isUsableRoomCredential;exports.loadEverfurDaily=loadEverfurDaily;exports.registerEverfurDaily=registerEverfurDaily;