@senitix/ui 0.4.0 → 0.4.1
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/avatar-BT_SPwFW.cjs +18 -0
- package/dist/{avatar-C0aVNCG9.cjs.map → avatar-BT_SPwFW.cjs.map} +1 -1
- package/dist/avatar-C5-ZWIqT.js +305 -0
- package/dist/{avatar-CN6wcrqY.js.map → avatar-C5-ZWIqT.js.map} +1 -1
- package/dist/calendar-BF5drX5u.cjs +12 -0
- package/dist/{calendar-BUm7YrNf.cjs.map → calendar-BF5drX5u.cjs.map} +1 -1
- package/dist/calendar-CUxm1K7J.js +17 -0
- package/dist/{calendar-ChJkFXXr.js.map → calendar-CUxm1K7J.js.map} +1 -1
- package/dist/calendar-D3RWU0_G.cjs +7 -0
- package/dist/{calendar-SwL5isYC.cjs.map → calendar-D3RWU0_G.cjs.map} +1 -1
- package/dist/{calendar-BFWc4IB7.js → calendar-DgnhzEfp.js} +126 -112
- package/dist/{calendar-BFWc4IB7.js.map → calendar-DgnhzEfp.js.map} +1 -1
- package/dist/{card-tMkUxpmW.cjs → card-DISL3sPJ.cjs} +2 -2
- package/dist/{card-tMkUxpmW.cjs.map → card-DISL3sPJ.cjs.map} +1 -1
- package/dist/{card-K4fxyYwE.js → card-fId5vof_.js} +2 -2
- package/dist/{card-K4fxyYwE.js.map → card-fId5vof_.js.map} +1 -1
- package/dist/{checkbox-CpOq5hkT.js → checkbox-BY2zxQVv.js} +5 -5
- package/dist/{checkbox-CpOq5hkT.js.map → checkbox-BY2zxQVv.js.map} +1 -1
- package/dist/checkbox-CL6u7vL6.cjs +2 -0
- package/dist/{checkbox-D7-LQyCl.cjs.map → checkbox-CL6u7vL6.cjs.map} +1 -1
- package/dist/chevron-down-BiUlxZA-.js +14 -0
- package/dist/{chevron-down-DJ1_YIFu.js.map → chevron-down-BiUlxZA-.js.map} +1 -1
- package/dist/chevron-down-Ce0kqXiD.cjs +7 -0
- package/dist/{chevron-down-DHdXqOqK.cjs.map → chevron-down-Ce0kqXiD.cjs.map} +1 -1
- package/dist/chevron-right-BLyGmyaF.js +14 -0
- package/dist/{chevron-right-B3bovvh0.js.map → chevron-right-BLyGmyaF.js.map} +1 -1
- package/dist/chevron-right-Bxf8i4gi.cjs +7 -0
- package/dist/{chevron-right-Dvyd11q0.cjs.map → chevron-right-Bxf8i4gi.cjs.map} +1 -1
- package/dist/chevron-up-BmYZUtrk.js +12 -0
- package/dist/{chevron-up-CGtXOr51.js.map → chevron-up-BmYZUtrk.js.map} +1 -1
- package/dist/chevron-up-C3RClqXD.cjs +7 -0
- package/dist/{chevron-up-B9fuiZhc.cjs.map → chevron-up-C3RClqXD.cjs.map} +1 -1
- package/dist/components/charts/index.cjs.js +1 -1
- package/dist/components/charts/index.es.js +1 -1
- package/dist/components/data-display/index.cjs.js +1 -1
- package/dist/components/data-display/index.es.js +1 -1
- package/dist/components/dnd/index.cjs.js +1 -1
- package/dist/components/dnd/index.es.js +1 -1
- package/dist/components/feedback/index.cjs.js +1 -1
- package/dist/components/feedback/index.es.js +1 -1
- package/dist/components/forms/index.cjs.js +1 -1
- package/dist/components/forms/index.es.js +1 -1
- package/dist/components/layouts/index.cjs.js +1 -1
- package/dist/components/layouts/index.es.js +1 -1
- package/dist/components/navigation/index.cjs.js +1 -1
- package/dist/components/navigation/index.es.js +1 -1
- package/dist/components/ui/index.cjs.js +1 -1
- package/dist/components/ui/index.es.js +13 -13
- package/dist/{createLucideIcon-BbeNo6vq.js → createLucideIcon-BC8wu-bu.js} +25 -1
- package/dist/{createLucideIcon-BbeNo6vq.js.map → createLucideIcon-BC8wu-bu.js.map} +1 -1
- package/dist/createLucideIcon-Cv8nC2E9.cjs +22 -0
- package/dist/{createLucideIcon-i5GEhNMV.cjs.map → createLucideIcon-Cv8nC2E9.cjs.map} +1 -1
- package/dist/ellipsis-6eUne95u.js +16 -0
- package/dist/{ellipsis-CiKEaUNP.js.map → ellipsis-6eUne95u.js.map} +1 -1
- package/dist/ellipsis-DkM3GBF5.cjs +7 -0
- package/dist/{ellipsis-BW2gWki8.cjs.map → ellipsis-DkM3GBF5.cjs.map} +1 -1
- package/dist/file-Cp5UoYUZ.cjs +7 -0
- package/dist/{file-V_hhCUhr.cjs.map → file-Cp5UoYUZ.cjs.map} +1 -1
- package/dist/file-Cw_u_aJB.js +15 -0
- package/dist/{file-wzTXnWqz.js.map → file-Cw_u_aJB.js.map} +1 -1
- package/dist/filter-tags-DoRzXjuY.cjs +48 -0
- package/dist/{filter-tags-DjUaNXHR.cjs.map → filter-tags-DoRzXjuY.cjs.map} +1 -1
- package/dist/{filter-tags-i_I8qV1N.js → filter-tags-zEQmRhEU.js} +353 -299
- package/dist/{filter-tags-i_I8qV1N.js.map → filter-tags-zEQmRhEU.js.map} +1 -1
- package/dist/{full-calendar-7ac2FFU6.js → full-calendar-5Z4JSj8g.js} +1176 -1143
- package/dist/{full-calendar-7ac2FFU6.js.map → full-calendar-5Z4JSj8g.js.map} +1 -1
- package/dist/full-calendar-DjAvCfuE.cjs +23 -0
- package/dist/{full-calendar-Cpeh5xMP.cjs.map → full-calendar-DjAvCfuE.cjs.map} +1 -1
- package/dist/{global-search-h1rVbP2q.js → global-search-BbZfc-VL.js} +514 -486
- package/dist/global-search-BbZfc-VL.js.map +1 -0
- package/dist/global-search-Bd74_wPV.cjs +22 -0
- package/dist/global-search-Bd74_wPV.cjs.map +1 -0
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +1 -1
- package/dist/index-D2U2F80P.cjs +2 -0
- package/dist/index-D2U2F80P.cjs.map +1 -0
- package/dist/index-DG0KV-sw.cjs +11 -0
- package/dist/{index-CzVK9Zyb.cjs.map → index-DG0KV-sw.cjs.map} +1 -1
- package/dist/{index-Co9o9StL.js → index-Dk_Et2WJ.js} +2 -2
- package/dist/{index-Co9o9StL.js.map → index-Dk_Et2WJ.js.map} +1 -1
- package/dist/{index-CwJPJKOE.js → index-DtaLkIY8.js} +1072 -573
- package/dist/index-DtaLkIY8.js.map +1 -0
- package/dist/index-XnFSmCuh.js +299 -0
- package/dist/{index-l828OqQN.js.map → index-XnFSmCuh.js.map} +1 -1
- package/dist/{index-lT9bLt9X.cjs → index-gVbM3K4f.cjs} +2 -2
- package/dist/{index-lT9bLt9X.cjs.map → index-gVbM3K4f.cjs.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +23 -23
- package/dist/input-BgPy-4Qu.js +3658 -0
- package/dist/{input-D4AoiWxo.js.map → input-BgPy-4Qu.js.map} +1 -1
- package/dist/input-Cfr2WB-P.cjs +47 -0
- package/dist/{input-CZrckPLk.cjs.map → input-Cfr2WB-P.cjs.map} +1 -1
- package/dist/locale-provider-BojNdf1Y.cjs +2 -0
- package/dist/{locale-provider-DHMwuneF.cjs.map → locale-provider-BojNdf1Y.cjs.map} +1 -1
- package/dist/{locale-provider-DanG6RRG.js → locale-provider-DzBeb-X3.js} +62 -61
- package/dist/{locale-provider-DanG6RRG.js.map → locale-provider-DzBeb-X3.js.map} +1 -1
- package/dist/locale-selector-BD1IWk6X.cjs +22 -0
- package/dist/{locale-selector-Ppe0KTi-.cjs.map → locale-selector-BD1IWk6X.cjs.map} +1 -1
- package/dist/locale-selector-DLRSyVye.js +1772 -0
- package/dist/{locale-selector-xn2GpdP9.js.map → locale-selector-DLRSyVye.js.map} +1 -1
- package/dist/minus-C0uyaz70.cjs +7 -0
- package/dist/{minus-BXBFZSZs.cjs.map → minus-C0uyaz70.cjs.map} +1 -1
- package/dist/minus-CiwV65ZG.js +12 -0
- package/dist/{minus-DvlYtl96.js.map → minus-CiwV65ZG.js.map} +1 -1
- package/dist/{multi-container-C2UpSw5f.js → multi-container-BZia7HCU.js} +181 -164
- package/dist/{multi-container-C2UpSw5f.js.map → multi-container-BZia7HCU.js.map} +1 -1
- package/dist/multi-container-BdNbgtPZ.cjs +7 -0
- package/dist/{multi-container-DMKL8c9B.cjs.map → multi-container-BdNbgtPZ.cjs.map} +1 -1
- package/dist/pipeline-Dh052Dvj.cjs +27 -0
- package/dist/{pipeline-By5_8AFg.cjs.map → pipeline-Dh052Dvj.cjs.map} +1 -1
- package/dist/pipeline-DqWvleNy.js +1076 -0
- package/dist/{pipeline-D-QNSU0U.js.map → pipeline-DqWvleNy.js.map} +1 -1
- package/dist/plus-BsV82JJ5.cjs +7 -0
- package/dist/{plus-8wKRkVu-.cjs.map → plus-BsV82JJ5.cjs.map} +1 -1
- package/dist/plus-DxD6rofl.js +15 -0
- package/dist/{plus-CJD68KQD.js.map → plus-DxD6rofl.js.map} +1 -1
- package/dist/popover-BgLxmm1z.cjs +7 -0
- package/dist/{popover-ivh-plLc.cjs.map → popover-BgLxmm1z.cjs.map} +1 -1
- package/dist/{popover-4V4sGe1U.js → popover-PI9jbhnS.js} +85 -75
- package/dist/{popover-4V4sGe1U.js.map → popover-PI9jbhnS.js.map} +1 -1
- package/dist/progress-CTTt_CP3.js +260 -0
- package/dist/{progress-D5AsrWa6.js.map → progress-CTTt_CP3.js.map} +1 -1
- package/dist/progress-CTWb7X1Q.cjs +37 -0
- package/dist/{progress-CFnuLqnS.cjs.map → progress-CTWb7X1Q.cjs.map} +1 -1
- package/dist/providers/index.cjs.js +1 -1
- package/dist/providers/index.es.js +1 -1
- package/dist/{scroll-area-DQeqDp3Y.js → scroll-area-A3jGu-Ta.js} +302 -280
- package/dist/{scroll-area-DQeqDp3Y.js.map → scroll-area-A3jGu-Ta.js.map} +1 -1
- package/dist/scroll-area-DzDnWIYJ.cjs +12 -0
- package/dist/{scroll-area-DYOiJMXh.cjs.map → scroll-area-DzDnWIYJ.cjs.map} +1 -1
- package/dist/select-BJpZrtep.js +989 -0
- package/dist/{select-C1rNBi6c.js.map → select-BJpZrtep.js.map} +1 -1
- package/dist/select-Ii8HRuXa.cjs +2 -0
- package/dist/{select-m-Mqwxu3.cjs.map → select-Ii8HRuXa.cjs.map} +1 -1
- package/dist/separator-BzcDE0Ei.cjs +2 -0
- package/dist/{separator-DBUivkHq.cjs.map → separator-BzcDE0Ei.cjs.map} +1 -1
- package/dist/{separator-DsfoJx-2.js → separator-DyarVo1-.js} +66 -65
- package/dist/{separator-DsfoJx-2.js.map → separator-DyarVo1-.js.map} +1 -1
- package/dist/{sheet-BVWCpq7E.js → sheet-DPSdOoE6.js} +4 -4
- package/dist/{sheet-BVWCpq7E.js.map → sheet-DPSdOoE6.js.map} +1 -1
- package/dist/{sheet-mKiFLVnK.cjs → sheet-XtjvbEMq.cjs} +2 -2
- package/dist/{sheet-mKiFLVnK.cjs.map → sheet-XtjvbEMq.cjs.map} +1 -1
- package/dist/{skeleton-BmGbfJw3.js → skeleton-Bl6FAxHT.js} +2 -2
- package/dist/{skeleton-BmGbfJw3.js.map → skeleton-Bl6FAxHT.js.map} +1 -1
- package/dist/{skeleton-BSwwYaQU.cjs → skeleton-Cb6MWerF.cjs} +2 -2
- package/dist/{skeleton-BSwwYaQU.cjs.map → skeleton-Cb6MWerF.cjs.map} +1 -1
- package/dist/sortable.esm-5DsiICDg.cjs +6 -0
- package/dist/{sortable.esm-DcQYlXi3.cjs.map → sortable.esm-5DsiICDg.cjs.map} +1 -1
- package/dist/{sortable.esm-Blhf_jh1.js → sortable.esm-Cb8oRBzU.js} +42 -42
- package/dist/{sortable.esm-Blhf_jh1.js.map → sortable.esm-Cb8oRBzU.js.map} +1 -1
- package/dist/sparkline-chart-CeCDeMNk.cjs +102 -0
- package/dist/{sparkline-chart-ca3uTzVK.cjs.map → sparkline-chart-CeCDeMNk.cjs.map} +1 -1
- package/dist/{sparkline-chart-Da-ehDGv.js → sparkline-chart-DUS4CoW_.js} +7799 -9094
- package/dist/{sparkline-chart-Da-ehDGv.js.map → sparkline-chart-DUS4CoW_.js.map} +1 -1
- package/dist/styles.css +1 -0
- package/dist/trending-up-BBjz_E69.cjs +7 -0
- package/dist/{trending-up-D3Nfrhi3.cjs.map → trending-up-BBjz_E69.cjs.map} +1 -1
- package/dist/trending-up-BHFXgLWy.js +15 -0
- package/dist/{trending-up-DPwlYzQb.js.map → trending-up-BHFXgLWy.js.map} +1 -1
- package/dist/{use-formatters-l1_2c8z0.js → use-formatters-Bgj3JA4i.js} +731 -746
- package/dist/{use-formatters-l1_2c8z0.js.map → use-formatters-Bgj3JA4i.js.map} +1 -1
- package/dist/use-formatters-CObUgipW.cjs +2 -0
- package/dist/{use-formatters-d97RVcmg.cjs.map → use-formatters-CObUgipW.cjs.map} +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +1 -1
- package/dist/welcome-card-CNuEa6Ck.cjs +67 -0
- package/dist/{welcome-card-CPolYl1D.cjs.map → welcome-card-CNuEa6Ck.cjs.map} +1 -1
- package/dist/{welcome-card-CxMJZ8bv.js → welcome-card-Cp6t6G3j.js} +197 -119
- package/dist/{welcome-card-CxMJZ8bv.js.map → welcome-card-Cp6t6G3j.js.map} +1 -1
- package/package.json +14 -12
- package/dist/avatar-C0aVNCG9.cjs +0 -2
- package/dist/avatar-CN6wcrqY.js +0 -288
- package/dist/calendar-BUm7YrNf.cjs +0 -2
- package/dist/calendar-ChJkFXXr.js +0 -11
- package/dist/calendar-SwL5isYC.cjs +0 -2
- package/dist/checkbox-D7-LQyCl.cjs +0 -2
- package/dist/chevron-down-DHdXqOqK.cjs +0 -2
- package/dist/chevron-down-DJ1_YIFu.js +0 -8
- package/dist/chevron-right-B3bovvh0.js +0 -8
- package/dist/chevron-right-Dvyd11q0.cjs +0 -2
- package/dist/chevron-up-B9fuiZhc.cjs +0 -2
- package/dist/chevron-up-CGtXOr51.js +0 -6
- package/dist/createLucideIcon-i5GEhNMV.cjs +0 -2
- package/dist/ellipsis-BW2gWki8.cjs +0 -2
- package/dist/ellipsis-CiKEaUNP.js +0 -10
- package/dist/file-V_hhCUhr.cjs +0 -2
- package/dist/file-wzTXnWqz.js +0 -9
- package/dist/filter-tags-DjUaNXHR.cjs +0 -5
- package/dist/full-calendar-Cpeh5xMP.cjs +0 -8
- package/dist/global-search-UNXjoFlI.cjs +0 -2
- package/dist/global-search-UNXjoFlI.cjs.map +0 -1
- package/dist/global-search-h1rVbP2q.js.map +0 -1
- package/dist/index-CwJPJKOE.js.map +0 -1
- package/dist/index-CzVK9Zyb.cjs +0 -6
- package/dist/index-l828OqQN.js +0 -288
- package/dist/index-lGzB9daF.cjs +0 -2
- package/dist/index-lGzB9daF.cjs.map +0 -1
- package/dist/input-CZrckPLk.cjs +0 -42
- package/dist/input-D4AoiWxo.js +0 -3629
- package/dist/locale-provider-DHMwuneF.cjs +0 -2
- package/dist/locale-selector-Ppe0KTi-.cjs +0 -2
- package/dist/locale-selector-xn2GpdP9.js +0 -1745
- package/dist/minus-BXBFZSZs.cjs +0 -2
- package/dist/minus-DvlYtl96.js +0 -6
- package/dist/multi-container-DMKL8c9B.cjs +0 -2
- package/dist/pipeline-By5_8AFg.cjs +0 -2
- package/dist/pipeline-D-QNSU0U.js +0 -1036
- package/dist/plus-8wKRkVu-.cjs +0 -2
- package/dist/plus-CJD68KQD.js +0 -9
- package/dist/popover-ivh-plLc.cjs +0 -2
- package/dist/progress-CFnuLqnS.cjs +0 -7
- package/dist/progress-D5AsrWa6.js +0 -222
- package/dist/scroll-area-DYOiJMXh.cjs +0 -2
- package/dist/select-C1rNBi6c.js +0 -974
- package/dist/select-m-Mqwxu3.cjs +0 -2
- package/dist/separator-DBUivkHq.cjs +0 -2
- package/dist/sortable.esm-DcQYlXi3.cjs +0 -6
- package/dist/sparkline-chart-ca3uTzVK.cjs +0 -68
- package/dist/trending-up-D3Nfrhi3.cjs +0 -2
- package/dist/trending-up-DPwlYzQb.js +0 -9
- package/dist/ui.css +0 -1
- package/dist/use-formatters-d97RVcmg.cjs +0 -2
- package/dist/welcome-card-CPolYl1D.cjs +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const B=require("react/jsx-runtime"),w=require("react");function K(e){const m=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const y=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(m,r,y.get?y:{enumerable:!0,get:()=>e[r]})}}return m.default=e,Object.freeze(m)}const i=K(w),n={short:{"tr-TR":"dd.MM.yyyy","en-US":"MM/dd/yyyy","en-GB":"dd/MM/yyyy","de-DE":"dd.MM.yyyy","fr-FR":"dd/MM/yyyy","es-ES":"dd/MM/yyyy","it-IT":"dd/MM/yyyy","pt-BR":"dd/MM/yyyy","nl-NL":"dd-MM-yyyy","pl-PL":"dd.MM.yyyy","ru-RU":"dd.MM.yyyy","ja-JP":"yyyy/MM/dd","zh-CN":"yyyy-MM-dd","ko-KR":"yyyy.MM.dd","ar-SA":"dd/MM/yyyy"},long:{"tr-TR":"d MMMM yyyy","en-US":"MMMM d, yyyy","en-GB":"d MMMM yyyy","de-DE":"d. MMMM yyyy","fr-FR":"d MMMM yyyy","es-ES":"d de MMMM de yyyy","it-IT":"d MMMM yyyy","pt-BR":"d de MMMM de yyyy","nl-NL":"d MMMM yyyy","pl-PL":"d MMMM yyyy","ru-RU":"d MMMM yyyy г.","ja-JP":"yyyy年M月d日","zh-CN":"yyyy年M月d日","ko-KR":"yyyy년 M월 d일","ar-SA":"d MMMM yyyy"},withTime:{"tr-TR":"dd.MM.yyyy HH:mm","en-US":"MM/dd/yyyy hh:mm a","en-GB":"dd/MM/yyyy HH:mm","de-DE":"dd.MM.yyyy HH:mm","fr-FR":"dd/MM/yyyy HH:mm","es-ES":"dd/MM/yyyy HH:mm","it-IT":"dd/MM/yyyy HH:mm","pt-BR":"dd/MM/yyyy HH:mm","nl-NL":"dd-MM-yyyy HH:mm","pl-PL":"dd.MM.yyyy HH:mm","ru-RU":"dd.MM.yyyy HH:mm","ja-JP":"yyyy/MM/dd HH:mm","zh-CN":"yyyy-MM-dd HH:mm","ko-KR":"yyyy.MM.dd HH:mm","ar-SA":"dd/MM/yyyy hh:mm a"},relative:{"tr-TR":"relative","en-US":"relative","en-GB":"relative","de-DE":"relative","fr-FR":"relative","es-ES":"relative","it-IT":"relative","pt-BR":"relative","nl-NL":"relative","pl-PL":"relative","ru-RU":"relative","ja-JP":"relative","zh-CN":"relative","ko-KR":"relative","ar-SA":"relative"}},t={short:{"tr-TR":"HH:mm","en-US":"hh:mm a","en-GB":"HH:mm","de-DE":"HH:mm","fr-FR":"HH:mm","es-ES":"HH:mm","it-IT":"HH:mm","pt-BR":"HH:mm","nl-NL":"HH:mm","pl-PL":"HH:mm","ru-RU":"HH:mm","ja-JP":"HH:mm","zh-CN":"HH:mm","ko-KR":"HH:mm","ar-SA":"hh:mm a"},long:{"tr-TR":"HH:mm:ss","en-US":"hh:mm:ss a","en-GB":"HH:mm:ss","de-DE":"HH:mm:ss","fr-FR":"HH:mm:ss","es-ES":"HH:mm:ss","it-IT":"HH:mm:ss","pt-BR":"HH:mm:ss","nl-NL":"HH:mm:ss","pl-PL":"HH:mm:ss","ru-RU":"HH:mm:ss","ja-JP":"HH:mm:ss","zh-CN":"HH:mm:ss","ko-KR":"HH:mm:ss","ar-SA":"hh:mm:ss a"}},h={"tr-TR":{code:"tr-TR",name:"Turkish",nativeName:"Türkçe",flag:"🇹🇷",defaultCurrency:"TRY",dateFormat:n.short["tr-TR"],timeFormat:t.short["tr-TR"]},"en-US":{code:"en-US",name:"English (US)",nativeName:"English (US)",flag:"🇺🇸",defaultCurrency:"USD",dateFormat:n.short["en-US"],timeFormat:t.short["en-US"]},"en-GB":{code:"en-GB",name:"English (UK)",nativeName:"English (UK)",flag:"🇬🇧",defaultCurrency:"GBP",dateFormat:n.short["en-GB"],timeFormat:t.short["en-GB"]},"de-DE":{code:"de-DE",name:"German",nativeName:"Deutsch",flag:"🇩🇪",defaultCurrency:"EUR",dateFormat:n.short["de-DE"],timeFormat:t.short["de-DE"]},"fr-FR":{code:"fr-FR",name:"French",nativeName:"Français",flag:"🇫🇷",defaultCurrency:"EUR",dateFormat:n.short["fr-FR"],timeFormat:t.short["fr-FR"]},"es-ES":{code:"es-ES",name:"Spanish",nativeName:"Español",flag:"🇪🇸",defaultCurrency:"EUR",dateFormat:n.short["es-ES"],timeFormat:t.short["es-ES"]},"it-IT":{code:"it-IT",name:"Italian",nativeName:"Italiano",flag:"🇮🇹",defaultCurrency:"EUR",dateFormat:n.short["it-IT"],timeFormat:t.short["it-IT"]},"pt-BR":{code:"pt-BR",name:"Portuguese (Brazil)",nativeName:"Português (Brasil)",flag:"🇧🇷",defaultCurrency:"BRL",dateFormat:n.short["pt-BR"],timeFormat:t.short["pt-BR"]},"nl-NL":{code:"nl-NL",name:"Dutch",nativeName:"Nederlands",flag:"🇳🇱",defaultCurrency:"EUR",dateFormat:n.short["nl-NL"],timeFormat:t.short["nl-NL"]},"pl-PL":{code:"pl-PL",name:"Polish",nativeName:"Polski",flag:"🇵🇱",defaultCurrency:"PLN",dateFormat:n.short["pl-PL"],timeFormat:t.short["pl-PL"]},"ru-RU":{code:"ru-RU",name:"Russian",nativeName:"Русский",flag:"🇷🇺",defaultCurrency:"RUB",dateFormat:n.short["ru-RU"],timeFormat:t.short["ru-RU"]},"ja-JP":{code:"ja-JP",name:"Japanese",nativeName:"日本語",flag:"🇯🇵",defaultCurrency:"JPY",dateFormat:n.short["ja-JP"],timeFormat:t.short["ja-JP"]},"zh-CN":{code:"zh-CN",name:"Chinese (Simplified)",nativeName:"中文",flag:"🇨🇳",defaultCurrency:"CNY",dateFormat:n.short["zh-CN"],timeFormat:t.short["zh-CN"]},"ko-KR":{code:"ko-KR",name:"Korean",nativeName:"한국어",flag:"🇰🇷",defaultCurrency:"KRW",dateFormat:n.short["ko-KR"],timeFormat:t.short["ko-KR"]},"ar-SA":{code:"ar-SA",name:"Arabic",nativeName:"العربية",flag:"🇸🇦",defaultCurrency:"SAR",dateFormat:n.short["ar-SA"],timeFormat:t.short["ar-SA"],rtl:!0}};function z(e,m="short"){return n[m][e]||n[m]["en-US"]}function I(e,m="short"){return t[m][e]||t[m]["en-US"]}function j(e){return h[e]||h["en-US"]}function G(){return Object.values(h)}function O(){return Object.keys(h)}function $(e){return h[e]?.rtl===!0}const f={USD:{code:"USD",symbol:"$",name:"US Dollar",position:"before",decimals:2},EUR:{code:"EUR",symbol:"€",name:"Euro",position:"before",decimals:2},GBP:{code:"GBP",symbol:"£",name:"British Pound",position:"before",decimals:2},TRY:{code:"TRY",symbol:"₺",name:"Turkish Lira",position:"before",decimals:2},JPY:{code:"JPY",symbol:"¥",name:"Japanese Yen",position:"before",decimals:0},CNY:{code:"CNY",symbol:"¥",name:"Chinese Yuan",position:"before",decimals:2},KRW:{code:"KRW",symbol:"₩",name:"Korean Won",position:"before",decimals:0},INR:{code:"INR",symbol:"₹",name:"Indian Rupee",position:"before",decimals:2},BRL:{code:"BRL",symbol:"R$",name:"Brazilian Real",position:"before",decimals:2},RUB:{code:"RUB",symbol:"₽",name:"Russian Ruble",position:"after",decimals:2},AUD:{code:"AUD",symbol:"A$",name:"Australian Dollar",position:"before",decimals:2},CAD:{code:"CAD",symbol:"C$",name:"Canadian Dollar",position:"before",decimals:2},CHF:{code:"CHF",symbol:"Fr",name:"Swiss Franc",position:"before",decimals:2},SEK:{code:"SEK",symbol:"kr",name:"Swedish Krona",position:"after",decimals:2},NOK:{code:"NOK",symbol:"kr",name:"Norwegian Krone",position:"after",decimals:2},DKK:{code:"DKK",symbol:"kr",name:"Danish Krone",position:"after",decimals:2},PLN:{code:"PLN",symbol:"zł",name:"Polish Zloty",position:"after",decimals:2},MXN:{code:"MXN",symbol:"$",name:"Mexican Peso",position:"before",decimals:2},SGD:{code:"SGD",symbol:"S$",name:"Singapore Dollar",position:"before",decimals:2},HKD:{code:"HKD",symbol:"HK$",name:"Hong Kong Dollar",position:"before",decimals:2},AED:{code:"AED",symbol:"د.إ",name:"UAE Dirham",position:"before",decimals:2},SAR:{code:"SAR",symbol:"﷼",name:"Saudi Riyal",position:"after",decimals:2},NZD:{code:"NZD",symbol:"NZ$",name:"New Zealand Dollar",position:"before",decimals:2},ZAR:{code:"ZAR",symbol:"R",name:"South African Rand",position:"before",decimals:2},THB:{code:"THB",symbol:"฿",name:"Thai Baht",position:"before",decimals:2},IDR:{code:"IDR",symbol:"Rp",name:"Indonesian Rupiah",position:"before",decimals:0},MYR:{code:"MYR",symbol:"RM",name:"Malaysian Ringgit",position:"before",decimals:2},PHP:{code:"PHP",symbol:"₱",name:"Philippine Peso",position:"before",decimals:2},VND:{code:"VND",symbol:"₫",name:"Vietnamese Dong",position:"after",decimals:0},CZK:{code:"CZK",symbol:"Kč",name:"Czech Koruna",position:"after",decimals:2},HUF:{code:"HUF",symbol:"Ft",name:"Hungarian Forint",position:"after",decimals:0},ILS:{code:"ILS",symbol:"₪",name:"Israeli Shekel",position:"before",decimals:2},CLP:{code:"CLP",symbol:"$",name:"Chilean Peso",position:"before",decimals:0},COP:{code:"COP",symbol:"$",name:"Colombian Peso",position:"before",decimals:0},ARS:{code:"ARS",symbol:"$",name:"Argentine Peso",position:"before",decimals:2},PEN:{code:"PEN",symbol:"S/",name:"Peruvian Sol",position:"before",decimals:2},EGP:{code:"EGP",symbol:"E£",name:"Egyptian Pound",position:"before",decimals:2},NGN:{code:"NGN",symbol:"₦",name:"Nigerian Naira",position:"before",decimals:2},PKR:{code:"PKR",symbol:"₨",name:"Pakistani Rupee",position:"before",decimals:2},BDT:{code:"BDT",symbol:"৳",name:"Bangladeshi Taka",position:"before",decimals:2},UAH:{code:"UAH",symbol:"₴",name:"Ukrainian Hryvnia",position:"after",decimals:2},RON:{code:"RON",symbol:"lei",name:"Romanian Leu",position:"after",decimals:2},BGN:{code:"BGN",symbol:"лв",name:"Bulgarian Lev",position:"after",decimals:2},HRK:{code:"HRK",symbol:"kn",name:"Croatian Kuna",position:"after",decimals:2},ISK:{code:"ISK",symbol:"kr",name:"Icelandic Krona",position:"after",decimals:0},TWD:{code:"TWD",symbol:"NT$",name:"Taiwan Dollar",position:"before",decimals:0}};function F(e){return f[e]}function J(e,m,r){const y=F(m);if(!y)return e.toString();const c=y.decimals??2,u=e.toLocaleString(r,{minimumFractionDigits:c,maximumFractionDigits:c});return y.position==="before"?`${y.symbol}${u}`:`${u} ${y.symbol}`}function x(){return Object.values(f)}function W(){return Object.keys(f)}const S={"en-US":{"common.save":"Save","common.cancel":"Cancel","common.delete":"Delete","common.edit":"Edit","common.create":"Create","common.search":"Search","common.filter":"Filter","common.export":"Export","common.import":"Import","common.loading":"Loading...","common.noData":"No data available","common.confirm":"Confirm","common.close":"Close","common.yes":"Yes","common.no":"No","common.all":"All","common.none":"None","common.select":"Select","common.selectAll":"Select all","common.clearAll":"Clear all","common.apply":"Apply","common.reset":"Reset","common.more":"More","common.less":"Less","common.viewAll":"View all","common.showMore":"Show more","common.showLess":"Show less","common.total":"Total","common.items":"Items","table.rowsPerPage":"Rows per page","table.of":"of","table.page":"Page","table.noResults":"No results found","table.columns":"Columns","form.required":"This field is required","form.invalidEmail":"Invalid email address","form.invalidPhone":"Invalid phone number","form.minLength":"Minimum {min} characters required","form.maxLength":"Maximum {max} characters allowed","date.today":"Today","date.yesterday":"Yesterday","date.tomorrow":"Tomorrow","date.thisWeek":"This week","date.lastWeek":"Last week","date.thisMonth":"This month","date.lastMonth":"Last month","notifications.success":"Success","notifications.error":"Error","notifications.warning":"Warning","notifications.info":"Info","deal.probability":"Probability","deal.value":"Value","deal.stage":"Stage","deal.closeDate":"Close Date","pipeline.moveTo":"Move to","pipeline.stages":"Stages","locale.selectLanguage":"Select language","locale.selectCurrency":"Select currency","calendar.today":"Today","calendar.month":"Month","calendar.week":"Week","calendar.day":"Day","calendar.agenda":"Agenda","calendar.allDay":"All day","calendar.noEvents":"No events scheduled for this month","calendar.more":"+{count} more","calendar.viewDetails":"View Details","date.selectDate":"Pick a date","time.selectTime":"Select time","time.hours":"Hours","time.minutes":"Minutes","time.period":"Period","status.active":"Active","status.inactive":"Inactive","status.pending":"Pending","status.completed":"Completed","status.cancelled":"Cancelled"},"tr-TR":{"common.save":"Kaydet","common.cancel":"İptal","common.delete":"Sil","common.edit":"Düzenle","common.create":"Oluştur","common.search":"Ara","common.filter":"Filtrele","common.export":"Dışa Aktar","common.import":"İçe Aktar","common.loading":"Yükleniyor...","common.noData":"Veri bulunamadı","common.confirm":"Onayla","common.close":"Kapat","common.yes":"Evet","common.no":"Hayır","common.all":"Tümü","common.none":"Hiçbiri","common.select":"Seç","common.selectAll":"Tümünü seç","common.clearAll":"Tümünü temizle","common.apply":"Uygula","common.reset":"Sıfırla","common.more":"Daha fazla","common.less":"Daha az","common.viewAll":"Tümünü gör","common.showMore":"Daha fazla göster","common.showLess":"Daha az göster","common.total":"Toplam","common.items":"Öğeler","table.rowsPerPage":"Sayfa başına satır","table.of":"/","table.page":"Sayfa","table.noResults":"Sonuç bulunamadı","table.columns":"Sütunlar","form.required":"Bu alan zorunludur","form.invalidEmail":"Geçersiz e-posta adresi","form.invalidPhone":"Geçersiz telefon numarası","form.minLength":"En az {min} karakter gerekli","form.maxLength":"En fazla {max} karakter girilebilir","date.today":"Bugün","date.yesterday":"Dün","date.tomorrow":"Yarın","date.thisWeek":"Bu hafta","date.lastWeek":"Geçen hafta","date.thisMonth":"Bu ay","date.lastMonth":"Geçen ay","notifications.success":"Başarılı","notifications.error":"Hata","notifications.warning":"Uyarı","notifications.info":"Bilgi","deal.probability":"Olasılık","deal.value":"Değer","deal.stage":"Aşama","deal.closeDate":"Kapanış Tarihi","pipeline.moveTo":"Taşı","pipeline.stages":"Aşamalar","locale.selectLanguage":"Dil seçin","locale.selectCurrency":"Para birimi seçin","calendar.today":"Bugün","calendar.month":"Ay","calendar.week":"Hafta","calendar.day":"Gün","calendar.agenda":"Ajanda","calendar.allDay":"Tüm gün","calendar.noEvents":"Bu ay için planlanmış etkinlik yok","calendar.more":"+{count} daha","calendar.viewDetails":"Detayları Gör","date.selectDate":"Tarih seçin","time.selectTime":"Saat seçin","time.hours":"Saat","time.minutes":"Dakika","time.period":"Dönem","status.active":"Aktif","status.inactive":"Pasif","status.pending":"Beklemede","status.completed":"Tamamlandı","status.cancelled":"İptal Edildi"},"de-DE":{"common.save":"Speichern","common.cancel":"Abbrechen","common.delete":"Löschen","common.edit":"Bearbeiten","common.create":"Erstellen","common.search":"Suchen","common.filter":"Filtern","common.loading":"Laden...","common.noData":"Keine Daten verfügbar","common.confirm":"Bestätigen","common.close":"Schließen","common.yes":"Ja","common.no":"Nein","common.total":"Gesamt","common.items":"Elemente","locale.selectLanguage":"Sprache wählen","locale.selectCurrency":"Währung wählen","calendar.today":"Heute","calendar.month":"Monat","calendar.week":"Woche","calendar.day":"Tag","calendar.agenda":"Agenda","calendar.allDay":"Ganztägig","calendar.noEvents":"Keine Termine für diesen Monat","date.selectDate":"Datum auswählen","time.selectTime":"Zeit auswählen","time.hours":"Stunden","time.minutes":"Minuten","time.period":"Zeitraum"},"fr-FR":{"common.save":"Enregistrer","common.cancel":"Annuler","common.delete":"Supprimer","common.edit":"Modifier","common.create":"Créer","common.search":"Rechercher","common.filter":"Filtrer","common.loading":"Chargement...","common.noData":"Aucune donnée disponible","common.confirm":"Confirmer","common.close":"Fermer","common.yes":"Oui","common.no":"Non","common.total":"Total","common.items":"Éléments","locale.selectLanguage":"Sélectionner la langue","locale.selectCurrency":"Sélectionner la devise","calendar.today":"Aujourd'hui","calendar.month":"Mois","calendar.week":"Semaine","calendar.day":"Jour","calendar.agenda":"Agenda","calendar.allDay":"Toute la journée","calendar.noEvents":"Aucun événement prévu ce mois-ci","date.selectDate":"Choisir une date","time.selectTime":"Sélectionner l'heure","time.hours":"Heures","time.minutes":"Minutes","time.period":"Période"},"es-ES":{"common.save":"Guardar","common.cancel":"Cancelar","common.delete":"Eliminar","common.edit":"Editar","common.create":"Crear","common.search":"Buscar","common.filter":"Filtrar","common.loading":"Cargando...","common.noData":"No hay datos disponibles","common.confirm":"Confirmar","common.close":"Cerrar","common.yes":"Sí","common.no":"No","common.total":"Total","common.items":"Elementos","locale.selectLanguage":"Seleccionar idioma","locale.selectCurrency":"Seleccionar moneda","calendar.today":"Hoy","calendar.month":"Mes","calendar.week":"Semana","calendar.day":"Día","calendar.agenda":"Agenda","calendar.allDay":"Todo el día","calendar.noEvents":"No hay eventos programados este mes","date.selectDate":"Seleccionar fecha","time.selectTime":"Seleccionar hora","time.hours":"Horas","time.minutes":"Minutos","time.period":"Período"},"it-IT":{"common.save":"Salva","common.cancel":"Annulla","common.delete":"Elimina","common.edit":"Modifica","common.create":"Crea","common.search":"Cerca","common.loading":"Caricamento...","common.total":"Totale","common.items":"Elementi","locale.selectLanguage":"Seleziona lingua","locale.selectCurrency":"Seleziona valuta","calendar.today":"Oggi","calendar.month":"Mese","calendar.week":"Settimana","calendar.day":"Giorno","calendar.agenda":"Agenda","calendar.allDay":"Tutto il giorno","date.selectDate":"Seleziona data","time.selectTime":"Seleziona ora","time.hours":"Ore","time.minutes":"Minuti","time.period":"Periodo"},"pt-BR":{"common.save":"Salvar","common.cancel":"Cancelar","common.delete":"Excluir","common.edit":"Editar","common.create":"Criar","common.search":"Pesquisar","common.loading":"Carregando...","common.total":"Total","common.items":"Itens","locale.selectLanguage":"Selecionar idioma","locale.selectCurrency":"Selecionar moeda","calendar.today":"Hoje","calendar.month":"Mês","calendar.week":"Semana","calendar.day":"Dia","calendar.agenda":"Agenda","calendar.allDay":"Dia inteiro","date.selectDate":"Selecionar data","time.selectTime":"Selecionar hora","time.hours":"Horas","time.minutes":"Minutos","time.period":"Período"},"nl-NL":{"common.save":"Opslaan","common.cancel":"Annuleren","common.delete":"Verwijderen","common.edit":"Bewerken","common.create":"Maken","common.search":"Zoeken","common.loading":"Laden...","common.total":"Totaal","common.items":"Items","locale.selectLanguage":"Taal selecteren","locale.selectCurrency":"Valuta selecteren","calendar.today":"Vandaag","calendar.month":"Maand","calendar.week":"Week","calendar.day":"Dag","calendar.agenda":"Agenda","calendar.allDay":"Hele dag","date.selectDate":"Datum kiezen","time.selectTime":"Tijd selecteren","time.hours":"Uren","time.minutes":"Minuten","time.period":"Periode"},"pl-PL":{"common.save":"Zapisz","common.cancel":"Anuluj","common.delete":"Usuń","common.edit":"Edytuj","common.create":"Utwórz","common.search":"Szukaj","common.loading":"Ładowanie...","common.total":"Suma","common.items":"Elementy","locale.selectLanguage":"Wybierz język","locale.selectCurrency":"Wybierz walutę","calendar.today":"Dziś","calendar.month":"Miesiąc","calendar.week":"Tydzień","calendar.day":"Dzień","calendar.agenda":"Agenda","calendar.allDay":"Cały dzień","date.selectDate":"Wybierz datę","time.selectTime":"Wybierz czas","time.hours":"Godziny","time.minutes":"Minuty","time.period":"Okres"},"ru-RU":{"common.save":"Сохранить","common.cancel":"Отмена","common.delete":"Удалить","common.edit":"Редактировать","common.create":"Создать","common.search":"Поиск","common.loading":"Загрузка...","common.total":"Всего","common.items":"Элементы","locale.selectLanguage":"Выбрать язык","locale.selectCurrency":"Выбрать валюту","calendar.today":"Сегодня","calendar.month":"Месяц","calendar.week":"Неделя","calendar.day":"День","calendar.agenda":"Повестка","calendar.allDay":"Весь день","date.selectDate":"Выберите дату","time.selectTime":"Выберите время","time.hours":"Часы","time.minutes":"Минуты","time.period":"Период"},"ja-JP":{"common.save":"保存","common.cancel":"キャンセル","common.delete":"削除","common.edit":"編集","common.create":"作成","common.search":"検索","common.loading":"読み込み中...","common.total":"合計","common.items":"アイテム","locale.selectLanguage":"言語を選択","locale.selectCurrency":"通貨を選択","calendar.today":"今日","calendar.month":"月","calendar.week":"週","calendar.day":"日","calendar.agenda":"予定表","calendar.allDay":"終日","date.selectDate":"日付を選択","time.selectTime":"時刻を選択","time.hours":"時","time.minutes":"分","time.period":"時間帯"},"zh-CN":{"common.save":"保存","common.cancel":"取消","common.delete":"删除","common.edit":"编辑","common.create":"创建","common.search":"搜索","common.loading":"加载中...","common.total":"总计","common.items":"项目","locale.selectLanguage":"选择语言","locale.selectCurrency":"选择货币","calendar.today":"今天","calendar.month":"月","calendar.week":"周","calendar.day":"日","calendar.agenda":"日程","calendar.allDay":"全天","date.selectDate":"选择日期","time.selectTime":"选择时间","time.hours":"小时","time.minutes":"分钟","time.period":"时段"},"ko-KR":{"common.save":"저장","common.cancel":"취소","common.delete":"삭제","common.edit":"편집","common.create":"만들기","common.search":"검색","common.loading":"로딩 중...","common.total":"합계","common.items":"항목","locale.selectLanguage":"언어 선택","locale.selectCurrency":"통화 선택","calendar.today":"오늘","calendar.month":"월","calendar.week":"주","calendar.day":"일","calendar.agenda":"일정","calendar.allDay":"종일","date.selectDate":"날짜 선택","time.selectTime":"시간 선택","time.hours":"시","time.minutes":"분","time.period":"오전/오후"},"ar-SA":{"common.save":"حفظ","common.cancel":"إلغاء","common.delete":"حذف","common.edit":"تعديل","common.create":"إنشاء","common.search":"بحث","common.loading":"جاري التحميل...","common.total":"المجموع","common.items":"العناصر","locale.selectLanguage":"اختر اللغة","locale.selectCurrency":"اختر العملة","calendar.today":"اليوم","calendar.month":"شهر","calendar.week":"أسبوع","calendar.day":"يوم","calendar.agenda":"جدول الأعمال","calendar.allDay":"طوال اليوم","date.selectDate":"اختر التاريخ","time.selectTime":"اختر الوقت","time.hours":"ساعات","time.minutes":"دقائق","time.period":"الفترة"},"en-GB":{"common.save":"Save","common.cancel":"Cancel","common.delete":"Delete","common.edit":"Edit","common.create":"Create","common.search":"Search","common.loading":"Loading...","common.total":"Total","common.items":"Items","locale.selectLanguage":"Select language","locale.selectCurrency":"Select currency","calendar.today":"Today","calendar.month":"Month","calendar.week":"Week","calendar.day":"Day","calendar.agenda":"Agenda","calendar.allDay":"All day","date.selectDate":"Pick a date","time.selectTime":"Select time","time.hours":"Hours","time.minutes":"Minutes","time.period":"Period"}},Y={"en-US":{decimal:".",thousand:","},"en-GB":{decimal:".",thousand:","},"tr-TR":{decimal:",",thousand:"."},"de-DE":{decimal:",",thousand:"."},"fr-FR":{decimal:",",thousand:" "},"es-ES":{decimal:",",thousand:"."},"it-IT":{decimal:",",thousand:"."},"pt-BR":{decimal:",",thousand:"."},"nl-NL":{decimal:",",thousand:"."},"pl-PL":{decimal:",",thousand:" "},"ru-RU":{decimal:",",thousand:" "},"ja-JP":{decimal:".",thousand:","},"zh-CN":{decimal:".",thousand:","},"ko-KR":{decimal:".",thousand:","},"ar-SA":{decimal:".",thousand:","}};function l(e){const m=h[e],r=f[m.defaultCurrency];return{locale:e,currency:m.defaultCurrency,currencySymbol:r?.symbol||"$",dateFormat:n.short[e],timeFormat:t.short[e],numberFormat:Y[e],translations:S[e]||S["en-US"],rtl:m.rtl}}const g={"en-US":l("en-US"),"en-GB":l("en-GB"),"tr-TR":l("tr-TR"),"de-DE":l("de-DE"),"fr-FR":l("fr-FR"),"es-ES":l("es-ES"),"it-IT":l("it-IT"),"pt-BR":l("pt-BR"),"nl-NL":l("nl-NL"),"pl-PL":l("pl-PL"),"ru-RU":l("ru-RU"),"ja-JP":l("ja-JP"),"zh-CN":l("zh-CN"),"ko-KR":l("ko-KR"),"ar-SA":l("ar-SA")},R=i.createContext(void 0);function Z({children:e,defaultLocale:m="en-US",config:r,translations:y}){const[c,u]=i.useState(()=>{const a=g[m]||g["en-US"];return{...a,...r,translations:{...a.translations,...y}}}),C=i.useCallback(a=>{const o=g[a]||g["en-US"];u(s=>({...o,translations:{...o.translations,...s.translations}}))},[]),D=i.useCallback(a=>{const o=f[a];o&&u(s=>({...s,currency:a,currencySymbol:o.symbol}))},[]),H=i.useCallback(a=>{u(o=>({...o,dateFormat:a}))},[]),T=i.useCallback(a=>{u(o=>({...o,timeFormat:a}))},[]),v=i.useCallback(a=>{u(o=>({...o,translations:{...o.translations,...a}}))},[]),L=i.useCallback(a=>{u(o=>({...o,...a,translations:{...o.translations,...a.translations}}))},[]),p=i.useCallback(a=>{const{decimal:o,thousand:s}=c.numberFormat,d=a.toFixed(2).split(".");return d[0]=d[0].replace(/\B(?=(\d{3})+(?!\d))/g,s),d.join(o)},[c.numberFormat]),P=i.useCallback((a,o)=>{const s=o||c.currency,d=f[s];if(!d)return p(a);const b=d.decimals??2,{decimal:A,thousand:U}=c.numberFormat,M=a.toFixed(b).split(".");M[0]=M[0].replace(/\B(?=(\d{3})+(?!\d))/g,U);const k=b>0?M.join(A):M[0];return d.position==="before"?`${d.symbol}${k}`:`${k} ${d.symbol}`},[c.currency,c.numberFormat,p]),N=i.useCallback((a,o)=>{let s=c.translations[a]||a;return o&&Object.entries(o).forEach(([d,b])=>{s=s.replace(`{${d}}`,String(b))}),s},[c.translations]),E=i.useMemo(()=>({config:c,setLocale:C,setCurrency:D,setDateFormat:H,setTimeFormat:T,updateTranslations:v,updateConfig:L,formatNumber:p,formatCurrency:P,t:N}),[c,C,D,H,T,v,L,p,P,N]);return B.jsx(R.Provider,{value:E,children:e})}function V(){const e=i.useContext(R);return e===void 0?{config:g["en-US"],setLocale:()=>{},setCurrency:()=>{},setDateFormat:()=>{},setTimeFormat:()=>{},updateTranslations:()=>{},updateConfig:()=>{},formatNumber:r=>r.toLocaleString("en-US"),formatCurrency:r=>`$${r.toLocaleString("en-US",{minimumFractionDigits:2})}`,t:r=>r}:e}exports.LocaleContext=R;exports.LocaleProvider=Z;exports.currencies=f;exports.dateFormats=n;exports.defaultLocaleConfigs=g;exports.defaultTranslations=S;exports.formatCurrency=J;exports.getAllCurrencies=x;exports.getAllLocales=G;exports.getCurrency=F;exports.getCurrencyCodes=W;exports.getDateFormat=z;exports.getLocaleInfo=j;exports.getSupportedLocaleCodes=O;exports.getTimeFormat=I;exports.isRTLLocale=$;exports.locales=h;exports.timeFormats=t;exports.useLocale=V;
|
|
2
|
-
//# sourceMappingURL=locale-provider-DHMwuneF.cjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),P=require("react"),S=require("./scroll-area-DYOiJMXh.cjs"),k=require("./index-lGzB9daF.cjs"),T=require("./calendar-BUm7YrNf.cjs"),p=require("./popover-ivh-plLc.cjs"),z=require("./use-formatters-d97RVcmg.cjs"),ue=require("./calendar-SwL5isYC.cjs"),O=require("./input-CZrckPLk.cjs"),me=require("./index-CzVK9Zyb.cjs"),W=require("./createLucideIcon-i5GEhNMV.cjs"),Oe=require("./file-V_hhCUhr.cjs"),re=require("./chevron-up-B9fuiZhc.cjs"),X=require("./chevron-down-DHdXqOqK.cjs"),Be=require("./minus-BXBFZSZs.cjs"),Ee=require("./plus-8wKRkVu-.cjs"),J=require("./avatar-C0aVNCG9.cjs"),Te=require("./chevron-right-Dvyd11q0.cjs"),U=require("./locale-provider-DHMwuneF.cjs");function Ue(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return n.default=t,Object.freeze(n)}const N=Ue(P);const Z=W.createLucideIcon("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);const He=W.createLucideIcon("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);const $e=W.createLucideIcon("Pipette",[["path",{d:"m2 22 1-1h3l9-9",key:"1sre89"}],["path",{d:"M3 21v-3l9-9",key:"hpe2y6"}],["path",{d:"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z",key:"196du1"}]]);const ze=W.createLucideIcon("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var qe=t=>t.type==="checkbox",$=t=>t instanceof Date,ee=t=>t==null;const fe=t=>typeof t=="object";var H=t=>!ee(t)&&!Array.isArray(t)&&fe(t)&&!$(t),Ge=t=>H(t)&&t.target?qe(t.target)?t.target.checked:t.target.value:t,Ke=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Xe=(t,n)=>t.has(Ke(n)),We=t=>{const n=t.constructor&&t.constructor.prototype;return H(n)&&n.hasOwnProperty("isPrototypeOf")},Je=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function he(t){if(t instanceof Date)return new Date(t);const n=typeof FileList<"u"&&t instanceof FileList;if(Je&&(t instanceof Blob||n))return t;const s=Array.isArray(t);if(!s&&!(H(t)&&We(t)))return t;const r=s?[]:Object.create(Object.getPrototypeOf(t));for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=he(t[a]));return r}var pe=t=>/^\w*$/.test(t),Q=t=>t===void 0,Ye=t=>Array.isArray(t)?t.filter(Boolean):[],xe=t=>Ye(t.replace(/["|']|\]/g,"").split(/\.|\[/)),_=(t,n,s)=>{if(!n||!H(t))return s;const r=(pe(n)?[n]:xe(n)).reduce((a,c)=>ee(a)?a:a[c],t);return Q(r)||r===t?Q(t[n])?s:t[n]:r},Y=t=>typeof t=="boolean",G=t=>typeof t=="function",ae=(t,n,s)=>{let r=-1;const a=pe(n)?[n]:xe(n),c=a.length,d=c-1;for(;++r<c;){const u=a[r];let y=s;if(r!==d){const g=t[u];y=H(g)||Array.isArray(g)?g:isNaN(+a[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;t[u]=y,t=t[u]}};const oe={BLUR:"blur",CHANGE:"change"},le={all:"all"},te=P.createContext(null);te.displayName="HookFormControlContext";const se=()=>P.useContext(te);var Qe=(t,n,s,r=!0)=>{const a={defaultValues:n._defaultValues};for(const c in t)Object.defineProperty(a,c,{get:()=>{const d=c;return n._proxyFormState[d]!==le.all&&(n._proxyFormState[d]=!r||le.all),s&&(s[d]=!0),t[d]}});return a};const ge=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Ze(t){const n=se(),{control:s=n,disabled:r,name:a,exact:c}=t||{},[d,u]=P.useState(s._formState),y=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ge(()=>s._subscribe({name:a,formState:y.current,exact:c,callback:g=>{!r&&u({...s._formState,...g})}}),[a,r,c]),P.useEffect(()=>{y.current.isValid&&s._setValid(!0)},[s]),P.useMemo(()=>Qe(d,s,y.current,!1),[d,s])}var et=t=>typeof t=="string",ce=(t,n,s,r,a)=>et(t)?_(s,t,a):Array.isArray(t)?t.map(c=>_(s,c)):s,ie=t=>ee(t)||!fe(t);function K(t,n,s=new WeakSet){if(ie(t)||ie(n))return Object.is(t,n);if($(t)&&$(n))return Object.is(t.getTime(),n.getTime());const r=Object.keys(t),a=Object.keys(n);if(r.length!==a.length)return!1;if(s.has(t)||s.has(n))return!0;s.add(t),s.add(n);for(const c of r){const d=t[c];if(!a.includes(c))return!1;if(c!=="ref"){const u=n[c];if($(d)&&$(u)||H(d)&&H(u)||Array.isArray(d)&&Array.isArray(u)?!K(d,u,s):!Object.is(d,u))return!1}}return!0}function tt(t){const n=se(),{control:s=n,name:r,defaultValue:a,disabled:c,exact:d,compute:u}=t||{},y=P.useRef(a),g=P.useRef(u),v=P.useRef(void 0),h=P.useRef(s),i=P.useRef(r);g.current=u;const[x,m]=P.useState(()=>{const o=s._getWatch(r,y.current);return g.current?g.current(o):o}),f=P.useCallback(o=>{const w=ce(r,s._names,o||s._formValues,!1,y.current);return g.current?g.current(w):w},[s._formValues,s._names,r]),j=P.useCallback(o=>{if(!c){const w=ce(r,s._names,o||s._formValues,!1,y.current);if(g.current){const M=g.current(w);K(M,v.current)||(m(M),v.current=M)}else m(w)}},[s._formValues,s._names,c,r]);ge(()=>((h.current!==s||!K(i.current,r))&&(h.current=s,i.current=r,j()),s._subscribe({name:r,formState:{values:!0},exact:d,callback:o=>{j(o.values)}})),[s,d,r,j]),P.useEffect(()=>s._removeUnmounted());const C=h.current!==s,l=i.current,F=P.useMemo(()=>{if(c)return null;const o=!C&&!K(l,r);return C||o?f():null},[c,C,r,l,f]);return F!==null?F:x}function st(t){const n=se(),{name:s,disabled:r,control:a=n,shouldUnregister:c,defaultValue:d,exact:u=!0}=t,y=Xe(a._names.array,s),g=P.useMemo(()=>_(a._formValues,s,_(a._defaultValues,s,d)),[a,s,d]),v=tt({control:a,name:s,defaultValue:g,exact:u}),h=Ze({control:a,name:s,exact:u}),i=P.useRef(t),x=P.useRef(void 0),m=P.useRef(a.register(s,{...t.rules,value:v,...Y(t.disabled)?{disabled:t.disabled}:{}}));i.current=t;const f=P.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!_(h.errors,s)},isDirty:{enumerable:!0,get:()=>!!_(h.dirtyFields,s)},isTouched:{enumerable:!0,get:()=>!!_(h.touchedFields,s)},isValidating:{enumerable:!0,get:()=>!!_(h.validatingFields,s)},error:{enumerable:!0,get:()=>_(h.errors,s)}}),[h,s]),j=P.useCallback(o=>m.current.onChange({target:{value:Ge(o),name:s},type:oe.CHANGE}),[s]),C=P.useCallback(()=>m.current.onBlur({target:{value:_(a._formValues,s),name:s},type:oe.BLUR}),[s,a._formValues]),l=P.useCallback(o=>{const w=_(a._fields,s);w&&w._f&&o&&(w._f.ref={focus:()=>G(o.focus)&&o.focus(),select:()=>G(o.select)&&o.select(),setCustomValidity:M=>G(o.setCustomValidity)&&o.setCustomValidity(M),reportValidity:()=>G(o.reportValidity)&&o.reportValidity()})},[a._fields,s]),F=P.useMemo(()=>({name:s,value:v,...Y(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:j,onBlur:C,ref:l}),[s,r,h.disabled,j,C,l,v]);return P.useEffect(()=>{const o=a._options.shouldUnregister||c,w=x.current;w&&w!==s&&!y&&a.unregister(w),a.register(s,{...i.current.rules,...Y(i.current.disabled)?{disabled:i.current.disabled}:{}});const M=(L,A)=>{const D=_(a._fields,L);D&&D._f&&(D._f.mount=A)};if(M(s,!0),o){const L=he(_(a._options.defaultValues,s,i.current.defaultValue));ae(a._defaultValues,s,L),Q(_(a._formValues,s))&&ae(a._formValues,s,L)}return!y&&a.register(s),x.current=s,()=>{(y?o&&!a._state.action:o)?a.unregister(s):M(s,!1)}},[s,a,y,c]),P.useEffect(()=>{a._setDisabledField({disabled:r,name:s})},[r,s,a]),P.useMemo(()=>({field:F,formState:h,fieldState:f}),[F,h,f])}const nt=t=>t.render(st(t)),ne=P.createContext(null);ne.displayName="HookFormContext";const rt=()=>P.useContext(ne),at=t=>{const{children:n,watch:s,getValues:r,getFieldState:a,setError:c,clearErrors:d,setValue:u,trigger:y,formState:g,resetField:v,reset:h,handleSubmit:i,unregister:x,control:m,register:f,setFocus:j,subscribe:C}=t;return P.createElement(ne.Provider,{value:P.useMemo(()=>({watch:s,getValues:r,getFieldState:a,setError:c,clearErrors:d,setValue:u,trigger:y,formState:g,resetField:v,reset:h,handleSubmit:i,unregister:x,control:m,register:f,setFocus:j,subscribe:C}),[d,m,g,a,r,i,f,h,v,c,j,u,C,y,x,s])},P.createElement(te.Provider,{value:m},n))},ot=at,je=N.createContext({}),lt=({...t})=>e.jsx(je.Provider,{value:{name:t.name},children:e.jsx(nt,{...t})}),q=()=>{const t=N.useContext(je),n=N.useContext(Ne),{getFieldState:s,formState:r}=rt(),a=s(t.name,r);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:c}=n;return{id:c,name:t.name,formItemId:`${c}-form-item`,formDescriptionId:`${c}-form-item-description`,formMessageId:`${c}-form-item-message`,...a}},Ne=N.createContext({}),ye=N.forwardRef(({className:t,...n},s)=>{const r=N.useId();return e.jsx(Ne.Provider,{value:{id:r},children:e.jsx("div",{ref:s,className:k.cn("space-y-2",t),...n})})});ye.displayName="FormItem";const Ce=N.forwardRef(({className:t,...n},s)=>{const{error:r,formItemId:a}=q();return e.jsx(T.Label,{ref:s,className:k.cn(r&&"text-destructive",t),htmlFor:a,...n})});Ce.displayName="FormLabel";const be=N.forwardRef(({...t},n)=>{const{error:s,formItemId:r,formDescriptionId:a,formMessageId:c}=q();return e.jsx(S.Slot,{ref:n,id:r,"aria-describedby":s?`${a} ${c}`:`${a}`,"aria-invalid":!!s,...t})});be.displayName="FormControl";const ve=N.forwardRef(({className:t,...n},s)=>{const{formDescriptionId:r}=q();return e.jsx("p",{ref:s,id:r,className:k.cn("text-sm text-muted-foreground",t),...n})});ve.displayName="FormDescription";const we=N.forwardRef(({className:t,children:n,...s},r)=>{const{error:a,formMessageId:c}=q(),d=a?String(a?.message):n;return d?e.jsx("p",{ref:r,id:c,className:k.cn("text-sm font-medium text-destructive",t),...s,children:d}):null});we.displayName="FormMessage";function ct({value:t,onChange:n,placeholder:s,disabled:r=!1,className:a,dateFormat:c="PPP"}){const{t:d,formatDate:u}=z.useFormatters(),y=s||d("date.selectDate");return e.jsxs(p.Popover,{children:[e.jsx(p.PopoverTrigger,{asChild:!0,children:e.jsxs(S.Button,{variant:"outline",disabled:r,className:k.cn("w-full justify-start text-left font-normal",!t&&"text-muted-foreground",a),children:[e.jsx(ue.Calendar,{className:"mr-2 h-4 w-4"}),t?u(t,c):e.jsx("span",{children:y})]})}),e.jsx(p.PopoverContent,{className:"w-auto p-0",align:"start",children:e.jsx(T.Calendar,{mode:"single",selected:t,onSelect:n,initialFocus:!0})})]})}const Se=N.forwardRef(({value:t,onChange:n,placeholder:s="Pick a date range",disabled:r=!1,className:a,dateFormat:c="LLL dd, y",numberOfMonths:d=2},u)=>e.jsx("div",{className:k.cn("grid gap-2",a),children:e.jsxs(p.Popover,{children:[e.jsx(p.PopoverTrigger,{asChild:!0,children:e.jsxs(S.Button,{ref:u,id:"date",variant:"outline",disabled:r,className:k.cn("w-full justify-start text-left font-normal",!t&&"text-muted-foreground"),children:[e.jsx(ue.Calendar,{className:"mr-2 h-4 w-4"}),t?.from?t.to?e.jsxs(e.Fragment,{children:[z.format(t.from,c)," - ",z.format(t.to,c)]}):z.format(t.from,c):e.jsx("span",{children:s})]})}),e.jsx(p.PopoverContent,{className:"w-auto p-0",align:"start",children:e.jsx(T.Calendar,{initialFocus:!0,mode:"range",defaultMonth:t?.from,selected:t,onSelect:n,numberOfMonths:d})})]})}));Se.displayName="DateRangePicker";const ke=N.forwardRef(({className:t,value:n,onChange:s,onSearch:r,onClear:a,showClearButton:c=!0,loading:d=!1,placeholder:u="Search...",...y},g)=>{const v=x=>{s?.(x.target.value)},h=()=>{s?.(""),a?.()},i=x=>{x.key==="Enter"&&r?.(n||"")};return e.jsxs("div",{className:k.cn("relative",t),children:[e.jsx(me.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(O.Input,{ref:g,type:"text",value:n,onChange:v,onKeyDown:i,placeholder:u,className:k.cn("pl-9",c&&n&&"pr-9"),...y}),c&&n&&!d&&e.jsxs(S.Button,{type:"button",variant:"ghost",size:"icon",className:"absolute right-1 top-1/2 h-7 w-7 -translate-y-1/2",onClick:h,children:[e.jsx(S.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Clear"})]}),d&&e.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:e.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-muted-foreground border-t-transparent"})})]})});ke.displayName="SearchInput";const Pe=N.forwardRef(({value:t=[],onChange:n,accept:s,multiple:r=!1,maxFiles:a=10,maxSize:c=10*1024*1024,disabled:d=!1,className:u},y)=>{const g=N.useRef(null),[v,h]=N.useState(!1),i=l=>{if(!l)return;const o=Array.from(l).filter(M=>!(M.size>c)),w=r?[...t,...o].slice(0,a):o.slice(0,1);n?.(w)},x=l=>{l.preventDefault(),l.stopPropagation(),l.type==="dragenter"||l.type==="dragover"?h(!0):l.type==="dragleave"&&h(!1)},m=l=>{l.preventDefault(),l.stopPropagation(),h(!1),d||i(l.dataTransfer.files)},f=l=>{i(l.target.files)},j=l=>{const F=t.filter((o,w)=>w!==l);n?.(F)},C=l=>{if(l===0)return"0 Bytes";const F=1024,o=["Bytes","KB","MB","GB"],w=Math.floor(Math.log(l)/Math.log(F));return parseFloat((l/Math.pow(F,w)).toFixed(2))+" "+o[w]};return e.jsxs("div",{ref:y,className:k.cn("space-y-4",u),children:[e.jsxs("div",{className:k.cn("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed p-6 transition-colors",v?"border-primary bg-primary/5":"border-muted-foreground/25",d&&"cursor-not-allowed opacity-50"),onDragEnter:x,onDragLeave:x,onDragOver:x,onDrop:m,children:[e.jsx("input",{ref:g,type:"file",accept:s,multiple:r,disabled:d,onChange:f,className:"absolute inset-0 cursor-pointer opacity-0"}),e.jsx(ze,{className:"mb-2 h-10 w-10 text-muted-foreground"}),e.jsx("p",{className:"mb-1 text-sm font-medium",children:"Drag & drop files here, or click to select"}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[r?`Up to ${a} files`:"Single file"," (max"," ",C(c)," each)"]})]}),t.length>0&&e.jsx("div",{className:"space-y-2",children:t.map((l,F)=>e.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Oe.File,{className:"h-8 w-8 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:l.name}),e.jsx("p",{className:"text-xs text-muted-foreground",children:C(l.size)})]})]}),e.jsx(S.Button,{type:"button",variant:"ghost",size:"icon",onClick:()=>j(F),disabled:d,children:e.jsx(S.X,{className:"h-4 w-4"})})]},`${l.name}-${F}`))})]})});Pe.displayName="FileUpload";const Fe=N.forwardRef(({options:t,value:n,onChange:s,placeholder:r="Select option...",searchPlaceholder:a="Search...",emptyMessage:c="No results found.",disabled:d=!1,className:u},y)=>{const[g,v]=N.useState(!1),h=t.find(i=>i.value===n);return e.jsxs(p.Popover,{open:g,onOpenChange:v,children:[e.jsx(p.PopoverTrigger,{asChild:!0,children:e.jsxs(S.Button,{ref:y,variant:"outline",role:"combobox","aria-expanded":g,disabled:d,className:k.cn("w-full justify-between",!n&&"text-muted-foreground",u),children:[h?h.label:r,e.jsx(Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(p.PopoverContent,{className:"w-full p-0",align:"start",children:e.jsxs(p.Command,{children:[e.jsx(p.CommandInput,{placeholder:a}),e.jsxs(p.CommandList,{children:[e.jsx(p.CommandEmpty,{children:c}),e.jsx(p.CommandGroup,{children:t.map(i=>e.jsxs(p.CommandItem,{value:i.value,disabled:i.disabled,onSelect:x=>{s?.(x===n?"":x),v(!1)},children:[e.jsx(S.Check,{className:k.cn("mr-2 h-4 w-4",n===i.value?"opacity-100":"opacity-0")}),i.label]},i.value))})]})]})})]})});Fe.displayName="Combobox";const Ie=N.forwardRef(({value:t=[],onChange:n,placeholder:s="Add tag...",maxTags:r=10,allowDuplicates:a=!1,disabled:c=!1,className:d},u)=>{const[y,g]=N.useState(""),v=N.useRef(null),h=m=>{const f=m.trim();f&&(t.length>=r||!a&&t.includes(f)||(n?.([...t,f]),g("")))},i=m=>{const f=t.filter((j,C)=>C!==m);n?.(f)},x=m=>{m.key==="Enter"?(m.preventDefault(),h(y)):m.key==="Backspace"&&!y&&t.length>0?i(t.length-1):m.key===","&&(m.preventDefault(),h(y))};return e.jsxs("div",{ref:u,className:k.cn("flex min-h-10 w-full flex-wrap items-center gap-2 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",c&&"cursor-not-allowed opacity-50",d),onClick:()=>v.current?.focus(),children:[t.map((m,f)=>e.jsxs(S.Badge,{variant:"secondary",className:"gap-1",children:[m,!c&&e.jsx("button",{type:"button",onClick:j=>{j.stopPropagation(),i(f)},className:"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",children:e.jsx(S.X,{className:"h-3 w-3"})})]},`${m}-${f}`)),e.jsx(O.Input,{ref:v,type:"text",value:y,onChange:m=>g(m.target.value),onKeyDown:x,placeholder:t.length===0?s:"",disabled:c||t.length>=r,className:"flex-1 border-0 bg-transparent p-0 placeholder:text-muted-foreground focus-visible:ring-0 focus-visible:ring-offset-0"})]})});Ie.displayName="TagInput";const De=N.forwardRef(({value:t,onChange:n,format:s="24h",minuteStep:r=1,placeholder:a,disabled:c=!1,className:d,error:u},y)=>{const{t:g}=z.useFormatters(),[v,h]=N.useState(!1),[i,x]=N.useState(0),[m,f]=N.useState(0),[j,C]=N.useState("AM");N.useEffect(()=>{if(t){const[R,b]=t.split(":").map(Number);s==="12h"?(x(R>12?R-12:R===0?12:R),C(R>=12?"PM":"AM")):x(R),f(b)}},[t,s]);const l=(R,b,I)=>{let V=R;if(s==="12h"){const E=I??j;E==="PM"&&V!==12&&(V+=12),E==="AM"&&V===12&&(V=0)}const B=`${V.toString().padStart(2,"0")}:${b.toString().padStart(2,"0")}`;n?.(B)},F=()=>{const R=s==="12h"?12:23,b=s==="12h"?1:0,I=i>=R?b:i+1;x(I),l(I,m)},o=()=>{const R=s==="12h"?12:23,I=i<=(s==="12h"?1:0)?R:i-1;x(I),l(I,m)},w=()=>{const R=m>=60-r,b=R?0:m+r;let I=i,V=j;if(R){const B=s==="12h"?12:23,E=s==="12h"?1:0;I=i>=B?E:i+1,s==="12h"&&i===11&&(V=j==="AM"?"PM":"AM",C(V)),x(I)}f(b),l(I,b,s==="12h"?V:void 0)},M=()=>{const R=m<r,b=R?60-r:m-r;let I=i,V=j;if(R){const B=s==="12h"?12:23;I=i<=(s==="12h"?1:0)?B:i-1,s==="12h"&&i===12&&(V=j==="AM"?"PM":"AM",C(V)),x(I)}f(b),l(I,b,s==="12h"?V:void 0)},L=()=>{const R=j==="AM"?"PM":"AM";C(R),l(i,m,R)},A=N.useMemo(()=>t?s==="12h"?`${i.toString().padStart(2,"0")}:${m.toString().padStart(2,"0")} ${j}`:`${i.toString().padStart(2,"0")}:${m.toString().padStart(2,"0")}`:"",[t,s,i,m,j]),D=a||g("time.selectTime");return e.jsxs(p.Popover,{open:v,onOpenChange:h,children:[e.jsx(p.PopoverTrigger,{asChild:!0,children:e.jsxs("div",{className:k.cn("relative",d),children:[e.jsx(O.Input,{ref:y,readOnly:!0,value:A,placeholder:D,disabled:c,className:k.cn("pr-10 cursor-pointer",u&&"border-destructive"),onClick:()=>!c&&h(!0)}),e.jsx(T.Clock,{className:"absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"})]})}),e.jsx(p.PopoverContent,{className:"w-auto p-4",align:"start",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx(T.Label,{className:"text-xs text-muted-foreground",children:g("time.hours")}),e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx(S.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:F,children:e.jsx(re.ChevronUp,{className:"h-4 w-4"})}),e.jsx("span",{className:"text-2xl font-bold tabular-nums",children:i.toString().padStart(2,"0")}),e.jsx(S.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:o,children:e.jsx(X.ChevronDown,{className:"h-4 w-4"})})]})]}),e.jsx("span",{className:"text-2xl font-bold",children:":"}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx(T.Label,{className:"text-xs text-muted-foreground",children:g("time.minutes")}),e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx(S.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:w,children:e.jsx(re.ChevronUp,{className:"h-4 w-4"})}),e.jsx("span",{className:"text-2xl font-bold tabular-nums",children:m.toString().padStart(2,"0")}),e.jsx(S.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:M,children:e.jsx(X.ChevronDown,{className:"h-4 w-4"})})]})]}),s==="12h"&&e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx(T.Label,{className:"text-xs text-muted-foreground",children:g("time.period")}),e.jsx(S.Button,{variant:"outline",className:"h-auto px-3 py-2 text-lg font-bold",onClick:L,children:j})]})]})})]})});De.displayName="TimePicker";const it=["#000000","#ffffff","#ef4444","#f97316","#f59e0b","#eab308","#84cc16","#22c55e","#10b981","#14b8a6","#06b6d4","#0ea5e9","#3b82f6","#6366f1","#8b5cf6","#a855f7","#d946ef","#ec4899","#f43f5e","#78716c","#737373","#71717a","#6b7280","#64748b"],Re=N.forwardRef(({value:t="#000000",onChange:n,presetColors:s=it,showInput:r=!0,showEyeDropper:a=!0,placeholder:c="Select color",disabled:d=!1,className:u},y)=>{const[g,v]=N.useState(!1),[h,i]=N.useState(t),x=typeof window<"u"&&"EyeDropper"in window;N.useEffect(()=>{i(t)},[t]);const m=C=>{i(C),n?.(C)},f=C=>{const l=C.target.value;i(l),/^#[0-9A-Fa-f]{6}$/.test(l)&&n?.(l)},j=async()=>{if(x)try{const l=await new window.EyeDropper().open();m(l.sRGBHex)}catch{}};return e.jsxs(p.Popover,{open:g,onOpenChange:v,children:[e.jsx(p.PopoverTrigger,{asChild:!0,children:e.jsxs(S.Button,{ref:y,variant:"outline",disabled:d,className:k.cn("w-full justify-start gap-2",u),children:[e.jsx("div",{className:"h-5 w-5 rounded border",style:{backgroundColor:h}}),e.jsx("span",{className:"flex-1 text-left font-mono text-sm",children:h||c})]})}),e.jsx(p.PopoverContent,{className:"w-64 p-3",align:"start",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-10 w-10 rounded-lg border",style:{backgroundColor:h}}),e.jsxs("div",{className:"flex-1",children:[e.jsx(T.Label,{className:"text-xs text-muted-foreground",children:"Current Color"}),e.jsx("p",{className:"font-mono text-sm font-medium",children:h})]}),a&&x&&e.jsx(S.Button,{variant:"outline",size:"icon",onClick:j,title:"Pick color from screen",children:e.jsx($e,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"grid grid-cols-6 gap-1",children:s.map(C=>e.jsx("button",{className:k.cn("h-7 w-7 rounded-md border-2 transition-transform hover:scale-110",h.toLowerCase()===C.toLowerCase()?"border-primary":"border-transparent"),style:{backgroundColor:C},onClick:()=>m(C),title:C},C))}),r&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(O.Input,{type:"text",value:h,onChange:f,placeholder:"#000000",className:"font-mono",maxLength:7}),e.jsx("input",{type:"color",value:h,onChange:C=>m(C.target.value),className:"h-10 w-10 cursor-pointer rounded border bg-transparent p-1"})]})]})})]})});Re.displayName="ColorPicker";const Me=N.forwardRef(({options:t,value:n=[],onChange:s,placeholder:r="Select items...",searchPlaceholder:a="Search...",emptyMessage:c="No items found.",maxDisplayedItems:d=3,maxSelections:u,disabled:y=!1,className:g},v)=>{const[h,i]=N.useState(!1),x=t.filter(l=>n.includes(l.value)),m=u!==void 0&&n.length>=u,f=l=>{n.includes(l)?s?.(n.filter(F=>F!==l)):m||s?.([...n,l])},j=(l,F)=>{F.stopPropagation(),s?.(n.filter(o=>o!==l))},C=l=>{l.stopPropagation(),s?.([])};return e.jsxs(p.Popover,{open:h,onOpenChange:i,children:[e.jsx(p.PopoverTrigger,{asChild:!0,children:e.jsxs(S.Button,{ref:v,variant:"outline",role:"combobox","aria-expanded":h,disabled:y,className:k.cn("w-full justify-between font-normal",x.length===0&&"text-muted-foreground",g),children:[e.jsx("div",{className:"flex flex-1 flex-wrap items-center gap-1",children:x.length===0?r:x.length<=d?x.map(l=>e.jsxs(S.Badge,{variant:"secondary",className:"gap-1 pr-1",children:[l.label,e.jsx("button",{className:"rounded-full hover:bg-muted-foreground/20",onClick:F=>j(l.value,F),children:e.jsx(S.X,{className:"h-3 w-3"})})]},l.value)):e.jsxs(e.Fragment,{children:[x.slice(0,d).map(l=>e.jsxs(S.Badge,{variant:"secondary",className:"gap-1 pr-1",children:[l.label,e.jsx("button",{className:"rounded-full hover:bg-muted-foreground/20",onClick:F=>j(l.value,F),children:e.jsx(S.X,{className:"h-3 w-3"})})]},l.value)),e.jsxs(S.Badge,{variant:"secondary",children:["+",x.length-d]})]})}),e.jsxs("div",{className:"flex items-center gap-1",children:[x.length>0&&e.jsx("button",{className:"rounded p-0.5 hover:bg-muted",onClick:C,children:e.jsx(S.X,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(X.ChevronDown,{className:"h-4 w-4 shrink-0 opacity-50"})]})]})}),e.jsx(p.PopoverContent,{className:"w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:e.jsxs(p.Command,{children:[e.jsx(p.CommandInput,{placeholder:a}),e.jsxs(p.CommandList,{children:[e.jsx(p.CommandEmpty,{children:c}),e.jsx(p.CommandGroup,{children:t.map(l=>{const F=n.includes(l.value),o=l.disabled||m&&!F;return e.jsxs(p.CommandItem,{value:l.value,disabled:o,onSelect:()=>f(l.value),className:"flex items-center gap-2",children:[e.jsx("div",{className:k.cn("flex h-4 w-4 items-center justify-center rounded border",n.includes(l.value)?"border-primary bg-primary text-primary-foreground":"border-muted-foreground/30"),children:n.includes(l.value)&&e.jsx(S.Check,{className:"h-3 w-3"})}),l.icon&&e.jsx("span",{className:"h-4 w-4",children:l.icon}),e.jsx("span",{children:l.label})]},l.value)})})]})]})})]})});Me.displayName="MultiSelect";const dt=S.cva("relative flex",{variants:{size:{sm:"w-24",md:"w-32",lg:"w-40"}},defaultVariants:{size:"md"}}),de={sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},ut={sm:"h-8 text-sm",md:"h-10 text-base",lg:"h-12 text-lg"},Ve=N.forwardRef(({className:t,value:n,onChange:s,min:r,max:a,step:c=1,precision:d=0,showStepper:u=!0,prefix:y,suffix:g,disabled:v,size:h="md",...i},x)=>{const[m,f]=N.useState(n?.toString()??"");N.useEffect(()=>{f(n?.toString()??"")},[n]);const j=A=>{let D=A;return r!==void 0&&(D=Math.max(r,D)),a!==void 0&&(D=Math.min(a,D)),Number(D.toFixed(d))},C=A=>{const D=A.target.value;if(f(D),D===""||D==="-"){s?.(void 0);return}const R=parseFloat(D);isNaN(R)||s?.(j(R))},l=()=>{if(m===""||m==="-"){f(""),s?.(void 0);return}const A=parseFloat(m);if(!isNaN(A)){const D=j(A);f(D.toString()),s?.(D)}},F=()=>{const D=j((n??0)+c);f(D.toString()),s?.(D)},o=()=>{const D=j((n??0)-c);f(D.toString()),s?.(D)},w=a===void 0||(n??0)<a,M=r===void 0||(n??0)>r,L=h||"md";return e.jsxs("div",{className:k.cn(dt({size:h}),t),children:[u&&e.jsx(S.Button,{type:"button",variant:"outline",size:"icon",className:k.cn("rounded-r-none",de[L]),onClick:o,disabled:v||!M,children:e.jsx(Be.Minus,{className:k.cn(L==="sm"?"h-3 w-3":"h-4 w-4")})}),e.jsxs("div",{className:"relative flex-1",children:[y&&e.jsx("span",{className:k.cn("absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",L==="sm"&&"text-sm",L==="lg"&&"text-lg"),children:y}),e.jsx(O.Input,{ref:x,type:"text",inputMode:"decimal",value:m,onChange:C,onBlur:l,disabled:v,className:k.cn("text-center",ut[L],u&&"rounded-none border-x-0",y&&"pl-8",g&&"pr-8"),...i}),g&&e.jsx("span",{className:k.cn("absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",L==="sm"&&"text-sm",L==="lg"&&"text-lg"),children:g})]}),u&&e.jsx(S.Button,{type:"button",variant:"outline",size:"icon",className:k.cn("rounded-l-none",de[L]),onClick:F,disabled:v||!w,children:e.jsx(Ee.Plus,{className:k.cn(L==="sm"?"h-3 w-3":"h-4 w-4")})})]})});Ve.displayName="NumberInput";const Le=[{code:"US",dialCode:"+1",name:"United States",flag:"🇺🇸"},{code:"GB",dialCode:"+44",name:"United Kingdom",flag:"🇬🇧"},{code:"DE",dialCode:"+49",name:"Germany",flag:"🇩🇪"},{code:"FR",dialCode:"+33",name:"France",flag:"🇫🇷"},{code:"IT",dialCode:"+39",name:"Italy",flag:"🇮🇹"},{code:"ES",dialCode:"+34",name:"Spain",flag:"🇪🇸"},{code:"TR",dialCode:"+90",name:"Turkey",flag:"🇹🇷"},{code:"NL",dialCode:"+31",name:"Netherlands",flag:"🇳🇱"},{code:"BE",dialCode:"+32",name:"Belgium",flag:"🇧🇪"},{code:"AT",dialCode:"+43",name:"Austria",flag:"🇦🇹"},{code:"CH",dialCode:"+41",name:"Switzerland",flag:"🇨🇭"},{code:"PL",dialCode:"+48",name:"Poland",flag:"🇵🇱"},{code:"SE",dialCode:"+46",name:"Sweden",flag:"🇸🇪"},{code:"NO",dialCode:"+47",name:"Norway",flag:"🇳🇴"},{code:"DK",dialCode:"+45",name:"Denmark",flag:"🇩🇰"},{code:"FI",dialCode:"+358",name:"Finland",flag:"🇫🇮"},{code:"PT",dialCode:"+351",name:"Portugal",flag:"🇵🇹"},{code:"GR",dialCode:"+30",name:"Greece",flag:"🇬🇷"},{code:"CZ",dialCode:"+420",name:"Czech Republic",flag:"🇨🇿"},{code:"RO",dialCode:"+40",name:"Romania",flag:"🇷🇴"},{code:"HU",dialCode:"+36",name:"Hungary",flag:"🇭🇺"},{code:"IE",dialCode:"+353",name:"Ireland",flag:"🇮🇪"},{code:"AU",dialCode:"+61",name:"Australia",flag:"🇦🇺"},{code:"CA",dialCode:"+1",name:"Canada",flag:"🇨🇦"},{code:"BR",dialCode:"+55",name:"Brazil",flag:"🇧🇷"},{code:"MX",dialCode:"+52",name:"Mexico",flag:"🇲🇽"},{code:"JP",dialCode:"+81",name:"Japan",flag:"🇯🇵"},{code:"CN",dialCode:"+86",name:"China",flag:"🇨🇳"},{code:"IN",dialCode:"+91",name:"India",flag:"🇮🇳"},{code:"RU",dialCode:"+7",name:"Russia",flag:"🇷🇺"}],Ae=N.forwardRef(({value:t,onChange:n,defaultCountry:s="US",countries:r=Le,placeholder:a="Phone number",disabled:c=!1,className:d,error:u},y)=>{const[g,v]=N.useState(r.find(f=>f.code===s)||r[0]),[h,i]=N.useState("");N.useEffect(()=>{if(t){const f=r.find(j=>t.startsWith(j.dialCode));f?(v(f),i(t.slice(f.dialCode.length).trim())):i(t)}},[t,r]);const x=f=>{v(f);const j=`${f.dialCode} ${h}`.trim();n?.(j,f)},m=f=>{const j=f.target.value.replace(/[^\d\s\-()]/g,"");i(j);const C=`${g.dialCode} ${j}`.trim();n?.(C,g)};return e.jsxs("div",{className:k.cn("flex",d),children:[e.jsxs(O.DropdownMenu,{children:[e.jsx(O.DropdownMenuTrigger,{asChild:!0,children:e.jsxs(S.Button,{variant:"outline",disabled:c,className:k.cn("flex shrink-0 items-center gap-1 rounded-r-none border-r-0 px-3",u&&"border-destructive"),children:[e.jsx("span",{className:"text-base",children:g.flag}),e.jsx("span",{className:"text-sm text-muted-foreground",children:g.dialCode}),e.jsx(X.ChevronDown,{className:"h-4 w-4 opacity-50"})]})}),e.jsx(O.DropdownMenuContent,{className:"max-h-64 overflow-y-auto",children:r.map(f=>e.jsxs(O.DropdownMenuItem,{onClick:()=>x(f),className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-base",children:f.flag}),e.jsx("span",{className:"flex-1",children:f.name}),e.jsx("span",{className:"text-sm text-muted-foreground",children:f.dialCode})]},f.code))})]}),e.jsx(O.Input,{ref:y,type:"tel",value:h,onChange:m,placeholder:a,disabled:c,className:k.cn("rounded-l-none",u&&"border-destructive")})]})});Ae.displayName="PhoneInput";const _e=N.forwardRef(({value:t,onChange:n,onSearch:s,placeholder:r="Select...",dialogTitle:a="Search",searchPlaceholder:c="Type to search...",emptyMessage:d="No results found",multiple:u=!1,disabled:y=!1,className:g,renderItem:v},h)=>{const[i,x]=N.useState(!1),[m,f]=N.useState(""),[j,C]=N.useState([]),[l,F]=N.useState(!1),o=N.useRef(null),w=N.useMemo(()=>t?Array.isArray(t)?t:[t]:[],[t]),M=N.useCallback(async b=>{if(f(b),o.current&&clearTimeout(o.current),!b.trim()){C([]);return}o.current=setTimeout(async()=>{F(!0);try{const I=await s(b);C(I)}catch{C([])}finally{F(!1)}},300)},[s]),L=b=>{if(u){const I=w,B=I.some(E=>E.id===b.id)?I.filter(E=>E.id!==b.id):[...I,b];n?.(B.length>0?B:void 0)}else n?.(b),x(!1)},A=(b,I)=>{if(I.stopPropagation(),u){const V=w.filter(B=>B.id!==b);n?.(V.length>0?V:void 0)}else n?.(void 0)},D=b=>{b.stopPropagation(),n?.(void 0)},R=b=>e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(J.Avatar,{className:"h-8 w-8",children:[b.avatar&&e.jsx(J.AvatarImage,{src:b.avatar}),e.jsx(J.AvatarFallback,{className:"text-xs",children:b.label.split(" ").map(I=>I[0]).join("").toUpperCase().slice(0,2)})]}),e.jsxs("div",{className:"flex flex-1 flex-col",children:[e.jsx("span",{className:"font-medium",children:b.label}),b.description&&e.jsx("span",{className:"text-xs text-muted-foreground",children:b.description})]}),b.badges&&b.badges.length>0&&e.jsx("div",{className:"flex gap-1",children:b.badges.map((I,V)=>e.jsx(S.Badge,{variant:"secondary",className:"text-xs",children:I},V))})]});return e.jsxs(p.Dialog,{open:i,onOpenChange:x,children:[e.jsx(p.DialogTrigger,{asChild:!0,children:e.jsxs(S.Button,{ref:h,variant:"outline",role:"combobox",disabled:y,className:k.cn("w-full justify-between font-normal",w.length===0&&"text-muted-foreground",g),children:[e.jsx("div",{className:"flex flex-1 flex-wrap items-center gap-1 overflow-hidden",children:w.length===0?e.jsx("span",{children:r}):u?w.map(b=>e.jsxs(S.Badge,{variant:"secondary",className:"gap-1 pr-1",children:[b.label,e.jsx("button",{className:"rounded-full hover:bg-muted-foreground/20",onClick:I=>A(b.id,I),children:e.jsx(S.X,{className:"h-3 w-3"})})]},b.id)):e.jsx("span",{className:"truncate",children:w[0].label})}),e.jsxs("div",{className:"flex items-center gap-1",children:[w.length>0&&!u&&e.jsx("button",{className:"rounded p-0.5 hover:bg-muted",onClick:D,children:e.jsx(S.X,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(Te.ChevronRight,{className:"h-4 w-4 shrink-0 opacity-50"})]})]})}),e.jsxs(p.DialogContent,{className:"max-w-lg",children:[e.jsx(p.DialogHeader,{children:e.jsx(p.DialogTitle,{children:a})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(me.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(O.Input,{placeholder:c,value:m,onChange:b=>M(b.target.value),className:"pl-10",autoFocus:!0})]}),e.jsx(S.ScrollArea,{className:"h-64",children:l?e.jsx("div",{className:"flex items-center justify-center py-8",children:e.jsx(p.LoaderCircle,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):j.length===0?e.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:m?d:"Start typing to search..."}):e.jsx("div",{className:"space-y-1",children:j.map(b=>{const I=w.some(V=>V.id===b.id);return e.jsx("button",{onClick:()=>L(b),className:k.cn("w-full rounded-md p-2 text-left transition-colors hover:bg-accent",I&&"bg-accent"),children:v?v(b):R(b)},b.id)})})})]})]})]})});_e.displayName="LookupField";const mt=["USD","EUR","GBP","TRY","JPY","CNY"];function ft({value:t,onChange:n,placeholder:s,searchPlaceholder:r,emptyMessage:a,disabled:c=!1,className:d,showSymbol:u=!0,showCode:y=!0,showName:g=!0,popularCurrencies:v=mt}){const[h,i]=N.useState(!1),{t:x}=U.useLocale(),m=U.getAllCurrencies(),f=t?U.currencies[t]:void 0,j=v.map(o=>U.currencies[o]).filter(Boolean),C=m.filter(o=>!v.includes(o.code)),F=f?(o=>{const w=[];return u&&w.push(o.symbol),y&&w.push(o.code),g&&w.push(`- ${o.name}`),w.join(" ")})(f):s||x("locale.selectCurrency");return e.jsxs(p.Popover,{open:h,onOpenChange:i,children:[e.jsx(p.PopoverTrigger,{asChild:!0,children:e.jsxs(S.Button,{variant:"outline",role:"combobox","aria-expanded":h,disabled:c,className:k.cn("w-full justify-between",!t&&"text-muted-foreground",d),children:[e.jsx("span",{className:"truncate",children:F}),e.jsx(Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(p.PopoverContent,{className:"w-[300px] p-0",align:"start",children:e.jsxs(p.Command,{children:[e.jsx(p.CommandInput,{placeholder:r||x("common.search"),className:"h-9"}),e.jsxs(p.CommandList,{children:[e.jsx(p.CommandEmpty,{children:a||x("common.noData")}),j.length>0&&e.jsx(p.CommandGroup,{heading:"Popular",children:j.map(o=>e.jsxs(p.CommandItem,{value:`${o.code} ${o.name}`,onSelect:()=>{n?.(o.code),i(!1)},children:[e.jsx(S.Check,{className:k.cn("mr-2 h-4 w-4",t===o.code?"opacity-100":"opacity-0")}),e.jsx("span",{className:"w-8 font-medium",children:o.symbol}),e.jsx("span",{className:"w-12 text-muted-foreground",children:o.code}),e.jsx("span",{className:"truncate",children:o.name})]},o.code))}),e.jsx(p.CommandGroup,{heading:"All Currencies",children:C.map(o=>e.jsxs(p.CommandItem,{value:`${o.code} ${o.name}`,onSelect:()=>{n?.(o.code),i(!1)},children:[e.jsx(S.Check,{className:k.cn("mr-2 h-4 w-4",t===o.code?"opacity-100":"opacity-0")}),e.jsx("span",{className:"w-8 font-medium",children:o.symbol}),e.jsx("span",{className:"w-12 text-muted-foreground",children:o.code}),e.jsx("span",{className:"truncate",children:o.name})]},o.code))})]})]})})]})}function ht({value:t,onChange:n,placeholder:s,searchPlaceholder:r,emptyMessage:a,disabled:c=!1,className:d,showFlag:u=!0,showNativeName:y=!0,showCode:g=!1,variant:v="default"}){const[h,i]=N.useState(!1),{t:x,config:m}=U.useLocale(),f=U.getAllLocales(),j=t?U.getLocaleInfo(t):void 0,C=t||m.locale,F=j?((o,w=!1)=>{if(v==="icon-only"&&w)return u?o.flag:e.jsx(He,{className:"h-4 w-4"});if(v==="compact"&&w)return e.jsxs("span",{className:"flex items-center gap-1.5",children:[u&&e.jsx("span",{children:o.flag}),e.jsx("span",{children:o.code.split("-")[0].toUpperCase()})]});const M=[];return u&&M.push(e.jsx("span",{className:"mr-1.5",children:o.flag},"flag")),y&&M.push(e.jsx("span",{children:o.nativeName},"native")),g&&M.push(e.jsxs("span",{className:"text-muted-foreground ml-1",children:["(",o.code,")"]},"code")),e.jsx("span",{className:"flex items-center",children:M})})(j,!0):s||x("locale.selectLanguage");return e.jsxs(p.Popover,{open:h,onOpenChange:i,children:[e.jsx(p.PopoverTrigger,{asChild:!0,children:e.jsxs(S.Button,{variant:"outline",role:"combobox","aria-expanded":h,disabled:c,className:k.cn("justify-between",v==="icon-only"?"w-10 px-0":v==="compact"?"w-auto":"w-full",!t&&"text-muted-foreground",d),children:[e.jsx("span",{className:k.cn("truncate",v==="icon-only"&&"text-lg"),children:F}),v!=="icon-only"&&e.jsx(Z,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(p.PopoverContent,{className:"w-[280px] p-0",align:"start",children:e.jsxs(p.Command,{children:[e.jsx(p.CommandInput,{placeholder:r||x("common.search"),className:"h-9"}),e.jsxs(p.CommandList,{children:[e.jsx(p.CommandEmpty,{children:a||x("common.noData")}),e.jsx(p.CommandGroup,{children:f.map(o=>e.jsxs(p.CommandItem,{value:`${o.code} ${o.name} ${o.nativeName}`,onSelect:()=>{n?.(o.code),i(!1)},children:[e.jsx(S.Check,{className:k.cn("mr-2 h-4 w-4",C===o.code?"opacity-100":"opacity-0")}),e.jsx("span",{className:"mr-2 text-lg",children:o.flag}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:o.nativeName}),e.jsx("span",{className:"text-xs text-muted-foreground",children:o.name})]})]},o.code))})]})]})})]})}exports.ColorPicker=Re;exports.Combobox=Fe;exports.CurrencySelector=ft;exports.DEFAULT_COUNTRIES=Le;exports.DatePicker=ct;exports.DateRangePicker=Se;exports.FileUpload=Pe;exports.Form=ot;exports.FormControl=be;exports.FormDescription=ve;exports.FormField=lt;exports.FormItem=ye;exports.FormLabel=Ce;exports.FormMessage=we;exports.LocaleSelector=ht;exports.LookupField=_e;exports.MultiSelect=Me;exports.NumberInput=Ve;exports.PhoneInput=Ae;exports.SearchInput=ke;exports.TagInput=Ie;exports.TimePicker=De;exports.useFormField=q;
|
|
2
|
-
//# sourceMappingURL=locale-selector-Ppe0KTi-.cjs.map
|