@feedmepos/mf-connect 0.1.0-beta.61 → 0.1.0-beta.63
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/{Analytic-u9mtlxSv.js → Analytic-B6gawfKq.js} +11 -11
- package/dist/{App-BwTQE7Ft.js → App-D5hrcZFI.js} +6 -6
- package/dist/{AuditLogs-BVMRclSw.js → AuditLogs-CNl7JmOE.js} +8 -8
- package/dist/{Bin-Cca-XOkz.js → Bin-8AxBcVVx.js} +8 -8
- package/dist/{Broadcast-DRQgpwdP.js → Broadcast-CtITrwEL.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CeUu_T1u.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DOwAdkjF.js} +6 -6
- package/dist/{Card-CnbB_u31.js → Card-BEWdNGJk.js} +15 -15
- package/dist/{Collections-BjlfOSC3.js → Collections-Q9dNhSNn.js} +5 -5
- package/dist/{Credit-BoElrcx9.js → Credit-DfzIwziN.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B3WVwem6.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BckrtGWZ.js} +28 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CGfpziKs.js → EffectSheet.vue_vue_type_style_index_0_lang-CZoqGhE_.js} +6 -6
- package/dist/{Experience-SdGBf4vU.js → Experience-CBFckRvf.js} +9 -9
- package/dist/{Game-ChLHibpB.js → Game-B9CUNCtq.js} +9 -9
- package/dist/{Index-D7Kq6uyf.js → Index-CQQUQJOS.js} +10 -10
- package/dist/{Marketing-BDajIqR_.js → Marketing-CQO5hw8D.js} +6 -6
- package/dist/{Member-BPZryqWL.js → Member-CXtvsQNE.js} +5 -5
- package/dist/{MemberList-C52Dop8Z.js → MemberList-poBwKTlI.js} +24 -24
- package/dist/{MemberTransactions-DHU78kgS.js → MemberTransactions-BYJGcT4u.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-js1F2E4N.js → MessageInput.vue_vue_type_script_setup_true_lang-DtmAbuY4.js} +2 -2
- package/dist/{Mission-BQR3qjAu.js → Mission-DTrzmqgl.js} +9 -9
- package/dist/{Overview-BbLYWXjG.js → Overview-CW1vkdhy.js} +17 -17
- package/dist/{Point-DbTcWJbQ.js → Point-4IquZrGL.js} +9 -9
- package/dist/{Promotion-CIrpWBQD.js → Promotion-D-z6DDla.js} +10 -10
- package/dist/{Queue-B0Mfq2Vn.js → Queue-BhX0AFF2.js} +9 -9
- package/dist/{Record-Z6ZrJeLc.js → Record-DM3zFBc4.js} +7 -7
- package/dist/{Reward-D6k0QFQA.js → Reward-DH5ibLPZ.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-GJ6j_jOh.js → RewardGroup.vue_vue_type_script_setup_true_lang-Bj5eD5pX.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-gQxmX9ur.js → RuleGroup.vue_vue_type_script_setup_true_lang-CtUMriGp.js} +12 -12
- package/dist/{Segment-D6MF-EO8.js → Segment-BI6GO8iX.js} +14 -14
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BWG-pz6F.js → SelectItems.vue_vue_type_script_setup_true_lang-Zjg61vYE.js} +3 -3
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-HgorlHNz.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Dmoq_bJZ.js} +3 -3
- package/dist/{Setting--OFDS95z.js → Setting-B6CcCapm.js} +10 -10
- package/dist/{Store-BqlRTC-c.js → Store-CT7VDudR.js} +683 -595
- package/dist/{StoreRewards-BTu0IdDN.js → StoreRewards-DDyGOrSx.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BX053DJA.js → StoreTransactions.vue_vue_type_script_setup_true_lang-8iCqW_N7.js} +17 -17
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BAkuqLwy.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Cglce4fZ.js} +1 -1
- package/dist/{Tier-CE9LYAEX.js → Tier-CISq9Rg4.js} +19 -19
- package/dist/{Title-DOOASUMI.js → Title-ByEP9Gjs.js} +19 -19
- package/dist/{Transaction-DPxUOBP-.js → Transaction-CCYK-3X1.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CKwf0F_i.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CydeM-n-.js} +6 -6
- package/dist/{Voucher-D69DD02z.js → Voucher-zTTTntky.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CFL0Nsez.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DL1xQskK.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Byh6_EJM.js → ZodTextField.vue_vue_type_script_setup_true_lang-C6UdHnVo.js} +1 -1
- package/dist/{app-DgfmbHZe.js → app-D5Ra9xrG.js} +1 -1
- package/dist/{app-C2u1t47T.js → app-DxynV1X7.js} +576 -568
- package/dist/app.js +1 -1
- package/dist/{business-BqCJB_vA.js → business-dhbztRTa.js} +1 -1
- package/dist/{campaign-D0dTbl5b.js → campaign-B1iNc9qO.js} +9 -9
- package/dist/{campaign-CWMPCmmU.js → campaign-BQA5cPe-.js} +2 -2
- package/dist/{campaign.enum-DhE8N4pA.js → campaign.enum-CSqtGFzq.js} +1 -1
- package/dist/{campaign.fn-BpO-RQih.js → campaign.fn-BbK0gRMO.js} +79 -79
- package/dist/{collectible.enum-rWEc6Tsw.js → collectible.enum-C6CobEkg.js} +1 -1
- package/dist/{collection.fn-biX2iFDQ.js → collection.fn-DxhFXSTy.js} +2 -2
- package/dist/{dto-3m7xZwfI.js → dto-BEr_RwXD.js} +4 -4
- package/dist/{effect-ZMGRxKCZ.js → effect-qgarf2Pv.js} +1 -1
- package/dist/{email-addresses-lgY03bkq.js → email-addresses-GiNBRPBn.js} +1 -1
- package/dist/{export-BOzeYUy8.js → export-FZKAj1_m.js} +3 -3
- package/dist/{helper-CO29wun4.js → helper-CAFMDuuv.js} +1 -1
- package/dist/{index-ChrOXJDq.js → index-BKk1muBO.js} +1 -1
- package/dist/{index-Xh9cW6Y9.js → index-Ba-4JUrM.js} +3 -3
- package/dist/{index-LYAWIqjk.js → index-Bpnf1Jnl.js} +1 -1
- package/dist/{index-BVbiAxW8.js → index-C-FzeYpM.js} +1 -1
- package/dist/{index-B3V7krW_.js → index-CvtM6V5B.js} +3 -3
- package/dist/{index-DNGenFnf.js → index-DBUGR-0t.js} +1 -1
- package/dist/{index-YsC4VklJ.js → index-DIQ2zqIs.js} +1 -1
- package/dist/{index-Dd22X409.js → index-DWfSOO2Y.js} +6 -6
- package/dist/{index-CYOwwy3h.js → index-DnIJGBOA.js} +1 -1
- package/dist/{index-Bvch9tuP.js → index-I1QEAfZZ.js} +1 -1
- package/dist/{index-CbYXYVYp.js → index-ZP0c52Fr.js} +2 -2
- package/dist/{index-XhqaicYu.js → index-re4GLf0z.js} +4 -4
- package/dist/{index.esm2017-CJ1flA6S.js → index.esm2017-Dh8iO0Er.js} +1 -1
- package/dist/{loading-CUs_CN1k.js → loading-Dn4uRmEp.js} +1 -1
- package/dist/{membership-D-GVacos.js → membership-D8D_UHuB.js} +3 -3
- package/dist/{money-CMtSALkX.js → money-DBRNHF-Z.js} +1 -1
- package/dist/{number-CDwwgAYM.js → number-CFLIvcEb.js} +1 -1
- package/dist/{objectid-Bf9yKD81.js → objectid-BmDkIt_5.js} +12 -12
- package/dist/{plugins-9sQTEyth.js → plugins-l5VSqqNJ.js} +4 -4
- package/dist/{reward-DblXGhWc.js → reward-DdEwVAuY.js} +1 -1
- package/dist/{rule-Cy8cTzuw.js → rule-DpS_KPvK.js} +3 -3
- package/dist/{rule-builder-Cn5vZgFN.js → rule-builder-DSCguKh_.js} +1 -1
- package/dist/{template-Cal94dUy.js → template-CTaPJpC9.js} +4 -4
- package/dist/{trigger-C1nwLSP8.js → trigger-CuuEBItq.js} +4 -4
- package/dist/{user-ir4Rn5bP.js → user-J7_0joF2.js} +1 -1
- package/dist/{vue-i18n-eOHBBaH5.js → vue-i18n-DLLf4Ccx.js} +300 -300
- package/dist/{xlsx-DulnT75_.js → xlsx-8eSK1fl8.js} +1 -1
- package/package.json +1 -1
|
@@ -1027,7 +1027,7 @@ const Pe = {
|
|
|
1027
1027
|
connect: Pe,
|
|
1028
1028
|
connectZod: Le,
|
|
1029
1029
|
connectZodCustom: je
|
|
1030
|
-
},
|
|
1030
|
+
}, Be = {
|
|
1031
1031
|
common: {
|
|
1032
1032
|
confirm: "确认",
|
|
1033
1033
|
cancel: "取消",
|
|
@@ -1271,7 +1271,7 @@ const Pe = {
|
|
|
1271
1271
|
title: "头衔",
|
|
1272
1272
|
experience: "经验",
|
|
1273
1273
|
point: "点数",
|
|
1274
|
-
credit: "
|
|
1274
|
+
credit: "代金",
|
|
1275
1275
|
game: "游戏",
|
|
1276
1276
|
loyalty: "忠诚度",
|
|
1277
1277
|
member: "会员",
|
|
@@ -1378,7 +1378,7 @@ const Pe = {
|
|
|
1378
1378
|
token_received: "获得的代币:{count}"
|
|
1379
1379
|
},
|
|
1380
1380
|
credit: {
|
|
1381
|
-
title: "
|
|
1381
|
+
title: "代金"
|
|
1382
1382
|
},
|
|
1383
1383
|
point: {
|
|
1384
1384
|
title: "点数",
|
|
@@ -1703,9 +1703,9 @@ const Pe = {
|
|
|
1703
1703
|
submit: "提交",
|
|
1704
1704
|
cancel: "取消",
|
|
1705
1705
|
advanceSetting: "高级设置",
|
|
1706
|
-
credit: "
|
|
1707
|
-
normalCredit: "
|
|
1708
|
-
freeCredit: "
|
|
1706
|
+
credit: "代金",
|
|
1707
|
+
normalCredit: "储值金",
|
|
1708
|
+
freeCredit: "奖励金",
|
|
1709
1709
|
taxes: "税费",
|
|
1710
1710
|
taxCharge: {
|
|
1711
1711
|
title: "税费({type})",
|
|
@@ -1898,7 +1898,7 @@ const Pe = {
|
|
|
1898
1898
|
description: "描述"
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
|
-
},
|
|
1901
|
+
}, Ze = {
|
|
1902
1902
|
errors: {
|
|
1903
1903
|
invalid_type: "预期输入为{{expected}},而输入为{{received}}",
|
|
1904
1904
|
invalid_type_received_undefined: "必填",
|
|
@@ -2010,7 +2010,7 @@ const Pe = {
|
|
|
2010
2010
|
map: "字典",
|
|
2011
2011
|
set: "集合"
|
|
2012
2012
|
}
|
|
2013
|
-
},
|
|
2013
|
+
}, Ve = {
|
|
2014
2014
|
timeframe: {
|
|
2015
2015
|
end_before_start: "结束日期必须晚于或等于开始日期"
|
|
2016
2016
|
},
|
|
@@ -2027,20 +2027,20 @@ const Pe = {
|
|
|
2027
2027
|
effect_required: "效果是必需的"
|
|
2028
2028
|
}
|
|
2029
2029
|
}, $e = {
|
|
2030
|
-
connect:
|
|
2031
|
-
connectZod:
|
|
2032
|
-
connectZodCustom:
|
|
2030
|
+
connect: Be,
|
|
2031
|
+
connectZod: Ze,
|
|
2032
|
+
connectZodCustom: Ve
|
|
2033
2033
|
}, Ue = {
|
|
2034
2034
|
campaign: {
|
|
2035
2035
|
common: {
|
|
2036
2036
|
createCampaign: "สร้างแคมเปญ",
|
|
2037
2037
|
search: "ค้นหา",
|
|
2038
|
-
location: "
|
|
2038
|
+
location: "สาขา : ",
|
|
2039
2039
|
noResults: "ไม่พบข้อมูล",
|
|
2040
2040
|
remove: {
|
|
2041
2041
|
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
|
|
2042
2042
|
removing: "กำลังลบ {name}",
|
|
2043
|
-
removed: "ลบ {name}
|
|
2043
|
+
removed: "ลบ {name} สำเร็จแล้ว"
|
|
2044
2044
|
},
|
|
2045
2045
|
actions: {
|
|
2046
2046
|
remove: "ลบ",
|
|
@@ -2048,11 +2048,11 @@ const Pe = {
|
|
|
2048
2048
|
share: "แชร์"
|
|
2049
2049
|
},
|
|
2050
2050
|
effect_required: "จำเป็นต้องกรอก",
|
|
2051
|
-
unsaved_changes: "
|
|
2051
|
+
unsaved_changes: "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกการแก้ไข",
|
|
2052
2052
|
unsaved_changes_confirm: "ยืนยัน",
|
|
2053
|
-
unsaved_changes_cancel: "
|
|
2053
|
+
unsaved_changes_cancel: "ยกเลิก",
|
|
2054
2054
|
save: "บันทึก",
|
|
2055
|
-
cancel: "
|
|
2055
|
+
cancel: "ยกเลิก",
|
|
2056
2056
|
summary: "สรุปแคมเปญ",
|
|
2057
2057
|
campaign_name: "ชื่อแคมเปญ",
|
|
2058
2058
|
campaign_period: "ระยะเวลาแคมเปญ",
|
|
@@ -2070,12 +2070,12 @@ const Pe = {
|
|
|
2070
2070
|
create: "สร้างแคมเปญ",
|
|
2071
2071
|
confirmDelete: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
|
|
2072
2072
|
removing: "กำลังลบ {name}",
|
|
2073
|
-
removed: "ลบ {name}
|
|
2073
|
+
removed: "ลบ {name} สำเร็จแล้ว",
|
|
2074
2074
|
updating: "กำลังอัปเดต Mission",
|
|
2075
2075
|
updated: "อัปเดต Mission สำเร็จ",
|
|
2076
2076
|
creating: "กำลังสร้าง Mission",
|
|
2077
2077
|
created: "สร้าง Mission สำเร็จ",
|
|
2078
|
-
location: "
|
|
2078
|
+
location: "สาขา : ",
|
|
2079
2079
|
createProgram: "สร้าง Mission ของคุณ",
|
|
2080
2080
|
description: "Mission สำหรับช่วยกระตุ้นให้ลูกค้าช้อปปิ้งและเพิ่มโอกาสในการใช้งานมากขึ้น",
|
|
2081
2081
|
createButton: "สร้าง Mission ",
|
|
@@ -2087,7 +2087,7 @@ const Pe = {
|
|
|
2087
2087
|
messageSent: "ส่งแล้ว {count} ครั้ง",
|
|
2088
2088
|
create: {
|
|
2089
2089
|
title: "สร้างแคมเปญบรอดแคสต์ของคุณ",
|
|
2090
|
-
description: "
|
|
2090
|
+
description: "การบรอดแคสต์ทำให้คุณสามารถส่งข้อความถึงลูกค้าทั้งหมด เพื่อแจ้งให้พวกเขาทราบเกี่ยวกับข้อเสนอใหม่ กิจกรรม หรือการอัปเดตที่สำคัญ",
|
|
2091
2091
|
button: "สร้างแคมเปญบรอดแคสต์"
|
|
2092
2092
|
},
|
|
2093
2093
|
update: {
|
|
@@ -2101,7 +2101,7 @@ const Pe = {
|
|
|
2101
2101
|
typeLabel: "{type} โปรโมชัน",
|
|
2102
2102
|
create: {
|
|
2103
2103
|
title: "สร้างแคมเปญโปรโมชัน",
|
|
2104
|
-
description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ
|
|
2104
|
+
description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในระยะเวลาที่จัดโปรโมชั่นเท่านั้น",
|
|
2105
2105
|
button: "สร้างแคมเปญโปรโมชัน"
|
|
2106
2106
|
},
|
|
2107
2107
|
update: {
|
|
@@ -2156,7 +2156,7 @@ const Pe = {
|
|
|
2156
2156
|
search: "ค้นหา",
|
|
2157
2157
|
location: "สาขา:",
|
|
2158
2158
|
createPromotionCampaign: "สร้างแคมเปญโปรโมชัน",
|
|
2159
|
-
description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ
|
|
2159
|
+
description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในระยะเวลาที่จัดโปรโมชั่นเท่านั้น"
|
|
2160
2160
|
},
|
|
2161
2161
|
voucher: {
|
|
2162
2162
|
createCampaign: "สร้างแคมเปญ",
|
|
@@ -2178,9 +2178,9 @@ const Pe = {
|
|
|
2178
2178
|
createdSuccessfully: "สร้างบัตรกำนัลสำเร็จ",
|
|
2179
2179
|
title: "บัตรกำนัล",
|
|
2180
2180
|
search: "ค้นหา",
|
|
2181
|
-
location: "
|
|
2181
|
+
location: "สาขา",
|
|
2182
2182
|
createVoucherCampaign: "สร้างแคมเปญบัตรกำนัล",
|
|
2183
|
-
description: "
|
|
2183
|
+
description: "บัตรกำนัลดิจิทัลที่ผู้ใช้สามารถแลกรับส่วนลดในการสั่งซื้อในอนาคต โดยปกติแล้วผู้ใช้จะต้องรับและใช้บัตรกำนัลเพื่อรับส่วนลด"
|
|
2184
2184
|
},
|
|
2185
2185
|
navigation: {
|
|
2186
2186
|
analytic: "การวิเคราะห์",
|
|
@@ -2242,7 +2242,7 @@ const Pe = {
|
|
|
2242
2242
|
remove: "ลบ"
|
|
2243
2243
|
},
|
|
2244
2244
|
table: {
|
|
2245
|
-
name: "
|
|
2245
|
+
name: "ชื่อ",
|
|
2246
2246
|
total_customers: "จำนวนลูกค้าทั้งหมดในกลุ่มสมาชิก",
|
|
2247
2247
|
customer_percentage: "% ของลูกค้า",
|
|
2248
2248
|
actions: "การดำเนินการ"
|
|
@@ -2316,22 +2316,30 @@ const Pe = {
|
|
|
2316
2316
|
description: "มอบสิทธิประโยชน์และรางวัลสุดพิเศษให้กับสมาชิกของคุณด้วยการเข้าร่วมแคมเปญสมาชิก คุณสามารถเลือกสิ่งที่สมาชิกต้องการเสนอได้"
|
|
2317
2317
|
},
|
|
2318
2318
|
actions: {
|
|
2319
|
-
add: "
|
|
2320
|
-
season_setting: "
|
|
2319
|
+
add: "เพิ่มระดับสมาชิก",
|
|
2320
|
+
season_setting: "ฤดูกาลปรับระดับสมาชิก"
|
|
2321
2321
|
},
|
|
2322
2322
|
update: {
|
|
2323
2323
|
range_discontinuous: {
|
|
2324
|
-
previous:
|
|
2325
|
-
|
|
2324
|
+
previous: `ช่วงระดับสมาชิกไม่ต่อเนื่อง
|
|
2325
|
+
ช่วงก่อนหน้า: {name} [{from} - {to}]
|
|
2326
|
+
คุณต้องการอัปเดตช่วงก่อนหน้าเป็น [{from} - {newTo}] หรือไม่?`,
|
|
2327
|
+
next: `ช่วงระดับสมาชิกไม่ต่อเนื่อง
|
|
2328
|
+
ระดับถัดไป: {name} [{from} - {to}]
|
|
2329
|
+
คุณต้องการอัปเดตระดับถัดไป [{from} - {newTo}] หรือไม่?`
|
|
2326
2330
|
}
|
|
2327
2331
|
},
|
|
2328
2332
|
remove: {
|
|
2329
|
-
confirm: "
|
|
2330
|
-
title: "
|
|
2331
|
-
next_range: "
|
|
2333
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบระดับสมาชิกนี้?",
|
|
2334
|
+
title: "ลบระดับสมาชิก",
|
|
2335
|
+
next_range: "อัปเดตระดับสมาชิกถัดไป",
|
|
2332
2336
|
range_discontinuous: {
|
|
2333
|
-
previous:
|
|
2334
|
-
|
|
2337
|
+
previous: `ช่วงระดับสมาชิกไม่ต่อเนื่อง
|
|
2338
|
+
ช่วงก่อนหน้า: {name} [{from} - {to}]
|
|
2339
|
+
คุณต้องการอัปเดตช่วงก่อนหน้าเป็น [{from} - {newTo}] หรือไม่?`,
|
|
2340
|
+
next: `ช่วงระดับสมาชิกไม่ต่อเนื่อง
|
|
2341
|
+
ระดับถัดไป: {name} [{from} - {to}]
|
|
2342
|
+
คุณต้องการอัปเดตระดับถัดไป [{from} - {newTo}] หรือไม่?`
|
|
2335
2343
|
}
|
|
2336
2344
|
},
|
|
2337
2345
|
benefit: {
|
|
@@ -2344,24 +2352,24 @@ const Pe = {
|
|
|
2344
2352
|
}
|
|
2345
2353
|
},
|
|
2346
2354
|
title: {
|
|
2347
|
-
title: "
|
|
2355
|
+
title: "ป้ายชื่อ",
|
|
2348
2356
|
empty_state: {
|
|
2349
|
-
title: "
|
|
2357
|
+
title: "สร้างโปรแกรมป้ายชื่ื่อ",
|
|
2350
2358
|
description: "สร้างโปรแกรมป้ายชื่อ สร้างชื่อสมาชิกที่ไม่ซ้ำกันเพื่อปรับแต่งประสบการณ์ของสมาชิก ดึงดูดลูกค้าด้วยชื่อที่สนุกสนานเพื่อปรับปรุงการเล่นเกมโปรแกรมสะสมคะแนน"
|
|
2351
2359
|
},
|
|
2352
2360
|
actions: {
|
|
2353
|
-
add: "
|
|
2361
|
+
add: "เพิ่มป้ายชื่อ"
|
|
2354
2362
|
},
|
|
2355
2363
|
update: {
|
|
2356
|
-
creating: "
|
|
2357
|
-
updating: "
|
|
2358
|
-
success: "
|
|
2364
|
+
creating: "กำลังสร้างป้ายชื่อ",
|
|
2365
|
+
updating: "กำลังอัปเดตป้ายชื่อ",
|
|
2366
|
+
success: "ป้ายชื่อ {action} สำเร็จ"
|
|
2359
2367
|
},
|
|
2360
2368
|
remove: {
|
|
2361
|
-
confirm: "
|
|
2362
|
-
title: "
|
|
2363
|
-
deleting: "
|
|
2364
|
-
success: "
|
|
2369
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบป้ายชื่อนี้?",
|
|
2370
|
+
title: "ลบป้ายชื่อ",
|
|
2371
|
+
deleting: "กำลังลบป้ายชื่อเรื่อง",
|
|
2372
|
+
success: "ลบป้ายชื่อสำเร็จ"
|
|
2365
2373
|
},
|
|
2366
2374
|
benefit: {
|
|
2367
2375
|
add: "เพิ่มสิทธิประโยชน์",
|
|
@@ -2379,29 +2387,29 @@ const Pe = {
|
|
|
2379
2387
|
},
|
|
2380
2388
|
table: {
|
|
2381
2389
|
title: "ป้ายชื่อ",
|
|
2382
|
-
program_title: "
|
|
2390
|
+
program_title: "ป้ายชื่อโปรแกรม",
|
|
2383
2391
|
status: "สถานะ",
|
|
2384
|
-
type: "
|
|
2392
|
+
type: "ประเภท",
|
|
2385
2393
|
summary: "สรุป",
|
|
2386
2394
|
actions: "การดำเนินการ"
|
|
2387
2395
|
},
|
|
2388
2396
|
search: "ค้นหา",
|
|
2389
|
-
location: "สาขา:
|
|
2397
|
+
location: "สาขา:",
|
|
2390
2398
|
addBenefit: "เพิ่มสิทธิประโยชน์",
|
|
2391
2399
|
noDescription: "ไม่มีคำอธิบาย",
|
|
2392
2400
|
descriptionLimit: "{name} คำอธิบายไม่ควรเกิน 200 ตัวอักษร",
|
|
2393
2401
|
availability: "ความพร้อมใช้งาน",
|
|
2394
|
-
internalOnly: "
|
|
2402
|
+
internalOnly: "ใช้ภายในเท่านั้น",
|
|
2395
2403
|
notShown: "{name} จะไม่แสดงให้ลูกค้าเห็น",
|
|
2396
|
-
submit: "
|
|
2397
|
-
cancel: "
|
|
2398
|
-
imageLabel: "รูปภาพ {
|
|
2404
|
+
submit: "ยืนยัน",
|
|
2405
|
+
cancel: "ยกเลิก",
|
|
2406
|
+
imageLabel: "รูปภาพ {ชื่อ}"
|
|
2399
2407
|
},
|
|
2400
2408
|
mission: {
|
|
2401
2409
|
title: "Mission",
|
|
2402
2410
|
empty_state: {
|
|
2403
|
-
title: "สร้างโปรแกรมMissionของคุณ",
|
|
2404
|
-
description: "Missionเป็นโปรแกรมที่ช่วยให้ลูกค้าสามารถทำงานให้เสร็จสิ้นเพื่อรับรางวัลได้"
|
|
2411
|
+
title: "สร้างโปรแกรม Mission ของคุณ",
|
|
2412
|
+
description: "Mission เป็นโปรแกรมที่ช่วยให้ลูกค้าสามารถทำงานให้เสร็จสิ้นเพื่อรับรางวัลได้"
|
|
2405
2413
|
}
|
|
2406
2414
|
}
|
|
2407
2415
|
},
|
|
@@ -2410,14 +2418,14 @@ const Pe = {
|
|
|
2410
2418
|
addGroup: "เพิ่มกลุ่ม",
|
|
2411
2419
|
search: "ค้นหา",
|
|
2412
2420
|
summary: {
|
|
2413
|
-
title: "
|
|
2414
|
-
totalCampaign: "
|
|
2415
|
-
totalProgram: "
|
|
2421
|
+
title: "สรุปภาพรวมของ Connect",
|
|
2422
|
+
totalCampaign: "แคมเปญทั้งหมด",
|
|
2423
|
+
totalProgram: "โปรแกรมสมาชิกทั้งหมด",
|
|
2416
2424
|
totalMember: "สมาชิกทั้งหมด"
|
|
2417
2425
|
},
|
|
2418
2426
|
emptyState: {
|
|
2419
2427
|
title: "สร้างกลุ่มแคมเปญเพื่อติดตามประสิทธิภาพ",
|
|
2420
|
-
description: "
|
|
2428
|
+
description: "เริ่มจัดระเบียบแคมเปญและโปรโมชั่นของคุณโดยการสร้างกลุ่ม กลุ่มช่วยให้คุณสามารถรวมตัวชี้วัดประสิทธิภาพจากบัตรกำนัล โปรโมชั่น หรือรางวัลอื่น ๆ ได้หลายรายการ",
|
|
2421
2429
|
action: "สร้างกลุ่ม"
|
|
2422
2430
|
}
|
|
2423
2431
|
},
|
|
@@ -2426,7 +2434,7 @@ const Pe = {
|
|
|
2426
2434
|
create: "สร้างสื่อการตลาด",
|
|
2427
2435
|
search: "ค้นหา",
|
|
2428
2436
|
table: {
|
|
2429
|
-
name: "
|
|
2437
|
+
name: "ชื่อ",
|
|
2430
2438
|
campaign: "แคมเปญ",
|
|
2431
2439
|
createdDate: "วันที่สร้าง",
|
|
2432
2440
|
actions: "การดำเนินการ"
|
|
@@ -2434,12 +2442,12 @@ const Pe = {
|
|
|
2434
2442
|
delete: {
|
|
2435
2443
|
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}?",
|
|
2436
2444
|
removing: "กำลังลบ {name}",
|
|
2437
|
-
success: "ลบ {name}
|
|
2445
|
+
success: "ลบ {name} เรียบร้อย"
|
|
2438
2446
|
},
|
|
2439
2447
|
emptyState: {
|
|
2440
2448
|
title: "สร้างสื่อการตลาด",
|
|
2441
2449
|
description: "เพิ่มความสามารถทางการตลาดของคุณอย่างง่ายดายด้วยเครื่องมือที่ขับเคลื่อนด้วย AI ของเรา สร้างภาพที่น่าทึ่งและคำบรรยายที่น่าดึงดูดสำหรับแพลตฟอร์มที่คุณต้องการ",
|
|
2442
|
-
action: "
|
|
2450
|
+
action: "เพิ่มเนื้อหา"
|
|
2443
2451
|
},
|
|
2444
2452
|
noResults: "ไม่พบข้อมูล"
|
|
2445
2453
|
},
|
|
@@ -2450,7 +2458,7 @@ const Pe = {
|
|
|
2450
2458
|
title: "การตั้งค่า",
|
|
2451
2459
|
basicInfo: {
|
|
2452
2460
|
title: "ข้อมูลพื้นฐาน",
|
|
2453
|
-
membershipTitle: "
|
|
2461
|
+
membershipTitle: "ป้ายชื่อสมาชิก",
|
|
2454
2462
|
memberAppUrl: "URL ของแอปสมาชิก"
|
|
2455
2463
|
},
|
|
2456
2464
|
counterApp: {
|
|
@@ -2458,7 +2466,7 @@ const Pe = {
|
|
|
2458
2466
|
linkDevice: "เชื่อมโยงอุปกรณ์",
|
|
2459
2467
|
device: {
|
|
2460
2468
|
activationDate: "วันที่เปิดใช้งาน:",
|
|
2461
|
-
linkedLocation: "
|
|
2469
|
+
linkedLocation: "สาขาที่เชื่อมต่อ:"
|
|
2462
2470
|
}
|
|
2463
2471
|
},
|
|
2464
2472
|
advertisement: {
|
|
@@ -2481,19 +2489,19 @@ const Pe = {
|
|
|
2481
2489
|
description: "อนุญาตให้สมาชิกผูกบัตรผ่านแอปสมาชิก"
|
|
2482
2490
|
},
|
|
2483
2491
|
location: {
|
|
2484
|
-
title: "
|
|
2492
|
+
title: "สาขาที่เปิดใช้งาน",
|
|
2485
2493
|
selectLabel: "เลือกร้านอาหาร"
|
|
2486
2494
|
},
|
|
2487
2495
|
summary: {
|
|
2488
|
-
title: "
|
|
2489
|
-
name: "
|
|
2496
|
+
title: "สรุปการตั้งค่าระบบสมาชิก",
|
|
2497
|
+
name: "ชื่อ",
|
|
2490
2498
|
advertisement: "โฆษณา",
|
|
2491
2499
|
noAds: "ไม่มีโฆษณา",
|
|
2492
2500
|
freeCredit: "เครดิตฟรีเป็นส่วนลด",
|
|
2493
2501
|
enabled: "เปิดใช้งานแล้ว",
|
|
2494
2502
|
disabled: "ไม่สามารถใช้งานได้",
|
|
2495
|
-
locations: "
|
|
2496
|
-
allLocations: "
|
|
2503
|
+
locations: "สาขาที่เปิดใช้งาน",
|
|
2504
|
+
allLocations: "สาขาทั้งหมด"
|
|
2497
2505
|
},
|
|
2498
2506
|
action: {
|
|
2499
2507
|
update: "อัปเดต"
|
|
@@ -2503,29 +2511,29 @@ const Pe = {
|
|
|
2503
2511
|
title: "การทำธุรกรรม",
|
|
2504
2512
|
tabs: {
|
|
2505
2513
|
collection: "คอลเลคชั่น",
|
|
2506
|
-
store: "
|
|
2514
|
+
store: "ร้านค้าสมาชิก"
|
|
2507
2515
|
}
|
|
2508
2516
|
},
|
|
2509
2517
|
store: {
|
|
2510
|
-
title: "
|
|
2518
|
+
title: "ร้านค้าสมาชิก",
|
|
2511
2519
|
setting: {
|
|
2512
|
-
title: "
|
|
2520
|
+
title: "การตั้งค่าร้านค้าสมาชิก",
|
|
2513
2521
|
update: {
|
|
2514
|
-
message: "
|
|
2515
|
-
success: "
|
|
2522
|
+
message: "กำลังปรับปรุงการตั้งค่าร้านค้าสมาชิก",
|
|
2523
|
+
success: "อัปเดตการตั้งค่าร้านค้าสมาชิกเรียบร้อย"
|
|
2516
2524
|
}
|
|
2517
2525
|
},
|
|
2518
2526
|
actions: {
|
|
2519
|
-
setting: "
|
|
2527
|
+
setting: "การตั้งค่าร้านค้าสมาชิก",
|
|
2520
2528
|
manageReward: "จัดการรางวัล",
|
|
2521
2529
|
addCategory: "เพิ่มหมวดหมู่",
|
|
2522
|
-
addBundle: "
|
|
2530
|
+
addBundle: "เพิ่ม Bundle"
|
|
2523
2531
|
},
|
|
2524
2532
|
category: {
|
|
2525
2533
|
setup: {
|
|
2526
|
-
title: "
|
|
2534
|
+
title: "โปรดตั้งค่าการตั้งค่าร้านค้าสมาชิกของคุณก่อนที่จะเพิ่มหมวดหมู่",
|
|
2527
2535
|
action: "อัปเดตตอนนี้",
|
|
2528
|
-
button: "
|
|
2536
|
+
button: "อัพเดตการตั้งค่าร้านค้าสมาชิก"
|
|
2529
2537
|
},
|
|
2530
2538
|
add: "เพิ่มหมวดหมู่",
|
|
2531
2539
|
edit: "แก้ไขหมวดหมู่",
|
|
@@ -2538,9 +2546,9 @@ const Pe = {
|
|
|
2538
2546
|
creating: "กำลังสร้างหมวดหมู่",
|
|
2539
2547
|
updating: "กำลังอัปเดตหมวดหมู่",
|
|
2540
2548
|
success: {
|
|
2541
|
-
deleted: "
|
|
2542
|
-
created: "
|
|
2543
|
-
updated: "
|
|
2549
|
+
deleted: "ลบหมวดหมู่เรียบร้อย",
|
|
2550
|
+
created: "สร้างหมวดหมู่เรียบร้อย",
|
|
2551
|
+
updated: "อัปเดตหมวดหมู่เรียบร้อย"
|
|
2544
2552
|
}
|
|
2545
2553
|
}
|
|
2546
2554
|
},
|
|
@@ -2549,38 +2557,38 @@ const Pe = {
|
|
|
2549
2557
|
description: "เพิ่มรายการที่คุณต้องการให้ผู้ใช้ใช้จ่ายและมาที่นี่ อาจเป็นได้ทั้งบัตรกำนัล สิทธิประโยชน์ ประสบการณ์ และอื่นๆ อีกมากมาย!",
|
|
2550
2558
|
delete: {
|
|
2551
2559
|
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบชุดข้อมูลนี้",
|
|
2552
|
-
title: "
|
|
2560
|
+
title: "ลบ Bundle"
|
|
2553
2561
|
},
|
|
2554
2562
|
update: {
|
|
2555
|
-
error: "
|
|
2556
|
-
deleting: "
|
|
2557
|
-
creating: "
|
|
2558
|
-
updating: "
|
|
2563
|
+
error: "เกิดข้อผิดพลาดบางอย่าง",
|
|
2564
|
+
deleting: "กำลังลบ Bundle",
|
|
2565
|
+
creating: "กำลังสร้าง Bundle",
|
|
2566
|
+
updating: "กำลังอัปเดต Bundle",
|
|
2559
2567
|
success: {
|
|
2560
|
-
deleted: "
|
|
2561
|
-
created: "
|
|
2562
|
-
updated: "
|
|
2568
|
+
deleted: "ลบ Bundle เรียบร้อย",
|
|
2569
|
+
created: "สร้างข้อมูล Bundle เรียบร้อย",
|
|
2570
|
+
updated: "อัปเดตข้อมูล Bundle เรียบร้อย"
|
|
2563
2571
|
}
|
|
2564
2572
|
},
|
|
2565
2573
|
edit: {
|
|
2566
|
-
title: "
|
|
2567
|
-
create: "
|
|
2574
|
+
title: "แก้ไข Bundle",
|
|
2575
|
+
create: "สร้าง Bundle เรียบร้อย",
|
|
2568
2576
|
basicInformation: "ข้อมูลพื้นฐาน",
|
|
2569
|
-
bundleName: "
|
|
2570
|
-
bundleImage: "
|
|
2571
|
-
bundlePrice: "
|
|
2572
|
-
bundleValue: "
|
|
2577
|
+
bundleName: "ชื่อ Bundle",
|
|
2578
|
+
bundleImage: "รูปภาพ Bundle",
|
|
2579
|
+
bundlePrice: "ราคา Bundle",
|
|
2580
|
+
bundleValue: "มูลค่า Bundle",
|
|
2573
2581
|
originalPrice: "ราคาเดิม",
|
|
2574
2582
|
originalPriceHelper: "ปล่อยว่างไว้หรือตั้งค่าเป็น 0 เพื่อปิดใช้งานราคาเดิม",
|
|
2575
2583
|
pointNeeded: "คะแนนที่ต้องการ",
|
|
2576
2584
|
subscriptionSettings: "การตั้งค่าการสมัครสมาชิก",
|
|
2577
2585
|
stripePriceId: "รหัสราคาแถบข้อมูล",
|
|
2578
2586
|
subscriptionValidity: "อายุการใช้งานการสมัครสมาชิก (วัน)",
|
|
2579
|
-
submit: "
|
|
2580
|
-
cancel: "
|
|
2587
|
+
submit: "ยืนยัน",
|
|
2588
|
+
cancel: "ยกเลิก",
|
|
2581
2589
|
advanceSetting: "การตั้งค่าขั้นสูง",
|
|
2582
2590
|
credit: "เครดิต",
|
|
2583
|
-
normalCredit: "
|
|
2591
|
+
normalCredit: "เครดิตทั่วไป",
|
|
2584
2592
|
freeCredit: "เครดิตฟรี",
|
|
2585
2593
|
taxes: "ภาษี",
|
|
2586
2594
|
taxCharge: {
|
|
@@ -2589,14 +2597,14 @@ const Pe = {
|
|
|
2589
2597
|
exclusive: "ไม่รวม"
|
|
2590
2598
|
},
|
|
2591
2599
|
totalPrice: "ราคาทั้งหมด",
|
|
2592
|
-
internalBundle: "
|
|
2593
|
-
internalBundleDescription: "
|
|
2600
|
+
internalBundle: "Bundle เฉพาะภายใน",
|
|
2601
|
+
internalBundleDescription: "Bundle จะไม่แสดงในแอปสมาชิก FeedMe",
|
|
2594
2602
|
hideInPos: "ซ่อนใน POS",
|
|
2595
|
-
hideInPosDescription: "Bundle
|
|
2603
|
+
hideInPosDescription: "Bundle จะไม่แสดงใน FeedMe POS",
|
|
2596
2604
|
maxPerUser: "การซื้อสูงสุดต่อผู้ใช้",
|
|
2597
2605
|
bundleReward: {
|
|
2598
|
-
title: "
|
|
2599
|
-
description: "
|
|
2606
|
+
title: "รางวัลแบบ Bundle",
|
|
2607
|
+
description: "แจ้งให้สมาชิกทราบถึงสิทธิประโยชน์ที่พวกเขาจะได้รับจากแพ็กเกจนี้",
|
|
2600
2608
|
table: {
|
|
2601
2609
|
title: "ชื่อรางวัล",
|
|
2602
2610
|
type: "ประเภทรางวัล",
|
|
@@ -2607,7 +2615,7 @@ const Pe = {
|
|
|
2607
2615
|
}
|
|
2608
2616
|
},
|
|
2609
2617
|
storeRewards: {
|
|
2610
|
-
title: "
|
|
2618
|
+
title: "ร้านค้าสะสมแต้ม",
|
|
2611
2619
|
remove: {
|
|
2612
2620
|
message: "คุณไม่สามารถลบชื่อได้ที่นี่ โปรดลบออกที่ส่วน โปรแกรม > ชื่อ",
|
|
2613
2621
|
title: "ลบรางวัล",
|
|
@@ -2628,21 +2636,21 @@ const Pe = {
|
|
|
2628
2636
|
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบรางวัลนี้?",
|
|
2629
2637
|
title: "ลบรางวัล",
|
|
2630
2638
|
message: "กำลังลบรางวัล",
|
|
2631
|
-
success: "
|
|
2639
|
+
success: "ลบรางวัลสำเร็จ"
|
|
2632
2640
|
},
|
|
2633
2641
|
update: {
|
|
2634
2642
|
message: "กำลังอัปเดตรางวัล",
|
|
2635
|
-
success: "
|
|
2643
|
+
success: "อัปเดตรางวัลเรียบร้อย"
|
|
2636
2644
|
},
|
|
2637
2645
|
empty: {
|
|
2638
|
-
title: "
|
|
2639
|
-
description: "
|
|
2646
|
+
title: "สร้างรางวัล",
|
|
2647
|
+
description: "สร้างรางวัลสำหรับลูกค้าของคุณเพื่อแลก Bundle",
|
|
2640
2648
|
action: "สร้างรางวัล"
|
|
2641
2649
|
},
|
|
2642
2650
|
create: "สร้างรางวัล",
|
|
2643
2651
|
table: {
|
|
2644
|
-
name: "
|
|
2645
|
-
type: "
|
|
2652
|
+
name: "ชื่อ",
|
|
2653
|
+
type: "ประเภท",
|
|
2646
2654
|
validity: "ความถูกต้อง",
|
|
2647
2655
|
used: "ใช้แล้ว",
|
|
2648
2656
|
actions: "การดำเนินการ"
|
|
@@ -2768,33 +2776,33 @@ const Pe = {
|
|
|
2768
2776
|
},
|
|
2769
2777
|
campaign: {
|
|
2770
2778
|
rule_required: "ต้องมีกฎเกณฑ์เมื่อประเภทตัวกระตุ้นคือ '{type}'",
|
|
2771
|
-
earning_amount_exceed: "จำนวนเงินที่ได้รับต้องน้อยกว่า {max} (
|
|
2779
|
+
earning_amount_exceed: "จำนวนเงินที่ได้รับต้องน้อยกว่า {max} (จำนวนเงินที่ได้รับสูงสุดของภารกิจ)",
|
|
2772
2780
|
credit_validity_required: "แคมเปญเครดิตต้องมีตัวเลือกอายุการใช้งาน (ต้องเป็นเครดิตฟรี)",
|
|
2773
|
-
mission_first_receive: "แคมเปญMissionต้องติดตามการรับก่อน",
|
|
2781
|
+
mission_first_receive: "แคมเปญ Mission ต้องติดตามการรับก่อน",
|
|
2774
2782
|
schedule_period_required: "ตัวกระตุ้นกำหนดการต้องตั้งค่าช่วงเวลาที่ใช้งานอยู่",
|
|
2775
2783
|
active_period_invalid: "กฎช่วงเวลาที่ใช้งานอยู่ไม่ถูกต้อง",
|
|
2776
2784
|
fixed_earning_required: "แคมเปญที่ไม่สามารถเรียกเก็บเงินได้ครบต้องมีตัวเลือกการรับรายได้คงที่",
|
|
2777
|
-
reward_threshold_range: "
|
|
2785
|
+
reward_threshold_range: "เกณฑ์รางวัลจะต้องอยู่ภายในจุดสิ้นสุดภารกิจ",
|
|
2778
2786
|
reward_threshold_unique: "เกณฑ์รางวัลจะต้องไม่ซ้ำกัน",
|
|
2779
2787
|
effect_required: "จำเป็นต้องมีเอฟเฟกต์"
|
|
2780
2788
|
}
|
|
2781
2789
|
},
|
|
2782
2790
|
prompt: {
|
|
2783
2791
|
confirm: "ยืนยัน",
|
|
2784
|
-
cancel: "
|
|
2792
|
+
cancel: "ยกเลิก"
|
|
2785
2793
|
},
|
|
2786
2794
|
editTierSheet: {
|
|
2787
2795
|
add: "เพิ่ม",
|
|
2788
|
-
create: "
|
|
2796
|
+
create: "ระดับสมาชิก",
|
|
2789
2797
|
basicInformation: "ข้อมูลพื้นฐาน",
|
|
2790
|
-
tierName: "
|
|
2791
|
-
tierImage: "
|
|
2798
|
+
tierName: "ชื่อระดับสมาชิก",
|
|
2799
|
+
tierImage: "รูปภาพระดับสมาชิก",
|
|
2792
2800
|
experienceThreshold: "เกณฑ์ประสบการณ์",
|
|
2793
|
-
minExperience: "
|
|
2794
|
-
maxExperience: "
|
|
2801
|
+
minExperience: "ค่าประสบการณ์ขั้นต่ำ",
|
|
2802
|
+
maxExperience: "ค่าประสบการณ์สูงสุด",
|
|
2795
2803
|
actions: "การดำเนินการ",
|
|
2796
|
-
submit: "
|
|
2797
|
-
cancel: "
|
|
2804
|
+
submit: "ยืนยัน",
|
|
2805
|
+
cancel: "ยกเลิก"
|
|
2798
2806
|
}
|
|
2799
2807
|
}, qe = {
|
|
2800
2808
|
connect: Ue
|
|
@@ -3042,7 +3050,7 @@ const Pe = {
|
|
|
3042
3050
|
title: "頭銜",
|
|
3043
3051
|
experience: "經驗",
|
|
3044
3052
|
point: "點數",
|
|
3045
|
-
credit: "
|
|
3053
|
+
credit: "代金",
|
|
3046
3054
|
game: "遊戲",
|
|
3047
3055
|
loyalty: "忠誠度",
|
|
3048
3056
|
member: "會員",
|
|
@@ -3149,7 +3157,7 @@ const Pe = {
|
|
|
3149
3157
|
token_received: "獲得的代幣:{count}"
|
|
3150
3158
|
},
|
|
3151
3159
|
credit: {
|
|
3152
|
-
title: "
|
|
3160
|
+
title: "代金"
|
|
3153
3161
|
},
|
|
3154
3162
|
point: {
|
|
3155
3163
|
title: "點數",
|
|
@@ -3474,9 +3482,9 @@ const Pe = {
|
|
|
3474
3482
|
submit: "提交",
|
|
3475
3483
|
cancel: "取消",
|
|
3476
3484
|
advanceSetting: "高級設置",
|
|
3477
|
-
credit: "
|
|
3478
|
-
normalCredit: "
|
|
3479
|
-
freeCredit: "
|
|
3485
|
+
credit: "代金",
|
|
3486
|
+
normalCredit: "儲值金",
|
|
3487
|
+
freeCredit: "獎勵金",
|
|
3480
3488
|
taxes: "税費",
|
|
3481
3489
|
taxCharge: {
|
|
3482
3490
|
title: "税費({type})",
|
|
@@ -3804,39 +3812,39 @@ const Pe = {
|
|
|
3804
3812
|
};
|
|
3805
3813
|
var x;
|
|
3806
3814
|
(function(i) {
|
|
3807
|
-
i.assertEqual = (
|
|
3808
|
-
function e(
|
|
3815
|
+
i.assertEqual = (a) => a;
|
|
3816
|
+
function e(a) {
|
|
3809
3817
|
}
|
|
3810
3818
|
i.assertIs = e;
|
|
3811
|
-
function t(
|
|
3819
|
+
function t(a) {
|
|
3812
3820
|
throw new Error();
|
|
3813
3821
|
}
|
|
3814
|
-
i.assertNever = t, i.arrayToEnum = (
|
|
3822
|
+
i.assertNever = t, i.arrayToEnum = (a) => {
|
|
3815
3823
|
const r = {};
|
|
3816
|
-
for (const s of
|
|
3824
|
+
for (const s of a)
|
|
3817
3825
|
r[s] = s;
|
|
3818
3826
|
return r;
|
|
3819
|
-
}, i.getValidEnumValues = (
|
|
3820
|
-
const r = i.objectKeys(
|
|
3827
|
+
}, i.getValidEnumValues = (a) => {
|
|
3828
|
+
const r = i.objectKeys(a).filter((o) => typeof a[a[o]] != "number"), s = {};
|
|
3821
3829
|
for (const o of r)
|
|
3822
|
-
s[o] =
|
|
3830
|
+
s[o] = a[o];
|
|
3823
3831
|
return i.objectValues(s);
|
|
3824
|
-
}, i.objectValues = (
|
|
3825
|
-
return
|
|
3826
|
-
}), i.objectKeys = typeof Object.keys == "function" ? (
|
|
3832
|
+
}, i.objectValues = (a) => i.objectKeys(a).map(function(r) {
|
|
3833
|
+
return a[r];
|
|
3834
|
+
}), i.objectKeys = typeof Object.keys == "function" ? (a) => Object.keys(a) : (a) => {
|
|
3827
3835
|
const r = [];
|
|
3828
|
-
for (const s in
|
|
3829
|
-
Object.prototype.hasOwnProperty.call(
|
|
3836
|
+
for (const s in a)
|
|
3837
|
+
Object.prototype.hasOwnProperty.call(a, s) && r.push(s);
|
|
3830
3838
|
return r;
|
|
3831
|
-
}, i.find = (
|
|
3832
|
-
for (const s of
|
|
3839
|
+
}, i.find = (a, r) => {
|
|
3840
|
+
for (const s of a)
|
|
3833
3841
|
if (r(s))
|
|
3834
3842
|
return s;
|
|
3835
|
-
}, i.isInteger = typeof Number.isInteger == "function" ? (
|
|
3836
|
-
function a
|
|
3837
|
-
return
|
|
3843
|
+
}, i.isInteger = typeof Number.isInteger == "function" ? (a) => Number.isInteger(a) : (a) => typeof a == "number" && isFinite(a) && Math.floor(a) === a;
|
|
3844
|
+
function n(a, r = " | ") {
|
|
3845
|
+
return a.map((s) => typeof s == "string" ? `'${s}'` : s).join(r);
|
|
3838
3846
|
}
|
|
3839
|
-
i.joinValues =
|
|
3847
|
+
i.joinValues = n, i.jsonStringifyReplacer = (a, r) => typeof r == "bigint" ? r.toString() : r;
|
|
3840
3848
|
})(x || (x = {}));
|
|
3841
3849
|
var be;
|
|
3842
3850
|
(function(i) {
|
|
@@ -3908,10 +3916,10 @@ const l = x.arrayToEnum([
|
|
|
3908
3916
|
]), Fe = (i) => JSON.stringify(i, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
3909
3917
|
class E extends Error {
|
|
3910
3918
|
constructor(e) {
|
|
3911
|
-
super(), this.issues = [], this.addIssue = (
|
|
3912
|
-
this.issues = [...this.issues,
|
|
3913
|
-
}, this.addIssues = (
|
|
3914
|
-
this.issues = [...this.issues, ...
|
|
3919
|
+
super(), this.issues = [], this.addIssue = (n) => {
|
|
3920
|
+
this.issues = [...this.issues, n];
|
|
3921
|
+
}, this.addIssues = (n = []) => {
|
|
3922
|
+
this.issues = [...this.issues, ...n];
|
|
3915
3923
|
};
|
|
3916
3924
|
const t = new.target.prototype;
|
|
3917
3925
|
Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
|
|
@@ -3922,25 +3930,25 @@ class E extends Error {
|
|
|
3922
3930
|
format(e) {
|
|
3923
3931
|
const t = e || function(r) {
|
|
3924
3932
|
return r.message;
|
|
3925
|
-
},
|
|
3933
|
+
}, n = { _errors: [] }, a = (r) => {
|
|
3926
3934
|
for (const s of r.issues)
|
|
3927
3935
|
if (s.code === "invalid_union")
|
|
3928
|
-
s.unionErrors.map(
|
|
3936
|
+
s.unionErrors.map(a);
|
|
3929
3937
|
else if (s.code === "invalid_return_type")
|
|
3930
|
-
|
|
3938
|
+
a(s.returnTypeError);
|
|
3931
3939
|
else if (s.code === "invalid_arguments")
|
|
3932
|
-
|
|
3940
|
+
a(s.argumentsError);
|
|
3933
3941
|
else if (s.path.length === 0)
|
|
3934
|
-
|
|
3942
|
+
n._errors.push(t(s));
|
|
3935
3943
|
else {
|
|
3936
|
-
let o =
|
|
3944
|
+
let o = n, m = 0;
|
|
3937
3945
|
for (; m < s.path.length; ) {
|
|
3938
3946
|
const d = s.path[m];
|
|
3939
3947
|
m === s.path.length - 1 ? (o[d] = o[d] || { _errors: [] }, o[d]._errors.push(t(s))) : o[d] = o[d] || { _errors: [] }, o = o[d], m++;
|
|
3940
3948
|
}
|
|
3941
3949
|
}
|
|
3942
3950
|
};
|
|
3943
|
-
return
|
|
3951
|
+
return a(this), n;
|
|
3944
3952
|
}
|
|
3945
3953
|
toString() {
|
|
3946
3954
|
return this.message;
|
|
@@ -3952,10 +3960,10 @@ class E extends Error {
|
|
|
3952
3960
|
return this.issues.length === 0;
|
|
3953
3961
|
}
|
|
3954
3962
|
flatten(e = (t) => t.message) {
|
|
3955
|
-
const t = {},
|
|
3956
|
-
for (const
|
|
3957
|
-
|
|
3958
|
-
return { formErrors:
|
|
3963
|
+
const t = {}, n = [];
|
|
3964
|
+
for (const a of this.issues)
|
|
3965
|
+
a.path.length > 0 ? (t[a.path[0]] = t[a.path[0]] || [], t[a.path[0]].push(e(a))) : n.push(e(a));
|
|
3966
|
+
return { formErrors: n, fieldErrors: t };
|
|
3959
3967
|
}
|
|
3960
3968
|
get formErrors() {
|
|
3961
3969
|
return this.flatten();
|
|
@@ -4026,18 +4034,18 @@ function ce() {
|
|
|
4026
4034
|
return ke;
|
|
4027
4035
|
}
|
|
4028
4036
|
const de = (i) => {
|
|
4029
|
-
const { data: e, path: t, errorMaps:
|
|
4030
|
-
...
|
|
4037
|
+
const { data: e, path: t, errorMaps: n, issueData: a } = i, r = [...t, ...a.path || []], s = {
|
|
4038
|
+
...a,
|
|
4031
4039
|
path: r
|
|
4032
4040
|
};
|
|
4033
4041
|
let o = "";
|
|
4034
|
-
const m =
|
|
4042
|
+
const m = n.filter((d) => !!d).slice().reverse();
|
|
4035
4043
|
for (const d of m)
|
|
4036
4044
|
o = d(s, { data: e, defaultError: o }).message;
|
|
4037
4045
|
return {
|
|
4038
|
-
...
|
|
4046
|
+
...a,
|
|
4039
4047
|
path: r,
|
|
4040
|
-
message:
|
|
4048
|
+
message: a.message || o
|
|
4041
4049
|
};
|
|
4042
4050
|
}, Je = [];
|
|
4043
4051
|
function u(i, e) {
|
|
@@ -4051,7 +4059,7 @@ function u(i, e) {
|
|
|
4051
4059
|
ce(),
|
|
4052
4060
|
F
|
|
4053
4061
|
// then global default map
|
|
4054
|
-
].filter((
|
|
4062
|
+
].filter((n) => !!n)
|
|
4055
4063
|
});
|
|
4056
4064
|
i.common.issues.push(t);
|
|
4057
4065
|
}
|
|
@@ -4066,32 +4074,32 @@ class R {
|
|
|
4066
4074
|
this.value !== "aborted" && (this.value = "aborted");
|
|
4067
4075
|
}
|
|
4068
4076
|
static mergeArray(e, t) {
|
|
4069
|
-
const
|
|
4070
|
-
for (const
|
|
4071
|
-
if (
|
|
4077
|
+
const n = [];
|
|
4078
|
+
for (const a of t) {
|
|
4079
|
+
if (a.status === "aborted")
|
|
4072
4080
|
return _;
|
|
4073
|
-
|
|
4081
|
+
a.status === "dirty" && e.dirty(), n.push(a.value);
|
|
4074
4082
|
}
|
|
4075
|
-
return { status: e.value, value:
|
|
4083
|
+
return { status: e.value, value: n };
|
|
4076
4084
|
}
|
|
4077
4085
|
static async mergeObjectAsync(e, t) {
|
|
4078
|
-
const
|
|
4079
|
-
for (const
|
|
4080
|
-
|
|
4081
|
-
key: await
|
|
4082
|
-
value: await
|
|
4086
|
+
const n = [];
|
|
4087
|
+
for (const a of t)
|
|
4088
|
+
n.push({
|
|
4089
|
+
key: await a.key,
|
|
4090
|
+
value: await a.value
|
|
4083
4091
|
});
|
|
4084
|
-
return R.mergeObjectSync(e,
|
|
4092
|
+
return R.mergeObjectSync(e, n);
|
|
4085
4093
|
}
|
|
4086
4094
|
static mergeObjectSync(e, t) {
|
|
4087
|
-
const
|
|
4088
|
-
for (const
|
|
4089
|
-
const { key: r, value: s } =
|
|
4095
|
+
const n = {};
|
|
4096
|
+
for (const a of t) {
|
|
4097
|
+
const { key: r, value: s } = a;
|
|
4090
4098
|
if (r.status === "aborted" || s.status === "aborted")
|
|
4091
4099
|
return _;
|
|
4092
|
-
r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" ||
|
|
4100
|
+
r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" || a.alwaysSet) && (n[r.value] = s.value);
|
|
4093
4101
|
}
|
|
4094
|
-
return { status: e.value, value:
|
|
4102
|
+
return { status: e.value, value: n };
|
|
4095
4103
|
}
|
|
4096
4104
|
}
|
|
4097
4105
|
const _ = Object.freeze({
|
|
@@ -4102,8 +4110,8 @@ var p;
|
|
|
4102
4110
|
i.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, i.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
4103
4111
|
})(p || (p = {}));
|
|
4104
4112
|
class M {
|
|
4105
|
-
constructor(e, t,
|
|
4106
|
-
this._cachedPath = [], this.parent = e, this.data = t, this._path =
|
|
4113
|
+
constructor(e, t, n, a) {
|
|
4114
|
+
this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key = a;
|
|
4107
4115
|
}
|
|
4108
4116
|
get path() {
|
|
4109
4117
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
@@ -4127,10 +4135,10 @@ const Ce = (i, e) => {
|
|
|
4127
4135
|
function g(i) {
|
|
4128
4136
|
if (!i)
|
|
4129
4137
|
return {};
|
|
4130
|
-
const { errorMap: e, invalid_type_error: t, required_error:
|
|
4131
|
-
if (e && (t ||
|
|
4138
|
+
const { errorMap: e, invalid_type_error: t, required_error: n, description: a } = i;
|
|
4139
|
+
if (e && (t || n))
|
|
4132
4140
|
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
|
|
4133
|
-
return e ? { errorMap: e, description:
|
|
4141
|
+
return e ? { errorMap: e, description: a } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: n ?? o.defaultError } : { message: t ?? o.defaultError }, description: a };
|
|
4134
4142
|
}
|
|
4135
4143
|
class v {
|
|
4136
4144
|
constructor(e) {
|
|
@@ -4176,17 +4184,17 @@ class v {
|
|
|
4176
4184
|
return Promise.resolve(t);
|
|
4177
4185
|
}
|
|
4178
4186
|
parse(e, t) {
|
|
4179
|
-
const
|
|
4180
|
-
if (
|
|
4181
|
-
return
|
|
4182
|
-
throw
|
|
4187
|
+
const n = this.safeParse(e, t);
|
|
4188
|
+
if (n.success)
|
|
4189
|
+
return n.data;
|
|
4190
|
+
throw n.error;
|
|
4183
4191
|
}
|
|
4184
4192
|
safeParse(e, t) {
|
|
4185
|
-
var
|
|
4186
|
-
const
|
|
4193
|
+
var n;
|
|
4194
|
+
const a = {
|
|
4187
4195
|
common: {
|
|
4188
4196
|
issues: [],
|
|
4189
|
-
async: (
|
|
4197
|
+
async: (n = t == null ? void 0 : t.async) !== null && n !== void 0 ? n : !1,
|
|
4190
4198
|
contextualErrorMap: t == null ? void 0 : t.errorMap
|
|
4191
4199
|
},
|
|
4192
4200
|
path: (t == null ? void 0 : t.path) || [],
|
|
@@ -4194,17 +4202,17 @@ class v {
|
|
|
4194
4202
|
parent: null,
|
|
4195
4203
|
data: e,
|
|
4196
4204
|
parsedType: j(e)
|
|
4197
|
-
}, r = this._parseSync({ data: e, path:
|
|
4198
|
-
return Ce(
|
|
4205
|
+
}, r = this._parseSync({ data: e, path: a.path, parent: a });
|
|
4206
|
+
return Ce(a, r);
|
|
4199
4207
|
}
|
|
4200
4208
|
async parseAsync(e, t) {
|
|
4201
|
-
const
|
|
4202
|
-
if (
|
|
4203
|
-
return
|
|
4204
|
-
throw
|
|
4209
|
+
const n = await this.safeParseAsync(e, t);
|
|
4210
|
+
if (n.success)
|
|
4211
|
+
return n.data;
|
|
4212
|
+
throw n.error;
|
|
4205
4213
|
}
|
|
4206
4214
|
async safeParseAsync(e, t) {
|
|
4207
|
-
const
|
|
4215
|
+
const n = {
|
|
4208
4216
|
common: {
|
|
4209
4217
|
issues: [],
|
|
4210
4218
|
contextualErrorMap: t == null ? void 0 : t.errorMap,
|
|
@@ -4215,21 +4223,21 @@ class v {
|
|
|
4215
4223
|
parent: null,
|
|
4216
4224
|
data: e,
|
|
4217
4225
|
parsedType: j(e)
|
|
4218
|
-
},
|
|
4219
|
-
return Ce(
|
|
4226
|
+
}, a = this._parse({ data: e, path: n.path, parent: n }), r = await (le(a) ? a : Promise.resolve(a));
|
|
4227
|
+
return Ce(n, r);
|
|
4220
4228
|
}
|
|
4221
4229
|
refine(e, t) {
|
|
4222
|
-
const
|
|
4223
|
-
return this._refinement((
|
|
4224
|
-
const s = e(
|
|
4230
|
+
const n = (a) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(a) : t;
|
|
4231
|
+
return this._refinement((a, r) => {
|
|
4232
|
+
const s = e(a), o = () => r.addIssue({
|
|
4225
4233
|
code: c.custom,
|
|
4226
|
-
...a
|
|
4234
|
+
...n(a)
|
|
4227
4235
|
});
|
|
4228
4236
|
return typeof Promise < "u" && s instanceof Promise ? s.then((m) => m ? !0 : (o(), !1)) : s ? !0 : (o(), !1);
|
|
4229
4237
|
});
|
|
4230
4238
|
}
|
|
4231
4239
|
refinement(e, t) {
|
|
4232
|
-
return this._refinement((
|
|
4240
|
+
return this._refinement((n, a) => e(n) ? !0 : (a.addIssue(typeof t == "function" ? t(n, a) : t), !1));
|
|
4233
4241
|
}
|
|
4234
4242
|
_refinement(e) {
|
|
4235
4243
|
return new I({
|
|
@@ -4317,9 +4325,9 @@ class v {
|
|
|
4317
4325
|
}
|
|
4318
4326
|
const Qe = /^c[^\s-]{8,}$/i, Xe = /^[a-z][a-z0-9]*$/, Ke = /^[0-9A-HJKMNP-TV-Z]{26}$/, et = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, tt = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, it = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
4319
4327
|
let ye;
|
|
4320
|
-
const
|
|
4328
|
+
const nt = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, at = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, rt = (i) => i.precision ? i.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${i.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${i.precision}}Z$`) : i.precision === 0 ? i.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : i.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
|
|
4321
4329
|
function st(i, e) {
|
|
4322
|
-
return !!((e === "v4" || !e) &&
|
|
4330
|
+
return !!((e === "v4" || !e) && nt.test(i) || (e === "v6" || !e) && at.test(i));
|
|
4323
4331
|
}
|
|
4324
4332
|
class A extends v {
|
|
4325
4333
|
_parse(e) {
|
|
@@ -4335,122 +4343,122 @@ class A extends v {
|
|
|
4335
4343
|
//
|
|
4336
4344
|
), _;
|
|
4337
4345
|
}
|
|
4338
|
-
const
|
|
4339
|
-
let
|
|
4346
|
+
const n = new R();
|
|
4347
|
+
let a;
|
|
4340
4348
|
for (const r of this._def.checks)
|
|
4341
4349
|
if (r.kind === "min")
|
|
4342
|
-
e.data.length < r.value && (
|
|
4350
|
+
e.data.length < r.value && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4343
4351
|
code: c.too_small,
|
|
4344
4352
|
minimum: r.value,
|
|
4345
4353
|
type: "string",
|
|
4346
4354
|
inclusive: !0,
|
|
4347
4355
|
exact: !1,
|
|
4348
4356
|
message: r.message
|
|
4349
|
-
}),
|
|
4357
|
+
}), n.dirty());
|
|
4350
4358
|
else if (r.kind === "max")
|
|
4351
|
-
e.data.length > r.value && (
|
|
4359
|
+
e.data.length > r.value && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4352
4360
|
code: c.too_big,
|
|
4353
4361
|
maximum: r.value,
|
|
4354
4362
|
type: "string",
|
|
4355
4363
|
inclusive: !0,
|
|
4356
4364
|
exact: !1,
|
|
4357
4365
|
message: r.message
|
|
4358
|
-
}),
|
|
4366
|
+
}), n.dirty());
|
|
4359
4367
|
else if (r.kind === "length") {
|
|
4360
4368
|
const s = e.data.length > r.value, o = e.data.length < r.value;
|
|
4361
|
-
(s || o) && (
|
|
4369
|
+
(s || o) && (a = this._getOrReturnCtx(e, a), s ? u(a, {
|
|
4362
4370
|
code: c.too_big,
|
|
4363
4371
|
maximum: r.value,
|
|
4364
4372
|
type: "string",
|
|
4365
4373
|
inclusive: !0,
|
|
4366
4374
|
exact: !0,
|
|
4367
4375
|
message: r.message
|
|
4368
|
-
}) : o && u(
|
|
4376
|
+
}) : o && u(a, {
|
|
4369
4377
|
code: c.too_small,
|
|
4370
4378
|
minimum: r.value,
|
|
4371
4379
|
type: "string",
|
|
4372
4380
|
inclusive: !0,
|
|
4373
4381
|
exact: !0,
|
|
4374
4382
|
message: r.message
|
|
4375
|
-
}),
|
|
4383
|
+
}), n.dirty());
|
|
4376
4384
|
} else if (r.kind === "email")
|
|
4377
|
-
tt.test(e.data) || (
|
|
4385
|
+
tt.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4378
4386
|
validation: "email",
|
|
4379
4387
|
code: c.invalid_string,
|
|
4380
4388
|
message: r.message
|
|
4381
|
-
}),
|
|
4389
|
+
}), n.dirty());
|
|
4382
4390
|
else if (r.kind === "emoji")
|
|
4383
|
-
ye || (ye = new RegExp(it, "u")), ye.test(e.data) || (
|
|
4391
|
+
ye || (ye = new RegExp(it, "u")), ye.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4384
4392
|
validation: "emoji",
|
|
4385
4393
|
code: c.invalid_string,
|
|
4386
4394
|
message: r.message
|
|
4387
|
-
}),
|
|
4395
|
+
}), n.dirty());
|
|
4388
4396
|
else if (r.kind === "uuid")
|
|
4389
|
-
et.test(e.data) || (
|
|
4397
|
+
et.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4390
4398
|
validation: "uuid",
|
|
4391
4399
|
code: c.invalid_string,
|
|
4392
4400
|
message: r.message
|
|
4393
|
-
}),
|
|
4401
|
+
}), n.dirty());
|
|
4394
4402
|
else if (r.kind === "cuid")
|
|
4395
|
-
Qe.test(e.data) || (
|
|
4403
|
+
Qe.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4396
4404
|
validation: "cuid",
|
|
4397
4405
|
code: c.invalid_string,
|
|
4398
4406
|
message: r.message
|
|
4399
|
-
}),
|
|
4407
|
+
}), n.dirty());
|
|
4400
4408
|
else if (r.kind === "cuid2")
|
|
4401
|
-
Xe.test(e.data) || (
|
|
4409
|
+
Xe.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4402
4410
|
validation: "cuid2",
|
|
4403
4411
|
code: c.invalid_string,
|
|
4404
4412
|
message: r.message
|
|
4405
|
-
}),
|
|
4413
|
+
}), n.dirty());
|
|
4406
4414
|
else if (r.kind === "ulid")
|
|
4407
|
-
Ke.test(e.data) || (
|
|
4415
|
+
Ke.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4408
4416
|
validation: "ulid",
|
|
4409
4417
|
code: c.invalid_string,
|
|
4410
4418
|
message: r.message
|
|
4411
|
-
}),
|
|
4419
|
+
}), n.dirty());
|
|
4412
4420
|
else if (r.kind === "url")
|
|
4413
4421
|
try {
|
|
4414
4422
|
new URL(e.data);
|
|
4415
4423
|
} catch {
|
|
4416
|
-
|
|
4424
|
+
a = this._getOrReturnCtx(e, a), u(a, {
|
|
4417
4425
|
validation: "url",
|
|
4418
4426
|
code: c.invalid_string,
|
|
4419
4427
|
message: r.message
|
|
4420
|
-
}),
|
|
4428
|
+
}), n.dirty();
|
|
4421
4429
|
}
|
|
4422
|
-
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (
|
|
4430
|
+
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4423
4431
|
validation: "regex",
|
|
4424
4432
|
code: c.invalid_string,
|
|
4425
4433
|
message: r.message
|
|
4426
|
-
}),
|
|
4434
|
+
}), n.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4427
4435
|
code: c.invalid_string,
|
|
4428
4436
|
validation: { includes: r.value, position: r.position },
|
|
4429
4437
|
message: r.message
|
|
4430
|
-
}),
|
|
4438
|
+
}), n.dirty()) : r.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : r.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : r.kind === "startsWith" ? e.data.startsWith(r.value) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4431
4439
|
code: c.invalid_string,
|
|
4432
4440
|
validation: { startsWith: r.value },
|
|
4433
4441
|
message: r.message
|
|
4434
|
-
}),
|
|
4442
|
+
}), n.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4435
4443
|
code: c.invalid_string,
|
|
4436
4444
|
validation: { endsWith: r.value },
|
|
4437
4445
|
message: r.message
|
|
4438
|
-
}),
|
|
4446
|
+
}), n.dirty()) : r.kind === "datetime" ? rt(r).test(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4439
4447
|
code: c.invalid_string,
|
|
4440
4448
|
validation: "datetime",
|
|
4441
4449
|
message: r.message
|
|
4442
|
-
}),
|
|
4450
|
+
}), n.dirty()) : r.kind === "ip" ? st(e.data, r.version) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4443
4451
|
validation: "ip",
|
|
4444
4452
|
code: c.invalid_string,
|
|
4445
4453
|
message: r.message
|
|
4446
|
-
}),
|
|
4447
|
-
return { status:
|
|
4454
|
+
}), n.dirty()) : x.assertNever(r);
|
|
4455
|
+
return { status: n.value, value: e.data };
|
|
4448
4456
|
}
|
|
4449
|
-
_regex(e, t,
|
|
4450
|
-
return this.refinement((
|
|
4457
|
+
_regex(e, t, n) {
|
|
4458
|
+
return this.refinement((a) => e.test(a), {
|
|
4451
4459
|
validation: t,
|
|
4452
4460
|
code: c.invalid_string,
|
|
4453
|
-
...p.errToObj(
|
|
4461
|
+
...p.errToObj(n)
|
|
4454
4462
|
});
|
|
4455
4463
|
}
|
|
4456
4464
|
_addCheck(e) {
|
|
@@ -4622,8 +4630,8 @@ A.create = (i) => {
|
|
|
4622
4630
|
});
|
|
4623
4631
|
};
|
|
4624
4632
|
function ot(i, e) {
|
|
4625
|
-
const t = (i.toString().split(".")[1] || "").length,
|
|
4626
|
-
return r % s / Math.pow(10,
|
|
4633
|
+
const t = (i.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, a = t > n ? t : n, r = parseInt(i.toFixed(a).replace(".", "")), s = parseInt(e.toFixed(a).replace(".", ""));
|
|
4634
|
+
return r % s / Math.pow(10, a);
|
|
4627
4635
|
}
|
|
4628
4636
|
class D extends v {
|
|
4629
4637
|
constructor() {
|
|
@@ -4638,37 +4646,37 @@ class D extends v {
|
|
|
4638
4646
|
received: r.parsedType
|
|
4639
4647
|
}), _;
|
|
4640
4648
|
}
|
|
4641
|
-
let
|
|
4642
|
-
const
|
|
4649
|
+
let n;
|
|
4650
|
+
const a = new R();
|
|
4643
4651
|
for (const r of this._def.checks)
|
|
4644
|
-
r.kind === "int" ? x.isInteger(e.data) || (
|
|
4652
|
+
r.kind === "int" ? x.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4645
4653
|
code: c.invalid_type,
|
|
4646
4654
|
expected: "integer",
|
|
4647
4655
|
received: "float",
|
|
4648
4656
|
message: r.message
|
|
4649
|
-
}),
|
|
4657
|
+
}), a.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4650
4658
|
code: c.too_small,
|
|
4651
4659
|
minimum: r.value,
|
|
4652
4660
|
type: "number",
|
|
4653
4661
|
inclusive: r.inclusive,
|
|
4654
4662
|
exact: !1,
|
|
4655
4663
|
message: r.message
|
|
4656
|
-
}),
|
|
4664
|
+
}), a.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4657
4665
|
code: c.too_big,
|
|
4658
4666
|
maximum: r.value,
|
|
4659
4667
|
type: "number",
|
|
4660
4668
|
inclusive: r.inclusive,
|
|
4661
4669
|
exact: !1,
|
|
4662
4670
|
message: r.message
|
|
4663
|
-
}),
|
|
4671
|
+
}), a.dirty()) : r.kind === "multipleOf" ? ot(e.data, r.value) !== 0 && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4664
4672
|
code: c.not_multiple_of,
|
|
4665
4673
|
multipleOf: r.value,
|
|
4666
4674
|
message: r.message
|
|
4667
|
-
}),
|
|
4675
|
+
}), a.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4668
4676
|
code: c.not_finite,
|
|
4669
4677
|
message: r.message
|
|
4670
|
-
}),
|
|
4671
|
-
return { status:
|
|
4678
|
+
}), a.dirty()) : x.assertNever(r);
|
|
4679
|
+
return { status: a.value, value: e.data };
|
|
4672
4680
|
}
|
|
4673
4681
|
gte(e, t) {
|
|
4674
4682
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -4682,7 +4690,7 @@ class D extends v {
|
|
|
4682
4690
|
lt(e, t) {
|
|
4683
4691
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
4684
4692
|
}
|
|
4685
|
-
setLimit(e, t,
|
|
4693
|
+
setLimit(e, t, n, a) {
|
|
4686
4694
|
return new D({
|
|
4687
4695
|
...this._def,
|
|
4688
4696
|
checks: [
|
|
@@ -4690,8 +4698,8 @@ class D extends v {
|
|
|
4690
4698
|
{
|
|
4691
4699
|
kind: e,
|
|
4692
4700
|
value: t,
|
|
4693
|
-
inclusive:
|
|
4694
|
-
message: p.toString(
|
|
4701
|
+
inclusive: n,
|
|
4702
|
+
message: p.toString(a)
|
|
4695
4703
|
}
|
|
4696
4704
|
]
|
|
4697
4705
|
});
|
|
@@ -4783,10 +4791,10 @@ class D extends v {
|
|
|
4783
4791
|
}
|
|
4784
4792
|
get isFinite() {
|
|
4785
4793
|
let e = null, t = null;
|
|
4786
|
-
for (const
|
|
4787
|
-
if (
|
|
4794
|
+
for (const n of this._def.checks) {
|
|
4795
|
+
if (n.kind === "finite" || n.kind === "int" || n.kind === "multipleOf")
|
|
4788
4796
|
return !0;
|
|
4789
|
-
|
|
4797
|
+
n.kind === "min" ? (t === null || n.value > t) && (t = n.value) : n.kind === "max" && (e === null || n.value < e) && (e = n.value);
|
|
4790
4798
|
}
|
|
4791
4799
|
return Number.isFinite(t) && Number.isFinite(e);
|
|
4792
4800
|
}
|
|
@@ -4797,7 +4805,7 @@ D.create = (i) => new D({
|
|
|
4797
4805
|
coerce: (i == null ? void 0 : i.coerce) || !1,
|
|
4798
4806
|
...g(i)
|
|
4799
4807
|
});
|
|
4800
|
-
class
|
|
4808
|
+
class B extends v {
|
|
4801
4809
|
constructor() {
|
|
4802
4810
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
4803
4811
|
}
|
|
@@ -4810,27 +4818,27 @@ class Z extends v {
|
|
|
4810
4818
|
received: r.parsedType
|
|
4811
4819
|
}), _;
|
|
4812
4820
|
}
|
|
4813
|
-
let
|
|
4814
|
-
const
|
|
4821
|
+
let n;
|
|
4822
|
+
const a = new R();
|
|
4815
4823
|
for (const r of this._def.checks)
|
|
4816
|
-
r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (
|
|
4824
|
+
r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4817
4825
|
code: c.too_small,
|
|
4818
4826
|
type: "bigint",
|
|
4819
4827
|
minimum: r.value,
|
|
4820
4828
|
inclusive: r.inclusive,
|
|
4821
4829
|
message: r.message
|
|
4822
|
-
}),
|
|
4830
|
+
}), a.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4823
4831
|
code: c.too_big,
|
|
4824
4832
|
type: "bigint",
|
|
4825
4833
|
maximum: r.value,
|
|
4826
4834
|
inclusive: r.inclusive,
|
|
4827
4835
|
message: r.message
|
|
4828
|
-
}),
|
|
4836
|
+
}), a.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4829
4837
|
code: c.not_multiple_of,
|
|
4830
4838
|
multipleOf: r.value,
|
|
4831
4839
|
message: r.message
|
|
4832
|
-
}),
|
|
4833
|
-
return { status:
|
|
4840
|
+
}), a.dirty()) : x.assertNever(r);
|
|
4841
|
+
return { status: a.value, value: e.data };
|
|
4834
4842
|
}
|
|
4835
4843
|
gte(e, t) {
|
|
4836
4844
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -4844,22 +4852,22 @@ class Z extends v {
|
|
|
4844
4852
|
lt(e, t) {
|
|
4845
4853
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
4846
4854
|
}
|
|
4847
|
-
setLimit(e, t,
|
|
4848
|
-
return new
|
|
4855
|
+
setLimit(e, t, n, a) {
|
|
4856
|
+
return new B({
|
|
4849
4857
|
...this._def,
|
|
4850
4858
|
checks: [
|
|
4851
4859
|
...this._def.checks,
|
|
4852
4860
|
{
|
|
4853
4861
|
kind: e,
|
|
4854
4862
|
value: t,
|
|
4855
|
-
inclusive:
|
|
4856
|
-
message: p.toString(
|
|
4863
|
+
inclusive: n,
|
|
4864
|
+
message: p.toString(a)
|
|
4857
4865
|
}
|
|
4858
4866
|
]
|
|
4859
4867
|
});
|
|
4860
4868
|
}
|
|
4861
4869
|
_addCheck(e) {
|
|
4862
|
-
return new
|
|
4870
|
+
return new B({
|
|
4863
4871
|
...this._def,
|
|
4864
4872
|
checks: [...this._def.checks, e]
|
|
4865
4873
|
});
|
|
@@ -4916,9 +4924,9 @@ class Z extends v {
|
|
|
4916
4924
|
return e;
|
|
4917
4925
|
}
|
|
4918
4926
|
}
|
|
4919
|
-
|
|
4927
|
+
B.create = (i) => {
|
|
4920
4928
|
var e;
|
|
4921
|
-
return new
|
|
4929
|
+
return new B({
|
|
4922
4930
|
checks: [],
|
|
4923
4931
|
typeName: f.ZodBigInt,
|
|
4924
4932
|
coerce: (e = i == null ? void 0 : i.coerce) !== null && e !== void 0 ? e : !1,
|
|
@@ -4928,11 +4936,11 @@ Z.create = (i) => {
|
|
|
4928
4936
|
class J extends v {
|
|
4929
4937
|
_parse(e) {
|
|
4930
4938
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== l.boolean) {
|
|
4931
|
-
const
|
|
4932
|
-
return u(
|
|
4939
|
+
const n = this._getOrReturnCtx(e);
|
|
4940
|
+
return u(n, {
|
|
4933
4941
|
code: c.invalid_type,
|
|
4934
4942
|
expected: l.boolean,
|
|
4935
|
-
received:
|
|
4943
|
+
received: n.parsedType
|
|
4936
4944
|
}), _;
|
|
4937
4945
|
}
|
|
4938
4946
|
return k(e.data);
|
|
@@ -4959,26 +4967,26 @@ class $ extends v {
|
|
|
4959
4967
|
code: c.invalid_date
|
|
4960
4968
|
}), _;
|
|
4961
4969
|
}
|
|
4962
|
-
const
|
|
4963
|
-
let
|
|
4970
|
+
const n = new R();
|
|
4971
|
+
let a;
|
|
4964
4972
|
for (const r of this._def.checks)
|
|
4965
|
-
r.kind === "min" ? e.data.getTime() < r.value && (
|
|
4973
|
+
r.kind === "min" ? e.data.getTime() < r.value && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4966
4974
|
code: c.too_small,
|
|
4967
4975
|
message: r.message,
|
|
4968
4976
|
inclusive: !0,
|
|
4969
4977
|
exact: !1,
|
|
4970
4978
|
minimum: r.value,
|
|
4971
4979
|
type: "date"
|
|
4972
|
-
}),
|
|
4980
|
+
}), n.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4973
4981
|
code: c.too_big,
|
|
4974
4982
|
message: r.message,
|
|
4975
4983
|
inclusive: !0,
|
|
4976
4984
|
exact: !1,
|
|
4977
4985
|
maximum: r.value,
|
|
4978
4986
|
type: "date"
|
|
4979
|
-
}),
|
|
4987
|
+
}), n.dirty()) : x.assertNever(r);
|
|
4980
4988
|
return {
|
|
4981
|
-
status:
|
|
4989
|
+
status: n.value,
|
|
4982
4990
|
value: new Date(e.data.getTime())
|
|
4983
4991
|
};
|
|
4984
4992
|
}
|
|
@@ -5024,11 +5032,11 @@ $.create = (i) => new $({
|
|
|
5024
5032
|
class ue extends v {
|
|
5025
5033
|
_parse(e) {
|
|
5026
5034
|
if (this._getType(e) !== l.symbol) {
|
|
5027
|
-
const
|
|
5028
|
-
return u(
|
|
5035
|
+
const n = this._getOrReturnCtx(e);
|
|
5036
|
+
return u(n, {
|
|
5029
5037
|
code: c.invalid_type,
|
|
5030
5038
|
expected: l.symbol,
|
|
5031
|
-
received:
|
|
5039
|
+
received: n.parsedType
|
|
5032
5040
|
}), _;
|
|
5033
5041
|
}
|
|
5034
5042
|
return k(e.data);
|
|
@@ -5041,11 +5049,11 @@ ue.create = (i) => new ue({
|
|
|
5041
5049
|
class Q extends v {
|
|
5042
5050
|
_parse(e) {
|
|
5043
5051
|
if (this._getType(e) !== l.undefined) {
|
|
5044
|
-
const
|
|
5045
|
-
return u(
|
|
5052
|
+
const n = this._getOrReturnCtx(e);
|
|
5053
|
+
return u(n, {
|
|
5046
5054
|
code: c.invalid_type,
|
|
5047
5055
|
expected: l.undefined,
|
|
5048
|
-
received:
|
|
5056
|
+
received: n.parsedType
|
|
5049
5057
|
}), _;
|
|
5050
5058
|
}
|
|
5051
5059
|
return k(e.data);
|
|
@@ -5058,11 +5066,11 @@ Q.create = (i) => new Q({
|
|
|
5058
5066
|
class X extends v {
|
|
5059
5067
|
_parse(e) {
|
|
5060
5068
|
if (this._getType(e) !== l.null) {
|
|
5061
|
-
const
|
|
5062
|
-
return u(
|
|
5069
|
+
const n = this._getOrReturnCtx(e);
|
|
5070
|
+
return u(n, {
|
|
5063
5071
|
code: c.invalid_type,
|
|
5064
5072
|
expected: l.null,
|
|
5065
|
-
received:
|
|
5073
|
+
received: n.parsedType
|
|
5066
5074
|
}), _;
|
|
5067
5075
|
}
|
|
5068
5076
|
return k(e.data);
|
|
@@ -5084,7 +5092,7 @@ W.create = (i) => new W({
|
|
|
5084
5092
|
typeName: f.ZodAny,
|
|
5085
5093
|
...g(i)
|
|
5086
5094
|
});
|
|
5087
|
-
class
|
|
5095
|
+
class V extends v {
|
|
5088
5096
|
constructor() {
|
|
5089
5097
|
super(...arguments), this._unknown = !0;
|
|
5090
5098
|
}
|
|
@@ -5092,7 +5100,7 @@ class B extends v {
|
|
|
5092
5100
|
return k(e.data);
|
|
5093
5101
|
}
|
|
5094
5102
|
}
|
|
5095
|
-
|
|
5103
|
+
V.create = (i) => new V({
|
|
5096
5104
|
typeName: f.ZodUnknown,
|
|
5097
5105
|
...g(i)
|
|
5098
5106
|
});
|
|
@@ -5113,11 +5121,11 @@ L.create = (i) => new L({
|
|
|
5113
5121
|
class me extends v {
|
|
5114
5122
|
_parse(e) {
|
|
5115
5123
|
if (this._getType(e) !== l.undefined) {
|
|
5116
|
-
const
|
|
5117
|
-
return u(
|
|
5124
|
+
const n = this._getOrReturnCtx(e);
|
|
5125
|
+
return u(n, {
|
|
5118
5126
|
code: c.invalid_type,
|
|
5119
5127
|
expected: l.void,
|
|
5120
|
-
received:
|
|
5128
|
+
received: n.parsedType
|
|
5121
5129
|
}), _;
|
|
5122
5130
|
}
|
|
5123
5131
|
return k(e.data);
|
|
@@ -5129,43 +5137,43 @@ me.create = (i) => new me({
|
|
|
5129
5137
|
});
|
|
5130
5138
|
class O extends v {
|
|
5131
5139
|
_parse(e) {
|
|
5132
|
-
const { ctx: t, status:
|
|
5140
|
+
const { ctx: t, status: n } = this._processInputParams(e), a = this._def;
|
|
5133
5141
|
if (t.parsedType !== l.array)
|
|
5134
5142
|
return u(t, {
|
|
5135
5143
|
code: c.invalid_type,
|
|
5136
5144
|
expected: l.array,
|
|
5137
5145
|
received: t.parsedType
|
|
5138
5146
|
}), _;
|
|
5139
|
-
if (
|
|
5140
|
-
const s = t.data.length >
|
|
5147
|
+
if (a.exactLength !== null) {
|
|
5148
|
+
const s = t.data.length > a.exactLength.value, o = t.data.length < a.exactLength.value;
|
|
5141
5149
|
(s || o) && (u(t, {
|
|
5142
5150
|
code: s ? c.too_big : c.too_small,
|
|
5143
|
-
minimum: o ?
|
|
5144
|
-
maximum: s ?
|
|
5151
|
+
minimum: o ? a.exactLength.value : void 0,
|
|
5152
|
+
maximum: s ? a.exactLength.value : void 0,
|
|
5145
5153
|
type: "array",
|
|
5146
5154
|
inclusive: !0,
|
|
5147
5155
|
exact: !0,
|
|
5148
|
-
message:
|
|
5149
|
-
}),
|
|
5156
|
+
message: a.exactLength.message
|
|
5157
|
+
}), n.dirty());
|
|
5150
5158
|
}
|
|
5151
|
-
if (
|
|
5159
|
+
if (a.minLength !== null && t.data.length < a.minLength.value && (u(t, {
|
|
5152
5160
|
code: c.too_small,
|
|
5153
|
-
minimum:
|
|
5161
|
+
minimum: a.minLength.value,
|
|
5154
5162
|
type: "array",
|
|
5155
5163
|
inclusive: !0,
|
|
5156
5164
|
exact: !1,
|
|
5157
|
-
message:
|
|
5158
|
-
}),
|
|
5165
|
+
message: a.minLength.message
|
|
5166
|
+
}), n.dirty()), a.maxLength !== null && t.data.length > a.maxLength.value && (u(t, {
|
|
5159
5167
|
code: c.too_big,
|
|
5160
|
-
maximum:
|
|
5168
|
+
maximum: a.maxLength.value,
|
|
5161
5169
|
type: "array",
|
|
5162
5170
|
inclusive: !0,
|
|
5163
5171
|
exact: !1,
|
|
5164
|
-
message:
|
|
5165
|
-
}),
|
|
5166
|
-
return Promise.all([...t.data].map((s, o) =>
|
|
5167
|
-
const r = [...t.data].map((s, o) =>
|
|
5168
|
-
return R.mergeArray(
|
|
5172
|
+
message: a.maxLength.message
|
|
5173
|
+
}), n.dirty()), t.common.async)
|
|
5174
|
+
return Promise.all([...t.data].map((s, o) => a.type._parseAsync(new M(t, s, t.path, o)))).then((s) => R.mergeArray(n, s));
|
|
5175
|
+
const r = [...t.data].map((s, o) => a.type._parseSync(new M(t, s, t.path, o)));
|
|
5176
|
+
return R.mergeArray(n, r);
|
|
5169
5177
|
}
|
|
5170
5178
|
get element() {
|
|
5171
5179
|
return this._def.type;
|
|
@@ -5204,8 +5212,8 @@ function G(i) {
|
|
|
5204
5212
|
if (i instanceof w) {
|
|
5205
5213
|
const e = {};
|
|
5206
5214
|
for (const t in i.shape) {
|
|
5207
|
-
const
|
|
5208
|
-
e[t] = P.create(G(
|
|
5215
|
+
const n = i.shape[t];
|
|
5216
|
+
e[t] = P.create(G(n));
|
|
5209
5217
|
}
|
|
5210
5218
|
return new w({
|
|
5211
5219
|
...i._def,
|
|
@@ -5235,17 +5243,17 @@ class w extends v {
|
|
|
5235
5243
|
received: d.parsedType
|
|
5236
5244
|
}), _;
|
|
5237
5245
|
}
|
|
5238
|
-
const { status:
|
|
5246
|
+
const { status: n, ctx: a } = this._processInputParams(e), { shape: r, keys: s } = this._getCached(), o = [];
|
|
5239
5247
|
if (!(this._def.catchall instanceof L && this._def.unknownKeys === "strip"))
|
|
5240
|
-
for (const d in
|
|
5248
|
+
for (const d in a.data)
|
|
5241
5249
|
s.includes(d) || o.push(d);
|
|
5242
5250
|
const m = [];
|
|
5243
5251
|
for (const d of s) {
|
|
5244
|
-
const y = r[d], S =
|
|
5252
|
+
const y = r[d], S = a.data[d];
|
|
5245
5253
|
m.push({
|
|
5246
5254
|
key: { status: "valid", value: d },
|
|
5247
|
-
value: y._parse(new M(
|
|
5248
|
-
alwaysSet: d in
|
|
5255
|
+
value: y._parse(new M(a, S, a.path, d)),
|
|
5256
|
+
alwaysSet: d in a.data
|
|
5249
5257
|
});
|
|
5250
5258
|
}
|
|
5251
5259
|
if (this._def.catchall instanceof L) {
|
|
@@ -5254,29 +5262,29 @@ class w extends v {
|
|
|
5254
5262
|
for (const y of o)
|
|
5255
5263
|
m.push({
|
|
5256
5264
|
key: { status: "valid", value: y },
|
|
5257
|
-
value: { status: "valid", value:
|
|
5265
|
+
value: { status: "valid", value: a.data[y] }
|
|
5258
5266
|
});
|
|
5259
5267
|
else if (d === "strict")
|
|
5260
|
-
o.length > 0 && (u(
|
|
5268
|
+
o.length > 0 && (u(a, {
|
|
5261
5269
|
code: c.unrecognized_keys,
|
|
5262
5270
|
keys: o
|
|
5263
|
-
}),
|
|
5271
|
+
}), n.dirty());
|
|
5264
5272
|
else if (d !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
|
|
5265
5273
|
} else {
|
|
5266
5274
|
const d = this._def.catchall;
|
|
5267
5275
|
for (const y of o) {
|
|
5268
|
-
const S =
|
|
5276
|
+
const S = a.data[y];
|
|
5269
5277
|
m.push({
|
|
5270
5278
|
key: { status: "valid", value: y },
|
|
5271
5279
|
value: d._parse(
|
|
5272
|
-
new M(
|
|
5280
|
+
new M(a, S, a.path, y)
|
|
5273
5281
|
//, ctx.child(key), value, getParsedType(value)
|
|
5274
5282
|
),
|
|
5275
|
-
alwaysSet: y in
|
|
5283
|
+
alwaysSet: y in a.data
|
|
5276
5284
|
});
|
|
5277
5285
|
}
|
|
5278
5286
|
}
|
|
5279
|
-
return
|
|
5287
|
+
return a.common.async ? Promise.resolve().then(async () => {
|
|
5280
5288
|
const d = [];
|
|
5281
5289
|
for (const y of m) {
|
|
5282
5290
|
const S = await y.key;
|
|
@@ -5287,7 +5295,7 @@ class w extends v {
|
|
|
5287
5295
|
});
|
|
5288
5296
|
}
|
|
5289
5297
|
return d;
|
|
5290
|
-
}).then((d) => R.mergeObjectSync(
|
|
5298
|
+
}).then((d) => R.mergeObjectSync(n, d)) : R.mergeObjectSync(n, m);
|
|
5291
5299
|
}
|
|
5292
5300
|
get shape() {
|
|
5293
5301
|
return this._def.shape();
|
|
@@ -5297,9 +5305,9 @@ class w extends v {
|
|
|
5297
5305
|
...this._def,
|
|
5298
5306
|
unknownKeys: "strict",
|
|
5299
5307
|
...e !== void 0 ? {
|
|
5300
|
-
errorMap: (t,
|
|
5301
|
-
var
|
|
5302
|
-
const m = (s = (r = (
|
|
5308
|
+
errorMap: (t, n) => {
|
|
5309
|
+
var a, r, s, o;
|
|
5310
|
+
const m = (s = (r = (a = this._def).errorMap) === null || r === void 0 ? void 0 : r.call(a, t, n).message) !== null && s !== void 0 ? s : n.defaultError;
|
|
5303
5311
|
return t.code === "unrecognized_keys" ? {
|
|
5304
5312
|
message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : m
|
|
5305
5313
|
} : {
|
|
@@ -5430,8 +5438,8 @@ class w extends v {
|
|
|
5430
5438
|
}
|
|
5431
5439
|
pick(e) {
|
|
5432
5440
|
const t = {};
|
|
5433
|
-
return x.objectKeys(e).forEach((
|
|
5434
|
-
e[
|
|
5441
|
+
return x.objectKeys(e).forEach((n) => {
|
|
5442
|
+
e[n] && this.shape[n] && (t[n] = this.shape[n]);
|
|
5435
5443
|
}), new w({
|
|
5436
5444
|
...this._def,
|
|
5437
5445
|
shape: () => t
|
|
@@ -5439,8 +5447,8 @@ class w extends v {
|
|
|
5439
5447
|
}
|
|
5440
5448
|
omit(e) {
|
|
5441
5449
|
const t = {};
|
|
5442
|
-
return x.objectKeys(this.shape).forEach((
|
|
5443
|
-
e[
|
|
5450
|
+
return x.objectKeys(this.shape).forEach((n) => {
|
|
5451
|
+
e[n] || (t[n] = this.shape[n]);
|
|
5444
5452
|
}), new w({
|
|
5445
5453
|
...this._def,
|
|
5446
5454
|
shape: () => t
|
|
@@ -5454,9 +5462,9 @@ class w extends v {
|
|
|
5454
5462
|
}
|
|
5455
5463
|
partial(e) {
|
|
5456
5464
|
const t = {};
|
|
5457
|
-
return x.objectKeys(this.shape).forEach((
|
|
5458
|
-
const
|
|
5459
|
-
e && !e[
|
|
5465
|
+
return x.objectKeys(this.shape).forEach((n) => {
|
|
5466
|
+
const a = this.shape[n];
|
|
5467
|
+
e && !e[n] ? t[n] = a : t[n] = a.optional();
|
|
5460
5468
|
}), new w({
|
|
5461
5469
|
...this._def,
|
|
5462
5470
|
shape: () => t
|
|
@@ -5464,14 +5472,14 @@ class w extends v {
|
|
|
5464
5472
|
}
|
|
5465
5473
|
required(e) {
|
|
5466
5474
|
const t = {};
|
|
5467
|
-
return x.objectKeys(this.shape).forEach((
|
|
5468
|
-
if (e && !e[
|
|
5469
|
-
t[
|
|
5475
|
+
return x.objectKeys(this.shape).forEach((n) => {
|
|
5476
|
+
if (e && !e[n])
|
|
5477
|
+
t[n] = this.shape[n];
|
|
5470
5478
|
else {
|
|
5471
|
-
let r = this.shape[
|
|
5479
|
+
let r = this.shape[n];
|
|
5472
5480
|
for (; r instanceof P; )
|
|
5473
5481
|
r = r._def.innerType;
|
|
5474
|
-
t[
|
|
5482
|
+
t[n] = r;
|
|
5475
5483
|
}
|
|
5476
5484
|
}), new w({
|
|
5477
5485
|
...this._def,
|
|
@@ -5505,8 +5513,8 @@ w.lazycreate = (i, e) => new w({
|
|
|
5505
5513
|
});
|
|
5506
5514
|
class K extends v {
|
|
5507
5515
|
_parse(e) {
|
|
5508
|
-
const { ctx: t } = this._processInputParams(e),
|
|
5509
|
-
function
|
|
5516
|
+
const { ctx: t } = this._processInputParams(e), n = this._def.options;
|
|
5517
|
+
function a(r) {
|
|
5510
5518
|
for (const o of r)
|
|
5511
5519
|
if (o.result.status === "valid")
|
|
5512
5520
|
return o.result;
|
|
@@ -5520,7 +5528,7 @@ class K extends v {
|
|
|
5520
5528
|
}), _;
|
|
5521
5529
|
}
|
|
5522
5530
|
if (t.common.async)
|
|
5523
|
-
return Promise.all(
|
|
5531
|
+
return Promise.all(n.map(async (r) => {
|
|
5524
5532
|
const s = {
|
|
5525
5533
|
...t,
|
|
5526
5534
|
common: {
|
|
@@ -5537,11 +5545,11 @@ class K extends v {
|
|
|
5537
5545
|
}),
|
|
5538
5546
|
ctx: s
|
|
5539
5547
|
};
|
|
5540
|
-
})).then(
|
|
5548
|
+
})).then(a);
|
|
5541
5549
|
{
|
|
5542
5550
|
let r;
|
|
5543
5551
|
const s = [];
|
|
5544
|
-
for (const m of
|
|
5552
|
+
for (const m of n) {
|
|
5545
5553
|
const d = {
|
|
5546
5554
|
...t,
|
|
5547
5555
|
common: {
|
|
@@ -5576,7 +5584,7 @@ K.create = (i, e) => new K({
|
|
|
5576
5584
|
typeName: f.ZodUnion,
|
|
5577
5585
|
...g(e)
|
|
5578
5586
|
});
|
|
5579
|
-
const oe = (i) => i instanceof ie ? oe(i.schema) : i instanceof I ? oe(i.innerType()) : i instanceof
|
|
5587
|
+
const oe = (i) => i instanceof ie ? oe(i.schema) : i instanceof I ? oe(i.innerType()) : i instanceof ne ? [i.value] : i instanceof Z ? i.options : i instanceof ae ? Object.keys(i.enum) : i instanceof re ? oe(i._def.innerType) : i instanceof Q ? [void 0] : i instanceof X ? [null] : null;
|
|
5580
5588
|
class ge extends v {
|
|
5581
5589
|
_parse(e) {
|
|
5582
5590
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -5586,7 +5594,7 @@ class ge extends v {
|
|
|
5586
5594
|
expected: l.object,
|
|
5587
5595
|
received: t.parsedType
|
|
5588
5596
|
}), _;
|
|
5589
|
-
const
|
|
5597
|
+
const n = this.discriminator, a = t.data[n], r = this.optionsMap.get(a);
|
|
5590
5598
|
return r ? t.common.async ? r._parseAsync({
|
|
5591
5599
|
data: t.data,
|
|
5592
5600
|
path: t.path,
|
|
@@ -5598,7 +5606,7 @@ class ge extends v {
|
|
|
5598
5606
|
}) : (u(t, {
|
|
5599
5607
|
code: c.invalid_union_discriminator,
|
|
5600
5608
|
options: Array.from(this.optionsMap.keys()),
|
|
5601
|
-
path: [
|
|
5609
|
+
path: [n]
|
|
5602
5610
|
}), _);
|
|
5603
5611
|
}
|
|
5604
5612
|
get discriminator() {
|
|
@@ -5618,33 +5626,33 @@ class ge extends v {
|
|
|
5618
5626
|
* @param types an array of object schemas
|
|
5619
5627
|
* @param params
|
|
5620
5628
|
*/
|
|
5621
|
-
static create(e, t,
|
|
5622
|
-
const
|
|
5629
|
+
static create(e, t, n) {
|
|
5630
|
+
const a = /* @__PURE__ */ new Map();
|
|
5623
5631
|
for (const r of t) {
|
|
5624
5632
|
const s = oe(r.shape[e]);
|
|
5625
5633
|
if (!s)
|
|
5626
5634
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
5627
5635
|
for (const o of s) {
|
|
5628
|
-
if (
|
|
5636
|
+
if (a.has(o))
|
|
5629
5637
|
throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);
|
|
5630
|
-
|
|
5638
|
+
a.set(o, r);
|
|
5631
5639
|
}
|
|
5632
5640
|
}
|
|
5633
5641
|
return new ge({
|
|
5634
5642
|
typeName: f.ZodDiscriminatedUnion,
|
|
5635
5643
|
discriminator: e,
|
|
5636
5644
|
options: t,
|
|
5637
|
-
optionsMap:
|
|
5638
|
-
...g(
|
|
5645
|
+
optionsMap: a,
|
|
5646
|
+
...g(n)
|
|
5639
5647
|
});
|
|
5640
5648
|
}
|
|
5641
5649
|
}
|
|
5642
5650
|
function Te(i, e) {
|
|
5643
|
-
const t = j(i),
|
|
5651
|
+
const t = j(i), n = j(e);
|
|
5644
5652
|
if (i === e)
|
|
5645
5653
|
return { valid: !0, data: i };
|
|
5646
|
-
if (t === l.object &&
|
|
5647
|
-
const
|
|
5654
|
+
if (t === l.object && n === l.object) {
|
|
5655
|
+
const a = x.objectKeys(e), r = x.objectKeys(i).filter((o) => a.indexOf(o) !== -1), s = { ...i, ...e };
|
|
5648
5656
|
for (const o of r) {
|
|
5649
5657
|
const m = Te(i[o], e[o]);
|
|
5650
5658
|
if (!m.valid)
|
|
@@ -5652,48 +5660,48 @@ function Te(i, e) {
|
|
|
5652
5660
|
s[o] = m.data;
|
|
5653
5661
|
}
|
|
5654
5662
|
return { valid: !0, data: s };
|
|
5655
|
-
} else if (t === l.array &&
|
|
5663
|
+
} else if (t === l.array && n === l.array) {
|
|
5656
5664
|
if (i.length !== e.length)
|
|
5657
5665
|
return { valid: !1 };
|
|
5658
|
-
const
|
|
5666
|
+
const a = [];
|
|
5659
5667
|
for (let r = 0; r < i.length; r++) {
|
|
5660
5668
|
const s = i[r], o = e[r], m = Te(s, o);
|
|
5661
5669
|
if (!m.valid)
|
|
5662
5670
|
return { valid: !1 };
|
|
5663
|
-
|
|
5671
|
+
a.push(m.data);
|
|
5664
5672
|
}
|
|
5665
|
-
return { valid: !0, data:
|
|
5666
|
-
} else return t === l.date &&
|
|
5673
|
+
return { valid: !0, data: a };
|
|
5674
|
+
} else return t === l.date && n === l.date && +i == +e ? { valid: !0, data: i } : { valid: !1 };
|
|
5667
5675
|
}
|
|
5668
5676
|
class ee extends v {
|
|
5669
5677
|
_parse(e) {
|
|
5670
|
-
const { status: t, ctx:
|
|
5678
|
+
const { status: t, ctx: n } = this._processInputParams(e), a = (r, s) => {
|
|
5671
5679
|
if (xe(r) || xe(s))
|
|
5672
5680
|
return _;
|
|
5673
5681
|
const o = Te(r.value, s.value);
|
|
5674
|
-
return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (u(
|
|
5682
|
+
return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (u(n, {
|
|
5675
5683
|
code: c.invalid_intersection_types
|
|
5676
5684
|
}), _);
|
|
5677
5685
|
};
|
|
5678
|
-
return
|
|
5686
|
+
return n.common.async ? Promise.all([
|
|
5679
5687
|
this._def.left._parseAsync({
|
|
5680
|
-
data:
|
|
5681
|
-
path:
|
|
5682
|
-
parent:
|
|
5688
|
+
data: n.data,
|
|
5689
|
+
path: n.path,
|
|
5690
|
+
parent: n
|
|
5683
5691
|
}),
|
|
5684
5692
|
this._def.right._parseAsync({
|
|
5685
|
-
data:
|
|
5686
|
-
path:
|
|
5687
|
-
parent:
|
|
5693
|
+
data: n.data,
|
|
5694
|
+
path: n.path,
|
|
5695
|
+
parent: n
|
|
5688
5696
|
})
|
|
5689
|
-
]).then(([r, s]) =>
|
|
5690
|
-
data:
|
|
5691
|
-
path:
|
|
5692
|
-
parent:
|
|
5697
|
+
]).then(([r, s]) => a(r, s)) : a(this._def.left._parseSync({
|
|
5698
|
+
data: n.data,
|
|
5699
|
+
path: n.path,
|
|
5700
|
+
parent: n
|
|
5693
5701
|
}), this._def.right._parseSync({
|
|
5694
|
-
data:
|
|
5695
|
-
path:
|
|
5696
|
-
parent:
|
|
5702
|
+
data: n.data,
|
|
5703
|
+
path: n.path,
|
|
5704
|
+
parent: n
|
|
5697
5705
|
}));
|
|
5698
5706
|
}
|
|
5699
5707
|
}
|
|
@@ -5705,33 +5713,33 @@ ee.create = (i, e, t) => new ee({
|
|
|
5705
5713
|
});
|
|
5706
5714
|
class N extends v {
|
|
5707
5715
|
_parse(e) {
|
|
5708
|
-
const { status: t, ctx:
|
|
5709
|
-
if (
|
|
5710
|
-
return u(
|
|
5716
|
+
const { status: t, ctx: n } = this._processInputParams(e);
|
|
5717
|
+
if (n.parsedType !== l.array)
|
|
5718
|
+
return u(n, {
|
|
5711
5719
|
code: c.invalid_type,
|
|
5712
5720
|
expected: l.array,
|
|
5713
|
-
received:
|
|
5721
|
+
received: n.parsedType
|
|
5714
5722
|
}), _;
|
|
5715
|
-
if (
|
|
5716
|
-
return u(
|
|
5723
|
+
if (n.data.length < this._def.items.length)
|
|
5724
|
+
return u(n, {
|
|
5717
5725
|
code: c.too_small,
|
|
5718
5726
|
minimum: this._def.items.length,
|
|
5719
5727
|
inclusive: !0,
|
|
5720
5728
|
exact: !1,
|
|
5721
5729
|
type: "array"
|
|
5722
5730
|
}), _;
|
|
5723
|
-
!this._def.rest &&
|
|
5731
|
+
!this._def.rest && n.data.length > this._def.items.length && (u(n, {
|
|
5724
5732
|
code: c.too_big,
|
|
5725
5733
|
maximum: this._def.items.length,
|
|
5726
5734
|
inclusive: !0,
|
|
5727
5735
|
exact: !1,
|
|
5728
5736
|
type: "array"
|
|
5729
5737
|
}), t.dirty());
|
|
5730
|
-
const r = [...
|
|
5738
|
+
const r = [...n.data].map((s, o) => {
|
|
5731
5739
|
const m = this._def.items[o] || this._def.rest;
|
|
5732
|
-
return m ? m._parse(new M(
|
|
5740
|
+
return m ? m._parse(new M(n, s, n.path, o)) : null;
|
|
5733
5741
|
}).filter((s) => !!s);
|
|
5734
|
-
return
|
|
5742
|
+
return n.common.async ? Promise.all(r).then((s) => R.mergeArray(t, s)) : R.mergeArray(t, r);
|
|
5735
5743
|
}
|
|
5736
5744
|
get items() {
|
|
5737
5745
|
return this._def.items;
|
|
@@ -5761,30 +5769,30 @@ class te extends v {
|
|
|
5761
5769
|
return this._def.valueType;
|
|
5762
5770
|
}
|
|
5763
5771
|
_parse(e) {
|
|
5764
|
-
const { status: t, ctx:
|
|
5765
|
-
if (
|
|
5766
|
-
return u(
|
|
5772
|
+
const { status: t, ctx: n } = this._processInputParams(e);
|
|
5773
|
+
if (n.parsedType !== l.object)
|
|
5774
|
+
return u(n, {
|
|
5767
5775
|
code: c.invalid_type,
|
|
5768
5776
|
expected: l.object,
|
|
5769
|
-
received:
|
|
5777
|
+
received: n.parsedType
|
|
5770
5778
|
}), _;
|
|
5771
|
-
const
|
|
5772
|
-
for (const o in
|
|
5773
|
-
|
|
5774
|
-
key: r._parse(new M(
|
|
5775
|
-
value: s._parse(new M(
|
|
5779
|
+
const a = [], r = this._def.keyType, s = this._def.valueType;
|
|
5780
|
+
for (const o in n.data)
|
|
5781
|
+
a.push({
|
|
5782
|
+
key: r._parse(new M(n, o, n.path, o)),
|
|
5783
|
+
value: s._parse(new M(n, n.data[o], n.path, o))
|
|
5776
5784
|
});
|
|
5777
|
-
return
|
|
5785
|
+
return n.common.async ? R.mergeObjectAsync(t, a) : R.mergeObjectSync(t, a);
|
|
5778
5786
|
}
|
|
5779
5787
|
get element() {
|
|
5780
5788
|
return this._def.valueType;
|
|
5781
5789
|
}
|
|
5782
|
-
static create(e, t,
|
|
5790
|
+
static create(e, t, n) {
|
|
5783
5791
|
return t instanceof v ? new te({
|
|
5784
5792
|
keyType: e,
|
|
5785
5793
|
valueType: t,
|
|
5786
5794
|
typeName: f.ZodRecord,
|
|
5787
|
-
...g(
|
|
5795
|
+
...g(n)
|
|
5788
5796
|
}) : new te({
|
|
5789
5797
|
keyType: A.create(),
|
|
5790
5798
|
valueType: e,
|
|
@@ -5801,18 +5809,18 @@ class pe extends v {
|
|
|
5801
5809
|
return this._def.valueType;
|
|
5802
5810
|
}
|
|
5803
5811
|
_parse(e) {
|
|
5804
|
-
const { status: t, ctx:
|
|
5805
|
-
if (
|
|
5806
|
-
return u(
|
|
5812
|
+
const { status: t, ctx: n } = this._processInputParams(e);
|
|
5813
|
+
if (n.parsedType !== l.map)
|
|
5814
|
+
return u(n, {
|
|
5807
5815
|
code: c.invalid_type,
|
|
5808
5816
|
expected: l.map,
|
|
5809
|
-
received:
|
|
5817
|
+
received: n.parsedType
|
|
5810
5818
|
}), _;
|
|
5811
|
-
const
|
|
5812
|
-
key:
|
|
5813
|
-
value: r._parse(new M(
|
|
5819
|
+
const a = this._def.keyType, r = this._def.valueType, s = [...n.data.entries()].map(([o, m], d) => ({
|
|
5820
|
+
key: a._parse(new M(n, o, n.path, [d, "key"])),
|
|
5821
|
+
value: r._parse(new M(n, m, n.path, [d, "value"]))
|
|
5814
5822
|
}));
|
|
5815
|
-
if (
|
|
5823
|
+
if (n.common.async) {
|
|
5816
5824
|
const o = /* @__PURE__ */ new Map();
|
|
5817
5825
|
return Promise.resolve().then(async () => {
|
|
5818
5826
|
for (const m of s) {
|
|
@@ -5843,28 +5851,28 @@ pe.create = (i, e, t) => new pe({
|
|
|
5843
5851
|
});
|
|
5844
5852
|
class U extends v {
|
|
5845
5853
|
_parse(e) {
|
|
5846
|
-
const { status: t, ctx:
|
|
5847
|
-
if (
|
|
5848
|
-
return u(
|
|
5854
|
+
const { status: t, ctx: n } = this._processInputParams(e);
|
|
5855
|
+
if (n.parsedType !== l.set)
|
|
5856
|
+
return u(n, {
|
|
5849
5857
|
code: c.invalid_type,
|
|
5850
5858
|
expected: l.set,
|
|
5851
|
-
received:
|
|
5859
|
+
received: n.parsedType
|
|
5852
5860
|
}), _;
|
|
5853
|
-
const
|
|
5854
|
-
|
|
5861
|
+
const a = this._def;
|
|
5862
|
+
a.minSize !== null && n.data.size < a.minSize.value && (u(n, {
|
|
5855
5863
|
code: c.too_small,
|
|
5856
|
-
minimum:
|
|
5864
|
+
minimum: a.minSize.value,
|
|
5857
5865
|
type: "set",
|
|
5858
5866
|
inclusive: !0,
|
|
5859
5867
|
exact: !1,
|
|
5860
|
-
message:
|
|
5861
|
-
}), t.dirty()),
|
|
5868
|
+
message: a.minSize.message
|
|
5869
|
+
}), t.dirty()), a.maxSize !== null && n.data.size > a.maxSize.value && (u(n, {
|
|
5862
5870
|
code: c.too_big,
|
|
5863
|
-
maximum:
|
|
5871
|
+
maximum: a.maxSize.value,
|
|
5864
5872
|
type: "set",
|
|
5865
5873
|
inclusive: !0,
|
|
5866
5874
|
exact: !1,
|
|
5867
|
-
message:
|
|
5875
|
+
message: a.maxSize.message
|
|
5868
5876
|
}), t.dirty());
|
|
5869
5877
|
const r = this._def.valueType;
|
|
5870
5878
|
function s(m) {
|
|
@@ -5876,8 +5884,8 @@ class U extends v {
|
|
|
5876
5884
|
}
|
|
5877
5885
|
return { status: t.value, value: d };
|
|
5878
5886
|
}
|
|
5879
|
-
const o = [...
|
|
5880
|
-
return
|
|
5887
|
+
const o = [...n.data.values()].map((m, d) => r._parse(new M(n, m, n.path, d)));
|
|
5888
|
+
return n.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
|
|
5881
5889
|
}
|
|
5882
5890
|
min(e, t) {
|
|
5883
5891
|
return new U({
|
|
@@ -5917,7 +5925,7 @@ class z extends v {
|
|
|
5917
5925
|
expected: l.function,
|
|
5918
5926
|
received: t.parsedType
|
|
5919
5927
|
}), _;
|
|
5920
|
-
function
|
|
5928
|
+
function n(o, m) {
|
|
5921
5929
|
return de({
|
|
5922
5930
|
data: o,
|
|
5923
5931
|
path: t.path,
|
|
@@ -5933,7 +5941,7 @@ class z extends v {
|
|
|
5933
5941
|
}
|
|
5934
5942
|
});
|
|
5935
5943
|
}
|
|
5936
|
-
function
|
|
5944
|
+
function a(o, m) {
|
|
5937
5945
|
return de({
|
|
5938
5946
|
data: o,
|
|
5939
5947
|
path: t.path,
|
|
@@ -5954,10 +5962,10 @@ class z extends v {
|
|
|
5954
5962
|
const o = this;
|
|
5955
5963
|
return k(async function(...m) {
|
|
5956
5964
|
const d = new E([]), y = await o._def.args.parseAsync(m, r).catch((ve) => {
|
|
5957
|
-
throw d.addIssue(
|
|
5965
|
+
throw d.addIssue(n(m, ve)), d;
|
|
5958
5966
|
}), S = await Reflect.apply(s, this, y);
|
|
5959
5967
|
return await o._def.returns._def.type.parseAsync(S, r).catch((ve) => {
|
|
5960
|
-
throw d.addIssue(
|
|
5968
|
+
throw d.addIssue(a(S, ve)), d;
|
|
5961
5969
|
});
|
|
5962
5970
|
});
|
|
5963
5971
|
} else {
|
|
@@ -5965,10 +5973,10 @@ class z extends v {
|
|
|
5965
5973
|
return k(function(...m) {
|
|
5966
5974
|
const d = o._def.args.safeParse(m, r);
|
|
5967
5975
|
if (!d.success)
|
|
5968
|
-
throw new E([
|
|
5976
|
+
throw new E([n(m, d.error)]);
|
|
5969
5977
|
const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y, r);
|
|
5970
5978
|
if (!S.success)
|
|
5971
|
-
throw new E([
|
|
5979
|
+
throw new E([a(y, S.error)]);
|
|
5972
5980
|
return S.data;
|
|
5973
5981
|
});
|
|
5974
5982
|
}
|
|
@@ -5982,7 +5990,7 @@ class z extends v {
|
|
|
5982
5990
|
args(...e) {
|
|
5983
5991
|
return new z({
|
|
5984
5992
|
...this._def,
|
|
5985
|
-
args: N.create(e).rest(
|
|
5993
|
+
args: N.create(e).rest(V.create())
|
|
5986
5994
|
});
|
|
5987
5995
|
}
|
|
5988
5996
|
returns(e) {
|
|
@@ -5997,12 +6005,12 @@ class z extends v {
|
|
|
5997
6005
|
strictImplement(e) {
|
|
5998
6006
|
return this.parse(e);
|
|
5999
6007
|
}
|
|
6000
|
-
static create(e, t,
|
|
6008
|
+
static create(e, t, n) {
|
|
6001
6009
|
return new z({
|
|
6002
|
-
args: e || N.create([]).rest(
|
|
6003
|
-
returns: t ||
|
|
6010
|
+
args: e || N.create([]).rest(V.create()),
|
|
6011
|
+
returns: t || V.create(),
|
|
6004
6012
|
typeName: f.ZodFunction,
|
|
6005
|
-
...g(
|
|
6013
|
+
...g(n)
|
|
6006
6014
|
});
|
|
6007
6015
|
}
|
|
6008
6016
|
}
|
|
@@ -6020,7 +6028,7 @@ ie.create = (i, e) => new ie({
|
|
|
6020
6028
|
typeName: f.ZodLazy,
|
|
6021
6029
|
...g(e)
|
|
6022
6030
|
});
|
|
6023
|
-
class
|
|
6031
|
+
class ne extends v {
|
|
6024
6032
|
_parse(e) {
|
|
6025
6033
|
if (e.data !== this._def.value) {
|
|
6026
6034
|
const t = this._getOrReturnCtx(e);
|
|
@@ -6036,34 +6044,34 @@ class ae extends v {
|
|
|
6036
6044
|
return this._def.value;
|
|
6037
6045
|
}
|
|
6038
6046
|
}
|
|
6039
|
-
|
|
6047
|
+
ne.create = (i, e) => new ne({
|
|
6040
6048
|
value: i,
|
|
6041
6049
|
typeName: f.ZodLiteral,
|
|
6042
6050
|
...g(e)
|
|
6043
6051
|
});
|
|
6044
6052
|
function Ae(i, e) {
|
|
6045
|
-
return new
|
|
6053
|
+
return new Z({
|
|
6046
6054
|
values: i,
|
|
6047
6055
|
typeName: f.ZodEnum,
|
|
6048
6056
|
...g(e)
|
|
6049
6057
|
});
|
|
6050
6058
|
}
|
|
6051
|
-
class
|
|
6059
|
+
class Z extends v {
|
|
6052
6060
|
_parse(e) {
|
|
6053
6061
|
if (typeof e.data != "string") {
|
|
6054
|
-
const t = this._getOrReturnCtx(e),
|
|
6062
|
+
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
6055
6063
|
return u(t, {
|
|
6056
|
-
expected: x.joinValues(
|
|
6064
|
+
expected: x.joinValues(n),
|
|
6057
6065
|
received: t.parsedType,
|
|
6058
6066
|
code: c.invalid_type
|
|
6059
6067
|
}), _;
|
|
6060
6068
|
}
|
|
6061
6069
|
if (this._def.values.indexOf(e.data) === -1) {
|
|
6062
|
-
const t = this._getOrReturnCtx(e),
|
|
6070
|
+
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
6063
6071
|
return u(t, {
|
|
6064
6072
|
received: t.data,
|
|
6065
6073
|
code: c.invalid_enum_value,
|
|
6066
|
-
options:
|
|
6074
|
+
options: n
|
|
6067
6075
|
}), _;
|
|
6068
6076
|
}
|
|
6069
6077
|
return k(e.data);
|
|
@@ -6090,30 +6098,30 @@ class V extends v {
|
|
|
6090
6098
|
return e;
|
|
6091
6099
|
}
|
|
6092
6100
|
extract(e) {
|
|
6093
|
-
return
|
|
6101
|
+
return Z.create(e);
|
|
6094
6102
|
}
|
|
6095
6103
|
exclude(e) {
|
|
6096
|
-
return
|
|
6104
|
+
return Z.create(this.options.filter((t) => !e.includes(t)));
|
|
6097
6105
|
}
|
|
6098
6106
|
}
|
|
6099
|
-
|
|
6100
|
-
class
|
|
6107
|
+
Z.create = Ae;
|
|
6108
|
+
class ae extends v {
|
|
6101
6109
|
_parse(e) {
|
|
6102
|
-
const t = x.getValidEnumValues(this._def.values),
|
|
6103
|
-
if (
|
|
6104
|
-
const
|
|
6105
|
-
return u(
|
|
6106
|
-
expected: x.joinValues(
|
|
6107
|
-
received:
|
|
6110
|
+
const t = x.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
6111
|
+
if (n.parsedType !== l.string && n.parsedType !== l.number) {
|
|
6112
|
+
const a = x.objectValues(t);
|
|
6113
|
+
return u(n, {
|
|
6114
|
+
expected: x.joinValues(a),
|
|
6115
|
+
received: n.parsedType,
|
|
6108
6116
|
code: c.invalid_type
|
|
6109
6117
|
}), _;
|
|
6110
6118
|
}
|
|
6111
6119
|
if (t.indexOf(e.data) === -1) {
|
|
6112
|
-
const
|
|
6113
|
-
return u(
|
|
6114
|
-
received:
|
|
6120
|
+
const a = x.objectValues(t);
|
|
6121
|
+
return u(n, {
|
|
6122
|
+
received: n.data,
|
|
6115
6123
|
code: c.invalid_enum_value,
|
|
6116
|
-
options:
|
|
6124
|
+
options: a
|
|
6117
6125
|
}), _;
|
|
6118
6126
|
}
|
|
6119
6127
|
return k(e.data);
|
|
@@ -6122,7 +6130,7 @@ class ne extends v {
|
|
|
6122
6130
|
return this._def.values;
|
|
6123
6131
|
}
|
|
6124
6132
|
}
|
|
6125
|
-
|
|
6133
|
+
ae.create = (i, e) => new ae({
|
|
6126
6134
|
values: i,
|
|
6127
6135
|
typeName: f.ZodNativeEnum,
|
|
6128
6136
|
...g(e)
|
|
@@ -6139,8 +6147,8 @@ class Y extends v {
|
|
|
6139
6147
|
expected: l.promise,
|
|
6140
6148
|
received: t.parsedType
|
|
6141
6149
|
}), _;
|
|
6142
|
-
const
|
|
6143
|
-
return k(
|
|
6150
|
+
const n = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
|
|
6151
|
+
return k(n.then((a) => this._def.type.parseAsync(a, {
|
|
6144
6152
|
path: t.path,
|
|
6145
6153
|
errorMap: t.common.contextualErrorMap
|
|
6146
6154
|
})));
|
|
@@ -6159,64 +6167,64 @@ class I extends v {
|
|
|
6159
6167
|
return this._def.schema._def.typeName === f.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
6160
6168
|
}
|
|
6161
6169
|
_parse(e) {
|
|
6162
|
-
const { status: t, ctx:
|
|
6170
|
+
const { status: t, ctx: n } = this._processInputParams(e), a = this._def.effect || null, r = {
|
|
6163
6171
|
addIssue: (s) => {
|
|
6164
|
-
u(
|
|
6172
|
+
u(n, s), s.fatal ? t.abort() : t.dirty();
|
|
6165
6173
|
},
|
|
6166
6174
|
get path() {
|
|
6167
|
-
return
|
|
6175
|
+
return n.path;
|
|
6168
6176
|
}
|
|
6169
6177
|
};
|
|
6170
|
-
if (r.addIssue = r.addIssue.bind(r),
|
|
6171
|
-
const s =
|
|
6172
|
-
return
|
|
6178
|
+
if (r.addIssue = r.addIssue.bind(r), a.type === "preprocess") {
|
|
6179
|
+
const s = a.transform(n.data, r);
|
|
6180
|
+
return n.common.issues.length ? {
|
|
6173
6181
|
status: "dirty",
|
|
6174
|
-
value:
|
|
6175
|
-
} :
|
|
6182
|
+
value: n.data
|
|
6183
|
+
} : n.common.async ? Promise.resolve(s).then((o) => this._def.schema._parseAsync({
|
|
6176
6184
|
data: o,
|
|
6177
|
-
path:
|
|
6178
|
-
parent:
|
|
6185
|
+
path: n.path,
|
|
6186
|
+
parent: n
|
|
6179
6187
|
})) : this._def.schema._parseSync({
|
|
6180
6188
|
data: s,
|
|
6181
|
-
path:
|
|
6182
|
-
parent:
|
|
6189
|
+
path: n.path,
|
|
6190
|
+
parent: n
|
|
6183
6191
|
});
|
|
6184
6192
|
}
|
|
6185
|
-
if (
|
|
6193
|
+
if (a.type === "refinement") {
|
|
6186
6194
|
const s = (o) => {
|
|
6187
|
-
const m =
|
|
6188
|
-
if (
|
|
6195
|
+
const m = a.refinement(o, r);
|
|
6196
|
+
if (n.common.async)
|
|
6189
6197
|
return Promise.resolve(m);
|
|
6190
6198
|
if (m instanceof Promise)
|
|
6191
6199
|
throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
6192
6200
|
return o;
|
|
6193
6201
|
};
|
|
6194
|
-
if (
|
|
6202
|
+
if (n.common.async === !1) {
|
|
6195
6203
|
const o = this._def.schema._parseSync({
|
|
6196
|
-
data:
|
|
6197
|
-
path:
|
|
6198
|
-
parent:
|
|
6204
|
+
data: n.data,
|
|
6205
|
+
path: n.path,
|
|
6206
|
+
parent: n
|
|
6199
6207
|
});
|
|
6200
6208
|
return o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), s(o.value), { status: t.value, value: o.value });
|
|
6201
6209
|
} else
|
|
6202
|
-
return this._def.schema._parseAsync({ data:
|
|
6210
|
+
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
|
|
6203
6211
|
}
|
|
6204
|
-
if (
|
|
6205
|
-
if (
|
|
6212
|
+
if (a.type === "transform")
|
|
6213
|
+
if (n.common.async === !1) {
|
|
6206
6214
|
const s = this._def.schema._parseSync({
|
|
6207
|
-
data:
|
|
6208
|
-
path:
|
|
6209
|
-
parent:
|
|
6215
|
+
data: n.data,
|
|
6216
|
+
path: n.path,
|
|
6217
|
+
parent: n
|
|
6210
6218
|
});
|
|
6211
6219
|
if (!H(s))
|
|
6212
6220
|
return s;
|
|
6213
|
-
const o =
|
|
6221
|
+
const o = a.transform(s.value, r);
|
|
6214
6222
|
if (o instanceof Promise)
|
|
6215
6223
|
throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
6216
6224
|
return { status: t.value, value: o };
|
|
6217
6225
|
} else
|
|
6218
|
-
return this._def.schema._parseAsync({ data:
|
|
6219
|
-
x.assertNever(
|
|
6226
|
+
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((s) => H(s) ? Promise.resolve(a.transform(s.value, r)).then((o) => ({ status: t.value, value: o })) : s);
|
|
6227
|
+
x.assertNever(a);
|
|
6220
6228
|
}
|
|
6221
6229
|
}
|
|
6222
6230
|
I.create = (i, e, t) => new I({
|
|
@@ -6260,9 +6268,9 @@ q.create = (i, e) => new q({
|
|
|
6260
6268
|
class re extends v {
|
|
6261
6269
|
_parse(e) {
|
|
6262
6270
|
const { ctx: t } = this._processInputParams(e);
|
|
6263
|
-
let
|
|
6264
|
-
return t.parsedType === l.undefined && (
|
|
6265
|
-
data:
|
|
6271
|
+
let n = t.data;
|
|
6272
|
+
return t.parsedType === l.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
|
|
6273
|
+
data: n,
|
|
6266
6274
|
path: t.path,
|
|
6267
6275
|
parent: t
|
|
6268
6276
|
});
|
|
@@ -6279,34 +6287,34 @@ re.create = (i, e) => new re({
|
|
|
6279
6287
|
});
|
|
6280
6288
|
class fe extends v {
|
|
6281
6289
|
_parse(e) {
|
|
6282
|
-
const { ctx: t } = this._processInputParams(e),
|
|
6290
|
+
const { ctx: t } = this._processInputParams(e), n = {
|
|
6283
6291
|
...t,
|
|
6284
6292
|
common: {
|
|
6285
6293
|
...t.common,
|
|
6286
6294
|
issues: []
|
|
6287
6295
|
}
|
|
6288
|
-
},
|
|
6289
|
-
data:
|
|
6290
|
-
path:
|
|
6296
|
+
}, a = this._def.innerType._parse({
|
|
6297
|
+
data: n.data,
|
|
6298
|
+
path: n.path,
|
|
6291
6299
|
parent: {
|
|
6292
|
-
...
|
|
6300
|
+
...n
|
|
6293
6301
|
}
|
|
6294
6302
|
});
|
|
6295
|
-
return le(
|
|
6303
|
+
return le(a) ? a.then((r) => ({
|
|
6296
6304
|
status: "valid",
|
|
6297
6305
|
value: r.status === "valid" ? r.value : this._def.catchValue({
|
|
6298
6306
|
get error() {
|
|
6299
|
-
return new E(
|
|
6307
|
+
return new E(n.common.issues);
|
|
6300
6308
|
},
|
|
6301
|
-
input:
|
|
6309
|
+
input: n.data
|
|
6302
6310
|
})
|
|
6303
6311
|
})) : {
|
|
6304
6312
|
status: "valid",
|
|
6305
|
-
value:
|
|
6313
|
+
value: a.status === "valid" ? a.value : this._def.catchValue({
|
|
6306
6314
|
get error() {
|
|
6307
|
-
return new E(
|
|
6315
|
+
return new E(n.common.issues);
|
|
6308
6316
|
},
|
|
6309
|
-
input:
|
|
6317
|
+
input: n.data
|
|
6310
6318
|
})
|
|
6311
6319
|
};
|
|
6312
6320
|
}
|
|
@@ -6323,11 +6331,11 @@ fe.create = (i, e) => new fe({
|
|
|
6323
6331
|
class he extends v {
|
|
6324
6332
|
_parse(e) {
|
|
6325
6333
|
if (this._getType(e) !== l.nan) {
|
|
6326
|
-
const
|
|
6327
|
-
return u(
|
|
6334
|
+
const n = this._getOrReturnCtx(e);
|
|
6335
|
+
return u(n, {
|
|
6328
6336
|
code: c.invalid_type,
|
|
6329
6337
|
expected: l.nan,
|
|
6330
|
-
received:
|
|
6338
|
+
received: n.parsedType
|
|
6331
6339
|
}), _;
|
|
6332
6340
|
}
|
|
6333
6341
|
return { status: "valid", value: e.data };
|
|
@@ -6340,9 +6348,9 @@ he.create = (i) => new he({
|
|
|
6340
6348
|
const ct = Symbol("zod_brand");
|
|
6341
6349
|
class Ee extends v {
|
|
6342
6350
|
_parse(e) {
|
|
6343
|
-
const { ctx: t } = this._processInputParams(e),
|
|
6351
|
+
const { ctx: t } = this._processInputParams(e), n = t.data;
|
|
6344
6352
|
return this._def.type._parse({
|
|
6345
|
-
data:
|
|
6353
|
+
data: n,
|
|
6346
6354
|
path: t.path,
|
|
6347
6355
|
parent: t
|
|
6348
6356
|
});
|
|
@@ -6353,33 +6361,33 @@ class Ee extends v {
|
|
|
6353
6361
|
}
|
|
6354
6362
|
class se extends v {
|
|
6355
6363
|
_parse(e) {
|
|
6356
|
-
const { status: t, ctx:
|
|
6357
|
-
if (
|
|
6364
|
+
const { status: t, ctx: n } = this._processInputParams(e);
|
|
6365
|
+
if (n.common.async)
|
|
6358
6366
|
return (async () => {
|
|
6359
6367
|
const r = await this._def.in._parseAsync({
|
|
6360
|
-
data:
|
|
6361
|
-
path:
|
|
6362
|
-
parent:
|
|
6368
|
+
data: n.data,
|
|
6369
|
+
path: n.path,
|
|
6370
|
+
parent: n
|
|
6363
6371
|
});
|
|
6364
6372
|
return r.status === "aborted" ? _ : r.status === "dirty" ? (t.dirty(), Se(r.value)) : this._def.out._parseAsync({
|
|
6365
6373
|
data: r.value,
|
|
6366
|
-
path:
|
|
6367
|
-
parent:
|
|
6374
|
+
path: n.path,
|
|
6375
|
+
parent: n
|
|
6368
6376
|
});
|
|
6369
6377
|
})();
|
|
6370
6378
|
{
|
|
6371
|
-
const
|
|
6372
|
-
data:
|
|
6373
|
-
path:
|
|
6374
|
-
parent:
|
|
6379
|
+
const a = this._def.in._parseSync({
|
|
6380
|
+
data: n.data,
|
|
6381
|
+
path: n.path,
|
|
6382
|
+
parent: n
|
|
6375
6383
|
});
|
|
6376
|
-
return
|
|
6384
|
+
return a.status === "aborted" ? _ : a.status === "dirty" ? (t.dirty(), {
|
|
6377
6385
|
status: "dirty",
|
|
6378
|
-
value:
|
|
6386
|
+
value: a.value
|
|
6379
6387
|
}) : this._def.out._parseSync({
|
|
6380
|
-
data:
|
|
6381
|
-
path:
|
|
6382
|
-
parent:
|
|
6388
|
+
data: a.value,
|
|
6389
|
+
path: n.path,
|
|
6390
|
+
parent: n
|
|
6383
6391
|
});
|
|
6384
6392
|
}
|
|
6385
6393
|
}
|
|
@@ -6402,11 +6410,11 @@ _e.create = (i, e) => new _e({
|
|
|
6402
6410
|
typeName: f.ZodReadonly,
|
|
6403
6411
|
...g(e)
|
|
6404
6412
|
});
|
|
6405
|
-
const Oe = (i, e = {}, t) => i ? W.create().superRefine((
|
|
6413
|
+
const Oe = (i, e = {}, t) => i ? W.create().superRefine((n, a) => {
|
|
6406
6414
|
var r, s;
|
|
6407
|
-
if (!i(
|
|
6408
|
-
const o = typeof e == "function" ? e(
|
|
6409
|
-
|
|
6415
|
+
if (!i(n)) {
|
|
6416
|
+
const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, m = (s = (r = o.fatal) !== null && r !== void 0 ? r : t) !== null && s !== void 0 ? s : !0, d = typeof o == "string" ? { message: o } : o;
|
|
6417
|
+
a.addIssue({ code: "custom", ...d, fatal: m });
|
|
6410
6418
|
}
|
|
6411
6419
|
}) : W.create(), dt = {
|
|
6412
6420
|
object: w.lazycreate
|
|
@@ -6417,14 +6425,14 @@ var f;
|
|
|
6417
6425
|
})(f || (f = {}));
|
|
6418
6426
|
const lt = (i, e = {
|
|
6419
6427
|
message: `Input not instance of ${i.name}`
|
|
6420
|
-
}) => Oe((t) => t instanceof i, e), Ie = A.create, Me = D.create, ut = he.create, mt =
|
|
6428
|
+
}) => Oe((t) => t instanceof i, e), Ie = A.create, Me = D.create, ut = he.create, mt = B.create, Ne = J.create, pt = $.create, ft = ue.create, ht = Q.create, _t = X.create, gt = W.create, vt = V.create, yt = L.create, bt = me.create, xt = O.create, wt = w.create, Tt = w.strictCreate, Ct = K.create, Rt = ge.create, kt = ee.create, St = N.create, At = te.create, Et = pe.create, Ot = U.create, It = z.create, Mt = ie.create, Nt = ne.create, Pt = Z.create, Lt = ae.create, jt = Y.create, Re = I.create, Dt = P.create, Bt = q.create, Zt = I.createWithPreprocess, Vt = se.create, $t = () => Ie().optional(), Ut = () => Me().optional(), qt = () => Ne().optional(), Gt = {
|
|
6421
6429
|
string: (i) => A.create({ ...i, coerce: !0 }),
|
|
6422
6430
|
number: (i) => D.create({ ...i, coerce: !0 }),
|
|
6423
6431
|
boolean: (i) => J.create({
|
|
6424
6432
|
...i,
|
|
6425
6433
|
coerce: !0
|
|
6426
6434
|
}),
|
|
6427
|
-
bigint: (i) =>
|
|
6435
|
+
bigint: (i) => B.create({ ...i, coerce: !0 }),
|
|
6428
6436
|
date: (i) => $.create({ ...i, coerce: !0 })
|
|
6429
6437
|
}, zt = _;
|
|
6430
6438
|
var Wt = /* @__PURE__ */ Object.freeze({
|
|
@@ -6454,14 +6462,14 @@ var Wt = /* @__PURE__ */ Object.freeze({
|
|
|
6454
6462
|
ZodType: v,
|
|
6455
6463
|
ZodString: A,
|
|
6456
6464
|
ZodNumber: D,
|
|
6457
|
-
ZodBigInt:
|
|
6465
|
+
ZodBigInt: B,
|
|
6458
6466
|
ZodBoolean: J,
|
|
6459
6467
|
ZodDate: $,
|
|
6460
6468
|
ZodSymbol: ue,
|
|
6461
6469
|
ZodUndefined: Q,
|
|
6462
6470
|
ZodNull: X,
|
|
6463
6471
|
ZodAny: W,
|
|
6464
|
-
ZodUnknown:
|
|
6472
|
+
ZodUnknown: V,
|
|
6465
6473
|
ZodNever: L,
|
|
6466
6474
|
ZodVoid: me,
|
|
6467
6475
|
ZodArray: O,
|
|
@@ -6475,9 +6483,9 @@ var Wt = /* @__PURE__ */ Object.freeze({
|
|
|
6475
6483
|
ZodSet: U,
|
|
6476
6484
|
ZodFunction: z,
|
|
6477
6485
|
ZodLazy: ie,
|
|
6478
|
-
ZodLiteral:
|
|
6479
|
-
ZodEnum:
|
|
6480
|
-
ZodNativeEnum:
|
|
6486
|
+
ZodLiteral: ne,
|
|
6487
|
+
ZodEnum: Z,
|
|
6488
|
+
ZodNativeEnum: ae,
|
|
6481
6489
|
ZodPromise: Y,
|
|
6482
6490
|
ZodEffects: I,
|
|
6483
6491
|
ZodTransformer: I,
|
|
@@ -6516,15 +6524,15 @@ var Wt = /* @__PURE__ */ Object.freeze({
|
|
|
6516
6524
|
nativeEnum: Lt,
|
|
6517
6525
|
never: yt,
|
|
6518
6526
|
null: _t,
|
|
6519
|
-
nullable:
|
|
6527
|
+
nullable: Bt,
|
|
6520
6528
|
number: Me,
|
|
6521
6529
|
object: wt,
|
|
6522
6530
|
oboolean: qt,
|
|
6523
6531
|
onumber: Ut,
|
|
6524
6532
|
optional: Dt,
|
|
6525
6533
|
ostring: $t,
|
|
6526
|
-
pipeline:
|
|
6527
|
-
preprocess:
|
|
6534
|
+
pipeline: Vt,
|
|
6535
|
+
preprocess: Zt,
|
|
6528
6536
|
promise: jt,
|
|
6529
6537
|
record: At,
|
|
6530
6538
|
set: Ot,
|
|
@@ -6594,7 +6602,7 @@ const Yt = [
|
|
|
6594
6602
|
path: "/analytic",
|
|
6595
6603
|
name: h["$connect-ANALYTIC"],
|
|
6596
6604
|
component: C(
|
|
6597
|
-
T(() => import("./Analytic-
|
|
6605
|
+
T(() => import("./Analytic-B6gawfKq.js"))
|
|
6598
6606
|
),
|
|
6599
6607
|
meta: {
|
|
6600
6608
|
validationManifest: {
|
|
@@ -6619,7 +6627,7 @@ const Yt = [
|
|
|
6619
6627
|
path: "/campaign/promotion",
|
|
6620
6628
|
name: h["$connect-CAMPAIGN_PROMOTION"],
|
|
6621
6629
|
component: C(
|
|
6622
|
-
T(() => import("./Promotion-
|
|
6630
|
+
T(() => import("./Promotion-D-z6DDla.js"))
|
|
6623
6631
|
),
|
|
6624
6632
|
meta: {
|
|
6625
6633
|
validationManifest: {
|
|
@@ -6640,7 +6648,7 @@ const Yt = [
|
|
|
6640
6648
|
path: "/campaign/voucher",
|
|
6641
6649
|
name: h["$connect-CAMPAIGN_VOUCHER"],
|
|
6642
6650
|
component: C(
|
|
6643
|
-
T(() => import("./Voucher-
|
|
6651
|
+
T(() => import("./Voucher-zTTTntky.js"))
|
|
6644
6652
|
),
|
|
6645
6653
|
meta: {
|
|
6646
6654
|
validationManifest: {
|
|
@@ -6658,7 +6666,7 @@ const Yt = [
|
|
|
6658
6666
|
name: h["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
6659
6667
|
component: C(
|
|
6660
6668
|
T(
|
|
6661
|
-
() => import("./Collections-
|
|
6669
|
+
() => import("./Collections-Q9dNhSNn.js")
|
|
6662
6670
|
)
|
|
6663
6671
|
),
|
|
6664
6672
|
meta: {
|
|
@@ -6678,7 +6686,7 @@ const Yt = [
|
|
|
6678
6686
|
path: "/campaign/broadcast",
|
|
6679
6687
|
name: h["$connect-CAMPAIGN_BROADCAST"],
|
|
6680
6688
|
component: C(
|
|
6681
|
-
T(() => import("./Broadcast-
|
|
6689
|
+
T(() => import("./Broadcast-CtITrwEL.js"))
|
|
6682
6690
|
),
|
|
6683
6691
|
meta: {
|
|
6684
6692
|
validationManifest: {
|
|
@@ -6715,37 +6723,37 @@ const Yt = [
|
|
|
6715
6723
|
{
|
|
6716
6724
|
path: "/program/tier",
|
|
6717
6725
|
name: h["$connect-PROGRAM_TIER"],
|
|
6718
|
-
component: () => import("./Tier-
|
|
6726
|
+
component: () => import("./Tier-CISq9Rg4.js")
|
|
6719
6727
|
},
|
|
6720
6728
|
{
|
|
6721
6729
|
path: "/program/title",
|
|
6722
6730
|
name: h["$connect-PROGRAM_TITLE"],
|
|
6723
|
-
component: () => import("./Title-
|
|
6731
|
+
component: () => import("./Title-ByEP9Gjs.js")
|
|
6724
6732
|
},
|
|
6725
6733
|
{
|
|
6726
6734
|
path: "/program/experience",
|
|
6727
6735
|
name: h["$connect-PROGRAM_EXPERIENCE"],
|
|
6728
|
-
component: () => import("./Experience-
|
|
6736
|
+
component: () => import("./Experience-CBFckRvf.js")
|
|
6729
6737
|
},
|
|
6730
6738
|
{
|
|
6731
6739
|
path: "/program/point",
|
|
6732
6740
|
name: h["$connect-PROGRAM_POINT"],
|
|
6733
|
-
component: () => import("./Point-
|
|
6741
|
+
component: () => import("./Point-4IquZrGL.js")
|
|
6734
6742
|
},
|
|
6735
6743
|
{
|
|
6736
6744
|
path: "/program/credit",
|
|
6737
6745
|
name: h["$connect-PROGRAM_CREDIT"],
|
|
6738
|
-
component: () => import("./Credit-
|
|
6746
|
+
component: () => import("./Credit-DfzIwziN.js")
|
|
6739
6747
|
},
|
|
6740
6748
|
{
|
|
6741
6749
|
path: "/program/game",
|
|
6742
6750
|
name: h["$connect-PROGRAM_GAME"],
|
|
6743
|
-
component: () => import("./Game-
|
|
6751
|
+
component: () => import("./Game-B9CUNCtq.js")
|
|
6744
6752
|
},
|
|
6745
6753
|
{
|
|
6746
6754
|
path: "/program/mission",
|
|
6747
6755
|
name: h["$connect-PROGRAM_MISSION"],
|
|
6748
|
-
component: () => import("./Mission-
|
|
6756
|
+
component: () => import("./Mission-DTrzmqgl.js")
|
|
6749
6757
|
}
|
|
6750
6758
|
]
|
|
6751
6759
|
},
|
|
@@ -6770,7 +6778,7 @@ const Yt = [
|
|
|
6770
6778
|
{
|
|
6771
6779
|
path: "/loyalty/member",
|
|
6772
6780
|
name: h["$connect-LOYALTY_MEMBER"],
|
|
6773
|
-
component: () => import("./Member-
|
|
6781
|
+
component: () => import("./Member-CXtvsQNE.js"),
|
|
6774
6782
|
redirect: {
|
|
6775
6783
|
name: h["$connect-LOYALTY_MEMBER_OVERVIEW"]
|
|
6776
6784
|
},
|
|
@@ -6783,24 +6791,24 @@ const Yt = [
|
|
|
6783
6791
|
{
|
|
6784
6792
|
path: "/loyalty/member/list",
|
|
6785
6793
|
name: h["$connect-LOYALTY_MEMBER_LIST"],
|
|
6786
|
-
component: () => import("./MemberList-
|
|
6794
|
+
component: () => import("./MemberList-poBwKTlI.js")
|
|
6787
6795
|
},
|
|
6788
6796
|
{
|
|
6789
6797
|
path: "/loyalty/member/transactions/:id",
|
|
6790
6798
|
name: h["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
|
|
6791
|
-
component: () => import("./MemberTransactions-
|
|
6799
|
+
component: () => import("./MemberTransactions-BYJGcT4u.js")
|
|
6792
6800
|
}
|
|
6793
6801
|
]
|
|
6794
6802
|
},
|
|
6795
6803
|
{
|
|
6796
6804
|
path: "/loyalty/segment",
|
|
6797
6805
|
name: h["$connect-LOYALTY_SEGMENT"],
|
|
6798
|
-
component: () => import("./Segment-
|
|
6806
|
+
component: () => import("./Segment-BI6GO8iX.js")
|
|
6799
6807
|
},
|
|
6800
6808
|
{
|
|
6801
6809
|
path: "/loyalty/card",
|
|
6802
6810
|
name: h["$connect-LOYALTY_CARD"],
|
|
6803
|
-
component: () => import("./Card-
|
|
6811
|
+
component: () => import("./Card-BEWdNGJk.js")
|
|
6804
6812
|
}
|
|
6805
6813
|
]
|
|
6806
6814
|
},
|
|
@@ -6824,7 +6832,7 @@ const Yt = [
|
|
|
6824
6832
|
{
|
|
6825
6833
|
path: "/referral",
|
|
6826
6834
|
name: h["$connect-REFERRAL"],
|
|
6827
|
-
component: () => import("./Index-
|
|
6835
|
+
component: () => import("./Index-CQQUQJOS.js"),
|
|
6828
6836
|
redirect: {
|
|
6829
6837
|
name: h["$connect-REFERRAL_OVERVIEW"]
|
|
6830
6838
|
},
|
|
@@ -6832,12 +6840,12 @@ const Yt = [
|
|
|
6832
6840
|
{
|
|
6833
6841
|
path: "/referral",
|
|
6834
6842
|
name: h["$connect-REFERRAL_OVERVIEW"],
|
|
6835
|
-
component: () => import("./Overview-
|
|
6843
|
+
component: () => import("./Overview-CW1vkdhy.js")
|
|
6836
6844
|
},
|
|
6837
6845
|
{
|
|
6838
6846
|
path: "/referral/record",
|
|
6839
6847
|
name: h["$connect-REFERRAL_RECORD"],
|
|
6840
|
-
component: () => import("./Record-
|
|
6848
|
+
component: () => import("./Record-DM3zFBc4.js")
|
|
6841
6849
|
}
|
|
6842
6850
|
]
|
|
6843
6851
|
}
|
|
@@ -6862,7 +6870,7 @@ const Yt = [
|
|
|
6862
6870
|
{
|
|
6863
6871
|
path: "/store",
|
|
6864
6872
|
name: h["$connect-STORE"],
|
|
6865
|
-
component: () => import("./Store-
|
|
6873
|
+
component: () => import("./Store-CT7VDudR.js")
|
|
6866
6874
|
},
|
|
6867
6875
|
{
|
|
6868
6876
|
path: "/store/rewards",
|
|
@@ -6871,12 +6879,12 @@ const Yt = [
|
|
|
6871
6879
|
{
|
|
6872
6880
|
path: "/store/rewards",
|
|
6873
6881
|
name: h["$connect-STORE_REWARDS"],
|
|
6874
|
-
component: () => import("./StoreRewards-
|
|
6882
|
+
component: () => import("./StoreRewards-DDyGOrSx.js")
|
|
6875
6883
|
},
|
|
6876
6884
|
{
|
|
6877
6885
|
path: "/store/rewards/:id/collections",
|
|
6878
6886
|
name: h["$connect-STORE_REWARD_COLLECTIONS"],
|
|
6879
|
-
component: () => import("./Collections-
|
|
6887
|
+
component: () => import("./Collections-Q9dNhSNn.js")
|
|
6880
6888
|
}
|
|
6881
6889
|
]
|
|
6882
6890
|
}
|
|
@@ -6901,7 +6909,7 @@ const Yt = [
|
|
|
6901
6909
|
{
|
|
6902
6910
|
path: "/transaction",
|
|
6903
6911
|
name: h["$connect-TRANSACTION"],
|
|
6904
|
-
component: () => import("./Transaction-
|
|
6912
|
+
component: () => import("./Transaction-CCYK-3X1.js")
|
|
6905
6913
|
}
|
|
6906
6914
|
]
|
|
6907
6915
|
},
|
|
@@ -6924,7 +6932,7 @@ const Yt = [
|
|
|
6924
6932
|
{
|
|
6925
6933
|
path: "/marketing",
|
|
6926
6934
|
name: h["$connect-MARKETING"],
|
|
6927
|
-
component: () => import("./Marketing-
|
|
6935
|
+
component: () => import("./Marketing-CQO5hw8D.js")
|
|
6928
6936
|
}
|
|
6929
6937
|
]
|
|
6930
6938
|
},
|
|
@@ -6947,7 +6955,7 @@ const Yt = [
|
|
|
6947
6955
|
{
|
|
6948
6956
|
path: "/reward",
|
|
6949
6957
|
name: h["$connect-REWARD_TEMPLATE"],
|
|
6950
|
-
component: () => import("./Reward-
|
|
6958
|
+
component: () => import("./Reward-DH5ibLPZ.js")
|
|
6951
6959
|
}
|
|
6952
6960
|
]
|
|
6953
6961
|
},
|
|
@@ -6970,7 +6978,7 @@ const Yt = [
|
|
|
6970
6978
|
{
|
|
6971
6979
|
path: "/audit-logs",
|
|
6972
6980
|
name: h["$connect-AUDIT_LOGS"],
|
|
6973
|
-
component: () => import("./AuditLogs-
|
|
6981
|
+
component: () => import("./AuditLogs-CNl7JmOE.js")
|
|
6974
6982
|
}
|
|
6975
6983
|
]
|
|
6976
6984
|
},
|
|
@@ -6993,7 +7001,7 @@ const Yt = [
|
|
|
6993
7001
|
{
|
|
6994
7002
|
path: "/setting",
|
|
6995
7003
|
name: h["$connect-SETTING"],
|
|
6996
|
-
component: () => import("./Setting
|
|
7004
|
+
component: () => import("./Setting-B6CcCapm.js")
|
|
6997
7005
|
}
|
|
6998
7006
|
]
|
|
6999
7007
|
},
|
|
@@ -7014,7 +7022,7 @@ const Yt = [
|
|
|
7014
7022
|
{
|
|
7015
7023
|
path: "/bin",
|
|
7016
7024
|
name: h["$connect-BIN"],
|
|
7017
|
-
component: () => import("./Bin-
|
|
7025
|
+
component: () => import("./Bin-8AxBcVVx.js")
|
|
7018
7026
|
}
|
|
7019
7027
|
]
|
|
7020
7028
|
},
|
|
@@ -7037,7 +7045,7 @@ const Yt = [
|
|
|
7037
7045
|
{
|
|
7038
7046
|
path: "/queue",
|
|
7039
7047
|
name: h["$connect-QUEUE"],
|
|
7040
|
-
component: () => import("./Queue-
|
|
7048
|
+
component: () => import("./Queue-BhX0AFF2.js")
|
|
7041
7049
|
}
|
|
7042
7050
|
]
|
|
7043
7051
|
}
|
|
@@ -7046,7 +7054,7 @@ const Yt = [
|
|
|
7046
7054
|
"zh-CN": $e,
|
|
7047
7055
|
"th-TH": qe,
|
|
7048
7056
|
"zh-Hant": Ye
|
|
7049
|
-
}, ei = T(() => import("./App-
|
|
7057
|
+
}, ei = T(() => import("./App-D5hrcZFI.js"));
|
|
7050
7058
|
export {
|
|
7051
7059
|
ei as F,
|
|
7052
7060
|
h as R,
|