@alfadocs/ui-kit 0.31.0 → 0.31.3
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/dist/_chunks/{accordion-CNcodXuO.js → accordion-bSU21uTV.js} +3 -3
- package/dist/_chunks/{agenda-card-DO9_yogb.js → agenda-card-UJA6Arbs.js} +3 -3
- package/dist/_chunks/{agenda-tray-WLbfMip6.js → agenda-tray-1fAxNOMz.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-BXlwNnWe.js → ai-prompt-input-C6sCr1Vi.js} +11 -10
- package/dist/_chunks/{alia-sidebar-C-232sD7.js → alia-sidebar-BEoMl6UL.js} +9 -9
- package/dist/_chunks/ar-CEpIJtcO.js +399 -0
- package/dist/_chunks/{audio-recorder-DL800PE_.js → audio-recorder-C1rhKhSN.js} +114 -114
- package/dist/_chunks/audio-visualiser-l6zPd0AG.js +162 -0
- package/dist/_chunks/{autocomplete-CUh0f7Dj.js → autocomplete-DIgdhCGJ.js} +2 -2
- package/dist/_chunks/{avatar-D_H4emLo.js → avatar-BNQNhoyL.js} +19 -18
- package/dist/_chunks/{badge-CIjQ1Us1.js → badge-CptERaHx.js} +2 -2
- package/dist/_chunks/{booking-Bhk9IYm3.js → booking-A4o9xI2n.js} +160 -149
- package/dist/_chunks/{breadcrumb--YI7lcHA.js → breadcrumb-CLlhx7qo.js} +2 -2
- package/dist/_chunks/{button-group-Bh2g_Ng-.js → button-group-Ciq6J4IW.js} +15 -14
- package/dist/_chunks/{calendar-WWNx448i.js → calendar-YHFknAGv.js} +22 -22
- package/dist/_chunks/{carousel.agent-C2Icc9_T.js → carousel.agent-DrX96W-1.js} +2 -2
- package/dist/_chunks/{chart-BLvFl169.js → chart-DLkVn_ex.js} +2 -2
- package/dist/_chunks/{chat-container-izziXViv.js → chat-container-ogB4OskO.js} +24 -23
- package/dist/_chunks/{chat-input-cyl_y9bh.js → chat-input-CQe7nR_v.js} +132 -118
- package/dist/_chunks/{chat-message-fg221-yx.js → chat-message-D53_fH2w.js} +2 -2
- package/dist/_chunks/{checkbox-Dgp_cfUr.js → checkbox-DRcOdmXv.js} +3 -3
- package/dist/_chunks/{checkbox-group-eVowqKcT.js → checkbox-group-CpUwlHug.js} +3 -3
- package/dist/_chunks/{collapsible-hHiyZp0b.js → collapsible-CERONory.js} +2 -2
- package/dist/_chunks/{color-picker-Bm-gzpsh.js → color-picker-9tL7pz5y.js} +192 -181
- package/dist/_chunks/{combobox-Da9eq00i.js → combobox-BC-DFx8G.js} +31 -30
- package/dist/_chunks/{command-palette-11BieSNq.js → command-palette-BiPAAno-.js} +125 -123
- package/dist/_chunks/{copy-field-BAF4mt9h.js → copy-field-CCq7j6Zc.js} +2 -2
- package/dist/_chunks/{date-picker-D0Ry1dMz.js → date-picker-B94HAV4A.js} +4 -4
- package/dist/_chunks/{date-range-picker-DYgHzMOo.js → date-range-picker-D4dgDlLU.js} +73 -73
- package/dist/_chunks/{date-time-picker-CGmGtcyc.js → date-time-picker-D1GEzf8p.js} +5 -5
- package/dist/_chunks/de-Dfbeau59.js +477 -0
- package/dist/_chunks/{description-list-CWjnaDGn.js → description-list-BEbK2g93.js} +2 -2
- package/dist/_chunks/{dialog-C-lTGVkB.js → dialog-Cee13rHU.js} +3 -3
- package/dist/_chunks/{dropdown-menu-DZxwF23X.js → dropdown-menu-BC5ZdOMo.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-Od3Q-Y8J.js → editable-currency-cell-renderer-BpicmolK.js} +314 -317
- package/dist/_chunks/el-Dro3J7CP.js +373 -0
- package/dist/_chunks/{email-input-DvJ_kPKL.js → email-input-lQivsFrw.js} +3 -3
- package/dist/_chunks/es-Dvg8u70B.js +373 -0
- package/dist/_chunks/{file-upload-DxAQprcU.js → file-upload-CdozCPct.js} +226 -233
- package/dist/_chunks/fr-VOGjBSPP.js +338 -0
- package/dist/_chunks/{freemium-paywall-B9c8Ylww.js → freemium-paywall-D1N02Oam.js} +4 -4
- package/dist/_chunks/{header-DDj7uGD-.js → header-CTZWX-tm.js} +2 -2
- package/dist/_chunks/hi-BSDxWU_y.js +433 -0
- package/dist/_chunks/{icon-button-DPEqBKBQ.js → icon-button-CKEOrN37.js} +2 -2
- package/dist/_chunks/{icon-button-group-DeV3FpNY.js → icon-button-group-C48khLE0.js} +23 -22
- package/dist/_chunks/{isSameDay-DHG8Xade.js → isSameDay-DUEiAT0G.js} +2 -2
- package/dist/_chunks/isSameWeek-Dfzu29cW.js +14 -0
- package/dist/_chunks/it-CuonvcI_.js +401 -0
- package/dist/_chunks/ja-DO57gIOT.js +366 -0
- package/dist/_chunks/{key-value-pair-BvDY3zuc.js → key-value-pair-C8DaR3Xs.js} +2 -2
- package/dist/_chunks/{list-BdvDctBz.js → list-BOwqwy03.js} +44 -43
- package/dist/_chunks/{locale-picker-CY89MChR.js → locale-picker-D99UyZVJ.js} +4 -4
- package/dist/_chunks/{map-view-DyB8tr6c.js → map-view-WEWqXzof.js} +569 -557
- package/dist/_chunks/{message-card-D6iyPacd.js → message-card-BbRhZkDI.js} +3 -3
- package/dist/_chunks/{message-tray-Bh-0ra-Y.js → message-tray-B762TKuv.js} +11 -10
- package/dist/_chunks/{multi-select-dSe6Xtc4.js → multi-select-DOLO3K_z.js} +26 -25
- package/dist/_chunks/{navigation-menu-CyS1fBJ7.js → navigation-menu-C6lBYVv9.js} +3 -3
- package/dist/_chunks/nl-DjPaaWaW.js +326 -0
- package/dist/_chunks/{notification-card-vaMaA7Wa.js → notification-card-DMdO4g54.js} +2 -2
- package/dist/_chunks/{notification-tray-Cnum6LwM.js → notification-tray-Dl3FTleW.js} +17 -16
- package/dist/_chunks/{number-input-BZXu6bPY.js → number-input-Dj5L3pXK.js} +2 -2
- package/dist/_chunks/{otp-input-BDF_iNpa.js → otp-input-BEg_sn8A.js} +2 -2
- package/dist/_chunks/{pagination-BWaXF7W0.js → pagination-DQOgnxxw.js} +2 -2
- package/dist/_chunks/{parseISO-Dk4xa7q6.js → parseISO-DEpUNwxZ.js} +2 -2
- package/dist/_chunks/{patient-search-ZpHN-pgJ.js → patient-search-hFiYbqcl.js} +8 -8
- package/dist/_chunks/{patient-shell-CYaNkbA1.js → patient-shell-CDvMw_Nk.js} +6 -6
- package/dist/_chunks/{payment-form-Ds3rxvad.js → payment-form-D5rgnZu7.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CIuaocnq.js → pdf-viewer-DvtEHcEP.js} +347 -320
- package/dist/_chunks/{phone-input-DKSHX7NQ.js → phone-input-DfZbPPvh.js} +217 -201
- package/dist/_chunks/pl-Cl4lOx2N.js +514 -0
- package/dist/_chunks/{popover-BfHSBEKq.js → popover-Devce-tT.js} +3 -3
- package/dist/_chunks/practice-results-RPL64j8E.js +1582 -0
- package/dist/_chunks/{privacy-lock-C6Ra5m3p.js → privacy-lock-DD-wHxBg.js} +3 -3
- package/dist/_chunks/{progress-B-PSO5OS.js → progress-kzIRcdaq.js} +11 -10
- package/dist/_chunks/pt-D7qO5CzD.js +370 -0
- package/dist/_chunks/{public-footer.agent-Bc99tE5Z.js → public-footer.agent-Bh0rnx4i.js} +21 -14
- package/dist/_chunks/{public-header.agent-B-B0WDAi.js → public-header.agent-B2dDg2_d.js} +3 -3
- package/dist/_chunks/{radio-i4ogu3cq.js → radio-TWf9Q-mp.js} +2 -2
- package/dist/_chunks/{radio-group-CTlGc36r.js → radio-group-BcF92GEF.js} +4 -4
- package/dist/_chunks/{react-day-picker-D3yzgvDB.js → react-day-picker-DsjfS7uI.js} +662 -615
- package/dist/_chunks/recaptcha-widget-CFYyLSEX.js +221 -0
- package/dist/_chunks/registry-nPAVE19X.js +21 -0
- package/dist/_chunks/{resizable-COV-cnth.js → resizable-3vzqDlg6.js} +29 -28
- package/dist/_chunks/{reviews-panel-bKEUKSic.js → reviews-panel-yanuBZs-.js} +4 -4
- package/dist/_chunks/{rich-text-editor-J-wAz9eN.js → rich-text-editor-CHmr9Bz8.js} +2 -2
- package/dist/_chunks/ro-CP2-VJ_O.js +361 -0
- package/dist/_chunks/ru-RPn9_Lpq.js +561 -0
- package/dist/_chunks/{scroll-area-DEDU-lp-.js → scroll-area-BWqCkEGz.js} +2 -2
- package/dist/_chunks/{search-bar-BRMW1-WG.js → search-bar-CP6wUJFY.js} +3 -3
- package/dist/_chunks/{search-input-CIA6pPfn.js → search-input-C1C3jQpD.js} +24 -23
- package/dist/_chunks/{select-C92AT_OZ.js → select-hsCaJSX3.js} +3 -3
- package/dist/_chunks/{sheet-D8Yl0nKR.js → sheet-BV-yuLE2.js} +3 -3
- package/dist/_chunks/{sidebar-DkyC6GvS.js → sidebar-BbR8f6oe.js} +3 -3
- package/dist/_chunks/{signature-capture-DjMlFOzS.js → signature-capture-C-fF71xI.js} +213 -205
- package/dist/_chunks/{slider-CfEzeseL.js → slider-BHWzXdjt.js} +3 -3
- package/dist/_chunks/{slot-grid-Q94gVmhn.js → slot-grid-Dz13dH82.js} +4 -4
- package/dist/_chunks/{sparkline-B5Ms55PZ.js → sparkline-DEROcSl0.js} +2 -2
- package/dist/_chunks/sq-AQvefouo.js +355 -0
- package/dist/_chunks/{stepper-progress-jFY8BSf7.js → stepper-progress-DDjq5nei.js} +16 -15
- package/dist/_chunks/streaming-text-GH07yIYh.js +127 -0
- package/dist/_chunks/sv-zkx9eBtD.js +376 -0
- package/dist/_chunks/{switch-D916VW86.js → switch-BJ6HD3Mn.js} +2 -2
- package/dist/_chunks/{tabs-aEQfQV3x.js → tabs-BpPYVme_.js} +4 -4
- package/dist/_chunks/{tag-bBPAvXyh.js → tag-CyoaEmf_.js} +2 -2
- package/dist/_chunks/{task-tray-6NlryfMJ.js → task-tray-DRK0b0Qb.js} +3 -3
- package/dist/_chunks/{text-area-D5GAe8pV.js → text-area-BIx0tZ05.js} +27 -26
- package/dist/_chunks/{text-input-CakysYnD.js → text-input-BaClJL8Y.js} +2 -2
- package/dist/_chunks/{theme-toggle-JoeMs_ws.js → theme-toggle-DpC28kt5.js} +6 -6
- package/dist/_chunks/{time-picker-DeVZkIY2.js → time-picker-B5umYwfv.js} +2 -2
- package/dist/_chunks/{timeline-CR7HjZCK.js → timeline-D0Wo7v_o.js} +3 -3
- package/dist/_chunks/{toast.agent-DVpKt38p.js → toast.agent-WHHfw5VX.js} +322 -320
- package/dist/_chunks/{tooltip-ClJd0ciy.js → tooltip-DvmfrNvB.js} +29 -20
- package/dist/_chunks/{tooth-scheme-3mITSXiZ.js → tooth-scheme-CxlsLjfN.js} +2 -2
- package/dist/_chunks/tr-Dmr412Ac.js +378 -0
- package/dist/_chunks/{transcript-panel-QUQ9XJmf.js → transcript-panel-DyhTpAP7.js} +21 -20
- package/dist/_chunks/{use-direction-D6rvvG9G.js → use-direction-Dp8h70PP.js} +7 -6
- package/dist/_chunks/use-isomorphic-layout-effect-BGfaCOP1.js +6 -0
- package/dist/_chunks/use-media-query-CcAx5SMM.js +16 -0
- package/dist/_chunks/{use-password-requirements-E0sSfx5X.js → use-password-requirements-DsgduV1x.js} +3 -3
- package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js +43 -0
- package/dist/_chunks/{workflow-map-DlWBJJBt.js → workflow-map-BSvQS3be.js} +6 -6
- package/dist/_chunks/zh-CN-DxVt64Zk.js +388 -0
- package/dist/agent/registry.d.ts +1 -6
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/date-locale.d.ts +7 -2
- package/dist/components/_shared/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/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/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/data-table/index.js +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.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +6 -6
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +10 -0
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +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/password-input/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +23 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/reviews-panel/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-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/signature-capture/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/stepper-progress/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +69 -66
- package/dist/i18n/locales/ar.d.ts +92 -0
- package/dist/i18n/locales/ar.js +82 -0
- package/dist/i18n/locales/de.d.ts +92 -0
- package/dist/i18n/locales/de.js +81 -0
- package/dist/i18n/locales/el.d.ts +92 -0
- package/dist/i18n/locales/el.js +82 -0
- package/dist/i18n/locales/en.d.ts +27 -0
- package/dist/i18n/locales/en.js +27 -0
- package/dist/i18n/locales/es.d.ts +92 -0
- package/dist/i18n/locales/es.js +81 -0
- package/dist/i18n/locales/fr.d.ts +92 -0
- package/dist/i18n/locales/fr.js +81 -0
- package/dist/i18n/locales/hi.d.ts +92 -0
- package/dist/i18n/locales/hi.js +82 -0
- package/dist/i18n/locales/it.d.ts +92 -0
- package/dist/i18n/locales/it.js +81 -0
- package/dist/i18n/locales/ja.d.ts +92 -0
- package/dist/i18n/locales/ja.js +82 -0
- package/dist/i18n/locales/nl.d.ts +92 -0
- package/dist/i18n/locales/nl.js +81 -0
- package/dist/i18n/locales/pl.d.ts +92 -0
- package/dist/i18n/locales/pl.js +82 -0
- package/dist/i18n/locales/pt.d.ts +92 -0
- package/dist/i18n/locales/pt.js +83 -0
- package/dist/i18n/locales/ro.d.ts +92 -0
- package/dist/i18n/locales/ro.js +82 -0
- package/dist/i18n/locales/ru.d.ts +92 -0
- package/dist/i18n/locales/ru.js +82 -0
- package/dist/i18n/locales/sq.d.ts +92 -0
- package/dist/i18n/locales/sq.js +82 -0
- package/dist/i18n/locales/sv.d.ts +92 -0
- package/dist/i18n/locales/sv.js +82 -0
- package/dist/i18n/locales/tr.d.ts +92 -0
- package/dist/i18n/locales/tr.js +82 -0
- package/dist/i18n/locales/zh.d.ts +92 -0
- package/dist/i18n/locales/zh.js +82 -0
- package/dist/index.js +541 -540
- package/dist/locales/ar.json +92 -0
- package/dist/locales/de.json +92 -0
- package/dist/locales/el.json +92 -0
- package/dist/locales/en.json +27 -0
- package/dist/locales/es.json +92 -0
- package/dist/locales/fr.json +92 -0
- package/dist/locales/hi.json +92 -0
- package/dist/locales/it.json +92 -0
- package/dist/locales/ja.json +92 -0
- package/dist/locales/nl.json +92 -0
- package/dist/locales/pl.json +92 -0
- package/dist/locales/pt.json +92 -0
- package/dist/locales/ro.json +92 -0
- package/dist/locales/ru.json +92 -0
- package/dist/locales/sq.json +92 -0
- package/dist/locales/sv.json +92 -0
- package/dist/locales/tr.json +92 -0
- package/dist/locales/zh.json +92 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +2 -2
- package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
- package/dist/_chunks/practice-results-CEKjwsgS.js +0 -1441
- package/dist/_chunks/recaptcha-widget-BtBNb6tB.js +0 -192
- package/dist/_chunks/registry-C9nwlNyL.js +0 -21
- package/dist/_chunks/smile-BSYLAHy6.js +0 -17
- package/dist/_chunks/streaming-text-BgjCTVOw.js +0 -105
- package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
1
|
+
import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Fe, useContext as Ee, useMemo as h, useState as E, useRef as j, useEffect as ne, useCallback as oe } from "react";
|
|
3
|
+
import { u as je } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
4
|
+
import * as D from "@radix-ui/react-popover";
|
|
5
|
+
import { R as De, _ as y } from "./index-4xgbg-sn.js";
|
|
6
|
+
import { c as G } from "./index-D2ZczOXr.js";
|
|
7
|
+
import { useTranslation as Te } from "react-i18next";
|
|
8
|
+
import { getCountries as Ae, parsePhoneNumberFromString as T, AsYouType as H, getCountryCallingCode as Be } from "libphonenumber-js/min";
|
|
9
|
+
import { u as Le, F as Ke } from "./form-field-context-B3APVHKx.js";
|
|
10
|
+
import { c as $e } from "./compose-refs-C0k0tdqF.js";
|
|
11
|
+
import { n as _ } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
12
|
+
import { a as re } from "./flag-DZ6V7-hU.js";
|
|
13
|
+
import { u as Me } from "./registry-nPAVE19X.js";
|
|
14
|
+
import { C as qe } from "./chevron-down-BX_NP2Yh.js";
|
|
15
|
+
const He = {
|
|
15
16
|
id: "phone-input",
|
|
16
17
|
capabilities: ["edit_inline"],
|
|
17
18
|
state: {
|
|
@@ -34,8 +35,8 @@ const Me = {
|
|
|
34
35
|
argsType: "{ value: string }",
|
|
35
36
|
descriptionKey: "ui.agent.phoneInput.actions.setValue",
|
|
36
37
|
description: "Replace the phone number (E.164 or national format; parser will infer country).",
|
|
37
|
-
invoke: (n,
|
|
38
|
-
n.setValue(
|
|
38
|
+
invoke: (n, a) => {
|
|
39
|
+
n.setValue(a.value);
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
clear: {
|
|
@@ -67,7 +68,7 @@ const Me = {
|
|
|
67
68
|
description: "Sourced from the id prop."
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
},
|
|
71
|
+
}, _e = G(
|
|
71
72
|
[
|
|
72
73
|
"ds:group ds:relative ds:inline-flex ds:items-stretch ds:w-full",
|
|
73
74
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-input",
|
|
@@ -96,7 +97,7 @@ const Me = {
|
|
|
96
97
|
tone: "default"
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
|
-
),
|
|
100
|
+
), Ge = G(
|
|
100
101
|
[
|
|
101
102
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
102
103
|
"ds:bg-transparent ds:text-foreground",
|
|
@@ -120,7 +121,7 @@ const Me = {
|
|
|
120
121
|
},
|
|
121
122
|
defaultVariants: { size: "md" }
|
|
122
123
|
}
|
|
123
|
-
),
|
|
124
|
+
), Oe = G(
|
|
124
125
|
[
|
|
125
126
|
"ds:flex-1 ds:min-w-0 ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
126
127
|
"ds:border-0 ds:outline-none",
|
|
@@ -137,7 +138,7 @@ const Me = {
|
|
|
137
138
|
},
|
|
138
139
|
defaultVariants: { size: "md" }
|
|
139
140
|
}
|
|
140
|
-
),
|
|
141
|
+
), Ue = [
|
|
141
142
|
"ds:z-[var(--z-popover)] ds:overflow-hidden ds:w-72",
|
|
142
143
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
|
|
143
144
|
"ds:shadow-[var(--shadow-lg)]",
|
|
@@ -147,230 +148,245 @@ const Me = {
|
|
|
147
148
|
"ds:data-[side=bottom]:slide-in-from-top-2",
|
|
148
149
|
"ds:data-[side=top]:slide-in-from-bottom-2",
|
|
149
150
|
"ds:motion-reduce:animate-none"
|
|
150
|
-
].join(" "),
|
|
151
|
+
].join(" "), We = [
|
|
151
152
|
"ds:w-full ds:bg-transparent ds:text-foreground ds:placeholder:text-muted-foreground",
|
|
152
153
|
"ds:border-0 ds:border-b ds:border-b-border ds:outline-none",
|
|
153
154
|
"ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]",
|
|
154
155
|
"ds:focus:outline-none"
|
|
155
|
-
].join(" "),
|
|
156
|
+
].join(" "), Ye = "ds:max-h-72 ds:overflow-y-auto ds:p-[var(--spacing-xs)]", Ze = [
|
|
156
157
|
"ds:relative ds:flex ds:cursor-pointer ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
157
158
|
"ds:rounded-[var(--radius-sm)] ds:ps-3 ds:pe-3 ds:py-2 ds:text-[var(--font-size-sm)]",
|
|
158
159
|
"ds:text-foreground ds:outline-none ds:select-none",
|
|
159
160
|
"ds:data-[highlighted]:bg-muted ds:data-[highlighted]:text-foreground",
|
|
160
161
|
"ds:data-[highlighted]:border-s-2 ds:data-[highlighted]:border-s-primary",
|
|
161
162
|
"ds:aria-selected:bg-muted"
|
|
162
|
-
].join(" "),
|
|
163
|
+
].join(" "), ae = [
|
|
163
164
|
"ds:ps-3 ds:pe-3 ds:py-1.5",
|
|
164
165
|
"type-eyebrow ds:text-muted-foreground"
|
|
165
|
-
].join(" "),
|
|
166
|
+
].join(" "), Je = "ds:ps-3 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", Qe = {
|
|
166
167
|
sm: "ds:size-3.5",
|
|
167
168
|
md: "ds:size-4",
|
|
168
169
|
lg: "ds:size-5"
|
|
169
|
-
},
|
|
170
|
+
}, ie = {
|
|
170
171
|
sm: "sm",
|
|
171
172
|
md: "md",
|
|
172
173
|
lg: "lg"
|
|
173
174
|
};
|
|
174
|
-
function
|
|
175
|
+
function Xe(n, a) {
|
|
175
176
|
let d = 0;
|
|
176
|
-
for (let
|
|
177
|
-
n[
|
|
177
|
+
for (let o = 0; o < a && o < n.length; o++)
|
|
178
|
+
n[o] >= "0" && n[o] <= "9" && d++;
|
|
178
179
|
return d;
|
|
179
180
|
}
|
|
180
|
-
function
|
|
181
|
-
if (
|
|
181
|
+
function et(n, a) {
|
|
182
|
+
if (a === 0) return 0;
|
|
182
183
|
let d = 0;
|
|
183
|
-
for (let
|
|
184
|
-
if (n[
|
|
185
|
-
return
|
|
184
|
+
for (let o = 0; o < n.length; o++)
|
|
185
|
+
if (n[o] >= "0" && n[o] <= "9" && (d++, d === a))
|
|
186
|
+
return o + 1;
|
|
186
187
|
return n.length;
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
-
if (n &&
|
|
189
|
+
function de(n, a, d, o) {
|
|
190
|
+
if (n && a.has(n)) return n;
|
|
190
191
|
if (d) {
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
195
|
-
const u =
|
|
196
|
-
if (
|
|
192
|
+
const f = typeof navigator < "u" ? navigator.language : void 0;
|
|
193
|
+
if (f) {
|
|
194
|
+
const r = f.match(/-([A-Za-z]{2})/);
|
|
195
|
+
if (r) {
|
|
196
|
+
const u = r[1].toUpperCase();
|
|
197
|
+
if (a.has(u)) return u;
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
200
|
try {
|
|
200
|
-
const
|
|
201
|
-
if (
|
|
202
|
-
return
|
|
201
|
+
const r = new Intl.Locale(o).region;
|
|
202
|
+
if (r && a.has(r.toUpperCase()))
|
|
203
|
+
return r.toUpperCase();
|
|
203
204
|
} catch {
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
return "IT";
|
|
207
208
|
}
|
|
208
|
-
function
|
|
209
|
+
function tt(n, a) {
|
|
209
210
|
let d;
|
|
210
211
|
try {
|
|
211
212
|
d = new Intl.DisplayNames([n], { type: "region" });
|
|
212
213
|
} catch {
|
|
213
214
|
d = new Intl.DisplayNames(["en"], { type: "region" });
|
|
214
215
|
}
|
|
215
|
-
const
|
|
216
|
-
code:
|
|
217
|
-
name: d.of(
|
|
218
|
-
dialCode:
|
|
219
|
-
})),
|
|
220
|
-
return
|
|
216
|
+
const o = a.map((r) => ({
|
|
217
|
+
code: r,
|
|
218
|
+
name: d.of(r) ?? r,
|
|
219
|
+
dialCode: Be(r)
|
|
220
|
+
})), f = new Intl.Collator(n);
|
|
221
|
+
return o.sort((r, u) => f.compare(r.name, u.name));
|
|
221
222
|
}
|
|
222
|
-
const
|
|
223
|
+
const st = Fe(
|
|
223
224
|
function({
|
|
224
|
-
value:
|
|
225
|
+
value: a,
|
|
225
226
|
defaultValue: d,
|
|
226
|
-
defaultCountry:
|
|
227
|
-
detectBrowserCountry:
|
|
228
|
-
onChange:
|
|
227
|
+
defaultCountry: o,
|
|
228
|
+
detectBrowserCountry: f = !1,
|
|
229
|
+
onChange: r,
|
|
229
230
|
size: u = "md",
|
|
230
|
-
tone:
|
|
231
|
-
disabled:
|
|
232
|
-
readOnly:
|
|
233
|
-
placeholder:
|
|
234
|
-
popularCountries:
|
|
235
|
-
className:
|
|
236
|
-
id:
|
|
237
|
-
name:
|
|
238
|
-
required:
|
|
239
|
-
"aria-label":
|
|
240
|
-
},
|
|
241
|
-
const { t:
|
|
242
|
-
() => new Set(
|
|
231
|
+
tone: le = "default",
|
|
232
|
+
disabled: ce,
|
|
233
|
+
readOnly: O,
|
|
234
|
+
placeholder: ue,
|
|
235
|
+
popularCountries: R,
|
|
236
|
+
className: pe,
|
|
237
|
+
id: A,
|
|
238
|
+
name: fe,
|
|
239
|
+
required: me,
|
|
240
|
+
"aria-label": he
|
|
241
|
+
}, ge) {
|
|
242
|
+
const { t: C, i18n: z } = Te(), x = Le(), N = Ee(Ke) !== null, g = h(
|
|
243
|
+
() => new Set(Ae()),
|
|
243
244
|
[]
|
|
244
|
-
),
|
|
245
|
-
const e =
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
), t =
|
|
245
|
+
), B = h(() => {
|
|
246
|
+
const e = de(
|
|
247
|
+
o,
|
|
248
|
+
g,
|
|
249
|
+
f,
|
|
250
|
+
z.language
|
|
251
|
+
), t = a ?? d;
|
|
251
252
|
if (t) {
|
|
252
|
-
const s =
|
|
253
|
+
const s = T(t);
|
|
253
254
|
return s != null && s.country ? {
|
|
254
255
|
country: s.country,
|
|
255
|
-
display: s.formatNational()
|
|
256
|
-
|
|
256
|
+
display: s.formatNational(),
|
|
257
|
+
pinned: !0
|
|
258
|
+
} : { country: e, display: t, pinned: !1 };
|
|
257
259
|
}
|
|
258
|
-
return { country: e, display: "" };
|
|
259
|
-
}, []), [l,
|
|
260
|
-
|
|
261
|
-
), [
|
|
262
|
-
|
|
263
|
-
if (
|
|
264
|
-
const e =
|
|
265
|
-
|
|
260
|
+
return { country: e, display: "", pinned: !1 };
|
|
261
|
+
}, []), [l, S] = E(B.country), [U, p] = E(
|
|
262
|
+
B.display
|
|
263
|
+
), [L, K] = E(!1), [be, W] = E(""), Y = a !== void 0, $ = j(""), k = j(null), P = j(B.pinned), V = j(null), ve = $e(ge, V);
|
|
264
|
+
ne(() => {
|
|
265
|
+
if (P.current) return;
|
|
266
|
+
const e = de(
|
|
267
|
+
o,
|
|
268
|
+
g,
|
|
269
|
+
f,
|
|
270
|
+
z.language
|
|
271
|
+
);
|
|
272
|
+
S((t) => t === e ? t : e);
|
|
273
|
+
}, [
|
|
274
|
+
z.language,
|
|
275
|
+
o,
|
|
276
|
+
g,
|
|
277
|
+
f
|
|
278
|
+
]), ne(() => {
|
|
279
|
+
if (!Y) return;
|
|
280
|
+
const e = a ?? "";
|
|
281
|
+
if (e === $.current) return;
|
|
266
282
|
if (e === "") {
|
|
267
283
|
p("");
|
|
268
284
|
return;
|
|
269
285
|
}
|
|
270
|
-
const t =
|
|
271
|
-
t != null && t.country ? (
|
|
272
|
-
}, [
|
|
273
|
-
if (
|
|
274
|
-
const e =
|
|
275
|
-
|
|
276
|
-
const t =
|
|
286
|
+
const t = T(e);
|
|
287
|
+
t != null && t.country ? (P.current = !0, S(t.country), p(t.formatNational())) : p(e);
|
|
288
|
+
}, [a, Y]), je(() => {
|
|
289
|
+
if (k.current == null) return;
|
|
290
|
+
const e = k.current;
|
|
291
|
+
k.current = null;
|
|
292
|
+
const t = V.current;
|
|
277
293
|
t && document.activeElement === t && t.setSelectionRange(e, e);
|
|
278
294
|
});
|
|
279
|
-
const
|
|
295
|
+
const b = oe(
|
|
280
296
|
(e, t) => {
|
|
281
|
-
const s =
|
|
282
|
-
|
|
297
|
+
const s = T(e, t), c = (s == null ? void 0 : s.number) ?? "";
|
|
298
|
+
$.current = c, r == null || r(c, {
|
|
283
299
|
country: t,
|
|
284
300
|
isValid: (s == null ? void 0 : s.isValid()) ?? !1,
|
|
285
301
|
isPossible: (s == null ? void 0 : s.isPossible()) ?? !1,
|
|
286
302
|
type: s == null ? void 0 : s.getType()
|
|
287
303
|
});
|
|
288
304
|
},
|
|
289
|
-
[
|
|
290
|
-
),
|
|
291
|
-
if (
|
|
292
|
-
const t = e.target, s = t.value, c = t.selectionStart ?? s.length, w =
|
|
293
|
-
|
|
294
|
-
},
|
|
305
|
+
[r]
|
|
306
|
+
), ye = A ?? (N ? x.id : void 0), Z = (N ? x.disabled : !1) || !!ce, Ce = (N ? x.required : !1) || !!me, J = N ? x.invalid : !1, xe = J ? "error" : le, we = N && x.describedBy ? x.describedBy : void 0, ze = ue ?? C("inputs.phone.placeholder", "Phone number"), Ne = (e) => {
|
|
307
|
+
if (O) return;
|
|
308
|
+
const t = e.target, s = t.value, c = t.selectionStart ?? s.length, w = Xe(s, c), q = new H(l).input(s);
|
|
309
|
+
k.current = et(q, w), p(q), b(q, l);
|
|
310
|
+
}, Q = $, Ie = h(
|
|
295
311
|
() => ({
|
|
296
|
-
getValue: () =>
|
|
312
|
+
getValue: () => Q.current,
|
|
297
313
|
setValue: (e) => {
|
|
298
314
|
if (e === "") {
|
|
299
|
-
p(""),
|
|
315
|
+
p(""), b("", l);
|
|
300
316
|
return;
|
|
301
317
|
}
|
|
302
|
-
const t =
|
|
318
|
+
const t = T(e);
|
|
303
319
|
if (t != null && t.country)
|
|
304
|
-
|
|
320
|
+
P.current = !0, S(t.country), p(t.formatNational()), b(t.formatNational(), t.country);
|
|
305
321
|
else {
|
|
306
|
-
const c = new
|
|
307
|
-
p(c),
|
|
322
|
+
const c = new H(l).input(e);
|
|
323
|
+
p(c), b(c, l);
|
|
308
324
|
}
|
|
309
325
|
},
|
|
310
326
|
clear: () => {
|
|
311
|
-
p(""),
|
|
327
|
+
p(""), b("", l);
|
|
312
328
|
},
|
|
313
329
|
focus: () => {
|
|
314
330
|
var e;
|
|
315
|
-
return (e =
|
|
331
|
+
return (e = V.current) == null ? void 0 : e.focus();
|
|
316
332
|
}
|
|
317
333
|
}),
|
|
318
|
-
[l,
|
|
334
|
+
[l, b, Q]
|
|
319
335
|
);
|
|
320
|
-
|
|
321
|
-
const
|
|
336
|
+
Me(He, Ie, A);
|
|
337
|
+
const Re = (e) => {
|
|
322
338
|
if (e === l) {
|
|
323
|
-
|
|
339
|
+
K(!1);
|
|
324
340
|
return;
|
|
325
341
|
}
|
|
326
|
-
const t =
|
|
327
|
-
|
|
342
|
+
const t = U.replace(/\D/g, ""), s = new H(e), c = t ? s.input(t) : "";
|
|
343
|
+
P.current = !0, S(e), p(c), K(!1), W(""), b(c, e), requestAnimationFrame(() => {
|
|
328
344
|
var w;
|
|
329
|
-
(w =
|
|
345
|
+
(w = V.current) == null || w.focus();
|
|
330
346
|
});
|
|
331
|
-
},
|
|
332
|
-
() =>
|
|
333
|
-
|
|
334
|
-
Array.from(
|
|
347
|
+
}, v = h(
|
|
348
|
+
() => tt(
|
|
349
|
+
z.language,
|
|
350
|
+
Array.from(g)
|
|
335
351
|
),
|
|
336
|
-
[
|
|
337
|
-
),
|
|
338
|
-
if (!
|
|
339
|
-
const e = new Map(
|
|
340
|
-
return
|
|
341
|
-
}, [
|
|
342
|
-
() => new Set(
|
|
343
|
-
[
|
|
344
|
-
),
|
|
345
|
-
() =>
|
|
346
|
-
[
|
|
347
|
-
),
|
|
348
|
-
() =>
|
|
349
|
-
[
|
|
350
|
-
),
|
|
352
|
+
[z.language, g]
|
|
353
|
+
), I = h(() => {
|
|
354
|
+
if (!R || R.length === 0) return [];
|
|
355
|
+
const e = new Map(v.map((t) => [t.code, t]));
|
|
356
|
+
return R.filter((t) => g.has(t)).map((t) => e.get(t)).filter((t) => !!t);
|
|
357
|
+
}, [R, v, g]), M = h(
|
|
358
|
+
() => new Set(I.map((e) => e.code)),
|
|
359
|
+
[I]
|
|
360
|
+
), Se = h(
|
|
361
|
+
() => M.size > 0 ? v.filter((e) => !M.has(e.code)) : v,
|
|
362
|
+
[v, M]
|
|
363
|
+
), F = h(
|
|
364
|
+
() => v.find((e) => e.code === l),
|
|
365
|
+
[v, l]
|
|
366
|
+
), X = F ? F.dialCode : "", ke = F ? F.name : l, ee = C("inputs.phone.countryPickerLabel", "Country"), Pe = `${ee}: ${ke}, +${X}`, Ve = oe(
|
|
351
367
|
(e, t, s) => {
|
|
352
|
-
const c =
|
|
353
|
-
return
|
|
368
|
+
const c = _(e), w = _(t), se = s == null ? void 0 : s.map(_);
|
|
369
|
+
return De(
|
|
354
370
|
c,
|
|
355
371
|
w,
|
|
356
|
-
|
|
372
|
+
se
|
|
357
373
|
);
|
|
358
374
|
},
|
|
359
375
|
[]
|
|
360
|
-
),
|
|
376
|
+
), te = (e) => {
|
|
361
377
|
const t = `${e.name}, +${e.dialCode}`;
|
|
362
|
-
return /* @__PURE__ */
|
|
363
|
-
|
|
378
|
+
return /* @__PURE__ */ m(
|
|
379
|
+
y.Item,
|
|
364
380
|
{
|
|
365
381
|
value: e.code,
|
|
366
382
|
keywords: [e.name, e.dialCode, `+${e.dialCode}`],
|
|
367
|
-
onSelect: () =>
|
|
368
|
-
className:
|
|
383
|
+
onSelect: () => Re(e.code),
|
|
384
|
+
className: Ze,
|
|
369
385
|
"aria-label": t,
|
|
370
386
|
children: [
|
|
371
|
-
/* @__PURE__ */ i(
|
|
387
|
+
/* @__PURE__ */ i(re, { country: e.code, size: ie[u] }),
|
|
372
388
|
/* @__PURE__ */ i("span", { className: "ds:flex-1 ds:truncate", children: e.name }),
|
|
373
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:text-muted-foreground ds:tabular-nums", children: [
|
|
374
390
|
"+",
|
|
375
391
|
e.dialCode
|
|
376
392
|
] })
|
|
@@ -379,62 +395,62 @@ const tt = ke(
|
|
|
379
395
|
e.code
|
|
380
396
|
);
|
|
381
397
|
};
|
|
382
|
-
return /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ m(
|
|
383
399
|
"div",
|
|
384
400
|
{
|
|
385
401
|
"data-component": "phone-input",
|
|
386
|
-
"data-component-id":
|
|
402
|
+
"data-component-id": A,
|
|
387
403
|
"data-slot": "phone-input",
|
|
388
|
-
className:
|
|
404
|
+
className: _e({
|
|
389
405
|
size: u,
|
|
390
|
-
tone:
|
|
391
|
-
className:
|
|
406
|
+
tone: xe,
|
|
407
|
+
className: pe
|
|
392
408
|
}),
|
|
393
409
|
children: [
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
/* @__PURE__ */ i(
|
|
410
|
+
/* @__PURE__ */ m(D.Root, { open: L, onOpenChange: K, children: [
|
|
411
|
+
/* @__PURE__ */ i(D.Trigger, { asChild: !0, children: /* @__PURE__ */ m(
|
|
396
412
|
"button",
|
|
397
413
|
{
|
|
398
414
|
type: "button",
|
|
399
|
-
disabled:
|
|
415
|
+
disabled: Z,
|
|
400
416
|
"aria-haspopup": "listbox",
|
|
401
|
-
"aria-expanded":
|
|
402
|
-
"aria-label":
|
|
403
|
-
className:
|
|
417
|
+
"aria-expanded": L,
|
|
418
|
+
"aria-label": Pe,
|
|
419
|
+
className: Ge({ size: u }),
|
|
404
420
|
children: [
|
|
405
|
-
/* @__PURE__ */ i(
|
|
406
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ i(re, { country: l, size: ie[u] }),
|
|
422
|
+
/* @__PURE__ */ m("bdi", { dir: "ltr", className: "ds:tabular-nums", children: [
|
|
407
423
|
"+",
|
|
408
|
-
|
|
424
|
+
X
|
|
409
425
|
] }),
|
|
410
426
|
/* @__PURE__ */ i(
|
|
411
|
-
|
|
427
|
+
qe,
|
|
412
428
|
{
|
|
413
429
|
"aria-hidden": "true",
|
|
414
430
|
className: [
|
|
415
|
-
|
|
431
|
+
Qe[u],
|
|
416
432
|
"ds:shrink-0 ds:text-muted-foreground",
|
|
417
433
|
"ds:transition-transform ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
418
|
-
|
|
434
|
+
L ? "ds:rotate-180" : ""
|
|
419
435
|
].join(" ")
|
|
420
436
|
}
|
|
421
437
|
)
|
|
422
438
|
]
|
|
423
439
|
}
|
|
424
440
|
) }),
|
|
425
|
-
/* @__PURE__ */ i(
|
|
426
|
-
|
|
441
|
+
/* @__PURE__ */ i(D.Portal, { children: /* @__PURE__ */ i(
|
|
442
|
+
D.Content,
|
|
427
443
|
{
|
|
428
444
|
sideOffset: 6,
|
|
429
445
|
align: "start",
|
|
430
|
-
className:
|
|
431
|
-
children: /* @__PURE__ */
|
|
446
|
+
className: Ue,
|
|
447
|
+
children: /* @__PURE__ */ m(y, { filter: Ve, shouldFilter: !0, loop: !0, label: ee, children: [
|
|
432
448
|
/* @__PURE__ */ i(
|
|
433
|
-
|
|
449
|
+
y.Input,
|
|
434
450
|
{
|
|
435
451
|
asChild: !0,
|
|
436
|
-
value:
|
|
437
|
-
onValueChange:
|
|
452
|
+
value: be,
|
|
453
|
+
onValueChange: W,
|
|
438
454
|
children: /* @__PURE__ */ i(
|
|
439
455
|
"input",
|
|
440
456
|
{
|
|
@@ -443,29 +459,29 @@ const tt = ke(
|
|
|
443
459
|
autoComplete: "off",
|
|
444
460
|
autoCorrect: "off",
|
|
445
461
|
spellCheck: !1,
|
|
446
|
-
placeholder:
|
|
462
|
+
placeholder: C(
|
|
447
463
|
"inputs.phone.searchCountry",
|
|
448
464
|
"Search countries…"
|
|
449
465
|
),
|
|
450
|
-
className:
|
|
466
|
+
className: We
|
|
451
467
|
}
|
|
452
468
|
)
|
|
453
469
|
}
|
|
454
470
|
),
|
|
455
|
-
/* @__PURE__ */
|
|
456
|
-
/* @__PURE__ */ i(
|
|
457
|
-
|
|
458
|
-
|
|
471
|
+
/* @__PURE__ */ m(y.List, { className: Ye, children: [
|
|
472
|
+
/* @__PURE__ */ i(y.Empty, { className: Je, children: C("inputs.phone.noCountryFound", "No country found") }),
|
|
473
|
+
I.length > 0 ? /* @__PURE__ */ i(
|
|
474
|
+
y.Group,
|
|
459
475
|
{
|
|
460
|
-
heading: /* @__PURE__ */ i("span", { className:
|
|
461
|
-
children:
|
|
476
|
+
heading: /* @__PURE__ */ i("span", { className: ae, children: C("inputs.phone.popularCountries", "Popular") }),
|
|
477
|
+
children: I.map(te)
|
|
462
478
|
}
|
|
463
479
|
) : null,
|
|
464
480
|
/* @__PURE__ */ i(
|
|
465
|
-
|
|
481
|
+
y.Group,
|
|
466
482
|
{
|
|
467
|
-
heading:
|
|
468
|
-
children:
|
|
483
|
+
heading: I.length > 0 ? /* @__PURE__ */ i("span", { className: ae, children: C("inputs.phone.allCountries", "All countries") }) : void 0,
|
|
484
|
+
children: Se.map(te)
|
|
469
485
|
}
|
|
470
486
|
)
|
|
471
487
|
] })
|
|
@@ -476,22 +492,22 @@ const tt = ke(
|
|
|
476
492
|
/* @__PURE__ */ i(
|
|
477
493
|
"input",
|
|
478
494
|
{
|
|
479
|
-
ref:
|
|
480
|
-
id:
|
|
481
|
-
name:
|
|
495
|
+
ref: ve,
|
|
496
|
+
id: ye,
|
|
497
|
+
name: fe,
|
|
482
498
|
type: "tel",
|
|
483
499
|
inputMode: "tel",
|
|
484
500
|
autoComplete: "tel-national",
|
|
485
|
-
value:
|
|
486
|
-
placeholder:
|
|
487
|
-
disabled:
|
|
488
|
-
readOnly:
|
|
489
|
-
required:
|
|
490
|
-
"aria-label":
|
|
491
|
-
"aria-describedby":
|
|
492
|
-
"aria-invalid":
|
|
493
|
-
onChange:
|
|
494
|
-
className:
|
|
501
|
+
value: U,
|
|
502
|
+
placeholder: ze,
|
|
503
|
+
disabled: Z,
|
|
504
|
+
readOnly: O,
|
|
505
|
+
required: Ce,
|
|
506
|
+
"aria-label": he,
|
|
507
|
+
"aria-describedby": we,
|
|
508
|
+
"aria-invalid": J || void 0,
|
|
509
|
+
onChange: Ne,
|
|
510
|
+
className: Oe({ size: u })
|
|
495
511
|
}
|
|
496
512
|
)
|
|
497
513
|
]
|
|
@@ -499,11 +515,11 @@ const tt = ke(
|
|
|
499
515
|
);
|
|
500
516
|
}
|
|
501
517
|
);
|
|
502
|
-
|
|
518
|
+
st.displayName = "PhoneInput";
|
|
503
519
|
export {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
520
|
+
st as P,
|
|
521
|
+
Oe as a,
|
|
522
|
+
Ge as c,
|
|
523
|
+
_e as p
|
|
508
524
|
};
|
|
509
|
-
//# sourceMappingURL=phone-input-
|
|
525
|
+
//# sourceMappingURL=phone-input-DfZbPPvh.js.map
|