@mediquo/elements 0.8.0 → 0.8.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.
Files changed (161) hide show
  1. package/README.md +61 -5
  2. package/dist/chunks/action-unavailable-message-BIgsXk9u.js +1 -0
  3. package/dist/chunks/api-chat-client-pGZWREjK.js +1 -0
  4. package/dist/chunks/api-client-context-V1UAGtKW.js +1 -0
  5. package/dist/chunks/{apple-pay-outcomes-BpcbdGfO.js → apple-pay-outcomes-BONpT54d.js} +1 -1
  6. package/dist/chunks/appointment-action-unavailable-dialog-BYse3uIa.d.ts +54 -0
  7. package/dist/chunks/{appointment-card-skeleton-B7dKtGv0.d.ts → appointment-card-skeleton-C3mV8Ky1.d.ts} +5 -3
  8. package/dist/chunks/appointment-card-skeleton-CAQmlCTm.js +1 -0
  9. package/dist/chunks/appointment-details-DXLBQnPN.js +1 -0
  10. package/dist/chunks/chunk-6CCJWPGL-TiaqZaPV.js +1 -0
  11. package/dist/chunks/{chunk-BUV4MGML-Bn3JWCAv.js → chunk-BUV4MGML-CkhBbfUu.js} +1 -1
  12. package/dist/chunks/chunk-HN62IQ7S-xbkIy7k_.js +1 -0
  13. package/dist/chunks/chunk-Y4EKUX25-QqMl3eiq.js +1 -0
  14. package/dist/chunks/consume-CovVqBjI.js +1 -0
  15. package/dist/chunks/{chunk-6CCJWPGL-DlOpbEYH.js → context-consumer-ESdICVAb.js} +1 -1
  16. package/dist/chunks/documentation-view-GZI-DC3e.js +1 -0
  17. package/dist/chunks/{get-appointment-query-lJe75hGS.js → get-appointment-query-C-gTTuiQ.js} +1 -1
  18. package/dist/chunks/{get-organization-setup-query-DxHNY0w8.js → get-organization-setup-query-Dr1cXnHl.js} +1 -1
  19. package/dist/chunks/{get-patient-documents-query-D1SfC_k_.js → get-patient-documents-query-NC9xCa_N.js} +1 -1
  20. package/dist/chunks/{get-patient-profile-query-DiU2f_QH.js → get-patient-profile-query-4AO6xvVn.js} +1 -1
  21. package/dist/chunks/{get-schedule-services-query-Ckvz9Fqh.js → get-schedule-services-query-Fzvb9ug9.js} +1 -1
  22. package/dist/chunks/index-6gxzoTLM.js +1 -0
  23. package/dist/chunks/{index-Ca-l41nB.js → index-CXb3gOFA.js} +1 -1
  24. package/dist/chunks/index-CoZKmhwT.js +1 -0
  25. package/dist/chunks/{index-63zQSBy4.js → index-CyteNROM.js} +1 -1
  26. package/dist/chunks/{index-czcKClL3.d.ts → index-KhJ8hC0H.d.ts} +8 -0
  27. package/dist/chunks/index-PGYfkbm6.js +1 -0
  28. package/dist/chunks/index.d-Bl682CAX.d.ts +2977 -0
  29. package/dist/chunks/login-token-task-Yib__6a9.js +1 -0
  30. package/dist/chunks/{mq-chat-room-CRPruRJD.d.ts → mq-chat-room-t3j3Tq4o.d.ts} +12 -227
  31. package/dist/chunks/mq-layout-D1j50tKd.d.ts +51 -0
  32. package/dist/chunks/mq-layout-L3TlCxI0.js +1 -0
  33. package/dist/chunks/provide-BwI4DDGF.js +1 -0
  34. package/dist/chunks/query-controller-BlO1Ax65.js +1 -0
  35. package/dist/chunks/refund-cancel-policy-CcsJ-pMx.js +1 -0
  36. package/dist/chunks/{schemas.d-D7bCe24u.d.ts → schemas.d-b6_AekBb.d.ts} +12 -1
  37. package/dist/chunks/telemetry-client-CoWay8es.js +1 -0
  38. package/dist/env.js +1 -1
  39. package/dist/i18n.js +1 -1
  40. package/dist/mq-api-client-provider.d.ts +39 -0
  41. package/dist/mq-api-client-provider.js +1 -0
  42. package/dist/mq-apple-pay-checkout.d.ts +12 -0
  43. package/dist/mq-apple-pay-checkout.js +1 -1
  44. package/dist/mq-appointment-checkout.d.ts +3 -1
  45. package/dist/mq-appointment-checkout.js +1 -1
  46. package/dist/mq-appointment-documentation.d.ts +13 -5
  47. package/dist/mq-appointment-documentation.js +1 -1
  48. package/dist/mq-chat-room.d.ts +5 -2
  49. package/dist/mq-chat-room.js +1 -1
  50. package/dist/mq-checkout.d.ts +21 -1
  51. package/dist/mq-checkout.js +1 -1
  52. package/dist/mq-dashboard.d.ts +22 -122
  53. package/dist/mq-dashboard.js +1 -1
  54. package/dist/mq-documents.d.ts +14 -4
  55. package/dist/mq-documents.js +1 -1
  56. package/dist/mq-google-pay-checkout.d.ts +12 -0
  57. package/dist/mq-google-pay-checkout.js +1 -1
  58. package/dist/mq-immediate-videocall-checkout.d.ts +3 -0
  59. package/dist/mq-immediate-videocall-checkout.js +1 -1
  60. package/dist/mq-my-appointments.d.ts +11 -7
  61. package/dist/mq-my-appointments.js +1 -1
  62. package/dist/mq-next-appointments.d.ts +15 -5
  63. package/dist/mq-next-appointments.js +1 -1
  64. package/dist/mq-payment-poller.d.ts +11 -0
  65. package/dist/mq-payment-poller.js +1 -1
  66. package/dist/mq-professional-presence-sync.d.ts +1 -0
  67. package/dist/mq-professional-presence-sync.js +1 -1
  68. package/dist/mq-query-client-provider.d.ts +4 -1
  69. package/dist/mq-query-client-provider.js +1 -1
  70. package/dist/mq-recent-documents.d.ts +10 -25
  71. package/dist/mq-recent-documents.js +1 -1
  72. package/dist/mq-schedule-success.d.ts +12 -2
  73. package/dist/mq-schedule-success.js +2 -2
  74. package/dist/mq-schedule.d.ts +25 -221
  75. package/dist/mq-schedule.js +1 -1
  76. package/dist/mq-session-provider.d.ts +1 -1
  77. package/dist/mq-session-provider.js +1 -1
  78. package/dist/mq-socket-provider.js +1 -1
  79. package/dist/mq-support-chat.d.ts +13 -3
  80. package/dist/mq-support-chat.js +1 -1
  81. package/dist/mq-terms-and-conditions.d.ts +5 -1
  82. package/dist/mq-terms-and-conditions.js +1 -1
  83. package/dist/mq-unread-count-sync.d.ts +1 -0
  84. package/dist/mq-unread-count-sync.js +1 -1
  85. package/dist/mq-videocall.d.ts +13 -4
  86. package/dist/mq-videocall.js +1 -1
  87. package/dist/react/mq-api-client-provider.d.ts +26 -0
  88. package/dist/react/mq-api-client-provider.js +2 -0
  89. package/dist/react/mq-apple-pay-checkout.d.ts +4 -1
  90. package/dist/react/mq-apple-pay-checkout.js +1 -1
  91. package/dist/react/mq-appointment-checkout.d.ts +3 -1
  92. package/dist/react/mq-appointment-checkout.js +1 -1
  93. package/dist/react/mq-appointment-documentation.d.ts +6 -5
  94. package/dist/react/mq-appointment-documentation.js +1 -1
  95. package/dist/react/mq-chat-room.d.ts +5 -2
  96. package/dist/react/mq-chat-room.js +1 -1
  97. package/dist/react/mq-checkout.d.ts +4 -1
  98. package/dist/react/mq-checkout.js +1 -1
  99. package/dist/react/mq-dashboard.d.ts +11 -11
  100. package/dist/react/mq-dashboard.js +1 -1
  101. package/dist/react/mq-documents-page.d.ts +5 -4
  102. package/dist/react/mq-documents-page.js +1 -1
  103. package/dist/react/mq-documents.d.ts +5 -4
  104. package/dist/react/mq-documents.js +1 -1
  105. package/dist/react/mq-google-pay-checkout.d.ts +4 -1
  106. package/dist/react/mq-google-pay-checkout.js +1 -1
  107. package/dist/react/mq-immediate-videocall-checkout.d.ts +3 -0
  108. package/dist/react/mq-immediate-videocall-checkout.js +1 -1
  109. package/dist/react/mq-my-appointments.d.ts +10 -8
  110. package/dist/react/mq-my-appointments.js +1 -1
  111. package/dist/react/mq-next-appointments.d.ts +10 -7
  112. package/dist/react/mq-next-appointments.js +1 -1
  113. package/dist/react/mq-payment-poller.d.ts +4 -0
  114. package/dist/react/mq-payment-poller.js +1 -1
  115. package/dist/react/mq-professional-presence-sync.js +1 -1
  116. package/dist/react/mq-query-client-provider.d.ts +1 -0
  117. package/dist/react/mq-query-client-provider.js +1 -1
  118. package/dist/react/mq-recent-documents.d.ts +4 -3
  119. package/dist/react/mq-recent-documents.js +1 -1
  120. package/dist/react/mq-schedule-success.d.ts +5 -2
  121. package/dist/react/mq-schedule-success.js +1 -1
  122. package/dist/react/mq-schedule.d.ts +4 -2
  123. package/dist/react/mq-schedule.js +1 -1
  124. package/dist/react/mq-session-provider.d.ts +1 -1
  125. package/dist/react/mq-session-provider.js +1 -1
  126. package/dist/react/mq-socket-provider.js +1 -1
  127. package/dist/react/mq-support-chat.d.ts +5 -2
  128. package/dist/react/mq-support-chat.js +1 -1
  129. package/dist/react/mq-terms-and-conditions.d.ts +5 -1
  130. package/dist/react/mq-terms-and-conditions.js +1 -1
  131. package/dist/react/mq-toast-container.js +1 -1
  132. package/dist/react/mq-unread-count-sync.js +1 -1
  133. package/dist/react/mq-videocall.d.ts +6 -5
  134. package/dist/react/mq-videocall.js +1 -1
  135. package/dist/theme.js +1 -1
  136. package/dist/ui/mq-calendar.js +1 -1
  137. package/dist/ui/mq-clamped-text.js +1 -1
  138. package/package.json +5 -1
  139. package/dist/chunks/action-unavailable-message-CRLimFj5.js +0 -1
  140. package/dist/chunks/api-chat-client-BiiYnU-b.js +0 -1
  141. package/dist/chunks/appointment-action-unavailable-dialog-Da2IATYj.d.ts +0 -321
  142. package/dist/chunks/appointment-card-skeleton-ZfTAElLq.js +0 -1
  143. package/dist/chunks/appointment-details-Bm3Uuw2g.js +0 -1
  144. package/dist/chunks/chunk-Y4EKUX25-CqL3lLdx.js +0 -1
  145. package/dist/chunks/consume-BhoQNO_8.js +0 -1
  146. package/dist/chunks/context-provider--AKuwfs9.js +0 -1
  147. package/dist/chunks/document.model.d-DIzMiOmd.d.ts +0 -6
  148. package/dist/chunks/documentation-view-CTnpWIxq.js +0 -1
  149. package/dist/chunks/i18n-formats-EgnwLxKt.js +0 -1
  150. package/dist/chunks/index-CSJzkkRA.d.ts +0 -28
  151. package/dist/chunks/index-CZ9HtP96.js +0 -1
  152. package/dist/chunks/index-DMiowcMQ.js +0 -1
  153. package/dist/chunks/index-DZjrAnPq.js +0 -1
  154. package/dist/chunks/login-token-task-BI-L2zSV.js +0 -1
  155. package/dist/chunks/mq-layout-BndHxkbb.js +0 -1
  156. package/dist/chunks/mq-layout-D8Mak16a.d.ts +0 -21
  157. package/dist/chunks/provide-D2fnEhT2.js +0 -1
  158. package/dist/chunks/query-controller-D7jBX4X7.js +0 -1
  159. package/dist/chunks/refund-cancel-policy-DV6bzqcu.js +0 -1
  160. package/dist/chunks/schemas.d-Bss7CeCZ.d.ts +0 -53
  161. package/dist/chunks/telemetry-client-Bkbn48Dd.js +0 -1
@@ -1 +0,0 @@
1
- import{_ as t,c as e}from"./custom-element-D2ziPxYE.js";import{i,a as o,x as n}from"./lit-element-DiWJYFwC.js";import{n as a}from"./property-scuRaFcM.js";import{r as s}from"./state-LQivXIgA.js";import"../ui/mq-checkbox.js";import"../ui/mq-button.js";import{M as r}from"./mutation-controller-CR2qcqhH.js";import{setEnv as l}from"../env.js";import{a as h}from"./api-chat-client-BiiYnU-b.js";const c=i`.page-header{box-sizing:border-box;width:100%;display:none}.page-title{font-family:var(--font-body);font-size:var(--text-2xl);line-height:var(--text-2xl--line-height);font-weight:var(--font-weight-bold);color:var(--color-neutrals-text-default)}.page-title ::slotted(*){margin:0;margin-bottom:var(--sp-2);font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.page-subtitle{font-family:var(--font-body);font-size:var(--text-base);line-height:var(--text-base--line-height);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-subtle)}.page-subtitle ::slotted(*){margin:0;font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.terms-section{box-sizing:border-box;width:100%;display:flex;flex-direction:column;gap:var(--sp-6);background-color:var(--color-neutrals-background-weak);padding:var(--sp-6);border-radius:var(--border-radius-md)}.terms-title{font-family:var(--font-titles);font-size:var(--text-2xl);line-height:var(--text-2xl--line-height);font-weight:var(--font-weight-bold);color:var(--color-neutrals-text-default)}.terms-title ::slotted(*){margin:0;margin-bottom:var(--sp-2);font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.terms-description{font-family:var(--font-body);font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-default)}.terms-description ::slotted(*){margin:0;font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}.checkbox-container{display:flex;gap:var(--sp-3);align-items:flex-start;cursor:pointer}.checkbox-label{font-family:var(--font-body);font-size:var(--text-base);line-height:var(--text-base--line-height);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-default);flex:1}@media (min-width:768px){.page-header{display:block;margin-bottom:var(--sp-10)}.page-title{font-size:var(--text-3xl);line-height:var(--text-3xl--line-height)}.page-title ::slotted(*){font-size:inherit;line-height:inherit}.page-subtitle{font-size:var(--text-base);line-height:var(--text-base--line-height)}.page-subtitle ::slotted(*){font-size:inherit;line-height:inherit}.terms-title{font-size:var(--text-2xl);line-height:var(--text-2xl--line-height)}.terms-title ::slotted(*){font-size:inherit;line-height:inherit}.terms-description{font-size:var(--text-base);line-height:var(--text-base--line-height)}.terms-description ::slotted(*){font-size:inherit;line-height:inherit}.checkbox-label{font-size:var(--text-base);line-height:var(--text-base--line-height)}}`;let d=class MqTermsAndConditions extends o{constructor(){super(...arguments),this.disabled=!1,this.hasCommercialCommunications=!1,this._accepted=!1,this.acceptLegalConsentMutation=new r(this,{mutationFn:async t=>h.profile.acceptLegalConsent(t),onSuccess:()=>{this.dispatchEvent(new CustomEvent("continue"))}})}static{this.styles=c}willUpdate(t){t.has("env")&&this.env&&l(this.env),t.has("apiKey")&&this.apiKey&&h.setApiKey(this.apiKey),t.has("token")&&this.token&&h.setAuthToken(this.token)}handleCheckboxChange(t){this._accepted=t.detail.checked}handleContinue(){this._accepted&&!this.disabled&&this.acceptLegalConsentMutation.run({terms_accepted:!0,privacy_accepted:!0,commercial_accepted:this.hasCommercialCommunications})}render(){const t=!this._accepted||this.disabled;return n`<div class="page-header"><div class="page-title"><slot name="page-title"></slot></div><div class="page-subtitle"><slot name="page-subtitle"></slot></div></div><div class="terms-section"><div><div class="terms-title"><slot name="terms-title"></slot></div><div class="terms-description"><slot name="terms-description"></slot></div></div><div class="checkbox-container"><mq-checkbox id="terms-checkbox" @change="${this.handleCheckboxChange}" ?disabled="${this.disabled}"></mq-checkbox><label class="checkbox-label" for="terms-checkbox"><slot name="checkbox-label"></slot></label></div><mq-button variant="primary" size="md" fullwidth ?disabled="${this.acceptLegalConsentMutation.isPending||t}" @click="${this.handleContinue}"><slot name="button-text"></slot></mq-button></div>`}};t([a({type:Boolean})],d.prototype,"disabled",void 0),t([a({type:Boolean})],d.prototype,"hasCommercialCommunications",void 0),t([a({type:String,attribute:"api-key"})],d.prototype,"apiKey",void 0),t([a({type:String,attribute:"token"})],d.prototype,"token",void 0),t([a({type:String,attribute:"env"})],d.prototype,"env",void 0),t([s()],d.prototype,"_accepted",void 0),d=t([e("mq-terms-and-conditions")],d);export{d as M};
@@ -1 +0,0 @@
1
- import{_ as t,c as i}from"./custom-element-D2ziPxYE.js";import{l as e}from"./localized-decorator-BlOuLhym.js";import"./runtime-Bg1WXVCx.js";import{i as o,a as n,x as r,E as a}from"./lit-element-DiWJYFwC.js";import{n as s}from"./property-scuRaFcM.js";import{calendarIcon as c}from"../ui/icons/calendar-icon.js";import{fileIcon as l}from"../ui/icons/file-icon.js";import{arrowRightIcon as p}from"../ui/icons/arrow-right-icon.js";const d=o`:host{display:flex;flex-direction:column;gap:var(--sp-4);width:100%;box-sizing:border-box}svg{flex-shrink:0;width:25px;height:25px}.content{display:flex;flex-direction:column;gap:var(--sp-2)}.title{font-family:var(--font-titles);font-size:var(--text-base);line-height:1.5;font-weight:var(--font-weight-medium);color:var(--color-text-icons--primary,#0a0a22);margin:0}.description{font-family:var(--font-body);font-size:var(--text-sm);line-height:1.35;font-weight:var(--font-weight-normal);color:var(--color-text-icons--secondary,#6d658b);margin:0}@media (min-width:768px){:host{flex-direction:row;align-items:flex-start;gap:var(--sp-6)}svg{width:32px;height:32px}}`;let h=class HomeWidgetEmptyState extends n{constructor(){super(...arguments),this.icon="document",this.heading="",this.description=""}static{this.styles=d}render(){const t="calendar"===this.icon?c:l;return r`${t({size:32,color:"var(--color-primary, #4a1ea7)"})}<div class="content"><p class="title">${this.heading}</p><p class="description">${this.description}</p></div>`}};t([s({type:String})],h.prototype,"icon",void 0),t([s({type:String})],h.prototype,"heading",void 0),t([s({type:String})],h.prototype,"description",void 0),h=t([e(),i("home-widget-empty-state")],h);const m=o`:host{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);width:100%}.heading{font-family:var(--font-titles);font-size:var(--text-base);line-height:1.5;font-weight:var(--font-weight-medium);color:var(--color-text-icons--primary,#0a0a22);margin:0}.action{display:inline-flex;align-items:center;gap:6px;background:0 0;border:none;padding:0;cursor:pointer;font-family:var(--font-body);font-size:var(--text-sm);line-height:1.35;font-weight:var(--font-weight-normal);color:var(--color-primary-text-link,#4a1ea7);white-space:nowrap}.action:hover{text-decoration:underline}.action svg{flex-shrink:0}`;let g=class SectionHeader extends n{constructor(){super(...arguments),this.heading=""}static{this.styles=m}render(){return r`<h2 class="heading">${this.heading}</h2>${this.actionLabel?r`<button class="action" type="button" @click="${()=>{this.dispatchEvent(new CustomEvent("section-action",{bubbles:!0,composed:!0}))}}">${this.actionLabel} ${p({size:18,color:"var(--color-primary-text-link, #4a1ea7)"})}</button>`:a}`}};t([s({type:String})],g.prototype,"heading",void 0),t([s({type:String,attribute:"action-label"})],g.prototype,"actionLabel",void 0),g=t([e(),i("section-header")],g);
@@ -1 +0,0 @@
1
- import{h as a}from"./task-Bj8p7kJX.js";var s=class extends a{constructor(a,s,t){super(a,{task:async([a,t])=>await s.auth.loginToken({api_key:a,token:t}),...t})}};export{s as L};
@@ -1 +0,0 @@
1
- import{_ as t,c as o}from"./custom-element-D2ziPxYE.js";import{m as C}from"./runtime-Bg1WXVCx.js";import{l as a}from"./localized-decorator-BlOuLhym.js";import{a as r,i as e,x as i}from"./lit-element-DiWJYFwC.js";import{n}from"./property-scuRaFcM.js";let d=class MQLayout extends r{constructor(){super(...arguments),this.background="default",this.variant="default",this.showMediquoBranding=!0}static{this.styles=e`:host{--content-max-width:560px;display:flex;flex-direction:column;height:100%;width:100%;max-width:var(--content-max-width);margin:0 auto;background-color:var(--color-background)}:host([background=solid]){background-color:var(--color-background)}:host([background=transparent]){background-color:transparent}:host([variant=wide]){--content-max-width:1000px}.content{flex:1;padding:var(--mq-layout-padding,0)}footer{display:flex;flex-direction:column;align-items:center;gap:var(--sp-4);padding-top:var(--sp-10);padding-bottom:var(--sp-3);padding-inline:var(--mq-layout-padding,0);margin-bottom:var(--sp-3);text-align:center}.branding{display:flex;justify-content:center;align-items:center;gap:var(--size-2);font-family:var(--font-body);font-size:var(--text-sm);line-height:normal;font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-default)}`}render(){return this.showMediquoBranding?i`<div class="content"><slot></slot></div><footer><div class="branding">${C("Servicio y plataforma prestados por")} ${i`<svg width="82" height="16" viewBox="0 0 82 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M52.4506 8.97739V10.5665C52.4506 11.1054 52.0077 11.5477 51.4682 11.5477C50.9288 11.5477 50.486 11.1054 50.486 10.5665V8.97739H48.8531C48.3276 8.97739 47.8984 8.54894 47.8984 8.02383C47.8984 7.49893 48.3276 7.07053 48.8531 7.07053H50.486V5.48128C50.486 4.94243 50.9288 4.5002 51.4682 4.5002C52.0077 4.5002 52.4506 4.94243 52.4506 5.48128V7.07053H54.0836C54.609 7.07053 55.0379 7.49893 55.0379 8.02383C55.0379 8.54894 54.609 8.97739 54.0836 8.97739H52.4506ZM56.8563 5.46693C56.055 3.75203 54.5229 2.55033 52.6531 2.16979C52.3272 2.10809 51.9339 2.06818 51.5273 2.05679C48.7327 2.10005 46.4191 3.93204 45.7665 6.6209C45.397 8.13705 45.6843 9.78156 46.555 11.134C47.4258 12.4867 48.8053 13.431 50.3396 13.7243C51.7168 13.9883 53.0199 13.8046 54.2312 13.1767L54.2853 13.1506C54.554 13.0306 54.8304 12.9977 55.1481 13.0559L55.2243 13.0728C55.8277 13.2312 56.4308 13.389 57.0345 13.5467C56.8787 12.9784 56.7231 12.4168 56.5656 11.86L56.5512 11.8035C56.4673 11.4258 56.5163 11.0837 56.7011 10.7579C57.5947 9.11014 57.6548 7.17549 56.8563 5.46693ZM59.2901 15.5846C59.0891 15.8486 58.7811 16 58.4446 16C58.2872 16 58.1621 15.967 58.0617 15.9405L57.0944 15.6878C56.3739 15.4997 55.6553 15.312 54.936 15.1233C53.8594 15.6379 52.7204 15.8988 51.5464 15.8988C51.0243 15.8988 50.4877 15.8466 49.9521 15.7439C47.8668 15.3452 45.9973 14.0703 44.823 12.2461C43.6488 10.4223 43.2634 8.19505 43.7656 6.13553C44.6446 2.51324 47.7615 0.0472629 51.5211 0.000260881L51.5409 0L51.5605 0.000391321C52.0913 0.0140876 52.5926 0.0651767 53.0508 0.152094C55.5798 0.666768 57.6424 2.28597 58.7224 4.59729C59.7655 6.82947 59.7232 9.34593 58.6144 11.5401C58.8921 12.5275 59.1643 13.5268 59.4414 14.5471C59.4869 14.7106 59.6124 15.1611 59.2901 15.5846ZM79.7577 8.77869C79.7577 7.05748 78.5162 5.63246 76.7557 5.63246C74.9582 5.63246 73.8092 7.03887 73.8092 8.7416V8.77869C73.8092 10.4814 75.0508 11.9064 76.7927 11.9064C78.6089 11.9064 79.7577 10.4999 79.7577 8.81573V8.77869ZM76.7557 13.868C73.7722 13.868 71.5669 11.5915 71.5669 8.81573V8.77869C71.5669 5.98404 73.7907 3.67068 76.7927 3.67068C79.7949 3.67068 82 5.94717 82 8.7416V8.77869C82 11.5545 79.7764 13.868 76.7557 13.868ZM68.7934 13.7387C68.1816 13.7387 67.6628 13.2571 67.6628 12.6281V12.1285C67.0328 13.0538 66.1247 13.8495 64.6051 13.8495C62.4 13.8495 61.1213 12.3691 61.1213 10.0925V4.89208C61.1213 4.2631 61.6216 3.76329 62.2331 3.76329C62.8633 3.76329 63.3637 4.2631 63.3637 4.89208V9.42637C63.3637 10.944 64.1233 11.7951 65.4575 11.7951C66.7547 11.7951 67.6628 10.9071 67.6628 9.38919V4.89208C67.6628 4.2631 68.1631 3.76329 68.7934 3.76329C69.4048 3.76329 69.9236 4.2631 69.9236 4.89208V12.6281C69.9236 13.2386 69.4233 13.7387 68.7934 13.7387ZM40.4153 3.76329C41.0454 3.76329 41.5457 4.2631 41.5457 4.89208V12.6281C41.5457 13.2571 41.0454 13.7387 40.4153 13.7387C39.8038 13.7387 39.3034 13.2571 39.3034 12.6281V4.89208C39.3034 4.2631 39.7852 3.76329 40.4153 3.76329ZM40.4153 2.4678C39.6925 2.4678 39.1368 2.02361 39.1368 1.35732V1.2464C39.1368 0.580156 39.6925 0.154442 40.4153 0.154442C41.1379 0.154442 41.694 0.580156 41.694 1.2464V1.35732C41.694 2.02361 41.1379 2.4678 40.4153 2.4678ZM34.7693 8.7416C34.7693 6.85382 33.435 5.6139 31.9339 5.6139C30.3961 5.6139 29.1173 6.79821 29.1173 8.7416V8.77869C29.1173 10.6665 30.4145 11.9064 31.9339 11.9064C33.435 11.9064 34.7693 10.6476 34.7693 8.77869V8.7416ZM35.8627 13.7387C35.2325 13.7387 34.7321 13.2571 34.7321 12.6281V12.0172C34.0095 13.0353 32.9903 13.8495 31.3966 13.8495C29.0988 13.8495 26.8566 12.0172 26.8566 8.77869V8.7416C26.8566 5.50298 29.0616 3.67068 31.3966 3.67068C33.0088 3.67068 34.028 4.4665 34.7321 5.39189V1.15383C34.7321 0.524632 35.2325 0.0434802 35.8439 0.0434802C36.4742 0.0434802 36.9745 0.524632 36.9745 1.15383V12.6281C36.9745 13.2571 36.4742 13.7387 35.8627 13.7387ZM21.0065 5.50298C19.6353 5.50298 18.6718 6.55763 18.4678 8.07548H23.4897C23.3416 6.63203 22.4892 5.50298 21.0065 5.50298ZM24.6203 9.55589H18.4864C18.7272 11.1477 19.8578 12.0357 21.3032 12.0357C22.2482 12.0357 22.9895 11.7028 23.6196 11.1846C23.7863 11.0548 23.9346 10.981 24.194 10.981C24.6945 10.981 25.0836 11.3698 25.0836 11.8879C25.0836 12.1654 24.9539 12.406 24.787 12.5727C23.8975 13.3683 22.7858 13.868 21.2662 13.868C18.4308 13.868 16.244 11.8136 16.244 8.79712V8.76021C16.244 5.96556 18.227 3.67068 21.0253 3.67068C24.1384 3.67068 25.6765 6.22475 25.6765 8.48246C25.6765 9.1117 25.1948 9.55589 24.6203 9.55589ZM13.7686 13.7387C13.1387 13.7387 12.6382 13.2571 12.6382 12.6281V8.09396C12.6382 6.53915 11.9155 5.70655 10.6555 5.70655C9.43232 5.70655 8.56142 6.55763 8.56142 8.13083V12.6281C8.56142 13.2571 8.06108 13.7387 7.44958 13.7387C6.81941 13.7387 6.3192 13.2571 6.3192 12.6281V8.07548C6.3192 6.55763 5.57796 5.70655 4.33625 5.70655C3.09479 5.70655 2.24235 6.63203 2.24235 8.13083V12.6281C2.24235 13.2571 1.74205 13.7387 1.1118 13.7387C0.500341 13.7387 0 13.2571 0 12.6281V4.89208C0 4.2631 0.481844 3.76329 1.1118 3.76329C1.74205 3.76329 2.24235 4.2631 2.24235 4.89208V5.35475C2.87235 4.48511 3.72475 3.67068 5.22586 3.67068C6.63431 3.67068 7.63481 4.35545 8.15378 5.39189C8.93198 4.35545 9.96987 3.67068 11.4522 3.67068C13.5833 3.67068 14.8804 5.02183 14.8804 7.40919V12.6281C14.8804 13.2571 14.3988 13.7387 13.7686 13.7387Z" fill="#0A0A22"/></svg>`}</div></footer>`:i`<div class="content"><slot></slot></div>`}};t([n({type:String})],d.prototype,"background",void 0),t([n()],d.prototype,"variant",void 0),t([n({type:Boolean,attribute:"show-mediquo-branding"})],d.prototype,"showMediquoBranding",void 0),d=t([a(),o("mq-layout")],d);
@@ -1,21 +0,0 @@
1
- import * as lit_html from 'lit-html';
2
- import * as lit from 'lit';
3
- import { LitElement } from 'lit';
4
-
5
- /**
6
- * Presentational page frame: a centered content column with an optional
7
- * "provided by mediquo" branding footer. Pure chrome — no navigation. Shared
8
- * across features that need a full-screen wizard-style layout.
9
- */
10
- declare class MQLayout extends LitElement {
11
- static styles: lit.CSSResult;
12
- background: "solid" | "default" | "transparent";
13
- variant: "default" | "wide";
14
- showMediquoBranding: boolean;
15
- render(): lit_html.TemplateResult<1>;
16
- }
17
- declare global {
18
- interface HTMLElementTagNameMap {
19
- "mq-layout": MQLayout;
20
- }
21
- }
@@ -1 +0,0 @@
1
- import{i as t}from"./context-provider--AKuwfs9.js";function e({context:e}){return(r,n)=>{const s=new WeakMap;if("object"==typeof n)return{get(){return r.get.call(this)},set(t){return s.get(this).setValue(t),r.set.call(this,t)},init(r){return s.set(this,new t(this,{context:e,initialValue:r})),r}};{r.constructor.addInitializer(r=>{s.set(r,new t(r,{context:e}))});const i=Object.getOwnPropertyDescriptor(r,n);let o;if(void 0===i){const t=new WeakMap;o={get(){return t.get(this)},set(e){s.get(this).setValue(e),t.set(this,e)},configurable:!0,enumerable:!0}}else{const t=i.set;o={...i,set(e){s.get(this).setValue(e),t?.call(this,e)}}}return void Object.defineProperty(r,n,o)}}}export{e};
@@ -1 +0,0 @@
1
- import{Q as t}from"./chunk-RCFIJTXZ-C6Ir0-sM.js";import{a as e}from"./chunk-6CCJWPGL-DlOpbEYH.js";import{S as s,p as r,r as i,s as n,a as u,n as a,i as h,b as o,t as c,c as l,f as d,d as p,e as f,g as y}from"./query-Cjvi4_dT.js";var b=class extends s{constructor(t,e){super(),this.options=e,this.#t=t,this.#e=null,this.#s=r(),this.bindMethods(),this.setOptions(e)}#t;#r=void 0;#i=void 0;#n=void 0;#u;#a;#s;#e;#h;#o;#c;#l;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#r.addObserver(this),R(this.#r,this.options)?this.#y():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return v(this.#r,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return v(this.#r,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#R(),this.#v(),this.#r.removeObserver(this)}setOptions(t){const e=this.options,s=this.#r;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof i(this.options.enabled,this.#r))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Q(),this.#r.setOptions(this.options),e._defaulted&&!n(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#r,observer:this});const r=this.hasListeners();r&&Q(this.#r,s,this.options,e)&&this.#y(),this.updateResult(),!r||this.#r===s&&i(this.options.enabled,this.#r)===i(e.enabled,this.#r)&&u(this.options.staleTime,this.#r)===u(e.staleTime,this.#r)||this.#m();const a=this.#I();!r||this.#r===s&&i(this.options.enabled,this.#r)===i(e.enabled,this.#r)&&a===this.#p||this.#O(a)}getOptimisticResult(t){const e=this.#t.getQueryCache().build(this.#t,t),s=this.createResult(e,t);return function(t,e){if(!n(t.getCurrentResult(),e))return!0;return!1}(this,s)&&(this.#n=s,this.#a=this.options,this.#u=this.#r.state),s}getCurrentResult(){return this.#n}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),e?.(s),"promise"!==s||this.options.experimental_prefetchInRender||"pending"!==this.#s.status||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(t,s))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#r}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#t.defaultQueryOptions(t),s=this.#t.getQueryCache().build(this.#t,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#y({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#y(t){this.#Q();let e=this.#r.fetch(this.options,t);return t?.throwOnError||(e=e.catch(a)),e}#m(){this.#R();const t=u(this.options.staleTime,this.#r);if(h||this.#n.isStale||!o(t))return;const e=c(this.#n.dataUpdatedAt,t)+1;this.#l=l.setTimeout(()=>{this.#n.isStale||this.updateResult()},e)}#I(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#r):this.options.refetchInterval)??!1}#O(t){this.#v(),this.#p=t,!h&&!1!==i(this.options.enabled,this.#r)&&o(this.#p)&&0!==this.#p&&(this.#d=l.setInterval(()=>{(this.options.refetchIntervalInBackground||d.isFocused())&&this.#y()},this.#p))}#b(){this.#m(),this.#O(this.#I())}#R(){this.#l&&(l.clearTimeout(this.#l),this.#l=void 0)}#v(){this.#d&&(l.clearInterval(this.#d),this.#d=void 0)}createResult(t,e){const s=this.#r,n=this.options,u=this.#n,a=this.#u,h=this.#a,o=t!==s?t.state:this.#i,{state:c}=t;let l,d={...c},y=!1;if(e._optimisticResults){const r=this.hasListeners(),i=!r&&R(t,e),u=r&&Q(t,s,e,n);(i||u)&&(d={...d,...p(c.data,t.options)}),"isRestoring"===e._optimisticResults&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:I}=d;l=d.data;let O=!1;if(void 0!==e.placeholderData&&void 0===l&&"pending"===I){let t;u?.isPlaceholderData&&e.placeholderData===h?.placeholderData?(t=u.data,O=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#c?.state.data,this.#c):e.placeholderData,void 0!==t&&(I="success",l=f(u?.data,t,e),y=!0)}if(e.select&&void 0!==l&&!O)if(u&&l===a?.data&&e.select===this.#h)l=this.#o;else try{this.#h=e.select,l=e.select(l),l=f(u?.data,l,e),this.#o=l,this.#e=null}catch(t){this.#e=t}this.#e&&(b=this.#e,l=this.#o,v=Date.now(),I="error");const g="fetching"===d.fetchStatus,w="pending"===I,C="error"===I,S=w&&g,T=void 0!==l,F={status:I,fetchStatus:d.fetchStatus,isPending:w,isSuccess:"success"===I,isError:C,isInitialLoading:S,isLoading:S,data:l,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>o.dataUpdateCount||d.errorUpdateCount>o.errorUpdateCount,isFetching:g,isRefetching:g&&!w,isLoadingError:C&&!T,isPaused:"paused"===d.fetchStatus,isPlaceholderData:y,isRefetchError:C&&T,isStale:m(t,e),refetch:this.refetch,promise:this.#s,isEnabled:!1!==i(e.enabled,t)};if(this.options.experimental_prefetchInRender){const e=t=>{"error"===F.status?t.reject(F.error):void 0!==F.data&&t.resolve(F.data)},i=()=>{const t=this.#s=F.promise=r();e(t)},n=this.#s;switch(n.status){case"pending":t.queryHash===s.queryHash&&e(n);break;case"fulfilled":"error"!==F.status&&F.data===n.value||i();break;case"rejected":"error"===F.status&&F.error===n.reason||i()}}return F}updateResult(){const t=this.#n,e=this.createResult(this.#r,this.options);if(this.#u=this.#r.state,this.#a=this.options,void 0!==this.#u.data&&(this.#c=this.#r),n(e,t))return;this.#n=e;this.#g({listeners:(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!this.#f.size)return!0;const r=new Set(s??this.#f);return this.options.throwOnError&&r.add("error"),Object.keys(this.#n).some(e=>{const s=e;return this.#n[s]!==t[s]&&r.has(s)})})()})}#Q(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#r)return;const e=this.#r;this.#r=t,this.#i=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#g(t){y.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#r,type:"observerResultsUpdated"})})}};function R(t,e){return function(t,e){return!1!==i(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||void 0!==t.state.data&&v(t,e,e.refetchOnMount)}function v(t,e,s){if(!1!==i(e.enabled,t)&&"static"!==u(e.staleTime,t)){const r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&m(t,e)}return!1}function Q(t,e,s,r){return(t!==e||!1===i(r.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&m(t,s)}function m(t,e){return!1!==i(e.enabled,t)&&t.isStaleByTime(u(e.staleTime,t))}Promise.withResolvers||(Promise.withResolvers=function(){let t,e;const s=new this((s,r)=>{t=s,e=r});return{resolve:t,reject:e,promise:s}});var I=class{constructor(s,r,i){this.host=s,this.optionsFn=r,this._queryClient=i,this.whenQueryClient=Promise.withResolvers(),this.whenQueryObserver=Promise.withResolvers(),this.host.addController(this),this.context=new e(this.host,{context:t,subscribe:!0,callback:t=>{t&&(this.queryClient=t)}}),this.optionsFn&&this.observeQuery(this.optionsFn)}set queryClient(t){this._queryClient=t,t&&this.whenQueryClient.resolve(t),this.host.requestUpdate()}get queryClient(){return this._queryClient}async observeQuery(t,e=!0){const s=await this.whenQueryClient.promise,r=await this.getDefaultedOptions("function"==typeof t?t():t);this.queryObserver=new b(s,r),this.result=e?this.queryObserver.getOptimisticResult(r):void 0,this.host.requestUpdate(),this.whenQueryObserver.resolve(this.queryObserver)}async hostUpdate(){if(this.optionsFn){const t=await this.whenQueryObserver.promise,e=await this.getDefaultedOptions(this.optionsFn());t.setOptions(e)}}hostConnected(){this.subscribe()}async subscribe(){const t=await this.whenQueryObserver.promise;this.unsubscribe?.(),this.unsubscribe=t.subscribe(t=>{this.result=t,this.host.requestUpdate()}),t.updateResult(),this.host.requestUpdate()}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}async getDefaultedOptions(t){return(await this.whenQueryClient.promise).defaultQueryOptions(t)}render(t){const e=this.result;return"pending"!==e?.status||"idle"!==e?.fetchStatus||e?.data?e?.isPending?t.pending?.()??null:e?.isError?t.error?.(e?.error)??null:e?.isSuccess?t.complete(e?.data):t.initial?.()??null:t.initial?.()??null}};export{I as Q};
@@ -1 +0,0 @@
1
- import{b as t}from"./api-chat-client-BiiYnU-b.js";import{t as n}from"./parseISO-Dj3qSTG8.js";function r(t,r,o){const e=function(t,r){return+n(t)-+n(r)}(t,r)/1e3;return(s=o?.roundingMethod,t=>{const n=(s?Math[s]:Math.trunc)(t);return 0===n?0:n})(e);var s}function o(n){const{startsAtIso:o,refundPolicySeconds:e,now:s=new Date}=n,c=r(t(o),s);return!(c<0)&&(null==e||c>=e)}export{o as c};
@@ -1,53 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const CreatePaymentLinkRequestSchema: z.ZodObject<{
4
- slot_id: z.ZodString;
5
- service_id: z.ZodString;
6
- /** ID of the medical specialty the booking belongs to. */
7
- specialty_id: z.ZodString;
8
- consultation_reason: z.ZodOptional<z.ZodString>;
9
- preconsultation_documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
- file_path: z.ZodString;
11
- file_name: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- file_path: string;
14
- file_name: string;
15
- }, {
16
- file_path: string;
17
- file_name: string;
18
- }>, "many">>;
19
- /** Discount coupon code applied to the booking, if any. */
20
- discount_code: z.ZodOptional<z.ZodString>;
21
- return_url: z.ZodOptional<z.ZodString>;
22
- }, "strip", z.ZodTypeAny, {
23
- service_id: string;
24
- slot_id: string;
25
- specialty_id: string;
26
- consultation_reason?: string | undefined;
27
- preconsultation_documents?: {
28
- file_path: string;
29
- file_name: string;
30
- }[] | undefined;
31
- discount_code?: string | undefined;
32
- return_url?: string | undefined;
33
- }, {
34
- service_id: string;
35
- slot_id: string;
36
- specialty_id: string;
37
- consultation_reason?: string | undefined;
38
- preconsultation_documents?: {
39
- file_path: string;
40
- file_name: string;
41
- }[] | undefined;
42
- discount_code?: string | undefined;
43
- return_url?: string | undefined;
44
- }>;
45
- type CreatePaymentLinkRequest = z.infer<typeof CreatePaymentLinkRequestSchema>;
46
- declare const PaymentProvider: {
47
- readonly Addon: "addon";
48
- readonly Stripe: "stripe";
49
- };
50
- type PaymentProvider = (typeof PaymentProvider)[keyof typeof PaymentProvider];
51
-
52
- export { PaymentProvider as P };
53
- export type { CreatePaymentLinkRequest as C };
@@ -1 +0,0 @@
1
- function t(t,e){return{action_type:"event",event_type:"access to videocall button click",patient_hash:t,id_appointment:e}}function e(t,e){return{action_type:"event",event_type:"open chat button click",patient_hash:t,id_appointment:e}}function n(t,e){return{action_type:"event",event_type:"modify appoinment button click",patient_hash:t,id_appointment:e}}function i(t,e){return{action_type:"event",event_type:"cancel appoinment button click",patient_hash:t,id_appointment:e}}function a(t,e){return{action_type:"event",event_type:"view appointment document list button click",patient_hash:t,id_appointment:e}}function p(t,e){return{action_type:"event",event_type:"repeat appointment button click",patient_hash:t,id_appointment:e}}function o(t,e){return{action_type:"event",event_type:"open chat button click",patient_hash:t,id_appointment:e}}function s(t,e){return{action_type:"event",event_type:"access to videocall button click",patient_hash:t,id_appointment:e}}function c(t,e){return{action_type:"event",event_type:"add to calendar button click",patient_hash:t,id_appointment:e}}function _(t,e){return{action_type:"pageview",event_type:"appointment success page view",patient_hash:t,id_appointment:e}}function r(t,e){return{action_type:"event",event_type:"open chat button click",patient_hash:t,id_appointment:e}}function u(t,e){return{action_type:"event",event_type:"update documentation",patient_hash:t,id_appointment:e}}function h(t,e){return{action_type:"pageview",event_type:"documentation page view",patient_hash:t,id_appointment:e}}function y(t){return{action_type:"event",event_type:"view documentation list button click",patient_hash:t}}function l(t,e){return{action_type:"event",event_type:"download document button click",patient_hash:t,id_document:e}}function v(t){return{action_type:"event",event_type:"make an appointment button click",patient_hash:t}}function d(t){return{action_type:"event",event_type:"view appointment list button click",patient_hash:t}}function f(t){return{action_type:"pageview",event_type:"home page view",patient_hash:t}}function m(t,e,n){return{action_type:"event",event_type:"find availability button click",patient_hash:t,speciality_id:e,service_id:n}}function b(t,e,n,i,a,p,o){return{action_type:"debug",event_type:"find availability result",patient_hash:t,speciality_id:e,service_id:n,first_slot_date:i,first_slot_professional_hash:a,total_professionals:p,total_slots:o}}function k(t,e,n,i,a){return{action_type:"event",event_type:"professional schedule slot button click",patient_hash:t,professional_hash:e,start_date:n,speciality_id:i,service_id:a}}function w(t,e,n,i){return{action_type:"event",event_type:"professional availability button click",patient_hash:t,professional_hash:e,speciality_id:n,service_id:i}}function g(t,e,n,i,a){return{action_type:"event",event_type:"confirm appointment button click",patient_hash:t,professional_hash:e,start_date:n,speciality_id:i,service_id:a}}function T(t){return{action_type:"pageview",event_type:"select professional step page view",patient_hash:t}}function K(t,e){return{action_type:"pageview",event_type:"not time yet pageview",patient_hash:t,id_appointment:e}}function C(t,e){return{action_type:"event",event_type:"open chat button click",patient_hash:t,id_appointment:e}}function q(t,e){return{action_type:"pageview",event_type:"waiting room pageview",patient_hash:t,id_appointment:e}}function x(t,e){return{action_type:"pageview",event_type:"videocall pageview",patient_hash:t,id_appointment:e}}class HttpTransport{endpoint;apiKey;constructor(t,e){this.endpoint=t,this.apiKey=e}send(t){fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":this.apiKey},body:JSON.stringify(t)}).catch(()=>{})}}class MediquoTelemetryClient{_apiKey=null;_transport=null;setApiKey(t){this._apiKey=t,this._buildTransport()}track(t){null!==this._transport&&this._transport.send(t)}_buildTransport(){null!==this._apiKey&&(this._transport=new HttpTransport("https://tracking.____.mediquo.com/sdk",this._apiKey))}}const A=new class AppTelemetryClient extends MediquoTelemetryClient{track(t){}};export{C as A,q as B,x as C,u as a,r as b,n as c,h as d,i as e,p as f,t as g,a as h,e as i,l as j,_ as k,c as l,o as m,s as n,v as o,f as p,m as q,y as r,g as s,A as t,k as u,d as v,w,b as x,T as y,K as z};