@alfadocs/ui-kit 0.1.9 → 0.2.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 +30 -0
- package/dist/_chunks/accordion-DOmxGEWU.js +228 -0
- package/dist/_chunks/{agenda-card-DwLIxgi7.js → agenda-card-CalZqycc.js} +12 -3
- package/dist/_chunks/{agenda-tray-DUvengGQ.js → agenda-tray-3ffFDQZC.js} +54 -51
- package/dist/_chunks/{ai-prompt-input.agent-0NHYLTWD.js → ai-prompt-input-BBiDlEIS.js} +231 -231
- package/dist/_chunks/{alert-BlOUMkXj.js → alert-B1sj8Ss0.js} +24 -14
- package/dist/_chunks/{apexcharts-theme-BkSShpEy.js → apexcharts-theme-BJigns_V.js} +7 -2
- package/dist/_chunks/{app-frame-6d7Lu4ea.js → app-frame-CDJOgPXe.js} +7 -16
- package/dist/_chunks/{audio-recorder.agent--VKeykUp.js → audio-recorder-B4U1LuiQ.js} +161 -162
- package/dist/_chunks/{audio-visualiser-CeMPCZkd.js → audio-visualiser-ByDEFLNm.js} +25 -19
- package/dist/_chunks/autocomplete-D4oUZbsP.js +466 -0
- package/dist/_chunks/{badge-mrstWxve.js → badge-DKFbntoa.js} +16 -13
- package/dist/_chunks/{balance-cell-renderer-5CA7zpAi.js → balance-cell-renderer-B8zgIM-m.js} +63 -44
- package/dist/_chunks/{breadcrumb.agent-GM2hAKFX.js → breadcrumb-D1snXjPb.js} +165 -157
- package/dist/_chunks/{button-7mLWcMp_.js → button-DD_0Xdmr.js} +12 -2
- package/dist/_chunks/{calendar-nGEgelJs.js → calendar-zy0tUUVG.js} +13 -18
- package/dist/_chunks/{card-BEy58ZKp.js → card-CWzuTLYE.js} +40 -34
- package/dist/_chunks/{chart.agent-_pRYS17d.js → chart-BLvFl169.js} +147 -131
- package/dist/_chunks/chat-container-ClzsWXp2.js +220 -0
- package/dist/_chunks/chat-input-DOlsB1fm.js +333 -0
- package/dist/_chunks/{chat-message-ByouZpPP.js → chat-message-DoAhgUTj.js} +23 -13
- package/dist/_chunks/{collapsible.agent-DkS1jVyn.js → collapsible-CuxUBoHJ.js} +97 -99
- package/dist/_chunks/{color-picker-94qcBZqZ.js → color-picker-CTIcHlDF.js} +111 -45
- package/dist/_chunks/combobox-DCNXqbC7.js +460 -0
- package/dist/_chunks/command-palette-C_vgSgrI.js +441 -0
- package/dist/_chunks/{date-picker-BqPTn7bO.js → date-picker-B1PO1ZQP.js} +190 -181
- package/dist/_chunks/{date-range-picker-B2hGsffw.js → date-range-picker-mix2nEVC.js} +21 -8
- package/dist/_chunks/{date-time-picker-Bzt0S8yO.js → date-time-picker-Dnong_BY.js} +30 -15
- package/dist/_chunks/{description-list-DvJbp6Yg.js → description-list-BYA77Yud.js} +26 -23
- package/dist/_chunks/dialog-BPD7wlGE.js +211 -0
- package/dist/_chunks/dropdown-menu-CpiF6CPz.js +300 -0
- package/dist/_chunks/{empty-state-DQPtRp2b.js → empty-state-3CLJIXSj.js} +132 -101
- package/dist/_chunks/file-upload-C947ACDK.js +829 -0
- package/dist/_chunks/{floating-action-button-Cnw-f6AG.js → floating-action-button-C8OYj8mE.js} +9 -2
- package/dist/_chunks/{form-field-BfsPLTSc.js → form-field-Bmkeh7WY.js} +12 -11
- package/dist/_chunks/{form-field-context-94LwgYTQ.js → form-field-context-B3APVHKx.js} +4 -2
- package/dist/_chunks/{freemium-paywall.agent-_nQqLyRF.js → freemium-paywall-CnvceDav.js} +124 -117
- package/dist/_chunks/{header-BGn1mRp8.js → header-D0ULgQl3.js} +69 -68
- package/dist/_chunks/{icon-button-Wnnde5lc.js → icon-button-C4CGcYuz.js} +11 -3
- package/dist/_chunks/{kbd-8baVw3KU.js → kbd-Cglkd7CY.js} +6 -2
- package/dist/_chunks/{key-value-pair-JRFS9Xrh.js → key-value-pair-CgWvAIGb.js} +2 -2
- package/dist/_chunks/{leo-sidebar-BwINPdix.js → leo-sidebar-CfEY-xi2.js} +16 -20
- package/dist/_chunks/{link-QheANk74.js → link-8QmFjIz2.js} +2 -5
- package/dist/_chunks/list-qP6p0NTw.js +434 -0
- package/dist/_chunks/{logo-BpFoCL-s.js → logo-_Z-jLq80.js} +155 -26
- package/dist/_chunks/{matrix-rain-BEkvux64.js → matrix-rain-CRPMXcVx.js} +8 -2
- package/dist/_chunks/{message-card-qhoGv947.js → message-card-ChCX9Iv6.js} +63 -60
- package/dist/_chunks/{message-tray-xHUCra-Y.js → message-tray-n8q9ITXI.js} +71 -76
- package/dist/_chunks/{multi-select.agent-Do6CeQUT.js → multi-select-wqqrgjUQ.js} +326 -291
- package/dist/_chunks/{navigation-menu.agent-D69ND6Qq.js → navigation-menu-ClbHeawy.js} +136 -123
- package/dist/_chunks/{notification-card-CsVEYJE-.js → notification-card-hBlPN1-c.js} +3 -3
- package/dist/_chunks/{notification-tray-DTXMq42J.js → notification-tray-C5cnXbl9.js} +70 -66
- package/dist/_chunks/{number-input-fvGmnRy9.js → number-input-Q7wkHnvQ.js} +7 -3
- package/dist/_chunks/{otp-input-EglXOUue.js → otp-input-C9gUByF0.js} +6 -3
- package/dist/_chunks/{pagination.agent-BkZQl45y.js → pagination-3AC4zTsi.js} +234 -194
- package/dist/_chunks/{password-input-D6kuYXmr.js → password-input-C4LmjIH1.js} +6 -9
- package/dist/_chunks/{patient-shell-BRmrrUUW.js → patient-shell-BlsEUKWB.js} +10 -15
- package/dist/_chunks/{payment-form-BWaXas8z.js → payment-form-C3vT_npe.js} +195 -186
- package/dist/_chunks/{pdf-viewer.agent-BaGEDheA.js → pdf-viewer-CZIfY08H.js} +270 -241
- package/dist/_chunks/{phone-input-C8Op4sEc.js → phone-input-CSHJOJ13.js} +4 -9
- package/dist/_chunks/popover-DekUKNBk.js +293 -0
- package/dist/_chunks/{privacy-lock.agent-C1i1-T58.js → privacy-lock-BKsI6ReN.js} +117 -109
- package/dist/_chunks/progress-C11tqhoI.js +298 -0
- package/dist/_chunks/{recaptcha-widget.agent-BGHpU5zD.js → recaptcha-widget-NyfOfLII.js} +95 -86
- package/dist/_chunks/resizable-mpXXyIsN.js +483 -0
- package/dist/_chunks/{rich-text-editor.agent-DnE125Tz.js → rich-text-editor-C7TCIlQO.js} +298 -209
- package/dist/_chunks/{scroll-area-DLr5w9Dd.js → scroll-area-DEDU-lp-.js} +67 -54
- package/dist/_chunks/{search-bar.agent-DxFAxctc.js → search-bar-BTDfgYtg.js} +291 -268
- package/dist/_chunks/{search-input-Xw3cdWXW.js → search-input-CdJIEjFo.js} +116 -107
- package/dist/_chunks/{select-DY1Cb2Tg.js → select-y6bXV1f1.js} +84 -83
- package/dist/_chunks/{separator-B4wXDLNC.js → separator-CYU_bGFn.js} +2 -5
- package/dist/_chunks/{sheet-B9kH9pcI.js → sheet-4tgMFwj0.js} +135 -60
- package/dist/_chunks/{sidebar-CHF5xr_P.js → sidebar-Bx3wCDyy.js} +546 -457
- package/dist/_chunks/{sign-in-with-alfadocs-button-BN_FPGHT.js → sign-in-with-alfadocs-button-B9UrqOqH.js} +9 -5
- package/dist/_chunks/{signature-capture.agent-BpeDwFht.js → signature-capture-DjMlFOzS.js} +210 -212
- package/dist/_chunks/{skeleton-dtqyF09N.js → skeleton-CZbwyJAA.js} +9 -3
- package/dist/_chunks/{slider-CcsQTZTA.js → slider-BT2bZWsy.js} +138 -134
- package/dist/_chunks/{slot-grid-D_l5VsHG.js → slot-grid-CgpYgBkW.js} +105 -95
- package/dist/_chunks/{sparkline.agent-56Sj7nOP.js → sparkline-_gy8aJDG.js} +107 -100
- package/dist/_chunks/{spinner-GCcv67vh.js → spinner-DLaYfLPl.js} +66 -14
- package/dist/_chunks/{stat-DUB6g90R.js → stat-B9PHSPbN.js} +45 -27
- package/dist/_chunks/{stepper-calendar.agent-9iT3ClIB.js → stepper-calendar-BLOJUE0-.js} +189 -187
- package/dist/_chunks/stepper-progress-jFY8BSf7.js +208 -0
- package/dist/_chunks/{suggestion-chip-DhFrkRPj.js → suggestion-chip-C4Jz0LrM.js} +50 -52
- package/dist/_chunks/{switch-BYEH8I53.js → switch-C0psfIQF.js} +2 -2
- package/dist/_chunks/{tabs.agent-h7NvsTR1.js → tabs-DaFA3Muo.js} +183 -155
- package/dist/_chunks/{tag-BqidXKo3.js → tag-DuLMjRbF.js} +90 -32
- package/dist/_chunks/{task-card-CY5ztNkU.js → task-card-Dw_ZJDL8.js} +5 -2
- package/dist/_chunks/{task-tray-CCoUdorl.js → task-tray-XlIW9ueh.js} +50 -49
- package/dist/_chunks/{text-area-C_M8wliK.js → text-area-CO9Dz0qX.js} +2 -2
- package/dist/_chunks/{text-input-BX39e6T6.js → text-input-DZwt9L8H.js} +65 -62
- package/dist/_chunks/{theme-root-DDb0TJjd.js → theme-root-CSKD5ZRm.js} +9 -2
- package/dist/_chunks/{theme-toggle.agent-btmXTWdW.js → theme-toggle-B9zzCnvl.js} +179 -177
- package/dist/_chunks/{time-picker-B8AMIrX7.js → time-picker-DvPUmHH-.js} +95 -93
- package/dist/_chunks/{timeline.agent-CRPza9wc.js → timeline-BvmnQadS.js} +96 -96
- package/dist/_chunks/{toast.agent-BjEGuq1Z.js → toast.agent-BwKXA0km.js} +46 -8
- package/dist/_chunks/{tooth-scheme.agent-CWrQBjJM.js → tooth-scheme-3mITSXiZ.js} +146 -162
- package/dist/_chunks/{transcript-panel.agent-BXEYP6w-.js → transcript-panel-Bx5ANMsv.js} +110 -101
- package/dist/_chunks/{typing-indicator-CbUBf-Dx.js → typing-indicator-BZ5jXZPn.js} +27 -5
- package/dist/_chunks/{use-theme-BMUhembX.js → use-theme-B1cwAXJR.js} +2 -5
- package/dist/_chunks/{visually-hidden-Bw7vBHLm.js → visually-hidden-BHxEUGyT.js} +11 -2
- package/dist/_chunks/{warning-stack-8Pa3pekh.js → warning-stack-VygGHSqC.js} +11 -13
- package/dist/_chunks/{workflow-map-D2A7rTEG.js → workflow-map-C-nlogPC.js} +430 -452
- package/dist/agent-catalog.json +580 -15
- package/dist/components/_shared/index.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +5 -6
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/agenda-tray.d.ts +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/chart/index.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +1 -1
- package/dist/components/chat-container/index.js +2 -3
- package/dist/components/chat-input/chat-input.d.ts +1 -1
- package/dist/components/chat-input/index.js +3 -4
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox-group/index.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/index.d.ts +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.d.ts +46 -13
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +3 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/data-table/toolbar.d.ts +6 -5
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.d.ts +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/description-list.d.ts +1 -2
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -16
- package/dist/components/dropdown-menu/index.js +3 -4
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/form-field/index.js +2 -2
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/matrix-rain/index.js +1 -1
- package/dist/components/message-card/index.d.ts +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/notification-card/index.d.ts +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination.d.ts +4 -6
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/payment-form/index.js +7 -8
- package/dist/components/payment-form/payment-form.d.ts +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.d.ts +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +3 -4
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/privacy-lock/privacy-lock.d.ts +1 -1
- package/dist/components/progress/index.js +3 -4
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.d.ts +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/search-bar.d.ts +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sheet/index.js +3 -4
- package/dist/components/sheet/sheet.d.ts +2 -2
- package/dist/components/sidebar/index.js +7 -8
- package/dist/components/sidebar/sidebar.d.ts +0 -2
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stepper-calendar/index.js +1 -1
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +1 -1
- package/dist/components/stepper-progress/index.d.ts +1 -1
- package/dist/components/stepper-progress/index.js +1 -2
- package/dist/components/stepper-progress/stepper-progress.d.ts +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/task-tray/task-tray.d.ts +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-root/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/theme-toggle/theme-toggle.d.ts +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timeline/timeline.d.ts +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/transcript-panel/transcript-panel.d.ts +1 -1
- package/dist/components/typing-indicator/index.js +1 -1
- package/dist/components/visually-hidden/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow/workflow-editor.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +392 -402
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/safe-html/index.js +20 -3
- package/dist/tokens.css +2 -2
- package/package.json +12 -2
- package/dist/_chunks/accordion-BEnrZmAn.js +0 -120
- package/dist/_chunks/accordion.agent-BTjeO1Sx.js +0 -52
- package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +0 -432
- package/dist/_chunks/chat-container-Dl0Kfy5a.js +0 -175
- package/dist/_chunks/chat-container.agent-CM4WModE.js +0 -27
- package/dist/_chunks/chat-input-C_tMQv92.js +0 -252
- package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +0 -69
- package/dist/_chunks/combobox.agent-CAvUkkIe.js +0 -410
- package/dist/_chunks/command-palette.agent-HatEt_EM.js +0 -391
- package/dist/_chunks/dialog.agent-Daf1TTko.js +0 -179
- package/dist/_chunks/dropdown-menu-C7AZipNz.js +0 -219
- package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +0 -43
- package/dist/_chunks/file-upload.agent-DJaH2dHg.js +0 -681
- package/dist/_chunks/list.agent-D0iWt4VI.js +0 -420
- package/dist/_chunks/payment-form.agent-kuIfodCj.js +0 -31
- package/dist/_chunks/popover-kFN8s84V.js +0 -229
- package/dist/_chunks/popover.agent-K_d1cfbj.js +0 -39
- package/dist/_chunks/progress-wNsqkw8I.js +0 -253
- package/dist/_chunks/progress.agent-C68rDOXL.js +0 -27
- package/dist/_chunks/resizable.agent-CMwZzvsi.js +0 -456
- package/dist/_chunks/sheet.agent-QAyTOxgk.js +0 -46
- package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +0 -49
- package/dist/_chunks/stepper-progress-Bmen-YXB.js +0 -149
- package/dist/_chunks/stepper-progress.agent-q9InWca4.js +0 -61
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as se, useState as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { S as J } from "./spinner-
|
|
6
|
-
import { A as W } from "./alert-
|
|
1
|
+
import { jsx as t, jsxs as m, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as se, useState as E, useEffect as R, useRef as V, useMemo as j, useImperativeHandle as ae, useId as oe, useCallback as ie } from "react";
|
|
3
|
+
import { c as z } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as q } from "react-i18next";
|
|
5
|
+
import { S as J } from "./spinner-DLaYfLPl.js";
|
|
6
|
+
import { A as W } from "./alert-B1sj8Ss0.js";
|
|
7
7
|
import { loadStripe as de } from "@stripe/stripe-js";
|
|
8
|
-
import { Elements as ce, useStripe as le, useElements as
|
|
8
|
+
import { Elements as ce, useStripe as le, useElements as me, PaymentElement as ue, AddressElement as pe } from "@stripe/react-stripe-js";
|
|
9
|
+
import { u as fe } from "./registry-C9nwlNyL.js";
|
|
9
10
|
function Y() {
|
|
10
11
|
return typeof document < "u" && typeof window < "u";
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
+
function B(r) {
|
|
13
14
|
if (!Y())
|
|
14
15
|
return { theme: "stripe" };
|
|
15
|
-
const
|
|
16
|
+
const n = r ?? document.documentElement, s = getComputedStyle(n), e = (a) => s.getPropertyValue(a).trim();
|
|
16
17
|
return {
|
|
17
|
-
theme:
|
|
18
|
+
theme: n.classList.contains("theme-dark") ? "night" : "stripe",
|
|
18
19
|
variables: {
|
|
19
20
|
colorPrimary: e("--primary"),
|
|
20
21
|
colorBackground: e("--background"),
|
|
@@ -68,20 +69,46 @@ function j(r) {
|
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function be(r, n) {
|
|
72
73
|
if (!Y()) return () => {
|
|
73
74
|
};
|
|
74
|
-
const s = document.documentElement, e = () => r(
|
|
75
|
+
const s = document.documentElement, e = () => r(B(n)), i = new MutationObserver(e);
|
|
75
76
|
i.observe(s, {
|
|
76
77
|
attributes: !0,
|
|
77
78
|
attributeFilter: ["class", "dir", "lang"]
|
|
78
79
|
});
|
|
79
|
-
const a = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
80
|
-
return a.addEventListener("change", e),
|
|
81
|
-
i.disconnect(), a.removeEventListener("change", e),
|
|
80
|
+
const a = window.matchMedia("(prefers-color-scheme: dark)"), f = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
81
|
+
return a.addEventListener("change", e), f.addEventListener("change", e), () => {
|
|
82
|
+
i.disconnect(), a.removeEventListener("change", e), f.removeEventListener("change", e);
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
|
-
const
|
|
85
|
+
const ge = {
|
|
86
|
+
id: "payment-form",
|
|
87
|
+
capabilities: ["submit"],
|
|
88
|
+
state: {},
|
|
89
|
+
actions: {
|
|
90
|
+
submit: {
|
|
91
|
+
safety: "destructive",
|
|
92
|
+
description: "Submit the payment. Charges the configured payment method — irreversible.",
|
|
93
|
+
invoke: (r) => r.submit()
|
|
94
|
+
},
|
|
95
|
+
reset: {
|
|
96
|
+
safety: "destructive",
|
|
97
|
+
description: "Reset the form to its initial state. Loses any in-progress input.",
|
|
98
|
+
invoke: (r) => {
|
|
99
|
+
r.reset();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
domHooks: {
|
|
104
|
+
root: { attr: "data-component", value: "payment-form" },
|
|
105
|
+
instanceId: {
|
|
106
|
+
attr: "data-component-id",
|
|
107
|
+
sourceProp: "id",
|
|
108
|
+
description: "Sourced from the id prop."
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}, ye = /* @__PURE__ */ new Set([
|
|
85
112
|
"BIF",
|
|
86
113
|
"CLP",
|
|
87
114
|
"DJF",
|
|
@@ -100,8 +127,8 @@ const be = /* @__PURE__ */ new Set([
|
|
|
100
127
|
"XOF",
|
|
101
128
|
"XPF"
|
|
102
129
|
]);
|
|
103
|
-
function
|
|
104
|
-
const e =
|
|
130
|
+
function $(r, n, s) {
|
|
131
|
+
const e = n.toUpperCase(), i = ye.has(e) ? r : r / 100;
|
|
105
132
|
try {
|
|
106
133
|
return new Intl.NumberFormat(s, {
|
|
107
134
|
style: "currency",
|
|
@@ -114,12 +141,12 @@ function B(r, t, s) {
|
|
|
114
141
|
}).format(i);
|
|
115
142
|
}
|
|
116
143
|
}
|
|
117
|
-
function
|
|
144
|
+
function ve(r) {
|
|
118
145
|
if (r === void 0) return null;
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
146
|
+
const n = r.trim();
|
|
147
|
+
if (n === "" || typeof window > "u") return null;
|
|
121
148
|
try {
|
|
122
|
-
const s = new URL(
|
|
149
|
+
const s = new URL(n, window.location.href);
|
|
123
150
|
return !(/* @__PURE__ */ new Set(["http:", "https:"])).has(s.protocol) || s.origin !== window.location.origin ? null : s.toString();
|
|
124
151
|
} catch {
|
|
125
152
|
return null;
|
|
@@ -128,7 +155,7 @@ function ge(r) {
|
|
|
128
155
|
function X(r) {
|
|
129
156
|
return r && r.replace(/\d{4,}/g, "****");
|
|
130
157
|
}
|
|
131
|
-
function
|
|
158
|
+
function he(r) {
|
|
132
159
|
switch (r) {
|
|
133
160
|
case "incorrect_number":
|
|
134
161
|
case "invalid_number":
|
|
@@ -154,7 +181,7 @@ function ve(r) {
|
|
|
154
181
|
return "payment.error.generic";
|
|
155
182
|
}
|
|
156
183
|
}
|
|
157
|
-
const
|
|
184
|
+
const we = z(
|
|
158
185
|
[
|
|
159
186
|
"ds:payment-form-alfadocs ds:flex ds:flex-col",
|
|
160
187
|
"ds:gap-[var(--spacing-md)]",
|
|
@@ -163,14 +190,11 @@ const ye = I(
|
|
|
163
190
|
"ds:p-[var(--spacing-md)]",
|
|
164
191
|
"ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
|
|
165
192
|
].join(" ")
|
|
166
|
-
),
|
|
193
|
+
), T = z(
|
|
167
194
|
["ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]"].join(" ")
|
|
168
|
-
),
|
|
169
|
-
[
|
|
170
|
-
|
|
171
|
-
"ds:text-[var(--foreground)]"
|
|
172
|
-
].join(" ")
|
|
173
|
-
), Q = I(
|
|
195
|
+
), _ = z(
|
|
196
|
+
["type-label", "ds:text-[var(--foreground)]"].join(" ")
|
|
197
|
+
), Q = z(
|
|
174
198
|
[
|
|
175
199
|
"ds:flex ds:items-baseline ds:justify-between",
|
|
176
200
|
"ds:gap-[var(--spacing-sm)]",
|
|
@@ -180,7 +204,7 @@ const ye = I(
|
|
|
180
204
|
"ds:rounded-[var(--radius-sm)]",
|
|
181
205
|
"ds:text-[var(--foreground)]"
|
|
182
206
|
].join(" ")
|
|
183
|
-
), ee =
|
|
207
|
+
), ee = z(
|
|
184
208
|
[
|
|
185
209
|
"ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
186
210
|
"ds:min-block-size-[var(--min-target-size)]",
|
|
@@ -200,156 +224,143 @@ const ye = I(
|
|
|
200
224
|
"ds:aria-busy:cursor-wait"
|
|
201
225
|
].join(" ")
|
|
202
226
|
);
|
|
203
|
-
function
|
|
227
|
+
function xe(r) {
|
|
204
228
|
const {
|
|
205
|
-
amount:
|
|
229
|
+
amount: n,
|
|
206
230
|
currency: s,
|
|
207
231
|
locale: e,
|
|
208
232
|
billingAddress: i,
|
|
209
233
|
returnUrl: a,
|
|
210
|
-
onSuccess:
|
|
211
|
-
onError:
|
|
212
|
-
} = r, { t: o } =
|
|
213
|
-
() => `pay-${
|
|
214
|
-
[
|
|
215
|
-
), F = `${
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}, [
|
|
234
|
+
onSuccess: f,
|
|
235
|
+
onError: N
|
|
236
|
+
} = r, { t: o } = q(), k = le(), S = me(), y = oe(), b = j(
|
|
237
|
+
() => `pay-${y.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
238
|
+
[y]
|
|
239
|
+
), F = `${b}-payment`, L = `${b}-address`, v = `${b}-error`, [u, h] = E(!1), [A, P] = E(!1), [w, x] = E(null), [U, d] = E(""), c = V(f), l = V(N);
|
|
240
|
+
R(() => {
|
|
241
|
+
c.current = f, l.current = N;
|
|
242
|
+
}, [f, N]);
|
|
219
243
|
const D = ie(
|
|
220
|
-
async (
|
|
221
|
-
var
|
|
222
|
-
if (
|
|
223
|
-
h(!0),
|
|
224
|
-
const
|
|
225
|
-
if (a !== void 0 &&
|
|
226
|
-
|
|
244
|
+
async (p) => {
|
|
245
|
+
var G, H, O, K;
|
|
246
|
+
if (p && p.preventDefault(), !k || !S || u) return;
|
|
247
|
+
h(!0), x(null), d("");
|
|
248
|
+
const C = ve(a);
|
|
249
|
+
if (a !== void 0 && C === null) {
|
|
250
|
+
x("payment.error.invalidReturnUrl"), d(o("payment.error.invalidReturnUrl")), (G = l.current) == null || G.call(l, {
|
|
227
251
|
code: "invalid_return_url",
|
|
228
252
|
translatedMessage: o("payment.error.invalidReturnUrl")
|
|
229
253
|
}), h(!1);
|
|
230
254
|
return;
|
|
231
255
|
}
|
|
232
256
|
try {
|
|
233
|
-
const g = await
|
|
234
|
-
elements:
|
|
235
|
-
confirmParams:
|
|
257
|
+
const g = await k.confirmPayment({
|
|
258
|
+
elements: S,
|
|
259
|
+
confirmParams: C ? { return_url: C } : {},
|
|
236
260
|
redirect: "if_required"
|
|
237
261
|
});
|
|
238
262
|
if (g.error) {
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
code:
|
|
242
|
-
translatedMessage:
|
|
263
|
+
const M = g.error.code ?? "generic", I = he(M), te = X(g.error.message ?? "");
|
|
264
|
+
x(I), d(o(I)), (H = l.current) == null || H.call(l, {
|
|
265
|
+
code: M,
|
|
266
|
+
translatedMessage: te || o(I)
|
|
243
267
|
});
|
|
244
268
|
return;
|
|
245
269
|
}
|
|
246
|
-
g.paymentIntent && ((O =
|
|
270
|
+
g.paymentIntent && ((O = c.current) == null || O.call(c, g.paymentIntent.id));
|
|
247
271
|
} catch (g) {
|
|
248
|
-
const
|
|
249
|
-
|
|
272
|
+
const M = g instanceof Error ? g.message : "", I = X(M);
|
|
273
|
+
x("payment.error.generic"), d(o("payment.error.generic")), (K = l.current) == null || K.call(l, {
|
|
250
274
|
code: "unexpected",
|
|
251
|
-
translatedMessage:
|
|
275
|
+
translatedMessage: I || o("payment.error.generic")
|
|
252
276
|
});
|
|
253
277
|
} finally {
|
|
254
278
|
h(!1);
|
|
255
279
|
}
|
|
256
280
|
},
|
|
257
|
-
[
|
|
281
|
+
[k, S, u, a, o]
|
|
258
282
|
);
|
|
259
|
-
|
|
260
|
-
const
|
|
261
|
-
if (!
|
|
262
|
-
const
|
|
283
|
+
R(() => {
|
|
284
|
+
const p = document.getElementById(b);
|
|
285
|
+
if (!p) return;
|
|
286
|
+
const C = () => {
|
|
263
287
|
D();
|
|
264
288
|
};
|
|
265
|
-
return
|
|
266
|
-
}, [
|
|
267
|
-
const re = !
|
|
268
|
-
return /* @__PURE__ */
|
|
289
|
+
return p.addEventListener("payment-form:submit", C), () => p.removeEventListener("payment-form:submit", C);
|
|
290
|
+
}, [b, D]);
|
|
291
|
+
const re = !k || !S || !A || u;
|
|
292
|
+
return /* @__PURE__ */ t(
|
|
269
293
|
"form",
|
|
270
294
|
{
|
|
271
|
-
id:
|
|
295
|
+
id: b,
|
|
272
296
|
onSubmit: D,
|
|
273
297
|
"aria-label": o("payment.ariaLabel"),
|
|
274
298
|
"aria-busy": u || void 0,
|
|
275
299
|
noValidate: !0,
|
|
276
|
-
children: /* @__PURE__ */
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */ n
|
|
280
|
-
"span",
|
|
281
|
-
{
|
|
282
|
-
className: "type-title-card",
|
|
283
|
-
"data-testid": "payment-amount",
|
|
284
|
-
children: B(t, s, e)
|
|
285
|
-
}
|
|
286
|
-
)
|
|
300
|
+
children: /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
301
|
+
/* @__PURE__ */ m("div", { className: Q(), children: [
|
|
302
|
+
/* @__PURE__ */ t("span", { className: _(), children: o("payment.amountLabel") }),
|
|
303
|
+
/* @__PURE__ */ t("span", { className: "type-title-card", "data-testid": "payment-amount", children: $(n, s, e) })
|
|
287
304
|
] }),
|
|
288
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ m(
|
|
289
306
|
"label",
|
|
290
307
|
{
|
|
291
308
|
htmlFor: F,
|
|
292
|
-
className:
|
|
309
|
+
className: T(),
|
|
293
310
|
"data-testid": "payment-field",
|
|
294
311
|
children: [
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
/* @__PURE__ */
|
|
297
|
-
|
|
312
|
+
/* @__PURE__ */ t("span", { className: _(), children: o("payment.fields.card") }),
|
|
313
|
+
/* @__PURE__ */ t(
|
|
314
|
+
ue,
|
|
298
315
|
{
|
|
299
316
|
id: F,
|
|
300
317
|
options: {
|
|
301
318
|
layout: { type: "accordion", defaultCollapsed: !1 }
|
|
302
319
|
},
|
|
303
|
-
onChange: (
|
|
304
|
-
|
|
320
|
+
onChange: (p) => {
|
|
321
|
+
P(p.complete === !0), p.complete && (x(null), d(""));
|
|
305
322
|
}
|
|
306
323
|
}
|
|
307
324
|
)
|
|
308
325
|
]
|
|
309
326
|
}
|
|
310
327
|
),
|
|
311
|
-
i ? /* @__PURE__ */
|
|
328
|
+
i ? /* @__PURE__ */ m(
|
|
312
329
|
"label",
|
|
313
330
|
{
|
|
314
331
|
htmlFor: L,
|
|
315
|
-
className:
|
|
332
|
+
className: T(),
|
|
316
333
|
"data-testid": "payment-address",
|
|
317
334
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
pe,
|
|
321
|
-
{
|
|
322
|
-
id: L,
|
|
323
|
-
options: { mode: "billing" }
|
|
324
|
-
}
|
|
325
|
-
)
|
|
335
|
+
/* @__PURE__ */ t("span", { className: _(), children: o("payment.billingAddress") }),
|
|
336
|
+
/* @__PURE__ */ t(pe, { id: L, options: { mode: "billing" } })
|
|
326
337
|
]
|
|
327
338
|
}
|
|
328
339
|
) : null,
|
|
329
|
-
|
|
340
|
+
w ? /* @__PURE__ */ t(
|
|
330
341
|
W,
|
|
331
342
|
{
|
|
332
|
-
id:
|
|
343
|
+
id: v,
|
|
333
344
|
variant: "error",
|
|
334
345
|
live: "polite",
|
|
335
346
|
"data-testid": "payment-error",
|
|
336
|
-
children: /* @__PURE__ */
|
|
347
|
+
children: /* @__PURE__ */ t(W.Description, { children: U })
|
|
337
348
|
}
|
|
338
349
|
) : null,
|
|
339
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ t(
|
|
340
351
|
"button",
|
|
341
352
|
{
|
|
342
353
|
type: "submit",
|
|
343
354
|
"aria-disabled": re || void 0,
|
|
344
355
|
"aria-busy": u || void 0,
|
|
345
|
-
"aria-describedby":
|
|
356
|
+
"aria-describedby": w ? v : void 0,
|
|
346
357
|
className: ee(),
|
|
347
358
|
"data-testid": "payment-submit",
|
|
348
|
-
children: u ? /* @__PURE__ */
|
|
349
|
-
/* @__PURE__ */
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
] }) : /* @__PURE__ */
|
|
352
|
-
amount:
|
|
359
|
+
children: u ? /* @__PURE__ */ m(ne, { children: [
|
|
360
|
+
/* @__PURE__ */ t(J, { size: "sm", label: o("payment.processing") }),
|
|
361
|
+
/* @__PURE__ */ t("span", { children: o("payment.processing") })
|
|
362
|
+
] }) : /* @__PURE__ */ t("span", { children: o("payment.submit", {
|
|
363
|
+
amount: $(n, s, e)
|
|
353
364
|
}) })
|
|
354
365
|
}
|
|
355
366
|
)
|
|
@@ -357,7 +368,7 @@ function he(r) {
|
|
|
357
368
|
}
|
|
358
369
|
);
|
|
359
370
|
}
|
|
360
|
-
const
|
|
371
|
+
const Z = /* @__PURE__ */ new Set([
|
|
361
372
|
"auto",
|
|
362
373
|
"ar",
|
|
363
374
|
"bg",
|
|
@@ -409,36 +420,34 @@ const H = /* @__PURE__ */ new Set([
|
|
|
409
420
|
"zh-HK",
|
|
410
421
|
"zh-TW"
|
|
411
422
|
]);
|
|
412
|
-
function
|
|
423
|
+
function Ne(r) {
|
|
413
424
|
if (!r) return "auto";
|
|
414
|
-
const
|
|
415
|
-
if (
|
|
416
|
-
return
|
|
417
|
-
const s =
|
|
418
|
-
return
|
|
425
|
+
const n = r === "cn" ? "zh" : r;
|
|
426
|
+
if (Z.has(n))
|
|
427
|
+
return n;
|
|
428
|
+
const s = n.split("-")[0];
|
|
429
|
+
return Z.has(s) ? s : "auto";
|
|
419
430
|
}
|
|
420
|
-
const
|
|
431
|
+
const ke = se(
|
|
421
432
|
({
|
|
422
433
|
id: r,
|
|
423
|
-
clientSecret:
|
|
434
|
+
clientSecret: n,
|
|
424
435
|
publishableKey: s,
|
|
425
436
|
currency: e,
|
|
426
437
|
amount: i,
|
|
427
438
|
onSuccess: a,
|
|
428
|
-
onError:
|
|
429
|
-
billingAddress:
|
|
439
|
+
onError: f,
|
|
440
|
+
billingAddress: N = !1,
|
|
430
441
|
locale: o,
|
|
431
|
-
ariaLabel:
|
|
432
|
-
returnUrl:
|
|
433
|
-
stripePromise:
|
|
434
|
-
className:
|
|
442
|
+
ariaLabel: k,
|
|
443
|
+
returnUrl: S,
|
|
444
|
+
stripePromise: y,
|
|
445
|
+
className: b
|
|
435
446
|
}, F) => {
|
|
436
|
-
const { i18n: L } =
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
if (v !== void 0) {
|
|
441
|
-
h(v);
|
|
447
|
+
const { i18n: L } = q(), v = Ne(o ?? L.language ?? "en"), [u, h] = E(y ?? null);
|
|
448
|
+
R(() => {
|
|
449
|
+
if (y !== void 0) {
|
|
450
|
+
h(y);
|
|
442
451
|
return;
|
|
443
452
|
}
|
|
444
453
|
if (!s) {
|
|
@@ -446,96 +455,95 @@ const xe = se(
|
|
|
446
455
|
return;
|
|
447
456
|
}
|
|
448
457
|
h(de(s));
|
|
449
|
-
}, [
|
|
450
|
-
const [
|
|
451
|
-
() =>
|
|
458
|
+
}, [y, s]);
|
|
459
|
+
const [A, P] = E(
|
|
460
|
+
() => B()
|
|
452
461
|
);
|
|
453
|
-
|
|
454
|
-
const
|
|
455
|
-
ae(
|
|
456
|
-
F,
|
|
462
|
+
R(() => (P(B()), be(P)), []);
|
|
463
|
+
const w = V(null), x = j(
|
|
457
464
|
() => ({
|
|
458
465
|
submit: async () => {
|
|
459
|
-
var
|
|
460
|
-
const
|
|
461
|
-
|
|
466
|
+
var c;
|
|
467
|
+
const d = (c = w.current) == null ? void 0 : c.querySelector("form");
|
|
468
|
+
d && d.dispatchEvent(
|
|
462
469
|
new CustomEvent("payment-form:submit", { bubbles: !0 })
|
|
463
470
|
);
|
|
464
471
|
},
|
|
465
472
|
reset: () => {
|
|
466
|
-
var
|
|
467
|
-
const
|
|
468
|
-
|
|
473
|
+
var c;
|
|
474
|
+
const d = (c = w.current) == null ? void 0 : c.querySelector("form");
|
|
475
|
+
d instanceof HTMLFormElement && d.reset();
|
|
469
476
|
}
|
|
470
477
|
}),
|
|
471
478
|
[]
|
|
472
479
|
);
|
|
473
|
-
|
|
480
|
+
ae(F, () => w.current, []), fe(ge, x, r);
|
|
481
|
+
const U = j(
|
|
474
482
|
() => ({
|
|
475
|
-
clientSecret:
|
|
476
|
-
appearance:
|
|
477
|
-
locale:
|
|
483
|
+
clientSecret: n,
|
|
484
|
+
appearance: A,
|
|
485
|
+
locale: v
|
|
478
486
|
}),
|
|
479
|
-
[
|
|
487
|
+
[n, A, v]
|
|
480
488
|
);
|
|
481
|
-
return /* @__PURE__ */
|
|
489
|
+
return /* @__PURE__ */ t(
|
|
482
490
|
"div",
|
|
483
491
|
{
|
|
484
|
-
ref:
|
|
485
|
-
"aria-label":
|
|
486
|
-
className: [
|
|
492
|
+
ref: w,
|
|
493
|
+
"aria-label": k,
|
|
494
|
+
className: [we(), b].filter(Boolean).join(" "),
|
|
487
495
|
"data-component": "payment-form",
|
|
488
496
|
"data-component-id": r,
|
|
489
497
|
"data-testid": "payment-form-root",
|
|
490
|
-
children: u &&
|
|
498
|
+
children: u && n ? /* @__PURE__ */ t(
|
|
491
499
|
ce,
|
|
492
500
|
{
|
|
493
501
|
stripe: u,
|
|
494
|
-
options:
|
|
495
|
-
children: /* @__PURE__ */
|
|
496
|
-
|
|
502
|
+
options: U,
|
|
503
|
+
children: /* @__PURE__ */ t(
|
|
504
|
+
xe,
|
|
497
505
|
{
|
|
498
506
|
amount: i,
|
|
499
507
|
currency: e,
|
|
500
|
-
locale:
|
|
501
|
-
billingAddress:
|
|
502
|
-
returnUrl:
|
|
508
|
+
locale: v,
|
|
509
|
+
billingAddress: N,
|
|
510
|
+
returnUrl: S,
|
|
503
511
|
onSuccess: a,
|
|
504
|
-
onError:
|
|
512
|
+
onError: f
|
|
505
513
|
}
|
|
506
514
|
)
|
|
507
515
|
},
|
|
508
|
-
|
|
509
|
-
) : /* @__PURE__ */
|
|
510
|
-
|
|
516
|
+
n
|
|
517
|
+
) : /* @__PURE__ */ t(
|
|
518
|
+
Se,
|
|
511
519
|
{
|
|
512
520
|
amount: i,
|
|
513
521
|
currency: e,
|
|
514
|
-
locale:
|
|
515
|
-
billingAddress:
|
|
522
|
+
locale: v,
|
|
523
|
+
billingAddress: N
|
|
516
524
|
}
|
|
517
525
|
)
|
|
518
526
|
}
|
|
519
527
|
);
|
|
520
528
|
}
|
|
521
529
|
);
|
|
522
|
-
|
|
523
|
-
function
|
|
524
|
-
const { amount:
|
|
525
|
-
return /* @__PURE__ */
|
|
530
|
+
ke.displayName = "PaymentForm";
|
|
531
|
+
function Se(r) {
|
|
532
|
+
const { amount: n, currency: s, locale: e, billingAddress: i } = r, { t: a } = q();
|
|
533
|
+
return /* @__PURE__ */ m(
|
|
526
534
|
"div",
|
|
527
535
|
{
|
|
528
536
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
529
537
|
"data-testid": "payment-skeleton",
|
|
530
538
|
"aria-busy": "true",
|
|
531
539
|
children: [
|
|
532
|
-
/* @__PURE__ */
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ m("div", { className: Q(), children: [
|
|
541
|
+
/* @__PURE__ */ t("span", { className: _(), children: a("payment.amountLabel") }),
|
|
542
|
+
/* @__PURE__ */ t("span", { className: "type-title-card", children: $(n, s, e) })
|
|
535
543
|
] }),
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ m("div", { className: T(), children: [
|
|
545
|
+
/* @__PURE__ */ t("span", { className: _(), children: a("payment.fields.card") }),
|
|
546
|
+
/* @__PURE__ */ t(
|
|
539
547
|
"div",
|
|
540
548
|
{
|
|
541
549
|
className: "ds:min-block-size-[var(--min-target-size)] ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--muted)]",
|
|
@@ -543,9 +551,9 @@ function Ne(r) {
|
|
|
543
551
|
}
|
|
544
552
|
)
|
|
545
553
|
] }),
|
|
546
|
-
i ? /* @__PURE__ */
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
/* @__PURE__ */
|
|
554
|
+
i ? /* @__PURE__ */ m("div", { className: T(), children: [
|
|
555
|
+
/* @__PURE__ */ t("span", { className: _(), children: a("payment.billingAddress") }),
|
|
556
|
+
/* @__PURE__ */ t(
|
|
549
557
|
"div",
|
|
550
558
|
{
|
|
551
559
|
className: "ds:min-block-size-[calc(var(--min-target-size)*2)] ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ds:bg-[var(--muted)]",
|
|
@@ -553,7 +561,7 @@ function Ne(r) {
|
|
|
553
561
|
}
|
|
554
562
|
)
|
|
555
563
|
] }) : null,
|
|
556
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ m(
|
|
557
565
|
"button",
|
|
558
566
|
{
|
|
559
567
|
type: "button",
|
|
@@ -561,8 +569,8 @@ function Ne(r) {
|
|
|
561
569
|
className: ee(),
|
|
562
570
|
disabled: !0,
|
|
563
571
|
children: [
|
|
564
|
-
/* @__PURE__ */
|
|
565
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ t(J, { size: "sm", label: a("payment.processing") }),
|
|
573
|
+
/* @__PURE__ */ t("span", { children: a("payment.processing") })
|
|
566
574
|
]
|
|
567
575
|
}
|
|
568
576
|
)
|
|
@@ -571,11 +579,12 @@ function Ne(r) {
|
|
|
571
579
|
);
|
|
572
580
|
}
|
|
573
581
|
export {
|
|
574
|
-
|
|
575
|
-
|
|
582
|
+
ke as P,
|
|
583
|
+
we as a,
|
|
576
584
|
X as b,
|
|
577
|
-
|
|
578
|
-
|
|
585
|
+
he as c,
|
|
586
|
+
$ as f,
|
|
587
|
+
ge as p,
|
|
579
588
|
ee as s
|
|
580
589
|
};
|
|
581
|
-
//# sourceMappingURL=payment-form-
|
|
590
|
+
//# sourceMappingURL=payment-form-C3vT_npe.js.map
|