@mediquo/elements 0.11.0 → 0.12.0-rc.0
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 +7 -18
- package/dist/chunks/appointment-details-BM8peAHH.js +1 -0
- package/dist/chunks/{appointment-details-CVEDe_k0.d.ts → appointment-details-KL9fK6vG.d.ts} +1 -2
- package/dist/chunks/ca_ES-DYhnenv6.js +1 -0
- package/dist/chunks/checkout-bridge-BFpVxNww.js +1 -0
- package/dist/chunks/de_DE-Dw0iVZNb.js +1 -0
- package/dist/chunks/{documentation-view-BSt0gtCR.js → documentation-view-CzCDvut1.js} +1 -1
- package/dist/chunks/en_US-DONnbI9l.js +1 -0
- package/dist/chunks/{index-CUirgiWh.d.ts → index-BEPyJrJL.d.ts} +1 -1
- package/dist/chunks/{index-B3rs7SlM.d.ts → index-BKjqWyIs.d.ts} +1 -1
- package/dist/chunks/{index-CCWMMqiq.js → index-DABvAuIz.js} +1 -1
- package/dist/chunks/index-Djkwyh_M.js +1 -0
- package/dist/chunks/{appointment.model.d-BWwBLaEL.d.ts → index-DwlJg2um.d.ts} +13 -0
- package/dist/chunks/{index-D2yqKnpP.js → index-VQqG1eyA.js} +1 -1
- package/dist/chunks/{index-DFaKhE7Q.d.ts → index-fut7tm1R.d.ts} +1 -1
- package/dist/chunks/{index.d-ByhRBSb1.d.ts → index.d-DHMNq1lu.d.ts} +2 -7
- package/dist/chunks/{login-token-task-Yib__6a9.js → login-token-task-NQJ77O_q.js} +1 -1
- package/dist/chunks/{mq-chat-room-C8wCADp2.d.ts → mq-chat-room-C0dJCvpV.d.ts} +2 -2
- package/dist/chunks/mq-chat-room-C2EALCSm.js +1 -0
- package/dist/chunks/{mq-next-appointments-CbjNpG1H.js → mq-next-appointments-DElOAaYx.js} +1 -1
- package/dist/chunks/{mq-recent-documents-DNqh_8J0.js → mq-recent-documents-DS5zUnH8.js} +1 -1
- package/dist/chunks/mq-schedule-CIb5mOTX.js +1 -0
- package/dist/chunks/{mq-support-chat-tdev5LC-.js → mq-support-chat-DYmvYk7b.js} +1 -1
- package/dist/chunks/{mq-videocall-CwYtlPu6.js → mq-videocall-CMPrGJK6.js} +1 -1
- package/dist/chunks/{next-appointment-card-DLU7-wIv.js → next-appointment-card-BOzfcwjD.js} +1 -1
- package/dist/chunks/{next-appointment-card-CPg9FuOI.d.ts → next-appointment-card-Z5G1jqtz.d.ts} +4 -4
- package/dist/chunks/professional-overview-Ck_SPivX.js +1 -0
- package/dist/chunks/{professional-overview-mO3tuMuH.d.ts → professional-overview-QVHl_ITk.d.ts} +1 -0
- package/dist/chunks/pt_PT-dELUeDqB.js +1 -0
- package/dist/chunks/task-CqjSKFwZ.js +1 -0
- package/dist/chunks/{telemetry-client-K37KMdy_.js → telemetry-client-DA2_SZBC.js} +1 -1
- package/dist/env.js +1 -1
- package/dist/events.d.ts +1 -22
- package/dist/events.js +1 -1
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mq-api-client-provider.d.ts +1 -1
- package/dist/mq-apple-pay-checkout.d.ts +1 -1
- package/dist/mq-apple-pay-checkout.js +1 -1
- package/dist/mq-appointment-checkout.d.ts +20 -14
- package/dist/mq-appointment-checkout.js +1 -1
- package/dist/mq-appointment-documentation.d.ts +4 -4
- package/dist/mq-appointment-documentation.js +1 -1
- package/dist/mq-chat-room.d.ts +3 -3
- package/dist/mq-chat-room.js +1 -1
- package/dist/mq-checkout.d.ts +44 -61
- package/dist/mq-checkout.js +1 -1
- package/dist/mq-dashboard.d.ts +6 -6
- package/dist/mq-dashboard.js +1 -1
- package/dist/mq-documents.d.ts +2 -2
- package/dist/mq-documents.js +1 -1
- package/dist/mq-google-pay-checkout.d.ts +1 -1
- package/dist/mq-google-pay-checkout.js +1 -1
- package/dist/mq-immediate-videocall-checkout.d.ts +10 -9
- package/dist/mq-immediate-videocall-checkout.js +1 -1
- package/dist/mq-my-appointments.d.ts +6 -6
- package/dist/mq-my-appointments.js +1 -1
- package/dist/mq-next-appointments.d.ts +5 -5
- package/dist/mq-next-appointments.js +1 -1
- package/dist/mq-payment-poller.d.ts +2 -2
- package/dist/mq-recent-documents.d.ts +2 -2
- package/dist/mq-recent-documents.js +1 -1
- package/dist/mq-schedule-success.d.ts +5 -5
- package/dist/mq-schedule-success.js +2 -2
- package/dist/mq-schedule.d.ts +52 -98
- package/dist/mq-schedule.js +1 -1
- package/dist/mq-support-chat.d.ts +3 -3
- package/dist/mq-support-chat.js +1 -1
- package/dist/mq-terms-and-conditions.d.ts +2 -2
- package/dist/mq-videocall.d.ts +5 -5
- package/dist/mq-videocall.js +1 -1
- package/dist/react/mq-api-client-provider.d.ts +1 -1
- package/dist/react/mq-apple-pay-checkout.d.ts +1 -1
- package/dist/react/mq-apple-pay-checkout.js +1 -1
- package/dist/react/mq-appointment-checkout.d.ts +12 -8
- package/dist/react/mq-appointment-checkout.js +1 -1
- package/dist/react/mq-appointment-documentation.d.ts +4 -4
- package/dist/react/mq-appointment-documentation.js +1 -1
- package/dist/react/mq-chat-room.d.ts +3 -3
- package/dist/react/mq-chat-room.js +1 -1
- package/dist/react/mq-checkout.d.ts +11 -8
- package/dist/react/mq-checkout.js +1 -1
- package/dist/react/mq-dashboard.d.ts +6 -6
- package/dist/react/mq-dashboard.js +1 -1
- package/dist/react/mq-documents-page.d.ts +2 -2
- package/dist/react/mq-documents-page.js +1 -1
- package/dist/react/mq-documents.d.ts +2 -2
- package/dist/react/mq-documents.js +1 -1
- package/dist/react/mq-google-pay-checkout.d.ts +1 -1
- package/dist/react/mq-google-pay-checkout.js +1 -1
- package/dist/react/mq-immediate-videocall-checkout.d.ts +4 -2
- package/dist/react/mq-immediate-videocall-checkout.js +1 -1
- package/dist/react/mq-my-appointments.d.ts +6 -6
- package/dist/react/mq-my-appointments.js +1 -1
- package/dist/react/mq-next-appointments.d.ts +5 -5
- package/dist/react/mq-next-appointments.js +1 -1
- package/dist/react/mq-payment-poller.d.ts +1 -1
- package/dist/react/mq-recent-documents.d.ts +2 -2
- package/dist/react/mq-recent-documents.js +1 -1
- package/dist/react/mq-schedule-success.d.ts +5 -5
- package/dist/react/mq-schedule-success.js +1 -1
- package/dist/react/mq-schedule.d.ts +4 -14
- package/dist/react/mq-schedule.js +1 -1
- package/dist/react/mq-support-chat.d.ts +3 -3
- package/dist/react/mq-support-chat.js +1 -1
- package/dist/react/mq-terms-and-conditions.d.ts +2 -2
- package/dist/react/mq-videocall.d.ts +5 -5
- package/dist/react/mq-videocall.js +1 -1
- package/dist/ui/mq-calendar.js +1 -1
- package/dist/ui/mq-tabs.js +49 -22
- package/package.json +2 -2
- package/dist/chunks/appointment-details-BYGwLfww.js +0 -1
- package/dist/chunks/ca_ES-BOvS9ayb.js +0 -1
- package/dist/chunks/de_DE-B-4V4SgD.js +0 -1
- package/dist/chunks/en_US-CgxjeeCm.js +0 -1
- package/dist/chunks/mq-chat-room-B_WgeuXn.js +0 -1
- package/dist/chunks/mq-schedule-BfW7y8uG.js +0 -1
- package/dist/chunks/professional-overview-B4E05rLd.js +0 -1
- package/dist/chunks/pt_PT-Vb6hoo2l.js +0 -1
- package/dist/chunks/task-Bj8p7kJX.js +0 -1
package/dist/mq-schedule.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import * as lit_html_directive_js from 'lit-html/directive.js';
|
|
2
2
|
import * as lit_html_directives_keyed_js from 'lit-html/directives/keyed.js';
|
|
3
3
|
import * as lit from 'lit';
|
|
4
|
-
import { LitElement, PropertyValues,
|
|
5
|
-
import { M as MediquoApiChatClient, c as GetScheduleServicesResponse,
|
|
4
|
+
import { LitElement, PropertyValues, nothing } from 'lit';
|
|
5
|
+
import { M as MediquoApiChatClient, c as GetScheduleServicesResponse, S as ScheduleProfessional } from './chunks/index.d-DHMNq1lu.js';
|
|
6
6
|
import './ui/mq-button.js';
|
|
7
7
|
import { Env } from './env.js';
|
|
8
8
|
import * as lit_html from 'lit-html';
|
|
9
|
-
import { A as AppointmentChannel, a as Appointment } from './chunks/
|
|
9
|
+
import { A as AppointmentChannel, a as Appointment } from './chunks/index-DwlJg2um.js';
|
|
10
10
|
import z, { z as z$1 } from 'zod';
|
|
11
11
|
import './ui/mq-callout.js';
|
|
12
12
|
import './ui/mq-page-title.js';
|
|
13
|
-
import './chunks/professional-overview-
|
|
14
|
-
import './chunks/appointment-details-
|
|
13
|
+
import './chunks/professional-overview-QVHl_ITk.js';
|
|
14
|
+
import './chunks/appointment-details-KL9fK6vG.js';
|
|
15
15
|
import './ui/mq-clamped-text.js';
|
|
16
16
|
import './ui/mq-card.js';
|
|
17
17
|
import { P as PriceInCents } from './chunks/price.d-CwLosdAN.js';
|
|
18
18
|
import { QueryClient } from '@tanstack/query-core';
|
|
19
19
|
import './ui/mq-skeleton.js';
|
|
20
|
-
import './ui/mq-text-button.js';
|
|
21
20
|
import './ui/mq-select.js';
|
|
22
21
|
import './ui/mq-badge.js';
|
|
23
22
|
import './ui/mq-time-slot-picker.js';
|
|
24
23
|
import './ui/mq-calendar.js';
|
|
25
24
|
import 'axios';
|
|
26
25
|
import './chunks/schemas.d-b6_AekBb.js';
|
|
26
|
+
import './ui/mq-text-button.js';
|
|
27
27
|
import './ui/mq-avatar.js';
|
|
28
28
|
|
|
29
29
|
declare const ProfessionalSchema: z.ZodObject<{
|
|
@@ -303,10 +303,16 @@ declare global {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
+
/** What the questionnaire collected, carried on to the payment step. */
|
|
307
|
+
interface PaymentBooking {
|
|
308
|
+
consultationReason: string;
|
|
309
|
+
preconsultationDocuments: FileAttachment[];
|
|
310
|
+
}
|
|
311
|
+
|
|
306
312
|
/**
|
|
307
313
|
* @fires back - Fired when the back button is clicked
|
|
308
314
|
* @fires success - Fired when the appointment is created or rescheduled without payment
|
|
309
|
-
* @fires payment-started - Fired when
|
|
315
|
+
* @fires payment-started - Fired when the questionnaire is done and the slot has to be paid (paid flow)
|
|
310
316
|
* @fires error - Fired when an error occurs
|
|
311
317
|
*/
|
|
312
318
|
declare class ConfirmStep extends LitElement {
|
|
@@ -328,7 +334,6 @@ declare class ConfirmStep extends LitElement {
|
|
|
328
334
|
/** Discount applied in the summary; threaded through so the code reaches the
|
|
329
335
|
* booking payload and persists into the payment step. */
|
|
330
336
|
appliedDiscount: AppliedDiscount | null;
|
|
331
|
-
returnUrl?: string;
|
|
332
337
|
private reason;
|
|
333
338
|
private attachedFiles;
|
|
334
339
|
get isPaymentFlow(): boolean;
|
|
@@ -337,7 +342,6 @@ declare class ConfirmStep extends LitElement {
|
|
|
337
342
|
queryClientContext: QueryClient | undefined;
|
|
338
343
|
private createScheduleAppointment;
|
|
339
344
|
private rescheduleAppointmentMutation;
|
|
340
|
-
private createPaymentLinkMutation;
|
|
341
345
|
private handleSubmit;
|
|
342
346
|
private handleFilesChange;
|
|
343
347
|
protected firstUpdated(): void;
|
|
@@ -371,55 +375,23 @@ declare global {
|
|
|
371
375
|
}
|
|
372
376
|
|
|
373
377
|
/**
|
|
374
|
-
* Payment
|
|
378
|
+
* Payment step. Frames the hosted checkout, which creates the payment session
|
|
379
|
+
* and relays the outcome; in `redirect` mode it opens the checkout as the
|
|
380
|
+
* top-level page as soon as the patient gets here ("Continuar al pago"). The coupon applied while scheduling
|
|
381
|
+
* travels in the checkout URL, so the price it charges is the one shown here; a
|
|
382
|
+
* coupon that changes in this step reloads the checkout.
|
|
375
383
|
*
|
|
376
|
-
* @element payment-method-selector
|
|
377
|
-
* @attr {boolean} show-google-pay - Offer Google Pay, when the device supports it
|
|
378
|
-
* @attr {boolean} show-apple-pay - Offer Apple Pay, when the device supports it
|
|
379
|
-
* @fires payment-method-selected - Fired when the user confirms a method (bubbles, composed; `method` on the event)
|
|
380
|
-
*/
|
|
381
|
-
declare class PaymentMethodSelector extends LitElement {
|
|
382
|
-
static styles: lit.CSSResult;
|
|
383
|
-
showWallets: boolean;
|
|
384
|
-
showGooglePay: boolean;
|
|
385
|
-
showApplePay: boolean;
|
|
386
|
-
private _selected;
|
|
387
|
-
private get _googlePayVisible();
|
|
388
|
-
private get _applePayVisible();
|
|
389
|
-
protected willUpdate(changed: PropertyValues<this>): void;
|
|
390
|
-
private _select;
|
|
391
|
-
private _confirm;
|
|
392
|
-
private _renderRow;
|
|
393
|
-
private _renderAction;
|
|
394
|
-
render(): TemplateResult<1>;
|
|
395
|
-
}
|
|
396
|
-
declare global {
|
|
397
|
-
interface HTMLElementTagNameMap {
|
|
398
|
-
"payment-method-selector": PaymentMethodSelector;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
384
|
* @fires back - Fired when the back button in the header is clicked
|
|
404
|
-
* @fires
|
|
405
|
-
* @fires payment-
|
|
406
|
-
* @fires
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
* @fires google-pay-opened - Cancelable. Fired before the Google Pay popup opens.
|
|
410
|
-
* Call preventDefault() to open the checkout URL yourself.
|
|
411
|
-
* detail.url includes #token= (secret — do not log).
|
|
412
|
-
* @fires mq-payment-redirect - Cancelable. Fired when `stripeRedirect` is on and
|
|
413
|
-
* paying hands the user over to Stripe hosted checkout. Its default action is
|
|
414
|
-
* the navigation, so hosts need no listener unless they open the URL themselves.
|
|
415
|
-
* @fires error - Fired when the polling timeout is reached
|
|
385
|
+
* @fires success - Fired when a fully discounted appointment is confirmed without payment
|
|
386
|
+
* @fires payment-success - Fired when the checkout reports the payment as confirmed
|
|
387
|
+
* @fires error - Fired when the checkout reports the payment cannot go on.
|
|
388
|
+
* Detail: `{ expired }`, true when the slot offer lapsed and the patient has to
|
|
389
|
+
* pick a slot again.
|
|
416
390
|
*/
|
|
417
391
|
declare class PaymentStep extends LitElement {
|
|
418
392
|
apiClient: MediquoApiChatClient;
|
|
419
393
|
static styles: lit.CSSResult;
|
|
420
|
-
sessionId: string;
|
|
421
394
|
showBack: boolean;
|
|
422
|
-
paymentUrl: string;
|
|
423
395
|
professional: Professional;
|
|
424
396
|
startsAt: string;
|
|
425
397
|
duration: number;
|
|
@@ -427,61 +399,42 @@ declare class PaymentStep extends LitElement {
|
|
|
427
399
|
service: GetScheduleServicesResponse[number] | undefined;
|
|
428
400
|
scheduleSlot: ScheduleSlot | undefined;
|
|
429
401
|
appliedDiscount: AppliedDiscount | null;
|
|
430
|
-
|
|
402
|
+
/** Questionnaire answers collected at the confirm step. */
|
|
403
|
+
booking: PaymentBooking | null;
|
|
431
404
|
apiKey?: string;
|
|
432
|
-
/** Session token,
|
|
405
|
+
/** Session token, sent as the checkout URL fragment. */
|
|
433
406
|
token?: string;
|
|
434
407
|
env: string;
|
|
435
408
|
locale: string;
|
|
436
409
|
countryCode: string;
|
|
437
|
-
|
|
438
|
-
provider?: PaymentProvider;
|
|
439
|
-
googlePayEnabled: boolean;
|
|
440
|
-
applePayEnabled: boolean;
|
|
441
|
-
stripeRedirect: boolean;
|
|
410
|
+
checkoutMode: "embed" | "redirect";
|
|
442
411
|
queryClientContext: QueryClient | undefined;
|
|
443
|
-
private
|
|
444
|
-
private _walletWaiting;
|
|
445
|
-
private _walletUrl;
|
|
446
|
-
private _walletPopupBlocked;
|
|
447
|
-
private _walletConfigError;
|
|
448
|
-
private _timedOut;
|
|
412
|
+
private _iframe?;
|
|
449
413
|
private _iframeLoaded;
|
|
450
414
|
private _iframeHeight;
|
|
451
|
-
|
|
452
|
-
private
|
|
453
|
-
private
|
|
454
|
-
private
|
|
415
|
+
/** The frame moved to the Stripe host, whose page brings its own padding. */
|
|
416
|
+
private _fullBleed;
|
|
417
|
+
private _renderedUrl;
|
|
418
|
+
private _redirected;
|
|
455
419
|
get isFullyDiscounted(): boolean;
|
|
456
|
-
/** Stripe card checkout uses the Mediquo `/pay` shell in the payment iframe. */
|
|
457
|
-
private get embedsHostedCheckout();
|
|
458
420
|
private createScheduleAppointment;
|
|
459
421
|
private confirmFree;
|
|
460
422
|
private _paymentAmountCents;
|
|
461
423
|
private _paymentCurrency;
|
|
462
424
|
private _paymentAmountLabel;
|
|
463
|
-
private _buildApplePayUrl;
|
|
464
|
-
private _buildGooglePayUrl;
|
|
465
425
|
private _buildPayUrl;
|
|
466
|
-
private _buildWalletCheckoutUrl;
|
|
467
|
-
private _stopPaymentPolling;
|
|
468
|
-
private _startPaymentPolling;
|
|
469
|
-
private _pollOnce;
|
|
470
|
-
private _dispatchWalletOpenedEvent;
|
|
471
|
-
private _onPaymentMethodSelected;
|
|
472
|
-
private _openWalletPopup;
|
|
473
|
-
private _reopenWalletPopup;
|
|
474
|
-
private _walletWaitingTitle;
|
|
475
|
-
private _walletReopenLabel;
|
|
476
|
-
private _walletReopenLinkLabel;
|
|
477
|
-
private _walletReopenAgainLabel;
|
|
478
|
-
private _onHeaderBack;
|
|
479
426
|
willUpdate(changed: PropertyValues): void;
|
|
480
|
-
updated(changed: PropertyValues): void;
|
|
481
427
|
connectedCallback(): void;
|
|
482
428
|
disconnectedCallback(): void;
|
|
429
|
+
updated(): void;
|
|
430
|
+
private _onPageShow;
|
|
483
431
|
private _onIframeLoad;
|
|
484
432
|
private _onMessage;
|
|
433
|
+
/**
|
|
434
|
+
* The checkout takes no documents, so the ones attached in the questionnaire
|
|
435
|
+
* are added to the appointment it created before announcing it.
|
|
436
|
+
*/
|
|
437
|
+
private _onPaid;
|
|
485
438
|
private _renderSummaryColumn;
|
|
486
439
|
private _renderPaymentColumn;
|
|
487
440
|
render(): lit_html.TemplateResult<1>;
|
|
@@ -609,6 +562,8 @@ declare class SelectProfessionalStep extends LitElement {
|
|
|
609
562
|
showBack: boolean;
|
|
610
563
|
defaultSpecialty: string | undefined;
|
|
611
564
|
defaultService: string | undefined;
|
|
565
|
+
/** Why the wizard restarted here, e.g. a payment that failed after a redirect. */
|
|
566
|
+
errorMessage: string | undefined;
|
|
612
567
|
formData: {
|
|
613
568
|
service_id: string;
|
|
614
569
|
specialty_id: string;
|
|
@@ -722,6 +677,7 @@ declare class SelectSlotStep extends LitElement {
|
|
|
722
677
|
view: "days-window" | "calendar";
|
|
723
678
|
windowStartDate: string | undefined;
|
|
724
679
|
connectedCallback(): void;
|
|
680
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
725
681
|
private renderView;
|
|
726
682
|
render(): lit_html.TemplateResult<1>;
|
|
727
683
|
}
|
|
@@ -775,6 +731,9 @@ declare class MqSchedule extends LitElement {
|
|
|
775
731
|
appointmentId?: string;
|
|
776
732
|
/** When `false`, hides the back button on the wizard's first step. */
|
|
777
733
|
showBackButton: boolean;
|
|
734
|
+
/** `redirect` sends the patient to the hosted checkout page, which returns
|
|
735
|
+
* here with `status`, `session_id`, `reference` and `reason` in the query. */
|
|
736
|
+
checkoutMode: "embed" | "redirect";
|
|
778
737
|
/** Mediquo API key. Required when used standalone (outside mq-router). */
|
|
779
738
|
apiKey?: string;
|
|
780
739
|
/** Already-exchanged access token. Required when used standalone. */
|
|
@@ -783,18 +742,6 @@ declare class MqSchedule extends LitElement {
|
|
|
783
742
|
locale?: string;
|
|
784
743
|
/** Environment override ("development" | "production"). Optional. */
|
|
785
744
|
env?: Env;
|
|
786
|
-
/**
|
|
787
|
-
* Optional return URL passed to the Apple Pay shell as `success_url`.
|
|
788
|
-
* Omit when the parent tab polls the payment session (default schedule web flow).
|
|
789
|
-
*/
|
|
790
|
-
applePaySuccessUrl?: string;
|
|
791
|
-
returnUrl?: string;
|
|
792
|
-
/** Offer Google Pay in the payment step, when the device supports it. */
|
|
793
|
-
googlePayEnabled: boolean;
|
|
794
|
-
/** Offer Apple Pay in the payment step, when the device supports it. */
|
|
795
|
-
applePayEnabled: boolean;
|
|
796
|
-
/** Send Stripe payments to Stripe hosted checkout instead of embedding it. */
|
|
797
|
-
stripeRedirect: boolean;
|
|
798
745
|
timezone?: string;
|
|
799
746
|
private loginToken?;
|
|
800
747
|
private _patient;
|
|
@@ -805,9 +752,15 @@ declare class MqSchedule extends LitElement {
|
|
|
805
752
|
* descendant. Never shared with another element.
|
|
806
753
|
*/
|
|
807
754
|
apiClient: MediquoApiChatClient;
|
|
755
|
+
connectedCallback(): void;
|
|
756
|
+
protected firstUpdated(): void;
|
|
808
757
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
809
758
|
private _wizard;
|
|
810
759
|
private _emittedCreated;
|
|
760
|
+
/** What the hosted checkout reported when it redirected back; read once. */
|
|
761
|
+
private _returned;
|
|
762
|
+
/** Starts the wizard showing the error, as when a slot cannot be booked. */
|
|
763
|
+
private _returnError;
|
|
811
764
|
private _organizationChanged;
|
|
812
765
|
private _current;
|
|
813
766
|
private getAppointmentQuery;
|
|
@@ -819,6 +772,7 @@ declare class MqSchedule extends LitElement {
|
|
|
819
772
|
private getOrganizationSetupQuery;
|
|
820
773
|
private _initWizard;
|
|
821
774
|
private _stepHandlers;
|
|
775
|
+
private _emitCreated;
|
|
822
776
|
private _hostConfig;
|
|
823
777
|
private _renderStep;
|
|
824
778
|
private renderReschedulePolicyBlocked;
|
package/dist/mq-schedule.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as AppointmentCreatedEvent,a as AuthRequiredEvent,M as MqSchedule}from"./chunks/mq-schedule-
|
|
1
|
+
export{A as AppointmentCreatedEvent,a as AuthRequiredEvent,M as MqSchedule}from"./chunks/mq-schedule-CIb5mOTX.js";import"./chunks/custom-element-D2ziPxYE.js";import"./chunks/query-controller-B1byDHlF.js";import"./chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"./chunks/create-context-DqP79qjF.js";import"./chunks/context-consumer-ESdICVAb.js";import"./chunks/context-request-event-Dfydf1ub.js";import"@tanstack/query-core";import"./chunks/api-client-context-BXGqBAlO.js";import"./chunks/chunk-S5RWG6G2-CQJ38pW6.js";import"./chunks/get-appointment-query-DuHrjd8L.js";import"./chunks/chunk-6CCJWPGL-TiaqZaPV.js";import"./chunks/chunk-5EJXDIGT-Bb4_pfDr.js";import"./chunks/get-organization-setup-query-De7eM6V3.js";import"./chunks/telemetry-client-DA2_SZBC.js";import"./chunks/get-patient-profile-query-D9btgcxl.js";import"./chunks/get-schedule-services-query-Io2aQ_7G.js";import"./chunks/chunk-NIAGR3ZC-BDlNUZa1.js";import"./chunks/parseISO-CEksKisk.js";import"./chunks/refund-cancel-policy-DoMzcLlL.js";import"./events.js";import"./chunks/api-chat-client-s45J7LKB.js";import"./chunks/external-JLtsAfi6.js";import"./chunks/isBefore-DBi1CiNR.js";import"./env.js";import"./ui/mq-button.js";import"./chunks/lit-element-DiWJYFwC.js";import"./chunks/property-scuRaFcM.js";import"./chunks/class-map-Co76I6aw.js";import"./chunks/directive-2EDmOukv.js";import"./chunks/if-defined-BYeVdwgd.js";import"./chunks/provide-BwI4DDGF.js";import"./chunks/consume-CovVqBjI.js";import"./chunks/runtime-Bg1WXVCx.js";import"./chunks/localized-decorator-BlOuLhym.js";import"./chunks/state-LQivXIgA.js";import"./chunks/index-C76yAope.js";import"./chunks/style-map-CIdqdn7C.js";import"./ui/mq-text-button.js";import"./i18n.js";import"./chunks/chunk-FUCSYDW7-Duj5hy8S.js";import"./chunks/mutation-controller-CR2qcqhH.js";import"./ui/mq-input.js";import"./chunks/query-CeeutdfT.js";import"./ui/icons/calendar-icon.js";import"./ui/icons/types.js";import"./ui/mq-callout.js";import"./ui/icons/info-circle-outine-icon.js";import"./ui/mq-page-title.js";import"./ui/icons/arrow-narrow-left-icon.js";import"./chunks/professional-overview-Ck_SPivX.js";import"./ui/icons/chevron-down-icon.js";import"./ui/mq-avatar.js";import"./chunks/index-Djkwyh_M.js";import"./chunks/appointment-details-BM8peAHH.js";import"./chunks/addSeconds-fO5orJrt.js";import"./ui/icons/briefcase-icon.js";import"./ui/icons/clock-icon.js";import"./ui/icons/message-bubble-icon.js";import"./ui/icons/phone-icon.js";import"./ui/mq-card.js";import"./ui/icons/spinner-icon.js";import"./ui/icons/tag-icon.js";import"./chunks/price-DU3YLTpk.js";import"./ui/mq-toast.js";import"./ui/icons/file-icon.js";import"./ui/icons/upload-icon.js";import"./ui/icons/x-icon.js";import"./ui/mq-textarea.js";import"./chunks/checkout-bridge-BFpVxNww.js";import"./ui/mq-skeleton.js";import"./ui/mq-select.js";import"./ui/mq-badge.js";import"./chunks/index-VQqG1eyA.js";import"./ui/icons/chevron-left-icon.js";import"./ui/icons/chevron-right-icon.js";import"./chunks/format-tMwfQwDf.js";import"./ui/mq-time-slot-picker.js";import"./chunks/addDays-CdyO-PRI.js";import"./theme.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as lit_html from 'lit-html';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement, PropertyValues, nothing } from 'lit';
|
|
4
|
-
import { M as MediquoApiChatClient } from './chunks/index.d-
|
|
5
|
-
import './chunks/mq-chat-room-
|
|
4
|
+
import { M as MediquoApiChatClient } from './chunks/index.d-DHMNq1lu.js';
|
|
5
|
+
import './chunks/mq-chat-room-C0dJCvpV.js';
|
|
6
6
|
import './ui/mq-avatar.js';
|
|
7
7
|
import 'axios';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import './chunks/schemas.d-b6_AekBb.js';
|
|
10
10
|
import './ui/mq-button.js';
|
|
11
11
|
import './ui/mq-skeleton.js';
|
|
12
|
-
import './chunks/
|
|
12
|
+
import './chunks/index-DwlJg2um.js';
|
|
13
13
|
import '@tanstack/query-core';
|
|
14
14
|
|
|
15
15
|
/**
|
package/dist/mq-support-chat.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{M as MqSupportChat}from"./chunks/mq-support-chat-
|
|
1
|
+
export{M as MqSupportChat}from"./chunks/mq-support-chat-DYmvYk7b.js";import"./chunks/custom-element-D2ziPxYE.js";import"./chunks/provide-BwI4DDGF.js";import"./chunks/context-request-event-Dfydf1ub.js";import"./chunks/consume-CovVqBjI.js";import"./chunks/context-consumer-ESdICVAb.js";import"./chunks/runtime-Bg1WXVCx.js";import"./chunks/localized-decorator-BlOuLhym.js";import"./chunks/api-chat-client-s45J7LKB.js";import"./chunks/external-JLtsAfi6.js";import"./chunks/chunk-NIAGR3ZC-BDlNUZa1.js";import"./chunks/parseISO-CEksKisk.js";import"./chunks/isBefore-DBi1CiNR.js";import"./env.js";import"./chunks/query-controller-B1byDHlF.js";import"./chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"./chunks/create-context-DqP79qjF.js";import"@tanstack/query-core";import"./chunks/api-client-context-BXGqBAlO.js";import"./chunks/mutation-controller-CR2qcqhH.js";import"./chunks/get-organization-setup-query-De7eM6V3.js";import"./chunks/chunk-6CCJWPGL-TiaqZaPV.js";import"./chunks/chunk-5EJXDIGT-Bb4_pfDr.js";import"./chunks/chunk-BUV4MGML-CkhBbfUu.js";import"./chunks/chunk-Y4EKUX25-Bix9r5ry.js";import"./chunks/lit-element-DiWJYFwC.js";import"./chunks/property-scuRaFcM.js";import"./chunks/state-LQivXIgA.js";import"./theme.js";import"./ui/icons/annotation-question-icon.js";import"./chunks/if-defined-BYeVdwgd.js";import"./ui/icons/types.js";import"./ui/icons/spinner-icon.js";import"./ui/icons/x-icon.js";import"./chunks/mq-chat-room-C2EALCSm.js";import"./ui/mq-avatar.js";import"./chunks/class-map-Co76I6aw.js";import"./chunks/directive-2EDmOukv.js";import"./ui/mq-button.js";import"./ui/mq-skeleton.js";import"./chunks/style-map-CIdqdn7C.js";import"./ui/icons/chevron-left-icon.js";import"./chunks/chunk-S5RWG6G2-CQJ38pW6.js";import"./chunks/query-CeeutdfT.js";import"./chunks/chunk-FUCSYDW7-Duj5hy8S.js";import"./events.js";import"./ui/icons/check-double-icon.js";import"./ui/icons/check-icon.js";import"./i18n.js";import"./chunks/addDays-CdyO-PRI.js";import"./chunks/chunk-YTQUGGS3-DH0H7ld7.js";import"./chunks/index-Djkwyh_M.js";import"./chunks/index-BkDanNQg.js";import"./ui/mq-toast.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { M as MqTermsAndConditions, a as TermsAndConditionsAcceptEvent, T as TermsAndConditionsContinueEvent } from './chunks/index-
|
|
1
|
+
export { M as MqTermsAndConditions, a as TermsAndConditionsAcceptEvent, T as TermsAndConditionsContinueEvent } from './chunks/index-BEPyJrJL.js';
|
|
2
2
|
import 'lit-html';
|
|
3
3
|
import 'lit';
|
|
4
|
-
import './chunks/index.d-
|
|
4
|
+
import './chunks/index.d-DHMNq1lu.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './chunks/schemas.d-b6_AekBb.js';
|
package/dist/mq-videocall.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ import * as lit_html from 'lit-html';
|
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { LitElement, PropertyValues } from 'lit';
|
|
4
4
|
import { Task } from '@lit/task';
|
|
5
|
-
import { M as MediquoApiChatClient } from './chunks/index.d-
|
|
6
|
-
import { a as Appointment } from './chunks/
|
|
5
|
+
import { M as MediquoApiChatClient } from './chunks/index.d-DHMNq1lu.js';
|
|
6
|
+
import { a as Appointment } from './chunks/index-DwlJg2um.js';
|
|
7
7
|
import OT from '@opentok/client';
|
|
8
8
|
import './ui/mq-page-title.js';
|
|
9
|
-
import './chunks/professional-overview-
|
|
9
|
+
import './chunks/professional-overview-QVHl_ITk.js';
|
|
10
10
|
import './ui/mq-button.js';
|
|
11
|
-
import './chunks/mq-chat-room-
|
|
11
|
+
import './chunks/mq-chat-room-C0dJCvpV.js';
|
|
12
12
|
import './ui/mq-floating-bubble.js';
|
|
13
13
|
import './ui/mq-card.js';
|
|
14
14
|
import './ui/mq-unread-badge.js';
|
|
15
|
-
import './chunks/index-
|
|
15
|
+
import './chunks/index-BKjqWyIs.js';
|
|
16
16
|
import './ui/mq-rating.js';
|
|
17
17
|
import './chunks/mq-layout-D8Mak16a.js';
|
|
18
18
|
import 'axios';
|
package/dist/mq-videocall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{D as DownloadFileEvent,M as MqVideocall,R as ReviewSkippedEvent,a as ReviewSubmittedEvent,T as ToggleAudioEvent,b as ToggleChatEvent,c as ToggleVideoEvent,V as ViewDocumentationEvent}from"./chunks/mq-videocall-
|
|
1
|
+
export{D as DownloadFileEvent,M as MqVideocall,R as ReviewSkippedEvent,a as ReviewSubmittedEvent,T as ToggleAudioEvent,b as ToggleChatEvent,c as ToggleVideoEvent,V as ViewDocumentationEvent}from"./chunks/mq-videocall-CMPrGJK6.js";import"./chunks/custom-element-D2ziPxYE.js";import"./chunks/lit-element-DiWJYFwC.js";import"./chunks/property-scuRaFcM.js";import"./ui/icons/spinner-icon.js";import"./ui/icons/types.js";import"./chunks/provide-BwI4DDGF.js";import"./chunks/context-request-event-Dfydf1ub.js";import"./chunks/consume-CovVqBjI.js";import"./chunks/context-consumer-ESdICVAb.js";import"./chunks/task-CqjSKFwZ.js";import"./chunks/api-client-context-BXGqBAlO.js";import"./chunks/create-context-DqP79qjF.js";import"./chunks/api-chat-client-s45J7LKB.js";import"./chunks/external-JLtsAfi6.js";import"./chunks/chunk-NIAGR3ZC-BDlNUZa1.js";import"./chunks/parseISO-CEksKisk.js";import"./chunks/isBefore-DBi1CiNR.js";import"./env.js";import"./chunks/state-LQivXIgA.js";import"./chunks/runtime-Bg1WXVCx.js";import"./chunks/localized-decorator-BlOuLhym.js";import"./chunks/addSeconds-fO5orJrt.js";import"./i18n.js";import"./chunks/chunk-FUCSYDW7-Duj5hy8S.js";import"./ui/icons/calendar-icon.js";import"./chunks/if-defined-BYeVdwgd.js";import"./ui/mq-page-title.js";import"./events.js";import"./ui/mq-button.js";import"./chunks/class-map-Co76I6aw.js";import"./chunks/directive-2EDmOukv.js";import"./ui/icons/arrow-narrow-left-icon.js";import"./chunks/professional-overview-Ck_SPivX.js";import"./ui/icons/chevron-down-icon.js";import"./ui/mq-text-button.js";import"./ui/mq-avatar.js";import"./chunks/index-Djkwyh_M.js";import"./ui/icons/clock-icon.js";import"./chunks/documentation-view-CzCDvut1.js";import"./ui/icons/info-circle-outine-icon.js";import"./chunks/chunk-S5RWG6G2-CQJ38pW6.js";import"./ui/icons/message-bubble-icon.js";import"./chunks/mq-chat-room-C2EALCSm.js";import"./theme.js";import"./ui/icons/x-icon.js";import"./ui/mq-skeleton.js";import"./chunks/style-map-CIdqdn7C.js";import"./chunks/query-controller-B1byDHlF.js";import"./chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"@tanstack/query-core";import"./chunks/chunk-BUV4MGML-CkhBbfUu.js";import"./chunks/chunk-6CCJWPGL-TiaqZaPV.js";import"./ui/icons/chevron-left-icon.js";import"./chunks/query-CeeutdfT.js";import"./chunks/chunk-Y4EKUX25-Bix9r5ry.js";import"./ui/icons/check-double-icon.js";import"./ui/icons/check-icon.js";import"./chunks/addDays-CdyO-PRI.js";import"./chunks/chunk-YTQUGGS3-DH0H7ld7.js";import"./chunks/mutation-controller-CR2qcqhH.js";import"./ui/mq-floating-bubble.js";import"./ui/mq-card.js";import"./ui/mq-unread-badge.js";import"./ui/icons/download-icon.js";import"./chunks/blob-to-base64-CUL1trde.js";import"./chunks/telemetry-client-DA2_SZBC.js";import"./chunks/chunk-5EJXDIGT-Bb4_pfDr.js";import"./ui/icons/chat-bubble-icon.js";import"./ui/icons/mic-icon.js";import"./ui/icons/mic-off-icon.js";import"./ui/icons/video-icon.js";import"./ui/icons/video-off-icon.js";import"./ui/icons/alert-circle-icon.js";import"./ui/mq-rating.js";import"./ui/mq-toast.js";import"./ui/icons/heartbeat-icon.js";import"./ui/icons/time-left-icon.js";import"./chunks/mq-layout-BndHxkbb.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MqApiClientProvider as MqApiClientProvider$1 } from '../mq-api-client-provider.js';
|
|
3
3
|
import 'lit-html';
|
|
4
|
-
import '../chunks/index.d-
|
|
4
|
+
import '../chunks/index.d-DHMNq1lu.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../chunks/schemas.d-b6_AekBb.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MqApplePayCheckout as MqApplePayCheckout$1, ApplePayCheckoutSuccessEvent, ApplePayCheckoutDeniedEvent, ApplePayCheckoutErrorEvent } from '../mq-apple-pay-checkout.js';
|
|
3
3
|
import 'lit';
|
|
4
|
-
import '../chunks/index.d-
|
|
4
|
+
import '../chunks/index.d-DHMNq1lu.js';
|
|
5
5
|
import 'axios';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../chunks/schemas.d-b6_AekBb.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o as t}from"../chunks/create-component-BB-6Gu6l.js";import*as s from"react";import{MqApplePayCheckout as e}from"../mq-apple-pay-checkout.js";import"../chunks/custom-element-D2ziPxYE.js";import"../chunks/provide-BwI4DDGF.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/api-client-context-BXGqBAlO.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/login-token-task-
|
|
2
|
+
import{o as t}from"../chunks/create-component-BB-6Gu6l.js";import*as s from"react";import{MqApplePayCheckout as e}from"../mq-apple-pay-checkout.js";import"../chunks/custom-element-D2ziPxYE.js";import"../chunks/provide-BwI4DDGF.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/api-client-context-BXGqBAlO.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/login-token-task-NQJ77O_q.js";import"../chunks/task-CqjSKFwZ.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/chunk-FUCSYDW7-Duj5hy8S.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../env.js";import"../i18n.js";import"../chunks/external-JLtsAfi6.js";import"../chunks/api-chat-client-s45J7LKB.js";import"../chunks/chunk-NIAGR3ZC-BDlNUZa1.js";import"../chunks/parseISO-CEksKisk.js";import"../chunks/isBefore-DBi1CiNR.js";import"../chunks/apple-pay-outcomes-SIvDJWN_.js";const o=t({react:s,tagName:"mq-apple-pay-checkout",elementClass:e,events:{onPaymentSuccess:"payment-success",onPaymentDenied:"payment-denied",onPaymentError:"payment-error"}});export{o as MqApplePayCheckout};
|
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MqAppointmentCheckout as MqAppointmentCheckout$1, AppointmentPaidEvent } from '../mq-appointment-checkout.js';
|
|
3
3
|
import 'lit-html';
|
|
4
|
-
import '../chunks/index.d-ByhRBSb1.js';
|
|
5
|
-
import 'axios';
|
|
6
|
-
import 'zod';
|
|
7
|
-
import '../chunks/schemas.d-b6_AekBb.js';
|
|
8
4
|
import 'lit';
|
|
9
5
|
import '../env.js';
|
|
10
6
|
import '../i18n.js';
|
|
7
|
+
import 'zod';
|
|
11
8
|
import '../mq-checkout.js';
|
|
9
|
+
import '../chunks/index.d-DHMNq1lu.js';
|
|
10
|
+
import 'axios';
|
|
11
|
+
import '../chunks/schemas.d-b6_AekBb.js';
|
|
12
12
|
import '../ui/mq-skeleton.js';
|
|
13
13
|
|
|
14
14
|
interface MqAppointmentCheckoutProps {
|
|
15
15
|
apiKey: MqAppointmentCheckout$1["apiKey"];
|
|
16
16
|
token: MqAppointmentCheckout$1["token"];
|
|
17
17
|
locale: MqAppointmentCheckout$1["locale"];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
payableReference: MqAppointmentCheckout$1["payableReference"];
|
|
19
|
+
/** @deprecated Not sent any more: the signed `payableReference` already carries it. */
|
|
20
|
+
slotId?: MqAppointmentCheckout$1["slotId"];
|
|
21
|
+
/** @deprecated Not sent any more: the signed `payableReference` already carries it. */
|
|
22
|
+
serviceId?: MqAppointmentCheckout$1["serviceId"];
|
|
23
|
+
/** @deprecated Not sent any more: the signed `payableReference` already carries it. */
|
|
24
|
+
specialtyId?: MqAppointmentCheckout$1["specialtyId"];
|
|
21
25
|
env?: MqAppointmentCheckout$1["env"];
|
|
22
26
|
consultationReason?: MqAppointmentCheckout$1["consultationReason"];
|
|
23
27
|
discountCode?: MqAppointmentCheckout$1["discountCode"];
|
|
24
|
-
|
|
28
|
+
/** @deprecated Not forwarded: the hosted checkout does not take pre-consultation documents. */
|
|
25
29
|
preconsultationDocuments?: MqAppointmentCheckout$1["preconsultationDocuments"];
|
|
26
30
|
/** Payment confirmed. */
|
|
27
31
|
onPaymentSuccess?: (event: AppointmentPaidEvent) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o as t}from"../chunks/create-component-BB-6Gu6l.js";import*as s from"react";import{MqAppointmentCheckout as e}from"../mq-appointment-checkout.js";import"../chunks/custom-element-D2ziPxYE.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/if-defined-BYeVdwgd.js";import"../mq-checkout.js";import"../chunks/provide-BwI4DDGF.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/task-
|
|
2
|
+
import{o as t}from"../chunks/create-component-BB-6Gu6l.js";import*as s from"react";import{MqAppointmentCheckout as e}from"../mq-appointment-checkout.js";import"../chunks/custom-element-D2ziPxYE.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/if-defined-BYeVdwgd.js";import"../mq-checkout.js";import"../chunks/provide-BwI4DDGF.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/task-CqjSKFwZ.js";import"../chunks/api-client-context-BXGqBAlO.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/login-token-task-NQJ77O_q.js";import"../chunks/state-LQivXIgA.js";import"../chunks/query-CeeutdfT.js";import"../env.js";import"../theme.js";import"../i18n.js";import"../chunks/chunk-FUCSYDW7-Duj5hy8S.js";import"../chunks/external-JLtsAfi6.js";import"../chunks/api-chat-client-s45J7LKB.js";import"../chunks/chunk-NIAGR3ZC-BDlNUZa1.js";import"../chunks/parseISO-CEksKisk.js";import"../chunks/isBefore-DBi1CiNR.js";import"../ui/mq-skeleton.js";import"../chunks/style-map-CIdqdn7C.js";import"../chunks/directive-2EDmOukv.js";import"../chunks/checkout-bridge-BFpVxNww.js";const o=t({react:s,tagName:"mq-appointment-checkout",elementClass:e,events:{onPaymentSuccess:"payment-success"}});export{o as MqAppointmentCheckout};
|
|
@@ -2,23 +2,23 @@ import * as React from 'react';
|
|
|
2
2
|
import { MqAppointmentDocumentation as MqAppointmentDocumentation$1 } from '../mq-appointment-documentation.js';
|
|
3
3
|
import { DownloadFileEvent, MqViewAppointmentsEvent } from '../events.js';
|
|
4
4
|
import 'lit-html';
|
|
5
|
-
import '../chunks/index.d-
|
|
5
|
+
import '../chunks/index.d-DHMNq1lu.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../chunks/schemas.d-b6_AekBb.js';
|
|
9
9
|
import 'lit';
|
|
10
10
|
import '../env.js';
|
|
11
11
|
import '../ui/mq-button.js';
|
|
12
|
-
import '../chunks/mq-chat-room-
|
|
12
|
+
import '../chunks/mq-chat-room-C0dJCvpV.js';
|
|
13
13
|
import '../ui/mq-avatar.js';
|
|
14
14
|
import '../ui/mq-skeleton.js';
|
|
15
|
-
import '../chunks/
|
|
15
|
+
import '../chunks/index-DwlJg2um.js';
|
|
16
16
|
import '@tanstack/query-core';
|
|
17
17
|
import '../ui/mq-floating-bubble.js';
|
|
18
18
|
import '../ui/mq-card.js';
|
|
19
19
|
import '../ui/mq-unread-badge.js';
|
|
20
20
|
import '../ui/mq-page-title.js';
|
|
21
|
-
import '../chunks/index-
|
|
21
|
+
import '../chunks/index-BKjqWyIs.js';
|
|
22
22
|
import '../chunks/document.model.d-DIzMiOmd.js';
|
|
23
23
|
import '../chunks/mq-layout-D8Mak16a.js';
|
|
24
24
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o}from"../chunks/create-component-BB-6Gu6l.js";import*as t from"react";import{MqAppointmentDocumentation as s}from"../mq-appointment-documentation.js";import"../i18n.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/chunk-FUCSYDW7-Duj5hy8S.js";import"../chunks/external-JLtsAfi6.js";import"../chunks/custom-element-D2ziPxYE.js";import"../chunks/provide-BwI4DDGF.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/query-controller-B1byDHlF.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"../chunks/create-context-DqP79qjF.js";import"@tanstack/query-core";import"../chunks/api-client-context-BXGqBAlO.js";import"../chunks/get-appointment-query-DuHrjd8L.js";import"../chunks/chunk-6CCJWPGL-TiaqZaPV.js";import"../chunks/chunk-5EJXDIGT-Bb4_pfDr.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../env.js";import"../chunks/api-chat-client-s45J7LKB.js";import"../chunks/chunk-NIAGR3ZC-BDlNUZa1.js";import"../chunks/parseISO-CEksKisk.js";import"../chunks/isBefore-DBi1CiNR.js";import"../chunks/documentation-view-
|
|
2
|
+
import{o}from"../chunks/create-component-BB-6Gu6l.js";import*as t from"react";import{MqAppointmentDocumentation as s}from"../mq-appointment-documentation.js";import"../i18n.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/chunk-FUCSYDW7-Duj5hy8S.js";import"../chunks/external-JLtsAfi6.js";import"../chunks/custom-element-D2ziPxYE.js";import"../chunks/provide-BwI4DDGF.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/query-controller-B1byDHlF.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"../chunks/create-context-DqP79qjF.js";import"@tanstack/query-core";import"../chunks/api-client-context-BXGqBAlO.js";import"../chunks/get-appointment-query-DuHrjd8L.js";import"../chunks/chunk-6CCJWPGL-TiaqZaPV.js";import"../chunks/chunk-5EJXDIGT-Bb4_pfDr.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../env.js";import"../chunks/api-chat-client-s45J7LKB.js";import"../chunks/chunk-NIAGR3ZC-BDlNUZa1.js";import"../chunks/parseISO-CEksKisk.js";import"../chunks/isBefore-DBi1CiNR.js";import"../chunks/documentation-view-CzCDvut1.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/task-CqjSKFwZ.js";import"../chunks/addSeconds-fO5orJrt.js";import"../ui/icons/calendar-icon.js";import"../chunks/if-defined-BYeVdwgd.js";import"../ui/icons/types.js";import"../ui/icons/clock-icon.js";import"../ui/icons/info-circle-outine-icon.js";import"../ui/mq-button.js";import"../chunks/class-map-Co76I6aw.js";import"../chunks/directive-2EDmOukv.js";import"../chunks/chunk-S5RWG6G2-CQJ38pW6.js";import"../ui/icons/message-bubble-icon.js";import"../chunks/mq-chat-room-C2EALCSm.js";import"../theme.js";import"../ui/icons/x-icon.js";import"../ui/mq-avatar.js";import"../ui/mq-skeleton.js";import"../chunks/style-map-CIdqdn7C.js";import"../chunks/chunk-BUV4MGML-CkhBbfUu.js";import"../ui/icons/chevron-left-icon.js";import"../chunks/query-CeeutdfT.js";import"../events.js";import"../chunks/chunk-Y4EKUX25-Bix9r5ry.js";import"../ui/icons/check-double-icon.js";import"../ui/icons/check-icon.js";import"../chunks/addDays-CdyO-PRI.js";import"../chunks/chunk-YTQUGGS3-DH0H7ld7.js";import"../chunks/index-Djkwyh_M.js";import"../chunks/mutation-controller-CR2qcqhH.js";import"../ui/mq-floating-bubble.js";import"../ui/mq-card.js";import"../ui/mq-unread-badge.js";import"../ui/mq-page-title.js";import"../ui/icons/arrow-narrow-left-icon.js";import"../ui/icons/download-icon.js";import"../chunks/blob-to-base64-CUL1trde.js";import"../chunks/telemetry-client-DA2_SZBC.js";import"../chunks/mq-layout-BndHxkbb.js";const i=o({react:t,tagName:"mq-appointment-documentation",elementClass:s,events:{onDownloadFile:"mq-download-file",onViewAppointments:"mq-view-appointments"}});export{i as MqAppointmentDocumentation};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { M as MqChatRoom$1 } from '../chunks/mq-chat-room-
|
|
2
|
+
import { M as MqChatRoom$1 } from '../chunks/mq-chat-room-C0dJCvpV.js';
|
|
3
3
|
import { MqChatRoomCloseEvent, MqChatRoomProfileEvent } from '../mq-chat-room.js';
|
|
4
4
|
import { DownloadFileEvent } from '../events.js';
|
|
5
5
|
import 'lit-html';
|
|
6
6
|
import 'lit';
|
|
7
|
-
import '../chunks/index.d-
|
|
7
|
+
import '../chunks/index.d-DHMNq1lu.js';
|
|
8
8
|
import 'axios';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../chunks/schemas.d-b6_AekBb.js';
|
|
11
11
|
import '../ui/mq-avatar.js';
|
|
12
12
|
import '../ui/mq-button.js';
|
|
13
13
|
import '../ui/mq-skeleton.js';
|
|
14
|
-
import '../chunks/
|
|
14
|
+
import '../chunks/index-DwlJg2um.js';
|
|
15
15
|
import '@tanstack/query-core';
|
|
16
16
|
|
|
17
17
|
interface MqChatRoomProps {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o as s}from"../chunks/create-component-BB-6Gu6l.js";import*as o from"react";import{M as t}from"../chunks/mq-chat-room-
|
|
2
|
+
import{o as s}from"../chunks/create-component-BB-6Gu6l.js";import*as o from"react";import{M as t}from"../chunks/mq-chat-room-C2EALCSm.js";import"../chunks/custom-element-D2ziPxYE.js";import"../chunks/provide-BwI4DDGF.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/api-client-context-BXGqBAlO.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../theme.js";import"../ui/icons/x-icon.js";import"../chunks/if-defined-BYeVdwgd.js";import"../ui/icons/types.js";import"../ui/mq-avatar.js";import"../chunks/class-map-Co76I6aw.js";import"../chunks/directive-2EDmOukv.js";import"../ui/mq-button.js";import"../ui/mq-skeleton.js";import"../chunks/style-map-CIdqdn7C.js";import"../chunks/query-controller-B1byDHlF.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"@tanstack/query-core";import"../chunks/chunk-BUV4MGML-CkhBbfUu.js";import"../chunks/chunk-6CCJWPGL-TiaqZaPV.js";import"../ui/icons/chevron-left-icon.js";import"../chunks/chunk-S5RWG6G2-CQJ38pW6.js";import"../chunks/chunk-NIAGR3ZC-BDlNUZa1.js";import"../chunks/parseISO-CEksKisk.js";import"../chunks/query-CeeutdfT.js";import"../chunks/chunk-FUCSYDW7-Duj5hy8S.js";import"../events.js";import"../chunks/api-chat-client-s45J7LKB.js";import"../chunks/external-JLtsAfi6.js";import"../chunks/isBefore-DBi1CiNR.js";import"../env.js";import"../chunks/chunk-Y4EKUX25-Bix9r5ry.js";import"../ui/icons/check-double-icon.js";import"../ui/icons/check-icon.js";import"../i18n.js";import"../chunks/addDays-CdyO-PRI.js";import"../chunks/chunk-YTQUGGS3-DH0H7ld7.js";import"../chunks/index-Djkwyh_M.js";import"../chunks/mutation-controller-CR2qcqhH.js";const n=s({react:o,tagName:"mq-chat-room",elementClass:t,events:{onClose:"mq-chat-room-close",onProfile:"mq-chat-room-profile",onDownloadFile:"mq-download-file"}});export{n as MqChatRoom};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { MqCheckout as MqCheckout$1, CheckoutSuccessEvent, CheckoutDeniedEvent,
|
|
2
|
+
import { MqCheckout as MqCheckout$1, CheckoutSuccessEvent, CheckoutDeniedEvent, CheckoutGrantedEvent, CheckoutErrorEvent } from '../mq-checkout.js';
|
|
3
3
|
import 'lit-html';
|
|
4
4
|
import 'lit';
|
|
5
|
-
import '../chunks/index.d-
|
|
5
|
+
import '../chunks/index.d-DHMNq1lu.js';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../chunks/schemas.d-b6_AekBb.js';
|
|
@@ -15,16 +15,19 @@ interface MqCheckoutProps {
|
|
|
15
15
|
token: MqCheckout$1["token"];
|
|
16
16
|
locale: MqCheckout$1["locale"];
|
|
17
17
|
env?: MqCheckout$1["env"];
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/** Signed reference of what is being paid: `appt_…`, `chat_…` or `vc_…`. */
|
|
19
|
+
payableReference?: MqCheckout$1["payableReference"];
|
|
20
|
+
/** Discount coupon already validated by the host. */
|
|
21
|
+
discountCode?: MqCheckout$1["discountCode"];
|
|
22
|
+
consultationReason?: MqCheckout$1["consultationReason"];
|
|
20
23
|
/** Payment confirmed. */
|
|
21
24
|
onPaymentSuccess?: (event: CheckoutSuccessEvent) => void;
|
|
22
|
-
/** Payment rejected. */
|
|
25
|
+
/** Payment rejected; the checkout lets the patient try again. */
|
|
23
26
|
onPaymentDenied?: (event: CheckoutDeniedEvent) => void;
|
|
24
|
-
/**
|
|
27
|
+
/** Nothing to pay: the patient may already consult for free. */
|
|
28
|
+
onPaymentGranted?: (event: CheckoutGrantedEvent) => void;
|
|
29
|
+
/** The payment cannot go on. */
|
|
25
30
|
onPaymentError?: (event: CheckoutErrorEvent) => void;
|
|
26
|
-
/** The portal requested a retry (notification only). */
|
|
27
|
-
onPaymentRetry?: (event: CheckoutRetryEvent) => void;
|
|
28
31
|
className?: string;
|
|
29
32
|
style?: React.CSSProperties;
|
|
30
33
|
id?: string;
|