@feedmepos/mf-brand-app-builder 0.5.46-prod → 0.5.47-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/App-Ck5Q4Z44.js +114 -0
- package/dist/{AssetsSettings-Do8rt2sU.js → AssetsSettings-DtZ6goQl.js} +22 -22
- package/dist/{BrandkitView-nfDiG0HS.js → BrandkitView-BZCLurZL.js} +3366 -3315
- package/dist/{BuilderView-D6aesdSu.js → BuilderView-BDYSDiXE.js} +7 -7
- package/dist/{CredentialSettings-BB_Yroul.js → CredentialSettings-3eVBw1x8.js} +1 -1
- package/dist/{ImageUpload-BZj85a8g.js → ImageUpload-XCqd_Lf1.js} +8 -8
- package/dist/{LinkButton-DNXBKGCn.js → LinkButton-De-YNclu.js} +1 -1
- package/dist/{ListRepeater-tz5QcoGP.js → ListRepeater-BjWvukJ6.js} +1 -1
- package/dist/{ManagementSettings-CjsGetkI.js → ManagementSettings-CWAKkmbz.js} +6 -6
- package/dist/{ProjectView-Dc-furGA.js → ProjectView-DO6VUrFS.js} +3 -3
- package/dist/{app-MFB1wiue.js → app-BG4E6k9-.js} +183 -151
- package/dist/app.js +1 -1
- package/dist/client/merchant/src/app.d.ts +32 -0
- package/dist/client/merchant/src/composables/miniprogramPortalEntry.d.ts +12 -0
- package/dist/{dayjs.min-Ctmrwhx3.js → dayjs.min-Df-s3E18.js} +1 -1
- package/dist/{image-S7-2rbQS.js → image-D_Djf1PS.js} +7 -7
- package/dist/{index-BpYD24Jn.js → index-BA2J-Ffh.js} +1 -1
- package/dist/{index-CPs0rWCO.js → index-Bk6TOZrx.js} +15 -15
- package/dist/index-CVVQJJYY.js +134 -0
- package/dist/{index-C6_vWPi0.js → index-D0LOMBBD.js} +27 -27
- package/dist/{main-LDiBfnFA.js → main-C91a3jWJ.js} +4 -4
- package/dist/package.json +1 -1
- package/dist/style.css +1 -1
- package/dist/{useBusinessFeatureFlag-Dw4hpcYo.js → useBusinessFeatureFlag-CfpvWi12.js} +218 -227
- package/package.json +1 -1
- package/dist/App-DD3xAvwR.js +0 -121
- package/dist/index-CP6_oC8N.js +0 -134
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRef as At, ref as z, shallowRef as
|
|
1
|
+
import { isRef as At, ref as z, shallowRef as Vi, watchEffect as pe, computed as be, h as tt, defineComponent as Pt, createBlock as Gi, renderSlot as Ii, createCommentVNode as Ei, unref as Me, openBlock as $a, createElementBlock as Yi, createElementVNode as Se, toDisplayString as ba, defineAsyncComponent as W, getCurrentInstance as Ht, markRaw as Lt, watch as _e, reactive as Ke, onMounted as en, onUnmounted as Hi, inject as ot, provide as Ri, toRef as Ni, onBeforeUnmount as qi, createTextVNode as Qi, resolveComponent as Xi, nextTick as Wi, triggerRef as lt, isReactive as ya } from "vue";
|
|
2
2
|
import { MiniprogramWorkspace as Ui } from "@feedmepos/mf-miniprogram-v2";
|
|
3
3
|
import { useRoute as zi } from "vue-router";
|
|
4
4
|
import { useCoreStore as tn, useI18n as an } from "@feedmepos/mf-common";
|
|
@@ -19,6 +19,9 @@ const Ki = {
|
|
|
19
19
|
description: "Manage your brand's colors and fonts for your mini program.",
|
|
20
20
|
save: "Save",
|
|
21
21
|
unsavedChanges: "You have unsaved changes",
|
|
22
|
+
miniprogramV2BannerTitle: "Try the new version of Mini Program",
|
|
23
|
+
miniprogramV2BannerDescription: "A new version of Mini Program is available for your business. Give it a try.",
|
|
24
|
+
miniprogramV2BannerAction: "Try now",
|
|
22
25
|
logo: "Logo",
|
|
23
26
|
color: {
|
|
24
27
|
_: "Colors",
|
|
@@ -767,6 +770,9 @@ const Ki = {
|
|
|
767
770
|
description: "管理您的品牌小程序的颜色和字体。",
|
|
768
771
|
save: "保存",
|
|
769
772
|
unsavedChanges: "您有未保存的更改",
|
|
773
|
+
miniprogramV2BannerTitle: "试用新版小程序",
|
|
774
|
+
miniprogramV2BannerDescription: "您的商户可以试用全新的小程序体验。",
|
|
775
|
+
miniprogramV2BannerAction: "立即试用",
|
|
770
776
|
logo: "标志",
|
|
771
777
|
color: {
|
|
772
778
|
_: "颜色",
|
|
@@ -1521,6 +1527,9 @@ const Ki = {
|
|
|
1521
1527
|
description: "管理您的品牌小程序的顔色和字體。",
|
|
1522
1528
|
save: "保存",
|
|
1523
1529
|
unsavedChanges: "您有未保存的更改",
|
|
1530
|
+
miniprogramV2BannerTitle: "試用新版小程序",
|
|
1531
|
+
miniprogramV2BannerDescription: "您的商戶可以試用全新的小程序體驗。",
|
|
1532
|
+
miniprogramV2BannerAction: "立即試用",
|
|
1524
1533
|
logo: "標志",
|
|
1525
1534
|
color: {
|
|
1526
1535
|
_: "顔色",
|
|
@@ -2270,6 +2279,9 @@ const Ki = {
|
|
|
2270
2279
|
description: "จัดการสีและฟอนต์ของแบรนด์สำหรับมินิโปรแกรมของคุณ",
|
|
2271
2280
|
save: "บันทึก",
|
|
2272
2281
|
unsavedChanges: "คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก",
|
|
2282
|
+
miniprogramV2BannerTitle: "ลองใช้มินิโปรแกรมเวอร์ชันใหม่",
|
|
2283
|
+
miniprogramV2BannerDescription: "ธุรกิจของคุณสามารถทดลองใช้ประสบการณ์มินิโปรแกรมใหม่ได้แล้ว",
|
|
2284
|
+
miniprogramV2BannerAction: "ลองใช้เลย",
|
|
2273
2285
|
logo: "โลโก้",
|
|
2274
2286
|
color: {
|
|
2275
2287
|
_: "สี",
|
|
@@ -3180,6 +3192,9 @@ const Ki = {
|
|
|
3180
3192
|
description: "미니 프로그램을 위한 브랜드 색상과 폰트를 관리하세요.",
|
|
3181
3193
|
save: "저장",
|
|
3182
3194
|
unsavedChanges: "저장되지 않은 변경 사항이 있습니다",
|
|
3195
|
+
miniprogramV2BannerTitle: "새 버전의 미니 프로그램 체험하기",
|
|
3196
|
+
miniprogramV2BannerDescription: "새로운 미니 프로그램 경험을 지금 이용해 보세요.",
|
|
3197
|
+
miniprogramV2BannerAction: "지금 체험하기",
|
|
3183
3198
|
logo: "로고",
|
|
3184
3199
|
color: {
|
|
3185
3200
|
_: "색상",
|
|
@@ -4095,6 +4110,9 @@ const Ki = {
|
|
|
4095
4110
|
description: "Quản lý màu sắc và phông chữ thương hiệu của bạn cho chương trình nhỏ.",
|
|
4096
4111
|
save: "Lưu",
|
|
4097
4112
|
unsavedChanges: "Bạn có thay đổi chưa được lưu",
|
|
4113
|
+
miniprogramV2BannerTitle: "Dùng thử phiên bản mới của Mini Program",
|
|
4114
|
+
miniprogramV2BannerDescription: "Trải nghiệm mini program mới hiện đã có sẵn cho doanh nghiệp của bạn. Hãy dùng thử ngay.",
|
|
4115
|
+
miniprogramV2BannerAction: "Dùng thử ngay",
|
|
4098
4116
|
logo: "Logo",
|
|
4099
4117
|
color: {
|
|
4100
4118
|
_: "Màu sắc",
|
|
@@ -5010,6 +5028,9 @@ const Ki = {
|
|
|
5010
5028
|
description: "Urus warna dan fon jenama anda untuk mini program.",
|
|
5011
5029
|
save: "Simpan",
|
|
5012
5030
|
unsavedChanges: "Anda mempunyai perubahan yang belum disimpan",
|
|
5031
|
+
miniprogramV2BannerTitle: "Cuba versi baharu Mini Program",
|
|
5032
|
+
miniprogramV2BannerDescription: "Pengalaman mini program baharu kini tersedia untuk perniagaan anda. Cubalah sekarang.",
|
|
5033
|
+
miniprogramV2BannerAction: "Cuba sekarang",
|
|
5013
5034
|
logo: "Logo",
|
|
5014
5035
|
color: {
|
|
5015
5036
|
_: "Warna",
|
|
@@ -6094,7 +6115,8 @@ const Ki = {
|
|
|
6094
6115
|
confirmLogoutTitle: "Confirm Logout",
|
|
6095
6116
|
confirmLogoutMessage: "Are you sure you want to logout?",
|
|
6096
6117
|
logoutAction: "Logout",
|
|
6097
|
-
cancelAction: "Cancel"
|
|
6118
|
+
cancelAction: "Cancel",
|
|
6119
|
+
membershipCheckFailed: "Unable to verify your membership. Please try again."
|
|
6098
6120
|
},
|
|
6099
6121
|
referral: {
|
|
6100
6122
|
title: "Referral program",
|
|
@@ -6355,7 +6377,7 @@ const Ki = {
|
|
|
6355
6377
|
missions: "任务",
|
|
6356
6378
|
games: "游戏"
|
|
6357
6379
|
}
|
|
6358
|
-
},
|
|
6380
|
+
}, Vr = {
|
|
6359
6381
|
member: {
|
|
6360
6382
|
welcome: "欢迎!",
|
|
6361
6383
|
signIn: "登录",
|
|
@@ -6537,7 +6559,7 @@ const Ki = {
|
|
|
6537
6559
|
switchCountryDrawer: {
|
|
6538
6560
|
selectLocation: "选择您的位置"
|
|
6539
6561
|
}
|
|
6540
|
-
},
|
|
6562
|
+
}, Gr = {
|
|
6541
6563
|
orderDetails: {
|
|
6542
6564
|
title: "订单详情"
|
|
6543
6565
|
},
|
|
@@ -6788,7 +6810,8 @@ const Ki = {
|
|
|
6788
6810
|
confirmLogoutTitle: "确认退出登录",
|
|
6789
6811
|
confirmLogoutMessage: "您确定要退出登录吗?",
|
|
6790
6812
|
logoutAction: "退出登录",
|
|
6791
|
-
cancelAction: "取消"
|
|
6813
|
+
cancelAction: "取消",
|
|
6814
|
+
membershipCheckFailed: "无法验证您的会员状态,请重试。"
|
|
6792
6815
|
}
|
|
6793
6816
|
}, Ir = {
|
|
6794
6817
|
voucher: {
|
|
@@ -6811,8 +6834,8 @@ const Ki = {
|
|
|
6811
6834
|
}
|
|
6812
6835
|
}, Yr = {
|
|
6813
6836
|
user: Or,
|
|
6814
|
-
components:
|
|
6815
|
-
views:
|
|
6837
|
+
components: Vr,
|
|
6838
|
+
views: Gr,
|
|
6816
6839
|
utils: Ir,
|
|
6817
6840
|
dialog: Er
|
|
6818
6841
|
}, Hr = {
|
|
@@ -7313,6 +7336,9 @@ const Ki = {
|
|
|
7313
7336
|
logoutAction: "退出登錄",
|
|
7314
7337
|
cancelAction: "取消"
|
|
7315
7338
|
}
|
|
7339
|
+
},
|
|
7340
|
+
member: {
|
|
7341
|
+
membershipCheckFailed: "無法驗證您的會員狀態,請重試。"
|
|
7316
7342
|
}
|
|
7317
7343
|
}, qr = {
|
|
7318
7344
|
voucher: {
|
|
@@ -7837,6 +7863,9 @@ const Ki = {
|
|
|
7837
7863
|
logoutAction: "ออกจากระบบ",
|
|
7838
7864
|
cancelAction: "ยกเลิก"
|
|
7839
7865
|
}
|
|
7866
|
+
},
|
|
7867
|
+
member: {
|
|
7868
|
+
membershipCheckFailed: "ไม่สามารถตรวจสอบสมาชิกของคุณได้ โปรดลองอีกครั้ง"
|
|
7840
7869
|
}
|
|
7841
7870
|
}, Kr = {
|
|
7842
7871
|
voucher: {
|
|
@@ -8249,7 +8278,8 @@ const Ki = {
|
|
|
8249
8278
|
confirmLogoutTitle: "로그아웃 확인",
|
|
8250
8279
|
confirmLogoutMessage: "정말 로그아웃하시겠습니까?",
|
|
8251
8280
|
logoutAction: "로그아웃",
|
|
8252
|
-
cancelAction: "취소"
|
|
8281
|
+
cancelAction: "취소",
|
|
8282
|
+
membershipCheckFailed: "멤버십을 확인할 수 없습니다. 다시 시도해 주세요."
|
|
8253
8283
|
},
|
|
8254
8284
|
referral: {
|
|
8255
8285
|
title: "추천 프로그램",
|
|
@@ -8805,7 +8835,8 @@ const Ki = {
|
|
|
8805
8835
|
confirmLogoutTitle: "Xác nhận đăng xuất",
|
|
8806
8836
|
confirmLogoutMessage: "Bạn có chắc chắn muốn đăng xuất không?",
|
|
8807
8837
|
logoutAction: "Đăng xuất",
|
|
8808
|
-
cancelAction: "Hủy"
|
|
8838
|
+
cancelAction: "Hủy",
|
|
8839
|
+
membershipCheckFailed: "Không thể xác minh tư cách thành viên của bạn. Vui lòng thử lại."
|
|
8809
8840
|
},
|
|
8810
8841
|
referral: {
|
|
8811
8842
|
title: "Chương trình giới thiệu",
|
|
@@ -9331,7 +9362,8 @@ const Ki = {
|
|
|
9331
9362
|
confirmLogoutTitle: "Sahkan Log Keluar",
|
|
9332
9363
|
confirmLogoutMessage: "Adakah anda pasti mahu log keluar?",
|
|
9333
9364
|
logoutAction: "Log keluar",
|
|
9334
|
-
cancelAction: "Batal"
|
|
9365
|
+
cancelAction: "Batal",
|
|
9366
|
+
membershipCheckFailed: "Tidak dapat mengesahkan keahlian anda. Sila cuba lagi."
|
|
9335
9367
|
},
|
|
9336
9368
|
referral: {
|
|
9337
9369
|
title: "Program rujukan",
|
|
@@ -9570,7 +9602,7 @@ var nn = { exports: {} };
|
|
|
9570
9602
|
}), i.d(n, "compare", function() {
|
|
9571
9603
|
return y;
|
|
9572
9604
|
}), i.d(n, "comparable", function() {
|
|
9573
|
-
return
|
|
9605
|
+
return V;
|
|
9574
9606
|
});
|
|
9575
9607
|
var l = s("Array"), m = s("Object"), b = s("Function");
|
|
9576
9608
|
function A(c, g) {
|
|
@@ -9867,7 +9899,7 @@ var nn = { exports: {} };
|
|
|
9867
9899
|
}), f;
|
|
9868
9900
|
}
|
|
9869
9901
|
function p(c, g) {
|
|
9870
|
-
var f = j(c, g = Object.assign({ compare: y, comparable:
|
|
9902
|
+
var f = j(c, g = Object.assign({ compare: y, comparable: V }, g));
|
|
9871
9903
|
return function(u, v, k) {
|
|
9872
9904
|
return D(f, u, v, k);
|
|
9873
9905
|
};
|
|
@@ -9879,8 +9911,8 @@ var nn = { exports: {} };
|
|
|
9879
9911
|
if (c < g) return -1;
|
|
9880
9912
|
}
|
|
9881
9913
|
}
|
|
9882
|
-
function
|
|
9883
|
-
return c instanceof Date ? c.getTime() : l(c) ? c.map(
|
|
9914
|
+
function V(c) {
|
|
9915
|
+
return c instanceof Date ? c.getTime() : l(c) ? c.map(V) : c && typeof c.toJSON == "function" ? c.toJSON() : c;
|
|
9884
9916
|
}
|
|
9885
9917
|
}
|
|
9886
9918
|
]);
|
|
@@ -10023,7 +10055,7 @@ function Os(e) {
|
|
|
10023
10055
|
}), a = t.length > 1 ? "(?:" + t.join("|") + ")" : t[0];
|
|
10024
10056
|
return new RegExp("^" + a + "$");
|
|
10025
10057
|
}
|
|
10026
|
-
var
|
|
10058
|
+
var Vs = /* @__PURE__ */ function() {
|
|
10027
10059
|
function e(a) {
|
|
10028
10060
|
this.actions = a.actions || a.action, this.subject = a.subject, this.fields = !a.fields || a.fields.length === 0 ? void 0 : qt(a.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
10029
10061
|
writable: !0
|
|
@@ -10046,7 +10078,7 @@ var Gs = /* @__PURE__ */ function() {
|
|
|
10046
10078
|
function wa(e, t) {
|
|
10047
10079
|
return e === t || Array.isArray(t) && t.indexOf(e) !== -1;
|
|
10048
10080
|
}
|
|
10049
|
-
var
|
|
10081
|
+
var Gs = /* @__PURE__ */ function() {
|
|
10050
10082
|
e.addAlias = function(n, i) {
|
|
10051
10083
|
if (n === "manage" || wa("manage", i))
|
|
10052
10084
|
throw new Error('Cannot add alias for "manage" action because it represents any action');
|
|
@@ -10058,7 +10090,7 @@ var Vs = /* @__PURE__ */ function() {
|
|
|
10058
10090
|
n === void 0 && (n = {}), Object.defineProperty(this, "subjectName", {
|
|
10059
10091
|
value: n.subjectName || Ts
|
|
10060
10092
|
}), this[ee] = {
|
|
10061
|
-
RuleType: n.RuleType ||
|
|
10093
|
+
RuleType: n.RuleType || Vs,
|
|
10062
10094
|
originalRules: a || [],
|
|
10063
10095
|
hasPerFieldRules: !1,
|
|
10064
10096
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
@@ -11213,7 +11245,7 @@ function Bo(e) {
|
|
|
11213
11245
|
}));
|
|
11214
11246
|
}
|
|
11215
11247
|
function To(e) {
|
|
11216
|
-
return new
|
|
11248
|
+
return new Gs(Bo(e));
|
|
11217
11249
|
}
|
|
11218
11250
|
function jn(e, t, a) {
|
|
11219
11251
|
const n = Array.isArray(e) ? e : [e], i = To(t), r = (A) => A.subject, s = (A) => i.can(A.action, r(A), A.field) ? !0 : A.coverSubject !== void 0 ? i.can(A.action, A.coverSubject, A.field) : !1, l = n.find((A) => !s(A));
|
|
@@ -11245,7 +11277,7 @@ function Po(e, t, a) {
|
|
|
11245
11277
|
evaluating: r = void 0,
|
|
11246
11278
|
shallow: s = !0,
|
|
11247
11279
|
onError: l = Mo
|
|
11248
|
-
} = n, m = z(!i), b = s ?
|
|
11280
|
+
} = n, m = z(!i), b = s ? Vi(t) : z(t);
|
|
11249
11281
|
let A = 0;
|
|
11250
11282
|
return pe(async (B) => {
|
|
11251
11283
|
if (!m.value)
|
|
@@ -11338,11 +11370,11 @@ const jo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11338
11370
|
subtitle: "UH OH! You don't have permission to access this page."
|
|
11339
11371
|
}, Oo = {
|
|
11340
11372
|
noPermission: Fo
|
|
11341
|
-
},
|
|
11373
|
+
}, Vo = {
|
|
11342
11374
|
title: "访问被拒绝",
|
|
11343
11375
|
subtitle: "哎呀!您没有权限访问此页面。"
|
|
11344
|
-
},
|
|
11345
|
-
noPermission:
|
|
11376
|
+
}, Go = {
|
|
11377
|
+
noPermission: Vo
|
|
11346
11378
|
}, Io = {
|
|
11347
11379
|
title: "存取被拒絕",
|
|
11348
11380
|
subtitle: "哎呀!您沒有權限存取此頁面。"
|
|
@@ -11359,7 +11391,7 @@ const jo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11359
11391
|
const { t } = an({
|
|
11360
11392
|
messages: {
|
|
11361
11393
|
"en-US": Oo,
|
|
11362
|
-
"zh-CN":
|
|
11394
|
+
"zh-CN": Go,
|
|
11363
11395
|
"zh-Hant": Eo,
|
|
11364
11396
|
"th-TH": Ho
|
|
11365
11397
|
}
|
|
@@ -11383,7 +11415,7 @@ const jo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11383
11415
|
__name: "PermissionWrapper",
|
|
11384
11416
|
setup(e) {
|
|
11385
11417
|
const t = So();
|
|
11386
|
-
return (a, n) => Me(t) === Me(Qt).Denied ? ($a(),
|
|
11418
|
+
return (a, n) => Me(t) === Me(Qt).Denied ? ($a(), Gi(Uo, { key: 0 })) : Me(t) === Me(Qt).Allowed ? Ii(a.$slots, "default", { key: 1 }) : Ei("", !0);
|
|
11387
11419
|
}
|
|
11388
11420
|
});
|
|
11389
11421
|
function Le(e) {
|
|
@@ -11431,23 +11463,23 @@ const at = (e) => ({
|
|
|
11431
11463
|
})
|
|
11432
11464
|
}
|
|
11433
11465
|
}), Zo = Le(
|
|
11434
|
-
W(() => import("./BrandkitView-
|
|
11466
|
+
W(() => import("./BrandkitView-BZCLurZL.js"))
|
|
11435
11467
|
), Jo = Le(
|
|
11436
|
-
W(() => import("./ProjectView-
|
|
11468
|
+
W(() => import("./ProjectView-DO6VUrFS.js"))
|
|
11437
11469
|
), _o = Le(
|
|
11438
|
-
W(() => import("./BuilderView-
|
|
11470
|
+
W(() => import("./BuilderView-BDYSDiXE.js"))
|
|
11439
11471
|
), $o = Le(
|
|
11440
11472
|
W(
|
|
11441
|
-
() => import("./AssetsSettings-
|
|
11473
|
+
() => import("./AssetsSettings-DtZ6goQl.js")
|
|
11442
11474
|
)
|
|
11443
11475
|
), el = Le(
|
|
11444
11476
|
W(
|
|
11445
|
-
() => import("./ManagementSettings-
|
|
11477
|
+
() => import("./ManagementSettings-CWAKkmbz.js")
|
|
11446
11478
|
)
|
|
11447
11479
|
);
|
|
11448
11480
|
Le(
|
|
11449
11481
|
W(
|
|
11450
|
-
() => import("./CredentialSettings-
|
|
11482
|
+
() => import("./CredentialSettings-3eVBw1x8.js")
|
|
11451
11483
|
)
|
|
11452
11484
|
);
|
|
11453
11485
|
const tl = Le(Ui), al = at([
|
|
@@ -11542,7 +11574,7 @@ function Xe() {
|
|
|
11542
11574
|
function sl(e, t) {
|
|
11543
11575
|
return [...e instanceof Set ? e : new Set(e)];
|
|
11544
11576
|
}
|
|
11545
|
-
function
|
|
11577
|
+
function G(e, t) {
|
|
11546
11578
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
11547
11579
|
}
|
|
11548
11580
|
function Z(e, t, a = !0, n = ["__key"]) {
|
|
@@ -11625,7 +11657,7 @@ var we = /* @__NO_SIDE_EFFECTS__ */ (e, t, a = !1, n = !1) => {
|
|
|
11625
11657
|
if (typeof t == "string")
|
|
11626
11658
|
return t;
|
|
11627
11659
|
for (const r in e)
|
|
11628
|
-
if (
|
|
11660
|
+
if (G(t, r) && (t[r] !== void 0 || !n)) {
|
|
11629
11661
|
if (a && Array.isArray(e[r]) && Array.isArray(t[r])) {
|
|
11630
11662
|
i[r] = e[r].concat(t[r]);
|
|
11631
11663
|
continue;
|
|
@@ -11641,7 +11673,7 @@ var we = /* @__NO_SIDE_EFFECTS__ */ (e, t, a = !1, n = !1) => {
|
|
|
11641
11673
|
} else
|
|
11642
11674
|
i[r] = e[r];
|
|
11643
11675
|
for (const r in t)
|
|
11644
|
-
!
|
|
11676
|
+
!G(i, r) && t[r] !== void 0 && (i[r] = t[r]);
|
|
11645
11677
|
return i;
|
|
11646
11678
|
};
|
|
11647
11679
|
function ul(e) {
|
|
@@ -11692,13 +11724,13 @@ function Ba(e, t) {
|
|
|
11692
11724
|
n.some((r) => r.test(i)) && (a[i] = e[i]);
|
|
11693
11725
|
}), a;
|
|
11694
11726
|
}
|
|
11695
|
-
function
|
|
11727
|
+
function Ge(e) {
|
|
11696
11728
|
return e.replace(
|
|
11697
11729
|
/-([a-z0-9])/gi,
|
|
11698
11730
|
(t, a) => a.toUpperCase()
|
|
11699
11731
|
);
|
|
11700
11732
|
}
|
|
11701
|
-
function
|
|
11733
|
+
function Vn(e) {
|
|
11702
11734
|
return e.replace(
|
|
11703
11735
|
/([a-z0-9])([A-Z])/g,
|
|
11704
11736
|
(t, a, n) => a + "-" + n.toLowerCase()
|
|
@@ -11734,7 +11766,7 @@ function gl(e, t) {
|
|
|
11734
11766
|
let n = e;
|
|
11735
11767
|
for (const i in a) {
|
|
11736
11768
|
const r = a[i];
|
|
11737
|
-
if (
|
|
11769
|
+
if (G(n, r) && (n = n[r]), +i === a.length - 1)
|
|
11738
11770
|
return n;
|
|
11739
11771
|
if (!n || typeof n != "object")
|
|
11740
11772
|
return null;
|
|
@@ -11784,7 +11816,7 @@ function ra() {
|
|
|
11784
11816
|
r > -1 && e.splice(r, 1);
|
|
11785
11817
|
}, a;
|
|
11786
11818
|
}
|
|
11787
|
-
function
|
|
11819
|
+
function Gn() {
|
|
11788
11820
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
11789
11821
|
let a;
|
|
11790
11822
|
const n = (i, r) => {
|
|
@@ -11883,7 +11915,7 @@ function Cl(e = !1) {
|
|
|
11883
11915
|
const l = new Proxy(t, {
|
|
11884
11916
|
get(...m) {
|
|
11885
11917
|
const [b, A] = m;
|
|
11886
|
-
return A === "buffer" ? n : A === "_b" ? i : A === "_m" ? r : A === "_r" ? s :
|
|
11918
|
+
return A === "buffer" ? n : A === "_b" ? i : A === "_m" ? r : A === "_r" ? s : G(Ta, A) ? Ta[A].bind(
|
|
11887
11919
|
null,
|
|
11888
11920
|
t,
|
|
11889
11921
|
l,
|
|
@@ -11904,7 +11936,7 @@ function wl(e, t, a, n) {
|
|
|
11904
11936
|
const r = n.value;
|
|
11905
11937
|
n.value = a.t(n), n.value !== r && (n.meta.locale = a.props.locale);
|
|
11906
11938
|
}
|
|
11907
|
-
const i = `message-${
|
|
11939
|
+
const i = `message-${G(e, n.key) ? "updated" : "added"}`;
|
|
11908
11940
|
e[n.key] = Object.freeze(
|
|
11909
11941
|
a.hook.message.dispatch(n)
|
|
11910
11942
|
), a.emit(i, n);
|
|
@@ -11918,7 +11950,7 @@ function kl(e, t) {
|
|
|
11918
11950
|
}
|
|
11919
11951
|
}
|
|
11920
11952
|
function In(e, t, a, n) {
|
|
11921
|
-
if (
|
|
11953
|
+
if (G(e, n)) {
|
|
11922
11954
|
const i = e[n];
|
|
11923
11955
|
delete e[n], a.emit("message-removed", i);
|
|
11924
11956
|
}
|
|
@@ -12005,16 +12037,16 @@ function xl() {
|
|
|
12005
12037
|
},
|
|
12006
12038
|
merge: (a) => Pa(t, e, a),
|
|
12007
12039
|
settled(a) {
|
|
12008
|
-
return
|
|
12040
|
+
return G(e, a) ? e[a].promise : Promise.resolve();
|
|
12009
12041
|
},
|
|
12010
12042
|
unmerge: (a) => Pa(t, e, a, !0),
|
|
12011
12043
|
value(a) {
|
|
12012
|
-
return
|
|
12044
|
+
return G(e, a) ? e[a].count : 0;
|
|
12013
12045
|
}
|
|
12014
12046
|
};
|
|
12015
12047
|
}
|
|
12016
12048
|
function Sl(e, t, a, n, i = 0) {
|
|
12017
|
-
if (n = jl(n || a), !
|
|
12049
|
+
if (n = jl(n || a), !G(t, a)) {
|
|
12018
12050
|
const r = {
|
|
12019
12051
|
condition: n,
|
|
12020
12052
|
count: 0,
|
|
@@ -12063,7 +12095,7 @@ function Pa(e, t, a, n = !1) {
|
|
|
12063
12095
|
}
|
|
12064
12096
|
}
|
|
12065
12097
|
}
|
|
12066
|
-
var la = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), ca =
|
|
12098
|
+
var la = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), ca = Gn();
|
|
12067
12099
|
function Fl(e) {
|
|
12068
12100
|
e.props.id && (la.set(e.props.id, e), mt.set(e, e.props.id), ca(e, {
|
|
12069
12101
|
payload: e,
|
|
@@ -12086,14 +12118,14 @@ function Ol(e) {
|
|
|
12086
12118
|
function nt(e) {
|
|
12087
12119
|
return la.get(e);
|
|
12088
12120
|
}
|
|
12089
|
-
function
|
|
12121
|
+
function Vl(e, t) {
|
|
12090
12122
|
return ca.on(e, t);
|
|
12091
12123
|
}
|
|
12092
12124
|
function Wt(e, t, a) {
|
|
12093
12125
|
let n = !0;
|
|
12094
12126
|
return t in e.config._t ? n = !1 : e.emit(`config:${t}`, a, !1), t in e.props || (e.emit("prop", { prop: t, value: a }), e.emit(`prop:${t}`, a)), n;
|
|
12095
12127
|
}
|
|
12096
|
-
function
|
|
12128
|
+
function Gl(e = {}) {
|
|
12097
12129
|
const t = /* @__PURE__ */ new Set(), a = {
|
|
12098
12130
|
...e,
|
|
12099
12131
|
_add: (i) => t.add(i),
|
|
@@ -12147,7 +12179,7 @@ var El = {
|
|
|
12147
12179
|
delimiter: ".",
|
|
12148
12180
|
delay: 0,
|
|
12149
12181
|
locale: "en",
|
|
12150
|
-
rootClasses: (e) => ({ [`formkit-${
|
|
12182
|
+
rootClasses: (e) => ({ [`formkit-${Vn(e)}`]: !0 })
|
|
12151
12183
|
}, Nn = Symbol("index"), Ut = Symbol("removed"), zt = Symbol("moved"), qn = Symbol("inserted");
|
|
12152
12184
|
function Yl(e) {
|
|
12153
12185
|
return e.type === "list" && Array.isArray(e._value);
|
|
@@ -12347,7 +12379,7 @@ function _l(e, t, a) {
|
|
|
12347
12379
|
const s = { ...e.props.attrs };
|
|
12348
12380
|
e.props._emit = !1;
|
|
12349
12381
|
for (const m in s) {
|
|
12350
|
-
const b =
|
|
12382
|
+
const b = Ge(m);
|
|
12351
12383
|
n.includes(b) && (e.props[b] = s[m], delete s[m]);
|
|
12352
12384
|
}
|
|
12353
12385
|
Array.isArray(a) || n.forEach((m) => {
|
|
@@ -12577,7 +12609,7 @@ function vc(e) {
|
|
|
12577
12609
|
var A, B, I, D;
|
|
12578
12610
|
const [s, l] = r;
|
|
12579
12611
|
let m;
|
|
12580
|
-
|
|
12612
|
+
G(t, l) ? (m = Reflect.get(...r), (A = i[l]) != null && A.boolean && (m = Al(m))) : a && typeof l == "string" && a.config[l] !== void 0 ? (m = a.config[l], l === "mergeStrategy" && (a == null ? void 0 : a.type) === "input" && bt(m) && a.name in m && (m = m[a.name])) : m = (B = i[l]) == null ? void 0 : B.default;
|
|
12581
12613
|
const b = (I = i[l]) == null ? void 0 : I.getter;
|
|
12582
12614
|
return (D = i[l]) != null && D.boolean && (m = !!m), b ? b(m, a) : m;
|
|
12583
12615
|
},
|
|
@@ -12616,7 +12648,7 @@ function kc(e) {
|
|
|
12616
12648
|
const t = Xn(e), a = Kn(e.config || {}, e.parent);
|
|
12617
12649
|
return {
|
|
12618
12650
|
_d: 0,
|
|
12619
|
-
_e:
|
|
12651
|
+
_e: Gn(),
|
|
12620
12652
|
uid: Symbol(),
|
|
12621
12653
|
_resolve: !1,
|
|
12622
12654
|
_tmo: !1,
|
|
@@ -12694,13 +12726,13 @@ function Mc(e) {
|
|
|
12694
12726
|
return Dc(n, t);
|
|
12695
12727
|
}
|
|
12696
12728
|
function Zt(e) {
|
|
12697
|
-
return typeof e != "string" &&
|
|
12729
|
+
return typeof e != "string" && G(e, "$el");
|
|
12698
12730
|
}
|
|
12699
12731
|
function Jt(e) {
|
|
12700
|
-
return typeof e != "string" &&
|
|
12732
|
+
return typeof e != "string" && G(e, "$cmp");
|
|
12701
12733
|
}
|
|
12702
12734
|
function Oe(e) {
|
|
12703
|
-
return !e || typeof e == "string" ? !1 :
|
|
12735
|
+
return !e || typeof e == "string" ? !1 : G(e, "if") && G(e, "then");
|
|
12704
12736
|
}
|
|
12705
12737
|
function Pc(e) {
|
|
12706
12738
|
return typeof e != "string" && "$formkit" in e;
|
|
@@ -12800,7 +12832,7 @@ function ce(e) {
|
|
|
12800
12832
|
}
|
|
12801
12833
|
function A(h, C = 0) {
|
|
12802
12834
|
const w = i[C], P = h.length, S = Object.keys(w);
|
|
12803
|
-
let M = 0, j = !1, p = null, y = "",
|
|
12835
|
+
let M = 0, j = !1, p = null, y = "", V = null, c, g = "", f = "", u = "", v = "", k = 0;
|
|
12804
12836
|
const L = (x, E) => {
|
|
12805
12837
|
x ? u += E : y += E;
|
|
12806
12838
|
};
|
|
@@ -12828,16 +12860,16 @@ function ce(e) {
|
|
|
12828
12860
|
let Q = "";
|
|
12829
12861
|
q && ([Q, x] = b(x + 2, h));
|
|
12830
12862
|
const le = p ? C : m(k, h, 0), me = m(x, h);
|
|
12831
|
-
le === -1 && me === -1 ? (y = B(u, -1, E, Q), typeof y == "string" && (y = u)) : p && (le >= me || me === -1) && C === le ? (
|
|
12863
|
+
le === -1 && me === -1 ? (y = B(u, -1, E, Q), typeof y == "string" && (y = u)) : p && (le >= me || me === -1) && C === le ? (V = p.bind(null, B(u, -1, E, Q)), p = null, y = "") : me > le && C === me ? y = B(u, -1, E, Q) : y += `(${u})${q ? `.${Q}` : ""}`, u = "";
|
|
12832
12864
|
} else
|
|
12833
12865
|
u += f;
|
|
12834
12866
|
else if (M === 0 && (c = l(S, f, x, h))) {
|
|
12835
|
-
x === 0 && te(103, [c, h]), x += c.length - 1, x === h.length - 1 && te(104, [c, h]), p ? y && (
|
|
12867
|
+
x === 0 && te(103, [c, h]), x += c.length - 1, x === h.length - 1 && te(104, [c, h]), p ? y && (V = p.bind(null, B(y, C)), p = w[c].bind(null, V), y = "") : V ? (p = w[c].bind(null, B(V, C)), V = null) : (p = w[c].bind(null, B(y, C)), y = "");
|
|
12836
12868
|
continue;
|
|
12837
12869
|
} else
|
|
12838
12870
|
L(M, f);
|
|
12839
12871
|
}
|
|
12840
|
-
return y && p && (p = p.bind(null, B(y, C))), p = !p &&
|
|
12872
|
+
return y && p && (p = p.bind(null, B(y, C))), p = !p && V ? V : p, !p && y && (p = (x, E) => typeof x == "function" ? x(E) : x, p = p.bind(null, B(y, C))), !p && !y && te(105, h), p;
|
|
12841
12873
|
}
|
|
12842
12874
|
function B(h, C, w, P) {
|
|
12843
12875
|
if (w) {
|
|
@@ -12848,8 +12880,8 @@ function ce(e) {
|
|
|
12848
12880
|
(y) => B(y, -1)
|
|
12849
12881
|
);
|
|
12850
12882
|
return (y) => {
|
|
12851
|
-
const
|
|
12852
|
-
return typeof
|
|
12883
|
+
const V = S(y);
|
|
12884
|
+
return typeof V != "function" ? (xe(150, w), V) : (M = V(
|
|
12853
12885
|
...p.map(
|
|
12854
12886
|
(c) => typeof c == "function" ? c(y) : c
|
|
12855
12887
|
)
|
|
@@ -12919,15 +12951,15 @@ function pt(e, t, a) {
|
|
|
12919
12951
|
function xc(e, t, ...a) {
|
|
12920
12952
|
const n = a.reduce((i, r) => {
|
|
12921
12953
|
if (!r)
|
|
12922
|
-
return
|
|
12954
|
+
return Vt(i);
|
|
12923
12955
|
const { $reset: s, ...l } = r;
|
|
12924
|
-
return
|
|
12956
|
+
return Vt(s ? l : Object.assign(i, l));
|
|
12925
12957
|
}, {});
|
|
12926
12958
|
return Object.keys(
|
|
12927
12959
|
e.hook.classes.dispatch({ property: t, classes: n }).classes
|
|
12928
12960
|
).filter((i) => n[i]).join(" ") || null;
|
|
12929
12961
|
}
|
|
12930
|
-
function
|
|
12962
|
+
function Vt(e) {
|
|
12931
12963
|
const t = "$remove:";
|
|
12932
12964
|
let a = !1;
|
|
12933
12965
|
const n = Object.keys(e).filter((i) => (e[i] && i.startsWith(t) && (a = !0), e[i]));
|
|
@@ -13012,7 +13044,7 @@ function Jn(e, [t, a], n, i) {
|
|
|
13012
13044
|
r.forEach((l) => {
|
|
13013
13045
|
if (e.receipts.has(s)) {
|
|
13014
13046
|
const m = e.receipts.get(s);
|
|
13015
|
-
m &&
|
|
13047
|
+
m && G(m, l) && (m[l].map(s.off), delete m[l], e.receipts.set(s, m));
|
|
13016
13048
|
}
|
|
13017
13049
|
});
|
|
13018
13050
|
});
|
|
@@ -13069,10 +13101,10 @@ ti.skipEmpty = !1;
|
|
|
13069
13101
|
var Fc = ti, Oc = function({ value: e }, t = !1) {
|
|
13070
13102
|
const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
|
|
13071
13103
|
return isNaN(n) ? !1 : n > a;
|
|
13072
|
-
},
|
|
13104
|
+
}, Vc = Oc, Gc = function({ value: e }, t = !1) {
|
|
13073
13105
|
const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
|
|
13074
13106
|
return isNaN(n) ? !1 : n > a || n === a;
|
|
13075
|
-
}, Ic =
|
|
13107
|
+
}, Ic = Gc, Ec = function(e, t) {
|
|
13076
13108
|
var i;
|
|
13077
13109
|
if (!t)
|
|
13078
13110
|
return !1;
|
|
@@ -13082,19 +13114,19 @@ var Fc = ti, Oc = function({ value: e }, t = !1) {
|
|
|
13082
13114
|
const a = {
|
|
13083
13115
|
default: new RegExp("^\\p{L}+$", "u"),
|
|
13084
13116
|
latin: /^[a-z]+$/i
|
|
13085
|
-
}, n =
|
|
13117
|
+
}, n = G(a, t) ? t : "default";
|
|
13086
13118
|
return a[n].test(String(e));
|
|
13087
13119
|
}, Rc = Hc, Nc = function({ value: e }, t = "default") {
|
|
13088
13120
|
const a = {
|
|
13089
13121
|
default: /^[\p{L} ]+$/u,
|
|
13090
13122
|
latin: /^[a-z ]+$/i
|
|
13091
|
-
}, n =
|
|
13123
|
+
}, n = G(a, t) ? t : "default";
|
|
13092
13124
|
return a[n].test(String(e));
|
|
13093
13125
|
}, qc = Nc, Qc = function({ value: e }, t = "default") {
|
|
13094
13126
|
const a = {
|
|
13095
13127
|
default: /^[0-9\p{L}]+$/u,
|
|
13096
13128
|
latin: /^[0-9a-z]+$/i
|
|
13097
|
-
}, n =
|
|
13129
|
+
}, n = G(a, t) ? t : "default";
|
|
13098
13130
|
return a[n].test(String(e));
|
|
13099
13131
|
}, Xc = Qc, Wc = function({ value: e }, t = !1) {
|
|
13100
13132
|
const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
|
|
@@ -13125,25 +13157,25 @@ var Fc = ti, Oc = function({ value: e }, t = !1) {
|
|
|
13125
13157
|
const a = {
|
|
13126
13158
|
default: new RegExp("\\p{L}", "u"),
|
|
13127
13159
|
latin: /[a-z]/i
|
|
13128
|
-
}, n =
|
|
13160
|
+
}, n = G(a, t) ? t : "default";
|
|
13129
13161
|
return a[n].test(String(e));
|
|
13130
13162
|
}, nu = au, iu = function({ value: e }, t = "default") {
|
|
13131
13163
|
const a = {
|
|
13132
13164
|
default: /[\p{L} ]/u,
|
|
13133
13165
|
latin: /[a-z ]/i
|
|
13134
|
-
}, n =
|
|
13166
|
+
}, n = G(a, t) ? t : "default";
|
|
13135
13167
|
return a[n].test(String(e));
|
|
13136
13168
|
}, ru = iu, su = function({ value: e }, t = "default") {
|
|
13137
13169
|
const a = {
|
|
13138
13170
|
default: /[0-9\p{L}]/u,
|
|
13139
13171
|
latin: /[0-9a-z]/i
|
|
13140
|
-
}, n =
|
|
13172
|
+
}, n = G(a, t) ? t : "default";
|
|
13141
13173
|
return a[n].test(String(e));
|
|
13142
13174
|
}, ou = su, lu = function({ value: e }, t = "default") {
|
|
13143
13175
|
const a = {
|
|
13144
13176
|
default: new RegExp("\\p{Ll}", "u"),
|
|
13145
13177
|
latin: /[a-z]/
|
|
13146
|
-
}, n =
|
|
13178
|
+
}, n = G(a, t) ? t : "default";
|
|
13147
13179
|
return a[n].test(String(e));
|
|
13148
13180
|
}, cu = lu, uu = function({ value: t }) {
|
|
13149
13181
|
return /[0-9]/.test(String(t));
|
|
@@ -13153,7 +13185,7 @@ var Fc = ti, Oc = function({ value: e }, t = !1) {
|
|
|
13153
13185
|
const a = {
|
|
13154
13186
|
default: new RegExp("\\p{Lu}", "u"),
|
|
13155
13187
|
latin: /[A-Z]/
|
|
13156
|
-
}, n =
|
|
13188
|
+
}, n = G(a, t) ? t : "default";
|
|
13157
13189
|
return a[n].test(String(e));
|
|
13158
13190
|
}, hu = pu, Au = function({ value: t }, a, n) {
|
|
13159
13191
|
a = a instanceof Date ? a.getTime() : Date.parse(a), n = n instanceof Date ? n.getTime() : Date.parse(n);
|
|
@@ -13188,7 +13220,7 @@ var Fc = ti, Oc = function({ value: e }, t = !1) {
|
|
|
13188
13220
|
allow_numeric: /^[0-9\p{Ll}]+$/u,
|
|
13189
13221
|
allow_numeric_dashes: /^[0-9\p{Ll}-]+$/u,
|
|
13190
13222
|
latin: /^[a-z]+$/
|
|
13191
|
-
}, n =
|
|
13223
|
+
}, n = G(a, t) ? t : "default";
|
|
13192
13224
|
return a[n].test(String(e));
|
|
13193
13225
|
}, Lu = Pu, xu = function({ value: t }, ...a) {
|
|
13194
13226
|
return a.some((n) => (typeof n == "string" && n.substr(0, 1) === "/" && n.substr(-1) === "/" && (n = new RegExp(n.substr(1, n.length - 2))), n instanceof RegExp ? n.test(String(t)) : n === t));
|
|
@@ -13196,9 +13228,9 @@ var Fc = ti, Oc = function({ value: e }, t = !1) {
|
|
|
13196
13228
|
return Array.isArray(t) ? t.length <= a : Number(t) <= Number(a);
|
|
13197
13229
|
}, Fu = ju, Ou = function({ value: t }, a = 1) {
|
|
13198
13230
|
return Array.isArray(t) ? t.length >= a : Number(t) >= Number(a);
|
|
13199
|
-
},
|
|
13231
|
+
}, Vu = Ou, Gu = function({ value: t }, ...a) {
|
|
13200
13232
|
return !a.some((n) => typeof n == "object" ? Z(n, t) : n === t);
|
|
13201
|
-
}, Iu =
|
|
13233
|
+
}, Iu = Gu, Eu = function({ value: t }) {
|
|
13202
13234
|
return !isNaN(t);
|
|
13203
13235
|
}, Yu = Eu, ai = function(e, ...t) {
|
|
13204
13236
|
return se(e.value) ? t.map((n) => {
|
|
@@ -13219,7 +13251,7 @@ var Ru = ni, Nu = function({ value: t }, ...a) {
|
|
|
13219
13251
|
const a = {
|
|
13220
13252
|
default: new RegExp("^\\p{Lu}+$", "u"),
|
|
13221
13253
|
latin: /^[A-Z]+$/
|
|
13222
|
-
}, n =
|
|
13254
|
+
}, n = G(a, t) ? t : "default";
|
|
13223
13255
|
return a[n].test(String(e));
|
|
13224
13256
|
}, Uu = Wu, zu = function({ value: t }, ...a) {
|
|
13225
13257
|
try {
|
|
@@ -13244,7 +13276,7 @@ const Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13244
13276
|
contains_numeric: du,
|
|
13245
13277
|
contains_symbol: gu,
|
|
13246
13278
|
contains_uppercase: hu,
|
|
13247
|
-
date_after:
|
|
13279
|
+
date_after: Vc,
|
|
13248
13280
|
date_after_node: Yc,
|
|
13249
13281
|
date_after_or_equal: Ic,
|
|
13250
13282
|
date_before: Uc,
|
|
@@ -13259,7 +13291,7 @@ const Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13259
13291
|
lowercase: Lu,
|
|
13260
13292
|
matches: Su,
|
|
13261
13293
|
max: Fu,
|
|
13262
|
-
min:
|
|
13294
|
+
min: Vu,
|
|
13263
13295
|
not: Iu,
|
|
13264
13296
|
number: Yu,
|
|
13265
13297
|
require_one: Hu,
|
|
@@ -13362,7 +13394,7 @@ function _u(e, t, a) {
|
|
|
13362
13394
|
}
|
|
13363
13395
|
function ii(e) {
|
|
13364
13396
|
const t = `rule_${e.name}`;
|
|
13365
|
-
e.messageObserver && (e.messageObserver = e.messageObserver.kill()),
|
|
13397
|
+
e.messageObserver && (e.messageObserver = e.messageObserver.kill()), G(e.observer.store, t) && e.observer.store.remove(t);
|
|
13366
13398
|
}
|
|
13367
13399
|
function $u(e, t) {
|
|
13368
13400
|
const a = e.observer;
|
|
@@ -13404,7 +13436,7 @@ function $u(e, t) {
|
|
|
13404
13436
|
));
|
|
13405
13437
|
}
|
|
13406
13438
|
function ed(e, t, a) {
|
|
13407
|
-
const n = e.props.validationMessages &&
|
|
13439
|
+
const n = e.props.validationMessages && G(e.props.validationMessages, t.name) ? e.props.validationMessages[t.name] : void 0;
|
|
13408
13440
|
return typeof n == "function" ? n(...a) : n;
|
|
13409
13441
|
}
|
|
13410
13442
|
function td(e, t) {
|
|
@@ -13435,7 +13467,7 @@ function Sa(e, t, a) {
|
|
|
13435
13467
|
const l = {};
|
|
13436
13468
|
if (typeof s == "string") {
|
|
13437
13469
|
const [m, b] = ld(s);
|
|
13438
|
-
|
|
13470
|
+
G(t, m) && (s = t[m], Object.assign(l, b));
|
|
13439
13471
|
}
|
|
13440
13472
|
return typeof s == "function" && i.push({
|
|
13441
13473
|
observer: xt(a),
|
|
@@ -13480,7 +13512,7 @@ function ld(e) {
|
|
|
13480
13512
|
i,
|
|
13481
13513
|
[r[1], r[2], r[3]].reduce(
|
|
13482
13514
|
(s, l) => (l && (xa.test(l) ? s.debounce = parseInt(l.substr(1, l.length - 1)) : l.split("").forEach(
|
|
13483
|
-
(m) =>
|
|
13515
|
+
(m) => G(a, m) && Object.assign(s, a[m])
|
|
13484
13516
|
)), s),
|
|
13485
13517
|
{ name: i }
|
|
13486
13518
|
)
|
|
@@ -13488,7 +13520,7 @@ function ld(e) {
|
|
|
13488
13520
|
}
|
|
13489
13521
|
function cd(e, t) {
|
|
13490
13522
|
return e.name || (e.name = t.ruleName || t.name), ["skipEmpty", "force", "debounce", "blocking"].reduce(
|
|
13491
|
-
(a, n) => (
|
|
13523
|
+
(a, n) => (G(t, n) && !G(a, n) && Object.assign(a, {
|
|
13492
13524
|
[n]: t[n]
|
|
13493
13525
|
}), a),
|
|
13494
13526
|
e
|
|
@@ -13856,7 +13888,7 @@ function pd(e) {
|
|
|
13856
13888
|
}), a.on("prop:label", () => a.store.touch()), a.on("prop:validationLabel", () => a.store.touch()), a.hook.text((r, s) => {
|
|
13857
13889
|
var m, b;
|
|
13858
13890
|
const l = ((m = r.meta) == null ? void 0 : m.messageKey) || r.key;
|
|
13859
|
-
if (
|
|
13891
|
+
if (G(i, r.type) && G(i[r.type], l)) {
|
|
13860
13892
|
const A = i[r.type][l];
|
|
13861
13893
|
typeof A == "function" ? r.value = Array.isArray((b = r.meta) == null ? void 0 : b.i18nArgs) ? A(...r.meta.i18nArgs) : A(r) : r.value = A;
|
|
13862
13894
|
}
|
|
@@ -13865,10 +13897,10 @@ function pd(e) {
|
|
|
13865
13897
|
};
|
|
13866
13898
|
}
|
|
13867
13899
|
function Oa(e, t) {
|
|
13868
|
-
if (
|
|
13900
|
+
if (G(t, e))
|
|
13869
13901
|
return e;
|
|
13870
13902
|
const [a] = e.split("-");
|
|
13871
|
-
if (
|
|
13903
|
+
if (G(t, a))
|
|
13872
13904
|
return a;
|
|
13873
13905
|
for (const n in t)
|
|
13874
13906
|
return n;
|
|
@@ -13881,8 +13913,8 @@ function hd(...e) {
|
|
|
13881
13913
|
), a = () => {
|
|
13882
13914
|
};
|
|
13883
13915
|
return a.library = function(n) {
|
|
13884
|
-
const i =
|
|
13885
|
-
|
|
13916
|
+
const i = Ge(n.props.type);
|
|
13917
|
+
G(t, i) && n.define(t[i]);
|
|
13886
13918
|
}, a;
|
|
13887
13919
|
}
|
|
13888
13920
|
var Ad = [
|
|
@@ -14102,7 +14134,7 @@ var bd = /* @__PURE__ */ O("actions", () => ({
|
|
|
14102
14134
|
attrs: {
|
|
14103
14135
|
class: "$classes.fileName"
|
|
14104
14136
|
}
|
|
14105
|
-
})),
|
|
14137
|
+
})), Va = /* @__PURE__ */ O("fileRemove", () => ({
|
|
14106
14138
|
$el: "button",
|
|
14107
14139
|
attrs: {
|
|
14108
14140
|
type: "button",
|
|
@@ -14172,7 +14204,7 @@ var bd = /* @__PURE__ */ O("actions", () => ({
|
|
|
14172
14204
|
attrs: {
|
|
14173
14205
|
label: "$option.group"
|
|
14174
14206
|
}
|
|
14175
|
-
})),
|
|
14207
|
+
})), Ga = /* @__PURE__ */ O("option", () => ({
|
|
14176
14208
|
$el: "option",
|
|
14177
14209
|
bind: "$option.attrs",
|
|
14178
14210
|
attrs: {
|
|
@@ -14294,10 +14326,10 @@ function Od(e, t) {
|
|
|
14294
14326
|
(i) => qe(Pe(e.props.options, t), i)
|
|
14295
14327
|
) : !1;
|
|
14296
14328
|
}
|
|
14297
|
-
function
|
|
14329
|
+
function Vd(e) {
|
|
14298
14330
|
e.on("created", () => {
|
|
14299
14331
|
var t, a;
|
|
14300
|
-
(t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = Fd.bind(null, e)), (a = e.context) != null && a.fns && (e.context.fns.isChecked = Od.bind(null, e)),
|
|
14332
|
+
(t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = Fd.bind(null, e)), (a = e.context) != null && a.fns && (e.context.fns.isChecked = Od.bind(null, e)), G(e.props, "onValue") || (e.props.onValue = !0), G(e.props, "offValue") || (e.props.offValue = !1);
|
|
14301
14333
|
}), e.hook.prop(Ai(e));
|
|
14302
14334
|
}
|
|
14303
14335
|
function Ie(e, t) {
|
|
@@ -14327,27 +14359,27 @@ function ht(e, t) {
|
|
|
14327
14359
|
);
|
|
14328
14360
|
};
|
|
14329
14361
|
}
|
|
14330
|
-
var
|
|
14362
|
+
var Gt = typeof window < "u";
|
|
14331
14363
|
function fi(e) {
|
|
14332
14364
|
e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
|
|
14333
14365
|
}
|
|
14334
14366
|
function Ea(e, t) {
|
|
14335
14367
|
t.target instanceof HTMLInputElement ? e === "dragover" && t.target.setAttribute("data-file-hover", "true") : t.preventDefault(), e === "drop" && fi(t);
|
|
14336
14368
|
}
|
|
14337
|
-
function
|
|
14338
|
-
ht("noFiles", "Select file")(e), ht("removeAll", "Remove all")(e), ht("remove")(e), e.addProps(["_hasMultipleFiles"]),
|
|
14369
|
+
function Gd(e) {
|
|
14370
|
+
ht("noFiles", "Select file")(e), ht("removeAll", "Remove all")(e), ht("remove")(e), e.addProps(["_hasMultipleFiles"]), Gt && (window._FormKit_File_Drop || (window.addEventListener(
|
|
14339
14371
|
"dragover",
|
|
14340
14372
|
Ea.bind(null, "dragover")
|
|
14341
14373
|
), window.addEventListener("drop", Ea.bind(null, "drop")), window.addEventListener("dragleave", fi), window._FormKit_File_Drop = !0)), e.hook.input((t, a) => a(Array.isArray(t) ? t : [])), e.on("input", ({ payload: t }) => {
|
|
14342
14374
|
e.props._hasMultipleFiles = Array.isArray(t) && t.length > 1 ? !0 : void 0;
|
|
14343
14375
|
}), e.on("reset", () => {
|
|
14344
|
-
if (e.props.id &&
|
|
14376
|
+
if (e.props.id && Gt) {
|
|
14345
14377
|
const t = document.getElementById(e.props.id);
|
|
14346
14378
|
t && (t.value = "");
|
|
14347
14379
|
}
|
|
14348
14380
|
}), e.on("created", () => {
|
|
14349
14381
|
Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (t) => {
|
|
14350
|
-
if (t.preventDefault(), e.input([]), e.props.id &&
|
|
14382
|
+
if (t.preventDefault(), e.input([]), e.props.id && Gt) {
|
|
14351
14383
|
const a = document.getElementById(e.props.id);
|
|
14352
14384
|
a && (a.value = ""), a == null || a.focus();
|
|
14353
14385
|
}
|
|
@@ -14418,7 +14450,7 @@ function Ed(e) {
|
|
|
14418
14450
|
e.props.submitAttrs = { ...e.props.submitAttrs, disabled: a };
|
|
14419
14451
|
}), e.on("created", () => {
|
|
14420
14452
|
var a;
|
|
14421
|
-
(a = e.context) != null && a.handlers && (e.context.handlers.submit = Id.bind(null, e)),
|
|
14453
|
+
(a = e.context) != null && a.handlers && (e.context.handlers.submit = Id.bind(null, e)), G(e.props, "actions") || (e.props.actions = !0);
|
|
14422
14454
|
}), e.on("prop:incompleteMessage", () => {
|
|
14423
14455
|
e.store.incomplete && bi(e);
|
|
14424
14456
|
}), e.on("settled:blocking", () => e.store.remove("incomplete"));
|
|
@@ -14683,7 +14715,7 @@ var Ra = {
|
|
|
14683
14715
|
*/
|
|
14684
14716
|
features: [
|
|
14685
14717
|
ma,
|
|
14686
|
-
|
|
14718
|
+
Vd,
|
|
14687
14719
|
Ie("decorator", "checkboxDecorator")
|
|
14688
14720
|
],
|
|
14689
14721
|
/**
|
|
@@ -14707,14 +14739,14 @@ var Ra = {
|
|
|
14707
14739
|
/* @__PURE__ */ Dd("$file.name"),
|
|
14708
14740
|
/* @__PURE__ */ ve(
|
|
14709
14741
|
"$value.length === 1",
|
|
14710
|
-
/* @__PURE__ */
|
|
14742
|
+
/* @__PURE__ */ Va(
|
|
14711
14743
|
/* @__PURE__ */ X("fileRemove"),
|
|
14712
14744
|
'$ui.remove.value + " " + $file.name'
|
|
14713
14745
|
)
|
|
14714
14746
|
)
|
|
14715
14747
|
)
|
|
14716
14748
|
),
|
|
14717
|
-
/* @__PURE__ */ ve("$value.length > 1", /* @__PURE__ */
|
|
14749
|
+
/* @__PURE__ */ ve("$value.length > 1", /* @__PURE__ */ Va("$ui.removeAll.value")),
|
|
14718
14750
|
/* @__PURE__ */ Td(/* @__PURE__ */ X("noFiles"), "$ui.noFiles.value"),
|
|
14719
14751
|
/* @__PURE__ */ fe(),
|
|
14720
14752
|
/* @__PURE__ */ X("suffix")
|
|
@@ -14740,7 +14772,7 @@ var Ra = {
|
|
|
14740
14772
|
* Additional features that should be added to your input
|
|
14741
14773
|
*/
|
|
14742
14774
|
features: [
|
|
14743
|
-
|
|
14775
|
+
Gd,
|
|
14744
14776
|
Ie("fileItem", "fileItem"),
|
|
14745
14777
|
Ie("fileRemove", "fileRemove"),
|
|
14746
14778
|
Ie("noFiles", "noFiles")
|
|
@@ -14938,8 +14970,8 @@ var Ra = {
|
|
|
14938
14970
|
/* @__PURE__ */ Ia(
|
|
14939
14971
|
/* @__PURE__ */ ve(
|
|
14940
14972
|
"$option.group",
|
|
14941
|
-
/* @__PURE__ */ Md(/* @__PURE__ */ Ia(/* @__PURE__ */
|
|
14942
|
-
/* @__PURE__ */
|
|
14973
|
+
/* @__PURE__ */ Md(/* @__PURE__ */ Ia(/* @__PURE__ */ Ga("$option.label"))),
|
|
14974
|
+
/* @__PURE__ */ Ga("$option.label")
|
|
14943
14975
|
)
|
|
14944
14976
|
)
|
|
14945
14977
|
)
|
|
@@ -15074,9 +15106,9 @@ var Ra = {
|
|
|
15074
15106
|
};
|
|
15075
15107
|
}), Ce = typeof window < "u" && typeof fetch < "u";
|
|
15076
15108
|
de = Ce ? /* @__PURE__ */ getComputedStyle(document.documentElement) : void 0;
|
|
15077
|
-
var
|
|
15109
|
+
var Ve = {}, It = {};
|
|
15078
15110
|
function om(e, t, a, n) {
|
|
15079
|
-
t && Object.assign(
|
|
15111
|
+
t && Object.assign(Ve, t), Ce && !Je && (de != null && de.getPropertyValue("--formkit-theme")) ? (Mt(), Je = !0) : e && !Je && Ce ? lm(e) : !Je && Ce && Mt();
|
|
15080
15112
|
const i = function(s) {
|
|
15081
15113
|
var l, m;
|
|
15082
15114
|
s.addProps(["iconLoader", "iconLoaderUrl"]), s.props.iconHandler = Na(
|
|
@@ -15114,15 +15146,15 @@ function Na(e, t) {
|
|
|
15114
15146
|
return a;
|
|
15115
15147
|
const n = a.startsWith("default:");
|
|
15116
15148
|
a = n ? a.split(":")[1] : a;
|
|
15117
|
-
const i = a in
|
|
15149
|
+
const i = a in Ve;
|
|
15118
15150
|
let r;
|
|
15119
15151
|
if (i)
|
|
15120
|
-
return
|
|
15152
|
+
return Ve[a];
|
|
15121
15153
|
if (!It[a]) {
|
|
15122
15154
|
if (r = cm(a), r = Ce && typeof r > "u" ? Promise.resolve(r) : r, r instanceof Promise)
|
|
15123
|
-
It[a] = r.then((s) => !s && typeof a == "string" && !n ? r = typeof e == "function" ? e(a) : um(a, t) : s).then((s) => (typeof a == "string" && (
|
|
15155
|
+
It[a] = r.then((s) => !s && typeof a == "string" && !n ? r = typeof e == "function" ? e(a) : um(a, t) : s).then((s) => (typeof a == "string" && (Ve[n ? `default:${a}` : a] = s), s));
|
|
15124
15156
|
else if (typeof r == "string")
|
|
15125
|
-
return
|
|
15157
|
+
return Ve[n ? `default:${a}` : a] = r, r;
|
|
15126
15158
|
}
|
|
15127
15159
|
return It[a];
|
|
15128
15160
|
};
|
|
@@ -15136,7 +15168,7 @@ function qa(e) {
|
|
|
15136
15168
|
if (t) {
|
|
15137
15169
|
const a = atob(t);
|
|
15138
15170
|
if (a.startsWith("<svg"))
|
|
15139
|
-
return
|
|
15171
|
+
return Ve[e] = a, a;
|
|
15140
15172
|
}
|
|
15141
15173
|
}
|
|
15142
15174
|
function um(e, t) {
|
|
@@ -15305,7 +15337,7 @@ var Am = (e, t) => {
|
|
|
15305
15337
|
return "";
|
|
15306
15338
|
const [v, k] = u;
|
|
15307
15339
|
let L = Reflect.get(...u);
|
|
15308
|
-
return !L && typeof k == "string" && !
|
|
15340
|
+
return !L && typeof k == "string" && !G(v, k) && !k.startsWith("__v") && xt(t).watch((E) => {
|
|
15309
15341
|
const q = typeof E.config.rootClasses == "function" ? E.config.rootClasses(k, E) : {}, Q = E.config.classes ? pt(k, E, E.config.classes[k]) : {}, le = pt(
|
|
15310
15342
|
k,
|
|
15311
15343
|
E,
|
|
@@ -15410,14 +15442,14 @@ var Am = (e, t) => {
|
|
|
15410
15442
|
}), t.on("settled", ({ payload: u }) => {
|
|
15411
15443
|
y.state.settled = u;
|
|
15412
15444
|
});
|
|
15413
|
-
function
|
|
15445
|
+
function V(u) {
|
|
15414
15446
|
(Array.isArray(u) ? u : Object.keys(u)).forEach((k) => {
|
|
15415
|
-
k =
|
|
15447
|
+
k = Ge(k), G(y, k) || (y[k] = t.props[k]), t.on(`prop:${k}`, ({ payload: L }) => {
|
|
15416
15448
|
y[k] = L;
|
|
15417
15449
|
});
|
|
15418
15450
|
});
|
|
15419
15451
|
}
|
|
15420
|
-
|
|
15452
|
+
V((() => {
|
|
15421
15453
|
const u = [
|
|
15422
15454
|
"__root",
|
|
15423
15455
|
"help",
|
|
@@ -15434,9 +15466,9 @@ var Am = (e, t) => {
|
|
|
15434
15466
|
return u.concat(k);
|
|
15435
15467
|
})());
|
|
15436
15468
|
function g(u) {
|
|
15437
|
-
u.props &&
|
|
15469
|
+
u.props && V(u.props);
|
|
15438
15470
|
}
|
|
15439
|
-
t.props.definition && g(t.props.definition), t.on("added-props", ({ payload: u }) =>
|
|
15471
|
+
t.props.definition && g(t.props.definition), t.on("added-props", ({ payload: u }) => V(u)), t.on("input", ({ payload: u }) => {
|
|
15440
15472
|
t.type !== "input" && !At(u) && !ya(u) ? p.value = Xt(u) : (p.value = u, lt(p));
|
|
15441
15473
|
}), t.on("commitRaw", ({ payload: u }) => {
|
|
15442
15474
|
t.type !== "input" && !At(u) && !ya(u) ? j.value = p.value = Xt(u) : (j.value = p.value = u, lt(j)), t.emit("modelUpdated");
|
|
@@ -15563,7 +15595,7 @@ function Mm(e, t) {
|
|
|
15563
15595
|
if (t in e || (e[t] = z(void 0)), e[t].value === void 0) {
|
|
15564
15596
|
e[t].value = null;
|
|
15565
15597
|
const a = nt(t);
|
|
15566
|
-
a && (e[t].value = a.context),
|
|
15598
|
+
a && (e[t].value = a.context), Vl(t, ({ payload: n }) => {
|
|
15567
15599
|
e[t].value = it(n) ? n.context : n;
|
|
15568
15600
|
});
|
|
15569
15601
|
}
|
|
@@ -15578,7 +15610,7 @@ function za(e, t, a) {
|
|
|
15578
15610
|
var P, S;
|
|
15579
15611
|
const h = B(ce(D.if));
|
|
15580
15612
|
let C = () => T, w = () => T;
|
|
15581
|
-
return typeof D.then == "object" ? w = r(D.then, void 0) : typeof D.then == "string" && ((P = D.then) != null && P.startsWith("$")) ? w = B(ce(D.then)) : w = () => D.then,
|
|
15613
|
+
return typeof D.then == "object" ? w = r(D.then, void 0) : typeof D.then == "string" && ((P = D.then) != null && P.startsWith("$")) ? w = B(ce(D.then)) : w = () => D.then, G(D, "else") && (typeof D.else == "object" ? C = r(D.else) : typeof D.else == "string" && ((S = D.else) != null && S.startsWith("$")) ? C = B(ce(D.else)) : C = () => D.else), () => h() ? w() : C();
|
|
15582
15614
|
}
|
|
15583
15615
|
function r(D, T, h = {}) {
|
|
15584
15616
|
const C = new Set(Object.keys(D || {})), w = T ? B(ce(T)) : () => ({}), P = [
|
|
@@ -15611,7 +15643,7 @@ function za(e, t, a) {
|
|
|
15611
15643
|
function s(D, T) {
|
|
15612
15644
|
let h = null, C = () => null, w = !1, P = null, S = null, M = null, j = !1;
|
|
15613
15645
|
const p = Lc(T);
|
|
15614
|
-
if (Zt(p) ? (h = p.$el, C = p.$el !== "text" ? r(p.attrs, p.bind) : () => null) : Jt(p) ? (typeof p.$cmp == "string" ?
|
|
15646
|
+
if (Zt(p) ? (h = p.$el, C = p.$el !== "text" ? r(p.attrs, p.bind) : () => null) : Jt(p) ? (typeof p.$cmp == "string" ? G(D, p.$cmp) ? h = D[p.$cmp] : (h = p.$cmp, j = !0) : h = p.$cmp, C = r(p.props, p.bind)) : Oe(p) && ([w, P, S] = n(D, p)), !Oe(p) && "if" in p ? w = B(ce(p.if)) : !Oe(p) && h === null && (w = () => !0), "children" in p && p.children)
|
|
15615
15647
|
if (typeof p.children == "string")
|
|
15616
15648
|
if (p.children.startsWith("$slots."))
|
|
15617
15649
|
h = h === "text" ? "slot" : h, P = B(ce(p.children));
|
|
@@ -15623,19 +15655,19 @@ function za(e, t, a) {
|
|
|
15623
15655
|
else if (Array.isArray(p.children))
|
|
15624
15656
|
P = b(D, p.children);
|
|
15625
15657
|
else {
|
|
15626
|
-
const [y,
|
|
15627
|
-
P = (g) => y && y() ?
|
|
15658
|
+
const [y, V, c] = n(D, p.children);
|
|
15659
|
+
P = (g) => y && y() ? V && V(g) : c && c(g);
|
|
15628
15660
|
}
|
|
15629
15661
|
if (Jt(p))
|
|
15630
15662
|
if (P) {
|
|
15631
15663
|
const y = P;
|
|
15632
|
-
P = (
|
|
15664
|
+
P = (V) => ({
|
|
15633
15665
|
default(c, g) {
|
|
15634
15666
|
var v, k, L, x;
|
|
15635
15667
|
const f = K;
|
|
15636
|
-
g && (K = g), c && ((v = ye.get(K)) == null || v.unshift(c)),
|
|
15637
|
-
const u = y(
|
|
15638
|
-
return c && ((L = ye.get(K)) == null || L.shift()),
|
|
15668
|
+
g && (K = g), c && ((v = ye.get(K)) == null || v.unshift(c)), V && ((k = ye.get(K)) == null || k.unshift(V));
|
|
15669
|
+
const u = y(V);
|
|
15670
|
+
return c && ((L = ye.get(K)) == null || L.shift()), V && ((x = ye.get(K)) == null || x.shift()), K = f, u;
|
|
15639
15671
|
}
|
|
15640
15672
|
}), P.slot = !0;
|
|
15641
15673
|
} else
|
|
@@ -15667,9 +15699,9 @@ function za(e, t, a) {
|
|
|
15667
15699
|
return Qi(String(P()));
|
|
15668
15700
|
if (C === "slot" && P)
|
|
15669
15701
|
return P(y);
|
|
15670
|
-
const
|
|
15702
|
+
const V = j ? Xi(C) : C, c = P != null && P.slot ? l(P, y) : null;
|
|
15671
15703
|
return tt(
|
|
15672
|
-
|
|
15704
|
+
V,
|
|
15673
15705
|
w(),
|
|
15674
15706
|
c || (P ? P(y) : [])
|
|
15675
15707
|
);
|
|
@@ -15677,9 +15709,9 @@ function za(e, t, a) {
|
|
|
15677
15709
|
return typeof S == "function" ? S(y) : S;
|
|
15678
15710
|
};
|
|
15679
15711
|
if (M) {
|
|
15680
|
-
const y = p, [
|
|
15712
|
+
const y = p, [V, c, g] = M;
|
|
15681
15713
|
p = () => {
|
|
15682
|
-
const f =
|
|
15714
|
+
const f = V(), u = Number.isFinite(f) ? Array(Number(f)).fill(0).map((x, E) => E) : f, v = [];
|
|
15683
15715
|
if (typeof u != "object")
|
|
15684
15716
|
return null;
|
|
15685
15717
|
const k = ye.get(K) || [], L = Array.isArray(u);
|
|
@@ -15725,7 +15757,7 @@ function za(e, t, a) {
|
|
|
15725
15757
|
}
|
|
15726
15758
|
function I(D, T) {
|
|
15727
15759
|
a ?? (a = Pi(t));
|
|
15728
|
-
const [h, C] =
|
|
15760
|
+
const [h, C] = G(et, a) ? et[a] : [b(e, t), A];
|
|
15729
15761
|
return Ti || (Ye[a] ?? (Ye[a] = 0), Ye[a]++, et[a] = [h, C]), C.forEach((w) => {
|
|
15730
15762
|
w(D, T);
|
|
15731
15763
|
}), () => (K = T, h());
|
|
@@ -15754,7 +15786,7 @@ function Ka(e, t, a) {
|
|
|
15754
15786
|
return e(
|
|
15755
15787
|
(n, i = {}) => n.reduce((r, s) => {
|
|
15756
15788
|
if (s.startsWith("slots.")) {
|
|
15757
|
-
const l = s.substring(6), m = () => t.slots &&
|
|
15789
|
+
const l = s.substring(6), m = () => t.slots && G(t.slots, l) && typeof t.slots[l] == "function";
|
|
15758
15790
|
if (i.if)
|
|
15759
15791
|
r[s] = m;
|
|
15760
15792
|
else if (t.slots) {
|
|
@@ -15891,7 +15923,7 @@ function Om(e, t) {
|
|
|
15891
15923
|
reset: Rn
|
|
15892
15924
|
};
|
|
15893
15925
|
}
|
|
15894
|
-
var ji = Symbol.for("FormKitOptions"),
|
|
15926
|
+
var ji = Symbol.for("FormKitOptions"), Vm = Symbol.for("FormKitConfig"), Gm = {
|
|
15895
15927
|
install(e, t) {
|
|
15896
15928
|
const a = Object.assign(
|
|
15897
15929
|
{
|
|
@@ -15899,8 +15931,8 @@ var ji = Symbol.for("FormKitOptions"), Gm = Symbol.for("FormKitConfig"), Vm = {
|
|
|
15899
15931
|
schemaAlias: "FormKitSchema"
|
|
15900
15932
|
},
|
|
15901
15933
|
typeof t == "function" ? t() : t
|
|
15902
|
-
), n =
|
|
15903
|
-
a.config = { rootConfig: n }, e.config.globalProperties.$formkit = Om(e, a), e.provide(ji, a), e.provide(
|
|
15934
|
+
), n = Gl(a.config || {});
|
|
15935
|
+
a.config = { rootConfig: n }, e.config.globalProperties.$formkit = Om(e, a), e.provide(ji, a), e.provide(Vm, n), typeof window < "u" && (globalThis.__FORMKIT_CONFIGS__ = (globalThis.__FORMKIT_CONFIGS__ || []).concat([n]));
|
|
15904
15936
|
}
|
|
15905
15937
|
}, Im = typeof window < "u", Yt = [
|
|
15906
15938
|
// Boolean props
|
|
@@ -15952,9 +15984,9 @@ function Hm(e, t, a = {}) {
|
|
|
15952
15984
|
__slots: t.slots
|
|
15953
15985
|
}, y = Da(je(t.attrs), Yt);
|
|
15954
15986
|
y.key || (y.key = Xe()), p.attrs = y;
|
|
15955
|
-
const
|
|
15956
|
-
for (const g in
|
|
15957
|
-
Em.includes(g) &&
|
|
15987
|
+
const V = Ba(je(t.attrs), Yt);
|
|
15988
|
+
for (const g in V)
|
|
15989
|
+
Em.includes(g) && V[g] === "" && (V[g] = !0), p[Ge(g)] = V[g];
|
|
15958
15990
|
const c = { props: {} };
|
|
15959
15991
|
return _a(c, e), Object.assign(p, c.props), typeof p.type != "string" && (p.definition = p.type, delete p.type), p;
|
|
15960
15992
|
}
|
|
@@ -15984,11 +16016,11 @@ function Hm(e, t, a = {}) {
|
|
|
15984
16016
|
T.on(
|
|
15985
16017
|
"added-props",
|
|
15986
16018
|
({ payload: p }) => {
|
|
15987
|
-
(Array.isArray(p) ? p : Object.keys(p ?? {})).forEach((
|
|
16019
|
+
(Array.isArray(p) ? p : Object.keys(p ?? {})).forEach((V) => h.value.add(V));
|
|
15988
16020
|
}
|
|
15989
16021
|
);
|
|
15990
16022
|
const C = be(
|
|
15991
|
-
() => Yt.concat([...h.value]).reduce((p, y) => (typeof y == "string" ? (p.push(
|
|
16023
|
+
() => Yt.concat([...h.value]).reduce((p, y) => (typeof y == "string" ? (p.push(Ge(y)), p.push(Vn(y))) : p.push(y), p), [])
|
|
15992
16024
|
);
|
|
15993
16025
|
pe(() => _a(T, e));
|
|
15994
16026
|
const w = je(e);
|
|
@@ -16011,12 +16043,12 @@ function Hm(e, t, a = {}) {
|
|
|
16011
16043
|
y(), P.delete(y);
|
|
16012
16044
|
});
|
|
16013
16045
|
for (const y in p) {
|
|
16014
|
-
const
|
|
16046
|
+
const V = Ge(y);
|
|
16015
16047
|
P.add(
|
|
16016
16048
|
_e(
|
|
16017
16049
|
() => t.attrs[y],
|
|
16018
16050
|
() => {
|
|
16019
|
-
T.props[
|
|
16051
|
+
T.props[V] = t.attrs[y];
|
|
16020
16052
|
}
|
|
16021
16053
|
)
|
|
16022
16054
|
);
|
|
@@ -16041,9 +16073,9 @@ function Hm(e, t, a = {}) {
|
|
|
16041
16073
|
}), T.type !== "input") {
|
|
16042
16074
|
const p = `${T.name}-prop`;
|
|
16043
16075
|
pe(() => {
|
|
16044
|
-
const y = e.inputErrors ?? {},
|
|
16045
|
-
|
|
16046
|
-
const c =
|
|
16076
|
+
const y = e.inputErrors ?? {}, V = Object.keys(y);
|
|
16077
|
+
V.length || T.clearErrors(!0, p);
|
|
16078
|
+
const c = V.reduce((g, f) => {
|
|
16047
16079
|
let u = y[f];
|
|
16048
16080
|
return typeof u == "string" && (u = [u]), Array.isArray(u) && (g[f] = u.map(
|
|
16049
16081
|
(v) => /* @__PURE__ */ ae({
|
|
@@ -16157,7 +16189,7 @@ function Jm(e) {
|
|
|
16157
16189
|
}
|
|
16158
16190
|
const ig = (e) => {
|
|
16159
16191
|
e.use(
|
|
16160
|
-
|
|
16192
|
+
Gm,
|
|
16161
16193
|
ha({
|
|
16162
16194
|
plugins: [Jm],
|
|
16163
16195
|
inputs: {
|
|
@@ -16188,7 +16220,7 @@ const ig = (e) => {
|
|
|
16188
16220
|
),
|
|
16189
16221
|
BaListRepeater: ne(
|
|
16190
16222
|
W(
|
|
16191
|
-
() => import("./ListRepeater-
|
|
16223
|
+
() => import("./ListRepeater-BjWvukJ6.js")
|
|
16192
16224
|
)
|
|
16193
16225
|
),
|
|
16194
16226
|
BaTextStyleList: ne(
|
|
@@ -16208,13 +16240,13 @@ const ig = (e) => {
|
|
|
16208
16240
|
),
|
|
16209
16241
|
BaImageUpload: ne(
|
|
16210
16242
|
W(
|
|
16211
|
-
() => import("./ImageUpload-
|
|
16243
|
+
() => import("./ImageUpload-XCqd_Lf1.js")
|
|
16212
16244
|
),
|
|
16213
16245
|
{ props: ["ignoreUpdate"] }
|
|
16214
16246
|
),
|
|
16215
16247
|
BaLinkButton: ne(
|
|
16216
16248
|
W(
|
|
16217
|
-
() => import("./LinkButton-
|
|
16249
|
+
() => import("./LinkButton-De-YNclu.js")
|
|
16218
16250
|
)
|
|
16219
16251
|
),
|
|
16220
16252
|
BaSwitch: ne(
|
|
@@ -16237,7 +16269,7 @@ const ig = (e) => {
|
|
|
16237
16269
|
"ko-KR": { ...dr, ...ns },
|
|
16238
16270
|
"vi-VN": { ...yr, ...cs },
|
|
16239
16271
|
"ms-MY": { ...Mr, ...hs }
|
|
16240
|
-
}, sg = W(() => import("./App-
|
|
16272
|
+
}, sg = W(() => import("./App-Ck5Q4Z44.js"));
|
|
16241
16273
|
export {
|
|
16242
16274
|
Si as F,
|
|
16243
16275
|
Li as a,
|