@feedmepos/mf-connect 0.1.17-prod → 0.1.19-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Analytic-BqyLZNur.js → Analytic-D2C1umnp.js} +10 -10
- package/dist/{App-xAwJZpza.js → App-fVmEwY5I.js} +6 -6
- package/dist/{Bin-BQjJkGuP.js → Bin-6YCEpR9h.js} +7 -7
- package/dist/{Broadcast-CsqpDddY.js → Broadcast-RlU_LuTW.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxwAN17F.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DkWsHp_t.js} +6 -6
- package/dist/{Card-DZwFAE-F.js → Card-BKYRMdpM.js} +14 -14
- package/dist/{Collections-A8rRmUfN.js → Collections-DMFwhRvv.js} +5 -5
- package/dist/{Credit-BL2X9yMT.js → Credit-CaWgTZaC.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dn-r9wZd.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DRN88PHx.js} +27 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DaGTeUN-.js → EffectSheet.vue_vue_type_style_index_0_lang-BDTBmu_e.js} +6 -6
- package/dist/{Experience-DCbN6N9E.js → Experience-26IxQ5dN.js} +8 -8
- package/dist/{Game-DddtvCEJ.js → Game-DUZJczoK.js} +8 -8
- package/dist/{Index-C9EUv7pp.js → Index-sR1jaAFG.js} +9 -9
- package/dist/{Marketing-DoLr_IEG.js → Marketing-DwJsS6NE.js} +5 -5
- package/dist/{Member-lCjcOY2Z.js → Member-DnNQ7wE5.js} +4 -4
- package/dist/{MemberList-Cu7-Lm8y.js → MemberList-Dlt3KgbM.js} +23 -23
- package/dist/{MemberTransactions-COSnAD_z.js → MemberTransactions-Dp3wUYaR.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-GiBki_ko.js → MessageInput.vue_vue_type_script_setup_true_lang-32ztuxvE.js} +2 -2
- package/dist/{Mission-DglR57Ou.js → Mission-CIERTSAz.js} +8 -8
- package/dist/{Overview-BktdzAwX.js → Overview-Br-EIdxM.js} +16 -16
- package/dist/{Point-KKn4L_wC.js → Point-BV2zKyel.js} +8 -8
- package/dist/{Promotion-B5h4Xb71.js → Promotion-CeS8Bo2B.js} +9 -9
- package/dist/{Record-rbXLzAvp.js → Record-0rP8M9P0.js} +6 -6
- package/dist/{Reward-CZEzoRxF.js → Reward-D1S2FQOx.js} +14 -14
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dg3ozeZv.js → RewardGroup.vue_vue_type_script_setup_true_lang-Sb_zCGD5.js} +10 -10
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DWMf6u6Z.js → RuleGroup.vue_vue_type_script_setup_true_lang-2-9Zrb55.js} +12 -12
- package/dist/{Segment-C69Mu6F-.js → Segment-B8KsOfJx.js} +13 -13
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DYYCrl8B.js → SelectItems.vue_vue_type_script_setup_true_lang-unLXbsT8.js} +3 -3
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B0XjlPfK.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CknSF3Jk.js} +3 -3
- package/dist/{Setting-C1SbaZIc.js → Setting-CgEgZMwS.js} +8 -8
- package/dist/{Store-YjD_LPXc.js → Store-c5JWogcz.js} +631 -547
- package/dist/{StoreRewards-s6hXUgv8.js → StoreRewards-CAdO3F6P.js} +12 -12
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CnNWFZdc.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DNoCCm39.js} +17 -17
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DSFd2yjM.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CA4gudpw.js} +1 -1
- package/dist/{Tier-BSg4kxpn.js → Tier-D0JGIIAr.js} +18 -18
- package/dist/{Title-CdLP90JO.js → Title-o2okd22C.js} +18 -18
- package/dist/{Transaction-CgSf4FQX.js → Transaction-BWlyB-Mu.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BTRMxgh1.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BV8ix6Eg.js} +6 -6
- package/dist/{Voucher-0YHoHuHG.js → Voucher-BXJ0OJgO.js} +11 -11
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BTGxQagz.js → VoucherEditor.vue_vue_type_script_setup_true_lang-y_JUwaN4.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BZSqd073.js → ZodTextField.vue_vue_type_script_setup_true_lang-DHXrFBUp.js} +1 -1
- package/dist/{app-DOhO4ra9.js → app-CpwW0auX.js} +1 -1
- package/dist/{app-C__cbD1N.js → app-Cu5KPFA0.js} +512 -504
- package/dist/app.js +1 -1
- package/dist/{business-8I1D26_T.js → business-BMTnq9uH.js} +1 -1
- package/dist/{campaign-BuGy7AHk.js → campaign-9xbSpgHB.js} +2 -2
- package/dist/{campaign-B4xKt4yW.js → campaign-DJm-yHXq.js} +9 -9
- package/dist/{campaign.enum-CMENCckr.js → campaign.enum-Br4hUdtQ.js} +1 -1
- package/dist/{campaign.fn-DDPzPbnm.js → campaign.fn-D4T2Z8sp.js} +2 -2
- package/dist/{collectible.enum-b3IJyv6E.js → collectible.enum-euaCTwR2.js} +1 -1
- package/dist/{collection.fn-c0X_T8ss.js → collection.fn-CSGiaFAo.js} +2 -2
- package/dist/{dto-hPAxdEmT.js → dto-CPoJbktj.js} +4 -4
- package/dist/{effect-Dasu7Ksc.js → effect-rUOEmbpp.js} +1 -1
- package/dist/{email-addresses-COJczPW2.js → email-addresses-CGBlf7Ko.js} +1 -1
- package/dist/{export-DqK9q8Ej.js → export-ubQ50K03.js} +3 -3
- package/dist/{helper-Bd6ZAEpp.js → helper-DzsZLs8g.js} +1 -1
- package/dist/{index-Cdon8DN8.js → index-Bvh8pAS-.js} +1 -1
- package/dist/{index-CA4JVv89.js → index-CIeRjT-c.js} +6 -6
- package/dist/{index-Xj78DGtz.js → index-ChAStMkJ.js} +1 -1
- package/dist/{index-Cqa2XFNp.js → index-Cl_8xcPR.js} +3 -3
- package/dist/{index-BPumDElU.js → index-CnxIbHi3.js} +1 -1
- package/dist/{index-B08yXEFY.js → index-D1q6GUXX.js} +1 -1
- package/dist/{index-qxofrszo.js → index-DGE9NUaO.js} +1 -1
- package/dist/{index-DPKWImt-.js → index-DGtIJvIR.js} +3 -3
- package/dist/{index-DfAl07Lx.js → index-Dqctbbmb.js} +4 -4
- package/dist/{index-UvQXeeE6.js → index-Dx2zhs6l.js} +1 -1
- package/dist/{index-D2hDFZV2.js → index-c0lACtJe.js} +2 -2
- package/dist/{index-sZ18M5id.js → index-mr-MMQY8.js} +1 -1
- package/dist/{index.esm2017-CsAr3JEG.js → index.esm2017-PEPYfxlm.js} +1 -1
- package/dist/{loading-Bqd4nG6W.js → loading-DWc4Gfjd.js} +4 -4
- package/dist/{membership-Czd4bRP-.js → membership-BD2t2DiT.js} +3 -3
- package/dist/{money-COrkOgnq.js → money-DbKROF9F.js} +1 -1
- package/dist/{number-DtQDtQ-p.js → number-CWLiR7U2.js} +1 -1
- package/dist/{objectid-Cow6jwr8.js → objectid-V-1hdoZR.js} +10 -10
- package/dist/{reward-vIlNGzry.js → reward-rMTyTLxF.js} +1 -1
- package/dist/{rule-COUvHXP9.js → rule-CwF3QkAK.js} +3 -3
- package/dist/{rule-builder-BpjEybVx.js → rule-builder-CXFj7lxe.js} +1 -1
- package/dist/{template-C3QvDv4h.js → template-BRI4DTfQ.js} +4 -4
- package/dist/{trigger-C_I2ujtG.js → trigger-kc6jNKrV.js} +4 -4
- package/dist/{usePagination-wGpT-Zkw.js → usePagination-LpEuXb0S.js} +1 -1
- package/dist/{user-Z6mJcpdQ.js → user-C6OMHBXC.js} +1 -1
- package/dist/{vue-i18n-CaX-FPND.js → vue-i18n-BZkJ9V5-.js} +2 -2
- package/package.json +1 -1
|
@@ -1018,7 +1018,7 @@ const Pe = {
|
|
|
1018
1018
|
connect: Pe,
|
|
1019
1019
|
connectZod: Le,
|
|
1020
1020
|
connectZodCustom: je
|
|
1021
|
-
},
|
|
1021
|
+
}, Be = {
|
|
1022
1022
|
common: {
|
|
1023
1023
|
confirm: "确认",
|
|
1024
1024
|
cancel: "取消",
|
|
@@ -1885,7 +1885,7 @@ const Pe = {
|
|
|
1885
1885
|
description: "描述"
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
|
-
},
|
|
1888
|
+
}, Ze = {
|
|
1889
1889
|
errors: {
|
|
1890
1890
|
invalid_type: "预期输入为{{expected}},而输入为{{received}}",
|
|
1891
1891
|
invalid_type_received_undefined: "必填",
|
|
@@ -1997,7 +1997,7 @@ const Pe = {
|
|
|
1997
1997
|
map: "字典",
|
|
1998
1998
|
set: "集合"
|
|
1999
1999
|
}
|
|
2000
|
-
},
|
|
2000
|
+
}, Ve = {
|
|
2001
2001
|
timeframe: {
|
|
2002
2002
|
end_before_start: "结束日期必须晚于或等于开始日期"
|
|
2003
2003
|
},
|
|
@@ -2014,20 +2014,20 @@ const Pe = {
|
|
|
2014
2014
|
effect_required: "效果是必需的"
|
|
2015
2015
|
}
|
|
2016
2016
|
}, $e = {
|
|
2017
|
-
connect:
|
|
2018
|
-
connectZod:
|
|
2019
|
-
connectZodCustom:
|
|
2017
|
+
connect: Be,
|
|
2018
|
+
connectZod: Ze,
|
|
2019
|
+
connectZodCustom: Ve
|
|
2020
2020
|
}, Ue = {
|
|
2021
2021
|
campaign: {
|
|
2022
2022
|
common: {
|
|
2023
2023
|
createCampaign: "สร้างแคมเปญ",
|
|
2024
2024
|
search: "ค้นหา",
|
|
2025
|
-
location: "
|
|
2025
|
+
location: "สาขา : ",
|
|
2026
2026
|
noResults: "ไม่พบข้อมูล",
|
|
2027
2027
|
remove: {
|
|
2028
2028
|
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
|
|
2029
2029
|
removing: "กำลังลบ {name}",
|
|
2030
|
-
removed: "ลบ {name}
|
|
2030
|
+
removed: "ลบ {name} สำเร็จแล้ว"
|
|
2031
2031
|
},
|
|
2032
2032
|
actions: {
|
|
2033
2033
|
remove: "ลบ",
|
|
@@ -2035,11 +2035,11 @@ const Pe = {
|
|
|
2035
2035
|
share: "แชร์"
|
|
2036
2036
|
},
|
|
2037
2037
|
effect_required: "จำเป็นต้องกรอก",
|
|
2038
|
-
unsaved_changes: "
|
|
2038
|
+
unsaved_changes: "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกการแก้ไข",
|
|
2039
2039
|
unsaved_changes_confirm: "ยืนยัน",
|
|
2040
|
-
unsaved_changes_cancel: "
|
|
2040
|
+
unsaved_changes_cancel: "ยกเลิก",
|
|
2041
2041
|
save: "บันทึก",
|
|
2042
|
-
cancel: "
|
|
2042
|
+
cancel: "ยกเลิก",
|
|
2043
2043
|
summary: "สรุปแคมเปญ",
|
|
2044
2044
|
campaign_name: "ชื่อแคมเปญ",
|
|
2045
2045
|
campaign_period: "ระยะเวลาแคมเปญ",
|
|
@@ -2057,12 +2057,12 @@ const Pe = {
|
|
|
2057
2057
|
create: "สร้างแคมเปญ",
|
|
2058
2058
|
confirmDelete: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
|
|
2059
2059
|
removing: "กำลังลบ {name}",
|
|
2060
|
-
removed: "ลบ {name}
|
|
2060
|
+
removed: "ลบ {name} สำเร็จแล้ว",
|
|
2061
2061
|
updating: "กำลังอัปเดต Mission",
|
|
2062
2062
|
updated: "อัปเดต Mission สำเร็จ",
|
|
2063
2063
|
creating: "กำลังสร้าง Mission",
|
|
2064
2064
|
created: "สร้าง Mission สำเร็จ",
|
|
2065
|
-
location: "
|
|
2065
|
+
location: "สาขา : ",
|
|
2066
2066
|
createProgram: "สร้าง Mission ของคุณ",
|
|
2067
2067
|
description: "Mission สำหรับช่วยกระตุ้นให้ลูกค้าช้อปปิ้งและเพิ่มโอกาสในการใช้งานมากขึ้น",
|
|
2068
2068
|
createButton: "สร้าง Mission ",
|
|
@@ -2074,7 +2074,7 @@ const Pe = {
|
|
|
2074
2074
|
messageSent: "ส่งแล้ว {count} ครั้ง",
|
|
2075
2075
|
create: {
|
|
2076
2076
|
title: "สร้างแคมเปญบรอดแคสต์ของคุณ",
|
|
2077
|
-
description: "
|
|
2077
|
+
description: "การบรอดแคสต์ทำให้คุณสามารถส่งข้อความถึงลูกค้าทั้งหมด เพื่อแจ้งให้พวกเขาทราบเกี่ยวกับข้อเสนอใหม่ กิจกรรม หรือการอัปเดตที่สำคัญ",
|
|
2078
2078
|
button: "สร้างแคมเปญบรอดแคสต์"
|
|
2079
2079
|
},
|
|
2080
2080
|
update: {
|
|
@@ -2088,7 +2088,7 @@ const Pe = {
|
|
|
2088
2088
|
typeLabel: "{type} โปรโมชัน",
|
|
2089
2089
|
create: {
|
|
2090
2090
|
title: "สร้างแคมเปญโปรโมชัน",
|
|
2091
|
-
description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ
|
|
2091
|
+
description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในระยะเวลาที่จัดโปรโมชั่นเท่านั้น",
|
|
2092
2092
|
button: "สร้างแคมเปญโปรโมชัน"
|
|
2093
2093
|
},
|
|
2094
2094
|
update: {
|
|
@@ -2143,7 +2143,7 @@ const Pe = {
|
|
|
2143
2143
|
search: "ค้นหา",
|
|
2144
2144
|
location: "สาขา:",
|
|
2145
2145
|
createPromotionCampaign: "สร้างแคมเปญโปรโมชัน",
|
|
2146
|
-
description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ
|
|
2146
|
+
description: "ข้อเสนอพิเศษที่จำกัดระยะเวลาใช้งานเพื่อกระตุ้นให้ลูกค้ามีส่วนร่วมในการสั่งซื้อ แต่โปรโมชันทั่วไปจะมีไว้สำหรับลูกค้าที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในระยะเวลาที่จัดโปรโมชั่นเท่านั้น"
|
|
2147
2147
|
},
|
|
2148
2148
|
voucher: {
|
|
2149
2149
|
createCampaign: "สร้างแคมเปญ",
|
|
@@ -2165,9 +2165,9 @@ const Pe = {
|
|
|
2165
2165
|
createdSuccessfully: "สร้างบัตรกำนัลสำเร็จ",
|
|
2166
2166
|
title: "บัตรกำนัล",
|
|
2167
2167
|
search: "ค้นหา",
|
|
2168
|
-
location: "
|
|
2168
|
+
location: "สาขา",
|
|
2169
2169
|
createVoucherCampaign: "สร้างแคมเปญบัตรกำนัล",
|
|
2170
|
-
description: "
|
|
2170
|
+
description: "บัตรกำนัลดิจิทัลที่ผู้ใช้สามารถแลกรับส่วนลดในการสั่งซื้อในอนาคต โดยปกติแล้วผู้ใช้จะต้องรับและใช้บัตรกำนัลเพื่อรับส่วนลด"
|
|
2171
2171
|
},
|
|
2172
2172
|
navigation: {
|
|
2173
2173
|
analytic: "การวิเคราะห์",
|
|
@@ -2229,7 +2229,7 @@ const Pe = {
|
|
|
2229
2229
|
remove: "ลบ"
|
|
2230
2230
|
},
|
|
2231
2231
|
table: {
|
|
2232
|
-
name: "
|
|
2232
|
+
name: "ชื่อ",
|
|
2233
2233
|
total_customers: "จำนวนลูกค้าทั้งหมดในกลุ่มสมาชิก",
|
|
2234
2234
|
customer_percentage: "% ของลูกค้า",
|
|
2235
2235
|
actions: "การดำเนินการ"
|
|
@@ -2303,22 +2303,30 @@ const Pe = {
|
|
|
2303
2303
|
description: "มอบสิทธิประโยชน์และรางวัลสุดพิเศษให้กับสมาชิกของคุณด้วยการเข้าร่วมแคมเปญสมาชิก คุณสามารถเลือกสิ่งที่สมาชิกต้องการเสนอได้"
|
|
2304
2304
|
},
|
|
2305
2305
|
actions: {
|
|
2306
|
-
add: "
|
|
2307
|
-
season_setting: "
|
|
2306
|
+
add: "เพิ่มระดับสมาชิก",
|
|
2307
|
+
season_setting: "ฤดูกาลปรับระดับสมาชิก"
|
|
2308
2308
|
},
|
|
2309
2309
|
update: {
|
|
2310
2310
|
range_discontinuous: {
|
|
2311
|
-
previous:
|
|
2312
|
-
|
|
2311
|
+
previous: `ช่วงระดับสมาชิกไม่ต่อเนื่อง
|
|
2312
|
+
ช่วงก่อนหน้า: {name} [{from} - {to}]
|
|
2313
|
+
คุณต้องการอัปเดตช่วงก่อนหน้าเป็น [{from} - {newTo}] หรือไม่?`,
|
|
2314
|
+
next: `ช่วงระดับสมาชิกไม่ต่อเนื่อง
|
|
2315
|
+
ระดับถัดไป: {name} [{from} - {to}]
|
|
2316
|
+
คุณต้องการอัปเดตระดับถัดไป [{from} - {newTo}] หรือไม่?`
|
|
2313
2317
|
}
|
|
2314
2318
|
},
|
|
2315
2319
|
remove: {
|
|
2316
|
-
confirm: "
|
|
2317
|
-
title: "
|
|
2318
|
-
next_range: "
|
|
2320
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบระดับสมาชิกนี้?",
|
|
2321
|
+
title: "ลบระดับสมาชิก",
|
|
2322
|
+
next_range: "อัปเดตระดับสมาชิกถัดไป",
|
|
2319
2323
|
range_discontinuous: {
|
|
2320
|
-
previous:
|
|
2321
|
-
|
|
2324
|
+
previous: `ช่วงระดับสมาชิกไม่ต่อเนื่อง
|
|
2325
|
+
ช่วงก่อนหน้า: {name} [{from} - {to}]
|
|
2326
|
+
คุณต้องการอัปเดตช่วงก่อนหน้าเป็น [{from} - {newTo}] หรือไม่?`,
|
|
2327
|
+
next: `ช่วงระดับสมาชิกไม่ต่อเนื่อง
|
|
2328
|
+
ระดับถัดไป: {name} [{from} - {to}]
|
|
2329
|
+
คุณต้องการอัปเดตระดับถัดไป [{from} - {newTo}] หรือไม่?`
|
|
2322
2330
|
}
|
|
2323
2331
|
},
|
|
2324
2332
|
benefit: {
|
|
@@ -2331,24 +2339,24 @@ const Pe = {
|
|
|
2331
2339
|
}
|
|
2332
2340
|
},
|
|
2333
2341
|
title: {
|
|
2334
|
-
title: "
|
|
2342
|
+
title: "ป้ายชื่อ",
|
|
2335
2343
|
empty_state: {
|
|
2336
|
-
title: "
|
|
2344
|
+
title: "สร้างโปรแกรมป้ายชื่ื่อ",
|
|
2337
2345
|
description: "สร้างโปรแกรมป้ายชื่อ สร้างชื่อสมาชิกที่ไม่ซ้ำกันเพื่อปรับแต่งประสบการณ์ของสมาชิก ดึงดูดลูกค้าด้วยชื่อที่สนุกสนานเพื่อปรับปรุงการเล่นเกมโปรแกรมสะสมคะแนน"
|
|
2338
2346
|
},
|
|
2339
2347
|
actions: {
|
|
2340
|
-
add: "
|
|
2348
|
+
add: "เพิ่มป้ายชื่อ"
|
|
2341
2349
|
},
|
|
2342
2350
|
update: {
|
|
2343
|
-
creating: "
|
|
2344
|
-
updating: "
|
|
2345
|
-
success: "
|
|
2351
|
+
creating: "กำลังสร้างป้ายชื่อ",
|
|
2352
|
+
updating: "กำลังอัปเดตป้ายชื่อ",
|
|
2353
|
+
success: "ป้ายชื่อ {action} สำเร็จ"
|
|
2346
2354
|
},
|
|
2347
2355
|
remove: {
|
|
2348
|
-
confirm: "
|
|
2349
|
-
title: "
|
|
2350
|
-
deleting: "
|
|
2351
|
-
success: "
|
|
2356
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบป้ายชื่อนี้?",
|
|
2357
|
+
title: "ลบป้ายชื่อ",
|
|
2358
|
+
deleting: "กำลังลบป้ายชื่อเรื่อง",
|
|
2359
|
+
success: "ลบป้ายชื่อสำเร็จ"
|
|
2352
2360
|
},
|
|
2353
2361
|
benefit: {
|
|
2354
2362
|
add: "เพิ่มสิทธิประโยชน์",
|
|
@@ -2366,29 +2374,29 @@ const Pe = {
|
|
|
2366
2374
|
},
|
|
2367
2375
|
table: {
|
|
2368
2376
|
title: "ป้ายชื่อ",
|
|
2369
|
-
program_title: "
|
|
2377
|
+
program_title: "ป้ายชื่อโปรแกรม",
|
|
2370
2378
|
status: "สถานะ",
|
|
2371
|
-
type: "
|
|
2379
|
+
type: "ประเภท",
|
|
2372
2380
|
summary: "สรุป",
|
|
2373
2381
|
actions: "การดำเนินการ"
|
|
2374
2382
|
},
|
|
2375
2383
|
search: "ค้นหา",
|
|
2376
|
-
location: "สาขา:
|
|
2384
|
+
location: "สาขา:",
|
|
2377
2385
|
addBenefit: "เพิ่มสิทธิประโยชน์",
|
|
2378
2386
|
noDescription: "ไม่มีคำอธิบาย",
|
|
2379
2387
|
descriptionLimit: "{name} คำอธิบายไม่ควรเกิน 200 ตัวอักษร",
|
|
2380
2388
|
availability: "ความพร้อมใช้งาน",
|
|
2381
|
-
internalOnly: "
|
|
2389
|
+
internalOnly: "ใช้ภายในเท่านั้น",
|
|
2382
2390
|
notShown: "{name} จะไม่แสดงให้ลูกค้าเห็น",
|
|
2383
|
-
submit: "
|
|
2384
|
-
cancel: "
|
|
2385
|
-
imageLabel: "รูปภาพ {
|
|
2391
|
+
submit: "ยืนยัน",
|
|
2392
|
+
cancel: "ยกเลิก",
|
|
2393
|
+
imageLabel: "รูปภาพ {ชื่อ}"
|
|
2386
2394
|
},
|
|
2387
2395
|
mission: {
|
|
2388
2396
|
title: "Mission",
|
|
2389
2397
|
empty_state: {
|
|
2390
|
-
title: "สร้างโปรแกรมMissionของคุณ",
|
|
2391
|
-
description: "Missionเป็นโปรแกรมที่ช่วยให้ลูกค้าสามารถทำงานให้เสร็จสิ้นเพื่อรับรางวัลได้"
|
|
2398
|
+
title: "สร้างโปรแกรม Mission ของคุณ",
|
|
2399
|
+
description: "Mission เป็นโปรแกรมที่ช่วยให้ลูกค้าสามารถทำงานให้เสร็จสิ้นเพื่อรับรางวัลได้"
|
|
2392
2400
|
}
|
|
2393
2401
|
}
|
|
2394
2402
|
},
|
|
@@ -2397,14 +2405,14 @@ const Pe = {
|
|
|
2397
2405
|
addGroup: "เพิ่มกลุ่ม",
|
|
2398
2406
|
search: "ค้นหา",
|
|
2399
2407
|
summary: {
|
|
2400
|
-
title: "
|
|
2401
|
-
totalCampaign: "
|
|
2402
|
-
totalProgram: "
|
|
2408
|
+
title: "สรุปภาพรวมของ Connect",
|
|
2409
|
+
totalCampaign: "แคมเปญทั้งหมด",
|
|
2410
|
+
totalProgram: "โปรแกรมสมาชิกทั้งหมด",
|
|
2403
2411
|
totalMember: "สมาชิกทั้งหมด"
|
|
2404
2412
|
},
|
|
2405
2413
|
emptyState: {
|
|
2406
2414
|
title: "สร้างกลุ่มแคมเปญเพื่อติดตามประสิทธิภาพ",
|
|
2407
|
-
description: "
|
|
2415
|
+
description: "เริ่มจัดระเบียบแคมเปญและโปรโมชั่นของคุณโดยการสร้างกลุ่ม กลุ่มช่วยให้คุณสามารถรวมตัวชี้วัดประสิทธิภาพจากบัตรกำนัล โปรโมชั่น หรือรางวัลอื่น ๆ ได้หลายรายการ",
|
|
2408
2416
|
action: "สร้างกลุ่ม"
|
|
2409
2417
|
}
|
|
2410
2418
|
},
|
|
@@ -2413,7 +2421,7 @@ const Pe = {
|
|
|
2413
2421
|
create: "สร้างสื่อการตลาด",
|
|
2414
2422
|
search: "ค้นหา",
|
|
2415
2423
|
table: {
|
|
2416
|
-
name: "
|
|
2424
|
+
name: "ชื่อ",
|
|
2417
2425
|
campaign: "แคมเปญ",
|
|
2418
2426
|
createdDate: "วันที่สร้าง",
|
|
2419
2427
|
actions: "การดำเนินการ"
|
|
@@ -2421,12 +2429,12 @@ const Pe = {
|
|
|
2421
2429
|
delete: {
|
|
2422
2430
|
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}?",
|
|
2423
2431
|
removing: "กำลังลบ {name}",
|
|
2424
|
-
success: "ลบ {name}
|
|
2432
|
+
success: "ลบ {name} เรียบร้อย"
|
|
2425
2433
|
},
|
|
2426
2434
|
emptyState: {
|
|
2427
2435
|
title: "สร้างสื่อการตลาด",
|
|
2428
2436
|
description: "เพิ่มความสามารถทางการตลาดของคุณอย่างง่ายดายด้วยเครื่องมือที่ขับเคลื่อนด้วย AI ของเรา สร้างภาพที่น่าทึ่งและคำบรรยายที่น่าดึงดูดสำหรับแพลตฟอร์มที่คุณต้องการ",
|
|
2429
|
-
action: "
|
|
2437
|
+
action: "เพิ่มเนื้อหา"
|
|
2430
2438
|
},
|
|
2431
2439
|
noResults: "ไม่พบข้อมูล"
|
|
2432
2440
|
},
|
|
@@ -2434,7 +2442,7 @@ const Pe = {
|
|
|
2434
2442
|
title: "การตั้งค่า",
|
|
2435
2443
|
basicInfo: {
|
|
2436
2444
|
title: "ข้อมูลพื้นฐาน",
|
|
2437
|
-
membershipTitle: "
|
|
2445
|
+
membershipTitle: "ป้ายชื่อสมาชิก",
|
|
2438
2446
|
memberAppUrl: "URL ของแอปสมาชิก"
|
|
2439
2447
|
},
|
|
2440
2448
|
counterApp: {
|
|
@@ -2442,7 +2450,7 @@ const Pe = {
|
|
|
2442
2450
|
linkDevice: "เชื่อมโยงอุปกรณ์",
|
|
2443
2451
|
device: {
|
|
2444
2452
|
activationDate: "วันที่เปิดใช้งาน:",
|
|
2445
|
-
linkedLocation: "
|
|
2453
|
+
linkedLocation: "สาขาที่เชื่อมต่อ:"
|
|
2446
2454
|
}
|
|
2447
2455
|
},
|
|
2448
2456
|
advertisement: {
|
|
@@ -2465,19 +2473,19 @@ const Pe = {
|
|
|
2465
2473
|
description: "อนุญาตให้สมาชิกผูกบัตรผ่านแอปสมาชิก"
|
|
2466
2474
|
},
|
|
2467
2475
|
location: {
|
|
2468
|
-
title: "
|
|
2476
|
+
title: "สาขาที่เปิดใช้งาน",
|
|
2469
2477
|
selectLabel: "เลือกร้านอาหาร"
|
|
2470
2478
|
},
|
|
2471
2479
|
summary: {
|
|
2472
|
-
title: "
|
|
2473
|
-
name: "
|
|
2480
|
+
title: "สรุปการตั้งค่าระบบสมาชิก",
|
|
2481
|
+
name: "ชื่อ",
|
|
2474
2482
|
advertisement: "โฆษณา",
|
|
2475
2483
|
noAds: "ไม่มีโฆษณา",
|
|
2476
2484
|
freeCredit: "เครดิตฟรีเป็นส่วนลด",
|
|
2477
2485
|
enabled: "เปิดใช้งานแล้ว",
|
|
2478
2486
|
disabled: "ไม่สามารถใช้งานได้",
|
|
2479
|
-
locations: "
|
|
2480
|
-
allLocations: "
|
|
2487
|
+
locations: "สาขาที่เปิดใช้งาน",
|
|
2488
|
+
allLocations: "สาขาทั้งหมด"
|
|
2481
2489
|
},
|
|
2482
2490
|
action: {
|
|
2483
2491
|
update: "อัปเดต"
|
|
@@ -2487,29 +2495,29 @@ const Pe = {
|
|
|
2487
2495
|
title: "การทำธุรกรรม",
|
|
2488
2496
|
tabs: {
|
|
2489
2497
|
collection: "คอลเลคชั่น",
|
|
2490
|
-
store: "
|
|
2498
|
+
store: "ร้านค้าสมาชิก"
|
|
2491
2499
|
}
|
|
2492
2500
|
},
|
|
2493
2501
|
store: {
|
|
2494
|
-
title: "
|
|
2502
|
+
title: "ร้านค้าสมาชิก",
|
|
2495
2503
|
setting: {
|
|
2496
|
-
title: "
|
|
2504
|
+
title: "การตั้งค่าร้านค้าสมาชิก",
|
|
2497
2505
|
update: {
|
|
2498
|
-
message: "
|
|
2499
|
-
success: "
|
|
2506
|
+
message: "กำลังปรับปรุงการตั้งค่าร้านค้าสมาชิก",
|
|
2507
|
+
success: "อัปเดตการตั้งค่าร้านค้าสมาชิกเรียบร้อย"
|
|
2500
2508
|
}
|
|
2501
2509
|
},
|
|
2502
2510
|
actions: {
|
|
2503
|
-
setting: "
|
|
2511
|
+
setting: "การตั้งค่าร้านค้าสมาชิก",
|
|
2504
2512
|
manageReward: "จัดการรางวัล",
|
|
2505
2513
|
addCategory: "เพิ่มหมวดหมู่",
|
|
2506
|
-
addBundle: "
|
|
2514
|
+
addBundle: "เพิ่ม Bundle"
|
|
2507
2515
|
},
|
|
2508
2516
|
category: {
|
|
2509
2517
|
setup: {
|
|
2510
|
-
title: "
|
|
2518
|
+
title: "โปรดตั้งค่าการตั้งค่าร้านค้าสมาชิกของคุณก่อนที่จะเพิ่มหมวดหมู่",
|
|
2511
2519
|
action: "อัปเดตตอนนี้",
|
|
2512
|
-
button: "
|
|
2520
|
+
button: "อัพเดตการตั้งค่าร้านค้าสมาชิก"
|
|
2513
2521
|
},
|
|
2514
2522
|
add: "เพิ่มหมวดหมู่",
|
|
2515
2523
|
edit: "แก้ไขหมวดหมู่",
|
|
@@ -2522,9 +2530,9 @@ const Pe = {
|
|
|
2522
2530
|
creating: "กำลังสร้างหมวดหมู่",
|
|
2523
2531
|
updating: "กำลังอัปเดตหมวดหมู่",
|
|
2524
2532
|
success: {
|
|
2525
|
-
deleted: "
|
|
2526
|
-
created: "
|
|
2527
|
-
updated: "
|
|
2533
|
+
deleted: "ลบหมวดหมู่เรียบร้อย",
|
|
2534
|
+
created: "สร้างหมวดหมู่เรียบร้อย",
|
|
2535
|
+
updated: "อัปเดตหมวดหมู่เรียบร้อย"
|
|
2528
2536
|
}
|
|
2529
2537
|
}
|
|
2530
2538
|
},
|
|
@@ -2533,38 +2541,38 @@ const Pe = {
|
|
|
2533
2541
|
description: "เพิ่มรายการที่คุณต้องการให้ผู้ใช้ใช้จ่ายและมาที่นี่ อาจเป็นได้ทั้งบัตรกำนัล สิทธิประโยชน์ ประสบการณ์ และอื่นๆ อีกมากมาย!",
|
|
2534
2542
|
delete: {
|
|
2535
2543
|
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบชุดข้อมูลนี้",
|
|
2536
|
-
title: "
|
|
2544
|
+
title: "ลบ Bundle"
|
|
2537
2545
|
},
|
|
2538
2546
|
update: {
|
|
2539
|
-
error: "
|
|
2540
|
-
deleting: "
|
|
2541
|
-
creating: "
|
|
2542
|
-
updating: "
|
|
2547
|
+
error: "เกิดข้อผิดพลาดบางอย่าง",
|
|
2548
|
+
deleting: "กำลังลบ Bundle",
|
|
2549
|
+
creating: "กำลังสร้าง Bundle",
|
|
2550
|
+
updating: "กำลังอัปเดต Bundle",
|
|
2543
2551
|
success: {
|
|
2544
|
-
deleted: "
|
|
2545
|
-
created: "
|
|
2546
|
-
updated: "
|
|
2552
|
+
deleted: "ลบ Bundle เรียบร้อย",
|
|
2553
|
+
created: "สร้างข้อมูล Bundle เรียบร้อย",
|
|
2554
|
+
updated: "อัปเดตข้อมูล Bundle เรียบร้อย"
|
|
2547
2555
|
}
|
|
2548
2556
|
},
|
|
2549
2557
|
edit: {
|
|
2550
|
-
title: "
|
|
2551
|
-
create: "
|
|
2558
|
+
title: "แก้ไข Bundle",
|
|
2559
|
+
create: "สร้าง Bundle เรียบร้อย",
|
|
2552
2560
|
basicInformation: "ข้อมูลพื้นฐาน",
|
|
2553
|
-
bundleName: "
|
|
2554
|
-
bundleImage: "
|
|
2555
|
-
bundlePrice: "
|
|
2556
|
-
bundleValue: "
|
|
2561
|
+
bundleName: "ชื่อ Bundle",
|
|
2562
|
+
bundleImage: "รูปภาพ Bundle",
|
|
2563
|
+
bundlePrice: "ราคา Bundle",
|
|
2564
|
+
bundleValue: "มูลค่า Bundle",
|
|
2557
2565
|
originalPrice: "ราคาเดิม",
|
|
2558
2566
|
originalPriceHelper: "ปล่อยว่างไว้หรือตั้งค่าเป็น 0 เพื่อปิดใช้งานราคาเดิม",
|
|
2559
2567
|
pointNeeded: "คะแนนที่ต้องการ",
|
|
2560
2568
|
subscriptionSettings: "การตั้งค่าการสมัครสมาชิก",
|
|
2561
2569
|
stripePriceId: "รหัสราคาแถบข้อมูล",
|
|
2562
2570
|
subscriptionValidity: "อายุการใช้งานการสมัครสมาชิก (วัน)",
|
|
2563
|
-
submit: "
|
|
2564
|
-
cancel: "
|
|
2571
|
+
submit: "ยืนยัน",
|
|
2572
|
+
cancel: "ยกเลิก",
|
|
2565
2573
|
advanceSetting: "การตั้งค่าขั้นสูง",
|
|
2566
2574
|
credit: "เครดิต",
|
|
2567
|
-
normalCredit: "
|
|
2575
|
+
normalCredit: "เครดิตทั่วไป",
|
|
2568
2576
|
freeCredit: "เครดิตฟรี",
|
|
2569
2577
|
taxes: "ภาษี",
|
|
2570
2578
|
taxCharge: {
|
|
@@ -2573,14 +2581,14 @@ const Pe = {
|
|
|
2573
2581
|
exclusive: "ไม่รวม"
|
|
2574
2582
|
},
|
|
2575
2583
|
totalPrice: "ราคาทั้งหมด",
|
|
2576
|
-
internalBundle: "
|
|
2577
|
-
internalBundleDescription: "
|
|
2584
|
+
internalBundle: "Bundle เฉพาะภายใน",
|
|
2585
|
+
internalBundleDescription: "Bundle จะไม่แสดงในแอปสมาชิก FeedMe",
|
|
2578
2586
|
hideInPos: "ซ่อนใน POS",
|
|
2579
|
-
hideInPosDescription: "Bundle
|
|
2587
|
+
hideInPosDescription: "Bundle จะไม่แสดงใน FeedMe POS",
|
|
2580
2588
|
maxPerUser: "การซื้อสูงสุดต่อผู้ใช้",
|
|
2581
2589
|
bundleReward: {
|
|
2582
|
-
title: "
|
|
2583
|
-
description: "
|
|
2590
|
+
title: "รางวัลแบบ Bundle",
|
|
2591
|
+
description: "แจ้งให้สมาชิกทราบถึงสิทธิประโยชน์ที่พวกเขาจะได้รับจากแพ็กเกจนี้",
|
|
2584
2592
|
table: {
|
|
2585
2593
|
title: "ชื่อรางวัล",
|
|
2586
2594
|
type: "ประเภทรางวัล",
|
|
@@ -2591,7 +2599,7 @@ const Pe = {
|
|
|
2591
2599
|
}
|
|
2592
2600
|
},
|
|
2593
2601
|
storeRewards: {
|
|
2594
|
-
title: "
|
|
2602
|
+
title: "ร้านค้าสะสมแต้ม",
|
|
2595
2603
|
remove: {
|
|
2596
2604
|
message: "คุณไม่สามารถลบชื่อได้ที่นี่ โปรดลบออกที่ส่วน โปรแกรม > ชื่อ",
|
|
2597
2605
|
title: "ลบรางวัล",
|
|
@@ -2612,21 +2620,21 @@ const Pe = {
|
|
|
2612
2620
|
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบรางวัลนี้?",
|
|
2613
2621
|
title: "ลบรางวัล",
|
|
2614
2622
|
message: "กำลังลบรางวัล",
|
|
2615
|
-
success: "
|
|
2623
|
+
success: "ลบรางวัลสำเร็จ"
|
|
2616
2624
|
},
|
|
2617
2625
|
update: {
|
|
2618
2626
|
message: "กำลังอัปเดตรางวัล",
|
|
2619
|
-
success: "
|
|
2627
|
+
success: "อัปเดตรางวัลเรียบร้อย"
|
|
2620
2628
|
},
|
|
2621
2629
|
empty: {
|
|
2622
|
-
title: "
|
|
2623
|
-
description: "
|
|
2630
|
+
title: "สร้างรางวัล",
|
|
2631
|
+
description: "สร้างรางวัลสำหรับลูกค้าของคุณเพื่อแลก Bundle",
|
|
2624
2632
|
action: "สร้างรางวัล"
|
|
2625
2633
|
},
|
|
2626
2634
|
create: "สร้างรางวัล",
|
|
2627
2635
|
table: {
|
|
2628
|
-
name: "
|
|
2629
|
-
type: "
|
|
2636
|
+
name: "ชื่อ",
|
|
2637
|
+
type: "ประเภท",
|
|
2630
2638
|
validity: "ความถูกต้อง",
|
|
2631
2639
|
used: "ใช้แล้ว",
|
|
2632
2640
|
actions: "การดำเนินการ"
|
|
@@ -2752,33 +2760,33 @@ const Pe = {
|
|
|
2752
2760
|
},
|
|
2753
2761
|
campaign: {
|
|
2754
2762
|
rule_required: "ต้องมีกฎเกณฑ์เมื่อประเภทตัวกระตุ้นคือ '{type}'",
|
|
2755
|
-
earning_amount_exceed: "จำนวนเงินที่ได้รับต้องน้อยกว่า {max} (
|
|
2763
|
+
earning_amount_exceed: "จำนวนเงินที่ได้รับต้องน้อยกว่า {max} (จำนวนเงินที่ได้รับสูงสุดของภารกิจ)",
|
|
2756
2764
|
credit_validity_required: "แคมเปญเครดิตต้องมีตัวเลือกอายุการใช้งาน (ต้องเป็นเครดิตฟรี)",
|
|
2757
|
-
mission_first_receive: "แคมเปญMissionต้องติดตามการรับก่อน",
|
|
2765
|
+
mission_first_receive: "แคมเปญ Mission ต้องติดตามการรับก่อน",
|
|
2758
2766
|
schedule_period_required: "ตัวกระตุ้นกำหนดการต้องตั้งค่าช่วงเวลาที่ใช้งานอยู่",
|
|
2759
2767
|
active_period_invalid: "กฎช่วงเวลาที่ใช้งานอยู่ไม่ถูกต้อง",
|
|
2760
2768
|
fixed_earning_required: "แคมเปญที่ไม่สามารถเรียกเก็บเงินได้ครบต้องมีตัวเลือกการรับรายได้คงที่",
|
|
2761
|
-
reward_threshold_range: "
|
|
2769
|
+
reward_threshold_range: "เกณฑ์รางวัลจะต้องอยู่ภายในจุดสิ้นสุดภารกิจ",
|
|
2762
2770
|
reward_threshold_unique: "เกณฑ์รางวัลจะต้องไม่ซ้ำกัน",
|
|
2763
2771
|
effect_required: "จำเป็นต้องมีเอฟเฟกต์"
|
|
2764
2772
|
}
|
|
2765
2773
|
},
|
|
2766
2774
|
prompt: {
|
|
2767
2775
|
confirm: "ยืนยัน",
|
|
2768
|
-
cancel: "
|
|
2776
|
+
cancel: "ยกเลิก"
|
|
2769
2777
|
},
|
|
2770
2778
|
editTierSheet: {
|
|
2771
2779
|
add: "เพิ่ม",
|
|
2772
|
-
create: "
|
|
2780
|
+
create: "ระดับสมาชิก",
|
|
2773
2781
|
basicInformation: "ข้อมูลพื้นฐาน",
|
|
2774
|
-
tierName: "
|
|
2775
|
-
tierImage: "
|
|
2782
|
+
tierName: "ชื่อระดับสมาชิก",
|
|
2783
|
+
tierImage: "รูปภาพระดับสมาชิก",
|
|
2776
2784
|
experienceThreshold: "เกณฑ์ประสบการณ์",
|
|
2777
|
-
minExperience: "
|
|
2778
|
-
maxExperience: "
|
|
2785
|
+
minExperience: "ค่าประสบการณ์ขั้นต่ำ",
|
|
2786
|
+
maxExperience: "ค่าประสบการณ์สูงสุด",
|
|
2779
2787
|
actions: "การดำเนินการ",
|
|
2780
|
-
submit: "
|
|
2781
|
-
cancel: "
|
|
2788
|
+
submit: "ยืนยัน",
|
|
2789
|
+
cancel: "ยกเลิก"
|
|
2782
2790
|
}
|
|
2783
2791
|
}, qe = {
|
|
2784
2792
|
connect: Ue
|
|
@@ -3787,44 +3795,44 @@ const Pe = {
|
|
|
3787
3795
|
connectZodCustom: We
|
|
3788
3796
|
};
|
|
3789
3797
|
var b;
|
|
3790
|
-
(function(
|
|
3791
|
-
|
|
3792
|
-
function e(
|
|
3798
|
+
(function(n) {
|
|
3799
|
+
n.assertEqual = (i) => i;
|
|
3800
|
+
function e(i) {
|
|
3793
3801
|
}
|
|
3794
|
-
|
|
3795
|
-
function t(
|
|
3802
|
+
n.assertIs = e;
|
|
3803
|
+
function t(i) {
|
|
3796
3804
|
throw new Error();
|
|
3797
3805
|
}
|
|
3798
|
-
|
|
3806
|
+
n.assertNever = t, n.arrayToEnum = (i) => {
|
|
3799
3807
|
const r = {};
|
|
3800
|
-
for (const s of
|
|
3808
|
+
for (const s of i)
|
|
3801
3809
|
r[s] = s;
|
|
3802
3810
|
return r;
|
|
3803
|
-
},
|
|
3804
|
-
const r =
|
|
3811
|
+
}, n.getValidEnumValues = (i) => {
|
|
3812
|
+
const r = n.objectKeys(i).filter((o) => typeof i[i[o]] != "number"), s = {};
|
|
3805
3813
|
for (const o of r)
|
|
3806
|
-
s[o] =
|
|
3807
|
-
return
|
|
3808
|
-
},
|
|
3809
|
-
return
|
|
3810
|
-
}),
|
|
3814
|
+
s[o] = i[o];
|
|
3815
|
+
return n.objectValues(s);
|
|
3816
|
+
}, n.objectValues = (i) => n.objectKeys(i).map(function(r) {
|
|
3817
|
+
return i[r];
|
|
3818
|
+
}), n.objectKeys = typeof Object.keys == "function" ? (i) => Object.keys(i) : (i) => {
|
|
3811
3819
|
const r = [];
|
|
3812
|
-
for (const s in
|
|
3813
|
-
Object.prototype.hasOwnProperty.call(
|
|
3820
|
+
for (const s in i)
|
|
3821
|
+
Object.prototype.hasOwnProperty.call(i, s) && r.push(s);
|
|
3814
3822
|
return r;
|
|
3815
|
-
},
|
|
3816
|
-
for (const s of
|
|
3823
|
+
}, n.find = (i, r) => {
|
|
3824
|
+
for (const s of i)
|
|
3817
3825
|
if (r(s))
|
|
3818
3826
|
return s;
|
|
3819
|
-
},
|
|
3820
|
-
function a(
|
|
3821
|
-
return
|
|
3827
|
+
}, n.isInteger = typeof Number.isInteger == "function" ? (i) => Number.isInteger(i) : (i) => typeof i == "number" && isFinite(i) && Math.floor(i) === i;
|
|
3828
|
+
function a(i, r = " | ") {
|
|
3829
|
+
return i.map((s) => typeof s == "string" ? `'${s}'` : s).join(r);
|
|
3822
3830
|
}
|
|
3823
|
-
|
|
3831
|
+
n.joinValues = a, n.jsonStringifyReplacer = (i, r) => typeof r == "bigint" ? r.toString() : r;
|
|
3824
3832
|
})(b || (b = {}));
|
|
3825
3833
|
var be;
|
|
3826
|
-
(function(
|
|
3827
|
-
|
|
3834
|
+
(function(n) {
|
|
3835
|
+
n.mergeShapes = (e, t) => ({
|
|
3828
3836
|
...e,
|
|
3829
3837
|
...t
|
|
3830
3838
|
// second overwrites first
|
|
@@ -3851,14 +3859,14 @@ const l = b.arrayToEnum([
|
|
|
3851
3859
|
"never",
|
|
3852
3860
|
"map",
|
|
3853
3861
|
"set"
|
|
3854
|
-
]), j = (
|
|
3855
|
-
switch (typeof
|
|
3862
|
+
]), j = (n) => {
|
|
3863
|
+
switch (typeof n) {
|
|
3856
3864
|
case "undefined":
|
|
3857
3865
|
return l.undefined;
|
|
3858
3866
|
case "string":
|
|
3859
3867
|
return l.string;
|
|
3860
3868
|
case "number":
|
|
3861
|
-
return isNaN(
|
|
3869
|
+
return isNaN(n) ? l.nan : l.number;
|
|
3862
3870
|
case "boolean":
|
|
3863
3871
|
return l.boolean;
|
|
3864
3872
|
case "function":
|
|
@@ -3868,7 +3876,7 @@ const l = b.arrayToEnum([
|
|
|
3868
3876
|
case "symbol":
|
|
3869
3877
|
return l.symbol;
|
|
3870
3878
|
case "object":
|
|
3871
|
-
return Array.isArray(
|
|
3879
|
+
return Array.isArray(n) ? l.array : n === null ? l.null : n.then && typeof n.then == "function" && n.catch && typeof n.catch == "function" ? l.promise : typeof Map < "u" && n instanceof Map ? l.map : typeof Set < "u" && n instanceof Set ? l.set : typeof Date < "u" && n instanceof Date ? l.date : l.object;
|
|
3872
3880
|
default:
|
|
3873
3881
|
return l.unknown;
|
|
3874
3882
|
}
|
|
@@ -3889,7 +3897,7 @@ const l = b.arrayToEnum([
|
|
|
3889
3897
|
"invalid_intersection_types",
|
|
3890
3898
|
"not_multiple_of",
|
|
3891
3899
|
"not_finite"
|
|
3892
|
-
]), Fe = (
|
|
3900
|
+
]), Fe = (n) => JSON.stringify(n, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
3893
3901
|
class E extends Error {
|
|
3894
3902
|
constructor(e) {
|
|
3895
3903
|
super(), this.issues = [], this.addIssue = (a) => {
|
|
@@ -3906,14 +3914,14 @@ class E extends Error {
|
|
|
3906
3914
|
format(e) {
|
|
3907
3915
|
const t = e || function(r) {
|
|
3908
3916
|
return r.message;
|
|
3909
|
-
}, a = { _errors: [] },
|
|
3917
|
+
}, a = { _errors: [] }, i = (r) => {
|
|
3910
3918
|
for (const s of r.issues)
|
|
3911
3919
|
if (s.code === "invalid_union")
|
|
3912
|
-
s.unionErrors.map(
|
|
3920
|
+
s.unionErrors.map(i);
|
|
3913
3921
|
else if (s.code === "invalid_return_type")
|
|
3914
|
-
|
|
3922
|
+
i(s.returnTypeError);
|
|
3915
3923
|
else if (s.code === "invalid_arguments")
|
|
3916
|
-
|
|
3924
|
+
i(s.argumentsError);
|
|
3917
3925
|
else if (s.path.length === 0)
|
|
3918
3926
|
a._errors.push(t(s));
|
|
3919
3927
|
else {
|
|
@@ -3924,7 +3932,7 @@ class E extends Error {
|
|
|
3924
3932
|
}
|
|
3925
3933
|
}
|
|
3926
3934
|
};
|
|
3927
|
-
return
|
|
3935
|
+
return i(this), a;
|
|
3928
3936
|
}
|
|
3929
3937
|
toString() {
|
|
3930
3938
|
return this.message;
|
|
@@ -3937,35 +3945,35 @@ class E extends Error {
|
|
|
3937
3945
|
}
|
|
3938
3946
|
flatten(e = (t) => t.message) {
|
|
3939
3947
|
const t = {}, a = [];
|
|
3940
|
-
for (const
|
|
3941
|
-
|
|
3948
|
+
for (const i of this.issues)
|
|
3949
|
+
i.path.length > 0 ? (t[i.path[0]] = t[i.path[0]] || [], t[i.path[0]].push(e(i))) : a.push(e(i));
|
|
3942
3950
|
return { formErrors: a, fieldErrors: t };
|
|
3943
3951
|
}
|
|
3944
3952
|
get formErrors() {
|
|
3945
3953
|
return this.flatten();
|
|
3946
3954
|
}
|
|
3947
3955
|
}
|
|
3948
|
-
E.create = (
|
|
3949
|
-
const F = (
|
|
3956
|
+
E.create = (n) => new E(n);
|
|
3957
|
+
const F = (n, e) => {
|
|
3950
3958
|
let t;
|
|
3951
|
-
switch (
|
|
3959
|
+
switch (n.code) {
|
|
3952
3960
|
case c.invalid_type:
|
|
3953
|
-
|
|
3961
|
+
n.received === l.undefined ? t = "Required" : t = `Expected ${n.expected}, received ${n.received}`;
|
|
3954
3962
|
break;
|
|
3955
3963
|
case c.invalid_literal:
|
|
3956
|
-
t = `Invalid literal value, expected ${JSON.stringify(
|
|
3964
|
+
t = `Invalid literal value, expected ${JSON.stringify(n.expected, b.jsonStringifyReplacer)}`;
|
|
3957
3965
|
break;
|
|
3958
3966
|
case c.unrecognized_keys:
|
|
3959
|
-
t = `Unrecognized key(s) in object: ${b.joinValues(
|
|
3967
|
+
t = `Unrecognized key(s) in object: ${b.joinValues(n.keys, ", ")}`;
|
|
3960
3968
|
break;
|
|
3961
3969
|
case c.invalid_union:
|
|
3962
3970
|
t = "Invalid input";
|
|
3963
3971
|
break;
|
|
3964
3972
|
case c.invalid_union_discriminator:
|
|
3965
|
-
t = `Invalid discriminator value. Expected ${b.joinValues(
|
|
3973
|
+
t = `Invalid discriminator value. Expected ${b.joinValues(n.options)}`;
|
|
3966
3974
|
break;
|
|
3967
3975
|
case c.invalid_enum_value:
|
|
3968
|
-
t = `Invalid enum value. Expected ${b.joinValues(
|
|
3976
|
+
t = `Invalid enum value. Expected ${b.joinValues(n.options)}, received '${n.received}'`;
|
|
3969
3977
|
break;
|
|
3970
3978
|
case c.invalid_arguments:
|
|
3971
3979
|
t = "Invalid function arguments";
|
|
@@ -3977,13 +3985,13 @@ const F = (i, e) => {
|
|
|
3977
3985
|
t = "Invalid date";
|
|
3978
3986
|
break;
|
|
3979
3987
|
case c.invalid_string:
|
|
3980
|
-
typeof
|
|
3988
|
+
typeof n.validation == "object" ? "includes" in n.validation ? (t = `Invalid input: must include "${n.validation.includes}"`, typeof n.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${n.validation.position}`)) : "startsWith" in n.validation ? t = `Invalid input: must start with "${n.validation.startsWith}"` : "endsWith" in n.validation ? t = `Invalid input: must end with "${n.validation.endsWith}"` : b.assertNever(n.validation) : n.validation !== "regex" ? t = `Invalid ${n.validation}` : t = "Invalid";
|
|
3981
3989
|
break;
|
|
3982
3990
|
case c.too_small:
|
|
3983
|
-
|
|
3991
|
+
n.type === "array" ? t = `Array must contain ${n.exact ? "exactly" : n.inclusive ? "at least" : "more than"} ${n.minimum} element(s)` : n.type === "string" ? t = `String must contain ${n.exact ? "exactly" : n.inclusive ? "at least" : "over"} ${n.minimum} character(s)` : n.type === "number" ? t = `Number must be ${n.exact ? "exactly equal to " : n.inclusive ? "greater than or equal to " : "greater than "}${n.minimum}` : n.type === "date" ? t = `Date must be ${n.exact ? "exactly equal to " : n.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(n.minimum))}` : t = "Invalid input";
|
|
3984
3992
|
break;
|
|
3985
3993
|
case c.too_big:
|
|
3986
|
-
|
|
3994
|
+
n.type === "array" ? t = `Array must contain ${n.exact ? "exactly" : n.inclusive ? "at most" : "less than"} ${n.maximum} element(s)` : n.type === "string" ? t = `String must contain ${n.exact ? "exactly" : n.inclusive ? "at most" : "under"} ${n.maximum} character(s)` : n.type === "number" ? t = `Number must be ${n.exact ? "exactly" : n.inclusive ? "less than or equal to" : "less than"} ${n.maximum}` : n.type === "bigint" ? t = `BigInt must be ${n.exact ? "exactly" : n.inclusive ? "less than or equal to" : "less than"} ${n.maximum}` : n.type === "date" ? t = `Date must be ${n.exact ? "exactly" : n.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(n.maximum))}` : t = "Invalid input";
|
|
3987
3995
|
break;
|
|
3988
3996
|
case c.custom:
|
|
3989
3997
|
t = "Invalid input";
|
|
@@ -3992,26 +4000,26 @@ const F = (i, e) => {
|
|
|
3992
4000
|
t = "Intersection results could not be merged";
|
|
3993
4001
|
break;
|
|
3994
4002
|
case c.not_multiple_of:
|
|
3995
|
-
t = `Number must be a multiple of ${
|
|
4003
|
+
t = `Number must be a multiple of ${n.multipleOf}`;
|
|
3996
4004
|
break;
|
|
3997
4005
|
case c.not_finite:
|
|
3998
4006
|
t = "Number must be finite";
|
|
3999
4007
|
break;
|
|
4000
4008
|
default:
|
|
4001
|
-
t = e.defaultError, b.assertNever(
|
|
4009
|
+
t = e.defaultError, b.assertNever(n);
|
|
4002
4010
|
}
|
|
4003
4011
|
return { message: t };
|
|
4004
4012
|
};
|
|
4005
4013
|
let ke = F;
|
|
4006
|
-
function He(
|
|
4007
|
-
ke =
|
|
4014
|
+
function He(n) {
|
|
4015
|
+
ke = n;
|
|
4008
4016
|
}
|
|
4009
4017
|
function ce() {
|
|
4010
4018
|
return ke;
|
|
4011
4019
|
}
|
|
4012
|
-
const de = (
|
|
4013
|
-
const { data: e, path: t, errorMaps: a, issueData:
|
|
4014
|
-
...
|
|
4020
|
+
const de = (n) => {
|
|
4021
|
+
const { data: e, path: t, errorMaps: a, issueData: i } = n, r = [...t, ...i.path || []], s = {
|
|
4022
|
+
...i,
|
|
4015
4023
|
path: r
|
|
4016
4024
|
};
|
|
4017
4025
|
let o = "";
|
|
@@ -4019,25 +4027,25 @@ const de = (i) => {
|
|
|
4019
4027
|
for (const d of m)
|
|
4020
4028
|
o = d(s, { data: e, defaultError: o }).message;
|
|
4021
4029
|
return {
|
|
4022
|
-
...
|
|
4030
|
+
...i,
|
|
4023
4031
|
path: r,
|
|
4024
|
-
message:
|
|
4032
|
+
message: i.message || o
|
|
4025
4033
|
};
|
|
4026
4034
|
}, Je = [];
|
|
4027
|
-
function u(
|
|
4035
|
+
function u(n, e) {
|
|
4028
4036
|
const t = de({
|
|
4029
4037
|
issueData: e,
|
|
4030
|
-
data:
|
|
4031
|
-
path:
|
|
4038
|
+
data: n.data,
|
|
4039
|
+
path: n.path,
|
|
4032
4040
|
errorMaps: [
|
|
4033
|
-
|
|
4034
|
-
|
|
4041
|
+
n.common.contextualErrorMap,
|
|
4042
|
+
n.schemaErrorMap,
|
|
4035
4043
|
ce(),
|
|
4036
4044
|
F
|
|
4037
4045
|
// then global default map
|
|
4038
4046
|
].filter((a) => !!a)
|
|
4039
4047
|
});
|
|
4040
|
-
|
|
4048
|
+
n.common.issues.push(t);
|
|
4041
4049
|
}
|
|
4042
4050
|
class T {
|
|
4043
4051
|
constructor() {
|
|
@@ -4051,70 +4059,70 @@ class T {
|
|
|
4051
4059
|
}
|
|
4052
4060
|
static mergeArray(e, t) {
|
|
4053
4061
|
const a = [];
|
|
4054
|
-
for (const
|
|
4055
|
-
if (
|
|
4062
|
+
for (const i of t) {
|
|
4063
|
+
if (i.status === "aborted")
|
|
4056
4064
|
return h;
|
|
4057
|
-
|
|
4065
|
+
i.status === "dirty" && e.dirty(), a.push(i.value);
|
|
4058
4066
|
}
|
|
4059
4067
|
return { status: e.value, value: a };
|
|
4060
4068
|
}
|
|
4061
4069
|
static async mergeObjectAsync(e, t) {
|
|
4062
4070
|
const a = [];
|
|
4063
|
-
for (const
|
|
4071
|
+
for (const i of t)
|
|
4064
4072
|
a.push({
|
|
4065
|
-
key: await
|
|
4066
|
-
value: await
|
|
4073
|
+
key: await i.key,
|
|
4074
|
+
value: await i.value
|
|
4067
4075
|
});
|
|
4068
4076
|
return T.mergeObjectSync(e, a);
|
|
4069
4077
|
}
|
|
4070
4078
|
static mergeObjectSync(e, t) {
|
|
4071
4079
|
const a = {};
|
|
4072
|
-
for (const
|
|
4073
|
-
const { key: r, value: s } =
|
|
4080
|
+
for (const i of t) {
|
|
4081
|
+
const { key: r, value: s } = i;
|
|
4074
4082
|
if (r.status === "aborted" || s.status === "aborted")
|
|
4075
4083
|
return h;
|
|
4076
|
-
r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" ||
|
|
4084
|
+
r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" || i.alwaysSet) && (a[r.value] = s.value);
|
|
4077
4085
|
}
|
|
4078
4086
|
return { status: e.value, value: a };
|
|
4079
4087
|
}
|
|
4080
4088
|
}
|
|
4081
4089
|
const h = Object.freeze({
|
|
4082
4090
|
status: "aborted"
|
|
4083
|
-
}), Se = (
|
|
4091
|
+
}), Se = (n) => ({ status: "dirty", value: n }), C = (n) => ({ status: "valid", value: n }), xe = (n) => n.status === "aborted", we = (n) => n.status === "dirty", H = (n) => n.status === "valid", le = (n) => typeof Promise < "u" && n instanceof Promise;
|
|
4084
4092
|
var p;
|
|
4085
|
-
(function(
|
|
4086
|
-
|
|
4093
|
+
(function(n) {
|
|
4094
|
+
n.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, n.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
4087
4095
|
})(p || (p = {}));
|
|
4088
|
-
class
|
|
4089
|
-
constructor(e, t, a,
|
|
4090
|
-
this._cachedPath = [], this.parent = e, this.data = t, this._path = a, this._key =
|
|
4096
|
+
class M {
|
|
4097
|
+
constructor(e, t, a, i) {
|
|
4098
|
+
this._cachedPath = [], this.parent = e, this.data = t, this._path = a, this._key = i;
|
|
4091
4099
|
}
|
|
4092
4100
|
get path() {
|
|
4093
4101
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
4094
4102
|
}
|
|
4095
4103
|
}
|
|
4096
|
-
const Ce = (
|
|
4104
|
+
const Ce = (n, e) => {
|
|
4097
4105
|
if (H(e))
|
|
4098
4106
|
return { success: !0, data: e.value };
|
|
4099
|
-
if (!
|
|
4107
|
+
if (!n.common.issues.length)
|
|
4100
4108
|
throw new Error("Validation failed but no issues detected.");
|
|
4101
4109
|
return {
|
|
4102
4110
|
success: !1,
|
|
4103
4111
|
get error() {
|
|
4104
4112
|
if (this._error)
|
|
4105
4113
|
return this._error;
|
|
4106
|
-
const t = new E(
|
|
4114
|
+
const t = new E(n.common.issues);
|
|
4107
4115
|
return this._error = t, this._error;
|
|
4108
4116
|
}
|
|
4109
4117
|
};
|
|
4110
4118
|
};
|
|
4111
|
-
function g(
|
|
4112
|
-
if (!
|
|
4119
|
+
function g(n) {
|
|
4120
|
+
if (!n)
|
|
4113
4121
|
return {};
|
|
4114
|
-
const { errorMap: e, invalid_type_error: t, required_error: a, description:
|
|
4122
|
+
const { errorMap: e, invalid_type_error: t, required_error: a, description: i } = n;
|
|
4115
4123
|
if (e && (t || a))
|
|
4116
4124
|
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
|
|
4117
|
-
return e ? { errorMap: e, description:
|
|
4125
|
+
return e ? { errorMap: e, description: i } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: a ?? o.defaultError } : { message: t ?? o.defaultError }, description: i };
|
|
4118
4126
|
}
|
|
4119
4127
|
class v {
|
|
4120
4128
|
constructor(e) {
|
|
@@ -4167,7 +4175,7 @@ class v {
|
|
|
4167
4175
|
}
|
|
4168
4176
|
safeParse(e, t) {
|
|
4169
4177
|
var a;
|
|
4170
|
-
const
|
|
4178
|
+
const i = {
|
|
4171
4179
|
common: {
|
|
4172
4180
|
issues: [],
|
|
4173
4181
|
async: (a = t == null ? void 0 : t.async) !== null && a !== void 0 ? a : !1,
|
|
@@ -4178,8 +4186,8 @@ class v {
|
|
|
4178
4186
|
parent: null,
|
|
4179
4187
|
data: e,
|
|
4180
4188
|
parsedType: j(e)
|
|
4181
|
-
}, r = this._parseSync({ data: e, path:
|
|
4182
|
-
return Ce(
|
|
4189
|
+
}, r = this._parseSync({ data: e, path: i.path, parent: i });
|
|
4190
|
+
return Ce(i, r);
|
|
4183
4191
|
}
|
|
4184
4192
|
async parseAsync(e, t) {
|
|
4185
4193
|
const a = await this.safeParseAsync(e, t);
|
|
@@ -4199,24 +4207,24 @@ class v {
|
|
|
4199
4207
|
parent: null,
|
|
4200
4208
|
data: e,
|
|
4201
4209
|
parsedType: j(e)
|
|
4202
|
-
},
|
|
4210
|
+
}, i = this._parse({ data: e, path: a.path, parent: a }), r = await (le(i) ? i : Promise.resolve(i));
|
|
4203
4211
|
return Ce(a, r);
|
|
4204
4212
|
}
|
|
4205
4213
|
refine(e, t) {
|
|
4206
|
-
const a = (
|
|
4207
|
-
return this._refinement((
|
|
4208
|
-
const s = e(
|
|
4214
|
+
const a = (i) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(i) : t;
|
|
4215
|
+
return this._refinement((i, r) => {
|
|
4216
|
+
const s = e(i), o = () => r.addIssue({
|
|
4209
4217
|
code: c.custom,
|
|
4210
|
-
...a(
|
|
4218
|
+
...a(i)
|
|
4211
4219
|
});
|
|
4212
4220
|
return typeof Promise < "u" && s instanceof Promise ? s.then((m) => m ? !0 : (o(), !1)) : s ? !0 : (o(), !1);
|
|
4213
4221
|
});
|
|
4214
4222
|
}
|
|
4215
4223
|
refinement(e, t) {
|
|
4216
|
-
return this._refinement((a,
|
|
4224
|
+
return this._refinement((a, i) => e(a) ? !0 : (i.addIssue(typeof t == "function" ? t(a, i) : t), !1));
|
|
4217
4225
|
}
|
|
4218
4226
|
_refinement(e) {
|
|
4219
|
-
return new
|
|
4227
|
+
return new I({
|
|
4220
4228
|
schema: this,
|
|
4221
4229
|
typeName: f.ZodEffects,
|
|
4222
4230
|
effect: { type: "refinement", refinement: e }
|
|
@@ -4247,7 +4255,7 @@ class v {
|
|
|
4247
4255
|
return ee.create(this, e, this._def);
|
|
4248
4256
|
}
|
|
4249
4257
|
transform(e) {
|
|
4250
|
-
return new
|
|
4258
|
+
return new I({
|
|
4251
4259
|
...g(this._def),
|
|
4252
4260
|
schema: this,
|
|
4253
4261
|
typeName: f.ZodEffects,
|
|
@@ -4299,11 +4307,11 @@ class v {
|
|
|
4299
4307
|
return this.safeParse(null).success;
|
|
4300
4308
|
}
|
|
4301
4309
|
}
|
|
4302
|
-
const Xe = /^c[^\s-]{8,}$/i, Ke = /^[a-z][a-z0-9]*$/, Qe = /^[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,
|
|
4310
|
+
const Xe = /^c[^\s-]{8,}$/i, Ke = /^[a-z][a-z0-9]*$/, Qe = /^[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, nt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
4303
4311
|
let ye;
|
|
4304
|
-
const at = /^(((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}))$/,
|
|
4305
|
-
function st(
|
|
4306
|
-
return !!((e === "v4" || !e) && at.test(
|
|
4312
|
+
const at = /^(((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}))$/, it = /^(([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 = (n) => n.precision ? n.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}Z$`) : n.precision === 0 ? n.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$") : n.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$");
|
|
4313
|
+
function st(n, e) {
|
|
4314
|
+
return !!((e === "v4" || !e) && at.test(n) || (e === "v6" || !e) && it.test(n));
|
|
4307
4315
|
}
|
|
4308
4316
|
class A extends v {
|
|
4309
4317
|
_parse(e) {
|
|
@@ -4320,10 +4328,10 @@ class A extends v {
|
|
|
4320
4328
|
), h;
|
|
4321
4329
|
}
|
|
4322
4330
|
const a = new T();
|
|
4323
|
-
let
|
|
4331
|
+
let i;
|
|
4324
4332
|
for (const r of this._def.checks)
|
|
4325
4333
|
if (r.kind === "min")
|
|
4326
|
-
e.data.length < r.value && (
|
|
4334
|
+
e.data.length < r.value && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4327
4335
|
code: c.too_small,
|
|
4328
4336
|
minimum: r.value,
|
|
4329
4337
|
type: "string",
|
|
@@ -4332,7 +4340,7 @@ class A extends v {
|
|
|
4332
4340
|
message: r.message
|
|
4333
4341
|
}), a.dirty());
|
|
4334
4342
|
else if (r.kind === "max")
|
|
4335
|
-
e.data.length > r.value && (
|
|
4343
|
+
e.data.length > r.value && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4336
4344
|
code: c.too_big,
|
|
4337
4345
|
maximum: r.value,
|
|
4338
4346
|
type: "string",
|
|
@@ -4342,14 +4350,14 @@ class A extends v {
|
|
|
4342
4350
|
}), a.dirty());
|
|
4343
4351
|
else if (r.kind === "length") {
|
|
4344
4352
|
const s = e.data.length > r.value, o = e.data.length < r.value;
|
|
4345
|
-
(s || o) && (
|
|
4353
|
+
(s || o) && (i = this._getOrReturnCtx(e, i), s ? u(i, {
|
|
4346
4354
|
code: c.too_big,
|
|
4347
4355
|
maximum: r.value,
|
|
4348
4356
|
type: "string",
|
|
4349
4357
|
inclusive: !0,
|
|
4350
4358
|
exact: !0,
|
|
4351
4359
|
message: r.message
|
|
4352
|
-
}) : o && u(
|
|
4360
|
+
}) : o && u(i, {
|
|
4353
4361
|
code: c.too_small,
|
|
4354
4362
|
minimum: r.value,
|
|
4355
4363
|
type: "string",
|
|
@@ -4358,37 +4366,37 @@ class A extends v {
|
|
|
4358
4366
|
message: r.message
|
|
4359
4367
|
}), a.dirty());
|
|
4360
4368
|
} else if (r.kind === "email")
|
|
4361
|
-
tt.test(e.data) || (
|
|
4369
|
+
tt.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4362
4370
|
validation: "email",
|
|
4363
4371
|
code: c.invalid_string,
|
|
4364
4372
|
message: r.message
|
|
4365
4373
|
}), a.dirty());
|
|
4366
4374
|
else if (r.kind === "emoji")
|
|
4367
|
-
ye || (ye = new RegExp(
|
|
4375
|
+
ye || (ye = new RegExp(nt, "u")), ye.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4368
4376
|
validation: "emoji",
|
|
4369
4377
|
code: c.invalid_string,
|
|
4370
4378
|
message: r.message
|
|
4371
4379
|
}), a.dirty());
|
|
4372
4380
|
else if (r.kind === "uuid")
|
|
4373
|
-
et.test(e.data) || (
|
|
4381
|
+
et.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4374
4382
|
validation: "uuid",
|
|
4375
4383
|
code: c.invalid_string,
|
|
4376
4384
|
message: r.message
|
|
4377
4385
|
}), a.dirty());
|
|
4378
4386
|
else if (r.kind === "cuid")
|
|
4379
|
-
Xe.test(e.data) || (
|
|
4387
|
+
Xe.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4380
4388
|
validation: "cuid",
|
|
4381
4389
|
code: c.invalid_string,
|
|
4382
4390
|
message: r.message
|
|
4383
4391
|
}), a.dirty());
|
|
4384
4392
|
else if (r.kind === "cuid2")
|
|
4385
|
-
Ke.test(e.data) || (
|
|
4393
|
+
Ke.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4386
4394
|
validation: "cuid2",
|
|
4387
4395
|
code: c.invalid_string,
|
|
4388
4396
|
message: r.message
|
|
4389
4397
|
}), a.dirty());
|
|
4390
4398
|
else if (r.kind === "ulid")
|
|
4391
|
-
Qe.test(e.data) || (
|
|
4399
|
+
Qe.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4392
4400
|
validation: "ulid",
|
|
4393
4401
|
code: c.invalid_string,
|
|
4394
4402
|
message: r.message
|
|
@@ -4397,33 +4405,33 @@ class A extends v {
|
|
|
4397
4405
|
try {
|
|
4398
4406
|
new URL(e.data);
|
|
4399
4407
|
} catch {
|
|
4400
|
-
|
|
4408
|
+
i = this._getOrReturnCtx(e, i), u(i, {
|
|
4401
4409
|
validation: "url",
|
|
4402
4410
|
code: c.invalid_string,
|
|
4403
4411
|
message: r.message
|
|
4404
4412
|
}), a.dirty();
|
|
4405
4413
|
}
|
|
4406
|
-
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (
|
|
4414
|
+
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4407
4415
|
validation: "regex",
|
|
4408
4416
|
code: c.invalid_string,
|
|
4409
4417
|
message: r.message
|
|
4410
|
-
}), a.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (
|
|
4418
|
+
}), a.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4411
4419
|
code: c.invalid_string,
|
|
4412
4420
|
validation: { includes: r.value, position: r.position },
|
|
4413
4421
|
message: r.message
|
|
4414
|
-
}), a.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) || (
|
|
4422
|
+
}), a.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) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4415
4423
|
code: c.invalid_string,
|
|
4416
4424
|
validation: { startsWith: r.value },
|
|
4417
4425
|
message: r.message
|
|
4418
|
-
}), a.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (
|
|
4426
|
+
}), a.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4419
4427
|
code: c.invalid_string,
|
|
4420
4428
|
validation: { endsWith: r.value },
|
|
4421
4429
|
message: r.message
|
|
4422
|
-
}), a.dirty()) : r.kind === "datetime" ? rt(r).test(e.data) || (
|
|
4430
|
+
}), a.dirty()) : r.kind === "datetime" ? rt(r).test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4423
4431
|
code: c.invalid_string,
|
|
4424
4432
|
validation: "datetime",
|
|
4425
4433
|
message: r.message
|
|
4426
|
-
}), a.dirty()) : r.kind === "ip" ? st(e.data, r.version) || (
|
|
4434
|
+
}), a.dirty()) : r.kind === "ip" ? st(e.data, r.version) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4427
4435
|
validation: "ip",
|
|
4428
4436
|
code: c.invalid_string,
|
|
4429
4437
|
message: r.message
|
|
@@ -4431,7 +4439,7 @@ class A extends v {
|
|
|
4431
4439
|
return { status: a.value, value: e.data };
|
|
4432
4440
|
}
|
|
4433
4441
|
_regex(e, t, a) {
|
|
4434
|
-
return this.refinement((
|
|
4442
|
+
return this.refinement((i) => e.test(i), {
|
|
4435
4443
|
validation: t,
|
|
4436
4444
|
code: c.invalid_string,
|
|
4437
4445
|
...p.errToObj(a)
|
|
@@ -4596,18 +4604,18 @@ class A extends v {
|
|
|
4596
4604
|
return e;
|
|
4597
4605
|
}
|
|
4598
4606
|
}
|
|
4599
|
-
A.create = (
|
|
4607
|
+
A.create = (n) => {
|
|
4600
4608
|
var e;
|
|
4601
4609
|
return new A({
|
|
4602
4610
|
checks: [],
|
|
4603
4611
|
typeName: f.ZodString,
|
|
4604
|
-
coerce: (e =
|
|
4605
|
-
...g(
|
|
4612
|
+
coerce: (e = n == null ? void 0 : n.coerce) !== null && e !== void 0 ? e : !1,
|
|
4613
|
+
...g(n)
|
|
4606
4614
|
});
|
|
4607
4615
|
};
|
|
4608
|
-
function ot(
|
|
4609
|
-
const t = (
|
|
4610
|
-
return r % s / Math.pow(10,
|
|
4616
|
+
function ot(n, e) {
|
|
4617
|
+
const t = (n.toString().split(".")[1] || "").length, a = (e.toString().split(".")[1] || "").length, i = t > a ? t : a, r = parseInt(n.toFixed(i).replace(".", "")), s = parseInt(e.toFixed(i).replace(".", ""));
|
|
4618
|
+
return r % s / Math.pow(10, i);
|
|
4611
4619
|
}
|
|
4612
4620
|
class D extends v {
|
|
4613
4621
|
constructor() {
|
|
@@ -4623,36 +4631,36 @@ class D extends v {
|
|
|
4623
4631
|
}), h;
|
|
4624
4632
|
}
|
|
4625
4633
|
let a;
|
|
4626
|
-
const
|
|
4634
|
+
const i = new T();
|
|
4627
4635
|
for (const r of this._def.checks)
|
|
4628
4636
|
r.kind === "int" ? b.isInteger(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4629
4637
|
code: c.invalid_type,
|
|
4630
4638
|
expected: "integer",
|
|
4631
4639
|
received: "float",
|
|
4632
4640
|
message: r.message
|
|
4633
|
-
}),
|
|
4641
|
+
}), i.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4634
4642
|
code: c.too_small,
|
|
4635
4643
|
minimum: r.value,
|
|
4636
4644
|
type: "number",
|
|
4637
4645
|
inclusive: r.inclusive,
|
|
4638
4646
|
exact: !1,
|
|
4639
4647
|
message: r.message
|
|
4640
|
-
}),
|
|
4648
|
+
}), i.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4641
4649
|
code: c.too_big,
|
|
4642
4650
|
maximum: r.value,
|
|
4643
4651
|
type: "number",
|
|
4644
4652
|
inclusive: r.inclusive,
|
|
4645
4653
|
exact: !1,
|
|
4646
4654
|
message: r.message
|
|
4647
|
-
}),
|
|
4655
|
+
}), i.dirty()) : r.kind === "multipleOf" ? ot(e.data, r.value) !== 0 && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4648
4656
|
code: c.not_multiple_of,
|
|
4649
4657
|
multipleOf: r.value,
|
|
4650
4658
|
message: r.message
|
|
4651
|
-
}),
|
|
4659
|
+
}), i.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4652
4660
|
code: c.not_finite,
|
|
4653
4661
|
message: r.message
|
|
4654
|
-
}),
|
|
4655
|
-
return { status:
|
|
4662
|
+
}), i.dirty()) : b.assertNever(r);
|
|
4663
|
+
return { status: i.value, value: e.data };
|
|
4656
4664
|
}
|
|
4657
4665
|
gte(e, t) {
|
|
4658
4666
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -4666,7 +4674,7 @@ class D extends v {
|
|
|
4666
4674
|
lt(e, t) {
|
|
4667
4675
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
4668
4676
|
}
|
|
4669
|
-
setLimit(e, t, a,
|
|
4677
|
+
setLimit(e, t, a, i) {
|
|
4670
4678
|
return new D({
|
|
4671
4679
|
...this._def,
|
|
4672
4680
|
checks: [
|
|
@@ -4675,7 +4683,7 @@ class D extends v {
|
|
|
4675
4683
|
kind: e,
|
|
4676
4684
|
value: t,
|
|
4677
4685
|
inclusive: a,
|
|
4678
|
-
message: p.toString(
|
|
4686
|
+
message: p.toString(i)
|
|
4679
4687
|
}
|
|
4680
4688
|
]
|
|
4681
4689
|
});
|
|
@@ -4775,13 +4783,13 @@ class D extends v {
|
|
|
4775
4783
|
return Number.isFinite(t) && Number.isFinite(e);
|
|
4776
4784
|
}
|
|
4777
4785
|
}
|
|
4778
|
-
D.create = (
|
|
4786
|
+
D.create = (n) => new D({
|
|
4779
4787
|
checks: [],
|
|
4780
4788
|
typeName: f.ZodNumber,
|
|
4781
|
-
coerce: (
|
|
4782
|
-
...g(
|
|
4789
|
+
coerce: (n == null ? void 0 : n.coerce) || !1,
|
|
4790
|
+
...g(n)
|
|
4783
4791
|
});
|
|
4784
|
-
class
|
|
4792
|
+
class B extends v {
|
|
4785
4793
|
constructor() {
|
|
4786
4794
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
4787
4795
|
}
|
|
@@ -4795,7 +4803,7 @@ class Z extends v {
|
|
|
4795
4803
|
}), h;
|
|
4796
4804
|
}
|
|
4797
4805
|
let a;
|
|
4798
|
-
const
|
|
4806
|
+
const i = new T();
|
|
4799
4807
|
for (const r of this._def.checks)
|
|
4800
4808
|
r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4801
4809
|
code: c.too_small,
|
|
@@ -4803,18 +4811,18 @@ class Z extends v {
|
|
|
4803
4811
|
minimum: r.value,
|
|
4804
4812
|
inclusive: r.inclusive,
|
|
4805
4813
|
message: r.message
|
|
4806
|
-
}),
|
|
4814
|
+
}), i.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4807
4815
|
code: c.too_big,
|
|
4808
4816
|
type: "bigint",
|
|
4809
4817
|
maximum: r.value,
|
|
4810
4818
|
inclusive: r.inclusive,
|
|
4811
4819
|
message: r.message
|
|
4812
|
-
}),
|
|
4820
|
+
}), i.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4813
4821
|
code: c.not_multiple_of,
|
|
4814
4822
|
multipleOf: r.value,
|
|
4815
4823
|
message: r.message
|
|
4816
|
-
}),
|
|
4817
|
-
return { status:
|
|
4824
|
+
}), i.dirty()) : b.assertNever(r);
|
|
4825
|
+
return { status: i.value, value: e.data };
|
|
4818
4826
|
}
|
|
4819
4827
|
gte(e, t) {
|
|
4820
4828
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -4828,8 +4836,8 @@ class Z extends v {
|
|
|
4828
4836
|
lt(e, t) {
|
|
4829
4837
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
4830
4838
|
}
|
|
4831
|
-
setLimit(e, t, a,
|
|
4832
|
-
return new
|
|
4839
|
+
setLimit(e, t, a, i) {
|
|
4840
|
+
return new B({
|
|
4833
4841
|
...this._def,
|
|
4834
4842
|
checks: [
|
|
4835
4843
|
...this._def.checks,
|
|
@@ -4837,13 +4845,13 @@ class Z extends v {
|
|
|
4837
4845
|
kind: e,
|
|
4838
4846
|
value: t,
|
|
4839
4847
|
inclusive: a,
|
|
4840
|
-
message: p.toString(
|
|
4848
|
+
message: p.toString(i)
|
|
4841
4849
|
}
|
|
4842
4850
|
]
|
|
4843
4851
|
});
|
|
4844
4852
|
}
|
|
4845
4853
|
_addCheck(e) {
|
|
4846
|
-
return new
|
|
4854
|
+
return new B({
|
|
4847
4855
|
...this._def,
|
|
4848
4856
|
checks: [...this._def.checks, e]
|
|
4849
4857
|
});
|
|
@@ -4900,13 +4908,13 @@ class Z extends v {
|
|
|
4900
4908
|
return e;
|
|
4901
4909
|
}
|
|
4902
4910
|
}
|
|
4903
|
-
|
|
4911
|
+
B.create = (n) => {
|
|
4904
4912
|
var e;
|
|
4905
|
-
return new
|
|
4913
|
+
return new B({
|
|
4906
4914
|
checks: [],
|
|
4907
4915
|
typeName: f.ZodBigInt,
|
|
4908
|
-
coerce: (e =
|
|
4909
|
-
...g(
|
|
4916
|
+
coerce: (e = n == null ? void 0 : n.coerce) !== null && e !== void 0 ? e : !1,
|
|
4917
|
+
...g(n)
|
|
4910
4918
|
});
|
|
4911
4919
|
};
|
|
4912
4920
|
class J extends v {
|
|
@@ -4922,10 +4930,10 @@ class J extends v {
|
|
|
4922
4930
|
return C(e.data);
|
|
4923
4931
|
}
|
|
4924
4932
|
}
|
|
4925
|
-
J.create = (
|
|
4933
|
+
J.create = (n) => new J({
|
|
4926
4934
|
typeName: f.ZodBoolean,
|
|
4927
|
-
coerce: (
|
|
4928
|
-
...g(
|
|
4935
|
+
coerce: (n == null ? void 0 : n.coerce) || !1,
|
|
4936
|
+
...g(n)
|
|
4929
4937
|
});
|
|
4930
4938
|
class $ extends v {
|
|
4931
4939
|
_parse(e) {
|
|
@@ -4944,16 +4952,16 @@ class $ extends v {
|
|
|
4944
4952
|
}), h;
|
|
4945
4953
|
}
|
|
4946
4954
|
const a = new T();
|
|
4947
|
-
let
|
|
4955
|
+
let i;
|
|
4948
4956
|
for (const r of this._def.checks)
|
|
4949
|
-
r.kind === "min" ? e.data.getTime() < r.value && (
|
|
4957
|
+
r.kind === "min" ? e.data.getTime() < r.value && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4950
4958
|
code: c.too_small,
|
|
4951
4959
|
message: r.message,
|
|
4952
4960
|
inclusive: !0,
|
|
4953
4961
|
exact: !1,
|
|
4954
4962
|
minimum: r.value,
|
|
4955
4963
|
type: "date"
|
|
4956
|
-
}), a.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (
|
|
4964
|
+
}), a.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
4957
4965
|
code: c.too_big,
|
|
4958
4966
|
message: r.message,
|
|
4959
4967
|
inclusive: !0,
|
|
@@ -4999,11 +5007,11 @@ class $ extends v {
|
|
|
4999
5007
|
return e != null ? new Date(e) : null;
|
|
5000
5008
|
}
|
|
5001
5009
|
}
|
|
5002
|
-
$.create = (
|
|
5010
|
+
$.create = (n) => new $({
|
|
5003
5011
|
checks: [],
|
|
5004
|
-
coerce: (
|
|
5012
|
+
coerce: (n == null ? void 0 : n.coerce) || !1,
|
|
5005
5013
|
typeName: f.ZodDate,
|
|
5006
|
-
...g(
|
|
5014
|
+
...g(n)
|
|
5007
5015
|
});
|
|
5008
5016
|
class ue extends v {
|
|
5009
5017
|
_parse(e) {
|
|
@@ -5018,9 +5026,9 @@ class ue extends v {
|
|
|
5018
5026
|
return C(e.data);
|
|
5019
5027
|
}
|
|
5020
5028
|
}
|
|
5021
|
-
ue.create = (
|
|
5029
|
+
ue.create = (n) => new ue({
|
|
5022
5030
|
typeName: f.ZodSymbol,
|
|
5023
|
-
...g(
|
|
5031
|
+
...g(n)
|
|
5024
5032
|
});
|
|
5025
5033
|
class X extends v {
|
|
5026
5034
|
_parse(e) {
|
|
@@ -5035,9 +5043,9 @@ class X extends v {
|
|
|
5035
5043
|
return C(e.data);
|
|
5036
5044
|
}
|
|
5037
5045
|
}
|
|
5038
|
-
X.create = (
|
|
5046
|
+
X.create = (n) => new X({
|
|
5039
5047
|
typeName: f.ZodUndefined,
|
|
5040
|
-
...g(
|
|
5048
|
+
...g(n)
|
|
5041
5049
|
});
|
|
5042
5050
|
class K extends v {
|
|
5043
5051
|
_parse(e) {
|
|
@@ -5052,9 +5060,9 @@ class K extends v {
|
|
|
5052
5060
|
return C(e.data);
|
|
5053
5061
|
}
|
|
5054
5062
|
}
|
|
5055
|
-
K.create = (
|
|
5063
|
+
K.create = (n) => new K({
|
|
5056
5064
|
typeName: f.ZodNull,
|
|
5057
|
-
...g(
|
|
5065
|
+
...g(n)
|
|
5058
5066
|
});
|
|
5059
5067
|
class W extends v {
|
|
5060
5068
|
constructor() {
|
|
@@ -5064,11 +5072,11 @@ class W extends v {
|
|
|
5064
5072
|
return C(e.data);
|
|
5065
5073
|
}
|
|
5066
5074
|
}
|
|
5067
|
-
W.create = (
|
|
5075
|
+
W.create = (n) => new W({
|
|
5068
5076
|
typeName: f.ZodAny,
|
|
5069
|
-
...g(
|
|
5077
|
+
...g(n)
|
|
5070
5078
|
});
|
|
5071
|
-
class
|
|
5079
|
+
class V extends v {
|
|
5072
5080
|
constructor() {
|
|
5073
5081
|
super(...arguments), this._unknown = !0;
|
|
5074
5082
|
}
|
|
@@ -5076,9 +5084,9 @@ class B extends v {
|
|
|
5076
5084
|
return C(e.data);
|
|
5077
5085
|
}
|
|
5078
5086
|
}
|
|
5079
|
-
|
|
5087
|
+
V.create = (n) => new V({
|
|
5080
5088
|
typeName: f.ZodUnknown,
|
|
5081
|
-
...g(
|
|
5089
|
+
...g(n)
|
|
5082
5090
|
});
|
|
5083
5091
|
class L extends v {
|
|
5084
5092
|
_parse(e) {
|
|
@@ -5090,9 +5098,9 @@ class L extends v {
|
|
|
5090
5098
|
}), h;
|
|
5091
5099
|
}
|
|
5092
5100
|
}
|
|
5093
|
-
L.create = (
|
|
5101
|
+
L.create = (n) => new L({
|
|
5094
5102
|
typeName: f.ZodNever,
|
|
5095
|
-
...g(
|
|
5103
|
+
...g(n)
|
|
5096
5104
|
});
|
|
5097
5105
|
class me extends v {
|
|
5098
5106
|
_parse(e) {
|
|
@@ -5107,48 +5115,48 @@ class me extends v {
|
|
|
5107
5115
|
return C(e.data);
|
|
5108
5116
|
}
|
|
5109
5117
|
}
|
|
5110
|
-
me.create = (
|
|
5118
|
+
me.create = (n) => new me({
|
|
5111
5119
|
typeName: f.ZodVoid,
|
|
5112
|
-
...g(
|
|
5120
|
+
...g(n)
|
|
5113
5121
|
});
|
|
5114
5122
|
class O extends v {
|
|
5115
5123
|
_parse(e) {
|
|
5116
|
-
const { ctx: t, status: a } = this._processInputParams(e),
|
|
5124
|
+
const { ctx: t, status: a } = this._processInputParams(e), i = this._def;
|
|
5117
5125
|
if (t.parsedType !== l.array)
|
|
5118
5126
|
return u(t, {
|
|
5119
5127
|
code: c.invalid_type,
|
|
5120
5128
|
expected: l.array,
|
|
5121
5129
|
received: t.parsedType
|
|
5122
5130
|
}), h;
|
|
5123
|
-
if (
|
|
5124
|
-
const s = t.data.length >
|
|
5131
|
+
if (i.exactLength !== null) {
|
|
5132
|
+
const s = t.data.length > i.exactLength.value, o = t.data.length < i.exactLength.value;
|
|
5125
5133
|
(s || o) && (u(t, {
|
|
5126
5134
|
code: s ? c.too_big : c.too_small,
|
|
5127
|
-
minimum: o ?
|
|
5128
|
-
maximum: s ?
|
|
5135
|
+
minimum: o ? i.exactLength.value : void 0,
|
|
5136
|
+
maximum: s ? i.exactLength.value : void 0,
|
|
5129
5137
|
type: "array",
|
|
5130
5138
|
inclusive: !0,
|
|
5131
5139
|
exact: !0,
|
|
5132
|
-
message:
|
|
5140
|
+
message: i.exactLength.message
|
|
5133
5141
|
}), a.dirty());
|
|
5134
5142
|
}
|
|
5135
|
-
if (
|
|
5143
|
+
if (i.minLength !== null && t.data.length < i.minLength.value && (u(t, {
|
|
5136
5144
|
code: c.too_small,
|
|
5137
|
-
minimum:
|
|
5145
|
+
minimum: i.minLength.value,
|
|
5138
5146
|
type: "array",
|
|
5139
5147
|
inclusive: !0,
|
|
5140
5148
|
exact: !1,
|
|
5141
|
-
message:
|
|
5142
|
-
}), a.dirty()),
|
|
5149
|
+
message: i.minLength.message
|
|
5150
|
+
}), a.dirty()), i.maxLength !== null && t.data.length > i.maxLength.value && (u(t, {
|
|
5143
5151
|
code: c.too_big,
|
|
5144
|
-
maximum:
|
|
5152
|
+
maximum: i.maxLength.value,
|
|
5145
5153
|
type: "array",
|
|
5146
5154
|
inclusive: !0,
|
|
5147
5155
|
exact: !1,
|
|
5148
|
-
message:
|
|
5156
|
+
message: i.maxLength.message
|
|
5149
5157
|
}), a.dirty()), t.common.async)
|
|
5150
|
-
return Promise.all([...t.data].map((s, o) =>
|
|
5151
|
-
const r = [...t.data].map((s, o) =>
|
|
5158
|
+
return Promise.all([...t.data].map((s, o) => i.type._parseAsync(new M(t, s, t.path, o)))).then((s) => T.mergeArray(a, s));
|
|
5159
|
+
const r = [...t.data].map((s, o) => i.type._parseSync(new M(t, s, t.path, o)));
|
|
5152
5160
|
return T.mergeArray(a, r);
|
|
5153
5161
|
}
|
|
5154
5162
|
get element() {
|
|
@@ -5176,29 +5184,29 @@ class O extends v {
|
|
|
5176
5184
|
return this.min(1, e);
|
|
5177
5185
|
}
|
|
5178
5186
|
}
|
|
5179
|
-
O.create = (
|
|
5180
|
-
type:
|
|
5187
|
+
O.create = (n, e) => new O({
|
|
5188
|
+
type: n,
|
|
5181
5189
|
minLength: null,
|
|
5182
5190
|
maxLength: null,
|
|
5183
5191
|
exactLength: null,
|
|
5184
5192
|
typeName: f.ZodArray,
|
|
5185
5193
|
...g(e)
|
|
5186
5194
|
});
|
|
5187
|
-
function G(
|
|
5188
|
-
if (
|
|
5195
|
+
function G(n) {
|
|
5196
|
+
if (n instanceof w) {
|
|
5189
5197
|
const e = {};
|
|
5190
|
-
for (const t in
|
|
5191
|
-
const a =
|
|
5198
|
+
for (const t in n.shape) {
|
|
5199
|
+
const a = n.shape[t];
|
|
5192
5200
|
e[t] = P.create(G(a));
|
|
5193
5201
|
}
|
|
5194
5202
|
return new w({
|
|
5195
|
-
...
|
|
5203
|
+
...n._def,
|
|
5196
5204
|
shape: () => e
|
|
5197
5205
|
});
|
|
5198
|
-
} else return
|
|
5199
|
-
...
|
|
5200
|
-
type: G(
|
|
5201
|
-
}) :
|
|
5206
|
+
} else return n instanceof O ? new O({
|
|
5207
|
+
...n._def,
|
|
5208
|
+
type: G(n.element)
|
|
5209
|
+
}) : n instanceof P ? P.create(G(n.unwrap())) : n instanceof q ? q.create(G(n.unwrap())) : n instanceof N ? N.create(n.items.map((e) => G(e))) : n;
|
|
5202
5210
|
}
|
|
5203
5211
|
class w extends v {
|
|
5204
5212
|
constructor() {
|
|
@@ -5219,17 +5227,17 @@ class w extends v {
|
|
|
5219
5227
|
received: d.parsedType
|
|
5220
5228
|
}), h;
|
|
5221
5229
|
}
|
|
5222
|
-
const { status: a, ctx:
|
|
5230
|
+
const { status: a, ctx: i } = this._processInputParams(e), { shape: r, keys: s } = this._getCached(), o = [];
|
|
5223
5231
|
if (!(this._def.catchall instanceof L && this._def.unknownKeys === "strip"))
|
|
5224
|
-
for (const d in
|
|
5232
|
+
for (const d in i.data)
|
|
5225
5233
|
s.includes(d) || o.push(d);
|
|
5226
5234
|
const m = [];
|
|
5227
5235
|
for (const d of s) {
|
|
5228
|
-
const y = r[d], S =
|
|
5236
|
+
const y = r[d], S = i.data[d];
|
|
5229
5237
|
m.push({
|
|
5230
5238
|
key: { status: "valid", value: d },
|
|
5231
|
-
value: y._parse(new
|
|
5232
|
-
alwaysSet: d in
|
|
5239
|
+
value: y._parse(new M(i, S, i.path, d)),
|
|
5240
|
+
alwaysSet: d in i.data
|
|
5233
5241
|
});
|
|
5234
5242
|
}
|
|
5235
5243
|
if (this._def.catchall instanceof L) {
|
|
@@ -5238,10 +5246,10 @@ class w extends v {
|
|
|
5238
5246
|
for (const y of o)
|
|
5239
5247
|
m.push({
|
|
5240
5248
|
key: { status: "valid", value: y },
|
|
5241
|
-
value: { status: "valid", value:
|
|
5249
|
+
value: { status: "valid", value: i.data[y] }
|
|
5242
5250
|
});
|
|
5243
5251
|
else if (d === "strict")
|
|
5244
|
-
o.length > 0 && (u(
|
|
5252
|
+
o.length > 0 && (u(i, {
|
|
5245
5253
|
code: c.unrecognized_keys,
|
|
5246
5254
|
keys: o
|
|
5247
5255
|
}), a.dirty());
|
|
@@ -5249,18 +5257,18 @@ class w extends v {
|
|
|
5249
5257
|
} else {
|
|
5250
5258
|
const d = this._def.catchall;
|
|
5251
5259
|
for (const y of o) {
|
|
5252
|
-
const S =
|
|
5260
|
+
const S = i.data[y];
|
|
5253
5261
|
m.push({
|
|
5254
5262
|
key: { status: "valid", value: y },
|
|
5255
5263
|
value: d._parse(
|
|
5256
|
-
new
|
|
5264
|
+
new M(i, S, i.path, y)
|
|
5257
5265
|
//, ctx.child(key), value, getParsedType(value)
|
|
5258
5266
|
),
|
|
5259
|
-
alwaysSet: y in
|
|
5267
|
+
alwaysSet: y in i.data
|
|
5260
5268
|
});
|
|
5261
5269
|
}
|
|
5262
5270
|
}
|
|
5263
|
-
return
|
|
5271
|
+
return i.common.async ? Promise.resolve().then(async () => {
|
|
5264
5272
|
const d = [];
|
|
5265
5273
|
for (const y of m) {
|
|
5266
5274
|
const S = await y.key;
|
|
@@ -5282,8 +5290,8 @@ class w extends v {
|
|
|
5282
5290
|
unknownKeys: "strict",
|
|
5283
5291
|
...e !== void 0 ? {
|
|
5284
5292
|
errorMap: (t, a) => {
|
|
5285
|
-
var
|
|
5286
|
-
const m = (s = (r = (
|
|
5293
|
+
var i, r, s, o;
|
|
5294
|
+
const m = (s = (r = (i = this._def).errorMap) === null || r === void 0 ? void 0 : r.call(i, t, a).message) !== null && s !== void 0 ? s : a.defaultError;
|
|
5287
5295
|
return t.code === "unrecognized_keys" ? {
|
|
5288
5296
|
message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : m
|
|
5289
5297
|
} : {
|
|
@@ -5439,8 +5447,8 @@ class w extends v {
|
|
|
5439
5447
|
partial(e) {
|
|
5440
5448
|
const t = {};
|
|
5441
5449
|
return b.objectKeys(this.shape).forEach((a) => {
|
|
5442
|
-
const
|
|
5443
|
-
e && !e[a] ? t[a] =
|
|
5450
|
+
const i = this.shape[a];
|
|
5451
|
+
e && !e[a] ? t[a] = i : t[a] = i.optional();
|
|
5444
5452
|
}), new w({
|
|
5445
5453
|
...this._def,
|
|
5446
5454
|
shape: () => t
|
|
@@ -5466,22 +5474,22 @@ class w extends v {
|
|
|
5466
5474
|
return Ae(b.objectKeys(this.shape));
|
|
5467
5475
|
}
|
|
5468
5476
|
}
|
|
5469
|
-
w.create = (
|
|
5470
|
-
shape: () =>
|
|
5477
|
+
w.create = (n, e) => new w({
|
|
5478
|
+
shape: () => n,
|
|
5471
5479
|
unknownKeys: "strip",
|
|
5472
5480
|
catchall: L.create(),
|
|
5473
5481
|
typeName: f.ZodObject,
|
|
5474
5482
|
...g(e)
|
|
5475
5483
|
});
|
|
5476
|
-
w.strictCreate = (
|
|
5477
|
-
shape: () =>
|
|
5484
|
+
w.strictCreate = (n, e) => new w({
|
|
5485
|
+
shape: () => n,
|
|
5478
5486
|
unknownKeys: "strict",
|
|
5479
5487
|
catchall: L.create(),
|
|
5480
5488
|
typeName: f.ZodObject,
|
|
5481
5489
|
...g(e)
|
|
5482
5490
|
});
|
|
5483
|
-
w.lazycreate = (
|
|
5484
|
-
shape:
|
|
5491
|
+
w.lazycreate = (n, e) => new w({
|
|
5492
|
+
shape: n,
|
|
5485
5493
|
unknownKeys: "strip",
|
|
5486
5494
|
catchall: L.create(),
|
|
5487
5495
|
typeName: f.ZodObject,
|
|
@@ -5490,7 +5498,7 @@ w.lazycreate = (i, e) => new w({
|
|
|
5490
5498
|
class Q extends v {
|
|
5491
5499
|
_parse(e) {
|
|
5492
5500
|
const { ctx: t } = this._processInputParams(e), a = this._def.options;
|
|
5493
|
-
function
|
|
5501
|
+
function i(r) {
|
|
5494
5502
|
for (const o of r)
|
|
5495
5503
|
if (o.result.status === "valid")
|
|
5496
5504
|
return o.result;
|
|
@@ -5521,7 +5529,7 @@ class Q extends v {
|
|
|
5521
5529
|
}),
|
|
5522
5530
|
ctx: s
|
|
5523
5531
|
};
|
|
5524
|
-
})).then(
|
|
5532
|
+
})).then(i);
|
|
5525
5533
|
{
|
|
5526
5534
|
let r;
|
|
5527
5535
|
const s = [];
|
|
@@ -5555,12 +5563,12 @@ class Q extends v {
|
|
|
5555
5563
|
return this._def.options;
|
|
5556
5564
|
}
|
|
5557
5565
|
}
|
|
5558
|
-
Q.create = (
|
|
5559
|
-
options:
|
|
5566
|
+
Q.create = (n, e) => new Q({
|
|
5567
|
+
options: n,
|
|
5560
5568
|
typeName: f.ZodUnion,
|
|
5561
5569
|
...g(e)
|
|
5562
5570
|
});
|
|
5563
|
-
const oe = (
|
|
5571
|
+
const oe = (n) => n instanceof ne ? oe(n.schema) : n instanceof I ? oe(n.innerType()) : n instanceof ae ? [n.value] : n instanceof Z ? n.options : n instanceof ie ? Object.keys(n.enum) : n instanceof re ? oe(n._def.innerType) : n instanceof X ? [void 0] : n instanceof K ? [null] : null;
|
|
5564
5572
|
class ge extends v {
|
|
5565
5573
|
_parse(e) {
|
|
5566
5574
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -5570,7 +5578,7 @@ class ge extends v {
|
|
|
5570
5578
|
expected: l.object,
|
|
5571
5579
|
received: t.parsedType
|
|
5572
5580
|
}), h;
|
|
5573
|
-
const a = this.discriminator,
|
|
5581
|
+
const a = this.discriminator, i = t.data[a], r = this.optionsMap.get(i);
|
|
5574
5582
|
return r ? t.common.async ? r._parseAsync({
|
|
5575
5583
|
data: t.data,
|
|
5576
5584
|
path: t.path,
|
|
@@ -5603,55 +5611,55 @@ class ge extends v {
|
|
|
5603
5611
|
* @param params
|
|
5604
5612
|
*/
|
|
5605
5613
|
static create(e, t, a) {
|
|
5606
|
-
const
|
|
5614
|
+
const i = /* @__PURE__ */ new Map();
|
|
5607
5615
|
for (const r of t) {
|
|
5608
5616
|
const s = oe(r.shape[e]);
|
|
5609
5617
|
if (!s)
|
|
5610
5618
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
5611
5619
|
for (const o of s) {
|
|
5612
|
-
if (
|
|
5620
|
+
if (i.has(o))
|
|
5613
5621
|
throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);
|
|
5614
|
-
|
|
5622
|
+
i.set(o, r);
|
|
5615
5623
|
}
|
|
5616
5624
|
}
|
|
5617
5625
|
return new ge({
|
|
5618
5626
|
typeName: f.ZodDiscriminatedUnion,
|
|
5619
5627
|
discriminator: e,
|
|
5620
5628
|
options: t,
|
|
5621
|
-
optionsMap:
|
|
5629
|
+
optionsMap: i,
|
|
5622
5630
|
...g(a)
|
|
5623
5631
|
});
|
|
5624
5632
|
}
|
|
5625
5633
|
}
|
|
5626
|
-
function Te(
|
|
5627
|
-
const t = j(
|
|
5628
|
-
if (
|
|
5629
|
-
return { valid: !0, data:
|
|
5634
|
+
function Te(n, e) {
|
|
5635
|
+
const t = j(n), a = j(e);
|
|
5636
|
+
if (n === e)
|
|
5637
|
+
return { valid: !0, data: n };
|
|
5630
5638
|
if (t === l.object && a === l.object) {
|
|
5631
|
-
const
|
|
5639
|
+
const i = b.objectKeys(e), r = b.objectKeys(n).filter((o) => i.indexOf(o) !== -1), s = { ...n, ...e };
|
|
5632
5640
|
for (const o of r) {
|
|
5633
|
-
const m = Te(
|
|
5641
|
+
const m = Te(n[o], e[o]);
|
|
5634
5642
|
if (!m.valid)
|
|
5635
5643
|
return { valid: !1 };
|
|
5636
5644
|
s[o] = m.data;
|
|
5637
5645
|
}
|
|
5638
5646
|
return { valid: !0, data: s };
|
|
5639
5647
|
} else if (t === l.array && a === l.array) {
|
|
5640
|
-
if (
|
|
5648
|
+
if (n.length !== e.length)
|
|
5641
5649
|
return { valid: !1 };
|
|
5642
|
-
const
|
|
5643
|
-
for (let r = 0; r <
|
|
5644
|
-
const s =
|
|
5650
|
+
const i = [];
|
|
5651
|
+
for (let r = 0; r < n.length; r++) {
|
|
5652
|
+
const s = n[r], o = e[r], m = Te(s, o);
|
|
5645
5653
|
if (!m.valid)
|
|
5646
5654
|
return { valid: !1 };
|
|
5647
|
-
|
|
5655
|
+
i.push(m.data);
|
|
5648
5656
|
}
|
|
5649
|
-
return { valid: !0, data:
|
|
5650
|
-
} else return t === l.date && a === l.date && +
|
|
5657
|
+
return { valid: !0, data: i };
|
|
5658
|
+
} else return t === l.date && a === l.date && +n == +e ? { valid: !0, data: n } : { valid: !1 };
|
|
5651
5659
|
}
|
|
5652
5660
|
class ee extends v {
|
|
5653
5661
|
_parse(e) {
|
|
5654
|
-
const { status: t, ctx: a } = this._processInputParams(e),
|
|
5662
|
+
const { status: t, ctx: a } = this._processInputParams(e), i = (r, s) => {
|
|
5655
5663
|
if (xe(r) || xe(s))
|
|
5656
5664
|
return h;
|
|
5657
5665
|
const o = Te(r.value, s.value);
|
|
@@ -5670,7 +5678,7 @@ class ee extends v {
|
|
|
5670
5678
|
path: a.path,
|
|
5671
5679
|
parent: a
|
|
5672
5680
|
})
|
|
5673
|
-
]).then(([r, s]) =>
|
|
5681
|
+
]).then(([r, s]) => i(r, s)) : i(this._def.left._parseSync({
|
|
5674
5682
|
data: a.data,
|
|
5675
5683
|
path: a.path,
|
|
5676
5684
|
parent: a
|
|
@@ -5681,8 +5689,8 @@ class ee extends v {
|
|
|
5681
5689
|
}));
|
|
5682
5690
|
}
|
|
5683
5691
|
}
|
|
5684
|
-
ee.create = (
|
|
5685
|
-
left:
|
|
5692
|
+
ee.create = (n, e, t) => new ee({
|
|
5693
|
+
left: n,
|
|
5686
5694
|
right: e,
|
|
5687
5695
|
typeName: f.ZodIntersection,
|
|
5688
5696
|
...g(t)
|
|
@@ -5713,7 +5721,7 @@ class N extends v {
|
|
|
5713
5721
|
}), t.dirty());
|
|
5714
5722
|
const r = [...a.data].map((s, o) => {
|
|
5715
5723
|
const m = this._def.items[o] || this._def.rest;
|
|
5716
|
-
return m ? m._parse(new
|
|
5724
|
+
return m ? m._parse(new M(a, s, a.path, o)) : null;
|
|
5717
5725
|
}).filter((s) => !!s);
|
|
5718
5726
|
return a.common.async ? Promise.all(r).then((s) => T.mergeArray(t, s)) : T.mergeArray(t, r);
|
|
5719
5727
|
}
|
|
@@ -5727,11 +5735,11 @@ class N extends v {
|
|
|
5727
5735
|
});
|
|
5728
5736
|
}
|
|
5729
5737
|
}
|
|
5730
|
-
N.create = (
|
|
5731
|
-
if (!Array.isArray(
|
|
5738
|
+
N.create = (n, e) => {
|
|
5739
|
+
if (!Array.isArray(n))
|
|
5732
5740
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
5733
5741
|
return new N({
|
|
5734
|
-
items:
|
|
5742
|
+
items: n,
|
|
5735
5743
|
typeName: f.ZodTuple,
|
|
5736
5744
|
rest: null,
|
|
5737
5745
|
...g(e)
|
|
@@ -5752,13 +5760,13 @@ class te extends v {
|
|
|
5752
5760
|
expected: l.object,
|
|
5753
5761
|
received: a.parsedType
|
|
5754
5762
|
}), h;
|
|
5755
|
-
const
|
|
5763
|
+
const i = [], r = this._def.keyType, s = this._def.valueType;
|
|
5756
5764
|
for (const o in a.data)
|
|
5757
|
-
|
|
5758
|
-
key: r._parse(new
|
|
5759
|
-
value: s._parse(new
|
|
5765
|
+
i.push({
|
|
5766
|
+
key: r._parse(new M(a, o, a.path, o)),
|
|
5767
|
+
value: s._parse(new M(a, a.data[o], a.path, o))
|
|
5760
5768
|
});
|
|
5761
|
-
return a.common.async ? T.mergeObjectAsync(t,
|
|
5769
|
+
return a.common.async ? T.mergeObjectAsync(t, i) : T.mergeObjectSync(t, i);
|
|
5762
5770
|
}
|
|
5763
5771
|
get element() {
|
|
5764
5772
|
return this._def.valueType;
|
|
@@ -5792,9 +5800,9 @@ class pe extends v {
|
|
|
5792
5800
|
expected: l.map,
|
|
5793
5801
|
received: a.parsedType
|
|
5794
5802
|
}), h;
|
|
5795
|
-
const
|
|
5796
|
-
key:
|
|
5797
|
-
value: r._parse(new
|
|
5803
|
+
const i = this._def.keyType, r = this._def.valueType, s = [...a.data.entries()].map(([o, m], d) => ({
|
|
5804
|
+
key: i._parse(new M(a, o, a.path, [d, "key"])),
|
|
5805
|
+
value: r._parse(new M(a, m, a.path, [d, "value"]))
|
|
5798
5806
|
}));
|
|
5799
5807
|
if (a.common.async) {
|
|
5800
5808
|
const o = /* @__PURE__ */ new Map();
|
|
@@ -5819,9 +5827,9 @@ class pe extends v {
|
|
|
5819
5827
|
}
|
|
5820
5828
|
}
|
|
5821
5829
|
}
|
|
5822
|
-
pe.create = (
|
|
5830
|
+
pe.create = (n, e, t) => new pe({
|
|
5823
5831
|
valueType: e,
|
|
5824
|
-
keyType:
|
|
5832
|
+
keyType: n,
|
|
5825
5833
|
typeName: f.ZodMap,
|
|
5826
5834
|
...g(t)
|
|
5827
5835
|
});
|
|
@@ -5834,21 +5842,21 @@ class U extends v {
|
|
|
5834
5842
|
expected: l.set,
|
|
5835
5843
|
received: a.parsedType
|
|
5836
5844
|
}), h;
|
|
5837
|
-
const
|
|
5838
|
-
|
|
5845
|
+
const i = this._def;
|
|
5846
|
+
i.minSize !== null && a.data.size < i.minSize.value && (u(a, {
|
|
5839
5847
|
code: c.too_small,
|
|
5840
|
-
minimum:
|
|
5848
|
+
minimum: i.minSize.value,
|
|
5841
5849
|
type: "set",
|
|
5842
5850
|
inclusive: !0,
|
|
5843
5851
|
exact: !1,
|
|
5844
|
-
message:
|
|
5845
|
-
}), t.dirty()),
|
|
5852
|
+
message: i.minSize.message
|
|
5853
|
+
}), t.dirty()), i.maxSize !== null && a.data.size > i.maxSize.value && (u(a, {
|
|
5846
5854
|
code: c.too_big,
|
|
5847
|
-
maximum:
|
|
5855
|
+
maximum: i.maxSize.value,
|
|
5848
5856
|
type: "set",
|
|
5849
5857
|
inclusive: !0,
|
|
5850
5858
|
exact: !1,
|
|
5851
|
-
message:
|
|
5859
|
+
message: i.maxSize.message
|
|
5852
5860
|
}), t.dirty());
|
|
5853
5861
|
const r = this._def.valueType;
|
|
5854
5862
|
function s(m) {
|
|
@@ -5860,7 +5868,7 @@ class U extends v {
|
|
|
5860
5868
|
}
|
|
5861
5869
|
return { status: t.value, value: d };
|
|
5862
5870
|
}
|
|
5863
|
-
const o = [...a.data.values()].map((m, d) => r._parse(new
|
|
5871
|
+
const o = [...a.data.values()].map((m, d) => r._parse(new M(a, m, a.path, d)));
|
|
5864
5872
|
return a.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
|
|
5865
5873
|
}
|
|
5866
5874
|
min(e, t) {
|
|
@@ -5882,8 +5890,8 @@ class U extends v {
|
|
|
5882
5890
|
return this.min(1, e);
|
|
5883
5891
|
}
|
|
5884
5892
|
}
|
|
5885
|
-
U.create = (
|
|
5886
|
-
valueType:
|
|
5893
|
+
U.create = (n, e) => new U({
|
|
5894
|
+
valueType: n,
|
|
5887
5895
|
minSize: null,
|
|
5888
5896
|
maxSize: null,
|
|
5889
5897
|
typeName: f.ZodSet,
|
|
@@ -5917,7 +5925,7 @@ class z extends v {
|
|
|
5917
5925
|
}
|
|
5918
5926
|
});
|
|
5919
5927
|
}
|
|
5920
|
-
function
|
|
5928
|
+
function i(o, m) {
|
|
5921
5929
|
return de({
|
|
5922
5930
|
data: o,
|
|
5923
5931
|
path: t.path,
|
|
@@ -5941,7 +5949,7 @@ class z extends v {
|
|
|
5941
5949
|
throw d.addIssue(a(m, ve)), d;
|
|
5942
5950
|
}), S = await Reflect.apply(s, this, y);
|
|
5943
5951
|
return await o._def.returns._def.type.parseAsync(S, r).catch((ve) => {
|
|
5944
|
-
throw d.addIssue(
|
|
5952
|
+
throw d.addIssue(i(S, ve)), d;
|
|
5945
5953
|
});
|
|
5946
5954
|
});
|
|
5947
5955
|
} else {
|
|
@@ -5952,7 +5960,7 @@ class z extends v {
|
|
|
5952
5960
|
throw new E([a(m, d.error)]);
|
|
5953
5961
|
const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y, r);
|
|
5954
5962
|
if (!S.success)
|
|
5955
|
-
throw new E([
|
|
5963
|
+
throw new E([i(y, S.error)]);
|
|
5956
5964
|
return S.data;
|
|
5957
5965
|
});
|
|
5958
5966
|
}
|
|
@@ -5966,7 +5974,7 @@ class z extends v {
|
|
|
5966
5974
|
args(...e) {
|
|
5967
5975
|
return new z({
|
|
5968
5976
|
...this._def,
|
|
5969
|
-
args: N.create(e).rest(
|
|
5977
|
+
args: N.create(e).rest(V.create())
|
|
5970
5978
|
});
|
|
5971
5979
|
}
|
|
5972
5980
|
returns(e) {
|
|
@@ -5983,14 +5991,14 @@ class z extends v {
|
|
|
5983
5991
|
}
|
|
5984
5992
|
static create(e, t, a) {
|
|
5985
5993
|
return new z({
|
|
5986
|
-
args: e || N.create([]).rest(
|
|
5987
|
-
returns: t ||
|
|
5994
|
+
args: e || N.create([]).rest(V.create()),
|
|
5995
|
+
returns: t || V.create(),
|
|
5988
5996
|
typeName: f.ZodFunction,
|
|
5989
5997
|
...g(a)
|
|
5990
5998
|
});
|
|
5991
5999
|
}
|
|
5992
6000
|
}
|
|
5993
|
-
class
|
|
6001
|
+
class ne extends v {
|
|
5994
6002
|
get schema() {
|
|
5995
6003
|
return this._def.getter();
|
|
5996
6004
|
}
|
|
@@ -5999,8 +6007,8 @@ class ie extends v {
|
|
|
5999
6007
|
return this._def.getter()._parse({ data: t.data, path: t.path, parent: t });
|
|
6000
6008
|
}
|
|
6001
6009
|
}
|
|
6002
|
-
|
|
6003
|
-
getter:
|
|
6010
|
+
ne.create = (n, e) => new ne({
|
|
6011
|
+
getter: n,
|
|
6004
6012
|
typeName: f.ZodLazy,
|
|
6005
6013
|
...g(e)
|
|
6006
6014
|
});
|
|
@@ -6020,19 +6028,19 @@ class ae extends v {
|
|
|
6020
6028
|
return this._def.value;
|
|
6021
6029
|
}
|
|
6022
6030
|
}
|
|
6023
|
-
ae.create = (
|
|
6024
|
-
value:
|
|
6031
|
+
ae.create = (n, e) => new ae({
|
|
6032
|
+
value: n,
|
|
6025
6033
|
typeName: f.ZodLiteral,
|
|
6026
6034
|
...g(e)
|
|
6027
6035
|
});
|
|
6028
|
-
function Ae(
|
|
6029
|
-
return new
|
|
6030
|
-
values:
|
|
6036
|
+
function Ae(n, e) {
|
|
6037
|
+
return new Z({
|
|
6038
|
+
values: n,
|
|
6031
6039
|
typeName: f.ZodEnum,
|
|
6032
6040
|
...g(e)
|
|
6033
6041
|
});
|
|
6034
6042
|
}
|
|
6035
|
-
class
|
|
6043
|
+
class Z extends v {
|
|
6036
6044
|
_parse(e) {
|
|
6037
6045
|
if (typeof e.data != "string") {
|
|
6038
6046
|
const t = this._getOrReturnCtx(e), a = this._def.values;
|
|
@@ -6074,30 +6082,30 @@ class V extends v {
|
|
|
6074
6082
|
return e;
|
|
6075
6083
|
}
|
|
6076
6084
|
extract(e) {
|
|
6077
|
-
return
|
|
6085
|
+
return Z.create(e);
|
|
6078
6086
|
}
|
|
6079
6087
|
exclude(e) {
|
|
6080
|
-
return
|
|
6088
|
+
return Z.create(this.options.filter((t) => !e.includes(t)));
|
|
6081
6089
|
}
|
|
6082
6090
|
}
|
|
6083
|
-
|
|
6084
|
-
class
|
|
6091
|
+
Z.create = Ae;
|
|
6092
|
+
class ie extends v {
|
|
6085
6093
|
_parse(e) {
|
|
6086
6094
|
const t = b.getValidEnumValues(this._def.values), a = this._getOrReturnCtx(e);
|
|
6087
6095
|
if (a.parsedType !== l.string && a.parsedType !== l.number) {
|
|
6088
|
-
const
|
|
6096
|
+
const i = b.objectValues(t);
|
|
6089
6097
|
return u(a, {
|
|
6090
|
-
expected: b.joinValues(
|
|
6098
|
+
expected: b.joinValues(i),
|
|
6091
6099
|
received: a.parsedType,
|
|
6092
6100
|
code: c.invalid_type
|
|
6093
6101
|
}), h;
|
|
6094
6102
|
}
|
|
6095
6103
|
if (t.indexOf(e.data) === -1) {
|
|
6096
|
-
const
|
|
6104
|
+
const i = b.objectValues(t);
|
|
6097
6105
|
return u(a, {
|
|
6098
6106
|
received: a.data,
|
|
6099
6107
|
code: c.invalid_enum_value,
|
|
6100
|
-
options:
|
|
6108
|
+
options: i
|
|
6101
6109
|
}), h;
|
|
6102
6110
|
}
|
|
6103
6111
|
return C(e.data);
|
|
@@ -6106,8 +6114,8 @@ class ne extends v {
|
|
|
6106
6114
|
return this._def.values;
|
|
6107
6115
|
}
|
|
6108
6116
|
}
|
|
6109
|
-
|
|
6110
|
-
values:
|
|
6117
|
+
ie.create = (n, e) => new ie({
|
|
6118
|
+
values: n,
|
|
6111
6119
|
typeName: f.ZodNativeEnum,
|
|
6112
6120
|
...g(e)
|
|
6113
6121
|
});
|
|
@@ -6124,18 +6132,18 @@ class Y extends v {
|
|
|
6124
6132
|
received: t.parsedType
|
|
6125
6133
|
}), h;
|
|
6126
6134
|
const a = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
|
|
6127
|
-
return C(a.then((
|
|
6135
|
+
return C(a.then((i) => this._def.type.parseAsync(i, {
|
|
6128
6136
|
path: t.path,
|
|
6129
6137
|
errorMap: t.common.contextualErrorMap
|
|
6130
6138
|
})));
|
|
6131
6139
|
}
|
|
6132
6140
|
}
|
|
6133
|
-
Y.create = (
|
|
6134
|
-
type:
|
|
6141
|
+
Y.create = (n, e) => new Y({
|
|
6142
|
+
type: n,
|
|
6135
6143
|
typeName: f.ZodPromise,
|
|
6136
6144
|
...g(e)
|
|
6137
6145
|
});
|
|
6138
|
-
class
|
|
6146
|
+
class I extends v {
|
|
6139
6147
|
innerType() {
|
|
6140
6148
|
return this._def.schema;
|
|
6141
6149
|
}
|
|
@@ -6143,7 +6151,7 @@ class M extends v {
|
|
|
6143
6151
|
return this._def.schema._def.typeName === f.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
6144
6152
|
}
|
|
6145
6153
|
_parse(e) {
|
|
6146
|
-
const { status: t, ctx: a } = this._processInputParams(e),
|
|
6154
|
+
const { status: t, ctx: a } = this._processInputParams(e), i = this._def.effect || null, r = {
|
|
6147
6155
|
addIssue: (s) => {
|
|
6148
6156
|
u(a, s), s.fatal ? t.abort() : t.dirty();
|
|
6149
6157
|
},
|
|
@@ -6151,8 +6159,8 @@ class M extends v {
|
|
|
6151
6159
|
return a.path;
|
|
6152
6160
|
}
|
|
6153
6161
|
};
|
|
6154
|
-
if (r.addIssue = r.addIssue.bind(r),
|
|
6155
|
-
const s =
|
|
6162
|
+
if (r.addIssue = r.addIssue.bind(r), i.type === "preprocess") {
|
|
6163
|
+
const s = i.transform(a.data, r);
|
|
6156
6164
|
return a.common.issues.length ? {
|
|
6157
6165
|
status: "dirty",
|
|
6158
6166
|
value: a.data
|
|
@@ -6166,9 +6174,9 @@ class M extends v {
|
|
|
6166
6174
|
parent: a
|
|
6167
6175
|
});
|
|
6168
6176
|
}
|
|
6169
|
-
if (
|
|
6177
|
+
if (i.type === "refinement") {
|
|
6170
6178
|
const s = (o) => {
|
|
6171
|
-
const m =
|
|
6179
|
+
const m = i.refinement(o, r);
|
|
6172
6180
|
if (a.common.async)
|
|
6173
6181
|
return Promise.resolve(m);
|
|
6174
6182
|
if (m instanceof Promise)
|
|
@@ -6185,7 +6193,7 @@ class M extends v {
|
|
|
6185
6193
|
} else
|
|
6186
6194
|
return this._def.schema._parseAsync({ data: a.data, path: a.path, parent: a }).then((o) => o.status === "aborted" ? h : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
|
|
6187
6195
|
}
|
|
6188
|
-
if (
|
|
6196
|
+
if (i.type === "transform")
|
|
6189
6197
|
if (a.common.async === !1) {
|
|
6190
6198
|
const s = this._def.schema._parseSync({
|
|
6191
6199
|
data: a.data,
|
|
@@ -6194,24 +6202,24 @@ class M extends v {
|
|
|
6194
6202
|
});
|
|
6195
6203
|
if (!H(s))
|
|
6196
6204
|
return s;
|
|
6197
|
-
const o =
|
|
6205
|
+
const o = i.transform(s.value, r);
|
|
6198
6206
|
if (o instanceof Promise)
|
|
6199
6207
|
throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
6200
6208
|
return { status: t.value, value: o };
|
|
6201
6209
|
} else
|
|
6202
|
-
return this._def.schema._parseAsync({ data: a.data, path: a.path, parent: a }).then((s) => H(s) ? Promise.resolve(
|
|
6203
|
-
b.assertNever(
|
|
6210
|
+
return this._def.schema._parseAsync({ data: a.data, path: a.path, parent: a }).then((s) => H(s) ? Promise.resolve(i.transform(s.value, r)).then((o) => ({ status: t.value, value: o })) : s);
|
|
6211
|
+
b.assertNever(i);
|
|
6204
6212
|
}
|
|
6205
6213
|
}
|
|
6206
|
-
|
|
6207
|
-
schema:
|
|
6214
|
+
I.create = (n, e, t) => new I({
|
|
6215
|
+
schema: n,
|
|
6208
6216
|
typeName: f.ZodEffects,
|
|
6209
6217
|
effect: e,
|
|
6210
6218
|
...g(t)
|
|
6211
6219
|
});
|
|
6212
|
-
|
|
6220
|
+
I.createWithPreprocess = (n, e, t) => new I({
|
|
6213
6221
|
schema: e,
|
|
6214
|
-
effect: { type: "preprocess", transform:
|
|
6222
|
+
effect: { type: "preprocess", transform: n },
|
|
6215
6223
|
typeName: f.ZodEffects,
|
|
6216
6224
|
...g(t)
|
|
6217
6225
|
});
|
|
@@ -6223,8 +6231,8 @@ class P extends v {
|
|
|
6223
6231
|
return this._def.innerType;
|
|
6224
6232
|
}
|
|
6225
6233
|
}
|
|
6226
|
-
P.create = (
|
|
6227
|
-
innerType:
|
|
6234
|
+
P.create = (n, e) => new P({
|
|
6235
|
+
innerType: n,
|
|
6228
6236
|
typeName: f.ZodOptional,
|
|
6229
6237
|
...g(e)
|
|
6230
6238
|
});
|
|
@@ -6236,8 +6244,8 @@ class q extends v {
|
|
|
6236
6244
|
return this._def.innerType;
|
|
6237
6245
|
}
|
|
6238
6246
|
}
|
|
6239
|
-
q.create = (
|
|
6240
|
-
innerType:
|
|
6247
|
+
q.create = (n, e) => new q({
|
|
6248
|
+
innerType: n,
|
|
6241
6249
|
typeName: f.ZodNullable,
|
|
6242
6250
|
...g(e)
|
|
6243
6251
|
});
|
|
@@ -6255,8 +6263,8 @@ class re extends v {
|
|
|
6255
6263
|
return this._def.innerType;
|
|
6256
6264
|
}
|
|
6257
6265
|
}
|
|
6258
|
-
re.create = (
|
|
6259
|
-
innerType:
|
|
6266
|
+
re.create = (n, e) => new re({
|
|
6267
|
+
innerType: n,
|
|
6260
6268
|
typeName: f.ZodDefault,
|
|
6261
6269
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
6262
6270
|
...g(e)
|
|
@@ -6269,14 +6277,14 @@ class fe extends v {
|
|
|
6269
6277
|
...t.common,
|
|
6270
6278
|
issues: []
|
|
6271
6279
|
}
|
|
6272
|
-
},
|
|
6280
|
+
}, i = this._def.innerType._parse({
|
|
6273
6281
|
data: a.data,
|
|
6274
6282
|
path: a.path,
|
|
6275
6283
|
parent: {
|
|
6276
6284
|
...a
|
|
6277
6285
|
}
|
|
6278
6286
|
});
|
|
6279
|
-
return le(
|
|
6287
|
+
return le(i) ? i.then((r) => ({
|
|
6280
6288
|
status: "valid",
|
|
6281
6289
|
value: r.status === "valid" ? r.value : this._def.catchValue({
|
|
6282
6290
|
get error() {
|
|
@@ -6286,7 +6294,7 @@ class fe extends v {
|
|
|
6286
6294
|
})
|
|
6287
6295
|
})) : {
|
|
6288
6296
|
status: "valid",
|
|
6289
|
-
value:
|
|
6297
|
+
value: i.status === "valid" ? i.value : this._def.catchValue({
|
|
6290
6298
|
get error() {
|
|
6291
6299
|
return new E(a.common.issues);
|
|
6292
6300
|
},
|
|
@@ -6298,8 +6306,8 @@ class fe extends v {
|
|
|
6298
6306
|
return this._def.innerType;
|
|
6299
6307
|
}
|
|
6300
6308
|
}
|
|
6301
|
-
fe.create = (
|
|
6302
|
-
innerType:
|
|
6309
|
+
fe.create = (n, e) => new fe({
|
|
6310
|
+
innerType: n,
|
|
6303
6311
|
typeName: f.ZodCatch,
|
|
6304
6312
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
6305
6313
|
...g(e)
|
|
@@ -6317,9 +6325,9 @@ class he extends v {
|
|
|
6317
6325
|
return { status: "valid", value: e.data };
|
|
6318
6326
|
}
|
|
6319
6327
|
}
|
|
6320
|
-
he.create = (
|
|
6328
|
+
he.create = (n) => new he({
|
|
6321
6329
|
typeName: f.ZodNaN,
|
|
6322
|
-
...g(
|
|
6330
|
+
...g(n)
|
|
6323
6331
|
});
|
|
6324
6332
|
const ct = Symbol("zod_brand");
|
|
6325
6333
|
class Ee extends v {
|
|
@@ -6352,16 +6360,16 @@ class se extends v {
|
|
|
6352
6360
|
});
|
|
6353
6361
|
})();
|
|
6354
6362
|
{
|
|
6355
|
-
const
|
|
6363
|
+
const i = this._def.in._parseSync({
|
|
6356
6364
|
data: a.data,
|
|
6357
6365
|
path: a.path,
|
|
6358
6366
|
parent: a
|
|
6359
6367
|
});
|
|
6360
|
-
return
|
|
6368
|
+
return i.status === "aborted" ? h : i.status === "dirty" ? (t.dirty(), {
|
|
6361
6369
|
status: "dirty",
|
|
6362
|
-
value:
|
|
6370
|
+
value: i.value
|
|
6363
6371
|
}) : this._def.out._parseSync({
|
|
6364
|
-
data:
|
|
6372
|
+
data: i.value,
|
|
6365
6373
|
path: a.path,
|
|
6366
6374
|
parent: a
|
|
6367
6375
|
});
|
|
@@ -6381,35 +6389,35 @@ class _e extends v {
|
|
|
6381
6389
|
return H(t) && (t.value = Object.freeze(t.value)), t;
|
|
6382
6390
|
}
|
|
6383
6391
|
}
|
|
6384
|
-
_e.create = (
|
|
6385
|
-
innerType:
|
|
6392
|
+
_e.create = (n, e) => new _e({
|
|
6393
|
+
innerType: n,
|
|
6386
6394
|
typeName: f.ZodReadonly,
|
|
6387
6395
|
...g(e)
|
|
6388
6396
|
});
|
|
6389
|
-
const Oe = (
|
|
6397
|
+
const Oe = (n, e = {}, t) => n ? W.create().superRefine((a, i) => {
|
|
6390
6398
|
var r, s;
|
|
6391
|
-
if (!
|
|
6399
|
+
if (!n(a)) {
|
|
6392
6400
|
const o = typeof e == "function" ? e(a) : 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;
|
|
6393
|
-
|
|
6401
|
+
i.addIssue({ code: "custom", ...d, fatal: m });
|
|
6394
6402
|
}
|
|
6395
6403
|
}) : W.create(), dt = {
|
|
6396
6404
|
object: w.lazycreate
|
|
6397
6405
|
};
|
|
6398
6406
|
var f;
|
|
6399
|
-
(function(
|
|
6400
|
-
|
|
6407
|
+
(function(n) {
|
|
6408
|
+
n.ZodString = "ZodString", n.ZodNumber = "ZodNumber", n.ZodNaN = "ZodNaN", n.ZodBigInt = "ZodBigInt", n.ZodBoolean = "ZodBoolean", n.ZodDate = "ZodDate", n.ZodSymbol = "ZodSymbol", n.ZodUndefined = "ZodUndefined", n.ZodNull = "ZodNull", n.ZodAny = "ZodAny", n.ZodUnknown = "ZodUnknown", n.ZodNever = "ZodNever", n.ZodVoid = "ZodVoid", n.ZodArray = "ZodArray", n.ZodObject = "ZodObject", n.ZodUnion = "ZodUnion", n.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", n.ZodIntersection = "ZodIntersection", n.ZodTuple = "ZodTuple", n.ZodRecord = "ZodRecord", n.ZodMap = "ZodMap", n.ZodSet = "ZodSet", n.ZodFunction = "ZodFunction", n.ZodLazy = "ZodLazy", n.ZodLiteral = "ZodLiteral", n.ZodEnum = "ZodEnum", n.ZodEffects = "ZodEffects", n.ZodNativeEnum = "ZodNativeEnum", n.ZodOptional = "ZodOptional", n.ZodNullable = "ZodNullable", n.ZodDefault = "ZodDefault", n.ZodCatch = "ZodCatch", n.ZodPromise = "ZodPromise", n.ZodBranded = "ZodBranded", n.ZodPipeline = "ZodPipeline", n.ZodReadonly = "ZodReadonly";
|
|
6401
6409
|
})(f || (f = {}));
|
|
6402
|
-
const lt = (
|
|
6403
|
-
message: `Input not instance of ${
|
|
6404
|
-
}) => Oe((t) => t instanceof
|
|
6405
|
-
string: (
|
|
6406
|
-
number: (
|
|
6407
|
-
boolean: (
|
|
6408
|
-
...
|
|
6410
|
+
const lt = (n, e = {
|
|
6411
|
+
message: `Input not instance of ${n.name}`
|
|
6412
|
+
}) => Oe((t) => t instanceof n, e), Ie = A.create, Me = D.create, ut = he.create, mt = B.create, Ne = J.create, pt = $.create, ft = ue.create, ht = X.create, _t = K.create, gt = W.create, vt = V.create, yt = L.create, bt = me.create, xt = O.create, wt = w.create, Tt = w.strictCreate, Ct = Q.create, Rt = ge.create, kt = ee.create, St = N.create, At = te.create, Et = pe.create, Ot = U.create, It = z.create, Mt = ne.create, Nt = ae.create, Pt = Z.create, Lt = ie.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 = {
|
|
6413
|
+
string: (n) => A.create({ ...n, coerce: !0 }),
|
|
6414
|
+
number: (n) => D.create({ ...n, coerce: !0 }),
|
|
6415
|
+
boolean: (n) => J.create({
|
|
6416
|
+
...n,
|
|
6409
6417
|
coerce: !0
|
|
6410
6418
|
}),
|
|
6411
|
-
bigint: (
|
|
6412
|
-
date: (
|
|
6419
|
+
bigint: (n) => B.create({ ...n, coerce: !0 }),
|
|
6420
|
+
date: (n) => $.create({ ...n, coerce: !0 })
|
|
6413
6421
|
}, zt = h;
|
|
6414
6422
|
var Wt = /* @__PURE__ */ Object.freeze({
|
|
6415
6423
|
__proto__: null,
|
|
@@ -6438,14 +6446,14 @@ var Wt = /* @__PURE__ */ Object.freeze({
|
|
|
6438
6446
|
ZodType: v,
|
|
6439
6447
|
ZodString: A,
|
|
6440
6448
|
ZodNumber: D,
|
|
6441
|
-
ZodBigInt:
|
|
6449
|
+
ZodBigInt: B,
|
|
6442
6450
|
ZodBoolean: J,
|
|
6443
6451
|
ZodDate: $,
|
|
6444
6452
|
ZodSymbol: ue,
|
|
6445
6453
|
ZodUndefined: X,
|
|
6446
6454
|
ZodNull: K,
|
|
6447
6455
|
ZodAny: W,
|
|
6448
|
-
ZodUnknown:
|
|
6456
|
+
ZodUnknown: V,
|
|
6449
6457
|
ZodNever: L,
|
|
6450
6458
|
ZodVoid: me,
|
|
6451
6459
|
ZodArray: O,
|
|
@@ -6458,13 +6466,13 @@ var Wt = /* @__PURE__ */ Object.freeze({
|
|
|
6458
6466
|
ZodMap: pe,
|
|
6459
6467
|
ZodSet: U,
|
|
6460
6468
|
ZodFunction: z,
|
|
6461
|
-
ZodLazy:
|
|
6469
|
+
ZodLazy: ne,
|
|
6462
6470
|
ZodLiteral: ae,
|
|
6463
|
-
ZodEnum:
|
|
6464
|
-
ZodNativeEnum:
|
|
6471
|
+
ZodEnum: Z,
|
|
6472
|
+
ZodNativeEnum: ie,
|
|
6465
6473
|
ZodPromise: Y,
|
|
6466
|
-
ZodEffects:
|
|
6467
|
-
ZodTransformer:
|
|
6474
|
+
ZodEffects: I,
|
|
6475
|
+
ZodTransformer: I,
|
|
6468
6476
|
ZodOptional: P,
|
|
6469
6477
|
ZodNullable: q,
|
|
6470
6478
|
ZodDefault: re,
|
|
@@ -6490,30 +6498,30 @@ var Wt = /* @__PURE__ */ Object.freeze({
|
|
|
6490
6498
|
discriminatedUnion: Rt,
|
|
6491
6499
|
effect: Re,
|
|
6492
6500
|
enum: Pt,
|
|
6493
|
-
function:
|
|
6501
|
+
function: It,
|
|
6494
6502
|
instanceof: lt,
|
|
6495
6503
|
intersection: kt,
|
|
6496
|
-
lazy:
|
|
6504
|
+
lazy: Mt,
|
|
6497
6505
|
literal: Nt,
|
|
6498
6506
|
map: Et,
|
|
6499
6507
|
nan: ut,
|
|
6500
6508
|
nativeEnum: Lt,
|
|
6501
6509
|
never: yt,
|
|
6502
6510
|
null: _t,
|
|
6503
|
-
nullable:
|
|
6504
|
-
number:
|
|
6511
|
+
nullable: Bt,
|
|
6512
|
+
number: Me,
|
|
6505
6513
|
object: wt,
|
|
6506
6514
|
oboolean: qt,
|
|
6507
6515
|
onumber: Ut,
|
|
6508
6516
|
optional: Dt,
|
|
6509
6517
|
ostring: $t,
|
|
6510
|
-
pipeline:
|
|
6511
|
-
preprocess:
|
|
6518
|
+
pipeline: Vt,
|
|
6519
|
+
preprocess: Zt,
|
|
6512
6520
|
promise: jt,
|
|
6513
6521
|
record: At,
|
|
6514
6522
|
set: Ot,
|
|
6515
6523
|
strictObject: Tt,
|
|
6516
|
-
string:
|
|
6524
|
+
string: Ie,
|
|
6517
6525
|
symbol: ft,
|
|
6518
6526
|
transformer: Re,
|
|
6519
6527
|
tuple: St,
|
|
@@ -6560,7 +6568,7 @@ const Yt = [
|
|
|
6560
6568
|
"REFERRAL_RECORD",
|
|
6561
6569
|
"REWARD_TEMPLATE",
|
|
6562
6570
|
"BIN"
|
|
6563
|
-
].map((
|
|
6571
|
+
].map((n) => `$connect-${n}`), Ft = Wt.enum(Yt), _ = Ft.Enum, Kt = [
|
|
6564
6572
|
{
|
|
6565
6573
|
path: "",
|
|
6566
6574
|
name: _["$connect-DASHBOARD"],
|
|
@@ -6574,7 +6582,7 @@ const Yt = [
|
|
|
6574
6582
|
{
|
|
6575
6583
|
path: "/analytic",
|
|
6576
6584
|
name: _["$connect-ANALYTIC"],
|
|
6577
|
-
component: R(k(() => import("./Analytic-
|
|
6585
|
+
component: R(k(() => import("./Analytic-D2C1umnp.js"))),
|
|
6578
6586
|
meta: {
|
|
6579
6587
|
validationManifest: {
|
|
6580
6588
|
requiredCaslPermissions: [
|
|
@@ -6597,7 +6605,7 @@ const Yt = [
|
|
|
6597
6605
|
{
|
|
6598
6606
|
path: "/campaign/promotion",
|
|
6599
6607
|
name: _["$connect-CAMPAIGN_PROMOTION"],
|
|
6600
|
-
component: R(k(() => import("./Promotion-
|
|
6608
|
+
component: R(k(() => import("./Promotion-CeS8Bo2B.js"))),
|
|
6601
6609
|
meta: {
|
|
6602
6610
|
validationManifest: {
|
|
6603
6611
|
requiredCaslPermissions: [
|
|
@@ -6616,7 +6624,7 @@ const Yt = [
|
|
|
6616
6624
|
{
|
|
6617
6625
|
path: "/campaign/voucher",
|
|
6618
6626
|
name: _["$connect-CAMPAIGN_VOUCHER"],
|
|
6619
|
-
component: R(k(() => import("./Voucher-
|
|
6627
|
+
component: R(k(() => import("./Voucher-BXJ0OJgO.js"))),
|
|
6620
6628
|
meta: {
|
|
6621
6629
|
validationManifest: {
|
|
6622
6630
|
requiredCaslPermissions: [
|
|
@@ -6631,7 +6639,7 @@ const Yt = [
|
|
|
6631
6639
|
{
|
|
6632
6640
|
path: "/campaign/voucher/:id/collections",
|
|
6633
6641
|
name: _["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
6634
|
-
component: R(k(() => import("./Collections-
|
|
6642
|
+
component: R(k(() => import("./Collections-DMFwhRvv.js"))),
|
|
6635
6643
|
meta: {
|
|
6636
6644
|
validationManifest: {
|
|
6637
6645
|
requiredCaslPermissions: [
|
|
@@ -6648,7 +6656,7 @@ const Yt = [
|
|
|
6648
6656
|
{
|
|
6649
6657
|
path: "/campaign/broadcast",
|
|
6650
6658
|
name: _["$connect-CAMPAIGN_BROADCAST"],
|
|
6651
|
-
component: R(k(() => import("./Broadcast-
|
|
6659
|
+
component: R(k(() => import("./Broadcast-RlU_LuTW.js"))),
|
|
6652
6660
|
meta: {
|
|
6653
6661
|
validationManifest: {
|
|
6654
6662
|
requiredCaslPermissions: [
|
|
@@ -6682,37 +6690,37 @@ const Yt = [
|
|
|
6682
6690
|
{
|
|
6683
6691
|
path: "/program/tier",
|
|
6684
6692
|
name: _["$connect-PROGRAM_TIER"],
|
|
6685
|
-
component: () => import("./Tier-
|
|
6693
|
+
component: () => import("./Tier-D0JGIIAr.js")
|
|
6686
6694
|
},
|
|
6687
6695
|
{
|
|
6688
6696
|
path: "/program/title",
|
|
6689
6697
|
name: _["$connect-PROGRAM_TITLE"],
|
|
6690
|
-
component: () => import("./Title-
|
|
6698
|
+
component: () => import("./Title-o2okd22C.js")
|
|
6691
6699
|
},
|
|
6692
6700
|
{
|
|
6693
6701
|
path: "/program/experience",
|
|
6694
6702
|
name: _["$connect-PROGRAM_EXPERIENCE"],
|
|
6695
|
-
component: () => import("./Experience-
|
|
6703
|
+
component: () => import("./Experience-26IxQ5dN.js")
|
|
6696
6704
|
},
|
|
6697
6705
|
{
|
|
6698
6706
|
path: "/program/point",
|
|
6699
6707
|
name: _["$connect-PROGRAM_POINT"],
|
|
6700
|
-
component: () => import("./Point-
|
|
6708
|
+
component: () => import("./Point-BV2zKyel.js")
|
|
6701
6709
|
},
|
|
6702
6710
|
{
|
|
6703
6711
|
path: "/program/credit",
|
|
6704
6712
|
name: _["$connect-PROGRAM_CREDIT"],
|
|
6705
|
-
component: () => import("./Credit-
|
|
6713
|
+
component: () => import("./Credit-CaWgTZaC.js")
|
|
6706
6714
|
},
|
|
6707
6715
|
{
|
|
6708
6716
|
path: "/program/game",
|
|
6709
6717
|
name: _["$connect-PROGRAM_GAME"],
|
|
6710
|
-
component: () => import("./Game-
|
|
6718
|
+
component: () => import("./Game-DUZJczoK.js")
|
|
6711
6719
|
},
|
|
6712
6720
|
{
|
|
6713
6721
|
path: "mission",
|
|
6714
6722
|
name: _["$connect-PROGRAM_MISSION"],
|
|
6715
|
-
component: () => import("./Mission-
|
|
6723
|
+
component: () => import("./Mission-CIERTSAz.js")
|
|
6716
6724
|
}
|
|
6717
6725
|
]
|
|
6718
6726
|
},
|
|
@@ -6735,7 +6743,7 @@ const Yt = [
|
|
|
6735
6743
|
{
|
|
6736
6744
|
path: "/loyalty/member",
|
|
6737
6745
|
name: _["$connect-LOYALTY_MEMBER"],
|
|
6738
|
-
component: () => import("./Member-
|
|
6746
|
+
component: () => import("./Member-DnNQ7wE5.js"),
|
|
6739
6747
|
redirect: {
|
|
6740
6748
|
name: _["$connect-LOYALTY_MEMBER_OVERVIEW"]
|
|
6741
6749
|
},
|
|
@@ -6748,24 +6756,24 @@ const Yt = [
|
|
|
6748
6756
|
{
|
|
6749
6757
|
path: "/loyalty/member/list",
|
|
6750
6758
|
name: _["$connect-LOYALTY_MEMBER_LIST"],
|
|
6751
|
-
component: () => import("./MemberList-
|
|
6759
|
+
component: () => import("./MemberList-Dlt3KgbM.js")
|
|
6752
6760
|
},
|
|
6753
6761
|
{
|
|
6754
6762
|
path: "/loyalty/member/transactions/:id",
|
|
6755
6763
|
name: _["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
|
|
6756
|
-
component: () => import("./MemberTransactions-
|
|
6764
|
+
component: () => import("./MemberTransactions-Dp3wUYaR.js")
|
|
6757
6765
|
}
|
|
6758
6766
|
]
|
|
6759
6767
|
},
|
|
6760
6768
|
{
|
|
6761
6769
|
path: "/loyalty/segment",
|
|
6762
6770
|
name: _["$connect-LOYALTY_SEGMENT"],
|
|
6763
|
-
component: () => import("./Segment-
|
|
6771
|
+
component: () => import("./Segment-B8KsOfJx.js")
|
|
6764
6772
|
},
|
|
6765
6773
|
{
|
|
6766
6774
|
path: "/loyalty/card",
|
|
6767
6775
|
name: _["$connect-LOYALTY_CARD"],
|
|
6768
|
-
component: () => import("./Card-
|
|
6776
|
+
component: () => import("./Card-BKYRMdpM.js")
|
|
6769
6777
|
}
|
|
6770
6778
|
]
|
|
6771
6779
|
},
|
|
@@ -6787,7 +6795,7 @@ const Yt = [
|
|
|
6787
6795
|
{
|
|
6788
6796
|
path: "/referral",
|
|
6789
6797
|
name: _["$connect-REFERRAL"],
|
|
6790
|
-
component: () => import("./Index-
|
|
6798
|
+
component: () => import("./Index-sR1jaAFG.js"),
|
|
6791
6799
|
redirect: {
|
|
6792
6800
|
name: _["$connect-REFERRAL_OVERVIEW"]
|
|
6793
6801
|
},
|
|
@@ -6795,12 +6803,12 @@ const Yt = [
|
|
|
6795
6803
|
{
|
|
6796
6804
|
path: "/referral",
|
|
6797
6805
|
name: _["$connect-REFERRAL_OVERVIEW"],
|
|
6798
|
-
component: () => import("./Overview-
|
|
6806
|
+
component: () => import("./Overview-Br-EIdxM.js")
|
|
6799
6807
|
},
|
|
6800
6808
|
{
|
|
6801
6809
|
path: "/referral/record",
|
|
6802
6810
|
name: _["$connect-REFERRAL_RECORD"],
|
|
6803
|
-
component: () => import("./Record-
|
|
6811
|
+
component: () => import("./Record-0rP8M9P0.js")
|
|
6804
6812
|
}
|
|
6805
6813
|
]
|
|
6806
6814
|
}
|
|
@@ -6823,7 +6831,7 @@ const Yt = [
|
|
|
6823
6831
|
{
|
|
6824
6832
|
path: "/store",
|
|
6825
6833
|
name: _["$connect-STORE"],
|
|
6826
|
-
component: () => import("./Store-
|
|
6834
|
+
component: () => import("./Store-c5JWogcz.js")
|
|
6827
6835
|
},
|
|
6828
6836
|
{
|
|
6829
6837
|
path: "/store/rewards",
|
|
@@ -6832,12 +6840,12 @@ const Yt = [
|
|
|
6832
6840
|
{
|
|
6833
6841
|
path: "/store/rewards",
|
|
6834
6842
|
name: _["$connect-STORE_REWARDS"],
|
|
6835
|
-
component: () => import("./StoreRewards-
|
|
6843
|
+
component: () => import("./StoreRewards-CAdO3F6P.js")
|
|
6836
6844
|
},
|
|
6837
6845
|
{
|
|
6838
6846
|
path: "/store/rewards/:id/collections",
|
|
6839
6847
|
name: _["$connect-STORE_REWARD_COLLECTIONS"],
|
|
6840
|
-
component: () => import("./Collections-
|
|
6848
|
+
component: () => import("./Collections-DMFwhRvv.js")
|
|
6841
6849
|
}
|
|
6842
6850
|
]
|
|
6843
6851
|
}
|
|
@@ -6860,7 +6868,7 @@ const Yt = [
|
|
|
6860
6868
|
{
|
|
6861
6869
|
path: "/transaction",
|
|
6862
6870
|
name: _["$connect-TRANSACTION"],
|
|
6863
|
-
component: () => import("./Transaction-
|
|
6871
|
+
component: () => import("./Transaction-BWlyB-Mu.js")
|
|
6864
6872
|
}
|
|
6865
6873
|
]
|
|
6866
6874
|
},
|
|
@@ -6881,7 +6889,7 @@ const Yt = [
|
|
|
6881
6889
|
{
|
|
6882
6890
|
path: "/marketing",
|
|
6883
6891
|
name: _["$connect-MARKETING"],
|
|
6884
|
-
component: () => import("./Marketing-
|
|
6892
|
+
component: () => import("./Marketing-DwJsS6NE.js")
|
|
6885
6893
|
}
|
|
6886
6894
|
]
|
|
6887
6895
|
},
|
|
@@ -6902,7 +6910,7 @@ const Yt = [
|
|
|
6902
6910
|
{
|
|
6903
6911
|
path: "/reward",
|
|
6904
6912
|
name: _["$connect-REWARD_TEMPLATE"],
|
|
6905
|
-
component: () => import("./Reward-
|
|
6913
|
+
component: () => import("./Reward-D1S2FQOx.js")
|
|
6906
6914
|
}
|
|
6907
6915
|
]
|
|
6908
6916
|
},
|
|
@@ -6923,7 +6931,7 @@ const Yt = [
|
|
|
6923
6931
|
{
|
|
6924
6932
|
path: "/setting",
|
|
6925
6933
|
name: _["$connect-SETTING"],
|
|
6926
|
-
component: () => import("./Setting-
|
|
6934
|
+
component: () => import("./Setting-CgEgZMwS.js")
|
|
6927
6935
|
}
|
|
6928
6936
|
]
|
|
6929
6937
|
},
|
|
@@ -6944,7 +6952,7 @@ const Yt = [
|
|
|
6944
6952
|
{
|
|
6945
6953
|
path: "/bin",
|
|
6946
6954
|
name: _["$connect-BIN"],
|
|
6947
|
-
component: () => import("./Bin-
|
|
6955
|
+
component: () => import("./Bin-6YCEpR9h.js")
|
|
6948
6956
|
}
|
|
6949
6957
|
]
|
|
6950
6958
|
}
|
|
@@ -6953,9 +6961,9 @@ const Yt = [
|
|
|
6953
6961
|
"zh-CN": $e,
|
|
6954
6962
|
"th-TH": qe,
|
|
6955
6963
|
"zh-Hant": Ye
|
|
6956
|
-
},
|
|
6964
|
+
}, en = () => import("./App-fVmEwY5I.js").then((n) => n.default);
|
|
6957
6965
|
export {
|
|
6958
|
-
|
|
6966
|
+
en as F,
|
|
6959
6967
|
_ as R,
|
|
6960
6968
|
c as Z,
|
|
6961
6969
|
l as a,
|