@feedmepos/mf-connect 0.1.10-prod → 0.1.11-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-CpSbitWV.js → Analytic-Bbt1kP2U.js} +9 -9
- package/dist/{App-BPT8XzjX.js → App-CVA65EVC.js} +6 -6
- package/dist/{Broadcast-CJHpiQeN.js → Broadcast-BJXK8OE5.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DUPqWdIm.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DDEx0cK9.js} +7 -7
- package/dist/{Card-Bvn36zqZ.js → Card-DFiUkfYj.js} +15 -15
- package/dist/{Collections-Bq6OxsJC.js → Collections-qVnvveUf.js} +5 -5
- package/dist/{Credit-Dno_g7dW.js → Credit-BWHTbAG-.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-cGbwORhw.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-4_cHlWUJ.js} +27 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Ho7zwlbb.js → EffectSheet.vue_vue_type_style_index_0_lang-DLgZd4HU.js} +6 -6
- package/dist/{Experience-BC1qSIGO.js → Experience-BmGSus53.js} +8 -8
- package/dist/{Game-C_CKGMBW.js → Game-49w7XN5k.js} +8 -8
- package/dist/{Index-BXFaWTfw.js → Index-D-7hsAaE.js} +80 -77
- package/dist/{Marketing-Ni0WAie5.js → Marketing-DtbJxS_j.js} +5 -5
- package/dist/{Member-djnisrK1.js → Member-jZks4pw_.js} +4 -4
- package/dist/{MemberList-CclU-3B7.js → MemberList-BqO54kPC.js} +14 -14
- package/dist/{MemberTransactions-DVVsv3Ux.js → MemberTransactions-CLK7VmPw.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-khyDg1m4.js → MessageInput.vue_vue_type_script_setup_true_lang-ef2Qrdvd.js} +2 -2
- package/dist/{Mission-Z5somdo_.js → Mission-LGC1CGrB.js} +8 -8
- package/dist/{Overview-BvMVz3lQ.js → Overview-Dm_ycoqZ.js} +400 -396
- package/dist/{Point-DdPukiTg.js → Point-BBNJ9cc5.js} +8 -8
- package/dist/{Promotion-DCqdIwjG.js → Promotion-DFh9IEmP.js} +9 -9
- package/dist/Record-oBmJTn3G.js +338 -0
- package/dist/{Reward-CiJHGXfQ.js → Reward-DR_HzrrM.js} +14 -14
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CrGCBRmH.js → RewardGroup.vue_vue_type_script_setup_true_lang-Du_0o2b9.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-tnT6i0Jq.js → RuleGroup.vue_vue_type_script_setup_true_lang-CxXugphA.js} +13 -13
- package/dist/{Segment-CQb3j-o0.js → Segment-DjyHLWZC.js} +13 -13
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-B7YqIU5D.js → SelectItems.vue_vue_type_script_setup_true_lang-stTwgie4.js} +2 -2
- package/dist/{Setting-91cK3ssU.js → Setting-a7Tw-3ht.js} +8 -8
- package/dist/{Store-B-uldUKt.js → Store-HWGWswEm.js} +18 -18
- package/dist/{StoreRewards-dDNeFlA9.js → StoreRewards-s4cX1bFH.js} +12 -12
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BVb1X0aq.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Dq4qIXZu.js} +18 -18
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Ds0WxGxr.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BQpbScyf.js} +1 -1
- package/dist/{Tier-_jMaLj3u.js → Tier-C7kiLjzE.js} +19 -19
- package/dist/{Title-By7o67aT.js → Title-BPv1ZiHg.js} +19 -19
- package/dist/{Transaction-BLpEgeI2.js → Transaction-HdR7RiGY.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Bf_nO9zH.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-D3VgIQb-.js} +6 -6
- package/dist/{Voucher-CG5tfibn.js → Voucher-Y5Lh5xms.js} +11 -11
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DpQUoXyQ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CFKID7mS.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-YwGR2En3.js → ZodTextField.vue_vue_type_script_setup_true_lang-6asSbt53.js} +1 -1
- package/dist/{app-DDmTqTb7.js → app-Bh2mviM1.js} +1 -1
- package/dist/{app-vCqTQIeC.js → app-MbHo43vs.js} +623 -490
- package/dist/app.js +1 -1
- package/dist/{business-Cz78KGF2.js → business-DMzeDNMd.js} +1 -1
- package/dist/{campaign-BBd4o7F_.js → campaign-2swZVVbi.js} +2 -2
- package/dist/{campaign.enum-CIhi0b-m.js → campaign.enum-CHI6p9lH.js} +1 -1
- package/dist/{campaign.fn-5silF1DK.js → campaign.fn-DNwV5ZWO.js} +135 -135
- package/dist/{collectible.enum-cMIQ6ogq.js → collectible.enum-Y3ALLTcR.js} +1 -1
- package/dist/{collection.fn-BGc7Qeli.js → collection.fn-CfvnmVQa.js} +2 -2
- package/dist/{dto-i04OPJfW.js → dto-DseG41FR.js} +10 -10
- package/dist/{effect-D8UzkYRg.js → effect-BH4hGy1N.js} +1 -1
- package/dist/{email-addresses-u05o35hN.js → email-addresses-doOfKmSj.js} +1 -1
- package/dist/{export-BEXuPYEd.js → export-DGrsZa4F.js} +3 -3
- package/dist/{helper-RptRJGv6.js → helper-3ohDu5Tn.js} +1 -1
- package/dist/{index-C6-rCMhD.js → index-B8HMoADH.js} +3 -3
- package/dist/{index-Cq_ZIbRm.js → index-BUzeShnL.js} +7 -7
- package/dist/{index-UfL5qRzR.js → index-BWwF7uuk.js} +4 -4
- package/dist/{index-g8EbRVnr.js → index-BXw9yi-G.js} +1 -1
- package/dist/{index-Dt6K2eG8.js → index-C-ozJGq6.js} +1 -1
- package/dist/{index-DFAnoAe9.js → index-CDT7BpQ3.js} +1 -1
- package/dist/{index-B8s-gucK.js → index-CKfeyWFN.js} +1 -1
- package/dist/{index-DwzoqCt8.js → index-CKji0U5N.js} +3 -3
- package/dist/{index-hEE_ntHd.js → index-CVlbqA1t.js} +1 -1
- package/dist/{index-BjHZUhiH.js → index-D5CHO7oc.js} +1 -1
- package/dist/{index-Bpu2DYUc.js → index-rYTZxC9p.js} +2 -2
- package/dist/{index-DbyJ6Nyn.js → index-wBdTUnZ6.js} +3 -3
- package/dist/{index.esm2017-BSzW_yaL.js → index.esm2017-D-hthfW3.js} +1 -1
- package/dist/{loading-DjEdwdnj.js → loading-DQnXnCXT.js} +4 -4
- package/dist/{membership-BL9Xs8lD.js → membership-C3envHTy.js} +3 -3
- package/dist/{money-D7lq0cx-.js → money-Dm7B8wUJ.js} +1 -1
- package/dist/{number-BiDabTkI.js → number-Swjcamr8.js} +1 -1
- package/dist/{objectid-CXf0jb1W.js → objectid-xH_8eWzr.js} +7 -7
- package/dist/{reward-Cr8rbe5R.js → reward-DOggYNm3.js} +1 -1
- package/dist/{rule-vkYJij4h.js → rule-BQy3e3DE.js} +3 -3
- package/dist/{rule-builder-DPKFZ5UX.js → rule-builder-CPWmw5lP.js} +1 -1
- package/dist/{template-Bep5Y5ch.js → template-Dprn2jD_.js} +4 -4
- package/dist/{trigger-fWhQ3bqv.js → trigger-BUY-zCBi.js} +4 -4
- package/dist/{usePagination-DSF5b4hM.js → usePagination-CEQLUMQ7.js} +1 -1
- package/dist/{user-9UiaP0xs.js → user-DIK4sBIA.js} +1 -1
- package/dist/{vue-i18n-BhiDOB1j.js → vue-i18n-B7ledd-g.js} +282 -282
- package/package.json +1 -1
- package/dist/Record-CvMxXm1B.js +0 -337
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { withPermission as
|
|
2
|
-
import { defineAsyncComponent as
|
|
1
|
+
import { withPermission as R, Permission as x } from "@feedmepos/mf-common";
|
|
2
|
+
import { defineAsyncComponent as k } from "vue";
|
|
3
3
|
const Pe = {
|
|
4
4
|
common: {
|
|
5
5
|
submit: "Submit",
|
|
@@ -791,10 +791,23 @@ const Pe = {
|
|
|
791
791
|
generate_link_for_member: "Generate link for member",
|
|
792
792
|
referee_join_reward: "Referee join reward",
|
|
793
793
|
referee_meet_criteria: "Referee meet criteria",
|
|
794
|
-
referer_get_reward: "Referer get reward"
|
|
794
|
+
referer_get_reward: "Referer get reward",
|
|
795
|
+
reward: "reward(s)",
|
|
796
|
+
criteria: "criteria(s)",
|
|
797
|
+
reward_tier: "configured tier(s)",
|
|
798
|
+
referee_join_reward_description: "Reward will be given to the referrer when the referee successfully joins the program and meets the criteria",
|
|
799
|
+
referral_tier_description: "Referer will receive rewards after referee completed all criteria"
|
|
795
800
|
},
|
|
796
801
|
reward: {
|
|
797
|
-
add_count: "Add count"
|
|
802
|
+
add_count: "Add count",
|
|
803
|
+
table: {
|
|
804
|
+
count: "Referral Count",
|
|
805
|
+
reward: "Rewards"
|
|
806
|
+
},
|
|
807
|
+
remove_referral_count: "Remove referral count",
|
|
808
|
+
confirm_remove_referral_count: "Are you sure you want to remove this referral count?",
|
|
809
|
+
remove_referral_tier: "Remove referral tier",
|
|
810
|
+
confirm_remove_referral_tier: "Are you sure you want to remove this referral tier?"
|
|
798
811
|
},
|
|
799
812
|
editReferralTierSheet: {
|
|
800
813
|
create: "Create referral tier",
|
|
@@ -807,7 +820,8 @@ const Pe = {
|
|
|
807
820
|
edit: "Edit referral count",
|
|
808
821
|
referrer_reward: "Referrer reward",
|
|
809
822
|
min_referral_count: "Min referral count",
|
|
810
|
-
max_referral_count: "Max referral count"
|
|
823
|
+
max_referral_count: "Max referral count",
|
|
824
|
+
max_referral_count_description: "When max. referral count is not set, it will default unlimited"
|
|
811
825
|
},
|
|
812
826
|
refereeRewardSheet: {
|
|
813
827
|
referee_reward: "Referee reward"
|
|
@@ -837,6 +851,15 @@ const Pe = {
|
|
|
837
851
|
Do you want to update the next range to [{newFrom} - {to}]?`
|
|
838
852
|
}
|
|
839
853
|
}
|
|
854
|
+
},
|
|
855
|
+
term_and_condition: {
|
|
856
|
+
confirm_remove: "Are you sure you want to remove the term and condition?"
|
|
857
|
+
},
|
|
858
|
+
record: {
|
|
859
|
+
referer_info: "Referer info",
|
|
860
|
+
referee_info: "Referee info",
|
|
861
|
+
referee_criteria: "Referee criteria",
|
|
862
|
+
status: "Status"
|
|
840
863
|
}
|
|
841
864
|
},
|
|
842
865
|
reward: {
|
|
@@ -1222,19 +1245,20 @@ const Pe = {
|
|
|
1222
1245
|
broadcast: "广播",
|
|
1223
1246
|
program: "程序",
|
|
1224
1247
|
tier: "等级",
|
|
1225
|
-
title: "
|
|
1248
|
+
title: "头衔",
|
|
1226
1249
|
experience: "经验",
|
|
1227
|
-
point: "
|
|
1228
|
-
credit: "
|
|
1250
|
+
point: "点数",
|
|
1251
|
+
credit: "积分",
|
|
1229
1252
|
game: "游戏",
|
|
1230
1253
|
loyalty: "忠诚度",
|
|
1231
1254
|
member: "会员",
|
|
1232
1255
|
segments: "分组",
|
|
1233
1256
|
card: "会员卡",
|
|
1234
1257
|
store: "商店",
|
|
1235
|
-
transaction: "
|
|
1258
|
+
transaction: "交易",
|
|
1236
1259
|
setting: "设置",
|
|
1237
|
-
mission: "任务"
|
|
1260
|
+
mission: "任务",
|
|
1261
|
+
referral: "推荐"
|
|
1238
1262
|
},
|
|
1239
1263
|
loyalty: {
|
|
1240
1264
|
card: {
|
|
@@ -1330,7 +1354,7 @@ const Pe = {
|
|
|
1330
1354
|
token_received: "获得的代币:{count}"
|
|
1331
1355
|
},
|
|
1332
1356
|
credit: {
|
|
1333
|
-
title: "
|
|
1357
|
+
title: "点数"
|
|
1334
1358
|
},
|
|
1335
1359
|
point: {
|
|
1336
1360
|
title: "点数",
|
|
@@ -1433,7 +1457,7 @@ const Pe = {
|
|
|
1433
1457
|
}
|
|
1434
1458
|
},
|
|
1435
1459
|
table: {
|
|
1436
|
-
title: "
|
|
1460
|
+
title: "头衔",
|
|
1437
1461
|
program_title: "计划标题",
|
|
1438
1462
|
status: "状态",
|
|
1439
1463
|
type: "类型",
|
|
@@ -1453,10 +1477,10 @@ const Pe = {
|
|
|
1453
1477
|
imageLabel: "{name} 图片"
|
|
1454
1478
|
},
|
|
1455
1479
|
mission: {
|
|
1456
|
-
title: "
|
|
1480
|
+
title: "任务",
|
|
1457
1481
|
empty_state: {
|
|
1458
|
-
title: "
|
|
1459
|
-
description: "
|
|
1482
|
+
title: "创建您的任务活动",
|
|
1483
|
+
description: "任务是允许客户完成任务以赚取奖励的活动。"
|
|
1460
1484
|
}
|
|
1461
1485
|
}
|
|
1462
1486
|
},
|
|
@@ -1652,7 +1676,7 @@ const Pe = {
|
|
|
1652
1676
|
submit: "提交",
|
|
1653
1677
|
cancel: "取消",
|
|
1654
1678
|
advanceSetting: "高级设置",
|
|
1655
|
-
credit: "
|
|
1679
|
+
credit: "点数",
|
|
1656
1680
|
normalCredit: "普通积分",
|
|
1657
1681
|
freeCredit: "免费积分",
|
|
1658
1682
|
taxes: "税费",
|
|
@@ -1737,6 +1761,115 @@ const Pe = {
|
|
|
1737
1761
|
actions: "操作",
|
|
1738
1762
|
submit: "提交",
|
|
1739
1763
|
cancel: "取消"
|
|
1764
|
+
},
|
|
1765
|
+
referral: {
|
|
1766
|
+
title: "推荐计划",
|
|
1767
|
+
actions: {
|
|
1768
|
+
create: "创建推荐",
|
|
1769
|
+
manage_reward: "管理奖励",
|
|
1770
|
+
terms: "条款和条件",
|
|
1771
|
+
manage_criteria: "管理条件",
|
|
1772
|
+
add_referral_tier: "添加推荐等级"
|
|
1773
|
+
},
|
|
1774
|
+
tabs: {
|
|
1775
|
+
overview: "概览",
|
|
1776
|
+
record: "记录"
|
|
1777
|
+
},
|
|
1778
|
+
referral_tier_title: "设置成功推荐的奖励",
|
|
1779
|
+
referral_tier_description: "在所选推荐等级内为每个步骤添加和自定义奖励。",
|
|
1780
|
+
add_referral_tier: "添加推荐等级",
|
|
1781
|
+
overview: {
|
|
1782
|
+
title: "概览",
|
|
1783
|
+
total_joined: "总加入人数",
|
|
1784
|
+
total_redeem: "总兑换次数",
|
|
1785
|
+
total_referee: "总被推荐人数",
|
|
1786
|
+
pending: "待处理"
|
|
1787
|
+
},
|
|
1788
|
+
how_it_works: {
|
|
1789
|
+
title: "运作方式",
|
|
1790
|
+
generate_link: "生成链接",
|
|
1791
|
+
generate_link_for_member: "为会员生成链接",
|
|
1792
|
+
referee_join_reward: "被推荐人加入奖励",
|
|
1793
|
+
referee_meet_criteria: "被推荐人满足条件",
|
|
1794
|
+
referer_get_reward: "推荐人获得奖励",
|
|
1795
|
+
reward: "奖励",
|
|
1796
|
+
criteria: "条件",
|
|
1797
|
+
reward_tier: "奖励等级",
|
|
1798
|
+
referee_join_reward_description: "被推荐人将在被推荐人成功加入计划并满足条件时获得奖励",
|
|
1799
|
+
referral_tier_description: "推荐人将在被推荐人完成所有条件后获得奖励"
|
|
1800
|
+
},
|
|
1801
|
+
reward: {
|
|
1802
|
+
add_count: "添加次数",
|
|
1803
|
+
table: {
|
|
1804
|
+
count: "推荐次数",
|
|
1805
|
+
reward: "奖励"
|
|
1806
|
+
},
|
|
1807
|
+
remove_referral_tier: "删除推荐等级",
|
|
1808
|
+
confirm_remove_referral_tier: "您确定要删除此推荐等级吗?",
|
|
1809
|
+
remove_referral_count: "删除推荐次数",
|
|
1810
|
+
confirm_remove_referral_count: "您确定要删除此推荐次数吗?"
|
|
1811
|
+
},
|
|
1812
|
+
editReferralTierSheet: {
|
|
1813
|
+
create: "创建推荐等级",
|
|
1814
|
+
edit: "编辑推荐等级",
|
|
1815
|
+
target_audience: "目标受众",
|
|
1816
|
+
name: "名称"
|
|
1817
|
+
},
|
|
1818
|
+
editReferralCountSheet: {
|
|
1819
|
+
add: "添加推荐次数",
|
|
1820
|
+
edit: "编辑推荐次数",
|
|
1821
|
+
referrer_reward: "推荐人奖励",
|
|
1822
|
+
min_referral_count: "最小推荐次数",
|
|
1823
|
+
max_referral_count: "最大推荐次数",
|
|
1824
|
+
max_referral_count_description: "当最大推荐次数未设置时,将默认无限"
|
|
1825
|
+
},
|
|
1826
|
+
refereeRewardSheet: {
|
|
1827
|
+
referee_reward: "被推荐人奖励"
|
|
1828
|
+
},
|
|
1829
|
+
referral_count: {
|
|
1830
|
+
title: "推荐次数",
|
|
1831
|
+
update: {
|
|
1832
|
+
range_discontinuous: {
|
|
1833
|
+
previous: `推荐次数范围不连续。
|
|
1834
|
+
之前的范围:{name} [{from} - {to}]。
|
|
1835
|
+
您想将之前的范围更新为 [{from} - {newTo}] 吗?`,
|
|
1836
|
+
next: `推荐次数范围不连续。
|
|
1837
|
+
下一个范围:{name} [{from} - {to}]。
|
|
1838
|
+
您想将下一个范围更新为 [{newFrom} - {to}] 吗?`
|
|
1839
|
+
}
|
|
1840
|
+
},
|
|
1841
|
+
remove: {
|
|
1842
|
+
confirm: "您确定要删除此推荐次数吗?",
|
|
1843
|
+
title: "删除推荐次数",
|
|
1844
|
+
next_range: "更新下一个范围",
|
|
1845
|
+
range_discontinuous: {
|
|
1846
|
+
previous: `推荐次数范围不连续。
|
|
1847
|
+
之前的范围:{name} [{from} - {to}]。
|
|
1848
|
+
您想将之前的范围更新为 [{from} - {newTo}] 吗?`,
|
|
1849
|
+
next: `推荐次数范围不连续。
|
|
1850
|
+
下一个范围:{name} [{from} - {to}]。
|
|
1851
|
+
您想将下一个范围更新为 [{newFrom} - {to}] 吗?`
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
},
|
|
1855
|
+
term_and_condition: {
|
|
1856
|
+
confirm_remove: "您确定要删除条款和条件吗?"
|
|
1857
|
+
},
|
|
1858
|
+
record: {
|
|
1859
|
+
referer_info: "推荐人信息",
|
|
1860
|
+
referee_info: "被推荐人信息",
|
|
1861
|
+
referee_criteria: "被推荐人条件",
|
|
1862
|
+
status: "状态"
|
|
1863
|
+
}
|
|
1864
|
+
},
|
|
1865
|
+
reward: {
|
|
1866
|
+
title: "奖励",
|
|
1867
|
+
description: "为成功推荐的客户提供奖励",
|
|
1868
|
+
table: {
|
|
1869
|
+
title: "奖励标题",
|
|
1870
|
+
type: "奖励类型",
|
|
1871
|
+
description: "描述"
|
|
1872
|
+
}
|
|
1740
1873
|
}
|
|
1741
1874
|
}, Ve = {
|
|
1742
1875
|
errors: {
|
|
@@ -2235,7 +2368,7 @@ const Pe = {
|
|
|
2235
2368
|
notShown: "{name} จะไม่แสดงให้ลูกค้าเห็น",
|
|
2236
2369
|
submit: "ส่ง",
|
|
2237
2370
|
cancel: "ยกเลิก",
|
|
2238
|
-
imageLabel: "รูปภาพ {
|
|
2371
|
+
imageLabel: "รูปภาพ {name}"
|
|
2239
2372
|
},
|
|
2240
2373
|
mission: {
|
|
2241
2374
|
title: "ภารกิจ",
|
|
@@ -2638,39 +2771,39 @@ const Pe = {
|
|
|
2638
2771
|
};
|
|
2639
2772
|
var b;
|
|
2640
2773
|
(function(a) {
|
|
2641
|
-
a.assertEqual = (
|
|
2642
|
-
function e(
|
|
2774
|
+
a.assertEqual = (r) => r;
|
|
2775
|
+
function e(r) {
|
|
2643
2776
|
}
|
|
2644
2777
|
a.assertIs = e;
|
|
2645
|
-
function t(
|
|
2778
|
+
function t(r) {
|
|
2646
2779
|
throw new Error();
|
|
2647
2780
|
}
|
|
2648
|
-
a.assertNever = t, a.arrayToEnum = (
|
|
2649
|
-
const
|
|
2650
|
-
for (const s of
|
|
2651
|
-
|
|
2652
|
-
return
|
|
2653
|
-
}, a.getValidEnumValues = (
|
|
2654
|
-
const
|
|
2655
|
-
for (const o of
|
|
2656
|
-
s[o] =
|
|
2781
|
+
a.assertNever = t, a.arrayToEnum = (r) => {
|
|
2782
|
+
const i = {};
|
|
2783
|
+
for (const s of r)
|
|
2784
|
+
i[s] = s;
|
|
2785
|
+
return i;
|
|
2786
|
+
}, a.getValidEnumValues = (r) => {
|
|
2787
|
+
const i = a.objectKeys(r).filter((o) => typeof r[r[o]] != "number"), s = {};
|
|
2788
|
+
for (const o of i)
|
|
2789
|
+
s[o] = r[o];
|
|
2657
2790
|
return a.objectValues(s);
|
|
2658
|
-
}, a.objectValues = (
|
|
2659
|
-
return i
|
|
2660
|
-
}), a.objectKeys = typeof Object.keys == "function" ? (
|
|
2661
|
-
const
|
|
2662
|
-
for (const s in
|
|
2663
|
-
Object.prototype.hasOwnProperty.call(
|
|
2664
|
-
return
|
|
2665
|
-
}, a.find = (
|
|
2666
|
-
for (const s of
|
|
2667
|
-
if (
|
|
2791
|
+
}, a.objectValues = (r) => a.objectKeys(r).map(function(i) {
|
|
2792
|
+
return r[i];
|
|
2793
|
+
}), a.objectKeys = typeof Object.keys == "function" ? (r) => Object.keys(r) : (r) => {
|
|
2794
|
+
const i = [];
|
|
2795
|
+
for (const s in r)
|
|
2796
|
+
Object.prototype.hasOwnProperty.call(r, s) && i.push(s);
|
|
2797
|
+
return i;
|
|
2798
|
+
}, a.find = (r, i) => {
|
|
2799
|
+
for (const s of r)
|
|
2800
|
+
if (i(s))
|
|
2668
2801
|
return s;
|
|
2669
|
-
}, a.isInteger = typeof Number.isInteger == "function" ? (
|
|
2670
|
-
function n(
|
|
2671
|
-
return
|
|
2802
|
+
}, a.isInteger = typeof Number.isInteger == "function" ? (r) => Number.isInteger(r) : (r) => typeof r == "number" && isFinite(r) && Math.floor(r) === r;
|
|
2803
|
+
function n(r, i = " | ") {
|
|
2804
|
+
return r.map((s) => typeof s == "string" ? `'${s}'` : s).join(i);
|
|
2672
2805
|
}
|
|
2673
|
-
a.joinValues = n, a.jsonStringifyReplacer = (
|
|
2806
|
+
a.joinValues = n, a.jsonStringifyReplacer = (r, i) => typeof i == "bigint" ? i.toString() : i;
|
|
2674
2807
|
})(b || (b = {}));
|
|
2675
2808
|
var be;
|
|
2676
2809
|
(function(a) {
|
|
@@ -2754,16 +2887,16 @@ class E extends Error {
|
|
|
2754
2887
|
return this.issues;
|
|
2755
2888
|
}
|
|
2756
2889
|
format(e) {
|
|
2757
|
-
const t = e || function(
|
|
2758
|
-
return
|
|
2759
|
-
}, n = { _errors: [] },
|
|
2760
|
-
for (const s of
|
|
2890
|
+
const t = e || function(i) {
|
|
2891
|
+
return i.message;
|
|
2892
|
+
}, n = { _errors: [] }, r = (i) => {
|
|
2893
|
+
for (const s of i.issues)
|
|
2761
2894
|
if (s.code === "invalid_union")
|
|
2762
|
-
s.unionErrors.map(
|
|
2895
|
+
s.unionErrors.map(r);
|
|
2763
2896
|
else if (s.code === "invalid_return_type")
|
|
2764
|
-
|
|
2897
|
+
r(s.returnTypeError);
|
|
2765
2898
|
else if (s.code === "invalid_arguments")
|
|
2766
|
-
|
|
2899
|
+
r(s.argumentsError);
|
|
2767
2900
|
else if (s.path.length === 0)
|
|
2768
2901
|
n._errors.push(t(s));
|
|
2769
2902
|
else {
|
|
@@ -2774,7 +2907,7 @@ class E extends Error {
|
|
|
2774
2907
|
}
|
|
2775
2908
|
}
|
|
2776
2909
|
};
|
|
2777
|
-
return
|
|
2910
|
+
return r(this), n;
|
|
2778
2911
|
}
|
|
2779
2912
|
toString() {
|
|
2780
2913
|
return this.message;
|
|
@@ -2787,8 +2920,8 @@ class E extends Error {
|
|
|
2787
2920
|
}
|
|
2788
2921
|
flatten(e = (t) => t.message) {
|
|
2789
2922
|
const t = {}, n = [];
|
|
2790
|
-
for (const
|
|
2791
|
-
|
|
2923
|
+
for (const r of this.issues)
|
|
2924
|
+
r.path.length > 0 ? (t[r.path[0]] = t[r.path[0]] || [], t[r.path[0]].push(e(r))) : n.push(e(r));
|
|
2792
2925
|
return { formErrors: n, fieldErrors: t };
|
|
2793
2926
|
}
|
|
2794
2927
|
get formErrors() {
|
|
@@ -2852,28 +2985,28 @@ const F = (a, e) => {
|
|
|
2852
2985
|
}
|
|
2853
2986
|
return { message: t };
|
|
2854
2987
|
};
|
|
2855
|
-
let
|
|
2988
|
+
let ke = F;
|
|
2856
2989
|
function ze(a) {
|
|
2857
|
-
|
|
2990
|
+
ke = a;
|
|
2858
2991
|
}
|
|
2859
2992
|
function ce() {
|
|
2860
|
-
return
|
|
2993
|
+
return ke;
|
|
2861
2994
|
}
|
|
2862
2995
|
const de = (a) => {
|
|
2863
|
-
const { data: e, path: t, errorMaps: n, issueData:
|
|
2864
|
-
...
|
|
2865
|
-
path:
|
|
2996
|
+
const { data: e, path: t, errorMaps: n, issueData: r } = a, i = [...t, ...r.path || []], s = {
|
|
2997
|
+
...r,
|
|
2998
|
+
path: i
|
|
2866
2999
|
};
|
|
2867
3000
|
let o = "";
|
|
2868
3001
|
const m = n.filter((d) => !!d).slice().reverse();
|
|
2869
3002
|
for (const d of m)
|
|
2870
3003
|
o = d(s, { data: e, defaultError: o }).message;
|
|
2871
3004
|
return {
|
|
2872
|
-
...
|
|
2873
|
-
path:
|
|
2874
|
-
message:
|
|
3005
|
+
...r,
|
|
3006
|
+
path: i,
|
|
3007
|
+
message: r.message || o
|
|
2875
3008
|
};
|
|
2876
|
-
},
|
|
3009
|
+
}, We = [];
|
|
2877
3010
|
function l(a, e) {
|
|
2878
3011
|
const t = de({
|
|
2879
3012
|
issueData: e,
|
|
@@ -2901,34 +3034,34 @@ class T {
|
|
|
2901
3034
|
}
|
|
2902
3035
|
static mergeArray(e, t) {
|
|
2903
3036
|
const n = [];
|
|
2904
|
-
for (const
|
|
2905
|
-
if (
|
|
2906
|
-
return
|
|
2907
|
-
|
|
3037
|
+
for (const r of t) {
|
|
3038
|
+
if (r.status === "aborted")
|
|
3039
|
+
return h;
|
|
3040
|
+
r.status === "dirty" && e.dirty(), n.push(r.value);
|
|
2908
3041
|
}
|
|
2909
3042
|
return { status: e.value, value: n };
|
|
2910
3043
|
}
|
|
2911
3044
|
static async mergeObjectAsync(e, t) {
|
|
2912
3045
|
const n = [];
|
|
2913
|
-
for (const
|
|
3046
|
+
for (const r of t)
|
|
2914
3047
|
n.push({
|
|
2915
|
-
key: await
|
|
2916
|
-
value: await
|
|
3048
|
+
key: await r.key,
|
|
3049
|
+
value: await r.value
|
|
2917
3050
|
});
|
|
2918
3051
|
return T.mergeObjectSync(e, n);
|
|
2919
3052
|
}
|
|
2920
3053
|
static mergeObjectSync(e, t) {
|
|
2921
3054
|
const n = {};
|
|
2922
|
-
for (const
|
|
2923
|
-
const { key:
|
|
2924
|
-
if (
|
|
2925
|
-
return
|
|
2926
|
-
|
|
3055
|
+
for (const r of t) {
|
|
3056
|
+
const { key: i, value: s } = r;
|
|
3057
|
+
if (i.status === "aborted" || s.status === "aborted")
|
|
3058
|
+
return h;
|
|
3059
|
+
i.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), i.value !== "__proto__" && (typeof s.value < "u" || r.alwaysSet) && (n[i.value] = s.value);
|
|
2927
3060
|
}
|
|
2928
3061
|
return { status: e.value, value: n };
|
|
2929
3062
|
}
|
|
2930
3063
|
}
|
|
2931
|
-
const
|
|
3064
|
+
const h = Object.freeze({
|
|
2932
3065
|
status: "aborted"
|
|
2933
3066
|
}), Se = (a) => ({ status: "dirty", value: a }), C = (a) => ({ status: "valid", value: a }), xe = (a) => a.status === "aborted", we = (a) => a.status === "dirty", H = (a) => a.status === "valid", ue = (a) => typeof Promise < "u" && a instanceof Promise;
|
|
2934
3067
|
var p;
|
|
@@ -2936,8 +3069,8 @@ var p;
|
|
|
2936
3069
|
a.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, a.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
2937
3070
|
})(p || (p = {}));
|
|
2938
3071
|
class N {
|
|
2939
|
-
constructor(e, t, n,
|
|
2940
|
-
this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key =
|
|
3072
|
+
constructor(e, t, n, r) {
|
|
3073
|
+
this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key = r;
|
|
2941
3074
|
}
|
|
2942
3075
|
get path() {
|
|
2943
3076
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
@@ -2961,10 +3094,10 @@ const Ce = (a, e) => {
|
|
|
2961
3094
|
function _(a) {
|
|
2962
3095
|
if (!a)
|
|
2963
3096
|
return {};
|
|
2964
|
-
const { errorMap: e, invalid_type_error: t, required_error: n, description:
|
|
3097
|
+
const { errorMap: e, invalid_type_error: t, required_error: n, description: r } = a;
|
|
2965
3098
|
if (e && (t || n))
|
|
2966
3099
|
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
|
|
2967
|
-
return e ? { errorMap: e, description:
|
|
3100
|
+
return e ? { errorMap: e, description: r } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: n ?? o.defaultError } : { message: t ?? o.defaultError }, description: r };
|
|
2968
3101
|
}
|
|
2969
3102
|
class v {
|
|
2970
3103
|
constructor(e) {
|
|
@@ -3017,7 +3150,7 @@ class v {
|
|
|
3017
3150
|
}
|
|
3018
3151
|
safeParse(e, t) {
|
|
3019
3152
|
var n;
|
|
3020
|
-
const
|
|
3153
|
+
const r = {
|
|
3021
3154
|
common: {
|
|
3022
3155
|
issues: [],
|
|
3023
3156
|
async: (n = t == null ? void 0 : t.async) !== null && n !== void 0 ? n : !1,
|
|
@@ -3028,8 +3161,8 @@ class v {
|
|
|
3028
3161
|
parent: null,
|
|
3029
3162
|
data: e,
|
|
3030
3163
|
parsedType: j(e)
|
|
3031
|
-
},
|
|
3032
|
-
return Ce(
|
|
3164
|
+
}, i = this._parseSync({ data: e, path: r.path, parent: r });
|
|
3165
|
+
return Ce(r, i);
|
|
3033
3166
|
}
|
|
3034
3167
|
async parseAsync(e, t) {
|
|
3035
3168
|
const n = await this.safeParseAsync(e, t);
|
|
@@ -3049,26 +3182,26 @@ class v {
|
|
|
3049
3182
|
parent: null,
|
|
3050
3183
|
data: e,
|
|
3051
3184
|
parsedType: j(e)
|
|
3052
|
-
},
|
|
3053
|
-
return Ce(n,
|
|
3185
|
+
}, r = this._parse({ data: e, path: n.path, parent: n }), i = await (ue(r) ? r : Promise.resolve(r));
|
|
3186
|
+
return Ce(n, i);
|
|
3054
3187
|
}
|
|
3055
3188
|
refine(e, t) {
|
|
3056
|
-
const n = (
|
|
3057
|
-
return this._refinement((
|
|
3058
|
-
const s = e(
|
|
3189
|
+
const n = (r) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(r) : t;
|
|
3190
|
+
return this._refinement((r, i) => {
|
|
3191
|
+
const s = e(r), o = () => i.addIssue({
|
|
3059
3192
|
code: c.custom,
|
|
3060
|
-
...n(
|
|
3193
|
+
...n(r)
|
|
3061
3194
|
});
|
|
3062
3195
|
return typeof Promise < "u" && s instanceof Promise ? s.then((m) => m ? !0 : (o(), !1)) : s ? !0 : (o(), !1);
|
|
3063
3196
|
});
|
|
3064
3197
|
}
|
|
3065
3198
|
refinement(e, t) {
|
|
3066
|
-
return this._refinement((n,
|
|
3199
|
+
return this._refinement((n, r) => e(n) ? !0 : (r.addIssue(typeof t == "function" ? t(n, r) : t), !1));
|
|
3067
3200
|
}
|
|
3068
3201
|
_refinement(e) {
|
|
3069
3202
|
return new I({
|
|
3070
3203
|
schema: this,
|
|
3071
|
-
typeName:
|
|
3204
|
+
typeName: f.ZodEffects,
|
|
3072
3205
|
effect: { type: "refinement", refinement: e }
|
|
3073
3206
|
});
|
|
3074
3207
|
}
|
|
@@ -3088,7 +3221,7 @@ class v {
|
|
|
3088
3221
|
return O.create(this, this._def);
|
|
3089
3222
|
}
|
|
3090
3223
|
promise() {
|
|
3091
|
-
return
|
|
3224
|
+
return Y.create(this, this._def);
|
|
3092
3225
|
}
|
|
3093
3226
|
or(e) {
|
|
3094
3227
|
return Q.create([this, e], this._def);
|
|
@@ -3100,33 +3233,33 @@ class v {
|
|
|
3100
3233
|
return new I({
|
|
3101
3234
|
..._(this._def),
|
|
3102
3235
|
schema: this,
|
|
3103
|
-
typeName:
|
|
3236
|
+
typeName: f.ZodEffects,
|
|
3104
3237
|
effect: { type: "transform", transform: e }
|
|
3105
3238
|
});
|
|
3106
3239
|
}
|
|
3107
3240
|
default(e) {
|
|
3108
3241
|
const t = typeof e == "function" ? e : () => e;
|
|
3109
|
-
return new
|
|
3242
|
+
return new ie({
|
|
3110
3243
|
..._(this._def),
|
|
3111
3244
|
innerType: this,
|
|
3112
3245
|
defaultValue: t,
|
|
3113
|
-
typeName:
|
|
3246
|
+
typeName: f.ZodDefault
|
|
3114
3247
|
});
|
|
3115
3248
|
}
|
|
3116
3249
|
brand() {
|
|
3117
3250
|
return new Ee({
|
|
3118
|
-
typeName:
|
|
3251
|
+
typeName: f.ZodBranded,
|
|
3119
3252
|
type: this,
|
|
3120
3253
|
..._(this._def)
|
|
3121
3254
|
});
|
|
3122
3255
|
}
|
|
3123
3256
|
catch(e) {
|
|
3124
3257
|
const t = typeof e == "function" ? e : () => e;
|
|
3125
|
-
return new
|
|
3258
|
+
return new fe({
|
|
3126
3259
|
..._(this._def),
|
|
3127
3260
|
innerType: this,
|
|
3128
3261
|
catchValue: t,
|
|
3129
|
-
typeName:
|
|
3262
|
+
typeName: f.ZodCatch
|
|
3130
3263
|
});
|
|
3131
3264
|
}
|
|
3132
3265
|
describe(e) {
|
|
@@ -3149,7 +3282,7 @@ class v {
|
|
|
3149
3282
|
return this.safeParse(null).success;
|
|
3150
3283
|
}
|
|
3151
3284
|
}
|
|
3152
|
-
const
|
|
3285
|
+
const Ye = /^c[^\s-]{8,}$/i, Fe = /^[a-z][a-z0-9]*$/, He = /^[0-9A-HJKMNP-TV-Z]{26}$/, Je = /^[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, Xe = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ke = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
3153
3286
|
let ye;
|
|
3154
3287
|
const Qe = /^(((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}))$/, et = /^(([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})))$/, tt = (a) => a.precision ? a.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}Z$`) : a.precision === 0 ? a.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$") : a.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$");
|
|
3155
3288
|
function at(a, e) {
|
|
@@ -3158,130 +3291,130 @@ function at(a, e) {
|
|
|
3158
3291
|
class A extends v {
|
|
3159
3292
|
_parse(e) {
|
|
3160
3293
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== u.string) {
|
|
3161
|
-
const
|
|
3294
|
+
const i = this._getOrReturnCtx(e);
|
|
3162
3295
|
return l(
|
|
3163
|
-
|
|
3296
|
+
i,
|
|
3164
3297
|
{
|
|
3165
3298
|
code: c.invalid_type,
|
|
3166
3299
|
expected: u.string,
|
|
3167
|
-
received:
|
|
3300
|
+
received: i.parsedType
|
|
3168
3301
|
}
|
|
3169
3302
|
//
|
|
3170
|
-
),
|
|
3303
|
+
), h;
|
|
3171
3304
|
}
|
|
3172
3305
|
const n = new T();
|
|
3173
|
-
let
|
|
3174
|
-
for (const
|
|
3175
|
-
if (
|
|
3176
|
-
e.data.length <
|
|
3306
|
+
let r;
|
|
3307
|
+
for (const i of this._def.checks)
|
|
3308
|
+
if (i.kind === "min")
|
|
3309
|
+
e.data.length < i.value && (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3177
3310
|
code: c.too_small,
|
|
3178
|
-
minimum:
|
|
3311
|
+
minimum: i.value,
|
|
3179
3312
|
type: "string",
|
|
3180
3313
|
inclusive: !0,
|
|
3181
3314
|
exact: !1,
|
|
3182
|
-
message:
|
|
3315
|
+
message: i.message
|
|
3183
3316
|
}), n.dirty());
|
|
3184
|
-
else if (
|
|
3185
|
-
e.data.length >
|
|
3317
|
+
else if (i.kind === "max")
|
|
3318
|
+
e.data.length > i.value && (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3186
3319
|
code: c.too_big,
|
|
3187
|
-
maximum:
|
|
3320
|
+
maximum: i.value,
|
|
3188
3321
|
type: "string",
|
|
3189
3322
|
inclusive: !0,
|
|
3190
3323
|
exact: !1,
|
|
3191
|
-
message:
|
|
3324
|
+
message: i.message
|
|
3192
3325
|
}), n.dirty());
|
|
3193
|
-
else if (
|
|
3194
|
-
const s = e.data.length >
|
|
3195
|
-
(s || o) && (
|
|
3326
|
+
else if (i.kind === "length") {
|
|
3327
|
+
const s = e.data.length > i.value, o = e.data.length < i.value;
|
|
3328
|
+
(s || o) && (r = this._getOrReturnCtx(e, r), s ? l(r, {
|
|
3196
3329
|
code: c.too_big,
|
|
3197
|
-
maximum:
|
|
3330
|
+
maximum: i.value,
|
|
3198
3331
|
type: "string",
|
|
3199
3332
|
inclusive: !0,
|
|
3200
3333
|
exact: !0,
|
|
3201
|
-
message:
|
|
3202
|
-
}) : o && l(
|
|
3334
|
+
message: i.message
|
|
3335
|
+
}) : o && l(r, {
|
|
3203
3336
|
code: c.too_small,
|
|
3204
|
-
minimum:
|
|
3337
|
+
minimum: i.value,
|
|
3205
3338
|
type: "string",
|
|
3206
3339
|
inclusive: !0,
|
|
3207
3340
|
exact: !0,
|
|
3208
|
-
message:
|
|
3341
|
+
message: i.message
|
|
3209
3342
|
}), n.dirty());
|
|
3210
|
-
} else if (
|
|
3211
|
-
Xe.test(e.data) || (
|
|
3343
|
+
} else if (i.kind === "email")
|
|
3344
|
+
Xe.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3212
3345
|
validation: "email",
|
|
3213
3346
|
code: c.invalid_string,
|
|
3214
|
-
message:
|
|
3347
|
+
message: i.message
|
|
3215
3348
|
}), n.dirty());
|
|
3216
|
-
else if (
|
|
3217
|
-
ye || (ye = new RegExp(Ke, "u")), ye.test(e.data) || (
|
|
3349
|
+
else if (i.kind === "emoji")
|
|
3350
|
+
ye || (ye = new RegExp(Ke, "u")), ye.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3218
3351
|
validation: "emoji",
|
|
3219
3352
|
code: c.invalid_string,
|
|
3220
|
-
message:
|
|
3353
|
+
message: i.message
|
|
3221
3354
|
}), n.dirty());
|
|
3222
|
-
else if (
|
|
3223
|
-
Je.test(e.data) || (
|
|
3355
|
+
else if (i.kind === "uuid")
|
|
3356
|
+
Je.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3224
3357
|
validation: "uuid",
|
|
3225
3358
|
code: c.invalid_string,
|
|
3226
|
-
message:
|
|
3359
|
+
message: i.message
|
|
3227
3360
|
}), n.dirty());
|
|
3228
|
-
else if (
|
|
3229
|
-
|
|
3361
|
+
else if (i.kind === "cuid")
|
|
3362
|
+
Ye.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3230
3363
|
validation: "cuid",
|
|
3231
3364
|
code: c.invalid_string,
|
|
3232
|
-
message:
|
|
3365
|
+
message: i.message
|
|
3233
3366
|
}), n.dirty());
|
|
3234
|
-
else if (
|
|
3235
|
-
Fe.test(e.data) || (
|
|
3367
|
+
else if (i.kind === "cuid2")
|
|
3368
|
+
Fe.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3236
3369
|
validation: "cuid2",
|
|
3237
3370
|
code: c.invalid_string,
|
|
3238
|
-
message:
|
|
3371
|
+
message: i.message
|
|
3239
3372
|
}), n.dirty());
|
|
3240
|
-
else if (
|
|
3241
|
-
He.test(e.data) || (
|
|
3373
|
+
else if (i.kind === "ulid")
|
|
3374
|
+
He.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3242
3375
|
validation: "ulid",
|
|
3243
3376
|
code: c.invalid_string,
|
|
3244
|
-
message:
|
|
3377
|
+
message: i.message
|
|
3245
3378
|
}), n.dirty());
|
|
3246
|
-
else if (
|
|
3379
|
+
else if (i.kind === "url")
|
|
3247
3380
|
try {
|
|
3248
3381
|
new URL(e.data);
|
|
3249
3382
|
} catch {
|
|
3250
|
-
|
|
3383
|
+
r = this._getOrReturnCtx(e, r), l(r, {
|
|
3251
3384
|
validation: "url",
|
|
3252
3385
|
code: c.invalid_string,
|
|
3253
|
-
message:
|
|
3386
|
+
message: i.message
|
|
3254
3387
|
}), n.dirty();
|
|
3255
3388
|
}
|
|
3256
|
-
else
|
|
3389
|
+
else i.kind === "regex" ? (i.regex.lastIndex = 0, i.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3257
3390
|
validation: "regex",
|
|
3258
3391
|
code: c.invalid_string,
|
|
3259
|
-
message:
|
|
3260
|
-
}), n.dirty())) :
|
|
3392
|
+
message: i.message
|
|
3393
|
+
}), n.dirty())) : i.kind === "trim" ? e.data = e.data.trim() : i.kind === "includes" ? e.data.includes(i.value, i.position) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3261
3394
|
code: c.invalid_string,
|
|
3262
|
-
validation: { includes:
|
|
3263
|
-
message:
|
|
3264
|
-
}), n.dirty()) :
|
|
3395
|
+
validation: { includes: i.value, position: i.position },
|
|
3396
|
+
message: i.message
|
|
3397
|
+
}), n.dirty()) : i.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : i.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : i.kind === "startsWith" ? e.data.startsWith(i.value) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3265
3398
|
code: c.invalid_string,
|
|
3266
|
-
validation: { startsWith:
|
|
3267
|
-
message:
|
|
3268
|
-
}), n.dirty()) :
|
|
3399
|
+
validation: { startsWith: i.value },
|
|
3400
|
+
message: i.message
|
|
3401
|
+
}), n.dirty()) : i.kind === "endsWith" ? e.data.endsWith(i.value) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3269
3402
|
code: c.invalid_string,
|
|
3270
|
-
validation: { endsWith:
|
|
3271
|
-
message:
|
|
3272
|
-
}), n.dirty()) :
|
|
3403
|
+
validation: { endsWith: i.value },
|
|
3404
|
+
message: i.message
|
|
3405
|
+
}), n.dirty()) : i.kind === "datetime" ? tt(i).test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3273
3406
|
code: c.invalid_string,
|
|
3274
3407
|
validation: "datetime",
|
|
3275
|
-
message:
|
|
3276
|
-
}), n.dirty()) :
|
|
3408
|
+
message: i.message
|
|
3409
|
+
}), n.dirty()) : i.kind === "ip" ? at(e.data, i.version) || (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3277
3410
|
validation: "ip",
|
|
3278
3411
|
code: c.invalid_string,
|
|
3279
|
-
message:
|
|
3280
|
-
}), n.dirty()) : b.assertNever(
|
|
3412
|
+
message: i.message
|
|
3413
|
+
}), n.dirty()) : b.assertNever(i);
|
|
3281
3414
|
return { status: n.value, value: e.data };
|
|
3282
3415
|
}
|
|
3283
3416
|
_regex(e, t, n) {
|
|
3284
|
-
return this.refinement((
|
|
3417
|
+
return this.refinement((r) => e.test(r), {
|
|
3285
3418
|
validation: t,
|
|
3286
3419
|
code: c.invalid_string,
|
|
3287
3420
|
...p.errToObj(n)
|
|
@@ -3450,14 +3583,14 @@ A.create = (a) => {
|
|
|
3450
3583
|
var e;
|
|
3451
3584
|
return new A({
|
|
3452
3585
|
checks: [],
|
|
3453
|
-
typeName:
|
|
3586
|
+
typeName: f.ZodString,
|
|
3454
3587
|
coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
|
|
3455
3588
|
..._(a)
|
|
3456
3589
|
});
|
|
3457
3590
|
};
|
|
3458
3591
|
function nt(a, e) {
|
|
3459
|
-
const t = (a.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length,
|
|
3460
|
-
return
|
|
3592
|
+
const t = (a.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, r = t > n ? t : n, i = parseInt(a.toFixed(r).replace(".", "")), s = parseInt(e.toFixed(r).replace(".", ""));
|
|
3593
|
+
return i % s / Math.pow(10, r);
|
|
3461
3594
|
}
|
|
3462
3595
|
class D extends v {
|
|
3463
3596
|
constructor() {
|
|
@@ -3465,44 +3598,44 @@ class D extends v {
|
|
|
3465
3598
|
}
|
|
3466
3599
|
_parse(e) {
|
|
3467
3600
|
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== u.number) {
|
|
3468
|
-
const
|
|
3469
|
-
return l(
|
|
3601
|
+
const i = this._getOrReturnCtx(e);
|
|
3602
|
+
return l(i, {
|
|
3470
3603
|
code: c.invalid_type,
|
|
3471
3604
|
expected: u.number,
|
|
3472
|
-
received:
|
|
3473
|
-
}),
|
|
3605
|
+
received: i.parsedType
|
|
3606
|
+
}), h;
|
|
3474
3607
|
}
|
|
3475
3608
|
let n;
|
|
3476
|
-
const
|
|
3477
|
-
for (const
|
|
3478
|
-
|
|
3609
|
+
const r = new T();
|
|
3610
|
+
for (const i of this._def.checks)
|
|
3611
|
+
i.kind === "int" ? b.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), l(n, {
|
|
3479
3612
|
code: c.invalid_type,
|
|
3480
3613
|
expected: "integer",
|
|
3481
3614
|
received: "float",
|
|
3482
|
-
message:
|
|
3483
|
-
}),
|
|
3615
|
+
message: i.message
|
|
3616
|
+
}), r.dirty()) : i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (n = this._getOrReturnCtx(e, n), l(n, {
|
|
3484
3617
|
code: c.too_small,
|
|
3485
|
-
minimum:
|
|
3618
|
+
minimum: i.value,
|
|
3486
3619
|
type: "number",
|
|
3487
|
-
inclusive:
|
|
3620
|
+
inclusive: i.inclusive,
|
|
3488
3621
|
exact: !1,
|
|
3489
|
-
message:
|
|
3490
|
-
}),
|
|
3622
|
+
message: i.message
|
|
3623
|
+
}), r.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (n = this._getOrReturnCtx(e, n), l(n, {
|
|
3491
3624
|
code: c.too_big,
|
|
3492
|
-
maximum:
|
|
3625
|
+
maximum: i.value,
|
|
3493
3626
|
type: "number",
|
|
3494
|
-
inclusive:
|
|
3627
|
+
inclusive: i.inclusive,
|
|
3495
3628
|
exact: !1,
|
|
3496
|
-
message:
|
|
3497
|
-
}),
|
|
3629
|
+
message: i.message
|
|
3630
|
+
}), r.dirty()) : i.kind === "multipleOf" ? nt(e.data, i.value) !== 0 && (n = this._getOrReturnCtx(e, n), l(n, {
|
|
3498
3631
|
code: c.not_multiple_of,
|
|
3499
|
-
multipleOf:
|
|
3500
|
-
message:
|
|
3501
|
-
}),
|
|
3632
|
+
multipleOf: i.value,
|
|
3633
|
+
message: i.message
|
|
3634
|
+
}), r.dirty()) : i.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), l(n, {
|
|
3502
3635
|
code: c.not_finite,
|
|
3503
|
-
message:
|
|
3504
|
-
}),
|
|
3505
|
-
return { status:
|
|
3636
|
+
message: i.message
|
|
3637
|
+
}), r.dirty()) : b.assertNever(i);
|
|
3638
|
+
return { status: r.value, value: e.data };
|
|
3506
3639
|
}
|
|
3507
3640
|
gte(e, t) {
|
|
3508
3641
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -3516,7 +3649,7 @@ class D extends v {
|
|
|
3516
3649
|
lt(e, t) {
|
|
3517
3650
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
3518
3651
|
}
|
|
3519
|
-
setLimit(e, t, n,
|
|
3652
|
+
setLimit(e, t, n, r) {
|
|
3520
3653
|
return new D({
|
|
3521
3654
|
...this._def,
|
|
3522
3655
|
checks: [
|
|
@@ -3525,7 +3658,7 @@ class D extends v {
|
|
|
3525
3658
|
kind: e,
|
|
3526
3659
|
value: t,
|
|
3527
3660
|
inclusive: n,
|
|
3528
|
-
message: p.toString(
|
|
3661
|
+
message: p.toString(r)
|
|
3529
3662
|
}
|
|
3530
3663
|
]
|
|
3531
3664
|
});
|
|
@@ -3627,7 +3760,7 @@ class D extends v {
|
|
|
3627
3760
|
}
|
|
3628
3761
|
D.create = (a) => new D({
|
|
3629
3762
|
checks: [],
|
|
3630
|
-
typeName:
|
|
3763
|
+
typeName: f.ZodNumber,
|
|
3631
3764
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
3632
3765
|
..._(a)
|
|
3633
3766
|
});
|
|
@@ -3637,34 +3770,34 @@ class Z extends v {
|
|
|
3637
3770
|
}
|
|
3638
3771
|
_parse(e) {
|
|
3639
3772
|
if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== u.bigint) {
|
|
3640
|
-
const
|
|
3641
|
-
return l(
|
|
3773
|
+
const i = this._getOrReturnCtx(e);
|
|
3774
|
+
return l(i, {
|
|
3642
3775
|
code: c.invalid_type,
|
|
3643
3776
|
expected: u.bigint,
|
|
3644
|
-
received:
|
|
3645
|
-
}),
|
|
3777
|
+
received: i.parsedType
|
|
3778
|
+
}), h;
|
|
3646
3779
|
}
|
|
3647
3780
|
let n;
|
|
3648
|
-
const
|
|
3649
|
-
for (const
|
|
3650
|
-
|
|
3781
|
+
const r = new T();
|
|
3782
|
+
for (const i of this._def.checks)
|
|
3783
|
+
i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (n = this._getOrReturnCtx(e, n), l(n, {
|
|
3651
3784
|
code: c.too_small,
|
|
3652
3785
|
type: "bigint",
|
|
3653
|
-
minimum:
|
|
3654
|
-
inclusive:
|
|
3655
|
-
message:
|
|
3656
|
-
}),
|
|
3786
|
+
minimum: i.value,
|
|
3787
|
+
inclusive: i.inclusive,
|
|
3788
|
+
message: i.message
|
|
3789
|
+
}), r.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (n = this._getOrReturnCtx(e, n), l(n, {
|
|
3657
3790
|
code: c.too_big,
|
|
3658
3791
|
type: "bigint",
|
|
3659
|
-
maximum:
|
|
3660
|
-
inclusive:
|
|
3661
|
-
message:
|
|
3662
|
-
}),
|
|
3792
|
+
maximum: i.value,
|
|
3793
|
+
inclusive: i.inclusive,
|
|
3794
|
+
message: i.message
|
|
3795
|
+
}), r.dirty()) : i.kind === "multipleOf" ? e.data % i.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), l(n, {
|
|
3663
3796
|
code: c.not_multiple_of,
|
|
3664
|
-
multipleOf:
|
|
3665
|
-
message:
|
|
3666
|
-
}),
|
|
3667
|
-
return { status:
|
|
3797
|
+
multipleOf: i.value,
|
|
3798
|
+
message: i.message
|
|
3799
|
+
}), r.dirty()) : b.assertNever(i);
|
|
3800
|
+
return { status: r.value, value: e.data };
|
|
3668
3801
|
}
|
|
3669
3802
|
gte(e, t) {
|
|
3670
3803
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -3678,7 +3811,7 @@ class Z extends v {
|
|
|
3678
3811
|
lt(e, t) {
|
|
3679
3812
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
3680
3813
|
}
|
|
3681
|
-
setLimit(e, t, n,
|
|
3814
|
+
setLimit(e, t, n, r) {
|
|
3682
3815
|
return new Z({
|
|
3683
3816
|
...this._def,
|
|
3684
3817
|
checks: [
|
|
@@ -3687,7 +3820,7 @@ class Z extends v {
|
|
|
3687
3820
|
kind: e,
|
|
3688
3821
|
value: t,
|
|
3689
3822
|
inclusive: n,
|
|
3690
|
-
message: p.toString(
|
|
3823
|
+
message: p.toString(r)
|
|
3691
3824
|
}
|
|
3692
3825
|
]
|
|
3693
3826
|
});
|
|
@@ -3754,7 +3887,7 @@ Z.create = (a) => {
|
|
|
3754
3887
|
var e;
|
|
3755
3888
|
return new Z({
|
|
3756
3889
|
checks: [],
|
|
3757
|
-
typeName:
|
|
3890
|
+
typeName: f.ZodBigInt,
|
|
3758
3891
|
coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
|
|
3759
3892
|
..._(a)
|
|
3760
3893
|
});
|
|
@@ -3767,50 +3900,50 @@ class J extends v {
|
|
|
3767
3900
|
code: c.invalid_type,
|
|
3768
3901
|
expected: u.boolean,
|
|
3769
3902
|
received: n.parsedType
|
|
3770
|
-
}),
|
|
3903
|
+
}), h;
|
|
3771
3904
|
}
|
|
3772
3905
|
return C(e.data);
|
|
3773
3906
|
}
|
|
3774
3907
|
}
|
|
3775
3908
|
J.create = (a) => new J({
|
|
3776
|
-
typeName:
|
|
3909
|
+
typeName: f.ZodBoolean,
|
|
3777
3910
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
3778
3911
|
..._(a)
|
|
3779
3912
|
});
|
|
3780
3913
|
class B extends v {
|
|
3781
3914
|
_parse(e) {
|
|
3782
3915
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== u.date) {
|
|
3783
|
-
const
|
|
3784
|
-
return l(
|
|
3916
|
+
const i = this._getOrReturnCtx(e);
|
|
3917
|
+
return l(i, {
|
|
3785
3918
|
code: c.invalid_type,
|
|
3786
3919
|
expected: u.date,
|
|
3787
|
-
received:
|
|
3788
|
-
}),
|
|
3920
|
+
received: i.parsedType
|
|
3921
|
+
}), h;
|
|
3789
3922
|
}
|
|
3790
3923
|
if (isNaN(e.data.getTime())) {
|
|
3791
|
-
const
|
|
3792
|
-
return l(
|
|
3924
|
+
const i = this._getOrReturnCtx(e);
|
|
3925
|
+
return l(i, {
|
|
3793
3926
|
code: c.invalid_date
|
|
3794
|
-
}),
|
|
3927
|
+
}), h;
|
|
3795
3928
|
}
|
|
3796
3929
|
const n = new T();
|
|
3797
|
-
let
|
|
3798
|
-
for (const
|
|
3799
|
-
|
|
3930
|
+
let r;
|
|
3931
|
+
for (const i of this._def.checks)
|
|
3932
|
+
i.kind === "min" ? e.data.getTime() < i.value && (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3800
3933
|
code: c.too_small,
|
|
3801
|
-
message:
|
|
3934
|
+
message: i.message,
|
|
3802
3935
|
inclusive: !0,
|
|
3803
3936
|
exact: !1,
|
|
3804
|
-
minimum:
|
|
3937
|
+
minimum: i.value,
|
|
3805
3938
|
type: "date"
|
|
3806
|
-
}), n.dirty()) :
|
|
3939
|
+
}), n.dirty()) : i.kind === "max" ? e.data.getTime() > i.value && (r = this._getOrReturnCtx(e, r), l(r, {
|
|
3807
3940
|
code: c.too_big,
|
|
3808
|
-
message:
|
|
3941
|
+
message: i.message,
|
|
3809
3942
|
inclusive: !0,
|
|
3810
3943
|
exact: !1,
|
|
3811
|
-
maximum:
|
|
3944
|
+
maximum: i.value,
|
|
3812
3945
|
type: "date"
|
|
3813
|
-
}), n.dirty()) : b.assertNever(
|
|
3946
|
+
}), n.dirty()) : b.assertNever(i);
|
|
3814
3947
|
return {
|
|
3815
3948
|
status: n.value,
|
|
3816
3949
|
value: new Date(e.data.getTime())
|
|
@@ -3852,7 +3985,7 @@ class B extends v {
|
|
|
3852
3985
|
B.create = (a) => new B({
|
|
3853
3986
|
checks: [],
|
|
3854
3987
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
3855
|
-
typeName:
|
|
3988
|
+
typeName: f.ZodDate,
|
|
3856
3989
|
..._(a)
|
|
3857
3990
|
});
|
|
3858
3991
|
class le extends v {
|
|
@@ -3863,13 +3996,13 @@ class le extends v {
|
|
|
3863
3996
|
code: c.invalid_type,
|
|
3864
3997
|
expected: u.symbol,
|
|
3865
3998
|
received: n.parsedType
|
|
3866
|
-
}),
|
|
3999
|
+
}), h;
|
|
3867
4000
|
}
|
|
3868
4001
|
return C(e.data);
|
|
3869
4002
|
}
|
|
3870
4003
|
}
|
|
3871
4004
|
le.create = (a) => new le({
|
|
3872
|
-
typeName:
|
|
4005
|
+
typeName: f.ZodSymbol,
|
|
3873
4006
|
..._(a)
|
|
3874
4007
|
});
|
|
3875
4008
|
class X extends v {
|
|
@@ -3880,13 +4013,13 @@ class X extends v {
|
|
|
3880
4013
|
code: c.invalid_type,
|
|
3881
4014
|
expected: u.undefined,
|
|
3882
4015
|
received: n.parsedType
|
|
3883
|
-
}),
|
|
4016
|
+
}), h;
|
|
3884
4017
|
}
|
|
3885
4018
|
return C(e.data);
|
|
3886
4019
|
}
|
|
3887
4020
|
}
|
|
3888
4021
|
X.create = (a) => new X({
|
|
3889
|
-
typeName:
|
|
4022
|
+
typeName: f.ZodUndefined,
|
|
3890
4023
|
..._(a)
|
|
3891
4024
|
});
|
|
3892
4025
|
class K extends v {
|
|
@@ -3897,16 +4030,16 @@ class K extends v {
|
|
|
3897
4030
|
code: c.invalid_type,
|
|
3898
4031
|
expected: u.null,
|
|
3899
4032
|
received: n.parsedType
|
|
3900
|
-
}),
|
|
4033
|
+
}), h;
|
|
3901
4034
|
}
|
|
3902
4035
|
return C(e.data);
|
|
3903
4036
|
}
|
|
3904
4037
|
}
|
|
3905
4038
|
K.create = (a) => new K({
|
|
3906
|
-
typeName:
|
|
4039
|
+
typeName: f.ZodNull,
|
|
3907
4040
|
..._(a)
|
|
3908
4041
|
});
|
|
3909
|
-
class
|
|
4042
|
+
class W extends v {
|
|
3910
4043
|
constructor() {
|
|
3911
4044
|
super(...arguments), this._any = !0;
|
|
3912
4045
|
}
|
|
@@ -3914,8 +4047,8 @@ class Y extends v {
|
|
|
3914
4047
|
return C(e.data);
|
|
3915
4048
|
}
|
|
3916
4049
|
}
|
|
3917
|
-
|
|
3918
|
-
typeName:
|
|
4050
|
+
W.create = (a) => new W({
|
|
4051
|
+
typeName: f.ZodAny,
|
|
3919
4052
|
..._(a)
|
|
3920
4053
|
});
|
|
3921
4054
|
class $ extends v {
|
|
@@ -3927,7 +4060,7 @@ class $ extends v {
|
|
|
3927
4060
|
}
|
|
3928
4061
|
}
|
|
3929
4062
|
$.create = (a) => new $({
|
|
3930
|
-
typeName:
|
|
4063
|
+
typeName: f.ZodUnknown,
|
|
3931
4064
|
..._(a)
|
|
3932
4065
|
});
|
|
3933
4066
|
class L extends v {
|
|
@@ -3937,11 +4070,11 @@ class L extends v {
|
|
|
3937
4070
|
code: c.invalid_type,
|
|
3938
4071
|
expected: u.never,
|
|
3939
4072
|
received: t.parsedType
|
|
3940
|
-
}),
|
|
4073
|
+
}), h;
|
|
3941
4074
|
}
|
|
3942
4075
|
}
|
|
3943
4076
|
L.create = (a) => new L({
|
|
3944
|
-
typeName:
|
|
4077
|
+
typeName: f.ZodNever,
|
|
3945
4078
|
..._(a)
|
|
3946
4079
|
});
|
|
3947
4080
|
class me extends v {
|
|
@@ -3952,54 +4085,54 @@ class me extends v {
|
|
|
3952
4085
|
code: c.invalid_type,
|
|
3953
4086
|
expected: u.void,
|
|
3954
4087
|
received: n.parsedType
|
|
3955
|
-
}),
|
|
4088
|
+
}), h;
|
|
3956
4089
|
}
|
|
3957
4090
|
return C(e.data);
|
|
3958
4091
|
}
|
|
3959
4092
|
}
|
|
3960
4093
|
me.create = (a) => new me({
|
|
3961
|
-
typeName:
|
|
4094
|
+
typeName: f.ZodVoid,
|
|
3962
4095
|
..._(a)
|
|
3963
4096
|
});
|
|
3964
4097
|
class O extends v {
|
|
3965
4098
|
_parse(e) {
|
|
3966
|
-
const { ctx: t, status: n } = this._processInputParams(e),
|
|
4099
|
+
const { ctx: t, status: n } = this._processInputParams(e), r = this._def;
|
|
3967
4100
|
if (t.parsedType !== u.array)
|
|
3968
4101
|
return l(t, {
|
|
3969
4102
|
code: c.invalid_type,
|
|
3970
4103
|
expected: u.array,
|
|
3971
4104
|
received: t.parsedType
|
|
3972
|
-
}),
|
|
3973
|
-
if (
|
|
3974
|
-
const s = t.data.length >
|
|
4105
|
+
}), h;
|
|
4106
|
+
if (r.exactLength !== null) {
|
|
4107
|
+
const s = t.data.length > r.exactLength.value, o = t.data.length < r.exactLength.value;
|
|
3975
4108
|
(s || o) && (l(t, {
|
|
3976
4109
|
code: s ? c.too_big : c.too_small,
|
|
3977
|
-
minimum: o ?
|
|
3978
|
-
maximum: s ?
|
|
4110
|
+
minimum: o ? r.exactLength.value : void 0,
|
|
4111
|
+
maximum: s ? r.exactLength.value : void 0,
|
|
3979
4112
|
type: "array",
|
|
3980
4113
|
inclusive: !0,
|
|
3981
4114
|
exact: !0,
|
|
3982
|
-
message:
|
|
4115
|
+
message: r.exactLength.message
|
|
3983
4116
|
}), n.dirty());
|
|
3984
4117
|
}
|
|
3985
|
-
if (
|
|
4118
|
+
if (r.minLength !== null && t.data.length < r.minLength.value && (l(t, {
|
|
3986
4119
|
code: c.too_small,
|
|
3987
|
-
minimum:
|
|
4120
|
+
minimum: r.minLength.value,
|
|
3988
4121
|
type: "array",
|
|
3989
4122
|
inclusive: !0,
|
|
3990
4123
|
exact: !1,
|
|
3991
|
-
message:
|
|
3992
|
-
}), n.dirty()),
|
|
4124
|
+
message: r.minLength.message
|
|
4125
|
+
}), n.dirty()), r.maxLength !== null && t.data.length > r.maxLength.value && (l(t, {
|
|
3993
4126
|
code: c.too_big,
|
|
3994
|
-
maximum:
|
|
4127
|
+
maximum: r.maxLength.value,
|
|
3995
4128
|
type: "array",
|
|
3996
4129
|
inclusive: !0,
|
|
3997
4130
|
exact: !1,
|
|
3998
|
-
message:
|
|
4131
|
+
message: r.maxLength.message
|
|
3999
4132
|
}), n.dirty()), t.common.async)
|
|
4000
|
-
return Promise.all([...t.data].map((s, o) =>
|
|
4001
|
-
const
|
|
4002
|
-
return T.mergeArray(n,
|
|
4133
|
+
return Promise.all([...t.data].map((s, o) => r.type._parseAsync(new N(t, s, t.path, o)))).then((s) => T.mergeArray(n, s));
|
|
4134
|
+
const i = [...t.data].map((s, o) => r.type._parseSync(new N(t, s, t.path, o)));
|
|
4135
|
+
return T.mergeArray(n, i);
|
|
4003
4136
|
}
|
|
4004
4137
|
get element() {
|
|
4005
4138
|
return this._def.type;
|
|
@@ -4031,7 +4164,7 @@ O.create = (a, e) => new O({
|
|
|
4031
4164
|
minLength: null,
|
|
4032
4165
|
maxLength: null,
|
|
4033
4166
|
exactLength: null,
|
|
4034
|
-
typeName:
|
|
4167
|
+
typeName: f.ZodArray,
|
|
4035
4168
|
..._(e)
|
|
4036
4169
|
});
|
|
4037
4170
|
function G(a) {
|
|
@@ -4067,19 +4200,19 @@ class w extends v {
|
|
|
4067
4200
|
code: c.invalid_type,
|
|
4068
4201
|
expected: u.object,
|
|
4069
4202
|
received: d.parsedType
|
|
4070
|
-
}),
|
|
4203
|
+
}), h;
|
|
4071
4204
|
}
|
|
4072
|
-
const { status: n, ctx:
|
|
4205
|
+
const { status: n, ctx: r } = this._processInputParams(e), { shape: i, keys: s } = this._getCached(), o = [];
|
|
4073
4206
|
if (!(this._def.catchall instanceof L && this._def.unknownKeys === "strip"))
|
|
4074
|
-
for (const d in
|
|
4207
|
+
for (const d in r.data)
|
|
4075
4208
|
s.includes(d) || o.push(d);
|
|
4076
4209
|
const m = [];
|
|
4077
4210
|
for (const d of s) {
|
|
4078
|
-
const y =
|
|
4211
|
+
const y = i[d], S = r.data[d];
|
|
4079
4212
|
m.push({
|
|
4080
4213
|
key: { status: "valid", value: d },
|
|
4081
|
-
value: y._parse(new N(
|
|
4082
|
-
alwaysSet: d in
|
|
4214
|
+
value: y._parse(new N(r, S, r.path, d)),
|
|
4215
|
+
alwaysSet: d in r.data
|
|
4083
4216
|
});
|
|
4084
4217
|
}
|
|
4085
4218
|
if (this._def.catchall instanceof L) {
|
|
@@ -4088,10 +4221,10 @@ class w extends v {
|
|
|
4088
4221
|
for (const y of o)
|
|
4089
4222
|
m.push({
|
|
4090
4223
|
key: { status: "valid", value: y },
|
|
4091
|
-
value: { status: "valid", value:
|
|
4224
|
+
value: { status: "valid", value: r.data[y] }
|
|
4092
4225
|
});
|
|
4093
4226
|
else if (d === "strict")
|
|
4094
|
-
o.length > 0 && (l(
|
|
4227
|
+
o.length > 0 && (l(r, {
|
|
4095
4228
|
code: c.unrecognized_keys,
|
|
4096
4229
|
keys: o
|
|
4097
4230
|
}), n.dirty());
|
|
@@ -4099,18 +4232,18 @@ class w extends v {
|
|
|
4099
4232
|
} else {
|
|
4100
4233
|
const d = this._def.catchall;
|
|
4101
4234
|
for (const y of o) {
|
|
4102
|
-
const S =
|
|
4235
|
+
const S = r.data[y];
|
|
4103
4236
|
m.push({
|
|
4104
4237
|
key: { status: "valid", value: y },
|
|
4105
4238
|
value: d._parse(
|
|
4106
|
-
new N(
|
|
4239
|
+
new N(r, S, r.path, y)
|
|
4107
4240
|
//, ctx.child(key), value, getParsedType(value)
|
|
4108
4241
|
),
|
|
4109
|
-
alwaysSet: y in
|
|
4242
|
+
alwaysSet: y in r.data
|
|
4110
4243
|
});
|
|
4111
4244
|
}
|
|
4112
4245
|
}
|
|
4113
|
-
return
|
|
4246
|
+
return r.common.async ? Promise.resolve().then(async () => {
|
|
4114
4247
|
const d = [];
|
|
4115
4248
|
for (const y of m) {
|
|
4116
4249
|
const S = await y.key;
|
|
@@ -4132,8 +4265,8 @@ class w extends v {
|
|
|
4132
4265
|
unknownKeys: "strict",
|
|
4133
4266
|
...e !== void 0 ? {
|
|
4134
4267
|
errorMap: (t, n) => {
|
|
4135
|
-
var
|
|
4136
|
-
const m = (s = (
|
|
4268
|
+
var r, i, s, o;
|
|
4269
|
+
const m = (s = (i = (r = this._def).errorMap) === null || i === void 0 ? void 0 : i.call(r, t, n).message) !== null && s !== void 0 ? s : n.defaultError;
|
|
4137
4270
|
return t.code === "unrecognized_keys" ? {
|
|
4138
4271
|
message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : m
|
|
4139
4272
|
} : {
|
|
@@ -4194,7 +4327,7 @@ class w extends v {
|
|
|
4194
4327
|
...this._def.shape(),
|
|
4195
4328
|
...e._def.shape()
|
|
4196
4329
|
}),
|
|
4197
|
-
typeName:
|
|
4330
|
+
typeName: f.ZodObject
|
|
4198
4331
|
});
|
|
4199
4332
|
}
|
|
4200
4333
|
// merge<
|
|
@@ -4289,8 +4422,8 @@ class w extends v {
|
|
|
4289
4422
|
partial(e) {
|
|
4290
4423
|
const t = {};
|
|
4291
4424
|
return b.objectKeys(this.shape).forEach((n) => {
|
|
4292
|
-
const
|
|
4293
|
-
e && !e[n] ? t[n] =
|
|
4425
|
+
const r = this.shape[n];
|
|
4426
|
+
e && !e[n] ? t[n] = r : t[n] = r.optional();
|
|
4294
4427
|
}), new w({
|
|
4295
4428
|
...this._def,
|
|
4296
4429
|
shape: () => t
|
|
@@ -4302,10 +4435,10 @@ class w extends v {
|
|
|
4302
4435
|
if (e && !e[n])
|
|
4303
4436
|
t[n] = this.shape[n];
|
|
4304
4437
|
else {
|
|
4305
|
-
let
|
|
4306
|
-
for (;
|
|
4307
|
-
|
|
4308
|
-
t[n] =
|
|
4438
|
+
let i = this.shape[n];
|
|
4439
|
+
for (; i instanceof P; )
|
|
4440
|
+
i = i._def.innerType;
|
|
4441
|
+
t[n] = i;
|
|
4309
4442
|
}
|
|
4310
4443
|
}), new w({
|
|
4311
4444
|
...this._def,
|
|
@@ -4320,41 +4453,41 @@ w.create = (a, e) => new w({
|
|
|
4320
4453
|
shape: () => a,
|
|
4321
4454
|
unknownKeys: "strip",
|
|
4322
4455
|
catchall: L.create(),
|
|
4323
|
-
typeName:
|
|
4456
|
+
typeName: f.ZodObject,
|
|
4324
4457
|
..._(e)
|
|
4325
4458
|
});
|
|
4326
4459
|
w.strictCreate = (a, e) => new w({
|
|
4327
4460
|
shape: () => a,
|
|
4328
4461
|
unknownKeys: "strict",
|
|
4329
4462
|
catchall: L.create(),
|
|
4330
|
-
typeName:
|
|
4463
|
+
typeName: f.ZodObject,
|
|
4331
4464
|
..._(e)
|
|
4332
4465
|
});
|
|
4333
4466
|
w.lazycreate = (a, e) => new w({
|
|
4334
4467
|
shape: a,
|
|
4335
4468
|
unknownKeys: "strip",
|
|
4336
4469
|
catchall: L.create(),
|
|
4337
|
-
typeName:
|
|
4470
|
+
typeName: f.ZodObject,
|
|
4338
4471
|
..._(e)
|
|
4339
4472
|
});
|
|
4340
4473
|
class Q extends v {
|
|
4341
4474
|
_parse(e) {
|
|
4342
4475
|
const { ctx: t } = this._processInputParams(e), n = this._def.options;
|
|
4343
|
-
function i
|
|
4344
|
-
for (const o of
|
|
4476
|
+
function r(i) {
|
|
4477
|
+
for (const o of i)
|
|
4345
4478
|
if (o.result.status === "valid")
|
|
4346
4479
|
return o.result;
|
|
4347
|
-
for (const o of
|
|
4480
|
+
for (const o of i)
|
|
4348
4481
|
if (o.result.status === "dirty")
|
|
4349
4482
|
return t.common.issues.push(...o.ctx.common.issues), o.result;
|
|
4350
|
-
const s =
|
|
4483
|
+
const s = i.map((o) => new E(o.ctx.common.issues));
|
|
4351
4484
|
return l(t, {
|
|
4352
4485
|
code: c.invalid_union,
|
|
4353
4486
|
unionErrors: s
|
|
4354
|
-
}),
|
|
4487
|
+
}), h;
|
|
4355
4488
|
}
|
|
4356
4489
|
if (t.common.async)
|
|
4357
|
-
return Promise.all(n.map(async (
|
|
4490
|
+
return Promise.all(n.map(async (i) => {
|
|
4358
4491
|
const s = {
|
|
4359
4492
|
...t,
|
|
4360
4493
|
common: {
|
|
@@ -4364,16 +4497,16 @@ class Q extends v {
|
|
|
4364
4497
|
parent: null
|
|
4365
4498
|
};
|
|
4366
4499
|
return {
|
|
4367
|
-
result: await
|
|
4500
|
+
result: await i._parseAsync({
|
|
4368
4501
|
data: t.data,
|
|
4369
4502
|
path: t.path,
|
|
4370
4503
|
parent: s
|
|
4371
4504
|
}),
|
|
4372
4505
|
ctx: s
|
|
4373
4506
|
};
|
|
4374
|
-
})).then(
|
|
4507
|
+
})).then(r);
|
|
4375
4508
|
{
|
|
4376
|
-
let
|
|
4509
|
+
let i;
|
|
4377
4510
|
const s = [];
|
|
4378
4511
|
for (const m of n) {
|
|
4379
4512
|
const d = {
|
|
@@ -4390,15 +4523,15 @@ class Q extends v {
|
|
|
4390
4523
|
});
|
|
4391
4524
|
if (y.status === "valid")
|
|
4392
4525
|
return y;
|
|
4393
|
-
y.status === "dirty" && !
|
|
4526
|
+
y.status === "dirty" && !i && (i = { result: y, ctx: d }), d.common.issues.length && s.push(d.common.issues);
|
|
4394
4527
|
}
|
|
4395
|
-
if (
|
|
4396
|
-
return t.common.issues.push(...
|
|
4528
|
+
if (i)
|
|
4529
|
+
return t.common.issues.push(...i.ctx.common.issues), i.result;
|
|
4397
4530
|
const o = s.map((m) => new E(m));
|
|
4398
4531
|
return l(t, {
|
|
4399
4532
|
code: c.invalid_union,
|
|
4400
4533
|
unionErrors: o
|
|
4401
|
-
}),
|
|
4534
|
+
}), h;
|
|
4402
4535
|
}
|
|
4403
4536
|
}
|
|
4404
4537
|
get options() {
|
|
@@ -4407,10 +4540,10 @@ class Q extends v {
|
|
|
4407
4540
|
}
|
|
4408
4541
|
Q.create = (a, e) => new Q({
|
|
4409
4542
|
options: a,
|
|
4410
|
-
typeName:
|
|
4543
|
+
typeName: f.ZodUnion,
|
|
4411
4544
|
..._(e)
|
|
4412
4545
|
});
|
|
4413
|
-
const oe = (a) => a instanceof ae ? oe(a.schema) : a instanceof I ? oe(a.innerType()) : a instanceof ne ? [a.value] : a instanceof V ? a.options : a instanceof
|
|
4546
|
+
const oe = (a) => a instanceof ae ? oe(a.schema) : a instanceof I ? oe(a.innerType()) : a instanceof ne ? [a.value] : a instanceof V ? a.options : a instanceof re ? Object.keys(a.enum) : a instanceof ie ? oe(a._def.innerType) : a instanceof X ? [void 0] : a instanceof K ? [null] : null;
|
|
4414
4547
|
class _e extends v {
|
|
4415
4548
|
_parse(e) {
|
|
4416
4549
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -4419,13 +4552,13 @@ class _e extends v {
|
|
|
4419
4552
|
code: c.invalid_type,
|
|
4420
4553
|
expected: u.object,
|
|
4421
4554
|
received: t.parsedType
|
|
4422
|
-
}),
|
|
4423
|
-
const n = this.discriminator,
|
|
4424
|
-
return
|
|
4555
|
+
}), h;
|
|
4556
|
+
const n = this.discriminator, r = t.data[n], i = this.optionsMap.get(r);
|
|
4557
|
+
return i ? t.common.async ? i._parseAsync({
|
|
4425
4558
|
data: t.data,
|
|
4426
4559
|
path: t.path,
|
|
4427
4560
|
parent: t
|
|
4428
|
-
}) :
|
|
4561
|
+
}) : i._parseSync({
|
|
4429
4562
|
data: t.data,
|
|
4430
4563
|
path: t.path,
|
|
4431
4564
|
parent: t
|
|
@@ -4433,7 +4566,7 @@ class _e extends v {
|
|
|
4433
4566
|
code: c.invalid_union_discriminator,
|
|
4434
4567
|
options: Array.from(this.optionsMap.keys()),
|
|
4435
4568
|
path: [n]
|
|
4436
|
-
}),
|
|
4569
|
+
}), h);
|
|
4437
4570
|
}
|
|
4438
4571
|
get discriminator() {
|
|
4439
4572
|
return this._def.discriminator;
|
|
@@ -4453,22 +4586,22 @@ class _e extends v {
|
|
|
4453
4586
|
* @param params
|
|
4454
4587
|
*/
|
|
4455
4588
|
static create(e, t, n) {
|
|
4456
|
-
const
|
|
4457
|
-
for (const
|
|
4458
|
-
const s = oe(
|
|
4589
|
+
const r = /* @__PURE__ */ new Map();
|
|
4590
|
+
for (const i of t) {
|
|
4591
|
+
const s = oe(i.shape[e]);
|
|
4459
4592
|
if (!s)
|
|
4460
4593
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
4461
4594
|
for (const o of s) {
|
|
4462
|
-
if (
|
|
4595
|
+
if (r.has(o))
|
|
4463
4596
|
throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);
|
|
4464
|
-
|
|
4597
|
+
r.set(o, i);
|
|
4465
4598
|
}
|
|
4466
4599
|
}
|
|
4467
4600
|
return new _e({
|
|
4468
|
-
typeName:
|
|
4601
|
+
typeName: f.ZodDiscriminatedUnion,
|
|
4469
4602
|
discriminator: e,
|
|
4470
4603
|
options: t,
|
|
4471
|
-
optionsMap:
|
|
4604
|
+
optionsMap: r,
|
|
4472
4605
|
..._(n)
|
|
4473
4606
|
});
|
|
4474
4607
|
}
|
|
@@ -4478,8 +4611,8 @@ function Te(a, e) {
|
|
|
4478
4611
|
if (a === e)
|
|
4479
4612
|
return { valid: !0, data: a };
|
|
4480
4613
|
if (t === u.object && n === u.object) {
|
|
4481
|
-
const
|
|
4482
|
-
for (const o of
|
|
4614
|
+
const r = b.objectKeys(e), i = b.objectKeys(a).filter((o) => r.indexOf(o) !== -1), s = { ...a, ...e };
|
|
4615
|
+
for (const o of i) {
|
|
4483
4616
|
const m = Te(a[o], e[o]);
|
|
4484
4617
|
if (!m.valid)
|
|
4485
4618
|
return { valid: !1 };
|
|
@@ -4489,25 +4622,25 @@ function Te(a, e) {
|
|
|
4489
4622
|
} else if (t === u.array && n === u.array) {
|
|
4490
4623
|
if (a.length !== e.length)
|
|
4491
4624
|
return { valid: !1 };
|
|
4492
|
-
const
|
|
4493
|
-
for (let
|
|
4494
|
-
const s = a[
|
|
4625
|
+
const r = [];
|
|
4626
|
+
for (let i = 0; i < a.length; i++) {
|
|
4627
|
+
const s = a[i], o = e[i], m = Te(s, o);
|
|
4495
4628
|
if (!m.valid)
|
|
4496
4629
|
return { valid: !1 };
|
|
4497
|
-
|
|
4630
|
+
r.push(m.data);
|
|
4498
4631
|
}
|
|
4499
|
-
return { valid: !0, data:
|
|
4632
|
+
return { valid: !0, data: r };
|
|
4500
4633
|
} else return t === u.date && n === u.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
|
|
4501
4634
|
}
|
|
4502
4635
|
class ee extends v {
|
|
4503
4636
|
_parse(e) {
|
|
4504
|
-
const { status: t, ctx: n } = this._processInputParams(e),
|
|
4505
|
-
if (xe(
|
|
4506
|
-
return
|
|
4507
|
-
const o = Te(
|
|
4508
|
-
return o.valid ? ((we(
|
|
4637
|
+
const { status: t, ctx: n } = this._processInputParams(e), r = (i, s) => {
|
|
4638
|
+
if (xe(i) || xe(s))
|
|
4639
|
+
return h;
|
|
4640
|
+
const o = Te(i.value, s.value);
|
|
4641
|
+
return o.valid ? ((we(i) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (l(n, {
|
|
4509
4642
|
code: c.invalid_intersection_types
|
|
4510
|
-
}),
|
|
4643
|
+
}), h);
|
|
4511
4644
|
};
|
|
4512
4645
|
return n.common.async ? Promise.all([
|
|
4513
4646
|
this._def.left._parseAsync({
|
|
@@ -4520,7 +4653,7 @@ class ee extends v {
|
|
|
4520
4653
|
path: n.path,
|
|
4521
4654
|
parent: n
|
|
4522
4655
|
})
|
|
4523
|
-
]).then(([
|
|
4656
|
+
]).then(([i, s]) => r(i, s)) : r(this._def.left._parseSync({
|
|
4524
4657
|
data: n.data,
|
|
4525
4658
|
path: n.path,
|
|
4526
4659
|
parent: n
|
|
@@ -4534,7 +4667,7 @@ class ee extends v {
|
|
|
4534
4667
|
ee.create = (a, e, t) => new ee({
|
|
4535
4668
|
left: a,
|
|
4536
4669
|
right: e,
|
|
4537
|
-
typeName:
|
|
4670
|
+
typeName: f.ZodIntersection,
|
|
4538
4671
|
..._(t)
|
|
4539
4672
|
});
|
|
4540
4673
|
class M extends v {
|
|
@@ -4545,7 +4678,7 @@ class M extends v {
|
|
|
4545
4678
|
code: c.invalid_type,
|
|
4546
4679
|
expected: u.array,
|
|
4547
4680
|
received: n.parsedType
|
|
4548
|
-
}),
|
|
4681
|
+
}), h;
|
|
4549
4682
|
if (n.data.length < this._def.items.length)
|
|
4550
4683
|
return l(n, {
|
|
4551
4684
|
code: c.too_small,
|
|
@@ -4553,7 +4686,7 @@ class M extends v {
|
|
|
4553
4686
|
inclusive: !0,
|
|
4554
4687
|
exact: !1,
|
|
4555
4688
|
type: "array"
|
|
4556
|
-
}),
|
|
4689
|
+
}), h;
|
|
4557
4690
|
!this._def.rest && n.data.length > this._def.items.length && (l(n, {
|
|
4558
4691
|
code: c.too_big,
|
|
4559
4692
|
maximum: this._def.items.length,
|
|
@@ -4561,11 +4694,11 @@ class M extends v {
|
|
|
4561
4694
|
exact: !1,
|
|
4562
4695
|
type: "array"
|
|
4563
4696
|
}), t.dirty());
|
|
4564
|
-
const
|
|
4697
|
+
const i = [...n.data].map((s, o) => {
|
|
4565
4698
|
const m = this._def.items[o] || this._def.rest;
|
|
4566
4699
|
return m ? m._parse(new N(n, s, n.path, o)) : null;
|
|
4567
4700
|
}).filter((s) => !!s);
|
|
4568
|
-
return n.common.async ? Promise.all(
|
|
4701
|
+
return n.common.async ? Promise.all(i).then((s) => T.mergeArray(t, s)) : T.mergeArray(t, i);
|
|
4569
4702
|
}
|
|
4570
4703
|
get items() {
|
|
4571
4704
|
return this._def.items;
|
|
@@ -4582,7 +4715,7 @@ M.create = (a, e) => {
|
|
|
4582
4715
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
4583
4716
|
return new M({
|
|
4584
4717
|
items: a,
|
|
4585
|
-
typeName:
|
|
4718
|
+
typeName: f.ZodTuple,
|
|
4586
4719
|
rest: null,
|
|
4587
4720
|
..._(e)
|
|
4588
4721
|
});
|
|
@@ -4601,14 +4734,14 @@ class te extends v {
|
|
|
4601
4734
|
code: c.invalid_type,
|
|
4602
4735
|
expected: u.object,
|
|
4603
4736
|
received: n.parsedType
|
|
4604
|
-
}),
|
|
4605
|
-
const
|
|
4737
|
+
}), h;
|
|
4738
|
+
const r = [], i = this._def.keyType, s = this._def.valueType;
|
|
4606
4739
|
for (const o in n.data)
|
|
4607
|
-
|
|
4608
|
-
key:
|
|
4740
|
+
r.push({
|
|
4741
|
+
key: i._parse(new N(n, o, n.path, o)),
|
|
4609
4742
|
value: s._parse(new N(n, n.data[o], n.path, o))
|
|
4610
4743
|
});
|
|
4611
|
-
return n.common.async ? T.mergeObjectAsync(t,
|
|
4744
|
+
return n.common.async ? T.mergeObjectAsync(t, r) : T.mergeObjectSync(t, r);
|
|
4612
4745
|
}
|
|
4613
4746
|
get element() {
|
|
4614
4747
|
return this._def.valueType;
|
|
@@ -4617,12 +4750,12 @@ class te extends v {
|
|
|
4617
4750
|
return t instanceof v ? new te({
|
|
4618
4751
|
keyType: e,
|
|
4619
4752
|
valueType: t,
|
|
4620
|
-
typeName:
|
|
4753
|
+
typeName: f.ZodRecord,
|
|
4621
4754
|
..._(n)
|
|
4622
4755
|
}) : new te({
|
|
4623
4756
|
keyType: A.create(),
|
|
4624
4757
|
valueType: e,
|
|
4625
|
-
typeName:
|
|
4758
|
+
typeName: f.ZodRecord,
|
|
4626
4759
|
..._(t)
|
|
4627
4760
|
});
|
|
4628
4761
|
}
|
|
@@ -4641,10 +4774,10 @@ class pe extends v {
|
|
|
4641
4774
|
code: c.invalid_type,
|
|
4642
4775
|
expected: u.map,
|
|
4643
4776
|
received: n.parsedType
|
|
4644
|
-
}),
|
|
4645
|
-
const
|
|
4646
|
-
key:
|
|
4647
|
-
value:
|
|
4777
|
+
}), h;
|
|
4778
|
+
const r = this._def.keyType, i = this._def.valueType, s = [...n.data.entries()].map(([o, m], d) => ({
|
|
4779
|
+
key: r._parse(new N(n, o, n.path, [d, "key"])),
|
|
4780
|
+
value: i._parse(new N(n, m, n.path, [d, "value"]))
|
|
4648
4781
|
}));
|
|
4649
4782
|
if (n.common.async) {
|
|
4650
4783
|
const o = /* @__PURE__ */ new Map();
|
|
@@ -4652,7 +4785,7 @@ class pe extends v {
|
|
|
4652
4785
|
for (const m of s) {
|
|
4653
4786
|
const d = await m.key, y = await m.value;
|
|
4654
4787
|
if (d.status === "aborted" || y.status === "aborted")
|
|
4655
|
-
return
|
|
4788
|
+
return h;
|
|
4656
4789
|
(d.status === "dirty" || y.status === "dirty") && t.dirty(), o.set(d.value, y.value);
|
|
4657
4790
|
}
|
|
4658
4791
|
return { status: t.value, value: o };
|
|
@@ -4662,7 +4795,7 @@ class pe extends v {
|
|
|
4662
4795
|
for (const m of s) {
|
|
4663
4796
|
const d = m.key, y = m.value;
|
|
4664
4797
|
if (d.status === "aborted" || y.status === "aborted")
|
|
4665
|
-
return
|
|
4798
|
+
return h;
|
|
4666
4799
|
(d.status === "dirty" || y.status === "dirty") && t.dirty(), o.set(d.value, y.value);
|
|
4667
4800
|
}
|
|
4668
4801
|
return { status: t.value, value: o };
|
|
@@ -4672,7 +4805,7 @@ class pe extends v {
|
|
|
4672
4805
|
pe.create = (a, e, t) => new pe({
|
|
4673
4806
|
valueType: e,
|
|
4674
4807
|
keyType: a,
|
|
4675
|
-
typeName:
|
|
4808
|
+
typeName: f.ZodMap,
|
|
4676
4809
|
..._(t)
|
|
4677
4810
|
});
|
|
4678
4811
|
class U extends v {
|
|
@@ -4683,34 +4816,34 @@ class U extends v {
|
|
|
4683
4816
|
code: c.invalid_type,
|
|
4684
4817
|
expected: u.set,
|
|
4685
4818
|
received: n.parsedType
|
|
4686
|
-
}),
|
|
4687
|
-
const
|
|
4688
|
-
|
|
4819
|
+
}), h;
|
|
4820
|
+
const r = this._def;
|
|
4821
|
+
r.minSize !== null && n.data.size < r.minSize.value && (l(n, {
|
|
4689
4822
|
code: c.too_small,
|
|
4690
|
-
minimum:
|
|
4823
|
+
minimum: r.minSize.value,
|
|
4691
4824
|
type: "set",
|
|
4692
4825
|
inclusive: !0,
|
|
4693
4826
|
exact: !1,
|
|
4694
|
-
message:
|
|
4695
|
-
}), t.dirty()),
|
|
4827
|
+
message: r.minSize.message
|
|
4828
|
+
}), t.dirty()), r.maxSize !== null && n.data.size > r.maxSize.value && (l(n, {
|
|
4696
4829
|
code: c.too_big,
|
|
4697
|
-
maximum:
|
|
4830
|
+
maximum: r.maxSize.value,
|
|
4698
4831
|
type: "set",
|
|
4699
4832
|
inclusive: !0,
|
|
4700
4833
|
exact: !1,
|
|
4701
|
-
message:
|
|
4834
|
+
message: r.maxSize.message
|
|
4702
4835
|
}), t.dirty());
|
|
4703
|
-
const
|
|
4836
|
+
const i = this._def.valueType;
|
|
4704
4837
|
function s(m) {
|
|
4705
4838
|
const d = /* @__PURE__ */ new Set();
|
|
4706
4839
|
for (const y of m) {
|
|
4707
4840
|
if (y.status === "aborted")
|
|
4708
|
-
return
|
|
4841
|
+
return h;
|
|
4709
4842
|
y.status === "dirty" && t.dirty(), d.add(y.value);
|
|
4710
4843
|
}
|
|
4711
4844
|
return { status: t.value, value: d };
|
|
4712
4845
|
}
|
|
4713
|
-
const o = [...n.data.values()].map((m, d) =>
|
|
4846
|
+
const o = [...n.data.values()].map((m, d) => i._parse(new N(n, m, n.path, d)));
|
|
4714
4847
|
return n.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
|
|
4715
4848
|
}
|
|
4716
4849
|
min(e, t) {
|
|
@@ -4736,7 +4869,7 @@ U.create = (a, e) => new U({
|
|
|
4736
4869
|
valueType: a,
|
|
4737
4870
|
minSize: null,
|
|
4738
4871
|
maxSize: null,
|
|
4739
|
-
typeName:
|
|
4872
|
+
typeName: f.ZodSet,
|
|
4740
4873
|
..._(e)
|
|
4741
4874
|
});
|
|
4742
4875
|
class z extends v {
|
|
@@ -4750,7 +4883,7 @@ class z extends v {
|
|
|
4750
4883
|
code: c.invalid_type,
|
|
4751
4884
|
expected: u.function,
|
|
4752
4885
|
received: t.parsedType
|
|
4753
|
-
}),
|
|
4886
|
+
}), h;
|
|
4754
4887
|
function n(o, m) {
|
|
4755
4888
|
return de({
|
|
4756
4889
|
data: o,
|
|
@@ -4767,7 +4900,7 @@ class z extends v {
|
|
|
4767
4900
|
}
|
|
4768
4901
|
});
|
|
4769
4902
|
}
|
|
4770
|
-
function
|
|
4903
|
+
function r(o, m) {
|
|
4771
4904
|
return de({
|
|
4772
4905
|
data: o,
|
|
4773
4906
|
path: t.path,
|
|
@@ -4783,26 +4916,26 @@ class z extends v {
|
|
|
4783
4916
|
}
|
|
4784
4917
|
});
|
|
4785
4918
|
}
|
|
4786
|
-
const
|
|
4787
|
-
if (this._def.returns instanceof
|
|
4919
|
+
const i = { errorMap: t.common.contextualErrorMap }, s = t.data;
|
|
4920
|
+
if (this._def.returns instanceof Y) {
|
|
4788
4921
|
const o = this;
|
|
4789
4922
|
return C(async function(...m) {
|
|
4790
|
-
const d = new E([]), y = await o._def.args.parseAsync(m,
|
|
4923
|
+
const d = new E([]), y = await o._def.args.parseAsync(m, i).catch((ve) => {
|
|
4791
4924
|
throw d.addIssue(n(m, ve)), d;
|
|
4792
4925
|
}), S = await Reflect.apply(s, this, y);
|
|
4793
|
-
return await o._def.returns._def.type.parseAsync(S,
|
|
4794
|
-
throw d.addIssue(
|
|
4926
|
+
return await o._def.returns._def.type.parseAsync(S, i).catch((ve) => {
|
|
4927
|
+
throw d.addIssue(r(S, ve)), d;
|
|
4795
4928
|
});
|
|
4796
4929
|
});
|
|
4797
4930
|
} else {
|
|
4798
4931
|
const o = this;
|
|
4799
4932
|
return C(function(...m) {
|
|
4800
|
-
const d = o._def.args.safeParse(m,
|
|
4933
|
+
const d = o._def.args.safeParse(m, i);
|
|
4801
4934
|
if (!d.success)
|
|
4802
4935
|
throw new E([n(m, d.error)]);
|
|
4803
|
-
const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y,
|
|
4936
|
+
const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y, i);
|
|
4804
4937
|
if (!S.success)
|
|
4805
|
-
throw new E([
|
|
4938
|
+
throw new E([r(y, S.error)]);
|
|
4806
4939
|
return S.data;
|
|
4807
4940
|
});
|
|
4808
4941
|
}
|
|
@@ -4835,7 +4968,7 @@ class z extends v {
|
|
|
4835
4968
|
return new z({
|
|
4836
4969
|
args: e || M.create([]).rest($.create()),
|
|
4837
4970
|
returns: t || $.create(),
|
|
4838
|
-
typeName:
|
|
4971
|
+
typeName: f.ZodFunction,
|
|
4839
4972
|
..._(n)
|
|
4840
4973
|
});
|
|
4841
4974
|
}
|
|
@@ -4851,7 +4984,7 @@ class ae extends v {
|
|
|
4851
4984
|
}
|
|
4852
4985
|
ae.create = (a, e) => new ae({
|
|
4853
4986
|
getter: a,
|
|
4854
|
-
typeName:
|
|
4987
|
+
typeName: f.ZodLazy,
|
|
4855
4988
|
..._(e)
|
|
4856
4989
|
});
|
|
4857
4990
|
class ne extends v {
|
|
@@ -4862,7 +4995,7 @@ class ne extends v {
|
|
|
4862
4995
|
received: t.data,
|
|
4863
4996
|
code: c.invalid_literal,
|
|
4864
4997
|
expected: this._def.value
|
|
4865
|
-
}),
|
|
4998
|
+
}), h;
|
|
4866
4999
|
}
|
|
4867
5000
|
return { status: "valid", value: e.data };
|
|
4868
5001
|
}
|
|
@@ -4872,13 +5005,13 @@ class ne extends v {
|
|
|
4872
5005
|
}
|
|
4873
5006
|
ne.create = (a, e) => new ne({
|
|
4874
5007
|
value: a,
|
|
4875
|
-
typeName:
|
|
5008
|
+
typeName: f.ZodLiteral,
|
|
4876
5009
|
..._(e)
|
|
4877
5010
|
});
|
|
4878
5011
|
function Ae(a, e) {
|
|
4879
5012
|
return new V({
|
|
4880
5013
|
values: a,
|
|
4881
|
-
typeName:
|
|
5014
|
+
typeName: f.ZodEnum,
|
|
4882
5015
|
..._(e)
|
|
4883
5016
|
});
|
|
4884
5017
|
}
|
|
@@ -4890,7 +5023,7 @@ class V extends v {
|
|
|
4890
5023
|
expected: b.joinValues(n),
|
|
4891
5024
|
received: t.parsedType,
|
|
4892
5025
|
code: c.invalid_type
|
|
4893
|
-
}),
|
|
5026
|
+
}), h;
|
|
4894
5027
|
}
|
|
4895
5028
|
if (this._def.values.indexOf(e.data) === -1) {
|
|
4896
5029
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
@@ -4898,7 +5031,7 @@ class V extends v {
|
|
|
4898
5031
|
received: t.data,
|
|
4899
5032
|
code: c.invalid_enum_value,
|
|
4900
5033
|
options: n
|
|
4901
|
-
}),
|
|
5034
|
+
}), h;
|
|
4902
5035
|
}
|
|
4903
5036
|
return C(e.data);
|
|
4904
5037
|
}
|
|
@@ -4931,24 +5064,24 @@ class V extends v {
|
|
|
4931
5064
|
}
|
|
4932
5065
|
}
|
|
4933
5066
|
V.create = Ae;
|
|
4934
|
-
class
|
|
5067
|
+
class re extends v {
|
|
4935
5068
|
_parse(e) {
|
|
4936
5069
|
const t = b.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
4937
5070
|
if (n.parsedType !== u.string && n.parsedType !== u.number) {
|
|
4938
|
-
const
|
|
5071
|
+
const r = b.objectValues(t);
|
|
4939
5072
|
return l(n, {
|
|
4940
|
-
expected: b.joinValues(
|
|
5073
|
+
expected: b.joinValues(r),
|
|
4941
5074
|
received: n.parsedType,
|
|
4942
5075
|
code: c.invalid_type
|
|
4943
|
-
}),
|
|
5076
|
+
}), h;
|
|
4944
5077
|
}
|
|
4945
5078
|
if (t.indexOf(e.data) === -1) {
|
|
4946
|
-
const
|
|
5079
|
+
const r = b.objectValues(t);
|
|
4947
5080
|
return l(n, {
|
|
4948
5081
|
received: n.data,
|
|
4949
5082
|
code: c.invalid_enum_value,
|
|
4950
|
-
options:
|
|
4951
|
-
}),
|
|
5083
|
+
options: r
|
|
5084
|
+
}), h;
|
|
4952
5085
|
}
|
|
4953
5086
|
return C(e.data);
|
|
4954
5087
|
}
|
|
@@ -4956,12 +5089,12 @@ class ie extends v {
|
|
|
4956
5089
|
return this._def.values;
|
|
4957
5090
|
}
|
|
4958
5091
|
}
|
|
4959
|
-
|
|
5092
|
+
re.create = (a, e) => new re({
|
|
4960
5093
|
values: a,
|
|
4961
|
-
typeName:
|
|
5094
|
+
typeName: f.ZodNativeEnum,
|
|
4962
5095
|
..._(e)
|
|
4963
5096
|
});
|
|
4964
|
-
class
|
|
5097
|
+
class Y extends v {
|
|
4965
5098
|
unwrap() {
|
|
4966
5099
|
return this._def.type;
|
|
4967
5100
|
}
|
|
@@ -4972,17 +5105,17 @@ class W extends v {
|
|
|
4972
5105
|
code: c.invalid_type,
|
|
4973
5106
|
expected: u.promise,
|
|
4974
5107
|
received: t.parsedType
|
|
4975
|
-
}),
|
|
5108
|
+
}), h;
|
|
4976
5109
|
const n = t.parsedType === u.promise ? t.data : Promise.resolve(t.data);
|
|
4977
|
-
return C(n.then((
|
|
5110
|
+
return C(n.then((r) => this._def.type.parseAsync(r, {
|
|
4978
5111
|
path: t.path,
|
|
4979
5112
|
errorMap: t.common.contextualErrorMap
|
|
4980
5113
|
})));
|
|
4981
5114
|
}
|
|
4982
5115
|
}
|
|
4983
|
-
|
|
5116
|
+
Y.create = (a, e) => new Y({
|
|
4984
5117
|
type: a,
|
|
4985
|
-
typeName:
|
|
5118
|
+
typeName: f.ZodPromise,
|
|
4986
5119
|
..._(e)
|
|
4987
5120
|
});
|
|
4988
5121
|
class I extends v {
|
|
@@ -4990,10 +5123,10 @@ class I extends v {
|
|
|
4990
5123
|
return this._def.schema;
|
|
4991
5124
|
}
|
|
4992
5125
|
sourceType() {
|
|
4993
|
-
return this._def.schema._def.typeName ===
|
|
5126
|
+
return this._def.schema._def.typeName === f.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
4994
5127
|
}
|
|
4995
5128
|
_parse(e) {
|
|
4996
|
-
const { status: t, ctx: n } = this._processInputParams(e),
|
|
5129
|
+
const { status: t, ctx: n } = this._processInputParams(e), r = this._def.effect || null, i = {
|
|
4997
5130
|
addIssue: (s) => {
|
|
4998
5131
|
l(n, s), s.fatal ? t.abort() : t.dirty();
|
|
4999
5132
|
},
|
|
@@ -5001,8 +5134,8 @@ class I extends v {
|
|
|
5001
5134
|
return n.path;
|
|
5002
5135
|
}
|
|
5003
5136
|
};
|
|
5004
|
-
if (
|
|
5005
|
-
const s =
|
|
5137
|
+
if (i.addIssue = i.addIssue.bind(i), r.type === "preprocess") {
|
|
5138
|
+
const s = r.transform(n.data, i);
|
|
5006
5139
|
return n.common.issues.length ? {
|
|
5007
5140
|
status: "dirty",
|
|
5008
5141
|
value: n.data
|
|
@@ -5016,9 +5149,9 @@ class I extends v {
|
|
|
5016
5149
|
parent: n
|
|
5017
5150
|
});
|
|
5018
5151
|
}
|
|
5019
|
-
if (
|
|
5152
|
+
if (r.type === "refinement") {
|
|
5020
5153
|
const s = (o) => {
|
|
5021
|
-
const m =
|
|
5154
|
+
const m = r.refinement(o, i);
|
|
5022
5155
|
if (n.common.async)
|
|
5023
5156
|
return Promise.resolve(m);
|
|
5024
5157
|
if (m instanceof Promise)
|
|
@@ -5031,11 +5164,11 @@ class I extends v {
|
|
|
5031
5164
|
path: n.path,
|
|
5032
5165
|
parent: n
|
|
5033
5166
|
});
|
|
5034
|
-
return o.status === "aborted" ?
|
|
5167
|
+
return o.status === "aborted" ? h : (o.status === "dirty" && t.dirty(), s(o.value), { status: t.value, value: o.value });
|
|
5035
5168
|
} else
|
|
5036
|
-
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ?
|
|
5169
|
+
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? h : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
|
|
5037
5170
|
}
|
|
5038
|
-
if (
|
|
5171
|
+
if (r.type === "transform")
|
|
5039
5172
|
if (n.common.async === !1) {
|
|
5040
5173
|
const s = this._def.schema._parseSync({
|
|
5041
5174
|
data: n.data,
|
|
@@ -5044,25 +5177,25 @@ class I extends v {
|
|
|
5044
5177
|
});
|
|
5045
5178
|
if (!H(s))
|
|
5046
5179
|
return s;
|
|
5047
|
-
const o =
|
|
5180
|
+
const o = r.transform(s.value, i);
|
|
5048
5181
|
if (o instanceof Promise)
|
|
5049
5182
|
throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
5050
5183
|
return { status: t.value, value: o };
|
|
5051
5184
|
} else
|
|
5052
|
-
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((s) => H(s) ? Promise.resolve(
|
|
5053
|
-
b.assertNever(
|
|
5185
|
+
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((s) => H(s) ? Promise.resolve(r.transform(s.value, i)).then((o) => ({ status: t.value, value: o })) : s);
|
|
5186
|
+
b.assertNever(r);
|
|
5054
5187
|
}
|
|
5055
5188
|
}
|
|
5056
5189
|
I.create = (a, e, t) => new I({
|
|
5057
5190
|
schema: a,
|
|
5058
|
-
typeName:
|
|
5191
|
+
typeName: f.ZodEffects,
|
|
5059
5192
|
effect: e,
|
|
5060
5193
|
..._(t)
|
|
5061
5194
|
});
|
|
5062
5195
|
I.createWithPreprocess = (a, e, t) => new I({
|
|
5063
5196
|
schema: e,
|
|
5064
5197
|
effect: { type: "preprocess", transform: a },
|
|
5065
|
-
typeName:
|
|
5198
|
+
typeName: f.ZodEffects,
|
|
5066
5199
|
..._(t)
|
|
5067
5200
|
});
|
|
5068
5201
|
class P extends v {
|
|
@@ -5075,7 +5208,7 @@ class P extends v {
|
|
|
5075
5208
|
}
|
|
5076
5209
|
P.create = (a, e) => new P({
|
|
5077
5210
|
innerType: a,
|
|
5078
|
-
typeName:
|
|
5211
|
+
typeName: f.ZodOptional,
|
|
5079
5212
|
..._(e)
|
|
5080
5213
|
});
|
|
5081
5214
|
class q extends v {
|
|
@@ -5088,10 +5221,10 @@ class q extends v {
|
|
|
5088
5221
|
}
|
|
5089
5222
|
q.create = (a, e) => new q({
|
|
5090
5223
|
innerType: a,
|
|
5091
|
-
typeName:
|
|
5224
|
+
typeName: f.ZodNullable,
|
|
5092
5225
|
..._(e)
|
|
5093
5226
|
});
|
|
5094
|
-
class
|
|
5227
|
+
class ie extends v {
|
|
5095
5228
|
_parse(e) {
|
|
5096
5229
|
const { ctx: t } = this._processInputParams(e);
|
|
5097
5230
|
let n = t.data;
|
|
@@ -5105,13 +5238,13 @@ class re extends v {
|
|
|
5105
5238
|
return this._def.innerType;
|
|
5106
5239
|
}
|
|
5107
5240
|
}
|
|
5108
|
-
|
|
5241
|
+
ie.create = (a, e) => new ie({
|
|
5109
5242
|
innerType: a,
|
|
5110
|
-
typeName:
|
|
5243
|
+
typeName: f.ZodDefault,
|
|
5111
5244
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
5112
5245
|
..._(e)
|
|
5113
5246
|
});
|
|
5114
|
-
class
|
|
5247
|
+
class fe extends v {
|
|
5115
5248
|
_parse(e) {
|
|
5116
5249
|
const { ctx: t } = this._processInputParams(e), n = {
|
|
5117
5250
|
...t,
|
|
@@ -5119,16 +5252,16 @@ class he extends v {
|
|
|
5119
5252
|
...t.common,
|
|
5120
5253
|
issues: []
|
|
5121
5254
|
}
|
|
5122
|
-
},
|
|
5255
|
+
}, r = this._def.innerType._parse({
|
|
5123
5256
|
data: n.data,
|
|
5124
5257
|
path: n.path,
|
|
5125
5258
|
parent: {
|
|
5126
5259
|
...n
|
|
5127
5260
|
}
|
|
5128
5261
|
});
|
|
5129
|
-
return ue(
|
|
5262
|
+
return ue(r) ? r.then((i) => ({
|
|
5130
5263
|
status: "valid",
|
|
5131
|
-
value:
|
|
5264
|
+
value: i.status === "valid" ? i.value : this._def.catchValue({
|
|
5132
5265
|
get error() {
|
|
5133
5266
|
return new E(n.common.issues);
|
|
5134
5267
|
},
|
|
@@ -5136,7 +5269,7 @@ class he extends v {
|
|
|
5136
5269
|
})
|
|
5137
5270
|
})) : {
|
|
5138
5271
|
status: "valid",
|
|
5139
|
-
value:
|
|
5272
|
+
value: r.status === "valid" ? r.value : this._def.catchValue({
|
|
5140
5273
|
get error() {
|
|
5141
5274
|
return new E(n.common.issues);
|
|
5142
5275
|
},
|
|
@@ -5148,13 +5281,13 @@ class he extends v {
|
|
|
5148
5281
|
return this._def.innerType;
|
|
5149
5282
|
}
|
|
5150
5283
|
}
|
|
5151
|
-
|
|
5284
|
+
fe.create = (a, e) => new fe({
|
|
5152
5285
|
innerType: a,
|
|
5153
|
-
typeName:
|
|
5286
|
+
typeName: f.ZodCatch,
|
|
5154
5287
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
5155
5288
|
..._(e)
|
|
5156
5289
|
});
|
|
5157
|
-
class
|
|
5290
|
+
class he extends v {
|
|
5158
5291
|
_parse(e) {
|
|
5159
5292
|
if (this._getType(e) !== u.nan) {
|
|
5160
5293
|
const n = this._getOrReturnCtx(e);
|
|
@@ -5162,16 +5295,16 @@ class fe extends v {
|
|
|
5162
5295
|
code: c.invalid_type,
|
|
5163
5296
|
expected: u.nan,
|
|
5164
5297
|
received: n.parsedType
|
|
5165
|
-
}),
|
|
5298
|
+
}), h;
|
|
5166
5299
|
}
|
|
5167
5300
|
return { status: "valid", value: e.data };
|
|
5168
5301
|
}
|
|
5169
5302
|
}
|
|
5170
|
-
|
|
5171
|
-
typeName:
|
|
5303
|
+
he.create = (a) => new he({
|
|
5304
|
+
typeName: f.ZodNaN,
|
|
5172
5305
|
..._(a)
|
|
5173
5306
|
});
|
|
5174
|
-
const
|
|
5307
|
+
const rt = Symbol("zod_brand");
|
|
5175
5308
|
class Ee extends v {
|
|
5176
5309
|
_parse(e) {
|
|
5177
5310
|
const { ctx: t } = this._processInputParams(e), n = t.data;
|
|
@@ -5190,28 +5323,28 @@ class se extends v {
|
|
|
5190
5323
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
5191
5324
|
if (n.common.async)
|
|
5192
5325
|
return (async () => {
|
|
5193
|
-
const
|
|
5326
|
+
const i = await this._def.in._parseAsync({
|
|
5194
5327
|
data: n.data,
|
|
5195
5328
|
path: n.path,
|
|
5196
5329
|
parent: n
|
|
5197
5330
|
});
|
|
5198
|
-
return
|
|
5199
|
-
data:
|
|
5331
|
+
return i.status === "aborted" ? h : i.status === "dirty" ? (t.dirty(), Se(i.value)) : this._def.out._parseAsync({
|
|
5332
|
+
data: i.value,
|
|
5200
5333
|
path: n.path,
|
|
5201
5334
|
parent: n
|
|
5202
5335
|
});
|
|
5203
5336
|
})();
|
|
5204
5337
|
{
|
|
5205
|
-
const
|
|
5338
|
+
const r = this._def.in._parseSync({
|
|
5206
5339
|
data: n.data,
|
|
5207
5340
|
path: n.path,
|
|
5208
5341
|
parent: n
|
|
5209
5342
|
});
|
|
5210
|
-
return
|
|
5343
|
+
return r.status === "aborted" ? h : r.status === "dirty" ? (t.dirty(), {
|
|
5211
5344
|
status: "dirty",
|
|
5212
|
-
value:
|
|
5345
|
+
value: r.value
|
|
5213
5346
|
}) : this._def.out._parseSync({
|
|
5214
|
-
data:
|
|
5347
|
+
data: r.value,
|
|
5215
5348
|
path: n.path,
|
|
5216
5349
|
parent: n
|
|
5217
5350
|
});
|
|
@@ -5221,7 +5354,7 @@ class se extends v {
|
|
|
5221
5354
|
return new se({
|
|
5222
5355
|
in: e,
|
|
5223
5356
|
out: t,
|
|
5224
|
-
typeName:
|
|
5357
|
+
typeName: f.ZodPipeline
|
|
5225
5358
|
});
|
|
5226
5359
|
}
|
|
5227
5360
|
}
|
|
@@ -5233,25 +5366,25 @@ class ge extends v {
|
|
|
5233
5366
|
}
|
|
5234
5367
|
ge.create = (a, e) => new ge({
|
|
5235
5368
|
innerType: a,
|
|
5236
|
-
typeName:
|
|
5369
|
+
typeName: f.ZodReadonly,
|
|
5237
5370
|
..._(e)
|
|
5238
5371
|
});
|
|
5239
|
-
const Oe = (a, e = {}, t) => a ?
|
|
5240
|
-
var
|
|
5372
|
+
const Oe = (a, e = {}, t) => a ? W.create().superRefine((n, r) => {
|
|
5373
|
+
var i, s;
|
|
5241
5374
|
if (!a(n)) {
|
|
5242
|
-
const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, m = (s = (
|
|
5243
|
-
|
|
5375
|
+
const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, m = (s = (i = o.fatal) !== null && i !== void 0 ? i : t) !== null && s !== void 0 ? s : !0, d = typeof o == "string" ? { message: o } : o;
|
|
5376
|
+
r.addIssue({ code: "custom", ...d, fatal: m });
|
|
5244
5377
|
}
|
|
5245
|
-
}) :
|
|
5378
|
+
}) : W.create(), it = {
|
|
5246
5379
|
object: w.lazycreate
|
|
5247
5380
|
};
|
|
5248
|
-
var
|
|
5381
|
+
var f;
|
|
5249
5382
|
(function(a) {
|
|
5250
5383
|
a.ZodString = "ZodString", a.ZodNumber = "ZodNumber", a.ZodNaN = "ZodNaN", a.ZodBigInt = "ZodBigInt", a.ZodBoolean = "ZodBoolean", a.ZodDate = "ZodDate", a.ZodSymbol = "ZodSymbol", a.ZodUndefined = "ZodUndefined", a.ZodNull = "ZodNull", a.ZodAny = "ZodAny", a.ZodUnknown = "ZodUnknown", a.ZodNever = "ZodNever", a.ZodVoid = "ZodVoid", a.ZodArray = "ZodArray", a.ZodObject = "ZodObject", a.ZodUnion = "ZodUnion", a.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", a.ZodIntersection = "ZodIntersection", a.ZodTuple = "ZodTuple", a.ZodRecord = "ZodRecord", a.ZodMap = "ZodMap", a.ZodSet = "ZodSet", a.ZodFunction = "ZodFunction", a.ZodLazy = "ZodLazy", a.ZodLiteral = "ZodLiteral", a.ZodEnum = "ZodEnum", a.ZodEffects = "ZodEffects", a.ZodNativeEnum = "ZodNativeEnum", a.ZodOptional = "ZodOptional", a.ZodNullable = "ZodNullable", a.ZodDefault = "ZodDefault", a.ZodCatch = "ZodCatch", a.ZodPromise = "ZodPromise", a.ZodBranded = "ZodBranded", a.ZodPipeline = "ZodPipeline", a.ZodReadonly = "ZodReadonly";
|
|
5251
|
-
})(
|
|
5384
|
+
})(f || (f = {}));
|
|
5252
5385
|
const st = (a, e = {
|
|
5253
5386
|
message: `Input not instance of ${a.name}`
|
|
5254
|
-
}) => Oe((t) => t instanceof a, e), Ie = A.create, Ne = D.create, ot =
|
|
5387
|
+
}) => Oe((t) => t instanceof a, e), Ie = A.create, Ne = D.create, ot = he.create, ct = Z.create, Me = J.create, dt = B.create, ut = le.create, lt = X.create, mt = K.create, pt = W.create, ft = $.create, ht = L.create, gt = me.create, _t = O.create, vt = w.create, yt = w.strictCreate, bt = Q.create, xt = _e.create, wt = ee.create, Tt = M.create, Ct = te.create, Rt = pe.create, kt = U.create, St = z.create, At = ae.create, Et = ne.create, Ot = V.create, It = re.create, Nt = Y.create, Re = I.create, Mt = P.create, Pt = q.create, Lt = I.createWithPreprocess, jt = se.create, Dt = () => Ie().optional(), Zt = () => Ne().optional(), Vt = () => Me().optional(), $t = {
|
|
5255
5388
|
string: (a) => A.create({ ...a, coerce: !0 }),
|
|
5256
5389
|
number: (a) => D.create({ ...a, coerce: !0 }),
|
|
5257
5390
|
boolean: (a) => J.create({
|
|
@@ -5260,17 +5393,17 @@ const st = (a, e = {
|
|
|
5260
5393
|
}),
|
|
5261
5394
|
bigint: (a) => Z.create({ ...a, coerce: !0 }),
|
|
5262
5395
|
date: (a) => B.create({ ...a, coerce: !0 })
|
|
5263
|
-
}, Bt =
|
|
5396
|
+
}, Bt = h;
|
|
5264
5397
|
var Ut = /* @__PURE__ */ Object.freeze({
|
|
5265
5398
|
__proto__: null,
|
|
5266
5399
|
defaultErrorMap: F,
|
|
5267
5400
|
setErrorMap: ze,
|
|
5268
5401
|
getErrorMap: ce,
|
|
5269
5402
|
makeIssue: de,
|
|
5270
|
-
EMPTY_PATH:
|
|
5403
|
+
EMPTY_PATH: We,
|
|
5271
5404
|
addIssueToContext: l,
|
|
5272
5405
|
ParseStatus: T,
|
|
5273
|
-
INVALID:
|
|
5406
|
+
INVALID: h,
|
|
5274
5407
|
DIRTY: Se,
|
|
5275
5408
|
OK: C,
|
|
5276
5409
|
isAborted: xe,
|
|
@@ -5294,7 +5427,7 @@ var Ut = /* @__PURE__ */ Object.freeze({
|
|
|
5294
5427
|
ZodSymbol: le,
|
|
5295
5428
|
ZodUndefined: X,
|
|
5296
5429
|
ZodNull: K,
|
|
5297
|
-
ZodAny:
|
|
5430
|
+
ZodAny: W,
|
|
5298
5431
|
ZodUnknown: $,
|
|
5299
5432
|
ZodNever: L,
|
|
5300
5433
|
ZodVoid: me,
|
|
@@ -5311,25 +5444,25 @@ var Ut = /* @__PURE__ */ Object.freeze({
|
|
|
5311
5444
|
ZodLazy: ae,
|
|
5312
5445
|
ZodLiteral: ne,
|
|
5313
5446
|
ZodEnum: V,
|
|
5314
|
-
ZodNativeEnum:
|
|
5315
|
-
ZodPromise:
|
|
5447
|
+
ZodNativeEnum: re,
|
|
5448
|
+
ZodPromise: Y,
|
|
5316
5449
|
ZodEffects: I,
|
|
5317
5450
|
ZodTransformer: I,
|
|
5318
5451
|
ZodOptional: P,
|
|
5319
5452
|
ZodNullable: q,
|
|
5320
|
-
ZodDefault:
|
|
5321
|
-
ZodCatch:
|
|
5322
|
-
ZodNaN:
|
|
5323
|
-
BRAND:
|
|
5453
|
+
ZodDefault: ie,
|
|
5454
|
+
ZodCatch: fe,
|
|
5455
|
+
ZodNaN: he,
|
|
5456
|
+
BRAND: rt,
|
|
5324
5457
|
ZodBranded: Ee,
|
|
5325
5458
|
ZodPipeline: se,
|
|
5326
5459
|
ZodReadonly: ge,
|
|
5327
5460
|
custom: Oe,
|
|
5328
5461
|
Schema: v,
|
|
5329
5462
|
ZodSchema: v,
|
|
5330
|
-
late:
|
|
5463
|
+
late: it,
|
|
5331
5464
|
get ZodFirstPartyTypeKind() {
|
|
5332
|
-
return
|
|
5465
|
+
return f;
|
|
5333
5466
|
},
|
|
5334
5467
|
coerce: $t,
|
|
5335
5468
|
any: pt,
|
|
@@ -5338,17 +5471,17 @@ var Ut = /* @__PURE__ */ Object.freeze({
|
|
|
5338
5471
|
boolean: Me,
|
|
5339
5472
|
date: dt,
|
|
5340
5473
|
discriminatedUnion: xt,
|
|
5341
|
-
effect:
|
|
5474
|
+
effect: Re,
|
|
5342
5475
|
enum: Ot,
|
|
5343
5476
|
function: St,
|
|
5344
5477
|
instanceof: st,
|
|
5345
5478
|
intersection: wt,
|
|
5346
5479
|
lazy: At,
|
|
5347
5480
|
literal: Et,
|
|
5348
|
-
map:
|
|
5481
|
+
map: Rt,
|
|
5349
5482
|
nan: ot,
|
|
5350
5483
|
nativeEnum: It,
|
|
5351
|
-
never:
|
|
5484
|
+
never: ht,
|
|
5352
5485
|
null: mt,
|
|
5353
5486
|
nullable: Pt,
|
|
5354
5487
|
number: Ne,
|
|
@@ -5361,15 +5494,15 @@ var Ut = /* @__PURE__ */ Object.freeze({
|
|
|
5361
5494
|
preprocess: Lt,
|
|
5362
5495
|
promise: Nt,
|
|
5363
5496
|
record: Ct,
|
|
5364
|
-
set:
|
|
5497
|
+
set: kt,
|
|
5365
5498
|
strictObject: yt,
|
|
5366
5499
|
string: Ie,
|
|
5367
5500
|
symbol: ut,
|
|
5368
|
-
transformer:
|
|
5501
|
+
transformer: Re,
|
|
5369
5502
|
tuple: Tt,
|
|
5370
5503
|
undefined: lt,
|
|
5371
5504
|
union: bt,
|
|
5372
|
-
unknown:
|
|
5505
|
+
unknown: ft,
|
|
5373
5506
|
void: gt,
|
|
5374
5507
|
NEVER: Bt,
|
|
5375
5508
|
ZodIssueCode: c,
|
|
@@ -5423,7 +5556,7 @@ const qt = [
|
|
|
5423
5556
|
{
|
|
5424
5557
|
path: "/analytic",
|
|
5425
5558
|
name: g["$connect-ANALYTIC"],
|
|
5426
|
-
component: k(
|
|
5559
|
+
component: R(k(() => import("./Analytic-Bbt1kP2U.js"))),
|
|
5427
5560
|
meta: {
|
|
5428
5561
|
validationManifest: {
|
|
5429
5562
|
requiredCaslPermissions: [
|
|
@@ -5446,7 +5579,7 @@ const qt = [
|
|
|
5446
5579
|
{
|
|
5447
5580
|
path: "/campaign/promotion",
|
|
5448
5581
|
name: g["$connect-CAMPAIGN_PROMOTION"],
|
|
5449
|
-
component: k(
|
|
5582
|
+
component: R(k(() => import("./Promotion-DFh9IEmP.js"))),
|
|
5450
5583
|
meta: {
|
|
5451
5584
|
validationManifest: {
|
|
5452
5585
|
requiredCaslPermissions: [
|
|
@@ -5465,7 +5598,7 @@ const qt = [
|
|
|
5465
5598
|
{
|
|
5466
5599
|
path: "/campaign/voucher",
|
|
5467
5600
|
name: g["$connect-CAMPAIGN_VOUCHER"],
|
|
5468
|
-
component: k(
|
|
5601
|
+
component: R(k(() => import("./Voucher-Y5Lh5xms.js"))),
|
|
5469
5602
|
meta: {
|
|
5470
5603
|
validationManifest: {
|
|
5471
5604
|
requiredCaslPermissions: [
|
|
@@ -5480,7 +5613,7 @@ const qt = [
|
|
|
5480
5613
|
{
|
|
5481
5614
|
path: "/campaign/voucher/:id/collections",
|
|
5482
5615
|
name: g["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
5483
|
-
component: k(
|
|
5616
|
+
component: R(k(() => import("./Collections-qVnvveUf.js"))),
|
|
5484
5617
|
meta: {
|
|
5485
5618
|
validationManifest: {
|
|
5486
5619
|
requiredCaslPermissions: [
|
|
@@ -5497,7 +5630,7 @@ const qt = [
|
|
|
5497
5630
|
{
|
|
5498
5631
|
path: "/campaign/broadcast",
|
|
5499
5632
|
name: g["$connect-CAMPAIGN_BROADCAST"],
|
|
5500
|
-
component: k(
|
|
5633
|
+
component: R(k(() => import("./Broadcast-BJXK8OE5.js"))),
|
|
5501
5634
|
meta: {
|
|
5502
5635
|
validationManifest: {
|
|
5503
5636
|
requiredCaslPermissions: [
|
|
@@ -5514,7 +5647,7 @@ const qt = [
|
|
|
5514
5647
|
{
|
|
5515
5648
|
path: "/program",
|
|
5516
5649
|
// component: () => import('@/layouts/MainLayout.vue'),
|
|
5517
|
-
component: k(
|
|
5650
|
+
component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
|
|
5518
5651
|
meta: {
|
|
5519
5652
|
validationManifest: {
|
|
5520
5653
|
requiredCaslPermissions: [
|
|
@@ -5531,43 +5664,43 @@ const qt = [
|
|
|
5531
5664
|
{
|
|
5532
5665
|
path: "/program/tier",
|
|
5533
5666
|
name: g["$connect-PROGRAM_TIER"],
|
|
5534
|
-
component: () => import("./Tier-
|
|
5667
|
+
component: () => import("./Tier-C7kiLjzE.js")
|
|
5535
5668
|
},
|
|
5536
5669
|
{
|
|
5537
5670
|
path: "/program/title",
|
|
5538
5671
|
name: g["$connect-PROGRAM_TITLE"],
|
|
5539
|
-
component: () => import("./Title-
|
|
5672
|
+
component: () => import("./Title-BPv1ZiHg.js")
|
|
5540
5673
|
},
|
|
5541
5674
|
{
|
|
5542
5675
|
path: "/program/experience",
|
|
5543
5676
|
name: g["$connect-PROGRAM_EXPERIENCE"],
|
|
5544
|
-
component: () => import("./Experience-
|
|
5677
|
+
component: () => import("./Experience-BmGSus53.js")
|
|
5545
5678
|
},
|
|
5546
5679
|
{
|
|
5547
5680
|
path: "/program/point",
|
|
5548
5681
|
name: g["$connect-PROGRAM_POINT"],
|
|
5549
|
-
component: () => import("./Point-
|
|
5682
|
+
component: () => import("./Point-BBNJ9cc5.js")
|
|
5550
5683
|
},
|
|
5551
5684
|
{
|
|
5552
5685
|
path: "/program/credit",
|
|
5553
5686
|
name: g["$connect-PROGRAM_CREDIT"],
|
|
5554
|
-
component: () => import("./Credit-
|
|
5687
|
+
component: () => import("./Credit-BWHTbAG-.js")
|
|
5555
5688
|
},
|
|
5556
5689
|
{
|
|
5557
5690
|
path: "/program/game",
|
|
5558
5691
|
name: g["$connect-PROGRAM_GAME"],
|
|
5559
|
-
component: () => import("./Game-
|
|
5692
|
+
component: () => import("./Game-49w7XN5k.js")
|
|
5560
5693
|
},
|
|
5561
5694
|
{
|
|
5562
5695
|
path: "mission",
|
|
5563
5696
|
name: g["$connect-PROGRAM_MISSION"],
|
|
5564
|
-
component: () => import("./Mission-
|
|
5697
|
+
component: () => import("./Mission-LGC1CGrB.js")
|
|
5565
5698
|
}
|
|
5566
5699
|
]
|
|
5567
5700
|
},
|
|
5568
5701
|
{
|
|
5569
5702
|
path: "/loyalty",
|
|
5570
|
-
component: k(
|
|
5703
|
+
component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
|
|
5571
5704
|
meta: {
|
|
5572
5705
|
validationManifest: {
|
|
5573
5706
|
requiredCaslPermissions: [
|
|
@@ -5584,7 +5717,7 @@ const qt = [
|
|
|
5584
5717
|
{
|
|
5585
5718
|
path: "/loyalty/member",
|
|
5586
5719
|
name: g["$connect-LOYALTY_MEMBER"],
|
|
5587
|
-
component: () => import("./Member-
|
|
5720
|
+
component: () => import("./Member-jZks4pw_.js"),
|
|
5588
5721
|
redirect: {
|
|
5589
5722
|
name: g["$connect-LOYALTY_MEMBER_OVERVIEW"]
|
|
5590
5723
|
},
|
|
@@ -5597,31 +5730,31 @@ const qt = [
|
|
|
5597
5730
|
{
|
|
5598
5731
|
path: "/loyalty/member/list",
|
|
5599
5732
|
name: g["$connect-LOYALTY_MEMBER_LIST"],
|
|
5600
|
-
component: () => import("./MemberList-
|
|
5733
|
+
component: () => import("./MemberList-BqO54kPC.js")
|
|
5601
5734
|
},
|
|
5602
5735
|
{
|
|
5603
5736
|
path: "/loyalty/member/transactions/:id",
|
|
5604
5737
|
name: g["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
|
|
5605
|
-
component: () => import("./MemberTransactions-
|
|
5738
|
+
component: () => import("./MemberTransactions-CLK7VmPw.js")
|
|
5606
5739
|
}
|
|
5607
5740
|
]
|
|
5608
5741
|
},
|
|
5609
5742
|
{
|
|
5610
5743
|
path: "/loyalty/segment",
|
|
5611
5744
|
name: g["$connect-LOYALTY_SEGMENT"],
|
|
5612
|
-
component: () => import("./Segment-
|
|
5745
|
+
component: () => import("./Segment-DjyHLWZC.js")
|
|
5613
5746
|
},
|
|
5614
5747
|
{
|
|
5615
5748
|
path: "/loyalty/card",
|
|
5616
5749
|
name: g["$connect-LOYALTY_CARD"],
|
|
5617
|
-
component: () => import("./Card-
|
|
5750
|
+
component: () => import("./Card-DFiUkfYj.js")
|
|
5618
5751
|
}
|
|
5619
5752
|
]
|
|
5620
5753
|
},
|
|
5621
5754
|
{
|
|
5622
5755
|
path: "/referral",
|
|
5623
5756
|
redirect: { name: g["$connect-REFERRAL"] },
|
|
5624
|
-
component: k(
|
|
5757
|
+
component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
|
|
5625
5758
|
meta: {
|
|
5626
5759
|
validationManifest: {
|
|
5627
5760
|
requiredCaslPermissions: [
|
|
@@ -5636,7 +5769,7 @@ const qt = [
|
|
|
5636
5769
|
{
|
|
5637
5770
|
path: "/referral",
|
|
5638
5771
|
name: g["$connect-REFERRAL"],
|
|
5639
|
-
component: () => import("./Index-
|
|
5772
|
+
component: () => import("./Index-D-7hsAaE.js"),
|
|
5640
5773
|
redirect: {
|
|
5641
5774
|
name: g["$connect-REFERRAL_OVERVIEW"]
|
|
5642
5775
|
},
|
|
@@ -5644,12 +5777,12 @@ const qt = [
|
|
|
5644
5777
|
{
|
|
5645
5778
|
path: "/referral",
|
|
5646
5779
|
name: g["$connect-REFERRAL_OVERVIEW"],
|
|
5647
|
-
component: () => import("./Overview-
|
|
5780
|
+
component: () => import("./Overview-Dm_ycoqZ.js")
|
|
5648
5781
|
},
|
|
5649
5782
|
{
|
|
5650
5783
|
path: "/referral/record",
|
|
5651
5784
|
name: g["$connect-REFERRAL_RECORD"],
|
|
5652
|
-
component: () => import("./Record-
|
|
5785
|
+
component: () => import("./Record-oBmJTn3G.js")
|
|
5653
5786
|
}
|
|
5654
5787
|
]
|
|
5655
5788
|
}
|
|
@@ -5657,7 +5790,7 @@ const qt = [
|
|
|
5657
5790
|
},
|
|
5658
5791
|
{
|
|
5659
5792
|
path: "/store",
|
|
5660
|
-
component: k(
|
|
5793
|
+
component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
|
|
5661
5794
|
meta: {
|
|
5662
5795
|
validationManifest: {
|
|
5663
5796
|
requiredCaslPermissions: [
|
|
@@ -5672,7 +5805,7 @@ const qt = [
|
|
|
5672
5805
|
{
|
|
5673
5806
|
path: "/store",
|
|
5674
5807
|
name: g["$connect-STORE"],
|
|
5675
|
-
component: () => import("./Store-
|
|
5808
|
+
component: () => import("./Store-HWGWswEm.js")
|
|
5676
5809
|
},
|
|
5677
5810
|
{
|
|
5678
5811
|
path: "/store/rewards",
|
|
@@ -5681,12 +5814,12 @@ const qt = [
|
|
|
5681
5814
|
{
|
|
5682
5815
|
path: "/store/rewards",
|
|
5683
5816
|
name: g["$connect-STORE_REWARDS"],
|
|
5684
|
-
component: () => import("./StoreRewards-
|
|
5817
|
+
component: () => import("./StoreRewards-s4cX1bFH.js")
|
|
5685
5818
|
},
|
|
5686
5819
|
{
|
|
5687
5820
|
path: "/store/rewards/:id/collections",
|
|
5688
5821
|
name: g["$connect-STORE_REWARD_COLLECTIONS"],
|
|
5689
|
-
component: () => import("./Collections-
|
|
5822
|
+
component: () => import("./Collections-qVnvveUf.js")
|
|
5690
5823
|
}
|
|
5691
5824
|
]
|
|
5692
5825
|
}
|
|
@@ -5694,7 +5827,7 @@ const qt = [
|
|
|
5694
5827
|
},
|
|
5695
5828
|
{
|
|
5696
5829
|
path: "/transaction",
|
|
5697
|
-
component: k(
|
|
5830
|
+
component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
|
|
5698
5831
|
meta: {
|
|
5699
5832
|
validationManifest: {
|
|
5700
5833
|
requiredCaslPermissions: [
|
|
@@ -5709,13 +5842,13 @@ const qt = [
|
|
|
5709
5842
|
{
|
|
5710
5843
|
path: "/transaction",
|
|
5711
5844
|
name: g["$connect-TRANSACTION"],
|
|
5712
|
-
component: () => import("./Transaction-
|
|
5845
|
+
component: () => import("./Transaction-HdR7RiGY.js")
|
|
5713
5846
|
}
|
|
5714
5847
|
]
|
|
5715
5848
|
},
|
|
5716
5849
|
{
|
|
5717
5850
|
path: "/marketing",
|
|
5718
|
-
component: k(
|
|
5851
|
+
component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
|
|
5719
5852
|
meta: {
|
|
5720
5853
|
validationManifest: {
|
|
5721
5854
|
requiredCaslPermissions: [
|
|
@@ -5730,13 +5863,13 @@ const qt = [
|
|
|
5730
5863
|
{
|
|
5731
5864
|
path: "/marketing",
|
|
5732
5865
|
name: g["$connect-MARKETING"],
|
|
5733
|
-
component: () => import("./Marketing-
|
|
5866
|
+
component: () => import("./Marketing-DtbJxS_j.js")
|
|
5734
5867
|
}
|
|
5735
5868
|
]
|
|
5736
5869
|
},
|
|
5737
5870
|
{
|
|
5738
5871
|
path: "/reward",
|
|
5739
|
-
component: k(
|
|
5872
|
+
component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
|
|
5740
5873
|
meta: {
|
|
5741
5874
|
validationManifest: {
|
|
5742
5875
|
requiredCaslPermissions: [
|
|
@@ -5751,13 +5884,13 @@ const qt = [
|
|
|
5751
5884
|
{
|
|
5752
5885
|
path: "/reward",
|
|
5753
5886
|
name: g["$connect-REWARD_TEMPLATE"],
|
|
5754
|
-
component: () => import("./Reward-
|
|
5887
|
+
component: () => import("./Reward-DR_HzrrM.js")
|
|
5755
5888
|
}
|
|
5756
5889
|
]
|
|
5757
5890
|
},
|
|
5758
5891
|
{
|
|
5759
5892
|
path: "/setting",
|
|
5760
|
-
component: k(
|
|
5893
|
+
component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
|
|
5761
5894
|
meta: {
|
|
5762
5895
|
validationManifest: {
|
|
5763
5896
|
requiredCaslPermissions: [
|
|
@@ -5772,7 +5905,7 @@ const qt = [
|
|
|
5772
5905
|
{
|
|
5773
5906
|
path: "/setting",
|
|
5774
5907
|
name: g["$connect-SETTING"],
|
|
5775
|
-
component: () => import("./Setting-
|
|
5908
|
+
component: () => import("./Setting-a7Tw-3ht.js")
|
|
5776
5909
|
}
|
|
5777
5910
|
]
|
|
5778
5911
|
}
|
|
@@ -5780,7 +5913,7 @@ const qt = [
|
|
|
5780
5913
|
"en-US": De,
|
|
5781
5914
|
"zh-CN": Be,
|
|
5782
5915
|
"th-TH": qe
|
|
5783
|
-
}, Jt = () => import("./App-
|
|
5916
|
+
}, Jt = () => import("./App-CVA65EVC.js").then((a) => a.default);
|
|
5784
5917
|
export {
|
|
5785
5918
|
Jt as F,
|
|
5786
5919
|
g as R,
|