@feedmepos/mf-brand-app-builder 0.5.23-dev.0 → 0.5.25-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BRIDkK5d.js → App-C5TuYndf.js} +1 -1
- package/dist/{BrandkitView-DzLVTHjo.js → BrandkitView-BHBErfbu.js} +3065 -2769
- package/dist/{BuilderView-BwXnOIit.js → BuilderView-Btgivma_.js} +2 -2
- package/dist/{ImageUpload-OqPKnQQI.js → ImageUpload-eKzi_Xyb.js} +1 -1
- package/dist/{ListRepeater-DIlTKjtE.js → ListRepeater-BHlMo-N5.js} +1 -1
- package/dist/{app-CY0-wVrG.js → app-C2gJ30bL.js} +392 -212
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +30 -21
- package/dist/client/merchant/src/app.d.ts +180 -0
- package/dist/client/merchant/src/components/brandkit/ColorOverrideDialog.vue.d.ts +26 -0
- package/dist/client/merchant/src/stores/business/index.d.ts +348 -12
- package/dist/{main-DzMHu5qo.js → main-Bwnm2Bli.js} +2 -2
- package/dist/package.json +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, defineComponent as hi, getCurrentInstance as dt, markRaw as nt, watch as Ie, watchEffect as ne, reactive as Me, onMounted as fi, onUnmounted as gn, h as pt, ref as j, inject as Be, computed as me, provide as bn, toRef as yn, onBeforeUnmount as vn, isRef as mt, createTextVNode as Tn, resolveComponent as
|
|
1
|
+
import { defineAsyncComponent as H, defineComponent as hi, getCurrentInstance as dt, markRaw as nt, watch as Ie, watchEffect as ne, reactive as Me, onMounted as fi, onUnmounted as gn, h as pt, ref as j, inject as Be, computed as me, provide as bn, toRef as yn, onBeforeUnmount as vn, isRef as mt, createTextVNode as Tn, resolveComponent as Cn, nextTick as Ln, triggerRef as Ve, isReactive as Et } from "vue";
|
|
2
2
|
import { useI18n as kn } from "@feedmepos/mf-common";
|
|
3
3
|
const wn = {
|
|
4
4
|
common: {
|
|
@@ -82,6 +82,25 @@ const wn = {
|
|
|
82
82
|
description: "Used for layered components like cards and modals to create depth."
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
+
statusColors: {
|
|
86
|
+
_: "Status colors",
|
|
87
|
+
success: {
|
|
88
|
+
title: "Success",
|
|
89
|
+
description: "Used for success states and confirmations."
|
|
90
|
+
},
|
|
91
|
+
warning: {
|
|
92
|
+
title: "Warning",
|
|
93
|
+
description: "Used for cautions and attention needed."
|
|
94
|
+
},
|
|
95
|
+
error: {
|
|
96
|
+
title: "Error",
|
|
97
|
+
description: "Used for critical errors and failures."
|
|
98
|
+
},
|
|
99
|
+
info: {
|
|
100
|
+
title: "Info",
|
|
101
|
+
description: "Used for informational highlights."
|
|
102
|
+
}
|
|
103
|
+
},
|
|
85
104
|
fonts: {
|
|
86
105
|
_: "Brand fonts",
|
|
87
106
|
description: "Upload your fonts to personalize templates and strengthen your brand identity.",
|
|
@@ -125,7 +144,18 @@ const wn = {
|
|
|
125
144
|
list: "List",
|
|
126
145
|
currentSelection: "Current selection",
|
|
127
146
|
preview: "Preview",
|
|
128
|
-
reset: "Reset to default"
|
|
147
|
+
reset: "Reset to default",
|
|
148
|
+
colorOverride: {
|
|
149
|
+
title: "Color override",
|
|
150
|
+
descriptionApp: "Override default brand colors for the Order App.",
|
|
151
|
+
descriptionKiosk: "Override default brand colors for the Kiosk.",
|
|
152
|
+
configure: "Configure color override",
|
|
153
|
+
count: "{count} colors overridden",
|
|
154
|
+
dialogTitleApp: "Order App color override",
|
|
155
|
+
dialogTitleKiosk: "Kiosk color override",
|
|
156
|
+
close: "Close",
|
|
157
|
+
save: "Save override"
|
|
158
|
+
}
|
|
129
159
|
}
|
|
130
160
|
},
|
|
131
161
|
settings: {
|
|
@@ -648,6 +678,25 @@ const wn = {
|
|
|
648
678
|
description: "用于卡片和弹窗等分层组件,营造层次感。"
|
|
649
679
|
}
|
|
650
680
|
},
|
|
681
|
+
statusColors: {
|
|
682
|
+
_: "状态颜色",
|
|
683
|
+
success: {
|
|
684
|
+
title: "成功",
|
|
685
|
+
description: "用于成功状态和确认。"
|
|
686
|
+
},
|
|
687
|
+
warning: {
|
|
688
|
+
title: "警告",
|
|
689
|
+
description: "用于提醒和需要注意的场景。"
|
|
690
|
+
},
|
|
691
|
+
error: {
|
|
692
|
+
title: "错误",
|
|
693
|
+
description: "用于严重错误和失败。"
|
|
694
|
+
},
|
|
695
|
+
info: {
|
|
696
|
+
title: "信息",
|
|
697
|
+
description: "用于信息提示。"
|
|
698
|
+
}
|
|
699
|
+
},
|
|
651
700
|
fonts: {
|
|
652
701
|
_: "品牌字体",
|
|
653
702
|
description: "上传您的字体以个性化模板并强化品牌形象。",
|
|
@@ -692,7 +741,18 @@ const wn = {
|
|
|
692
741
|
list: "列表",
|
|
693
742
|
currentSelection: "当前选择",
|
|
694
743
|
preview: "预览",
|
|
695
|
-
reset: "重置为默认"
|
|
744
|
+
reset: "重置为默认",
|
|
745
|
+
colorOverride: {
|
|
746
|
+
title: "颜色覆盖",
|
|
747
|
+
descriptionApp: "为点餐应用覆盖默认品牌颜色。",
|
|
748
|
+
descriptionKiosk: "为自助服务机覆盖默认品牌颜色。",
|
|
749
|
+
configure: "配置颜色覆盖",
|
|
750
|
+
count: "{count} 个颜色已覆盖",
|
|
751
|
+
dialogTitleApp: "点餐应用颜色覆盖",
|
|
752
|
+
dialogTitleKiosk: "自助服务机颜色覆盖",
|
|
753
|
+
close: "关闭",
|
|
754
|
+
save: "保存覆盖"
|
|
755
|
+
}
|
|
696
756
|
}
|
|
697
757
|
},
|
|
698
758
|
settings: {
|
|
@@ -1220,6 +1280,25 @@ const wn = {
|
|
|
1220
1280
|
description: "用于卡片和彈窗等分層組件,營造層次感。"
|
|
1221
1281
|
}
|
|
1222
1282
|
},
|
|
1283
|
+
statusColors: {
|
|
1284
|
+
_: "狀態顏色",
|
|
1285
|
+
success: {
|
|
1286
|
+
title: "成功",
|
|
1287
|
+
description: "用于成功狀態與確認。"
|
|
1288
|
+
},
|
|
1289
|
+
warning: {
|
|
1290
|
+
title: "警告",
|
|
1291
|
+
description: "用于提醒與需要注意的情境。"
|
|
1292
|
+
},
|
|
1293
|
+
error: {
|
|
1294
|
+
title: "錯誤",
|
|
1295
|
+
description: "用于嚴重錯誤與失敗。"
|
|
1296
|
+
},
|
|
1297
|
+
info: {
|
|
1298
|
+
title: "資訊",
|
|
1299
|
+
description: "用于資訊提示。"
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1223
1302
|
fonts: {
|
|
1224
1303
|
_: "品牌字體",
|
|
1225
1304
|
description: "上傳您的字體以個性化模板並強化品牌形象。",
|
|
@@ -1264,7 +1343,18 @@ const wn = {
|
|
|
1264
1343
|
list: "列表",
|
|
1265
1344
|
currentSelection: "當前選擇",
|
|
1266
1345
|
preview: "預覽",
|
|
1267
|
-
reset: "重置為預設"
|
|
1346
|
+
reset: "重置為預設",
|
|
1347
|
+
colorOverride: {
|
|
1348
|
+
title: "顏色覆蓋",
|
|
1349
|
+
descriptionApp: "為點餐應用覆蓋預設品牌顏色。",
|
|
1350
|
+
descriptionKiosk: "為自助服務機覆蓋預設品牌顏色。",
|
|
1351
|
+
configure: "設定顏色覆蓋",
|
|
1352
|
+
count: "已覆蓋 {count} 個顏色",
|
|
1353
|
+
dialogTitleApp: "點餐應用顏色覆蓋",
|
|
1354
|
+
dialogTitleKiosk: "自助服務機顏色覆蓋",
|
|
1355
|
+
close: "關閉",
|
|
1356
|
+
save: "儲存覆蓋"
|
|
1357
|
+
}
|
|
1268
1358
|
}
|
|
1269
1359
|
},
|
|
1270
1360
|
settings: {
|
|
@@ -1787,6 +1877,25 @@ const wn = {
|
|
|
1787
1877
|
description: "ใช้กับองค์ประกอบที่มีชั้นเช่นการ์ดและโมดอลเพื่อสร้างความลึก"
|
|
1788
1878
|
}
|
|
1789
1879
|
},
|
|
1880
|
+
statusColors: {
|
|
1881
|
+
_: "สีสถานะ",
|
|
1882
|
+
success: {
|
|
1883
|
+
title: "สำเร็จ",
|
|
1884
|
+
description: "ใช้สำหรับสถานะสำเร็จและการยืนยัน"
|
|
1885
|
+
},
|
|
1886
|
+
warning: {
|
|
1887
|
+
title: "คำเตือน",
|
|
1888
|
+
description: "ใช้สำหรับการแจ้งเตือนและสิ่งที่ต้องระวัง"
|
|
1889
|
+
},
|
|
1890
|
+
error: {
|
|
1891
|
+
title: "ข้อผิดพลาด",
|
|
1892
|
+
description: "ใช้สำหรับข้อผิดพลาดร้ายแรงและความล้มเหลว"
|
|
1893
|
+
},
|
|
1894
|
+
info: {
|
|
1895
|
+
title: "ข้อมูล",
|
|
1896
|
+
description: "ใช้สำหรับการเน้นข้อมูล"
|
|
1897
|
+
}
|
|
1898
|
+
},
|
|
1790
1899
|
fonts: {
|
|
1791
1900
|
_: "ฟอนต์ของแบรนด์",
|
|
1792
1901
|
description: "อัปโหลดฟอนต์ของคุณเพื่อปรับแต่งเทมเพลตและเสริมสร้างอัตลักษณ์แบรนด์",
|
|
@@ -1831,7 +1940,18 @@ const wn = {
|
|
|
1831
1940
|
list: "รายการ",
|
|
1832
1941
|
currentSelection: "การเลือกปัจจุบัน",
|
|
1833
1942
|
preview: "ดูตัวอย่าง",
|
|
1834
|
-
reset: "รีเซ็ตเป็นค่าเริ่มต้น"
|
|
1943
|
+
reset: "รีเซ็ตเป็นค่าเริ่มต้น",
|
|
1944
|
+
colorOverride: {
|
|
1945
|
+
title: "เขียนทับสี",
|
|
1946
|
+
descriptionApp: "เขียนทับสีแบรนด์เริ่มต้นสำหรับแอปสั่งอาหาร",
|
|
1947
|
+
descriptionKiosk: "เขียนทับสีแบรนด์เริ่มต้นสำหรับเครื่องจุดขาย",
|
|
1948
|
+
configure: "ตั้งค่าเขียนทับสี",
|
|
1949
|
+
count: "เขียนทับ {count} สี",
|
|
1950
|
+
dialogTitleApp: "เขียนทับสีแอปสั่งอาหาร",
|
|
1951
|
+
dialogTitleKiosk: "เขียนทับสีเครื่องจุดขาย",
|
|
1952
|
+
close: "ปิด",
|
|
1953
|
+
save: "บันทึกการเขียนทับ"
|
|
1954
|
+
}
|
|
1835
1955
|
}
|
|
1836
1956
|
},
|
|
1837
1957
|
template: {
|
|
@@ -2515,6 +2635,25 @@ const wn = {
|
|
|
2515
2635
|
description: "카드 및 모달과 같은 계층화된 구성 요소에 사용하여 깊이를 만듭니다."
|
|
2516
2636
|
}
|
|
2517
2637
|
},
|
|
2638
|
+
statusColors: {
|
|
2639
|
+
_: "상태 색상",
|
|
2640
|
+
success: {
|
|
2641
|
+
title: "성공",
|
|
2642
|
+
description: "성공 상태와 확인에 사용됩니다."
|
|
2643
|
+
},
|
|
2644
|
+
warning: {
|
|
2645
|
+
title: "경고",
|
|
2646
|
+
description: "주의가 필요한 경우에 사용됩니다."
|
|
2647
|
+
},
|
|
2648
|
+
error: {
|
|
2649
|
+
title: "오류",
|
|
2650
|
+
description: "치명적인 오류와 실패에 사용됩니다."
|
|
2651
|
+
},
|
|
2652
|
+
info: {
|
|
2653
|
+
title: "정보",
|
|
2654
|
+
description: "정보 알림에 사용됩니다."
|
|
2655
|
+
}
|
|
2656
|
+
},
|
|
2518
2657
|
fonts: {
|
|
2519
2658
|
_: "브랜드 폰트",
|
|
2520
2659
|
description: "템플릿을 개인화하고 브랜드 정체성을 강화하기 위해 폰트를 업로드하세요.",
|
|
@@ -2558,7 +2697,18 @@ const wn = {
|
|
|
2558
2697
|
list: "리스트",
|
|
2559
2698
|
currentSelection: "현재 선택",
|
|
2560
2699
|
preview: "미리보기",
|
|
2561
|
-
reset: "기본값으로 초기화"
|
|
2700
|
+
reset: "기본값으로 초기화",
|
|
2701
|
+
colorOverride: {
|
|
2702
|
+
title: "색상 덮어쓰기",
|
|
2703
|
+
descriptionApp: "주문 앱의 기본 브랜드 색상을 덮어씁니다.",
|
|
2704
|
+
descriptionKiosk: "키오스크의 기본 브랜드 색상을 덮어씁니다.",
|
|
2705
|
+
configure: "색상 덮어쓰기 설정",
|
|
2706
|
+
count: "{count}개 색상 덮어씀",
|
|
2707
|
+
dialogTitleApp: "주문 앱 색상 덮어쓰기",
|
|
2708
|
+
dialogTitleKiosk: "키오스크 색상 덮어쓰기",
|
|
2709
|
+
close: "닫기",
|
|
2710
|
+
save: "덮어쓰기 저장"
|
|
2711
|
+
}
|
|
2562
2712
|
}
|
|
2563
2713
|
},
|
|
2564
2714
|
settings: {
|
|
@@ -3166,7 +3316,7 @@ const wn = {
|
|
|
3166
3316
|
integrations: "Tích hợp",
|
|
3167
3317
|
api: "API",
|
|
3168
3318
|
webhooks: "Webhooks"
|
|
3169
|
-
},
|
|
3319
|
+
}, Gn = {
|
|
3170
3320
|
common: {
|
|
3171
3321
|
confirm: "Xác nhận",
|
|
3172
3322
|
cancel: "Hủy",
|
|
@@ -3248,6 +3398,25 @@ const wn = {
|
|
|
3248
3398
|
description: "Được sử dụng cho các thành phần xếp lớp như thẻ và phương thức để tạo chiều sâu."
|
|
3249
3399
|
}
|
|
3250
3400
|
},
|
|
3401
|
+
statusColors: {
|
|
3402
|
+
_: "Màu trạng thái",
|
|
3403
|
+
success: {
|
|
3404
|
+
title: "Thành công",
|
|
3405
|
+
description: "Dùng cho trạng thái thành công và xác nhận."
|
|
3406
|
+
},
|
|
3407
|
+
warning: {
|
|
3408
|
+
title: "Cảnh báo",
|
|
3409
|
+
description: "Dùng cho cảnh báo và cần chú ý."
|
|
3410
|
+
},
|
|
3411
|
+
error: {
|
|
3412
|
+
title: "Lỗi",
|
|
3413
|
+
description: "Dùng cho lỗi nghiêm trọng và thất bại."
|
|
3414
|
+
},
|
|
3415
|
+
info: {
|
|
3416
|
+
title: "Thông tin",
|
|
3417
|
+
description: "Dùng cho thông báo cung cấp thông tin."
|
|
3418
|
+
}
|
|
3419
|
+
},
|
|
3251
3420
|
fonts: {
|
|
3252
3421
|
_: "Phông chữ thương hiệu",
|
|
3253
3422
|
description: "Tải lên phông chữ của bạn để cá nhân hóa các mẫu và củng cố bản sắc thương hiệu của bạn.",
|
|
@@ -3291,7 +3460,18 @@ const wn = {
|
|
|
3291
3460
|
list: "Danh sách",
|
|
3292
3461
|
currentSelection: "Lựa chọn hiện tại",
|
|
3293
3462
|
preview: "Xem trước",
|
|
3294
|
-
reset: "Đặt lại mặc định"
|
|
3463
|
+
reset: "Đặt lại mặc định",
|
|
3464
|
+
colorOverride: {
|
|
3465
|
+
title: "Ghi đè màu",
|
|
3466
|
+
descriptionApp: "Ghi đè màu thương hiệu mặc định cho ứng dụng đặt hàng.",
|
|
3467
|
+
descriptionKiosk: "Ghi đè màu thương hiệu mặc định cho ki-ốt.",
|
|
3468
|
+
configure: "Cấu hình ghi đè màu",
|
|
3469
|
+
count: "Đã ghi đè {count} màu",
|
|
3470
|
+
dialogTitleApp: "Ghi đè màu ứng dụng đặt hàng",
|
|
3471
|
+
dialogTitleKiosk: "Ghi đè màu ki-ốt",
|
|
3472
|
+
close: "Đóng",
|
|
3473
|
+
save: "Lưu ghi đè"
|
|
3474
|
+
}
|
|
3295
3475
|
}
|
|
3296
3476
|
},
|
|
3297
3477
|
settings: {
|
|
@@ -3730,14 +3910,14 @@ const wn = {
|
|
|
3730
3910
|
app: {
|
|
3731
3911
|
runningVersion: "Đang chạy v{version} trên {namespace}"
|
|
3732
3912
|
}
|
|
3733
|
-
},
|
|
3913
|
+
}, zn = {
|
|
3734
3914
|
common: Vn,
|
|
3735
3915
|
dashboard: Un,
|
|
3736
3916
|
orders: jn,
|
|
3737
3917
|
products: Wn,
|
|
3738
3918
|
customers: qn,
|
|
3739
3919
|
settings: Kn,
|
|
3740
|
-
brand:
|
|
3920
|
+
brand: Gn
|
|
3741
3921
|
}, Yn = {
|
|
3742
3922
|
branches: {
|
|
3743
3923
|
ourOutlets: "Our outlets",
|
|
@@ -6096,7 +6276,7 @@ const wn = {
|
|
|
6096
6276
|
switchCountryDrawer: {
|
|
6097
6277
|
selectLocation: "위치 선택"
|
|
6098
6278
|
}
|
|
6099
|
-
},
|
|
6279
|
+
}, Cr = {
|
|
6100
6280
|
orderDetails: {
|
|
6101
6281
|
title: "주문 상세"
|
|
6102
6282
|
},
|
|
@@ -6313,7 +6493,7 @@ const wn = {
|
|
|
6313
6493
|
download: "다운로드"
|
|
6314
6494
|
}
|
|
6315
6495
|
}
|
|
6316
|
-
},
|
|
6496
|
+
}, Lr = {
|
|
6317
6497
|
voucher: {
|
|
6318
6498
|
validFrom: "{date}부터 유효",
|
|
6319
6499
|
validTill: "{date}까지 유효",
|
|
@@ -6335,8 +6515,8 @@ const wn = {
|
|
|
6335
6515
|
}, wr = {
|
|
6336
6516
|
user: vr,
|
|
6337
6517
|
components: Tr,
|
|
6338
|
-
views:
|
|
6339
|
-
utils:
|
|
6518
|
+
views: Cr,
|
|
6519
|
+
utils: Lr,
|
|
6340
6520
|
dialog: kr
|
|
6341
6521
|
}, Sr = {
|
|
6342
6522
|
branches: {
|
|
@@ -6883,7 +7063,7 @@ const wn = {
|
|
|
6883
7063
|
{
|
|
6884
7064
|
path: "/",
|
|
6885
7065
|
name: "brandkit",
|
|
6886
|
-
component: H(() => import("./BrandkitView-
|
|
7066
|
+
component: H(() => import("./BrandkitView-BHBErfbu.js"))
|
|
6887
7067
|
},
|
|
6888
7068
|
{
|
|
6889
7069
|
path: "/projects",
|
|
@@ -6898,7 +7078,7 @@ const wn = {
|
|
|
6898
7078
|
path: ":templateId(.*)*",
|
|
6899
7079
|
name: "builder",
|
|
6900
7080
|
component: H(
|
|
6901
|
-
() => import("./BuilderView-
|
|
7081
|
+
() => import("./BuilderView-Btgivma_.js")
|
|
6902
7082
|
)
|
|
6903
7083
|
}
|
|
6904
7084
|
]
|
|
@@ -6981,7 +7161,7 @@ function V(e, t, i = !0, n = ["__key"]) {
|
|
|
6981
7161
|
function Dr(e, t) {
|
|
6982
7162
|
return e.source === t.source && e.flags.split("").sort().join("") === t.flags.split("").sort().join("");
|
|
6983
7163
|
}
|
|
6984
|
-
function
|
|
7164
|
+
function z(e) {
|
|
6985
7165
|
const t = typeof e;
|
|
6986
7166
|
if (t === "number")
|
|
6987
7167
|
return !1;
|
|
@@ -7014,20 +7194,20 @@ function Rr(e) {
|
|
|
7014
7194
|
n.reduce((r, a) => r.replace(a, i[a]), t)
|
|
7015
7195
|
);
|
|
7016
7196
|
}
|
|
7017
|
-
function
|
|
7197
|
+
function Ge(e) {
|
|
7018
7198
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
7019
7199
|
}
|
|
7020
7200
|
function Re(e) {
|
|
7021
|
-
return
|
|
7201
|
+
return Ge(e) || Array.isArray(e);
|
|
7022
7202
|
}
|
|
7023
7203
|
function we(e) {
|
|
7024
|
-
if (
|
|
7204
|
+
if (Ge(e) === !1 || e.__FKNode__ || e.__POJO__ === !1)
|
|
7025
7205
|
return !1;
|
|
7026
7206
|
const t = e.constructor;
|
|
7027
7207
|
if (t === void 0)
|
|
7028
7208
|
return !0;
|
|
7029
7209
|
const i = t.prototype;
|
|
7030
|
-
return !(
|
|
7210
|
+
return !(Ge(i) === !1 || i.hasOwnProperty("isPrototypeOf") === !1);
|
|
7031
7211
|
}
|
|
7032
7212
|
var se = /* @__NO_SIDE_EFFECTS__ */ (e, t, i = !1, n = !1) => {
|
|
7033
7213
|
if (t === null)
|
|
@@ -7135,7 +7315,7 @@ function Se(e, t = gi) {
|
|
|
7135
7315
|
});
|
|
7136
7316
|
return i;
|
|
7137
7317
|
}
|
|
7138
|
-
function
|
|
7318
|
+
function G(e) {
|
|
7139
7319
|
return typeof e == "object" ? Se(e) : e;
|
|
7140
7320
|
}
|
|
7141
7321
|
function Er(e, t) {
|
|
@@ -7279,12 +7459,12 @@ function q(e, t) {
|
|
|
7279
7459
|
}
|
|
7280
7460
|
var Vt = {
|
|
7281
7461
|
apply: Xr,
|
|
7282
|
-
set:
|
|
7462
|
+
set: Gr,
|
|
7283
7463
|
remove: vi,
|
|
7284
7464
|
filter: Yr,
|
|
7285
7465
|
reduce: Qr,
|
|
7286
7466
|
release: ea,
|
|
7287
|
-
touch:
|
|
7467
|
+
touch: zr
|
|
7288
7468
|
};
|
|
7289
7469
|
function Kr(e = !1) {
|
|
7290
7470
|
const t = {};
|
|
@@ -7307,7 +7487,7 @@ function Kr(e = !1) {
|
|
|
7307
7487
|
});
|
|
7308
7488
|
return s;
|
|
7309
7489
|
}
|
|
7310
|
-
function
|
|
7490
|
+
function Gr(e, t, i, n) {
|
|
7311
7491
|
if (t.buffer)
|
|
7312
7492
|
return t._b.push([[n]]), t;
|
|
7313
7493
|
if (e[n.key] !== n) {
|
|
@@ -7322,7 +7502,7 @@ function zr(e, t, i, n) {
|
|
|
7322
7502
|
}
|
|
7323
7503
|
return t;
|
|
7324
7504
|
}
|
|
7325
|
-
function
|
|
7505
|
+
function zr(e, t) {
|
|
7326
7506
|
for (const i in e) {
|
|
7327
7507
|
const n = { ...e[i] };
|
|
7328
7508
|
t.set(n);
|
|
@@ -7443,12 +7623,12 @@ function ia(e, t, i, n, r = 0) {
|
|
|
7443
7623
|
o.ledger.count(a.name, a.condition), r += o.ledger.value(a.name);
|
|
7444
7624
|
});
|
|
7445
7625
|
}
|
|
7446
|
-
return
|
|
7626
|
+
return Ci(t[i], r).promise;
|
|
7447
7627
|
}
|
|
7448
7628
|
function na(e) {
|
|
7449
7629
|
return typeof e == "function" ? e : (t) => t.type === e;
|
|
7450
7630
|
}
|
|
7451
|
-
function
|
|
7631
|
+
function Ci(e, t) {
|
|
7452
7632
|
const i = e.count, n = e.count + t;
|
|
7453
7633
|
return e.count = n, i === 0 && n !== 0 ? (e.node.emit(`unsettled:${e.name}`, e.count, !1), e.promise = new Promise((r) => e.resolve = r)) : i !== 0 && n === 0 && (e.node.emit(`settled:${e.name}`, e.count, !1), e.resolve()), e.node.emit(`count:${e.name}`, e.count, !1), e;
|
|
7454
7634
|
}
|
|
@@ -7456,7 +7636,7 @@ function Ut(e, t) {
|
|
|
7456
7636
|
return (i) => {
|
|
7457
7637
|
for (const n in e) {
|
|
7458
7638
|
const r = e[n];
|
|
7459
|
-
r.condition(i.payload) &&
|
|
7639
|
+
r.condition(i.payload) && Ci(r, t);
|
|
7460
7640
|
}
|
|
7461
7641
|
};
|
|
7462
7642
|
}
|
|
@@ -7516,7 +7696,7 @@ function sa(e = {}) {
|
|
|
7516
7696
|
}
|
|
7517
7697
|
});
|
|
7518
7698
|
}
|
|
7519
|
-
function
|
|
7699
|
+
function Li(e, t) {
|
|
7520
7700
|
const i = (t || document).getElementById(e);
|
|
7521
7701
|
if (i instanceof HTMLFormElement) {
|
|
7522
7702
|
const n = new Event("submit", { cancelable: !0, bubbles: !0 });
|
|
@@ -7538,17 +7718,17 @@ function ki(e, t) {
|
|
|
7538
7718
|
const i = typeof e == "string" ? Oe(e) : e;
|
|
7539
7719
|
if (i) {
|
|
7540
7720
|
const n = (o) => {
|
|
7541
|
-
const s =
|
|
7721
|
+
const s = G(o.props.initial);
|
|
7542
7722
|
return s !== void 0 ? s : o.type === "group" ? {} : o.type === "list" ? [] : void 0;
|
|
7543
7723
|
};
|
|
7544
7724
|
i._e.pause(i);
|
|
7545
|
-
const r =
|
|
7546
|
-
return t && !
|
|
7725
|
+
const r = G(t);
|
|
7726
|
+
return t && !z(t) && (i.props.initial = Re(r) ? $e(r) : r, i.props._init = i.props.initial), i.input(n(i), !1), i.walk((o) => {
|
|
7547
7727
|
o.type === "list" && o.sync || o.input(n(o), !1);
|
|
7548
7728
|
}), i.input(
|
|
7549
|
-
|
|
7729
|
+
z(r) && r ? r : n(i),
|
|
7550
7730
|
!1
|
|
7551
|
-
), i.type !== "input" && t && !
|
|
7731
|
+
), i.type !== "input" && t && !z(t) && Re(t) && i.walk((o) => {
|
|
7552
7732
|
o.props.initial = Re(o.value) ? $e(o.value) : o.value, o.props._init = o.props.initial;
|
|
7553
7733
|
}), i._e.play(i), la(i), i.emit("reset", i), i;
|
|
7554
7734
|
}
|
|
@@ -7578,9 +7758,9 @@ var We = (e, t, i) => {
|
|
|
7578
7758
|
clearErrors: D(Wa),
|
|
7579
7759
|
calm: D(Ta),
|
|
7580
7760
|
config: D(!1),
|
|
7581
|
-
define: D(
|
|
7761
|
+
define: D(La),
|
|
7582
7762
|
disturb: D(va),
|
|
7583
|
-
destroy: D(
|
|
7763
|
+
destroy: D(Ca),
|
|
7584
7764
|
extend: D(Ka),
|
|
7585
7765
|
hydrate: D(ba),
|
|
7586
7766
|
index: D(xa, Ma, !1),
|
|
@@ -7632,11 +7812,11 @@ function Ai(e) {
|
|
|
7632
7812
|
}
|
|
7633
7813
|
function _i(e, t, i, n = !0) {
|
|
7634
7814
|
return t._value = ga(e, e.hook.input.dispatch(i)), e.emit("input", t._value), e.isCreated && e.type === "input" && V(t._value, t.value) && !e.props.mergeStrategy ? (e.emit("commitRaw", t.value), t.settled) : (t.isSettled && e.disturb(), n ? (t._tmo && clearTimeout(t._tmo), t._tmo = setTimeout(
|
|
7635
|
-
|
|
7815
|
+
ze,
|
|
7636
7816
|
e.props.delay,
|
|
7637
7817
|
e,
|
|
7638
7818
|
t
|
|
7639
|
-
)) :
|
|
7819
|
+
)) : ze(e, t), t.settled);
|
|
7640
7820
|
}
|
|
7641
7821
|
function ga(e, t) {
|
|
7642
7822
|
switch (e.type) {
|
|
@@ -7651,7 +7831,7 @@ function ga(e, t) {
|
|
|
7651
7831
|
}
|
|
7652
7832
|
return t;
|
|
7653
7833
|
}
|
|
7654
|
-
function
|
|
7834
|
+
function ze(e, t, i = !0, n = !0) {
|
|
7655
7835
|
t._value = t.value = e.hook.commit.dispatch(t._value), e.type !== "input" && n && e.hydrate(), e.emit("commitRaw", t.value), e.emit("commit", t.value), i && e.calm();
|
|
7656
7836
|
}
|
|
7657
7837
|
function Pi(e, { name: t, value: i, from: n }) {
|
|
@@ -7731,17 +7911,17 @@ function Ta(e, t, i) {
|
|
|
7731
7911
|
if (i !== void 0 && e.type !== "input") {
|
|
7732
7912
|
Pi(t, i);
|
|
7733
7913
|
const r = !!(e.config.mergeStrategy && e.config.mergeStrategy[i.name]);
|
|
7734
|
-
return
|
|
7914
|
+
return ze(e, t, !0, r);
|
|
7735
7915
|
}
|
|
7736
7916
|
t._d > 0 && t._d--, t._d === 0 && (t.isSettled = !0, e.emit("settled", !0, !1), e.parent && ((n = e.parent) == null || n.calm({ name: e.name, value: t.value })), t._resolve && t._resolve(t.value));
|
|
7737
7917
|
}
|
|
7738
|
-
function
|
|
7918
|
+
function Ca(e, t) {
|
|
7739
7919
|
e.emit("destroying", e), e.store.filter(() => !1), e.parent && e.parent.remove(e), aa(e), e.emit("destroyed", e), t._e.flush(), t._value = t.value = void 0;
|
|
7740
7920
|
for (const i in t.context)
|
|
7741
7921
|
delete t.context[i];
|
|
7742
7922
|
t.plugins.clear(), t.context = null;
|
|
7743
7923
|
}
|
|
7744
|
-
function
|
|
7924
|
+
function La(e, t, i) {
|
|
7745
7925
|
t.type = i.type;
|
|
7746
7926
|
const n = Se(i);
|
|
7747
7927
|
e.props.__propDefs = Mi(
|
|
@@ -7764,7 +7944,7 @@ function ka(e, t, i) {
|
|
|
7764
7944
|
Array.isArray(i) || n.forEach((l) => {
|
|
7765
7945
|
"default" in i[l] && e.props[l] === void 0 && (e.props[l] = r[l]);
|
|
7766
7946
|
});
|
|
7767
|
-
const s =
|
|
7947
|
+
const s = G(t._value);
|
|
7768
7948
|
e.props.initial = e.type !== "input" ? $e(s) : s, e.props._emit = !0, e.props.attrs = o;
|
|
7769
7949
|
}
|
|
7770
7950
|
const a = Mi(e.props.__propDefs ?? [], i);
|
|
@@ -7794,7 +7974,7 @@ function wa(e, t, i, n) {
|
|
|
7794
7974
|
return e.remove(i), i.parent.add(i), e;
|
|
7795
7975
|
} else
|
|
7796
7976
|
i.use(e.plugins);
|
|
7797
|
-
return
|
|
7977
|
+
return ze(e, t, !1), e.ledger.merge(i), e.emit("child", i), e;
|
|
7798
7978
|
}
|
|
7799
7979
|
function Sa(e, t, i, n) {
|
|
7800
7980
|
return Ne(n) ? (e.parent && e.parent !== n && e.parent.remove(e), t.parent = n, e.resetConfig(), n.children.includes(e) ? e.use(n.plugins) : n.add(e), !0) : n === null ? (t.parent = null, !0) : !1;
|
|
@@ -7960,7 +8140,7 @@ function Va(e) {
|
|
|
7960
8140
|
break;
|
|
7961
8141
|
e.parent || W(106, t), e = e.parent;
|
|
7962
8142
|
} while (e);
|
|
7963
|
-
e.props.id &&
|
|
8143
|
+
e.props.id && Li(e.props.id, e.props.__root);
|
|
7964
8144
|
}
|
|
7965
8145
|
function Ua(e, t, i) {
|
|
7966
8146
|
return ki(e, i);
|
|
@@ -7980,7 +8160,7 @@ function Wa(e, t, i = !0, n) {
|
|
|
7980
8160
|
}
|
|
7981
8161
|
function qa(e) {
|
|
7982
8162
|
const t = {
|
|
7983
|
-
initial: typeof e == "object" ?
|
|
8163
|
+
initial: typeof e == "object" ? G(e) : e
|
|
7984
8164
|
};
|
|
7985
8165
|
let i, n = !0, r = {};
|
|
7986
8166
|
return new Proxy(t, {
|
|
@@ -7988,7 +8168,7 @@ function qa(e) {
|
|
|
7988
8168
|
var g, y, P, b;
|
|
7989
8169
|
const [o, s] = a;
|
|
7990
8170
|
let l;
|
|
7991
|
-
A(t, s) ? (l = Reflect.get(...a), (g = r[s]) != null && g.boolean && (l = Vr(l))) : i && typeof s == "string" && i.config[s] !== void 0 ? (l = i.config[s], s === "mergeStrategy" && (i == null ? void 0 : i.type) === "input" &&
|
|
8171
|
+
A(t, s) ? (l = Reflect.get(...a), (g = r[s]) != null && g.boolean && (l = Vr(l))) : i && typeof s == "string" && i.config[s] !== void 0 ? (l = i.config[s], s === "mergeStrategy" && (i == null ? void 0 : i.type) === "input" && Ge(l) && i.name in l && (l = l[i.name])) : l = (y = r[s]) == null ? void 0 : y.default;
|
|
7992
8172
|
const f = (P = r[s]) == null ? void 0 : P.getter;
|
|
7993
8173
|
return (b = r[s]) != null && b.boolean && (l = !!l), f ? f(l, i) : l;
|
|
7994
8174
|
},
|
|
@@ -8014,7 +8194,7 @@ function qa(e) {
|
|
|
8014
8194
|
function Ka(e, t, i, n) {
|
|
8015
8195
|
return t.traps.set(i, n), e;
|
|
8016
8196
|
}
|
|
8017
|
-
function
|
|
8197
|
+
function Ga(e, t) {
|
|
8018
8198
|
if (e.props.definition)
|
|
8019
8199
|
return e.define(e.props.definition);
|
|
8020
8200
|
for (const i of t) {
|
|
@@ -8023,7 +8203,7 @@ function za(e, t) {
|
|
|
8023
8203
|
typeof i.library == "function" && i.library(e);
|
|
8024
8204
|
}
|
|
8025
8205
|
}
|
|
8026
|
-
function
|
|
8206
|
+
function za(e) {
|
|
8027
8207
|
const t = Ai(e), i = xi(e.config || {}, e.parent);
|
|
8028
8208
|
return {
|
|
8029
8209
|
_d: 0,
|
|
@@ -8057,7 +8237,7 @@ function Ya(e, t) {
|
|
|
8057
8237
|
e.props,
|
|
8058
8238
|
i ? {} : { id: `input_${ha++}` },
|
|
8059
8239
|
t.props ?? {}
|
|
8060
|
-
), e.props._emit = !0,
|
|
8240
|
+
), e.props._emit = !0, Ga(
|
|
8061
8241
|
e,
|
|
8062
8242
|
/* @__PURE__ */ new Set([
|
|
8063
8243
|
...t.plugins || [],
|
|
@@ -8089,7 +8269,7 @@ function Xa(e) {
|
|
|
8089
8269
|
return "__FKP" in e;
|
|
8090
8270
|
}
|
|
8091
8271
|
function Ja(e) {
|
|
8092
|
-
const t = e || {}, i =
|
|
8272
|
+
const t = e || {}, i = za(t), n = new Proxy(i, {
|
|
8093
8273
|
get(...r) {
|
|
8094
8274
|
const [, a] = r;
|
|
8095
8275
|
if (a === "__FKNode__")
|
|
@@ -8173,57 +8353,57 @@ function Y(e) {
|
|
|
8173
8353
|
"%": (d, m, h) => n(d, h) % n(m, h)
|
|
8174
8354
|
}
|
|
8175
8355
|
], a = r.reduce((d, m) => d.concat(Object.keys(m)), []), o = new Set(a.map((d) => d.charAt(0)));
|
|
8176
|
-
function s(d, m, h,
|
|
8356
|
+
function s(d, m, h, C) {
|
|
8177
8357
|
const w = d.filter((T) => T.startsWith(m));
|
|
8178
|
-
return w.length ? w.find((T) =>
|
|
8358
|
+
return w.length ? w.find((T) => C.length >= h + T.length && C.substring(h, h + T.length) === T ? T : !1) : !1;
|
|
8179
8359
|
}
|
|
8180
8360
|
function l(d, m, h = 1) {
|
|
8181
|
-
let
|
|
8182
|
-
if (!
|
|
8361
|
+
let C = h ? m.substring(d + 1).trim() : m.substring(0, d).trim();
|
|
8362
|
+
if (!C.length)
|
|
8183
8363
|
return -1;
|
|
8184
8364
|
if (!h) {
|
|
8185
|
-
const T =
|
|
8186
|
-
|
|
8365
|
+
const T = C.split("").reverse(), L = T.findIndex((c) => o.has(c));
|
|
8366
|
+
C = T.slice(L).join("");
|
|
8187
8367
|
}
|
|
8188
|
-
const w =
|
|
8368
|
+
const w = C[0];
|
|
8189
8369
|
return r.findIndex((T) => {
|
|
8190
|
-
const
|
|
8191
|
-
return !!s(
|
|
8370
|
+
const L = Object.keys(T);
|
|
8371
|
+
return !!s(L, w, 0, C);
|
|
8192
8372
|
});
|
|
8193
8373
|
}
|
|
8194
8374
|
function f(d, m) {
|
|
8195
8375
|
let h = "";
|
|
8196
|
-
const
|
|
8376
|
+
const C = m.length;
|
|
8197
8377
|
let w = 0;
|
|
8198
|
-
for (let T = d; T <
|
|
8199
|
-
const
|
|
8200
|
-
if (
|
|
8378
|
+
for (let T = d; T < C; T++) {
|
|
8379
|
+
const L = m.charAt(T);
|
|
8380
|
+
if (L === "(")
|
|
8201
8381
|
w++;
|
|
8202
|
-
else if (
|
|
8382
|
+
else if (L === ")")
|
|
8203
8383
|
w--;
|
|
8204
|
-
else if (w === 0 &&
|
|
8384
|
+
else if (w === 0 && L === " ")
|
|
8205
8385
|
continue;
|
|
8206
|
-
if (w === 0 && s(a,
|
|
8386
|
+
if (w === 0 && s(a, L, T, m))
|
|
8207
8387
|
return [h, T - 1];
|
|
8208
|
-
h +=
|
|
8388
|
+
h += L;
|
|
8209
8389
|
}
|
|
8210
8390
|
return [h, m.length - 1];
|
|
8211
8391
|
}
|
|
8212
8392
|
function g(d, m = 0) {
|
|
8213
|
-
const h = r[m],
|
|
8214
|
-
let T = 0,
|
|
8393
|
+
const h = r[m], C = d.length, w = Object.keys(h);
|
|
8394
|
+
let T = 0, L = !1, c = null, p = "", _ = null, I, R = "", x = "", u = "", k = "", $ = 0;
|
|
8215
8395
|
const O = (F, N) => {
|
|
8216
8396
|
F ? u += N : p += N;
|
|
8217
8397
|
};
|
|
8218
|
-
for (let F = 0; F <
|
|
8219
|
-
if (R = x, x = d.charAt(F), (x === "'" || x === '"') && R !== "\\" && (T === 0 && !
|
|
8220
|
-
T ? k = x :
|
|
8398
|
+
for (let F = 0; F < C; F++)
|
|
8399
|
+
if (R = x, x = d.charAt(F), (x === "'" || x === '"') && R !== "\\" && (T === 0 && !L || T && !k)) {
|
|
8400
|
+
T ? k = x : L = x, O(T, x);
|
|
8221
8401
|
continue;
|
|
8222
|
-
} else if (
|
|
8402
|
+
} else if (L && (x !== L || R === "\\") || k && (x !== k || R === "\\")) {
|
|
8223
8403
|
O(T, x);
|
|
8224
8404
|
continue;
|
|
8225
|
-
} else if (
|
|
8226
|
-
|
|
8405
|
+
} else if (L === x) {
|
|
8406
|
+
L = !1, O(T, x);
|
|
8227
8407
|
continue;
|
|
8228
8408
|
} else if (k === x) {
|
|
8229
8409
|
k = !1, O(T, x);
|
|
@@ -8250,10 +8430,10 @@ function Y(e) {
|
|
|
8250
8430
|
}
|
|
8251
8431
|
return p && c && (c = c.bind(null, y(p, m))), c = !c && _ ? _ : c, !c && p && (c = (F, N) => typeof F == "function" ? F(N) : F, c = c.bind(null, y(p, m))), !c && !p && W(105, d), c;
|
|
8252
8432
|
}
|
|
8253
|
-
function y(d, m, h,
|
|
8433
|
+
function y(d, m, h, C) {
|
|
8254
8434
|
if (h) {
|
|
8255
8435
|
const w = y(h, r.length);
|
|
8256
|
-
let T,
|
|
8436
|
+
let T, L = C ? Y(`$${C}`) : !1;
|
|
8257
8437
|
if (typeof w == "function") {
|
|
8258
8438
|
const c = Nr(String(d)).map(
|
|
8259
8439
|
(p) => y(p, -1)
|
|
@@ -8264,11 +8444,11 @@ function Y(e) {
|
|
|
8264
8444
|
...c.map(
|
|
8265
8445
|
(I) => typeof I == "function" ? I(p) : I
|
|
8266
8446
|
)
|
|
8267
|
-
),
|
|
8447
|
+
), L && (L = L.provide((I) => {
|
|
8268
8448
|
const R = t(I);
|
|
8269
8449
|
return I.reduce(
|
|
8270
8450
|
(u, k) => {
|
|
8271
|
-
if (k ===
|
|
8451
|
+
if (k === C || (C == null ? void 0 : C.startsWith(`${k}(`))) {
|
|
8272
8452
|
const O = Er(T, k);
|
|
8273
8453
|
u[k] = () => O;
|
|
8274
8454
|
} else
|
|
@@ -8277,7 +8457,7 @@ function Y(e) {
|
|
|
8277
8457
|
},
|
|
8278
8458
|
{}
|
|
8279
8459
|
);
|
|
8280
|
-
})),
|
|
8460
|
+
})), L ? L() : T);
|
|
8281
8461
|
};
|
|
8282
8462
|
}
|
|
8283
8463
|
} else if (typeof d == "string") {
|
|
@@ -8295,8 +8475,8 @@ function Y(e) {
|
|
|
8295
8475
|
return g(d, m + 1);
|
|
8296
8476
|
if (d.startsWith("$")) {
|
|
8297
8477
|
const w = d.substring(1);
|
|
8298
|
-
return i.add(w), function(
|
|
8299
|
-
return w in
|
|
8478
|
+
return i.add(w), function(L) {
|
|
8479
|
+
return w in L ? L[w]() : void 0;
|
|
8300
8480
|
};
|
|
8301
8481
|
}
|
|
8302
8482
|
return d;
|
|
@@ -8516,10 +8696,10 @@ var ro = Ni, ao = function({ value: e }, t = !1) {
|
|
|
8516
8696
|
return !1;
|
|
8517
8697
|
const i = Date.parse(String(e.value)), n = Date.parse(String((r = e.at(t)) == null ? void 0 : r.value));
|
|
8518
8698
|
return isNaN(n) ? !0 : isNaN(i) ? !1 : i < n;
|
|
8519
|
-
},
|
|
8699
|
+
}, Co = To, Lo = function({ value: e }, t = !1) {
|
|
8520
8700
|
const i = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
|
|
8521
8701
|
return isNaN(n) ? !1 : n < i || n === i;
|
|
8522
|
-
}, ko =
|
|
8702
|
+
}, ko = Lo, wo = function({ value: t }, i, n) {
|
|
8523
8703
|
if (!isNaN(t) && !isNaN(i) && !isNaN(n)) {
|
|
8524
8704
|
const r = 1 * t;
|
|
8525
8705
|
i = Number(i), n = Number(n);
|
|
@@ -8578,9 +8758,9 @@ var ro = Ni, ao = function({ value: e }, t = !1) {
|
|
|
8578
8758
|
return i && typeof i == "string" ? Rr(i).test(String(t)) : !isNaN(Date.parse(String(t)));
|
|
8579
8759
|
}, qo = Wo, Ko = function({ value: t }) {
|
|
8580
8760
|
return /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(String(t));
|
|
8581
|
-
},
|
|
8761
|
+
}, Go = Ko, zo = function({ value: t }, ...i) {
|
|
8582
8762
|
return typeof t == "string" && i.length ? i.some((n) => t.endsWith(n)) : typeof t == "string" && i.length === 0;
|
|
8583
|
-
}, Yo =
|
|
8763
|
+
}, Yo = zo, Qo = function({ value: t }, ...i) {
|
|
8584
8764
|
return i.some((n) => typeof n == "object" ? V(n, t) : n == t);
|
|
8585
8765
|
}, Xo = Qo, Jo = function({ value: t }, i = 0, n = 1 / 0) {
|
|
8586
8766
|
i = parseInt(i), n = isNaN(parseInt(n)) ? 1 / 0 : parseInt(n);
|
|
@@ -8612,14 +8792,14 @@ var ro = Ni, ao = function({ value: e }, t = !1) {
|
|
|
8612
8792
|
}, cs = ls, us = function({ value: t }) {
|
|
8613
8793
|
return !isNaN(t);
|
|
8614
8794
|
}, ds = us, Ei = function(e, ...t) {
|
|
8615
|
-
return
|
|
8795
|
+
return z(e.value) ? t.map((n) => {
|
|
8616
8796
|
var r;
|
|
8617
8797
|
return (r = e.at(n)) == null ? void 0 : r.value;
|
|
8618
|
-
}).some((n) => !
|
|
8798
|
+
}).some((n) => !z(n)) : !0;
|
|
8619
8799
|
};
|
|
8620
8800
|
Ei.skipEmpty = !1;
|
|
8621
8801
|
var ps = Ei, Hi = function({ value: t }, i = "default") {
|
|
8622
|
-
return i === "trim" && typeof t == "string" ? !
|
|
8802
|
+
return i === "trim" && typeof t == "string" ? !z(t.trim()) : !z(t);
|
|
8623
8803
|
};
|
|
8624
8804
|
Hi.skipEmpty = !1;
|
|
8625
8805
|
var ms = Hi, hs = function({ value: t }, ...i) {
|
|
@@ -8639,8 +8819,8 @@ var ms = Hi, hs = function({ value: t }, ...i) {
|
|
|
8639
8819
|
} catch {
|
|
8640
8820
|
return !1;
|
|
8641
8821
|
}
|
|
8642
|
-
},
|
|
8643
|
-
const
|
|
8822
|
+
}, Cs = Ts;
|
|
8823
|
+
const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8644
8824
|
__proto__: null,
|
|
8645
8825
|
accepted: ro,
|
|
8646
8826
|
alpha: mo,
|
|
@@ -8659,11 +8839,11 @@ const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8659
8839
|
date_after_node: uo,
|
|
8660
8840
|
date_after_or_equal: lo,
|
|
8661
8841
|
date_before: vo,
|
|
8662
|
-
date_before_node:
|
|
8842
|
+
date_before_node: Co,
|
|
8663
8843
|
date_before_or_equal: ko,
|
|
8664
8844
|
date_between: jo,
|
|
8665
8845
|
date_format: qo,
|
|
8666
|
-
email:
|
|
8846
|
+
email: Go,
|
|
8667
8847
|
ends_with: Yo,
|
|
8668
8848
|
is: Xo,
|
|
8669
8849
|
length: Zo,
|
|
@@ -8678,9 +8858,9 @@ const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8678
8858
|
starts_with: fs,
|
|
8679
8859
|
symbol: bs,
|
|
8680
8860
|
uppercase: vs,
|
|
8681
|
-
url:
|
|
8861
|
+
url: Cs
|
|
8682
8862
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8683
|
-
var
|
|
8863
|
+
var Ct = /* @__PURE__ */ q({
|
|
8684
8864
|
type: "state",
|
|
8685
8865
|
blocking: !0,
|
|
8686
8866
|
visible: !1,
|
|
@@ -8689,23 +8869,23 @@ var Lt = /* @__PURE__ */ q({
|
|
|
8689
8869
|
});
|
|
8690
8870
|
function ks(e = {}) {
|
|
8691
8871
|
return function(i) {
|
|
8692
|
-
let n =
|
|
8872
|
+
let n = G(i.props.validationRules || {}), r = { ...e, ...n };
|
|
8693
8873
|
const a = { input: _e(), rerun: null, isPassing: !0 };
|
|
8694
|
-
let o =
|
|
8874
|
+
let o = G(i.props.validation);
|
|
8695
8875
|
i.on("prop:validation", ({ payload: l }) => s(l, n)), i.on(
|
|
8696
8876
|
"prop:validationRules",
|
|
8697
8877
|
({ payload: l }) => s(o, l)
|
|
8698
8878
|
);
|
|
8699
8879
|
function s(l, f) {
|
|
8700
8880
|
var g;
|
|
8701
|
-
V(Object.keys(n || {}), Object.keys(f || {})) && V(o, l) || (n =
|
|
8881
|
+
V(Object.keys(n || {}), Object.keys(f || {})) && V(o, l) || (n = G(f), o = G(l), r = { ...e, ...n }, (g = i.props.parsedRules) == null || g.forEach((y) => {
|
|
8702
8882
|
Bi(y), Ri(y.observer.receipts), y.observer.kill();
|
|
8703
|
-
}), i.store.filter(() => !1, "validation"), i.props.parsedRules = Kt(l, r, i), a.isPassing = !0,
|
|
8883
|
+
}), i.store.filter(() => !1, "validation"), i.props.parsedRules = Kt(l, r, i), a.isPassing = !0, Lt(i, i.props.parsedRules, a));
|
|
8704
8884
|
}
|
|
8705
|
-
i.props.parsedRules = Kt(o, r, i),
|
|
8885
|
+
i.props.parsedRules = Kt(o, r, i), Lt(i, i.props.parsedRules, a);
|
|
8706
8886
|
};
|
|
8707
8887
|
}
|
|
8708
|
-
function
|
|
8888
|
+
function Lt(e, t, i) {
|
|
8709
8889
|
Dt(e) || (i.input = _e(), e.store.set(
|
|
8710
8890
|
/* @__PURE__ */ q({
|
|
8711
8891
|
key: "failing",
|
|
@@ -8714,8 +8894,8 @@ function Ct(e, t, i) {
|
|
|
8714
8894
|
})
|
|
8715
8895
|
), i.isPassing = !0, e.store.filter((n) => !n.meta.removeImmediately, "validation"), t.forEach(
|
|
8716
8896
|
(n) => n.debounce && clearTimeout(n.timer)
|
|
8717
|
-
), t.length && (e.store.set(
|
|
8718
|
-
e.store.remove(
|
|
8897
|
+
), t.length && (e.store.set(Ct), kt(0, t, i, !1, () => {
|
|
8898
|
+
e.store.remove(Ct.key), e.store.set(
|
|
8719
8899
|
/* @__PURE__ */ q({
|
|
8720
8900
|
key: "failing",
|
|
8721
8901
|
value: !i.isPassing,
|
|
@@ -8743,11 +8923,11 @@ function kt(e, t, i, n, r) {
|
|
|
8743
8923
|
P,
|
|
8744
8924
|
function() {
|
|
8745
8925
|
try {
|
|
8746
|
-
o.store.set(
|
|
8926
|
+
o.store.set(Ct);
|
|
8747
8927
|
} catch {
|
|
8748
8928
|
}
|
|
8749
8929
|
a.queued = !0, i.rerun && clearTimeout(i.rerun), i.rerun = setTimeout(
|
|
8750
|
-
|
|
8930
|
+
Lt,
|
|
8751
8931
|
0,
|
|
8752
8932
|
o,
|
|
8753
8933
|
t,
|
|
@@ -8762,9 +8942,9 @@ function kt(e, t, i, n, r) {
|
|
|
8762
8942
|
} else
|
|
8763
8943
|
r();
|
|
8764
8944
|
}
|
|
8765
|
-
(!
|
|
8945
|
+
(!z(o.value) || !a.skipEmpty) && (i.isPassing || a.force) ? a.queued ? ws(a, o, (f) => {
|
|
8766
8946
|
f instanceof Promise ? f.then((g) => l(!0, g)) : l(!1, f);
|
|
8767
|
-
}) : kt(e + 1, t, i, n, r) :
|
|
8947
|
+
}) : kt(e + 1, t, i, n, r) : z(o.value) && a.skipEmpty && i.isPassing ? (o.observe(), o.value, l(!1, i.isPassing)) : l(!1, null);
|
|
8768
8948
|
}
|
|
8769
8949
|
function ws(e, t, i) {
|
|
8770
8950
|
e.debounce ? e.timer = setTimeout(() => {
|
|
@@ -8908,7 +9088,7 @@ function Fs(e, t) {
|
|
|
8908
9088
|
function M(e) {
|
|
8909
9089
|
return e[0].toUpperCase() + e.substr(1);
|
|
8910
9090
|
}
|
|
8911
|
-
function
|
|
9091
|
+
function Gt(e, t = "or") {
|
|
8912
9092
|
return e.reduce((i, n, r) => (i += n, r <= e.length - 2 && e.length > 2 && (i += ", "), r === e.length - 2 && (i += `${e.length === 2 ? " " : ""}${t} `), i), "");
|
|
8913
9093
|
}
|
|
8914
9094
|
function Ue(e) {
|
|
@@ -9162,7 +9342,7 @@ var Ns = {
|
|
|
9162
9342
|
* @see {@link https://formkit.com/essentials/validation#ends-with}
|
|
9163
9343
|
*/
|
|
9164
9344
|
ends_with({ name: e, args: t }) {
|
|
9165
|
-
return `${M(e)} doesn’t end with ${
|
|
9345
|
+
return `${M(e)} doesn’t end with ${Gt(t)}.`;
|
|
9166
9346
|
},
|
|
9167
9347
|
/**
|
|
9168
9348
|
* Is not an allowed value
|
|
@@ -9244,7 +9424,7 @@ var Ns = {
|
|
|
9244
9424
|
* @see {@link https://formkit.com/essentials/validation#starts-with}
|
|
9245
9425
|
*/
|
|
9246
9426
|
starts_with({ name: e, args: t }) {
|
|
9247
|
-
return `${M(e)} doesn’t start with ${
|
|
9427
|
+
return `${M(e)} doesn’t start with ${Gt(t)}.`;
|
|
9248
9428
|
},
|
|
9249
9429
|
/**
|
|
9250
9430
|
* Is not a url
|
|
@@ -9257,10 +9437,10 @@ var Ns = {
|
|
|
9257
9437
|
* Shown when the date is invalid.
|
|
9258
9438
|
*/
|
|
9259
9439
|
invalidDate: "The selected date is invalid."
|
|
9260
|
-
}, Hs = { ui: Ns, validation: Es },
|
|
9440
|
+
}, Hs = { ui: Ns, validation: Es }, zt = /* @__PURE__ */ new Set();
|
|
9261
9441
|
function Bs(e) {
|
|
9262
9442
|
return function(i) {
|
|
9263
|
-
|
|
9443
|
+
zt.add(i), i.on("destroying", () => zt.delete(i));
|
|
9264
9444
|
let n = Yt(i.config.locale, e), r = n ? e[n] : {};
|
|
9265
9445
|
i.on("prop:locale", ({ payload: a }) => {
|
|
9266
9446
|
n = Yt(a, e), r = n ? e[n] : {}, i.store.touch();
|
|
@@ -9448,7 +9628,7 @@ var Ws = /* @__PURE__ */ S("actions", () => ({
|
|
|
9448
9628
|
attrs: {
|
|
9449
9629
|
"data-disabled": "$option.attrs.disabled || $disabled || undefined"
|
|
9450
9630
|
}
|
|
9451
|
-
})),
|
|
9631
|
+
})), Gi = /* @__PURE__ */ S("options", "ul"), et = /* @__PURE__ */ S("wrapper", () => ({
|
|
9452
9632
|
$el: "label",
|
|
9453
9633
|
attrs: {
|
|
9454
9634
|
"data-disabled": {
|
|
@@ -9476,7 +9656,7 @@ var Ws = /* @__PURE__ */ S("actions", () => ({
|
|
|
9476
9656
|
attrs: {
|
|
9477
9657
|
"aria-hidden": "true"
|
|
9478
9658
|
}
|
|
9479
|
-
})),
|
|
9659
|
+
})), zi = /* @__PURE__ */ S("fieldset", () => ({
|
|
9480
9660
|
$el: "fieldset",
|
|
9481
9661
|
attrs: {
|
|
9482
9662
|
id: "$id",
|
|
@@ -9486,7 +9666,7 @@ var Ws = /* @__PURE__ */ S("actions", () => ({
|
|
|
9486
9666
|
else: void 0
|
|
9487
9667
|
}
|
|
9488
9668
|
}
|
|
9489
|
-
})),
|
|
9669
|
+
})), Gs = /* @__PURE__ */ S("input", () => ({
|
|
9490
9670
|
$el: "input",
|
|
9491
9671
|
bind: "$attrs",
|
|
9492
9672
|
attrs: {
|
|
@@ -9499,7 +9679,7 @@ var Ws = /* @__PURE__ */ S("actions", () => ({
|
|
|
9499
9679
|
"aria-describedby": "$describedBy",
|
|
9500
9680
|
"aria-required": "$state.required || undefined"
|
|
9501
9681
|
}
|
|
9502
|
-
})),
|
|
9682
|
+
})), zs = /* @__PURE__ */ S("fileItem", () => ({
|
|
9503
9683
|
$el: "li",
|
|
9504
9684
|
for: ["file", "$value"]
|
|
9505
9685
|
})), Ys = /* @__PURE__ */ S("fileList", () => ({
|
|
@@ -9711,7 +9891,7 @@ function sl(e) {
|
|
|
9711
9891
|
(t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = al.bind(null, e)), (i = e.context) != null && i.fns && (e.context.fns.isChecked = ol.bind(null, e)), A(e.props, "onValue") || (e.props.onValue = !0), A(e.props, "offValue") || (e.props.offValue = !1);
|
|
9712
9892
|
}), e.hook.prop(Ji(e));
|
|
9713
9893
|
}
|
|
9714
|
-
function
|
|
9894
|
+
function Ce(e, t) {
|
|
9715
9895
|
return (i) => {
|
|
9716
9896
|
i.props[`${e}Icon`] === void 0 && (i.props[`${e}Icon`] = t.startsWith("<svg") ? t : `default:${t}`);
|
|
9717
9897
|
};
|
|
@@ -9973,7 +10153,7 @@ function ae(e, t, i) {
|
|
|
9973
10153
|
return n._s = _e(), n;
|
|
9974
10154
|
}
|
|
9975
10155
|
// @__NO_SIDE_EFFECTS__
|
|
9976
|
-
function
|
|
10156
|
+
function Le(e, t) {
|
|
9977
10157
|
const i = (n) => {
|
|
9978
10158
|
const r = e({});
|
|
9979
10159
|
return /* @__PURE__ */ wt(r) ? (Array.isArray(r.else) || (r.else = /* @__PURE__ */ xe(
|
|
@@ -10025,7 +10205,7 @@ var ii = {
|
|
|
10025
10205
|
* from needing to be stringified when performing a memo lookup.
|
|
10026
10206
|
*/
|
|
10027
10207
|
schemaMemoKey: "h6st4epl3j8"
|
|
10028
|
-
},
|
|
10208
|
+
}, Cl = {
|
|
10029
10209
|
/**
|
|
10030
10210
|
* The actual schema of the input, or a function that returns the schema.
|
|
10031
10211
|
*/
|
|
@@ -10037,22 +10217,22 @@ var ii = {
|
|
|
10037
10217
|
*/
|
|
10038
10218
|
/* @__PURE__ */ et(
|
|
10039
10219
|
/* @__PURE__ */ Je(/* @__PURE__ */ te(), /* @__PURE__ */ Xe(), /* @__PURE__ */ tt(/* @__PURE__ */ E("decorator")), /* @__PURE__ */ ie()),
|
|
10040
|
-
/* @__PURE__ */
|
|
10220
|
+
/* @__PURE__ */ Le(/* @__PURE__ */ Ze("$label"), {
|
|
10041
10221
|
if: "$label"
|
|
10042
10222
|
})
|
|
10043
10223
|
),
|
|
10044
10224
|
/**
|
|
10045
10225
|
* Multi checkbox structure.
|
|
10046
10226
|
*/
|
|
10047
|
-
/* @__PURE__ */
|
|
10227
|
+
/* @__PURE__ */ zi(
|
|
10048
10228
|
/* @__PURE__ */ Yi("$label"),
|
|
10049
10229
|
/* @__PURE__ */ ee("$help"),
|
|
10050
|
-
/* @__PURE__ */
|
|
10230
|
+
/* @__PURE__ */ Gi(
|
|
10051
10231
|
/* @__PURE__ */ Ki(
|
|
10052
10232
|
/* @__PURE__ */ et(
|
|
10053
10233
|
/* @__PURE__ */ Je(
|
|
10054
10234
|
/* @__PURE__ */ te(),
|
|
10055
|
-
/* @__PURE__ */
|
|
10235
|
+
/* @__PURE__ */ Le(/* @__PURE__ */ Xe(), {
|
|
10056
10236
|
bind: "$option.attrs",
|
|
10057
10237
|
attrs: {
|
|
10058
10238
|
id: "$option.attrs.id",
|
|
@@ -10063,7 +10243,7 @@ var ii = {
|
|
|
10063
10243
|
/* @__PURE__ */ tt(/* @__PURE__ */ E("decorator")),
|
|
10064
10244
|
/* @__PURE__ */ ie()
|
|
10065
10245
|
),
|
|
10066
|
-
/* @__PURE__ */
|
|
10246
|
+
/* @__PURE__ */ Le(/* @__PURE__ */ Ze("$option.label"), {
|
|
10067
10247
|
if: "$option.label"
|
|
10068
10248
|
})
|
|
10069
10249
|
),
|
|
@@ -10095,13 +10275,13 @@ var ii = {
|
|
|
10095
10275
|
features: [
|
|
10096
10276
|
It,
|
|
10097
10277
|
sl,
|
|
10098
|
-
|
|
10278
|
+
Ce("decorator", "checkboxDecorator")
|
|
10099
10279
|
],
|
|
10100
10280
|
/**
|
|
10101
10281
|
* The key used to memoize the schema.
|
|
10102
10282
|
*/
|
|
10103
10283
|
schemaMemoKey: "qje02tb3gu8"
|
|
10104
|
-
},
|
|
10284
|
+
}, Ll = {
|
|
10105
10285
|
/**
|
|
10106
10286
|
* The actual schema of the input, or a function that returns the schema.
|
|
10107
10287
|
*/
|
|
@@ -10111,9 +10291,9 @@ var ii = {
|
|
|
10111
10291
|
/* @__PURE__ */ Ee(
|
|
10112
10292
|
/* @__PURE__ */ E("prefix", "label"),
|
|
10113
10293
|
/* @__PURE__ */ te(),
|
|
10114
|
-
/* @__PURE__ */
|
|
10294
|
+
/* @__PURE__ */ Gs(),
|
|
10115
10295
|
/* @__PURE__ */ Ys(
|
|
10116
|
-
/* @__PURE__ */
|
|
10296
|
+
/* @__PURE__ */ zs(
|
|
10117
10297
|
/* @__PURE__ */ E("fileItem"),
|
|
10118
10298
|
/* @__PURE__ */ Qs("$file.name"),
|
|
10119
10299
|
/* @__PURE__ */ ae(
|
|
@@ -10152,9 +10332,9 @@ var ii = {
|
|
|
10152
10332
|
*/
|
|
10153
10333
|
features: [
|
|
10154
10334
|
ll,
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10335
|
+
Ce("fileItem", "fileItem"),
|
|
10336
|
+
Ce("fileRemove", "fileRemove"),
|
|
10337
|
+
Ce("noFiles", "noFiles")
|
|
10158
10338
|
],
|
|
10159
10339
|
/**
|
|
10160
10340
|
* The key used to memoize the schema.
|
|
@@ -10272,22 +10452,22 @@ var ii = {
|
|
|
10272
10452
|
*/
|
|
10273
10453
|
/* @__PURE__ */ et(
|
|
10274
10454
|
/* @__PURE__ */ Je(/* @__PURE__ */ te(), /* @__PURE__ */ Xe(), /* @__PURE__ */ tt(/* @__PURE__ */ E("decorator")), /* @__PURE__ */ ie()),
|
|
10275
|
-
/* @__PURE__ */
|
|
10455
|
+
/* @__PURE__ */ Le(/* @__PURE__ */ Ze("$label"), {
|
|
10276
10456
|
if: "$label"
|
|
10277
10457
|
})
|
|
10278
10458
|
),
|
|
10279
10459
|
/**
|
|
10280
10460
|
* Multi radio structure.
|
|
10281
10461
|
*/
|
|
10282
|
-
/* @__PURE__ */
|
|
10462
|
+
/* @__PURE__ */ zi(
|
|
10283
10463
|
/* @__PURE__ */ Yi("$label"),
|
|
10284
10464
|
/* @__PURE__ */ ee("$help"),
|
|
10285
|
-
/* @__PURE__ */
|
|
10465
|
+
/* @__PURE__ */ Gi(
|
|
10286
10466
|
/* @__PURE__ */ Ki(
|
|
10287
10467
|
/* @__PURE__ */ et(
|
|
10288
10468
|
/* @__PURE__ */ Je(
|
|
10289
10469
|
/* @__PURE__ */ te(),
|
|
10290
|
-
/* @__PURE__ */
|
|
10470
|
+
/* @__PURE__ */ Le(/* @__PURE__ */ Xe(), {
|
|
10291
10471
|
bind: "$option.attrs",
|
|
10292
10472
|
attrs: {
|
|
10293
10473
|
id: "$option.attrs.id",
|
|
@@ -10298,7 +10478,7 @@ var ii = {
|
|
|
10298
10478
|
/* @__PURE__ */ tt(/* @__PURE__ */ E("decorator")),
|
|
10299
10479
|
/* @__PURE__ */ ie()
|
|
10300
10480
|
),
|
|
10301
|
-
/* @__PURE__ */
|
|
10481
|
+
/* @__PURE__ */ Le(/* @__PURE__ */ Ze("$option.label"), {
|
|
10302
10482
|
if: "$option.label"
|
|
10303
10483
|
})
|
|
10304
10484
|
),
|
|
@@ -10327,7 +10507,7 @@ var ii = {
|
|
|
10327
10507
|
/**
|
|
10328
10508
|
* Additional features that should be added to your input
|
|
10329
10509
|
*/
|
|
10330
|
-
features: [It, fl,
|
|
10510
|
+
features: [It, fl, Ce("decorator", "radioDecorator")],
|
|
10331
10511
|
/**
|
|
10332
10512
|
* The key used to memoize the schema.
|
|
10333
10513
|
*/
|
|
@@ -10374,7 +10554,7 @@ var ii = {
|
|
|
10374
10554
|
/**
|
|
10375
10555
|
* Additional features that should be added to your input
|
|
10376
10556
|
*/
|
|
10377
|
-
features: [It, vl,
|
|
10557
|
+
features: [It, vl, Ce("select", "select")],
|
|
10378
10558
|
/**
|
|
10379
10559
|
* The key used to memoize the schema.
|
|
10380
10560
|
*/
|
|
@@ -10455,8 +10635,8 @@ var ii = {
|
|
|
10455
10635
|
}, xl = {
|
|
10456
10636
|
button: ii,
|
|
10457
10637
|
submit: ii,
|
|
10458
|
-
checkbox:
|
|
10459
|
-
file:
|
|
10638
|
+
checkbox: Cl,
|
|
10639
|
+
file: Ll,
|
|
10460
10640
|
form: kl,
|
|
10461
10641
|
group: wl,
|
|
10462
10642
|
hidden: Sl,
|
|
@@ -10661,7 +10841,7 @@ var Ul = (e, t) => {
|
|
|
10661
10841
|
t.ledger.count("errors", (u) => u.type === "error");
|
|
10662
10842
|
const n = j(!!t.ledger.value("errors"));
|
|
10663
10843
|
let r = !1;
|
|
10664
|
-
|
|
10844
|
+
Ln(() => {
|
|
10665
10845
|
r = !0;
|
|
10666
10846
|
});
|
|
10667
10847
|
const a = Me(
|
|
@@ -10695,7 +10875,7 @@ var Ul = (e, t) => {
|
|
|
10695
10875
|
default:
|
|
10696
10876
|
return !1;
|
|
10697
10877
|
}
|
|
10698
|
-
}), P = me(() => p.state.failing && y.value), b = me(() => p && v.value ? i.value && !n.value : p.state.dirty && !
|
|
10878
|
+
}), P = me(() => p.state.failing && y.value), b = me(() => p && v.value ? i.value && !n.value : p.state.dirty && !z(p.value)), v = j(
|
|
10699
10879
|
Array.isArray(t.props.parsedRules) && t.props.parsedRules.length > 0
|
|
10700
10880
|
);
|
|
10701
10881
|
t.on("prop:parsedRules", ({ payload: u }) => {
|
|
@@ -10710,7 +10890,7 @@ var Ul = (e, t) => {
|
|
|
10710
10890
|
return u;
|
|
10711
10891
|
}), m = Me(
|
|
10712
10892
|
t.store.reduce((u, k) => (k.type === "ui" && k.visible && (u[k.key] = k), u), {})
|
|
10713
|
-
), h = me(() => !p.state.failing),
|
|
10893
|
+
), h = me(() => !p.state.failing), C = Me({}), w = new Proxy(C, {
|
|
10714
10894
|
get(...u) {
|
|
10715
10895
|
if (!t)
|
|
10716
10896
|
return "";
|
|
@@ -10738,9 +10918,9 @@ var Ul = (e, t) => {
|
|
|
10738
10918
|
}
|
|
10739
10919
|
});
|
|
10740
10920
|
t.on("prop:rootClasses", () => {
|
|
10741
|
-
const u = Object.keys(
|
|
10921
|
+
const u = Object.keys(C);
|
|
10742
10922
|
for (const k of u)
|
|
10743
|
-
delete
|
|
10923
|
+
delete C[k];
|
|
10744
10924
|
});
|
|
10745
10925
|
const T = me(() => {
|
|
10746
10926
|
if (!t)
|
|
@@ -10750,7 +10930,7 @@ var Ul = (e, t) => {
|
|
|
10750
10930
|
for (const k in d.value)
|
|
10751
10931
|
u.push(`${t.props.id}-${k}`);
|
|
10752
10932
|
return u.length ? u.join(" ") : void 0;
|
|
10753
|
-
}),
|
|
10933
|
+
}), L = j(t.value), c = j(t.value), p = Me({
|
|
10754
10934
|
_value: c,
|
|
10755
10935
|
attrs: t.props.attrs,
|
|
10756
10936
|
disabled: t.props.disabled,
|
|
@@ -10796,7 +10976,7 @@ var Ul = (e, t) => {
|
|
|
10796
10976
|
blurred: !1,
|
|
10797
10977
|
complete: b,
|
|
10798
10978
|
dirty: !1,
|
|
10799
|
-
empty:
|
|
10979
|
+
empty: z(L),
|
|
10800
10980
|
submitted: !1,
|
|
10801
10981
|
settled: t.isSettled,
|
|
10802
10982
|
valid: i,
|
|
@@ -10811,11 +10991,11 @@ var Ul = (e, t) => {
|
|
|
10811
10991
|
type: t.props.type,
|
|
10812
10992
|
family: t.props.family,
|
|
10813
10993
|
ui: m,
|
|
10814
|
-
value:
|
|
10994
|
+
value: L,
|
|
10815
10995
|
classes: w
|
|
10816
10996
|
});
|
|
10817
10997
|
t.on("created", () => {
|
|
10818
|
-
V(p.value, t.value) || (c.value = t.value,
|
|
10998
|
+
V(p.value, t.value) || (c.value = t.value, L.value = t.value, Ve(L), Ve(c)), (async () => (await t.settled, t && (t.props._init = G(t.value))))();
|
|
10819
10999
|
}), t.on("mounted", () => {
|
|
10820
11000
|
p.didMount = !0;
|
|
10821
11001
|
}), t.on("settled", ({ payload: u }) => {
|
|
@@ -10850,7 +11030,7 @@ var Ul = (e, t) => {
|
|
|
10850
11030
|
t.props.definition && R(t.props.definition), t.on("added-props", ({ payload: u }) => _(u)), t.on("input", ({ payload: u }) => {
|
|
10851
11031
|
t.type !== "input" && !mt(u) && !Et(u) ? c.value = ht(u) : (c.value = u, Ve(c));
|
|
10852
11032
|
}), t.on("commitRaw", ({ payload: u }) => {
|
|
10853
|
-
t.type !== "input" && !mt(u) && !Et(u) ?
|
|
11033
|
+
t.type !== "input" && !mt(u) && !Et(u) ? L.value = c.value = ht(u) : (L.value = c.value = u, Ve(L)), t.emit("modelUpdated");
|
|
10854
11034
|
}), t.on("commit", ({ payload: u }) => {
|
|
10855
11035
|
var k;
|
|
10856
11036
|
if ((!p.state.dirty || p.dirtyBehavior === "compare") && t.isCreated && r)
|
|
@@ -10866,7 +11046,7 @@ var Ul = (e, t) => {
|
|
|
10866
11046
|
var O;
|
|
10867
11047
|
return !($.type === "error" && ((O = $.meta) == null ? void 0 : O.autoClear) === !0);
|
|
10868
11048
|
}
|
|
10869
|
-
), t.type === "list" && t.sync && (g.value = t.children.map(($) => $.uid)), p.state.empty =
|
|
11049
|
+
), t.type === "list" && t.sync && (g.value = t.children.map(($) => $.uid)), p.state.empty = z(u);
|
|
10870
11050
|
});
|
|
10871
11051
|
const x = async (u) => {
|
|
10872
11052
|
u.type === "ui" && u.visible && !u.meta.showAsMessage ? m[u.key] = u : u.visible ? a[u.key] = u : u.type === "state" && (p.state[u.key] = !!u.value);
|
|
@@ -10892,7 +11072,7 @@ var Ul = (e, t) => {
|
|
|
10892
11072
|
ql(Kl, {
|
|
10893
11073
|
defaultConfig: () => Ot
|
|
10894
11074
|
});
|
|
10895
|
-
var Ot,
|
|
11075
|
+
var Ot, Gl = on({
|
|
10896
11076
|
"packages/vue/src/defaultConfig.ts"() {
|
|
10897
11077
|
ln(), Ot = (e = {}) => {
|
|
10898
11078
|
Vl();
|
|
@@ -10908,7 +11088,7 @@ var Ot, zl = on({
|
|
|
10908
11088
|
icons: f = {},
|
|
10909
11089
|
...g
|
|
10910
11090
|
} = e, y = ks({
|
|
10911
|
-
...
|
|
11091
|
+
...Ls,
|
|
10912
11092
|
...t || {}
|
|
10913
11093
|
}), P = Bs(
|
|
10914
11094
|
se({ en: Hs, ...i || {} }, r)
|
|
@@ -10923,10 +11103,10 @@ var Ot, zl = on({
|
|
|
10923
11103
|
);
|
|
10924
11104
|
};
|
|
10925
11105
|
}
|
|
10926
|
-
}),
|
|
11106
|
+
}), zl = typeof window > "u", ct = /* @__PURE__ */ new Map();
|
|
10927
11107
|
function Yl(e, t) {
|
|
10928
11108
|
var i;
|
|
10929
|
-
!
|
|
11109
|
+
!zl || !e || (ct.has(e) || ct.set(e, /* @__PURE__ */ new Set()), (i = ct.get(e)) == null || i.add(t));
|
|
10930
11110
|
}
|
|
10931
11111
|
var cn = typeof window > "u", Fe = {}, ke = {}, B, re = /* @__PURE__ */ new WeakMap(), Ql = "__raw__", Xl = /[a-zA-Z0-9\-][cC]lass$/;
|
|
10932
11112
|
function Jl(e, t) {
|
|
@@ -10986,17 +11166,17 @@ function ci(e, t, i) {
|
|
|
10986
11166
|
return [d, m, h];
|
|
10987
11167
|
}
|
|
10988
11168
|
function r(b, v) {
|
|
10989
|
-
var
|
|
11169
|
+
var C, w;
|
|
10990
11170
|
const d = y(Y(b.if));
|
|
10991
11171
|
let m = () => v, h = () => v;
|
|
10992
|
-
return typeof b.then == "object" ? h = a(b.then, void 0) : typeof b.then == "string" && ((
|
|
11172
|
+
return typeof b.then == "object" ? h = a(b.then, void 0) : typeof b.then == "string" && ((C = b.then) != null && C.startsWith("$")) ? h = y(Y(b.then)) : h = () => b.then, A(b, "else") && (typeof b.else == "object" ? m = a(b.else) : typeof b.else == "string" && ((w = b.else) != null && w.startsWith("$")) ? m = y(Y(b.else)) : m = () => b.else), () => d() ? h() : m();
|
|
10993
11173
|
}
|
|
10994
11174
|
function a(b, v, d = {}) {
|
|
10995
|
-
const m = new Set(Object.keys(b || {})), h = v ? y(Y(v)) : () => ({}),
|
|
11175
|
+
const m = new Set(Object.keys(b || {})), h = v ? y(Y(v)) : () => ({}), C = [
|
|
10996
11176
|
(w) => {
|
|
10997
11177
|
const T = h();
|
|
10998
|
-
for (const
|
|
10999
|
-
m.has(
|
|
11178
|
+
for (const L in T)
|
|
11179
|
+
m.has(L) || (w[L] = T[L]);
|
|
11000
11180
|
}
|
|
11001
11181
|
];
|
|
11002
11182
|
if (b) {
|
|
@@ -11007,40 +11187,40 @@ function ci(e, t, i) {
|
|
|
11007
11187
|
);
|
|
11008
11188
|
for (let w in b) {
|
|
11009
11189
|
const T = b[w];
|
|
11010
|
-
let
|
|
11190
|
+
let L;
|
|
11011
11191
|
const c = typeof T == "string";
|
|
11012
|
-
w.startsWith(Ql) ? (w = w.substring(7),
|
|
11013
|
-
p[w] =
|
|
11192
|
+
w.startsWith(Ql) ? (w = w.substring(7), L = () => T) : c && T.startsWith("$") && T.length > 1 && !(T.startsWith("$reset") && Xl.test(w)) ? L = y(Y(T)) : typeof T == "object" && ye(T) ? L = r(T, void 0) : typeof T == "object" && we(T) ? L = a(T) : L = () => T, C.push((p) => {
|
|
11193
|
+
p[w] = L();
|
|
11014
11194
|
});
|
|
11015
11195
|
}
|
|
11016
11196
|
}
|
|
11017
11197
|
return () => {
|
|
11018
11198
|
const w = Array.isArray(b) ? [] : {};
|
|
11019
|
-
return
|
|
11199
|
+
return C.forEach((T) => T(w)), w;
|
|
11020
11200
|
};
|
|
11021
11201
|
}
|
|
11022
11202
|
function o(b, v) {
|
|
11023
|
-
let d = null, m = () => null, h = !1,
|
|
11203
|
+
let d = null, m = () => null, h = !1, C = null, w = null, T = null, L = !1;
|
|
11024
11204
|
const c = eo(v);
|
|
11025
|
-
if (vt(c) ? (d = c.$el, m = c.$el !== "text" ? a(c.attrs, c.bind) : () => null) : Tt(c) ? (typeof c.$cmp == "string" ? A(b, c.$cmp) ? d = b[c.$cmp] : (d = c.$cmp,
|
|
11205
|
+
if (vt(c) ? (d = c.$el, m = c.$el !== "text" ? a(c.attrs, c.bind) : () => null) : Tt(c) ? (typeof c.$cmp == "string" ? A(b, c.$cmp) ? d = b[c.$cmp] : (d = c.$cmp, L = !0) : d = c.$cmp, m = a(c.props, c.bind)) : ye(c) && ([h, C, w] = n(b, c)), !ye(c) && "if" in c ? h = y(Y(c.if)) : !ye(c) && d === null && (h = () => !0), "children" in c && c.children)
|
|
11026
11206
|
if (typeof c.children == "string")
|
|
11027
11207
|
if (c.children.startsWith("$slots."))
|
|
11028
|
-
d = d === "text" ? "slot" : d,
|
|
11208
|
+
d = d === "text" ? "slot" : d, C = y(Y(c.children));
|
|
11029
11209
|
else if (c.children.startsWith("$") && c.children.length > 1) {
|
|
11030
11210
|
const p = y(Y(c.children));
|
|
11031
|
-
|
|
11211
|
+
C = () => String(p());
|
|
11032
11212
|
} else
|
|
11033
|
-
|
|
11213
|
+
C = () => String(c.children);
|
|
11034
11214
|
else if (Array.isArray(c.children))
|
|
11035
|
-
|
|
11215
|
+
C = f(b, c.children);
|
|
11036
11216
|
else {
|
|
11037
11217
|
const [p, _, I] = n(b, c.children);
|
|
11038
|
-
|
|
11218
|
+
C = (R) => p && p() ? _ && _(R) : I && I(R);
|
|
11039
11219
|
}
|
|
11040
11220
|
if (Tt(c))
|
|
11041
|
-
if (
|
|
11042
|
-
const p =
|
|
11043
|
-
|
|
11221
|
+
if (C) {
|
|
11222
|
+
const p = C;
|
|
11223
|
+
C = (_) => ({
|
|
11044
11224
|
default(I, R) {
|
|
11045
11225
|
var k, $, O, F;
|
|
11046
11226
|
const x = B;
|
|
@@ -11048,9 +11228,9 @@ function ci(e, t, i) {
|
|
|
11048
11228
|
const u = p(_);
|
|
11049
11229
|
return I && ((O = re.get(B)) == null || O.shift()), _ && ((F = re.get(B)) == null || F.shift()), B = x, u;
|
|
11050
11230
|
}
|
|
11051
|
-
}),
|
|
11231
|
+
}), C.slot = !0;
|
|
11052
11232
|
} else
|
|
11053
|
-
|
|
11233
|
+
C = () => ({});
|
|
11054
11234
|
if ("for" in c && c.for) {
|
|
11055
11235
|
const p = c.for.length === 3 ? c.for[2] : c.for[1];
|
|
11056
11236
|
T = [
|
|
@@ -11059,30 +11239,30 @@ function ci(e, t, i) {
|
|
|
11059
11239
|
c.for.length === 3 ? String(c.for[1]) : null
|
|
11060
11240
|
];
|
|
11061
11241
|
}
|
|
11062
|
-
return [h, d, m,
|
|
11242
|
+
return [h, d, m, C, w, T, L];
|
|
11063
11243
|
}
|
|
11064
11244
|
function s(b, v) {
|
|
11065
11245
|
const d = b(v), m = B;
|
|
11066
|
-
return Object.keys(d).reduce((h,
|
|
11067
|
-
const w = d && d[
|
|
11068
|
-
return h[
|
|
11246
|
+
return Object.keys(d).reduce((h, C) => {
|
|
11247
|
+
const w = d && d[C];
|
|
11248
|
+
return h[C] = (T) => w && w(T, m) || null, h;
|
|
11069
11249
|
}, {});
|
|
11070
11250
|
}
|
|
11071
11251
|
function l(b, v) {
|
|
11072
|
-
const [d, m, h,
|
|
11252
|
+
const [d, m, h, C, w, T, L] = o(b, v);
|
|
11073
11253
|
let c = (p) => {
|
|
11074
|
-
if (d && m === null &&
|
|
11075
|
-
return d() ?
|
|
11254
|
+
if (d && m === null && C)
|
|
11255
|
+
return d() ? C(p) : w && w(p);
|
|
11076
11256
|
if (m && (!d || d())) {
|
|
11077
|
-
if (m === "text" &&
|
|
11078
|
-
return Tn(String(
|
|
11079
|
-
if (m === "slot" &&
|
|
11080
|
-
return
|
|
11081
|
-
const _ =
|
|
11257
|
+
if (m === "text" && C)
|
|
11258
|
+
return Tn(String(C()));
|
|
11259
|
+
if (m === "slot" && C)
|
|
11260
|
+
return C(p);
|
|
11261
|
+
const _ = L ? Cn(m) : m, I = C != null && C.slot ? s(C, p) : null;
|
|
11082
11262
|
return pt(
|
|
11083
11263
|
_,
|
|
11084
11264
|
h(),
|
|
11085
|
-
I || (
|
|
11265
|
+
I || (C ? C(p) : [])
|
|
11086
11266
|
);
|
|
11087
11267
|
}
|
|
11088
11268
|
return typeof w == "function" ? w(p) : w;
|
|
@@ -11119,7 +11299,7 @@ function ci(e, t, i) {
|
|
|
11119
11299
|
function f(b, v) {
|
|
11120
11300
|
if (Array.isArray(v)) {
|
|
11121
11301
|
const m = v.map(l.bind(null, b));
|
|
11122
|
-
return (h) => m.map((
|
|
11302
|
+
return (h) => m.map((C) => C(h));
|
|
11123
11303
|
}
|
|
11124
11304
|
const d = l(b, v);
|
|
11125
11305
|
return (m) => d(m);
|
|
@@ -11130,7 +11310,7 @@ function ci(e, t, i) {
|
|
|
11130
11310
|
return g.push((m, h) => {
|
|
11131
11311
|
d.set(
|
|
11132
11312
|
h,
|
|
11133
|
-
b.provide((
|
|
11313
|
+
b.provide((C) => m(C, v))
|
|
11134
11314
|
);
|
|
11135
11315
|
}), () => d.get(B)();
|
|
11136
11316
|
}
|
|
@@ -11298,7 +11478,7 @@ function oc(e, t) {
|
|
|
11298
11478
|
},
|
|
11299
11479
|
clearErrors: no,
|
|
11300
11480
|
setErrors: io,
|
|
11301
|
-
submit:
|
|
11481
|
+
submit: Li,
|
|
11302
11482
|
reset: ki
|
|
11303
11483
|
};
|
|
11304
11484
|
}
|
|
@@ -11353,7 +11533,7 @@ function pc(e, t, i = {}) {
|
|
|
11353
11533
|
fi(() => {
|
|
11354
11534
|
f = !0;
|
|
11355
11535
|
});
|
|
11356
|
-
const g = e.modelValue !== void 0 ? e.modelValue :
|
|
11536
|
+
const g = e.modelValue !== void 0 ? e.modelValue : G(t.attrs.value);
|
|
11357
11537
|
function y() {
|
|
11358
11538
|
const c = {
|
|
11359
11539
|
...be(e),
|
|
@@ -11413,17 +11593,17 @@ function pc(e, t, i = {}) {
|
|
|
11413
11593
|
ne(() => {
|
|
11414
11594
|
v.props.__root = r.value;
|
|
11415
11595
|
});
|
|
11416
|
-
const
|
|
11596
|
+
const C = /* @__PURE__ */ new Set(), w = be(t.attrs);
|
|
11417
11597
|
ne(() => {
|
|
11418
11598
|
T(Bt(w, m.value));
|
|
11419
11599
|
});
|
|
11420
11600
|
function T(c) {
|
|
11421
|
-
|
|
11422
|
-
p(),
|
|
11601
|
+
C.forEach((p) => {
|
|
11602
|
+
p(), C.delete(p);
|
|
11423
11603
|
});
|
|
11424
11604
|
for (const p in c) {
|
|
11425
11605
|
const _ = Te(p);
|
|
11426
|
-
|
|
11606
|
+
C.add(
|
|
11427
11607
|
Ie(
|
|
11428
11608
|
() => t.attrs[p],
|
|
11429
11609
|
() => {
|
|
@@ -11472,14 +11652,14 @@ function pc(e, t, i = {}) {
|
|
|
11472
11652
|
});
|
|
11473
11653
|
}
|
|
11474
11654
|
ne(() => Object.assign(v.config, e.config)), v.type !== "input" && bn(pi, v);
|
|
11475
|
-
let
|
|
11655
|
+
let L;
|
|
11476
11656
|
return v.on("modelUpdated", () => {
|
|
11477
11657
|
var c, p;
|
|
11478
|
-
t.emit("inputRaw", (c = v.context) == null ? void 0 : c.value, v), f && t.emit("input", (p = v.context) == null ? void 0 : p.value, v), l && v.context && (
|
|
11658
|
+
t.emit("inputRaw", (c = v.context) == null ? void 0 : c.value, v), f && t.emit("input", (p = v.context) == null ? void 0 : p.value, v), l && v.context && (L = G(v.value), t.emit("update:modelValue", ht(v.value)));
|
|
11479
11659
|
}), l && (Ie(
|
|
11480
11660
|
yn(e, "modelValue"),
|
|
11481
11661
|
(c) => {
|
|
11482
|
-
V(
|
|
11662
|
+
V(L, c) || v.input(c, !1);
|
|
11483
11663
|
},
|
|
11484
11664
|
{ deep: !0 }
|
|
11485
11665
|
), v.value !== g && v.emit("modelUpdated")), vn(() => v.destroy()), v;
|
|
@@ -11502,7 +11682,7 @@ function K(e, t = {}, i = {}) {
|
|
|
11502
11682
|
context: "$node.context"
|
|
11503
11683
|
}
|
|
11504
11684
|
})), n.library = { [a]: nt(e) };
|
|
11505
|
-
} else typeof e == "function" ? r = e : r = /* @__PURE__ */ S("input", () =>
|
|
11685
|
+
} else typeof e == "function" ? r = e : r = /* @__PURE__ */ S("input", () => G(e));
|
|
11506
11686
|
return n.schema = /* @__PURE__ */ Tl(r || "Schema undefined", i), n.schemaMemoKey || (n.schemaMemoKey = `${Math.random()}`), n;
|
|
11507
11687
|
}
|
|
11508
11688
|
var fc = /* @__PURE__ */ S("messages", () => ({
|
|
@@ -11536,12 +11716,12 @@ var bc = /* @__PURE__ */ S("summary", () => ({
|
|
|
11536
11716
|
key: "$summary.key",
|
|
11537
11717
|
"data-message-type": "$summary.type"
|
|
11538
11718
|
}
|
|
11539
|
-
})),
|
|
11719
|
+
})), Cc = /* @__PURE__ */ S("summaryHeader", () => ({
|
|
11540
11720
|
$el: "h2",
|
|
11541
11721
|
attrs: {
|
|
11542
11722
|
id: "$id"
|
|
11543
11723
|
}
|
|
11544
|
-
})),
|
|
11724
|
+
})), Lc = /* @__PURE__ */ S("messageLink", () => ({
|
|
11545
11725
|
$el: "a",
|
|
11546
11726
|
attrs: {
|
|
11547
11727
|
id: "$summary.key",
|
|
@@ -11551,11 +11731,11 @@ var bc = /* @__PURE__ */ S("summary", () => ({
|
|
|
11551
11731
|
}));
|
|
11552
11732
|
bc(
|
|
11553
11733
|
yc(
|
|
11554
|
-
|
|
11555
|
-
vc(Tc(
|
|
11734
|
+
Cc("$summaryHeader"),
|
|
11735
|
+
vc(Tc(Lc("$summary.message")))
|
|
11556
11736
|
)
|
|
11557
11737
|
);
|
|
11558
|
-
|
|
11738
|
+
Gl();
|
|
11559
11739
|
ln();
|
|
11560
11740
|
function kc(e) {
|
|
11561
11741
|
const { t } = kn();
|
|
@@ -11599,7 +11779,7 @@ const Ac = (e) => {
|
|
|
11599
11779
|
),
|
|
11600
11780
|
BaListRepeater: K(
|
|
11601
11781
|
H(
|
|
11602
|
-
() => import("./ListRepeater-
|
|
11782
|
+
() => import("./ListRepeater-BHlMo-N5.js")
|
|
11603
11783
|
)
|
|
11604
11784
|
),
|
|
11605
11785
|
BaTextStyleList: K(
|
|
@@ -11619,7 +11799,7 @@ const Ac = (e) => {
|
|
|
11619
11799
|
),
|
|
11620
11800
|
BaImageUpload: K(
|
|
11621
11801
|
H(
|
|
11622
|
-
() => import("./ImageUpload-
|
|
11802
|
+
() => import("./ImageUpload-eKzi_Xyb.js")
|
|
11623
11803
|
),
|
|
11624
11804
|
{ props: ["ignoreUpdate"] }
|
|
11625
11805
|
),
|
|
@@ -11646,8 +11826,8 @@ const Ac = (e) => {
|
|
|
11646
11826
|
"zh-TW": { ...Mn, ...pr },
|
|
11647
11827
|
"th-TH": { ...Dn, ...yr },
|
|
11648
11828
|
"ko-KR": { ...Bn, ...wr },
|
|
11649
|
-
"vi-VN": { ...
|
|
11650
|
-
}, Pc = H(() => import("./App-
|
|
11829
|
+
"vi-VN": { ...zn, ...Mr }
|
|
11830
|
+
}, Pc = H(() => import("./App-C5TuYndf.js"));
|
|
11651
11831
|
export {
|
|
11652
11832
|
hn as F,
|
|
11653
11833
|
pn as a,
|