@feedmepos/mf-brand-app-builder 0.5.39-dev.1 → 0.5.40-prod
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-BkKpBANO.js → App-OEfPstzM.js} +8 -8
- package/dist/{AssetsSettings-DtZ6goQl.js → AssetsSettings-Do8rt2sU.js} +22 -22
- package/dist/{BrandkitView-BHxLHRHQ.js → BrandkitView-Cy22D0w9.js} +3643 -3503
- package/dist/{BuilderView-CXfguRqC.js → BuilderView-KDpmX5Hq.js} +7 -7
- package/dist/{CredentialSettings-3eVBw1x8.js → CredentialSettings-BB_Yroul.js} +1 -1
- package/dist/{ImageUpload-BPKZzWlC.js → ImageUpload-BKvBZ31W.js} +8 -8
- package/dist/{LinkButton-De-YNclu.js → LinkButton-DNXBKGCn.js} +1 -1
- package/dist/{ListRepeater--jgzApql.js → ListRepeater-zIG-jF4t.js} +1 -1
- package/dist/{ManagementSettings-WLFOtGtA.js → ManagementSettings-CgEqhej5.js} +6 -6
- package/dist/{ProjectView-Bq9eIS_m.js → ProjectView-DSLzbIBe.js} +3 -3
- package/dist/{app-BhQ6s4xM.js → app-esM7ujct.js} +241 -213
- package/dist/app.js +1 -1
- package/dist/client/merchant/src/app.d.ts +28 -0
- package/dist/{dayjs.min-26xBDzV6.js → dayjs.min-2a7QqJib.js} +1 -1
- package/dist/{image-D_Djf1PS.js → image-S7-2rbQS.js} +7 -7
- package/dist/{index-BA2J-Ffh.js → index-BpYD24Jn.js} +1 -1
- package/dist/{index-D0LOMBBD.js → index-C6_vWPi0.js} +27 -27
- package/dist/index-CP6_oC8N.js +134 -0
- package/dist/{index-Bk6TOZrx.js → index-CPs0rWCO.js} +15 -15
- package/dist/{main-D3hu_bbz.js → main-D7XKWEsG.js} +3 -3
- package/dist/package.json +1 -1
- package/dist/style.css +1 -1
- package/dist/{useBusinessFeatureFlag-6P4lr8pM.js → useBusinessFeatureFlag-BUVsmqVs.js} +1 -1
- package/package.json +1 -1
- package/dist/index-CVVQJJYY.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 Gi, watchEffect as pe, computed as be, h as tt, defineComponent as Pt, createBlock as Vi, renderSlot as Ii, createCommentVNode as Ei, unref as Me, openBlock as $a, createElementBlock as Yi, createElementVNode as xe, toDisplayString as fa, defineAsyncComponent as W, getCurrentInstance as Yt, 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 ba } from "vue";
|
|
2
2
|
import { useRoute as Ui } from "vue-router";
|
|
3
3
|
import { useCoreStore as tn, useI18n as an } from "@feedmepos/mf-common";
|
|
4
4
|
const zi = {
|
|
@@ -291,6 +291,10 @@ const zi = {
|
|
|
291
291
|
boardAlignmentDescription: "Align the order board when width is less than 100%.",
|
|
292
292
|
defaultImage: "Default image",
|
|
293
293
|
custom: "Custom",
|
|
294
|
+
selectPreset: "Preset Templates",
|
|
295
|
+
selectPresetDescription: "Choose a ready-made ODS setup.",
|
|
296
|
+
preset1: "Preset 1",
|
|
297
|
+
preset2: "Preset 2",
|
|
294
298
|
previewDescription: "Live preview at 1920 x 1080.",
|
|
295
299
|
statusTemplate: "Status Template",
|
|
296
300
|
statusTemplateDescription: "Choose a pre-built template for the horizontal status board layout. Non-default templates use a fixed design with hardcoded colors.",
|
|
@@ -1038,6 +1042,10 @@ const zi = {
|
|
|
1038
1042
|
boardAlignmentDescription: "当宽度小于 100% 时对齐订单面板。",
|
|
1039
1043
|
defaultImage: "默认图片",
|
|
1040
1044
|
custom: "自定义",
|
|
1045
|
+
selectPreset: "预设模板",
|
|
1046
|
+
selectPresetDescription: "先套用一个预设 ODS 配置,再继续调整下方的显示和布局设置。",
|
|
1047
|
+
preset1: "预设 1",
|
|
1048
|
+
preset2: "预设 2",
|
|
1041
1049
|
previewDescription: "1920 x 1080 实时预览。",
|
|
1042
1050
|
statusTemplate: "状态模板",
|
|
1043
1051
|
statusTemplateDescription: "为水平状态面板布局选择预设模板。非默认模板使用固定设计和硬编码颜色。",
|
|
@@ -1790,6 +1798,10 @@ const zi = {
|
|
|
1790
1798
|
boardAlignmentDescription: "當寬度小於 100% 時對齊訂單面板。",
|
|
1791
1799
|
defaultImage: "預設圖片",
|
|
1792
1800
|
custom: "自訂",
|
|
1801
|
+
selectPreset: "預設模板",
|
|
1802
|
+
selectPresetDescription: "先套用一個預設 ODS 設定,再繼續調整下方的顯示和佈局設定。",
|
|
1803
|
+
preset1: "預設 1",
|
|
1804
|
+
preset2: "預設 2",
|
|
1793
1805
|
previewDescription: "1920 x 1080 即時預覽。",
|
|
1794
1806
|
statusTemplate: "狀態模板",
|
|
1795
1807
|
statusTemplateDescription: "為水平狀態面板佈局選擇預設模板。非預設模板使用固定設計和硬編碼顏色。",
|
|
@@ -2537,6 +2549,10 @@ const zi = {
|
|
|
2537
2549
|
boardAlignmentDescription: "จัดตำแหน่งกระดานคำสั่งซื้อเมื่อความกว้างน้อยกว่า 100%",
|
|
2538
2550
|
defaultImage: "ภาพเริ่มต้น",
|
|
2539
2551
|
custom: "กำหนดเอง",
|
|
2552
|
+
selectPreset: "เทมเพลตพรีเซ็ต",
|
|
2553
|
+
selectPresetDescription: "เริ่มจากการตั้งค่า ODS สำเร็จรูป แล้วปรับแต่งการแสดงผลและเลย์เอาต์ด้านล่างต่อได้",
|
|
2554
|
+
preset1: "พรีเซ็ต 1",
|
|
2555
|
+
preset2: "พรีเซ็ต 2",
|
|
2540
2556
|
previewDescription: "ตัวอย่างแบบสดที่ 1920 x 1080",
|
|
2541
2557
|
statusTemplate: "เทมเพลตสถานะ",
|
|
2542
2558
|
statusTemplateDescription: "เลือกเทมเพลตสำเร็จรูปสำหรับเลย์เอาต์บอร์ดสถานะแนวนอน เทมเพลตที่ไม่ใช่ค่าเริ่มต้นจะใช้ดีไซน์คงที่พร้อมสีที่กำหนดไว้",
|
|
@@ -3444,6 +3460,10 @@ const zi = {
|
|
|
3444
3460
|
boardAlignmentDescription: "너비가 100% 미만일 때 주문 보드를 정렬합니다.",
|
|
3445
3461
|
defaultImage: "기본 이미지",
|
|
3446
3462
|
custom: "사용자 지정",
|
|
3463
|
+
selectPreset: "프리셋 템플릿",
|
|
3464
|
+
selectPresetDescription: "준비된 ODS 설정으로 시작한 뒤 아래에서 표시와 레이아웃을 세부 조정하세요.",
|
|
3465
|
+
preset1: "프리셋 1",
|
|
3466
|
+
preset2: "프리셋 2",
|
|
3447
3467
|
previewDescription: "1920 x 1080 실시간 미리보기.",
|
|
3448
3468
|
statusTemplate: "상태 템플릿",
|
|
3449
3469
|
statusTemplateDescription: "수평 상태 보드 레이아웃에 사용할 사전 제작 템플릿을 선택합니다. 기본이 아닌 템플릿은 하드코딩된 색상의 고정 디자인을 사용합니다.",
|
|
@@ -4357,6 +4377,10 @@ const zi = {
|
|
|
4357
4377
|
boardAlignmentDescription: "Căn chỉnh bảng đơn hàng khi chiều rộng nhỏ hơn 100%.",
|
|
4358
4378
|
defaultImage: "Hình mặc định",
|
|
4359
4379
|
custom: "Tùy chỉnh",
|
|
4380
|
+
selectPreset: "Mẫu preset",
|
|
4381
|
+
selectPresetDescription: "Bắt đầu với cấu hình ODS có sẵn, rồi tinh chỉnh hiển thị và bố cục bên dưới.",
|
|
4382
|
+
preset1: "Preset 1",
|
|
4383
|
+
preset2: "Preset 2",
|
|
4360
4384
|
previewDescription: "Xem trước trực tiếp tại 1920 x 1080.",
|
|
4361
4385
|
statusTemplate: "Mẫu trạng thái",
|
|
4362
4386
|
statusTemplateDescription: "Chọn mẫu có sẵn cho bố cục bảng trạng thái ngang. Các mẫu không mặc định sử dụng thiết kế cố định với màu sắc được mã hóa cứng.",
|
|
@@ -5261,6 +5285,10 @@ const zi = {
|
|
|
5261
5285
|
boardAlignmentDescription: "Jajarkan papan pesanan apabila lebarnya kurang daripada 100%.",
|
|
5262
5286
|
defaultImage: "Imej lalai",
|
|
5263
5287
|
custom: "Tersuai",
|
|
5288
|
+
selectPreset: "Templat preset",
|
|
5289
|
+
selectPresetDescription: "Mulakan dengan tetapan ODS siap guna, kemudian laraskan paparan dan susun atur di bawah.",
|
|
5290
|
+
preset1: "Preset 1",
|
|
5291
|
+
preset2: "Preset 2",
|
|
5264
5292
|
previewDescription: "Pratonton langsung pada 1920 x 1080.",
|
|
5265
5293
|
statusTemplate: "Templat Status",
|
|
5266
5294
|
statusTemplateDescription: "Pilih templat sedia bina untuk susun atur papan status mendatar. Templat bukan lalai menggunakan reka bentuk tetap dengan warna yang dikodkan.",
|
|
@@ -6336,7 +6364,7 @@ const zi = {
|
|
|
6336
6364
|
missions: "任务",
|
|
6337
6365
|
games: "游戏"
|
|
6338
6366
|
}
|
|
6339
|
-
},
|
|
6367
|
+
}, Or = {
|
|
6340
6368
|
member: {
|
|
6341
6369
|
welcome: "欢迎!",
|
|
6342
6370
|
signIn: "登录",
|
|
@@ -6518,7 +6546,7 @@ const zi = {
|
|
|
6518
6546
|
switchCountryDrawer: {
|
|
6519
6547
|
selectLocation: "选择您的位置"
|
|
6520
6548
|
}
|
|
6521
|
-
},
|
|
6549
|
+
}, Gr = {
|
|
6522
6550
|
orderDetails: {
|
|
6523
6551
|
title: "订单详情"
|
|
6524
6552
|
},
|
|
@@ -6767,7 +6795,7 @@ const zi = {
|
|
|
6767
6795
|
logoutAction: "退出登录",
|
|
6768
6796
|
cancelAction: "取消"
|
|
6769
6797
|
}
|
|
6770
|
-
},
|
|
6798
|
+
}, Vr = {
|
|
6771
6799
|
voucher: {
|
|
6772
6800
|
validFrom: "有效期自 {date}",
|
|
6773
6801
|
validTill: "有效期至 {date}",
|
|
@@ -6788,9 +6816,9 @@ const zi = {
|
|
|
6788
6816
|
}
|
|
6789
6817
|
}, Er = {
|
|
6790
6818
|
user: Fr,
|
|
6791
|
-
components:
|
|
6792
|
-
views:
|
|
6793
|
-
utils:
|
|
6819
|
+
components: Or,
|
|
6820
|
+
views: Gr,
|
|
6821
|
+
utils: Vr,
|
|
6794
6822
|
dialog: Ir
|
|
6795
6823
|
}, Yr = {
|
|
6796
6824
|
branches: {
|
|
@@ -9527,7 +9555,7 @@ var nn = { exports: {} };
|
|
|
9527
9555
|
}), i.d(n, "compare", function() {
|
|
9528
9556
|
return y;
|
|
9529
9557
|
}), i.d(n, "comparable", function() {
|
|
9530
|
-
return
|
|
9558
|
+
return G;
|
|
9531
9559
|
});
|
|
9532
9560
|
var l = s("Array"), m = s("Object"), b = s("Function");
|
|
9533
9561
|
function A(c, g) {
|
|
@@ -9751,7 +9779,7 @@ var nn = { exports: {} };
|
|
|
9751
9779
|
return void jt.push([Be, Ue[ze - 1], Fi]);
|
|
9752
9780
|
var Aa = A(Ue, ze);
|
|
9753
9781
|
if (l(Be) && isNaN(Number(Aa)))
|
|
9754
|
-
for (var Ft = 0,
|
|
9782
|
+
for (var Ft = 0, Oi = Be.length; Ft < Oi; Ft++) me(A(Be, Ft), Ue, ze, Be, jt);
|
|
9755
9783
|
else me(A(Be, Aa), Ue, ze + 1, Be, jt);
|
|
9756
9784
|
}(g, f, 0, g, k), k.length === 1) {
|
|
9757
9785
|
var L = k[0];
|
|
@@ -9824,7 +9852,7 @@ var nn = { exports: {} };
|
|
|
9824
9852
|
}), f;
|
|
9825
9853
|
}
|
|
9826
9854
|
function p(c, g) {
|
|
9827
|
-
var f = j(c, g = Object.assign({ compare: y, comparable:
|
|
9855
|
+
var f = j(c, g = Object.assign({ compare: y, comparable: G }, g));
|
|
9828
9856
|
return function(u, v, k) {
|
|
9829
9857
|
return D(f, u, v, k);
|
|
9830
9858
|
};
|
|
@@ -9836,8 +9864,8 @@ var nn = { exports: {} };
|
|
|
9836
9864
|
if (c < g) return -1;
|
|
9837
9865
|
}
|
|
9838
9866
|
}
|
|
9839
|
-
function
|
|
9840
|
-
return c instanceof Date ? c.getTime() : l(c) ? c.map(
|
|
9867
|
+
function G(c) {
|
|
9868
|
+
return c instanceof Date ? c.getTime() : l(c) ? c.map(G) : c && typeof c.toJSON == "function" ? c.toJSON() : c;
|
|
9841
9869
|
}
|
|
9842
9870
|
}
|
|
9843
9871
|
]);
|
|
@@ -9980,7 +10008,7 @@ function Fs(e) {
|
|
|
9980
10008
|
}), a = t.length > 1 ? "(?:" + t.join("|") + ")" : t[0];
|
|
9981
10009
|
return new RegExp("^" + a + "$");
|
|
9982
10010
|
}
|
|
9983
|
-
var
|
|
10011
|
+
var Os = /* @__PURE__ */ function() {
|
|
9984
10012
|
function e(a) {
|
|
9985
10013
|
this.actions = a.actions || a.action, this.subject = a.subject, this.fields = !a.fields || a.fields.length === 0 ? void 0 : Nt(a.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
9986
10014
|
writable: !0
|
|
@@ -10003,7 +10031,7 @@ var Gs = /* @__PURE__ */ function() {
|
|
|
10003
10031
|
function wa(e, t) {
|
|
10004
10032
|
return e === t || Array.isArray(t) && t.indexOf(e) !== -1;
|
|
10005
10033
|
}
|
|
10006
|
-
var
|
|
10034
|
+
var Gs = /* @__PURE__ */ function() {
|
|
10007
10035
|
e.addAlias = function(n, i) {
|
|
10008
10036
|
if (n === "manage" || wa("manage", i))
|
|
10009
10037
|
throw new Error('Cannot add alias for "manage" action because it represents any action');
|
|
@@ -10015,7 +10043,7 @@ var Vs = /* @__PURE__ */ function() {
|
|
|
10015
10043
|
n === void 0 && (n = {}), Object.defineProperty(this, "subjectName", {
|
|
10016
10044
|
value: n.subjectName || Bs
|
|
10017
10045
|
}), this[ee] = {
|
|
10018
|
-
RuleType: n.RuleType ||
|
|
10046
|
+
RuleType: n.RuleType || Os,
|
|
10019
10047
|
originalRules: a || [],
|
|
10020
10048
|
hasPerFieldRules: !1,
|
|
10021
10049
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
@@ -10111,7 +10139,7 @@ var Vs = /* @__PURE__ */ function() {
|
|
|
10111
10139
|
}
|
|
10112
10140
|
}]), e;
|
|
10113
10141
|
}(), o = /* @__PURE__ */ ((e) => (e.manage = "manage", e.create = "create", e.read = "read", e.update = "update", e.delete = "delete", e))(o || {}), d = /* @__PURE__ */ ((e) => (e.miniProgram_profile = "business::miniProgram::profile", e.miniProgram_brandkit = "business::miniProgram::brandkit", e.miniProgram_template = "business::miniProgram::template", e.miniProgram_publish = "business::miniProgram::publish", e.miniProgram_assets = "business::miniProgram::assets", e.miniProgram_nativeCredentials = "business::miniProgram::nativeCredentials", e.crm = "business::crm", e.crm_promotion = "business::crm::promotion", e.crm_voucher = "business::crm::voucher", e.crm_membership = "business::crm::membership", e.crm_analytic = "business::crm::analytic", e.crm_tier = "business::crm::tier", e.crm_title = "business::crm::title", e.crm_broadcast = "business::crm::broadcast", e.crm_point = "business::crm::point", e.crm_credit = "business::crm::credit", e.crm_experience = "business::crm::experience", e.crm_game = "business::crm::game", e.crm_mission = "business::crm::mission", e.crm_loyaltyMember = "business::crm::loyaltyMember", e.crm_loyaltySegment = "business::crm::loyaltySegment", e.crm_loyaltyCard = "business::crm::loyaltyCard", e.crm_referral = "business::crm::referral", e.crm_store = "business::crm::store", e.crm_transaction = "business::crm::transaction", e.crm_setting = "business::crm::setting", e.crm_bin = "business::crm::bin", e.payment = "business::payment", e.payment_payoutAccount = "business::payment::payoutAccount", e.payment_paymentOnboarding = "business::payment::paymentOnboarding", e.payment_transactions = "business::payment::transactions", e.payment_settlements = "business::payment::settlements", e.inventory_stock = "business::inventory::stock", e.inventory_stockBalance = "business::inventory::stockBalance", e.inventory_stockAdjustment = "business::inventory::stockAdjustment", e.inventory_unitCostHistory = "business::inventory::unitCostHistory", e.inventory_wastageTemplate = "business::inventory::wastageTemplate", e.inventory_closingHistory = "business::inventory::closingHistory", e.inventory_closingTemplate = "business::inventory::closingTemplate", e.inventory_closingDraft = "business::inventory::closingDraft", e.inventory_ingredient = "business::inventory::ingredient", e.inventory_ingredientGroup = "business::inventory::ingredientGroup", e.inventory_recipe = "business::inventory::recipe", e.inventory_unit = "business::inventory::unit", e.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", e.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", e.inventory_transferOut = "business::inventory::transferOut", e.inventory_surcharge = "business::inventory::surcharge", e.inventory_orderTemplate = "business::inventory::orderTemplate", e.inventory_supplier = "business::inventory::supplier", e.inventory_warehouse = "business::inventory::warehouse", e.inventory_publish = "business::inventory::publish", e.inventory_import = "business::inventory::import", e.inventory_integration = "business::inventory::integration", e.hrm = "business::hrm", e.hrm_employee = "business::hrm::employee", e.hrm_teamMember = "business::hrm::teamMember", e.hrm_auditLog = "business::hrm::auditLog", e.menu = "business::menu", e.menu_item = "business::menu::item", e.menu_catalog = "business::menu::catalog", e.menu_category = "business::menu::category", e.menu_subCategory = "business::menu::subCategory", e.menu_group = "business::menu::group", e.menu_takeaway = "business::menu::takeaway", e.menu_scheduler = "business::menu::scheduler", e.menu_variant = "business::menu::variant", e.menu_cookingGuide = "business::menu::cookingGuide", e.menu_printRoute = "business::menu::printRoute", e.menu_servingSequence = "business::menu::servingSequence", e.menu_settings = "business::menu::settings", e.menu_publish = "business::menu::publish", e.menu_menuManagement = "business::menu::menuManagement", e.menu_importExport = "business::menu::importExport", e.menu_unit = "business::menu::unit", e.menu_ingredient = "business::menu::ingredient", e.menu_recipe = "business::menu::recipe", e.restaurant = "business::restaurant", e.role = "business::role", e.mdm_deviceManagement = "business::mdm::deviceManagement", e.mdm_createDevice = "business::mdm::createDevice", e.mdm_deviceBinding = "business::mdm::deviceBinding", e.mdm_customerDisplay = "business::mdm::customerDisplay", e.eInvoice_management = "business::eInvoice::management", e.eInvoice_integration = "business::eInvoice::integration", e.profile = "business::profile", e.report_createReport = "business::report::createReport", e.report_accessInsight = "business::report::accessInsight", e.report_accessSetting = "business::report::accessSetting", e.report_accessIntegration = "business::report::accessIntegration", e.report_accessOverview = "business::report::accessOverview", e.report_reports_allDefaultReports = "business::report::allDefaultReports", e.report_reports_allCustomReports = "business::report::allCustomReports", e.operation_receipt = "business::operation::receipt", e.operation_tableManagement = "business::operation::tableManagement", e.operation_offlinePayment = "business::operation::offlinePayment", e.operation_reasonTemplate = "business::operation::reasonTemplate", e.operation_discountRule = "business::operation::discountRule", e.operation_serviceCharge = "business::operation::serviceCharge", e.operation_kitchenPrintTemplate = "business::operation::kitchenPrintTemplate", e))(d || {}), U = /* @__PURE__ */ ((e) => (e.profile = "business::profile", e.restaurant = "business::restaurant", e.menu = "business::menu", e.promotion = "business::promotion", e.voucher = "business::voucher", e.membership = "business::membership", e.stock = "business::stock", e.permission = "business::permission", e.role = "business::role", e.wastageTemplate = "business::wastageTemplate", e.closingTemplate = "business::closingTemplate", e.orderTemplate = "business::orderTemplate", e.ingredient = "business::ingredient", e.recipe = "business::recipe", e.unit = "business::unit", e.supplier = "business::supplier", e.warehouse = "business::warehouse", e.publish = "business::publish", e.integration = "business::integration", e.orderDraft = "business::orderDraft", e.unitCostHistory = "business::unitCostHistory", e))(U || {});
|
|
10114
|
-
const
|
|
10142
|
+
const Vs = "access-denied", ie = {
|
|
10115
10143
|
Action: o,
|
|
10116
10144
|
Subject: {
|
|
10117
10145
|
Business: d
|
|
@@ -11170,7 +11198,7 @@ function Do(e) {
|
|
|
11170
11198
|
}));
|
|
11171
11199
|
}
|
|
11172
11200
|
function Bo(e) {
|
|
11173
|
-
return new
|
|
11201
|
+
return new Gs(Do(e));
|
|
11174
11202
|
}
|
|
11175
11203
|
function jn(e, t, a) {
|
|
11176
11204
|
const n = Array.isArray(e) ? e : [e], i = Bo(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));
|
|
@@ -11202,7 +11230,7 @@ function Mo(e, t, a) {
|
|
|
11202
11230
|
evaluating: r = void 0,
|
|
11203
11231
|
shallow: s = !0,
|
|
11204
11232
|
onError: l = To
|
|
11205
|
-
} = n, m = z(!i), b = s ?
|
|
11233
|
+
} = n, m = z(!i), b = s ? Gi(t) : z(t);
|
|
11206
11234
|
let A = 0;
|
|
11207
11235
|
return pe(async (B) => {
|
|
11208
11236
|
if (!m.value)
|
|
@@ -11262,7 +11290,7 @@ async function Lo(e, t) {
|
|
|
11262
11290
|
return {
|
|
11263
11291
|
canAccess: !1,
|
|
11264
11292
|
message: n.message,
|
|
11265
|
-
redirectTo:
|
|
11293
|
+
redirectTo: Vs
|
|
11266
11294
|
};
|
|
11267
11295
|
}
|
|
11268
11296
|
return {
|
|
@@ -11295,16 +11323,16 @@ const So = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11295
11323
|
subtitle: "UH OH! You don't have permission to access this page."
|
|
11296
11324
|
}, Fo = {
|
|
11297
11325
|
noPermission: jo
|
|
11298
|
-
},
|
|
11326
|
+
}, Oo = {
|
|
11299
11327
|
title: "访问被拒绝",
|
|
11300
11328
|
subtitle: "哎呀!您没有权限访问此页面。"
|
|
11329
|
+
}, Go = {
|
|
11330
|
+
noPermission: Oo
|
|
11301
11331
|
}, Vo = {
|
|
11302
|
-
noPermission: Go
|
|
11303
|
-
}, Oo = {
|
|
11304
11332
|
title: "存取被拒絕",
|
|
11305
11333
|
subtitle: "哎呀!您沒有權限存取此頁面。"
|
|
11306
11334
|
}, Io = {
|
|
11307
|
-
noPermission:
|
|
11335
|
+
noPermission: Vo
|
|
11308
11336
|
}, Eo = {
|
|
11309
11337
|
title: "การเข้าถึงถูกปฏิเสธ",
|
|
11310
11338
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
@@ -11316,7 +11344,7 @@ const So = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11316
11344
|
const { t } = an({
|
|
11317
11345
|
messages: {
|
|
11318
11346
|
"en-US": Fo,
|
|
11319
|
-
"zh-CN":
|
|
11347
|
+
"zh-CN": Go,
|
|
11320
11348
|
"zh-Hant": Io,
|
|
11321
11349
|
"th-TH": Yo
|
|
11322
11350
|
}
|
|
@@ -11340,7 +11368,7 @@ const So = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11340
11368
|
__name: "PermissionWrapper",
|
|
11341
11369
|
setup(e) {
|
|
11342
11370
|
const t = xo();
|
|
11343
|
-
return (a, n) => Me(t) === Me(qt).Denied ? ($a(),
|
|
11371
|
+
return (a, n) => Me(t) === Me(qt).Denied ? ($a(), Vi(Wo, { key: 0 })) : Me(t) === Me(qt).Allowed ? Ii(a.$slots, "default", { key: 1 }) : Ei("", !0);
|
|
11344
11372
|
}
|
|
11345
11373
|
});
|
|
11346
11374
|
function qe(e) {
|
|
@@ -11388,23 +11416,23 @@ const at = (e) => ({
|
|
|
11388
11416
|
})
|
|
11389
11417
|
}
|
|
11390
11418
|
}), Ko = qe(
|
|
11391
|
-
W(() => import("./BrandkitView-
|
|
11419
|
+
W(() => import("./BrandkitView-Cy22D0w9.js"))
|
|
11392
11420
|
), Zo = qe(
|
|
11393
|
-
W(() => import("./ProjectView-
|
|
11421
|
+
W(() => import("./ProjectView-DSLzbIBe.js"))
|
|
11394
11422
|
), Jo = qe(
|
|
11395
|
-
W(() => import("./BuilderView-
|
|
11423
|
+
W(() => import("./BuilderView-KDpmX5Hq.js"))
|
|
11396
11424
|
), _o = qe(
|
|
11397
11425
|
W(
|
|
11398
|
-
() => import("./AssetsSettings-
|
|
11426
|
+
() => import("./AssetsSettings-Do8rt2sU.js")
|
|
11399
11427
|
)
|
|
11400
11428
|
), $o = qe(
|
|
11401
11429
|
W(
|
|
11402
|
-
() => import("./ManagementSettings-
|
|
11430
|
+
() => import("./ManagementSettings-CgEqhej5.js")
|
|
11403
11431
|
)
|
|
11404
11432
|
);
|
|
11405
11433
|
qe(
|
|
11406
11434
|
W(
|
|
11407
|
-
() => import("./CredentialSettings-
|
|
11435
|
+
() => import("./CredentialSettings-BB_Yroul.js")
|
|
11408
11436
|
)
|
|
11409
11437
|
);
|
|
11410
11438
|
const el = at([
|
|
@@ -11479,7 +11507,7 @@ const nl = [], eg = [
|
|
|
11479
11507
|
redirect: { name: "brandkit" }
|
|
11480
11508
|
}
|
|
11481
11509
|
];
|
|
11482
|
-
var
|
|
11510
|
+
var On = [
|
|
11483
11511
|
"__key",
|
|
11484
11512
|
"__init",
|
|
11485
11513
|
"__shim",
|
|
@@ -11493,7 +11521,7 @@ function Xe() {
|
|
|
11493
11521
|
function il(e, t) {
|
|
11494
11522
|
return [...e instanceof Set ? e : new Set(e)];
|
|
11495
11523
|
}
|
|
11496
|
-
function
|
|
11524
|
+
function V(e, t) {
|
|
11497
11525
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
11498
11526
|
}
|
|
11499
11527
|
function Z(e, t, a = !0, n = ["__key"]) {
|
|
@@ -11576,7 +11604,7 @@ var Ce = /* @__NO_SIDE_EFFECTS__ */ (e, t, a = !1, n = !1) => {
|
|
|
11576
11604
|
if (typeof t == "string")
|
|
11577
11605
|
return t;
|
|
11578
11606
|
for (const r in e)
|
|
11579
|
-
if (
|
|
11607
|
+
if (V(t, r) && (t[r] !== void 0 || !n)) {
|
|
11580
11608
|
if (a && Array.isArray(e[r]) && Array.isArray(t[r])) {
|
|
11581
11609
|
i[r] = e[r].concat(t[r]);
|
|
11582
11610
|
continue;
|
|
@@ -11592,7 +11620,7 @@ var Ce = /* @__NO_SIDE_EFFECTS__ */ (e, t, a = !1, n = !1) => {
|
|
|
11592
11620
|
} else
|
|
11593
11621
|
i[r] = e[r];
|
|
11594
11622
|
for (const r in t)
|
|
11595
|
-
!
|
|
11623
|
+
!V(i, r) && t[r] !== void 0 && (i[r] = t[r]);
|
|
11596
11624
|
return i;
|
|
11597
11625
|
};
|
|
11598
11626
|
function ll(e) {
|
|
@@ -11643,19 +11671,19 @@ function Ba(e, t) {
|
|
|
11643
11671
|
n.some((r) => r.test(i)) && (a[i] = e[i]);
|
|
11644
11672
|
}), a;
|
|
11645
11673
|
}
|
|
11646
|
-
function
|
|
11674
|
+
function Ge(e) {
|
|
11647
11675
|
return e.replace(
|
|
11648
11676
|
/-([a-z0-9])/gi,
|
|
11649
11677
|
(t, a) => a.toUpperCase()
|
|
11650
11678
|
);
|
|
11651
11679
|
}
|
|
11652
|
-
function
|
|
11680
|
+
function Gn(e) {
|
|
11653
11681
|
return e.replace(
|
|
11654
11682
|
/([a-z0-9])([A-Z])/g,
|
|
11655
11683
|
(t, a, n) => a + "-" + n.toLowerCase()
|
|
11656
11684
|
).replace(" ", "-").toLowerCase();
|
|
11657
11685
|
}
|
|
11658
|
-
function Qt(e, t =
|
|
11686
|
+
function Qt(e, t = On) {
|
|
11659
11687
|
if (e !== null && typeof e == "object") {
|
|
11660
11688
|
let a;
|
|
11661
11689
|
if (Array.isArray(e) ? a = [...e] : Ye(e) && (a = { ...e }), a)
|
|
@@ -11663,7 +11691,7 @@ function Qt(e, t = Gn) {
|
|
|
11663
11691
|
}
|
|
11664
11692
|
return e;
|
|
11665
11693
|
}
|
|
11666
|
-
function He(e, t =
|
|
11694
|
+
function He(e, t = On) {
|
|
11667
11695
|
if (e === null || e instanceof RegExp || e instanceof Date || e instanceof Map || e instanceof Set || typeof File == "function" && e instanceof File)
|
|
11668
11696
|
return e;
|
|
11669
11697
|
let a;
|
|
@@ -11685,7 +11713,7 @@ function dl(e, t) {
|
|
|
11685
11713
|
let n = e;
|
|
11686
11714
|
for (const i in a) {
|
|
11687
11715
|
const r = a[i];
|
|
11688
|
-
if (
|
|
11716
|
+
if (V(n, r) && (n = n[r]), +i === a.length - 1)
|
|
11689
11717
|
return n;
|
|
11690
11718
|
if (!n || typeof n != "object")
|
|
11691
11719
|
return null;
|
|
@@ -11735,7 +11763,7 @@ function ia() {
|
|
|
11735
11763
|
r > -1 && e.splice(r, 1);
|
|
11736
11764
|
}, a;
|
|
11737
11765
|
}
|
|
11738
|
-
function
|
|
11766
|
+
function Vn() {
|
|
11739
11767
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
11740
11768
|
let a;
|
|
11741
11769
|
const n = (i, r) => {
|
|
@@ -11834,7 +11862,7 @@ function yl(e = !1) {
|
|
|
11834
11862
|
const l = new Proxy(t, {
|
|
11835
11863
|
get(...m) {
|
|
11836
11864
|
const [b, A] = m;
|
|
11837
|
-
return A === "buffer" ? n : A === "_b" ? i : A === "_m" ? r : A === "_r" ? s :
|
|
11865
|
+
return A === "buffer" ? n : A === "_b" ? i : A === "_m" ? r : A === "_r" ? s : V(Ta, A) ? Ta[A].bind(
|
|
11838
11866
|
null,
|
|
11839
11867
|
t,
|
|
11840
11868
|
l,
|
|
@@ -11855,7 +11883,7 @@ function vl(e, t, a, n) {
|
|
|
11855
11883
|
const r = n.value;
|
|
11856
11884
|
n.value = a.t(n), n.value !== r && (n.meta.locale = a.props.locale);
|
|
11857
11885
|
}
|
|
11858
|
-
const i = `message-${
|
|
11886
|
+
const i = `message-${V(e, n.key) ? "updated" : "added"}`;
|
|
11859
11887
|
e[n.key] = Object.freeze(
|
|
11860
11888
|
a.hook.message.dispatch(n)
|
|
11861
11889
|
), a.emit(i, n);
|
|
@@ -11869,7 +11897,7 @@ function wl(e, t) {
|
|
|
11869
11897
|
}
|
|
11870
11898
|
}
|
|
11871
11899
|
function In(e, t, a, n) {
|
|
11872
|
-
if (
|
|
11900
|
+
if (V(e, n)) {
|
|
11873
11901
|
const i = e[n];
|
|
11874
11902
|
delete e[n], a.emit("message-removed", i);
|
|
11875
11903
|
}
|
|
@@ -11956,16 +11984,16 @@ function Pl() {
|
|
|
11956
11984
|
},
|
|
11957
11985
|
merge: (a) => Pa(t, e, a),
|
|
11958
11986
|
settled(a) {
|
|
11959
|
-
return
|
|
11987
|
+
return V(e, a) ? e[a].promise : Promise.resolve();
|
|
11960
11988
|
},
|
|
11961
11989
|
unmerge: (a) => Pa(t, e, a, !0),
|
|
11962
11990
|
value(a) {
|
|
11963
|
-
return
|
|
11991
|
+
return V(e, a) ? e[a].count : 0;
|
|
11964
11992
|
}
|
|
11965
11993
|
};
|
|
11966
11994
|
}
|
|
11967
11995
|
function Ll(e, t, a, n, i = 0) {
|
|
11968
|
-
if (n = xl(n || a), !
|
|
11996
|
+
if (n = xl(n || a), !V(t, a)) {
|
|
11969
11997
|
const r = {
|
|
11970
11998
|
condition: n,
|
|
11971
11999
|
count: 0,
|
|
@@ -12014,7 +12042,7 @@ function Pa(e, t, a, n = !1) {
|
|
|
12014
12042
|
}
|
|
12015
12043
|
}
|
|
12016
12044
|
}
|
|
12017
|
-
var oa = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), la =
|
|
12045
|
+
var oa = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), la = Vn();
|
|
12018
12046
|
function Sl(e) {
|
|
12019
12047
|
e.props.id && (oa.set(e.props.id, e), mt.set(e, e.props.id), la(e, {
|
|
12020
12048
|
payload: e,
|
|
@@ -12044,7 +12072,7 @@ function Xt(e, t, a) {
|
|
|
12044
12072
|
let n = !0;
|
|
12045
12073
|
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;
|
|
12046
12074
|
}
|
|
12047
|
-
function
|
|
12075
|
+
function Ol(e = {}) {
|
|
12048
12076
|
const t = /* @__PURE__ */ new Set(), a = {
|
|
12049
12077
|
...e,
|
|
12050
12078
|
_add: (i) => t.add(i),
|
|
@@ -12065,7 +12093,7 @@ function Hn(e, t) {
|
|
|
12065
12093
|
}
|
|
12066
12094
|
Le(151, e);
|
|
12067
12095
|
}
|
|
12068
|
-
function
|
|
12096
|
+
function Gl(e) {
|
|
12069
12097
|
const t = (a) => {
|
|
12070
12098
|
for (const n in a.store) {
|
|
12071
12099
|
const i = a.store[n];
|
|
@@ -12090,15 +12118,15 @@ function Rn(e, t) {
|
|
|
12090
12118
|
!1
|
|
12091
12119
|
), a.type !== "input" && t && !se(t) && $e(t) && a.walk((s) => {
|
|
12092
12120
|
s.props.initial = $e(s.value) ? Re(s.value) : s.value, s.props._init = s.props.initial;
|
|
12093
|
-
}), a._e.play(a),
|
|
12121
|
+
}), a._e.play(a), Gl(a), a.emit("reset", a), a;
|
|
12094
12122
|
}
|
|
12095
12123
|
Le(152, e);
|
|
12096
12124
|
}
|
|
12097
|
-
var
|
|
12125
|
+
var Vl = {
|
|
12098
12126
|
delimiter: ".",
|
|
12099
12127
|
delay: 0,
|
|
12100
12128
|
locale: "en",
|
|
12101
|
-
rootClasses: (e) => ({ [`formkit-${
|
|
12129
|
+
rootClasses: (e) => ({ [`formkit-${Gn(e)}`]: !0 })
|
|
12102
12130
|
}, Nn = Symbol("index"), Wt = Symbol("removed"), Ut = Symbol("moved"), qn = Symbol("inserted");
|
|
12103
12131
|
function Il(e) {
|
|
12104
12132
|
return e.type === "list" && Array.isArray(e._value);
|
|
@@ -12298,7 +12326,7 @@ function Zl(e, t, a) {
|
|
|
12298
12326
|
const s = { ...e.props.attrs };
|
|
12299
12327
|
e.props._emit = !1;
|
|
12300
12328
|
for (const m in s) {
|
|
12301
|
-
const b =
|
|
12329
|
+
const b = Ge(m);
|
|
12302
12330
|
n.includes(b) && (e.props[b] = s[m], delete s[m]);
|
|
12303
12331
|
}
|
|
12304
12332
|
Array.isArray(a) || n.forEach((m) => {
|
|
@@ -12473,7 +12501,7 @@ function Kn(e = {}, t) {
|
|
|
12473
12501
|
if (s !== void 0)
|
|
12474
12502
|
return s;
|
|
12475
12503
|
}
|
|
12476
|
-
return i === "delay" && (a == null ? void 0 : a.type) === "input" ? 20 :
|
|
12504
|
+
return i === "delay" && (a == null ? void 0 : a.type) === "input" ? 20 : Vl[i];
|
|
12477
12505
|
},
|
|
12478
12506
|
set(...n) {
|
|
12479
12507
|
const i = n[1], r = n[2];
|
|
@@ -12528,7 +12556,7 @@ function bc(e) {
|
|
|
12528
12556
|
var A, B, I, D;
|
|
12529
12557
|
const [s, l] = r;
|
|
12530
12558
|
let m;
|
|
12531
|
-
|
|
12559
|
+
V(t, l) ? (m = Reflect.get(...r), (A = i[l]) != null && A.boolean && (m = pl(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;
|
|
12532
12560
|
const b = (I = i[l]) == null ? void 0 : I.getter;
|
|
12533
12561
|
return (D = i[l]) != null && D.boolean && (m = !!m), b ? b(m, a) : m;
|
|
12534
12562
|
},
|
|
@@ -12567,7 +12595,7 @@ function wc(e) {
|
|
|
12567
12595
|
const t = Xn(e), a = Kn(e.config || {}, e.parent);
|
|
12568
12596
|
return {
|
|
12569
12597
|
_d: 0,
|
|
12570
|
-
_e:
|
|
12598
|
+
_e: Vn(),
|
|
12571
12599
|
uid: Symbol(),
|
|
12572
12600
|
_resolve: !1,
|
|
12573
12601
|
_tmo: !1,
|
|
@@ -12645,13 +12673,13 @@ function Bc(e) {
|
|
|
12645
12673
|
return Cc(n, t);
|
|
12646
12674
|
}
|
|
12647
12675
|
function Kt(e) {
|
|
12648
|
-
return typeof e != "string" &&
|
|
12676
|
+
return typeof e != "string" && V(e, "$el");
|
|
12649
12677
|
}
|
|
12650
12678
|
function Zt(e) {
|
|
12651
|
-
return typeof e != "string" &&
|
|
12679
|
+
return typeof e != "string" && V(e, "$cmp");
|
|
12652
12680
|
}
|
|
12653
12681
|
function Fe(e) {
|
|
12654
|
-
return !e || typeof e == "string" ? !1 :
|
|
12682
|
+
return !e || typeof e == "string" ? !1 : V(e, "if") && V(e, "then");
|
|
12655
12683
|
}
|
|
12656
12684
|
function Tc(e) {
|
|
12657
12685
|
return typeof e != "string" && "$formkit" in e;
|
|
@@ -12751,7 +12779,7 @@ function ce(e) {
|
|
|
12751
12779
|
}
|
|
12752
12780
|
function A(h, w = 0) {
|
|
12753
12781
|
const C = i[w], P = h.length, S = Object.keys(C);
|
|
12754
|
-
let M = 0, j = !1, p = null, y = "",
|
|
12782
|
+
let M = 0, j = !1, p = null, y = "", G = null, c, g = "", f = "", u = "", v = "", k = 0;
|
|
12755
12783
|
const L = (x, E) => {
|
|
12756
12784
|
x ? u += E : y += E;
|
|
12757
12785
|
};
|
|
@@ -12779,16 +12807,16 @@ function ce(e) {
|
|
|
12779
12807
|
let Q = "";
|
|
12780
12808
|
q && ([Q, x] = b(x + 2, h));
|
|
12781
12809
|
const le = p ? w : m(k, h, 0), me = m(x, h);
|
|
12782
|
-
le === -1 && me === -1 ? (y = B(u, -1, E, Q), typeof y == "string" && (y = u)) : p && (le >= me || me === -1) && w === le ? (
|
|
12810
|
+
le === -1 && me === -1 ? (y = B(u, -1, E, Q), typeof y == "string" && (y = u)) : p && (le >= me || me === -1) && w === le ? (G = p.bind(null, B(u, -1, E, Q)), p = null, y = "") : me > le && w === me ? y = B(u, -1, E, Q) : y += `(${u})${q ? `.${Q}` : ""}`, u = "";
|
|
12783
12811
|
} else
|
|
12784
12812
|
u += f;
|
|
12785
12813
|
else if (M === 0 && (c = l(S, f, x, h))) {
|
|
12786
|
-
x === 0 && te(103, [c, h]), x += c.length - 1, x === h.length - 1 && te(104, [c, h]), p ? y && (
|
|
12814
|
+
x === 0 && te(103, [c, h]), x += c.length - 1, x === h.length - 1 && te(104, [c, h]), p ? y && (G = p.bind(null, B(y, w)), p = C[c].bind(null, G), y = "") : G ? (p = C[c].bind(null, B(G, w)), G = null) : (p = C[c].bind(null, B(y, w)), y = "");
|
|
12787
12815
|
continue;
|
|
12788
12816
|
} else
|
|
12789
12817
|
L(M, f);
|
|
12790
12818
|
}
|
|
12791
|
-
return y && p && (p = p.bind(null, B(y, w))), p = !p &&
|
|
12819
|
+
return y && p && (p = p.bind(null, B(y, w))), p = !p && G ? G : p, !p && y && (p = (x, E) => typeof x == "function" ? x(E) : x, p = p.bind(null, B(y, w))), !p && !y && te(105, h), p;
|
|
12792
12820
|
}
|
|
12793
12821
|
function B(h, w, C, P) {
|
|
12794
12822
|
if (C) {
|
|
@@ -12799,8 +12827,8 @@ function ce(e) {
|
|
|
12799
12827
|
(y) => B(y, -1)
|
|
12800
12828
|
);
|
|
12801
12829
|
return (y) => {
|
|
12802
|
-
const
|
|
12803
|
-
return typeof
|
|
12830
|
+
const G = S(y);
|
|
12831
|
+
return typeof G != "function" ? (Le(150, C), G) : (M = G(
|
|
12804
12832
|
...p.map(
|
|
12805
12833
|
(c) => typeof c == "function" ? c(y) : c
|
|
12806
12834
|
)
|
|
@@ -12870,15 +12898,15 @@ function pt(e, t, a) {
|
|
|
12870
12898
|
function Pc(e, t, ...a) {
|
|
12871
12899
|
const n = a.reduce((i, r) => {
|
|
12872
12900
|
if (!r)
|
|
12873
|
-
return
|
|
12901
|
+
return Ot(i);
|
|
12874
12902
|
const { $reset: s, ...l } = r;
|
|
12875
|
-
return
|
|
12903
|
+
return Ot(s ? l : Object.assign(i, l));
|
|
12876
12904
|
}, {});
|
|
12877
12905
|
return Object.keys(
|
|
12878
12906
|
e.hook.classes.dispatch({ property: t, classes: n }).classes
|
|
12879
12907
|
).filter((i) => n[i]).join(" ") || null;
|
|
12880
12908
|
}
|
|
12881
|
-
function
|
|
12909
|
+
function Ot(e) {
|
|
12882
12910
|
const t = "$remove:";
|
|
12883
12911
|
let a = !1;
|
|
12884
12912
|
const n = Object.keys(e).filter((i) => (e[i] && i.startsWith(t) && (a = !0), e[i]));
|
|
@@ -12963,7 +12991,7 @@ function Jn(e, [t, a], n, i) {
|
|
|
12963
12991
|
r.forEach((l) => {
|
|
12964
12992
|
if (e.receipts.has(s)) {
|
|
12965
12993
|
const m = e.receipts.get(s);
|
|
12966
|
-
m &&
|
|
12994
|
+
m && V(m, l) && (m[l].map(s.off), delete m[l], e.receipts.set(s, m));
|
|
12967
12995
|
}
|
|
12968
12996
|
});
|
|
12969
12997
|
});
|
|
@@ -13020,32 +13048,32 @@ ti.skipEmpty = !1;
|
|
|
13020
13048
|
var Sc = ti, jc = function({ value: e }, t = !1) {
|
|
13021
13049
|
const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
|
|
13022
13050
|
return isNaN(n) ? !1 : n > a;
|
|
13023
|
-
}, Fc = jc,
|
|
13051
|
+
}, Fc = jc, Oc = function({ value: e }, t = !1) {
|
|
13024
13052
|
const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
|
|
13025
13053
|
return isNaN(n) ? !1 : n > a || n === a;
|
|
13026
|
-
},
|
|
13054
|
+
}, Gc = Oc, Vc = function(e, t) {
|
|
13027
13055
|
var i;
|
|
13028
13056
|
if (!t)
|
|
13029
13057
|
return !1;
|
|
13030
13058
|
const a = Date.parse(String(e.value)), n = Date.parse(String((i = e.at(t)) == null ? void 0 : i.value));
|
|
13031
13059
|
return isNaN(n) ? !0 : isNaN(a) ? !1 : a > n;
|
|
13032
|
-
}, Ic =
|
|
13060
|
+
}, Ic = Vc, Ec = function({ value: e }, t = "default") {
|
|
13033
13061
|
const a = {
|
|
13034
13062
|
default: new RegExp("^\\p{L}+$", "u"),
|
|
13035
13063
|
latin: /^[a-z]+$/i
|
|
13036
|
-
}, n =
|
|
13064
|
+
}, n = V(a, t) ? t : "default";
|
|
13037
13065
|
return a[n].test(String(e));
|
|
13038
13066
|
}, Yc = Ec, Hc = function({ value: e }, t = "default") {
|
|
13039
13067
|
const a = {
|
|
13040
13068
|
default: /^[\p{L} ]+$/u,
|
|
13041
13069
|
latin: /^[a-z ]+$/i
|
|
13042
|
-
}, n =
|
|
13070
|
+
}, n = V(a, t) ? t : "default";
|
|
13043
13071
|
return a[n].test(String(e));
|
|
13044
13072
|
}, Rc = Hc, Nc = function({ value: e }, t = "default") {
|
|
13045
13073
|
const a = {
|
|
13046
13074
|
default: /^[0-9\p{L}]+$/u,
|
|
13047
13075
|
latin: /^[0-9a-z]+$/i
|
|
13048
|
-
}, n =
|
|
13076
|
+
}, n = V(a, t) ? t : "default";
|
|
13049
13077
|
return a[n].test(String(e));
|
|
13050
13078
|
}, qc = Nc, Qc = function({ value: e }, t = !1) {
|
|
13051
13079
|
const a = Date.parse(t || /* @__PURE__ */ new Date()), n = Date.parse(String(e));
|
|
@@ -13076,25 +13104,25 @@ var Sc = ti, jc = function({ value: e }, t = !1) {
|
|
|
13076
13104
|
const a = {
|
|
13077
13105
|
default: new RegExp("\\p{L}", "u"),
|
|
13078
13106
|
latin: /[a-z]/i
|
|
13079
|
-
}, n =
|
|
13107
|
+
}, n = V(a, t) ? t : "default";
|
|
13080
13108
|
return a[n].test(String(e));
|
|
13081
13109
|
}, tu = eu, au = function({ value: e }, t = "default") {
|
|
13082
13110
|
const a = {
|
|
13083
13111
|
default: /[\p{L} ]/u,
|
|
13084
13112
|
latin: /[a-z ]/i
|
|
13085
|
-
}, n =
|
|
13113
|
+
}, n = V(a, t) ? t : "default";
|
|
13086
13114
|
return a[n].test(String(e));
|
|
13087
13115
|
}, nu = au, iu = function({ value: e }, t = "default") {
|
|
13088
13116
|
const a = {
|
|
13089
13117
|
default: /[0-9\p{L}]/u,
|
|
13090
13118
|
latin: /[0-9a-z]/i
|
|
13091
|
-
}, n =
|
|
13119
|
+
}, n = V(a, t) ? t : "default";
|
|
13092
13120
|
return a[n].test(String(e));
|
|
13093
13121
|
}, ru = iu, su = function({ value: e }, t = "default") {
|
|
13094
13122
|
const a = {
|
|
13095
13123
|
default: new RegExp("\\p{Ll}", "u"),
|
|
13096
13124
|
latin: /[a-z]/
|
|
13097
|
-
}, n =
|
|
13125
|
+
}, n = V(a, t) ? t : "default";
|
|
13098
13126
|
return a[n].test(String(e));
|
|
13099
13127
|
}, ou = su, lu = function({ value: t }) {
|
|
13100
13128
|
return /[0-9]/.test(String(t));
|
|
@@ -13104,7 +13132,7 @@ var Sc = ti, jc = function({ value: e }, t = !1) {
|
|
|
13104
13132
|
const a = {
|
|
13105
13133
|
default: new RegExp("\\p{Lu}", "u"),
|
|
13106
13134
|
latin: /[A-Z]/
|
|
13107
|
-
}, n =
|
|
13135
|
+
}, n = V(a, t) ? t : "default";
|
|
13108
13136
|
return a[n].test(String(e));
|
|
13109
13137
|
}, gu = mu, pu = function({ value: t }, a, n) {
|
|
13110
13138
|
a = a instanceof Date ? a.getTime() : Date.parse(a), n = n instanceof Date ? n.getTime() : Date.parse(n);
|
|
@@ -13139,7 +13167,7 @@ var Sc = ti, jc = function({ value: e }, t = !1) {
|
|
|
13139
13167
|
allow_numeric: /^[0-9\p{Ll}]+$/u,
|
|
13140
13168
|
allow_numeric_dashes: /^[0-9\p{Ll}-]+$/u,
|
|
13141
13169
|
latin: /^[a-z]+$/
|
|
13142
|
-
}, n =
|
|
13170
|
+
}, n = V(a, t) ? t : "default";
|
|
13143
13171
|
return a[n].test(String(e));
|
|
13144
13172
|
}, Mu = Tu, Pu = function({ value: t }, ...a) {
|
|
13145
13173
|
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));
|
|
@@ -13147,11 +13175,11 @@ var Sc = ti, jc = function({ value: e }, t = !1) {
|
|
|
13147
13175
|
return Array.isArray(t) ? t.length <= a : Number(t) <= Number(a);
|
|
13148
13176
|
}, Su = xu, ju = function({ value: t }, a = 1) {
|
|
13149
13177
|
return Array.isArray(t) ? t.length >= a : Number(t) >= Number(a);
|
|
13150
|
-
}, Fu = ju,
|
|
13178
|
+
}, Fu = ju, Ou = function({ value: t }, ...a) {
|
|
13151
13179
|
return !a.some((n) => typeof n == "object" ? Z(n, t) : n === t);
|
|
13152
|
-
},
|
|
13180
|
+
}, Gu = Ou, Vu = function({ value: t }) {
|
|
13153
13181
|
return !isNaN(t);
|
|
13154
|
-
}, Iu =
|
|
13182
|
+
}, Iu = Vu, ai = function(e, ...t) {
|
|
13155
13183
|
return se(e.value) ? t.map((n) => {
|
|
13156
13184
|
var i;
|
|
13157
13185
|
return (i = e.at(n)) == null ? void 0 : i.value;
|
|
@@ -13170,7 +13198,7 @@ var Yu = ni, Hu = function({ value: t }, ...a) {
|
|
|
13170
13198
|
const a = {
|
|
13171
13199
|
default: new RegExp("^\\p{Lu}+$", "u"),
|
|
13172
13200
|
latin: /^[A-Z]+$/
|
|
13173
|
-
}, n =
|
|
13201
|
+
}, n = V(a, t) ? t : "default";
|
|
13174
13202
|
return a[n].test(String(e));
|
|
13175
13203
|
}, Xu = Qu, Wu = function({ value: t }, ...a) {
|
|
13176
13204
|
try {
|
|
@@ -13197,7 +13225,7 @@ const zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13197
13225
|
contains_uppercase: gu,
|
|
13198
13226
|
date_after: Fc,
|
|
13199
13227
|
date_after_node: Ic,
|
|
13200
|
-
date_after_or_equal:
|
|
13228
|
+
date_after_or_equal: Gc,
|
|
13201
13229
|
date_before: Xc,
|
|
13202
13230
|
date_before_node: Uc,
|
|
13203
13231
|
date_before_or_equal: Kc,
|
|
@@ -13211,7 +13239,7 @@ const zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13211
13239
|
matches: Lu,
|
|
13212
13240
|
max: Su,
|
|
13213
13241
|
min: Fu,
|
|
13214
|
-
not:
|
|
13242
|
+
not: Gu,
|
|
13215
13243
|
number: Iu,
|
|
13216
13244
|
require_one: Eu,
|
|
13217
13245
|
required: Yu,
|
|
@@ -13313,7 +13341,7 @@ function Zu(e, t, a) {
|
|
|
13313
13341
|
}
|
|
13314
13342
|
function ii(e) {
|
|
13315
13343
|
const t = `rule_${e.name}`;
|
|
13316
|
-
e.messageObserver && (e.messageObserver = e.messageObserver.kill()),
|
|
13344
|
+
e.messageObserver && (e.messageObserver = e.messageObserver.kill()), V(e.observer.store, t) && e.observer.store.remove(t);
|
|
13317
13345
|
}
|
|
13318
13346
|
function Ju(e, t) {
|
|
13319
13347
|
const a = e.observer;
|
|
@@ -13355,7 +13383,7 @@ function Ju(e, t) {
|
|
|
13355
13383
|
));
|
|
13356
13384
|
}
|
|
13357
13385
|
function _u(e, t, a) {
|
|
13358
|
-
const n = e.props.validationMessages &&
|
|
13386
|
+
const n = e.props.validationMessages && V(e.props.validationMessages, t.name) ? e.props.validationMessages[t.name] : void 0;
|
|
13359
13387
|
return typeof n == "function" ? n(...a) : n;
|
|
13360
13388
|
}
|
|
13361
13389
|
function $u(e, t) {
|
|
@@ -13386,7 +13414,7 @@ function Sa(e, t, a) {
|
|
|
13386
13414
|
const l = {};
|
|
13387
13415
|
if (typeof s == "string") {
|
|
13388
13416
|
const [m, b] = sd(s);
|
|
13389
|
-
|
|
13417
|
+
V(t, m) && (s = t[m], Object.assign(l, b));
|
|
13390
13418
|
}
|
|
13391
13419
|
return typeof s == "function" && i.push({
|
|
13392
13420
|
observer: xt(a),
|
|
@@ -13431,7 +13459,7 @@ function sd(e) {
|
|
|
13431
13459
|
i,
|
|
13432
13460
|
[r[1], r[2], r[3]].reduce(
|
|
13433
13461
|
(s, l) => (l && (xa.test(l) ? s.debounce = parseInt(l.substr(1, l.length - 1)) : l.split("").forEach(
|
|
13434
|
-
(m) =>
|
|
13462
|
+
(m) => V(a, m) && Object.assign(s, a[m])
|
|
13435
13463
|
)), s),
|
|
13436
13464
|
{ name: i }
|
|
13437
13465
|
)
|
|
@@ -13439,7 +13467,7 @@ function sd(e) {
|
|
|
13439
13467
|
}
|
|
13440
13468
|
function od(e, t) {
|
|
13441
13469
|
return e.name || (e.name = t.ruleName || t.name), ["skipEmpty", "force", "debounce", "blocking"].reduce(
|
|
13442
|
-
(a, n) => (
|
|
13470
|
+
(a, n) => (V(t, n) && !V(a, n) && Object.assign(a, {
|
|
13443
13471
|
[n]: t[n]
|
|
13444
13472
|
}), a),
|
|
13445
13473
|
e
|
|
@@ -13801,13 +13829,13 @@ var cd = {
|
|
|
13801
13829
|
function md(e) {
|
|
13802
13830
|
return function(a) {
|
|
13803
13831
|
Fa.add(a), a.on("destroying", () => Fa.delete(a));
|
|
13804
|
-
let n =
|
|
13832
|
+
let n = Oa(a.config.locale, e), i = n ? e[n] : {};
|
|
13805
13833
|
a.on("prop:locale", ({ payload: r }) => {
|
|
13806
|
-
n =
|
|
13834
|
+
n = Oa(r, e), i = n ? e[n] : {}, a.store.touch();
|
|
13807
13835
|
}), a.on("prop:label", () => a.store.touch()), a.on("prop:validationLabel", () => a.store.touch()), a.hook.text((r, s) => {
|
|
13808
13836
|
var m, b;
|
|
13809
13837
|
const l = ((m = r.meta) == null ? void 0 : m.messageKey) || r.key;
|
|
13810
|
-
if (
|
|
13838
|
+
if (V(i, r.type) && V(i[r.type], l)) {
|
|
13811
13839
|
const A = i[r.type][l];
|
|
13812
13840
|
typeof A == "function" ? r.value = Array.isArray((b = r.meta) == null ? void 0 : b.i18nArgs) ? A(...r.meta.i18nArgs) : A(r) : r.value = A;
|
|
13813
13841
|
}
|
|
@@ -13815,11 +13843,11 @@ function md(e) {
|
|
|
13815
13843
|
});
|
|
13816
13844
|
};
|
|
13817
13845
|
}
|
|
13818
|
-
function
|
|
13819
|
-
if (
|
|
13846
|
+
function Oa(e, t) {
|
|
13847
|
+
if (V(t, e))
|
|
13820
13848
|
return e;
|
|
13821
13849
|
const [a] = e.split("-");
|
|
13822
|
-
if (
|
|
13850
|
+
if (V(t, a))
|
|
13823
13851
|
return a;
|
|
13824
13852
|
for (const n in t)
|
|
13825
13853
|
return n;
|
|
@@ -13832,8 +13860,8 @@ function gd(...e) {
|
|
|
13832
13860
|
), a = () => {
|
|
13833
13861
|
};
|
|
13834
13862
|
return a.library = function(n) {
|
|
13835
|
-
const i =
|
|
13836
|
-
|
|
13863
|
+
const i = Ge(n.props.type);
|
|
13864
|
+
V(t, i) && n.define(t[i]);
|
|
13837
13865
|
}, a;
|
|
13838
13866
|
}
|
|
13839
13867
|
var pd = [
|
|
@@ -13916,7 +13944,7 @@ function da(e) {
|
|
|
13916
13944
|
});
|
|
13917
13945
|
}
|
|
13918
13946
|
// @__NO_SIDE_EFFECTS__
|
|
13919
|
-
function
|
|
13947
|
+
function O(e, t, a = !1) {
|
|
13920
13948
|
return (...n) => {
|
|
13921
13949
|
const i = (r) => {
|
|
13922
13950
|
const s = !t || typeof t == "string" ? { $el: t } : t();
|
|
@@ -13947,10 +13975,10 @@ function wt(e) {
|
|
|
13947
13975
|
function Ze(e, t = {}) {
|
|
13948
13976
|
return typeof e == "string" ? wt(t) || typeof t == "string" ? t : e : Array.isArray(e) ? wt(t) ? t : e : Ce(e, t);
|
|
13949
13977
|
}
|
|
13950
|
-
var Ad = /* @__PURE__ */
|
|
13978
|
+
var Ad = /* @__PURE__ */ O("actions", () => ({
|
|
13951
13979
|
$el: "div",
|
|
13952
13980
|
if: "$actions"
|
|
13953
|
-
})), Ct = /* @__PURE__ */
|
|
13981
|
+
})), Ct = /* @__PURE__ */ O("input", () => ({
|
|
13954
13982
|
$el: "input",
|
|
13955
13983
|
bind: "$attrs",
|
|
13956
13984
|
attrs: {
|
|
@@ -13976,19 +14004,19 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
13976
14004
|
}
|
|
13977
14005
|
}
|
|
13978
14006
|
}
|
|
13979
|
-
})), ci = /* @__PURE__ */
|
|
14007
|
+
})), ci = /* @__PURE__ */ O("optionHelp", () => ({
|
|
13980
14008
|
$el: "div",
|
|
13981
14009
|
if: "$option.help",
|
|
13982
14010
|
attrs: {
|
|
13983
14011
|
id: '$: "help-" + $option.attrs.id'
|
|
13984
14012
|
}
|
|
13985
|
-
})), kt = /* @__PURE__ */
|
|
14013
|
+
})), kt = /* @__PURE__ */ O("inner", "span"), Dt = /* @__PURE__ */ O("label", "span"), ui = /* @__PURE__ */ O("option", () => ({
|
|
13986
14014
|
$el: "li",
|
|
13987
14015
|
for: ["option", "$options"],
|
|
13988
14016
|
attrs: {
|
|
13989
14017
|
"data-disabled": "$option.attrs.disabled || $disabled || undefined"
|
|
13990
14018
|
}
|
|
13991
|
-
})), di = /* @__PURE__ */
|
|
14019
|
+
})), di = /* @__PURE__ */ O("options", "ul"), Bt = /* @__PURE__ */ O("wrapper", () => ({
|
|
13992
14020
|
$el: "label",
|
|
13993
14021
|
attrs: {
|
|
13994
14022
|
"data-disabled": {
|
|
@@ -14002,7 +14030,7 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14002
14030
|
else: "$fns.isChecked($option.value) || undefined"
|
|
14003
14031
|
}
|
|
14004
14032
|
}
|
|
14005
|
-
})), fd = /* @__PURE__ */
|
|
14033
|
+
})), fd = /* @__PURE__ */ O("input", () => ({
|
|
14006
14034
|
$el: "button",
|
|
14007
14035
|
bind: "$attrs",
|
|
14008
14036
|
attrs: {
|
|
@@ -14011,12 +14039,12 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14011
14039
|
name: "$node.name",
|
|
14012
14040
|
id: "$id"
|
|
14013
14041
|
}
|
|
14014
|
-
})), bd = /* @__PURE__ */
|
|
14042
|
+
})), bd = /* @__PURE__ */ O("default", null), Tt = /* @__PURE__ */ O("decorator", () => ({
|
|
14015
14043
|
$el: "span",
|
|
14016
14044
|
attrs: {
|
|
14017
14045
|
"aria-hidden": "true"
|
|
14018
14046
|
}
|
|
14019
|
-
})), mi = /* @__PURE__ */
|
|
14047
|
+
})), mi = /* @__PURE__ */ O("fieldset", () => ({
|
|
14020
14048
|
$el: "fieldset",
|
|
14021
14049
|
attrs: {
|
|
14022
14050
|
id: "$id",
|
|
@@ -14026,7 +14054,7 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14026
14054
|
else: void 0
|
|
14027
14055
|
}
|
|
14028
14056
|
}
|
|
14029
|
-
})), yd = /* @__PURE__ */
|
|
14057
|
+
})), yd = /* @__PURE__ */ O("input", () => ({
|
|
14030
14058
|
$el: "input",
|
|
14031
14059
|
bind: "$attrs",
|
|
14032
14060
|
attrs: {
|
|
@@ -14039,27 +14067,27 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14039
14067
|
"aria-describedby": "$describedBy",
|
|
14040
14068
|
"aria-required": "$state.required || undefined"
|
|
14041
14069
|
}
|
|
14042
|
-
})), vd = /* @__PURE__ */
|
|
14070
|
+
})), vd = /* @__PURE__ */ O("fileItem", () => ({
|
|
14043
14071
|
$el: "li",
|
|
14044
14072
|
for: ["file", "$value"]
|
|
14045
|
-
})), wd = /* @__PURE__ */
|
|
14073
|
+
})), wd = /* @__PURE__ */ O("fileList", () => ({
|
|
14046
14074
|
$el: "ul",
|
|
14047
14075
|
if: "$value.length",
|
|
14048
14076
|
attrs: {
|
|
14049
14077
|
"data-has-multiple": "$_hasMultipleFiles"
|
|
14050
14078
|
}
|
|
14051
|
-
})), Cd = /* @__PURE__ */
|
|
14079
|
+
})), Cd = /* @__PURE__ */ O("fileName", () => ({
|
|
14052
14080
|
$el: "span",
|
|
14053
14081
|
attrs: {
|
|
14054
14082
|
class: "$classes.fileName"
|
|
14055
14083
|
}
|
|
14056
|
-
})),
|
|
14084
|
+
})), Ga = /* @__PURE__ */ O("fileRemove", () => ({
|
|
14057
14085
|
$el: "button",
|
|
14058
14086
|
attrs: {
|
|
14059
14087
|
type: "button",
|
|
14060
14088
|
onClick: "$handlers.resetFiles"
|
|
14061
14089
|
}
|
|
14062
|
-
})), kd = /* @__PURE__ */
|
|
14090
|
+
})), kd = /* @__PURE__ */ O("form", () => ({
|
|
14063
14091
|
$el: "form",
|
|
14064
14092
|
bind: "$attrs",
|
|
14065
14093
|
meta: {
|
|
@@ -14071,13 +14099,13 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14071
14099
|
onSubmit: "$handlers.submit",
|
|
14072
14100
|
"data-loading": "$state.loading || undefined"
|
|
14073
14101
|
}
|
|
14074
|
-
})), ma = /* @__PURE__ */
|
|
14102
|
+
})), ma = /* @__PURE__ */ O("wrapper", null, !0), he = /* @__PURE__ */ O("help", () => ({
|
|
14075
14103
|
$el: "div",
|
|
14076
14104
|
if: "$help",
|
|
14077
14105
|
attrs: {
|
|
14078
14106
|
id: '$: "help-" + $id'
|
|
14079
14107
|
}
|
|
14080
|
-
})), X = (e, t) => (/* @__PURE__ */
|
|
14108
|
+
})), X = (e, t) => (/* @__PURE__ */ O(`${e}Icon`, () => {
|
|
14081
14109
|
const a = `_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;
|
|
14082
14110
|
return {
|
|
14083
14111
|
if: `$${e}Icon && $${a}`,
|
|
@@ -14094,16 +14122,16 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14094
14122
|
}
|
|
14095
14123
|
}
|
|
14096
14124
|
};
|
|
14097
|
-
}))(), rt = /* @__PURE__ */
|
|
14125
|
+
}))(), rt = /* @__PURE__ */ O("inner", "div"), st = /* @__PURE__ */ O("label", () => ({
|
|
14098
14126
|
$el: "label",
|
|
14099
14127
|
if: "$label",
|
|
14100
14128
|
attrs: {
|
|
14101
14129
|
for: "$id"
|
|
14102
14130
|
}
|
|
14103
|
-
})), gi = /* @__PURE__ */
|
|
14131
|
+
})), gi = /* @__PURE__ */ O("legend", () => ({
|
|
14104
14132
|
$el: "legend",
|
|
14105
14133
|
if: "$label"
|
|
14106
|
-
})), ke = /* @__PURE__ */
|
|
14134
|
+
})), ke = /* @__PURE__ */ O("message", () => ({
|
|
14107
14135
|
$el: "li",
|
|
14108
14136
|
for: ["message", "$messages"],
|
|
14109
14137
|
attrs: {
|
|
@@ -14111,19 +14139,19 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14111
14139
|
id: "$id + '-' + $message.key",
|
|
14112
14140
|
"data-message-type": "$message.type"
|
|
14113
14141
|
}
|
|
14114
|
-
})), De = /* @__PURE__ */
|
|
14142
|
+
})), De = /* @__PURE__ */ O("messages", () => ({
|
|
14115
14143
|
$el: "ul",
|
|
14116
14144
|
if: "$defaultMessagePlacement && $fns.length($messages)"
|
|
14117
|
-
})), Dd = /* @__PURE__ */
|
|
14145
|
+
})), Dd = /* @__PURE__ */ O("noFiles", () => ({
|
|
14118
14146
|
$el: "span",
|
|
14119
14147
|
if: "$value == null || $value.length == 0"
|
|
14120
|
-
})), Bd = /* @__PURE__ */
|
|
14148
|
+
})), Bd = /* @__PURE__ */ O("optGroup", () => ({
|
|
14121
14149
|
$el: "optgroup",
|
|
14122
14150
|
bind: "$option.attrs",
|
|
14123
14151
|
attrs: {
|
|
14124
14152
|
label: "$option.group"
|
|
14125
14153
|
}
|
|
14126
|
-
})),
|
|
14154
|
+
})), Va = /* @__PURE__ */ O("option", () => ({
|
|
14127
14155
|
$el: "option",
|
|
14128
14156
|
bind: "$option.attrs",
|
|
14129
14157
|
attrs: {
|
|
@@ -14131,11 +14159,11 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14131
14159
|
value: "$option.value",
|
|
14132
14160
|
selected: "$fns.isSelected($option)"
|
|
14133
14161
|
}
|
|
14134
|
-
})), Ia = /* @__PURE__ */
|
|
14162
|
+
})), Ia = /* @__PURE__ */ O("options", () => ({
|
|
14135
14163
|
$el: null,
|
|
14136
14164
|
if: "$options.length",
|
|
14137
14165
|
for: ["option", "$option.options || $options"]
|
|
14138
|
-
})), Te = /* @__PURE__ */
|
|
14166
|
+
})), Te = /* @__PURE__ */ O("outer", () => ({
|
|
14139
14167
|
$el: "div",
|
|
14140
14168
|
meta: {
|
|
14141
14169
|
autoAnimate: !0
|
|
@@ -14157,7 +14185,7 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14157
14185
|
"data-prefix-icon-click": "$onPrefixIconClick !== undefined || undefined",
|
|
14158
14186
|
"data-suffix-icon-click": "$onSuffixIconClick !== undefined || undefined"
|
|
14159
14187
|
}
|
|
14160
|
-
})), Ae = /* @__PURE__ */
|
|
14188
|
+
})), Ae = /* @__PURE__ */ O("prefix", null), Td = /* @__PURE__ */ O("input", () => ({
|
|
14161
14189
|
$el: "select",
|
|
14162
14190
|
bind: "$attrs",
|
|
14163
14191
|
attrs: {
|
|
@@ -14172,14 +14200,14 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14172
14200
|
"aria-describedby": "$describedBy",
|
|
14173
14201
|
"aria-required": "$state.required || undefined"
|
|
14174
14202
|
}
|
|
14175
|
-
})), Md = /* @__PURE__ */
|
|
14203
|
+
})), Md = /* @__PURE__ */ O("submit", () => ({
|
|
14176
14204
|
$cmp: "FormKit",
|
|
14177
14205
|
bind: "$submitAttrs",
|
|
14178
14206
|
props: {
|
|
14179
14207
|
type: "submit",
|
|
14180
14208
|
label: "$submitLabel"
|
|
14181
14209
|
}
|
|
14182
|
-
})), fe = /* @__PURE__ */
|
|
14210
|
+
})), fe = /* @__PURE__ */ O("suffix", null), pi = /* @__PURE__ */ O("input", () => ({
|
|
14183
14211
|
$el: "input",
|
|
14184
14212
|
bind: "$attrs",
|
|
14185
14213
|
attrs: {
|
|
@@ -14193,7 +14221,7 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14193
14221
|
"aria-describedby": "$describedBy",
|
|
14194
14222
|
"aria-required": "$state.required || undefined"
|
|
14195
14223
|
}
|
|
14196
|
-
})), Pd = /* @__PURE__ */
|
|
14224
|
+
})), Pd = /* @__PURE__ */ O("input", () => ({
|
|
14197
14225
|
$el: "textarea",
|
|
14198
14226
|
bind: "$attrs",
|
|
14199
14227
|
attrs: {
|
|
@@ -14207,7 +14235,7 @@ var Ad = /* @__PURE__ */ G("actions", () => ({
|
|
|
14207
14235
|
"aria-required": "$state.required || undefined"
|
|
14208
14236
|
},
|
|
14209
14237
|
children: "$initialValue"
|
|
14210
|
-
})), We = /* @__PURE__ */
|
|
14238
|
+
})), We = /* @__PURE__ */ O("wrapper", "div"), Ld = 0;
|
|
14211
14239
|
function hi(e) {
|
|
14212
14240
|
(e.type === "group" || e.type === "list") && e.plugins.add(xd);
|
|
14213
14241
|
}
|
|
@@ -14248,10 +14276,10 @@ function jd(e, t) {
|
|
|
14248
14276
|
function Fd(e) {
|
|
14249
14277
|
e.on("created", () => {
|
|
14250
14278
|
var t, a;
|
|
14251
|
-
(t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = Sd.bind(null, e)), (a = e.context) != null && a.fns && (e.context.fns.isChecked = jd.bind(null, e)),
|
|
14279
|
+
(t = e.context) != null && t.handlers && (e.context.handlers.toggleChecked = Sd.bind(null, e)), (a = e.context) != null && a.fns && (e.context.fns.isChecked = jd.bind(null, e)), V(e.props, "onValue") || (e.props.onValue = !0), V(e.props, "offValue") || (e.props.offValue = !1);
|
|
14252
14280
|
}), e.hook.prop(Ai(e));
|
|
14253
14281
|
}
|
|
14254
|
-
function
|
|
14282
|
+
function Ve(e, t) {
|
|
14255
14283
|
return (a) => {
|
|
14256
14284
|
a.props[`${e}Icon`] === void 0 && (a.props[`${e}Icon`] = t.startsWith("<svg") ? t : `default:${t}`);
|
|
14257
14285
|
};
|
|
@@ -14278,27 +14306,27 @@ function ht(e, t) {
|
|
|
14278
14306
|
);
|
|
14279
14307
|
};
|
|
14280
14308
|
}
|
|
14281
|
-
var
|
|
14309
|
+
var Gt = typeof window < "u";
|
|
14282
14310
|
function fi(e) {
|
|
14283
14311
|
e.target instanceof HTMLElement && e.target.hasAttribute("data-file-hover") && e.target.removeAttribute("data-file-hover");
|
|
14284
14312
|
}
|
|
14285
14313
|
function Ea(e, t) {
|
|
14286
14314
|
t.target instanceof HTMLInputElement ? e === "dragover" && t.target.setAttribute("data-file-hover", "true") : t.preventDefault(), e === "drop" && fi(t);
|
|
14287
14315
|
}
|
|
14288
|
-
function
|
|
14289
|
-
ht("noFiles", "Select file")(e), ht("removeAll", "Remove all")(e), ht("remove")(e), e.addProps(["_hasMultipleFiles"]),
|
|
14316
|
+
function Od(e) {
|
|
14317
|
+
ht("noFiles", "Select file")(e), ht("removeAll", "Remove all")(e), ht("remove")(e), e.addProps(["_hasMultipleFiles"]), Gt && (window._FormKit_File_Drop || (window.addEventListener(
|
|
14290
14318
|
"dragover",
|
|
14291
14319
|
Ea.bind(null, "dragover")
|
|
14292
14320
|
), 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 }) => {
|
|
14293
14321
|
e.props._hasMultipleFiles = Array.isArray(t) && t.length > 1 ? !0 : void 0;
|
|
14294
14322
|
}), e.on("reset", () => {
|
|
14295
|
-
if (e.props.id &&
|
|
14323
|
+
if (e.props.id && Gt) {
|
|
14296
14324
|
const t = document.getElementById(e.props.id);
|
|
14297
14325
|
t && (t.value = "");
|
|
14298
14326
|
}
|
|
14299
14327
|
}), e.on("created", () => {
|
|
14300
14328
|
Array.isArray(e.value) || e.input([], !1), e.context && (e.context.handlers.resetFiles = (t) => {
|
|
14301
|
-
if (t.preventDefault(), e.input([]), e.props.id &&
|
|
14329
|
+
if (t.preventDefault(), e.input([]), e.props.id && Gt) {
|
|
14302
14330
|
const a = document.getElementById(e.props.id);
|
|
14303
14331
|
a && (a.value = ""), a == null || a.focus();
|
|
14304
14332
|
}
|
|
@@ -14321,7 +14349,7 @@ var Ya = /* @__PURE__ */ ae({
|
|
|
14321
14349
|
value: !0,
|
|
14322
14350
|
visible: !1
|
|
14323
14351
|
});
|
|
14324
|
-
async function
|
|
14352
|
+
async function Gd(e, t) {
|
|
14325
14353
|
const a = Math.random();
|
|
14326
14354
|
if (e.props._submitNonce = a, t.preventDefault(), await e.settled, e.ledger.value("validating") && (e.store.set(Ya), await e.ledger.settled("validating"), e.store.remove("loading"), e.props._submitNonce !== a))
|
|
14327
14355
|
return;
|
|
@@ -14361,7 +14389,7 @@ function bi(e) {
|
|
|
14361
14389
|
})
|
|
14362
14390
|
);
|
|
14363
14391
|
}
|
|
14364
|
-
function
|
|
14392
|
+
function Vd(e) {
|
|
14365
14393
|
var t;
|
|
14366
14394
|
e.props.isForm = !0, e.ledger.count("validating", (a) => a.key === "validating"), (t = e.props).submitAttrs ?? (t.submitAttrs = {
|
|
14367
14395
|
disabled: e.props.disabled
|
|
@@ -14369,7 +14397,7 @@ function Od(e) {
|
|
|
14369
14397
|
e.props.submitAttrs = { ...e.props.submitAttrs, disabled: a };
|
|
14370
14398
|
}), e.on("created", () => {
|
|
14371
14399
|
var a;
|
|
14372
|
-
(a = e.context) != null && a.handlers && (e.context.handlers.submit =
|
|
14400
|
+
(a = e.context) != null && a.handlers && (e.context.handlers.submit = Gd.bind(null, e)), V(e.props, "actions") || (e.props.actions = !0);
|
|
14373
14401
|
}), e.on("prop:incompleteMessage", () => {
|
|
14374
14402
|
e.store.incomplete && bi(e);
|
|
14375
14403
|
}), e.on("settled:blocking", () => e.store.remove("incomplete"));
|
|
@@ -14635,7 +14663,7 @@ var Ra = {
|
|
|
14635
14663
|
features: [
|
|
14636
14664
|
da,
|
|
14637
14665
|
Fd,
|
|
14638
|
-
|
|
14666
|
+
Ve("decorator", "checkboxDecorator")
|
|
14639
14667
|
],
|
|
14640
14668
|
/**
|
|
14641
14669
|
* The key used to memoize the schema.
|
|
@@ -14658,14 +14686,14 @@ var Ra = {
|
|
|
14658
14686
|
/* @__PURE__ */ Cd("$file.name"),
|
|
14659
14687
|
/* @__PURE__ */ ve(
|
|
14660
14688
|
"$value.length === 1",
|
|
14661
|
-
/* @__PURE__ */
|
|
14689
|
+
/* @__PURE__ */ Ga(
|
|
14662
14690
|
/* @__PURE__ */ X("fileRemove"),
|
|
14663
14691
|
'$ui.remove.value + " " + $file.name'
|
|
14664
14692
|
)
|
|
14665
14693
|
)
|
|
14666
14694
|
)
|
|
14667
14695
|
),
|
|
14668
|
-
/* @__PURE__ */ ve("$value.length > 1", /* @__PURE__ */
|
|
14696
|
+
/* @__PURE__ */ ve("$value.length > 1", /* @__PURE__ */ Ga("$ui.removeAll.value")),
|
|
14669
14697
|
/* @__PURE__ */ Dd(/* @__PURE__ */ X("noFiles"), "$ui.noFiles.value"),
|
|
14670
14698
|
/* @__PURE__ */ fe(),
|
|
14671
14699
|
/* @__PURE__ */ X("suffix")
|
|
@@ -14691,10 +14719,10 @@ var Ra = {
|
|
|
14691
14719
|
* Additional features that should be added to your input
|
|
14692
14720
|
*/
|
|
14693
14721
|
features: [
|
|
14694
|
-
|
|
14695
|
-
|
|
14696
|
-
|
|
14697
|
-
|
|
14722
|
+
Od,
|
|
14723
|
+
Ve("fileItem", "fileItem"),
|
|
14724
|
+
Ve("fileRemove", "fileRemove"),
|
|
14725
|
+
Ve("noFiles", "noFiles")
|
|
14698
14726
|
],
|
|
14699
14727
|
/**
|
|
14700
14728
|
* The key used to memoize the schema.
|
|
@@ -14727,7 +14755,7 @@ var Ra = {
|
|
|
14727
14755
|
/**
|
|
14728
14756
|
* Additional features that should be added to your input
|
|
14729
14757
|
*/
|
|
14730
|
-
features: [
|
|
14758
|
+
features: [Vd, ga],
|
|
14731
14759
|
/**
|
|
14732
14760
|
* The key used to memoize the schema.
|
|
14733
14761
|
*/
|
|
@@ -14867,7 +14895,7 @@ var Ra = {
|
|
|
14867
14895
|
/**
|
|
14868
14896
|
* Additional features that should be added to your input
|
|
14869
14897
|
*/
|
|
14870
|
-
features: [da, Rd,
|
|
14898
|
+
features: [da, Rd, Ve("decorator", "radioDecorator")],
|
|
14871
14899
|
/**
|
|
14872
14900
|
* The key used to memoize the schema.
|
|
14873
14901
|
*/
|
|
@@ -14889,8 +14917,8 @@ var Ra = {
|
|
|
14889
14917
|
/* @__PURE__ */ Ia(
|
|
14890
14918
|
/* @__PURE__ */ ve(
|
|
14891
14919
|
"$option.group",
|
|
14892
|
-
/* @__PURE__ */ Bd(/* @__PURE__ */ Ia(/* @__PURE__ */
|
|
14893
|
-
/* @__PURE__ */
|
|
14920
|
+
/* @__PURE__ */ Bd(/* @__PURE__ */ Ia(/* @__PURE__ */ Va("$option.label"))),
|
|
14921
|
+
/* @__PURE__ */ Va("$option.label")
|
|
14894
14922
|
)
|
|
14895
14923
|
)
|
|
14896
14924
|
)
|
|
@@ -14914,7 +14942,7 @@ var Ra = {
|
|
|
14914
14942
|
/**
|
|
14915
14943
|
* Additional features that should be added to your input
|
|
14916
14944
|
*/
|
|
14917
|
-
features: [da, Xd,
|
|
14945
|
+
features: [da, Xd, Ve("select", "select")],
|
|
14918
14946
|
/**
|
|
14919
14947
|
* The key used to memoize the schema.
|
|
14920
14948
|
*/
|
|
@@ -15025,9 +15053,9 @@ var Ra = {
|
|
|
15025
15053
|
};
|
|
15026
15054
|
}), we = typeof window < "u" && typeof fetch < "u";
|
|
15027
15055
|
de = we ? /* @__PURE__ */ getComputedStyle(document.documentElement) : void 0;
|
|
15028
|
-
var
|
|
15056
|
+
var Oe = {}, Vt = {};
|
|
15029
15057
|
function rm(e, t, a, n) {
|
|
15030
|
-
t && Object.assign(
|
|
15058
|
+
t && Object.assign(Oe, t), we && !Je && (de != null && de.getPropertyValue("--formkit-theme")) ? (Mt(), Je = !0) : e && !Je && we ? sm(e) : !Je && we && Mt();
|
|
15031
15059
|
const i = function(s) {
|
|
15032
15060
|
var l, m;
|
|
15033
15061
|
s.addProps(["iconLoader", "iconLoaderUrl"]), s.props.iconHandler = Na(
|
|
@@ -15065,17 +15093,17 @@ function Na(e, t) {
|
|
|
15065
15093
|
return a;
|
|
15066
15094
|
const n = a.startsWith("default:");
|
|
15067
15095
|
a = n ? a.split(":")[1] : a;
|
|
15068
|
-
const i = a in
|
|
15096
|
+
const i = a in Oe;
|
|
15069
15097
|
let r;
|
|
15070
15098
|
if (i)
|
|
15071
|
-
return
|
|
15072
|
-
if (!
|
|
15099
|
+
return Oe[a];
|
|
15100
|
+
if (!Vt[a]) {
|
|
15073
15101
|
if (r = om(a), r = we && typeof r > "u" ? Promise.resolve(r) : r, r instanceof Promise)
|
|
15074
|
-
|
|
15102
|
+
Vt[a] = r.then((s) => !s && typeof a == "string" && !n ? r = typeof e == "function" ? e(a) : lm(a, t) : s).then((s) => (typeof a == "string" && (Oe[n ? `default:${a}` : a] = s), s));
|
|
15075
15103
|
else if (typeof r == "string")
|
|
15076
|
-
return
|
|
15104
|
+
return Oe[n ? `default:${a}` : a] = r, r;
|
|
15077
15105
|
}
|
|
15078
|
-
return
|
|
15106
|
+
return Vt[a];
|
|
15079
15107
|
};
|
|
15080
15108
|
}
|
|
15081
15109
|
function om(e) {
|
|
@@ -15087,7 +15115,7 @@ function qa(e) {
|
|
|
15087
15115
|
if (t) {
|
|
15088
15116
|
const a = atob(t);
|
|
15089
15117
|
if (a.startsWith("<svg"))
|
|
15090
|
-
return
|
|
15118
|
+
return Oe[e] = a, a;
|
|
15091
15119
|
}
|
|
15092
15120
|
}
|
|
15093
15121
|
function lm(e, t) {
|
|
@@ -15256,7 +15284,7 @@ var pm = (e, t) => {
|
|
|
15256
15284
|
return "";
|
|
15257
15285
|
const [v, k] = u;
|
|
15258
15286
|
let L = Reflect.get(...u);
|
|
15259
|
-
return !L && typeof k == "string" && !
|
|
15287
|
+
return !L && typeof k == "string" && !V(v, k) && !k.startsWith("__v") && xt(t).watch((E) => {
|
|
15260
15288
|
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(
|
|
15261
15289
|
k,
|
|
15262
15290
|
E,
|
|
@@ -15361,14 +15389,14 @@ var pm = (e, t) => {
|
|
|
15361
15389
|
}), t.on("settled", ({ payload: u }) => {
|
|
15362
15390
|
y.state.settled = u;
|
|
15363
15391
|
});
|
|
15364
|
-
function
|
|
15392
|
+
function G(u) {
|
|
15365
15393
|
(Array.isArray(u) ? u : Object.keys(u)).forEach((k) => {
|
|
15366
|
-
k =
|
|
15394
|
+
k = Ge(k), V(y, k) || (y[k] = t.props[k]), t.on(`prop:${k}`, ({ payload: L }) => {
|
|
15367
15395
|
y[k] = L;
|
|
15368
15396
|
});
|
|
15369
15397
|
});
|
|
15370
15398
|
}
|
|
15371
|
-
|
|
15399
|
+
G((() => {
|
|
15372
15400
|
const u = [
|
|
15373
15401
|
"__root",
|
|
15374
15402
|
"help",
|
|
@@ -15385,9 +15413,9 @@ var pm = (e, t) => {
|
|
|
15385
15413
|
return u.concat(k);
|
|
15386
15414
|
})());
|
|
15387
15415
|
function g(u) {
|
|
15388
|
-
u.props &&
|
|
15416
|
+
u.props && G(u.props);
|
|
15389
15417
|
}
|
|
15390
|
-
t.props.definition && g(t.props.definition), t.on("added-props", ({ payload: u }) =>
|
|
15418
|
+
t.props.definition && g(t.props.definition), t.on("added-props", ({ payload: u }) => G(u)), t.on("input", ({ payload: u }) => {
|
|
15391
15419
|
t.type !== "input" && !At(u) && !ba(u) ? p.value = Qt(u) : (p.value = u, lt(p));
|
|
15392
15420
|
}), t.on("commitRaw", ({ payload: u }) => {
|
|
15393
15421
|
t.type !== "input" && !At(u) && !ba(u) ? j.value = p.value = Qt(u) : (j.value = p.value = u, lt(j)), t.emit("modelUpdated");
|
|
@@ -15529,7 +15557,7 @@ function za(e, t, a) {
|
|
|
15529
15557
|
var P, S;
|
|
15530
15558
|
const h = B(ce(D.if));
|
|
15531
15559
|
let w = () => T, C = () => T;
|
|
15532
|
-
return typeof D.then == "object" ? C = r(D.then, void 0) : typeof D.then == "string" && ((P = D.then) != null && P.startsWith("$")) ? C = B(ce(D.then)) : C = () => D.then,
|
|
15560
|
+
return typeof D.then == "object" ? C = r(D.then, void 0) : typeof D.then == "string" && ((P = D.then) != null && P.startsWith("$")) ? C = B(ce(D.then)) : C = () => D.then, V(D, "else") && (typeof D.else == "object" ? w = r(D.else) : typeof D.else == "string" && ((S = D.else) != null && S.startsWith("$")) ? w = B(ce(D.else)) : w = () => D.else), () => h() ? C() : w();
|
|
15533
15561
|
}
|
|
15534
15562
|
function r(D, T, h = {}) {
|
|
15535
15563
|
const w = new Set(Object.keys(D || {})), C = T ? B(ce(T)) : () => ({}), P = [
|
|
@@ -15562,7 +15590,7 @@ function za(e, t, a) {
|
|
|
15562
15590
|
function s(D, T) {
|
|
15563
15591
|
let h = null, w = () => null, C = !1, P = null, S = null, M = null, j = !1;
|
|
15564
15592
|
const p = Mc(T);
|
|
15565
|
-
if (Kt(p) ? (h = p.$el, w = p.$el !== "text" ? r(p.attrs, p.bind) : () => null) : Zt(p) ? (typeof p.$cmp == "string" ?
|
|
15593
|
+
if (Kt(p) ? (h = p.$el, w = p.$el !== "text" ? r(p.attrs, p.bind) : () => null) : Zt(p) ? (typeof p.$cmp == "string" ? V(D, p.$cmp) ? h = D[p.$cmp] : (h = p.$cmp, j = !0) : h = p.$cmp, w = r(p.props, p.bind)) : Fe(p) && ([C, P, S] = n(D, p)), !Fe(p) && "if" in p ? C = B(ce(p.if)) : !Fe(p) && h === null && (C = () => !0), "children" in p && p.children)
|
|
15566
15594
|
if (typeof p.children == "string")
|
|
15567
15595
|
if (p.children.startsWith("$slots."))
|
|
15568
15596
|
h = h === "text" ? "slot" : h, P = B(ce(p.children));
|
|
@@ -15574,19 +15602,19 @@ function za(e, t, a) {
|
|
|
15574
15602
|
else if (Array.isArray(p.children))
|
|
15575
15603
|
P = b(D, p.children);
|
|
15576
15604
|
else {
|
|
15577
|
-
const [y,
|
|
15578
|
-
P = (g) => y && y() ?
|
|
15605
|
+
const [y, G, c] = n(D, p.children);
|
|
15606
|
+
P = (g) => y && y() ? G && G(g) : c && c(g);
|
|
15579
15607
|
}
|
|
15580
15608
|
if (Zt(p))
|
|
15581
15609
|
if (P) {
|
|
15582
15610
|
const y = P;
|
|
15583
|
-
P = (
|
|
15611
|
+
P = (G) => ({
|
|
15584
15612
|
default(c, g) {
|
|
15585
15613
|
var v, k, L, x;
|
|
15586
15614
|
const f = K;
|
|
15587
|
-
g && (K = g), c && ((v = ye.get(K)) == null || v.unshift(c)),
|
|
15588
|
-
const u = y(
|
|
15589
|
-
return c && ((L = ye.get(K)) == null || L.shift()),
|
|
15615
|
+
g && (K = g), c && ((v = ye.get(K)) == null || v.unshift(c)), G && ((k = ye.get(K)) == null || k.unshift(G));
|
|
15616
|
+
const u = y(G);
|
|
15617
|
+
return c && ((L = ye.get(K)) == null || L.shift()), G && ((x = ye.get(K)) == null || x.shift()), K = f, u;
|
|
15590
15618
|
}
|
|
15591
15619
|
}), P.slot = !0;
|
|
15592
15620
|
} else
|
|
@@ -15618,9 +15646,9 @@ function za(e, t, a) {
|
|
|
15618
15646
|
return Qi(String(P()));
|
|
15619
15647
|
if (w === "slot" && P)
|
|
15620
15648
|
return P(y);
|
|
15621
|
-
const
|
|
15649
|
+
const G = j ? Xi(w) : w, c = P != null && P.slot ? l(P, y) : null;
|
|
15622
15650
|
return tt(
|
|
15623
|
-
|
|
15651
|
+
G,
|
|
15624
15652
|
C(),
|
|
15625
15653
|
c || (P ? P(y) : [])
|
|
15626
15654
|
);
|
|
@@ -15628,9 +15656,9 @@ function za(e, t, a) {
|
|
|
15628
15656
|
return typeof S == "function" ? S(y) : S;
|
|
15629
15657
|
};
|
|
15630
15658
|
if (M) {
|
|
15631
|
-
const y = p, [
|
|
15659
|
+
const y = p, [G, c, g] = M;
|
|
15632
15660
|
p = () => {
|
|
15633
|
-
const f =
|
|
15661
|
+
const f = G(), u = Number.isFinite(f) ? Array(Number(f)).fill(0).map((x, E) => E) : f, v = [];
|
|
15634
15662
|
if (typeof u != "object")
|
|
15635
15663
|
return null;
|
|
15636
15664
|
const k = ye.get(K) || [], L = Array.isArray(u);
|
|
@@ -15676,7 +15704,7 @@ function za(e, t, a) {
|
|
|
15676
15704
|
}
|
|
15677
15705
|
function I(D, T) {
|
|
15678
15706
|
a ?? (a = Pi(t));
|
|
15679
|
-
const [h, w] =
|
|
15707
|
+
const [h, w] = V(et, a) ? et[a] : [b(e, t), A];
|
|
15680
15708
|
return Ti || (Ee[a] ?? (Ee[a] = 0), Ee[a]++, et[a] = [h, w]), w.forEach((C) => {
|
|
15681
15709
|
C(D, T);
|
|
15682
15710
|
}), () => (K = T, h());
|
|
@@ -15705,7 +15733,7 @@ function Ka(e, t, a) {
|
|
|
15705
15733
|
return e(
|
|
15706
15734
|
(n, i = {}) => n.reduce((r, s) => {
|
|
15707
15735
|
if (s.startsWith("slots.")) {
|
|
15708
|
-
const l = s.substring(6), m = () => t.slots &&
|
|
15736
|
+
const l = s.substring(6), m = () => t.slots && V(t.slots, l) && typeof t.slots[l] == "function";
|
|
15709
15737
|
if (i.if)
|
|
15710
15738
|
r[s] = m;
|
|
15711
15739
|
else if (t.slots) {
|
|
@@ -15842,7 +15870,7 @@ function jm(e, t) {
|
|
|
15842
15870
|
reset: Rn
|
|
15843
15871
|
};
|
|
15844
15872
|
}
|
|
15845
|
-
var ji = Symbol.for("FormKitOptions"), Fm = Symbol.for("FormKitConfig"),
|
|
15873
|
+
var ji = Symbol.for("FormKitOptions"), Fm = Symbol.for("FormKitConfig"), Om = {
|
|
15846
15874
|
install(e, t) {
|
|
15847
15875
|
const a = Object.assign(
|
|
15848
15876
|
{
|
|
@@ -15850,10 +15878,10 @@ var ji = Symbol.for("FormKitOptions"), Fm = Symbol.for("FormKitConfig"), Gm = {
|
|
|
15850
15878
|
schemaAlias: "FormKitSchema"
|
|
15851
15879
|
},
|
|
15852
15880
|
typeof t == "function" ? t() : t
|
|
15853
|
-
), n =
|
|
15881
|
+
), n = Ol(a.config || {});
|
|
15854
15882
|
a.config = { rootConfig: n }, e.config.globalProperties.$formkit = jm(e, a), e.provide(ji, a), e.provide(Fm, n), typeof window < "u" && (globalThis.__FORMKIT_CONFIGS__ = (globalThis.__FORMKIT_CONFIGS__ || []).concat([n]));
|
|
15855
15883
|
}
|
|
15856
|
-
},
|
|
15884
|
+
}, Gm = typeof window < "u", Et = [
|
|
15857
15885
|
// Boolean props
|
|
15858
15886
|
"ignore",
|
|
15859
15887
|
"disabled",
|
|
@@ -15867,7 +15895,7 @@ var ji = Symbol.for("FormKitOptions"), Fm = Symbol.for("FormKitConfig"), Gm = {
|
|
|
15867
15895
|
"prefixIcon",
|
|
15868
15896
|
"suffixIcon",
|
|
15869
15897
|
/^[a-zA-Z-]+(?:-icon|Icon)$/
|
|
15870
|
-
],
|
|
15898
|
+
], Vm = ["disabled", "ignore", "preserve"];
|
|
15871
15899
|
function _a(e, t) {
|
|
15872
15900
|
t.classes && Object.keys(t.classes).forEach(
|
|
15873
15901
|
(a) => {
|
|
@@ -15885,7 +15913,7 @@ function Im(e) {
|
|
|
15885
15913
|
) : {};
|
|
15886
15914
|
}
|
|
15887
15915
|
function Em(e, t, a = {}) {
|
|
15888
|
-
const n = Object.assign({}, ot(ji) || {}, a), i = ot(Sm, z(
|
|
15916
|
+
const n = Object.assign({}, ot(ji) || {}, a), i = ot(Sm, z(Gm ? document : void 0)), r = ot(Lm, () => {
|
|
15889
15917
|
}), s = Yt(), l = Im(s == null ? void 0 : s.vnode.props), m = ["modelValue", "model-value"].some(
|
|
15890
15918
|
(p) => p in ((s == null ? void 0 : s.vnode.props) ?? {})
|
|
15891
15919
|
);
|
|
@@ -15903,9 +15931,9 @@ function Em(e, t, a = {}) {
|
|
|
15903
15931
|
__slots: t.slots
|
|
15904
15932
|
}, y = Da(Se(t.attrs), Et);
|
|
15905
15933
|
y.key || (y.key = Xe()), p.attrs = y;
|
|
15906
|
-
const
|
|
15907
|
-
for (const g in
|
|
15908
|
-
|
|
15934
|
+
const G = Ba(Se(t.attrs), Et);
|
|
15935
|
+
for (const g in G)
|
|
15936
|
+
Vm.includes(g) && G[g] === "" && (G[g] = !0), p[Ge(g)] = G[g];
|
|
15909
15937
|
const c = { props: {} };
|
|
15910
15938
|
return _a(c, e), Object.assign(p, c.props), typeof p.type != "string" && (p.definition = p.type, delete p.type), p;
|
|
15911
15939
|
}
|
|
@@ -15935,11 +15963,11 @@ function Em(e, t, a = {}) {
|
|
|
15935
15963
|
T.on(
|
|
15936
15964
|
"added-props",
|
|
15937
15965
|
({ payload: p }) => {
|
|
15938
|
-
(Array.isArray(p) ? p : Object.keys(p ?? {})).forEach((
|
|
15966
|
+
(Array.isArray(p) ? p : Object.keys(p ?? {})).forEach((G) => h.value.add(G));
|
|
15939
15967
|
}
|
|
15940
15968
|
);
|
|
15941
15969
|
const w = be(
|
|
15942
|
-
() => Et.concat([...h.value]).reduce((p, y) => (typeof y == "string" ? (p.push(
|
|
15970
|
+
() => Et.concat([...h.value]).reduce((p, y) => (typeof y == "string" ? (p.push(Ge(y)), p.push(Gn(y))) : p.push(y), p), [])
|
|
15943
15971
|
);
|
|
15944
15972
|
pe(() => _a(T, e));
|
|
15945
15973
|
const C = Se(e);
|
|
@@ -15962,12 +15990,12 @@ function Em(e, t, a = {}) {
|
|
|
15962
15990
|
y(), P.delete(y);
|
|
15963
15991
|
});
|
|
15964
15992
|
for (const y in p) {
|
|
15965
|
-
const
|
|
15993
|
+
const G = Ge(y);
|
|
15966
15994
|
P.add(
|
|
15967
15995
|
_e(
|
|
15968
15996
|
() => t.attrs[y],
|
|
15969
15997
|
() => {
|
|
15970
|
-
T.props[
|
|
15998
|
+
T.props[G] = t.attrs[y];
|
|
15971
15999
|
}
|
|
15972
16000
|
)
|
|
15973
16001
|
);
|
|
@@ -15992,9 +16020,9 @@ function Em(e, t, a = {}) {
|
|
|
15992
16020
|
}), T.type !== "input") {
|
|
15993
16021
|
const p = `${T.name}-prop`;
|
|
15994
16022
|
pe(() => {
|
|
15995
|
-
const y = e.inputErrors ?? {},
|
|
15996
|
-
|
|
15997
|
-
const c =
|
|
16023
|
+
const y = e.inputErrors ?? {}, G = Object.keys(y);
|
|
16024
|
+
G.length || T.clearErrors(!0, p);
|
|
16025
|
+
const c = G.reduce((g, f) => {
|
|
15998
16026
|
let u = y[f];
|
|
15999
16027
|
return typeof u == "string" && (u = [u]), Array.isArray(u) && (g[f] = u.map(
|
|
16000
16028
|
(v) => /* @__PURE__ */ ae({
|
|
@@ -16036,19 +16064,19 @@ function ne(e, t = {}, a = {}) {
|
|
|
16036
16064
|
let i;
|
|
16037
16065
|
if (Hm(e)) {
|
|
16038
16066
|
const r = `SchemaComponent${Ym++}`;
|
|
16039
|
-
i = /* @__PURE__ */
|
|
16067
|
+
i = /* @__PURE__ */ O("input", () => ({
|
|
16040
16068
|
$cmp: r,
|
|
16041
16069
|
props: {
|
|
16042
16070
|
context: "$node.context"
|
|
16043
16071
|
}
|
|
16044
16072
|
})), n.library = { [r]: Lt(e) };
|
|
16045
|
-
} else typeof e == "function" ? i = e : i = /* @__PURE__ */
|
|
16073
|
+
} else typeof e == "function" ? i = e : i = /* @__PURE__ */ O("input", () => re(e));
|
|
16046
16074
|
return n.schema = /* @__PURE__ */ Wd(i || "Schema undefined", a), n.schemaMemoKey || (n.schemaMemoKey = `${Math.random()}`), n;
|
|
16047
16075
|
}
|
|
16048
|
-
var Rm = /* @__PURE__ */
|
|
16076
|
+
var Rm = /* @__PURE__ */ O("messages", () => ({
|
|
16049
16077
|
$el: "ul",
|
|
16050
16078
|
if: "$fns.length($messages)"
|
|
16051
|
-
})), Nm = /* @__PURE__ */
|
|
16079
|
+
})), Nm = /* @__PURE__ */ O("message", () => ({
|
|
16052
16080
|
$el: "li",
|
|
16053
16081
|
for: ["message", "$messages"],
|
|
16054
16082
|
attrs: {
|
|
@@ -16058,30 +16086,30 @@ var Rm = /* @__PURE__ */ G("messages", () => ({
|
|
|
16058
16086
|
}
|
|
16059
16087
|
}));
|
|
16060
16088
|
Rm(Nm("$message.value"));
|
|
16061
|
-
var qm = /* @__PURE__ */
|
|
16089
|
+
var qm = /* @__PURE__ */ O("summary", () => ({
|
|
16062
16090
|
$el: "div",
|
|
16063
16091
|
attrs: {
|
|
16064
16092
|
"aria-live": "polite"
|
|
16065
16093
|
}
|
|
16066
|
-
})), Qm = /* @__PURE__ */
|
|
16094
|
+
})), Qm = /* @__PURE__ */ O("summaryInner", () => ({
|
|
16067
16095
|
$el: "div",
|
|
16068
16096
|
if: "$summaries.length && $showSummaries"
|
|
16069
|
-
})), Xm = /* @__PURE__ */
|
|
16097
|
+
})), Xm = /* @__PURE__ */ O("messages", () => ({
|
|
16070
16098
|
$el: "ul",
|
|
16071
16099
|
if: "$summaries.length && $showSummaries"
|
|
16072
|
-
})), Wm = /* @__PURE__ */
|
|
16100
|
+
})), Wm = /* @__PURE__ */ O("message", () => ({
|
|
16073
16101
|
$el: "li",
|
|
16074
16102
|
for: ["summary", "$summaries"],
|
|
16075
16103
|
attrs: {
|
|
16076
16104
|
key: "$summary.key",
|
|
16077
16105
|
"data-message-type": "$summary.type"
|
|
16078
16106
|
}
|
|
16079
|
-
})), Um = /* @__PURE__ */
|
|
16107
|
+
})), Um = /* @__PURE__ */ O("summaryHeader", () => ({
|
|
16080
16108
|
$el: "h2",
|
|
16081
16109
|
attrs: {
|
|
16082
16110
|
id: "$id"
|
|
16083
16111
|
}
|
|
16084
|
-
})), zm = /* @__PURE__ */
|
|
16112
|
+
})), zm = /* @__PURE__ */ O("messageLink", () => ({
|
|
16085
16113
|
$el: "a",
|
|
16086
16114
|
attrs: {
|
|
16087
16115
|
id: "$summary.key",
|
|
@@ -16108,7 +16136,7 @@ function Km(e) {
|
|
|
16108
16136
|
}
|
|
16109
16137
|
const tg = (e) => {
|
|
16110
16138
|
e.use(
|
|
16111
|
-
|
|
16139
|
+
Om,
|
|
16112
16140
|
pa({
|
|
16113
16141
|
plugins: [Km],
|
|
16114
16142
|
inputs: {
|
|
@@ -16139,7 +16167,7 @@ const tg = (e) => {
|
|
|
16139
16167
|
),
|
|
16140
16168
|
BaListRepeater: ne(
|
|
16141
16169
|
W(
|
|
16142
|
-
() => import("./ListRepeater
|
|
16170
|
+
() => import("./ListRepeater-zIG-jF4t.js")
|
|
16143
16171
|
)
|
|
16144
16172
|
),
|
|
16145
16173
|
BaTextStyleList: ne(
|
|
@@ -16159,13 +16187,13 @@ const tg = (e) => {
|
|
|
16159
16187
|
),
|
|
16160
16188
|
BaImageUpload: ne(
|
|
16161
16189
|
W(
|
|
16162
|
-
() => import("./ImageUpload-
|
|
16190
|
+
() => import("./ImageUpload-BKvBZ31W.js")
|
|
16163
16191
|
),
|
|
16164
16192
|
{ props: ["ignoreUpdate"] }
|
|
16165
16193
|
),
|
|
16166
16194
|
BaLinkButton: ne(
|
|
16167
16195
|
W(
|
|
16168
|
-
() => import("./LinkButton-
|
|
16196
|
+
() => import("./LinkButton-DNXBKGCn.js")
|
|
16169
16197
|
)
|
|
16170
16198
|
),
|
|
16171
16199
|
BaSwitch: ne(
|
|
@@ -16188,7 +16216,7 @@ const tg = (e) => {
|
|
|
16188
16216
|
"ko-KR": { ...ur, ...as },
|
|
16189
16217
|
"vi-VN": { ...br, ...ls },
|
|
16190
16218
|
"ms-MY": { ...Tr, ...ps }
|
|
16191
|
-
}, ng = W(() => import("./App-
|
|
16219
|
+
}, ng = W(() => import("./App-OEfPstzM.js"));
|
|
16192
16220
|
export {
|
|
16193
16221
|
Si as F,
|
|
16194
16222
|
Li as a,
|