@feedmepos/mf-brand-app-builder 0.5.20-dev.2 → 0.5.20-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-D_NPnwGw.js → App-DNayQ0r1.js} +3 -3
- package/dist/{AssetsSettings-DB3ZSX4R.js → AssetsSettings-Cgp-Awzc.js} +3 -3
- package/dist/{BrandkitView-BwJ6165V.js → BrandkitView-BCggsZJY.js} +2257 -2982
- package/dist/{BuilderView-ClihS2Kl.js → BuilderView-BhuHqSEj.js} +5 -5
- package/dist/{ImageUpload-8n04negz.js → ImageUpload-CEVZ2Smd.js} +2 -2
- package/dist/{LinkButton-BZwfC-dz.js → LinkButton-DRpeZMhV.js} +1 -1
- package/dist/{ListRepeater-Ckv1FcLA.js → ListRepeater-BNEN5FMB.js} +1 -1
- package/dist/{ManagementSettings-B4wHfdq8.js → ManagementSettings-lMIl05UD.js} +2 -2
- package/dist/{ProjectView-CibQkkyX.js → ProjectView-Cdm7gqIj.js} +1 -1
- package/dist/{app-Bc8YxeXK.js → app-DLQ8KWDz.js} +1330 -1187
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +9 -0
- package/dist/client/merchant/src/app.d.ts +143 -0
- package/dist/client/merchant/src/stores/business/index.d.ts +54 -0
- package/dist/{image-Dc0YO_lp.js → image-PTt3u2NG.js} +1 -1
- package/dist/{index-Ba6vae-6.js → index-3aVTK-0n.js} +1 -1
- package/dist/{index-B9AmzX3X.js → index-CNJn9sP5.js} +1 -1
- package/dist/{index-VruJQbMQ.js → index-ChqP94MN.js} +1 -1
- package/dist/{index-DO9dYU7p.js → index-eP_AjEnI.js} +1 -1
- package/dist/{main-DBrQC_KK.js → main-D_oG0ihX.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, defineComponent as dr, getCurrentInstance as pt, markRaw as it, watch as
|
|
1
|
+
import { defineAsyncComponent as H, defineComponent as dr, getCurrentInstance as pt, markRaw as it, watch as De, watchEffect as ie, reactive as xe, onMounted as gr, onUnmounted as gi, ref as z, isRef as ft, h as mt, inject as je, computed as me, provide as bi, toRef as hi, onBeforeUnmount as yi, nextTick as vi, triggerRef as Ue, isReactive as Nt, createTextVNode as Li, resolveComponent as $i } from "vue";
|
|
2
2
|
import { useI18n as _i } from "@feedmepos/mf-common";
|
|
3
3
|
const Ti = {
|
|
4
4
|
common: {
|
|
@@ -106,7 +106,27 @@ const Ti = {
|
|
|
106
106
|
fontWeight: "Font weight",
|
|
107
107
|
fontPreview: "The quick brown fox jumps over the lazy dog.",
|
|
108
108
|
assignTo: "Assign to",
|
|
109
|
-
applyToAllFonts: "Apply to all fonts"
|
|
109
|
+
applyToAllFonts: "Apply to all fonts",
|
|
110
|
+
ordering: {
|
|
111
|
+
_: "Ordering Settings",
|
|
112
|
+
title: "Ordering Configuration",
|
|
113
|
+
description: "Configure your kiosk and order app layout settings to create the perfect ordering experience for your customers.",
|
|
114
|
+
kioskSettings: "Kiosk Settings",
|
|
115
|
+
kioskSettingsDescription: "Configure kiosk settings to enhance the ordering experience.",
|
|
116
|
+
orderAppSettings: "Order App Settings",
|
|
117
|
+
orderAppDescription: "Customize the order app to suit your business needs.",
|
|
118
|
+
categoryLayout: "Category Layout",
|
|
119
|
+
categoryLayoutDescription: "Choose the layout for product categories.",
|
|
120
|
+
horizontal: "Horizontal",
|
|
121
|
+
vertical: "Vertical",
|
|
122
|
+
menuLayout: "Menu Layout",
|
|
123
|
+
menuLayoutDescription: "Select the layout for displaying products in the order app.",
|
|
124
|
+
grid: "Grid",
|
|
125
|
+
list: "List",
|
|
126
|
+
currentSelection: "Current selection",
|
|
127
|
+
preview: "Preview",
|
|
128
|
+
reset: "Reset to default"
|
|
129
|
+
}
|
|
110
130
|
},
|
|
111
131
|
settings: {
|
|
112
132
|
management: {
|
|
@@ -458,7 +478,8 @@ const Ti = {
|
|
|
458
478
|
tabs: {
|
|
459
479
|
landingPageDesign: "Landing Page Design",
|
|
460
480
|
memberFeaturesPages: "Member Features Pages",
|
|
461
|
-
memberReferral: "Member Referral"
|
|
481
|
+
memberReferral: "Member Referral",
|
|
482
|
+
ordering: "Ordering"
|
|
462
483
|
},
|
|
463
484
|
dialog: {
|
|
464
485
|
renameTemplate: {
|
|
@@ -506,6 +527,27 @@ const Ti = {
|
|
|
506
527
|
rename: "Rename",
|
|
507
528
|
delete: "Delete",
|
|
508
529
|
unpublish: "Unpublish"
|
|
530
|
+
},
|
|
531
|
+
ordering: {
|
|
532
|
+
title: "Ordering Configuration",
|
|
533
|
+
subtitle: "Configure your kiosk and order app settings to create the perfect ordering experience for your customers.",
|
|
534
|
+
kioskSettings: "Kiosk Settings",
|
|
535
|
+
kioskSettingsDescription: "Configure kiosk settings to enhance the ordering experience.",
|
|
536
|
+
orderAppSettings: "Order App Settings",
|
|
537
|
+
orderAppDescription: "Customize the order app to suit your business needs.",
|
|
538
|
+
categoryLayout: "Category Layout",
|
|
539
|
+
categoryLayoutDescription: "Choose the layout for product categories.",
|
|
540
|
+
horizontal: "Horizontal",
|
|
541
|
+
vertical: "Vertical",
|
|
542
|
+
menuLayout: "Menu Layout",
|
|
543
|
+
menuLayoutDescription: "Select the layout for displaying products in the order app.",
|
|
544
|
+
grid: "Grid",
|
|
545
|
+
list: "List",
|
|
546
|
+
currentSelection: "Current selection",
|
|
547
|
+
saveSettings: "Save Settings",
|
|
548
|
+
settingsSaved: "Settings saved successfully!",
|
|
549
|
+
movedToBrandkit: "Ordering settings have been moved to the Brandkit section for better organization.",
|
|
550
|
+
goToBrandkit: "Go to Brandkit"
|
|
509
551
|
}
|
|
510
552
|
},
|
|
511
553
|
app: {
|
|
@@ -620,7 +662,27 @@ const Ti = {
|
|
|
620
662
|
fontWeight: "字体粗细",
|
|
621
663
|
fontPreview: "The quick brown fox jumps over the lazy dog.",
|
|
622
664
|
assignTo: "分配到",
|
|
623
|
-
applyToAllFonts: "应用到所有字体"
|
|
665
|
+
applyToAllFonts: "应用到所有字体",
|
|
666
|
+
ordering: {
|
|
667
|
+
_: "点餐设置",
|
|
668
|
+
title: "点餐配置",
|
|
669
|
+
description: "配置您的自助服务机和点餐应用布局设置,为客户创造完美的点餐体验。",
|
|
670
|
+
kioskSettings: "自助服务机设置",
|
|
671
|
+
kioskSettingsDescription: "配置自助服务机设置以增强点餐体验。",
|
|
672
|
+
orderAppSettings: "点餐应用设置",
|
|
673
|
+
orderAppDescription: "自定义点餐应用以适应您的业务需求。",
|
|
674
|
+
categoryLayout: "类别布局",
|
|
675
|
+
categoryLayoutDescription: "选择产品类别的布局。",
|
|
676
|
+
horizontal: "水平",
|
|
677
|
+
vertical: "垂直",
|
|
678
|
+
menuLayout: "菜单布局",
|
|
679
|
+
menuLayoutDescription: "选择点餐应用中产品显示的布局。",
|
|
680
|
+
grid: "网格",
|
|
681
|
+
list: "列表",
|
|
682
|
+
currentSelection: "当前选择",
|
|
683
|
+
preview: "预览",
|
|
684
|
+
reset: "重置为默认"
|
|
685
|
+
}
|
|
624
686
|
},
|
|
625
687
|
settings: {
|
|
626
688
|
management: {
|
|
@@ -972,7 +1034,8 @@ const Ti = {
|
|
|
972
1034
|
tabs: {
|
|
973
1035
|
landingPageDesign: "设计着陆页",
|
|
974
1036
|
memberFeaturesPages: "会员功能页面",
|
|
975
|
-
memberReferral: "会员推荐"
|
|
1037
|
+
memberReferral: "会员推荐",
|
|
1038
|
+
ordering: "点餐"
|
|
976
1039
|
},
|
|
977
1040
|
dialog: {
|
|
978
1041
|
renameTemplate: {
|
|
@@ -1020,11 +1083,30 @@ const Ti = {
|
|
|
1020
1083
|
rename: "重命名",
|
|
1021
1084
|
delete: "删除",
|
|
1022
1085
|
unpublish: "取消发布"
|
|
1086
|
+
},
|
|
1087
|
+
ordering: {
|
|
1088
|
+
title: "点餐配置",
|
|
1089
|
+
subtitle: "配置您的自助服务机和点餐应用设置,为客户创造完美的点餐体验。",
|
|
1090
|
+
kioskSettings: "自助服务机设置",
|
|
1091
|
+
kioskSettingsDescription: "配置自助服务机设置以增强点餐体验。",
|
|
1092
|
+
orderAppSettings: "点餐应用设置",
|
|
1093
|
+
orderAppDescription: "自定义点餐应用以适应您的业务需求。",
|
|
1094
|
+
categoryLayout: "类别布局",
|
|
1095
|
+
categoryLayoutDescription: "选择产品类别的布局。",
|
|
1096
|
+
horizontal: "水平",
|
|
1097
|
+
vertical: "垂直",
|
|
1098
|
+
menuLayout: "菜单布局",
|
|
1099
|
+
menuLayoutDescription: "选择点餐应用中产品显示的布局。",
|
|
1100
|
+
grid: "网格",
|
|
1101
|
+
list: "列表",
|
|
1102
|
+
currentSelection: "当前选择",
|
|
1103
|
+
saveSettings: "保存设置",
|
|
1104
|
+
settingsSaved: "设置保存成功!"
|
|
1023
1105
|
}
|
|
1024
1106
|
}
|
|
1025
|
-
}, wi = {
|
|
1026
|
-
brand: Ci
|
|
1027
1107
|
}, ki = {
|
|
1108
|
+
brand: Ci
|
|
1109
|
+
}, wi = {
|
|
1028
1110
|
common: {
|
|
1029
1111
|
confirm: "確認",
|
|
1030
1112
|
cancel: "取消",
|
|
@@ -1131,7 +1213,27 @@ const Ti = {
|
|
|
1131
1213
|
fontWeight: "字體粗細",
|
|
1132
1214
|
fontPreview: "The quick brown fox jumps over the lazy dog.",
|
|
1133
1215
|
assignTo: "分配到",
|
|
1134
|
-
applyToAllFonts: "應用到所有字體"
|
|
1216
|
+
applyToAllFonts: "應用到所有字體",
|
|
1217
|
+
ordering: {
|
|
1218
|
+
_: "點餐設置",
|
|
1219
|
+
title: "點餐配置",
|
|
1220
|
+
description: "配置您的自助服務機和點餐應用佈局設置,為客戶創造完美的點餐體驗。",
|
|
1221
|
+
kioskSettings: "自助服務機設置",
|
|
1222
|
+
kioskSettingsDescription: "配置自助服務機設置以增強點餐體驗。",
|
|
1223
|
+
orderAppSettings: "點餐應用設置",
|
|
1224
|
+
orderAppDescription: "自定義點餐應用以適應您的業務需求。",
|
|
1225
|
+
categoryLayout: "類別佈局",
|
|
1226
|
+
categoryLayoutDescription: "選擇產品類別的佈局。",
|
|
1227
|
+
horizontal: "水平",
|
|
1228
|
+
vertical: "垂直",
|
|
1229
|
+
menuLayout: "菜單佈局",
|
|
1230
|
+
menuLayoutDescription: "選擇點餐應用中產品顯示的佈局。",
|
|
1231
|
+
grid: "網格",
|
|
1232
|
+
list: "列表",
|
|
1233
|
+
currentSelection: "當前選擇",
|
|
1234
|
+
preview: "預覽",
|
|
1235
|
+
reset: "重置為預設"
|
|
1236
|
+
}
|
|
1135
1237
|
},
|
|
1136
1238
|
settings: {
|
|
1137
1239
|
management: {
|
|
@@ -1483,7 +1585,8 @@ const Ti = {
|
|
|
1483
1585
|
tabs: {
|
|
1484
1586
|
landingPageDesign: "設計著陸頁",
|
|
1485
1587
|
memberFeaturesPages: "會員功能頁面",
|
|
1486
|
-
memberReferral: "會員推薦"
|
|
1588
|
+
memberReferral: "會員推薦",
|
|
1589
|
+
ordering: "點餐"
|
|
1487
1590
|
},
|
|
1488
1591
|
dialog: {
|
|
1489
1592
|
renameTemplate: {
|
|
@@ -1531,10 +1634,29 @@ const Ti = {
|
|
|
1531
1634
|
rename: "重命名",
|
|
1532
1635
|
delete: "刪除",
|
|
1533
1636
|
unpublish: "取消發布"
|
|
1637
|
+
},
|
|
1638
|
+
ordering: {
|
|
1639
|
+
title: "點餐配置",
|
|
1640
|
+
subtitle: "配置您的自助服務機和點餐應用設置,為客戶創造完美的點餐體驗。",
|
|
1641
|
+
kioskSettings: "自助服務機設置",
|
|
1642
|
+
kioskSettingsDescription: "配置自助服務機設置以增強點餐體驗。",
|
|
1643
|
+
orderAppSettings: "點餐應用設置",
|
|
1644
|
+
orderAppDescription: "自定義點餐應用以適應您的業務需求。",
|
|
1645
|
+
categoryLayout: "類別佈局",
|
|
1646
|
+
categoryLayoutDescription: "選擇產品類別的佈局。",
|
|
1647
|
+
horizontal: "水平",
|
|
1648
|
+
vertical: "垂直",
|
|
1649
|
+
menuLayout: "菜單佈局",
|
|
1650
|
+
menuLayoutDescription: "選擇點餐應用中產品顯示的佈局。",
|
|
1651
|
+
grid: "網格",
|
|
1652
|
+
list: "列表",
|
|
1653
|
+
currentSelection: "當前選擇",
|
|
1654
|
+
saveSettings: "保存設置",
|
|
1655
|
+
settingsSaved: "設置保存成功!"
|
|
1534
1656
|
}
|
|
1535
1657
|
}
|
|
1536
1658
|
}, Ai = {
|
|
1537
|
-
brand:
|
|
1659
|
+
brand: wi
|
|
1538
1660
|
}, Pi = {
|
|
1539
1661
|
common: {
|
|
1540
1662
|
confirm: "Confirm",
|
|
@@ -1642,7 +1764,27 @@ const Ti = {
|
|
|
1642
1764
|
fontWeight: "น้ำหนักฟอนต์",
|
|
1643
1765
|
fontPreview: "The quick brown fox jumps over the lazy dog.",
|
|
1644
1766
|
assignTo: "กำหนดให้",
|
|
1645
|
-
applyToAllFonts: "ใช้กับฟอนต์ทั้งหมด"
|
|
1767
|
+
applyToAllFonts: "ใช้กับฟอนต์ทั้งหมด",
|
|
1768
|
+
ordering: {
|
|
1769
|
+
_: "การตั้งค่าการสั่งซื้อ",
|
|
1770
|
+
title: "การกำหนดค่าการสั่งซื้อ",
|
|
1771
|
+
description: "กำหนดค่าการตั้งค่าเครื่องจุดขายและแอปสั่งอาหารของคุณเพื่อสร้างประสบการณ์การสั่งซื้อที่สมบูรณ์แบบสำหรับลูกค้า",
|
|
1772
|
+
kioskSettings: "การตั้งค่าเครื่องจุดขาย",
|
|
1773
|
+
kioskSettingsDescription: "กำหนดค่าการตั้งค่าเครื่องจุดขายเพื่อเพิ่มประสบการณ์การสั่งซื้อ",
|
|
1774
|
+
orderAppSettings: "การตั้งค่าแอปสั่งอาหาร",
|
|
1775
|
+
orderAppDescription: "ปรับแต่งแอปสั่งอาหารให้เหมาะสมกับความต้องการของธุรกิจ",
|
|
1776
|
+
categoryLayout: "เลย์เอาต์หมวดหมู่",
|
|
1777
|
+
categoryLayoutDescription: "เลือกเลย์เอาต์สำหรับหมวดหมู่ผลิตภัณฑ์",
|
|
1778
|
+
horizontal: "แนวนอน",
|
|
1779
|
+
vertical: "แนวตั้ง",
|
|
1780
|
+
menuLayout: "เลย์เอาต์เมนู",
|
|
1781
|
+
menuLayoutDescription: "เลือกเลย์เอาต์สำหรับการแสดงผลิตภัณฑ์ในแอปสั่งอาหาร",
|
|
1782
|
+
grid: "ตาราง",
|
|
1783
|
+
list: "รายการ",
|
|
1784
|
+
currentSelection: "การเลือกปัจจุบัน",
|
|
1785
|
+
preview: "ดูตัวอย่าง",
|
|
1786
|
+
reset: "รีเซ็ตเป็นค่าเริ่มต้น"
|
|
1787
|
+
}
|
|
1646
1788
|
},
|
|
1647
1789
|
template: {
|
|
1648
1790
|
section: {
|
|
@@ -1948,7 +2090,8 @@ const Ti = {
|
|
|
1948
2090
|
tabs: {
|
|
1949
2091
|
landingPageDesign: "ออกแบบหน้า Landing Page",
|
|
1950
2092
|
memberFeaturesPages: "หน้าฟีเจอร์สมาชิก",
|
|
1951
|
-
memberReferral: "การแนะนำสมาชิก"
|
|
2093
|
+
memberReferral: "การแนะนำสมาชิก",
|
|
2094
|
+
ordering: "การสั่งซื้อ"
|
|
1952
2095
|
},
|
|
1953
2096
|
dialog: {
|
|
1954
2097
|
renameTemplate: {
|
|
@@ -2049,16 +2192,16 @@ const Ti = {
|
|
|
2049
2192
|
}
|
|
2050
2193
|
}, xi = {
|
|
2051
2194
|
brand: Pi
|
|
2052
|
-
},
|
|
2195
|
+
}, wo = [
|
|
2053
2196
|
{
|
|
2054
2197
|
path: "/",
|
|
2055
2198
|
name: "brandkit",
|
|
2056
|
-
component: H(() => import("./BrandkitView-
|
|
2199
|
+
component: H(() => import("./BrandkitView-BCggsZJY.js"))
|
|
2057
2200
|
},
|
|
2058
2201
|
{
|
|
2059
2202
|
path: "/projects",
|
|
2060
2203
|
name: "projects",
|
|
2061
|
-
component: H(() => import("./ProjectView-
|
|
2204
|
+
component: H(() => import("./ProjectView-Cdm7gqIj.js"))
|
|
2062
2205
|
},
|
|
2063
2206
|
{
|
|
2064
2207
|
path: "/builder",
|
|
@@ -2068,7 +2211,7 @@ const Ti = {
|
|
|
2068
2211
|
path: ":templateId(.*)*",
|
|
2069
2212
|
name: "builder",
|
|
2070
2213
|
component: H(
|
|
2071
|
-
() => import("./BuilderView-
|
|
2214
|
+
() => import("./BuilderView-BhuHqSEj.js")
|
|
2072
2215
|
)
|
|
2073
2216
|
}
|
|
2074
2217
|
]
|
|
@@ -2083,14 +2226,14 @@ const Ti = {
|
|
|
2083
2226
|
path: "assets",
|
|
2084
2227
|
name: "settings-assets",
|
|
2085
2228
|
component: H(
|
|
2086
|
-
() => import("./AssetsSettings-
|
|
2229
|
+
() => import("./AssetsSettings-Cgp-Awzc.js")
|
|
2087
2230
|
)
|
|
2088
2231
|
},
|
|
2089
2232
|
{
|
|
2090
2233
|
path: "management",
|
|
2091
2234
|
name: "settings-management",
|
|
2092
2235
|
component: H(
|
|
2093
|
-
() => import("./ManagementSettings-
|
|
2236
|
+
() => import("./ManagementSettings-lMIl05UD.js")
|
|
2094
2237
|
)
|
|
2095
2238
|
}
|
|
2096
2239
|
]
|
|
@@ -2109,7 +2252,7 @@ const Ti = {
|
|
|
2109
2252
|
redirect: { name: "brandkit" }
|
|
2110
2253
|
}
|
|
2111
2254
|
];
|
|
2112
|
-
var
|
|
2255
|
+
var br = [
|
|
2113
2256
|
"__key",
|
|
2114
2257
|
"__init",
|
|
2115
2258
|
"__shim",
|
|
@@ -2123,7 +2266,7 @@ function Ae() {
|
|
|
2123
2266
|
function Mi(e, t) {
|
|
2124
2267
|
return [...e instanceof Set ? e : new Set(e)];
|
|
2125
2268
|
}
|
|
2126
|
-
function
|
|
2269
|
+
function w(e, t) {
|
|
2127
2270
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
2128
2271
|
}
|
|
2129
2272
|
function U(e, t, r = !0, i = ["__key"]) {
|
|
@@ -2138,11 +2281,11 @@ function U(e, t, r = !0, i = ["__key"]) {
|
|
|
2138
2281
|
return Ii(e, t);
|
|
2139
2282
|
if (e === null || t === null || Object.keys(e).length !== Object.keys(t).length)
|
|
2140
2283
|
return !1;
|
|
2141
|
-
for (const
|
|
2142
|
-
if ((
|
|
2284
|
+
for (const n of i)
|
|
2285
|
+
if ((n in e || n in t) && e[n] !== t[n])
|
|
2143
2286
|
return !1;
|
|
2144
|
-
for (const
|
|
2145
|
-
if (!(
|
|
2287
|
+
for (const n in e)
|
|
2288
|
+
if (!(n in t) || e[n] !== t[n] && !r || r && !U(e[n], t[n], r, i))
|
|
2146
2289
|
return !1;
|
|
2147
2290
|
return !0;
|
|
2148
2291
|
}
|
|
@@ -2168,11 +2311,11 @@ function G(e) {
|
|
|
2168
2311
|
}
|
|
2169
2312
|
return !1;
|
|
2170
2313
|
}
|
|
2171
|
-
function
|
|
2314
|
+
function Di(e) {
|
|
2172
2315
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2173
2316
|
}
|
|
2174
|
-
function
|
|
2175
|
-
const t = `^${
|
|
2317
|
+
function Fi(e) {
|
|
2318
|
+
const t = `^${Di(e)}$`, r = {
|
|
2176
2319
|
MM: "(0[1-9]|1[012])",
|
|
2177
2320
|
M: "([1-9]|1[012])",
|
|
2178
2321
|
DD: "([012][0-9]|3[01])",
|
|
@@ -2181,13 +2324,13 @@ function Di(e) {
|
|
|
2181
2324
|
YY: "\\d{2}"
|
|
2182
2325
|
}, i = Object.keys(r);
|
|
2183
2326
|
return new RegExp(
|
|
2184
|
-
i.reduce((
|
|
2327
|
+
i.reduce((n, a) => n.replace(a, r[a]), t)
|
|
2185
2328
|
);
|
|
2186
2329
|
}
|
|
2187
2330
|
function Ke(e) {
|
|
2188
2331
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
2189
2332
|
}
|
|
2190
|
-
function
|
|
2333
|
+
function Fe(e) {
|
|
2191
2334
|
return Ke(e) || Array.isArray(e);
|
|
2192
2335
|
}
|
|
2193
2336
|
function Se(e) {
|
|
@@ -2202,28 +2345,28 @@ function Se(e) {
|
|
|
2202
2345
|
var le = /* @__NO_SIDE_EFFECTS__ */ (e, t, r = !1, i = !1) => {
|
|
2203
2346
|
if (t === null)
|
|
2204
2347
|
return null;
|
|
2205
|
-
const
|
|
2348
|
+
const n = {};
|
|
2206
2349
|
if (typeof t == "string")
|
|
2207
2350
|
return t;
|
|
2208
|
-
for (const
|
|
2209
|
-
if (
|
|
2210
|
-
if (r && Array.isArray(e[
|
|
2211
|
-
a
|
|
2351
|
+
for (const a in e)
|
|
2352
|
+
if (w(t, a) && (t[a] !== void 0 || !i)) {
|
|
2353
|
+
if (r && Array.isArray(e[a]) && Array.isArray(t[a])) {
|
|
2354
|
+
n[a] = e[a].concat(t[a]);
|
|
2212
2355
|
continue;
|
|
2213
2356
|
}
|
|
2214
|
-
if (t[
|
|
2357
|
+
if (t[a] === void 0)
|
|
2215
2358
|
continue;
|
|
2216
|
-
Se(e[
|
|
2217
|
-
e[
|
|
2218
|
-
t[
|
|
2359
|
+
Se(e[a]) && Se(t[a]) ? n[a] = /* @__PURE__ */ le(
|
|
2360
|
+
e[a],
|
|
2361
|
+
t[a],
|
|
2219
2362
|
r,
|
|
2220
2363
|
i
|
|
2221
|
-
) : a
|
|
2364
|
+
) : n[a] = t[a];
|
|
2222
2365
|
} else
|
|
2223
|
-
a
|
|
2224
|
-
for (const
|
|
2225
|
-
!
|
|
2226
|
-
return
|
|
2366
|
+
n[a] = e[a];
|
|
2367
|
+
for (const a in t)
|
|
2368
|
+
!w(n, a) && t[a] !== void 0 && (n[a] = t[a]);
|
|
2369
|
+
return n;
|
|
2227
2370
|
};
|
|
2228
2371
|
function Ri(e) {
|
|
2229
2372
|
if (e[0] !== '"' && e[0] !== "'" || e[0] !== e[e.length - 1])
|
|
@@ -2234,46 +2377,46 @@ function Ri(e) {
|
|
|
2234
2377
|
return !1;
|
|
2235
2378
|
return !0;
|
|
2236
2379
|
}
|
|
2237
|
-
function
|
|
2380
|
+
function Oi(e) {
|
|
2238
2381
|
if (!e.length)
|
|
2239
2382
|
return "";
|
|
2240
2383
|
let t = "", r = "";
|
|
2241
2384
|
for (let i = 0; i < e.length; i++) {
|
|
2242
|
-
const
|
|
2243
|
-
(
|
|
2385
|
+
const n = e.charAt(i);
|
|
2386
|
+
(n !== "\\" || r === "\\") && (t += n), r = n;
|
|
2244
2387
|
}
|
|
2245
2388
|
return t;
|
|
2246
2389
|
}
|
|
2247
2390
|
function he(...e) {
|
|
2248
2391
|
return e.reduce((t, r) => {
|
|
2249
|
-
const { value: i, name:
|
|
2392
|
+
const { value: i, name: n, modelValue: a, config: s, plugins: l, ...o } = r;
|
|
2250
2393
|
return Object.assign(t, o);
|
|
2251
2394
|
}, {});
|
|
2252
2395
|
}
|
|
2253
|
-
function
|
|
2396
|
+
function Ei(e) {
|
|
2254
2397
|
const t = [];
|
|
2255
|
-
let r = "", i = 0,
|
|
2398
|
+
let r = "", i = 0, n = "", a = "";
|
|
2256
2399
|
for (let s = 0; s < e.length; s++) {
|
|
2257
2400
|
const l = e.charAt(s);
|
|
2258
|
-
l ===
|
|
2401
|
+
l === n && a !== "\\" ? n = "" : (l === "'" || l === '"') && !n && a !== "\\" ? n = l : l === "(" && !n ? i++ : l === ")" && !n && i--, l === "," && !n && i === 0 ? (t.push(r), r = "") : (l !== " " || n) && (r += l), a = l;
|
|
2259
2402
|
}
|
|
2260
2403
|
return r && t.push(r), t;
|
|
2261
2404
|
}
|
|
2262
2405
|
function Ht(e, t) {
|
|
2263
|
-
const r = {}, i = t.filter((
|
|
2264
|
-
for (const
|
|
2265
|
-
!
|
|
2406
|
+
const r = {}, i = t.filter((a) => a instanceof RegExp), n = new Set(t);
|
|
2407
|
+
for (const a in e)
|
|
2408
|
+
!n.has(a) && !i.some((s) => s.test(a)) && (r[a] = e[a]);
|
|
2266
2409
|
return r;
|
|
2267
2410
|
}
|
|
2268
2411
|
function jt(e, t) {
|
|
2269
|
-
const r = {}, i = t.filter((
|
|
2270
|
-
return t.forEach((
|
|
2271
|
-
|
|
2272
|
-
}), Object.keys(e).forEach((
|
|
2273
|
-
i.some((
|
|
2412
|
+
const r = {}, i = t.filter((n) => n instanceof RegExp);
|
|
2413
|
+
return t.forEach((n) => {
|
|
2414
|
+
n instanceof RegExp || (r[n] = e[n]);
|
|
2415
|
+
}), Object.keys(e).forEach((n) => {
|
|
2416
|
+
i.some((a) => a.test(n)) && (r[n] = e[n]);
|
|
2274
2417
|
}), r;
|
|
2275
2418
|
}
|
|
2276
|
-
function
|
|
2419
|
+
function Le(e) {
|
|
2277
2420
|
return e.replace(
|
|
2278
2421
|
/-([a-z0-9])/gi,
|
|
2279
2422
|
(t, r) => r.toUpperCase()
|
|
@@ -2285,7 +2428,7 @@ function hr(e) {
|
|
|
2285
2428
|
(t, r, i) => r + "-" + i.toLowerCase()
|
|
2286
2429
|
).replace(" ", "-").toLowerCase();
|
|
2287
2430
|
}
|
|
2288
|
-
function dt(e, t =
|
|
2431
|
+
function dt(e, t = br) {
|
|
2289
2432
|
if (e !== null && typeof e == "object") {
|
|
2290
2433
|
let r;
|
|
2291
2434
|
if (Array.isArray(e) ? r = [...e] : Se(e) && (r = { ...e }), r)
|
|
@@ -2293,11 +2436,11 @@ function dt(e, t = gr) {
|
|
|
2293
2436
|
}
|
|
2294
2437
|
return e;
|
|
2295
2438
|
}
|
|
2296
|
-
function Ce(e, t =
|
|
2439
|
+
function Ce(e, t = br) {
|
|
2297
2440
|
if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
|
|
2298
2441
|
return e;
|
|
2299
2442
|
let r;
|
|
2300
|
-
Array.isArray(e) ? r = e.map((i) => typeof i == "object" ? Ce(i, t) : i) : r = Object.keys(e).reduce((i,
|
|
2443
|
+
Array.isArray(e) ? r = e.map((i) => typeof i == "object" ? Ce(i, t) : i) : r = Object.keys(e).reduce((i, n) => (i[n] = typeof e[n] == "object" ? Ce(e[n], t) : e[n], i), {});
|
|
2301
2444
|
for (const i of t)
|
|
2302
2445
|
i in e && Object.defineProperty(r, i, {
|
|
2303
2446
|
enumerable: !1,
|
|
@@ -2313,9 +2456,9 @@ function Ni(e, t) {
|
|
|
2313
2456
|
return null;
|
|
2314
2457
|
const r = t.split(".");
|
|
2315
2458
|
let i = e;
|
|
2316
|
-
for (const
|
|
2317
|
-
const
|
|
2318
|
-
if (
|
|
2459
|
+
for (const n in r) {
|
|
2460
|
+
const a = r[n];
|
|
2461
|
+
if (w(i, a) && (i = i[a]), +n === r.length - 1)
|
|
2319
2462
|
return i;
|
|
2320
2463
|
if (!i || typeof i != "object")
|
|
2321
2464
|
return null;
|
|
@@ -2325,7 +2468,7 @@ function Ni(e, t) {
|
|
|
2325
2468
|
function Q(e) {
|
|
2326
2469
|
return e !== void 0 && e !== "false" && e !== !1 ? !0 : void 0;
|
|
2327
2470
|
}
|
|
2328
|
-
function
|
|
2471
|
+
function ke(e) {
|
|
2329
2472
|
return Object.isFrozen(e) ? e : Object.defineProperty(e, "__init", {
|
|
2330
2473
|
enumerable: !1,
|
|
2331
2474
|
value: !0
|
|
@@ -2353,91 +2496,91 @@ function Ui(e) {
|
|
|
2353
2496
|
if (!(e === "false" || e === !1))
|
|
2354
2497
|
return !0;
|
|
2355
2498
|
}
|
|
2356
|
-
function
|
|
2499
|
+
function kt() {
|
|
2357
2500
|
const e = [];
|
|
2358
2501
|
let t = 0;
|
|
2359
|
-
const r = (
|
|
2360
|
-
const
|
|
2361
|
-
return typeof
|
|
2502
|
+
const r = (n) => e.push(n), i = (n) => {
|
|
2503
|
+
const a = e[t];
|
|
2504
|
+
return typeof a == "function" ? a(n, (s) => (t++, i(s))) : (t = 0, n);
|
|
2362
2505
|
};
|
|
2363
|
-
return r.dispatch = i, r.unshift = (
|
|
2364
|
-
const
|
|
2365
|
-
|
|
2506
|
+
return r.dispatch = i, r.unshift = (n) => e.unshift(n), r.remove = (n) => {
|
|
2507
|
+
const a = e.indexOf(n);
|
|
2508
|
+
a > -1 && e.splice(a, 1);
|
|
2366
2509
|
}, r;
|
|
2367
2510
|
}
|
|
2368
2511
|
function yr() {
|
|
2369
2512
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
2370
2513
|
let r;
|
|
2371
|
-
const i = (
|
|
2514
|
+
const i = (n, a) => {
|
|
2372
2515
|
if (r) {
|
|
2373
|
-
r.set(
|
|
2516
|
+
r.set(a.name, [n, a]);
|
|
2374
2517
|
return;
|
|
2375
2518
|
}
|
|
2376
|
-
e.has(
|
|
2377
|
-
(
|
|
2378
|
-
}),
|
|
2519
|
+
e.has(a.name) && e.get(a.name).forEach((s) => {
|
|
2520
|
+
(a.origin === n || s.modifiers.includes("deep")) && s.listener(a);
|
|
2521
|
+
}), a.bubble && n.bubble(a);
|
|
2379
2522
|
};
|
|
2380
2523
|
return i.flush = () => {
|
|
2381
2524
|
e.clear(), t.clear(), r == null || r.clear();
|
|
2382
|
-
}, i.on = (
|
|
2383
|
-
const [l, ...o] =
|
|
2525
|
+
}, i.on = (n, a, s = "push") => {
|
|
2526
|
+
const [l, ...o] = n.split("."), g = a.receipt || Ae(), b = {
|
|
2384
2527
|
modifiers: o,
|
|
2385
2528
|
event: l,
|
|
2386
|
-
listener:
|
|
2387
|
-
receipt:
|
|
2529
|
+
listener: a,
|
|
2530
|
+
receipt: g
|
|
2388
2531
|
};
|
|
2389
|
-
return e.has(l) ? e.get(l)[s](
|
|
2390
|
-
}, i.off = (
|
|
2391
|
-
var
|
|
2392
|
-
t.has(
|
|
2532
|
+
return e.has(l) ? e.get(l)[s](b) : e.set(l, [b]), t.has(g) ? t.get(g)[s](l) : t.set(g, [l]), g;
|
|
2533
|
+
}, i.off = (n) => {
|
|
2534
|
+
var a;
|
|
2535
|
+
t.has(n) && ((a = t.get(n)) == null || a.forEach((s) => {
|
|
2393
2536
|
const l = e.get(s);
|
|
2394
2537
|
Array.isArray(l) && e.set(
|
|
2395
2538
|
s,
|
|
2396
|
-
l.filter((o) => o.receipt !==
|
|
2539
|
+
l.filter((o) => o.receipt !== n)
|
|
2397
2540
|
);
|
|
2398
|
-
}), t.delete(
|
|
2399
|
-
}, i.pause = (
|
|
2400
|
-
r || (r = /* @__PURE__ */ new Map()),
|
|
2401
|
-
}, i.play = (
|
|
2541
|
+
}), t.delete(n));
|
|
2542
|
+
}, i.pause = (n) => {
|
|
2543
|
+
r || (r = /* @__PURE__ */ new Map()), n && n.walk((a) => a._e.pause());
|
|
2544
|
+
}, i.play = (n) => {
|
|
2402
2545
|
if (!r)
|
|
2403
2546
|
return;
|
|
2404
|
-
const
|
|
2405
|
-
r = void 0,
|
|
2547
|
+
const a = r;
|
|
2548
|
+
r = void 0, a.forEach(([s, l]) => i(s, l)), n && n.walk((s) => s._e.play());
|
|
2406
2549
|
}, i;
|
|
2407
2550
|
}
|
|
2408
|
-
function Vi(e, t, r, i,
|
|
2551
|
+
function Vi(e, t, r, i, n = !0, a) {
|
|
2409
2552
|
return t._e(e, {
|
|
2410
2553
|
payload: i,
|
|
2411
2554
|
name: r,
|
|
2412
|
-
bubble:
|
|
2555
|
+
bubble: n,
|
|
2413
2556
|
origin: e,
|
|
2414
|
-
meta:
|
|
2557
|
+
meta: a
|
|
2415
2558
|
}), e;
|
|
2416
2559
|
}
|
|
2417
|
-
function
|
|
2418
|
-
return
|
|
2560
|
+
function zi(e, t, r) {
|
|
2561
|
+
return Ee(e.parent) && e.parent._e(e.parent, r), e;
|
|
2419
2562
|
}
|
|
2420
|
-
function
|
|
2421
|
-
return t._e.on(r, i,
|
|
2563
|
+
function qi(e, t, r, i, n) {
|
|
2564
|
+
return t._e.on(r, i, n);
|
|
2422
2565
|
}
|
|
2423
|
-
function
|
|
2566
|
+
function Bi(e, t, r) {
|
|
2424
2567
|
return t._e.off(r), e;
|
|
2425
2568
|
}
|
|
2426
|
-
var
|
|
2427
|
-
|
|
2428
|
-
var At =
|
|
2569
|
+
var wt = kt();
|
|
2570
|
+
wt((e, t) => (e.message || (e.message = `E${e.code}`), t(e)));
|
|
2571
|
+
var At = kt();
|
|
2429
2572
|
At((e, t) => {
|
|
2430
2573
|
e.message || (e.message = `W${e.code}`);
|
|
2431
2574
|
const r = t(e);
|
|
2432
2575
|
return console && typeof console.warn == "function" && console.warn(r.message), r;
|
|
2433
2576
|
});
|
|
2434
|
-
function
|
|
2577
|
+
function ge(e, t = {}) {
|
|
2435
2578
|
At.dispatch({ code: e, data: t });
|
|
2436
2579
|
}
|
|
2437
|
-
function
|
|
2438
|
-
throw Error(
|
|
2580
|
+
function q(e, t = {}) {
|
|
2581
|
+
throw Error(wt.dispatch({ code: e, data: t }).message);
|
|
2439
2582
|
}
|
|
2440
|
-
function
|
|
2583
|
+
function B(e, t) {
|
|
2441
2584
|
return {
|
|
2442
2585
|
blocking: !1,
|
|
2443
2586
|
key: Ae(),
|
|
@@ -2453,26 +2596,26 @@ var Ut = {
|
|
|
2453
2596
|
remove: vr,
|
|
2454
2597
|
filter: Yi,
|
|
2455
2598
|
reduce: Qi,
|
|
2456
|
-
release:
|
|
2599
|
+
release: en,
|
|
2457
2600
|
touch: Gi
|
|
2458
2601
|
};
|
|
2459
|
-
function
|
|
2602
|
+
function Wi(e = !1) {
|
|
2460
2603
|
const t = {};
|
|
2461
|
-
let r, i = e,
|
|
2462
|
-
const
|
|
2604
|
+
let r, i = e, n = [];
|
|
2605
|
+
const a = /* @__PURE__ */ new Map();
|
|
2463
2606
|
let s;
|
|
2464
2607
|
const l = new Proxy(t, {
|
|
2465
2608
|
get(...o) {
|
|
2466
|
-
const [
|
|
2467
|
-
return
|
|
2609
|
+
const [g, b] = o;
|
|
2610
|
+
return b === "buffer" ? i : b === "_b" ? n : b === "_m" ? a : b === "_r" ? s : w(Ut, b) ? Ut[b].bind(
|
|
2468
2611
|
null,
|
|
2469
2612
|
t,
|
|
2470
2613
|
l,
|
|
2471
2614
|
r
|
|
2472
2615
|
) : Reflect.get(...o);
|
|
2473
2616
|
},
|
|
2474
|
-
set(o,
|
|
2475
|
-
return
|
|
2617
|
+
set(o, g, b) {
|
|
2618
|
+
return g === "_n" ? (r = b, s === "__n" && Lr(r, l), !0) : g === "_b" ? (n = b, !0) : g === "buffer" ? (i = b, !0) : g === "_r" ? (s = b, !0) : (q(101, r), !1);
|
|
2476
2619
|
}
|
|
2477
2620
|
});
|
|
2478
2621
|
return l;
|
|
@@ -2482,13 +2625,13 @@ function Ki(e, t, r, i) {
|
|
|
2482
2625
|
return t._b.push([[i]]), t;
|
|
2483
2626
|
if (e[i.key] !== i) {
|
|
2484
2627
|
if (typeof i.value == "string" && i.meta.localize !== !1) {
|
|
2485
|
-
const
|
|
2486
|
-
i.value = r.t(i), i.value !==
|
|
2628
|
+
const a = i.value;
|
|
2629
|
+
i.value = r.t(i), i.value !== a && (i.meta.locale = r.props.locale);
|
|
2487
2630
|
}
|
|
2488
|
-
const
|
|
2631
|
+
const n = `message-${w(e, i.key) ? "updated" : "added"}`;
|
|
2489
2632
|
e[i.key] = Object.freeze(
|
|
2490
2633
|
r.hook.message.dispatch(i)
|
|
2491
|
-
), r.emit(
|
|
2634
|
+
), r.emit(n, i);
|
|
2492
2635
|
}
|
|
2493
2636
|
return t;
|
|
2494
2637
|
}
|
|
@@ -2499,104 +2642,104 @@ function Gi(e, t) {
|
|
|
2499
2642
|
}
|
|
2500
2643
|
}
|
|
2501
2644
|
function vr(e, t, r, i) {
|
|
2502
|
-
if (
|
|
2503
|
-
const
|
|
2504
|
-
delete e[i], r.emit("message-removed",
|
|
2645
|
+
if (w(e, i)) {
|
|
2646
|
+
const n = e[i];
|
|
2647
|
+
delete e[i], r.emit("message-removed", n);
|
|
2505
2648
|
}
|
|
2506
|
-
return t.buffer === !0 && (t._b = t._b.filter((
|
|
2649
|
+
return t.buffer === !0 && (t._b = t._b.filter((n) => (n[0] = n[0].filter((a) => a.key !== i), n[1] || n[0].length))), t;
|
|
2507
2650
|
}
|
|
2508
|
-
function Yi(e, t, r, i,
|
|
2509
|
-
for (const
|
|
2510
|
-
const s = e[
|
|
2511
|
-
(!
|
|
2651
|
+
function Yi(e, t, r, i, n) {
|
|
2652
|
+
for (const a in e) {
|
|
2653
|
+
const s = e[a];
|
|
2654
|
+
(!n || s.type === n) && !i(s) && vr(e, t, r, a);
|
|
2512
2655
|
}
|
|
2513
2656
|
}
|
|
2514
|
-
function Qi(e, t, r, i,
|
|
2515
|
-
for (const
|
|
2516
|
-
const s = e[
|
|
2517
|
-
|
|
2657
|
+
function Qi(e, t, r, i, n) {
|
|
2658
|
+
for (const a in e) {
|
|
2659
|
+
const s = e[a];
|
|
2660
|
+
n = i(n, s);
|
|
2518
2661
|
}
|
|
2519
|
-
return
|
|
2662
|
+
return n;
|
|
2520
2663
|
}
|
|
2521
|
-
function Zi(e, t, r, i,
|
|
2664
|
+
function Zi(e, t, r, i, n) {
|
|
2522
2665
|
if (Array.isArray(i)) {
|
|
2523
2666
|
if (t.buffer) {
|
|
2524
|
-
t._b.push([i,
|
|
2667
|
+
t._b.push([i, n]);
|
|
2525
2668
|
return;
|
|
2526
2669
|
}
|
|
2527
|
-
const
|
|
2670
|
+
const a = new Set(
|
|
2528
2671
|
i.map((s) => (t.set(s), s.key))
|
|
2529
2672
|
);
|
|
2530
|
-
typeof
|
|
2531
|
-
(s) => s.type !==
|
|
2532
|
-
) : typeof
|
|
2673
|
+
typeof n == "string" ? t.filter(
|
|
2674
|
+
(s) => s.type !== n || a.has(s.key)
|
|
2675
|
+
) : typeof n == "function" && t.filter((s) => !n(s) || a.has(s.key));
|
|
2533
2676
|
} else
|
|
2534
|
-
for (const
|
|
2535
|
-
const s = r.at(
|
|
2536
|
-
s ? s.store.apply(i[
|
|
2677
|
+
for (const a in i) {
|
|
2678
|
+
const s = r.at(a);
|
|
2679
|
+
s ? s.store.apply(i[a], n) : Xi(r, t, a, i[a], n);
|
|
2537
2680
|
}
|
|
2538
2681
|
}
|
|
2539
2682
|
function Ji(e, ...t) {
|
|
2540
|
-
const r = `${e.name}-set`, i = (
|
|
2541
|
-
key: Ct(
|
|
2683
|
+
const r = `${e.name}-set`, i = (n) => /* @__PURE__ */ B({
|
|
2684
|
+
key: Ct(n),
|
|
2542
2685
|
type: "error",
|
|
2543
|
-
value:
|
|
2686
|
+
value: n,
|
|
2544
2687
|
meta: { source: r, autoClear: !0 }
|
|
2545
2688
|
});
|
|
2546
|
-
return t.filter((
|
|
2547
|
-
if (typeof
|
|
2548
|
-
return
|
|
2689
|
+
return t.filter((n) => !!n).map((n) => {
|
|
2690
|
+
if (typeof n == "string" && (n = [n]), Array.isArray(n))
|
|
2691
|
+
return n.map((a) => i(a));
|
|
2549
2692
|
{
|
|
2550
|
-
const
|
|
2551
|
-
for (const s in
|
|
2552
|
-
Array.isArray(
|
|
2693
|
+
const a = {};
|
|
2694
|
+
for (const s in n)
|
|
2695
|
+
Array.isArray(n[s]) ? a[s] = n[s].map(
|
|
2553
2696
|
(l) => i(l)
|
|
2554
|
-
) :
|
|
2555
|
-
return
|
|
2697
|
+
) : a[s] = [i(n[s])];
|
|
2698
|
+
return a;
|
|
2556
2699
|
}
|
|
2557
2700
|
});
|
|
2558
2701
|
}
|
|
2559
|
-
function Xi(e, t, r, i,
|
|
2702
|
+
function Xi(e, t, r, i, n) {
|
|
2560
2703
|
var s;
|
|
2561
|
-
const
|
|
2562
|
-
|
|
2704
|
+
const a = t._m;
|
|
2705
|
+
a.has(r) || a.set(r, []), t._r || (t._r = Lr(e, t)), (s = a.get(r)) == null || s.push([i, n]);
|
|
2563
2706
|
}
|
|
2564
|
-
function
|
|
2707
|
+
function Lr(e, t) {
|
|
2565
2708
|
return e.on(
|
|
2566
2709
|
"child.deep",
|
|
2567
2710
|
({ payload: r }) => {
|
|
2568
|
-
t._m.forEach((i,
|
|
2569
|
-
e.at(
|
|
2570
|
-
r.store.apply(
|
|
2571
|
-
}), t._m.delete(
|
|
2711
|
+
t._m.forEach((i, n) => {
|
|
2712
|
+
e.at(n) === r && (i.forEach(([a, s]) => {
|
|
2713
|
+
r.store.apply(a, s);
|
|
2714
|
+
}), t._m.delete(n));
|
|
2572
2715
|
}), t._m.size === 0 && t._r && (e.off(t._r), t._r = void 0);
|
|
2573
2716
|
}
|
|
2574
2717
|
);
|
|
2575
2718
|
}
|
|
2576
|
-
function
|
|
2719
|
+
function en(e, t) {
|
|
2577
2720
|
t.buffer = !1, t._b.forEach(([r, i]) => t.apply(r, i)), t._b = [];
|
|
2578
2721
|
}
|
|
2579
|
-
function
|
|
2722
|
+
function tn() {
|
|
2580
2723
|
const e = {};
|
|
2581
2724
|
let t;
|
|
2582
2725
|
return {
|
|
2583
|
-
count: (...r) =>
|
|
2726
|
+
count: (...r) => rn(t, e, ...r),
|
|
2584
2727
|
init(r) {
|
|
2585
2728
|
t = r, r.on("message-added.deep", Vt(e, 1)), r.on("message-removed.deep", Vt(e, -1));
|
|
2586
2729
|
},
|
|
2587
|
-
merge: (r) =>
|
|
2730
|
+
merge: (r) => zt(t, e, r),
|
|
2588
2731
|
settled(r) {
|
|
2589
|
-
return
|
|
2732
|
+
return w(e, r) ? e[r].promise : Promise.resolve();
|
|
2590
2733
|
},
|
|
2591
|
-
unmerge: (r) =>
|
|
2734
|
+
unmerge: (r) => zt(t, e, r, !0),
|
|
2592
2735
|
value(r) {
|
|
2593
|
-
return
|
|
2736
|
+
return w(e, r) ? e[r].count : 0;
|
|
2594
2737
|
}
|
|
2595
2738
|
};
|
|
2596
2739
|
}
|
|
2597
|
-
function
|
|
2598
|
-
if (i =
|
|
2599
|
-
const
|
|
2740
|
+
function rn(e, t, r, i, n = 0) {
|
|
2741
|
+
if (i = nn(i || r), !w(t, r)) {
|
|
2742
|
+
const a = {
|
|
2600
2743
|
condition: i,
|
|
2601
2744
|
count: 0,
|
|
2602
2745
|
name: r,
|
|
@@ -2606,57 +2749,57 @@ function ra(e, t, r, i, a = 0) {
|
|
|
2606
2749
|
}
|
|
2607
2750
|
// eslint-disable-line @typescript-eslint/no-empty-function
|
|
2608
2751
|
};
|
|
2609
|
-
t[r] =
|
|
2610
|
-
(s, l) => s +
|
|
2611
|
-
|
|
2752
|
+
t[r] = a, n = e.store.reduce(
|
|
2753
|
+
(s, l) => s + a.condition(l) * 1,
|
|
2754
|
+
n
|
|
2612
2755
|
), e.each((s) => {
|
|
2613
|
-
s.ledger.count(
|
|
2756
|
+
s.ledger.count(a.name, a.condition), n += s.ledger.value(a.name);
|
|
2614
2757
|
});
|
|
2615
2758
|
}
|
|
2616
|
-
return
|
|
2759
|
+
return $r(t[r], n).promise;
|
|
2617
2760
|
}
|
|
2618
|
-
function
|
|
2761
|
+
function nn(e) {
|
|
2619
2762
|
return typeof e == "function" ? e : (t) => t.type === e;
|
|
2620
2763
|
}
|
|
2621
|
-
function
|
|
2764
|
+
function $r(e, t) {
|
|
2622
2765
|
const r = e.count, i = e.count + t;
|
|
2623
|
-
return e.count = i, r === 0 && i !== 0 ? (e.node.emit(`unsettled:${e.name}`, e.count, !1), e.promise = new Promise((
|
|
2766
|
+
return e.count = i, r === 0 && i !== 0 ? (e.node.emit(`unsettled:${e.name}`, e.count, !1), e.promise = new Promise((n) => e.resolve = n)) : r !== 0 && i === 0 && (e.node.emit(`settled:${e.name}`, e.count, !1), e.resolve()), e.node.emit(`count:${e.name}`, e.count, !1), e;
|
|
2624
2767
|
}
|
|
2625
2768
|
function Vt(e, t) {
|
|
2626
2769
|
return (r) => {
|
|
2627
2770
|
for (const i in e) {
|
|
2628
|
-
const
|
|
2629
|
-
|
|
2771
|
+
const n = e[i];
|
|
2772
|
+
n.condition(r.payload) && $r(n, t);
|
|
2630
2773
|
}
|
|
2631
2774
|
};
|
|
2632
2775
|
}
|
|
2633
|
-
function
|
|
2634
|
-
const
|
|
2635
|
-
for (const
|
|
2636
|
-
const s = t[
|
|
2637
|
-
i || r.ledger.count(
|
|
2638
|
-
const l = r.ledger.value(
|
|
2776
|
+
function zt(e, t, r, i = !1) {
|
|
2777
|
+
const n = e;
|
|
2778
|
+
for (const a in t) {
|
|
2779
|
+
const s = t[a].condition;
|
|
2780
|
+
i || r.ledger.count(a, s);
|
|
2781
|
+
const l = r.ledger.value(a) * (i ? -1 : 1);
|
|
2639
2782
|
if (e) {
|
|
2640
2783
|
do
|
|
2641
|
-
e.ledger.count(
|
|
2784
|
+
e.ledger.count(a, s, l), e = e.parent;
|
|
2642
2785
|
while (e);
|
|
2643
|
-
e =
|
|
2786
|
+
e = n;
|
|
2644
2787
|
}
|
|
2645
2788
|
}
|
|
2646
2789
|
}
|
|
2647
|
-
var Pt = /* @__PURE__ */ new Map(),
|
|
2648
|
-
function
|
|
2649
|
-
e.props.id && (Pt.set(e.props.id, e),
|
|
2790
|
+
var Pt = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Map(), xt = yr();
|
|
2791
|
+
function an(e) {
|
|
2792
|
+
e.props.id && (Pt.set(e.props.id, e), ze.set(e, e.props.id), xt(e, {
|
|
2650
2793
|
payload: e,
|
|
2651
2794
|
name: e.props.id,
|
|
2652
2795
|
bubble: !1,
|
|
2653
2796
|
origin: e
|
|
2654
2797
|
}));
|
|
2655
2798
|
}
|
|
2656
|
-
function
|
|
2657
|
-
if (
|
|
2658
|
-
const t =
|
|
2659
|
-
|
|
2799
|
+
function sn(e) {
|
|
2800
|
+
if (ze.has(e)) {
|
|
2801
|
+
const t = ze.get(e);
|
|
2802
|
+
ze.delete(e), Pt.delete(t), xt(e, {
|
|
2660
2803
|
payload: null,
|
|
2661
2804
|
name: t,
|
|
2662
2805
|
bubble: !1,
|
|
@@ -2664,25 +2807,25 @@ function na(e) {
|
|
|
2664
2807
|
});
|
|
2665
2808
|
}
|
|
2666
2809
|
}
|
|
2667
|
-
function
|
|
2810
|
+
function Oe(e) {
|
|
2668
2811
|
return Pt.get(e);
|
|
2669
2812
|
}
|
|
2670
|
-
function
|
|
2813
|
+
function ln(e, t) {
|
|
2671
2814
|
return xt.on(e, t);
|
|
2672
2815
|
}
|
|
2673
|
-
function
|
|
2816
|
+
function gt(e, t, r) {
|
|
2674
2817
|
let i = !0;
|
|
2675
2818
|
return t in e.config._t ? i = !1 : e.emit(`config:${t}`, r, !1), t in e.props || (e.emit("prop", { prop: t, value: r }), e.emit(`prop:${t}`, r)), i;
|
|
2676
2819
|
}
|
|
2677
|
-
function
|
|
2820
|
+
function on(e = {}) {
|
|
2678
2821
|
const t = /* @__PURE__ */ new Set(), r = {
|
|
2679
2822
|
...e,
|
|
2680
|
-
_add: (
|
|
2681
|
-
_rm: (
|
|
2823
|
+
_add: (n) => t.add(n),
|
|
2824
|
+
_rm: (n) => t.delete(n)
|
|
2682
2825
|
};
|
|
2683
2826
|
return new Proxy(r, {
|
|
2684
|
-
set(
|
|
2685
|
-
return typeof
|
|
2827
|
+
set(n, a, s, l) {
|
|
2828
|
+
return typeof a == "string" && t.forEach((o) => gt(o, a, s)), Reflect.set(n, a, s, l);
|
|
2686
2829
|
}
|
|
2687
2830
|
});
|
|
2688
2831
|
}
|
|
@@ -2693,130 +2836,130 @@ function _r(e, t) {
|
|
|
2693
2836
|
r.dispatchEvent(i);
|
|
2694
2837
|
return;
|
|
2695
2838
|
}
|
|
2696
|
-
|
|
2839
|
+
ge(151, e);
|
|
2697
2840
|
}
|
|
2698
|
-
function
|
|
2841
|
+
function un(e) {
|
|
2699
2842
|
const t = (r) => {
|
|
2700
2843
|
for (const i in r.store) {
|
|
2701
|
-
const
|
|
2702
|
-
|
|
2844
|
+
const n = r.store[i];
|
|
2845
|
+
n.type === "error" || n.type === "ui" && i === "incomplete" ? r.store.remove(i) : n.type === "state" && r.store.set({ ...n, value: !1 });
|
|
2703
2846
|
}
|
|
2704
2847
|
};
|
|
2705
2848
|
t(e), e.walk(t);
|
|
2706
2849
|
}
|
|
2707
2850
|
function Tr(e, t) {
|
|
2708
|
-
const r = typeof e == "string" ?
|
|
2851
|
+
const r = typeof e == "string" ? Oe(e) : e;
|
|
2709
2852
|
if (r) {
|
|
2710
2853
|
const i = (s) => {
|
|
2711
2854
|
const l = K(s.props.initial);
|
|
2712
2855
|
return l !== void 0 ? l : s.type === "group" ? {} : s.type === "list" ? [] : void 0;
|
|
2713
2856
|
};
|
|
2714
2857
|
r._e.pause(r);
|
|
2715
|
-
const
|
|
2716
|
-
return t && !G(t) && (r.props.initial =
|
|
2858
|
+
const n = K(t);
|
|
2859
|
+
return t && !G(t) && (r.props.initial = Fe(n) ? ke(n) : n, r.props._init = r.props.initial), r.input(i(r), !1), r.walk((s) => {
|
|
2717
2860
|
s.type === "list" && s.sync || s.input(i(s), !1);
|
|
2718
2861
|
}), r.input(
|
|
2719
|
-
G(
|
|
2862
|
+
G(n) && n ? n : i(r),
|
|
2720
2863
|
!1
|
|
2721
|
-
), r.type !== "input" && t && !G(t) &&
|
|
2722
|
-
s.props.initial =
|
|
2723
|
-
}), r._e.play(r),
|
|
2864
|
+
), r.type !== "input" && t && !G(t) && Fe(t) && r.walk((s) => {
|
|
2865
|
+
s.props.initial = Fe(s.value) ? ke(s.value) : s.value, s.props._init = s.props.initial;
|
|
2866
|
+
}), r._e.play(r), un(r), r.emit("reset", r), r;
|
|
2724
2867
|
}
|
|
2725
|
-
|
|
2868
|
+
ge(152, e);
|
|
2726
2869
|
}
|
|
2727
|
-
var
|
|
2870
|
+
var cn = {
|
|
2728
2871
|
delimiter: ".",
|
|
2729
2872
|
delay: 0,
|
|
2730
2873
|
locale: "en",
|
|
2731
2874
|
rootClasses: (e) => ({ [`formkit-${hr(e)}`]: !0 })
|
|
2732
|
-
}, Sr = Symbol("index"),
|
|
2733
|
-
function
|
|
2875
|
+
}, Sr = Symbol("index"), bt = Symbol("removed"), ht = Symbol("moved"), Cr = Symbol("inserted");
|
|
2876
|
+
function pn(e) {
|
|
2734
2877
|
return e.type === "list" && Array.isArray(e._value);
|
|
2735
2878
|
}
|
|
2736
|
-
function
|
|
2879
|
+
function Ee(e) {
|
|
2737
2880
|
return e && typeof e == "object" && e.__FKNode__ === !0;
|
|
2738
2881
|
}
|
|
2739
|
-
var
|
|
2740
|
-
|
|
2741
|
-
},
|
|
2742
|
-
_c: I(
|
|
2743
|
-
add: I(
|
|
2744
|
-
addProps: I(
|
|
2745
|
-
address: I(
|
|
2746
|
-
at: I(
|
|
2747
|
-
bubble: I(
|
|
2748
|
-
clearErrors: I(
|
|
2749
|
-
calm: I($
|
|
2882
|
+
var qe = (e, t, r) => {
|
|
2883
|
+
q(102, [e, r]);
|
|
2884
|
+
}, fn = {
|
|
2885
|
+
_c: I(Dn, qe, !1),
|
|
2886
|
+
add: I(Cn),
|
|
2887
|
+
addProps: I(Sn),
|
|
2888
|
+
address: I(Rn, qe, !1),
|
|
2889
|
+
at: I(On),
|
|
2890
|
+
bubble: I(zi),
|
|
2891
|
+
clearErrors: I(Bn),
|
|
2892
|
+
calm: I($n),
|
|
2750
2893
|
config: I(!1),
|
|
2751
|
-
define: I(
|
|
2752
|
-
disturb: I(
|
|
2753
|
-
destroy: I(
|
|
2754
|
-
extend: I(
|
|
2755
|
-
hydrate: I(
|
|
2756
|
-
index: I(
|
|
2894
|
+
define: I(Tn),
|
|
2895
|
+
disturb: I(Ln),
|
|
2896
|
+
destroy: I(_n),
|
|
2897
|
+
extend: I(Kn),
|
|
2898
|
+
hydrate: I(yn),
|
|
2899
|
+
index: I(In, Mn, !1),
|
|
2757
2900
|
input: I(Ar),
|
|
2758
|
-
each: I(
|
|
2901
|
+
each: I(An),
|
|
2759
2902
|
emit: I(Vi),
|
|
2760
|
-
find: I(
|
|
2761
|
-
on: I(
|
|
2762
|
-
off: I(
|
|
2763
|
-
parent: I(!1,
|
|
2903
|
+
find: I(Nn),
|
|
2904
|
+
on: I(qi),
|
|
2905
|
+
off: I(Bi),
|
|
2906
|
+
parent: I(!1, kn),
|
|
2764
2907
|
plugins: I(!1),
|
|
2765
|
-
remove: I(
|
|
2766
|
-
root: I(
|
|
2767
|
-
reset: I(
|
|
2768
|
-
resetConfig: I(
|
|
2769
|
-
setErrors: I(
|
|
2770
|
-
submit: I(
|
|
2771
|
-
t: I(
|
|
2908
|
+
remove: I(wn),
|
|
2909
|
+
root: I(jn, qe, !1),
|
|
2910
|
+
reset: I(zn),
|
|
2911
|
+
resetConfig: I(xn),
|
|
2912
|
+
setErrors: I(qn),
|
|
2913
|
+
submit: I(Vn),
|
|
2914
|
+
t: I(Un),
|
|
2772
2915
|
use: I(Mt),
|
|
2773
|
-
name: I(
|
|
2774
|
-
walk: I(
|
|
2916
|
+
name: I(Fn, !1, !1),
|
|
2917
|
+
walk: I(Pn)
|
|
2775
2918
|
};
|
|
2776
|
-
function
|
|
2777
|
-
return new Map(Object.entries(
|
|
2919
|
+
function mn() {
|
|
2920
|
+
return new Map(Object.entries(fn));
|
|
2778
2921
|
}
|
|
2779
2922
|
function I(e, t, r = !0) {
|
|
2780
2923
|
return {
|
|
2781
|
-
get: e ? (i,
|
|
2782
|
-
set: t !== void 0 ? t :
|
|
2924
|
+
get: e ? (i, n) => r ? (...a) => e(i, n, ...a) : e(i, n) : !1,
|
|
2925
|
+
set: t !== void 0 ? t : qe.bind(null)
|
|
2783
2926
|
};
|
|
2784
2927
|
}
|
|
2785
|
-
function
|
|
2928
|
+
function dn() {
|
|
2786
2929
|
const e = /* @__PURE__ */ new Map();
|
|
2787
2930
|
return new Proxy(e, {
|
|
2788
2931
|
get(t, r) {
|
|
2789
|
-
return e.has(r) || e.set(r,
|
|
2932
|
+
return e.has(r) || e.set(r, kt()), e.get(r);
|
|
2790
2933
|
}
|
|
2791
2934
|
});
|
|
2792
2935
|
}
|
|
2793
|
-
var
|
|
2794
|
-
function
|
|
2936
|
+
var kr = 0, gn = 0;
|
|
2937
|
+
function bn(e) {
|
|
2795
2938
|
var t, r;
|
|
2796
|
-
return ((t = e.parent) == null ? void 0 : t.type) === "list" ? Sr : e.name || `${((r = e.props) == null ? void 0 : r.type) || "input"}_${++
|
|
2939
|
+
return ((t = e.parent) == null ? void 0 : t.type) === "list" ? Sr : e.name || `${((r = e.props) == null ? void 0 : r.type) || "input"}_${++kr}`;
|
|
2797
2940
|
}
|
|
2798
|
-
function
|
|
2799
|
-
return e.type === "group" ?
|
|
2941
|
+
function wr(e) {
|
|
2942
|
+
return e.type === "group" ? ke(
|
|
2800
2943
|
e.value && typeof e.value == "object" && !Array.isArray(e.value) ? e.value : {}
|
|
2801
|
-
) : e.type === "list" ?
|
|
2944
|
+
) : e.type === "list" ? ke(Array.isArray(e.value) ? e.value : []) : e.value;
|
|
2802
2945
|
}
|
|
2803
2946
|
function Ar(e, t, r, i = !0) {
|
|
2804
|
-
return t._value =
|
|
2947
|
+
return t._value = hn(e, e.hook.input.dispatch(r)), e.emit("input", t._value), e.isCreated && e.type === "input" && U(t._value, t.value) && !e.props.mergeStrategy ? (e.emit("commitRaw", t.value), t.settled) : (t.isSettled && e.disturb(), i ? (t._tmo && clearTimeout(t._tmo), t._tmo = setTimeout(
|
|
2805
2948
|
Ge,
|
|
2806
2949
|
e.props.delay,
|
|
2807
2950
|
e,
|
|
2808
2951
|
t
|
|
2809
2952
|
)) : Ge(e, t), t.settled);
|
|
2810
2953
|
}
|
|
2811
|
-
function
|
|
2954
|
+
function hn(e, t) {
|
|
2812
2955
|
switch (e.type) {
|
|
2813
2956
|
case "input":
|
|
2814
2957
|
break;
|
|
2815
2958
|
case "group":
|
|
2816
|
-
(!t || typeof t != "object") &&
|
|
2959
|
+
(!t || typeof t != "object") && q(107, [e, t]);
|
|
2817
2960
|
break;
|
|
2818
2961
|
case "list":
|
|
2819
|
-
Array.isArray(t) ||
|
|
2962
|
+
Array.isArray(t) || q(108, [e, t]);
|
|
2820
2963
|
break;
|
|
2821
2964
|
}
|
|
2822
2965
|
return t;
|
|
@@ -2826,119 +2969,119 @@ function Ge(e, t, r = !0, i = !0) {
|
|
|
2826
2969
|
}
|
|
2827
2970
|
function Pr(e, { name: t, value: r, from: i }) {
|
|
2828
2971
|
if (!Object.isFrozen(e._value)) {
|
|
2829
|
-
if (
|
|
2830
|
-
const
|
|
2972
|
+
if (pn(e)) {
|
|
2973
|
+
const n = r === bt ? [] : r === ht && typeof i == "number" ? e._value.splice(i, 1) : [r];
|
|
2831
2974
|
e._value.splice(
|
|
2832
2975
|
t,
|
|
2833
2976
|
r === ht || i === Cr ? 0 : 1,
|
|
2834
|
-
...
|
|
2977
|
+
...n
|
|
2835
2978
|
);
|
|
2836
2979
|
return;
|
|
2837
2980
|
}
|
|
2838
|
-
r !==
|
|
2981
|
+
r !== bt ? e._value[t] = r : delete e._value[t];
|
|
2839
2982
|
}
|
|
2840
2983
|
}
|
|
2841
|
-
function
|
|
2984
|
+
function yn(e, t) {
|
|
2842
2985
|
const r = t._value;
|
|
2843
|
-
return e.type === "list" && e.sync &&
|
|
2986
|
+
return e.type === "list" && e.sync && vn(e, t), t.children.forEach((i) => {
|
|
2844
2987
|
if (typeof r == "object")
|
|
2845
2988
|
if (i.name in r) {
|
|
2846
|
-
const
|
|
2847
|
-
if (!i.isSettled || (!
|
|
2989
|
+
const n = i.type !== "input" || r[i.name] && typeof r[i.name] == "object" ? ke(r[i.name]) : r[i.name];
|
|
2990
|
+
if (!i.isSettled || (!Fe(n) || i.props.mergeStrategy) && U(n, i._value))
|
|
2848
2991
|
return;
|
|
2849
|
-
i.input(
|
|
2992
|
+
i.input(n, !1);
|
|
2850
2993
|
} else
|
|
2851
2994
|
(e.type !== "list" || typeof i.name == "number") && Pr(t, { name: i.name, value: i.value }), r.__init || (i.type === "group" ? i.input({}, !1) : i.type === "list" ? i.input([], !1) : i.input(void 0, !1));
|
|
2852
2995
|
}), e;
|
|
2853
2996
|
}
|
|
2854
|
-
function
|
|
2997
|
+
function vn(e, t) {
|
|
2855
2998
|
const r = e._value;
|
|
2856
2999
|
if (!Array.isArray(r))
|
|
2857
3000
|
return;
|
|
2858
|
-
const i = [],
|
|
3001
|
+
const i = [], n = new Set(t.children), a = /* @__PURE__ */ new Map();
|
|
2859
3002
|
r.forEach((l, o) => {
|
|
2860
3003
|
if (t.children[o] && t.children[o]._value === l)
|
|
2861
|
-
i.push(t.children[o]),
|
|
3004
|
+
i.push(t.children[o]), n.delete(t.children[o]);
|
|
2862
3005
|
else {
|
|
2863
3006
|
i.push(null);
|
|
2864
|
-
const
|
|
2865
|
-
|
|
3007
|
+
const g = a.get(l) || [];
|
|
3008
|
+
g.push(o), a.set(l, g);
|
|
2866
3009
|
}
|
|
2867
|
-
}),
|
|
2868
|
-
if (
|
|
2869
|
-
const o =
|
|
2870
|
-
i[
|
|
3010
|
+
}), n.size && a.size && n.forEach((l) => {
|
|
3011
|
+
if (a.has(l._value)) {
|
|
3012
|
+
const o = a.get(l._value), g = o.shift();
|
|
3013
|
+
i[g] = l, n.delete(l), o.length || a.delete(l._value);
|
|
2871
3014
|
}
|
|
2872
3015
|
});
|
|
2873
3016
|
const s = [];
|
|
2874
|
-
for (
|
|
3017
|
+
for (a.forEach((l) => {
|
|
2875
3018
|
s.push(...l);
|
|
2876
|
-
});
|
|
2877
|
-
const l =
|
|
3019
|
+
}); n.size && s.length; ) {
|
|
3020
|
+
const l = n.values().next().value, o = s.shift();
|
|
2878
3021
|
if (o === void 0)
|
|
2879
3022
|
break;
|
|
2880
|
-
i[o] = l,
|
|
3023
|
+
i[o] = l, n.delete(l);
|
|
2881
3024
|
}
|
|
2882
3025
|
s.forEach((l, o) => {
|
|
2883
|
-
i[l] =
|
|
2884
|
-
}),
|
|
3026
|
+
i[l] = Zn({ value: o });
|
|
3027
|
+
}), n.size && n.forEach((l) => {
|
|
2885
3028
|
if (!("__FKP" in l)) {
|
|
2886
3029
|
const o = l._c.parent;
|
|
2887
|
-
if (!o ||
|
|
3030
|
+
if (!o || Jn(o))
|
|
2888
3031
|
return;
|
|
2889
3032
|
o.ledger.unmerge(l), l._c.parent = null, l.destroy();
|
|
2890
3033
|
}
|
|
2891
3034
|
}), t.children = i;
|
|
2892
3035
|
}
|
|
2893
|
-
function
|
|
3036
|
+
function Ln(e, t) {
|
|
2894
3037
|
var r;
|
|
2895
3038
|
return t._d <= 0 && (t.isSettled = !1, e.emit("settled", !1, !1), t.settled = new Promise((i) => {
|
|
2896
3039
|
t._resolve = i;
|
|
2897
3040
|
}), e.parent && ((r = e.parent) == null || r.disturb())), t._d++, e;
|
|
2898
3041
|
}
|
|
2899
|
-
function $
|
|
3042
|
+
function $n(e, t, r) {
|
|
2900
3043
|
var i;
|
|
2901
3044
|
if (r !== void 0 && e.type !== "input") {
|
|
2902
3045
|
Pr(t, r);
|
|
2903
|
-
const
|
|
2904
|
-
return Ge(e, t, !0,
|
|
3046
|
+
const n = !!(e.config.mergeStrategy && e.config.mergeStrategy[r.name]);
|
|
3047
|
+
return Ge(e, t, !0, n);
|
|
2905
3048
|
}
|
|
2906
3049
|
t._d > 0 && t._d--, t._d === 0 && (t.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((i = e.parent) == null || i.calm({ name: e.name, value: t.value })), t._resolve && t._resolve(t.value));
|
|
2907
3050
|
}
|
|
2908
|
-
function
|
|
2909
|
-
e.emit("destroying", e), e.store.filter(() => !1), e.parent && e.parent.remove(e),
|
|
3051
|
+
function _n(e, t) {
|
|
3052
|
+
e.emit("destroying", e), e.store.filter(() => !1), e.parent && e.parent.remove(e), sn(e), e.emit("destroyed", e), t._e.flush(), t._value = t.value = void 0;
|
|
2910
3053
|
for (const r in t.context)
|
|
2911
3054
|
delete t.context[r];
|
|
2912
3055
|
t.plugins.clear(), t.context = null;
|
|
2913
3056
|
}
|
|
2914
|
-
function
|
|
3057
|
+
function Tn(e, t, r) {
|
|
2915
3058
|
t.type = r.type;
|
|
2916
3059
|
const i = Ce(r);
|
|
2917
3060
|
e.props.__propDefs = xr(
|
|
2918
3061
|
e.props.__propDefs ?? [],
|
|
2919
3062
|
(i == null ? void 0 : i.props) || []
|
|
2920
|
-
), i.props = e.props.__propDefs, t.props.definition = i, t.value = t._value =
|
|
3063
|
+
), i.props = e.props.__propDefs, t.props.definition = i, t.value = t._value = wr({
|
|
2921
3064
|
type: e.type,
|
|
2922
3065
|
value: t.value
|
|
2923
|
-
}), r.forceTypeProp && (e.props.type && (e.props.originalType = e.props.type), t.props.type = r.forceTypeProp), r.family && (t.props.family = r.family), r.features && r.features.forEach((
|
|
3066
|
+
}), r.forceTypeProp && (e.props.type && (e.props.originalType = e.props.type), t.props.type = r.forceTypeProp), r.family && (t.props.family = r.family), r.features && r.features.forEach((n) => n(e)), r.props && e.addProps(r.props), e.emit("defined", r);
|
|
2924
3067
|
}
|
|
2925
|
-
function
|
|
2926
|
-
const i = Array.isArray(r) ? r : Object.keys(r),
|
|
3068
|
+
function Sn(e, t, r) {
|
|
3069
|
+
const i = Array.isArray(r) ? r : Object.keys(r), n = Array.isArray(r) ? {} : i.reduce((s, l) => ("default" in r[l] && (s[l] = r[l].default), s), {});
|
|
2927
3070
|
if (e.props.attrs) {
|
|
2928
3071
|
const s = { ...e.props.attrs };
|
|
2929
3072
|
e.props._emit = !1;
|
|
2930
3073
|
for (const o in s) {
|
|
2931
|
-
const
|
|
2932
|
-
i.includes(
|
|
3074
|
+
const g = Le(o);
|
|
3075
|
+
i.includes(g) && (e.props[g] = s[o], delete s[o]);
|
|
2933
3076
|
}
|
|
2934
3077
|
Array.isArray(r) || i.forEach((o) => {
|
|
2935
|
-
"default" in r[o] && e.props[o] === void 0 && (e.props[o] =
|
|
3078
|
+
"default" in r[o] && e.props[o] === void 0 && (e.props[o] = n[o]);
|
|
2936
3079
|
});
|
|
2937
3080
|
const l = K(t._value);
|
|
2938
|
-
e.props.initial = e.type !== "input" ?
|
|
3081
|
+
e.props.initial = e.type !== "input" ? ke(l) : l, e.props._emit = !0, e.props.attrs = s;
|
|
2939
3082
|
}
|
|
2940
|
-
const
|
|
2941
|
-
return e.props.definition && (e.props.definition.props =
|
|
3083
|
+
const a = xr(e.props.__propDefs ?? [], r);
|
|
3084
|
+
return e.props.definition && (e.props.definition.props = a), e.props.__propDefs = a, e.emit("added-props", r), e;
|
|
2942
3085
|
}
|
|
2943
3086
|
function yt(e) {
|
|
2944
3087
|
return Array.isArray(e) ? e.reduce((t, r) => (t[r] = {}, t), {}) : e;
|
|
@@ -2946,11 +3089,11 @@ function yt(e) {
|
|
|
2946
3089
|
function xr(e, t) {
|
|
2947
3090
|
return Array.isArray(e) && Array.isArray(t) ? e.concat(t) : le(yt(e), yt(t));
|
|
2948
3091
|
}
|
|
2949
|
-
function
|
|
2950
|
-
if (e.type === "input" &&
|
|
3092
|
+
function Cn(e, t, r, i) {
|
|
3093
|
+
if (e.type === "input" && q(100, e), r.parent && r.parent !== e && r.parent.remove(r), !t.children.includes(r)) {
|
|
2951
3094
|
if (i !== void 0 && e.type === "list") {
|
|
2952
|
-
const
|
|
2953
|
-
|
|
3095
|
+
const n = t.children[i];
|
|
3096
|
+
n && "__FKP" in n ? (r._c.uid = n.uid, t.children.splice(i, 1, r)) : t.children.splice(i, 0, r), Array.isArray(e.value) && e.value.length < t.children.length && e.disturb().calm({
|
|
2954
3097
|
name: i,
|
|
2955
3098
|
value: r.value,
|
|
2956
3099
|
from: Cr
|
|
@@ -2966,118 +3109,118 @@ function Sa(e, t, r, i) {
|
|
|
2966
3109
|
r.use(e.plugins);
|
|
2967
3110
|
return Ge(e, t, !1), e.ledger.merge(r), e.emit("child", r), e;
|
|
2968
3111
|
}
|
|
2969
|
-
function
|
|
2970
|
-
return
|
|
3112
|
+
function kn(e, t, r, i) {
|
|
3113
|
+
return Ee(i) ? (e.parent && e.parent !== i && e.parent.remove(e), t.parent = i, e.resetConfig(), i.children.includes(e) ? e.use(i.plugins) : i.add(e), !0) : i === null ? (t.parent = null, !0) : !1;
|
|
2971
3114
|
}
|
|
2972
|
-
function
|
|
3115
|
+
function wn(e, t, r) {
|
|
2973
3116
|
const i = t.children.indexOf(r);
|
|
2974
3117
|
if (i !== -1) {
|
|
2975
3118
|
r.isSettled && e.disturb(), t.children.splice(i, 1);
|
|
2976
|
-
let
|
|
2977
|
-
for (;
|
|
2978
|
-
|
|
2979
|
-
|
|
3119
|
+
let n = Q(r.props.preserve), a = r.parent;
|
|
3120
|
+
for (; n === void 0 && a; )
|
|
3121
|
+
n = Q(a.props.preserve), a = a.parent;
|
|
3122
|
+
n ? e.calm() : e.calm({
|
|
2980
3123
|
name: e.type === "list" ? i : r.name,
|
|
2981
|
-
value:
|
|
3124
|
+
value: bt
|
|
2982
3125
|
}), r.parent = null, r.config._rmn = r;
|
|
2983
3126
|
}
|
|
2984
3127
|
return e.ledger.unmerge(r), e.emit("childRemoved", r), e;
|
|
2985
3128
|
}
|
|
2986
|
-
function
|
|
3129
|
+
function An(e, t, r) {
|
|
2987
3130
|
t.children.forEach((i) => !("__FKP" in i) && r(i));
|
|
2988
3131
|
}
|
|
2989
|
-
function
|
|
2990
|
-
t.children.some((
|
|
2991
|
-
if ("__FKP" in
|
|
3132
|
+
function Pn(e, t, r, i = !1, n = !1) {
|
|
3133
|
+
t.children.some((a) => {
|
|
3134
|
+
if ("__FKP" in a)
|
|
2992
3135
|
return !1;
|
|
2993
|
-
const s = r(
|
|
2994
|
-
return i && s === !1 ? !0 :
|
|
3136
|
+
const s = r(a);
|
|
3137
|
+
return i && s === !1 ? !0 : n && s === !1 ? !1 : a.walk(r, i, n);
|
|
2995
3138
|
});
|
|
2996
3139
|
}
|
|
2997
|
-
function
|
|
3140
|
+
function xn(e, t) {
|
|
2998
3141
|
const r = e.parent || void 0;
|
|
2999
3142
|
t.config = Mr(e.config._t, r), e.walk((i) => i.resetConfig());
|
|
3000
3143
|
}
|
|
3001
|
-
function Mt(e, t, r, i = !0,
|
|
3002
|
-
return Array.isArray(r) || r instanceof Set ? (r.forEach((
|
|
3144
|
+
function Mt(e, t, r, i = !0, n = !0) {
|
|
3145
|
+
return Array.isArray(r) || r instanceof Set ? (r.forEach((a) => Mt(e, t, a)), e) : (t.plugins.has(r) || (n && typeof r.library == "function" && r.library(e), i && r(e) !== !1 && (t.plugins.add(r), e.children.forEach((a) => a.use(r)))), e);
|
|
3003
3146
|
}
|
|
3004
|
-
function
|
|
3005
|
-
if (
|
|
3006
|
-
const
|
|
3007
|
-
return s === -1 ? !1 : (
|
|
3147
|
+
function Mn(e, t, r, i) {
|
|
3148
|
+
if (Ee(e.parent)) {
|
|
3149
|
+
const n = e.parent.children, a = i >= n.length ? n.length - 1 : i < 0 ? 0 : i, s = n.indexOf(e);
|
|
3150
|
+
return s === -1 ? !1 : (n.splice(s, 1), n.splice(a, 0, e), e.parent.children = n, e.parent.type === "list" && e.parent.disturb().calm({ name: a, value: ht, from: s }), !0);
|
|
3008
3151
|
}
|
|
3009
3152
|
return !1;
|
|
3010
3153
|
}
|
|
3011
|
-
function
|
|
3154
|
+
function In(e) {
|
|
3012
3155
|
if (e.parent) {
|
|
3013
3156
|
const t = [...e.parent.children].indexOf(e);
|
|
3014
3157
|
return t === -1 ? e.parent.children.length : t;
|
|
3015
3158
|
}
|
|
3016
3159
|
return -1;
|
|
3017
3160
|
}
|
|
3018
|
-
function
|
|
3161
|
+
function Dn(e, t) {
|
|
3019
3162
|
return t;
|
|
3020
3163
|
}
|
|
3021
|
-
function
|
|
3164
|
+
function Fn(e, t) {
|
|
3022
3165
|
var r;
|
|
3023
3166
|
return ((r = e.parent) == null ? void 0 : r.type) === "list" ? e.index : t.name !== Sr ? t.name : e.index;
|
|
3024
3167
|
}
|
|
3025
|
-
function
|
|
3168
|
+
function Rn(e, t) {
|
|
3026
3169
|
return t.parent ? t.parent.address.concat([e.name]) : [e.name];
|
|
3027
3170
|
}
|
|
3028
|
-
function
|
|
3171
|
+
function On(e, t, r) {
|
|
3029
3172
|
const i = typeof r == "string" ? r.split(e.config.delimiter) : r;
|
|
3030
3173
|
if (!i.length)
|
|
3031
3174
|
return;
|
|
3032
|
-
const
|
|
3033
|
-
let
|
|
3034
|
-
for (
|
|
3175
|
+
const n = i[0];
|
|
3176
|
+
let a = e.parent;
|
|
3177
|
+
for (a || (String(i[0]) === String(e.name) && i.shift(), a = e), n === "$parent" && i.shift(); a && i.length; ) {
|
|
3035
3178
|
const s = i.shift();
|
|
3036
3179
|
switch (s) {
|
|
3037
3180
|
case "$root":
|
|
3038
|
-
|
|
3181
|
+
a = e.root;
|
|
3039
3182
|
break;
|
|
3040
3183
|
case "$parent":
|
|
3041
|
-
|
|
3184
|
+
a = a.parent;
|
|
3042
3185
|
break;
|
|
3043
3186
|
case "$self":
|
|
3044
|
-
|
|
3187
|
+
a = e;
|
|
3045
3188
|
break;
|
|
3046
3189
|
default:
|
|
3047
|
-
|
|
3190
|
+
a = a.children.find(
|
|
3048
3191
|
(l) => !("__FKP" in l) && String(l.name) === String(s)
|
|
3049
|
-
) ||
|
|
3192
|
+
) || En(a, s);
|
|
3050
3193
|
}
|
|
3051
3194
|
}
|
|
3052
|
-
return
|
|
3195
|
+
return a || void 0;
|
|
3053
3196
|
}
|
|
3054
|
-
function
|
|
3197
|
+
function En(e, t) {
|
|
3055
3198
|
const r = String(t).match(/^(find)\((.*)\)$/);
|
|
3056
3199
|
if (r) {
|
|
3057
|
-
const [, i,
|
|
3200
|
+
const [, i, n] = r, a = n.split(",").map((s) => s.trim());
|
|
3058
3201
|
switch (i) {
|
|
3059
3202
|
case "find":
|
|
3060
|
-
return e.find(
|
|
3203
|
+
return e.find(a[0], a[1]);
|
|
3061
3204
|
default:
|
|
3062
3205
|
return;
|
|
3063
3206
|
}
|
|
3064
3207
|
}
|
|
3065
3208
|
}
|
|
3066
|
-
function
|
|
3067
|
-
return
|
|
3068
|
-
}
|
|
3069
|
-
function
|
|
3070
|
-
const i = typeof r == "string" ? (
|
|
3071
|
-
for (;
|
|
3072
|
-
const
|
|
3073
|
-
if (!("__FKP" in
|
|
3074
|
-
if (i(
|
|
3075
|
-
return
|
|
3076
|
-
|
|
3209
|
+
function Nn(e, t, r, i) {
|
|
3210
|
+
return Hn(e, r, i);
|
|
3211
|
+
}
|
|
3212
|
+
function Hn(e, t, r = "name") {
|
|
3213
|
+
const i = typeof r == "string" ? (a) => a[r] == t : r, n = [e];
|
|
3214
|
+
for (; n.length; ) {
|
|
3215
|
+
const a = n.shift();
|
|
3216
|
+
if (!("__FKP" in a)) {
|
|
3217
|
+
if (i(a, t))
|
|
3218
|
+
return a;
|
|
3219
|
+
n.push(...a.children);
|
|
3077
3220
|
}
|
|
3078
3221
|
}
|
|
3079
3222
|
}
|
|
3080
|
-
function
|
|
3223
|
+
function jn(e) {
|
|
3081
3224
|
let t = e;
|
|
3082
3225
|
for (; t.parent; )
|
|
3083
3226
|
t = t.parent;
|
|
@@ -3087,104 +3230,104 @@ function Mr(e = {}, t) {
|
|
|
3087
3230
|
let r;
|
|
3088
3231
|
return new Proxy(e, {
|
|
3089
3232
|
get(...i) {
|
|
3090
|
-
const
|
|
3091
|
-
if (
|
|
3233
|
+
const n = i[1];
|
|
3234
|
+
if (n === "_t")
|
|
3092
3235
|
return e;
|
|
3093
|
-
const
|
|
3094
|
-
if (
|
|
3095
|
-
return
|
|
3236
|
+
const a = Reflect.get(...i);
|
|
3237
|
+
if (a !== void 0)
|
|
3238
|
+
return a;
|
|
3096
3239
|
if (t) {
|
|
3097
|
-
const s = t.config[
|
|
3240
|
+
const s = t.config[n];
|
|
3098
3241
|
if (s !== void 0)
|
|
3099
3242
|
return s;
|
|
3100
3243
|
}
|
|
3101
|
-
if (e.rootConfig && typeof
|
|
3102
|
-
const s = e.rootConfig[
|
|
3244
|
+
if (e.rootConfig && typeof n == "string") {
|
|
3245
|
+
const s = e.rootConfig[n];
|
|
3103
3246
|
if (s !== void 0)
|
|
3104
3247
|
return s;
|
|
3105
3248
|
}
|
|
3106
|
-
return
|
|
3249
|
+
return n === "delay" && (r == null ? void 0 : r.type) === "input" ? 20 : cn[n];
|
|
3107
3250
|
},
|
|
3108
3251
|
set(...i) {
|
|
3109
|
-
const
|
|
3110
|
-
if (
|
|
3111
|
-
return r =
|
|
3112
|
-
if (
|
|
3252
|
+
const n = i[1], a = i[2];
|
|
3253
|
+
if (n === "_n")
|
|
3254
|
+
return r = a, e.rootConfig && e.rootConfig._add(r), !0;
|
|
3255
|
+
if (n === "_rmn")
|
|
3113
3256
|
return e.rootConfig && e.rootConfig._rm(r), r = void 0, !0;
|
|
3114
|
-
if (!U(e[
|
|
3257
|
+
if (!U(e[n], a, !1)) {
|
|
3115
3258
|
const s = Reflect.set(...i);
|
|
3116
|
-
return r && (r.emit(`config:${
|
|
3259
|
+
return r && (r.emit(`config:${n}`, a, !1), gt(r, n, a), r.walk((l) => gt(l, n, a), !1, !0)), s;
|
|
3117
3260
|
}
|
|
3118
3261
|
return !0;
|
|
3119
3262
|
}
|
|
3120
3263
|
});
|
|
3121
3264
|
}
|
|
3122
|
-
function
|
|
3123
|
-
const
|
|
3124
|
-
return e.emit("text",
|
|
3265
|
+
function Un(e, t, r, i = "ui") {
|
|
3266
|
+
const n = typeof r == "string" ? { key: r, value: r, type: i } : r, a = e.hook.text.dispatch(n);
|
|
3267
|
+
return e.emit("text", a, !1), a.value;
|
|
3125
3268
|
}
|
|
3126
|
-
function
|
|
3269
|
+
function Vn(e) {
|
|
3127
3270
|
const t = e.name;
|
|
3128
3271
|
do {
|
|
3129
3272
|
if (e.props.isForm === !0)
|
|
3130
3273
|
break;
|
|
3131
|
-
e.parent ||
|
|
3274
|
+
e.parent || q(106, t), e = e.parent;
|
|
3132
3275
|
} while (e);
|
|
3133
3276
|
e.props.id && _r(e.props.id, e.props.__root);
|
|
3134
3277
|
}
|
|
3135
|
-
function
|
|
3278
|
+
function zn(e, t, r) {
|
|
3136
3279
|
return Tr(e, r);
|
|
3137
3280
|
}
|
|
3138
|
-
function
|
|
3139
|
-
const
|
|
3140
|
-
return Ji(e,
|
|
3281
|
+
function qn(e, t, r, i) {
|
|
3282
|
+
const n = `${e.name}-set`, a = e.hook.setErrors.dispatch({ localErrors: r, childErrors: i });
|
|
3283
|
+
return Ji(e, a.localErrors, a.childErrors).forEach(
|
|
3141
3284
|
(s) => {
|
|
3142
|
-
e.store.apply(s, (l) => l.meta.source ===
|
|
3285
|
+
e.store.apply(s, (l) => l.meta.source === n);
|
|
3143
3286
|
}
|
|
3144
3287
|
), e;
|
|
3145
3288
|
}
|
|
3146
|
-
function
|
|
3147
|
-
return e.store.filter((
|
|
3148
|
-
|
|
3289
|
+
function Bn(e, t, r = !0, i) {
|
|
3290
|
+
return e.store.filter((n) => !(i === void 0 || n.meta.source === i), "error"), r && (i = i || `${e.name}-set`, e.walk((n) => {
|
|
3291
|
+
n.store.filter((a) => !(a.type === "error" && a.meta && a.meta.source === i));
|
|
3149
3292
|
})), e;
|
|
3150
3293
|
}
|
|
3151
|
-
function
|
|
3294
|
+
function Wn(e) {
|
|
3152
3295
|
const t = {
|
|
3153
3296
|
initial: typeof e == "object" ? K(e) : e
|
|
3154
3297
|
};
|
|
3155
|
-
let r, i = !0,
|
|
3298
|
+
let r, i = !0, n = {};
|
|
3156
3299
|
return new Proxy(t, {
|
|
3157
|
-
get(...
|
|
3158
|
-
var
|
|
3159
|
-
const [s, l] =
|
|
3300
|
+
get(...a) {
|
|
3301
|
+
var b, y, P, h;
|
|
3302
|
+
const [s, l] = a;
|
|
3160
3303
|
let o;
|
|
3161
|
-
|
|
3162
|
-
const
|
|
3163
|
-
return (h =
|
|
3304
|
+
w(t, l) ? (o = Reflect.get(...a), (b = n[l]) != null && b.boolean && (o = Ui(o))) : r && typeof l == "string" && r.config[l] !== void 0 ? (o = r.config[l], l === "mergeStrategy" && (r == null ? void 0 : r.type) === "input" && Ke(o) && r.name in o && (o = o[r.name])) : o = (y = n[l]) == null ? void 0 : y.default;
|
|
3305
|
+
const g = (P = n[l]) == null ? void 0 : P.getter;
|
|
3306
|
+
return (h = n[l]) != null && h.boolean && (o = !!o), g ? g(o, r) : o;
|
|
3164
3307
|
},
|
|
3165
|
-
set(
|
|
3308
|
+
set(a, s, l, o) {
|
|
3166
3309
|
var P;
|
|
3167
3310
|
if (s === "_n")
|
|
3168
3311
|
return r = l, !0;
|
|
3169
3312
|
if (s === "_emit")
|
|
3170
3313
|
return i = l, !0;
|
|
3171
|
-
let { prop:
|
|
3314
|
+
let { prop: g, value: b } = r.hook.prop.dispatch({
|
|
3172
3315
|
prop: s,
|
|
3173
3316
|
value: l
|
|
3174
3317
|
});
|
|
3175
|
-
const y = (P =
|
|
3176
|
-
if (
|
|
3177
|
-
const h = Reflect.set(
|
|
3178
|
-
return
|
|
3318
|
+
const y = (P = n[g]) == null ? void 0 : P.setter;
|
|
3319
|
+
if (b = y ? y(b, r) : b, !U(t[g], b, !1) || typeof b == "object") {
|
|
3320
|
+
const h = Reflect.set(a, g, b, o);
|
|
3321
|
+
return g === "__propDefs" && (n = yt(b)), i && (r.emit("prop", { prop: g, value: b }), typeof g == "string" && r.emit(`prop:${g}`, b)), h;
|
|
3179
3322
|
}
|
|
3180
3323
|
return !0;
|
|
3181
3324
|
}
|
|
3182
3325
|
});
|
|
3183
3326
|
}
|
|
3184
|
-
function
|
|
3327
|
+
function Kn(e, t, r, i) {
|
|
3185
3328
|
return t.traps.set(r, i), e;
|
|
3186
3329
|
}
|
|
3187
|
-
function
|
|
3330
|
+
function Gn(e, t) {
|
|
3188
3331
|
if (e.props.definition)
|
|
3189
3332
|
return e.define(e.props.definition);
|
|
3190
3333
|
for (const r of t) {
|
|
@@ -3193,8 +3336,8 @@ function Ka(e, t) {
|
|
|
3193
3336
|
typeof r.library == "function" && r.library(e);
|
|
3194
3337
|
}
|
|
3195
3338
|
}
|
|
3196
|
-
function
|
|
3197
|
-
const t =
|
|
3339
|
+
function Yn(e) {
|
|
3340
|
+
const t = wr(e), r = Mr(e.config || {}, e.parent);
|
|
3198
3341
|
return {
|
|
3199
3342
|
_d: 0,
|
|
3200
3343
|
_e: yr(),
|
|
@@ -3204,45 +3347,45 @@ function Ga(e) {
|
|
|
3204
3347
|
_value: t,
|
|
3205
3348
|
children: Mi(e.children || []),
|
|
3206
3349
|
config: r,
|
|
3207
|
-
hook:
|
|
3350
|
+
hook: dn(),
|
|
3208
3351
|
isCreated: !1,
|
|
3209
3352
|
isSettled: !0,
|
|
3210
|
-
ledger:
|
|
3211
|
-
name:
|
|
3353
|
+
ledger: tn(),
|
|
3354
|
+
name: bn(e),
|
|
3212
3355
|
parent: e.parent || null,
|
|
3213
3356
|
plugins: /* @__PURE__ */ new Set(),
|
|
3214
|
-
props:
|
|
3357
|
+
props: Wn(t),
|
|
3215
3358
|
settled: Promise.resolve(t),
|
|
3216
|
-
store:
|
|
3359
|
+
store: Wi(!0),
|
|
3217
3360
|
sync: e.sync || !1,
|
|
3218
|
-
traps:
|
|
3361
|
+
traps: mn(),
|
|
3219
3362
|
type: e.type || "input",
|
|
3220
3363
|
value: t
|
|
3221
3364
|
};
|
|
3222
3365
|
}
|
|
3223
|
-
function
|
|
3224
|
-
var i,
|
|
3366
|
+
function Qn(e, t) {
|
|
3367
|
+
var i, n;
|
|
3225
3368
|
const r = (i = t.props) == null ? void 0 : i.id;
|
|
3226
|
-
if (r || (
|
|
3369
|
+
if (r || (n = t.props) == null || delete n.id, e.ledger.init(e.store._n = e.props._n = e.config._n = e), e.props._emit = !1, Object.assign(
|
|
3227
3370
|
e.props,
|
|
3228
|
-
r ? {} : { id: `input_${
|
|
3371
|
+
r ? {} : { id: `input_${gn++}` },
|
|
3229
3372
|
t.props ?? {}
|
|
3230
|
-
), e.props._emit = !0,
|
|
3373
|
+
), e.props._emit = !0, Gn(
|
|
3231
3374
|
e,
|
|
3232
3375
|
/* @__PURE__ */ new Set([
|
|
3233
3376
|
...t.plugins || [],
|
|
3234
3377
|
...e.parent ? e.parent.plugins : []
|
|
3235
3378
|
])
|
|
3236
3379
|
), t.plugins)
|
|
3237
|
-
for (const
|
|
3238
|
-
Mt(e, e._c,
|
|
3239
|
-
return e.each((
|
|
3380
|
+
for (const a of t.plugins)
|
|
3381
|
+
Mt(e, e._c, a, !0, !1);
|
|
3382
|
+
return e.each((a) => e.add(a)), e.parent && e.parent.add(e, t.index), e.type === "input" && e.children.length && q(100, e), Ar(e, e._c, e._value, !1), e.store.release(), r && an(e), e.emit("created", e), e.isCreated = !0, e;
|
|
3240
3383
|
}
|
|
3241
|
-
function
|
|
3384
|
+
function Zn(e) {
|
|
3242
3385
|
return {
|
|
3243
3386
|
__FKP: !0,
|
|
3244
3387
|
uid: Symbol(),
|
|
3245
|
-
name: (e == null ? void 0 : e.name) ?? `p_${
|
|
3388
|
+
name: (e == null ? void 0 : e.name) ?? `p_${kr++}`,
|
|
3246
3389
|
value: (e == null ? void 0 : e.value) ?? null,
|
|
3247
3390
|
_value: (e == null ? void 0 : e.value) ?? null,
|
|
3248
3391
|
type: (e == null ? void 0 : e.type) ?? "input",
|
|
@@ -3255,50 +3398,50 @@ function Qa(e) {
|
|
|
3255
3398
|
isSettled: !0
|
|
3256
3399
|
};
|
|
3257
3400
|
}
|
|
3258
|
-
function
|
|
3401
|
+
function Jn(e) {
|
|
3259
3402
|
return "__FKP" in e;
|
|
3260
3403
|
}
|
|
3261
|
-
function
|
|
3262
|
-
const t = e || {}, r =
|
|
3263
|
-
get(...
|
|
3264
|
-
const [,
|
|
3265
|
-
if (
|
|
3404
|
+
function Xn(e) {
|
|
3405
|
+
const t = e || {}, r = Yn(t), i = new Proxy(r, {
|
|
3406
|
+
get(...n) {
|
|
3407
|
+
const [, a] = n;
|
|
3408
|
+
if (a === "__FKNode__")
|
|
3266
3409
|
return !0;
|
|
3267
|
-
const s = r.traps.get(
|
|
3268
|
-
return s && s.get ? s.get(i, r) : Reflect.get(...
|
|
3410
|
+
const s = r.traps.get(a);
|
|
3411
|
+
return s && s.get ? s.get(i, r) : Reflect.get(...n);
|
|
3269
3412
|
},
|
|
3270
|
-
set(...
|
|
3271
|
-
const [,
|
|
3272
|
-
return l && l.set ? l.set(i, r,
|
|
3413
|
+
set(...n) {
|
|
3414
|
+
const [, a, s] = n, l = r.traps.get(a);
|
|
3415
|
+
return l && l.set ? l.set(i, r, a, s) : Reflect.set(...n);
|
|
3273
3416
|
}
|
|
3274
3417
|
});
|
|
3275
|
-
return
|
|
3418
|
+
return Qn(i, t);
|
|
3276
3419
|
}
|
|
3277
3420
|
function vt(e) {
|
|
3278
|
-
return typeof e != "string" &&
|
|
3421
|
+
return typeof e != "string" && w(e, "$el");
|
|
3279
3422
|
}
|
|
3280
|
-
function
|
|
3281
|
-
return typeof e != "string" &&
|
|
3423
|
+
function Lt(e) {
|
|
3424
|
+
return typeof e != "string" && w(e, "$cmp");
|
|
3282
3425
|
}
|
|
3283
3426
|
function ye(e) {
|
|
3284
|
-
return !e || typeof e == "string" ? !1 :
|
|
3427
|
+
return !e || typeof e == "string" ? !1 : w(e, "if") && w(e, "then");
|
|
3285
3428
|
}
|
|
3286
|
-
function
|
|
3429
|
+
function ea(e) {
|
|
3287
3430
|
return typeof e != "string" && "$formkit" in e;
|
|
3288
3431
|
}
|
|
3289
|
-
function
|
|
3432
|
+
function ta(e) {
|
|
3290
3433
|
if (typeof e == "string")
|
|
3291
3434
|
return {
|
|
3292
3435
|
$el: "text",
|
|
3293
3436
|
children: e
|
|
3294
3437
|
};
|
|
3295
|
-
if (
|
|
3438
|
+
if (ea(e)) {
|
|
3296
3439
|
const {
|
|
3297
3440
|
$formkit: t,
|
|
3298
3441
|
for: r,
|
|
3299
3442
|
if: i,
|
|
3300
|
-
children:
|
|
3301
|
-
bind:
|
|
3443
|
+
children: n,
|
|
3444
|
+
bind: a,
|
|
3302
3445
|
...s
|
|
3303
3446
|
} = e;
|
|
3304
3447
|
return Object.assign(
|
|
@@ -3308,8 +3451,8 @@ function en(e) {
|
|
|
3308
3451
|
},
|
|
3309
3452
|
i ? { if: i } : {},
|
|
3310
3453
|
r ? { for: r } : {},
|
|
3311
|
-
|
|
3312
|
-
|
|
3454
|
+
n ? { children: n } : {},
|
|
3455
|
+
a ? { bind: a } : {}
|
|
3313
3456
|
);
|
|
3314
3457
|
}
|
|
3315
3458
|
return e;
|
|
@@ -3318,7 +3461,7 @@ function Y(e) {
|
|
|
3318
3461
|
let t;
|
|
3319
3462
|
const r = /* @__PURE__ */ new Set(), i = function(m, d) {
|
|
3320
3463
|
return typeof m == "function" ? m(d) : m;
|
|
3321
|
-
},
|
|
3464
|
+
}, n = [
|
|
3322
3465
|
{
|
|
3323
3466
|
"&&": (p, m, d) => i(p, d) && i(m, d),
|
|
3324
3467
|
"||": (p, m, d) => i(p, d) || i(m, d)
|
|
@@ -3342,112 +3485,112 @@ function Y(e) {
|
|
|
3342
3485
|
"/": (p, m, d) => i(p, d) / i(m, d),
|
|
3343
3486
|
"%": (p, m, d) => i(p, d) % i(m, d)
|
|
3344
3487
|
}
|
|
3345
|
-
],
|
|
3346
|
-
function l(p, m, d,
|
|
3347
|
-
const S = p.filter((
|
|
3348
|
-
return S.length ? S.find((
|
|
3488
|
+
], a = n.reduce((p, m) => p.concat(Object.keys(m)), []), s = new Set(a.map((p) => p.charAt(0)));
|
|
3489
|
+
function l(p, m, d, $) {
|
|
3490
|
+
const S = p.filter((L) => L.startsWith(m));
|
|
3491
|
+
return S.length ? S.find((L) => $.length >= d + L.length && $.substring(d, d + L.length) === L ? L : !1) : !1;
|
|
3349
3492
|
}
|
|
3350
3493
|
function o(p, m, d = 1) {
|
|
3351
|
-
let
|
|
3352
|
-
if (
|
|
3494
|
+
let $ = d ? m.substring(p + 1).trim() : m.substring(0, p).trim();
|
|
3495
|
+
if (!$.length)
|
|
3353
3496
|
return -1;
|
|
3354
3497
|
if (!d) {
|
|
3355
|
-
const
|
|
3356
|
-
|
|
3498
|
+
const L = $.split("").reverse(), _ = L.findIndex((u) => s.has(u));
|
|
3499
|
+
$ = L.slice(_).join("");
|
|
3357
3500
|
}
|
|
3358
|
-
const S =
|
|
3359
|
-
return
|
|
3360
|
-
const _ = Object.keys(
|
|
3361
|
-
return !!l(_, S, 0,
|
|
3501
|
+
const S = $[0];
|
|
3502
|
+
return n.findIndex((L) => {
|
|
3503
|
+
const _ = Object.keys(L);
|
|
3504
|
+
return !!l(_, S, 0, $);
|
|
3362
3505
|
});
|
|
3363
3506
|
}
|
|
3364
|
-
function
|
|
3507
|
+
function g(p, m) {
|
|
3365
3508
|
let d = "";
|
|
3366
|
-
const
|
|
3509
|
+
const $ = m.length;
|
|
3367
3510
|
let S = 0;
|
|
3368
|
-
for (let
|
|
3369
|
-
const _ = m.charAt(
|
|
3511
|
+
for (let L = p; L < $; L++) {
|
|
3512
|
+
const _ = m.charAt(L);
|
|
3370
3513
|
if (_ === "(")
|
|
3371
3514
|
S++;
|
|
3372
3515
|
else if (_ === ")")
|
|
3373
3516
|
S--;
|
|
3374
3517
|
else if (S === 0 && _ === " ")
|
|
3375
3518
|
continue;
|
|
3376
|
-
if (S === 0 && l(
|
|
3377
|
-
return [d,
|
|
3519
|
+
if (S === 0 && l(a, _, L, m))
|
|
3520
|
+
return [d, L - 1];
|
|
3378
3521
|
d += _;
|
|
3379
3522
|
}
|
|
3380
3523
|
return [d, m.length - 1];
|
|
3381
3524
|
}
|
|
3382
|
-
function
|
|
3383
|
-
const d =
|
|
3384
|
-
let
|
|
3385
|
-
const
|
|
3386
|
-
R ? c +=
|
|
3525
|
+
function b(p, m = 0) {
|
|
3526
|
+
const d = n[m], $ = p.length, S = Object.keys(d);
|
|
3527
|
+
let L = 0, _ = !1, u = null, f = "", A = null, D, F = "", M = "", c = "", T = "", k = 0;
|
|
3528
|
+
const O = (R, E) => {
|
|
3529
|
+
R ? c += E : f += E;
|
|
3387
3530
|
};
|
|
3388
|
-
for (let R = 0; R <
|
|
3389
|
-
if (
|
|
3390
|
-
|
|
3531
|
+
for (let R = 0; R < $; R++)
|
|
3532
|
+
if (F = M, M = p.charAt(R), (M === "'" || M === '"') && F !== "\\" && (L === 0 && !_ || L && !T)) {
|
|
3533
|
+
L ? T = M : _ = M, O(L, M);
|
|
3391
3534
|
continue;
|
|
3392
|
-
} else if (_ && (M !== _ ||
|
|
3393
|
-
|
|
3535
|
+
} else if (_ && (M !== _ || F === "\\") || T && (M !== T || F === "\\")) {
|
|
3536
|
+
O(L, M);
|
|
3394
3537
|
continue;
|
|
3395
3538
|
} else if (_ === M) {
|
|
3396
|
-
_ = !1,
|
|
3539
|
+
_ = !1, O(L, M);
|
|
3397
3540
|
continue;
|
|
3398
3541
|
} else if (T === M) {
|
|
3399
|
-
T = !1,
|
|
3542
|
+
T = !1, O(L, M);
|
|
3400
3543
|
continue;
|
|
3401
3544
|
} else {
|
|
3402
3545
|
if (M === " ")
|
|
3403
3546
|
continue;
|
|
3404
3547
|
if (M === "(")
|
|
3405
|
-
|
|
3548
|
+
L === 0 ? k = R : c += M, L++;
|
|
3406
3549
|
else if (M === ")")
|
|
3407
|
-
if (
|
|
3408
|
-
const
|
|
3550
|
+
if (L--, L === 0) {
|
|
3551
|
+
const E = typeof f == "string" && f.startsWith("$") ? f : void 0, pe = E && p.charAt(R + 1) === ".";
|
|
3409
3552
|
let J = "";
|
|
3410
|
-
pe && ([J, R] =
|
|
3411
|
-
const
|
|
3412
|
-
|
|
3553
|
+
pe && ([J, R] = g(R + 2, p));
|
|
3554
|
+
const be = u ? m : o(k, p, 0), fe = o(R, p);
|
|
3555
|
+
be === -1 && fe === -1 ? (f = y(c, -1, E, J), typeof f == "string" && (f = c)) : u && (be >= fe || fe === -1) && m === be ? (A = u.bind(null, y(c, -1, E, J)), u = null, f = "") : fe > be && m === fe ? f = y(c, -1, E, J) : f += `(${c})${pe ? `.${J}` : ""}`, c = "";
|
|
3413
3556
|
} else
|
|
3414
3557
|
c += M;
|
|
3415
|
-
else if (
|
|
3416
|
-
R === 0 &&
|
|
3558
|
+
else if (L === 0 && (D = l(S, M, R, p))) {
|
|
3559
|
+
R === 0 && q(103, [D, p]), R += D.length - 1, R === p.length - 1 && q(104, [D, p]), u ? f && (A = u.bind(null, y(f, m)), u = d[D].bind(null, A), f = "") : A ? (u = d[D].bind(null, y(A, m)), A = null) : (u = d[D].bind(null, y(f, m)), f = "");
|
|
3417
3560
|
continue;
|
|
3418
3561
|
} else
|
|
3419
|
-
|
|
3562
|
+
O(L, M);
|
|
3420
3563
|
}
|
|
3421
|
-
return f && u && (u = u.bind(null, y(f, m))), u = !u && A ? A : u, !u && f && (u = (R,
|
|
3564
|
+
return f && u && (u = u.bind(null, y(f, m))), u = !u && A ? A : u, !u && f && (u = (R, E) => typeof R == "function" ? R(E) : R, u = u.bind(null, y(f, m))), !u && !f && q(105, p), u;
|
|
3422
3565
|
}
|
|
3423
|
-
function y(p, m, d,
|
|
3566
|
+
function y(p, m, d, $) {
|
|
3424
3567
|
if (d) {
|
|
3425
|
-
const S = y(d,
|
|
3426
|
-
let
|
|
3568
|
+
const S = y(d, n.length);
|
|
3569
|
+
let L, _ = $ ? Y(`$${$}`) : !1;
|
|
3427
3570
|
if (typeof S == "function") {
|
|
3428
|
-
const u =
|
|
3571
|
+
const u = Ei(String(p)).map(
|
|
3429
3572
|
(f) => y(f, -1)
|
|
3430
3573
|
);
|
|
3431
3574
|
return (f) => {
|
|
3432
3575
|
const A = S(f);
|
|
3433
|
-
return typeof A != "function" ? (
|
|
3576
|
+
return typeof A != "function" ? (ge(150, d), A) : (L = A(
|
|
3434
3577
|
...u.map(
|
|
3435
|
-
(
|
|
3578
|
+
(D) => typeof D == "function" ? D(f) : D
|
|
3436
3579
|
)
|
|
3437
|
-
), _ && (_ = _.provide((
|
|
3438
|
-
const
|
|
3439
|
-
return
|
|
3580
|
+
), _ && (_ = _.provide((D) => {
|
|
3581
|
+
const F = t(D);
|
|
3582
|
+
return D.reduce(
|
|
3440
3583
|
(c, T) => {
|
|
3441
|
-
if (T ===
|
|
3442
|
-
const
|
|
3443
|
-
c[T] = () =>
|
|
3584
|
+
if (T === $ || ($ == null ? void 0 : $.startsWith(`${T}(`))) {
|
|
3585
|
+
const O = Ni(L, T);
|
|
3586
|
+
c[T] = () => O;
|
|
3444
3587
|
} else
|
|
3445
|
-
c[T] =
|
|
3588
|
+
c[T] = F[T];
|
|
3446
3589
|
return c;
|
|
3447
3590
|
},
|
|
3448
3591
|
{}
|
|
3449
3592
|
);
|
|
3450
|
-
})), _ ? _() :
|
|
3593
|
+
})), _ ? _() : L);
|
|
3451
3594
|
};
|
|
3452
3595
|
}
|
|
3453
3596
|
} else if (typeof p == "string") {
|
|
@@ -3458,11 +3601,11 @@ function Y(e) {
|
|
|
3458
3601
|
if (p === "undefined")
|
|
3459
3602
|
return;
|
|
3460
3603
|
if (Ri(p))
|
|
3461
|
-
return
|
|
3604
|
+
return Oi(p.substring(1, p.length - 1));
|
|
3462
3605
|
if (!isNaN(+p))
|
|
3463
3606
|
return Number(p);
|
|
3464
|
-
if (m <
|
|
3465
|
-
return
|
|
3607
|
+
if (m < n.length - 1)
|
|
3608
|
+
return b(p, m + 1);
|
|
3466
3609
|
if (p.startsWith("$")) {
|
|
3467
3610
|
const S = p.substring(1);
|
|
3468
3611
|
return r.add(S), function(_) {
|
|
@@ -3473,7 +3616,7 @@ function Y(e) {
|
|
|
3473
3616
|
}
|
|
3474
3617
|
return p;
|
|
3475
3618
|
}
|
|
3476
|
-
const P =
|
|
3619
|
+
const P = b(
|
|
3477
3620
|
e.startsWith("$:") ? e.substring(2) : e
|
|
3478
3621
|
), h = Array.from(r);
|
|
3479
3622
|
function v(p) {
|
|
@@ -3487,69 +3630,69 @@ function Y(e) {
|
|
|
3487
3630
|
provide: v
|
|
3488
3631
|
});
|
|
3489
3632
|
}
|
|
3490
|
-
function
|
|
3633
|
+
function Be(e, t, r) {
|
|
3491
3634
|
return r ? typeof r == "string" ? r.split(" ").reduce(
|
|
3492
|
-
(
|
|
3635
|
+
(n, a) => Object.assign(n, { [a]: !0 }),
|
|
3493
3636
|
{}
|
|
3494
|
-
) : typeof r == "function" ?
|
|
3637
|
+
) : typeof r == "function" ? Be(
|
|
3495
3638
|
e,
|
|
3496
3639
|
t,
|
|
3497
3640
|
r(t, e)
|
|
3498
3641
|
) : r : {};
|
|
3499
3642
|
}
|
|
3500
|
-
function
|
|
3501
|
-
const i = r.reduce((
|
|
3502
|
-
if (!
|
|
3503
|
-
return st(
|
|
3504
|
-
const { $reset: s, ...l } =
|
|
3505
|
-
return st(s ? l : Object.assign(
|
|
3643
|
+
function ra(e, t, ...r) {
|
|
3644
|
+
const i = r.reduce((n, a) => {
|
|
3645
|
+
if (!a)
|
|
3646
|
+
return st(n);
|
|
3647
|
+
const { $reset: s, ...l } = a;
|
|
3648
|
+
return st(s ? l : Object.assign(n, l));
|
|
3506
3649
|
}, {});
|
|
3507
3650
|
return Object.keys(
|
|
3508
3651
|
e.hook.classes.dispatch({ property: t, classes: i }).classes
|
|
3509
|
-
).filter((
|
|
3652
|
+
).filter((n) => i[n]).join(" ") || null;
|
|
3510
3653
|
}
|
|
3511
3654
|
function st(e) {
|
|
3512
3655
|
const t = "$remove:";
|
|
3513
3656
|
let r = !1;
|
|
3514
|
-
const i = Object.keys(e).filter((
|
|
3515
|
-
return i.length > 1 && r && i.filter((
|
|
3516
|
-
const s =
|
|
3517
|
-
e[s] = !1, e[
|
|
3657
|
+
const i = Object.keys(e).filter((n) => (e[n] && n.startsWith(t) && (r = !0), e[n]));
|
|
3658
|
+
return i.length > 1 && r && i.filter((a) => a.startsWith(t)).map((a) => {
|
|
3659
|
+
const s = a.substring(t.length);
|
|
3660
|
+
e[s] = !1, e[a] = !1;
|
|
3518
3661
|
}), e;
|
|
3519
3662
|
}
|
|
3520
|
-
function
|
|
3521
|
-
const i =
|
|
3522
|
-
i ? i.setErrors(t, r) :
|
|
3663
|
+
function ia(e, t, r) {
|
|
3664
|
+
const i = Oe(e);
|
|
3665
|
+
i ? i.setErrors(t, r) : ge(651, e);
|
|
3523
3666
|
}
|
|
3524
|
-
function
|
|
3525
|
-
const r =
|
|
3526
|
-
r ? r.clearErrors(t) :
|
|
3667
|
+
function na(e, t = !0) {
|
|
3668
|
+
const r = Oe(e);
|
|
3669
|
+
r ? r.clearErrors(t) : ge(652, e);
|
|
3527
3670
|
}
|
|
3528
3671
|
var Ye = "1.6.9", Ir = /* @__PURE__ */ new WeakSet();
|
|
3529
|
-
function
|
|
3530
|
-
const r = t || Object.assign(/* @__PURE__ */ new Map(), { active: !1 }), i = /* @__PURE__ */ new Map(),
|
|
3672
|
+
function nt(e, t) {
|
|
3673
|
+
const r = t || Object.assign(/* @__PURE__ */ new Map(), { active: !1 }), i = /* @__PURE__ */ new Map(), n = function(b) {
|
|
3531
3674
|
var y;
|
|
3532
|
-
r.active && (r.has(e) || r.set(e, /* @__PURE__ */ new Set()), (y = r.get(e)) == null || y.add(
|
|
3533
|
-
},
|
|
3534
|
-
return new Proxy(
|
|
3675
|
+
r.active && (r.has(e) || r.set(e, /* @__PURE__ */ new Set()), (y = r.get(e)) == null || y.add(b));
|
|
3676
|
+
}, a = function(b) {
|
|
3677
|
+
return new Proxy(b, {
|
|
3535
3678
|
get(...y) {
|
|
3536
|
-
return typeof y[1] == "string" &&
|
|
3679
|
+
return typeof y[1] == "string" && n(`prop:${y[1]}`), Reflect.get(...y);
|
|
3537
3680
|
}
|
|
3538
3681
|
});
|
|
3539
|
-
}, s = function(
|
|
3540
|
-
return new Proxy(
|
|
3682
|
+
}, s = function(b) {
|
|
3683
|
+
return new Proxy(b, {
|
|
3541
3684
|
get(...y) {
|
|
3542
|
-
return y[1] === "value" ? (P) => (
|
|
3685
|
+
return y[1] === "value" ? (P) => (n(`count:${P}`), b.value(P)) : Reflect.get(...y);
|
|
3543
3686
|
}
|
|
3544
3687
|
});
|
|
3545
|
-
}, l = function(
|
|
3546
|
-
return
|
|
3688
|
+
}, l = function(b, y) {
|
|
3689
|
+
return Ee(b) ? nt(b, r) : (y === "value" && n("commit"), y === "_value" && n("input"), y === "props" ? a(b) : y === "ledger" ? s(b) : (y === "children" && (n("child"), n("childRemoved")), b));
|
|
3547
3690
|
}, {
|
|
3548
3691
|
proxy: o,
|
|
3549
|
-
revoke:
|
|
3692
|
+
revoke: g
|
|
3550
3693
|
} = Proxy.revocable(e, {
|
|
3551
|
-
get(...
|
|
3552
|
-
switch (
|
|
3694
|
+
get(...b) {
|
|
3695
|
+
switch (b[1]) {
|
|
3553
3696
|
case "_node":
|
|
3554
3697
|
return e;
|
|
3555
3698
|
case "deps":
|
|
@@ -3570,212 +3713,212 @@ function at(e, t) {
|
|
|
3570
3713
|
return i;
|
|
3571
3714
|
case "kill":
|
|
3572
3715
|
return () => {
|
|
3573
|
-
|
|
3716
|
+
Fr(i), Ir.add(b[2]), g();
|
|
3574
3717
|
};
|
|
3575
3718
|
}
|
|
3576
|
-
const y = Reflect.get(...
|
|
3719
|
+
const y = Reflect.get(...b);
|
|
3577
3720
|
return typeof y == "function" ? (...P) => {
|
|
3578
3721
|
const h = y(...P);
|
|
3579
|
-
return l(h,
|
|
3580
|
-
} : l(y,
|
|
3722
|
+
return l(h, b[1]);
|
|
3723
|
+
} : l(y, b[1]);
|
|
3581
3724
|
}
|
|
3582
3725
|
});
|
|
3583
3726
|
return o;
|
|
3584
3727
|
}
|
|
3585
|
-
function
|
|
3586
|
-
t.forEach((
|
|
3587
|
-
|
|
3728
|
+
function Dr(e, [t, r], i, n) {
|
|
3729
|
+
t.forEach((a, s) => {
|
|
3730
|
+
a.forEach((l) => {
|
|
3588
3731
|
e.receipts.has(s) || e.receipts.set(s, {});
|
|
3589
3732
|
const o = e.receipts.get(s) ?? {};
|
|
3590
|
-
o[l] = o[l] ?? [], o[l].push(s.on(l, i,
|
|
3733
|
+
o[l] = o[l] ?? [], o[l].push(s.on(l, i, n)), e.receipts.set(s, o);
|
|
3591
3734
|
});
|
|
3592
|
-
}), r.forEach((
|
|
3593
|
-
|
|
3735
|
+
}), r.forEach((a, s) => {
|
|
3736
|
+
a.forEach((l) => {
|
|
3594
3737
|
if (e.receipts.has(s)) {
|
|
3595
3738
|
const o = e.receipts.get(s);
|
|
3596
|
-
o &&
|
|
3739
|
+
o && w(o, l) && (o[l].map(s.off), delete o[l], e.receipts.set(s, o));
|
|
3597
3740
|
}
|
|
3598
3741
|
});
|
|
3599
3742
|
});
|
|
3600
3743
|
}
|
|
3601
|
-
function
|
|
3744
|
+
function Fr(e) {
|
|
3602
3745
|
e.forEach((t, r) => {
|
|
3603
3746
|
for (const i in t)
|
|
3604
3747
|
t[i].map(r.off);
|
|
3605
3748
|
}), e.clear();
|
|
3606
3749
|
}
|
|
3607
3750
|
function Rr(e, t, r, i) {
|
|
3608
|
-
const
|
|
3751
|
+
const n = (l) => {
|
|
3609
3752
|
const o = e.stopObserve();
|
|
3610
|
-
|
|
3753
|
+
Dr(
|
|
3611
3754
|
e,
|
|
3612
|
-
|
|
3755
|
+
Or(a, o),
|
|
3613
3756
|
() => Rr(e, t, r, i),
|
|
3614
3757
|
i
|
|
3615
3758
|
), r && r(l);
|
|
3616
|
-
},
|
|
3759
|
+
}, a = new Map(e.deps);
|
|
3617
3760
|
e.observe();
|
|
3618
3761
|
const s = t(e);
|
|
3619
|
-
s instanceof Promise ? s.then((l) =>
|
|
3762
|
+
s instanceof Promise ? s.then((l) => n(l)) : n(s);
|
|
3620
3763
|
}
|
|
3621
|
-
function
|
|
3764
|
+
function Or(e, t) {
|
|
3622
3765
|
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
3623
|
-
return t.forEach((
|
|
3624
|
-
if (!e.has(
|
|
3625
|
-
r.set(
|
|
3766
|
+
return t.forEach((n, a) => {
|
|
3767
|
+
if (!e.has(a))
|
|
3768
|
+
r.set(a, n);
|
|
3626
3769
|
else {
|
|
3627
|
-
const s = /* @__PURE__ */ new Set(), l = e.get(
|
|
3628
|
-
|
|
3770
|
+
const s = /* @__PURE__ */ new Set(), l = e.get(a);
|
|
3771
|
+
n.forEach(
|
|
3629
3772
|
(o) => !(l != null && l.has(o)) && s.add(o)
|
|
3630
|
-
), r.set(
|
|
3773
|
+
), r.set(a, s);
|
|
3631
3774
|
}
|
|
3632
|
-
}), e.forEach((
|
|
3633
|
-
if (!t.has(
|
|
3634
|
-
i.set(
|
|
3775
|
+
}), e.forEach((n, a) => {
|
|
3776
|
+
if (!t.has(a))
|
|
3777
|
+
i.set(a, n);
|
|
3635
3778
|
else {
|
|
3636
|
-
const s = /* @__PURE__ */ new Set(), l = t.get(
|
|
3637
|
-
|
|
3779
|
+
const s = /* @__PURE__ */ new Set(), l = t.get(a);
|
|
3780
|
+
n.forEach(
|
|
3638
3781
|
(o) => !(l != null && l.has(o)) && s.add(o)
|
|
3639
|
-
), i.set(
|
|
3782
|
+
), i.set(a, s);
|
|
3640
3783
|
}
|
|
3641
3784
|
}), [r, i];
|
|
3642
3785
|
}
|
|
3643
3786
|
function It(e) {
|
|
3644
3787
|
return Ir.has(e);
|
|
3645
3788
|
}
|
|
3646
|
-
var
|
|
3789
|
+
var Er = function({ value: t }) {
|
|
3647
3790
|
return ["yes", "on", "1", 1, !0, "true"].includes(t);
|
|
3648
3791
|
};
|
|
3649
|
-
|
|
3650
|
-
var
|
|
3792
|
+
Er.skipEmpty = !1;
|
|
3793
|
+
var aa = Er, sa = function({ value: e }, t = !1) {
|
|
3651
3794
|
const r = Date.parse(t || /* @__PURE__ */ new Date()), i = Date.parse(String(e));
|
|
3652
3795
|
return isNaN(i) ? !1 : i > r;
|
|
3653
|
-
},
|
|
3796
|
+
}, la = sa, oa = function({ value: e }, t = !1) {
|
|
3654
3797
|
const r = Date.parse(t || /* @__PURE__ */ new Date()), i = Date.parse(String(e));
|
|
3655
3798
|
return isNaN(i) ? !1 : i > r || i === r;
|
|
3656
|
-
},
|
|
3657
|
-
var
|
|
3799
|
+
}, ua = oa, ca = function(e, t) {
|
|
3800
|
+
var n;
|
|
3658
3801
|
if (!t)
|
|
3659
3802
|
return !1;
|
|
3660
|
-
const r = Date.parse(String(e.value)), i = Date.parse(String((
|
|
3803
|
+
const r = Date.parse(String(e.value)), i = Date.parse(String((n = e.at(t)) == null ? void 0 : n.value));
|
|
3661
3804
|
return isNaN(i) ? !0 : isNaN(r) ? !1 : r > i;
|
|
3662
|
-
},
|
|
3805
|
+
}, pa = ca, fa = function({ value: e }, t = "default") {
|
|
3663
3806
|
const r = {
|
|
3664
3807
|
default: new RegExp("^\\p{L}+$", "u"),
|
|
3665
3808
|
latin: /^[a-z]+$/i
|
|
3666
|
-
}, i =
|
|
3809
|
+
}, i = w(r, t) ? t : "default";
|
|
3667
3810
|
return r[i].test(String(e));
|
|
3668
|
-
},
|
|
3811
|
+
}, ma = fa, da = function({ value: e }, t = "default") {
|
|
3669
3812
|
const r = {
|
|
3670
3813
|
default: /^[\p{L} ]+$/u,
|
|
3671
3814
|
latin: /^[a-z ]+$/i
|
|
3672
|
-
}, i =
|
|
3815
|
+
}, i = w(r, t) ? t : "default";
|
|
3673
3816
|
return r[i].test(String(e));
|
|
3674
|
-
},
|
|
3817
|
+
}, ga = da, ba = function({ value: e }, t = "default") {
|
|
3675
3818
|
const r = {
|
|
3676
3819
|
default: /^[0-9\p{L}]+$/u,
|
|
3677
3820
|
latin: /^[0-9a-z]+$/i
|
|
3678
|
-
}, i =
|
|
3821
|
+
}, i = w(r, t) ? t : "default";
|
|
3679
3822
|
return r[i].test(String(e));
|
|
3680
|
-
},
|
|
3823
|
+
}, ha = ba, ya = function({ value: e }, t = !1) {
|
|
3681
3824
|
const r = Date.parse(t || /* @__PURE__ */ new Date()), i = Date.parse(String(e));
|
|
3682
3825
|
return isNaN(i) ? !1 : i < r;
|
|
3683
|
-
},
|
|
3684
|
-
var
|
|
3826
|
+
}, va = ya, La = function(e, t) {
|
|
3827
|
+
var n;
|
|
3685
3828
|
if (!t)
|
|
3686
3829
|
return !1;
|
|
3687
|
-
const r = Date.parse(String(e.value)), i = Date.parse(String((
|
|
3830
|
+
const r = Date.parse(String(e.value)), i = Date.parse(String((n = e.at(t)) == null ? void 0 : n.value));
|
|
3688
3831
|
return isNaN(i) ? !0 : isNaN(r) ? !1 : r < i;
|
|
3689
|
-
},
|
|
3832
|
+
}, $a = La, _a = function({ value: e }, t = !1) {
|
|
3690
3833
|
const r = Date.parse(t || /* @__PURE__ */ new Date()), i = Date.parse(String(e));
|
|
3691
3834
|
return isNaN(i) ? !1 : i < r || i === r;
|
|
3692
|
-
},
|
|
3835
|
+
}, Ta = _a, Sa = function({ value: t }, r, i) {
|
|
3693
3836
|
if (!isNaN(t) && !isNaN(r) && !isNaN(i)) {
|
|
3694
|
-
const
|
|
3837
|
+
const n = 1 * t;
|
|
3695
3838
|
r = Number(r), i = Number(i);
|
|
3696
|
-
const [
|
|
3697
|
-
return
|
|
3839
|
+
const [a, s] = r <= i ? [r, i] : [i, r];
|
|
3840
|
+
return n >= 1 * a && n <= 1 * s;
|
|
3698
3841
|
}
|
|
3699
3842
|
return !1;
|
|
3700
|
-
},
|
|
3701
|
-
var
|
|
3702
|
-
r || (r =
|
|
3703
|
-
const
|
|
3704
|
-
return i === "strict" ? t.value ===
|
|
3705
|
-
},
|
|
3843
|
+
}, Ca = Sa, qt = /(_confirm(?:ed)?)$/, ka = function(t, r, i = "loose") {
|
|
3844
|
+
var a;
|
|
3845
|
+
r || (r = qt.test(t.name) ? t.name.replace(qt, "") : `${t.name}_confirm`);
|
|
3846
|
+
const n = (a = t.at(r)) == null ? void 0 : a.value;
|
|
3847
|
+
return i === "strict" ? t.value === n : t.value == n;
|
|
3848
|
+
}, wa = ka, Aa = function({ value: e }, t = "default") {
|
|
3706
3849
|
const r = {
|
|
3707
3850
|
default: new RegExp("\\p{L}", "u"),
|
|
3708
3851
|
latin: /[a-z]/i
|
|
3709
|
-
}, i =
|
|
3852
|
+
}, i = w(r, t) ? t : "default";
|
|
3710
3853
|
return r[i].test(String(e));
|
|
3711
|
-
},
|
|
3854
|
+
}, Pa = Aa, xa = function({ value: e }, t = "default") {
|
|
3712
3855
|
const r = {
|
|
3713
3856
|
default: /[\p{L} ]/u,
|
|
3714
3857
|
latin: /[a-z ]/i
|
|
3715
|
-
}, i =
|
|
3858
|
+
}, i = w(r, t) ? t : "default";
|
|
3716
3859
|
return r[i].test(String(e));
|
|
3717
|
-
},
|
|
3860
|
+
}, Ma = xa, Ia = function({ value: e }, t = "default") {
|
|
3718
3861
|
const r = {
|
|
3719
3862
|
default: /[0-9\p{L}]/u,
|
|
3720
3863
|
latin: /[0-9a-z]/i
|
|
3721
|
-
}, i =
|
|
3864
|
+
}, i = w(r, t) ? t : "default";
|
|
3722
3865
|
return r[i].test(String(e));
|
|
3723
|
-
},
|
|
3866
|
+
}, Da = Ia, Fa = function({ value: e }, t = "default") {
|
|
3724
3867
|
const r = {
|
|
3725
3868
|
default: new RegExp("\\p{Ll}", "u"),
|
|
3726
3869
|
latin: /[a-z]/
|
|
3727
|
-
}, i =
|
|
3870
|
+
}, i = w(r, t) ? t : "default";
|
|
3728
3871
|
return r[i].test(String(e));
|
|
3729
|
-
},
|
|
3872
|
+
}, Ra = Fa, Oa = function({ value: t }) {
|
|
3730
3873
|
return /[0-9]/.test(String(t));
|
|
3731
|
-
},
|
|
3874
|
+
}, Ea = Oa, Na = function({ value: e }) {
|
|
3732
3875
|
return /[!-/:-@[-`{-~]/.test(String(e));
|
|
3733
|
-
},
|
|
3876
|
+
}, Ha = Na, ja = function({ value: e }, t = "default") {
|
|
3734
3877
|
const r = {
|
|
3735
3878
|
default: new RegExp("\\p{Lu}", "u"),
|
|
3736
3879
|
latin: /[A-Z]/
|
|
3737
|
-
}, i =
|
|
3880
|
+
}, i = w(r, t) ? t : "default";
|
|
3738
3881
|
return r[i].test(String(e));
|
|
3739
|
-
},
|
|
3882
|
+
}, Ua = ja, Va = function({ value: t }, r, i) {
|
|
3740
3883
|
r = r instanceof Date ? r.getTime() : Date.parse(r), i = i instanceof Date ? i.getTime() : Date.parse(i);
|
|
3741
|
-
const
|
|
3884
|
+
const n = t instanceof Date ? t.getTime() : Date.parse(String(t));
|
|
3742
3885
|
if (r && !i)
|
|
3743
3886
|
i = r, r = Date.now();
|
|
3744
|
-
else if (!r || !
|
|
3887
|
+
else if (!r || !n)
|
|
3745
3888
|
return !1;
|
|
3746
|
-
return
|
|
3747
|
-
},
|
|
3748
|
-
return r && typeof r == "string" ?
|
|
3749
|
-
},
|
|
3889
|
+
return n >= r && n <= i;
|
|
3890
|
+
}, za = Va, qa = function({ value: t }, r) {
|
|
3891
|
+
return r && typeof r == "string" ? Fi(r).test(String(t)) : !isNaN(Date.parse(String(t)));
|
|
3892
|
+
}, Ba = qa, Wa = function({ value: t }) {
|
|
3750
3893
|
return /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(String(t));
|
|
3751
|
-
},
|
|
3894
|
+
}, Ka = Wa, Ga = function({ value: t }, ...r) {
|
|
3752
3895
|
return typeof t == "string" && r.length ? r.some((i) => t.endsWith(i)) : typeof t == "string" && r.length === 0;
|
|
3753
|
-
},
|
|
3896
|
+
}, Ya = Ga, Qa = function({ value: t }, ...r) {
|
|
3754
3897
|
return r.some((i) => typeof i == "object" ? U(i, t) : i == t);
|
|
3755
|
-
},
|
|
3898
|
+
}, Za = Qa, Ja = function({ value: t }, r = 0, i = 1 / 0) {
|
|
3756
3899
|
r = parseInt(r), i = isNaN(parseInt(i)) ? 1 / 0 : parseInt(i);
|
|
3757
|
-
const
|
|
3900
|
+
const n = r <= i ? r : i, a = i >= r ? i : r;
|
|
3758
3901
|
if (typeof t == "string" || Array.isArray(t))
|
|
3759
|
-
return t.length >=
|
|
3902
|
+
return t.length >= n && t.length <= a;
|
|
3760
3903
|
if (t && typeof t == "object") {
|
|
3761
3904
|
const s = Object.keys(t).length;
|
|
3762
|
-
return s >=
|
|
3905
|
+
return s >= n && s <= a;
|
|
3763
3906
|
}
|
|
3764
3907
|
return !1;
|
|
3765
|
-
},
|
|
3908
|
+
}, Xa = Ja, es = function({ value: e }, t = "default") {
|
|
3766
3909
|
const r = {
|
|
3767
3910
|
default: new RegExp("^\\p{Ll}+$", "u"),
|
|
3768
3911
|
allow_non_alpha: /^[0-9\p{Ll}!-/:-@[-`{-~]+$/u,
|
|
3769
3912
|
allow_numeric: /^[0-9\p{Ll}]+$/u,
|
|
3770
3913
|
allow_numeric_dashes: /^[0-9\p{Ll}-]+$/u,
|
|
3771
3914
|
latin: /^[a-z]+$/
|
|
3772
|
-
}, i =
|
|
3915
|
+
}, i = w(r, t) ? t : "default";
|
|
3773
3916
|
return r[i].test(String(e));
|
|
3774
3917
|
}, ts = es, rs = function({ value: t }, ...r) {
|
|
3775
3918
|
return r.some((i) => (typeof i == "string" && i.substr(0, 1) === "/" && i.substr(-1) === "/" && (i = new RegExp(i.substr(1, i.length - 2))), i instanceof RegExp ? i.test(String(t)) : i === t));
|
|
3776
|
-
}, is = rs,
|
|
3919
|
+
}, is = rs, ns = function({ value: t }, r = 10) {
|
|
3777
3920
|
return Array.isArray(t) ? t.length <= r : Number(t) <= Number(r);
|
|
3778
|
-
},
|
|
3921
|
+
}, as = ns, ss = function({ value: t }, r = 1) {
|
|
3779
3922
|
return Array.isArray(t) ? t.length >= r : Number(t) >= Number(r);
|
|
3780
3923
|
}, ls = ss, os = function({ value: t }, ...r) {
|
|
3781
3924
|
return !r.some((i) => typeof i == "object" ? U(i, t) : i === t);
|
|
@@ -3783,8 +3926,8 @@ var nn = Or, sn = function({ value: e }, t = !1) {
|
|
|
3783
3926
|
return !isNaN(t);
|
|
3784
3927
|
}, ps = cs, Nr = function(e, ...t) {
|
|
3785
3928
|
return G(e.value) ? t.map((i) => {
|
|
3786
|
-
var
|
|
3787
|
-
return (
|
|
3929
|
+
var n;
|
|
3930
|
+
return (n = e.at(i)) == null ? void 0 : n.value;
|
|
3788
3931
|
}).some((i) => !G(i)) : !0;
|
|
3789
3932
|
};
|
|
3790
3933
|
Nr.skipEmpty = !1;
|
|
@@ -3794,63 +3937,63 @@ var fs = Nr, Hr = function({ value: t }, r = "default") {
|
|
|
3794
3937
|
Hr.skipEmpty = !1;
|
|
3795
3938
|
var ms = Hr, ds = function({ value: t }, ...r) {
|
|
3796
3939
|
return typeof t == "string" && r.length ? r.some((i) => t.startsWith(i)) : typeof t == "string" && r.length === 0;
|
|
3797
|
-
},
|
|
3940
|
+
}, gs = ds, bs = function({ value: e }) {
|
|
3798
3941
|
return /^[!-/:-@[-`{-~]+$/.test(String(e));
|
|
3799
|
-
}, hs =
|
|
3942
|
+
}, hs = bs, ys = function({ value: e }, t = "default") {
|
|
3800
3943
|
const r = {
|
|
3801
3944
|
default: new RegExp("^\\p{Lu}+$", "u"),
|
|
3802
3945
|
latin: /^[A-Z]+$/
|
|
3803
|
-
}, i =
|
|
3946
|
+
}, i = w(r, t) ? t : "default";
|
|
3804
3947
|
return r[i].test(String(e));
|
|
3805
|
-
}, vs = ys,
|
|
3948
|
+
}, vs = ys, Ls = function({ value: t }, ...r) {
|
|
3806
3949
|
try {
|
|
3807
|
-
const i = r.length ? r : ["http:", "https:"],
|
|
3808
|
-
return i.includes(
|
|
3950
|
+
const i = r.length ? r : ["http:", "https:"], n = new URL(String(t));
|
|
3951
|
+
return i.includes(n.protocol);
|
|
3809
3952
|
} catch {
|
|
3810
3953
|
return !1;
|
|
3811
3954
|
}
|
|
3812
|
-
},
|
|
3955
|
+
}, $s = Ls;
|
|
3813
3956
|
const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3814
3957
|
__proto__: null,
|
|
3815
|
-
accepted:
|
|
3816
|
-
alpha:
|
|
3817
|
-
alpha_spaces:
|
|
3818
|
-
alphanumeric:
|
|
3819
|
-
between:
|
|
3820
|
-
confirm:
|
|
3821
|
-
contains_alpha:
|
|
3822
|
-
contains_alpha_spaces:
|
|
3823
|
-
contains_alphanumeric:
|
|
3824
|
-
contains_lowercase:
|
|
3825
|
-
contains_numeric:
|
|
3826
|
-
contains_symbol:
|
|
3827
|
-
contains_uppercase:
|
|
3828
|
-
date_after:
|
|
3829
|
-
date_after_node:
|
|
3830
|
-
date_after_or_equal:
|
|
3831
|
-
date_before:
|
|
3832
|
-
date_before_node:
|
|
3833
|
-
date_before_or_equal:
|
|
3834
|
-
date_between:
|
|
3835
|
-
date_format:
|
|
3836
|
-
email:
|
|
3837
|
-
ends_with:
|
|
3838
|
-
is:
|
|
3839
|
-
length:
|
|
3958
|
+
accepted: aa,
|
|
3959
|
+
alpha: ma,
|
|
3960
|
+
alpha_spaces: ga,
|
|
3961
|
+
alphanumeric: ha,
|
|
3962
|
+
between: Ca,
|
|
3963
|
+
confirm: wa,
|
|
3964
|
+
contains_alpha: Pa,
|
|
3965
|
+
contains_alpha_spaces: Ma,
|
|
3966
|
+
contains_alphanumeric: Da,
|
|
3967
|
+
contains_lowercase: Ra,
|
|
3968
|
+
contains_numeric: Ea,
|
|
3969
|
+
contains_symbol: Ha,
|
|
3970
|
+
contains_uppercase: Ua,
|
|
3971
|
+
date_after: la,
|
|
3972
|
+
date_after_node: pa,
|
|
3973
|
+
date_after_or_equal: ua,
|
|
3974
|
+
date_before: va,
|
|
3975
|
+
date_before_node: $a,
|
|
3976
|
+
date_before_or_equal: Ta,
|
|
3977
|
+
date_between: za,
|
|
3978
|
+
date_format: Ba,
|
|
3979
|
+
email: Ka,
|
|
3980
|
+
ends_with: Ya,
|
|
3981
|
+
is: Za,
|
|
3982
|
+
length: Xa,
|
|
3840
3983
|
lowercase: ts,
|
|
3841
3984
|
matches: is,
|
|
3842
|
-
max:
|
|
3985
|
+
max: as,
|
|
3843
3986
|
min: ls,
|
|
3844
3987
|
not: us,
|
|
3845
3988
|
number: ps,
|
|
3846
3989
|
require_one: fs,
|
|
3847
3990
|
required: ms,
|
|
3848
|
-
starts_with:
|
|
3991
|
+
starts_with: gs,
|
|
3849
3992
|
symbol: hs,
|
|
3850
3993
|
uppercase: vs,
|
|
3851
|
-
url:
|
|
3994
|
+
url: $s
|
|
3852
3995
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3853
|
-
var
|
|
3996
|
+
var $t = /* @__PURE__ */ B({
|
|
3854
3997
|
type: "state",
|
|
3855
3998
|
blocking: !0,
|
|
3856
3999
|
visible: !1,
|
|
@@ -3859,34 +4002,34 @@ var Lt = /* @__PURE__ */ W({
|
|
|
3859
4002
|
});
|
|
3860
4003
|
function Ts(e = {}) {
|
|
3861
4004
|
return function(r) {
|
|
3862
|
-
let i = K(r.props.validationRules || {}),
|
|
3863
|
-
const
|
|
4005
|
+
let i = K(r.props.validationRules || {}), n = { ...e, ...i };
|
|
4006
|
+
const a = { input: Ae(), rerun: null, isPassing: !0 };
|
|
3864
4007
|
let s = K(r.props.validation);
|
|
3865
4008
|
r.on("prop:validation", ({ payload: o }) => l(o, i)), r.on(
|
|
3866
4009
|
"prop:validationRules",
|
|
3867
4010
|
({ payload: o }) => l(s, o)
|
|
3868
4011
|
);
|
|
3869
|
-
function l(o,
|
|
3870
|
-
var
|
|
3871
|
-
U(Object.keys(i || {}), Object.keys(
|
|
3872
|
-
jr(y),
|
|
3873
|
-
}), r.store.filter(() => !1, "validation"), r.props.parsedRules =
|
|
4012
|
+
function l(o, g) {
|
|
4013
|
+
var b;
|
|
4014
|
+
U(Object.keys(i || {}), Object.keys(g || {})) && U(s, o) || (i = K(g), s = K(o), n = { ...e, ...i }, (b = r.props.parsedRules) == null || b.forEach((y) => {
|
|
4015
|
+
jr(y), Fr(y.observer.receipts), y.observer.kill();
|
|
4016
|
+
}), r.store.filter(() => !1, "validation"), r.props.parsedRules = Wt(o, n, r), a.isPassing = !0, _t(r, r.props.parsedRules, a));
|
|
3874
4017
|
}
|
|
3875
|
-
r.props.parsedRules =
|
|
4018
|
+
r.props.parsedRules = Wt(s, n, r), _t(r, r.props.parsedRules, a);
|
|
3876
4019
|
};
|
|
3877
4020
|
}
|
|
3878
4021
|
function _t(e, t, r) {
|
|
3879
4022
|
It(e) || (r.input = Ae(), e.store.set(
|
|
3880
|
-
/* @__PURE__ */
|
|
4023
|
+
/* @__PURE__ */ B({
|
|
3881
4024
|
key: "failing",
|
|
3882
4025
|
value: !r.isPassing,
|
|
3883
4026
|
visible: !1
|
|
3884
4027
|
})
|
|
3885
4028
|
), r.isPassing = !0, e.store.filter((i) => !i.meta.removeImmediately, "validation"), t.forEach(
|
|
3886
4029
|
(i) => i.debounce && clearTimeout(i.timer)
|
|
3887
|
-
), t.length && (e.store.set(
|
|
3888
|
-
e.store.remove(
|
|
3889
|
-
/* @__PURE__ */
|
|
4030
|
+
), t.length && (e.store.set($t), Tt(0, t, r, !1, () => {
|
|
4031
|
+
e.store.remove($t.key), e.store.set(
|
|
4032
|
+
/* @__PURE__ */ B({
|
|
3890
4033
|
key: "failing",
|
|
3891
4034
|
value: !r.isPassing,
|
|
3892
4035
|
visible: !1
|
|
@@ -3894,29 +4037,29 @@ function _t(e, t, r) {
|
|
|
3894
4037
|
);
|
|
3895
4038
|
})));
|
|
3896
4039
|
}
|
|
3897
|
-
function Tt(e, t, r, i,
|
|
3898
|
-
const
|
|
3899
|
-
if (!
|
|
3900
|
-
return
|
|
3901
|
-
const s =
|
|
4040
|
+
function Tt(e, t, r, i, n) {
|
|
4041
|
+
const a = t[e];
|
|
4042
|
+
if (!a)
|
|
4043
|
+
return n();
|
|
4044
|
+
const s = a.observer;
|
|
3902
4045
|
if (It(s))
|
|
3903
4046
|
return;
|
|
3904
4047
|
const l = r.input;
|
|
3905
|
-
|
|
3906
|
-
function o(
|
|
4048
|
+
a.state = null;
|
|
4049
|
+
function o(g, b) {
|
|
3907
4050
|
if (r.input !== l)
|
|
3908
4051
|
return;
|
|
3909
|
-
r.isPassing = r.isPassing && !!
|
|
3910
|
-
const y = s.stopObserve(), P =
|
|
3911
|
-
if (
|
|
4052
|
+
r.isPassing = r.isPassing && !!b, a.queued = !1;
|
|
4053
|
+
const y = s.stopObserve(), P = Or(a.deps, y);
|
|
4054
|
+
if (Dr(
|
|
3912
4055
|
s,
|
|
3913
4056
|
P,
|
|
3914
4057
|
function() {
|
|
3915
4058
|
try {
|
|
3916
|
-
s.store.set(
|
|
4059
|
+
s.store.set($t);
|
|
3917
4060
|
} catch {
|
|
3918
4061
|
}
|
|
3919
|
-
|
|
4062
|
+
a.queued = !0, r.rerun && clearTimeout(r.rerun), r.rerun = setTimeout(
|
|
3920
4063
|
_t,
|
|
3921
4064
|
0,
|
|
3922
4065
|
s,
|
|
@@ -3926,15 +4069,15 @@ function Tt(e, t, r, i, a) {
|
|
|
3926
4069
|
},
|
|
3927
4070
|
"unshift"
|
|
3928
4071
|
// We want these listeners to run before other events are emitted so the 'state.validating' will be reliable.
|
|
3929
|
-
),
|
|
4072
|
+
), a.deps = y, a.state = b, b === !1 ? Cs(a, i || g) : jr(a), t.length > e + 1) {
|
|
3930
4073
|
const h = t[e + 1];
|
|
3931
|
-
(
|
|
4074
|
+
(b || h.force || !h.skipEmpty) && h.state === null && (h.queued = !0), Tt(e + 1, t, r, i || g, n);
|
|
3932
4075
|
} else
|
|
3933
|
-
|
|
4076
|
+
n();
|
|
3934
4077
|
}
|
|
3935
|
-
(!G(s.value) || !
|
|
3936
|
-
|
|
3937
|
-
}) : Tt(e + 1, t, r, i,
|
|
4078
|
+
(!G(s.value) || !a.skipEmpty) && (r.isPassing || a.force) ? a.queued ? Ss(a, s, (g) => {
|
|
4079
|
+
g instanceof Promise ? g.then((b) => o(!0, b)) : o(!1, g);
|
|
4080
|
+
}) : Tt(e + 1, t, r, i, n) : G(s.value) && a.skipEmpty && r.isPassing ? (s.observe(), s.value, o(!1, r.isPassing)) : o(!1, null);
|
|
3938
4081
|
}
|
|
3939
4082
|
function Ss(e, t, r) {
|
|
3940
4083
|
e.debounce ? e.timer = setTimeout(() => {
|
|
@@ -3943,17 +4086,17 @@ function Ss(e, t, r) {
|
|
|
3943
4086
|
}
|
|
3944
4087
|
function jr(e) {
|
|
3945
4088
|
const t = `rule_${e.name}`;
|
|
3946
|
-
e.messageObserver && (e.messageObserver = e.messageObserver.kill()),
|
|
4089
|
+
e.messageObserver && (e.messageObserver = e.messageObserver.kill()), w(e.observer.store, t) && e.observer.store.remove(t);
|
|
3947
4090
|
}
|
|
3948
4091
|
function Cs(e, t) {
|
|
3949
4092
|
const r = e.observer;
|
|
3950
|
-
It(r) || (e.messageObserver || (e.messageObserver =
|
|
3951
|
-
(i) =>
|
|
4093
|
+
It(r) || (e.messageObserver || (e.messageObserver = nt(r._node)), e.messageObserver.watch(
|
|
4094
|
+
(i) => ws(
|
|
3952
4095
|
i,
|
|
3953
4096
|
e
|
|
3954
4097
|
),
|
|
3955
4098
|
(i) => {
|
|
3956
|
-
const
|
|
4099
|
+
const n = ks(r, e, i), a = /* @__PURE__ */ B({
|
|
3957
4100
|
blocking: e.blocking,
|
|
3958
4101
|
key: `rule_${e.name}`,
|
|
3959
4102
|
meta: {
|
|
@@ -3971,24 +4114,24 @@ function Cs(e, t) {
|
|
|
3971
4114
|
/**
|
|
3972
4115
|
* Determines if this message should be passed to localization.
|
|
3973
4116
|
*/
|
|
3974
|
-
localize: !
|
|
4117
|
+
localize: !n,
|
|
3975
4118
|
/**
|
|
3976
4119
|
* The arguments that will be passed to the validation rules
|
|
3977
4120
|
*/
|
|
3978
4121
|
i18nArgs: i
|
|
3979
4122
|
},
|
|
3980
4123
|
type: "validation",
|
|
3981
|
-
value:
|
|
4124
|
+
value: n || "This field is not valid."
|
|
3982
4125
|
});
|
|
3983
|
-
r.store.set(
|
|
4126
|
+
r.store.set(a);
|
|
3984
4127
|
}
|
|
3985
4128
|
));
|
|
3986
4129
|
}
|
|
3987
|
-
function
|
|
3988
|
-
const i = e.props.validationMessages &&
|
|
4130
|
+
function ks(e, t, r) {
|
|
4131
|
+
const i = e.props.validationMessages && w(e.props.validationMessages, t.name) ? e.props.validationMessages[t.name] : void 0;
|
|
3989
4132
|
return typeof i == "function" ? i(...r) : i;
|
|
3990
4133
|
}
|
|
3991
|
-
function
|
|
4134
|
+
function ws(e, t) {
|
|
3992
4135
|
return [
|
|
3993
4136
|
{
|
|
3994
4137
|
node: e,
|
|
@@ -4000,55 +4143,55 @@ function ks(e, t) {
|
|
|
4000
4143
|
function Ur(e) {
|
|
4001
4144
|
return typeof e.props.validationLabel == "function" ? e.props.validationLabel(e) : e.props.validationLabel || e.props.label || e.props.name || String(e.name);
|
|
4002
4145
|
}
|
|
4003
|
-
var Vr = "(?:[\\*+?()0-9]+)",
|
|
4004
|
-
`^(${Vr}?${
|
|
4146
|
+
var Vr = "(?:[\\*+?()0-9]+)", zr = "[a-zA-Z][a-zA-Z0-9_]+", As = new RegExp(
|
|
4147
|
+
`^(${Vr}?${zr})(?:\\:(.*)+)?$`,
|
|
4005
4148
|
"i"
|
|
4006
|
-
), Ps = new RegExp(`^(${Vr})(${
|
|
4149
|
+
), Ps = new RegExp(`^(${Vr})(${zr})$`, "i"), xs = /([\*+?]+)?(\(\d+\))([\*+?]+)?/, Bt = /\(\d+\)/, Ms = {
|
|
4007
4150
|
blocking: !0,
|
|
4008
4151
|
debounce: 0,
|
|
4009
4152
|
force: !1,
|
|
4010
4153
|
skipEmpty: !0,
|
|
4011
4154
|
name: ""
|
|
4012
4155
|
};
|
|
4013
|
-
function
|
|
4014
|
-
return e ? (typeof e == "string" ? Is(e) : Ce(e)).reduce((
|
|
4015
|
-
let s =
|
|
4156
|
+
function Wt(e, t, r) {
|
|
4157
|
+
return e ? (typeof e == "string" ? Is(e) : Ce(e)).reduce((n, a) => {
|
|
4158
|
+
let s = a.shift();
|
|
4016
4159
|
const l = {};
|
|
4017
4160
|
if (typeof s == "string") {
|
|
4018
|
-
const [o,
|
|
4019
|
-
|
|
4161
|
+
const [o, g] = Fs(s);
|
|
4162
|
+
w(t, o) && (s = t[o], Object.assign(l, g));
|
|
4020
4163
|
}
|
|
4021
|
-
return typeof s == "function" &&
|
|
4022
|
-
observer:
|
|
4164
|
+
return typeof s == "function" && n.push({
|
|
4165
|
+
observer: nt(r),
|
|
4023
4166
|
rule: s,
|
|
4024
|
-
args:
|
|
4167
|
+
args: a,
|
|
4025
4168
|
timer: 0,
|
|
4026
4169
|
state: null,
|
|
4027
4170
|
queued: !0,
|
|
4028
4171
|
deps: /* @__PURE__ */ new Map(),
|
|
4029
4172
|
...Ms,
|
|
4030
4173
|
...Rs(l, s)
|
|
4031
|
-
}),
|
|
4174
|
+
}), n;
|
|
4032
4175
|
}, []) : [];
|
|
4033
4176
|
}
|
|
4034
4177
|
function Is(e) {
|
|
4035
4178
|
return e.split("|").reduce((t, r) => {
|
|
4036
|
-
const i =
|
|
4179
|
+
const i = Ds(r);
|
|
4037
4180
|
return i && t.push(i), t;
|
|
4038
4181
|
}, []);
|
|
4039
4182
|
}
|
|
4040
|
-
function
|
|
4183
|
+
function Ds(e) {
|
|
4041
4184
|
const t = e.trim();
|
|
4042
4185
|
if (t) {
|
|
4043
4186
|
const r = t.match(As);
|
|
4044
4187
|
if (r && typeof r[1] == "string") {
|
|
4045
|
-
const i = r[1].trim(),
|
|
4046
|
-
return [i, ...
|
|
4188
|
+
const i = r[1].trim(), n = r[2] && typeof r[2] == "string" ? r[2].split(",").map((a) => a.trim()) : [];
|
|
4189
|
+
return [i, ...n];
|
|
4047
4190
|
}
|
|
4048
4191
|
}
|
|
4049
4192
|
return !1;
|
|
4050
4193
|
}
|
|
4051
|
-
function
|
|
4194
|
+
function Fs(e) {
|
|
4052
4195
|
const t = e.match(Ps);
|
|
4053
4196
|
if (!t)
|
|
4054
4197
|
return [e, { name: e }];
|
|
@@ -4056,20 +4199,20 @@ function Ds(e) {
|
|
|
4056
4199
|
"*": { force: !0 },
|
|
4057
4200
|
"+": { skipEmpty: !1 },
|
|
4058
4201
|
"?": { blocking: !1 }
|
|
4059
|
-
}, [, i,
|
|
4202
|
+
}, [, i, n] = t, a = Bt.test(i) ? i.match(xs) || [] : [, i];
|
|
4060
4203
|
return [
|
|
4061
|
-
|
|
4062
|
-
[
|
|
4063
|
-
(s, l) => (l && (
|
|
4064
|
-
(o) =>
|
|
4204
|
+
n,
|
|
4205
|
+
[a[1], a[2], a[3]].reduce(
|
|
4206
|
+
(s, l) => (l && (Bt.test(l) ? s.debounce = parseInt(l.substr(1, l.length - 1)) : l.split("").forEach(
|
|
4207
|
+
(o) => w(r, o) && Object.assign(s, r[o])
|
|
4065
4208
|
)), s),
|
|
4066
|
-
{ name:
|
|
4209
|
+
{ name: n }
|
|
4067
4210
|
)
|
|
4068
4211
|
];
|
|
4069
4212
|
}
|
|
4070
4213
|
function Rs(e, t) {
|
|
4071
4214
|
return e.name || (e.name = t.ruleName || t.name), ["skipEmpty", "force", "debounce", "blocking"].reduce(
|
|
4072
|
-
(r, i) => (
|
|
4215
|
+
(r, i) => (w(t, i) && !w(r, i) && Object.assign(r, {
|
|
4073
4216
|
[i]: t[i]
|
|
4074
4217
|
}), r),
|
|
4075
4218
|
e
|
|
@@ -4079,7 +4222,7 @@ function x(e) {
|
|
|
4079
4222
|
return e[0].toUpperCase() + e.substr(1);
|
|
4080
4223
|
}
|
|
4081
4224
|
function Kt(e, t = "or") {
|
|
4082
|
-
return e.reduce((r, i,
|
|
4225
|
+
return e.reduce((r, i, n) => (r += i, n <= e.length - 2 && e.length > 2 && (r += ", "), n === e.length - 2 && (r += `${e.length === 2 ? " " : ""}${t} `), r), "");
|
|
4083
4226
|
}
|
|
4084
4227
|
function Ve(e) {
|
|
4085
4228
|
const t = typeof e == "string" ? new Date(Date.parse(e)) : e;
|
|
@@ -4088,10 +4231,10 @@ function Ve(e) {
|
|
|
4088
4231
|
timeZone: "UTC"
|
|
4089
4232
|
}).format(t) : "(unknown)";
|
|
4090
4233
|
}
|
|
4091
|
-
function
|
|
4234
|
+
function Os(e, t) {
|
|
4092
4235
|
return Number(e) >= Number(t) ? [t, e] : [e, t];
|
|
4093
4236
|
}
|
|
4094
|
-
var
|
|
4237
|
+
var Es = {
|
|
4095
4238
|
/**
|
|
4096
4239
|
* Shown on a button for adding additional items.
|
|
4097
4240
|
*/
|
|
@@ -4298,7 +4441,7 @@ var Os = {
|
|
|
4298
4441
|
between({ name: e, args: t }) {
|
|
4299
4442
|
if (isNaN(t[0]) || isNaN(t[1]))
|
|
4300
4443
|
return "This field was configured incorrectly and can’t be submitted.";
|
|
4301
|
-
const [r, i] =
|
|
4444
|
+
const [r, i] = Os(t[0], t[1]);
|
|
4302
4445
|
return `${x(e)} must be between ${r} and ${i}.`;
|
|
4303
4446
|
},
|
|
4304
4447
|
/**
|
|
@@ -4346,8 +4489,8 @@ var Os = {
|
|
|
4346
4489
|
* @see {@link https://formkit.com/essentials/validation#length}
|
|
4347
4490
|
*/
|
|
4348
4491
|
length({ name: e, args: [t = 0, r = 1 / 0] }) {
|
|
4349
|
-
const i = Number(t) <= Number(r) ? t : r,
|
|
4350
|
-
return i == 1 &&
|
|
4492
|
+
const i = Number(t) <= Number(r) ? t : r, n = Number(r) >= Number(t) ? r : t;
|
|
4493
|
+
return i == 1 && n === 1 / 0 ? `${x(e)} must be at least one character.` : i == 0 && n ? `${x(e)} must be less than or equal to ${n} characters.` : i === n ? `${x(e)} should be ${n} characters long.` : i && n === 1 / 0 ? `${x(e)} must be greater than or equal to ${i} characters.` : `${x(e)} must be between ${i} and ${n} characters.`;
|
|
4351
4494
|
},
|
|
4352
4495
|
/**
|
|
4353
4496
|
* Value is not a match
|
|
@@ -4396,10 +4539,10 @@ var Os = {
|
|
|
4396
4539
|
* @see {@link https://formkit.com/essentials/validation#require-one}
|
|
4397
4540
|
*/
|
|
4398
4541
|
require_one: ({ name: e, node: t, args: r }) => {
|
|
4399
|
-
const i = r.map((
|
|
4400
|
-
const
|
|
4401
|
-
return
|
|
4402
|
-
}).filter((
|
|
4542
|
+
const i = r.map((n) => {
|
|
4543
|
+
const a = t.at(n);
|
|
4544
|
+
return a ? Ur(a) : !1;
|
|
4545
|
+
}).filter((n) => !!n);
|
|
4403
4546
|
return i.unshift(e), `${i.join(" or ")} is required.`;
|
|
4404
4547
|
},
|
|
4405
4548
|
/**
|
|
@@ -4427,29 +4570,29 @@ var Os = {
|
|
|
4427
4570
|
* Shown when the date is invalid.
|
|
4428
4571
|
*/
|
|
4429
4572
|
invalidDate: "The selected date is invalid."
|
|
4430
|
-
}, Hs = { ui:
|
|
4573
|
+
}, Hs = { ui: Es, validation: Ns }, Gt = /* @__PURE__ */ new Set();
|
|
4431
4574
|
function js(e) {
|
|
4432
4575
|
return function(r) {
|
|
4433
4576
|
Gt.add(r), r.on("destroying", () => Gt.delete(r));
|
|
4434
|
-
let i = Yt(r.config.locale, e),
|
|
4435
|
-
r.on("prop:locale", ({ payload:
|
|
4436
|
-
i = Yt(
|
|
4437
|
-
}), r.on("prop:label", () => r.store.touch()), r.on("prop:validationLabel", () => r.store.touch()), r.hook.text((
|
|
4438
|
-
var o,
|
|
4439
|
-
const l = ((o =
|
|
4440
|
-
if (
|
|
4441
|
-
const
|
|
4442
|
-
typeof
|
|
4577
|
+
let i = Yt(r.config.locale, e), n = i ? e[i] : {};
|
|
4578
|
+
r.on("prop:locale", ({ payload: a }) => {
|
|
4579
|
+
i = Yt(a, e), n = i ? e[i] : {}, r.store.touch();
|
|
4580
|
+
}), r.on("prop:label", () => r.store.touch()), r.on("prop:validationLabel", () => r.store.touch()), r.hook.text((a, s) => {
|
|
4581
|
+
var o, g;
|
|
4582
|
+
const l = ((o = a.meta) == null ? void 0 : o.messageKey) || a.key;
|
|
4583
|
+
if (w(n, a.type) && w(n[a.type], l)) {
|
|
4584
|
+
const b = n[a.type][l];
|
|
4585
|
+
typeof b == "function" ? a.value = Array.isArray((g = a.meta) == null ? void 0 : g.i18nArgs) ? b(...a.meta.i18nArgs) : b(a) : a.value = b;
|
|
4443
4586
|
}
|
|
4444
|
-
return s(
|
|
4587
|
+
return s(a);
|
|
4445
4588
|
});
|
|
4446
4589
|
};
|
|
4447
4590
|
}
|
|
4448
4591
|
function Yt(e, t) {
|
|
4449
|
-
if (
|
|
4592
|
+
if (w(t, e))
|
|
4450
4593
|
return e;
|
|
4451
4594
|
const [r] = e.split("-");
|
|
4452
|
-
if (
|
|
4595
|
+
if (w(t, r))
|
|
4453
4596
|
return r;
|
|
4454
4597
|
for (const i in t)
|
|
4455
4598
|
return i;
|
|
@@ -4457,13 +4600,13 @@ function Yt(e, t) {
|
|
|
4457
4600
|
}
|
|
4458
4601
|
function Us(...e) {
|
|
4459
4602
|
const t = e.reduce(
|
|
4460
|
-
(i,
|
|
4603
|
+
(i, n) => le(i, n),
|
|
4461
4604
|
{}
|
|
4462
4605
|
), r = () => {
|
|
4463
4606
|
};
|
|
4464
4607
|
return r.library = function(i) {
|
|
4465
|
-
const
|
|
4466
|
-
|
|
4608
|
+
const n = Le(i.props.type);
|
|
4609
|
+
w(t, n) && i.define(t[n]);
|
|
4467
4610
|
}, r;
|
|
4468
4611
|
}
|
|
4469
4612
|
var Vs = [
|
|
@@ -4496,10 +4639,10 @@ var Vs = [
|
|
|
4496
4639
|
"onSubmitInvalid",
|
|
4497
4640
|
"onSubmitRaw"
|
|
4498
4641
|
];
|
|
4499
|
-
function
|
|
4642
|
+
function at(e) {
|
|
4500
4643
|
return e && typeof e == "object" && "group" in e && Array.isArray(e.options);
|
|
4501
4644
|
}
|
|
4502
|
-
function
|
|
4645
|
+
function qr(e, t = { count: 1 }) {
|
|
4503
4646
|
return Array.isArray(e) ? e.map(
|
|
4504
4647
|
(r) => {
|
|
4505
4648
|
if (typeof r == "string" || typeof r == "number")
|
|
@@ -4509,7 +4652,7 @@ function zr(e, t = { count: 1 }) {
|
|
|
4509
4652
|
};
|
|
4510
4653
|
if (typeof r == "object") {
|
|
4511
4654
|
if ("group" in r)
|
|
4512
|
-
return r.options =
|
|
4655
|
+
return r.options = qr(r.options || [], t), r;
|
|
4513
4656
|
"value" in r && typeof r.value != "string" && Object.assign(r, {
|
|
4514
4657
|
value: `__mask_${t.count++}`,
|
|
4515
4658
|
__original: r.value
|
|
@@ -4526,33 +4669,33 @@ function de(e, t, r = !1) {
|
|
|
4526
4669
|
if (Array.isArray(e)) {
|
|
4527
4670
|
for (const i of e)
|
|
4528
4671
|
if (!(typeof i != "object" && i)) {
|
|
4529
|
-
if (
|
|
4530
|
-
const
|
|
4531
|
-
if (
|
|
4532
|
-
return
|
|
4672
|
+
if (at(i)) {
|
|
4673
|
+
const n = de(i.options, t, !0);
|
|
4674
|
+
if (n !== void 0)
|
|
4675
|
+
return n;
|
|
4533
4676
|
} else if (t == i.value)
|
|
4534
4677
|
return "__original" in i ? i.__original : i.value;
|
|
4535
4678
|
}
|
|
4536
4679
|
}
|
|
4537
4680
|
return r ? void 0 : t;
|
|
4538
4681
|
}
|
|
4539
|
-
function
|
|
4682
|
+
function we(e, t) {
|
|
4540
4683
|
return e === null && t === void 0 || e === void 0 && t === null ? !1 : e == t ? !0 : Se(e) && Se(t) ? U(e, t) : !1;
|
|
4541
4684
|
}
|
|
4542
|
-
function
|
|
4685
|
+
function Dt(e) {
|
|
4543
4686
|
e.hook.prop((t, r) => {
|
|
4544
4687
|
var i;
|
|
4545
|
-
return t.prop === "options" && (typeof t.value == "function" ? (e.props.optionsLoader = t.value, t.value = []) : ((i = e.props)._normalizeCounter ?? (i._normalizeCounter = { count: 1 }), t.value =
|
|
4688
|
+
return t.prop === "options" && (typeof t.value == "function" ? (e.props.optionsLoader = t.value, t.value = []) : ((i = e.props)._normalizeCounter ?? (i._normalizeCounter = { count: 1 }), t.value = qr(t.value, e.props._normalizeCounter))), r(t);
|
|
4546
4689
|
});
|
|
4547
4690
|
}
|
|
4548
4691
|
// @__NO_SIDE_EFFECTS__
|
|
4549
4692
|
function C(e, t, r = !1) {
|
|
4550
4693
|
return (...i) => {
|
|
4551
|
-
const
|
|
4694
|
+
const n = (a) => {
|
|
4552
4695
|
const s = !t || typeof t == "string" ? { $el: t } : t();
|
|
4553
|
-
return (vt(s) ||
|
|
4696
|
+
return (vt(s) || Lt(s)) && (s.meta ? s.meta.section = e : s.meta = { section: e }, i.length && !s.children && (s.children = [
|
|
4554
4697
|
...i.map(
|
|
4555
|
-
(l) => typeof l == "function" ? l(
|
|
4698
|
+
(l) => typeof l == "function" ? l(a) : l
|
|
4556
4699
|
)
|
|
4557
4700
|
]), vt(s) && (s.attrs = {
|
|
4558
4701
|
class: `$classes.${e}`,
|
|
@@ -4560,14 +4703,14 @@ function C(e, t, r = !1) {
|
|
|
4560
4703
|
})), {
|
|
4561
4704
|
if: `$slots.${e}`,
|
|
4562
4705
|
then: `$slots.${e}`,
|
|
4563
|
-
else: e in
|
|
4706
|
+
else: e in a ? /* @__PURE__ */ Me(s, a[e]) : s
|
|
4564
4707
|
};
|
|
4565
4708
|
};
|
|
4566
|
-
return
|
|
4709
|
+
return n._s = e, r ? /* @__PURE__ */ zs(n) : n;
|
|
4567
4710
|
};
|
|
4568
4711
|
}
|
|
4569
4712
|
// @__NO_SIDE_EFFECTS__
|
|
4570
|
-
function
|
|
4713
|
+
function zs(e) {
|
|
4571
4714
|
return (t) => [e(t)];
|
|
4572
4715
|
}
|
|
4573
4716
|
function Qe(e) {
|
|
@@ -4577,7 +4720,7 @@ function Qe(e) {
|
|
|
4577
4720
|
function Me(e, t = {}) {
|
|
4578
4721
|
return typeof e == "string" ? Qe(t) || typeof t == "string" ? t : e : Array.isArray(e) ? Qe(t) ? t : e : le(e, t);
|
|
4579
4722
|
}
|
|
4580
|
-
var
|
|
4723
|
+
var qs = /* @__PURE__ */ C("actions", () => ({
|
|
4581
4724
|
$el: "div",
|
|
4582
4725
|
if: "$actions"
|
|
4583
4726
|
})), Ze = /* @__PURE__ */ C("input", () => ({
|
|
@@ -4606,13 +4749,13 @@ var zs = /* @__PURE__ */ C("actions", () => ({
|
|
|
4606
4749
|
}
|
|
4607
4750
|
}
|
|
4608
4751
|
}
|
|
4609
|
-
})),
|
|
4752
|
+
})), Br = /* @__PURE__ */ C("optionHelp", () => ({
|
|
4610
4753
|
$el: "div",
|
|
4611
4754
|
if: "$option.help",
|
|
4612
4755
|
attrs: {
|
|
4613
4756
|
id: '$: "help-" + $option.attrs.id'
|
|
4614
4757
|
}
|
|
4615
|
-
})), Je = /* @__PURE__ */ C("inner", "span"), Xe = /* @__PURE__ */ C("label", "span"),
|
|
4758
|
+
})), Je = /* @__PURE__ */ C("inner", "span"), Xe = /* @__PURE__ */ C("label", "span"), Wr = /* @__PURE__ */ C("option", () => ({
|
|
4616
4759
|
$el: "li",
|
|
4617
4760
|
for: ["option", "$options"],
|
|
4618
4761
|
attrs: {
|
|
@@ -4632,7 +4775,7 @@ var zs = /* @__PURE__ */ C("actions", () => ({
|
|
|
4632
4775
|
else: "$fns.isChecked($option.value) || undefined"
|
|
4633
4776
|
}
|
|
4634
4777
|
}
|
|
4635
|
-
})),
|
|
4778
|
+
})), Bs = /* @__PURE__ */ C("input", () => ({
|
|
4636
4779
|
$el: "button",
|
|
4637
4780
|
bind: "$attrs",
|
|
4638
4781
|
attrs: {
|
|
@@ -4641,7 +4784,7 @@ var zs = /* @__PURE__ */ C("actions", () => ({
|
|
|
4641
4784
|
name: "$node.name",
|
|
4642
4785
|
id: "$id"
|
|
4643
4786
|
}
|
|
4644
|
-
})),
|
|
4787
|
+
})), Ws = /* @__PURE__ */ C("default", null), tt = /* @__PURE__ */ C("decorator", () => ({
|
|
4645
4788
|
$el: "span",
|
|
4646
4789
|
attrs: {
|
|
4647
4790
|
"aria-hidden": "true"
|
|
@@ -4701,7 +4844,7 @@ var zs = /* @__PURE__ */ C("actions", () => ({
|
|
|
4701
4844
|
onSubmit: "$handlers.submit",
|
|
4702
4845
|
"data-loading": "$state.loading || undefined"
|
|
4703
4846
|
}
|
|
4704
|
-
})),
|
|
4847
|
+
})), Ft = /* @__PURE__ */ C("wrapper", null, !0), ee = /* @__PURE__ */ C("help", () => ({
|
|
4705
4848
|
$el: "div",
|
|
4706
4849
|
if: "$help",
|
|
4707
4850
|
attrs: {
|
|
@@ -4839,16 +4982,16 @@ var zs = /* @__PURE__ */ C("actions", () => ({
|
|
|
4839
4982
|
children: "$initialValue"
|
|
4840
4983
|
})), Pe = /* @__PURE__ */ C("wrapper", "div"), il = 0;
|
|
4841
4984
|
function Zr(e) {
|
|
4842
|
-
(e.type === "group" || e.type === "list") && e.plugins.add(
|
|
4985
|
+
(e.type === "group" || e.type === "list") && e.plugins.add(nl);
|
|
4843
4986
|
}
|
|
4844
|
-
function
|
|
4987
|
+
function nl(e) {
|
|
4845
4988
|
e.props.type === "radio" && (e.addProps(["altName"]), e.props.altName = `${e.name}_${il++}`);
|
|
4846
4989
|
}
|
|
4847
4990
|
function Jr(e) {
|
|
4848
4991
|
return function(t, r) {
|
|
4849
4992
|
return t.prop === "options" && Array.isArray(t.value) && (t.value = t.value.map((i) => {
|
|
4850
|
-
var
|
|
4851
|
-
return (
|
|
4993
|
+
var n;
|
|
4994
|
+
return (n = i.attrs) != null && n.id ? i : le(i, {
|
|
4852
4995
|
attrs: {
|
|
4853
4996
|
id: `${e.props.id}-option-${Ct(String(i.value))}`
|
|
4854
4997
|
}
|
|
@@ -4858,13 +5001,13 @@ function Jr(e) {
|
|
|
4858
5001
|
}))), r(t);
|
|
4859
5002
|
};
|
|
4860
5003
|
}
|
|
4861
|
-
function
|
|
5004
|
+
function al(e, t) {
|
|
4862
5005
|
const r = t.target;
|
|
4863
5006
|
if (r instanceof HTMLInputElement) {
|
|
4864
5007
|
const i = Array.isArray(e.props.options) ? de(e.props.options, r.value) : r.value;
|
|
4865
|
-
Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((
|
|
5008
|
+
Array.isArray(e.props.options) && e.props.options.length ? Array.isArray(e._value) ? e._value.some((n) => we(i, n)) ? e.input(
|
|
4866
5009
|
e._value.filter(
|
|
4867
|
-
(
|
|
5010
|
+
(n) => !we(i, n)
|
|
4868
5011
|
)
|
|
4869
5012
|
) : e.input([...e._value, i]) : e.input([i]) : r.checked ? e.input(e.props.onValue) : e.input(e.props.offValue);
|
|
4870
5013
|
}
|
|
@@ -4872,16 +5015,16 @@ function nl(e, t) {
|
|
|
4872
5015
|
function sl(e, t) {
|
|
4873
5016
|
var r, i;
|
|
4874
5017
|
return (r = e.context) == null || r.value, (i = e.context) == null || i._value, Array.isArray(e._value) ? e._value.some(
|
|
4875
|
-
(
|
|
5018
|
+
(n) => we(de(e.props.options, t), n)
|
|
4876
5019
|
) : !1;
|
|
4877
5020
|
}
|
|
4878
5021
|
function ll(e) {
|
|
4879
5022
|
e.on("created", () => {
|
|
4880
5023
|
var t, r;
|
|
4881
|
-
(t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked =
|
|
5024
|
+
(t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = al.bind(null, e)), (r = e.context) != null && r.fns && (e.context.fns.isChecked = sl.bind(null, e)), w(e.props, "onValue") || (e.props.onValue = !0), w(e.props, "offValue") || (e.props.offValue = !1);
|
|
4882
5025
|
}), e.hook.prop(Jr(e));
|
|
4883
5026
|
}
|
|
4884
|
-
function
|
|
5027
|
+
function $e(e, t) {
|
|
4885
5028
|
return (r) => {
|
|
4886
5029
|
r.props[`${e}Icon`] === void 0 && (r.props[`${e}Icon`] = t.startsWith("<svg") ? t : `default:${t}`);
|
|
4887
5030
|
};
|
|
@@ -4893,10 +5036,10 @@ function Rt(e) {
|
|
|
4893
5036
|
e.config.disabled = Q(t);
|
|
4894
5037
|
});
|
|
4895
5038
|
}
|
|
4896
|
-
function
|
|
5039
|
+
function We(e, t) {
|
|
4897
5040
|
return (r) => {
|
|
4898
5041
|
r.store.set(
|
|
4899
|
-
/* @__PURE__ */
|
|
5042
|
+
/* @__PURE__ */ B({
|
|
4900
5043
|
key: e,
|
|
4901
5044
|
type: "ui",
|
|
4902
5045
|
value: t || e,
|
|
@@ -4916,7 +5059,7 @@ function Xt(e, t) {
|
|
|
4916
5059
|
t.target instanceof HTMLInputElement ? e === "dragover" && t.target.setAttribute("data-file-hover", "true") : t.preventDefault(), e === "drop" && Xr(t);
|
|
4917
5060
|
}
|
|
4918
5061
|
function ol(e) {
|
|
4919
|
-
|
|
5062
|
+
We("noFiles", "Select file")(e), We("removeAll", "Remove all")(e), We("remove")(e), e.addProps(["_hasMultipleFiles"]), lt && (window._FormKit_File_Drop || (window.addEventListener(
|
|
4920
5063
|
"dragover",
|
|
4921
5064
|
Xt.bind(null, "dragover")
|
|
4922
5065
|
), window.addEventListener("drop", Xt.bind(null, "drop")), window.addEventListener("dragleave", Xr), window._FormKit_File_Drop = !0)), e.hook.input((t, r) => r(Array.isArray(t) ? t : [])), e.on("input", ({ payload: t }) => {
|
|
@@ -4933,20 +5076,20 @@ function ol(e) {
|
|
|
4933
5076
|
r && (r.value = ""), r == null || r.focus();
|
|
4934
5077
|
}
|
|
4935
5078
|
}, e.context.handlers.files = (t) => {
|
|
4936
|
-
var i,
|
|
5079
|
+
var i, n;
|
|
4937
5080
|
const r = [];
|
|
4938
5081
|
if (t.target instanceof HTMLInputElement && t.target.files) {
|
|
4939
|
-
for (let
|
|
5082
|
+
for (let a = 0; a < t.target.files.length; a++) {
|
|
4940
5083
|
let s;
|
|
4941
|
-
(s = t.target.files.item(
|
|
5084
|
+
(s = t.target.files.item(a)) && r.push({ name: s.name, file: s });
|
|
4942
5085
|
}
|
|
4943
5086
|
e.input(r);
|
|
4944
5087
|
}
|
|
4945
|
-
e.context && (e.context.files = r), typeof ((i = e.props.attrs) == null ? void 0 : i.onChange) == "function" && ((
|
|
5088
|
+
e.context && (e.context.files = r), typeof ((i = e.props.attrs) == null ? void 0 : i.onChange) == "function" && ((n = e.props.attrs) == null || n.onChange(t));
|
|
4946
5089
|
});
|
|
4947
5090
|
});
|
|
4948
5091
|
}
|
|
4949
|
-
var er = /* @__PURE__ */
|
|
5092
|
+
var er = /* @__PURE__ */ B({
|
|
4950
5093
|
key: "loading",
|
|
4951
5094
|
value: !0,
|
|
4952
5095
|
visible: !1
|
|
@@ -4955,8 +5098,8 @@ async function ul(e, t) {
|
|
|
4955
5098
|
const r = Math.random();
|
|
4956
5099
|
if (e.props._submitNonce = r, t.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(er), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== r))
|
|
4957
5100
|
return;
|
|
4958
|
-
const i = (
|
|
4959
|
-
/* @__PURE__ */
|
|
5101
|
+
const i = (n) => n.store.set(
|
|
5102
|
+
/* @__PURE__ */ B({
|
|
4960
5103
|
key: "submitted",
|
|
4961
5104
|
value: !0,
|
|
4962
5105
|
visible: !1
|
|
@@ -4965,20 +5108,20 @@ async function ul(e, t) {
|
|
|
4965
5108
|
if (e.walk(i), i(e), e.emit("submit-raw"), typeof e.props.onSubmitRaw == "function" && e.props.onSubmitRaw(t, e), e.ledger.value("blocking"))
|
|
4966
5109
|
typeof e.props.onSubmitInvalid == "function" && e.props.onSubmitInvalid(e), e.props.incompleteMessage !== !1 && ei(e);
|
|
4967
5110
|
else if (typeof e.props.onSubmit == "function") {
|
|
4968
|
-
const
|
|
5111
|
+
const n = e.props.onSubmit(
|
|
4969
5112
|
e.hook.submit.dispatch(Ce(e.value)),
|
|
4970
5113
|
e
|
|
4971
5114
|
);
|
|
4972
|
-
if (
|
|
4973
|
-
const
|
|
4974
|
-
|
|
5115
|
+
if (n instanceof Promise) {
|
|
5116
|
+
const a = e.props.disabled === void 0 && e.props.submitBehavior !== "live";
|
|
5117
|
+
a && (e.props.disabled = !0), e.store.set(er), await n, a && (e.props.disabled = !1), e.store.remove("loading");
|
|
4975
5118
|
}
|
|
4976
5119
|
} else
|
|
4977
5120
|
t.target instanceof HTMLFormElement && t.target.submit();
|
|
4978
5121
|
}
|
|
4979
5122
|
function ei(e) {
|
|
4980
5123
|
e.store.set(
|
|
4981
|
-
/* @__PURE__ */
|
|
5124
|
+
/* @__PURE__ */ B({
|
|
4982
5125
|
blocking: !1,
|
|
4983
5126
|
key: "incomplete",
|
|
4984
5127
|
meta: {
|
|
@@ -4999,7 +5142,7 @@ function cl(e) {
|
|
|
4999
5142
|
e.props.submitAttrs = { ...e.props.submitAttrs, disabled: r };
|
|
5000
5143
|
}), e.on("created", () => {
|
|
5001
5144
|
var r;
|
|
5002
|
-
(r = e.context) != null && r.handlers && (e.context.handlers.submit = ul.bind(null, e)),
|
|
5145
|
+
(r = e.context) != null && r.handlers && (e.context.handlers.submit = ul.bind(null, e)), w(e.props, "actions") || (e.props.actions = !0);
|
|
5003
5146
|
}), e.on("prop:incompleteMessage", () => {
|
|
5004
5147
|
e.store.incomplete && ei(e);
|
|
5005
5148
|
}), e.on("settled:blocking", () => e.store.remove("incomplete"));
|
|
@@ -5019,8 +5162,8 @@ function ti(e) {
|
|
|
5019
5162
|
e.hook.input((r, i) => {
|
|
5020
5163
|
if (r === "")
|
|
5021
5164
|
return i(void 0);
|
|
5022
|
-
const
|
|
5023
|
-
return Number.isFinite(
|
|
5165
|
+
const n = e.props.number === "integer" ? parseInt(r) : parseFloat(r);
|
|
5166
|
+
return Number.isFinite(n) ? i(n) : i(t ? void 0 : r);
|
|
5024
5167
|
});
|
|
5025
5168
|
}
|
|
5026
5169
|
function ml(e, t) {
|
|
@@ -5028,26 +5171,26 @@ function ml(e, t) {
|
|
|
5028
5171
|
}
|
|
5029
5172
|
function dl(e, t) {
|
|
5030
5173
|
var r, i;
|
|
5031
|
-
return (r = e.context) == null || r.value, (i = e.context) == null || i._value,
|
|
5174
|
+
return (r = e.context) == null || r.value, (i = e.context) == null || i._value, we(de(e.props.options, t), e._value);
|
|
5032
5175
|
}
|
|
5033
|
-
function
|
|
5176
|
+
function gl(e) {
|
|
5034
5177
|
e.on("created", () => {
|
|
5035
5178
|
var t, r;
|
|
5036
|
-
Array.isArray(e.props.options) ||
|
|
5179
|
+
Array.isArray(e.props.options) || ge(350, {
|
|
5037
5180
|
node: e,
|
|
5038
5181
|
inputType: "radio"
|
|
5039
5182
|
}), (t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = ml.bind(null, e)), (r = e.context) != null && r.fns && (e.context.fns.isChecked = dl.bind(null, e));
|
|
5040
5183
|
}), e.hook.prop(Jr(e));
|
|
5041
5184
|
}
|
|
5042
|
-
function
|
|
5043
|
-
if (
|
|
5185
|
+
function bl(e, t) {
|
|
5186
|
+
if (at(t))
|
|
5044
5187
|
return !1;
|
|
5045
5188
|
e.context && e.context.value;
|
|
5046
5189
|
const r = "__original" in t ? t.__original : t.value;
|
|
5047
|
-
return Array.isArray(e._value) ? e._value.some((i) =>
|
|
5190
|
+
return Array.isArray(e._value) ? e._value.some((i) => we(i, r)) : (e._value === void 0 || e._value === null && !ri(e.props.options, null)) && t.attrs && t.attrs["data-is-placeholder"] ? !0 : we(r, e._value);
|
|
5048
5191
|
}
|
|
5049
5192
|
function ri(e, t) {
|
|
5050
|
-
return e.some((r) =>
|
|
5193
|
+
return e.some((r) => at(r) ? ri(r.options, t) : ("__original" in r ? r.__original : r.value) === t);
|
|
5051
5194
|
}
|
|
5052
5195
|
async function hl(e, t) {
|
|
5053
5196
|
var r;
|
|
@@ -5055,7 +5198,7 @@ async function hl(e, t) {
|
|
|
5055
5198
|
}
|
|
5056
5199
|
function yl(e, t) {
|
|
5057
5200
|
const r = t.target, i = r.hasAttribute("multiple") ? Array.from(r.selectedOptions).map(
|
|
5058
|
-
(
|
|
5201
|
+
(n) => de(e.props.options, n.value)
|
|
5059
5202
|
) : de(e.props.options, r.value);
|
|
5060
5203
|
e.input(i);
|
|
5061
5204
|
}
|
|
@@ -5078,37 +5221,37 @@ function tr(e, t) {
|
|
|
5078
5221
|
function ii(e) {
|
|
5079
5222
|
const t = e.length > 0 ? e[0] : void 0;
|
|
5080
5223
|
if (t)
|
|
5081
|
-
return
|
|
5224
|
+
return at(t) ? ii(t.options) : "__original" in t ? t.__original : t.value;
|
|
5082
5225
|
}
|
|
5083
5226
|
function vl(e) {
|
|
5084
5227
|
e.on("created", () => {
|
|
5085
|
-
var r, i,
|
|
5228
|
+
var r, i, n;
|
|
5086
5229
|
const t = Q((r = e.props.attrs) == null ? void 0 : r.multiple);
|
|
5087
|
-
!t && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop:
|
|
5230
|
+
!t && e.props.placeholder && Array.isArray(e.props.options) && (e.hook.prop(({ prop: a, value: s }, l) => (a === "options" && (s = tr(s, e.props.placeholder)), l({ prop: a, value: s }))), e.props.options = tr(
|
|
5088
5231
|
e.props.options,
|
|
5089
5232
|
e.props.placeholder
|
|
5090
5233
|
)), t ? e.value === void 0 && e.input([], !1) : e.context && !e.context.options && (e.props.attrs = Object.assign({}, e.props.attrs, {
|
|
5091
5234
|
value: e._value
|
|
5092
|
-
}), e.on("input", ({ payload:
|
|
5235
|
+
}), e.on("input", ({ payload: a }) => {
|
|
5093
5236
|
e.props.attrs = Object.assign({}, e.props.attrs, {
|
|
5094
|
-
value:
|
|
5237
|
+
value: a
|
|
5095
5238
|
});
|
|
5096
|
-
})), (i = e.context) != null && i.handlers && (e.context.handlers.selectInput = yl.bind(null, e), e.context.handlers.onChange = hl.bind(null, e)), (
|
|
5239
|
+
})), (i = e.context) != null && i.handlers && (e.context.handlers.selectInput = yl.bind(null, e), e.context.handlers.onChange = hl.bind(null, e)), (n = e.context) != null && n.fns && (e.context.fns.isSelected = bl.bind(null, e), e.context.fns.showPlaceholder = (a, s) => {
|
|
5097
5240
|
if (!Array.isArray(e.props.options))
|
|
5098
5241
|
return !1;
|
|
5099
5242
|
const l = e.props.options.some(
|
|
5100
5243
|
(o) => {
|
|
5101
5244
|
if (o.attrs && "data-is-placeholder" in o.attrs)
|
|
5102
5245
|
return !1;
|
|
5103
|
-
const
|
|
5104
|
-
return U(
|
|
5246
|
+
const g = "__original" in o ? o.__original : o.value;
|
|
5247
|
+
return U(a, g);
|
|
5105
5248
|
}
|
|
5106
5249
|
);
|
|
5107
5250
|
return s && !l ? !0 : void 0;
|
|
5108
5251
|
});
|
|
5109
5252
|
}), e.hook.input((t, r) => {
|
|
5110
|
-
var i,
|
|
5111
|
-
return !e.props.placeholder && t === void 0 && Array.isArray((i = e.props) == null ? void 0 : i.options) && e.props.options.length && !Q((
|
|
5253
|
+
var i, n, a;
|
|
5254
|
+
return !e.props.placeholder && t === void 0 && Array.isArray((i = e.props) == null ? void 0 : i.options) && e.props.options.length && !Q((a = (n = e.props) == null ? void 0 : n.attrs) == null ? void 0 : a.multiple) && (t = ii(e.props.options)), r(t);
|
|
5112
5255
|
});
|
|
5113
5256
|
}
|
|
5114
5257
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -5116,7 +5259,7 @@ function St(e) {
|
|
|
5116
5259
|
return !!(ye(e) && e.if && e.if.startsWith("$slots.") && typeof e.then == "string" && e.then.startsWith("$slots.") && "else" in e);
|
|
5117
5260
|
}
|
|
5118
5261
|
// @__NO_SIDE_EFFECTS__
|
|
5119
|
-
function
|
|
5262
|
+
function Ll(e, t = {}) {
|
|
5120
5263
|
const r = /* @__PURE__ */ ce(
|
|
5121
5264
|
/* @__PURE__ */ Pe(
|
|
5122
5265
|
/* @__PURE__ */ He("$label"),
|
|
@@ -5128,29 +5271,29 @@ function $l(e, t = {}) {
|
|
|
5128
5271
|
return (i = {}) => r(le(t, i));
|
|
5129
5272
|
}
|
|
5130
5273
|
// @__NO_SIDE_EFFECTS__
|
|
5131
|
-
function
|
|
5132
|
-
const i = (
|
|
5133
|
-
const
|
|
5134
|
-
if (r || Qe(
|
|
5274
|
+
function ae(e, t, r) {
|
|
5275
|
+
const i = (n) => {
|
|
5276
|
+
const a = t(n);
|
|
5277
|
+
if (r || Qe(a) && "if" in a || /* @__PURE__ */ St(a)) {
|
|
5135
5278
|
const s = {
|
|
5136
5279
|
if: e,
|
|
5137
|
-
then:
|
|
5280
|
+
then: a
|
|
5138
5281
|
};
|
|
5139
|
-
return r && (s.else = r(
|
|
5140
|
-
} else /* @__PURE__ */ St(
|
|
5141
|
-
return
|
|
5282
|
+
return r && (s.else = r(n)), s;
|
|
5283
|
+
} else /* @__PURE__ */ St(a) ? Object.assign(a.else, { if: e }) : Qe(a) && Object.assign(a, { if: e });
|
|
5284
|
+
return a;
|
|
5142
5285
|
};
|
|
5143
5286
|
return i._s = Ae(), i;
|
|
5144
5287
|
}
|
|
5145
5288
|
// @__NO_SIDE_EFFECTS__
|
|
5146
5289
|
function _e(e, t) {
|
|
5147
5290
|
const r = (i) => {
|
|
5148
|
-
const
|
|
5149
|
-
return /* @__PURE__ */ St(
|
|
5150
|
-
/* @__PURE__ */ Me(
|
|
5291
|
+
const n = e({});
|
|
5292
|
+
return /* @__PURE__ */ St(n) ? (Array.isArray(n.else) || (n.else = /* @__PURE__ */ Me(
|
|
5293
|
+
/* @__PURE__ */ Me(n.else, t),
|
|
5151
5294
|
e._s ? i[e._s] : {}
|
|
5152
|
-
)),
|
|
5153
|
-
/* @__PURE__ */ Me(
|
|
5295
|
+
)), n) : /* @__PURE__ */ Me(
|
|
5296
|
+
/* @__PURE__ */ Me(n, t),
|
|
5154
5297
|
e._s ? i[e._s] : {}
|
|
5155
5298
|
);
|
|
5156
5299
|
};
|
|
@@ -5163,10 +5306,10 @@ var rr = {
|
|
|
5163
5306
|
schema: /* @__PURE__ */ ce(
|
|
5164
5307
|
/* @__PURE__ */ ue(/* @__PURE__ */ oe("$message.value")),
|
|
5165
5308
|
/* @__PURE__ */ Pe(
|
|
5166
|
-
/* @__PURE__ */
|
|
5309
|
+
/* @__PURE__ */ Bs(
|
|
5167
5310
|
/* @__PURE__ */ N("prefix"),
|
|
5168
5311
|
/* @__PURE__ */ te(),
|
|
5169
|
-
/* @__PURE__ */
|
|
5312
|
+
/* @__PURE__ */ Ws("$label || $ui.submit.value"),
|
|
5170
5313
|
/* @__PURE__ */ re(),
|
|
5171
5314
|
/* @__PURE__ */ N("suffix")
|
|
5172
5315
|
)
|
|
@@ -5189,18 +5332,18 @@ var rr = {
|
|
|
5189
5332
|
/**
|
|
5190
5333
|
* Additional features that should be added to your input
|
|
5191
5334
|
*/
|
|
5192
|
-
features: [
|
|
5335
|
+
features: [We("submit"), pl],
|
|
5193
5336
|
/**
|
|
5194
5337
|
* A key to use for memoizing the schema. This is used to prevent the schema
|
|
5195
5338
|
* from needing to be stringified when performing a memo lookup.
|
|
5196
5339
|
*/
|
|
5197
5340
|
schemaMemoKey: "h6st4epl3j8"
|
|
5198
|
-
},
|
|
5341
|
+
}, $l = {
|
|
5199
5342
|
/**
|
|
5200
5343
|
* The actual schema of the input, or a function that returns the schema.
|
|
5201
5344
|
*/
|
|
5202
5345
|
schema: /* @__PURE__ */ ce(
|
|
5203
|
-
/* @__PURE__ */
|
|
5346
|
+
/* @__PURE__ */ ae(
|
|
5204
5347
|
"$options == undefined",
|
|
5205
5348
|
/**
|
|
5206
5349
|
* Single checkbox structure.
|
|
@@ -5218,7 +5361,7 @@ var rr = {
|
|
|
5218
5361
|
/* @__PURE__ */ Yr("$label"),
|
|
5219
5362
|
/* @__PURE__ */ ee("$help"),
|
|
5220
5363
|
/* @__PURE__ */ Kr(
|
|
5221
|
-
/* @__PURE__ */
|
|
5364
|
+
/* @__PURE__ */ Wr(
|
|
5222
5365
|
/* @__PURE__ */ et(
|
|
5223
5366
|
/* @__PURE__ */ Je(
|
|
5224
5367
|
/* @__PURE__ */ te(),
|
|
@@ -5237,13 +5380,13 @@ var rr = {
|
|
|
5237
5380
|
if: "$option.label"
|
|
5238
5381
|
})
|
|
5239
5382
|
),
|
|
5240
|
-
/* @__PURE__ */
|
|
5383
|
+
/* @__PURE__ */ Br("$option.help")
|
|
5241
5384
|
)
|
|
5242
5385
|
)
|
|
5243
5386
|
)
|
|
5244
5387
|
),
|
|
5245
5388
|
// Help text only goes under the input when it is a single.
|
|
5246
|
-
/* @__PURE__ */
|
|
5389
|
+
/* @__PURE__ */ ae("$options == undefined && $help", /* @__PURE__ */ ee("$help")),
|
|
5247
5390
|
/* @__PURE__ */ ue(/* @__PURE__ */ oe("$message.value"))
|
|
5248
5391
|
),
|
|
5249
5392
|
/**
|
|
@@ -5263,9 +5406,9 @@ var rr = {
|
|
|
5263
5406
|
* Additional features that should be added to your input
|
|
5264
5407
|
*/
|
|
5265
5408
|
features: [
|
|
5266
|
-
|
|
5409
|
+
Dt,
|
|
5267
5410
|
ll,
|
|
5268
|
-
|
|
5411
|
+
$e("decorator", "checkboxDecorator")
|
|
5269
5412
|
],
|
|
5270
5413
|
/**
|
|
5271
5414
|
* The key used to memoize the schema.
|
|
@@ -5286,7 +5429,7 @@ var rr = {
|
|
|
5286
5429
|
/* @__PURE__ */ Gs(
|
|
5287
5430
|
/* @__PURE__ */ N("fileItem"),
|
|
5288
5431
|
/* @__PURE__ */ Qs("$file.name"),
|
|
5289
|
-
/* @__PURE__ */
|
|
5432
|
+
/* @__PURE__ */ ae(
|
|
5290
5433
|
"$value.length === 1",
|
|
5291
5434
|
/* @__PURE__ */ Qt(
|
|
5292
5435
|
/* @__PURE__ */ N("fileRemove"),
|
|
@@ -5295,7 +5438,7 @@ var rr = {
|
|
|
5295
5438
|
)
|
|
5296
5439
|
)
|
|
5297
5440
|
),
|
|
5298
|
-
/* @__PURE__ */
|
|
5441
|
+
/* @__PURE__ */ ae("$value.length > 1", /* @__PURE__ */ Qt("$ui.removeAll.value")),
|
|
5299
5442
|
/* @__PURE__ */ Js(/* @__PURE__ */ N("noFiles"), "$ui.noFiles.value"),
|
|
5300
5443
|
/* @__PURE__ */ re(),
|
|
5301
5444
|
/* @__PURE__ */ N("suffix")
|
|
@@ -5322,9 +5465,9 @@ var rr = {
|
|
|
5322
5465
|
*/
|
|
5323
5466
|
features: [
|
|
5324
5467
|
ol,
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5468
|
+
$e("fileItem", "fileItem"),
|
|
5469
|
+
$e("fileRemove", "fileRemove"),
|
|
5470
|
+
$e("noFiles", "noFiles")
|
|
5328
5471
|
],
|
|
5329
5472
|
/**
|
|
5330
5473
|
* The key used to memoize the schema.
|
|
@@ -5337,7 +5480,7 @@ var rr = {
|
|
|
5337
5480
|
schema: /* @__PURE__ */ Zs(
|
|
5338
5481
|
"$slots.default",
|
|
5339
5482
|
/* @__PURE__ */ ue(/* @__PURE__ */ oe("$message.value")),
|
|
5340
|
-
/* @__PURE__ */
|
|
5483
|
+
/* @__PURE__ */ qs(/* @__PURE__ */ tl())
|
|
5341
5484
|
),
|
|
5342
5485
|
/**
|
|
5343
5486
|
* The type of node, can be a list, group, or input.
|
|
@@ -5366,7 +5509,7 @@ var rr = {
|
|
|
5366
5509
|
/**
|
|
5367
5510
|
* The actual schema of the input, or a function that returns the schema.
|
|
5368
5511
|
*/
|
|
5369
|
-
schema: /* @__PURE__ */
|
|
5512
|
+
schema: /* @__PURE__ */ Ft("$slots.default"),
|
|
5370
5513
|
/**
|
|
5371
5514
|
* The type of node, can be a list, group, or input.
|
|
5372
5515
|
*/
|
|
@@ -5396,11 +5539,11 @@ var rr = {
|
|
|
5396
5539
|
* Additional features that should be added to your input
|
|
5397
5540
|
*/
|
|
5398
5541
|
features: [ti]
|
|
5399
|
-
},
|
|
5542
|
+
}, kl = {
|
|
5400
5543
|
/**
|
|
5401
5544
|
* The actual schema of the input, or a function that returns the schema.
|
|
5402
5545
|
*/
|
|
5403
|
-
schema: /* @__PURE__ */
|
|
5546
|
+
schema: /* @__PURE__ */ Ft("$slots.default"),
|
|
5404
5547
|
/**
|
|
5405
5548
|
* The type of node, can be a list, group, or input.
|
|
5406
5549
|
*/
|
|
@@ -5413,11 +5556,11 @@ var rr = {
|
|
|
5413
5556
|
* Additional features that should be added to your input
|
|
5414
5557
|
*/
|
|
5415
5558
|
features: [Rt, Zr]
|
|
5416
|
-
},
|
|
5559
|
+
}, wl = {
|
|
5417
5560
|
/**
|
|
5418
5561
|
* The actual schema of the input, or a function that returns the schema.
|
|
5419
5562
|
*/
|
|
5420
|
-
schema: /* @__PURE__ */
|
|
5563
|
+
schema: /* @__PURE__ */ Ft(),
|
|
5421
5564
|
/**
|
|
5422
5565
|
* The type of node, can be a list, group, or input.
|
|
5423
5566
|
*/
|
|
@@ -5435,7 +5578,7 @@ var rr = {
|
|
|
5435
5578
|
* The actual schema of the input, or a function that returns the schema.
|
|
5436
5579
|
*/
|
|
5437
5580
|
schema: /* @__PURE__ */ ce(
|
|
5438
|
-
/* @__PURE__ */
|
|
5581
|
+
/* @__PURE__ */ ae(
|
|
5439
5582
|
"$options == undefined",
|
|
5440
5583
|
/**
|
|
5441
5584
|
* Single radio structure.
|
|
@@ -5453,7 +5596,7 @@ var rr = {
|
|
|
5453
5596
|
/* @__PURE__ */ Yr("$label"),
|
|
5454
5597
|
/* @__PURE__ */ ee("$help"),
|
|
5455
5598
|
/* @__PURE__ */ Kr(
|
|
5456
|
-
/* @__PURE__ */
|
|
5599
|
+
/* @__PURE__ */ Wr(
|
|
5457
5600
|
/* @__PURE__ */ et(
|
|
5458
5601
|
/* @__PURE__ */ Je(
|
|
5459
5602
|
/* @__PURE__ */ te(),
|
|
@@ -5472,13 +5615,13 @@ var rr = {
|
|
|
5472
5615
|
if: "$option.label"
|
|
5473
5616
|
})
|
|
5474
5617
|
),
|
|
5475
|
-
/* @__PURE__ */
|
|
5618
|
+
/* @__PURE__ */ Br("$option.help")
|
|
5476
5619
|
)
|
|
5477
5620
|
)
|
|
5478
5621
|
)
|
|
5479
5622
|
),
|
|
5480
5623
|
// Help text only goes under the input when it is a single.
|
|
5481
|
-
/* @__PURE__ */
|
|
5624
|
+
/* @__PURE__ */ ae("$options == undefined && $help", /* @__PURE__ */ ee("$help")),
|
|
5482
5625
|
/* @__PURE__ */ ue(/* @__PURE__ */ oe("$message.value"))
|
|
5483
5626
|
),
|
|
5484
5627
|
/**
|
|
@@ -5497,7 +5640,7 @@ var rr = {
|
|
|
5497
5640
|
/**
|
|
5498
5641
|
* Additional features that should be added to your input
|
|
5499
5642
|
*/
|
|
5500
|
-
features: [
|
|
5643
|
+
features: [Dt, gl, $e("decorator", "radioDecorator")],
|
|
5501
5644
|
/**
|
|
5502
5645
|
* The key used to memoize the schema.
|
|
5503
5646
|
*/
|
|
@@ -5513,11 +5656,11 @@ var rr = {
|
|
|
5513
5656
|
/* @__PURE__ */ N("prefix"),
|
|
5514
5657
|
/* @__PURE__ */ te(),
|
|
5515
5658
|
/* @__PURE__ */ el(
|
|
5516
|
-
/* @__PURE__ */
|
|
5659
|
+
/* @__PURE__ */ ae(
|
|
5517
5660
|
"$slots.default",
|
|
5518
5661
|
() => "$slots.default",
|
|
5519
5662
|
/* @__PURE__ */ Jt(
|
|
5520
|
-
/* @__PURE__ */
|
|
5663
|
+
/* @__PURE__ */ ae(
|
|
5521
5664
|
"$option.group",
|
|
5522
5665
|
/* @__PURE__ */ Xs(/* @__PURE__ */ Jt(/* @__PURE__ */ Zt("$option.label"))),
|
|
5523
5666
|
/* @__PURE__ */ Zt("$option.label")
|
|
@@ -5525,7 +5668,7 @@ var rr = {
|
|
|
5525
5668
|
)
|
|
5526
5669
|
)
|
|
5527
5670
|
),
|
|
5528
|
-
/* @__PURE__ */
|
|
5671
|
+
/* @__PURE__ */ ae("$attrs.multiple !== undefined", () => "", /* @__PURE__ */ N("select")),
|
|
5529
5672
|
/* @__PURE__ */ re(),
|
|
5530
5673
|
/* @__PURE__ */ N("suffix")
|
|
5531
5674
|
)
|
|
@@ -5544,7 +5687,7 @@ var rr = {
|
|
|
5544
5687
|
/**
|
|
5545
5688
|
* Additional features that should be added to your input
|
|
5546
5689
|
*/
|
|
5547
|
-
features: [
|
|
5690
|
+
features: [Dt, vl, $e("select", "select")],
|
|
5548
5691
|
/**
|
|
5549
5692
|
* The key used to memoize the schema.
|
|
5550
5693
|
*/
|
|
@@ -5625,13 +5768,13 @@ var rr = {
|
|
|
5625
5768
|
}, Ml = {
|
|
5626
5769
|
button: rr,
|
|
5627
5770
|
submit: rr,
|
|
5628
|
-
checkbox:
|
|
5771
|
+
checkbox: $l,
|
|
5629
5772
|
file: _l,
|
|
5630
5773
|
form: Tl,
|
|
5631
5774
|
group: Sl,
|
|
5632
5775
|
hidden: Cl,
|
|
5633
|
-
list:
|
|
5634
|
-
meta:
|
|
5776
|
+
list: kl,
|
|
5777
|
+
meta: wl,
|
|
5635
5778
|
radio: Al,
|
|
5636
5779
|
select: Pl,
|
|
5637
5780
|
textarea: xl,
|
|
@@ -5649,35 +5792,35 @@ var rr = {
|
|
|
5649
5792
|
url: V,
|
|
5650
5793
|
week: V,
|
|
5651
5794
|
range: V
|
|
5652
|
-
}, Z = void 0, X = null, rt,
|
|
5795
|
+
}, Z = void 0, X = null, rt, ni = !1, Ie = !1, Il = /* @__PURE__ */ new Promise((e) => {
|
|
5653
5796
|
rt = () => {
|
|
5654
|
-
|
|
5797
|
+
ni = !0, e();
|
|
5655
5798
|
};
|
|
5656
5799
|
}), se = typeof window < "u" && typeof fetch < "u";
|
|
5657
5800
|
Z = se ? /* @__PURE__ */ getComputedStyle(document.documentElement) : void 0;
|
|
5658
5801
|
var ve = {}, ot = {};
|
|
5659
|
-
function
|
|
5660
|
-
t && Object.assign(ve, t), se && !Ie && (Z != null && Z.getPropertyValue("--formkit-theme")) ? (rt(), Ie = !0) : e && !Ie && se ?
|
|
5661
|
-
const
|
|
5802
|
+
function Dl(e, t, r, i) {
|
|
5803
|
+
t && Object.assign(ve, t), se && !Ie && (Z != null && Z.getPropertyValue("--formkit-theme")) ? (rt(), Ie = !0) : e && !Ie && se ? Fl(e) : !Ie && se && rt();
|
|
5804
|
+
const n = function(s) {
|
|
5662
5805
|
var l, o;
|
|
5663
5806
|
s.addProps(["iconLoader", "iconLoaderUrl"]), s.props.iconHandler = ir(
|
|
5664
5807
|
(l = s.props) != null && l.iconLoader ? s.props.iconLoader : i,
|
|
5665
5808
|
(o = s.props) != null && o.iconLoaderUrl ? s.props.iconLoaderUrl : r
|
|
5666
|
-
),
|
|
5667
|
-
var
|
|
5668
|
-
(
|
|
5809
|
+
), El(s, s.props.iconHandler), s.on("created", () => {
|
|
5810
|
+
var g, b;
|
|
5811
|
+
(g = s == null ? void 0 : s.context) != null && g.handlers && (s.context.handlers.iconClick = (y) => {
|
|
5669
5812
|
const P = `on${y.charAt(0).toUpperCase()}${y.slice(1)}IconClick`, h = s.props[P];
|
|
5670
5813
|
if (h && typeof h == "function")
|
|
5671
5814
|
return (v) => h(s, v);
|
|
5672
|
-
}), (
|
|
5815
|
+
}), (b = s == null ? void 0 : s.context) != null && b.fns && (s.context.fns.iconRole = (y) => {
|
|
5673
5816
|
const P = `on${y.charAt(0).toUpperCase()}${y.slice(1)}IconClick`;
|
|
5674
5817
|
return typeof s.props[P] == "function" ? "button" : null;
|
|
5675
5818
|
});
|
|
5676
5819
|
});
|
|
5677
5820
|
};
|
|
5678
|
-
return
|
|
5821
|
+
return n.iconHandler = ir(i, r), n;
|
|
5679
5822
|
}
|
|
5680
|
-
function
|
|
5823
|
+
function Fl(e) {
|
|
5681
5824
|
if (!(!e || !se || typeof getComputedStyle != "function") && (Ie = !0, X = document.getElementById("formkit-theme"), e && // if we have a window object
|
|
5682
5825
|
se && // we don't have an existing theme OR the theme being set up is different
|
|
5683
5826
|
(!(Z != null && Z.getPropertyValue("--formkit-theme")) && !X || X != null && X.getAttribute("data-theme") && (X == null ? void 0 : X.getAttribute("data-theme")) !== e))) {
|
|
@@ -5695,24 +5838,24 @@ function ir(e, t) {
|
|
|
5695
5838
|
return r;
|
|
5696
5839
|
const i = r.startsWith("default:");
|
|
5697
5840
|
r = i ? r.split(":")[1] : r;
|
|
5698
|
-
const
|
|
5699
|
-
let
|
|
5700
|
-
if (
|
|
5841
|
+
const n = r in ve;
|
|
5842
|
+
let a;
|
|
5843
|
+
if (n)
|
|
5701
5844
|
return ve[r];
|
|
5702
5845
|
if (!ot[r]) {
|
|
5703
|
-
if (
|
|
5704
|
-
ot[r] =
|
|
5705
|
-
else if (typeof
|
|
5706
|
-
return ve[i ? `default:${r}` : r] =
|
|
5846
|
+
if (a = Rl(r), a = se && typeof a > "u" ? Promise.resolve(a) : a, a instanceof Promise)
|
|
5847
|
+
ot[r] = a.then((s) => !s && typeof r == "string" && !i ? a = typeof e == "function" ? e(r) : Ol(r, t) : s).then((s) => (typeof r == "string" && (ve[i ? `default:${r}` : r] = s), s));
|
|
5848
|
+
else if (typeof a == "string")
|
|
5849
|
+
return ve[i ? `default:${r}` : r] = a, a;
|
|
5707
5850
|
}
|
|
5708
5851
|
return ot[r];
|
|
5709
5852
|
};
|
|
5710
5853
|
}
|
|
5711
5854
|
function Rl(e) {
|
|
5712
5855
|
if (se)
|
|
5713
|
-
return
|
|
5856
|
+
return ni ? nr(e) : Il.then(() => nr(e));
|
|
5714
5857
|
}
|
|
5715
|
-
function
|
|
5858
|
+
function nr(e) {
|
|
5716
5859
|
const t = Z == null ? void 0 : Z.getPropertyValue(`--fk-icon-${e}`);
|
|
5717
5860
|
if (t) {
|
|
5718
5861
|
const r = atob(t);
|
|
@@ -5720,42 +5863,42 @@ function ar(e) {
|
|
|
5720
5863
|
return ve[e] = r, r;
|
|
5721
5864
|
}
|
|
5722
5865
|
}
|
|
5723
|
-
function
|
|
5866
|
+
function Ol(e, t) {
|
|
5724
5867
|
const r = Ye.startsWith("__") ? "latest" : Ye, i = typeof t == "function" ? t(e) : `https://cdn.jsdelivr.net/npm/@formkit/icons@${r}/dist/icons/${e}.svg`;
|
|
5725
5868
|
if (se)
|
|
5726
|
-
return fetch(`${i}`).then(async (
|
|
5727
|
-
const
|
|
5728
|
-
if (
|
|
5729
|
-
return
|
|
5730
|
-
}).catch((
|
|
5731
|
-
console.error(
|
|
5869
|
+
return fetch(`${i}`).then(async (n) => {
|
|
5870
|
+
const a = await n.text();
|
|
5871
|
+
if (a.startsWith("<svg"))
|
|
5872
|
+
return a;
|
|
5873
|
+
}).catch((n) => {
|
|
5874
|
+
console.error(n);
|
|
5732
5875
|
});
|
|
5733
5876
|
}
|
|
5734
|
-
function
|
|
5877
|
+
function El(e, t) {
|
|
5735
5878
|
const r = /^[a-zA-Z-]+(?:-icon|Icon)$/;
|
|
5736
|
-
Object.keys(e.props).filter((
|
|
5879
|
+
Object.keys(e.props).filter((n) => r.test(n)).forEach((n) => Nl(e, t, n));
|
|
5737
5880
|
}
|
|
5738
5881
|
function Nl(e, t, r) {
|
|
5739
|
-
const i = e.props[r],
|
|
5740
|
-
if (e.addProps([
|
|
5741
|
-
return
|
|
5742
|
-
e.props[
|
|
5882
|
+
const i = e.props[r], n = t(i), a = `_raw${r.charAt(0).toUpperCase()}${r.slice(1)}`, s = `on${r.charAt(0).toUpperCase()}${r.slice(1)}Click`;
|
|
5883
|
+
if (e.addProps([a, s]), e.on(`prop:${r}`, Hl), n instanceof Promise)
|
|
5884
|
+
return n.then((l) => {
|
|
5885
|
+
e.props[a] = l;
|
|
5743
5886
|
});
|
|
5744
|
-
e.props[
|
|
5887
|
+
e.props[a] = n;
|
|
5745
5888
|
}
|
|
5746
5889
|
function Hl(e) {
|
|
5747
5890
|
var s;
|
|
5748
|
-
const t = e.origin, r = e.payload, i = (s = t == null ? void 0 : t.props) == null ? void 0 : s.iconHandler,
|
|
5891
|
+
const t = e.origin, r = e.payload, i = (s = t == null ? void 0 : t.props) == null ? void 0 : s.iconHandler, n = e.name.split(":")[1], a = `_raw${n.charAt(0).toUpperCase()}${n.slice(1)}`;
|
|
5749
5892
|
if (i && typeof i == "function") {
|
|
5750
5893
|
const l = i(r);
|
|
5751
5894
|
if (l instanceof Promise)
|
|
5752
5895
|
return l.then((o) => {
|
|
5753
|
-
t.props[
|
|
5896
|
+
t.props[a] = o;
|
|
5754
5897
|
});
|
|
5755
|
-
t.props[
|
|
5898
|
+
t.props[a] = l;
|
|
5756
5899
|
}
|
|
5757
5900
|
}
|
|
5758
|
-
var
|
|
5901
|
+
var ar = {
|
|
5759
5902
|
/**
|
|
5760
5903
|
* FormKit errors:
|
|
5761
5904
|
*/
|
|
@@ -5803,14 +5946,14 @@ var nr = {
|
|
|
5803
5946
|
*/
|
|
5804
5947
|
800: ({ data: e }) => `${e} is deprecated.`
|
|
5805
5948
|
}, jl = (e, t) => {
|
|
5806
|
-
if (e.code in
|
|
5807
|
-
const r =
|
|
5949
|
+
if (e.code in ar) {
|
|
5950
|
+
const r = ar[e.code];
|
|
5808
5951
|
e.message = typeof r == "function" ? r(e) : r;
|
|
5809
5952
|
}
|
|
5810
5953
|
return t(e);
|
|
5811
5954
|
}, lr = !1;
|
|
5812
5955
|
function Ul() {
|
|
5813
|
-
lr || (
|
|
5956
|
+
lr || (wt(jl), At(Vl), lr = !0);
|
|
5814
5957
|
}
|
|
5815
5958
|
var Vl = (e, t) => {
|
|
5816
5959
|
if (e.code in sr) {
|
|
@@ -5818,37 +5961,37 @@ var Vl = (e, t) => {
|
|
|
5818
5961
|
e.message = typeof r == "function" ? r(e) : r;
|
|
5819
5962
|
}
|
|
5820
5963
|
return t(e);
|
|
5821
|
-
},
|
|
5822
|
-
return e && (t = (0, e[
|
|
5823
|
-
},
|
|
5964
|
+
}, zl = Object.defineProperty, ql = Object.getOwnPropertyNames, ai = (e, t) => function() {
|
|
5965
|
+
return e && (t = (0, e[ql(e)[0]])(e = 0)), t;
|
|
5966
|
+
}, Bl = (e, t) => {
|
|
5824
5967
|
for (var r in t)
|
|
5825
|
-
|
|
5826
|
-
}, or, si, li =
|
|
5968
|
+
zl(e, r, { get: t[r], enumerable: !0 });
|
|
5969
|
+
}, or, si, li = ai({
|
|
5827
5970
|
"packages/vue/src/bindings.ts"() {
|
|
5828
5971
|
or = function(t) {
|
|
5829
5972
|
t.ledger.count("blocking", (c) => c.blocking);
|
|
5830
|
-
const r =
|
|
5973
|
+
const r = z(!t.ledger.value("blocking"));
|
|
5831
5974
|
t.ledger.count("errors", (c) => c.type === "error");
|
|
5832
|
-
const i =
|
|
5833
|
-
let
|
|
5975
|
+
const i = z(!!t.ledger.value("errors"));
|
|
5976
|
+
let n = !1;
|
|
5834
5977
|
vi(() => {
|
|
5835
|
-
|
|
5978
|
+
n = !0;
|
|
5836
5979
|
});
|
|
5837
|
-
const
|
|
5980
|
+
const a = xe(
|
|
5838
5981
|
t.store.reduce((c, T) => (T.visible && (c[T.key] = T), c), {})
|
|
5839
|
-
), s =
|
|
5982
|
+
), s = z(
|
|
5840
5983
|
t.props.validationVisibility || (t.props.type === "checkbox" ? "dirty" : "blur")
|
|
5841
5984
|
);
|
|
5842
5985
|
t.on("prop:validationVisibility", ({ payload: c }) => {
|
|
5843
5986
|
s.value = c;
|
|
5844
5987
|
});
|
|
5845
|
-
const l =
|
|
5988
|
+
const l = z(s.value === "live"), o = z(!1), g = (c) => {
|
|
5846
5989
|
o.value = (c ?? []).some(
|
|
5847
5990
|
(T) => T.name === "required"
|
|
5848
5991
|
);
|
|
5849
5992
|
};
|
|
5850
|
-
|
|
5851
|
-
const
|
|
5993
|
+
g(t.props.parsedRules), t.on("prop:parsedRules", ({ payload: c }) => g(c));
|
|
5994
|
+
const b = z(t.children.map((c) => c.uid)), y = me(() => {
|
|
5852
5995
|
if (!f.state)
|
|
5853
5996
|
return !1;
|
|
5854
5997
|
if (f.state.submitted)
|
|
@@ -5865,7 +6008,7 @@ var Vl = (e, t) => {
|
|
|
5865
6008
|
default:
|
|
5866
6009
|
return !1;
|
|
5867
6010
|
}
|
|
5868
|
-
}), P = me(() => f.state.failing && y.value), h = me(() => f && v.value ? r.value && !i.value : f.state.dirty && !G(f.value)), v =
|
|
6011
|
+
}), P = me(() => f.state.failing && y.value), h = me(() => f && v.value ? r.value && !i.value : f.state.dirty && !G(f.value)), v = z(
|
|
5869
6012
|
Array.isArray(t.props.parsedRules) && t.props.parsedRules.length > 0
|
|
5870
6013
|
);
|
|
5871
6014
|
t.on("prop:parsedRules", ({ payload: c }) => {
|
|
@@ -5873,46 +6016,46 @@ var Vl = (e, t) => {
|
|
|
5873
6016
|
});
|
|
5874
6017
|
const p = me(() => {
|
|
5875
6018
|
const c = {};
|
|
5876
|
-
for (const T in
|
|
5877
|
-
const
|
|
5878
|
-
(
|
|
6019
|
+
for (const T in a) {
|
|
6020
|
+
const k = a[T];
|
|
6021
|
+
(k.type !== "validation" || y.value) && (c[T] = k);
|
|
5879
6022
|
}
|
|
5880
6023
|
return c;
|
|
5881
6024
|
}), m = xe(
|
|
5882
6025
|
t.store.reduce((c, T) => (T.type === "ui" && T.visible && (c[T.key] = T), c), {})
|
|
5883
|
-
), d = me(() => !f.state.failing),
|
|
6026
|
+
), d = me(() => !f.state.failing), $ = xe({}), S = new Proxy($, {
|
|
5884
6027
|
get(...c) {
|
|
5885
6028
|
if (!t)
|
|
5886
6029
|
return "";
|
|
5887
|
-
const [T,
|
|
5888
|
-
let
|
|
5889
|
-
return !
|
|
5890
|
-
const pe = typeof
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
), fe =
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
6030
|
+
const [T, k] = c;
|
|
6031
|
+
let O = Reflect.get(...c);
|
|
6032
|
+
return !O && typeof k == "string" && !w(T, k) && !k.startsWith("__v") && nt(t).watch((E) => {
|
|
6033
|
+
const pe = typeof E.config.rootClasses == "function" ? E.config.rootClasses(k, E) : {}, J = E.config.classes ? Be(k, E, E.config.classes[k]) : {}, be = Be(
|
|
6034
|
+
k,
|
|
6035
|
+
E,
|
|
6036
|
+
E.props[`_${k}Class`]
|
|
6037
|
+
), fe = Be(
|
|
6038
|
+
k,
|
|
6039
|
+
E,
|
|
6040
|
+
E.props[`${k}Class`]
|
|
5898
6041
|
);
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
6042
|
+
O = ra(
|
|
6043
|
+
E,
|
|
6044
|
+
k,
|
|
5902
6045
|
pe,
|
|
5903
6046
|
J,
|
|
5904
|
-
|
|
6047
|
+
be,
|
|
5905
6048
|
fe
|
|
5906
|
-
), T[
|
|
5907
|
-
}),
|
|
6049
|
+
), T[k] = O ?? "";
|
|
6050
|
+
}), O;
|
|
5908
6051
|
}
|
|
5909
6052
|
});
|
|
5910
6053
|
t.on("prop:rootClasses", () => {
|
|
5911
|
-
const c = Object.keys(
|
|
6054
|
+
const c = Object.keys($);
|
|
5912
6055
|
for (const T of c)
|
|
5913
|
-
delete
|
|
6056
|
+
delete $[T];
|
|
5914
6057
|
});
|
|
5915
|
-
const
|
|
6058
|
+
const L = me(() => {
|
|
5916
6059
|
if (!t)
|
|
5917
6060
|
return;
|
|
5918
6061
|
const c = [];
|
|
@@ -5920,11 +6063,11 @@ var Vl = (e, t) => {
|
|
|
5920
6063
|
for (const T in p.value)
|
|
5921
6064
|
c.push(`${t.props.id}-${T}`);
|
|
5922
6065
|
return c.length ? c.join(" ") : void 0;
|
|
5923
|
-
}), _ =
|
|
6066
|
+
}), _ = z(t.value), u = z(t.value), f = xe({
|
|
5924
6067
|
_value: u,
|
|
5925
6068
|
attrs: t.props.attrs,
|
|
5926
6069
|
disabled: t.props.disabled,
|
|
5927
|
-
describedBy:
|
|
6070
|
+
describedBy: L,
|
|
5928
6071
|
fns: {
|
|
5929
6072
|
length: (c) => Object.keys(c).length,
|
|
5930
6073
|
number: (c) => Number(c),
|
|
@@ -5935,17 +6078,17 @@ var Vl = (e, t) => {
|
|
|
5935
6078
|
handlers: {
|
|
5936
6079
|
blur: (c) => {
|
|
5937
6080
|
t && (t.store.set(
|
|
5938
|
-
/* @__PURE__ */
|
|
6081
|
+
/* @__PURE__ */ B({ key: "blurred", visible: !1, value: !0 })
|
|
5939
6082
|
), typeof t.props.attrs.onBlur == "function" && t.props.attrs.onBlur(c));
|
|
5940
6083
|
},
|
|
5941
6084
|
touch: () => {
|
|
5942
|
-
var
|
|
6085
|
+
var k;
|
|
5943
6086
|
const c = f.dirtyBehavior === "compare";
|
|
5944
|
-
if ((
|
|
6087
|
+
if ((k = t.store.dirty) != null && k.value && !c)
|
|
5945
6088
|
return;
|
|
5946
6089
|
const T = !U(t.props._init, t._value);
|
|
5947
6090
|
!T && !c || t.store.set(
|
|
5948
|
-
/* @__PURE__ */
|
|
6091
|
+
/* @__PURE__ */ B({ key: "dirty", visible: !1, value: T })
|
|
5949
6092
|
);
|
|
5950
6093
|
},
|
|
5951
6094
|
DOMInput: (c) => {
|
|
@@ -5954,7 +6097,7 @@ var Vl = (e, t) => {
|
|
|
5954
6097
|
},
|
|
5955
6098
|
help: t.props.help,
|
|
5956
6099
|
id: t.props.id,
|
|
5957
|
-
items:
|
|
6100
|
+
items: b,
|
|
5958
6101
|
label: t.props.label,
|
|
5959
6102
|
messages: p,
|
|
5960
6103
|
didMount: !1,
|
|
@@ -5992,9 +6135,9 @@ var Vl = (e, t) => {
|
|
|
5992
6135
|
f.state.settled = c;
|
|
5993
6136
|
});
|
|
5994
6137
|
function A(c) {
|
|
5995
|
-
(Array.isArray(c) ? c : Object.keys(c)).forEach((
|
|
5996
|
-
|
|
5997
|
-
f[
|
|
6138
|
+
(Array.isArray(c) ? c : Object.keys(c)).forEach((k) => {
|
|
6139
|
+
k = Le(k), w(f, k) || (f[k] = t.props[k]), t.on(`prop:${k}`, ({ payload: O }) => {
|
|
6140
|
+
f[k] = O;
|
|
5998
6141
|
});
|
|
5999
6142
|
});
|
|
6000
6143
|
}
|
|
@@ -6011,38 +6154,38 @@ var Vl = (e, t) => {
|
|
|
6011
6154
|
"preserveErrors",
|
|
6012
6155
|
"id",
|
|
6013
6156
|
"dirtyBehavior"
|
|
6014
|
-
], T = /^[a-zA-Z-]+(?:-icon|Icon)$/,
|
|
6015
|
-
return c.concat(
|
|
6157
|
+
], T = /^[a-zA-Z-]+(?:-icon|Icon)$/, k = Object.keys(t.props).filter((O) => T.test(O));
|
|
6158
|
+
return c.concat(k);
|
|
6016
6159
|
})());
|
|
6017
|
-
function
|
|
6160
|
+
function F(c) {
|
|
6018
6161
|
c.props && A(c.props);
|
|
6019
6162
|
}
|
|
6020
|
-
t.props.definition &&
|
|
6163
|
+
t.props.definition && F(t.props.definition), t.on("added-props", ({ payload: c }) => A(c)), t.on("input", ({ payload: c }) => {
|
|
6021
6164
|
t.type !== "input" && !ft(c) && !Nt(c) ? u.value = dt(c) : (u.value = c, Ue(u));
|
|
6022
6165
|
}), t.on("commitRaw", ({ payload: c }) => {
|
|
6023
6166
|
t.type !== "input" && !ft(c) && !Nt(c) ? _.value = u.value = dt(c) : (_.value = u.value = c, Ue(_)), t.emit("modelUpdated");
|
|
6024
6167
|
}), t.on("commit", ({ payload: c }) => {
|
|
6025
6168
|
var T;
|
|
6026
|
-
if ((!f.state.dirty || f.dirtyBehavior === "compare") && t.isCreated &&
|
|
6169
|
+
if ((!f.state.dirty || f.dirtyBehavior === "compare") && t.isCreated && n)
|
|
6027
6170
|
if (!((T = t.store.validating) != null && T.value))
|
|
6028
6171
|
f.handlers.touch();
|
|
6029
6172
|
else {
|
|
6030
|
-
const
|
|
6031
|
-
|
|
6173
|
+
const k = t.on("message-removed", ({ payload: O }) => {
|
|
6174
|
+
O.key === "validating" && (f.handlers.touch(), t.off(k));
|
|
6032
6175
|
});
|
|
6033
6176
|
}
|
|
6034
6177
|
h && t.type === "input" && i.value && !Q(t.props.preserveErrors) && t.store.filter(
|
|
6035
|
-
(
|
|
6036
|
-
var
|
|
6037
|
-
return !(
|
|
6178
|
+
(k) => {
|
|
6179
|
+
var O;
|
|
6180
|
+
return !(k.type === "error" && ((O = k.meta) == null ? void 0 : O.autoClear) === !0);
|
|
6038
6181
|
}
|
|
6039
|
-
), t.type === "list" && t.sync && (
|
|
6182
|
+
), t.type === "list" && t.sync && (b.value = t.children.map((k) => k.uid)), f.state.empty = G(c);
|
|
6040
6183
|
});
|
|
6041
6184
|
const M = async (c) => {
|
|
6042
|
-
c.type === "ui" && c.visible && !c.meta.showAsMessage ? m[c.key] = c : c.visible ?
|
|
6185
|
+
c.type === "ui" && c.visible && !c.meta.showAsMessage ? m[c.key] = c : c.visible ? a[c.key] = c : c.type === "state" && (f.state[c.key] = !!c.value);
|
|
6043
6186
|
};
|
|
6044
6187
|
t.on("message-added", (c) => M(c.payload)), t.on("message-updated", (c) => M(c.payload)), t.on("message-removed", ({ payload: c }) => {
|
|
6045
|
-
delete m[c.key], delete
|
|
6188
|
+
delete m[c.key], delete a[c.key], delete f.state[c.key];
|
|
6046
6189
|
}), t.on("settled:blocking", () => {
|
|
6047
6190
|
r.value = !0;
|
|
6048
6191
|
}), t.on("unsettled:blocking", () => {
|
|
@@ -6051,44 +6194,44 @@ var Vl = (e, t) => {
|
|
|
6051
6194
|
i.value = !1;
|
|
6052
6195
|
}), t.on("unsettled:errors", () => {
|
|
6053
6196
|
i.value = !0;
|
|
6054
|
-
}),
|
|
6197
|
+
}), De(y, (c) => {
|
|
6055
6198
|
c && (l.value = !0);
|
|
6056
6199
|
}), t.context = f, t.emit("context", t, !1), t.on("destroyed", () => {
|
|
6057
6200
|
t.context = void 0, t = null;
|
|
6058
6201
|
});
|
|
6059
6202
|
}, si = or;
|
|
6060
6203
|
}
|
|
6061
|
-
}),
|
|
6062
|
-
Wl
|
|
6063
|
-
defaultConfig: () =>
|
|
6204
|
+
}), Wl = {};
|
|
6205
|
+
Bl(Wl, {
|
|
6206
|
+
defaultConfig: () => Ot
|
|
6064
6207
|
});
|
|
6065
|
-
var
|
|
6208
|
+
var Ot, Kl = ai({
|
|
6066
6209
|
"packages/vue/src/defaultConfig.ts"() {
|
|
6067
|
-
li(),
|
|
6210
|
+
li(), Ot = (e = {}) => {
|
|
6068
6211
|
Ul();
|
|
6069
6212
|
const {
|
|
6070
6213
|
rules: t = {},
|
|
6071
6214
|
locales: r = {},
|
|
6072
6215
|
inputs: i = {},
|
|
6073
|
-
messages:
|
|
6074
|
-
locale:
|
|
6216
|
+
messages: n = {},
|
|
6217
|
+
locale: a = void 0,
|
|
6075
6218
|
theme: s = void 0,
|
|
6076
6219
|
iconLoaderUrl: l = void 0,
|
|
6077
6220
|
iconLoader: o = void 0,
|
|
6078
|
-
icons:
|
|
6079
|
-
...
|
|
6221
|
+
icons: g = {},
|
|
6222
|
+
...b
|
|
6080
6223
|
} = e, y = Ts({
|
|
6081
6224
|
..._s,
|
|
6082
6225
|
...t || {}
|
|
6083
6226
|
}), P = js(
|
|
6084
|
-
le({ en: Hs, ...r || {} },
|
|
6085
|
-
), h = Us(Ml, i), v =
|
|
6227
|
+
le({ en: Hs, ...r || {} }, n)
|
|
6228
|
+
), h = Us(Ml, i), v = Dl(s, g, l, o);
|
|
6086
6229
|
return le(
|
|
6087
6230
|
{
|
|
6088
6231
|
plugins: [h, v, si, P, y],
|
|
6089
|
-
...
|
|
6232
|
+
...a ? { config: { locale: a } } : {}
|
|
6090
6233
|
},
|
|
6091
|
-
|
|
6234
|
+
b || {},
|
|
6092
6235
|
!0
|
|
6093
6236
|
);
|
|
6094
6237
|
};
|
|
@@ -6098,39 +6241,39 @@ function Yl(e, t) {
|
|
|
6098
6241
|
var r;
|
|
6099
6242
|
!Gl || !e || (ut.has(e) || ut.set(e, /* @__PURE__ */ new Set()), (r = ut.get(e)) == null || r.add(t));
|
|
6100
6243
|
}
|
|
6101
|
-
var oi = typeof window > "u", Re = {}, Te = {}, j,
|
|
6244
|
+
var oi = typeof window > "u", Re = {}, Te = {}, j, ne = /* @__PURE__ */ new WeakMap(), Ql = "__raw__", Zl = /[a-zA-Z0-9\-][cC]lass$/;
|
|
6102
6245
|
function Jl(e, t) {
|
|
6103
|
-
const r =
|
|
6246
|
+
const r = z(null);
|
|
6104
6247
|
if (e === "get") {
|
|
6105
|
-
const
|
|
6106
|
-
return r.value = Xl.bind(null,
|
|
6248
|
+
const n = {};
|
|
6249
|
+
return r.value = Xl.bind(null, n), r;
|
|
6107
6250
|
}
|
|
6108
6251
|
const i = e.split(".");
|
|
6109
6252
|
return ie(() => {
|
|
6110
|
-
r.value =
|
|
6253
|
+
r.value = Et(
|
|
6111
6254
|
ft(t) ? t.value : t,
|
|
6112
6255
|
i
|
|
6113
6256
|
);
|
|
6114
6257
|
}), r;
|
|
6115
6258
|
}
|
|
6116
|
-
function
|
|
6259
|
+
function Et(e, t) {
|
|
6117
6260
|
if (Array.isArray(e)) {
|
|
6118
|
-
for (const
|
|
6119
|
-
const
|
|
6120
|
-
if (
|
|
6121
|
-
return
|
|
6261
|
+
for (const n of e) {
|
|
6262
|
+
const a = n !== !1 && Et(n, t);
|
|
6263
|
+
if (a !== void 0)
|
|
6264
|
+
return a;
|
|
6122
6265
|
}
|
|
6123
6266
|
return;
|
|
6124
6267
|
}
|
|
6125
6268
|
let r, i = e;
|
|
6126
|
-
for (const
|
|
6127
|
-
const
|
|
6269
|
+
for (const n in t) {
|
|
6270
|
+
const a = t[n];
|
|
6128
6271
|
if (typeof i != "object" || i === null) {
|
|
6129
6272
|
r = void 0;
|
|
6130
6273
|
break;
|
|
6131
6274
|
}
|
|
6132
|
-
const s = i[
|
|
6133
|
-
if (Number(
|
|
6275
|
+
const s = i[a];
|
|
6276
|
+
if (Number(n) === t.length - 1 && s !== void 0) {
|
|
6134
6277
|
r = typeof s == "function" ? s.bind(i) : s;
|
|
6135
6278
|
break;
|
|
6136
6279
|
}
|
|
@@ -6140,173 +6283,173 @@ function Ot(e, t) {
|
|
|
6140
6283
|
}
|
|
6141
6284
|
function Xl(e, t) {
|
|
6142
6285
|
if (typeof t != "string")
|
|
6143
|
-
return
|
|
6144
|
-
if (t in e || (e[t] =
|
|
6286
|
+
return ge(650);
|
|
6287
|
+
if (t in e || (e[t] = z(void 0)), e[t].value === void 0) {
|
|
6145
6288
|
e[t].value = null;
|
|
6146
|
-
const r =
|
|
6147
|
-
r && (e[t].value = r.context),
|
|
6148
|
-
e[t].value =
|
|
6289
|
+
const r = Oe(t);
|
|
6290
|
+
r && (e[t].value = r.context), ln(t, ({ payload: i }) => {
|
|
6291
|
+
e[t].value = Ee(i) ? i.context : i;
|
|
6149
6292
|
});
|
|
6150
6293
|
}
|
|
6151
6294
|
return e[t].value;
|
|
6152
6295
|
}
|
|
6153
6296
|
function ur(e, t, r) {
|
|
6154
6297
|
function i(h, v) {
|
|
6155
|
-
const p = y(Y(v.if), { if: !0 }), m =
|
|
6298
|
+
const p = y(Y(v.if), { if: !0 }), m = g(h, v.then), d = v.else ? g(h, v.else) : null;
|
|
6156
6299
|
return [p, m, d];
|
|
6157
6300
|
}
|
|
6158
|
-
function
|
|
6159
|
-
var
|
|
6301
|
+
function n(h, v) {
|
|
6302
|
+
var $, S;
|
|
6160
6303
|
const p = y(Y(h.if));
|
|
6161
6304
|
let m = () => v, d = () => v;
|
|
6162
|
-
return typeof h.then == "object" ? d =
|
|
6305
|
+
return typeof h.then == "object" ? d = a(h.then, void 0) : typeof h.then == "string" && (($ = h.then) != null && $.startsWith("$")) ? d = y(Y(h.then)) : d = () => h.then, w(h, "else") && (typeof h.else == "object" ? m = a(h.else) : typeof h.else == "string" && ((S = h.else) != null && S.startsWith("$")) ? m = y(Y(h.else)) : m = () => h.else), () => p() ? d() : m();
|
|
6163
6306
|
}
|
|
6164
|
-
function
|
|
6165
|
-
const m = new Set(Object.keys(h || {})), d = v ? y(Y(v)) : () => ({}),
|
|
6307
|
+
function a(h, v, p = {}) {
|
|
6308
|
+
const m = new Set(Object.keys(h || {})), d = v ? y(Y(v)) : () => ({}), $ = [
|
|
6166
6309
|
(S) => {
|
|
6167
|
-
const
|
|
6168
|
-
for (const _ in
|
|
6169
|
-
m.has(_) || (S[_] =
|
|
6310
|
+
const L = d();
|
|
6311
|
+
for (const _ in L)
|
|
6312
|
+
m.has(_) || (S[_] = L[_]);
|
|
6170
6313
|
}
|
|
6171
6314
|
];
|
|
6172
6315
|
if (h) {
|
|
6173
6316
|
if (ye(h))
|
|
6174
|
-
return
|
|
6317
|
+
return n(
|
|
6175
6318
|
h,
|
|
6176
6319
|
p
|
|
6177
6320
|
);
|
|
6178
6321
|
for (let S in h) {
|
|
6179
|
-
const
|
|
6322
|
+
const L = h[S];
|
|
6180
6323
|
let _;
|
|
6181
|
-
const u = typeof
|
|
6182
|
-
S.startsWith(Ql) ? (S = S.substring(7), _ = () =>
|
|
6324
|
+
const u = typeof L == "string";
|
|
6325
|
+
S.startsWith(Ql) ? (S = S.substring(7), _ = () => L) : u && L.startsWith("$") && L.length > 1 && !(L.startsWith("$reset") && Zl.test(S)) ? _ = y(Y(L)) : typeof L == "object" && ye(L) ? _ = n(L, void 0) : typeof L == "object" && Se(L) ? _ = a(L) : _ = () => L, $.push((f) => {
|
|
6183
6326
|
f[S] = _();
|
|
6184
6327
|
});
|
|
6185
6328
|
}
|
|
6186
6329
|
}
|
|
6187
6330
|
return () => {
|
|
6188
6331
|
const S = Array.isArray(h) ? [] : {};
|
|
6189
|
-
return
|
|
6332
|
+
return $.forEach((L) => L(S)), S;
|
|
6190
6333
|
};
|
|
6191
6334
|
}
|
|
6192
6335
|
function s(h, v) {
|
|
6193
|
-
let p = null, m = () => null, d = !1,
|
|
6194
|
-
const u =
|
|
6195
|
-
if (vt(u) ? (p = u.$el, m = u.$el !== "text" ?
|
|
6336
|
+
let p = null, m = () => null, d = !1, $ = null, S = null, L = null, _ = !1;
|
|
6337
|
+
const u = ta(v);
|
|
6338
|
+
if (vt(u) ? (p = u.$el, m = u.$el !== "text" ? a(u.attrs, u.bind) : () => null) : Lt(u) ? (typeof u.$cmp == "string" ? w(h, u.$cmp) ? p = h[u.$cmp] : (p = u.$cmp, _ = !0) : p = u.$cmp, m = a(u.props, u.bind)) : ye(u) && ([d, $, S] = i(h, u)), !ye(u) && "if" in u ? d = y(Y(u.if)) : !ye(u) && p === null && (d = () => !0), "children" in u && u.children)
|
|
6196
6339
|
if (typeof u.children == "string")
|
|
6197
6340
|
if (u.children.startsWith("$slots."))
|
|
6198
|
-
p = p === "text" ? "slot" : p,
|
|
6341
|
+
p = p === "text" ? "slot" : p, $ = y(Y(u.children));
|
|
6199
6342
|
else if (u.children.startsWith("$") && u.children.length > 1) {
|
|
6200
6343
|
const f = y(Y(u.children));
|
|
6201
|
-
|
|
6344
|
+
$ = () => String(f());
|
|
6202
6345
|
} else
|
|
6203
|
-
|
|
6346
|
+
$ = () => String(u.children);
|
|
6204
6347
|
else if (Array.isArray(u.children))
|
|
6205
|
-
|
|
6348
|
+
$ = g(h, u.children);
|
|
6206
6349
|
else {
|
|
6207
|
-
const [f, A,
|
|
6208
|
-
|
|
6350
|
+
const [f, A, D] = i(h, u.children);
|
|
6351
|
+
$ = (F) => f && f() ? A && A(F) : D && D(F);
|
|
6209
6352
|
}
|
|
6210
|
-
if (
|
|
6211
|
-
if (
|
|
6212
|
-
const f =
|
|
6213
|
-
|
|
6214
|
-
default(
|
|
6215
|
-
var T,
|
|
6353
|
+
if (Lt(u))
|
|
6354
|
+
if ($) {
|
|
6355
|
+
const f = $;
|
|
6356
|
+
$ = (A) => ({
|
|
6357
|
+
default(D, F) {
|
|
6358
|
+
var T, k, O, R;
|
|
6216
6359
|
const M = j;
|
|
6217
|
-
|
|
6360
|
+
F && (j = F), D && ((T = ne.get(j)) == null || T.unshift(D)), A && ((k = ne.get(j)) == null || k.unshift(A));
|
|
6218
6361
|
const c = f(A);
|
|
6219
|
-
return
|
|
6362
|
+
return D && ((O = ne.get(j)) == null || O.shift()), A && ((R = ne.get(j)) == null || R.shift()), j = M, c;
|
|
6220
6363
|
}
|
|
6221
|
-
}),
|
|
6364
|
+
}), $.slot = !0;
|
|
6222
6365
|
} else
|
|
6223
|
-
|
|
6366
|
+
$ = () => ({});
|
|
6224
6367
|
if ("for" in u && u.for) {
|
|
6225
6368
|
const f = u.for.length === 3 ? u.for[2] : u.for[1];
|
|
6226
|
-
|
|
6369
|
+
L = [
|
|
6227
6370
|
typeof f == "string" && f.startsWith("$") ? y(Y(f)) : () => f,
|
|
6228
6371
|
u.for[0],
|
|
6229
6372
|
u.for.length === 3 ? String(u.for[1]) : null
|
|
6230
6373
|
];
|
|
6231
6374
|
}
|
|
6232
|
-
return [d, p, m,
|
|
6375
|
+
return [d, p, m, $, S, L, _];
|
|
6233
6376
|
}
|
|
6234
6377
|
function l(h, v) {
|
|
6235
6378
|
const p = h(v), m = j;
|
|
6236
|
-
return Object.keys(p).reduce((d,
|
|
6237
|
-
const S = p && p[
|
|
6238
|
-
return d[
|
|
6379
|
+
return Object.keys(p).reduce((d, $) => {
|
|
6380
|
+
const S = p && p[$];
|
|
6381
|
+
return d[$] = (L) => S && S(L, m) || null, d;
|
|
6239
6382
|
}, {});
|
|
6240
6383
|
}
|
|
6241
6384
|
function o(h, v) {
|
|
6242
|
-
const [p, m, d,
|
|
6385
|
+
const [p, m, d, $, S, L, _] = s(h, v);
|
|
6243
6386
|
let u = (f) => {
|
|
6244
|
-
if (p && m === null &&
|
|
6245
|
-
return p() ?
|
|
6387
|
+
if (p && m === null && $)
|
|
6388
|
+
return p() ? $(f) : S && S(f);
|
|
6246
6389
|
if (m && (!p || p())) {
|
|
6247
|
-
if (m === "text" &&
|
|
6248
|
-
return
|
|
6249
|
-
if (m === "slot" &&
|
|
6250
|
-
return
|
|
6251
|
-
const A = _ ?
|
|
6390
|
+
if (m === "text" && $)
|
|
6391
|
+
return Li(String($()));
|
|
6392
|
+
if (m === "slot" && $)
|
|
6393
|
+
return $(f);
|
|
6394
|
+
const A = _ ? $i(m) : m, D = $ != null && $.slot ? l($, f) : null;
|
|
6252
6395
|
return mt(
|
|
6253
6396
|
A,
|
|
6254
6397
|
d(),
|
|
6255
|
-
|
|
6398
|
+
D || ($ ? $(f) : [])
|
|
6256
6399
|
);
|
|
6257
6400
|
}
|
|
6258
6401
|
return typeof S == "function" ? S(f) : S;
|
|
6259
6402
|
};
|
|
6260
|
-
if (
|
|
6261
|
-
const f = u, [A,
|
|
6403
|
+
if (L) {
|
|
6404
|
+
const f = u, [A, D, F] = L;
|
|
6262
6405
|
u = () => {
|
|
6263
|
-
const M = A(), c = Number.isFinite(M) ? Array(Number(M)).fill(0).map((R,
|
|
6406
|
+
const M = A(), c = Number.isFinite(M) ? Array(Number(M)).fill(0).map((R, E) => E) : M, T = [];
|
|
6264
6407
|
if (typeof c != "object")
|
|
6265
6408
|
return null;
|
|
6266
|
-
const
|
|
6409
|
+
const k = ne.get(j) || [], O = Array.isArray(c);
|
|
6267
6410
|
for (const R in c) {
|
|
6268
|
-
if (
|
|
6411
|
+
if (O && R in Array.prototype)
|
|
6269
6412
|
continue;
|
|
6270
|
-
const
|
|
6413
|
+
const E = Object.defineProperty(
|
|
6271
6414
|
{
|
|
6272
|
-
...
|
|
6415
|
+
...k.reduce(
|
|
6273
6416
|
(pe, J) => pe.__idata ? { ...pe, ...J } : J,
|
|
6274
6417
|
{}
|
|
6275
6418
|
),
|
|
6276
|
-
[
|
|
6277
|
-
...
|
|
6419
|
+
[D]: c[R],
|
|
6420
|
+
...F !== null ? { [F]: O ? Number(R) : R } : {}
|
|
6278
6421
|
},
|
|
6279
6422
|
"__idata",
|
|
6280
6423
|
{ enumerable: !1, value: !0 }
|
|
6281
6424
|
);
|
|
6282
|
-
|
|
6425
|
+
k.unshift(E), T.push(f.bind(null, E)()), k.shift();
|
|
6283
6426
|
}
|
|
6284
6427
|
return T;
|
|
6285
6428
|
};
|
|
6286
6429
|
}
|
|
6287
6430
|
return u;
|
|
6288
6431
|
}
|
|
6289
|
-
function
|
|
6432
|
+
function g(h, v) {
|
|
6290
6433
|
if (Array.isArray(v)) {
|
|
6291
6434
|
const m = v.map(o.bind(null, h));
|
|
6292
|
-
return (d) => m.map((
|
|
6435
|
+
return (d) => m.map(($) => $(d));
|
|
6293
6436
|
}
|
|
6294
6437
|
const p = o(h, v);
|
|
6295
6438
|
return (m) => p(m);
|
|
6296
6439
|
}
|
|
6297
|
-
const
|
|
6440
|
+
const b = [];
|
|
6298
6441
|
function y(h, v = {}) {
|
|
6299
6442
|
const p = /* @__PURE__ */ new WeakMap();
|
|
6300
|
-
return
|
|
6443
|
+
return b.push((m, d) => {
|
|
6301
6444
|
p.set(
|
|
6302
6445
|
d,
|
|
6303
|
-
h.provide((
|
|
6446
|
+
h.provide(($) => m($, v))
|
|
6304
6447
|
);
|
|
6305
6448
|
}), () => p.get(j)();
|
|
6306
6449
|
}
|
|
6307
6450
|
function P(h, v) {
|
|
6308
6451
|
r ?? (r = ci(t));
|
|
6309
|
-
const [p, m] =
|
|
6452
|
+
const [p, m] = w(Re, r) ? Re[r] : [g(e, t), b];
|
|
6310
6453
|
return oi || (Te[r] ?? (Te[r] = 0), Te[r]++, Re[r] = [p, m]), m.forEach((d) => {
|
|
6311
6454
|
d(h, v);
|
|
6312
6455
|
}), () => (j = v, p());
|
|
@@ -6314,18 +6457,18 @@ function ur(e, t, r) {
|
|
|
6314
6457
|
return P;
|
|
6315
6458
|
}
|
|
6316
6459
|
function ui(e, t) {
|
|
6317
|
-
const r =
|
|
6460
|
+
const r = ne.get(j) || [];
|
|
6318
6461
|
let i;
|
|
6319
|
-
return r.length && (i =
|
|
6462
|
+
return r.length && (i = Et(r, e.split("."))), i === void 0 ? t : i;
|
|
6320
6463
|
}
|
|
6321
6464
|
function eo(e, t) {
|
|
6322
6465
|
return new Proxy(e, {
|
|
6323
6466
|
get(...r) {
|
|
6324
6467
|
let i;
|
|
6325
|
-
const
|
|
6326
|
-
if (typeof
|
|
6327
|
-
const
|
|
6328
|
-
j = t, i = ui(
|
|
6468
|
+
const n = r[1];
|
|
6469
|
+
if (typeof n == "string") {
|
|
6470
|
+
const a = j;
|
|
6471
|
+
j = t, i = ui(n, void 0), j = a;
|
|
6329
6472
|
}
|
|
6330
6473
|
return i !== void 0 ? i : Reflect.get(...r);
|
|
6331
6474
|
}
|
|
@@ -6333,20 +6476,20 @@ function eo(e, t) {
|
|
|
6333
6476
|
}
|
|
6334
6477
|
function cr(e, t, r) {
|
|
6335
6478
|
return e(
|
|
6336
|
-
(i,
|
|
6479
|
+
(i, n = {}) => i.reduce((a, s) => {
|
|
6337
6480
|
if (s.startsWith("slots.")) {
|
|
6338
|
-
const l = s.substring(6), o = () => t.slots &&
|
|
6339
|
-
if (
|
|
6340
|
-
|
|
6481
|
+
const l = s.substring(6), o = () => t.slots && w(t.slots, l) && typeof t.slots[l] == "function";
|
|
6482
|
+
if (n.if)
|
|
6483
|
+
a[s] = o;
|
|
6341
6484
|
else if (t.slots) {
|
|
6342
|
-
const
|
|
6343
|
-
|
|
6485
|
+
const g = eo(t, r);
|
|
6486
|
+
a[s] = () => o() ? t.slots[l](g) : null;
|
|
6344
6487
|
}
|
|
6345
6488
|
} else {
|
|
6346
6489
|
const l = Jl(s, t);
|
|
6347
|
-
|
|
6490
|
+
a[s] = () => ui(s, l.value);
|
|
6348
6491
|
}
|
|
6349
|
-
return
|
|
6492
|
+
return a;
|
|
6350
6493
|
}, {}),
|
|
6351
6494
|
r
|
|
6352
6495
|
);
|
|
@@ -6357,7 +6500,7 @@ function pr(e, t, r) {
|
|
|
6357
6500
|
const [, i] = Re[t];
|
|
6358
6501
|
delete Re[t], i.length = 0;
|
|
6359
6502
|
}
|
|
6360
|
-
|
|
6503
|
+
ne.delete(r);
|
|
6361
6504
|
}
|
|
6362
6505
|
function ci(e) {
|
|
6363
6506
|
return JSON.stringify(e, (t, r) => typeof r == "function" ? r.toString() : r);
|
|
@@ -6384,53 +6527,53 @@ var pi = /* @__PURE__ */ dr({
|
|
|
6384
6527
|
},
|
|
6385
6528
|
emits: ["mounted"],
|
|
6386
6529
|
setup(e, t) {
|
|
6387
|
-
var
|
|
6530
|
+
var g;
|
|
6388
6531
|
const r = pt();
|
|
6389
6532
|
let i = {};
|
|
6390
|
-
|
|
6391
|
-
const
|
|
6392
|
-
let
|
|
6393
|
-
oi ||
|
|
6533
|
+
ne.set(i, []);
|
|
6534
|
+
const n = { FormKit: it(mi), ...e.library };
|
|
6535
|
+
let a = ur(n, e.schema, e.memoKey), s, l;
|
|
6536
|
+
oi || De(
|
|
6394
6537
|
() => e.schema,
|
|
6395
|
-
(
|
|
6538
|
+
(b, y) => {
|
|
6396
6539
|
var h;
|
|
6397
6540
|
const P = i;
|
|
6398
|
-
i = {},
|
|
6541
|
+
i = {}, ne.set(i, []), a = ur(n, e.schema, e.memoKey), s = cr(a, l, i), b === y && ((h = r == null ? void 0 : r.proxy) == null ? void 0 : h.$forceUpdate).call(h), pr(e.schema, e.memoKey, P);
|
|
6399
6542
|
},
|
|
6400
6543
|
{ deep: !0 }
|
|
6401
6544
|
), ie(() => {
|
|
6402
6545
|
l = Object.assign(xe(e.data ?? {}), {
|
|
6403
6546
|
slots: t.slots
|
|
6404
|
-
}), t.slots, s = cr(
|
|
6547
|
+
}), t.slots, s = cr(a, l, i);
|
|
6405
6548
|
});
|
|
6406
6549
|
function o() {
|
|
6407
6550
|
pr(e.schema, e.memoKey, i), l && (l.node && l.node.destroy(), l.slots = null, l = null), s = null;
|
|
6408
6551
|
}
|
|
6409
|
-
return
|
|
6552
|
+
return gr(() => t.emit("mounted")), gi(o), Yl((g = pt()) == null ? void 0 : g.appContext.app, o), () => s ? s() : null;
|
|
6410
6553
|
}
|
|
6411
6554
|
}), to = pi, ro = typeof window > "u", fr = Symbol("FormKitParent"), io = Symbol("FormKitComponentCallback");
|
|
6412
|
-
function
|
|
6555
|
+
function no(e, t) {
|
|
6413
6556
|
const r = fo(e, t);
|
|
6414
|
-
if (r.props.definition ||
|
|
6557
|
+
if (r.props.definition || q(600, r), r.props.definition.component)
|
|
6415
6558
|
return () => {
|
|
6416
|
-
var
|
|
6559
|
+
var g;
|
|
6417
6560
|
return mt(
|
|
6418
|
-
(
|
|
6561
|
+
(g = r.props.definition) == null ? void 0 : g.component,
|
|
6419
6562
|
{
|
|
6420
6563
|
context: r.context
|
|
6421
6564
|
},
|
|
6422
6565
|
{ ...t.slots }
|
|
6423
6566
|
);
|
|
6424
6567
|
};
|
|
6425
|
-
const i =
|
|
6426
|
-
let
|
|
6427
|
-
const
|
|
6428
|
-
var
|
|
6429
|
-
const
|
|
6430
|
-
|
|
6568
|
+
const i = z([]);
|
|
6569
|
+
let n = r.props.definition.schemaMemoKey;
|
|
6570
|
+
const a = () => {
|
|
6571
|
+
var b, y;
|
|
6572
|
+
const g = (y = (b = r.props) == null ? void 0 : b.definition) == null ? void 0 : y.schema;
|
|
6573
|
+
g || q(601, r), typeof g == "function" ? (i.value = g({ ...e.sectionsSchema || {} }), (n && e.sectionsSchema || "memoKey" in g && typeof g.memoKey == "string") && (n = (n ?? (g == null ? void 0 : g.memoKey)) + JSON.stringify(e.sectionsSchema))) : i.value = g;
|
|
6431
6574
|
};
|
|
6432
|
-
|
|
6433
|
-
|
|
6575
|
+
a(), ro || r.on("schema", () => {
|
|
6576
|
+
n += "♻️", a();
|
|
6434
6577
|
}), t.emit("node", r);
|
|
6435
6578
|
const s = r.props.definition.library, l = {
|
|
6436
6579
|
FormKit: it(fi),
|
|
@@ -6447,27 +6590,27 @@ function ao(e, t) {
|
|
|
6447
6590
|
data: r.context,
|
|
6448
6591
|
onMounted: o,
|
|
6449
6592
|
library: l,
|
|
6450
|
-
memoKey:
|
|
6593
|
+
memoKey: n
|
|
6451
6594
|
},
|
|
6452
6595
|
{ ...t.slots }
|
|
6453
6596
|
);
|
|
6454
6597
|
}
|
|
6455
6598
|
var fi = /* @__PURE__ */ dr(
|
|
6456
|
-
|
|
6599
|
+
no,
|
|
6457
6600
|
{
|
|
6458
6601
|
props: Vs,
|
|
6459
6602
|
inheritAttrs: !1
|
|
6460
6603
|
}
|
|
6461
|
-
), mi = fi,
|
|
6604
|
+
), mi = fi, ao = Symbol();
|
|
6462
6605
|
function so(e, t) {
|
|
6463
6606
|
return e.component(t.alias || "FormKit", mi).component(t.schemaAlias || "FormKitSchema", to), {
|
|
6464
|
-
get:
|
|
6607
|
+
get: Oe,
|
|
6465
6608
|
setLocale: (r) => {
|
|
6466
6609
|
var i;
|
|
6467
6610
|
(i = t.config) != null && i.rootConfig && (t.config.rootConfig.locale = r);
|
|
6468
6611
|
},
|
|
6469
|
-
clearErrors:
|
|
6470
|
-
setErrors:
|
|
6612
|
+
clearErrors: na,
|
|
6613
|
+
setErrors: ia,
|
|
6471
6614
|
submit: _r,
|
|
6472
6615
|
reset: Tr
|
|
6473
6616
|
};
|
|
@@ -6480,7 +6623,7 @@ var di = Symbol.for("FormKitOptions"), lo = Symbol.for("FormKitConfig"), oo = {
|
|
|
6480
6623
|
schemaAlias: "FormKitSchema"
|
|
6481
6624
|
},
|
|
6482
6625
|
typeof t == "function" ? t() : t
|
|
6483
|
-
), i =
|
|
6626
|
+
), i = on(r.config || {});
|
|
6484
6627
|
r.config = { rootConfig: i }, e.config.globalProperties.$formkit = so(e, r), e.provide(di, r), e.provide(lo, i), typeof window < "u" && (globalThis.__FORMKIT_CONFIGS__ = (globalThis.__FORMKIT_CONFIGS__ || []).concat([i]));
|
|
6485
6628
|
}
|
|
6486
6629
|
}, uo = typeof window < "u", ct = [
|
|
@@ -6501,50 +6644,50 @@ var di = Symbol.for("FormKitOptions"), lo = Symbol.for("FormKitConfig"), oo = {
|
|
|
6501
6644
|
function mr(e, t) {
|
|
6502
6645
|
t.classes && Object.keys(t.classes).forEach(
|
|
6503
6646
|
(r) => {
|
|
6504
|
-
typeof r == "string" && (e.props[`_${r}Class`] = t.classes[r],
|
|
6647
|
+
typeof r == "string" && (e.props[`_${r}Class`] = t.classes[r], Fe(t.classes[r]) && r === "inner" && Object.values(t.classes[r]));
|
|
6505
6648
|
}
|
|
6506
6649
|
);
|
|
6507
6650
|
}
|
|
6508
6651
|
function po(e) {
|
|
6509
6652
|
return e ? ["Submit", "SubmitRaw", "SubmitInvalid"].reduce(
|
|
6510
6653
|
(r, i) => {
|
|
6511
|
-
const
|
|
6512
|
-
return
|
|
6654
|
+
const n = `on${i}`;
|
|
6655
|
+
return n in e && typeof e[n] == "function" && (r[n] = e[n]), r;
|
|
6513
6656
|
},
|
|
6514
6657
|
{}
|
|
6515
6658
|
) : {};
|
|
6516
6659
|
}
|
|
6517
6660
|
function fo(e, t, r = {}) {
|
|
6518
|
-
const i = Object.assign({}, je(di) || {}, r),
|
|
6661
|
+
const i = Object.assign({}, je(di) || {}, r), n = je(ao, z(uo ? document : void 0)), a = je(io, () => {
|
|
6519
6662
|
}), s = pt(), l = po(s == null ? void 0 : s.vnode.props), o = ["modelValue", "model-value"].some(
|
|
6520
6663
|
(u) => u in ((s == null ? void 0 : s.vnode.props) ?? {})
|
|
6521
6664
|
);
|
|
6522
|
-
let
|
|
6523
|
-
|
|
6524
|
-
|
|
6665
|
+
let g = !1;
|
|
6666
|
+
gr(() => {
|
|
6667
|
+
g = !0;
|
|
6525
6668
|
});
|
|
6526
|
-
const
|
|
6669
|
+
const b = e.modelValue !== void 0 ? e.modelValue : K(t.attrs.value);
|
|
6527
6670
|
function y() {
|
|
6528
6671
|
const u = {
|
|
6529
6672
|
...he(e),
|
|
6530
6673
|
...l,
|
|
6531
6674
|
type: e.type ?? "text",
|
|
6532
|
-
__root:
|
|
6675
|
+
__root: n.value,
|
|
6533
6676
|
__slots: t.slots
|
|
6534
6677
|
}, f = Ht(he(t.attrs), ct);
|
|
6535
6678
|
f.key || (f.key = Ae()), u.attrs = f;
|
|
6536
6679
|
const A = jt(he(t.attrs), ct);
|
|
6537
|
-
for (const
|
|
6538
|
-
co.includes(
|
|
6539
|
-
const
|
|
6540
|
-
return mr(
|
|
6680
|
+
for (const F in A)
|
|
6681
|
+
co.includes(F) && A[F] === "" && (A[F] = !0), u[Le(F)] = A[F];
|
|
6682
|
+
const D = { props: {} };
|
|
6683
|
+
return mr(D, e), Object.assign(u, D.props), typeof u.type != "string" && (u.definition = u.type, delete u.type), u;
|
|
6541
6684
|
}
|
|
6542
|
-
const P = y(), h = P.ignore ? null : e.parent || je(fr, null), v =
|
|
6685
|
+
const P = y(), h = P.ignore ? null : e.parent || je(fr, null), v = Xn(
|
|
6543
6686
|
le(
|
|
6544
6687
|
i || {},
|
|
6545
6688
|
{
|
|
6546
6689
|
name: e.name || void 0,
|
|
6547
|
-
value:
|
|
6690
|
+
value: b,
|
|
6548
6691
|
parent: h,
|
|
6549
6692
|
plugins: (i.plugins || []).concat(e.plugins ?? []),
|
|
6550
6693
|
config: e.config || {},
|
|
@@ -6556,8 +6699,8 @@ function fo(e, t, r = {}) {
|
|
|
6556
6699
|
!0
|
|
6557
6700
|
)
|
|
6558
6701
|
);
|
|
6559
|
-
|
|
6560
|
-
const p =
|
|
6702
|
+
a(v), v.props.definition || q(600, v);
|
|
6703
|
+
const p = z(
|
|
6561
6704
|
new Set(
|
|
6562
6705
|
Array.isArray(v.props.__propDefs) ? v.props.__propDefs : Object.keys(v.props.__propDefs ?? {})
|
|
6563
6706
|
)
|
|
@@ -6569,32 +6712,32 @@ function fo(e, t, r = {}) {
|
|
|
6569
6712
|
}
|
|
6570
6713
|
);
|
|
6571
6714
|
const m = me(
|
|
6572
|
-
() => ct.concat([...p.value]).reduce((u, f) => (typeof f == "string" ? (u.push(
|
|
6715
|
+
() => ct.concat([...p.value]).reduce((u, f) => (typeof f == "string" ? (u.push(Le(f)), u.push(hr(f))) : u.push(f), u), [])
|
|
6573
6716
|
);
|
|
6574
6717
|
ie(() => mr(v, e));
|
|
6575
6718
|
const d = he(e);
|
|
6576
6719
|
for (const u in d)
|
|
6577
|
-
|
|
6720
|
+
De(
|
|
6578
6721
|
() => e[u],
|
|
6579
6722
|
() => {
|
|
6580
6723
|
e[u] !== void 0 && (v.props[u] = e[u]);
|
|
6581
6724
|
}
|
|
6582
6725
|
);
|
|
6583
6726
|
ie(() => {
|
|
6584
|
-
v.props.__root =
|
|
6727
|
+
v.props.__root = n.value;
|
|
6585
6728
|
});
|
|
6586
|
-
const
|
|
6729
|
+
const $ = /* @__PURE__ */ new Set(), S = he(t.attrs);
|
|
6587
6730
|
ie(() => {
|
|
6588
|
-
|
|
6731
|
+
L(jt(S, m.value));
|
|
6589
6732
|
});
|
|
6590
|
-
function
|
|
6591
|
-
|
|
6592
|
-
f(),
|
|
6733
|
+
function L(u) {
|
|
6734
|
+
$.forEach((f) => {
|
|
6735
|
+
f(), $.delete(f);
|
|
6593
6736
|
});
|
|
6594
6737
|
for (const f in u) {
|
|
6595
|
-
const A =
|
|
6596
|
-
|
|
6597
|
-
|
|
6738
|
+
const A = Le(f);
|
|
6739
|
+
$.add(
|
|
6740
|
+
De(
|
|
6598
6741
|
() => t.attrs[f],
|
|
6599
6742
|
() => {
|
|
6600
6743
|
v.props[A] = t.attrs[f];
|
|
@@ -6608,7 +6751,7 @@ function fo(e, t, r = {}) {
|
|
|
6608
6751
|
"multiple" in u && (u.multiple = Q(u.multiple)), typeof u.onBlur == "function" && (u.onBlur = ji(u.onBlur)), v.props.attrs = Object.assign({}, v.props.attrs || {}, u);
|
|
6609
6752
|
}), ie(() => {
|
|
6610
6753
|
const u = (e.errors ?? []).map(
|
|
6611
|
-
(f) => /* @__PURE__ */
|
|
6754
|
+
(f) => /* @__PURE__ */ B({
|
|
6612
6755
|
key: Ct(f),
|
|
6613
6756
|
type: "error",
|
|
6614
6757
|
value: f,
|
|
@@ -6624,58 +6767,58 @@ function fo(e, t, r = {}) {
|
|
|
6624
6767
|
ie(() => {
|
|
6625
6768
|
const f = e.inputErrors ?? {}, A = Object.keys(f);
|
|
6626
6769
|
A.length || v.clearErrors(!0, u);
|
|
6627
|
-
const
|
|
6770
|
+
const D = A.reduce((F, M) => {
|
|
6628
6771
|
let c = f[M];
|
|
6629
|
-
return typeof c == "string" && (c = [c]), Array.isArray(c) && (
|
|
6630
|
-
(T) => /* @__PURE__ */
|
|
6772
|
+
return typeof c == "string" && (c = [c]), Array.isArray(c) && (F[M] = c.map(
|
|
6773
|
+
(T) => /* @__PURE__ */ B({
|
|
6631
6774
|
key: T,
|
|
6632
6775
|
type: "error",
|
|
6633
6776
|
value: T,
|
|
6634
6777
|
meta: { source: u }
|
|
6635
6778
|
})
|
|
6636
|
-
)),
|
|
6779
|
+
)), F;
|
|
6637
6780
|
}, {});
|
|
6638
6781
|
v.store.apply(
|
|
6639
|
-
|
|
6640
|
-
(
|
|
6782
|
+
D,
|
|
6783
|
+
(F) => F.type === "error" && F.meta.source === u
|
|
6641
6784
|
);
|
|
6642
6785
|
});
|
|
6643
6786
|
}
|
|
6644
|
-
ie(() => Object.assign(v.config, e.config)), v.type !== "input" &&
|
|
6787
|
+
ie(() => Object.assign(v.config, e.config)), v.type !== "input" && bi(fr, v);
|
|
6645
6788
|
let _;
|
|
6646
6789
|
return v.on("modelUpdated", () => {
|
|
6647
6790
|
var u, f;
|
|
6648
|
-
t.emit("inputRaw", (u = v.context) == null ? void 0 : u.value, v),
|
|
6649
|
-
}), o && (
|
|
6791
|
+
t.emit("inputRaw", (u = v.context) == null ? void 0 : u.value, v), g && t.emit("input", (f = v.context) == null ? void 0 : f.value, v), o && v.context && (_ = K(v.value), t.emit("update:modelValue", dt(v.value)));
|
|
6792
|
+
}), o && (De(
|
|
6650
6793
|
hi(e, "modelValue"),
|
|
6651
6794
|
(u) => {
|
|
6652
6795
|
U(_, u) || v.input(u, !1);
|
|
6653
6796
|
},
|
|
6654
6797
|
{ deep: !0 }
|
|
6655
|
-
), v.value !==
|
|
6798
|
+
), v.value !== b && v.emit("modelUpdated")), yi(() => v.destroy()), v;
|
|
6656
6799
|
}
|
|
6657
6800
|
var mo = 1;
|
|
6658
|
-
function
|
|
6801
|
+
function go(e) {
|
|
6659
6802
|
return typeof e == "function" && e.length === 2 || typeof e == "object" && !Array.isArray(e) && !("$el" in e) && !("$cmp" in e) && !("if" in e);
|
|
6660
6803
|
}
|
|
6661
|
-
function
|
|
6804
|
+
function W(e, t = {}, r = {}) {
|
|
6662
6805
|
const i = {
|
|
6663
6806
|
type: "input",
|
|
6664
6807
|
...t
|
|
6665
6808
|
};
|
|
6666
|
-
let
|
|
6667
|
-
if (
|
|
6668
|
-
const
|
|
6669
|
-
|
|
6670
|
-
$cmp:
|
|
6809
|
+
let n;
|
|
6810
|
+
if (go(e)) {
|
|
6811
|
+
const a = `SchemaComponent${mo++}`;
|
|
6812
|
+
n = /* @__PURE__ */ C("input", () => ({
|
|
6813
|
+
$cmp: a,
|
|
6671
6814
|
props: {
|
|
6672
6815
|
context: "$node.context"
|
|
6673
6816
|
}
|
|
6674
|
-
})), i.library = { [
|
|
6675
|
-
} else typeof e == "function" ?
|
|
6676
|
-
return i.schema = /* @__PURE__ */
|
|
6817
|
+
})), i.library = { [a]: it(e) };
|
|
6818
|
+
} else typeof e == "function" ? n = e : n = /* @__PURE__ */ C("input", () => K(e));
|
|
6819
|
+
return i.schema = /* @__PURE__ */ Ll(n || "Schema undefined", r), i.schemaMemoKey || (i.schemaMemoKey = `${Math.random()}`), i;
|
|
6677
6820
|
}
|
|
6678
|
-
var
|
|
6821
|
+
var bo = /* @__PURE__ */ C("messages", () => ({
|
|
6679
6822
|
$el: "ul",
|
|
6680
6823
|
if: "$fns.length($messages)"
|
|
6681
6824
|
})), ho = /* @__PURE__ */ C("message", () => ({
|
|
@@ -6687,7 +6830,7 @@ var go = /* @__PURE__ */ C("messages", () => ({
|
|
|
6687
6830
|
"data-message-type": "$message.type"
|
|
6688
6831
|
}
|
|
6689
6832
|
}));
|
|
6690
|
-
|
|
6833
|
+
bo(ho("$message.value"));
|
|
6691
6834
|
var yo = /* @__PURE__ */ C("summary", () => ({
|
|
6692
6835
|
$el: "div",
|
|
6693
6836
|
attrs: {
|
|
@@ -6696,10 +6839,10 @@ var yo = /* @__PURE__ */ C("summary", () => ({
|
|
|
6696
6839
|
})), vo = /* @__PURE__ */ C("summaryInner", () => ({
|
|
6697
6840
|
$el: "div",
|
|
6698
6841
|
if: "$summaries.length && $showSummaries"
|
|
6699
|
-
})),
|
|
6842
|
+
})), Lo = /* @__PURE__ */ C("messages", () => ({
|
|
6700
6843
|
$el: "ul",
|
|
6701
6844
|
if: "$summaries.length && $showSummaries"
|
|
6702
|
-
})),
|
|
6845
|
+
})), $o = /* @__PURE__ */ C("message", () => ({
|
|
6703
6846
|
$el: "li",
|
|
6704
6847
|
for: ["summary", "$summaries"],
|
|
6705
6848
|
attrs: {
|
|
@@ -6722,7 +6865,7 @@ var yo = /* @__PURE__ */ C("summary", () => ({
|
|
|
6722
6865
|
yo(
|
|
6723
6866
|
vo(
|
|
6724
6867
|
_o("$summaryHeader"),
|
|
6725
|
-
$o(
|
|
6868
|
+
Lo($o(To("$summary.message")))
|
|
6726
6869
|
)
|
|
6727
6870
|
);
|
|
6728
6871
|
Kl();
|
|
@@ -6730,30 +6873,30 @@ li();
|
|
|
6730
6873
|
function So(e) {
|
|
6731
6874
|
const { t } = _i();
|
|
6732
6875
|
["label"].forEach((i) => {
|
|
6733
|
-
e.hook.input((
|
|
6876
|
+
e.hook.input((n, a) => {
|
|
6734
6877
|
const s = e.props[i];
|
|
6735
|
-
return typeof s == "string" && (e.props[i] = t(s)), n
|
|
6878
|
+
return typeof s == "string" && (e.props[i] = t(s)), a(n);
|
|
6736
6879
|
});
|
|
6737
6880
|
});
|
|
6738
6881
|
}
|
|
6739
6882
|
const Ao = (e) => {
|
|
6740
6883
|
e.use(
|
|
6741
6884
|
oo,
|
|
6742
|
-
|
|
6885
|
+
Ot({
|
|
6743
6886
|
plugins: [So],
|
|
6744
6887
|
inputs: {
|
|
6745
|
-
BaTextField:
|
|
6888
|
+
BaTextField: W(
|
|
6746
6889
|
H(
|
|
6747
6890
|
() => import("./TextField-BiVH5rLX.js")
|
|
6748
6891
|
)
|
|
6749
6892
|
),
|
|
6750
|
-
BaStepperField:
|
|
6893
|
+
BaStepperField: W(
|
|
6751
6894
|
H(
|
|
6752
6895
|
() => import("./StepperField-BeeZ_sl9.js")
|
|
6753
6896
|
),
|
|
6754
6897
|
{ props: ["suffix", "disabled", "min"] }
|
|
6755
6898
|
),
|
|
6756
|
-
BaColorPicker:
|
|
6899
|
+
BaColorPicker: W(
|
|
6757
6900
|
H(
|
|
6758
6901
|
() => import("./ColorPicker-I6CkNIxt.js")
|
|
6759
6902
|
),
|
|
@@ -6761,47 +6904,47 @@ const Ao = (e) => {
|
|
|
6761
6904
|
props: ["label"]
|
|
6762
6905
|
}
|
|
6763
6906
|
),
|
|
6764
|
-
BaSelect:
|
|
6907
|
+
BaSelect: W(
|
|
6765
6908
|
H(
|
|
6766
6909
|
() => import("./Select-BRYuMWoQ.js")
|
|
6767
6910
|
),
|
|
6768
6911
|
{ props: ["selectItems", "editable"] }
|
|
6769
6912
|
),
|
|
6770
|
-
BaListRepeater:
|
|
6913
|
+
BaListRepeater: W(
|
|
6771
6914
|
H(
|
|
6772
|
-
() => import("./ListRepeater-
|
|
6915
|
+
() => import("./ListRepeater-BNEN5FMB.js")
|
|
6773
6916
|
)
|
|
6774
6917
|
),
|
|
6775
|
-
BaTextStyleList:
|
|
6918
|
+
BaTextStyleList: W(
|
|
6776
6919
|
H(
|
|
6777
6920
|
() => import("./TextStyleList-CuPE80Py.js")
|
|
6778
6921
|
)
|
|
6779
6922
|
),
|
|
6780
|
-
BaTextAlign:
|
|
6923
|
+
BaTextAlign: W(
|
|
6781
6924
|
H(
|
|
6782
6925
|
() => import("./TextAlign-BOC8ekaH.js")
|
|
6783
6926
|
)
|
|
6784
6927
|
),
|
|
6785
|
-
BaTextDecorators:
|
|
6928
|
+
BaTextDecorators: W(
|
|
6786
6929
|
H(
|
|
6787
6930
|
() => import("./TextDecorators-BJC4umDR.js")
|
|
6788
6931
|
)
|
|
6789
6932
|
),
|
|
6790
|
-
BaImageUpload:
|
|
6933
|
+
BaImageUpload: W(
|
|
6791
6934
|
H(
|
|
6792
|
-
() => import("./ImageUpload-
|
|
6935
|
+
() => import("./ImageUpload-CEVZ2Smd.js")
|
|
6793
6936
|
),
|
|
6794
6937
|
{ props: ["ignoreUpdate"] }
|
|
6795
6938
|
),
|
|
6796
|
-
BaLinkButton:
|
|
6939
|
+
BaLinkButton: W(
|
|
6797
6940
|
H(
|
|
6798
|
-
() => import("./LinkButton-
|
|
6941
|
+
() => import("./LinkButton-DRpeZMhV.js")
|
|
6799
6942
|
)
|
|
6800
6943
|
),
|
|
6801
|
-
BaSwitch:
|
|
6944
|
+
BaSwitch: W(
|
|
6802
6945
|
H(() => import("./Switch-8mmNQUDo.js"))
|
|
6803
6946
|
),
|
|
6804
|
-
BaButtonGroup:
|
|
6947
|
+
BaButtonGroup: W(
|
|
6805
6948
|
H(
|
|
6806
6949
|
() => import("./ButtonGroup-D_HkX122.js")
|
|
6807
6950
|
),
|
|
@@ -6812,15 +6955,15 @@ const Ao = (e) => {
|
|
|
6812
6955
|
);
|
|
6813
6956
|
}, Po = {
|
|
6814
6957
|
"en-US": Si,
|
|
6815
|
-
"zh-CN":
|
|
6958
|
+
"zh-CN": ki,
|
|
6816
6959
|
"zh-TW": Ai,
|
|
6817
6960
|
"th-TH": xi
|
|
6818
|
-
}, xo = H(() => import("./App-
|
|
6961
|
+
}, xo = H(() => import("./App-DNayQ0r1.js"));
|
|
6819
6962
|
export {
|
|
6820
6963
|
mi as F,
|
|
6821
6964
|
pi as a,
|
|
6822
6965
|
xo as b,
|
|
6823
6966
|
Ao as c,
|
|
6824
6967
|
Po as i,
|
|
6825
|
-
|
|
6968
|
+
wo as r
|
|
6826
6969
|
};
|