@alfadocs/ui-kit 0.31.0 → 0.31.2
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-BIZ9GSer.js} +15 -15
- 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-JQunxBIg.js +1618 -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 +1 -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/streaming-text-BgjCTVOw.js +0 -105
- package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { jsxs as G, jsx as F } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as U, useRef as m, useState as q, useEffect as C, useMemo as J, useImperativeHandle as K } from "react";
|
|
3
|
+
import { useTranslation as Q } from "react-i18next";
|
|
4
|
+
import { u as X } from "./form-field-context-B3APVHKx.js";
|
|
5
|
+
import { u as Y } from "./use-theme-C2dHKUAN.js";
|
|
6
|
+
import { u as Z } from "./registry-nPAVE19X.js";
|
|
7
|
+
const z = {
|
|
8
|
+
id: "recaptcha-widget",
|
|
9
|
+
capabilities: ["submit"],
|
|
10
|
+
state: {
|
|
11
|
+
hasToken: {
|
|
12
|
+
type: "boolean",
|
|
13
|
+
descriptionKey: "ui.agent.recaptchaWidget.state.hasToken",
|
|
14
|
+
description: "True when the widget currently holds a valid verification token.",
|
|
15
|
+
read: (t) => t.getResponse().length > 0
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
actions: {
|
|
19
|
+
execute: {
|
|
20
|
+
safety: "write",
|
|
21
|
+
descriptionKey: "ui.agent.recaptchaWidget.actions.execute",
|
|
22
|
+
description: "Programmatically trigger the captcha challenge. Issues a token via the callback.",
|
|
23
|
+
invoke: (t) => {
|
|
24
|
+
t.execute();
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
reset: {
|
|
28
|
+
safety: "destructive",
|
|
29
|
+
descriptionKey: "ui.agent.recaptchaWidget.actions.reset",
|
|
30
|
+
description: "Clear the current token and re-roll the captcha. Irreversible.",
|
|
31
|
+
invoke: (t) => {
|
|
32
|
+
t.reset();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
domHooks: {
|
|
37
|
+
root: {
|
|
38
|
+
attr: "data-component",
|
|
39
|
+
value: "recaptcha-widget",
|
|
40
|
+
description: "Marks the RecaptchaWidget wrapper."
|
|
41
|
+
},
|
|
42
|
+
instanceId: {
|
|
43
|
+
attr: "data-component-id",
|
|
44
|
+
sourceProp: "id",
|
|
45
|
+
description: "Sourced from the id prop (or the surrounding FormField id)."
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, N = "https://www.google.com/recaptcha/api.js", O = "alfadocs-ui-recaptcha-loader", ee = 1e4, te = 100;
|
|
49
|
+
let g = null;
|
|
50
|
+
function re(t) {
|
|
51
|
+
return typeof window > "u" ? Promise.reject(new Error("recaptcha: window is not available")) : window.grecaptcha && typeof window.grecaptcha.render == "function" ? Promise.resolve(window.grecaptcha) : g || (g = new Promise((r, h) => {
|
|
52
|
+
const S = document.getElementById(
|
|
53
|
+
O
|
|
54
|
+
), l = () => {
|
|
55
|
+
window.grecaptcha && typeof window.grecaptcha.render == "function" ? r(window.grecaptcha) : h(new Error("recaptcha: grecaptcha global missing after load"));
|
|
56
|
+
};
|
|
57
|
+
if (window.___grecaptchaOnLoad___ = l, S) {
|
|
58
|
+
let d = null, i = null;
|
|
59
|
+
const y = () => {
|
|
60
|
+
d !== null && clearInterval(d), i !== null && clearTimeout(i), d = null, i = null;
|
|
61
|
+
};
|
|
62
|
+
d = setInterval(() => {
|
|
63
|
+
window.grecaptcha && typeof window.grecaptcha.render == "function" && (y(), r(window.grecaptcha));
|
|
64
|
+
}, te), i = setTimeout(() => {
|
|
65
|
+
if (y(), window.grecaptcha && typeof window.grecaptcha.render == "function") {
|
|
66
|
+
r(window.grecaptcha);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const f = `___grecaptchaOnLoad___fallback_${Date.now()}___`;
|
|
70
|
+
window[f] = () => {
|
|
71
|
+
delete window[f], window.grecaptcha && typeof window.grecaptcha.render == "function" ? r(window.grecaptcha) : h(
|
|
72
|
+
new Error("recaptcha: grecaptcha global missing after fallback")
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
const k = new URLSearchParams({
|
|
76
|
+
onload: f,
|
|
77
|
+
render: "explicit"
|
|
78
|
+
});
|
|
79
|
+
t && k.set("hl", t);
|
|
80
|
+
const o = document.createElement("script");
|
|
81
|
+
o.src = `${N}?${k.toString()}`, o.async = !0, o.defer = !0, o.onerror = () => {
|
|
82
|
+
delete window[f], g = null, h(new Error("recaptcha: fallback script failed to load"));
|
|
83
|
+
}, document.head.appendChild(o);
|
|
84
|
+
}, ee);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const _ = new URLSearchParams({
|
|
88
|
+
onload: "___grecaptchaOnLoad___",
|
|
89
|
+
render: "explicit"
|
|
90
|
+
});
|
|
91
|
+
t && _.set("hl", t);
|
|
92
|
+
const a = document.createElement("script");
|
|
93
|
+
a.id = O, a.src = `${N}?${_.toString()}`, a.async = !0, a.defer = !0, a.onerror = () => {
|
|
94
|
+
g = null, h(new Error("recaptcha: script failed to load"));
|
|
95
|
+
}, document.head.appendChild(a);
|
|
96
|
+
}), g);
|
|
97
|
+
}
|
|
98
|
+
const ae = U(function({
|
|
99
|
+
siteKey: r,
|
|
100
|
+
theme: h,
|
|
101
|
+
locale: S,
|
|
102
|
+
size: l = "normal",
|
|
103
|
+
onChange: _,
|
|
104
|
+
onExpired: a,
|
|
105
|
+
onError: d,
|
|
106
|
+
error: i,
|
|
107
|
+
id: y,
|
|
108
|
+
className: f
|
|
109
|
+
}, k) {
|
|
110
|
+
const { t: o, i18n: $ } = Q(), T = X(), { resolvedTheme: A } = Y(), I = m(null), c = m(null), n = m(null), [B, b] = q(""), R = y ?? T.id, H = i ? `${R}-error` : void 0, j = [T.describedBy, H].filter(Boolean).join(" ") || void 0, L = h ?? (A.startsWith("dark") ? "dark" : "light"), P = S ?? $.language, e = m(_), x = m(a), u = m(d);
|
|
111
|
+
e.current = _, x.current = a, u.current = d;
|
|
112
|
+
const M = o(
|
|
113
|
+
"inputs.recaptcha.expired",
|
|
114
|
+
"Verification expired — please retry."
|
|
115
|
+
), W = o(
|
|
116
|
+
"inputs.recaptcha.error",
|
|
117
|
+
"Verification failed — please retry."
|
|
118
|
+
);
|
|
119
|
+
C(() => {
|
|
120
|
+
if (!r || !I.current) return;
|
|
121
|
+
let w = !1;
|
|
122
|
+
return re(P).then((v) => {
|
|
123
|
+
w || !I.current || (n.current = v, c.current = v.render(I.current, {
|
|
124
|
+
sitekey: r,
|
|
125
|
+
theme: L,
|
|
126
|
+
size: l,
|
|
127
|
+
hl: P,
|
|
128
|
+
callback: (p) => {
|
|
129
|
+
var s;
|
|
130
|
+
b(""), (s = e.current) == null || s.call(e, p);
|
|
131
|
+
},
|
|
132
|
+
"expired-callback": () => {
|
|
133
|
+
var p, s;
|
|
134
|
+
b(M), (p = e.current) == null || p.call(e, null), (s = x.current) == null || s.call(x);
|
|
135
|
+
},
|
|
136
|
+
"error-callback": () => {
|
|
137
|
+
var p, s;
|
|
138
|
+
b(W), (p = e.current) == null || p.call(e, null), (s = u.current) == null || s.call(u);
|
|
139
|
+
}
|
|
140
|
+
}));
|
|
141
|
+
}).catch(() => {
|
|
142
|
+
var v;
|
|
143
|
+
w || (b(W), (v = u.current) == null || v.call(u));
|
|
144
|
+
}), () => {
|
|
145
|
+
if (w = !0, n.current && c.current !== null)
|
|
146
|
+
try {
|
|
147
|
+
n.current.reset(c.current);
|
|
148
|
+
} catch {
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}, [
|
|
152
|
+
r,
|
|
153
|
+
L,
|
|
154
|
+
P,
|
|
155
|
+
l,
|
|
156
|
+
M,
|
|
157
|
+
W
|
|
158
|
+
]);
|
|
159
|
+
const E = J(
|
|
160
|
+
() => ({
|
|
161
|
+
reset: () => {
|
|
162
|
+
var w;
|
|
163
|
+
n.current && c.current !== null && (n.current.reset(c.current), b(""), (w = e.current) == null || w.call(e, null));
|
|
164
|
+
},
|
|
165
|
+
getResponse: () => n.current && c.current !== null ? n.current.getResponse(c.current) : "",
|
|
166
|
+
execute: () => {
|
|
167
|
+
n.current && c.current !== null && n.current.execute(c.current);
|
|
168
|
+
}
|
|
169
|
+
}),
|
|
170
|
+
[]
|
|
171
|
+
);
|
|
172
|
+
K(k, () => E, [E]), Z(z, E, R);
|
|
173
|
+
const D = i || B, V = l === "invisible" ? "presentation" : void 0;
|
|
174
|
+
return /* @__PURE__ */ G(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
className: [
|
|
178
|
+
"ds:inline-block",
|
|
179
|
+
// Keep the iframe inside the wrapper's stacking context so
|
|
180
|
+
// popovers etc. above the form continue to overlay correctly.
|
|
181
|
+
"ds:relative ds:isolate",
|
|
182
|
+
f
|
|
183
|
+
].filter(Boolean).join(" "),
|
|
184
|
+
"data-component": "recaptcha-widget",
|
|
185
|
+
"data-component-id": R,
|
|
186
|
+
"data-size": l,
|
|
187
|
+
role: V,
|
|
188
|
+
children: [
|
|
189
|
+
/* @__PURE__ */ F(
|
|
190
|
+
"div",
|
|
191
|
+
{
|
|
192
|
+
ref: I,
|
|
193
|
+
id: R,
|
|
194
|
+
className: "g-recaptcha",
|
|
195
|
+
"data-sitekey": r,
|
|
196
|
+
"data-theme": L,
|
|
197
|
+
"data-size": l,
|
|
198
|
+
"aria-describedby": j,
|
|
199
|
+
"aria-invalid": i || T.invalid ? !0 : void 0
|
|
200
|
+
}
|
|
201
|
+
),
|
|
202
|
+
/* @__PURE__ */ F(
|
|
203
|
+
"div",
|
|
204
|
+
{
|
|
205
|
+
role: "status",
|
|
206
|
+
"aria-live": "polite",
|
|
207
|
+
"aria-atomic": "true",
|
|
208
|
+
className: "ds:sr-only",
|
|
209
|
+
children: D
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
});
|
|
216
|
+
ae.displayName = "RecaptchaWidget";
|
|
217
|
+
export {
|
|
218
|
+
ae as R,
|
|
219
|
+
z as r
|
|
220
|
+
};
|
|
221
|
+
//# sourceMappingURL=recaptcha-widget-CFYyLSEX.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
function g(t, r, o) {
|
|
3
|
+
e(() => {
|
|
4
|
+
if (typeof globalThis > "u") return;
|
|
5
|
+
const i = globalThis.__alfadocs_agent;
|
|
6
|
+
if (!i || !o || r == null) return;
|
|
7
|
+
const s = {
|
|
8
|
+
id: t.id,
|
|
9
|
+
instanceId: o,
|
|
10
|
+
handle: r,
|
|
11
|
+
adapter: t
|
|
12
|
+
};
|
|
13
|
+
return i.register(s), () => {
|
|
14
|
+
i.unregister(t.id, o);
|
|
15
|
+
};
|
|
16
|
+
}, [t, r, o]);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
g as u
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=registry-nPAVE19X.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as L, jsxs as de } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as pe, useContext as me, forwardRef as ee, useState as Z, useRef as V, useCallback as X, useEffect as ae, useImperativeHandle as ze, useId as be, useMemo as re, Children as ge,
|
|
2
|
+
import { createContext as pe, useContext as me, forwardRef as ee, useState as Z, useRef as V, useCallback as X, useEffect as ae, useImperativeHandle as ze, useId as be, useMemo as re, Children as ge, isValidElement as ve, cloneElement as se } from "react";
|
|
3
3
|
import { c as te } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
4
|
+
import { useTranslation as Se } from "react-i18next";
|
|
5
|
+
import { u as he } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
6
|
+
import { u as ye } from "./registry-nPAVE19X.js";
|
|
6
7
|
const oe = pe(
|
|
7
8
|
null
|
|
8
9
|
);
|
|
@@ -145,26 +146,26 @@ const Me = te(
|
|
|
145
146
|
const n = [];
|
|
146
147
|
let o = 0, D = 0;
|
|
147
148
|
const q = ($) => {
|
|
148
|
-
if (!
|
|
149
|
+
if (!ve($)) return $;
|
|
149
150
|
if ($.type === ue) {
|
|
150
|
-
const
|
|
151
|
+
const _ = o, t = $.props;
|
|
151
152
|
return n.push({
|
|
152
|
-
id: `${g}-panel-${
|
|
153
|
-
index:
|
|
153
|
+
id: `${g}-panel-${_}`,
|
|
154
|
+
index: _,
|
|
154
155
|
defaultSize: t.defaultSize,
|
|
155
156
|
minSize: t.minSize ?? 10,
|
|
156
157
|
maxSize: t.maxSize ?? 90,
|
|
157
158
|
collapsible: t.collapsible ?? !1,
|
|
158
159
|
collapsedSize: t.collapsedSize ?? 0
|
|
159
160
|
}), o++, se($, {
|
|
160
|
-
_panelIndex:
|
|
161
|
-
_panelId: `${g}-panel-${
|
|
161
|
+
_panelIndex: _,
|
|
162
|
+
_panelId: `${g}-panel-${_}`
|
|
162
163
|
});
|
|
163
164
|
}
|
|
164
165
|
if ($.type === fe) {
|
|
165
|
-
const
|
|
166
|
+
const _ = D++;
|
|
166
167
|
return se($, {
|
|
167
|
-
_handleIndex:
|
|
168
|
+
_handleIndex: _
|
|
168
169
|
});
|
|
169
170
|
}
|
|
170
171
|
return $;
|
|
@@ -194,7 +195,7 @@ const Me = te(
|
|
|
194
195
|
},
|
|
195
196
|
[u, v]
|
|
196
197
|
);
|
|
197
|
-
|
|
198
|
+
he(() => {
|
|
198
199
|
a.current.forEach((n, o) => {
|
|
199
200
|
o < c.length && n.style.setProperty("--panel-self-size", `${c[o]}%`);
|
|
200
201
|
});
|
|
@@ -210,7 +211,7 @@ const Me = te(
|
|
|
210
211
|
a.current.delete(n);
|
|
211
212
|
}, []), M = X((n) => {
|
|
212
213
|
l(n);
|
|
213
|
-
}, []),
|
|
214
|
+
}, []), I = Pe({ direction: e, className: C }), Q = {
|
|
214
215
|
direction: e,
|
|
215
216
|
sizes: c,
|
|
216
217
|
liveSizesRef: h,
|
|
@@ -234,7 +235,7 @@ const Me = te(
|
|
|
234
235
|
"div",
|
|
235
236
|
{
|
|
236
237
|
ref: W,
|
|
237
|
-
className:
|
|
238
|
+
className: I,
|
|
238
239
|
"data-component": "resizable",
|
|
239
240
|
"data-component-id": f,
|
|
240
241
|
"data-panel-group": !0,
|
|
@@ -278,8 +279,8 @@ const ue = ee(
|
|
|
278
279
|
if (Math.abs(N) < 1e-3) return;
|
|
279
280
|
const P = [...x];
|
|
280
281
|
P[e] = h;
|
|
281
|
-
const F = x.map((M,
|
|
282
|
-
(M,
|
|
282
|
+
const F = x.map((M, I) => I).filter((M) => M !== e), j = F.reduce(
|
|
283
|
+
(M, I) => M + (x[I] ?? 0),
|
|
283
284
|
0
|
|
284
285
|
);
|
|
285
286
|
F.forEach((M) => {
|
|
@@ -312,7 +313,7 @@ const ue = ee(
|
|
|
312
313
|
ue.displayName = "Panel";
|
|
313
314
|
const fe = ee(
|
|
314
315
|
({ _handleIndex: e = 0, className: u }, f) => {
|
|
315
|
-
const { t: v, i18n: C } =
|
|
316
|
+
const { t: v, i18n: C } = Se(), {
|
|
316
317
|
direction: r,
|
|
317
318
|
sizes: p,
|
|
318
319
|
liveSizesRef: g,
|
|
@@ -348,15 +349,15 @@ const fe = ee(
|
|
|
348
349
|
if (!c.current) return;
|
|
349
350
|
const { startX: i, startY: y, startSizes: S, groupRect: T } = c.current, H = r === "horizontal", Y = H ? T.width : T.height;
|
|
350
351
|
if (Y === 0) return;
|
|
351
|
-
const B = H ? t.clientX - i : t.clientY - y, J = (H && F() ? -B : B) / Y * 100,
|
|
352
|
+
const B = H ? t.clientX - i : t.clientY - y, J = (H && F() ? -B : B) / Y * 100, G = ke(
|
|
352
353
|
S,
|
|
353
354
|
e,
|
|
354
355
|
J,
|
|
355
356
|
s,
|
|
356
357
|
Y
|
|
357
358
|
);
|
|
358
|
-
if (m(
|
|
359
|
-
const k = Math.round(
|
|
359
|
+
if (m(G), N.current) {
|
|
360
|
+
const k = Math.round(G[e]);
|
|
360
361
|
N.current.setAttribute("aria-valuenow", String(k)), N.current.setAttribute(
|
|
361
362
|
"aria-valuetext",
|
|
362
363
|
new Intl.NumberFormat(C.language, { style: "percent" }).format(
|
|
@@ -364,8 +365,8 @@ const fe = ee(
|
|
|
364
365
|
)
|
|
365
366
|
);
|
|
366
367
|
}
|
|
367
|
-
P(
|
|
368
|
-
},
|
|
368
|
+
P(G[e]);
|
|
369
|
+
}, I = (t) => {
|
|
369
370
|
if (!c.current) return;
|
|
370
371
|
t.currentTarget.releasePointerCapture(t.pointerId), t.currentTarget.style.removeProperty("touch-action"), c.current = null, E(!1);
|
|
371
372
|
const i = g.current;
|
|
@@ -387,7 +388,7 @@ const fe = ee(
|
|
|
387
388
|
if (z <= 0) return null;
|
|
388
389
|
const b = [...R];
|
|
389
390
|
return b[i] += z, b[y] -= z, b;
|
|
390
|
-
},
|
|
391
|
+
}, G = (w = B) => {
|
|
391
392
|
const z = S.collapsible ? S.collapsedSize : S.minSize, b = Math.min(w, R[i] - z);
|
|
392
393
|
if (b <= 0) return null;
|
|
393
394
|
const K = [...R];
|
|
@@ -397,11 +398,11 @@ const fe = ee(
|
|
|
397
398
|
switch (t.key) {
|
|
398
399
|
case "ArrowRight":
|
|
399
400
|
if (!H) break;
|
|
400
|
-
t.preventDefault(), k = Y ?
|
|
401
|
+
t.preventDefault(), k = Y ? G() : J();
|
|
401
402
|
break;
|
|
402
403
|
case "ArrowLeft":
|
|
403
404
|
if (!H) break;
|
|
404
|
-
t.preventDefault(), k = Y ? J() :
|
|
405
|
+
t.preventDefault(), k = Y ? J() : G();
|
|
405
406
|
break;
|
|
406
407
|
case "ArrowDown":
|
|
407
408
|
if (H) break;
|
|
@@ -409,7 +410,7 @@ const fe = ee(
|
|
|
409
410
|
break;
|
|
410
411
|
case "ArrowUp":
|
|
411
412
|
if (H) break;
|
|
412
|
-
t.preventDefault(), k =
|
|
413
|
+
t.preventDefault(), k = G();
|
|
413
414
|
break;
|
|
414
415
|
case "Home": {
|
|
415
416
|
t.preventDefault();
|
|
@@ -463,7 +464,7 @@ const fe = ee(
|
|
|
463
464
|
className: Me({ orientation: q, className: u }),
|
|
464
465
|
onPointerDown: j,
|
|
465
466
|
onPointerMove: M,
|
|
466
|
-
onPointerUp:
|
|
467
|
+
onPointerUp: I,
|
|
467
468
|
onPointerCancel: Q,
|
|
468
469
|
onKeyDown: W
|
|
469
470
|
}
|
|
@@ -480,4 +481,4 @@ export {
|
|
|
480
481
|
Re as r,
|
|
481
482
|
le as u
|
|
482
483
|
};
|
|
483
|
-
//# sourceMappingURL=resizable-
|
|
484
|
+
//# sourceMappingURL=resizable-3vzqDlg6.js.map
|
|
@@ -2,11 +2,11 @@ import { jsx as s, jsxs as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as G, useState as _, useCallback as L, useMemo as C, useRef as V, useImperativeHandle as J, useId as B, useEffect as Q } from "react";
|
|
3
3
|
import { c as K } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as E } from "react-i18next";
|
|
5
|
-
import { u as W } from "./registry-
|
|
5
|
+
import { u as W } from "./registry-nPAVE19X.js";
|
|
6
6
|
import { R as N } from "./rating-BRD7O74e.js";
|
|
7
7
|
import { C as A } from "./card-DKTMLVrw.js";
|
|
8
|
-
import { C as X, b as Y, a as Z } from "./collapsible-
|
|
9
|
-
import { D as l } from "./description-list-
|
|
8
|
+
import { C as X, b as Y, a as Z } from "./collapsible-CERONory.js";
|
|
9
|
+
import { D as l } from "./description-list-BEbK2g93.js";
|
|
10
10
|
import { E as ee } from "./empty-state-BLy7tigq.js";
|
|
11
11
|
import { S as T } from "./skeleton-CZbwyJAA.js";
|
|
12
12
|
import { B as se } from "./button-DD_0Xdmr.js";
|
|
@@ -530,4 +530,4 @@ export {
|
|
|
530
530
|
oe as R,
|
|
531
531
|
re as r
|
|
532
532
|
};
|
|
533
|
-
//# sourceMappingURL=reviews-panel-
|
|
533
|
+
//# sourceMappingURL=reviews-panel-yanuBZs-.js.map
|
|
@@ -13,7 +13,7 @@ import be from "./purify.es-Cm3utOpm.js";
|
|
|
13
13
|
import { c as S } from "./index-D2ZczOXr.js";
|
|
14
14
|
import { useTranslation as U } from "react-i18next";
|
|
15
15
|
import * as z from "@radix-ui/react-dialog";
|
|
16
|
-
import { u as pe } from "./registry-
|
|
16
|
+
import { u as pe } from "./registry-nPAVE19X.js";
|
|
17
17
|
import { s as ge } from "./safe-image-src-DstKgCo7.js";
|
|
18
18
|
import { X as ve } from "./x-CCcI3eJp.js";
|
|
19
19
|
import { C as ke } from "./chevron-down-BX_NP2Yh.js";
|
|
@@ -928,4 +928,4 @@ export {
|
|
|
928
928
|
G as t,
|
|
929
929
|
Ue as w
|
|
930
930
|
};
|
|
931
|
-
//# sourceMappingURL=rich-text-editor-
|
|
931
|
+
//# sourceMappingURL=rich-text-editor-CHmr9Bz8.js.map
|