@mediquo/elements 0.0.0-pr-383-20261029152148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +386 -0
- package/dist/chunks/addDays-CdyO-PRI.js +1 -0
- package/dist/chunks/addSeconds-fO5orJrt.js +1 -0
- package/dist/chunks/api-chat-client-CcYgqPdC.js +1 -0
- package/dist/chunks/api-client-context-BXGqBAlO.js +1 -0
- package/dist/chunks/apple-pay-outcomes-D8hSE_oM.js +1 -0
- package/dist/chunks/appointment-details-Blo6OsLN.js +1 -0
- package/dist/chunks/appointment-details-KL9fK6vG.d.ts +23 -0
- package/dist/chunks/blob-to-base64-CUL1trde.js +1 -0
- package/dist/chunks/ca_ES-BHS8BUwp.js +1 -0
- package/dist/chunks/checkout-bridge-BFpVxNww.js +1 -0
- package/dist/chunks/chunk-5EJXDIGT-Bb4_pfDr.js +1 -0
- package/dist/chunks/chunk-6CCJWPGL-TiaqZaPV.js +1 -0
- package/dist/chunks/chunk-BUV4MGML-CkhBbfUu.js +1 -0
- package/dist/chunks/chunk-FUCSYDW7-Duj5hy8S.js +1 -0
- package/dist/chunks/chunk-NIAGR3ZC-BDlNUZa1.js +1 -0
- package/dist/chunks/chunk-RCFIJTXZ-C6Ir0-sM.js +1 -0
- package/dist/chunks/chunk-S5RWG6G2-CQJ38pW6.js +1 -0
- package/dist/chunks/chunk-Y4EKUX25-Bix9r5ry.js +1 -0
- package/dist/chunks/chunk-YTQUGGS3-DH0H7ld7.js +1 -0
- package/dist/chunks/class-map-CXGDNDhW.js +1 -0
- package/dist/chunks/consume-CovVqBjI.js +1 -0
- package/dist/chunks/context-consumer-ESdICVAb.js +1 -0
- package/dist/chunks/context-request-event-Dfydf1ub.js +1 -0
- package/dist/chunks/create-component-BB-6Gu6l.js +1 -0
- package/dist/chunks/create-context-DqP79qjF.js +1 -0
- package/dist/chunks/custom-element-CiOhPWP1-DPpsGZrV.js +1 -0
- package/dist/chunks/custom-element-D2ziPxYE.js +1 -0
- package/dist/chunks/de_DE-CveFSuUP.js +1 -0
- package/dist/chunks/default-IpEn36CA.d.ts +5 -0
- package/dist/chunks/directive-DrycXrFV.js +1 -0
- package/dist/chunks/directive-helpers-m2qHStQ1.js +1 -0
- package/dist/chunks/document.model.d-DIzMiOmd.d.ts +6 -0
- package/dist/chunks/documentation-view-CAU1T5j3.js +1 -0
- package/dist/chunks/en_US-B_aQeYjm.js +1 -0
- package/dist/chunks/ensure-context-root-DbdqwnKB.js +1 -0
- package/dist/chunks/external-JLtsAfi6.js +1 -0
- package/dist/chunks/format-tMwfQwDf.js +1 -0
- package/dist/chunks/get-appointment-query-DuHrjd8L.js +1 -0
- package/dist/chunks/get-organization-setup-query-De7eM6V3.js +1 -0
- package/dist/chunks/get-patient-profile-query-D9btgcxl.js +1 -0
- package/dist/chunks/get-schedule-services-query-Io2aQ_7G.js +1 -0
- package/dist/chunks/if-defined-DgEoHV04.js +1 -0
- package/dist/chunks/index-BO2YvuaV.d.ts +54 -0
- package/dist/chunks/index-BeyZqqE9.d.ts +31 -0
- package/dist/chunks/index-BkDanNQg.js +1 -0
- package/dist/chunks/index-BlRNICIU.js +1 -0
- package/dist/chunks/index-CSn2VnHN.js +1 -0
- package/dist/chunks/index-Cp5_a_ei.js +329 -0
- package/dist/chunks/index-Cu-DpEFM.js +1 -0
- package/dist/chunks/index-DTEtqjQF.d.ts +15 -0
- package/dist/chunks/index-DoKSSg_l.js +1 -0
- package/dist/chunks/index-DwlJg2um.d.ts +187 -0
- package/dist/chunks/index-IcMN_Zy_.js +1 -0
- package/dist/chunks/index-Nf3nZ9O3.d.ts +16 -0
- package/dist/chunks/index-_XIb963s.js +1 -0
- package/dist/chunks/index-mf2T4jWX.js +1 -0
- package/dist/chunks/index-ov4Ad6vl.d.ts +55 -0
- package/dist/chunks/index-xi0bxKot.js +341 -0
- package/dist/chunks/index.d-k8r5vUZn.d.ts +3353 -0
- package/dist/chunks/index.d-yyTprZdj.d.ts +84 -0
- package/dist/chunks/isBefore-DBi1CiNR.js +1 -0
- package/dist/chunks/keyed-c1C5T7e_.js +1 -0
- package/dist/chunks/lit-element-B5-nYi7k.js +1 -0
- package/dist/chunks/localized-decorator-BlOuLhym.js +1 -0
- package/dist/chunks/login-token-task-KxmMdqVo.js +1 -0
- package/dist/chunks/mq-chat-room-CwN_aR5x.js +1 -0
- package/dist/chunks/mq-chat-room-D2O_3Zur.d.ts +292 -0
- package/dist/chunks/mq-layout-D8Mak16a.d.ts +21 -0
- package/dist/chunks/mq-layout-qMP-lpxw.js +1 -0
- package/dist/chunks/mq-next-appointments-CZ1eKA8t.js +1 -0
- package/dist/chunks/mq-professional-presence-sync-Cw8kVtpC.d.ts +22 -0
- package/dist/chunks/mq-recent-documents-C2_iUYKT.js +1 -0
- package/dist/chunks/mq-schedule-9rEQK6SJ.js +1 -0
- package/dist/chunks/mq-support-chat-DWz3EZ9j.js +1 -0
- package/dist/chunks/mq-unread-count-sync-BviIsMJy.d.ts +22 -0
- package/dist/chunks/mq-videocall-CcRWCujw.js +870 -0
- package/dist/chunks/mutation-controller-CR2qcqhH.js +1 -0
- package/dist/chunks/next-appointment-card-DMCNzLUc.js +1 -0
- package/dist/chunks/next-appointment-card-Dhu45fRq.d.ts +123 -0
- package/dist/chunks/parseISO-CEksKisk.js +1 -0
- package/dist/chunks/price-DU3YLTpk.js +1 -0
- package/dist/chunks/price.d-CwLosdAN.d.ts +10 -0
- package/dist/chunks/professional-overview-QVHl_ITk.d.ts +26 -0
- package/dist/chunks/professional-overview-yVZgXRCU.js +1 -0
- package/dist/chunks/property-C1CmBSnw.js +1 -0
- package/dist/chunks/provide-BwI4DDGF.js +1 -0
- package/dist/chunks/pt_PT-D1CvMEpH.js +1 -0
- package/dist/chunks/query-CeeutdfT.js +1 -0
- package/dist/chunks/query-controller-B1byDHlF.js +1 -0
- package/dist/chunks/refund-cancel-policy-DoMzcLlL.js +1 -0
- package/dist/chunks/runtime-Bg1WXVCx.js +1 -0
- package/dist/chunks/schemas.d-b6_AekBb.d.ts +145 -0
- package/dist/chunks/state-Br45Av8Z.js +1 -0
- package/dist/chunks/style-map-MoXKugLp.js +1 -0
- package/dist/chunks/task-BYPV1iNw.js +1 -0
- package/dist/chunks/telemetry-client-DA2_SZBC.js +1 -0
- package/dist/env.d.ts +21 -0
- package/dist/env.js +1 -0
- package/dist/events.d.ts +134 -0
- package/dist/events.js +1 -0
- package/dist/i18n.d.ts +11 -0
- package/dist/i18n.js +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/mq-api-client-provider.d.ts +39 -0
- package/dist/mq-api-client-provider.js +1 -0
- package/dist/mq-apple-pay-checkout.d.ts +94 -0
- package/dist/mq-apple-pay-checkout.js +1 -0
- package/dist/mq-appointment-checkout.d.ts +65 -0
- package/dist/mq-appointment-checkout.js +1 -0
- package/dist/mq-appointment-documentation.d.ts +59 -0
- package/dist/mq-appointment-documentation.js +1 -0
- package/dist/mq-chat-room.d.ts +23 -0
- package/dist/mq-chat-room.js +1 -0
- package/dist/mq-checkout.d.ts +111 -0
- package/dist/mq-checkout.js +1 -0
- package/dist/mq-dashboard.d.ts +96 -0
- package/dist/mq-dashboard.js +1 -0
- package/dist/mq-documents.d.ts +96 -0
- package/dist/mq-documents.js +1 -0
- package/dist/mq-google-pay-checkout.d.ts +129 -0
- package/dist/mq-google-pay-checkout.js +1 -0
- package/dist/mq-immediate-videocall-checkout.d.ts +51 -0
- package/dist/mq-immediate-videocall-checkout.js +1 -0
- package/dist/mq-my-appointments.d.ts +172 -0
- package/dist/mq-my-appointments.js +1 -0
- package/dist/mq-next-appointments.d.ts +59 -0
- package/dist/mq-next-appointments.js +1 -0
- package/dist/mq-payment-poller.d.ts +71 -0
- package/dist/mq-payment-poller.js +1 -0
- package/dist/mq-professional-presence-sync.d.ts +32 -0
- package/dist/mq-professional-presence-sync.js +1 -0
- package/dist/mq-query-client-provider.d.ts +20 -0
- package/dist/mq-query-client-provider.js +1 -0
- package/dist/mq-recent-documents.d.ts +49 -0
- package/dist/mq-recent-documents.js +1 -0
- package/dist/mq-schedule-success.d.ts +100 -0
- package/dist/mq-schedule-success.js +4 -0
- package/dist/mq-schedule.d.ts +812 -0
- package/dist/mq-schedule.js +1 -0
- package/dist/mq-session-provider.d.ts +28 -0
- package/dist/mq-session-provider.js +1 -0
- package/dist/mq-socket-provider.d.ts +103 -0
- package/dist/mq-socket-provider.js +1 -0
- package/dist/mq-support-chat.d.ts +97 -0
- package/dist/mq-support-chat.js +1 -0
- package/dist/mq-terms-and-conditions.d.ts +27 -0
- package/dist/mq-terms-and-conditions.js +1 -0
- package/dist/mq-theme-provider.d.ts +33 -0
- package/dist/mq-theme-provider.js +1 -0
- package/dist/mq-unread-count-sync.d.ts +24 -0
- package/dist/mq-unread-count-sync.js +1 -0
- package/dist/mq-videocall.d.ts +698 -0
- package/dist/mq-videocall.js +1 -0
- package/dist/react/mq-api-client-provider.d.ts +26 -0
- package/dist/react/mq-api-client-provider.js +2 -0
- package/dist/react/mq-apple-pay-checkout.d.ts +35 -0
- package/dist/react/mq-apple-pay-checkout.js +2 -0
- package/dist/react/mq-appointment-checkout.d.ts +39 -0
- package/dist/react/mq-appointment-checkout.js +2 -0
- package/dist/react/mq-appointment-documentation.d.ts +43 -0
- package/dist/react/mq-appointment-documentation.js +2 -0
- package/dist/react/mq-chat-room.d.ts +47 -0
- package/dist/react/mq-chat-room.js +2 -0
- package/dist/react/mq-checkout.d.ts +38 -0
- package/dist/react/mq-checkout.js +2 -0
- package/dist/react/mq-dashboard.d.ts +62 -0
- package/dist/react/mq-dashboard.js +2 -0
- package/dist/react/mq-documents-page.d.ts +35 -0
- package/dist/react/mq-documents-page.js +2 -0
- package/dist/react/mq-documents.d.ts +32 -0
- package/dist/react/mq-documents.js +2 -0
- package/dist/react/mq-google-pay-checkout.d.ts +40 -0
- package/dist/react/mq-google-pay-checkout.js +2 -0
- package/dist/react/mq-immediate-videocall-checkout.d.ts +31 -0
- package/dist/react/mq-immediate-videocall-checkout.js +2 -0
- package/dist/react/mq-my-appointments.d.ts +51 -0
- package/dist/react/mq-my-appointments.js +2 -0
- package/dist/react/mq-next-appointments.d.ts +43 -0
- package/dist/react/mq-next-appointments.js +2 -0
- package/dist/react/mq-payment-poller.d.ts +37 -0
- package/dist/react/mq-payment-poller.js +2 -0
- package/dist/react/mq-professional-presence-sync.d.ts +13 -0
- package/dist/react/mq-professional-presence-sync.js +2 -0
- package/dist/react/mq-query-client-provider.d.ts +24 -0
- package/dist/react/mq-query-client-provider.js +2 -0
- package/dist/react/mq-recent-documents.d.ts +32 -0
- package/dist/react/mq-recent-documents.js +2 -0
- package/dist/react/mq-schedule-success.d.ts +54 -0
- package/dist/react/mq-schedule-success.js +2 -0
- package/dist/react/mq-schedule.d.ts +70 -0
- package/dist/react/mq-schedule.js +2 -0
- package/dist/react/mq-session-provider.d.ts +19 -0
- package/dist/react/mq-session-provider.js +2 -0
- package/dist/react/mq-socket-provider.d.ts +20 -0
- package/dist/react/mq-socket-provider.js +2 -0
- package/dist/react/mq-support-chat.d.ts +50 -0
- package/dist/react/mq-support-chat.js +2 -0
- package/dist/react/mq-terms-and-conditions.d.ts +34 -0
- package/dist/react/mq-terms-and-conditions.js +2 -0
- package/dist/react/mq-theme-provider.d.ts +19 -0
- package/dist/react/mq-theme-provider.js +2 -0
- package/dist/react/mq-toast-container.d.ts +17 -0
- package/dist/react/mq-toast-container.js +2 -0
- package/dist/react/mq-unread-count-sync.d.ts +13 -0
- package/dist/react/mq-unread-count-sync.js +2 -0
- package/dist/react/mq-videocall.d.ts +76 -0
- package/dist/react/mq-videocall.js +2 -0
- package/dist/theme.d.ts +218 -0
- package/dist/theme.js +11 -0
- package/dist/toast.d.ts +4 -0
- package/dist/toast.js +1 -0
- package/dist/ui/back-link.d.ts +24 -0
- package/dist/ui/back-link.js +1 -0
- package/dist/ui/icons/alert-circle-icon.d.ts +6 -0
- package/dist/ui/icons/alert-circle-icon.js +1 -0
- package/dist/ui/icons/annotation-question-icon.d.ts +6 -0
- package/dist/ui/icons/annotation-question-icon.js +1 -0
- package/dist/ui/icons/arrow-narrow-left-icon.d.ts +6 -0
- package/dist/ui/icons/arrow-narrow-left-icon.js +1 -0
- package/dist/ui/icons/arrow-right-icon.d.ts +6 -0
- package/dist/ui/icons/arrow-right-icon.js +1 -0
- package/dist/ui/icons/briefcase-icon.d.ts +6 -0
- package/dist/ui/icons/briefcase-icon.js +1 -0
- package/dist/ui/icons/calendar-icon.d.ts +6 -0
- package/dist/ui/icons/calendar-icon.js +1 -0
- package/dist/ui/icons/chat-bubble-icon.d.ts +6 -0
- package/dist/ui/icons/chat-bubble-icon.js +1 -0
- package/dist/ui/icons/check-circle-icon.d.ts +6 -0
- package/dist/ui/icons/check-circle-icon.js +1 -0
- package/dist/ui/icons/check-double-icon.d.ts +6 -0
- package/dist/ui/icons/check-double-icon.js +1 -0
- package/dist/ui/icons/check-icon.d.ts +6 -0
- package/dist/ui/icons/check-icon.js +1 -0
- package/dist/ui/icons/chevron-down-icon.d.ts +6 -0
- package/dist/ui/icons/chevron-down-icon.js +1 -0
- package/dist/ui/icons/chevron-left-icon.d.ts +6 -0
- package/dist/ui/icons/chevron-left-icon.js +1 -0
- package/dist/ui/icons/chevron-right-icon.d.ts +6 -0
- package/dist/ui/icons/chevron-right-icon.js +1 -0
- package/dist/ui/icons/clock-icon.d.ts +6 -0
- package/dist/ui/icons/clock-icon.js +1 -0
- package/dist/ui/icons/dots-horizontal-icon.d.ts +6 -0
- package/dist/ui/icons/dots-horizontal-icon.js +1 -0
- package/dist/ui/icons/download-02-icon.d.ts +6 -0
- package/dist/ui/icons/download-02-icon.js +1 -0
- package/dist/ui/icons/download-icon.d.ts +6 -0
- package/dist/ui/icons/download-icon.js +1 -0
- package/dist/ui/icons/file-icon.d.ts +6 -0
- package/dist/ui/icons/file-icon.js +1 -0
- package/dist/ui/icons/heartbeat-icon.d.ts +5 -0
- package/dist/ui/icons/heartbeat-icon.js +1 -0
- package/dist/ui/icons/help-circle-icon.d.ts +6 -0
- package/dist/ui/icons/help-circle-icon.js +1 -0
- package/dist/ui/icons/info-circle-outine-icon.d.ts +6 -0
- package/dist/ui/icons/info-circle-outine-icon.js +1 -0
- package/dist/ui/icons/message-bubble-icon.d.ts +6 -0
- package/dist/ui/icons/message-bubble-icon.js +1 -0
- package/dist/ui/icons/message-square-icon.d.ts +6 -0
- package/dist/ui/icons/message-square-icon.js +1 -0
- package/dist/ui/icons/mic-icon.d.ts +6 -0
- package/dist/ui/icons/mic-icon.js +1 -0
- package/dist/ui/icons/mic-off-icon.d.ts +6 -0
- package/dist/ui/icons/mic-off-icon.js +1 -0
- package/dist/ui/icons/phone-icon.d.ts +6 -0
- package/dist/ui/icons/phone-icon.js +1 -0
- package/dist/ui/icons/refresh-ccw-icon.d.ts +7 -0
- package/dist/ui/icons/refresh-ccw-icon.js +1 -0
- package/dist/ui/icons/refresh-icon.d.ts +6 -0
- package/dist/ui/icons/refresh-icon.js +1 -0
- package/dist/ui/icons/settings-icon.d.ts +6 -0
- package/dist/ui/icons/settings-icon.js +1 -0
- package/dist/ui/icons/spinner-icon.d.ts +6 -0
- package/dist/ui/icons/spinner-icon.js +1 -0
- package/dist/ui/icons/tag-icon.d.ts +6 -0
- package/dist/ui/icons/tag-icon.js +1 -0
- package/dist/ui/icons/time-left-icon.d.ts +5 -0
- package/dist/ui/icons/time-left-icon.js +1 -0
- package/dist/ui/icons/types.d.ts +10 -0
- package/dist/ui/icons/types.js +1 -0
- package/dist/ui/icons/upload-icon.d.ts +6 -0
- package/dist/ui/icons/upload-icon.js +1 -0
- package/dist/ui/icons/video-icon.d.ts +6 -0
- package/dist/ui/icons/video-icon.js +1 -0
- package/dist/ui/icons/video-off-icon.d.ts +6 -0
- package/dist/ui/icons/video-off-icon.js +1 -0
- package/dist/ui/icons/volume-icon.d.ts +6 -0
- package/dist/ui/icons/volume-icon.js +1 -0
- package/dist/ui/icons/x-icon.d.ts +6 -0
- package/dist/ui/icons/x-icon.js +1 -0
- package/dist/ui/mq-avatar.d.ts +37 -0
- package/dist/ui/mq-avatar.js +1 -0
- package/dist/ui/mq-badge.d.ts +18 -0
- package/dist/ui/mq-badge.js +4 -0
- package/dist/ui/mq-button.d.ts +37 -0
- package/dist/ui/mq-button.js +1 -0
- package/dist/ui/mq-calendar.d.ts +68 -0
- package/dist/ui/mq-calendar.js +1 -0
- package/dist/ui/mq-callout.d.ts +23 -0
- package/dist/ui/mq-callout.js +1 -0
- package/dist/ui/mq-card.d.ts +18 -0
- package/dist/ui/mq-card.js +1 -0
- package/dist/ui/mq-checkbox.d.ts +41 -0
- package/dist/ui/mq-checkbox.js +1 -0
- package/dist/ui/mq-clamped-text.d.ts +46 -0
- package/dist/ui/mq-clamped-text.js +1 -0
- package/dist/ui/mq-dialog.d.ts +98 -0
- package/dist/ui/mq-dialog.js +1 -0
- package/dist/ui/mq-floating-bubble.d.ts +42 -0
- package/dist/ui/mq-floating-bubble.js +1 -0
- package/dist/ui/mq-input.d.ts +42 -0
- package/dist/ui/mq-input.js +1 -0
- package/dist/ui/mq-page-title.d.ts +31 -0
- package/dist/ui/mq-page-title.js +1 -0
- package/dist/ui/mq-rating.d.ts +30 -0
- package/dist/ui/mq-rating.js +1 -0
- package/dist/ui/mq-select.d.ts +83 -0
- package/dist/ui/mq-select.js +1 -0
- package/dist/ui/mq-skeleton.d.ts +18 -0
- package/dist/ui/mq-skeleton.js +1 -0
- package/dist/ui/mq-tabs.d.ts +76 -0
- package/dist/ui/mq-tabs.js +106 -0
- package/dist/ui/mq-text-button.d.ts +39 -0
- package/dist/ui/mq-text-button.js +1 -0
- package/dist/ui/mq-textarea.d.ts +38 -0
- package/dist/ui/mq-textarea.js +1 -0
- package/dist/ui/mq-time-slot-picker.d.ts +85 -0
- package/dist/ui/mq-time-slot-picker.js +1 -0
- package/dist/ui/mq-toast.d.ts +20 -0
- package/dist/ui/mq-toast.js +1 -0
- package/dist/ui/mq-unread-badge.d.ts +15 -0
- package/dist/ui/mq-unread-badge.js +1 -0
- package/package.json +247 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=6e4;export{a as D};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,...t){return[e.getApiKey()??"_",...t]}export{e as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s}from"./chunk-6CCJWPGL-TiaqZaPV.js";function e(e,o,r){return{queryKey:s(e,"professionals",o.hash),queryFn:()=>e.professionals.getProfessional(o),staleTime:0,...r}}export{e as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=class _Logger{constructor(o=_Logger.prefix){this.prefix=o}static{this.prefix="[@mediquo/web-components]"}#o(o,...r){console[o](this.prefix,...r)}debug(...o){this.#o("debug",...o)}info(...o){this.#o("info",...o)}warn(...o){this.#o("warn",...o)}error(...o){this.#o("error",...o)}},r=new o;export{o as L,r as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,i as e,f as n,p as o,s as i}from"./parseISO-CEksKisk.js";const r={},s={};function a(t,e){try{const n=(r[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(e).split("GMT")[1];return n in s?s[n]:l(n,n.split(":"))}catch{if(t in s)return s[t];const e=t?.match(c);return e?l(t,e.slice(1)):NaN}}const c=/([+-]\d\d):?(\d\d)?/;function l(t,e){const n=+(e[0]||0),o=+(e[1]||0),i=+(e[2]||0)/60;return s[t]=60*n+o>0?60*n+o+i:60*n-o-i}class TZDateMini extends Date{constructor(...t){super(),t.length>1&&"string"==typeof t[t.length-1]&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(a(this.timeZone,this))?this.setTime(NaN):t.length?"number"==typeof t[0]&&(1===t.length||2===t.length&&"number"!=typeof t[1])?this.setTime(t[0]):"string"==typeof t[0]?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),p(this,t)):this.setTime(Date.now())}static tz(t,...e){return e.length?new TZDateMini(...e,t):new TZDateMini(Date.now(),t)}withTimeZone(t){return new TZDateMini(+this,t)}getTimezoneOffset(){const t=-a(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),m(this),+this}[Symbol.for("constructDateFrom")](t){return new TZDateMini(+new Date(t),this.timeZone)}}const u=/^(get|set)(?!UTC)/;function m(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(60*-a(t.timeZone,t)))}function p(t,e){const n=Array.isArray(e)?(o=e,Date.UTC(o[0],o.length>1?o[1]:0,o.length>2?o[2]:1,...o.slice(3))):+t.internal;var o;const i=a(t.timeZone,t),r=i>0?Math.floor(i):Math.ceil(i),s=new Date(+t);s.setUTCHours(s.getUTCHours()-1);const c=-new Date(+t).getTimezoneOffset(),l=-new Date(+s).getTimezoneOffset();let u=c;if(c-l&&c!==r){if(Date.prototype.getHours.apply(t)!==(Array.isArray(e)?e[3]||0:t.internal.getUTCHours())){const e=new Date(+t),n=c-r;n&&e.setUTCMinutes(e.getUTCMinutes()+n);const o=a(t.timeZone,e);(o>0?Math.floor(o):Math.ceil(o))===r&&(u=l)}}const p=u-r;p&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+p);const T=new Date(+t);T.setUTCSeconds(0);const D=c>0?T.getSeconds():(T.getSeconds()-60)%60,f=Math.round(-60*a(t.timeZone,t))%60;(f||D)&&Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+f+D);const g=a(t.timeZone,t),Z=g>0?Math.floor(g):Math.ceil(g),y=Z!==r,M=-new Date(+t).getTimezoneOffset()-Z-p,S=Z-r,C=n-60*Z*1e3,U=S>0&&h(t)-n===60*S*1e3&&h(t,C)!==n;if(y&&M&&!U){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+M);const e=a(t.timeZone,t),n=Z-(e>0?Math.floor(e):Math.ceil(e));n&&M<0&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+n)}m(t);const d=(e?n:n+1e3*f)-+t.internal;d&&Math.abs(d)<18e5&&(Date.prototype.setTime.call(t,+t+d),m(t))}function h(t,e){const n=new Date(e??+t);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(60*-a(t.timeZone,n))),+n}Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!u.test(t))return;const e=t.replace(u,"$1UTC");TZDateMini.prototype[e]&&(t.startsWith("get")?TZDateMini.prototype[t]=function(){return this.internal[e]()}:(TZDateMini.prototype[t]=function(){var t;return Date.prototype[e].apply(this.internal,arguments),t=this,Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),p(t),+this},TZDateMini.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),m(this),+this}))});class TZDate extends TZDateMini{static tz(t,...e){return e.length?new TZDate(...e,t):new TZDate(Date.now(),t)}toISOString(){const[t,e,n]=this.tzComponents(),o=`${t}${e}:${n}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,e,n,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${n} ${e} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[e,n,o]=this.tzComponents();return`${t} GMT${e}${n}${o} (${function(t,e,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:n}).format(e).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(t,e){return Date.prototype.toLocaleString.call(this,t,{...e,timeZone:e?.timeZone||this.timeZone})}toLocaleDateString(t,e){return Date.prototype.toLocaleDateString.call(this,t,{...e,timeZone:e?.timeZone||this.timeZone})}toLocaleTimeString(t,e){return Date.prototype.toLocaleTimeString.call(this,t,{...e,timeZone:e?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset();return[t>0?"-":"+",String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),String(Math.abs(t)%60).padStart(2,"0")]}withTimeZone(t){return new TZDate(+this,t)}[Symbol.for("constructDateFrom")](t){return new TZDate(+new Date(t),this.timeZone)}}const T=t=>e=>TZDate.tz(t,+new Date(e));function D(t){return o(`${t.replace(" ","T")}Z`)}function f(t){return/(?:Z|[+-]\d{2}:?\d{2})$/.test(t)?o(t):D(t)}function g(t){return n(t,"yyyy-MM-dd HH:mm:ss",{in:T("UTC")})}function Z(t){if(t)try{return new Intl.DateTimeFormat("en",{timeZone:t}).resolvedOptions().timeZone}catch{return}}function y(t,e){try{const n=new Intl.DateTimeFormat("en",{timeZone:t,timeZoneName:"shortOffset"}).formatToParts(e);return n.find(t=>"timeZoneName"===t.type)?.value??""}catch{return""}}function M(...t){for(const e of t){const t=Z(e??void 0);if(t)return t}return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}function S(t,o){return e(t)?n(t,"yyyy-MM-dd",{in:T(o)}):""}function C(t,e){return i(o(t,{in:T(e)}))}function U(e,n){return function(e,n){const o=t(e,n?.in);return o.setHours(23,59,59,999),o}(o(e,{in:T(n)}))}export{y as a,D as b,S as c,g as d,U as e,C as f,Z as g,f as p,M as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as t}from"./create-context-DqP79qjF.js";var r=t(Symbol.for("tanstack-lit-query"));export{r as Q};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as o}from"./create-context-DqP79qjF.js";var e=o(Symbol("login-token"));export{e as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as e}from"./external-JLtsAfi6.js";import{s as r}from"./chunk-6CCJWPGL-TiaqZaPV.js";var s=e.enum(["ordinary","system"]).enum;function n(e,s,n){return{queryKey:r(e,"unread-messages",s),queryFn:()=>e.rooms.getUnreadMessagesCount(s),staleTime:0,...n}}export{s as S,n as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./create-context-DqP79qjF.js";import{z as t}from"./external-JLtsAfi6.js";var n=e(Symbol.for("mq-socket")),a=t.enum(["message","messageStatus","room_accepted","room_rejected","call_requested","call_rejected","call_picked_up","appointment_created","appointment_cancelled","appointment_accepted","appointment_finished","appointment_expired","appointment_owed","appointment_paid","appointment_unpaid","appointment_uncharged","appointment_rescheduled","absence_cancelled","absence_created","appointment_reporting","consultation_assigned","consultation_finished","consultation_skipped","call_joined","message_deleted","stop_typing","typing","joinRoom"]).enum,o=class _EventReceivedEvent extends Event{constructor(e,t){super(_EventReceivedEvent.eventName,{bubbles:!0,composed:!0}),this.name=e,this.data=t}static{this.eventName="mq-event-received"}};export{a as E,n as S,o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{T as t}from"./lit-element-B5-nYi7k.js";import{e as s,i as e,t as i}from"./directive-DrycXrFV.js";const n=s(class extends e{constructor(t){if(super(t),t.type!==i.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(s=>t[s]).join(" ")+" "}update(s,[e]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const i=s.element.classList;for(const t of this.st)t in e||(i.remove(t),this.st.delete(t));for(const t in e){const s=!!e[t];s===this.st.has(t)||this.nt?.has(t)||(s?(i.add(t),this.st.add(t)):(i.remove(t),this.st.delete(t)))}return t}});export{n as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as t}from"./context-consumer-ESdICVAb.js";function c({context:c,subscribe:e}){return(n,i)=>{"object"==typeof i?i.addInitializer(function(){new t(this,{context:c,callback:t=>{n.set.call(this,t)},subscribe:e})}):n.constructor.addInitializer(n=>{new t(n,{context:c,callback:t=>{n[i]=t},subscribe:e})})}}export{c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as t}from"./context-request-event-Dfydf1ub.js";class s{constructor(t,i,e,h){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,i)=>{this.unsubscribe&&(this.unsubscribe!==i&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,i)),this.unsubscribe=i},this.host=t,void 0!==i.context){const t=i;this.context=t.context,this.callback=t.callback,this.subscribe=t.subscribe??!1}else this.context=i,this.callback=e,this.subscribe=h??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new t(this.context,this.host,this.t,this.subscribe))}}export{s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t=class s extends Event{constructor(t,e,c,o){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=c,this.subscribe=o??!1}};export{t as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=new Set(["children","localName","ref","style","className"]),t=new WeakMap,n=(e,n,r,s,a)=>{const o=a?.[n];void 0===o?(e[n]=r,null==r&&n in HTMLElement.prototype&&e.removeAttribute(n)):r!==s&&((e,n,r)=>{let s=t.get(e);void 0===s&&t.set(e,s=new Map);let a=s.get(n);void 0!==r?void 0===a?(s.set(n,a={handleEvent:r}),e.addEventListener(n,a)):a.handleEvent=r:void 0!==a&&(s.delete(n),e.removeEventListener(n,a))})(e,o,r)},r=({react:t,tagName:r,elementClass:s,events:a,displayName:o})=>{const c=new Set(Object.keys(a??{})),l=t.forwardRef((o,l)=>{const u=t.useRef(new Map),i=t.useRef(null),d={},f={};for(const[t,n]of Object.entries(o))e.has(t)?d["className"===t?"class":t]=n:c.has(t)||t in s.prototype?f[t]=n:d[t]=n;return t.useLayoutEffect(()=>{if(null===i.current)return;const e=new Map;for(const t in f)n(i.current,t,o[t],u.current.get(t),a),u.current.delete(t),e.set(t,o[t]);for(const[e,t]of u.current)n(i.current,e,void 0,t,a);u.current=e}),t.useLayoutEffect(()=>{i.current?.removeAttribute("defer-hydration")},[]),d.suppressHydrationWarning=!0,t.createElement(r,{...d,ref:t.useCallback(e=>{i.current=e,"function"==typeof l?l(e):null!==l&&(l.current=e)},[l])})});return l.displayName=o??s.name,l};export{r as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(n){return n}export{n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t,r,n){for(var o,s=arguments.length,i=s<3?t:n,d=e.length-1;d>=0;d--)(o=e[d])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i}"function"==typeof SuppressedError&&SuppressedError;const t=e=>(t,r)=>{const n=()=>{void 0===customElements.get(e)&&customElements.define(e,t)};void 0!==r?r.addInitializer(n):n()};export{e,t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t,r,n){for(var o,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n,i=e.length-1;i>=0;i--)(o=e[i])&&(c=(s<3?o(c):s>3?o(t,r,c):o(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c}"function"==typeof SuppressedError&&SuppressedError;const t=e=>(t,r)=>{const n=()=>{void 0===customElements.get(e)&&customElements.define(e,t)};void 0!==r?r.addInitializer(n):n()};export{e as _,t as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e}from"./runtime-Bg1WXVCx.js";const n={s0043fc30b467bc43:"Details ausblenden",s00c8bf60a179e056:"Google Pay ist nicht verfügbar. Versuche es mit Karte oder einer anderen Zahlungsmethode.",s035706a468d0c40b:"Freitag",s046059ac8883c8b0:"Kamera ausschalten",s0520ac0a7da193d4:"Wir konnten den Code nicht überprüfen. Bitte versuchen Sie es erneut.",s071bd6bbf6c08f34:"Laden",s07869833a9612f03:"Stabil",s08404262212123ef:"Wie kann ich dir helfen?",s087be48b9567efd7:"Erlauben Sie den Zugriff auf Kamera und Mikrofon",s08fcf168ec2f029e:"Schnellaktionen",s08fe5307b5987c42:"De",s08fe5907b5988674:"Do",s09165307b5ad0e23:"Mi",s09165b07b5ad1bbb:"Ma",s09195307b5af43fa:"Lu",s092e4f07b5c19938:"Ju",s093b3307b5cbf400:"Vi",s09462f07b5d5f4b9:"Sa",s09528d5c26b62213:"Donnerstag",s09d1e631a1f92b01:"Gute Verbindung",s09ebc782afbb9b76:"Prüfen Sie, ob es nicht stummgeschaltet ist, oder wählen Sie ein anderes Mikrofon aus der Liste. Sie können trotzdem teilnehmen.",s0aaec824f7c6b501:"Nachricht senden",s0b0955208f737a86:"Die Datei überschreitet die maximale Größe",s0c11fb8db8684fb4:"Kamera wechseln",s0cea517c81fb62ca:"Entschuldigen Sie die Wartezeit.",s0d65261c859a6e30:"Verbindung wird wiederhergestellt…",s0dd4fef0057d2e29:"Wir konnten die Verbindung zu Ihrem Arzt nicht wiederherstellen. Drücken Sie «Erneut beitreten», um es noch einmal zu versuchen.",s0eb69642cbc19745:"Dieser Termin liegt bereits in der Vergangenheit und kann daher nicht mehr geändert werden.",s0fc7c4bfd185800d:"Hier werden Ihre Rezepte und Arztberichte angezeigt.",s0fcbdef9dc977231:"Ein Fehler ist beim Laden der Seite aufgetreten. Bitte versuchen Sie es erneut oder kontaktieren Sie den Support.",s11605fc03de64e14:"Schreiben Sie hier...",s12f171594a5379d2:"Sind Sie sicher, dass Sie diese Behandlung stornieren möchten?",s132e84f499a23985:"Keine Zeitpläne verfügbar",s13317a76a9ed776e:"Wiederholen",s142eba34d93fe59e:"Beschreibung",s1513f3687bfcac96:"Sonntag",s15a4cb398cd28ceb:"Seite neu laden",s175c25f0565c3a51:"Mikrofon verbunden",s18b93279814a6bad:"Hilfe",s1a0efa6ac51e8a85:"Vorherige Seite",s1a874fc38d0fcef0:"Ärztliche Verordnung",s1d318e9d0ccba86b:"Chat",s1ee6d7e6d04932a4:"Die E-Mail ist nicht gültig",s1fe8bb7f6ae07f9b:"Sie haben keine Behandlungen in Ihrer Chronik",s219b833c5ca095b3:"Hier sehen Sie alle Behandlungen, auf die Sie zugegriffen haben. Sie können auf die Dokumente jeder Behandlung zugreifen und eine Behandlung neu planen, wenn dies erforderlich ist.",s220fc50e0599dca2:"Kamera nicht verfügbar",s22cf91a84fba4c4e:"Wenn Sie eine Behandlung planen, erscheint hier, um Sie zu konsultieren, zu ändern oder zu stornieren.",s238c3ed6d3ecc66a:"Schließen",s241e503fa38a036d:"Laden Sie die Seite neu",s24b59d5a129dc0d0:"Der Termin konnte nicht storniert werden. Bitte versuche es erneut.",s24bf036e7dd55fa9:"Suchen Sie sich einen Ort mit besserem Empfang oder wechseln Sie das Netz (WLAN oder mobile Daten).",s255bf4de23c83482:"Bedingungen der Buchung:",s256189bafbcd2e34:"Die Telefonnummer ist nicht gültig",s25e6416d9616df41:"Ihre Verbindung ist langsam",s2658c03579c79e3c:"Hilfe ansehen",s27e462e9f48eb3a6:"Dokumentation",s28d1b798877c823d:"Probieren Sie Folgendes",s2a17cbd882c2684e:"Das Bild kann ruckeln. Suchen Sie sich einen Ort mit besserem Empfang oder wechseln Sie das Netz. Wenn es schlechter wird, machen wir nur mit Audio weiter.",s2a1d212b3cb5c1a1:"Sie können mit Ihrem Experten bis 48 Stunden nach der Behandlung chatten",s2a5a722447fb228e:"Überprüfen Sie Kamera und Mikrofon",s2aa2c19d07591438:"Sie erhalten 15 Minuten vor der Behandlung eine Erinnerung",s2aab27b26a86469f:"Behandlungsmotive",s2b9fde9a5739d2a0:"Vorname",s2bb20b2162a18938:"Warum benötigen Sie die Behandlung?",s2d6183fa992e10e9:"Dieser Experte hat keine verfügbaren Termine",s2ebd846b5a30f9d1:"Es tut uns leid, wir konnten Ihre Behandlung nicht wiederholen. Bitte wenden Sie sich an den Support.",s30c9095a2e07d929:"Wartezimmer",s31219c9bdeb7bc3e:"Weiter",s337e34cd11150eb6:"Meine Behandlungen anzeigen",s346d488070fe4cc8:"Behandlung anfragen",s361c5842f8d8c1cf:"Eine andere App verwendet Ihre Kamera",s36a85bd42a6e86bd:"Verbunden",s37e0eb5bb2794d92:"Erneut beitreten",s3944638e633d719a:"Konsultation",s3b77baf6a4864231:"Unbekannter Fehler",s3dc6584e403858df:"Wir konnten Ihre Dokumente nicht laden",s3f55bc3bfec41a5d:"Datei anhängen",s3fed4a1c3fce3567:"Ihre Verbindung",s4177fe7f5d70fd33:"Zurück",s41826ac201c3cd85:"Der Chat mit Support konnte nicht geöffnet werden",s428cefc51e9bbbef:"Geräte",s4364d4be7641e15f:"Termin bestätigen",s43814dc30be6801e:"Während Sie warten, können Sie ihm im Chat den Grund Ihrer Konsultation mitteilen.",s43e5edcc8801e9a4:"Professioneller Profil",s47afb8f6895a937b:e`Die Nachfrage nach Terminen in ${0} ist derzeit hoch, daher kann es zu längeren Wartezeiten als üblich kommen.`,s4813ee5d305442e5:"Es scheint, dass wir Sie zu der Zeit nicht gefunden haben, zu der Sie Ihre Behandlung haben. Sie können eine andere Behandlung planen, um Ihre Fragen zu beantworten.",s48163b67a2420e36:"Keine Kamera · nur Audio",s495f82688017f598:"Kamera gewechselt",s49683919cdaeca83:"Heute",s4a061033615c8016:"Dokumente",s4a8494821c987a17:"Bericht",s4a8f1fcd3f5e5952:"Es ist noch nicht die Zeit!",s4d20157b5a655e70:"Dieser Zeitplan ist nicht verfügbar. Bitte wählen Sie einen anderen.",s4de424f531892818:"Zu Videocall gehen",s4e3b3ba55ff8161b:"Mikrofon",s50eb4642ff2b0561:e`Ihr Mikrofon wurde getrennt. Wir verwenden «${0}»`,s51c461d40f9fb865:"Wählen Sie Ihren Experten",s5260344ebd9aeb0c:"Wenn Sie beitreten, informieren wir Ihren Arzt, dass Sie bereit sind.",s536a0b4d3d4a5d9f:"Wir konnten Ihre nächste Behandlung nicht laden",s53d957dda6cc200b:"Service und Plattform von",s53e2497bf900c7fd:"Sie haben keine nächsten Behandlungen",s5558a2e389d04223:"Ändern",s55c5126e99bae190:"Verfügbarkeit suchen",s55d4e0de52ac8a28:"Erkannt",s561a153d1b93621e:"Mikrofon wechseln",s563dcbfd432eb18f:"Behandlung stornieren",s56ff38115e5e5288:e`${0} - ${1} Uhr`,s5768f9a50323f9e8:"vor 2 Min.",s57e65113a89160cf:"Behandlungsmode",s59612eaa6993aa7e:e`${0} Minuten`,s5b7cc3cc732206e2:"Die Reservierung für diesen Termin ist abgelaufen. Bitte wählen Sie einen anderen.",s5ba73f4f557dbad6:"Ihr Mikrofon sendet keinen Ton",s5d939766627a0a6d:"Erneut prüfen",s5eef402d73eecbdc:"Datei anhängen",s5f7956aacb5c6ca2:"Google Pay wird geprüft…",s5f817b8841b188d2:"Weitere Optionen",s5f9238eb76027e22:"Schließen Sie andere Apps oder Tabs, die das Internet nutzen.",s611b4e04494c2ba0:"Sprechen Sie? Ihr Mikrofon ist ausgeschaltet",s616689a85b292cce:"Wir konnten die Verbindung nicht wiederherstellen. Ihr Termin besteht weiterhin: Drücken Sie «Zurück ins Wartezimmer», um es noch einmal zu versuchen, oder schreiben Sie Ihrem Arzt im Chat.",s627f3456df2f3bf1:"Wartezimmer betreten",s62d8f013f6db8d1a:"Zurück ins Wartezimmer",s631f73a10d156b22:"Behandlung abgelaufen",s63f7af84683dd7c3:"Diese Behandlung kann nicht geändert oder storniert werden: Es ist nicht genügend Zeit vor dem Beginn verbleiben.",s643155d1b6ee1684:"Versuchen Sie es in einigen Minuten erneut.",s64b78a5026d4ce8d:"Keine Zeitpläne verfügbar",s65bedc0e516977d9:"Samstag",s66e1d53fa4420ffb:"Stellen Sie vor dem Beitritt sicher, dass Ihr Arzt Sie gut sehen und hören kann.",s679be6312356a21c:"Planen Sie eine medizinische Behandlung, wenn Sie sie benötigen. Hier sehen Sie alle Details und können Ihre nächsten Behandlungen verwalten.",s67f30f9f4ea881f3:"Dieser Code ist ungültig.",s680d533ecff1ca01:"Mikrofon ohne Ton",s6a50fd7f52263b04:"Rückkehr ins Wartezimmer nicht möglich",s6a5e94435968666e:"Das Bild kann ruckeln.",s6a88180a43161efa:"Lautsprecher",s6ab6fcd87fdbf217:"Hallo",s6b1c4fb634461e7c:"Vorheriger Monat",s6b6fa877ec1e6968:"Mit dem Experten chatten",s6c81d42670932f93:"Aktualisieren",s6c8f5482ca260f12:"Mein Video ausschalten",s6e2423db05f36856:"Behandlungsanfrage",s6e25df2eb545bd15:"Ihr Mikrofon wurde getrennt",s6ecdc22accc55af7:"Videoanruf",s70258a0040dd9e19:"Zurück zum Wartezimmer",s705f4bd8bc8e04d8:"Die Zahlungsdaten fehlen. Gehen Sie zurück und versuchen Sie es erneut.",s718177442a7447b2:"Behandlung mit einem Experten in weniger als 72 Stunden",s73cad78d8a3c39c2:"Rezept",s74d279557a302d3b:"Für die Fortsetzung wird Zugriff auf Kamera und Mikrofon benötigt",s74d7a739b6ab651d:"Chronik",s757fef148e0c94c6:"Verfügbarkeit",s76cc1ab93796ec1a:"Ihr Arzt muss Sie richtig sehen und hören können",s7703dcdbc4523cc1:"Kamera aus",s77320b73fdd9cc40:"Verlassen",s775370fdb0af1546:"Geburtsdatum",s77c2b712a9813175:"Neue Behandlung anfragen",s77f8e4bee88d44aa:e`${0} von ${1}`,s7907902da8916212:"Der Experte wird Ihnen eine Nachricht senden, um die Behandlung zu koordinieren. Stellen Sie sicher, dass Sie eine gute Mobilfunkabdeckung haben und in dem ausgewählten Zeitplan antreten können.",s79854b89bc902296:"Ihr Arzt hat Verspätung",s7a274496f9ab2127:"Dieser Dienst benötigt Berechtigungen für Kamera und Mikrofon",s7a4afa2542ec3c4b:"Wir erkennen keinen Ton von Ihrem Mikrofon",s7aa3cd94d51825fc:"Es gibt keine professionellen für die ausgewählte Spezialität verfügbar. Bitte versuchen Sie es erneut oder wählen Sie eine andere Spezialität.",s7af26e861bb6f905:"Google Pay-Gateway-Händlerkennung fehlt",s7bffe26dcdde86e6:"Kamera einschalten",s7fd8da9511b66dd4:"Sie können Bilder oder zusätzliche Dokumentation (Analysen, Testresultate, etc.) für den Arzt hochladen",s83c6ce869a2bbaa7:"(1 ist sehr schlecht, 5 ist ausgezeichnet)",s8447efe79d058943:"Bezahlter Betrag",s8448c4c98a91015a:"Ihre Verbindung wurde unterbrochen. Schließen Sie diesen Bildschirm nicht, wir verbinden Sie wieder mit Ihrem Arzt.",s8581adc786786298:"Dateiformat nicht unterstützt",s858bcc60b38165e8:"Schließen Sie Teams, Zoom oder andere Video-Apps und drücken Sie Erneut versuchen. Sie können auch ohne Kamera teilnehmen.",s862ca980b16911d0:"Mit dem Experten chatten",s866bf01d2dfbb429:"Ihr Arzt weiß, dass Sie hier sind",s8a2611ae3b31da01:"Zu viele Prüfungen hintereinander. Versuchen Sie es in ein paar Minuten erneut.",s8b2a50d9373caa83:"Kamera belegt",s8bf3ce91eaca57dd:"Schließen Sie die Seite nicht und laden Sie sie nicht neu: Der Anruf beginnt von selbst.",s8c18dbf02590a72e:"Aktionscode angewendet",s8c467c951c6cc2ea:"Instabil",s8cce15c931017937:"Zurück zur Startseite",s8e7a6119525dc7c9:e`Leider können wir Ihren Termin nicht ändern, da bis dahin weniger als ${0} Minuten verbleiben.`,s9005845c358db9da:"Wir konnten das Dokument nicht herunterladen.",s92f34d487d1d0355:"Aktion",s94626d2ffd70f075:"Aktionscode erfolgreich angewendet",s9485002916b81a21:"Dem Arzt im Chat schreiben",s9536695467bcf9c4:"Dieser Termin liegt bereits in der Vergangenheit und kann daher nicht mehr storniert werden.",s96474eac63a69381:"Zum Chat gehen",s96ceb408923a7ab1:e`Nr. KOL. ${0}`,s970d59d6d88e7e6c:"Die Zahlung kann nicht gestartet werden",s979ee14368bf1505:"Chatte mit mir",s9802dd10b2c2f760:"Senden",s984a4c18d85b4ec1:e`${0} Uhr`,s99898f495319cd49:"Dieser Nachricht wurde gelöscht",s9a068f93c6af8245:"Die Verbindung wurde unterbrochen",s9c309154722f8e06:"Laden des Zahlungsportals",s9cabdaf42f04afee:"Code eingeben",s9cbf16425cadadb1:"Bitte versuchen Sie es erneut später.",s9d22fa67943fdc4c:"Telefonische Behandlung",s9dba52b7b16b202f:"Mikrofon einschalten",s9eaed0a2d9b653d7:"Hinweis",sa00e726e1e7e46a9:"Aktionscode hinzufügen",sa1254ab0351bb259:"Berechtigungen anfordern",sa27f38ad9db3bc4f:"Kommerzialberater",sa2f0d08e080ce96a:"Verbindung wird geprüft…",sa2fe3f3b565f15f4:"Stornieren",sa3f595a2b96e4050:"Ihre Verbindung ist instabil",sa4186d5e26cab4bb:"Seite nicht gefunden",sa474374a8ef54444:"Keine Kamera",sa497ebaaeb251035:"Behandlung wiederholen",sa79d4b4e8bafc1e8:"Nur Ton",sa7ac0f309d07ff18:"Wir haben keine Kamera gefunden",sa7de4334479674c6:"Behandlung ändern",sa82bc40dafbe3256:e`Behandlung geplant für ${0}`,sa83d79734eb60ee3:"Anwenden",sa86d729f62b39f99:"Am Videoanruf teilnehmen",sa87d2c48a52b2617:"Sie haben keine Dokumentation",sab964c37a0934399:"Google Pay konnte nicht geladen werden. Überprüfe die Website-Konfiguration und versuche es erneut.",sac2728ace11e5f4b:"Spezialität*",sadc5ede25dd6e126:"Der Experte wird Ihnen eine Nachricht senden, um die Behandlung zu koordinieren. Stellen Sie sicher, dass Sie eine gute Mobilfunkabdeckung haben und in dem ausgewählten Zeitplan antreten können.",sae8f7ac5552b2af1:"Wenn es 10 Minuten bis zur Behandlung gibt, können Sie auf die Videokonferenz zugreifen",saf3fa52e70e3e40e:"Wir konnten die Verbindung zu Ihrem Arzt nicht wiederherstellen. Drücken Sie «Erneut beitreten», um es noch einmal zu versuchen, oder schreiben Sie ihm im Chat.",saf63dc4c8601ec8c:"a",safe333e385f371ff:"Überprüfen Sie Ihre Zahlung...",saff3019e8a8c5f98:"Montag",sb01184796ad3832e:"Wie war dein Termin?",sb0cd10d56f81b27a:"Kamera auswählen",sb0dd05da1d56e9bd:e`Verbunden und Arzt benachrichtigt. Warten, bis ${0} beitritt`,sb22eb7683fe5810a:"Sie haben die Berechtigungen für Kamera und Mikrofon Ihres Geräts verweigert. Bitte folgen Sie der Anleitung Ihres Browsers, um sie zu aktivieren.",sb410a3509b92a90c:"Hast du Anmerkungen zum Termin?",sb490d16c5d12949b:"Sie haben die Kamera blockiert",sb49dc4c5edae9d4e:"Bewertung der Konsultation",sb5387e21dc21422b:"Behandlung geändert",sb621415007181c43:"Nächster Monat",sb73394814d122852:"Wenn Ihr Arzt irgendeine Dokumentation generiert hat, können Sie sie hier sehen und herunterladen, von der Dokumentation-Sektion, Ihrer E-Mail oder dem Chat.",sb865e3500257795b:"Mikrofon auswählen",sb882f28c9b20052e:"Behandlung bestätigt",sba98cf8b2a7dfca4:"Gestern",sbbee712c4900abc2:"Wir konnten den Zahlungsvorgang nicht starten",sbc0be90393c87447:e`Zusammenfassung der Behandlung für ${0}`,sbcf081de432a2172:"Details anzeigen",sbcfc05bdb868b383:"Rezept",sbd07d1f779e482ae:"Wir konnten Ihre Zahlung nicht bestätigen",sbd9803cceb34513a:"Chat mit Kommerzialberater starten",sbda1cf7b293e17d2:"Datei hochladen",sbfadf182c2f13852:"Kamera verbunden",sc0bfacfa9af70ac5:"Erneut versuchen",sc27e7c4850fc5a34:e`Leider können wir Ihren Termin nicht stornieren, da bis dahin weniger als ${0} Stunden verbleiben.`,sc3bb7ea72886e4d0:"Neueste Dokumente",sc3bf631702aa18a3:"Aktivieren Sie sie in den Einstellungen Ihres Browsers oder nehmen Sie nur mit Ton teil.",sc3c7734c15d2a045:"Erzähl uns, wie die Betreuung war oder ob es Probleme mit dem Videocall gab…",sc43929cc6582a185:"Vollständiges Kalender anzeigen",sc4edf6a4e0157d4e:"Nächste Behandlungen",sc68411ea183300d5:"Arzt benachrichtigt",sc6f816a96e8578ff:"Dieser Termin kann leider nicht mehr storniert werden.",sc7cf2be40c8614fa:e`Leider können wir Ihren Termin nicht stornieren, da bis dahin weniger als ${0} Minuten verbleiben.`,sca0e87aae6bde276:"Gab es ein Problem?",sca4bd395e3148194:"Behandlung stornieren bestätigen",sca90bc30758f9082:"Die von Ihnen gesuchte Seite wurde entfernt, umbenannt oder könnte nicht existieren.",scb3381c0ce888983:"Wir konnten die Verbindung nicht wiederherstellen. Ihr Termin besteht weiterhin: Drücken Sie «Zurück ins Wartezimmer», um es noch einmal zu versuchen.",scba599c5c882e7e7:"Wegen Ihrer Verbindung läuft das Gespräch nur mit Ton weiter. Das Video kommt von selbst zurück, sobald sie besser wird.",scbe4c6673872bda5:"Telefon",sce29e337ebd75277:"Chat mit Support",scf469737e1670fd4:"Nächste Seite",scf9f1b5bf0a43218:"Ihre Kamera wurde getrennt. Sie bleiben mit Ton verbunden",scfc7f5c5f41936dc:"Meine Behandlungen",scfc93cd1d8289036:"Sie können die Beratung nur mit Ton durchführen. Wenn Sie eine externe Kamera haben, schließen Sie sie an, und sie erscheint hier.",sd02ff3e502d3183a:"Kamera",sd1f44f1a8bc20e67:"E-Mail",sd24922a2783f286e:"Mittwoch",sd2a8fc66c53c1a27:"Überspringen",sd4beaeb9a1b1fed5:"Vorherige Daten",sd812eb30f385776d:"Füllen Sie Ihr Profil aus",sd853d3bcf5341b59:"Mehr anzeigen",sda962b28e9110c82:"Suchen Sie in Ihrem medizinischen Digitalprofil",sdb7004e477873574:"Behandlung storniert",sdbebe3be1bdd7513:"Öffnen Sie die Einstellungen Ihres Browsers",sdd963b1b2ce9a1f5:e`Der Experte wird Ihnen unter ${0} am ausgewählten Zeitplan anrufen. Stellen Sie sicher, dass Sie eine gute Mobilfunkabdeckung haben und in dem ausgewählten Zeitplan antreten können.`,sde6f937517b11768:"Keine Kameras",sde993da26c048f19:"Traumatologie, Gynäkologie, Endokrinologie, Verdauungssystem oder Psychiatrie",sdea72adbb302f075:"Mikrofon funktioniert",sdee32ae81ca0d6d8:"Zu Kalender hinzufügen",sdfa80cd9f207b410:"jetzt",se00b081edccfae39:"Nächste Daten",se07ea9607704c5ad:"Code ändern",se090f7226b372a4a:"Wenn der Termin nicht stattfinden konnte, kannst du",se0c7cc77f86aa8a0:"Nachname",se17f2b402ecea2e1:"Zurückzugebender Betrag",se18fa3ef98e155de:"Google Pay wird vorbereitet…",se1cce5af3e9bb6ee:"Es ist ein Fehler aufgetreten, während der Datei hochgeladen wurde",se1cf783f86c53031:"Dienstag",se26c5f7daec0b0fd:"Wenn es weiterhin schlecht läuft, schalten Sie Ihr Video aus: Die Stimme braucht viel weniger Bandbreite.",se35ee07ad073f51a:"Hilfe zum Anruf",se45e6f6f3428ad50:e`Link zur Behandlung: ${0}`,se5a09223256f98db:"Dieses Feld ist erforderlich",se5c20a2b44f1fa17:"Chat öffnen",se5f9264155b99909:"Es ist ein Problem aufgetreten, während der Zahlungszustand überprüft wurde. Bitte kontaktieren Sie den Support, wenn die Gebühr erstattet wurde.",se92e438da4e7099f:e`Leider können wir Ihren Termin nicht ändern, da bis dahin weniger als ${0} Stunden verbleiben.`,sea11fd8a12559bc5:"Vorherige Behandlung:",seb6739450e8d9c8d:"Sind Sie sicher, dass Sie diese Behandlung stornieren möchten? Sie erhalten den bezahlten Betrag innerhalb von 5-10 Werktagen zurück.",seb850e89f9ff58e8:"Nächste Behandlung",sed750da423170d47:"Ergebnisse für:",sed836a96c3b5d523:"Zahlungsportal",sed8ec5e3c64fa25d:"Gesamt",sed97e90642983578:"Zur Zahlung fortfahren",sedb2092dda465ea1:"DNI/NIE",sedbca9676f07a51f:"Behandlungsmode*",see7c0a7b5b6ebbc5:"Verwenden Sie den Chat, um das Behandlungsmotive, Dokumente oder Bilder zu senden",sefc0dd68776c9466:"Fragebogen vor der Behandlung",sf0638d3fc50964d2:"Andere Datum wählen",sf0695a0a125ae748:"Bestätigen",sf199b210440b7c5f:"Behandlung abgeschlossen",sf1bda2fb90e8217e:"Die Verbindung Ihres Arztes ist instabil. Sie müssen nichts tun.",sf313108d7f1175df:"Ihr Arzt hat etwas Verspätung",sf3457daf057bff15:"ins Wartezimmer zurückkehren.",sf484a0e20a7829ac:"Wir senden Ihnen eine E-Mail, wenn es Zeit ist, sich für die Videocall zu verbinden. Stellen Sie sicher, dass Sie eine gute Internetverbindung und ein Gerät mit Kamera und Mikrofon haben.",sf48d12e7ae207023:"Spezialität",sf4c035b2ecb5ac2e:"Ändern",sf63a72ff4116c6a9:"Dokument herunterladen",sf79def1749a7e999:"Mikrofon ausschalten",sf9705e1c4e82c017:"Fragebogen konnte nicht gesendet werden",sfa6bc28a7faedc92:"Neue Digital-Spezialitäten-Behandlung",sfac5734d03595135:"Alle ansehen",sfc63af0362cfb78b:"Google Pay-Händlerkennung fehlt",sfd51ca4e1b145054:"Es konnte dieser Zeitplan nicht reserviert werden. Bitte wählen Sie einen anderen.",sff337500b69abf7f:"Der Arzt beendet Ihre Behandlung. Aktualisieren Sie in einigen Minuten, um zu sehen, ob Sie Dokumentation haben.",sffbc330c8a19f838:"Weniger anzeigen",sc6a6d42245892254:"Falta el identificador de comercio de Apple Pay",s3da77e69fe62cb2a:"No se ha podido cargar Apple Pay. Comprueba la configuración del sitio e inténtalo de nuevo.",se1dd5d211b5b00e4:"Apple Pay no está disponible",s7e8b7a5acbdf83ed:"Preparando Apple Pay…",sc8271ba819299b59:"Comprobando Apple Pay…",sf32cd04f9a848ee2:"Pagar con Apple Pay",s57e95bc3afddfeb0:"Para pagar con Apple Pay, escanea el código QR con tu iPhone (iOS 18 o posterior) y confirma el pago.",sfbfb2a1dc8c3f636:"Esta consulta no se puede pagar aquí",s50247070c73385c2:"Por favor, contacta con soporte para poder continuar.",s6a796114fe45025d:e`${0}, ${1} h${2}`,s35d601992fe66fed:"Confirmando tu pago",s5370521b92483bf3:"No cierres, vuelvas atrás ni actualices la ventana; esto puede tardar unos momentos.",s77bf41039c589159:"Tu pago no se ha completado",s0e850d0fec6daf7d:"El pago ha sido rechazado y no hemos creado la cita. No se te ha cobrado nada: puedes volver a reservar desde el inicio.",s4007fa55a28f1f73:"Ese horario ya no está disponible",s0089e78f42dfd1a4:"Otro paciente ha reservado esa cita mientras completabas el pago, así que no hemos podido crearla.",saeefd0d6fb204a80:"Te hemos devuelto el importe automáticamente; puede tardar unos días en reflejarse en tu cuenta.",se478d6710916dadf:"No hemos podido devolverte el importe automáticamente. Escríbenos y lo resolvemos:",sf9e6fbadcce256d0:"Ha ocurrido un error",sa24acad3b1338788:"No hemos podido confirmar tu pago. Por favor, inténtalo de nuevo más tarde.",s8bbbd679ddb50d3b:"Si se te ha cobrado sin una cita confirmada, contacta con nuestro equipo en",s1dec877628213eef:"Tus citas",se0c593aac5e172e6:"Accede, modifica o anula tus citas.",s230b0bee447e61a5:"Ver mis citas"};export{n as templates};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{e,i,t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Z as e}from"./lit-element-B5-nYi7k.js";const{I:t}=e,o=e=>void 0===e.strings,A=()=>document.createComment(""),n=(e,o,n)=>{const i=e._$AA.parentNode,$=void 0===o?e._$AB:o._$AA;if(void 0===n){const o=i.insertBefore(A(),$),_=i.insertBefore(A(),$);n=new t(o,_,e,e.options)}else{const t=n._$AB.nextSibling,o=n._$AM,A=o!==e;if(A){let t;n._$AQ?.(e),n._$AM=e,void 0!==n._$AP&&(t=e._$AU)!==o._$AU&&n._$AP(t)}if(t!==$||A){let e=n._$AA;for(;e!==t;){const t=e.nextSibling;i.insertBefore(e,$),e=t}}}return n},i=(e,t,o=e)=>(e._$AI(t,o),e),$={},_=(e,t=$)=>e._$AH=t,r=e=>e._$AH,s=e=>{e._$AR(),e._$AA.remove()};export{s as M,o as f,_ as m,r as p,n as s,i as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t,c as e}from"./custom-element-D2ziPxYE.js";import{m as i}from"./runtime-Bg1WXVCx.js";import{l as o}from"./localized-decorator-BlOuLhym.js";import{h as a,s as n}from"./task-BYPV1iNw.js";import{A as s}from"./api-client-context-BXGqBAlO.js";import{C as r,D as l,d}from"./api-chat-client-CcYgqPdC.js";import{r as c,p,g as m,a as h}from"./chunk-NIAGR3ZC-BDlNUZa1.js";import{a as u}from"./addSeconds-fO5orJrt.js";import{a as f,i as g,E as v,x as y}from"./lit-element-B5-nYi7k.js";import{n as b}from"./property-C1CmBSnw.js";import{getLocale as x}from"../i18n.js";import{calendarIcon as w}from"../ui/icons/calendar-icon.js";import{clockIcon as $}from"../ui/icons/clock-icon.js";import{r as k}from"./state-Br45Av8Z.js";import{infoCircleOutineIcon as z}from"../ui/icons/info-circle-outine-icon.js";import"../ui/mq-button.js";import{l as q}from"./chunk-S5RWG6G2-CQJ38pW6.js";import{messageBubbleIcon as j}from"../ui/icons/message-bubble-icon.js";import"./mq-chat-room-CwN_aR5x.js";import"../ui/mq-floating-bubble.js";import"../ui/mq-card.js";import"../ui/mq-unread-badge.js";import{c as C}from"./consume-CovVqBjI.js";import{Q as _}from"./query-controller-B1byDHlF.js";import{g as S}from"./chunk-Y4EKUX25-Bix9r5ry.js";import"../ui/mq-page-title.js";import{downloadIcon as T}from"../ui/icons/download-icon.js";import{b as D}from"./blob-to-base64-CUL1trde.js";import{DownloadFileEvent as I,MqViewAppointmentsEvent as O}from"../events.js";import{M as E}from"./mutation-controller-CR2qcqhH.js";import{g as P,t as F,b as N,a as R,c as U,e as A}from"./telemetry-client-DA2_SZBC.js";let Q=class ChatCta extends f{constructor(){super(...arguments),this.text=i("Utiliza el chat para enviar el motivo de consulta, documentos o imágenes"),this.readonly=!1,this.isChatOpen=!1,this.unreadQuery=new _(this,()=>S(this.apiClient,{roomId:this.roomId}))}static{this.styles=[g`.chat-cta{padding:var(--sp-6) var(--sp-4);display:flex;flex-direction:column;gap:var(--sp-4)}.cta-message{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-4);font-family:var(--font-body);font-size:var(--text-sm);line-height:var(--text-sm--line-height);color:var(--color-neutrals-text-default)}.cta-message svg{flex-shrink:0}mq-button svg{flex-shrink:0}mq-chat-room{height:100%}@media (min-width:768px){.chat-cta{padding:var(--sp-6)}mq-button{max-width:323px;margin:0 auto}}`]}render(){return y`<mq-card class="chat-cta" roundness="md"><div class="cta-message">${z({size:24})} <span>${this.text}</span></div><mq-button variant="primary" size="md" fullwidth @click="${()=>{this.isChatOpen=!this.isChatOpen,this.isChatOpen&&this.onOpenChat?.()}}">${j({size:24})} ${i("Chatea con el profesional")} ${(this.unreadQuery.result?.data?.unread_count??0)>0?y`<mq-unread-badge></mq-unread-badge>`:v}</mq-button></mq-card><mq-floating-bubble ?dismissable="${!1}" .open="${this.isChatOpen}" @mq-close="${()=>{this.isChatOpen=!1}}" hideCloseButton>${this.isChatOpen?y`<mq-chat-room slot="content" .consultationId="${this.consultationId}" .consultationType="${r.appointment}" token="${this.loginToken.access_token}" .roomId="${this.roomId}" .professionalHash="${this.professionalHash}" ?readonly="${this.readonly}" @mq-chat-room-close="${()=>{this.isChatOpen=!1}}"></mq-chat-room>`:v}</mq-floating-bubble>`}};t([C({context:s,subscribe:!0})],Q.prototype,"apiClient",void 0),t([b({type:Number})],Q.prototype,"roomId",void 0),t([b({type:String})],Q.prototype,"professionalHash",void 0),t([b({type:String})],Q.prototype,"text",void 0),t([b({type:String})],Q.prototype,"consultationId",void 0),t([b({type:Boolean,reflect:!0})],Q.prototype,"readonly",void 0),t([b({attribute:!1})],Q.prototype,"onOpenChat",void 0),t([C({context:q})],Q.prototype,"loginToken",void 0),t([k()],Q.prototype,"isChatOpen",void 0),Q=t([o(),e("chat-cta")],Q);let B=class PageLayout extends f{constructor(){super(...arguments),this.yCentered=!1,this.background="solid"}static{this.styles=g`:host([background=transparent]){background-color:transparent}:host([background=solid]){background-color:var(--color-background)}:host([y-centered]) div{display:grid;place-items:center}div{width:100%;max-width:1000px;padding:var(--mq-layout-padding,0);margin:0 auto;box-sizing:border-box}:host([y-centered]) div{height:100%}main{width:100%}`}render(){return y`<div><main><slot></slot></main></div>`}};t([b({type:Boolean,attribute:"y-centered"})],B.prototype,"yCentered",void 0),t([b({type:String})],B.prototype,"background",void 0),B=t([e("page-layout")],B);const G=g`:host{display:flex;justify-content:space-between;align-items:center;gap:var(--sp-4);width:100%}.left{display:flex;flex-direction:column;gap:var(--sp-1);flex:1;min-width:0}.tag{border-radius:var(--border-radius-sm);display:inline-flex;align-items:center;justify-content:center;padding:var(--sp-0_5) var(--sp-2);background-color:var(--color-gray-light);width:fit-content}.tag-label{font-family:var(--font-body);font-size:11px;font-weight:var(--font-weight-medium);color:var(--color-neutrals-text-default);text-transform:uppercase;letter-spacing:3px;line-height:normal}.title{font-family:var(--font-body);font-size:var(--text-sm);font-weight:var(--font-weight-bold);color:var(--color-neutrals-text-default);line-height:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.description{font-family:var(--font-body);font-size:var(--text-sm);font-weight:var(--font-weight-normal);color:var(--color-neutrals-text-default);line-height:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;let H=class PatientDocument extends f{constructor(){super(...arguments),this.isDownloading=!1}static{this.styles=G}getFormatter(){const t=x().replace("_","-");return new Intl.DateTimeFormat(t,{year:"numeric",month:"numeric",day:"numeric",timeZone:c(this.loginToken?.patient?.timezone)})}async _handleDownload(){this.isDownloading=!0;const t=await this.apiClient.flash.downloadDocument({url:this.downloadUrl}),e=await D(t);this.dispatchEvent(new I({url:e,filename:`${this.filename}.pdf`})),this.isDownloading=!1}formatKind(t){switch(t){case l.prescription:return i("Receta");case l.report:return i("Informe");case l.diagnosticTestPrescription:return i("Prescripción")}}render(){const t=this.getFormatter().format(p(this.date));return y`<div class="left"><div class="tag"><span class="tag-label">${this.formatKind(this.kind)}</span></div><div class="title">${t} - ${this.specialty}</div><div class="description">${this.description}</div></div><mq-button variant="ghost" size="icon-lg" @click="${this._handleDownload}" ?disabled="${this.isDownloading}">${T({size:24})}</mq-button>`}};t([C({context:s,subscribe:!0})],H.prototype,"apiClient",void 0),t([b({type:String})],H.prototype,"kind",void 0),t([b({type:String})],H.prototype,"filename",void 0),t([b({type:String})],H.prototype,"specialty",void 0),t([b({type:String})],H.prototype,"description",void 0),t([b({type:String})],H.prototype,"date",void 0),t([b({type:String})],H.prototype,"downloadUrl",void 0),t([C({context:q,subscribe:!0})],H.prototype,"loginToken",void 0),t([k()],H.prototype,"isDownloading",void 0),H=t([o(),e("patient-document")],H);const M=g`mq-page-title{margin:var(--size-3) 0}.description{font-size:var(--text-sm);line-height:var(--text-sm--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-normal);margin:0;margin-bottom:var(--size-5)}.professional-card{padding:var(--size-4);margin-bottom:var(--size-4)}.professional-card>:not(:first-child){margin-top:var(--size-4)}.professional-name{font-family:var(--font-titles);font-size:var(--text-lg);line-height:var(--text-lg--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-bold);margin:0;margin-bottom:var(--size-1)}.professional-speciality{font-size:var(--text-base);line-height:var(--text-base--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-normal);margin:0}.description-list{display:flex;flex-direction:column;gap:var(--size-4)}.description-list-item{display:flex;flex-direction:row;align-items:center;gap:var(--size-2);color:var(--color-neutrals-text-default)}.description-list-item dt{display:inline-flex}.description-list-item dd{margin:0;font-family:var(--font-body);font-size:var(--text-base);line-height:var(--text-base--line-height);font-weight:var(--font-weight-semibold)}.description-list-item dd::first-letter{text-transform:uppercase}.documents-card{padding:var(--size-4);margin-bottom:var(--size-6)}.documents-card-empty{font-family:var(--font-body);font-size:var(--text-sm);line-height:var(--text-sm--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-normal)}.documents-card-title{font-family:var(--font-titles);font-size:var(--text-lg);line-height:var(--text-lg--line-height);color:var(--color-neutrals-text-default);font-weight:var(--font-weight-bold);margin:0;margin-bottom:var(--size-4)}.documents-list{margin-bottom:var(--size-4)}.documents-list>:not(:first-child){margin-top:var(--size-2)}.finished-consultation-footer{display:flex;flex-direction:column;gap:var(--size-5)}.document-item-skeleton{height:57px;width:100%;background-color:var(--color-muted);animation:skeleton-pulse 1.5s infinite}@keyframes skeleton-pulse{0%{opacity:1}50%{opacity:.6}100%{opacity:1}}@media (min-width:768px){.description-list{flex-direction:row}mq-button{display:block;max-width:323px;margin:0 auto}}`;let K=class DocumentationView extends f{constructor(){super(...arguments),this.canReconnect=!1,this._sharedocumentsTask=new a(this,{task:async([t])=>await this.apiClient.flash.getSharedDocuments({appointment_id:t}),args:()=>[this.appointment.id]}),this.getOrganizationSpecialtiesQuery=new _(this,()=>P(this.apiClient)),this._reconnectMutation=new E(this,{mutationFn:t=>this.apiClient.appointments.reconnectAppointment(t),onSuccess:()=>{this.dispatchEvent(new CustomEvent("reconnect",{bubbles:!0,composed:!0}))}})}static{this.styles=M}firstUpdated(){F.track(N(this.loginToken.patient.hash,this.appointment.id??""))}render(){const t=!0===this.appointment.has_chat_in_appointment,e=x(),o=e.replace("_","-"),a=m(this.loginToken.patient.timezone),s=a?{timeZone:a}:{},r=new Intl.DateTimeFormat(o,{dateStyle:"full",...s}),l=new Intl.DateTimeFormat(o,{hour:"2-digit",minute:"2-digit",...s}),c=p(this.appointment.start_date),f=u(c,this.appointment.duration),g=a?h(a,c):"";return y`<mq-page-title .title="${i("Consulta finalizada")}" back-label="${i("Salir")}" @mq-back="${t=>{t.stopPropagation(),this.dispatchEvent(new O({tab:"history"}))}}"></mq-page-title><p class="description">${i("Si tu médico ha generado alguna documentación podrás verla y descargarla aquí, desde la sección de documentación, tu correo o el chat.")}</p><mq-card class="professional-card" roundness="md"><div><h2 class="professional-name">${this.appointment.from.name}</h2><p class="professional-speciality">${this.appointment.from.speciality}</p></div><dl class="description-list"><div class="description-list-item"><dt>${w()}</dt><dd>${r.format(c)}</dd></div><div class="description-list-item"><dt>${$()}</dt><dd>${l.format(c)} - ${l.format(f)}${g?` (${g})`:""}</dd></div></dl></mq-card><mq-card class="documents-card" roundness="md"><h2 class="documents-card-title">${i("Documentación")}</h2><div class="documents-list">${this._sharedocumentsTask?.render({pending:()=>y`<div class="document-item-skeleton"></div>`,complete:()=>0===this._sharedocumentsTask?.value?.length?y`<p class="documents-card-empty">${i("El médico está terminando de gestionar tu consulta. Actualiza en unos minutos para ver si tienes documentación.")}</p>`:this._sharedocumentsTask?.value?.map(t=>y`<patient-document .kind="${t.document_type}" .filename="${t.name}" .specialty="${(()=>{const i=this.getOrganizationSpecialtiesQuery.result?.data?.find(e=>e.id===t.professional.speciality_id);return R(i?.code??"",e,i?.name)})()}" .description="${t.name}" .date="${t.created_at}" .downloadUrl="${t.url}"></patient-document>`)})}</div><mq-button variant="outline" size="md" fullwidth @click="${()=>{F.track(U(this.loginToken.patient.hash,this.appointment.id??"")),this._sharedocumentsTask?.run()}}" .disabled="${this._sharedocumentsTask?.status===n.PENDING}">${i("Actualizar")}</mq-button></mq-card><div class="finished-consultation-footer">${this.canReconnect?y`<mq-button variant="primary" size="md" fullwidth ?disabled="${this._reconnectMutation.isPending}" @click="${()=>this._reconnectMutation.run({appointmentId:this.appointment.id})}">${i("Volver a la sala de espera")}</mq-button>`:v} ${t?y`<chat-cta .consultationId="${this.appointment.id}" .roomId="${Number(this.appointment.room_id)}" .professionalHash="${this.appointment.from.hash}" .text="${i("Puedes chatear con tu profesional hasta 48 horas finalizada tu cita")}" ?readonly="${d(this.appointment.expires_at)}" .onOpenChat="${()=>{F.track(A(this.loginToken.patient.hash,this.appointment.id??""))}}"></chat-cta>`:v}</div>`}};t([C({context:s,subscribe:!0})],K.prototype,"apiClient",void 0),t([b({type:Object})],K.prototype,"appointment",void 0),t([b({type:String})],K.prototype,"token",void 0),t([b({type:Boolean,attribute:"can-reconnect"})],K.prototype,"canReconnect",void 0),t([C({context:q})],K.prototype,"loginToken",void 0),K=t([o(),e("documentation-view")],K);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e}from"./runtime-Bg1WXVCx.js";const a={s0043fc30b467bc43:"Hide details",s00c8bf60a179e056:"Google Pay is not available. Try card or another payment method.",s035706a468d0c40b:"Friday",s046059ac8883c8b0:"Turn off camera",s0520ac0a7da193d4:"We couldn't validate the code. Please try again.",s071bd6bbf6c08f34:"Loading",s07869833a9612f03:"Stable",s08404262212123ef:"How can I help you?",s087be48b9567efd7:"Allow camera and microphone permissions",s08fcf168ec2f029e:"Quick actions",s08fe5307b5987c42:"De",s08fe5907b5988674:"Do",s09165307b5ad0e23:"Mi",s09165b07b5ad1bbb:"Ma",s09195307b5af43fa:"Lu",s092e4f07b5c19938:"Ju",s093b3307b5cbf400:"Vi",s09462f07b5d5f4b9:"Sa",s09528d5c26b62213:"Thursday",s09d1e631a1f92b01:"Good connection",s09ebc782afbb9b76:"Check that it isn't muted or choose another microphone from the list. You can still join.",s0aaec824f7c6b501:"Send message",s0b0955208f737a86:"The file exceeds the maximum size allowed",s0c11fb8db8684fb4:"Switch camera",s0cea517c81fb62ca:"Sorry for the wait.",s0d65261c859a6e30:"Reconnecting…",s0dd4fef0057d2e29:"We couldn't reconnect with your doctor. Press “Rejoin” to try again.",s0eb69642cbc19745:"This appointment has already passed, so it can no longer be modified.",s0fc7c4bfd185800d:"Your prescriptions and medical reports will appear here.",s0fcbdef9dc977231:"An error occurred while loading the page. Please try again or contact support.",s11605fc03de64e14:"Write here...",s12f171594a5379d2:"Are you sure you want to cancel this appointment?",s132e84f499a23985:"No slots available currently",s13317a76a9ed776e:"Repeat",s142eba34d93fe59e:"Description",s1513f3687bfcac96:"Sunday",s15a4cb398cd28ceb:"Reload page",s175c25f0565c3a51:"Microphone connected",s18b93279814a6bad:"Help",s1a0efa6ac51e8a85:"Previous page",s1a874fc38d0fcef0:"Medical order",s1d318e9d0ccba86b:"Chat",s1ee6d7e6d04932a4:"The email is not valid",s1fe8bb7f6ae07f9b:"You have no appointments in the history",s219b833c5ca095b3:"Here you will see all the appointments you have had. You can access the documents of each consultation and reschedule an appointment if necessary.",s220fc50e0599dca2:"Camera unavailable",s22cf91a84fba4c4e:"When you schedule an appointment, it will appear here so you can consult it, modify it or cancel it.",s238c3ed6d3ecc66a:"Close",s241e503fa38a036d:"Reload the page",s24b59d5a129dc0d0:"We couldn't cancel the appointment. Please try again.",s24bf036e7dd55fa9:"Find a place with better coverage or switch networks (wifi or mobile data).",s255bf4de23c83482:"Booking conditions:",s256189bafbcd2e34:"The phone is not valid",s25e6416d9616df41:"Your connection is slow",s2658c03579c79e3c:"See help",s27e462e9f48eb3a6:"Documentation",s28d1b798877c823d:"Try this",s2a17cbd882c2684e:"The picture may stutter. Find a spot with better coverage or switch networks. If it gets worse, we'll continue with audio only.",s2a1d212b3cb5c1a1:"You can chat with your professional up to 48 hours after your appointment",s2a5a722447fb228e:"Check your camera and microphone",s2aa2c19d07591438:"You will receive a reminder 15 minutes before the appointment",s2aab27b26a86469f:"Consultation reason",s2b9fde9a5739d2a0:"Name",s2bb20b2162a18938:"Why do you need the consultation?",s2d6183fa992e10e9:"This professional has no available time slots",s2ebd846b5a30f9d1:"We're sorry, we couldn't repeat your appointment. Please contact support.",s30c9095a2e07d929:"Waiting room",s31219c9bdeb7bc3e:"Continue",s337e34cd11150eb6:"View my appointments",s346d488070fe4cc8:"Request appointment",s361c5842f8d8c1cf:"Another app is using your camera",s36a85bd42a6e86bd:"Connected",s37e0eb5bb2794d92:"Rejoin",s3944638e633d719a:"Consultation",s3b77baf6a4864231:"Unknown error",s3dc6584e403858df:"We could not load your documents",s3f55bc3bfec41a5d:"Attach files",s3fed4a1c3fce3567:"Your connection",s4177fe7f5d70fd33:"Back",s41826ac201c3cd85:"Could not open the support chat",s428cefc51e9bbbef:"Devices",s4364d4be7641e15f:"Confirm appointment",s43814dc30be6801e:"While you wait, you can tell them the reason for your consultation in the chat.",s43e5edcc8801e9a4:"Professional profile",s47afb8f6895a937b:e`We are currently experiencing high demand for ${0} appointments, so you may encounter longer waiting times than usual.`,s4813ee5d305442e5:"It seems we couldn't find you at the time of your appointment. You can schedule another consultation to resolve your questions.",s48163b67a2420e36:"No camera · audio only",s495f82688017f598:"Camera switched",s49683919cdaeca83:"Today",s4a061033615c8016:"Documents",s4a8494821c987a17:"Report",s4a8f1fcd3f5e5952:"It's not time yet!",s4d20157b5a655e70:"This time slot is not available. Please select another.",s4de424f531892818:"Go to videocall",s4e3b3ba55ff8161b:"Microphone",s50eb4642ff2b0561:e`Your microphone was disconnected. We're using “${0}”`,s51c461d40f9fb865:"Select your specialist",s5260344ebd9aeb0c:"When you join, we'll let your doctor know you're ready.",s536a0b4d3d4a5d9f:"We could not load your next appointment",s53d957dda6cc200b:"Service and platform provided by",s53e2497bf900c7fd:"You have no upcoming appointments",s5558a2e389d04223:"Modify",s55c5126e99bae190:"Search availability",s55d4e0de52ac8a28:"Detected",s561a153d1b93621e:"Change microphone",s563dcbfd432eb18f:"Cancel appointment",s56ff38115e5e5288:e`${0} - ${1}`,s5768f9a50323f9e8:"2 min ago",s57e65113a89160cf:"Appointment modality",s59612eaa6993aa7e:e`${0} minutes`,s5b7cc3cc732206e2:"The reservation for this time slot has expired. Please select another one.",s5ba73f4f557dbad6:"Your microphone isn't sending sound",s5d939766627a0a6d:"Check again",s5eef402d73eecbdc:"Attach file",s5f7956aacb5c6ca2:"Checking Google Pay…",s5f817b8841b188d2:"More options",s5f9238eb76027e22:"Close other apps or tabs that use the internet.",s611b4e04494c2ba0:"Are you talking? Your microphone is off",s616689a85b292cce:"We couldn't reconnect. Your appointment is still on: press “Back to the waiting room” to try again, or write to your doctor in the chat.",s627f3456df2f3bf1:"Enter the waiting room",s62d8f013f6db8d1a:"Back to the waiting room",s631f73a10d156b22:"Consultation expired",s63f7af84683dd7c3:"This appointment cannot be modified or cancelled: the minimum time required before the start has passed.",s643155d1b6ee1684:"Try again in a few minutes.",s64b78a5026d4ce8d:"No available schedules",s65bedc0e516977d9:"Saturday",s66e1d53fa4420ffb:"Before joining, make sure your doctor will be able to see and hear you properly.",s679be6312356a21c:"Schedule a medical consultation when you need it. Here you will see all the details and you can manage your upcoming appointments.",s67f30f9f4ea881f3:"This code is not valid.",s680d533ecff1ca01:"Microphone has no sound",s6a50fd7f52263b04:"Could not return to the waiting room",s6a5e94435968666e:"The picture may stutter.",s6a88180a43161efa:"Speaker",s6ab6fcd87fdbf217:"Hello",s6b1c4fb634461e7c:"Previous month",s6b6fa877ec1e6968:"Chat with the professional",s6c81d42670932f93:"Update",s6c8f5482ca260f12:"Turn off my video",s6e2423db05f36856:"Appointment request",s6e25df2eb545bd15:"Your microphone was disconnected",s6ecdc22accc55af7:"Videocall",s70258a0040dd9e19:"Return to the waiting room",s705f4bd8bc8e04d8:"Payment credentials are missing. Go back and try again.",s718177442a7447b2:"Appointment with an expert in less than 72 hours",s73cad78d8a3c39c2:"Prescription",s74d279557a302d3b:"Camera and microphone access is needed to continue",s74d7a739b6ab651d:"History",s757fef148e0c94c6:"Availability",s76cc1ab93796ec1a:"Your doctor needs to be able to see and hear you properly",s7703dcdbc4523cc1:"Camera off",s77320b73fdd9cc40:"Leave",s775370fdb0af1546:"Birth date",s77c2b712a9813175:"Request a new appointment",s77f8e4bee88d44aa:e`${0} of ${1}`,s7907902da8916212:"The professional will call you at the number you indicate in this field.",s79854b89bc902296:"Your doctor is running late",s7a274496f9ab2127:"This service requires camera and microphone permissions",s7a4afa2542ec3c4b:"We can't detect any sound from your microphone",s7aa3cd94d51825fc:"There are no professionals available for the selected specialty. Please try again later or select another specialty.",s7af26e861bb6f905:"Google Pay gateway merchant identifier is missing",s7bffe26dcdde86e6:"Turn on camera",s7fd8da9511b66dd4:"You can attach images or additional documentation (analyses, test results, etc.) for the doctor to evaluate",s83c6ce869a2bbaa7:"(1 is very bad, 5 is excellent)",s8447efe79d058943:"Amount paid",s8448c4c98a91015a:"Your connection was cut. Don't close this screen, we're reconnecting you with your doctor.",s8581adc786786298:"File format not supported",s858bcc60b38165e8:"Close Teams, Zoom or other video apps and press Retry. You can also join without a camera.",s862ca980b16911d0:"Chat with the professional",s866bf01d2dfbb429:"Your doctor knows you're here",s8a2611ae3b31da01:"Too many checks in a row. Try again in a few minutes.",s8b2a50d9373caa83:"Camera in use",s8bf3ce91eaca57dd:"Don't close or reload the page: the call will start on its own.",s8c18dbf02590a72e:"Promo code applied",s8c467c951c6cc2ea:"Unstable",s8cce15c931017937:"Back to home",s8e7a6119525dc7c9:e`Sorry, since there are less than ${0} minutes until your appointment, we can't modify it.`,s9005845c358db9da:"We couldn't download the document.",s92f34d487d1d0355:"Promotion",s94626d2ffd70f075:"Promo code applied successfully",s9485002916b81a21:"Message your doctor in the chat",s9536695467bcf9c4:"This appointment has already passed, so it can no longer be cancelled.",s96474eac63a69381:"Go to chat",s96ceb408923a7ab1:e`No. COL. ${0}`,s970d59d6d88e7e6c:"The payment cannot be started",s979ee14368bf1505:"Chat with me",s9802dd10b2c2f760:"Send",s984a4c18d85b4ec1:e`${0}`,s99898f495319cd49:"This message was deleted",s9a068f93c6af8245:"Connection lost",s9c309154722f8e06:"Loading payment portal",s9cabdaf42f04afee:"Enter the code",s9cbf16425cadadb1:"Please try again later.",s9d22fa67943fdc4c:"Phone consultation",s9dba52b7b16b202f:"Turn on microphone",s9eaed0a2d9b653d7:"Notice",sa00e726e1e7e46a9:"Add promo code",sa1254ab0351bb259:"Request permissions",sa27f38ad9db3bc4f:"Commercial advisor",sa2f0d08e080ce96a:"Checking connection…",sa2fe3f3b565f15f4:"Cancel",sa3f595a2b96e4050:"Your connection is unstable",sa4186d5e26cab4bb:"Page not found",sa474374a8ef54444:"No camera",sa497ebaaeb251035:"Repeat appointment",sa79d4b4e8bafc1e8:"Audio only",sa7ac0f309d07ff18:"We couldn't find any camera",sa7de4334479674c6:"Modify appointment",sa82bc40dafbe3256:e`Scheduled appointment for ${0}`,sa83d79734eb60ee3:"Apply",sa86d729f62b39f99:"Join the videocall",sa87d2c48a52b2617:"You don't have documentation",sab964c37a0934399:"Google Pay could not be loaded. Check the site configuration and try again.",sac2728ace11e5f4b:"Specialty*",sadc5ede25dd6e126:"The professional will send you a message to coordinate the appointment. Make sure you have good coverage and can attend at the chosen time.",sae8f7ac5552b2af1:"When there are 10 minutes left for your consultation, you can access the videoconference",saf3fa52e70e3e40e:"We couldn't reconnect with your doctor. Press “Rejoin” to try again, or write to them in the chat.",saf63dc4c8601ec8c:"a",safe333e385f371ff:"Verifying your payment...",saff3019e8a8c5f98:"Monday",sb01184796ad3832e:"How did your appointment go?",sb0cd10d56f81b27a:"Choose camera",sb0dd05da1d56e9bd:e`Connected and doctor notified. Waiting for ${0} to join`,sb22eb7683fe5810a:"You have denied the camera and microphone permissions on your device. Please follow your browser's guide to enable them.",sb410a3509b92a90c:"Any comments about the appointment?",sb490d16c5d12949b:"You have blocked the camera",sb49dc4c5edae9d4e:"Consultation rating",sb5387e21dc21422b:"Modified appointment",sb621415007181c43:"Next month",sb73394814d122852:"If your doctor has generated any documentation, you can see and download it here, from the documentation section, your email or the chat.",sb865e3500257795b:"Choose microphone",sb882f28c9b20052e:"Confirmed appointment",sba98cf8b2a7dfca4:"Yesterday",sbbee712c4900abc2:"We couldn't start the payment",sbc0be90393c87447:e`Summary of the appointment for ${0}`,sbcf081de432a2172:"View details",sbcfc05bdb868b383:"Prescription",sbd07d1f779e482ae:"We couldn't confirm your payment",sbd9803cceb34513a:"Start chat with commercial advisor",sbda1cf7b293e17d2:"Upload file",sbfadf182c2f13852:"Camera connected",sc0bfacfa9af70ac5:"Retry",sc27e7c4850fc5a34:e`Sorry, since there are less than ${0} hours until your appointment, we can't cancel it.`,sc3bb7ea72886e4d0:"Recent documents",sc3bf631702aa18a3:"Enable it in your browser settings or join with audio only.",sc3c7734c15d2a045:"Share how the care was or whether you had any issues with the video call…",sc43929cc6582a185:"View full calendar",sc4edf6a4e0157d4e:"Upcoming appointments",sc68411ea183300d5:"Doctor notified",sc6f816a96e8578ff:"Sorry, this appointment can no longer be cancelled.",sc7cf2be40c8614fa:e`Sorry, since there are less than ${0} minutes until your appointment, we can't cancel it.`,sca0e87aae6bde276:"Did something go wrong?",sca4bd395e3148194:"Confirm cancellation",sca90bc30758f9082:"The page you are looking for has been removed, renamed, or may not exist.",scb3381c0ce888983:"We couldn't reconnect. Your appointment is still on: press “Back to the waiting room” to try again.",scba599c5c882e7e7:"We're continuing with audio only because of your connection. Video will come back on its own when it improves.",scbe4c6673872bda5:"Phone",sce29e337ebd75277:"Support chat",scf469737e1670fd4:"Next page",scf9f1b5bf0a43218:"Your camera was disconnected. You're still on audio",scfc7f5c5f41936dc:"My appointments",scfc93cd1d8289036:"You can have the consultation with audio only. If you have an external camera, plug it in and it will appear here.",sd02ff3e502d3183a:"Camera",sd1f44f1a8bc20e67:"Email",sd24922a2783f286e:"Wednesday",sd2a8fc66c53c1a27:"Skip",sd4beaeb9a1b1fed5:"Previous dates",sd812eb30f385776d:"Complete your profile",sd853d3bcf5341b59:"See more",sda962b28e9110c82:"Search in your medical digital profile",sdb7004e477873574:"Consultation cancelled successfully",sdbebe3be1bdd7513:"Open your browser settings",sdd963b1b2ce9a1f5:e`The professional will call you at ${0} at the selected time. Make sure you have good coverage and can attend at the chosen time.`,sde6f937517b11768:"No cameras",sde993da26c048f19:"Traumatology, gynecology, endocrinology, digestive or psychiatry",sdea72adbb302f075:"Microphone working",sdee32ae81ca0d6d8:"Add to calendar",sdfa80cd9f207b410:"now",se00b081edccfae39:"Next dates",se07ea9607704c5ad:"Change code",se090f7226b372a4a:"If the appointment couldn't take place, you can",se0c7cc77f86aa8a0:"Last name",se17f2b402ecea2e1:"Amount to refund",se18fa3ef98e155de:"Preparing Google Pay…",se1cce5af3e9bb6ee:"An error occurred while uploading the file",se1cf783f86c53031:"Tuesday",se26c5f7daec0b0fd:"If it's still bad, turn off your video: voice needs much less bandwidth.",se35ee07ad073f51a:"Help with the call",se45e6f6f3428ad50:e`Link to the consultation: ${0}`,se5a09223256f98db:"This field is required",se5c20a2b44f1fa17:"Open chat",se5f9264155b99909:"An error occurred while verifying your payment status. Please contact support if the charge has been made.",se92e438da4e7099f:e`Sorry, since there are less than ${0} hours until your appointment, we can't modify it.`,sea11fd8a12559bc5:"Previous appointment:",seb6739450e8d9c8d:"Are you sure you want to cancel this appointment? You will receive the amount paid within 5-10 business days.",seb850e89f9ff58e8:"Next appointment",sed750da423170d47:"Results for:",sed836a96c3b5d523:"Payment portal",sed8ec5e3c64fa25d:"Total",sed97e90642983578:"Continue to payment",sedb2092dda465ea1:"DNI/NIE",sedbca9676f07a51f:"Appointment modality*",see7c0a7b5b6ebbc5:"Use the chat to send the consultation reason, documents or images",sefc0dd68776c9466:"Pre-consultation questionnaire",sf0638d3fc50964d2:"Choose another date",sf0695a0a125ae748:"Confirm",sf199b210440b7c5f:"Consultation finished",sf1bda2fb90e8217e:"Your doctor's connection is unstable. You don't need to do anything.",sf313108d7f1175df:"Your doctor is running a little late",sf3457daf057bff15:"return to the waiting room.",sf484a0e20a7829ac:"We will send you an email when it is time to connect to the videocall. Make sure you have good internet connection and a device with a camera and microphone.",sf48d12e7ae207023:"Specialty",sf4c035b2ecb5ac2e:"Change",sf63a72ff4116c6a9:"Download document",sf79def1749a7e999:"Turn off microphone",sf9705e1c4e82c017:"Could not submit the questionnaire",sfa6bc28a7faedc92:"New digital specialties appointment",sfac5734d03595135:"View all",sfc63af0362cfb78b:"Google Pay merchant identifier is missing",sfd51ca4e1b145054:"Could not reserve this time slot. Please select another.",sff337500b69abf7f:"The doctor is finishing your consultation. Update in a few minutes to see if you have documentation.",sffbc330c8a19f838:"See less",sc6a6d42245892254:"Falta el identificador de comercio de Apple Pay",s3da77e69fe62cb2a:"No se ha podido cargar Apple Pay. Comprueba la configuración del sitio e inténtalo de nuevo.",se1dd5d211b5b00e4:"Apple Pay no está disponible",s7e8b7a5acbdf83ed:"Preparando Apple Pay…",sc8271ba819299b59:"Comprobando Apple Pay…",sf32cd04f9a848ee2:"Pagar con Apple Pay",s57e95bc3afddfeb0:"Para pagar con Apple Pay, escanea el código QR con tu iPhone (iOS 18 o posterior) y confirma el pago.",sfbfb2a1dc8c3f636:"Esta consulta no se puede pagar aquí",s50247070c73385c2:"Por favor, contacta con soporte para poder continuar.",s6a796114fe45025d:e`${0}, ${1} h${2}`,s35d601992fe66fed:"Confirmando tu pago",s5370521b92483bf3:"No cierres, vuelvas atrás ni actualices la ventana; esto puede tardar unos momentos.",s77bf41039c589159:"Tu pago no se ha completado",s0e850d0fec6daf7d:"El pago ha sido rechazado y no hemos creado la cita. No se te ha cobrado nada: puedes volver a reservar desde el inicio.",s4007fa55a28f1f73:"Ese horario ya no está disponible",s0089e78f42dfd1a4:"Otro paciente ha reservado esa cita mientras completabas el pago, así que no hemos podido crearla.",saeefd0d6fb204a80:"Te hemos devuelto el importe automáticamente; puede tardar unos días en reflejarse en tu cuenta.",se478d6710916dadf:"No hemos podido devolverte el importe automáticamente. Escríbenos y lo resolvemos:",sf9e6fbadcce256d0:"Ha ocurrido un error",sa24acad3b1338788:"No hemos podido confirmar tu pago. Por favor, inténtalo de nuevo más tarde.",s8bbbd679ddb50d3b:"Si se te ha cobrado sin una cita confirmada, contacta con nuestro equipo en",s1dec877628213eef:"Tus citas",se0c593aac5e172e6:"Accede, modifica o anula tus citas.",s230b0bee447e61a5:"Ver mis citas"};export{a as templates};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e}from"./context-request-event-Dfydf1ub.js";class t{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=n=>{const s=this.pendingContextRequests.get(n.context);if(void 0===s)return;this.pendingContextRequests.delete(n.context);const{requests:o}=s;for(const{elementRef:s,callbackRef:c}of o){const o=s.deref(),i=c.deref();void 0===o||void 0===i||o.dispatchEvent(new e(n.context,o,i,!0))}},this.onContextRequest=e=>{if(!0!==e.subscribe)return;const n=e.contextTarget??e.composedPath()[0],s=e.callback;let o=this.pendingContextRequests.get(e.context);void 0===o&&this.pendingContextRequests.set(e.context,o={callbacks:new WeakMap,requests:[]});let c=o.callbacks.get(n);void 0===c&&o.callbacks.set(n,c=new WeakSet),c.has(s)||(c.add(s),o.requests.push({elementRef:new WeakRef(n),callbackRef:new WeakRef(s)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}let n=!1;function s(){n||"undefined"==typeof document||(n=!0,(new t).attach(document.documentElement))}export{s as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,t;!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const a of e)t[a]=a;return t},e.getValidEnumValues=t=>{const a=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),s={};for(const e of a)s[e]=t[e];return e.objectValues(s)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.push(a);return t},e.find=(e,t)=>{for(const a of e)if(t(a))return a},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(e||(e={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(t||(t={}));const a=e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{switch(typeof e){case"undefined":return a.undefined;case"string":return a.string;case"number":return Number.isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"symbol":return a.symbol;case"object":return Array.isArray(e)?a.array:null===e?a.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?a.promise:"undefined"!=typeof Map&&e instanceof Map?a.map:"undefined"!=typeof Set&&e instanceof Set?a.set:"undefined"!=typeof Date&&e instanceof Date?a.date:a.object;default:return a.unknown}},n=e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ZodError extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},a={_errors:[]},s=e=>{for(const n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(s);else if("invalid_return_type"===n.code)s(n.returnTypeError);else if("invalid_arguments"===n.code)s(n.argumentsError);else if(0===n.path.length)a._errors.push(t(n));else{let e=a,s=0;for(;s<n.path.length;){const a=n.path[s];s===n.path.length-1?(e[a]=e[a]||{_errors:[]},e[a]._errors.push(t(n))):e[a]=e[a]||{_errors:[]},e=e[a],s++}}};return s(this),a}static assert(e){if(!(e instanceof ZodError))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,e.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},a=[];for(const s of this.issues)if(s.path.length>0){const a=s.path[0];t[a]=t[a]||[],t[a].push(e(s))}else a.push(e(s));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}ZodError.create=e=>new ZodError(e);const r=(t,s)=>{let r;switch(t.code){case n.invalid_type:r=t.received===a.undefined?"Required":`Expected ${t.expected}, received ${t.received}`;break;case n.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,e.jsonStringifyReplacer)}`;break;case n.unrecognized_keys:r=`Unrecognized key(s) in object: ${e.joinValues(t.keys,", ")}`;break;case n.invalid_union:r="Invalid input";break;case n.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${e.joinValues(t.options)}`;break;case n.invalid_enum_value:r=`Invalid enum value. Expected ${e.joinValues(t.options)}, received '${t.received}'`;break;case n.invalid_arguments:r="Invalid function arguments";break;case n.invalid_return_type:r="Invalid function return type";break;case n.invalid_date:r="Invalid date";break;case n.invalid_string:"object"==typeof t.validation?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,"number"==typeof t.validation.position&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:e.assertNever(t.validation):r="regex"!==t.validation?`Invalid ${t.validation}`:"Invalid";break;case n.too_small:r="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:"number"===t.type||"bigint"===t.type?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:"date"===t.type?`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:"Invalid input";break;case n.too_big:r="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"bigint"===t.type?`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"date"===t.type?`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:"Invalid input";break;case n.custom:r="Invalid input";break;case n.invalid_intersection_types:r="Intersection results could not be merged";break;case n.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case n.not_finite:r="Number must be finite";break;default:r=s.defaultError,e.assertNever(t)}return{message:r}};let i=r;function o(){return i}const d=e=>{const{data:t,path:a,errorMaps:s,issueData:n}=e,r=[...a,...n.path||[]],i={...n,path:r};if(void 0!==n.message)return{...n,path:r,message:n.message};let o="";const d=s.filter(e=>!!e).slice().reverse();for(const e of d)o=e(i,{data:t,defaultError:o}).message;return{...n,path:r,message:o}};function c(e,t){const a=o(),s=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===r?void 0:r].filter(e=>!!e)});e.common.issues.push(s)}class ParseStatus{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const a=[];for(const s of t){if("aborted"===s.status)return u;"dirty"===s.status&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){const a=[];for(const e of t){const t=await e.key,s=await e.value;a.push({key:t,value:s})}return ParseStatus.mergeObjectSync(e,a)}static mergeObjectSync(e,t){const a={};for(const s of t){const{key:t,value:n}=s;if("aborted"===t.status)return u;if("aborted"===n.status)return u;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"===t.value||void 0===n.value&&!s.alwaysSet||(a[t.value]=n.value)}return{status:e.value,value:a}}}const u=Object.freeze({status:"aborted"}),l=e=>({status:"dirty",value:e}),p=e=>({status:"valid",value:e}),h=e=>"aborted"===e.status,m=e=>"dirty"===e.status,f=e=>"valid"===e.status,y=e=>"undefined"!=typeof Promise&&e instanceof Promise;var _;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(_||(_={}));class ParseInputLazyPath{constructor(e,t,a,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const g=(e,t)=>{if(f(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ZodError(e.common.issues);return this._error=t,this._error}}};function v(e){if(!e)return{};const{errorMap:t,invalid_type_error:a,required_error:s,description:n}=e;if(t&&(a||s))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:n};return{errorMap:(t,n)=>{const{message:r}=e;return"invalid_enum_value"===t.code?{message:r??n.defaultError}:void 0===n.data?{message:r??s??n.defaultError}:"invalid_type"!==t.code?{message:n.defaultError}:{message:r??a??n.defaultError}},description:n}}class ZodType{get description(){return this._def.description}_getType(e){return s(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(y(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){const a={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},n=this._parseSync({data:e,path:a.path,parent:a});return g(a,n)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)};if(!this["~standard"].async)try{const a=this._parseSync({data:e,path:[],parent:t});return f(a)?{value:a.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>f(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){const a={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},n=this._parse({data:e,path:a.path,parent:a}),r=await(y(n)?n:Promise.resolve(n));return g(a,r)}refine(e,t){const a=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,s)=>{const r=e(t),i=()=>s.addIssue({code:n.custom,...a(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then(e=>!!e||(i(),!1)):!!r||(i(),!1)})}refinement(e,t){return this._refinement((a,s)=>!!e(a)||(s.addIssue("function"==typeof t?t(a,s):t),!1))}_refinement(e){return new ZodEffects({schema:this,typeName:X.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(e){return ZodUnion.create([this,e],this._def)}and(e){return ZodIntersection.create(this,e,this._def)}transform(e){return new ZodEffects({...v(this._def),schema:this,typeName:X.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new ZodDefault({...v(this._def),innerType:this,defaultValue:t,typeName:X.ZodDefault})}brand(){return new ZodBranded({typeName:X.ZodBranded,type:this,...v(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ZodCatch({...v(this._def),innerType:this,catchValue:t,typeName:X.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ZodPipeline.create(this,e)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Z=/^c[^\s-]{8,}$/i,b=/^[0-9a-z]+$/,k=/^[0-9A-HJKMNP-TV-Z]{26}$/i,x=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,w=/^[a-z0-9_-]{21}$/i,T=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,N=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,O=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let S;const A=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,E=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,j=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,C=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,P=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,I=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,R="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",$=new RegExp(`^${R}$`);function L(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function M(e){return new RegExp(`^${L(e)}$`)}function z(e){let t=`${R}T${L(e)}`;const a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}function D(e,t){return!("v4"!==t&&t||!A.test(e))||!("v6"!==t&&t||!j.test(e))}function F(e,t){if(!T.test(e))return!1;try{const[a]=e.split(".");if(!a)return!1;const s=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),n=JSON.parse(atob(s));return"object"==typeof n&&null!==n&&((!("typ"in n)||"JWT"===n?.typ)&&(!!n.alg&&(!t||n.alg===t)))}catch{return!1}}function U(e,t){return!("v4"!==t&&t||!E.test(e))||!("v6"!==t&&t||!C.test(e))}class ZodString extends ZodType{_parse(t){this._def.coerce&&(t.data=String(t.data));if(this._getType(t)!==a.string){const e=this._getOrReturnCtx(t);return c(e,{code:n.invalid_type,expected:a.string,received:e.parsedType}),u}const s=new ParseStatus;let r;for(const a of this._def.checks)if("min"===a.kind)t.data.length<a.value&&(r=this._getOrReturnCtx(t,r),c(r,{code:n.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if("max"===a.kind)t.data.length>a.value&&(r=this._getOrReturnCtx(t,r),c(r,{code:n.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if("length"===a.kind){const e=t.data.length>a.value,i=t.data.length<a.value;(e||i)&&(r=this._getOrReturnCtx(t,r),e?c(r,{code:n.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):i&&c(r,{code:n.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),s.dirty())}else if("email"===a.kind)O.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"email",code:n.invalid_string,message:a.message}),s.dirty());else if("emoji"===a.kind)S||(S=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),S.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"emoji",code:n.invalid_string,message:a.message}),s.dirty());else if("uuid"===a.kind)x.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"uuid",code:n.invalid_string,message:a.message}),s.dirty());else if("nanoid"===a.kind)w.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"nanoid",code:n.invalid_string,message:a.message}),s.dirty());else if("cuid"===a.kind)Z.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"cuid",code:n.invalid_string,message:a.message}),s.dirty());else if("cuid2"===a.kind)b.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"cuid2",code:n.invalid_string,message:a.message}),s.dirty());else if("ulid"===a.kind)k.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"ulid",code:n.invalid_string,message:a.message}),s.dirty());else if("url"===a.kind)try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),c(r,{validation:"url",code:n.invalid_string,message:a.message}),s.dirty()}else if("regex"===a.kind){a.regex.lastIndex=0;a.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"regex",code:n.invalid_string,message:a.message}),s.dirty())}else if("trim"===a.kind)t.data=t.data.trim();else if("includes"===a.kind)t.data.includes(a.value,a.position)||(r=this._getOrReturnCtx(t,r),c(r,{code:n.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),s.dirty());else if("toLowerCase"===a.kind)t.data=t.data.toLowerCase();else if("toUpperCase"===a.kind)t.data=t.data.toUpperCase();else if("startsWith"===a.kind)t.data.startsWith(a.value)||(r=this._getOrReturnCtx(t,r),c(r,{code:n.invalid_string,validation:{startsWith:a.value},message:a.message}),s.dirty());else if("endsWith"===a.kind)t.data.endsWith(a.value)||(r=this._getOrReturnCtx(t,r),c(r,{code:n.invalid_string,validation:{endsWith:a.value},message:a.message}),s.dirty());else if("datetime"===a.kind){z(a).test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{code:n.invalid_string,validation:"datetime",message:a.message}),s.dirty())}else if("date"===a.kind){$.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{code:n.invalid_string,validation:"date",message:a.message}),s.dirty())}else if("time"===a.kind){M(a).test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{code:n.invalid_string,validation:"time",message:a.message}),s.dirty())}else"duration"===a.kind?N.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"duration",code:n.invalid_string,message:a.message}),s.dirty()):"ip"===a.kind?D(t.data,a.version)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"ip",code:n.invalid_string,message:a.message}),s.dirty()):"jwt"===a.kind?F(t.data,a.alg)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"jwt",code:n.invalid_string,message:a.message}),s.dirty()):"cidr"===a.kind?U(t.data,a.version)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"cidr",code:n.invalid_string,message:a.message}),s.dirty()):"base64"===a.kind?P.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"base64",code:n.invalid_string,message:a.message}),s.dirty()):"base64url"===a.kind?I.test(t.data)||(r=this._getOrReturnCtx(t,r),c(r,{validation:"base64url",code:n.invalid_string,message:a.message}),s.dirty()):e.assertNever(a);return{status:s.value,value:t.data}}_regex(e,t,a){return this.refinement(t=>e.test(t),{validation:t,code:n.invalid_string,..._.errToObj(a)})}_addCheck(e){return new ZodString({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",..._.errToObj(e)})}url(e){return this._addCheck({kind:"url",..._.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",..._.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",..._.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",..._.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",..._.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",..._.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",..._.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",..._.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",..._.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",..._.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",..._.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",..._.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,..._.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,..._.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",..._.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,..._.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,..._.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,..._.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,..._.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,..._.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,..._.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,..._.errToObj(t)})}nonempty(e){return this.min(1,_.errToObj(e))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function V(e,t){const a=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,n=a>s?a:s;return Number.parseInt(e.toFixed(n).replace(".",""))%Number.parseInt(t.toFixed(n).replace(".",""))/10**n}ZodString.create=e=>new ZodString({checks:[],typeName:X.ZodString,coerce:e?.coerce??!1,...v(e)});class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){this._def.coerce&&(t.data=Number(t.data));if(this._getType(t)!==a.number){const e=this._getOrReturnCtx(t);return c(e,{code:n.invalid_type,expected:a.number,received:e.parsedType}),u}let s;const r=new ParseStatus;for(const a of this._def.checks)if("int"===a.kind)e.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),c(s,{code:n.invalid_type,expected:"integer",received:"float",message:a.message}),r.dirty());else if("min"===a.kind){(a.inclusive?t.data<a.value:t.data<=a.value)&&(s=this._getOrReturnCtx(t,s),c(s,{code:n.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty())}else if("max"===a.kind){(a.inclusive?t.data>a.value:t.data>=a.value)&&(s=this._getOrReturnCtx(t,s),c(s,{code:n.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty())}else"multipleOf"===a.kind?0!==V(t.data,a.value)&&(s=this._getOrReturnCtx(t,s),c(s,{code:n.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):"finite"===a.kind?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),c(s,{code:n.not_finite,message:a.message}),r.dirty()):e.assertNever(a);return{status:r.value,value:t.data}}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,a,s){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:_.toString(s)}]})}_addCheck(e){return new ZodNumber({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:_.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:_.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(t=>"int"===t.kind||"multipleOf"===t.kind&&e.isInteger(t.value))}get isFinite(){let e=null,t=null;for(const a of this._def.checks){if("finite"===a.kind||"int"===a.kind||"multipleOf"===a.kind)return!0;"min"===a.kind?(null===t||a.value>t)&&(t=a.value):"max"===a.kind&&(null===e||a.value<e)&&(e=a.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ZodNumber.create=e=>new ZodNumber({checks:[],typeName:X.ZodNumber,coerce:e?.coerce||!1,...v(e)});class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==a.bigint)return this._getInvalidInput(t);let s;const r=new ParseStatus;for(const a of this._def.checks)if("min"===a.kind){(a.inclusive?t.data<a.value:t.data<=a.value)&&(s=this._getOrReturnCtx(t,s),c(s,{code:n.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty())}else if("max"===a.kind){(a.inclusive?t.data>a.value:t.data>=a.value)&&(s=this._getOrReturnCtx(t,s),c(s,{code:n.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty())}else"multipleOf"===a.kind?t.data%a.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),c(s,{code:n.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):e.assertNever(a);return{status:r.value,value:t.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return c(t,{code:n.invalid_type,expected:a.bigint,received:t.parsedType}),u}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,a,s){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:_.toString(s)}]})}_addCheck(e){return new ZodBigInt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ZodBigInt.create=e=>new ZodBigInt({checks:[],typeName:X.ZodBigInt,coerce:e?.coerce??!1,...v(e)});class ZodBoolean extends ZodType{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==a.boolean){const t=this._getOrReturnCtx(e);return c(t,{code:n.invalid_type,expected:a.boolean,received:t.parsedType}),u}return p(e.data)}}ZodBoolean.create=e=>new ZodBoolean({typeName:X.ZodBoolean,coerce:e?.coerce||!1,...v(e)});class ZodDate extends ZodType{_parse(t){this._def.coerce&&(t.data=new Date(t.data));if(this._getType(t)!==a.date){const e=this._getOrReturnCtx(t);return c(e,{code:n.invalid_type,expected:a.date,received:e.parsedType}),u}if(Number.isNaN(t.data.getTime())){return c(this._getOrReturnCtx(t),{code:n.invalid_date}),u}const s=new ParseStatus;let r;for(const a of this._def.checks)"min"===a.kind?t.data.getTime()<a.value&&(r=this._getOrReturnCtx(t,r),c(r,{code:n.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),s.dirty()):"max"===a.kind?t.data.getTime()>a.value&&(r=this._getOrReturnCtx(t,r),c(r,{code:n.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),s.dirty()):e.assertNever(a);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(e){return new ZodDate({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:_.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:_.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ZodDate.create=e=>new ZodDate({checks:[],coerce:e?.coerce||!1,typeName:X.ZodDate,...v(e)});class ZodSymbol extends ZodType{_parse(e){if(this._getType(e)!==a.symbol){const t=this._getOrReturnCtx(e);return c(t,{code:n.invalid_type,expected:a.symbol,received:t.parsedType}),u}return p(e.data)}}ZodSymbol.create=e=>new ZodSymbol({typeName:X.ZodSymbol,...v(e)});class ZodUndefined extends ZodType{_parse(e){if(this._getType(e)!==a.undefined){const t=this._getOrReturnCtx(e);return c(t,{code:n.invalid_type,expected:a.undefined,received:t.parsedType}),u}return p(e.data)}}ZodUndefined.create=e=>new ZodUndefined({typeName:X.ZodUndefined,...v(e)});class ZodNull extends ZodType{_parse(e){if(this._getType(e)!==a.null){const t=this._getOrReturnCtx(e);return c(t,{code:n.invalid_type,expected:a.null,received:t.parsedType}),u}return p(e.data)}}ZodNull.create=e=>new ZodNull({typeName:X.ZodNull,...v(e)});class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(e){return p(e.data)}}ZodAny.create=e=>new ZodAny({typeName:X.ZodAny,...v(e)});class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(e){return p(e.data)}}ZodUnknown.create=e=>new ZodUnknown({typeName:X.ZodUnknown,...v(e)});class ZodNever extends ZodType{_parse(e){const t=this._getOrReturnCtx(e);return c(t,{code:n.invalid_type,expected:a.never,received:t.parsedType}),u}}ZodNever.create=e=>new ZodNever({typeName:X.ZodNever,...v(e)});class ZodVoid extends ZodType{_parse(e){if(this._getType(e)!==a.undefined){const t=this._getOrReturnCtx(e);return c(t,{code:n.invalid_type,expected:a.void,received:t.parsedType}),u}return p(e.data)}}ZodVoid.create=e=>new ZodVoid({typeName:X.ZodVoid,...v(e)});class ZodArray extends ZodType{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),r=this._def;if(t.parsedType!==a.array)return c(t,{code:n.invalid_type,expected:a.array,received:t.parsedType}),u;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(c(t,{code:e?n.too_big:n.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(c(t,{code:n.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(c(t,{code:n.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((e,a)=>r.type._parseAsync(new ParseInputLazyPath(t,e,t.path,a)))).then(e=>ParseStatus.mergeArray(s,e));const i=[...t.data].map((e,a)=>r.type._parseSync(new ParseInputLazyPath(t,e,t.path,a)));return ParseStatus.mergeArray(s,i)}get element(){return this._def.type}min(e,t){return new ZodArray({...this._def,minLength:{value:e,message:_.toString(t)}})}max(e,t){return new ZodArray({...this._def,maxLength:{value:e,message:_.toString(t)}})}length(e,t){return new ZodArray({...this._def,exactLength:{value:e,message:_.toString(t)}})}nonempty(e){return this.min(1,e)}}function B(e){if(e instanceof ZodObject){const t={};for(const a in e.shape){const s=e.shape[a];t[a]=ZodOptional.create(B(s))}return new ZodObject({...e._def,shape:()=>t})}return e instanceof ZodArray?new ZodArray({...e._def,type:B(e.element)}):e instanceof ZodOptional?ZodOptional.create(B(e.unwrap())):e instanceof ZodNullable?ZodNullable.create(B(e.unwrap())):e instanceof ZodTuple?ZodTuple.create(e.items.map(e=>B(e))):e}ZodArray.create=(e,t)=>new ZodArray({type:e,minLength:null,maxLength:null,exactLength:null,typeName:X.ZodArray,...v(t)});class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const t=this._def.shape(),a=e.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(e){if(this._getType(e)!==a.object){const t=this._getOrReturnCtx(e);return c(t,{code:n.invalid_type,expected:a.object,received:t.parsedType}),u}const{status:t,ctx:s}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(const e in s.data)i.includes(e)||o.push(e);const d=[];for(const e of i){const t=r[e],a=s.data[e];d.push({key:{status:"valid",value:e},value:t._parse(new ParseInputLazyPath(s,a,s.path,e)),alwaysSet:e in s.data})}if(this._def.catchall instanceof ZodNever){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of o)d.push({key:{status:"valid",value:e},value:{status:"valid",value:s.data[e]}});else if("strict"===e)o.length>0&&(c(s,{code:n.unrecognized_keys,keys:o}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of o){const a=s.data[t];d.push({key:{status:"valid",value:t},value:e._parse(new ParseInputLazyPath(s,a,s.path,t)),alwaysSet:t in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of d){const a=await t.key,s=await t.value;e.push({key:a,value:s,alwaysSet:t.alwaysSet})}return e}).then(e=>ParseStatus.mergeObjectSync(t,e)):ParseStatus.mergeObjectSync(t,d)}get shape(){return this._def.shape()}strict(e){return _.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,a)=>{const s=this._def.errorMap?.(t,a).message??a.defaultError;return"unrecognized_keys"===t.code?{message:_.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(e){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ZodObject({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:X.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ZodObject({...this._def,catchall:e})}pick(t){const a={};for(const s of e.objectKeys(t))t[s]&&this.shape[s]&&(a[s]=this.shape[s]);return new ZodObject({...this._def,shape:()=>a})}omit(t){const a={};for(const s of e.objectKeys(this.shape))t[s]||(a[s]=this.shape[s]);return new ZodObject({...this._def,shape:()=>a})}deepPartial(){return B(this)}partial(t){const a={};for(const s of e.objectKeys(this.shape)){const e=this.shape[s];t&&!t[s]?a[s]=e:a[s]=e.optional()}return new ZodObject({...this._def,shape:()=>a})}required(t){const a={};for(const s of e.objectKeys(this.shape))if(t&&!t[s])a[s]=this.shape[s];else{let e=this.shape[s];for(;e instanceof ZodOptional;)e=e._def.innerType;a[s]=e}return new ZodObject({...this._def,shape:()=>a})}keyof(){return q(e.objectKeys(this.shape))}}ZodObject.create=(e,t)=>new ZodObject({shape:()=>e,unknownKeys:"strip",catchall:ZodNever.create(),typeName:X.ZodObject,...v(t)}),ZodObject.strictCreate=(e,t)=>new ZodObject({shape:()=>e,unknownKeys:"strict",catchall:ZodNever.create(),typeName:X.ZodObject,...v(t)}),ZodObject.lazycreate=(e,t)=>new ZodObject({shape:e,unknownKeys:"strip",catchall:ZodNever.create(),typeName:X.ZodObject,...v(t)});class ZodUnion extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),a=this._def.options;if(t.common.async)return Promise.all(a.map(async e=>{const a={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:a}),ctx:a}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;const a=e.map(e=>new ZodError(e.ctx.common.issues));return c(t,{code:n.invalid_union,unionErrors:a}),u});{let e;const s=[];for(const n of a){const a={...t,common:{...t.common,issues:[]},parent:null},r=n._parseSync({data:t.data,path:t.path,parent:a});if("valid"===r.status)return r;"dirty"!==r.status||e||(e={result:r,ctx:a}),a.common.issues.length&&s.push(a.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=s.map(e=>new ZodError(e));return c(t,{code:n.invalid_union,unionErrors:r}),u}}get options(){return this._def.options}}ZodUnion.create=(e,t)=>new ZodUnion({options:e,typeName:X.ZodUnion,...v(t)});const K=t=>t instanceof ZodLazy?K(t.schema):t instanceof ZodEffects?K(t.innerType()):t instanceof ZodLiteral?[t.value]:t instanceof ZodEnum?t.options:t instanceof ZodNativeEnum?e.objectValues(t.enum):t instanceof ZodDefault?K(t._def.innerType):t instanceof ZodUndefined?[void 0]:t instanceof ZodNull?[null]:t instanceof ZodOptional?[void 0,...K(t.unwrap())]:t instanceof ZodNullable?[null,...K(t.unwrap())]:t instanceof ZodBranded||t instanceof ZodReadonly?K(t.unwrap()):t instanceof ZodCatch?K(t._def.innerType):[];class ZodDiscriminatedUnion extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.object)return c(t,{code:n.invalid_type,expected:a.object,received:t.parsedType}),u;const s=this.discriminator,r=t.data[s],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(c(t,{code:n.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),u)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){const s=new Map;for(const a of t){const t=K(a.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(s.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);s.set(n,a)}}return new ZodDiscriminatedUnion({typeName:X.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...v(a)})}}function W(t,n){const r=s(t),i=s(n);if(t===n)return{valid:!0,data:t};if(r===a.object&&i===a.object){const a=e.objectKeys(n),s=e.objectKeys(t).filter(e=>-1!==a.indexOf(e)),r={...t,...n};for(const e of s){const a=W(t[e],n[e]);if(!a.valid)return{valid:!1};r[e]=a.data}return{valid:!0,data:r}}if(r===a.array&&i===a.array){if(t.length!==n.length)return{valid:!1};const e=[];for(let a=0;a<t.length;a++){const s=W(t[a],n[a]);if(!s.valid)return{valid:!1};e.push(s.data)}return{valid:!0,data:e}}return r===a.date&&i===a.date&&+t===+n?{valid:!0,data:t}:{valid:!1}}class ZodIntersection extends ZodType{_parse(e){const{status:t,ctx:a}=this._processInputParams(e),s=(e,s)=>{if(h(e)||h(s))return u;const r=W(e.value,s.value);return r.valid?((m(e)||m(s))&&t.dirty(),{status:t.value,value:r.data}):(c(a,{code:n.invalid_intersection_types}),u)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([e,t])=>s(e,t)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}ZodIntersection.create=(e,t,a)=>new ZodIntersection({left:e,right:t,typeName:X.ZodIntersection,...v(a)});class ZodTuple extends ZodType{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==a.array)return c(s,{code:n.invalid_type,expected:a.array,received:s.parsedType}),u;if(s.data.length<this._def.items.length)return c(s,{code:n.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u;!this._def.rest&&s.data.length>this._def.items.length&&(c(s,{code:n.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...s.data].map((e,t)=>{const a=this._def.items[t]||this._def.rest;return a?a._parse(new ParseInputLazyPath(s,e,s.path,t)):null}).filter(e=>!!e);return s.common.async?Promise.all(r).then(e=>ParseStatus.mergeArray(t,e)):ParseStatus.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new ZodTuple({...this._def,rest:e})}}ZodTuple.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:e,typeName:X.ZodTuple,rest:null,...v(t)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==a.object)return c(s,{code:n.invalid_type,expected:a.object,received:s.parsedType}),u;const r=[],i=this._def.keyType,o=this._def.valueType;for(const e in s.data)r.push({key:i._parse(new ParseInputLazyPath(s,e,s.path,e)),value:o._parse(new ParseInputLazyPath(s,s.data[e],s.path,e)),alwaysSet:e in s.data});return s.common.async?ParseStatus.mergeObjectAsync(t,r):ParseStatus.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,a){return new ZodRecord(t instanceof ZodType?{keyType:e,valueType:t,typeName:X.ZodRecord,...v(a)}:{keyType:ZodString.create(),valueType:e,typeName:X.ZodRecord,...v(t)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==a.map)return c(s,{code:n.invalid_type,expected:a.map,received:s.parsedType}),u;const r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([e,t],a)=>({key:r._parse(new ParseInputLazyPath(s,e,s.path,[a,"key"])),value:i._parse(new ParseInputLazyPath(s,t,s.path,[a,"value"]))}));if(s.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const a of o){const s=await a.key,n=await a.value;if("aborted"===s.status||"aborted"===n.status)return u;"dirty"!==s.status&&"dirty"!==n.status||t.dirty(),e.set(s.value,n.value)}return{status:t.value,value:e}})}{const e=new Map;for(const a of o){const s=a.key,n=a.value;if("aborted"===s.status||"aborted"===n.status)return u;"dirty"!==s.status&&"dirty"!==n.status||t.dirty(),e.set(s.value,n.value)}return{status:t.value,value:e}}}}ZodMap.create=(e,t,a)=>new ZodMap({valueType:t,keyType:e,typeName:X.ZodMap,...v(a)});class ZodSet extends ZodType{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==a.set)return c(s,{code:n.invalid_type,expected:a.set,received:s.parsedType}),u;const r=this._def;null!==r.minSize&&s.data.size<r.minSize.value&&(c(s,{code:n.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&s.data.size>r.maxSize.value&&(c(s,{code:n.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const i=this._def.valueType;function o(e){const a=new Set;for(const s of e){if("aborted"===s.status)return u;"dirty"===s.status&&t.dirty(),a.add(s.value)}return{status:t.value,value:a}}const d=[...s.data.values()].map((e,t)=>i._parse(new ParseInputLazyPath(s,e,s.path,t)));return s.common.async?Promise.all(d).then(e=>o(e)):o(d)}min(e,t){return new ZodSet({...this._def,minSize:{value:e,message:_.toString(t)}})}max(e,t){return new ZodSet({...this._def,maxSize:{value:e,message:_.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ZodSet.create=(e,t)=>new ZodSet({valueType:e,minSize:null,maxSize:null,typeName:X.ZodSet,...v(t)});class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.function)return c(t,{code:n.invalid_type,expected:a.function,received:t.parsedType}),u;function s(e,a){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,o(),r].filter(e=>!!e),issueData:{code:n.invalid_arguments,argumentsError:a}})}function i(e,a){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,o(),r].filter(e=>!!e),issueData:{code:n.invalid_return_type,returnTypeError:a}})}const l={errorMap:t.common.contextualErrorMap},h=t.data;if(this._def.returns instanceof ZodPromise){const e=this;return p(async function(...t){const a=new ZodError([]),n=await e._def.args.parseAsync(t,l).catch(e=>{throw a.addIssue(s(t,e)),a}),r=await Reflect.apply(h,this,n);return await e._def.returns._def.type.parseAsync(r,l).catch(e=>{throw a.addIssue(i(r,e)),a})})}{const e=this;return p(function(...t){const a=e._def.args.safeParse(t,l);if(!a.success)throw new ZodError([s(t,a.error)]);const n=Reflect.apply(h,this,a.data),r=e._def.returns.safeParse(n,l);if(!r.success)throw new ZodError([i(n,r.error)]);return r.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ZodFunction({...this._def,args:ZodTuple.create(e).rest(ZodUnknown.create())})}returns(e){return new ZodFunction({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new ZodFunction({args:e||ZodTuple.create([]).rest(ZodUnknown.create()),returns:t||ZodUnknown.create(),typeName:X.ZodFunction,...v(a)})}}class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ZodLazy.create=(e,t)=>new ZodLazy({getter:e,typeName:X.ZodLazy,...v(t)});class ZodLiteral extends ZodType{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return c(t,{received:t.data,code:n.invalid_literal,expected:this._def.value}),u}return{status:"valid",value:e.data}}get value(){return this._def.value}}function q(e,t){return new ZodEnum({values:e,typeName:X.ZodEnum,...v(t)})}ZodLiteral.create=(e,t)=>new ZodLiteral({value:e,typeName:X.ZodLiteral,...v(t)});class ZodEnum extends ZodType{_parse(t){if("string"!=typeof t.data){const a=this._getOrReturnCtx(t),s=this._def.values;return c(a,{expected:e.joinValues(s),received:a.parsedType,code:n.invalid_type}),u}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const e=this._getOrReturnCtx(t),a=this._def.values;return c(e,{received:e.data,code:n.invalid_enum_value,options:a}),u}return p(t.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ZodEnum.create(e,{...this._def,...t})}exclude(e,t=this._def){return ZodEnum.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ZodEnum.create=q;class ZodNativeEnum extends ZodType{_parse(t){const s=e.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==a.string&&r.parsedType!==a.number){const t=e.objectValues(s);return c(r,{expected:e.joinValues(t),received:r.parsedType,code:n.invalid_type}),u}if(this._cache||(this._cache=new Set(e.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const t=e.objectValues(s);return c(r,{received:r.data,code:n.invalid_enum_value,options:t}),u}return p(t.data)}get enum(){return this._def.values}}ZodNativeEnum.create=(e,t)=>new ZodNativeEnum({values:e,typeName:X.ZodNativeEnum,...v(t)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.promise&&!1===t.common.async)return c(t,{code:n.invalid_type,expected:a.promise,received:t.parsedType}),u;const s=t.parsedType===a.promise?t.data:Promise.resolve(t.data);return p(s.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ZodPromise.create=(e,t)=>new ZodPromise({type:e,typeName:X.ZodPromise,...v(t)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===X.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:a,ctx:s}=this._processInputParams(t),n=this._def.effect||null,r={addIssue:e=>{c(s,e),e.fatal?a.abort():a.dirty()},get path(){return s.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===n.type){const e=n.transform(s.data,r);if(s.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===a.value)return u;const t=await this._def.schema._parseAsync({data:e,path:s.path,parent:s});return"aborted"===t.status?u:"dirty"===t.status||"dirty"===a.value?l(t.value):t});{if("aborted"===a.value)return u;const t=this._def.schema._parseSync({data:e,path:s.path,parent:s});return"aborted"===t.status?u:"dirty"===t.status||"dirty"===a.value?l(t.value):t}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,r);if(s.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===s.common.async){const t=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return"aborted"===t.status?u:("dirty"===t.status&&a.dirty(),e(t.value),{status:a.value,value:t.value})}return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(t=>"aborted"===t.status?u:("dirty"===t.status&&a.dirty(),e(t.value).then(()=>({status:a.value,value:t.value}))))}if("transform"===n.type){if(!1===s.common.async){const e=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!f(e))return u;const t=n.transform(e.value,r);if(t instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:t}}return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(e=>f(e)?Promise.resolve(n.transform(e.value,r)).then(e=>({status:a.value,value:e})):u)}e.assertNever(n)}}ZodEffects.create=(e,t,a)=>new ZodEffects({schema:e,typeName:X.ZodEffects,effect:t,...v(a)}),ZodEffects.createWithPreprocess=(e,t,a)=>new ZodEffects({schema:t,effect:{type:"preprocess",transform:e},typeName:X.ZodEffects,...v(a)});class ZodOptional extends ZodType{_parse(e){return this._getType(e)===a.undefined?p(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ZodOptional.create=(e,t)=>new ZodOptional({innerType:e,typeName:X.ZodOptional,...v(t)});class ZodNullable extends ZodType{_parse(e){return this._getType(e)===a.null?p(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ZodNullable.create=(e,t)=>new ZodNullable({innerType:e,typeName:X.ZodNullable,...v(t)});class ZodDefault extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===a.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ZodDefault.create=(e,t)=>new ZodDefault({innerType:e,typeName:X.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...v(t)});class ZodCatch extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return y(s)?s.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new ZodError(a.common.issues)},input:a.data})})):{status:"valid",value:"valid"===s.status?s.value:this._def.catchValue({get error(){return new ZodError(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}ZodCatch.create=(e,t)=>new ZodCatch({innerType:e,typeName:X.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...v(t)});class ZodNaN extends ZodType{_parse(e){if(this._getType(e)!==a.nan){const t=this._getOrReturnCtx(e);return c(t,{code:n.invalid_type,expected:a.nan,received:t.parsedType}),u}return{status:"valid",value:e.data}}}ZodNaN.create=e=>new ZodNaN({typeName:X.ZodNaN,...v(e)});const J=Symbol("zod_brand");class ZodBranded extends ZodType{_parse(e){const{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?u:"dirty"===e.status?(t.dirty(),l(e.value)):this._def.out._parseAsync({data:e.value,path:a.path,parent:a})})()}{const e=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===e.status?u:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:a.path,parent:a})}}static create(e,t){return new ZodPipeline({in:e,out:t,typeName:X.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(e){const t=this._def.innerType._parse(e),a=e=>(f(e)&&(e.value=Object.freeze(e.value)),e);return y(t)?t.then(e=>a(e)):a(t)}unwrap(){return this._def.innerType}}function Y(e,t){const a="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof a?{message:a}:a}function H(e,t={},a){return e?ZodAny.create().superRefine((s,n)=>{const r=e(s);if(r instanceof Promise)return r.then(e=>{if(!e){const e=Y(t,s),r=e.fatal??a??!0;n.addIssue({code:"custom",...e,fatal:r})}});if(!r){const e=Y(t,s),r=e.fatal??a??!0;n.addIssue({code:"custom",...e,fatal:r})}}):ZodAny.create()}ZodReadonly.create=(e,t)=>new ZodReadonly({innerType:e,typeName:X.ZodReadonly,...v(t)});const G={object:ZodObject.lazycreate};var X;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(X||(X={}));const Q=(e,t={message:`Input not instance of ${e.name}`})=>H(t=>t instanceof e,t),ee=ZodString.create,te=ZodNumber.create,ae=ZodNaN.create,se=ZodBigInt.create,ne=ZodBoolean.create,re=ZodDate.create,ie=ZodSymbol.create,oe=ZodUndefined.create,de=ZodNull.create,ce=ZodAny.create,ue=ZodUnknown.create,le=ZodNever.create,pe=ZodVoid.create,he=ZodArray.create,me=ZodObject.create,fe=ZodObject.strictCreate,ye=ZodUnion.create,_e=ZodDiscriminatedUnion.create,ge=ZodIntersection.create,ve=ZodTuple.create,Ze=ZodRecord.create,be=ZodMap.create,ke=ZodSet.create,xe=ZodFunction.create,we=ZodLazy.create,Te=ZodLiteral.create,Ne=ZodEnum.create,Oe=ZodNativeEnum.create,Se=ZodPromise.create,Ae=ZodEffects.create,Ee=ZodOptional.create,je=ZodNullable.create,Ce=ZodEffects.createWithPreprocess,Pe=ZodPipeline.create,Ie={string:e=>ZodString.create({...e,coerce:!0}),number:e=>ZodNumber.create({...e,coerce:!0}),boolean:e=>ZodBoolean.create({...e,coerce:!0}),bigint:e=>ZodBigInt.create({...e,coerce:!0}),date:e=>ZodDate.create({...e,coerce:!0})},Re=u;var $e=Object.freeze({__proto__:null,BRAND:J,DIRTY:l,EMPTY_PATH:[],INVALID:u,NEVER:Re,OK:p,ParseStatus,Schema:ZodType,ZodAny,ZodArray,ZodBigInt,ZodBoolean,ZodBranded,ZodCatch,ZodDate,ZodDefault,ZodDiscriminatedUnion,ZodEffects,ZodEnum,ZodError,get ZodFirstPartyTypeKind(){return X},ZodFunction,ZodIntersection,ZodIssueCode:n,ZodLazy,ZodLiteral,ZodMap,ZodNaN,ZodNativeEnum,ZodNever,ZodNull,ZodNullable,ZodNumber,ZodObject,ZodOptional,ZodParsedType:a,ZodPipeline,ZodPromise,ZodReadonly,ZodRecord,ZodSchema:ZodType,ZodSet,ZodString,ZodSymbol,ZodTransformer:ZodEffects,ZodTuple,ZodType,ZodUndefined,ZodUnion,ZodUnknown,ZodVoid,addIssueToContext:c,any:ce,array:he,bigint:se,boolean:ne,coerce:Ie,custom:H,date:re,datetimeRegex:z,defaultErrorMap:r,discriminatedUnion:_e,effect:Ae,enum:Ne,function:xe,getErrorMap:o,getParsedType:s,instanceof:Q,intersection:ge,isAborted:h,isAsync:y,isDirty:m,isValid:f,late:G,lazy:we,literal:Te,makeIssue:d,map:be,nan:ae,nativeEnum:Oe,never:le,null:de,nullable:je,number:te,object:me,get objectUtil(){return t},oboolean:()=>ne().optional(),onumber:()=>te().optional(),optional:Ee,ostring:()=>ee().optional(),pipeline:Pe,preprocess:Ce,promise:Se,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),record:Ze,set:ke,setErrorMap:function(e){i=e},strictObject:fe,string:ee,symbol:ie,transformer:Ae,tuple:ve,undefined:oe,union:ye,unknown:ue,get util(){return e},void:pe});export{he as a,de as b,Oe as c,ue as d,Ne as e,ne as f,ce as g,Q as i,Te as l,te as n,me as o,Ze as r,ee as s,ye as u,$e as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as t,s as e,p as n,f as a}from"./parseISO-CEksKisk.js";function r(n,a,r){const[i,o]=t(r?.in,n,a);return+e(i)===+e(o)}function i(t,r){const i=n(t);if(r)try{const t=new Intl.DateTimeFormat("en-CA",{timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(i),e=e=>t.find(t=>t.type===e)?.value??"";return{dateKey:`${e("year")}-${e("month")}-${e("day")}`,label:`${e("hour")}:${e("minute")}`}}catch{}return{dateKey:a(e(i),"yyyy-MM-dd"),label:a(i,"HH:mm")}}function o(t,e){return i(t.toISOString(),e).dateKey}export{i as a,o as g,r as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as t}from"./chunk-6CCJWPGL-TiaqZaPV.js";import{D as n}from"./chunk-5EJXDIGT-Bb4_pfDr.js";function e(e,m,o){return{queryKey:t(e,"appointments",m.id),queryFn:()=>e.appointments.getAppointment(m),staleTime:n,...o}}export{e as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as n}from"./chunk-6CCJWPGL-TiaqZaPV.js";import{D as r}from"./chunk-5EJXDIGT-Bb4_pfDr.js";function t(t,o){return{queryKey:n(t,"organization-setup"),queryFn:()=>t.organizations.getOrganizationSetup(),staleTime:r,...o}}export{t as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e}from"./chunk-6CCJWPGL-TiaqZaPV.js";import{D as r}from"./chunk-5EJXDIGT-Bb4_pfDr.js";function t(t,i){return{queryKey:e(t,"patient-profile"),queryFn:()=>t.profile.getPatientProfile(),staleTime:r,...i}}export{t as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as e}from"./chunk-6CCJWPGL-TiaqZaPV.js";import{D as s}from"./chunk-5EJXDIGT-Bb4_pfDr.js";function r(r){return{queryKey:e(r,"schedule-services"),queryFn:()=>r.schedules.getScheduleServices(),staleTime:s}}export{r as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as t}from"./lit-element-B5-nYi7k.js";const e=e=>e??t;export{e as o};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as lit_html from 'lit-html';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import { D as DocumentType } from './document.model.d-DIzMiOmd.js';
|
|
5
|
+
import { M as MediquoApiChatClient } from './index.d-k8r5vUZn.js';
|
|
6
|
+
import '../ui/mq-button.js';
|
|
7
|
+
import '../ui/mq-skeleton.js';
|
|
8
|
+
|
|
9
|
+
declare class DocumentRow extends LitElement {
|
|
10
|
+
apiClient: MediquoApiChatClient;
|
|
11
|
+
static styles: lit.CSSResult;
|
|
12
|
+
documentId: string;
|
|
13
|
+
kind: DocumentType;
|
|
14
|
+
name: string;
|
|
15
|
+
specialty: string;
|
|
16
|
+
date: string;
|
|
17
|
+
downloadUrl: string;
|
|
18
|
+
patientHash: string;
|
|
19
|
+
private loginToken?;
|
|
20
|
+
private isDownloading;
|
|
21
|
+
private formatDate;
|
|
22
|
+
private formatKind;
|
|
23
|
+
private get kindClass();
|
|
24
|
+
private get metaLine();
|
|
25
|
+
private handleDownload;
|
|
26
|
+
render(): lit_html.TemplateResult<1>;
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
"document-row": DocumentRow;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface DocumentListItem {
|
|
35
|
+
documentId: string;
|
|
36
|
+
kind: DocumentType;
|
|
37
|
+
name: string;
|
|
38
|
+
specialty: string;
|
|
39
|
+
date: string;
|
|
40
|
+
downloadUrl: string;
|
|
41
|
+
}
|
|
42
|
+
declare class DocumentList extends LitElement {
|
|
43
|
+
static styles: lit.CSSResult;
|
|
44
|
+
documents: DocumentListItem[];
|
|
45
|
+
patientHash: string;
|
|
46
|
+
placeholders: number;
|
|
47
|
+
private get rows();
|
|
48
|
+
render(): lit_html.TemplateResult<1>[];
|
|
49
|
+
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface HTMLElementTagNameMap {
|
|
52
|
+
"document-list": DocumentList;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as lit_html from 'lit-html';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
import { M as MediquoApiChatClient } from './index.d-k8r5vUZn.js';
|
|
5
|
+
import '../ui/mq-button.js';
|
|
6
|
+
import { D as DocumentType } from './document.model.d-DIzMiOmd.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @fires download-file - Fired when the user requests a download (bubbles, composed; `url` and `filename` on the event)
|
|
10
|
+
*/
|
|
11
|
+
declare class PatientDocument extends LitElement {
|
|
12
|
+
apiClient: MediquoApiChatClient;
|
|
13
|
+
static styles: lit.CSSResult;
|
|
14
|
+
kind: DocumentType;
|
|
15
|
+
filename: string;
|
|
16
|
+
specialty: string;
|
|
17
|
+
description: string;
|
|
18
|
+
date: string;
|
|
19
|
+
downloadUrl: string;
|
|
20
|
+
private loginToken?;
|
|
21
|
+
isDownloading: boolean;
|
|
22
|
+
private getFormatter;
|
|
23
|
+
private _handleDownload;
|
|
24
|
+
private formatKind;
|
|
25
|
+
render(): lit_html.TemplateResult<1>;
|
|
26
|
+
}
|
|
27
|
+
declare global {
|
|
28
|
+
interface HTMLElementTagNameMap {
|
|
29
|
+
"patient-document": PatientDocument;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class SupportChatToggleRequestEvent extends Event{static{this.eventName="mq-support-chat-toggle-request"}constructor(){super(SupportChatToggleRequestEvent.eventName,{bubbles:!0,composed:!0})}}class SupportChatUnreadRequestEvent extends Event{static{this.eventName="mq-support-chat-unread-request"}constructor(){super(SupportChatUnreadRequestEvent.eventName,{bubbles:!0,composed:!0})}}class SupportChatUnreadChangeEvent extends Event{static{this.eventName="mq-support-chat-unread-change"}constructor(e){super(SupportChatUnreadChangeEvent.eventName,{bubbles:!0,composed:!0}),this.count=e}}class SupportChatOpenEvent extends Event{static{this.eventName="mq-support-chat-open"}constructor(){super(SupportChatOpenEvent.eventName,{bubbles:!0,composed:!0})}}class SupportChatCloseEvent extends Event{static{this.eventName="mq-support-chat-close"}constructor(){super(SupportChatCloseEvent.eventName,{bubbles:!0,composed:!0})}}export{SupportChatToggleRequestEvent as S,SupportChatUnreadRequestEvent as a,SupportChatUnreadChangeEvent as b,SupportChatOpenEvent as c,SupportChatCloseEvent as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as t}from"./chunk-6CCJWPGL-TiaqZaPV.js";import{D as e}from"./chunk-5EJXDIGT-Bb4_pfDr.js";import{_ as o,c as i}from"./custom-element-D2ziPxYE.js";import{t as r,d as a,a as s}from"./telemetry-client-DA2_SZBC.js";import{i as n,a as d,x as l,E as c}from"./lit-element-B5-nYi7k.js";import{n as p}from"./property-C1CmBSnw.js";import{c as m}from"./consume-CovVqBjI.js";import{m as h}from"./runtime-Bg1WXVCx.js";import{l as f}from"./localized-decorator-BlOuLhym.js";import{A as u}from"./api-client-context-BXGqBAlO.js";import{l as g}from"./chunk-S5RWG6G2-CQJ38pW6.js";import{D as y}from"./api-chat-client-CcYgqPdC.js";import{b as v}from"./blob-to-base64-CUL1trde.js";import{p as w,r as b}from"./chunk-NIAGR3ZC-BDlNUZa1.js";import{r as x}from"./state-Br45Av8Z.js";import{DownloadFileEvent as k}from"../events.js";import{getLocale as j}from"../i18n.js";import{download02Icon as $}from"../ui/icons/download-02-icon.js";import"../ui/mq-button.js";import{toast as D}from"../ui/mq-toast.js";import"../ui/mq-skeleton.js";function C(o,i){return{queryKey:t(o,"patient-documents",i),queryFn:()=>o.flash.getPatientDocuments(i),staleTime:e}}const I=n`:host{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-1) 0;width:100%;min-width:0;box-sizing:border-box}.details{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:1;min-width:0}.tag{display:inline-flex;align-items:center;border-radius:var(--border-radius-sm);padding:var(--sp-1) var(--sp-2);font-family:var(--font-body);font-size:var(--text-xs);line-height:1.35;font-weight:var(--font-weight-normal)}.tag.prescription{background-color:var(--color-feedback--info-subtle,#eceefd);color:var(--color-feedback--info-text,#4a1ea7)}.tag.report{background-color:var(--color-feedback--warning-subtle,#ffebce);color:var(--color-feedback--warning-text,#8f4700)}.tag.diagnostic-test-prescription{background-color:var(--color-feedback--success-subtle,#e8f6ec);color:var(--color-feedback--success-text,#16653a)}.text{display:flex;flex-direction:column;gap:var(--sp-1);width:100%;min-width:0}.name{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--primary,#0a0a22);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta{font-family:var(--font-body);font-size:var(--text-xs);line-height:1.35;font-weight:var(--font-weight-normal);color:var(--color-text-icons--secondary,#6d658b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;let q=class DocumentRow extends d{constructor(){super(...arguments),this.documentId="",this.name="",this.specialty="",this.date="",this.downloadUrl="",this.patientHash="",this.isDownloading=!1,this.handleDownload=async()=>{this.isDownloading=!0;try{r.track(a(this.patientHash,this.documentId));const t=await this.apiClient.flash.downloadDocument({url:this.downloadUrl}),e=await v(t);this.dispatchEvent(new k({url:e,filename:`${this.name}.pdf`}))}catch{D.error(h("No hemos podido descargar el documento."),{closeLabel:h("Cerrar")})}finally{this.isDownloading=!1}}}static{this.styles=I}formatDate(){const t=w(this.date);if(Number.isNaN(t.getTime()))return"";const e=j().replace("_","-");return new Intl.DateTimeFormat(e,{day:"2-digit",month:"2-digit",year:"2-digit",timeZone:b(this.loginToken?.patient?.timezone)}).format(t)}formatKind(){switch(this.kind){case y.prescription:return h("Receta");case y.report:return h("Informe");case y.diagnosticTestPrescription:return h("Orden médica")}}get kindClass(){return(this.kind??"").replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}get metaLine(){return[this.formatDate(),this.specialty].filter(Boolean).join(" - ")}render(){return l`<div class="details"><span class="tag ${this.kindClass}">${this.formatKind()}</span><div class="text"><span class="name" title="${this.name}">${this.name}</span> <span class="meta">${this.metaLine}</span></div></div><mq-button variant="outline" size="icon-lg" aria-label="${h("Descargar documento")}" ?disabled="${this.isDownloading}" @click="${this.handleDownload}">${$({size:24})}</mq-button>`}};function z(t,e,o){return t.map(t=>{const i=e?.find(e=>Number(e.id)===Number(t.professional.speciality_id));return{documentId:t.document_id,kind:t.document_type,name:t.name,specialty:s(i?.code??"",o,i?.name??t.professional.speciality_name),date:t.created_at,downloadUrl:t.url}})}o([m({context:u,subscribe:!0})],q.prototype,"apiClient",void 0),o([p({type:String})],q.prototype,"documentId",void 0),o([p({type:String})],q.prototype,"kind",void 0),o([p({type:String})],q.prototype,"name",void 0),o([p({type:String})],q.prototype,"specialty",void 0),o([p({type:String})],q.prototype,"date",void 0),o([p({type:String})],q.prototype,"downloadUrl",void 0),o([p({type:String})],q.prototype,"patientHash",void 0),o([m({context:g,subscribe:!0})],q.prototype,"loginToken",void 0),o([x()],q.prototype,"isDownloading",void 0),q=o([f(),i("document-row")],q);const S=n`:host{display:flex;flex-direction:column;gap:var(--sp-3);width:100%;min-width:0;box-sizing:border-box}.divider{height:1px;width:100%;background-color:var(--color-border-subtle,#edecf1);flex-shrink:0}`;let N=class DocumentList extends d{constructor(){super(...arguments),this.documents=[],this.patientHash="",this.placeholders=0}static{this.styles=S}get rows(){return this.placeholders>0?Array.from({length:this.placeholders},()=>l`<mq-skeleton height="${"77px"}"></mq-skeleton>`):this.documents.map(t=>l`<document-row documentId="${t.documentId}" kind="${t.kind}" name="${t.name}" specialty="${t.specialty}" date="${t.date}" downloadUrl="${t.downloadUrl}" patientHash="${this.patientHash}"></document-row>`)}render(){const t=this.rows;return t.map((e,o)=>l`${e} ${o<t.length-1?l`<div class="divider"></div>`:c}`)}};o([p({type:Array})],N.prototype,"documents",void 0),o([p({type:String})],N.prototype,"patientHash",void 0),o([p({type:Number})],N.prototype,"placeholders",void 0),N=o([i("document-list")],N);export{C as g,z as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t,c as e}from"./custom-element-D2ziPxYE.js";import{E as s,i,a as o,x as r}from"./lit-element-B5-nYi7k.js";import{n}from"./property-C1CmBSnw.js";import{r as l}from"./state-Br45Av8Z.js";import{e as a}from"./class-map-CXGDNDhW.js";import{f as d}from"./directive-helpers-m2qHStQ1.js";import{i as c,t as p,e as v}from"./directive-DrycXrFV.js";import{o as m}from"./style-map-MoXKugLp.js";import"../ui/mq-text-button.js";const u=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),u(t,e);return!0},x=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},$=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),_(e)}};function b(t){void 0!==this._$AN?(x(this),this._$AM=t,$(this)):this._$AM=t}function g(t,e=!1,s=0){const i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)u(i[t],!1),x(i[t]);else null!=i&&(u(i,!1),x(i));else u(this,t)}const _=t=>{t.type==p.CHILD&&(t._$AP??=g,t._$AQ??=b)};class f extends c{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),$(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(u(this,t),x(this))}setValue(t){if(d(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class h{}const A=new WeakMap,y=v(class extends f{render(t){return s}update(t,[e]){const i=e!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),s}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=A.get(e);void 0===s&&(s=new WeakMap,A.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?A.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),w=i`:host{display:flex;flex-direction:column;gap:var(--sp-1)}.text{margin:0}.text.is-clamped{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.toggle{align-self:flex-start}`;let C=class MqClampedText extends o{constructor(){super(...arguments),this.lines=2,this.expandLabel="",this.collapseLabel="",this.expanded=!1,this.overflowing=!1,this.textRef=new h,this.measure=()=>{const t=this.textRef.value;if(!t||this.expanded)return;const e=t.scrollHeight-t.clientHeight>1;e!==this.overflowing&&(this.overflowing=e)}}static{this.styles=w}updated(){const t=this.textRef.value;t&&!this.resizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.measure()),this.resizeObserver.observe(t)),this.measure()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.resizeObserver=void 0}render(){return r`<div ${y(this.textRef)} class="text ${a({"is-clamped":!this.expanded})}" style="${m({"-webkit-line-clamp":this.expanded?"":String(this.lines)})}"><slot @slotchange="${this.measure}"></slot></div>${this.expanded||this.overflowing?r`<mq-text-button class="toggle" type="button" size="sm" fontWeight="normal" underlined @click="${()=>{this.expanded=!this.expanded}}">${this.expanded?this.collapseLabel:this.expandLabel}</mq-text-button>`:s}`}};t([n({type:Number})],C.prototype,"lines",void 0),t([n({type:String,attribute:"expand-label"})],C.prototype,"expandLabel",void 0),t([n({type:String,attribute:"collapse-label"})],C.prototype,"collapseLabel",void 0),t([l()],C.prototype,"expanded",void 0),t([l()],C.prototype,"overflowing",void 0),C=t([e("mq-clamped-text")],C);export{C as M,f};
|