@feedmepos/mf-connect 0.1.38-beta.33 → 0.1.38-beta.34
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-B1hvdnhQ.js → Analytic-DBUfOGXN.js} +13 -13
- package/dist/{App-BCjFwtVu.js → App-BKoC43t0.js} +8 -8
- package/dist/{AuditLogs-DwOzstOt.js → AuditLogs-DfcDKAAx.js} +9 -9
- package/dist/{Bin-BgnnzoZS.js → Bin-K1LAZ7Il.js} +8 -8
- package/dist/{Broadcast-DqSOAE01.js → Broadcast-dPQylejk.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CBMG8_Sk.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CADc94lG.js} +6 -6
- package/dist/{Card-A9CkhfVY.js → Card-DqXEthXd.js} +16 -16
- package/dist/{Collections-BgnFnaWo.js → Collections-2higR9xt.js} +6 -6
- package/dist/{Credit-a_OpuZJM.js → Credit-C0zUwRx_.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CNBh1Id6.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DiMkp8eD.js} +32 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-oao_UwRf.js → EffectSheet.vue_vue_type_style_index_0_lang-CeZvW4CN.js} +6 -6
- package/dist/{Experience-CpGj9JqO.js → Experience-B2an8JbD.js} +9 -9
- package/dist/{Game-D0e3MyPK.js → Game-BO7F7MwC.js} +10 -10
- package/dist/{Grab-Exo0vj4b.js → Grab-DhHyUon4.js} +9 -9
- package/dist/{Index-DU0reBq4.js → Index-uadi-EZ6.js} +10 -10
- package/dist/{Marketing-BZtDNsA-.js → Marketing-BWpOwWf0.js} +7 -7
- package/dist/{Member-D8buIkBR.js → Member-Mcwja1E6.js} +10 -10
- package/dist/{MemberList-CDwYfTlS.js → MemberList-BPGNOKXn.js} +25 -25
- package/dist/{MemberTransactions-DRkpizb_.js → MemberTransactions-DaBU7MOW.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-VzyI4O5z.js → MessageInput.vue_vue_type_script_setup_true_lang-DYuWH0OF.js} +8 -8
- package/dist/{Mission-BTzIK2Yx.js → Mission-DSRwwQMw.js} +10 -10
- package/dist/{Overview-CMkljRYt.js → Overview-B897q3qA.js} +18 -18
- package/dist/{Point-DGPLd8z-.js → Point-lhl01-GA.js} +9 -9
- package/dist/{Promotion-D8K2pFnv.js → Promotion-BvO0BUst.js} +10 -10
- package/dist/{Queue-CySghWZm.js → Queue-ec2IpEuf.js} +10 -10
- package/dist/{Record-CxloqLoN.js → Record-BXLVpbR2.js} +8 -8
- package/dist/{Reward-DxvFaqzm.js → Reward-DCzxzMzn.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-WOC3rplt.js → RewardGroup.vue_vue_type_script_setup_true_lang-COiUXYSb.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-C4zhGkBY.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bz3lj9Ng.js} +13 -13
- package/dist/{Segment-DKD6P0cE.js → Segment-CYk3w6PO.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-bpblaVLq.js → SelectItems.vue_vue_type_script_setup_true_lang-ITaqten3.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1g0fHPV.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-ViJglQse.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CSR5EuVO.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DSm11Q46.js} +3 -3
- package/dist/{Setting-khHGWePA.js → Setting-DZtcRs0k.js} +141 -141
- package/dist/SettingAdvertisements-DBQEaFBm.js +262 -0
- package/dist/{Store-0cJJpCIV.js → Store-5svFOdbG.js} +20 -20
- package/dist/{StoreRewards-CV8XStEA.js → StoreRewards-DImHNqJA.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bqw4ayC4.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BUnlE8_-.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BprUyeOJ.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CiDVA4p8.js} +1 -1
- package/dist/{Tier-BgahD6Rs.js → Tier-B43j8PN_.js} +20 -20
- package/dist/{Title-DKGqu5SL.js → Title-6ThYGwPj.js} +19 -19
- package/dist/{Transaction-Bu-Zaa-_.js → Transaction-CGkAjZ9A.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-cDZZz9DR.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cvr5u0Zs.js} +6 -6
- package/dist/{Voucher-sko-4yOv.js → Voucher-Blbht91D.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DVlYxnyk.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Bi0Z03Ai.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CeNxiT5A.js → ZodTextField.vue_vue_type_script_setup_true_lang-CWoUnCAa.js} +1 -1
- package/dist/{app-DivOpQ--.js → app-C6urTnJ4.js} +1 -1
- package/dist/{app-B06WmmlS.js → app-xTCQAKl2.js} +2209 -1122
- package/dist/app.js +1 -1
- package/dist/{business-ClV-3_wH.js → business-B7k-tZEN.js} +1 -1
- package/dist/{campaign-C-DtV5gs.js → campaign-Bz9UcS_m.js} +2 -2
- package/dist/{campaign-ChCAqzSE.js → campaign-muSKe19-.js} +71 -71
- package/dist/{campaign.enum-HJvL6WCW.js → campaign.enum-hDvXhq3o.js} +1 -1
- package/dist/{campaign.fn-FkHPIhXx.js → campaign.fn-dcycsEgm.js} +3 -3
- package/dist/{collectible.enum-DlxRyJMy.js → collectible.enum-wxQMWK6c.js} +1 -1
- package/dist/{collection.fn-DmYKiZsL.js → collection.fn-DDzDInuW.js} +2 -2
- package/dist/{dto-BKG9T2I2.js → dto-CunCCKYQ.js} +4 -4
- package/dist/{effect-qQUWG0In.js → effect-BXObGcbg.js} +1 -1
- package/dist/{email-addresses-Dqyt8I7s.js → email-addresses-C6eoXJGp.js} +1 -1
- package/dist/{export-CUcU1l-K.js → export-BDFxcaL0.js} +3 -3
- package/dist/{helper-Bxi0o7m8.js → helper-BvwYqXjY.js} +1 -1
- package/dist/{index-B5SrWi06.js → index--EQGC2IH.js} +3 -3
- package/dist/{index-C06Q7hpx.js → index-3EjNf2am.js} +1 -1
- package/dist/{index-BWq6tQbu.js → index-B41wOGTO.js} +1 -1
- package/dist/{index-Dhh1sEG_.js → index-BuvsKdUo.js} +6 -6
- package/dist/{index-BAv3BkZY.js → index-C-Y8B9_g.js} +1023 -1023
- package/dist/{index-DlK01rGI.js → index-CVG-2gDW.js} +1 -1
- package/dist/{index-DdekcTG4.js → index-CkdgYD-t.js} +1 -1
- package/dist/{index-Ct2-fiN2.js → index-D23WXsuy.js} +1 -1
- package/dist/{index-BEN3tBqd.js → index-DQqUeKpy.js} +2 -2
- package/dist/{index-BL_1CL4C.js → index-DVL-x7W6.js} +4 -4
- package/dist/{index-B94mBxiL.js → index-DtFTHQOJ.js} +1 -1
- package/dist/{index-DzELBV8R.js → index-RKOwESmg.js} +1 -1
- package/dist/{index-TKz_0Ysa.js → index-_9R9an9a.js} +1 -1
- package/dist/{index-UjD7i6Rs.js → index-tz_n5lEb.js} +4 -4
- package/dist/{index.esm2017-DHCRXeWh.js → index.esm2017-wyZHjxJg.js} +1 -1
- package/dist/{loading-B_UZCyhK.js → loading-CVL-OePP.js} +1 -1
- package/dist/{membership-_kM8eXz7.js → membership-Cwolq8Cj.js} +3 -3
- package/dist/{money-CoVA-srK.js → money-hSkLuGRM.js} +1 -1
- package/dist/{number-YRitPV2s.js → number-C6FRJ2M7.js} +1 -1
- package/dist/{objectid-C1na7D-x.js → objectid-aShDJfER.js} +4 -4
- package/dist/{plugins-CRzS5EeK.js → plugins-CPwW8rZp.js} +2 -2
- package/dist/{reward-BzSjQxTf.js → reward-BRjFlh6E.js} +1 -1
- package/dist/{rule-BTgu7Yg-.js → rule-CYMGrUxS.js} +3 -3
- package/dist/{rule-builder-DqxBZKm0.js → rule-builder-TdDaDyR7.js} +1 -1
- package/dist/{template-Cb_6r-V_.js → template-C78lPPQn.js} +4 -4
- package/dist/{timezone-_t4BbV7Q.js → timezone-CAUT5KZd.js} +1 -1
- package/dist/{trigger-B0ldNAaK.js → trigger-CQKxXHDL.js} +4 -4
- package/dist/{user-B4J6WtQq.js → user-8R-3y6sK.js} +1 -1
- package/dist/{vue-i18n-c1uC6tyM.js → vue-i18n-LviVr_kr.js} +2 -2
- package/dist/{xlsx-BRAFCQ59.js → xlsx-mDgALSyS.js} +1 -1
- package/package.json +1 -1
- package/dist/SettingAdvertisements-DJHKjE95.js +0 -264
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { withPermission as
|
|
3
|
-
const
|
|
1
|
+
import { defineAsyncComponent as C } from "vue";
|
|
2
|
+
import { withPermission as T, Permission as b } from "@feedmepos/mf-common";
|
|
3
|
+
const Ne = {
|
|
4
4
|
common: {
|
|
5
5
|
submit: "Submit",
|
|
6
6
|
confirm: "Confirm",
|
|
@@ -10,7 +10,8 @@ const Pe = {
|
|
|
10
10
|
edit: "Edit",
|
|
11
11
|
add: "Add",
|
|
12
12
|
optional: "Optional",
|
|
13
|
-
location: "Location"
|
|
13
|
+
location: "Location",
|
|
14
|
+
allLocations: "All locations"
|
|
14
15
|
},
|
|
15
16
|
template: {
|
|
16
17
|
general: "General",
|
|
@@ -617,8 +618,24 @@ Please adjust the timeframe or discount settings to avoid conflicts.`
|
|
|
617
618
|
}
|
|
618
619
|
},
|
|
619
620
|
advertisement: {
|
|
620
|
-
title: "
|
|
621
|
-
subtitle: "
|
|
621
|
+
title: "Advertisements",
|
|
622
|
+
subtitle: "Manage ads shown on FeedMe ordering app",
|
|
623
|
+
saveChanges: "Save Changes",
|
|
624
|
+
activeAds: "Active Ads:",
|
|
625
|
+
premiumFeatureTitle: "Premium Feature",
|
|
626
|
+
premiumFeatureDescription: "Upgrade to Premium to manage advertisements",
|
|
627
|
+
manageAd: "Manage Ad",
|
|
628
|
+
addAdvertisement: "Add Advertisement",
|
|
629
|
+
advertisementImage: "Advertisement Image",
|
|
630
|
+
targetLocations: "Target Locations",
|
|
631
|
+
targetLocationsHelper: "Leave empty to show in all locations",
|
|
632
|
+
save: "Save",
|
|
633
|
+
deleteConfirm: "Delete this advertisement?",
|
|
634
|
+
delete: "Delete",
|
|
635
|
+
addAd: "Add Ad",
|
|
636
|
+
left: "left",
|
|
637
|
+
saving: "Saving advertisements",
|
|
638
|
+
savedSuccessfully: "Advertisements saved successfully"
|
|
622
639
|
},
|
|
623
640
|
sms: {
|
|
624
641
|
title: "SMS",
|
|
@@ -1078,7 +1095,7 @@ Please adjust the timeframe or discount settings to avoid conflicts.`
|
|
|
1078
1095
|
map: "map",
|
|
1079
1096
|
set: "set"
|
|
1080
1097
|
}
|
|
1081
|
-
},
|
|
1098
|
+
}, De = {
|
|
1082
1099
|
timeframe: {
|
|
1083
1100
|
end_before_start: "End date must be later or same as start date",
|
|
1084
1101
|
required: "Start date and end date are required"
|
|
@@ -1095,10 +1112,10 @@ Please adjust the timeframe or discount settings to avoid conflicts.`
|
|
|
1095
1112
|
reward_threshold_unique: "Reward threshold must be unique",
|
|
1096
1113
|
effect_required: "Effect is required"
|
|
1097
1114
|
}
|
|
1098
|
-
},
|
|
1099
|
-
connect:
|
|
1115
|
+
}, je = {
|
|
1116
|
+
connect: Ne,
|
|
1100
1117
|
connectZod: Le,
|
|
1101
|
-
connectZodCustom:
|
|
1118
|
+
connectZodCustom: De
|
|
1102
1119
|
}, Be = {
|
|
1103
1120
|
common: {
|
|
1104
1121
|
confirm: "确认",
|
|
@@ -1641,7 +1658,21 @@ Please adjust the timeframe or discount settings to avoid conflicts.`
|
|
|
1641
1658
|
},
|
|
1642
1659
|
advertisement: {
|
|
1643
1660
|
title: "广告",
|
|
1644
|
-
subtitle: "
|
|
1661
|
+
subtitle: "管理在FeedMe订购应用上显示的广告",
|
|
1662
|
+
saveChanges: "保存更改",
|
|
1663
|
+
activeAds: "活跃广告:",
|
|
1664
|
+
premiumFeatureTitle: "高级功能",
|
|
1665
|
+
premiumFeatureDescription: "升级到高级版以管理广告",
|
|
1666
|
+
manageAd: "管理广告",
|
|
1667
|
+
addAdvertisement: "添加广告",
|
|
1668
|
+
advertisementImage: "广告图片",
|
|
1669
|
+
targetLocations: "目标位置",
|
|
1670
|
+
targetLocationsHelper: "留空以在所有位置显示",
|
|
1671
|
+
save: "保存",
|
|
1672
|
+
deleteConfirm: "删除此广告?",
|
|
1673
|
+
delete: "删除",
|
|
1674
|
+
addAd: "添加广告",
|
|
1675
|
+
left: "剩余"
|
|
1645
1676
|
},
|
|
1646
1677
|
sms: {
|
|
1647
1678
|
title: "短信",
|
|
@@ -1973,7 +2004,7 @@ Please adjust the timeframe or discount settings to avoid conflicts.`
|
|
|
1973
2004
|
description: "描述"
|
|
1974
2005
|
}
|
|
1975
2006
|
}
|
|
1976
|
-
},
|
|
2007
|
+
}, Ve = {
|
|
1977
2008
|
errors: {
|
|
1978
2009
|
invalid_type: "预期输入为{{expected}},而输入为{{received}}",
|
|
1979
2010
|
invalid_type_received_undefined: "必填",
|
|
@@ -2085,7 +2116,7 @@ Please adjust the timeframe or discount settings to avoid conflicts.`
|
|
|
2085
2116
|
map: "字典",
|
|
2086
2117
|
set: "集合"
|
|
2087
2118
|
}
|
|
2088
|
-
},
|
|
2119
|
+
}, Ze = {
|
|
2089
2120
|
timeframe: {
|
|
2090
2121
|
end_before_start: "结束日期必须晚于或等于开始日期"
|
|
2091
2122
|
},
|
|
@@ -2103,8 +2134,8 @@ Please adjust the timeframe or discount settings to avoid conflicts.`
|
|
|
2103
2134
|
}
|
|
2104
2135
|
}, $e = {
|
|
2105
2136
|
connect: Be,
|
|
2106
|
-
connectZod:
|
|
2107
|
-
connectZodCustom:
|
|
2137
|
+
connectZod: Ve,
|
|
2138
|
+
connectZodCustom: Ze
|
|
2108
2139
|
}, Ue = {
|
|
2109
2140
|
campaign: {
|
|
2110
2141
|
common: {
|
|
@@ -3886,368 +3917,1423 @@ Please adjust the timeframe or discount settings to avoid conflicts.`
|
|
|
3886
3917
|
reward_threshold_unique: "獎勵閾值必須是唯一的",
|
|
3887
3918
|
effect_required: "效果是必需的"
|
|
3888
3919
|
}
|
|
3889
|
-
},
|
|
3920
|
+
}, Fe = {
|
|
3890
3921
|
connect: Ge,
|
|
3891
3922
|
connectZod: ze,
|
|
3892
3923
|
connectZodCustom: We
|
|
3893
|
-
}
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
},
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
}
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
3924
|
+
}, Ye = {
|
|
3925
|
+
common: {
|
|
3926
|
+
submit: "提出する",
|
|
3927
|
+
confirm: "確認する",
|
|
3928
|
+
cancel: "キャンセル",
|
|
3929
|
+
save: "保存",
|
|
3930
|
+
delete: "消去",
|
|
3931
|
+
edit: "Edit",
|
|
3932
|
+
add: "追加",
|
|
3933
|
+
optional: "Optional",
|
|
3934
|
+
location: "位置: ",
|
|
3935
|
+
allLocations: "すべての場所"
|
|
3936
|
+
},
|
|
3937
|
+
template: {
|
|
3938
|
+
general: "General",
|
|
3939
|
+
trigger: "Trigger",
|
|
3940
|
+
general_information: "General information",
|
|
3941
|
+
discount: "Discount",
|
|
3942
|
+
terms_conditions: "Terms and conditions",
|
|
3943
|
+
time_limitation: "Time limitation",
|
|
3944
|
+
target_audience: "Target audience",
|
|
3945
|
+
game_configuration: "Game configuration",
|
|
3946
|
+
location: "Location",
|
|
3947
|
+
voucher_detail: "Voucher detail",
|
|
3948
|
+
spending_criteria: "Spending criteria",
|
|
3949
|
+
feedback_criteria: "Feedback criteria",
|
|
3950
|
+
voucher_usage_configuration: "Voucher usage configuration",
|
|
3951
|
+
notify_audience: "Notify audience",
|
|
3952
|
+
notify_message: "Notify message",
|
|
3953
|
+
earning_type: "Earning type",
|
|
3954
|
+
validity_configuration: "Validity configuration",
|
|
3955
|
+
mission_participation: "Mission participation",
|
|
3956
|
+
configure_reward: "Configure reward",
|
|
3957
|
+
content: "Content",
|
|
3958
|
+
broadcast_configuration: "Broadcast configuration",
|
|
3959
|
+
game_type: "Game type",
|
|
3960
|
+
reward_pool: "Reward pool",
|
|
3961
|
+
configuration: "Configuration",
|
|
3962
|
+
campaign_name: "Campaign name",
|
|
3963
|
+
campaign_description: "Campaign description",
|
|
3964
|
+
campaign_period: "Campaign period",
|
|
3965
|
+
voucher_name: "Voucher name",
|
|
3966
|
+
voucher_description: "Voucher description",
|
|
3967
|
+
voucher_image: "Voucher image",
|
|
3968
|
+
target_location: "Target location",
|
|
3969
|
+
send_notification: "Send notification",
|
|
3970
|
+
notification_message: "Notification message",
|
|
3971
|
+
min_spend: "Min Spend",
|
|
3972
|
+
select_game: "Select a game where you want your customer to play",
|
|
3973
|
+
configure_reward_type: "Configure the reward type and weightage given to your customer.",
|
|
3974
|
+
configure_reward_customer: "Configure the reward type given to your customer.",
|
|
3975
|
+
max_per_user: "Max per user",
|
|
3976
|
+
leave_empty_unlimited: "Leave empty for unlimited",
|
|
3977
|
+
usage_count: "Usage count",
|
|
3978
|
+
max_distribute: "Max distribute",
|
|
3979
|
+
cooldown: "Cooldown",
|
|
3980
|
+
validity_option: {
|
|
3981
|
+
title: "Validity option",
|
|
3982
|
+
date_range: "Date range",
|
|
3983
|
+
custom: "Custom",
|
|
3984
|
+
expire: "Expires",
|
|
3985
|
+
after_day: "Expire After (days)",
|
|
3986
|
+
days: "days(s)",
|
|
3987
|
+
expire_follow_first_receive: "Expiry follows the first receive",
|
|
3988
|
+
expires_on_same_day: "Expires on the same day"
|
|
3989
|
+
},
|
|
3990
|
+
enable_transfer: "Enable transfer",
|
|
3991
|
+
rule: {
|
|
3992
|
+
time: {
|
|
3993
|
+
all_time: "All time",
|
|
3994
|
+
custom: "Custom date/time",
|
|
3995
|
+
confirm_remove: "Are you sure you want to turn off custom conditons? This will remove all the rules you have set."
|
|
3996
|
+
},
|
|
3997
|
+
audience: {
|
|
3998
|
+
all: "All audience",
|
|
3999
|
+
member_segment: "Member segment",
|
|
4000
|
+
custom_audience: "Custom audience",
|
|
4001
|
+
confirm_remove: "Are you sure you want to change the audience type? This will remove all the rules you have set."
|
|
4002
|
+
}
|
|
4003
|
+
},
|
|
4004
|
+
mission_configuration: "Mission configuration",
|
|
4005
|
+
reward_setup: "Reward setup"
|
|
4006
|
+
},
|
|
4007
|
+
campaign: {
|
|
4008
|
+
common: {
|
|
4009
|
+
campaign: "キャンペーン",
|
|
4010
|
+
createCampaign: "キャンペーンを作成",
|
|
4011
|
+
search: "検索",
|
|
4012
|
+
location: "位置: ",
|
|
4013
|
+
noResults: "結果が見つかりませんでした",
|
|
4014
|
+
title: "タイトル",
|
|
4015
|
+
deletedAt: "Deleted at",
|
|
4016
|
+
campaignType: "Campaign type",
|
|
4017
|
+
remove: {
|
|
4018
|
+
confirm: "{name} を削除してもよろしいですか?",
|
|
4019
|
+
removing: "{name} を削除しています",
|
|
4020
|
+
removed: "{name} を削除しました"
|
|
4021
|
+
},
|
|
4022
|
+
restore: {
|
|
4023
|
+
confirm: "Are you sure you want to restore {name}?",
|
|
4024
|
+
restoring: "Restoring {name}",
|
|
4025
|
+
restored: "Restored {name} successfully"
|
|
4026
|
+
},
|
|
4027
|
+
actions: {
|
|
4028
|
+
remove: "取り除く",
|
|
4029
|
+
send: "送信",
|
|
4030
|
+
share: "共有",
|
|
4031
|
+
restore: "Restore"
|
|
4032
|
+
},
|
|
4033
|
+
effect_required: "効果が必要です",
|
|
4034
|
+
unsaved_changes: "この変更を破棄してもよろしいですか?",
|
|
4035
|
+
unsaved_changes_confirm: "破棄",
|
|
4036
|
+
unsaved_changes_cancel: "キャンセル",
|
|
4037
|
+
save: "保存",
|
|
4038
|
+
cancel: "キャンセル",
|
|
4039
|
+
summary: "キャンペーン概要",
|
|
4040
|
+
campaign_name: "キャンペーン名",
|
|
4041
|
+
campaign_period: "キャンペーン期間",
|
|
4042
|
+
next_schedule_at: "次回のスケジュール",
|
|
4043
|
+
discount_type: "割引の種類",
|
|
4044
|
+
discount_amount: "割引額",
|
|
4045
|
+
discount_percentage: "割引率",
|
|
4046
|
+
all_locations: "すべての場所",
|
|
4047
|
+
available_at: "入手可能",
|
|
4048
|
+
always: "いつも",
|
|
4049
|
+
no_location: "場所なし",
|
|
4050
|
+
status: {
|
|
4051
|
+
active: "Active",
|
|
4052
|
+
upcoming: "Upcoming",
|
|
4053
|
+
expired: "Expired"
|
|
4054
|
+
}
|
|
4055
|
+
},
|
|
4056
|
+
mission: {
|
|
4057
|
+
title: "ミッション",
|
|
4058
|
+
create: "キャンペーンを作成",
|
|
4059
|
+
confirmDelete: "{name} を削除してもよろしいですか?",
|
|
4060
|
+
removing: "{name} を削除しています",
|
|
4061
|
+
removed: "{name} を削除しました",
|
|
4062
|
+
updating: "ミッションプログラムの更新",
|
|
4063
|
+
updated: "ミッションプログラムが正常に更新されました",
|
|
4064
|
+
creating: "ミッションプログラムの作成",
|
|
4065
|
+
created: "ミッションプログラムが正常に作成されました",
|
|
4066
|
+
location: "位置: ",
|
|
4067
|
+
createProgram: "ミッションプログラムを作成する",
|
|
4068
|
+
description: "ミッション機能はショッピングに楽しい要素を加え、顧客のさらなる関与を促します。",
|
|
4069
|
+
createButton: "ミッションプログラムの作成",
|
|
4070
|
+
type: "ミッションタイプ",
|
|
4071
|
+
received: "受け取った"
|
|
4072
|
+
},
|
|
4073
|
+
broadcast: {
|
|
4074
|
+
title: "放送",
|
|
4075
|
+
messageSent: "送信数: {count}",
|
|
4076
|
+
create: {
|
|
4077
|
+
title: "放送キャンペーンを作成する",
|
|
4078
|
+
description: "ブロードキャストを使用すると、すべての顧客にテキスト メッセージを送信して、新しい取引、イベント、または重要な更新について通知できます。",
|
|
4079
|
+
button: "放送キャンペーンを作成する"
|
|
4080
|
+
},
|
|
4081
|
+
update: {
|
|
4082
|
+
creating: "放送の作成",
|
|
4083
|
+
updating: "放送を更新しています",
|
|
4084
|
+
success: "{action} を正常にブロードキャストしました"
|
|
4085
|
+
}
|
|
4086
|
+
},
|
|
4087
|
+
promotion: {
|
|
4088
|
+
title: "プロモーション",
|
|
4089
|
+
typeLabel: "{type} プロモーション",
|
|
4090
|
+
create: {
|
|
4091
|
+
title: "プロモーションキャンペーンを作成する",
|
|
4092
|
+
description: "ユーザーのエンゲージメントと購入を促進するために、期間限定で提供される特別オファーやお得な情報です。プロモーションは通常、特定のコードを必要とせず、すべての対象ユーザーが利用でき、プロモーション期間中に加盟店によって適用されます。",
|
|
4093
|
+
button: "プロモーションキャンペーンを作成する"
|
|
4094
|
+
},
|
|
4095
|
+
update: {
|
|
4096
|
+
creating: "プロモーションの作成",
|
|
4097
|
+
updating: "プロモーションを更新しています",
|
|
4098
|
+
success: "プロモーション {action} が正常に完了しました"
|
|
4099
|
+
}
|
|
4100
|
+
},
|
|
4101
|
+
voucher: {
|
|
4102
|
+
title: "バウチャー",
|
|
4103
|
+
claimed: "{count} 人が申請しました",
|
|
4104
|
+
unlimited: "無制限",
|
|
4105
|
+
updateConfirm: {
|
|
4106
|
+
title: "確認",
|
|
4107
|
+
message: "これにより、今後すべてのバウチャーが変更されます。以前に申請したバウチャーの有効期限と割引を更新しますか?",
|
|
4108
|
+
updateAll: "すべて更新",
|
|
4109
|
+
updateFuture: "将来のみ更新"
|
|
4110
|
+
},
|
|
4111
|
+
create: {
|
|
4112
|
+
title: "バウチャーキャンペーンを作成する",
|
|
4113
|
+
description: "ユーザーが将来の購入時に割引を受けられるデジタルクーポン。通常、割引を受けるには、クーポンを申請して適用する必要があります。",
|
|
4114
|
+
button: "バウチャーキャンペーンを作成する"
|
|
4115
|
+
},
|
|
4116
|
+
update: {
|
|
4117
|
+
creating: "バウチャーの作成",
|
|
4118
|
+
updating: "バウチャーを更新しています",
|
|
4119
|
+
success: "バウチャー{action}が正常に発行されました"
|
|
4120
|
+
},
|
|
4121
|
+
share: {
|
|
4122
|
+
error: "単純な請求ではないバウチャーを共有することはできません。",
|
|
4123
|
+
errorTitle: "シェアバウチャー",
|
|
4124
|
+
errorButton: "わかりました",
|
|
4125
|
+
success: "クーポンリンクをクリップボードにコピーしました"
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
},
|
|
4129
|
+
promotion: {
|
|
4130
|
+
createCampaign: "キャンペーンを作成",
|
|
4131
|
+
promotionTitle: "プロモーションタイトル",
|
|
4132
|
+
status: "状態",
|
|
4133
|
+
type: "タイプ",
|
|
4134
|
+
summary: "まとめ",
|
|
4135
|
+
actions: "アクション",
|
|
4136
|
+
confirmRemove: "{name} を削除してもよろしいですか?",
|
|
4137
|
+
removing: "{name} を削除しています",
|
|
4138
|
+
removedSuccessfully: "{name} を削除しました",
|
|
4139
|
+
updating: "プロモーションを更新しています",
|
|
4140
|
+
creating: "プロモーションの作成",
|
|
4141
|
+
updatedSuccessfully: "プロモーションが正常に更新されました",
|
|
4142
|
+
createdSuccessfully: "プロモーションが正常に作成されました",
|
|
4143
|
+
title: "プロモーション",
|
|
4144
|
+
search: "検索",
|
|
4145
|
+
location: "位置: ",
|
|
4146
|
+
createPromotionCampaign: "プロモーションキャンペーンを作成する",
|
|
4147
|
+
description: "ユーザーのエンゲージメントと購入を促進するために、期間限定で提供される特別オファーやお得な情報です。プロモーションは通常、特定のコードを必要とせず、すべての対象ユーザーが利用でき、プロモーション期間中に加盟店によって適用されます。"
|
|
4148
|
+
},
|
|
4149
|
+
voucher: {
|
|
4150
|
+
createCampaign: "キャンペーンを作成",
|
|
4151
|
+
voucherTitle: "バウチャータイトル",
|
|
4152
|
+
status: "状態",
|
|
4153
|
+
summary: "まとめ",
|
|
4154
|
+
quota: "クォータ",
|
|
4155
|
+
claimed: "主張した",
|
|
4156
|
+
actions: "アクション",
|
|
4157
|
+
remove: "取り除く",
|
|
4158
|
+
send: "送信",
|
|
4159
|
+
share: "共有",
|
|
4160
|
+
confirmRemove: "{name} を削除してもよろしいですか?",
|
|
4161
|
+
removing: "{name} を削除しています",
|
|
4162
|
+
removedSuccessfully: "{name} を削除しました",
|
|
4163
|
+
updating: "バウチャーを更新しています",
|
|
4164
|
+
creating: "バウチャーの作成",
|
|
4165
|
+
updatedSuccessfully: "バウチャーが正常に更新されました",
|
|
4166
|
+
createdSuccessfully: "バウチャーが正常に作成されました",
|
|
4167
|
+
title: "バウチャー",
|
|
4168
|
+
search: "検索",
|
|
4169
|
+
location: "位置: ",
|
|
4170
|
+
createVoucherCampaign: "バウチャーキャンペーンを作成する",
|
|
4171
|
+
description: "ユーザーが将来の購入時に割引を受けられるデジタルクーポン。通常、割引を受けるには、クーポンを申請して適用する必要があります。"
|
|
4172
|
+
},
|
|
4173
|
+
navigation: {
|
|
4174
|
+
analytic: "分析的",
|
|
4175
|
+
campaign: "キャンペーン",
|
|
4176
|
+
promotion: "プロモーション",
|
|
4177
|
+
voucher: "バウチャー",
|
|
4178
|
+
broadcast: "放送",
|
|
4179
|
+
program: "プログラム",
|
|
4180
|
+
tier: "ティア",
|
|
4181
|
+
title: "タイトル",
|
|
4182
|
+
experience: "経験",
|
|
4183
|
+
point: "ポイント",
|
|
4184
|
+
credit: "クレジット",
|
|
4185
|
+
game: "ゲーム",
|
|
4186
|
+
loyalty: "忠誠心",
|
|
4187
|
+
member: "メンバー",
|
|
4188
|
+
segments: "セグメント",
|
|
4189
|
+
card: "カード",
|
|
4190
|
+
store: "店",
|
|
4191
|
+
transaction: "取引",
|
|
4192
|
+
setting: "設定",
|
|
4193
|
+
mission: "ミッション",
|
|
4194
|
+
referral: "Referral",
|
|
4195
|
+
bin: "Bin",
|
|
4196
|
+
queue: "Queue"
|
|
4197
|
+
},
|
|
4198
|
+
bin: {
|
|
4199
|
+
title: "Bin",
|
|
4200
|
+
description: "Restore deleted campaigns from the bin. Campaigns in the bin can be restored or permanently deleted."
|
|
4201
|
+
},
|
|
4202
|
+
loyalty: {
|
|
4203
|
+
card: {
|
|
4204
|
+
title: "カード",
|
|
4205
|
+
premium_label: "プレミアム",
|
|
4206
|
+
actions: {
|
|
4207
|
+
create: "カードを作成する",
|
|
4208
|
+
manage_design: "デザイン管理",
|
|
4209
|
+
add: "カードを追加"
|
|
4210
|
+
},
|
|
4211
|
+
empty_state: {
|
|
4212
|
+
title: "会員カードを作成する",
|
|
4213
|
+
description: "会員カードを追跡および管理して、顧客がビジネスに関心を持ち続けるようにします。",
|
|
4214
|
+
premium_cta: "プレミアムに加入して、すべての機能をお楽しみください。"
|
|
4215
|
+
},
|
|
4216
|
+
table: {
|
|
4217
|
+
card_number: "カード番号",
|
|
4218
|
+
redeemed_by: "償還者",
|
|
4219
|
+
phone: "電話",
|
|
4220
|
+
created_at: "作成場所",
|
|
4221
|
+
bundle: "バンドル",
|
|
4222
|
+
redeemed_at: "交換先",
|
|
4223
|
+
actions: "アクション"
|
|
4224
|
+
}
|
|
4225
|
+
},
|
|
4226
|
+
member: {
|
|
4227
|
+
title: "会員の取引",
|
|
4228
|
+
tabs: {
|
|
4229
|
+
member_list: "メンバーリスト"
|
|
4230
|
+
},
|
|
4231
|
+
import: "Import"
|
|
4232
|
+
},
|
|
4233
|
+
segment: {
|
|
4234
|
+
title: "セグメント",
|
|
4235
|
+
actions: {
|
|
4236
|
+
refresh: "セグメントを更新",
|
|
4237
|
+
add: "セグメントを追加",
|
|
4238
|
+
remove: "取り除く"
|
|
4239
|
+
},
|
|
4240
|
+
table: {
|
|
4241
|
+
name: "名前",
|
|
4242
|
+
status: "Status",
|
|
4243
|
+
total_customers: "このセグメントの顧客総数",
|
|
4244
|
+
customer_percentage: "顧客の割合",
|
|
4245
|
+
actions: "アクション"
|
|
4246
|
+
},
|
|
4247
|
+
mobile: {
|
|
4248
|
+
total_customers: "合計{count}人の顧客",
|
|
4249
|
+
customer_percentage: "顧客の{percentage}%"
|
|
4250
|
+
}
|
|
4251
|
+
}
|
|
4252
|
+
},
|
|
4253
|
+
program: {
|
|
4254
|
+
common: {
|
|
4255
|
+
create: "プログラムを作成する",
|
|
4256
|
+
search: "検索",
|
|
4257
|
+
location: "位置: ",
|
|
4258
|
+
used: "{count} 回使用",
|
|
4259
|
+
actions: {
|
|
4260
|
+
create: "{type} プログラムを作成する",
|
|
4261
|
+
delete: "消去"
|
|
4262
|
+
},
|
|
4263
|
+
table: {
|
|
4264
|
+
title: "プログラムタイトル",
|
|
4265
|
+
status: "状態",
|
|
4266
|
+
summary: "まとめ",
|
|
4267
|
+
actions: "アクション",
|
|
4268
|
+
type: "タイプ"
|
|
4269
|
+
},
|
|
4270
|
+
remove: {
|
|
4271
|
+
confirm: "{name} を削除してもよろしいですか?",
|
|
4272
|
+
removing: "{name} を削除しています",
|
|
4273
|
+
removed: "{name} を削除しました"
|
|
4274
|
+
},
|
|
4275
|
+
update: {
|
|
4276
|
+
creating: "{type} プログラムを作成しています",
|
|
4277
|
+
updating: "{type} プログラムを更新しています",
|
|
4278
|
+
success: "{type} プログラム {action} が正常に実行されました"
|
|
4279
|
+
}
|
|
4280
|
+
},
|
|
4281
|
+
experience: {
|
|
4282
|
+
title: "経験",
|
|
4283
|
+
empty_state: {
|
|
4284
|
+
title: "体験プログラムの作成",
|
|
4285
|
+
description: "顧客体験は、会員レベルの向上に役立ちます。顧客との交流や支出が増えるほど会員レベルが上がり、より多くの特典やサービスが受けられます。"
|
|
4286
|
+
},
|
|
4287
|
+
received: "獲得した経験値: {count}"
|
|
4288
|
+
},
|
|
4289
|
+
game: {
|
|
4290
|
+
title: "ゲーム",
|
|
4291
|
+
empty_state: {
|
|
4292
|
+
title: "ゲームプログラムを作成する",
|
|
4293
|
+
description: "ゲーム機能はショッピングに楽しい要素を加え、顧客のさらなる関与を促します。"
|
|
4294
|
+
},
|
|
4295
|
+
token_received: "受信したトークン: {count}"
|
|
4296
|
+
},
|
|
4297
|
+
credit: {
|
|
4298
|
+
title: "クレジット"
|
|
4299
|
+
},
|
|
4300
|
+
point: {
|
|
4301
|
+
title: "ポイント",
|
|
4302
|
+
empty_state: {
|
|
4303
|
+
title: "ポイントプログラムを作成する",
|
|
4304
|
+
description: "ポイントは、顧客が獲得してバンドル アイテムの購入に使用できる仮想ポイントです。"
|
|
4305
|
+
},
|
|
4306
|
+
point_received: "獲得ポイント: {count}",
|
|
4307
|
+
used: "{count} 回使用"
|
|
4308
|
+
},
|
|
4309
|
+
tier: {
|
|
4310
|
+
title: "ティア",
|
|
4311
|
+
empty_state: {
|
|
4312
|
+
title: "ティアプログラムを作成する",
|
|
4313
|
+
description: "メンバーシップキャンペーンにご参加いただくことで、会員限定の特典やリワードをご提供いたします。ロイヤルティレベルに応じて、ご希望の特典をお選びいただけます。"
|
|
4314
|
+
},
|
|
4315
|
+
actions: {
|
|
4316
|
+
add: "ティアを追加",
|
|
4317
|
+
season_setting: "季節設定"
|
|
4318
|
+
},
|
|
4319
|
+
update: {
|
|
4320
|
+
range_discontinuous: {
|
|
4321
|
+
previous: `階層範囲が連続していません。
|
|
4322
|
+
以前の範囲: {name} [{from} - {to}]。
|
|
4323
|
+
以前の範囲を [{from} - {newTo}] に更新しますか?`,
|
|
4324
|
+
next: `階層範囲が連続していません。
|
|
4325
|
+
次の範囲: {name} [{from} - {to}]。
|
|
4326
|
+
次の範囲を [{newFrom} - {to}] に更新しますか?`
|
|
4327
|
+
}
|
|
4328
|
+
},
|
|
4329
|
+
remove: {
|
|
4330
|
+
linked_reward_confirm: "This tier is linked to {count} reward(s). Are you sure you want to remove it?",
|
|
4331
|
+
confirm: "このティアを削除してもよろしいですか?",
|
|
4332
|
+
title: "ティアを削除",
|
|
4333
|
+
next_range: "次の範囲を更新",
|
|
4334
|
+
range_discontinuous: {
|
|
4335
|
+
previous: `階層範囲が連続していません。
|
|
4336
|
+
以前の範囲: {name} [{from} - {to}]。
|
|
4337
|
+
以前の範囲を [{from} - {newTo}] に更新しますか?`,
|
|
4338
|
+
next: `階層範囲が連続していません。
|
|
4339
|
+
次の範囲: {name} [{from} - {to}]。
|
|
4340
|
+
次の範囲を [{newFrom} - {to}] に更新しますか?`
|
|
4341
|
+
}
|
|
4342
|
+
},
|
|
4343
|
+
benefit: {
|
|
4344
|
+
add: "特典を追加",
|
|
4345
|
+
no_linked: "関連する特典はありません",
|
|
4346
|
+
update: {
|
|
4347
|
+
title: "特典の更新",
|
|
4348
|
+
success: "特典が正常に作成されました"
|
|
4349
|
+
}
|
|
4350
|
+
},
|
|
4351
|
+
expression: {
|
|
4352
|
+
title: "Tier expiration rule",
|
|
4353
|
+
description: "To set up membership tier experience rules when expired",
|
|
4354
|
+
change_to: "Change to",
|
|
4355
|
+
deduct_by: "Deduct by",
|
|
4356
|
+
deduct_percentage: "Deduct percentage",
|
|
4357
|
+
value: "Value",
|
|
4358
|
+
value_greater_than_or_equal: "Value must be greater than or equal {value}",
|
|
4359
|
+
value_less_than_or_equal: "Value must be less than or equal {value}",
|
|
4360
|
+
value_between: "Value must be between {from} and {to}",
|
|
4361
|
+
value_less_than: "Value must be less than {value}"
|
|
4362
|
+
},
|
|
4363
|
+
card: {
|
|
4364
|
+
count: "{count} members"
|
|
4365
|
+
}
|
|
4366
|
+
},
|
|
4367
|
+
title: {
|
|
4368
|
+
title: "タイトル",
|
|
4369
|
+
empty_state: {
|
|
4370
|
+
title: "タイトルプログラムを作成する",
|
|
4371
|
+
description: "タイトルプログラムを作成 会員体験をパーソナライズするために、独自のロイヤルティタイトルを作成します。遊び心のあるタイトルで顧客を引き付け、ロイヤルティプログラムのゲーミフィケーションを強化します。"
|
|
4372
|
+
},
|
|
4373
|
+
actions: {
|
|
4374
|
+
add: "タイトルを追加"
|
|
4375
|
+
},
|
|
4376
|
+
update: {
|
|
4377
|
+
creating: "タイトルの作成",
|
|
4378
|
+
updating: "タイトルを更新しています",
|
|
4379
|
+
success: "タイトル {action} が正常に作成されました"
|
|
4380
|
+
},
|
|
4381
|
+
remove: {
|
|
4382
|
+
linked_reward_confirm: "This title is linked to {count} reward(s). Are you sure you want to remove it?",
|
|
4383
|
+
confirm: "このタイトルを削除してもよろしいですか?",
|
|
4384
|
+
title: "タイトルを削除",
|
|
4385
|
+
deleting: "タイトルを削除しています",
|
|
4386
|
+
success: "タイトルを削除しました"
|
|
4387
|
+
},
|
|
4388
|
+
benefit: {
|
|
4389
|
+
add: "特典を追加",
|
|
4390
|
+
no_linked: "関連する特典はありません",
|
|
4391
|
+
update: {
|
|
4392
|
+
title: "特典の更新",
|
|
4393
|
+
success: "特典が正常に作成されました"
|
|
4394
|
+
},
|
|
4395
|
+
voucher_update: {
|
|
4396
|
+
title: "確認",
|
|
4397
|
+
message: "これにより、今後すべてのバウチャーが変更されます。以前に申請したバウチャーの有効期限と割引を更新しますか?",
|
|
4398
|
+
update_all: "すべて更新",
|
|
4399
|
+
update_future: "将来のみ更新"
|
|
4400
|
+
}
|
|
4401
|
+
},
|
|
4402
|
+
table: {
|
|
4403
|
+
title: "タイトル",
|
|
4404
|
+
program_title: "プログラムタイトル",
|
|
4405
|
+
status: "状態",
|
|
4406
|
+
type: "タイプ",
|
|
4407
|
+
summary: "まとめ",
|
|
4408
|
+
actions: "アクション"
|
|
4409
|
+
},
|
|
4410
|
+
search: "検索",
|
|
4411
|
+
location: "位置: ",
|
|
4412
|
+
addBenefit: "特典を追加",
|
|
4413
|
+
noDescription: "説明なし",
|
|
4414
|
+
descriptionLimit: "{name} の説明は 200 文字を超えてはなりません。",
|
|
4415
|
+
availability: "可用性",
|
|
4416
|
+
internalOnly: "社内専用",
|
|
4417
|
+
notShown: "{name}は顧客に表示されません",
|
|
4418
|
+
submit: "提出する",
|
|
4419
|
+
cancel: "キャンセル",
|
|
4420
|
+
imageLabel: "{name} 画像"
|
|
4421
|
+
},
|
|
4422
|
+
mission: {
|
|
4423
|
+
title: "ミッション",
|
|
4424
|
+
empty_state: {
|
|
4425
|
+
title: "ミッションプログラムを作成する",
|
|
4426
|
+
description: "ミッションは、顧客がタスクを完了して報酬を獲得できるプログラムです。"
|
|
4427
|
+
}
|
|
4428
|
+
}
|
|
4429
|
+
},
|
|
4430
|
+
analytic: {
|
|
4431
|
+
title: "分析的",
|
|
4432
|
+
addGroup: "グループを追加",
|
|
4433
|
+
search: "検索",
|
|
4434
|
+
summary: {
|
|
4435
|
+
title: "接続の概要",
|
|
4436
|
+
totalCampaign: "キャンペーン全体",
|
|
4437
|
+
totalProgram: "トータルプログラム",
|
|
4438
|
+
totalMember: "会員総数"
|
|
4439
|
+
},
|
|
4440
|
+
emptyState: {
|
|
4441
|
+
title: "パフォーマンスを追跡するためのキャンペーン グループを作成する",
|
|
4442
|
+
description: "グループを作成して、キャンペーンやプロモーションを整理しましょう。グループを使用すると、複数のバウチャー、プロモーション、その他の特典のパフォーマンス指標を集計できます。",
|
|
4443
|
+
action: "グループを作成"
|
|
4444
|
+
}
|
|
4445
|
+
},
|
|
4446
|
+
marketing: {
|
|
4447
|
+
title: "マーケティング資料",
|
|
4448
|
+
create: "マーケティング資料を作成する",
|
|
4449
|
+
search: "検索",
|
|
4450
|
+
table: {
|
|
4451
|
+
name: "名前",
|
|
4452
|
+
campaign: "キャンペーン",
|
|
4453
|
+
createdDate: "作成日",
|
|
4454
|
+
actions: "アクション"
|
|
4455
|
+
},
|
|
4456
|
+
delete: {
|
|
4457
|
+
confirm: "{name} を削除してもよろしいですか?",
|
|
4458
|
+
removing: "{name} を削除しています",
|
|
4459
|
+
success: "{name} を削除しました"
|
|
4460
|
+
},
|
|
4461
|
+
emptyState: {
|
|
4462
|
+
title: "マーケティング資料を作成する",
|
|
4463
|
+
description: "AIを活用したツールで、マーケティング活動を簡単に強化できます。ご希望のプラットフォーム向けに、魅力的な画像とキャプションを生成できます。",
|
|
4464
|
+
action: "素材を追加"
|
|
4465
|
+
},
|
|
4466
|
+
noResults: "結果が見つかりませんでした"
|
|
4467
|
+
},
|
|
4468
|
+
setting: {
|
|
4469
|
+
title: "設定",
|
|
4470
|
+
basicInfo: {
|
|
4471
|
+
title: "基本情報",
|
|
4472
|
+
membershipTitle: "会員資格",
|
|
4473
|
+
memberAppUrl: "メンバーアプリのURL"
|
|
4474
|
+
},
|
|
4475
|
+
counterApp: {
|
|
4476
|
+
title: "カウンターアプリ",
|
|
4477
|
+
linkDevice: "リンクデバイス",
|
|
4478
|
+
device: {
|
|
4479
|
+
activationDate: "有効化日:",
|
|
4480
|
+
linkedLocation: "リンク先の場所:"
|
|
4481
|
+
}
|
|
4482
|
+
},
|
|
4483
|
+
advertisement: {
|
|
4484
|
+
title: "広告",
|
|
4485
|
+
subtitle: "これはFeedMe注文アプリに表示されます",
|
|
4486
|
+
saveChanges: "Save Changes",
|
|
4487
|
+
activeAds: "Active Ads:",
|
|
4488
|
+
premiumFeatureTitle: "Premium Feature",
|
|
4489
|
+
premiumFeatureDescription: "Upgrade to Premium to manage advertisements",
|
|
4490
|
+
manageAd: "Manage Ad",
|
|
4491
|
+
addAdvertisement: "Add Advertisement",
|
|
4492
|
+
advertisementImage: "Advertisement Image",
|
|
4493
|
+
targetLocations: "Target Locations",
|
|
4494
|
+
targetLocationsHelper: "Leave empty to show in all locations",
|
|
4495
|
+
save: "Save",
|
|
4496
|
+
deleteConfirm: "Delete this advertisement?",
|
|
4497
|
+
delete: "Delete",
|
|
4498
|
+
addAd: "Add Ad",
|
|
4499
|
+
left: "left",
|
|
4500
|
+
saving: "Saving advertisements",
|
|
4501
|
+
savedSuccessfully: "Advertisements saved successfully"
|
|
4502
|
+
},
|
|
4503
|
+
sms: {
|
|
4504
|
+
title: "SMS",
|
|
4505
|
+
brandName: "ブランド名",
|
|
4506
|
+
messageFormat: "RM 0 {ブランド}: お客様からのメッセージ",
|
|
4507
|
+
welcomeMessage: "こんにちは、あなたはメンバーシップへの参加に招待されました"
|
|
4508
|
+
},
|
|
4509
|
+
freeCredit: {
|
|
4510
|
+
title: "割引として無料クレジット",
|
|
4511
|
+
posVersion: "*POS v6.56以上",
|
|
4512
|
+
description: "有効にすると、無料クレジットを請求書の割引として使用できるようになります (POS >=v6.56)"
|
|
4513
|
+
},
|
|
4514
|
+
memberCard: {
|
|
4515
|
+
title: "会員カード",
|
|
4516
|
+
description: "メンバーがメンバーアプリ経由でカードをバインドできるようにする"
|
|
4517
|
+
},
|
|
4518
|
+
location: {
|
|
4519
|
+
title: "アクティベーション場所",
|
|
4520
|
+
selectLabel: "レストランを選択"
|
|
4521
|
+
},
|
|
4522
|
+
summary: {
|
|
4523
|
+
title: "ロイヤルティ設定の概要",
|
|
4524
|
+
name: "名前",
|
|
4525
|
+
advertisement: "広告",
|
|
4526
|
+
noAds: "広告なし",
|
|
4527
|
+
freeCredit: "割引として無料クレジット",
|
|
4528
|
+
enabled: "有効",
|
|
4529
|
+
disabled: "無効",
|
|
4530
|
+
locations: "有効化された場所",
|
|
4531
|
+
allLocations: "すべての場所"
|
|
4532
|
+
},
|
|
4533
|
+
action: {
|
|
4534
|
+
update: "アップデート"
|
|
4535
|
+
}
|
|
4536
|
+
},
|
|
4537
|
+
transaction: {
|
|
4538
|
+
title: "取引",
|
|
4539
|
+
tabs: {
|
|
4540
|
+
collection: "コレクション",
|
|
4541
|
+
store: "店"
|
|
4542
|
+
}
|
|
4543
|
+
},
|
|
4544
|
+
store: {
|
|
4545
|
+
title: "店",
|
|
4546
|
+
setting: {
|
|
4547
|
+
title: "店舗設定",
|
|
4548
|
+
company: {
|
|
4549
|
+
legal_info: "Company legal information",
|
|
4550
|
+
name: "Company name",
|
|
4551
|
+
reg_no: "Registration number",
|
|
4552
|
+
tax_reg_no: "Tax Registration number",
|
|
4553
|
+
tax: "Tax",
|
|
4554
|
+
phone: "Phone number",
|
|
4555
|
+
address: {
|
|
4556
|
+
title: "Address",
|
|
4557
|
+
line1: "Line 1",
|
|
4558
|
+
line2: "Line 2",
|
|
4559
|
+
city: "City",
|
|
4560
|
+
postcode: "Postcode",
|
|
4561
|
+
state: "State",
|
|
4562
|
+
country: "Country"
|
|
4563
|
+
}
|
|
4564
|
+
},
|
|
4565
|
+
stripe: {
|
|
4566
|
+
title: "Stripe Integration"
|
|
4567
|
+
},
|
|
4568
|
+
update: {
|
|
4569
|
+
message: "ストア設定を更新しています",
|
|
4570
|
+
success: "ストア設定が正常に更新されました"
|
|
4571
|
+
}
|
|
4572
|
+
},
|
|
4573
|
+
actions: {
|
|
4574
|
+
setting: "店舗設定",
|
|
4575
|
+
manageReward: "報酬を管理する",
|
|
4576
|
+
addCategory: "カテゴリを追加",
|
|
4577
|
+
addBundle: "バンドルを追加"
|
|
4578
|
+
},
|
|
4579
|
+
category: {
|
|
4580
|
+
label: "Category",
|
|
4581
|
+
setup: {
|
|
4582
|
+
title: "カテゴリーを追加する前に、まずストアの設定を行ってください。",
|
|
4583
|
+
action: "今すぐ更新",
|
|
4584
|
+
button: "ストア設定を更新"
|
|
4585
|
+
},
|
|
4586
|
+
add: "カテゴリを追加",
|
|
4587
|
+
edit: "カテゴリを編集",
|
|
4588
|
+
remove: {
|
|
4589
|
+
confirm: "カテゴリを削除してもよろしいですか?",
|
|
4590
|
+
title: "カテゴリを削除"
|
|
4591
|
+
},
|
|
4592
|
+
update: {
|
|
4593
|
+
deleting: "カテゴリを削除しています",
|
|
4594
|
+
creating: "カテゴリを作成",
|
|
4595
|
+
updating: "カテゴリを更新しています",
|
|
4596
|
+
success: {
|
|
4597
|
+
deleted: "カテゴリが正常に削除されました",
|
|
4598
|
+
created: "カテゴリが正常に作成されました",
|
|
4599
|
+
updated: "カテゴリが正常に更新されました"
|
|
4600
|
+
}
|
|
4601
|
+
}
|
|
4602
|
+
},
|
|
4603
|
+
bundle: {
|
|
4604
|
+
title: "ストアバンドル",
|
|
4605
|
+
description: "ユーザーに使ってもらいたいアイテムをここに追加してください。バウチャー、特典、体験など、様々な特典が考えられます。",
|
|
4606
|
+
delete: {
|
|
4607
|
+
confirm: "このバンドルを削除してもよろしいですか?",
|
|
4608
|
+
title: "バンドルを削除"
|
|
4609
|
+
},
|
|
4610
|
+
update: {
|
|
4611
|
+
error: "予期しないエラー",
|
|
4612
|
+
deleting: "バンドルを削除しています",
|
|
4613
|
+
creating: "バンドルを作成しています",
|
|
4614
|
+
updating: "バンドルを更新しています",
|
|
4615
|
+
success: {
|
|
4616
|
+
deleted: "バンドルが正常に削除されました",
|
|
4617
|
+
created: "バンドルが正常に作成されました",
|
|
4618
|
+
updated: "バンドルが正常に更新されました"
|
|
4619
|
+
}
|
|
4620
|
+
},
|
|
4621
|
+
edit: {
|
|
4622
|
+
title: "バンドルを編集",
|
|
4623
|
+
create: "バンドルを作成",
|
|
4624
|
+
basicInformation: "基本情報",
|
|
4625
|
+
bundleName: "バンドル名",
|
|
4626
|
+
bundleImage: "バンドル画像",
|
|
4627
|
+
bundlePrice: "バンドル価格",
|
|
4628
|
+
bundleValue: "バンドル価値",
|
|
4629
|
+
originalPrice: "元の価格",
|
|
4630
|
+
originalPriceHelper: "元の価格を無効にするには、空白のままにするか 0 に設定してください",
|
|
4631
|
+
pointNeeded: "必要なポイント",
|
|
4632
|
+
subscriptionSettings: "サブスクリプション設定",
|
|
4633
|
+
stripePriceId: "ストライプ価格ID",
|
|
4634
|
+
subscriptionValidity: "サブスクリプションの有効期間(日数)",
|
|
4635
|
+
submit: "提出する",
|
|
4636
|
+
cancel: "キャンセル",
|
|
4637
|
+
advanceSetting: "詳細設定",
|
|
4638
|
+
credit: "クレジット",
|
|
4639
|
+
normalCredit: "通常クレジット",
|
|
4640
|
+
freeCredit: "無料クレジット",
|
|
4641
|
+
taxes: "税金",
|
|
4642
|
+
taxCharge: {
|
|
4643
|
+
title: "税金({type})",
|
|
4644
|
+
inclusive: "包括的",
|
|
4645
|
+
exclusive: "エクスクルーシブ"
|
|
4646
|
+
},
|
|
4647
|
+
totalPrice: "合計金額",
|
|
4648
|
+
internalBundle: "内部バンドル",
|
|
4649
|
+
internalBundleDescription: "内部バンドルはFeedMeメンバーアプリでは非表示になります",
|
|
4650
|
+
hideInPos: "POSに隠す",
|
|
4651
|
+
hideInPosDescription: "バンドルはFeedMe POSで非表示になります",
|
|
4652
|
+
maxPerUser: "ユーザーあたりの最大購入数",
|
|
4653
|
+
bundleReward: {
|
|
4654
|
+
title: "バンドル報酬",
|
|
4655
|
+
description: "このバンドルから何が期待できるかをメンバーに知らせましょう",
|
|
4656
|
+
table: {
|
|
4657
|
+
title: "報酬タイトル",
|
|
4658
|
+
type: "報酬の種類",
|
|
4659
|
+
description: "説明"
|
|
4660
|
+
}
|
|
4661
|
+
}
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
},
|
|
4665
|
+
storeRewards: {
|
|
4666
|
+
title: "ストア特典",
|
|
4667
|
+
remove: {
|
|
4668
|
+
message: "ここでタイトルを削除することはできません。プログラム > タイトル セクションで削除してください。",
|
|
4669
|
+
title: "報酬を削除",
|
|
4670
|
+
action: "タイトルセクションへ移動"
|
|
4671
|
+
},
|
|
4672
|
+
edit: {
|
|
4673
|
+
message: "ここではタイトルを編集できません。プログラム > タイトル セクションで編集してください。",
|
|
4674
|
+
title: "アップデート報酬",
|
|
4675
|
+
action: "タイトルセクションへ移動"
|
|
4676
|
+
},
|
|
4677
|
+
description: "顧客向けの特典を作成および管理します。",
|
|
4678
|
+
type: {
|
|
4679
|
+
label: "報酬の種類: {type}",
|
|
4680
|
+
all: "全て"
|
|
4681
|
+
},
|
|
4682
|
+
search: "検索",
|
|
4683
|
+
delete: {
|
|
4684
|
+
confirm: "この報酬を削除してもよろしいですか?",
|
|
4685
|
+
title: "報酬を削除",
|
|
4686
|
+
message: "報酬を削除しています",
|
|
4687
|
+
success: "報酬を削除しました"
|
|
4688
|
+
},
|
|
4689
|
+
update: {
|
|
4690
|
+
message: "報酬を更新中",
|
|
4691
|
+
success: "報酬が正常に更新されました"
|
|
4692
|
+
},
|
|
4693
|
+
empty: {
|
|
4694
|
+
title: "報酬を作成する",
|
|
4695
|
+
description: "顧客がバンドル内で引き換えられる特典を作成します。",
|
|
4696
|
+
action: "報酬を作成する"
|
|
4697
|
+
},
|
|
4698
|
+
create: "報酬を作成する",
|
|
4699
|
+
table: {
|
|
4700
|
+
name: "名前",
|
|
4701
|
+
type: "タイプ",
|
|
4702
|
+
validity: "有効",
|
|
4703
|
+
used: "使用済み",
|
|
4704
|
+
actions: "アクション",
|
|
4705
|
+
summary: "まとめ"
|
|
4706
|
+
}
|
|
4707
|
+
},
|
|
4708
|
+
prompt: {
|
|
4709
|
+
confirm: "確認する",
|
|
4710
|
+
cancel: "キャンセル"
|
|
4711
|
+
},
|
|
4712
|
+
editTierSheet: {
|
|
4713
|
+
add: "追加",
|
|
4714
|
+
create: "ティアを作成",
|
|
4715
|
+
basicInformation: "基本情報",
|
|
4716
|
+
tierName: "ティア名",
|
|
4717
|
+
tierImage: "ティアイメージ",
|
|
4718
|
+
experienceThreshold: "経験閾値",
|
|
4719
|
+
minExperience: "最低限の経験",
|
|
4720
|
+
maxExperience: "最大経験",
|
|
4721
|
+
actions: "アクション",
|
|
4722
|
+
submit: "提出する",
|
|
4723
|
+
cancel: "キャンセル"
|
|
4724
|
+
},
|
|
4725
|
+
referral: {
|
|
4726
|
+
title: "Referral Program",
|
|
4727
|
+
actions: {
|
|
4728
|
+
create: "Create referral",
|
|
4729
|
+
manage_reward: "Manage reward",
|
|
4730
|
+
terms: "Terms and conditions",
|
|
4731
|
+
manage_criteria: "Manage criteria",
|
|
4732
|
+
add_referral_tier: "Add referral tier"
|
|
4733
|
+
},
|
|
4734
|
+
tabs: {
|
|
4735
|
+
overview: "Overview",
|
|
4736
|
+
record: "Record"
|
|
4737
|
+
},
|
|
4738
|
+
referral_tier_title: "Set rewards for successful referrals",
|
|
4739
|
+
referral_tier_description: "Add and customize rewards for each step within the selected referral tier.",
|
|
4740
|
+
add_referral_tier: "Add referral tier",
|
|
4741
|
+
overview: {
|
|
4742
|
+
title: "Overview",
|
|
4743
|
+
total_joined: "Total joined",
|
|
4744
|
+
total_redeem: "Total redeemed",
|
|
4745
|
+
total_referee: "Total referee",
|
|
4746
|
+
pending: "Pending"
|
|
4747
|
+
},
|
|
4748
|
+
how_it_works: {
|
|
4749
|
+
title: "How it works",
|
|
4750
|
+
generate_link: "Generate link",
|
|
4751
|
+
generate_link_for_member: "Generate link for member",
|
|
4752
|
+
referee_join_reward: "Referee join reward",
|
|
4753
|
+
referee_meet_criteria: "Referee meet criteria",
|
|
4754
|
+
referer_get_reward: "Referer get reward",
|
|
4755
|
+
reward: "reward(s)",
|
|
4756
|
+
criteria: "criteria(s)",
|
|
4757
|
+
reward_tier: "configured tier(s)",
|
|
4758
|
+
referee_join_reward_description: "Reward will be given to the referee when the referee successfully joins the program and meets the criteria",
|
|
4759
|
+
referral_tier_description: "Referer will receive rewards after referee completed all criteria"
|
|
4760
|
+
},
|
|
4761
|
+
reward: {
|
|
4762
|
+
add_count: "Add count",
|
|
4763
|
+
table: {
|
|
4764
|
+
count: "Referral Count",
|
|
4765
|
+
reward: "Rewards"
|
|
4766
|
+
},
|
|
4767
|
+
remove_referral_count: "Remove referral count",
|
|
4768
|
+
confirm_remove_referral_count: "Are you sure you want to remove this referral count?",
|
|
4769
|
+
remove_referral_tier: "Remove referral tier",
|
|
4770
|
+
confirm_remove_referral_tier: "Are you sure you want to remove this referral tier?"
|
|
4771
|
+
},
|
|
4772
|
+
editReferralTierSheet: {
|
|
4773
|
+
create: "Create referral tier",
|
|
4774
|
+
edit: "Edit referral tier",
|
|
4775
|
+
target_audience: "Target audience",
|
|
4776
|
+
name: "Name"
|
|
4777
|
+
},
|
|
4778
|
+
editReferralCountSheet: {
|
|
4779
|
+
add: "Add referral count",
|
|
4780
|
+
edit: "Edit referral count",
|
|
4781
|
+
referrer_reward: "Referrer reward",
|
|
4782
|
+
min_referral_count: "Min referral count",
|
|
4783
|
+
max_referral_count: "Max referral count",
|
|
4784
|
+
max_referral_count_description: "When max. referral count is not set, it will default unlimited"
|
|
4785
|
+
},
|
|
4786
|
+
refereeRewardSheet: {
|
|
4787
|
+
referee_reward: "Referee reward"
|
|
4788
|
+
},
|
|
4789
|
+
referral_count: {
|
|
4790
|
+
title: "Referral count",
|
|
4791
|
+
update: {
|
|
4792
|
+
range_discontinuous: {
|
|
4793
|
+
previous: `The referral count range is not continuous.
|
|
4794
|
+
Previous range: {name} [{from} - {to}].
|
|
4795
|
+
Do you want to update the previous range to [{from} - {newTo}]?`,
|
|
4796
|
+
next: `The referral count range is not continuous.
|
|
4797
|
+
Next range: {name} [{from} - {to}].
|
|
4798
|
+
Do you want to update the next range to [{newFrom} - {to}]?`
|
|
4799
|
+
}
|
|
4800
|
+
},
|
|
4801
|
+
remove: {
|
|
4802
|
+
confirm: "Are you sure you want to remove this referral count?",
|
|
4803
|
+
title: "Remove referral count",
|
|
4804
|
+
next_range: "Update next range",
|
|
4805
|
+
range_discontinuous: {
|
|
4806
|
+
previous: `The referral count range is not continuous.
|
|
4807
|
+
Previous range: {name} [{from} - {to}].
|
|
4808
|
+
Do you want to update the previous range to [{from} - {newTo}]?`,
|
|
4809
|
+
next: `The referral count range is not continuous.
|
|
4810
|
+
Next range: {name} [{from} - {to}].
|
|
4811
|
+
Do you want to update the next range to [{newFrom} - {to}]?`
|
|
4812
|
+
}
|
|
4813
|
+
}
|
|
4814
|
+
},
|
|
4815
|
+
term_and_condition: {
|
|
4816
|
+
confirm_remove: "Are you sure you want to remove the term and condition?"
|
|
4817
|
+
},
|
|
4818
|
+
record: {
|
|
4819
|
+
referer_info: "Referer info",
|
|
4820
|
+
referee_info: "Referee info",
|
|
4821
|
+
referee_criteria: "Referee criteria",
|
|
4822
|
+
status: "Status"
|
|
4823
|
+
}
|
|
4824
|
+
},
|
|
4825
|
+
reward: {
|
|
4826
|
+
title: "Reward",
|
|
4827
|
+
description: "Reward your customers for successful referrals",
|
|
4828
|
+
table: {
|
|
4829
|
+
title: "Reward title",
|
|
4830
|
+
type: "Reward type",
|
|
4831
|
+
description: "Description"
|
|
4832
|
+
}
|
|
4833
|
+
},
|
|
4834
|
+
sendCollectionSheet: {
|
|
4835
|
+
title: "Send {type}",
|
|
4836
|
+
select_members: "Select member",
|
|
4837
|
+
amount: "Amount",
|
|
4838
|
+
reference: "Reference",
|
|
4839
|
+
confirmation_message: "Are you sure you want to send {amount} {type} to {memberName}? This action cannot be reversed.",
|
|
4840
|
+
stamp: "Stamp",
|
|
4841
|
+
game_token: "Game Token"
|
|
4842
|
+
},
|
|
4843
|
+
queue: {
|
|
4844
|
+
title: "Queue"
|
|
4845
|
+
}
|
|
4846
|
+
}, He = {
|
|
4847
|
+
invalid_type: "予想{{expected}}、受信{{received}}",
|
|
4848
|
+
errors: {
|
|
4849
|
+
invalid_type: "予想{{expected}}、受信{{received}}",
|
|
4850
|
+
invalid_type_received_undefined: "必須",
|
|
4851
|
+
invalid_type_received_null: "必須",
|
|
4852
|
+
invalid_literal: "無効なリテラル値、期待値 {{expected}}",
|
|
4853
|
+
unrecognized_keys: "オブジェクト内の認識されないキー: {{- keys}}",
|
|
4854
|
+
invalid_union: "無効な入力",
|
|
4855
|
+
invalid_union_discriminator: "識別子の値が無効です。{{- options}} が必要です。",
|
|
4856
|
+
invalid_enum_value: "無効な列挙値です。{{- options}} が必要ですが、'{{received}}' を受け取りました。",
|
|
4857
|
+
invalid_arguments: "関数の引数が無効です",
|
|
4858
|
+
invalid_return_type: "関数の戻り値の型が無効です",
|
|
4859
|
+
invalid_date: "無効な日付",
|
|
4860
|
+
custom: "無効な入力",
|
|
4861
|
+
invalid_intersection_types: "交差点の結果を結合できませんでした",
|
|
4862
|
+
not_multiple_of: "数値は {{multipleOf}} の倍数でなければなりません",
|
|
4863
|
+
not_finite: "数は有限でなければならない",
|
|
4864
|
+
invalid_string: {
|
|
4865
|
+
email: "無効な {{validation}}",
|
|
4866
|
+
url: "無効な {{validation}}",
|
|
4867
|
+
uuid: "無効な {{validation}}",
|
|
4868
|
+
cuid: "無効な {{validation}}",
|
|
4869
|
+
regex: "無効",
|
|
4870
|
+
datetime: "無効な {{validation}}",
|
|
4871
|
+
startsWith: "無効な入力: 「{{startsWith}}」で始まる必要があります",
|
|
4872
|
+
endsWith: "無効な入力: 「{{endsWith}}」で終わる必要があります"
|
|
4873
|
+
},
|
|
4874
|
+
too_small: {
|
|
4875
|
+
array: {
|
|
4876
|
+
exact: "配列には、正確に {{minimum}} 個の要素が含まれている必要があります",
|
|
4877
|
+
inclusive: "配列には少なくとも {{minimum}} 個の要素が含まれている必要があります",
|
|
4878
|
+
not_inclusive: "配列には{{minimum}}個以上の要素が含まれている必要があります"
|
|
4879
|
+
},
|
|
4880
|
+
string: {
|
|
4881
|
+
exact: "文字列には{{minimum}}文字を含める必要があります",
|
|
4882
|
+
inclusive: "文字列には少なくとも {{minimum}} 文字が含まれている必要があります",
|
|
4883
|
+
not_inclusive: "文字列には{{minimum}}文字以上を含める必要があります"
|
|
4884
|
+
},
|
|
4885
|
+
number: {
|
|
4886
|
+
exact: "数値はちょうど {{minum}} である必要があります",
|
|
4887
|
+
inclusive: "数値は{{minimum}}以上である必要があります",
|
|
4888
|
+
not_inclusive: "数値は{{minimum}}より大きくなければなりません"
|
|
4889
|
+
},
|
|
4890
|
+
set: {
|
|
4891
|
+
exact: "無効な入力",
|
|
4892
|
+
inclusive: "無効な入力",
|
|
4893
|
+
not_inclusive: "無効な入力"
|
|
4894
|
+
},
|
|
4895
|
+
date: {
|
|
4896
|
+
exact: "日付は正確に {{- minimum, datetime}} である必要があります",
|
|
4897
|
+
inclusive: "日付は {{- minimum, datetime}} 以上である必要があります",
|
|
4898
|
+
not_inclusive: "日付は {{- minimum, datetime}} より大きくなければなりません"
|
|
4899
|
+
}
|
|
4900
|
+
},
|
|
4901
|
+
too_big: {
|
|
4902
|
+
array: {
|
|
4903
|
+
exact: "配列にはちょうど {{maximum}} 個の要素を含める必要があります",
|
|
4904
|
+
inclusive: "配列には最大 {{maximum}} 個の要素を含める必要があります",
|
|
4905
|
+
not_inclusive: "配列には {{maximum}} 個未満の要素を含める必要があります"
|
|
4906
|
+
},
|
|
4907
|
+
string: {
|
|
4908
|
+
exact: "文字列には最大 {{maximum}} 文字を含める必要があります",
|
|
4909
|
+
inclusive: "文字列には最大 {{maximum}} 文字を含める必要があります",
|
|
4910
|
+
not_inclusive: "文字列は{{最大}}文字以下である必要があります"
|
|
4911
|
+
},
|
|
4912
|
+
number: {
|
|
4913
|
+
exact: "数値はちょうど {{maximum}} である必要があります",
|
|
4914
|
+
inclusive: "数値は {{maximum}} 以下である必要があります",
|
|
4915
|
+
not_inclusive: "数値は{{maximum}}未満である必要があります"
|
|
4916
|
+
},
|
|
4917
|
+
set: {
|
|
4918
|
+
exact: "無効な入力",
|
|
4919
|
+
inclusive: "無効な入力",
|
|
4920
|
+
not_inclusive: "無効な入力"
|
|
4921
|
+
},
|
|
4922
|
+
date: {
|
|
4923
|
+
exact: "日付は正確に {{- maximum, datetime}} である必要があります",
|
|
4924
|
+
inclusive: "日付は {{- maximum, datetime}} 以下である必要があります",
|
|
4925
|
+
not_inclusive: "日付は {{- maximum, datetime}} より小さくなければなりません"
|
|
4926
|
+
}
|
|
4927
|
+
}
|
|
4928
|
+
},
|
|
4929
|
+
validations: {
|
|
4930
|
+
email: "メール",
|
|
4931
|
+
url: "URL",
|
|
4932
|
+
uuid: "uuid",
|
|
4933
|
+
cuid: "cuid",
|
|
4934
|
+
regex: "正規表現",
|
|
4935
|
+
datetime: "日時"
|
|
4936
|
+
},
|
|
4937
|
+
types: {
|
|
4938
|
+
function: "関数",
|
|
4939
|
+
number: "番号",
|
|
4940
|
+
string: "弦",
|
|
4941
|
+
nan: "ナン",
|
|
4942
|
+
integer: "整数",
|
|
4943
|
+
float: "フロート",
|
|
4944
|
+
boolean: "ブール値",
|
|
4945
|
+
date: "日付",
|
|
4946
|
+
bigint: "ビッグイント",
|
|
4947
|
+
undefined: "未定義",
|
|
4948
|
+
symbol: "シンボル",
|
|
4949
|
+
null: "ヌル",
|
|
4950
|
+
array: "配列",
|
|
4951
|
+
object: "物体",
|
|
4952
|
+
unknown: "未知",
|
|
4953
|
+
promise: "約束",
|
|
4954
|
+
void: "空所",
|
|
4955
|
+
never: "一度もない",
|
|
4956
|
+
map: "地図",
|
|
4957
|
+
set: "セット"
|
|
4958
|
+
}
|
|
4959
|
+
}, Qe = {
|
|
4960
|
+
timeframe: {
|
|
4961
|
+
end_before_start: "終了日は開始日以降か同じである必要があります"
|
|
4962
|
+
},
|
|
4963
|
+
campaign: {
|
|
4964
|
+
rule_required: "トリガータイプが '{type}' の場合、ルールが必要です",
|
|
4965
|
+
earning_amount_exceed: "獲得額は {max} (ミッションの最大収集額) 未満である必要があります",
|
|
4966
|
+
credit_validity_required: "クレジット キャンペーンには有効期限オプションが必要です (無料クレジットである必要があります)",
|
|
4967
|
+
mission_first_receive: "ミッションキャンペーンは最初に受信する必要があります",
|
|
4968
|
+
schedule_period_required: "スケジュールトリガーにはアクティブ期間を設定する必要があります",
|
|
4969
|
+
active_period_invalid: "アクティブ期間ルールが無効です",
|
|
4970
|
+
fixed_earning_required: "請求が完了していないキャンペーンには固定収益オプションが必要です",
|
|
4971
|
+
reward_threshold_range: "報酬のしきい値はミッション終了時までになければなりません",
|
|
4972
|
+
reward_threshold_unique: "報酬のしきい値は一意である必要があります",
|
|
4973
|
+
effect_required: "効果が必要です"
|
|
4974
|
+
}
|
|
4975
|
+
}, Je = {
|
|
4976
|
+
connect: Ye,
|
|
4977
|
+
connectZod: He,
|
|
4978
|
+
connectZodCustom: Qe
|
|
4979
|
+
};
|
|
4980
|
+
var x;
|
|
4981
|
+
(function(i) {
|
|
4982
|
+
i.assertEqual = (n) => n;
|
|
4983
|
+
function e(n) {
|
|
4984
|
+
}
|
|
4985
|
+
i.assertIs = e;
|
|
4986
|
+
function t(n) {
|
|
4987
|
+
throw new Error();
|
|
4988
|
+
}
|
|
4989
|
+
i.assertNever = t, i.arrayToEnum = (n) => {
|
|
4990
|
+
const r = {};
|
|
4991
|
+
for (const s of n)
|
|
4992
|
+
r[s] = s;
|
|
4993
|
+
return r;
|
|
4994
|
+
}, i.getValidEnumValues = (n) => {
|
|
4995
|
+
const r = i.objectKeys(n).filter((o) => typeof n[n[o]] != "number"), s = {};
|
|
4996
|
+
for (const o of r)
|
|
4997
|
+
s[o] = n[o];
|
|
4998
|
+
return i.objectValues(s);
|
|
4999
|
+
}, i.objectValues = (n) => i.objectKeys(n).map(function(r) {
|
|
5000
|
+
return n[r];
|
|
5001
|
+
}), i.objectKeys = typeof Object.keys == "function" ? (n) => Object.keys(n) : (n) => {
|
|
5002
|
+
const r = [];
|
|
5003
|
+
for (const s in n)
|
|
5004
|
+
Object.prototype.hasOwnProperty.call(n, s) && r.push(s);
|
|
5005
|
+
return r;
|
|
5006
|
+
}, i.find = (n, r) => {
|
|
5007
|
+
for (const s of n)
|
|
5008
|
+
if (r(s))
|
|
5009
|
+
return s;
|
|
5010
|
+
}, i.isInteger = typeof Number.isInteger == "function" ? (n) => Number.isInteger(n) : (n) => typeof n == "number" && isFinite(n) && Math.floor(n) === n;
|
|
5011
|
+
function a(n, r = " | ") {
|
|
5012
|
+
return n.map((s) => typeof s == "string" ? `'${s}'` : s).join(r);
|
|
5013
|
+
}
|
|
5014
|
+
i.joinValues = a, i.jsonStringifyReplacer = (n, r) => typeof r == "bigint" ? r.toString() : r;
|
|
5015
|
+
})(x || (x = {}));
|
|
5016
|
+
var be;
|
|
5017
|
+
(function(i) {
|
|
5018
|
+
i.mergeShapes = (e, t) => ({
|
|
5019
|
+
...e,
|
|
5020
|
+
...t
|
|
5021
|
+
// second overwrites first
|
|
5022
|
+
});
|
|
5023
|
+
})(be || (be = {}));
|
|
5024
|
+
const l = x.arrayToEnum([
|
|
5025
|
+
"string",
|
|
5026
|
+
"nan",
|
|
5027
|
+
"number",
|
|
5028
|
+
"integer",
|
|
5029
|
+
"float",
|
|
5030
|
+
"boolean",
|
|
5031
|
+
"date",
|
|
5032
|
+
"bigint",
|
|
5033
|
+
"symbol",
|
|
5034
|
+
"function",
|
|
5035
|
+
"undefined",
|
|
5036
|
+
"null",
|
|
5037
|
+
"array",
|
|
5038
|
+
"object",
|
|
5039
|
+
"unknown",
|
|
5040
|
+
"promise",
|
|
5041
|
+
"void",
|
|
5042
|
+
"never",
|
|
5043
|
+
"map",
|
|
5044
|
+
"set"
|
|
5045
|
+
]), D = (i) => {
|
|
5046
|
+
switch (typeof i) {
|
|
5047
|
+
case "undefined":
|
|
5048
|
+
return l.undefined;
|
|
5049
|
+
case "string":
|
|
5050
|
+
return l.string;
|
|
5051
|
+
case "number":
|
|
5052
|
+
return isNaN(i) ? l.nan : l.number;
|
|
5053
|
+
case "boolean":
|
|
5054
|
+
return l.boolean;
|
|
5055
|
+
case "function":
|
|
5056
|
+
return l.function;
|
|
5057
|
+
case "bigint":
|
|
5058
|
+
return l.bigint;
|
|
5059
|
+
case "symbol":
|
|
5060
|
+
return l.symbol;
|
|
5061
|
+
case "object":
|
|
5062
|
+
return Array.isArray(i) ? l.array : i === null ? l.null : i.then && typeof i.then == "function" && i.catch && typeof i.catch == "function" ? l.promise : typeof Map < "u" && i instanceof Map ? l.map : typeof Set < "u" && i instanceof Set ? l.set : typeof Date < "u" && i instanceof Date ? l.date : l.object;
|
|
5063
|
+
default:
|
|
5064
|
+
return l.unknown;
|
|
5065
|
+
}
|
|
5066
|
+
}, c = x.arrayToEnum([
|
|
5067
|
+
"invalid_type",
|
|
5068
|
+
"invalid_literal",
|
|
5069
|
+
"custom",
|
|
5070
|
+
"invalid_union",
|
|
5071
|
+
"invalid_union_discriminator",
|
|
5072
|
+
"invalid_enum_value",
|
|
5073
|
+
"unrecognized_keys",
|
|
5074
|
+
"invalid_arguments",
|
|
5075
|
+
"invalid_return_type",
|
|
5076
|
+
"invalid_date",
|
|
5077
|
+
"invalid_string",
|
|
5078
|
+
"too_small",
|
|
5079
|
+
"too_big",
|
|
5080
|
+
"invalid_intersection_types",
|
|
5081
|
+
"not_multiple_of",
|
|
5082
|
+
"not_finite"
|
|
5083
|
+
]), Xe = (i) => JSON.stringify(i, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
5084
|
+
class E extends Error {
|
|
5085
|
+
constructor(e) {
|
|
5086
|
+
super(), this.issues = [], this.addIssue = (a) => {
|
|
5087
|
+
this.issues = [...this.issues, a];
|
|
5088
|
+
}, this.addIssues = (a = []) => {
|
|
5089
|
+
this.issues = [...this.issues, ...a];
|
|
5090
|
+
};
|
|
5091
|
+
const t = new.target.prototype;
|
|
5092
|
+
Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
|
|
5093
|
+
}
|
|
5094
|
+
get errors() {
|
|
5095
|
+
return this.issues;
|
|
5096
|
+
}
|
|
5097
|
+
format(e) {
|
|
5098
|
+
const t = e || function(r) {
|
|
5099
|
+
return r.message;
|
|
5100
|
+
}, a = { _errors: [] }, n = (r) => {
|
|
5101
|
+
for (const s of r.issues)
|
|
5102
|
+
if (s.code === "invalid_union")
|
|
5103
|
+
s.unionErrors.map(n);
|
|
5104
|
+
else if (s.code === "invalid_return_type")
|
|
5105
|
+
n(s.returnTypeError);
|
|
5106
|
+
else if (s.code === "invalid_arguments")
|
|
5107
|
+
n(s.argumentsError);
|
|
5108
|
+
else if (s.path.length === 0)
|
|
5109
|
+
a._errors.push(t(s));
|
|
5110
|
+
else {
|
|
5111
|
+
let o = a, m = 0;
|
|
5112
|
+
for (; m < s.path.length; ) {
|
|
5113
|
+
const d = s.path[m];
|
|
5114
|
+
m === s.path.length - 1 ? (o[d] = o[d] || { _errors: [] }, o[d]._errors.push(t(s))) : o[d] = o[d] || { _errors: [] }, o = o[d], m++;
|
|
5115
|
+
}
|
|
5116
|
+
}
|
|
5117
|
+
};
|
|
5118
|
+
return n(this), a;
|
|
5119
|
+
}
|
|
5120
|
+
toString() {
|
|
5121
|
+
return this.message;
|
|
5122
|
+
}
|
|
5123
|
+
get message() {
|
|
5124
|
+
return JSON.stringify(this.issues, x.jsonStringifyReplacer, 2);
|
|
5125
|
+
}
|
|
5126
|
+
get isEmpty() {
|
|
5127
|
+
return this.issues.length === 0;
|
|
5128
|
+
}
|
|
5129
|
+
flatten(e = (t) => t.message) {
|
|
5130
|
+
const t = {}, a = [];
|
|
5131
|
+
for (const n of this.issues)
|
|
5132
|
+
n.path.length > 0 ? (t[n.path[0]] = t[n.path[0]] || [], t[n.path[0]].push(e(n))) : a.push(e(n));
|
|
5133
|
+
return { formErrors: a, fieldErrors: t };
|
|
5134
|
+
}
|
|
5135
|
+
get formErrors() {
|
|
5136
|
+
return this.flatten();
|
|
5137
|
+
}
|
|
5138
|
+
}
|
|
5139
|
+
E.create = (i) => new E(i);
|
|
5140
|
+
const Y = (i, e) => {
|
|
5141
|
+
let t;
|
|
5142
|
+
switch (i.code) {
|
|
5143
|
+
case c.invalid_type:
|
|
5144
|
+
i.received === l.undefined ? t = "Required" : t = `Expected ${i.expected}, received ${i.received}`;
|
|
5145
|
+
break;
|
|
5146
|
+
case c.invalid_literal:
|
|
5147
|
+
t = `Invalid literal value, expected ${JSON.stringify(i.expected, x.jsonStringifyReplacer)}`;
|
|
5148
|
+
break;
|
|
5149
|
+
case c.unrecognized_keys:
|
|
5150
|
+
t = `Unrecognized key(s) in object: ${x.joinValues(i.keys, ", ")}`;
|
|
5151
|
+
break;
|
|
5152
|
+
case c.invalid_union:
|
|
5153
|
+
t = "Invalid input";
|
|
5154
|
+
break;
|
|
5155
|
+
case c.invalid_union_discriminator:
|
|
5156
|
+
t = `Invalid discriminator value. Expected ${x.joinValues(i.options)}`;
|
|
5157
|
+
break;
|
|
5158
|
+
case c.invalid_enum_value:
|
|
5159
|
+
t = `Invalid enum value. Expected ${x.joinValues(i.options)}, received '${i.received}'`;
|
|
5160
|
+
break;
|
|
5161
|
+
case c.invalid_arguments:
|
|
5162
|
+
t = "Invalid function arguments";
|
|
5163
|
+
break;
|
|
5164
|
+
case c.invalid_return_type:
|
|
5165
|
+
t = "Invalid function return type";
|
|
5166
|
+
break;
|
|
5167
|
+
case c.invalid_date:
|
|
5168
|
+
t = "Invalid date";
|
|
5169
|
+
break;
|
|
5170
|
+
case c.invalid_string:
|
|
5171
|
+
typeof i.validation == "object" ? "includes" in i.validation ? (t = `Invalid input: must include "${i.validation.includes}"`, typeof i.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${i.validation.position}`)) : "startsWith" in i.validation ? t = `Invalid input: must start with "${i.validation.startsWith}"` : "endsWith" in i.validation ? t = `Invalid input: must end with "${i.validation.endsWith}"` : x.assertNever(i.validation) : i.validation !== "regex" ? t = `Invalid ${i.validation}` : t = "Invalid";
|
|
5172
|
+
break;
|
|
5173
|
+
case c.too_small:
|
|
5174
|
+
i.type === "array" ? t = `Array must contain ${i.exact ? "exactly" : i.inclusive ? "at least" : "more than"} ${i.minimum} element(s)` : i.type === "string" ? t = `String must contain ${i.exact ? "exactly" : i.inclusive ? "at least" : "over"} ${i.minimum} character(s)` : i.type === "number" ? t = `Number must be ${i.exact ? "exactly equal to " : i.inclusive ? "greater than or equal to " : "greater than "}${i.minimum}` : i.type === "date" ? t = `Date must be ${i.exact ? "exactly equal to " : i.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(i.minimum))}` : t = "Invalid input";
|
|
5175
|
+
break;
|
|
5176
|
+
case c.too_big:
|
|
5177
|
+
i.type === "array" ? t = `Array must contain ${i.exact ? "exactly" : i.inclusive ? "at most" : "less than"} ${i.maximum} element(s)` : i.type === "string" ? t = `String must contain ${i.exact ? "exactly" : i.inclusive ? "at most" : "under"} ${i.maximum} character(s)` : i.type === "number" ? t = `Number must be ${i.exact ? "exactly" : i.inclusive ? "less than or equal to" : "less than"} ${i.maximum}` : i.type === "bigint" ? t = `BigInt must be ${i.exact ? "exactly" : i.inclusive ? "less than or equal to" : "less than"} ${i.maximum}` : i.type === "date" ? t = `Date must be ${i.exact ? "exactly" : i.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(i.maximum))}` : t = "Invalid input";
|
|
5178
|
+
break;
|
|
5179
|
+
case c.custom:
|
|
5180
|
+
t = "Invalid input";
|
|
5181
|
+
break;
|
|
5182
|
+
case c.invalid_intersection_types:
|
|
5183
|
+
t = "Intersection results could not be merged";
|
|
5184
|
+
break;
|
|
5185
|
+
case c.not_multiple_of:
|
|
5186
|
+
t = `Number must be a multiple of ${i.multipleOf}`;
|
|
5187
|
+
break;
|
|
5188
|
+
case c.not_finite:
|
|
5189
|
+
t = "Number must be finite";
|
|
5190
|
+
break;
|
|
5191
|
+
default:
|
|
5192
|
+
t = e.defaultError, x.assertNever(i);
|
|
5193
|
+
}
|
|
5194
|
+
return { message: t };
|
|
5195
|
+
};
|
|
5196
|
+
let Se = Y;
|
|
5197
|
+
function Ke(i) {
|
|
5198
|
+
Se = i;
|
|
5199
|
+
}
|
|
5200
|
+
function ce() {
|
|
5201
|
+
return Se;
|
|
5202
|
+
}
|
|
5203
|
+
const de = (i) => {
|
|
5204
|
+
const { data: e, path: t, errorMaps: a, issueData: n } = i, r = [...t, ...n.path || []], s = {
|
|
5205
|
+
...n,
|
|
5206
|
+
path: r
|
|
5207
|
+
};
|
|
5208
|
+
let o = "";
|
|
5209
|
+
const m = a.filter((d) => !!d).slice().reverse();
|
|
5210
|
+
for (const d of m)
|
|
5211
|
+
o = d(s, { data: e, defaultError: o }).message;
|
|
5212
|
+
return {
|
|
5213
|
+
...n,
|
|
5214
|
+
path: r,
|
|
5215
|
+
message: n.message || o
|
|
5216
|
+
};
|
|
5217
|
+
}, et = [];
|
|
5218
|
+
function u(i, e) {
|
|
5219
|
+
const t = de({
|
|
5220
|
+
issueData: e,
|
|
5221
|
+
data: i.data,
|
|
5222
|
+
path: i.path,
|
|
5223
|
+
errorMaps: [
|
|
5224
|
+
i.common.contextualErrorMap,
|
|
5225
|
+
i.schemaErrorMap,
|
|
5226
|
+
ce(),
|
|
5227
|
+
Y
|
|
5228
|
+
// then global default map
|
|
5229
|
+
].filter((a) => !!a)
|
|
5230
|
+
});
|
|
5231
|
+
i.common.issues.push(t);
|
|
5232
|
+
}
|
|
5233
|
+
class R {
|
|
5234
|
+
constructor() {
|
|
5235
|
+
this.value = "valid";
|
|
5236
|
+
}
|
|
5237
|
+
dirty() {
|
|
5238
|
+
this.value === "valid" && (this.value = "dirty");
|
|
5239
|
+
}
|
|
5240
|
+
abort() {
|
|
5241
|
+
this.value !== "aborted" && (this.value = "aborted");
|
|
5242
|
+
}
|
|
5243
|
+
static mergeArray(e, t) {
|
|
5244
|
+
const a = [];
|
|
5245
|
+
for (const n of t) {
|
|
5246
|
+
if (n.status === "aborted")
|
|
5247
|
+
return _;
|
|
5248
|
+
n.status === "dirty" && e.dirty(), a.push(n.value);
|
|
5249
|
+
}
|
|
5250
|
+
return { status: e.value, value: a };
|
|
5251
|
+
}
|
|
5252
|
+
static async mergeObjectAsync(e, t) {
|
|
5253
|
+
const a = [];
|
|
5254
|
+
for (const n of t)
|
|
5255
|
+
a.push({
|
|
5256
|
+
key: await n.key,
|
|
5257
|
+
value: await n.value
|
|
5258
|
+
});
|
|
5259
|
+
return R.mergeObjectSync(e, a);
|
|
5260
|
+
}
|
|
5261
|
+
static mergeObjectSync(e, t) {
|
|
5262
|
+
const a = {};
|
|
5263
|
+
for (const n of t) {
|
|
5264
|
+
const { key: r, value: s } = n;
|
|
5265
|
+
if (r.status === "aborted" || s.status === "aborted")
|
|
5266
|
+
return _;
|
|
5267
|
+
r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" || n.alwaysSet) && (a[r.value] = s.value);
|
|
5268
|
+
}
|
|
5269
|
+
return { status: e.value, value: a };
|
|
5270
|
+
}
|
|
5271
|
+
}
|
|
5272
|
+
const _ = Object.freeze({
|
|
5273
|
+
status: "aborted"
|
|
5274
|
+
}), Ae = (i) => ({ status: "dirty", value: i }), S = (i) => ({ status: "valid", value: i }), xe = (i) => i.status === "aborted", we = (i) => i.status === "dirty", H = (i) => i.status === "valid", le = (i) => typeof Promise < "u" && i instanceof Promise;
|
|
5275
|
+
var p;
|
|
5276
|
+
(function(i) {
|
|
5277
|
+
i.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, i.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
5278
|
+
})(p || (p = {}));
|
|
5279
|
+
class P {
|
|
5280
|
+
constructor(e, t, a, n) {
|
|
5281
|
+
this._cachedPath = [], this.parent = e, this.data = t, this._path = a, this._key = n;
|
|
5282
|
+
}
|
|
5283
|
+
get path() {
|
|
5284
|
+
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
5285
|
+
}
|
|
5286
|
+
}
|
|
5287
|
+
const Te = (i, e) => {
|
|
5288
|
+
if (H(e))
|
|
5289
|
+
return { success: !0, data: e.value };
|
|
5290
|
+
if (!i.common.issues.length)
|
|
5291
|
+
throw new Error("Validation failed but no issues detected.");
|
|
5292
|
+
return {
|
|
5293
|
+
success: !1,
|
|
5294
|
+
get error() {
|
|
5295
|
+
if (this._error)
|
|
5296
|
+
return this._error;
|
|
5297
|
+
const t = new E(i.common.issues);
|
|
5298
|
+
return this._error = t, this._error;
|
|
5299
|
+
}
|
|
5300
|
+
};
|
|
5301
|
+
};
|
|
5302
|
+
function h(i) {
|
|
5303
|
+
if (!i)
|
|
5304
|
+
return {};
|
|
5305
|
+
const { errorMap: e, invalid_type_error: t, required_error: a, description: n } = i;
|
|
5306
|
+
if (e && (t || a))
|
|
5307
|
+
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
|
|
5308
|
+
return e ? { errorMap: e, description: n } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: a ?? o.defaultError } : { message: t ?? o.defaultError }, description: n };
|
|
5309
|
+
}
|
|
5310
|
+
class v {
|
|
5311
|
+
constructor(e) {
|
|
5312
|
+
this.spa = this.safeParseAsync, this._def = e, this.parse = this.parse.bind(this), this.safeParse = this.safeParse.bind(this), this.parseAsync = this.parseAsync.bind(this), this.safeParseAsync = this.safeParseAsync.bind(this), this.spa = this.spa.bind(this), this.refine = this.refine.bind(this), this.refinement = this.refinement.bind(this), this.superRefine = this.superRefine.bind(this), this.optional = this.optional.bind(this), this.nullable = this.nullable.bind(this), this.nullish = this.nullish.bind(this), this.array = this.array.bind(this), this.promise = this.promise.bind(this), this.or = this.or.bind(this), this.and = this.and.bind(this), this.transform = this.transform.bind(this), this.brand = this.brand.bind(this), this.default = this.default.bind(this), this.catch = this.catch.bind(this), this.describe = this.describe.bind(this), this.pipe = this.pipe.bind(this), this.readonly = this.readonly.bind(this), this.isNullable = this.isNullable.bind(this), this.isOptional = this.isOptional.bind(this);
|
|
5313
|
+
}
|
|
5314
|
+
get description() {
|
|
5315
|
+
return this._def.description;
|
|
5316
|
+
}
|
|
5317
|
+
_getType(e) {
|
|
5318
|
+
return D(e.data);
|
|
5319
|
+
}
|
|
5320
|
+
_getOrReturnCtx(e, t) {
|
|
5321
|
+
return t || {
|
|
5322
|
+
common: e.parent.common,
|
|
5323
|
+
data: e.data,
|
|
5324
|
+
parsedType: D(e.data),
|
|
5325
|
+
schemaErrorMap: this._def.errorMap,
|
|
5326
|
+
path: e.path,
|
|
5327
|
+
parent: e.parent
|
|
5328
|
+
};
|
|
5329
|
+
}
|
|
4244
5330
|
_processInputParams(e) {
|
|
4245
5331
|
return {
|
|
4246
|
-
status: new
|
|
5332
|
+
status: new R(),
|
|
4247
5333
|
ctx: {
|
|
4248
5334
|
common: e.parent.common,
|
|
4249
5335
|
data: e.data,
|
|
4250
|
-
parsedType:
|
|
5336
|
+
parsedType: D(e.data),
|
|
4251
5337
|
schemaErrorMap: this._def.errorMap,
|
|
4252
5338
|
path: e.path,
|
|
4253
5339
|
parent: e.parent
|
|
@@ -4265,35 +5351,35 @@ class v {
|
|
|
4265
5351
|
return Promise.resolve(t);
|
|
4266
5352
|
}
|
|
4267
5353
|
parse(e, t) {
|
|
4268
|
-
const
|
|
4269
|
-
if (
|
|
4270
|
-
return
|
|
4271
|
-
throw
|
|
5354
|
+
const a = this.safeParse(e, t);
|
|
5355
|
+
if (a.success)
|
|
5356
|
+
return a.data;
|
|
5357
|
+
throw a.error;
|
|
4272
5358
|
}
|
|
4273
5359
|
safeParse(e, t) {
|
|
4274
|
-
var
|
|
4275
|
-
const
|
|
5360
|
+
var a;
|
|
5361
|
+
const n = {
|
|
4276
5362
|
common: {
|
|
4277
5363
|
issues: [],
|
|
4278
|
-
async: (
|
|
5364
|
+
async: (a = t == null ? void 0 : t.async) !== null && a !== void 0 ? a : !1,
|
|
4279
5365
|
contextualErrorMap: t == null ? void 0 : t.errorMap
|
|
4280
5366
|
},
|
|
4281
5367
|
path: (t == null ? void 0 : t.path) || [],
|
|
4282
5368
|
schemaErrorMap: this._def.errorMap,
|
|
4283
5369
|
parent: null,
|
|
4284
5370
|
data: e,
|
|
4285
|
-
parsedType:
|
|
4286
|
-
}, r = this._parseSync({ data: e, path:
|
|
4287
|
-
return
|
|
5371
|
+
parsedType: D(e)
|
|
5372
|
+
}, r = this._parseSync({ data: e, path: n.path, parent: n });
|
|
5373
|
+
return Te(n, r);
|
|
4288
5374
|
}
|
|
4289
5375
|
async parseAsync(e, t) {
|
|
4290
|
-
const
|
|
4291
|
-
if (
|
|
4292
|
-
return
|
|
4293
|
-
throw
|
|
5376
|
+
const a = await this.safeParseAsync(e, t);
|
|
5377
|
+
if (a.success)
|
|
5378
|
+
return a.data;
|
|
5379
|
+
throw a.error;
|
|
4294
5380
|
}
|
|
4295
5381
|
async safeParseAsync(e, t) {
|
|
4296
|
-
const
|
|
5382
|
+
const a = {
|
|
4297
5383
|
common: {
|
|
4298
5384
|
issues: [],
|
|
4299
5385
|
contextualErrorMap: t == null ? void 0 : t.errorMap,
|
|
@@ -4303,25 +5389,25 @@ class v {
|
|
|
4303
5389
|
schemaErrorMap: this._def.errorMap,
|
|
4304
5390
|
parent: null,
|
|
4305
5391
|
data: e,
|
|
4306
|
-
parsedType:
|
|
4307
|
-
},
|
|
4308
|
-
return
|
|
5392
|
+
parsedType: D(e)
|
|
5393
|
+
}, n = this._parse({ data: e, path: a.path, parent: a }), r = await (le(n) ? n : Promise.resolve(n));
|
|
5394
|
+
return Te(a, r);
|
|
4309
5395
|
}
|
|
4310
5396
|
refine(e, t) {
|
|
4311
|
-
const
|
|
4312
|
-
return this._refinement((
|
|
4313
|
-
const s = e(
|
|
5397
|
+
const a = (n) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(n) : t;
|
|
5398
|
+
return this._refinement((n, r) => {
|
|
5399
|
+
const s = e(n), o = () => r.addIssue({
|
|
4314
5400
|
code: c.custom,
|
|
4315
|
-
...n
|
|
5401
|
+
...a(n)
|
|
4316
5402
|
});
|
|
4317
5403
|
return typeof Promise < "u" && s instanceof Promise ? s.then((m) => m ? !0 : (o(), !1)) : s ? !0 : (o(), !1);
|
|
4318
5404
|
});
|
|
4319
5405
|
}
|
|
4320
5406
|
refinement(e, t) {
|
|
4321
|
-
return this._refinement((
|
|
5407
|
+
return this._refinement((a, n) => e(a) ? !0 : (n.addIssue(typeof t == "function" ? t(a, n) : t), !1));
|
|
4322
5408
|
}
|
|
4323
5409
|
_refinement(e) {
|
|
4324
|
-
return new
|
|
5410
|
+
return new I({
|
|
4325
5411
|
schema: this,
|
|
4326
5412
|
typeName: f.ZodEffects,
|
|
4327
5413
|
effect: { type: "refinement", refinement: e }
|
|
@@ -4331,7 +5417,7 @@ class v {
|
|
|
4331
5417
|
return this._refinement(e);
|
|
4332
5418
|
}
|
|
4333
5419
|
optional() {
|
|
4334
|
-
return
|
|
5420
|
+
return N.create(this, this._def);
|
|
4335
5421
|
}
|
|
4336
5422
|
nullable() {
|
|
4337
5423
|
return q.create(this, this._def);
|
|
@@ -4340,10 +5426,10 @@ class v {
|
|
|
4340
5426
|
return this.nullable().optional();
|
|
4341
5427
|
}
|
|
4342
5428
|
array() {
|
|
4343
|
-
return
|
|
5429
|
+
return M.create(this, this._def);
|
|
4344
5430
|
}
|
|
4345
5431
|
promise() {
|
|
4346
|
-
return
|
|
5432
|
+
return F.create(this, this._def);
|
|
4347
5433
|
}
|
|
4348
5434
|
or(e) {
|
|
4349
5435
|
return K.create([this, e], this._def);
|
|
@@ -4352,8 +5438,8 @@ class v {
|
|
|
4352
5438
|
return ee.create(this, e, this._def);
|
|
4353
5439
|
}
|
|
4354
5440
|
transform(e) {
|
|
4355
|
-
return new
|
|
4356
|
-
...
|
|
5441
|
+
return new I({
|
|
5442
|
+
...h(this._def),
|
|
4357
5443
|
schema: this,
|
|
4358
5444
|
typeName: f.ZodEffects,
|
|
4359
5445
|
effect: { type: "transform", transform: e }
|
|
@@ -4362,7 +5448,7 @@ class v {
|
|
|
4362
5448
|
default(e) {
|
|
4363
5449
|
const t = typeof e == "function" ? e : () => e;
|
|
4364
5450
|
return new re({
|
|
4365
|
-
...
|
|
5451
|
+
...h(this._def),
|
|
4366
5452
|
innerType: this,
|
|
4367
5453
|
defaultValue: t,
|
|
4368
5454
|
typeName: f.ZodDefault
|
|
@@ -4372,13 +5458,13 @@ class v {
|
|
|
4372
5458
|
return new Ee({
|
|
4373
5459
|
typeName: f.ZodBranded,
|
|
4374
5460
|
type: this,
|
|
4375
|
-
...
|
|
5461
|
+
...h(this._def)
|
|
4376
5462
|
});
|
|
4377
5463
|
}
|
|
4378
5464
|
catch(e) {
|
|
4379
5465
|
const t = typeof e == "function" ? e : () => e;
|
|
4380
5466
|
return new fe({
|
|
4381
|
-
...
|
|
5467
|
+
...h(this._def),
|
|
4382
5468
|
innerType: this,
|
|
4383
5469
|
catchValue: t,
|
|
4384
5470
|
typeName: f.ZodCatch
|
|
@@ -4395,7 +5481,7 @@ class v {
|
|
|
4395
5481
|
return se.create(this, e);
|
|
4396
5482
|
}
|
|
4397
5483
|
readonly() {
|
|
4398
|
-
return
|
|
5484
|
+
return _e.create(this);
|
|
4399
5485
|
}
|
|
4400
5486
|
isOptional() {
|
|
4401
5487
|
return this.safeParse(void 0).success;
|
|
@@ -4404,13 +5490,13 @@ class v {
|
|
|
4404
5490
|
return this.safeParse(null).success;
|
|
4405
5491
|
}
|
|
4406
5492
|
}
|
|
4407
|
-
const
|
|
5493
|
+
const tt = /^c[^\s-]{8,}$/i, it = /^[a-z][a-z0-9]*$/, at = /^[0-9A-HJKMNP-TV-Z]{26}$/, nt = /^[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, rt = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, st = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
4408
5494
|
let ye;
|
|
4409
|
-
const
|
|
4410
|
-
function
|
|
4411
|
-
return !!((e === "v4" || !e) &&
|
|
5495
|
+
const ot = /^(((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}))$/, ct = /^(([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})))$/, dt = (i) => i.precision ? i.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${i.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${i.precision}}Z$`) : i.precision === 0 ? i.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : i.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
|
|
5496
|
+
function lt(i, e) {
|
|
5497
|
+
return !!((e === "v4" || !e) && ot.test(i) || (e === "v6" || !e) && ct.test(i));
|
|
4412
5498
|
}
|
|
4413
|
-
class
|
|
5499
|
+
class k extends v {
|
|
4414
5500
|
_parse(e) {
|
|
4415
5501
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== l.string) {
|
|
4416
5502
|
const r = this._getOrReturnCtx(e);
|
|
@@ -4422,128 +5508,128 @@ class A extends v {
|
|
|
4422
5508
|
received: r.parsedType
|
|
4423
5509
|
}
|
|
4424
5510
|
//
|
|
4425
|
-
),
|
|
5511
|
+
), _;
|
|
4426
5512
|
}
|
|
4427
|
-
const
|
|
4428
|
-
let
|
|
5513
|
+
const a = new R();
|
|
5514
|
+
let n;
|
|
4429
5515
|
for (const r of this._def.checks)
|
|
4430
5516
|
if (r.kind === "min")
|
|
4431
|
-
e.data.length < r.value && (
|
|
5517
|
+
e.data.length < r.value && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4432
5518
|
code: c.too_small,
|
|
4433
5519
|
minimum: r.value,
|
|
4434
5520
|
type: "string",
|
|
4435
5521
|
inclusive: !0,
|
|
4436
5522
|
exact: !1,
|
|
4437
5523
|
message: r.message
|
|
4438
|
-
}),
|
|
5524
|
+
}), a.dirty());
|
|
4439
5525
|
else if (r.kind === "max")
|
|
4440
|
-
e.data.length > r.value && (
|
|
5526
|
+
e.data.length > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4441
5527
|
code: c.too_big,
|
|
4442
5528
|
maximum: r.value,
|
|
4443
5529
|
type: "string",
|
|
4444
5530
|
inclusive: !0,
|
|
4445
5531
|
exact: !1,
|
|
4446
5532
|
message: r.message
|
|
4447
|
-
}),
|
|
5533
|
+
}), a.dirty());
|
|
4448
5534
|
else if (r.kind === "length") {
|
|
4449
5535
|
const s = e.data.length > r.value, o = e.data.length < r.value;
|
|
4450
|
-
(s || o) && (
|
|
5536
|
+
(s || o) && (n = this._getOrReturnCtx(e, n), s ? u(n, {
|
|
4451
5537
|
code: c.too_big,
|
|
4452
5538
|
maximum: r.value,
|
|
4453
5539
|
type: "string",
|
|
4454
5540
|
inclusive: !0,
|
|
4455
5541
|
exact: !0,
|
|
4456
5542
|
message: r.message
|
|
4457
|
-
}) : o && u(
|
|
5543
|
+
}) : o && u(n, {
|
|
4458
5544
|
code: c.too_small,
|
|
4459
5545
|
minimum: r.value,
|
|
4460
5546
|
type: "string",
|
|
4461
5547
|
inclusive: !0,
|
|
4462
5548
|
exact: !0,
|
|
4463
5549
|
message: r.message
|
|
4464
|
-
}),
|
|
5550
|
+
}), a.dirty());
|
|
4465
5551
|
} else if (r.kind === "email")
|
|
4466
|
-
|
|
5552
|
+
rt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4467
5553
|
validation: "email",
|
|
4468
5554
|
code: c.invalid_string,
|
|
4469
5555
|
message: r.message
|
|
4470
|
-
}),
|
|
5556
|
+
}), a.dirty());
|
|
4471
5557
|
else if (r.kind === "emoji")
|
|
4472
|
-
ye || (ye = new RegExp(
|
|
5558
|
+
ye || (ye = new RegExp(st, "u")), ye.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4473
5559
|
validation: "emoji",
|
|
4474
5560
|
code: c.invalid_string,
|
|
4475
5561
|
message: r.message
|
|
4476
|
-
}),
|
|
5562
|
+
}), a.dirty());
|
|
4477
5563
|
else if (r.kind === "uuid")
|
|
4478
|
-
|
|
5564
|
+
nt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4479
5565
|
validation: "uuid",
|
|
4480
5566
|
code: c.invalid_string,
|
|
4481
5567
|
message: r.message
|
|
4482
|
-
}),
|
|
5568
|
+
}), a.dirty());
|
|
4483
5569
|
else if (r.kind === "cuid")
|
|
4484
|
-
|
|
5570
|
+
tt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4485
5571
|
validation: "cuid",
|
|
4486
5572
|
code: c.invalid_string,
|
|
4487
5573
|
message: r.message
|
|
4488
|
-
}),
|
|
5574
|
+
}), a.dirty());
|
|
4489
5575
|
else if (r.kind === "cuid2")
|
|
4490
|
-
|
|
5576
|
+
it.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4491
5577
|
validation: "cuid2",
|
|
4492
5578
|
code: c.invalid_string,
|
|
4493
5579
|
message: r.message
|
|
4494
|
-
}),
|
|
5580
|
+
}), a.dirty());
|
|
4495
5581
|
else if (r.kind === "ulid")
|
|
4496
|
-
|
|
5582
|
+
at.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4497
5583
|
validation: "ulid",
|
|
4498
5584
|
code: c.invalid_string,
|
|
4499
5585
|
message: r.message
|
|
4500
|
-
}),
|
|
5586
|
+
}), a.dirty());
|
|
4501
5587
|
else if (r.kind === "url")
|
|
4502
5588
|
try {
|
|
4503
5589
|
new URL(e.data);
|
|
4504
5590
|
} catch {
|
|
4505
|
-
|
|
5591
|
+
n = this._getOrReturnCtx(e, n), u(n, {
|
|
4506
5592
|
validation: "url",
|
|
4507
5593
|
code: c.invalid_string,
|
|
4508
5594
|
message: r.message
|
|
4509
|
-
}),
|
|
5595
|
+
}), a.dirty();
|
|
4510
5596
|
}
|
|
4511
|
-
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (
|
|
5597
|
+
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4512
5598
|
validation: "regex",
|
|
4513
5599
|
code: c.invalid_string,
|
|
4514
5600
|
message: r.message
|
|
4515
|
-
}),
|
|
5601
|
+
}), a.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4516
5602
|
code: c.invalid_string,
|
|
4517
5603
|
validation: { includes: r.value, position: r.position },
|
|
4518
5604
|
message: r.message
|
|
4519
|
-
}),
|
|
5605
|
+
}), a.dirty()) : r.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : r.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : r.kind === "startsWith" ? e.data.startsWith(r.value) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4520
5606
|
code: c.invalid_string,
|
|
4521
5607
|
validation: { startsWith: r.value },
|
|
4522
5608
|
message: r.message
|
|
4523
|
-
}),
|
|
5609
|
+
}), a.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4524
5610
|
code: c.invalid_string,
|
|
4525
5611
|
validation: { endsWith: r.value },
|
|
4526
5612
|
message: r.message
|
|
4527
|
-
}),
|
|
5613
|
+
}), a.dirty()) : r.kind === "datetime" ? dt(r).test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4528
5614
|
code: c.invalid_string,
|
|
4529
5615
|
validation: "datetime",
|
|
4530
5616
|
message: r.message
|
|
4531
|
-
}),
|
|
5617
|
+
}), a.dirty()) : r.kind === "ip" ? lt(e.data, r.version) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
4532
5618
|
validation: "ip",
|
|
4533
5619
|
code: c.invalid_string,
|
|
4534
5620
|
message: r.message
|
|
4535
|
-
}),
|
|
4536
|
-
return { status:
|
|
5621
|
+
}), a.dirty()) : x.assertNever(r);
|
|
5622
|
+
return { status: a.value, value: e.data };
|
|
4537
5623
|
}
|
|
4538
|
-
_regex(e, t,
|
|
4539
|
-
return this.refinement((
|
|
5624
|
+
_regex(e, t, a) {
|
|
5625
|
+
return this.refinement((n) => e.test(n), {
|
|
4540
5626
|
validation: t,
|
|
4541
5627
|
code: c.invalid_string,
|
|
4542
|
-
...p.errToObj(
|
|
5628
|
+
...p.errToObj(a)
|
|
4543
5629
|
});
|
|
4544
5630
|
}
|
|
4545
5631
|
_addCheck(e) {
|
|
4546
|
-
return new
|
|
5632
|
+
return new k({
|
|
4547
5633
|
...this._def,
|
|
4548
5634
|
checks: [...this._def.checks, e]
|
|
4549
5635
|
});
|
|
@@ -4644,19 +5730,19 @@ class A extends v {
|
|
|
4644
5730
|
return this.min(1, p.errToObj(e));
|
|
4645
5731
|
}
|
|
4646
5732
|
trim() {
|
|
4647
|
-
return new
|
|
5733
|
+
return new k({
|
|
4648
5734
|
...this._def,
|
|
4649
5735
|
checks: [...this._def.checks, { kind: "trim" }]
|
|
4650
5736
|
});
|
|
4651
5737
|
}
|
|
4652
5738
|
toLowerCase() {
|
|
4653
|
-
return new
|
|
5739
|
+
return new k({
|
|
4654
5740
|
...this._def,
|
|
4655
5741
|
checks: [...this._def.checks, { kind: "toLowerCase" }]
|
|
4656
5742
|
});
|
|
4657
5743
|
}
|
|
4658
5744
|
toUpperCase() {
|
|
4659
|
-
return new
|
|
5745
|
+
return new k({
|
|
4660
5746
|
...this._def,
|
|
4661
5747
|
checks: [...this._def.checks, { kind: "toUpperCase" }]
|
|
4662
5748
|
});
|
|
@@ -4701,20 +5787,20 @@ class A extends v {
|
|
|
4701
5787
|
return e;
|
|
4702
5788
|
}
|
|
4703
5789
|
}
|
|
4704
|
-
|
|
5790
|
+
k.create = (i) => {
|
|
4705
5791
|
var e;
|
|
4706
|
-
return new
|
|
5792
|
+
return new k({
|
|
4707
5793
|
checks: [],
|
|
4708
5794
|
typeName: f.ZodString,
|
|
4709
|
-
coerce: (e =
|
|
4710
|
-
...
|
|
5795
|
+
coerce: (e = i == null ? void 0 : i.coerce) !== null && e !== void 0 ? e : !1,
|
|
5796
|
+
...h(i)
|
|
4711
5797
|
});
|
|
4712
5798
|
};
|
|
4713
|
-
function
|
|
4714
|
-
const t = (
|
|
4715
|
-
return r % s / Math.pow(10,
|
|
5799
|
+
function ut(i, e) {
|
|
5800
|
+
const t = (i.toString().split(".")[1] || "").length, a = (e.toString().split(".")[1] || "").length, n = t > a ? t : a, r = parseInt(i.toFixed(n).replace(".", "")), s = parseInt(e.toFixed(n).replace(".", ""));
|
|
5801
|
+
return r % s / Math.pow(10, n);
|
|
4716
5802
|
}
|
|
4717
|
-
class
|
|
5803
|
+
class j extends v {
|
|
4718
5804
|
constructor() {
|
|
4719
5805
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
4720
5806
|
}
|
|
@@ -4725,39 +5811,39 @@ class D extends v {
|
|
|
4725
5811
|
code: c.invalid_type,
|
|
4726
5812
|
expected: l.number,
|
|
4727
5813
|
received: r.parsedType
|
|
4728
|
-
}),
|
|
5814
|
+
}), _;
|
|
4729
5815
|
}
|
|
4730
|
-
let
|
|
4731
|
-
const
|
|
5816
|
+
let a;
|
|
5817
|
+
const n = new R();
|
|
4732
5818
|
for (const r of this._def.checks)
|
|
4733
|
-
r.kind === "int" ? x.isInteger(e.data) || (
|
|
5819
|
+
r.kind === "int" ? x.isInteger(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4734
5820
|
code: c.invalid_type,
|
|
4735
5821
|
expected: "integer",
|
|
4736
5822
|
received: "float",
|
|
4737
5823
|
message: r.message
|
|
4738
|
-
}),
|
|
5824
|
+
}), n.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4739
5825
|
code: c.too_small,
|
|
4740
5826
|
minimum: r.value,
|
|
4741
5827
|
type: "number",
|
|
4742
5828
|
inclusive: r.inclusive,
|
|
4743
5829
|
exact: !1,
|
|
4744
5830
|
message: r.message
|
|
4745
|
-
}),
|
|
5831
|
+
}), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4746
5832
|
code: c.too_big,
|
|
4747
5833
|
maximum: r.value,
|
|
4748
5834
|
type: "number",
|
|
4749
5835
|
inclusive: r.inclusive,
|
|
4750
5836
|
exact: !1,
|
|
4751
5837
|
message: r.message
|
|
4752
|
-
}),
|
|
5838
|
+
}), n.dirty()) : r.kind === "multipleOf" ? ut(e.data, r.value) !== 0 && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4753
5839
|
code: c.not_multiple_of,
|
|
4754
5840
|
multipleOf: r.value,
|
|
4755
5841
|
message: r.message
|
|
4756
|
-
}),
|
|
5842
|
+
}), n.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4757
5843
|
code: c.not_finite,
|
|
4758
5844
|
message: r.message
|
|
4759
|
-
}),
|
|
4760
|
-
return { status:
|
|
5845
|
+
}), n.dirty()) : x.assertNever(r);
|
|
5846
|
+
return { status: n.value, value: e.data };
|
|
4761
5847
|
}
|
|
4762
5848
|
gte(e, t) {
|
|
4763
5849
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -4771,22 +5857,22 @@ class D extends v {
|
|
|
4771
5857
|
lt(e, t) {
|
|
4772
5858
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
4773
5859
|
}
|
|
4774
|
-
setLimit(e, t,
|
|
4775
|
-
return new
|
|
5860
|
+
setLimit(e, t, a, n) {
|
|
5861
|
+
return new j({
|
|
4776
5862
|
...this._def,
|
|
4777
5863
|
checks: [
|
|
4778
5864
|
...this._def.checks,
|
|
4779
5865
|
{
|
|
4780
5866
|
kind: e,
|
|
4781
5867
|
value: t,
|
|
4782
|
-
inclusive:
|
|
4783
|
-
message: p.toString(
|
|
5868
|
+
inclusive: a,
|
|
5869
|
+
message: p.toString(n)
|
|
4784
5870
|
}
|
|
4785
5871
|
]
|
|
4786
5872
|
});
|
|
4787
5873
|
}
|
|
4788
5874
|
_addCheck(e) {
|
|
4789
|
-
return new
|
|
5875
|
+
return new j({
|
|
4790
5876
|
...this._def,
|
|
4791
5877
|
checks: [...this._def.checks, e]
|
|
4792
5878
|
});
|
|
@@ -4872,19 +5958,19 @@ class D extends v {
|
|
|
4872
5958
|
}
|
|
4873
5959
|
get isFinite() {
|
|
4874
5960
|
let e = null, t = null;
|
|
4875
|
-
for (const
|
|
4876
|
-
if (
|
|
5961
|
+
for (const a of this._def.checks) {
|
|
5962
|
+
if (a.kind === "finite" || a.kind === "int" || a.kind === "multipleOf")
|
|
4877
5963
|
return !0;
|
|
4878
|
-
|
|
5964
|
+
a.kind === "min" ? (t === null || a.value > t) && (t = a.value) : a.kind === "max" && (e === null || a.value < e) && (e = a.value);
|
|
4879
5965
|
}
|
|
4880
5966
|
return Number.isFinite(t) && Number.isFinite(e);
|
|
4881
5967
|
}
|
|
4882
5968
|
}
|
|
4883
|
-
|
|
5969
|
+
j.create = (i) => new j({
|
|
4884
5970
|
checks: [],
|
|
4885
5971
|
typeName: f.ZodNumber,
|
|
4886
|
-
coerce: (
|
|
4887
|
-
...
|
|
5972
|
+
coerce: (i == null ? void 0 : i.coerce) || !1,
|
|
5973
|
+
...h(i)
|
|
4888
5974
|
});
|
|
4889
5975
|
class B extends v {
|
|
4890
5976
|
constructor() {
|
|
@@ -4897,29 +5983,29 @@ class B extends v {
|
|
|
4897
5983
|
code: c.invalid_type,
|
|
4898
5984
|
expected: l.bigint,
|
|
4899
5985
|
received: r.parsedType
|
|
4900
|
-
}),
|
|
5986
|
+
}), _;
|
|
4901
5987
|
}
|
|
4902
|
-
let
|
|
4903
|
-
const
|
|
5988
|
+
let a;
|
|
5989
|
+
const n = new R();
|
|
4904
5990
|
for (const r of this._def.checks)
|
|
4905
|
-
r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (
|
|
5991
|
+
r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4906
5992
|
code: c.too_small,
|
|
4907
5993
|
type: "bigint",
|
|
4908
5994
|
minimum: r.value,
|
|
4909
5995
|
inclusive: r.inclusive,
|
|
4910
5996
|
message: r.message
|
|
4911
|
-
}),
|
|
5997
|
+
}), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4912
5998
|
code: c.too_big,
|
|
4913
5999
|
type: "bigint",
|
|
4914
6000
|
maximum: r.value,
|
|
4915
6001
|
inclusive: r.inclusive,
|
|
4916
6002
|
message: r.message
|
|
4917
|
-
}),
|
|
6003
|
+
}), n.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (a = this._getOrReturnCtx(e, a), u(a, {
|
|
4918
6004
|
code: c.not_multiple_of,
|
|
4919
6005
|
multipleOf: r.value,
|
|
4920
6006
|
message: r.message
|
|
4921
|
-
}),
|
|
4922
|
-
return { status:
|
|
6007
|
+
}), n.dirty()) : x.assertNever(r);
|
|
6008
|
+
return { status: n.value, value: e.data };
|
|
4923
6009
|
}
|
|
4924
6010
|
gte(e, t) {
|
|
4925
6011
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -4933,7 +6019,7 @@ class B extends v {
|
|
|
4933
6019
|
lt(e, t) {
|
|
4934
6020
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
4935
6021
|
}
|
|
4936
|
-
setLimit(e, t,
|
|
6022
|
+
setLimit(e, t, a, n) {
|
|
4937
6023
|
return new B({
|
|
4938
6024
|
...this._def,
|
|
4939
6025
|
checks: [
|
|
@@ -4941,8 +6027,8 @@ class B extends v {
|
|
|
4941
6027
|
{
|
|
4942
6028
|
kind: e,
|
|
4943
6029
|
value: t,
|
|
4944
|
-
inclusive:
|
|
4945
|
-
message: p.toString(
|
|
6030
|
+
inclusive: a,
|
|
6031
|
+
message: p.toString(n)
|
|
4946
6032
|
}
|
|
4947
6033
|
]
|
|
4948
6034
|
});
|
|
@@ -5005,32 +6091,32 @@ class B extends v {
|
|
|
5005
6091
|
return e;
|
|
5006
6092
|
}
|
|
5007
6093
|
}
|
|
5008
|
-
B.create = (
|
|
6094
|
+
B.create = (i) => {
|
|
5009
6095
|
var e;
|
|
5010
6096
|
return new B({
|
|
5011
6097
|
checks: [],
|
|
5012
6098
|
typeName: f.ZodBigInt,
|
|
5013
|
-
coerce: (e =
|
|
5014
|
-
...
|
|
6099
|
+
coerce: (e = i == null ? void 0 : i.coerce) !== null && e !== void 0 ? e : !1,
|
|
6100
|
+
...h(i)
|
|
5015
6101
|
});
|
|
5016
6102
|
};
|
|
5017
6103
|
class Q extends v {
|
|
5018
6104
|
_parse(e) {
|
|
5019
6105
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== l.boolean) {
|
|
5020
|
-
const
|
|
5021
|
-
return u(
|
|
6106
|
+
const a = this._getOrReturnCtx(e);
|
|
6107
|
+
return u(a, {
|
|
5022
6108
|
code: c.invalid_type,
|
|
5023
6109
|
expected: l.boolean,
|
|
5024
|
-
received:
|
|
5025
|
-
}),
|
|
6110
|
+
received: a.parsedType
|
|
6111
|
+
}), _;
|
|
5026
6112
|
}
|
|
5027
|
-
return
|
|
6113
|
+
return S(e.data);
|
|
5028
6114
|
}
|
|
5029
6115
|
}
|
|
5030
|
-
Q.create = (
|
|
6116
|
+
Q.create = (i) => new Q({
|
|
5031
6117
|
typeName: f.ZodBoolean,
|
|
5032
|
-
coerce: (
|
|
5033
|
-
...
|
|
6118
|
+
coerce: (i == null ? void 0 : i.coerce) || !1,
|
|
6119
|
+
...h(i)
|
|
5034
6120
|
});
|
|
5035
6121
|
class $ extends v {
|
|
5036
6122
|
_parse(e) {
|
|
@@ -5040,34 +6126,34 @@ class $ extends v {
|
|
|
5040
6126
|
code: c.invalid_type,
|
|
5041
6127
|
expected: l.date,
|
|
5042
6128
|
received: r.parsedType
|
|
5043
|
-
}),
|
|
6129
|
+
}), _;
|
|
5044
6130
|
}
|
|
5045
6131
|
if (isNaN(e.data.getTime())) {
|
|
5046
6132
|
const r = this._getOrReturnCtx(e);
|
|
5047
6133
|
return u(r, {
|
|
5048
6134
|
code: c.invalid_date
|
|
5049
|
-
}),
|
|
6135
|
+
}), _;
|
|
5050
6136
|
}
|
|
5051
|
-
const
|
|
5052
|
-
let
|
|
6137
|
+
const a = new R();
|
|
6138
|
+
let n;
|
|
5053
6139
|
for (const r of this._def.checks)
|
|
5054
|
-
r.kind === "min" ? e.data.getTime() < r.value && (
|
|
6140
|
+
r.kind === "min" ? e.data.getTime() < r.value && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
5055
6141
|
code: c.too_small,
|
|
5056
6142
|
message: r.message,
|
|
5057
6143
|
inclusive: !0,
|
|
5058
6144
|
exact: !1,
|
|
5059
6145
|
minimum: r.value,
|
|
5060
6146
|
type: "date"
|
|
5061
|
-
}),
|
|
6147
|
+
}), a.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
5062
6148
|
code: c.too_big,
|
|
5063
6149
|
message: r.message,
|
|
5064
6150
|
inclusive: !0,
|
|
5065
6151
|
exact: !1,
|
|
5066
6152
|
maximum: r.value,
|
|
5067
6153
|
type: "date"
|
|
5068
|
-
}),
|
|
6154
|
+
}), a.dirty()) : x.assertNever(r);
|
|
5069
6155
|
return {
|
|
5070
|
-
status:
|
|
6156
|
+
status: a.value,
|
|
5071
6157
|
value: new Date(e.data.getTime())
|
|
5072
6158
|
};
|
|
5073
6159
|
}
|
|
@@ -5104,86 +6190,86 @@ class $ extends v {
|
|
|
5104
6190
|
return e != null ? new Date(e) : null;
|
|
5105
6191
|
}
|
|
5106
6192
|
}
|
|
5107
|
-
$.create = (
|
|
6193
|
+
$.create = (i) => new $({
|
|
5108
6194
|
checks: [],
|
|
5109
|
-
coerce: (
|
|
6195
|
+
coerce: (i == null ? void 0 : i.coerce) || !1,
|
|
5110
6196
|
typeName: f.ZodDate,
|
|
5111
|
-
...
|
|
6197
|
+
...h(i)
|
|
5112
6198
|
});
|
|
5113
6199
|
class ue extends v {
|
|
5114
6200
|
_parse(e) {
|
|
5115
6201
|
if (this._getType(e) !== l.symbol) {
|
|
5116
|
-
const
|
|
5117
|
-
return u(
|
|
6202
|
+
const a = this._getOrReturnCtx(e);
|
|
6203
|
+
return u(a, {
|
|
5118
6204
|
code: c.invalid_type,
|
|
5119
6205
|
expected: l.symbol,
|
|
5120
|
-
received:
|
|
5121
|
-
}),
|
|
6206
|
+
received: a.parsedType
|
|
6207
|
+
}), _;
|
|
5122
6208
|
}
|
|
5123
|
-
return
|
|
6209
|
+
return S(e.data);
|
|
5124
6210
|
}
|
|
5125
6211
|
}
|
|
5126
|
-
ue.create = (
|
|
6212
|
+
ue.create = (i) => new ue({
|
|
5127
6213
|
typeName: f.ZodSymbol,
|
|
5128
|
-
...
|
|
6214
|
+
...h(i)
|
|
5129
6215
|
});
|
|
5130
6216
|
class J extends v {
|
|
5131
6217
|
_parse(e) {
|
|
5132
6218
|
if (this._getType(e) !== l.undefined) {
|
|
5133
|
-
const
|
|
5134
|
-
return u(
|
|
6219
|
+
const a = this._getOrReturnCtx(e);
|
|
6220
|
+
return u(a, {
|
|
5135
6221
|
code: c.invalid_type,
|
|
5136
6222
|
expected: l.undefined,
|
|
5137
|
-
received:
|
|
5138
|
-
}),
|
|
6223
|
+
received: a.parsedType
|
|
6224
|
+
}), _;
|
|
5139
6225
|
}
|
|
5140
|
-
return
|
|
6226
|
+
return S(e.data);
|
|
5141
6227
|
}
|
|
5142
6228
|
}
|
|
5143
|
-
J.create = (
|
|
6229
|
+
J.create = (i) => new J({
|
|
5144
6230
|
typeName: f.ZodUndefined,
|
|
5145
|
-
...
|
|
6231
|
+
...h(i)
|
|
5146
6232
|
});
|
|
5147
6233
|
class X extends v {
|
|
5148
6234
|
_parse(e) {
|
|
5149
6235
|
if (this._getType(e) !== l.null) {
|
|
5150
|
-
const
|
|
5151
|
-
return u(
|
|
6236
|
+
const a = this._getOrReturnCtx(e);
|
|
6237
|
+
return u(a, {
|
|
5152
6238
|
code: c.invalid_type,
|
|
5153
6239
|
expected: l.null,
|
|
5154
|
-
received:
|
|
5155
|
-
}),
|
|
6240
|
+
received: a.parsedType
|
|
6241
|
+
}), _;
|
|
5156
6242
|
}
|
|
5157
|
-
return
|
|
6243
|
+
return S(e.data);
|
|
5158
6244
|
}
|
|
5159
6245
|
}
|
|
5160
|
-
X.create = (
|
|
6246
|
+
X.create = (i) => new X({
|
|
5161
6247
|
typeName: f.ZodNull,
|
|
5162
|
-
...
|
|
6248
|
+
...h(i)
|
|
5163
6249
|
});
|
|
5164
6250
|
class W extends v {
|
|
5165
6251
|
constructor() {
|
|
5166
6252
|
super(...arguments), this._any = !0;
|
|
5167
6253
|
}
|
|
5168
6254
|
_parse(e) {
|
|
5169
|
-
return
|
|
6255
|
+
return S(e.data);
|
|
5170
6256
|
}
|
|
5171
6257
|
}
|
|
5172
|
-
W.create = (
|
|
6258
|
+
W.create = (i) => new W({
|
|
5173
6259
|
typeName: f.ZodAny,
|
|
5174
|
-
...
|
|
6260
|
+
...h(i)
|
|
5175
6261
|
});
|
|
5176
|
-
class
|
|
6262
|
+
class Z extends v {
|
|
5177
6263
|
constructor() {
|
|
5178
6264
|
super(...arguments), this._unknown = !0;
|
|
5179
6265
|
}
|
|
5180
6266
|
_parse(e) {
|
|
5181
|
-
return
|
|
6267
|
+
return S(e.data);
|
|
5182
6268
|
}
|
|
5183
6269
|
}
|
|
5184
|
-
|
|
6270
|
+
Z.create = (i) => new Z({
|
|
5185
6271
|
typeName: f.ZodUnknown,
|
|
5186
|
-
...
|
|
6272
|
+
...h(i)
|
|
5187
6273
|
});
|
|
5188
6274
|
class L extends v {
|
|
5189
6275
|
_parse(e) {
|
|
@@ -5192,87 +6278,87 @@ class L extends v {
|
|
|
5192
6278
|
code: c.invalid_type,
|
|
5193
6279
|
expected: l.never,
|
|
5194
6280
|
received: t.parsedType
|
|
5195
|
-
}),
|
|
6281
|
+
}), _;
|
|
5196
6282
|
}
|
|
5197
6283
|
}
|
|
5198
|
-
L.create = (
|
|
6284
|
+
L.create = (i) => new L({
|
|
5199
6285
|
typeName: f.ZodNever,
|
|
5200
|
-
...
|
|
6286
|
+
...h(i)
|
|
5201
6287
|
});
|
|
5202
6288
|
class me extends v {
|
|
5203
6289
|
_parse(e) {
|
|
5204
6290
|
if (this._getType(e) !== l.undefined) {
|
|
5205
|
-
const
|
|
5206
|
-
return u(
|
|
6291
|
+
const a = this._getOrReturnCtx(e);
|
|
6292
|
+
return u(a, {
|
|
5207
6293
|
code: c.invalid_type,
|
|
5208
6294
|
expected: l.void,
|
|
5209
|
-
received:
|
|
5210
|
-
}),
|
|
6295
|
+
received: a.parsedType
|
|
6296
|
+
}), _;
|
|
5211
6297
|
}
|
|
5212
|
-
return
|
|
6298
|
+
return S(e.data);
|
|
5213
6299
|
}
|
|
5214
6300
|
}
|
|
5215
|
-
me.create = (
|
|
6301
|
+
me.create = (i) => new me({
|
|
5216
6302
|
typeName: f.ZodVoid,
|
|
5217
|
-
...
|
|
6303
|
+
...h(i)
|
|
5218
6304
|
});
|
|
5219
|
-
class
|
|
6305
|
+
class M extends v {
|
|
5220
6306
|
_parse(e) {
|
|
5221
|
-
const { ctx: t, status:
|
|
6307
|
+
const { ctx: t, status: a } = this._processInputParams(e), n = this._def;
|
|
5222
6308
|
if (t.parsedType !== l.array)
|
|
5223
6309
|
return u(t, {
|
|
5224
6310
|
code: c.invalid_type,
|
|
5225
6311
|
expected: l.array,
|
|
5226
6312
|
received: t.parsedType
|
|
5227
|
-
}),
|
|
5228
|
-
if (
|
|
5229
|
-
const s = t.data.length >
|
|
6313
|
+
}), _;
|
|
6314
|
+
if (n.exactLength !== null) {
|
|
6315
|
+
const s = t.data.length > n.exactLength.value, o = t.data.length < n.exactLength.value;
|
|
5230
6316
|
(s || o) && (u(t, {
|
|
5231
6317
|
code: s ? c.too_big : c.too_small,
|
|
5232
|
-
minimum: o ?
|
|
5233
|
-
maximum: s ?
|
|
6318
|
+
minimum: o ? n.exactLength.value : void 0,
|
|
6319
|
+
maximum: s ? n.exactLength.value : void 0,
|
|
5234
6320
|
type: "array",
|
|
5235
6321
|
inclusive: !0,
|
|
5236
6322
|
exact: !0,
|
|
5237
|
-
message:
|
|
5238
|
-
}),
|
|
6323
|
+
message: n.exactLength.message
|
|
6324
|
+
}), a.dirty());
|
|
5239
6325
|
}
|
|
5240
|
-
if (
|
|
6326
|
+
if (n.minLength !== null && t.data.length < n.minLength.value && (u(t, {
|
|
5241
6327
|
code: c.too_small,
|
|
5242
|
-
minimum:
|
|
6328
|
+
minimum: n.minLength.value,
|
|
5243
6329
|
type: "array",
|
|
5244
6330
|
inclusive: !0,
|
|
5245
6331
|
exact: !1,
|
|
5246
|
-
message:
|
|
5247
|
-
}),
|
|
6332
|
+
message: n.minLength.message
|
|
6333
|
+
}), a.dirty()), n.maxLength !== null && t.data.length > n.maxLength.value && (u(t, {
|
|
5248
6334
|
code: c.too_big,
|
|
5249
|
-
maximum:
|
|
6335
|
+
maximum: n.maxLength.value,
|
|
5250
6336
|
type: "array",
|
|
5251
6337
|
inclusive: !0,
|
|
5252
6338
|
exact: !1,
|
|
5253
|
-
message:
|
|
5254
|
-
}),
|
|
5255
|
-
return Promise.all([...t.data].map((s, o) =>
|
|
5256
|
-
const r = [...t.data].map((s, o) =>
|
|
5257
|
-
return
|
|
6339
|
+
message: n.maxLength.message
|
|
6340
|
+
}), a.dirty()), t.common.async)
|
|
6341
|
+
return Promise.all([...t.data].map((s, o) => n.type._parseAsync(new P(t, s, t.path, o)))).then((s) => R.mergeArray(a, s));
|
|
6342
|
+
const r = [...t.data].map((s, o) => n.type._parseSync(new P(t, s, t.path, o)));
|
|
6343
|
+
return R.mergeArray(a, r);
|
|
5258
6344
|
}
|
|
5259
6345
|
get element() {
|
|
5260
6346
|
return this._def.type;
|
|
5261
6347
|
}
|
|
5262
6348
|
min(e, t) {
|
|
5263
|
-
return new
|
|
6349
|
+
return new M({
|
|
5264
6350
|
...this._def,
|
|
5265
6351
|
minLength: { value: e, message: p.toString(t) }
|
|
5266
6352
|
});
|
|
5267
6353
|
}
|
|
5268
6354
|
max(e, t) {
|
|
5269
|
-
return new
|
|
6355
|
+
return new M({
|
|
5270
6356
|
...this._def,
|
|
5271
6357
|
maxLength: { value: e, message: p.toString(t) }
|
|
5272
6358
|
});
|
|
5273
6359
|
}
|
|
5274
6360
|
length(e, t) {
|
|
5275
|
-
return new
|
|
6361
|
+
return new M({
|
|
5276
6362
|
...this._def,
|
|
5277
6363
|
exactLength: { value: e, message: p.toString(t) }
|
|
5278
6364
|
});
|
|
@@ -5281,29 +6367,29 @@ class O extends v {
|
|
|
5281
6367
|
return this.min(1, e);
|
|
5282
6368
|
}
|
|
5283
6369
|
}
|
|
5284
|
-
|
|
5285
|
-
type:
|
|
6370
|
+
M.create = (i, e) => new M({
|
|
6371
|
+
type: i,
|
|
5286
6372
|
minLength: null,
|
|
5287
6373
|
maxLength: null,
|
|
5288
6374
|
exactLength: null,
|
|
5289
6375
|
typeName: f.ZodArray,
|
|
5290
|
-
...
|
|
6376
|
+
...h(e)
|
|
5291
6377
|
});
|
|
5292
|
-
function G(
|
|
5293
|
-
if (
|
|
6378
|
+
function G(i) {
|
|
6379
|
+
if (i instanceof w) {
|
|
5294
6380
|
const e = {};
|
|
5295
|
-
for (const t in
|
|
5296
|
-
const
|
|
5297
|
-
e[t] =
|
|
6381
|
+
for (const t in i.shape) {
|
|
6382
|
+
const a = i.shape[t];
|
|
6383
|
+
e[t] = N.create(G(a));
|
|
5298
6384
|
}
|
|
5299
6385
|
return new w({
|
|
5300
|
-
...
|
|
6386
|
+
...i._def,
|
|
5301
6387
|
shape: () => e
|
|
5302
6388
|
});
|
|
5303
|
-
} else return
|
|
5304
|
-
...
|
|
5305
|
-
type: G(
|
|
5306
|
-
}) :
|
|
6389
|
+
} else return i instanceof M ? new M({
|
|
6390
|
+
...i._def,
|
|
6391
|
+
type: G(i.element)
|
|
6392
|
+
}) : i instanceof N ? N.create(G(i.unwrap())) : i instanceof q ? q.create(G(i.unwrap())) : i instanceof O ? O.create(i.items.map((e) => G(e))) : i;
|
|
5307
6393
|
}
|
|
5308
6394
|
class w extends v {
|
|
5309
6395
|
constructor() {
|
|
@@ -5322,19 +6408,19 @@ class w extends v {
|
|
|
5322
6408
|
code: c.invalid_type,
|
|
5323
6409
|
expected: l.object,
|
|
5324
6410
|
received: d.parsedType
|
|
5325
|
-
}),
|
|
6411
|
+
}), _;
|
|
5326
6412
|
}
|
|
5327
|
-
const { status:
|
|
6413
|
+
const { status: a, ctx: n } = this._processInputParams(e), { shape: r, keys: s } = this._getCached(), o = [];
|
|
5328
6414
|
if (!(this._def.catchall instanceof L && this._def.unknownKeys === "strip"))
|
|
5329
|
-
for (const d in
|
|
6415
|
+
for (const d in n.data)
|
|
5330
6416
|
s.includes(d) || o.push(d);
|
|
5331
6417
|
const m = [];
|
|
5332
6418
|
for (const d of s) {
|
|
5333
|
-
const y = r[d],
|
|
6419
|
+
const y = r[d], A = n.data[d];
|
|
5334
6420
|
m.push({
|
|
5335
6421
|
key: { status: "valid", value: d },
|
|
5336
|
-
value: y._parse(new
|
|
5337
|
-
alwaysSet: d in
|
|
6422
|
+
value: y._parse(new P(n, A, n.path, d)),
|
|
6423
|
+
alwaysSet: d in n.data
|
|
5338
6424
|
});
|
|
5339
6425
|
}
|
|
5340
6426
|
if (this._def.catchall instanceof L) {
|
|
@@ -5343,40 +6429,40 @@ class w extends v {
|
|
|
5343
6429
|
for (const y of o)
|
|
5344
6430
|
m.push({
|
|
5345
6431
|
key: { status: "valid", value: y },
|
|
5346
|
-
value: { status: "valid", value:
|
|
6432
|
+
value: { status: "valid", value: n.data[y] }
|
|
5347
6433
|
});
|
|
5348
6434
|
else if (d === "strict")
|
|
5349
|
-
o.length > 0 && (u(
|
|
6435
|
+
o.length > 0 && (u(n, {
|
|
5350
6436
|
code: c.unrecognized_keys,
|
|
5351
6437
|
keys: o
|
|
5352
|
-
}),
|
|
6438
|
+
}), a.dirty());
|
|
5353
6439
|
else if (d !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
|
|
5354
6440
|
} else {
|
|
5355
6441
|
const d = this._def.catchall;
|
|
5356
6442
|
for (const y of o) {
|
|
5357
|
-
const
|
|
6443
|
+
const A = n.data[y];
|
|
5358
6444
|
m.push({
|
|
5359
6445
|
key: { status: "valid", value: y },
|
|
5360
6446
|
value: d._parse(
|
|
5361
|
-
new
|
|
6447
|
+
new P(n, A, n.path, y)
|
|
5362
6448
|
//, ctx.child(key), value, getParsedType(value)
|
|
5363
6449
|
),
|
|
5364
|
-
alwaysSet: y in
|
|
6450
|
+
alwaysSet: y in n.data
|
|
5365
6451
|
});
|
|
5366
6452
|
}
|
|
5367
6453
|
}
|
|
5368
|
-
return
|
|
6454
|
+
return n.common.async ? Promise.resolve().then(async () => {
|
|
5369
6455
|
const d = [];
|
|
5370
6456
|
for (const y of m) {
|
|
5371
|
-
const
|
|
6457
|
+
const A = await y.key;
|
|
5372
6458
|
d.push({
|
|
5373
|
-
key:
|
|
6459
|
+
key: A,
|
|
5374
6460
|
value: await y.value,
|
|
5375
6461
|
alwaysSet: y.alwaysSet
|
|
5376
6462
|
});
|
|
5377
6463
|
}
|
|
5378
6464
|
return d;
|
|
5379
|
-
}).then((d) =>
|
|
6465
|
+
}).then((d) => R.mergeObjectSync(a, d)) : R.mergeObjectSync(a, m);
|
|
5380
6466
|
}
|
|
5381
6467
|
get shape() {
|
|
5382
6468
|
return this._def.shape();
|
|
@@ -5386,9 +6472,9 @@ class w extends v {
|
|
|
5386
6472
|
...this._def,
|
|
5387
6473
|
unknownKeys: "strict",
|
|
5388
6474
|
...e !== void 0 ? {
|
|
5389
|
-
errorMap: (t,
|
|
5390
|
-
var
|
|
5391
|
-
const m = (s = (r = (
|
|
6475
|
+
errorMap: (t, a) => {
|
|
6476
|
+
var n, r, s, o;
|
|
6477
|
+
const m = (s = (r = (n = this._def).errorMap) === null || r === void 0 ? void 0 : r.call(n, t, a).message) !== null && s !== void 0 ? s : a.defaultError;
|
|
5392
6478
|
return t.code === "unrecognized_keys" ? {
|
|
5393
6479
|
message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : m
|
|
5394
6480
|
} : {
|
|
@@ -5519,8 +6605,8 @@ class w extends v {
|
|
|
5519
6605
|
}
|
|
5520
6606
|
pick(e) {
|
|
5521
6607
|
const t = {};
|
|
5522
|
-
return x.objectKeys(e).forEach((
|
|
5523
|
-
e[
|
|
6608
|
+
return x.objectKeys(e).forEach((a) => {
|
|
6609
|
+
e[a] && this.shape[a] && (t[a] = this.shape[a]);
|
|
5524
6610
|
}), new w({
|
|
5525
6611
|
...this._def,
|
|
5526
6612
|
shape: () => t
|
|
@@ -5528,8 +6614,8 @@ class w extends v {
|
|
|
5528
6614
|
}
|
|
5529
6615
|
omit(e) {
|
|
5530
6616
|
const t = {};
|
|
5531
|
-
return x.objectKeys(this.shape).forEach((
|
|
5532
|
-
e[
|
|
6617
|
+
return x.objectKeys(this.shape).forEach((a) => {
|
|
6618
|
+
e[a] || (t[a] = this.shape[a]);
|
|
5533
6619
|
}), new w({
|
|
5534
6620
|
...this._def,
|
|
5535
6621
|
shape: () => t
|
|
@@ -5543,9 +6629,9 @@ class w extends v {
|
|
|
5543
6629
|
}
|
|
5544
6630
|
partial(e) {
|
|
5545
6631
|
const t = {};
|
|
5546
|
-
return x.objectKeys(this.shape).forEach((
|
|
5547
|
-
const
|
|
5548
|
-
e && !e[
|
|
6632
|
+
return x.objectKeys(this.shape).forEach((a) => {
|
|
6633
|
+
const n = this.shape[a];
|
|
6634
|
+
e && !e[a] ? t[a] = n : t[a] = n.optional();
|
|
5549
6635
|
}), new w({
|
|
5550
6636
|
...this._def,
|
|
5551
6637
|
shape: () => t
|
|
@@ -5553,14 +6639,14 @@ class w extends v {
|
|
|
5553
6639
|
}
|
|
5554
6640
|
required(e) {
|
|
5555
6641
|
const t = {};
|
|
5556
|
-
return x.objectKeys(this.shape).forEach((
|
|
5557
|
-
if (e && !e[
|
|
5558
|
-
t[
|
|
6642
|
+
return x.objectKeys(this.shape).forEach((a) => {
|
|
6643
|
+
if (e && !e[a])
|
|
6644
|
+
t[a] = this.shape[a];
|
|
5559
6645
|
else {
|
|
5560
|
-
let r = this.shape[
|
|
5561
|
-
for (; r instanceof
|
|
6646
|
+
let r = this.shape[a];
|
|
6647
|
+
for (; r instanceof N; )
|
|
5562
6648
|
r = r._def.innerType;
|
|
5563
|
-
t[
|
|
6649
|
+
t[a] = r;
|
|
5564
6650
|
}
|
|
5565
6651
|
}), new w({
|
|
5566
6652
|
...this._def,
|
|
@@ -5568,34 +6654,34 @@ class w extends v {
|
|
|
5568
6654
|
});
|
|
5569
6655
|
}
|
|
5570
6656
|
keyof() {
|
|
5571
|
-
return
|
|
6657
|
+
return ke(x.objectKeys(this.shape));
|
|
5572
6658
|
}
|
|
5573
6659
|
}
|
|
5574
|
-
w.create = (
|
|
5575
|
-
shape: () =>
|
|
6660
|
+
w.create = (i, e) => new w({
|
|
6661
|
+
shape: () => i,
|
|
5576
6662
|
unknownKeys: "strip",
|
|
5577
6663
|
catchall: L.create(),
|
|
5578
6664
|
typeName: f.ZodObject,
|
|
5579
|
-
...
|
|
6665
|
+
...h(e)
|
|
5580
6666
|
});
|
|
5581
|
-
w.strictCreate = (
|
|
5582
|
-
shape: () =>
|
|
6667
|
+
w.strictCreate = (i, e) => new w({
|
|
6668
|
+
shape: () => i,
|
|
5583
6669
|
unknownKeys: "strict",
|
|
5584
6670
|
catchall: L.create(),
|
|
5585
6671
|
typeName: f.ZodObject,
|
|
5586
|
-
...
|
|
6672
|
+
...h(e)
|
|
5587
6673
|
});
|
|
5588
|
-
w.lazycreate = (
|
|
5589
|
-
shape:
|
|
6674
|
+
w.lazycreate = (i, e) => new w({
|
|
6675
|
+
shape: i,
|
|
5590
6676
|
unknownKeys: "strip",
|
|
5591
6677
|
catchall: L.create(),
|
|
5592
6678
|
typeName: f.ZodObject,
|
|
5593
|
-
...
|
|
6679
|
+
...h(e)
|
|
5594
6680
|
});
|
|
5595
6681
|
class K extends v {
|
|
5596
6682
|
_parse(e) {
|
|
5597
|
-
const { ctx: t } = this._processInputParams(e),
|
|
5598
|
-
function
|
|
6683
|
+
const { ctx: t } = this._processInputParams(e), a = this._def.options;
|
|
6684
|
+
function n(r) {
|
|
5599
6685
|
for (const o of r)
|
|
5600
6686
|
if (o.result.status === "valid")
|
|
5601
6687
|
return o.result;
|
|
@@ -5606,10 +6692,10 @@ class K extends v {
|
|
|
5606
6692
|
return u(t, {
|
|
5607
6693
|
code: c.invalid_union,
|
|
5608
6694
|
unionErrors: s
|
|
5609
|
-
}),
|
|
6695
|
+
}), _;
|
|
5610
6696
|
}
|
|
5611
6697
|
if (t.common.async)
|
|
5612
|
-
return Promise.all(
|
|
6698
|
+
return Promise.all(a.map(async (r) => {
|
|
5613
6699
|
const s = {
|
|
5614
6700
|
...t,
|
|
5615
6701
|
common: {
|
|
@@ -5626,11 +6712,11 @@ class K extends v {
|
|
|
5626
6712
|
}),
|
|
5627
6713
|
ctx: s
|
|
5628
6714
|
};
|
|
5629
|
-
})).then(
|
|
6715
|
+
})).then(n);
|
|
5630
6716
|
{
|
|
5631
6717
|
let r;
|
|
5632
6718
|
const s = [];
|
|
5633
|
-
for (const m of
|
|
6719
|
+
for (const m of a) {
|
|
5634
6720
|
const d = {
|
|
5635
6721
|
...t,
|
|
5636
6722
|
common: {
|
|
@@ -5653,20 +6739,20 @@ class K extends v {
|
|
|
5653
6739
|
return u(t, {
|
|
5654
6740
|
code: c.invalid_union,
|
|
5655
6741
|
unionErrors: o
|
|
5656
|
-
}),
|
|
6742
|
+
}), _;
|
|
5657
6743
|
}
|
|
5658
6744
|
}
|
|
5659
6745
|
get options() {
|
|
5660
6746
|
return this._def.options;
|
|
5661
6747
|
}
|
|
5662
6748
|
}
|
|
5663
|
-
K.create = (
|
|
5664
|
-
options:
|
|
6749
|
+
K.create = (i, e) => new K({
|
|
6750
|
+
options: i,
|
|
5665
6751
|
typeName: f.ZodUnion,
|
|
5666
|
-
...
|
|
6752
|
+
...h(e)
|
|
5667
6753
|
});
|
|
5668
|
-
const oe = (
|
|
5669
|
-
class
|
|
6754
|
+
const oe = (i) => i instanceof ie ? oe(i.schema) : i instanceof I ? oe(i.innerType()) : i instanceof ae ? [i.value] : i instanceof V ? i.options : i instanceof ne ? Object.keys(i.enum) : i instanceof re ? oe(i._def.innerType) : i instanceof J ? [void 0] : i instanceof X ? [null] : null;
|
|
6755
|
+
class he extends v {
|
|
5670
6756
|
_parse(e) {
|
|
5671
6757
|
const { ctx: t } = this._processInputParams(e);
|
|
5672
6758
|
if (t.parsedType !== l.object)
|
|
@@ -5674,8 +6760,8 @@ class _e extends v {
|
|
|
5674
6760
|
code: c.invalid_type,
|
|
5675
6761
|
expected: l.object,
|
|
5676
6762
|
received: t.parsedType
|
|
5677
|
-
}),
|
|
5678
|
-
const
|
|
6763
|
+
}), _;
|
|
6764
|
+
const a = this.discriminator, n = t.data[a], r = this.optionsMap.get(n);
|
|
5679
6765
|
return r ? t.common.async ? r._parseAsync({
|
|
5680
6766
|
data: t.data,
|
|
5681
6767
|
path: t.path,
|
|
@@ -5687,8 +6773,8 @@ class _e extends v {
|
|
|
5687
6773
|
}) : (u(t, {
|
|
5688
6774
|
code: c.invalid_union_discriminator,
|
|
5689
6775
|
options: Array.from(this.optionsMap.keys()),
|
|
5690
|
-
path: [
|
|
5691
|
-
}),
|
|
6776
|
+
path: [a]
|
|
6777
|
+
}), _);
|
|
5692
6778
|
}
|
|
5693
6779
|
get discriminator() {
|
|
5694
6780
|
return this._def.discriminator;
|
|
@@ -5707,139 +6793,139 @@ class _e extends v {
|
|
|
5707
6793
|
* @param types an array of object schemas
|
|
5708
6794
|
* @param params
|
|
5709
6795
|
*/
|
|
5710
|
-
static create(e, t,
|
|
5711
|
-
const
|
|
6796
|
+
static create(e, t, a) {
|
|
6797
|
+
const n = /* @__PURE__ */ new Map();
|
|
5712
6798
|
for (const r of t) {
|
|
5713
6799
|
const s = oe(r.shape[e]);
|
|
5714
6800
|
if (!s)
|
|
5715
6801
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
5716
6802
|
for (const o of s) {
|
|
5717
|
-
if (
|
|
6803
|
+
if (n.has(o))
|
|
5718
6804
|
throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);
|
|
5719
|
-
|
|
6805
|
+
n.set(o, r);
|
|
5720
6806
|
}
|
|
5721
6807
|
}
|
|
5722
|
-
return new
|
|
6808
|
+
return new he({
|
|
5723
6809
|
typeName: f.ZodDiscriminatedUnion,
|
|
5724
6810
|
discriminator: e,
|
|
5725
6811
|
options: t,
|
|
5726
|
-
optionsMap:
|
|
5727
|
-
...
|
|
6812
|
+
optionsMap: n,
|
|
6813
|
+
...h(a)
|
|
5728
6814
|
});
|
|
5729
6815
|
}
|
|
5730
6816
|
}
|
|
5731
|
-
function
|
|
5732
|
-
const t =
|
|
5733
|
-
if (
|
|
5734
|
-
return { valid: !0, data:
|
|
5735
|
-
if (t === l.object &&
|
|
5736
|
-
const
|
|
6817
|
+
function Ce(i, e) {
|
|
6818
|
+
const t = D(i), a = D(e);
|
|
6819
|
+
if (i === e)
|
|
6820
|
+
return { valid: !0, data: i };
|
|
6821
|
+
if (t === l.object && a === l.object) {
|
|
6822
|
+
const n = x.objectKeys(e), r = x.objectKeys(i).filter((o) => n.indexOf(o) !== -1), s = { ...i, ...e };
|
|
5737
6823
|
for (const o of r) {
|
|
5738
|
-
const m =
|
|
6824
|
+
const m = Ce(i[o], e[o]);
|
|
5739
6825
|
if (!m.valid)
|
|
5740
6826
|
return { valid: !1 };
|
|
5741
6827
|
s[o] = m.data;
|
|
5742
6828
|
}
|
|
5743
6829
|
return { valid: !0, data: s };
|
|
5744
|
-
} else if (t === l.array &&
|
|
5745
|
-
if (
|
|
6830
|
+
} else if (t === l.array && a === l.array) {
|
|
6831
|
+
if (i.length !== e.length)
|
|
5746
6832
|
return { valid: !1 };
|
|
5747
|
-
const
|
|
5748
|
-
for (let r = 0; r <
|
|
5749
|
-
const s =
|
|
6833
|
+
const n = [];
|
|
6834
|
+
for (let r = 0; r < i.length; r++) {
|
|
6835
|
+
const s = i[r], o = e[r], m = Ce(s, o);
|
|
5750
6836
|
if (!m.valid)
|
|
5751
6837
|
return { valid: !1 };
|
|
5752
|
-
|
|
6838
|
+
n.push(m.data);
|
|
5753
6839
|
}
|
|
5754
|
-
return { valid: !0, data:
|
|
5755
|
-
} else return t === l.date &&
|
|
6840
|
+
return { valid: !0, data: n };
|
|
6841
|
+
} else return t === l.date && a === l.date && +i == +e ? { valid: !0, data: i } : { valid: !1 };
|
|
5756
6842
|
}
|
|
5757
6843
|
class ee extends v {
|
|
5758
6844
|
_parse(e) {
|
|
5759
|
-
const { status: t, ctx:
|
|
6845
|
+
const { status: t, ctx: a } = this._processInputParams(e), n = (r, s) => {
|
|
5760
6846
|
if (xe(r) || xe(s))
|
|
5761
|
-
return
|
|
5762
|
-
const o =
|
|
5763
|
-
return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (u(
|
|
6847
|
+
return _;
|
|
6848
|
+
const o = Ce(r.value, s.value);
|
|
6849
|
+
return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (u(a, {
|
|
5764
6850
|
code: c.invalid_intersection_types
|
|
5765
|
-
}),
|
|
6851
|
+
}), _);
|
|
5766
6852
|
};
|
|
5767
|
-
return
|
|
6853
|
+
return a.common.async ? Promise.all([
|
|
5768
6854
|
this._def.left._parseAsync({
|
|
5769
|
-
data:
|
|
5770
|
-
path:
|
|
5771
|
-
parent:
|
|
6855
|
+
data: a.data,
|
|
6856
|
+
path: a.path,
|
|
6857
|
+
parent: a
|
|
5772
6858
|
}),
|
|
5773
6859
|
this._def.right._parseAsync({
|
|
5774
|
-
data:
|
|
5775
|
-
path:
|
|
5776
|
-
parent:
|
|
6860
|
+
data: a.data,
|
|
6861
|
+
path: a.path,
|
|
6862
|
+
parent: a
|
|
5777
6863
|
})
|
|
5778
|
-
]).then(([r, s]) =>
|
|
5779
|
-
data:
|
|
5780
|
-
path:
|
|
5781
|
-
parent:
|
|
6864
|
+
]).then(([r, s]) => n(r, s)) : n(this._def.left._parseSync({
|
|
6865
|
+
data: a.data,
|
|
6866
|
+
path: a.path,
|
|
6867
|
+
parent: a
|
|
5782
6868
|
}), this._def.right._parseSync({
|
|
5783
|
-
data:
|
|
5784
|
-
path:
|
|
5785
|
-
parent:
|
|
6869
|
+
data: a.data,
|
|
6870
|
+
path: a.path,
|
|
6871
|
+
parent: a
|
|
5786
6872
|
}));
|
|
5787
6873
|
}
|
|
5788
6874
|
}
|
|
5789
|
-
ee.create = (
|
|
5790
|
-
left:
|
|
6875
|
+
ee.create = (i, e, t) => new ee({
|
|
6876
|
+
left: i,
|
|
5791
6877
|
right: e,
|
|
5792
6878
|
typeName: f.ZodIntersection,
|
|
5793
|
-
...
|
|
6879
|
+
...h(t)
|
|
5794
6880
|
});
|
|
5795
|
-
class
|
|
6881
|
+
class O extends v {
|
|
5796
6882
|
_parse(e) {
|
|
5797
|
-
const { status: t, ctx:
|
|
5798
|
-
if (
|
|
5799
|
-
return u(
|
|
6883
|
+
const { status: t, ctx: a } = this._processInputParams(e);
|
|
6884
|
+
if (a.parsedType !== l.array)
|
|
6885
|
+
return u(a, {
|
|
5800
6886
|
code: c.invalid_type,
|
|
5801
6887
|
expected: l.array,
|
|
5802
|
-
received:
|
|
5803
|
-
}),
|
|
5804
|
-
if (
|
|
5805
|
-
return u(
|
|
6888
|
+
received: a.parsedType
|
|
6889
|
+
}), _;
|
|
6890
|
+
if (a.data.length < this._def.items.length)
|
|
6891
|
+
return u(a, {
|
|
5806
6892
|
code: c.too_small,
|
|
5807
6893
|
minimum: this._def.items.length,
|
|
5808
6894
|
inclusive: !0,
|
|
5809
6895
|
exact: !1,
|
|
5810
6896
|
type: "array"
|
|
5811
|
-
}),
|
|
5812
|
-
!this._def.rest &&
|
|
6897
|
+
}), _;
|
|
6898
|
+
!this._def.rest && a.data.length > this._def.items.length && (u(a, {
|
|
5813
6899
|
code: c.too_big,
|
|
5814
6900
|
maximum: this._def.items.length,
|
|
5815
6901
|
inclusive: !0,
|
|
5816
6902
|
exact: !1,
|
|
5817
6903
|
type: "array"
|
|
5818
6904
|
}), t.dirty());
|
|
5819
|
-
const r = [...
|
|
6905
|
+
const r = [...a.data].map((s, o) => {
|
|
5820
6906
|
const m = this._def.items[o] || this._def.rest;
|
|
5821
|
-
return m ? m._parse(new
|
|
6907
|
+
return m ? m._parse(new P(a, s, a.path, o)) : null;
|
|
5822
6908
|
}).filter((s) => !!s);
|
|
5823
|
-
return
|
|
6909
|
+
return a.common.async ? Promise.all(r).then((s) => R.mergeArray(t, s)) : R.mergeArray(t, r);
|
|
5824
6910
|
}
|
|
5825
6911
|
get items() {
|
|
5826
6912
|
return this._def.items;
|
|
5827
6913
|
}
|
|
5828
6914
|
rest(e) {
|
|
5829
|
-
return new
|
|
6915
|
+
return new O({
|
|
5830
6916
|
...this._def,
|
|
5831
6917
|
rest: e
|
|
5832
6918
|
});
|
|
5833
6919
|
}
|
|
5834
6920
|
}
|
|
5835
|
-
|
|
5836
|
-
if (!Array.isArray(
|
|
6921
|
+
O.create = (i, e) => {
|
|
6922
|
+
if (!Array.isArray(i))
|
|
5837
6923
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
5838
|
-
return new
|
|
5839
|
-
items:
|
|
6924
|
+
return new O({
|
|
6925
|
+
items: i,
|
|
5840
6926
|
typeName: f.ZodTuple,
|
|
5841
6927
|
rest: null,
|
|
5842
|
-
...
|
|
6928
|
+
...h(e)
|
|
5843
6929
|
});
|
|
5844
6930
|
};
|
|
5845
6931
|
class te extends v {
|
|
@@ -5850,35 +6936,35 @@ class te extends v {
|
|
|
5850
6936
|
return this._def.valueType;
|
|
5851
6937
|
}
|
|
5852
6938
|
_parse(e) {
|
|
5853
|
-
const { status: t, ctx:
|
|
5854
|
-
if (
|
|
5855
|
-
return u(
|
|
6939
|
+
const { status: t, ctx: a } = this._processInputParams(e);
|
|
6940
|
+
if (a.parsedType !== l.object)
|
|
6941
|
+
return u(a, {
|
|
5856
6942
|
code: c.invalid_type,
|
|
5857
6943
|
expected: l.object,
|
|
5858
|
-
received:
|
|
5859
|
-
}),
|
|
5860
|
-
const
|
|
5861
|
-
for (const o in
|
|
5862
|
-
|
|
5863
|
-
key: r._parse(new
|
|
5864
|
-
value: s._parse(new
|
|
6944
|
+
received: a.parsedType
|
|
6945
|
+
}), _;
|
|
6946
|
+
const n = [], r = this._def.keyType, s = this._def.valueType;
|
|
6947
|
+
for (const o in a.data)
|
|
6948
|
+
n.push({
|
|
6949
|
+
key: r._parse(new P(a, o, a.path, o)),
|
|
6950
|
+
value: s._parse(new P(a, a.data[o], a.path, o))
|
|
5865
6951
|
});
|
|
5866
|
-
return
|
|
6952
|
+
return a.common.async ? R.mergeObjectAsync(t, n) : R.mergeObjectSync(t, n);
|
|
5867
6953
|
}
|
|
5868
6954
|
get element() {
|
|
5869
6955
|
return this._def.valueType;
|
|
5870
6956
|
}
|
|
5871
|
-
static create(e, t,
|
|
6957
|
+
static create(e, t, a) {
|
|
5872
6958
|
return t instanceof v ? new te({
|
|
5873
6959
|
keyType: e,
|
|
5874
6960
|
valueType: t,
|
|
5875
6961
|
typeName: f.ZodRecord,
|
|
5876
|
-
...
|
|
6962
|
+
...h(a)
|
|
5877
6963
|
}) : new te({
|
|
5878
|
-
keyType:
|
|
6964
|
+
keyType: k.create(),
|
|
5879
6965
|
valueType: e,
|
|
5880
6966
|
typeName: f.ZodRecord,
|
|
5881
|
-
...
|
|
6967
|
+
...h(t)
|
|
5882
6968
|
});
|
|
5883
6969
|
}
|
|
5884
6970
|
}
|
|
@@ -5890,24 +6976,24 @@ class pe extends v {
|
|
|
5890
6976
|
return this._def.valueType;
|
|
5891
6977
|
}
|
|
5892
6978
|
_parse(e) {
|
|
5893
|
-
const { status: t, ctx:
|
|
5894
|
-
if (
|
|
5895
|
-
return u(
|
|
6979
|
+
const { status: t, ctx: a } = this._processInputParams(e);
|
|
6980
|
+
if (a.parsedType !== l.map)
|
|
6981
|
+
return u(a, {
|
|
5896
6982
|
code: c.invalid_type,
|
|
5897
6983
|
expected: l.map,
|
|
5898
|
-
received:
|
|
5899
|
-
}),
|
|
5900
|
-
const
|
|
5901
|
-
key:
|
|
5902
|
-
value: r._parse(new
|
|
6984
|
+
received: a.parsedType
|
|
6985
|
+
}), _;
|
|
6986
|
+
const n = this._def.keyType, r = this._def.valueType, s = [...a.data.entries()].map(([o, m], d) => ({
|
|
6987
|
+
key: n._parse(new P(a, o, a.path, [d, "key"])),
|
|
6988
|
+
value: r._parse(new P(a, m, a.path, [d, "value"]))
|
|
5903
6989
|
}));
|
|
5904
|
-
if (
|
|
6990
|
+
if (a.common.async) {
|
|
5905
6991
|
const o = /* @__PURE__ */ new Map();
|
|
5906
6992
|
return Promise.resolve().then(async () => {
|
|
5907
6993
|
for (const m of s) {
|
|
5908
6994
|
const d = await m.key, y = await m.value;
|
|
5909
6995
|
if (d.status === "aborted" || y.status === "aborted")
|
|
5910
|
-
return
|
|
6996
|
+
return _;
|
|
5911
6997
|
(d.status === "dirty" || y.status === "dirty") && t.dirty(), o.set(d.value, y.value);
|
|
5912
6998
|
}
|
|
5913
6999
|
return { status: t.value, value: o };
|
|
@@ -5917,56 +7003,56 @@ class pe extends v {
|
|
|
5917
7003
|
for (const m of s) {
|
|
5918
7004
|
const d = m.key, y = m.value;
|
|
5919
7005
|
if (d.status === "aborted" || y.status === "aborted")
|
|
5920
|
-
return
|
|
7006
|
+
return _;
|
|
5921
7007
|
(d.status === "dirty" || y.status === "dirty") && t.dirty(), o.set(d.value, y.value);
|
|
5922
7008
|
}
|
|
5923
7009
|
return { status: t.value, value: o };
|
|
5924
7010
|
}
|
|
5925
7011
|
}
|
|
5926
7012
|
}
|
|
5927
|
-
pe.create = (
|
|
7013
|
+
pe.create = (i, e, t) => new pe({
|
|
5928
7014
|
valueType: e,
|
|
5929
|
-
keyType:
|
|
7015
|
+
keyType: i,
|
|
5930
7016
|
typeName: f.ZodMap,
|
|
5931
|
-
...
|
|
7017
|
+
...h(t)
|
|
5932
7018
|
});
|
|
5933
7019
|
class U extends v {
|
|
5934
7020
|
_parse(e) {
|
|
5935
|
-
const { status: t, ctx:
|
|
5936
|
-
if (
|
|
5937
|
-
return u(
|
|
7021
|
+
const { status: t, ctx: a } = this._processInputParams(e);
|
|
7022
|
+
if (a.parsedType !== l.set)
|
|
7023
|
+
return u(a, {
|
|
5938
7024
|
code: c.invalid_type,
|
|
5939
7025
|
expected: l.set,
|
|
5940
|
-
received:
|
|
5941
|
-
}),
|
|
5942
|
-
const
|
|
5943
|
-
|
|
7026
|
+
received: a.parsedType
|
|
7027
|
+
}), _;
|
|
7028
|
+
const n = this._def;
|
|
7029
|
+
n.minSize !== null && a.data.size < n.minSize.value && (u(a, {
|
|
5944
7030
|
code: c.too_small,
|
|
5945
|
-
minimum:
|
|
7031
|
+
minimum: n.minSize.value,
|
|
5946
7032
|
type: "set",
|
|
5947
7033
|
inclusive: !0,
|
|
5948
7034
|
exact: !1,
|
|
5949
|
-
message:
|
|
5950
|
-
}), t.dirty()),
|
|
7035
|
+
message: n.minSize.message
|
|
7036
|
+
}), t.dirty()), n.maxSize !== null && a.data.size > n.maxSize.value && (u(a, {
|
|
5951
7037
|
code: c.too_big,
|
|
5952
|
-
maximum:
|
|
7038
|
+
maximum: n.maxSize.value,
|
|
5953
7039
|
type: "set",
|
|
5954
7040
|
inclusive: !0,
|
|
5955
7041
|
exact: !1,
|
|
5956
|
-
message:
|
|
7042
|
+
message: n.maxSize.message
|
|
5957
7043
|
}), t.dirty());
|
|
5958
7044
|
const r = this._def.valueType;
|
|
5959
7045
|
function s(m) {
|
|
5960
7046
|
const d = /* @__PURE__ */ new Set();
|
|
5961
7047
|
for (const y of m) {
|
|
5962
7048
|
if (y.status === "aborted")
|
|
5963
|
-
return
|
|
7049
|
+
return _;
|
|
5964
7050
|
y.status === "dirty" && t.dirty(), d.add(y.value);
|
|
5965
7051
|
}
|
|
5966
7052
|
return { status: t.value, value: d };
|
|
5967
7053
|
}
|
|
5968
|
-
const o = [...
|
|
5969
|
-
return
|
|
7054
|
+
const o = [...a.data.values()].map((m, d) => r._parse(new P(a, m, a.path, d)));
|
|
7055
|
+
return a.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
|
|
5970
7056
|
}
|
|
5971
7057
|
min(e, t) {
|
|
5972
7058
|
return new U({
|
|
@@ -5987,12 +7073,12 @@ class U extends v {
|
|
|
5987
7073
|
return this.min(1, e);
|
|
5988
7074
|
}
|
|
5989
7075
|
}
|
|
5990
|
-
U.create = (
|
|
5991
|
-
valueType:
|
|
7076
|
+
U.create = (i, e) => new U({
|
|
7077
|
+
valueType: i,
|
|
5992
7078
|
minSize: null,
|
|
5993
7079
|
maxSize: null,
|
|
5994
7080
|
typeName: f.ZodSet,
|
|
5995
|
-
...
|
|
7081
|
+
...h(e)
|
|
5996
7082
|
});
|
|
5997
7083
|
class z extends v {
|
|
5998
7084
|
constructor() {
|
|
@@ -6005,8 +7091,8 @@ class z extends v {
|
|
|
6005
7091
|
code: c.invalid_type,
|
|
6006
7092
|
expected: l.function,
|
|
6007
7093
|
received: t.parsedType
|
|
6008
|
-
}),
|
|
6009
|
-
function
|
|
7094
|
+
}), _;
|
|
7095
|
+
function a(o, m) {
|
|
6010
7096
|
return de({
|
|
6011
7097
|
data: o,
|
|
6012
7098
|
path: t.path,
|
|
@@ -6014,7 +7100,7 @@ class z extends v {
|
|
|
6014
7100
|
t.common.contextualErrorMap,
|
|
6015
7101
|
t.schemaErrorMap,
|
|
6016
7102
|
ce(),
|
|
6017
|
-
|
|
7103
|
+
Y
|
|
6018
7104
|
].filter((d) => !!d),
|
|
6019
7105
|
issueData: {
|
|
6020
7106
|
code: c.invalid_arguments,
|
|
@@ -6022,7 +7108,7 @@ class z extends v {
|
|
|
6022
7108
|
}
|
|
6023
7109
|
});
|
|
6024
7110
|
}
|
|
6025
|
-
function
|
|
7111
|
+
function n(o, m) {
|
|
6026
7112
|
return de({
|
|
6027
7113
|
data: o,
|
|
6028
7114
|
path: t.path,
|
|
@@ -6030,7 +7116,7 @@ class z extends v {
|
|
|
6030
7116
|
t.common.contextualErrorMap,
|
|
6031
7117
|
t.schemaErrorMap,
|
|
6032
7118
|
ce(),
|
|
6033
|
-
|
|
7119
|
+
Y
|
|
6034
7120
|
].filter((d) => !!d),
|
|
6035
7121
|
issueData: {
|
|
6036
7122
|
code: c.invalid_return_type,
|
|
@@ -6039,26 +7125,26 @@ class z extends v {
|
|
|
6039
7125
|
});
|
|
6040
7126
|
}
|
|
6041
7127
|
const r = { errorMap: t.common.contextualErrorMap }, s = t.data;
|
|
6042
|
-
if (this._def.returns instanceof
|
|
7128
|
+
if (this._def.returns instanceof F) {
|
|
6043
7129
|
const o = this;
|
|
6044
|
-
return
|
|
7130
|
+
return S(async function(...m) {
|
|
6045
7131
|
const d = new E([]), y = await o._def.args.parseAsync(m, r).catch((ve) => {
|
|
6046
|
-
throw d.addIssue(
|
|
6047
|
-
}),
|
|
6048
|
-
return await o._def.returns._def.type.parseAsync(
|
|
6049
|
-
throw d.addIssue(
|
|
7132
|
+
throw d.addIssue(a(m, ve)), d;
|
|
7133
|
+
}), A = await Reflect.apply(s, this, y);
|
|
7134
|
+
return await o._def.returns._def.type.parseAsync(A, r).catch((ve) => {
|
|
7135
|
+
throw d.addIssue(n(A, ve)), d;
|
|
6050
7136
|
});
|
|
6051
7137
|
});
|
|
6052
7138
|
} else {
|
|
6053
7139
|
const o = this;
|
|
6054
|
-
return
|
|
7140
|
+
return S(function(...m) {
|
|
6055
7141
|
const d = o._def.args.safeParse(m, r);
|
|
6056
7142
|
if (!d.success)
|
|
6057
|
-
throw new E([
|
|
6058
|
-
const y = Reflect.apply(s, this, d.data),
|
|
6059
|
-
if (!
|
|
6060
|
-
throw new E([
|
|
6061
|
-
return
|
|
7143
|
+
throw new E([a(m, d.error)]);
|
|
7144
|
+
const y = Reflect.apply(s, this, d.data), A = o._def.returns.safeParse(y, r);
|
|
7145
|
+
if (!A.success)
|
|
7146
|
+
throw new E([n(y, A.error)]);
|
|
7147
|
+
return A.data;
|
|
6062
7148
|
});
|
|
6063
7149
|
}
|
|
6064
7150
|
}
|
|
@@ -6071,7 +7157,7 @@ class z extends v {
|
|
|
6071
7157
|
args(...e) {
|
|
6072
7158
|
return new z({
|
|
6073
7159
|
...this._def,
|
|
6074
|
-
args:
|
|
7160
|
+
args: O.create(e).rest(Z.create())
|
|
6075
7161
|
});
|
|
6076
7162
|
}
|
|
6077
7163
|
returns(e) {
|
|
@@ -6086,16 +7172,16 @@ class z extends v {
|
|
|
6086
7172
|
strictImplement(e) {
|
|
6087
7173
|
return this.parse(e);
|
|
6088
7174
|
}
|
|
6089
|
-
static create(e, t,
|
|
7175
|
+
static create(e, t, a) {
|
|
6090
7176
|
return new z({
|
|
6091
|
-
args: e ||
|
|
6092
|
-
returns: t ||
|
|
7177
|
+
args: e || O.create([]).rest(Z.create()),
|
|
7178
|
+
returns: t || Z.create(),
|
|
6093
7179
|
typeName: f.ZodFunction,
|
|
6094
|
-
...
|
|
7180
|
+
...h(a)
|
|
6095
7181
|
});
|
|
6096
7182
|
}
|
|
6097
7183
|
}
|
|
6098
|
-
class
|
|
7184
|
+
class ie extends v {
|
|
6099
7185
|
get schema() {
|
|
6100
7186
|
return this._def.getter();
|
|
6101
7187
|
}
|
|
@@ -6104,12 +7190,12 @@ class ae extends v {
|
|
|
6104
7190
|
return this._def.getter()._parse({ data: t.data, path: t.path, parent: t });
|
|
6105
7191
|
}
|
|
6106
7192
|
}
|
|
6107
|
-
|
|
6108
|
-
getter:
|
|
7193
|
+
ie.create = (i, e) => new ie({
|
|
7194
|
+
getter: i,
|
|
6109
7195
|
typeName: f.ZodLazy,
|
|
6110
|
-
...
|
|
7196
|
+
...h(e)
|
|
6111
7197
|
});
|
|
6112
|
-
class
|
|
7198
|
+
class ae extends v {
|
|
6113
7199
|
_parse(e) {
|
|
6114
7200
|
if (e.data !== this._def.value) {
|
|
6115
7201
|
const t = this._getOrReturnCtx(e);
|
|
@@ -6117,7 +7203,7 @@ class ne extends v {
|
|
|
6117
7203
|
received: t.data,
|
|
6118
7204
|
code: c.invalid_literal,
|
|
6119
7205
|
expected: this._def.value
|
|
6120
|
-
}),
|
|
7206
|
+
}), _;
|
|
6121
7207
|
}
|
|
6122
7208
|
return { status: "valid", value: e.data };
|
|
6123
7209
|
}
|
|
@@ -6125,37 +7211,37 @@ class ne extends v {
|
|
|
6125
7211
|
return this._def.value;
|
|
6126
7212
|
}
|
|
6127
7213
|
}
|
|
6128
|
-
|
|
6129
|
-
value:
|
|
7214
|
+
ae.create = (i, e) => new ae({
|
|
7215
|
+
value: i,
|
|
6130
7216
|
typeName: f.ZodLiteral,
|
|
6131
|
-
...
|
|
7217
|
+
...h(e)
|
|
6132
7218
|
});
|
|
6133
|
-
function
|
|
6134
|
-
return new
|
|
6135
|
-
values:
|
|
7219
|
+
function ke(i, e) {
|
|
7220
|
+
return new V({
|
|
7221
|
+
values: i,
|
|
6136
7222
|
typeName: f.ZodEnum,
|
|
6137
|
-
...
|
|
7223
|
+
...h(e)
|
|
6138
7224
|
});
|
|
6139
7225
|
}
|
|
6140
|
-
class
|
|
7226
|
+
class V extends v {
|
|
6141
7227
|
_parse(e) {
|
|
6142
7228
|
if (typeof e.data != "string") {
|
|
6143
|
-
const t = this._getOrReturnCtx(e),
|
|
7229
|
+
const t = this._getOrReturnCtx(e), a = this._def.values;
|
|
6144
7230
|
return u(t, {
|
|
6145
|
-
expected: x.joinValues(
|
|
7231
|
+
expected: x.joinValues(a),
|
|
6146
7232
|
received: t.parsedType,
|
|
6147
7233
|
code: c.invalid_type
|
|
6148
|
-
}),
|
|
7234
|
+
}), _;
|
|
6149
7235
|
}
|
|
6150
7236
|
if (this._def.values.indexOf(e.data) === -1) {
|
|
6151
|
-
const t = this._getOrReturnCtx(e),
|
|
7237
|
+
const t = this._getOrReturnCtx(e), a = this._def.values;
|
|
6152
7238
|
return u(t, {
|
|
6153
7239
|
received: t.data,
|
|
6154
7240
|
code: c.invalid_enum_value,
|
|
6155
|
-
options:
|
|
6156
|
-
}),
|
|
7241
|
+
options: a
|
|
7242
|
+
}), _;
|
|
6157
7243
|
}
|
|
6158
|
-
return
|
|
7244
|
+
return S(e.data);
|
|
6159
7245
|
}
|
|
6160
7246
|
get options() {
|
|
6161
7247
|
return this._def.values;
|
|
@@ -6179,44 +7265,44 @@ class Z extends v {
|
|
|
6179
7265
|
return e;
|
|
6180
7266
|
}
|
|
6181
7267
|
extract(e) {
|
|
6182
|
-
return
|
|
7268
|
+
return V.create(e);
|
|
6183
7269
|
}
|
|
6184
7270
|
exclude(e) {
|
|
6185
|
-
return
|
|
7271
|
+
return V.create(this.options.filter((t) => !e.includes(t)));
|
|
6186
7272
|
}
|
|
6187
7273
|
}
|
|
6188
|
-
|
|
6189
|
-
class
|
|
7274
|
+
V.create = ke;
|
|
7275
|
+
class ne extends v {
|
|
6190
7276
|
_parse(e) {
|
|
6191
|
-
const t = x.getValidEnumValues(this._def.values),
|
|
6192
|
-
if (
|
|
6193
|
-
const
|
|
6194
|
-
return u(
|
|
6195
|
-
expected: x.joinValues(
|
|
6196
|
-
received:
|
|
7277
|
+
const t = x.getValidEnumValues(this._def.values), a = this._getOrReturnCtx(e);
|
|
7278
|
+
if (a.parsedType !== l.string && a.parsedType !== l.number) {
|
|
7279
|
+
const n = x.objectValues(t);
|
|
7280
|
+
return u(a, {
|
|
7281
|
+
expected: x.joinValues(n),
|
|
7282
|
+
received: a.parsedType,
|
|
6197
7283
|
code: c.invalid_type
|
|
6198
|
-
}),
|
|
7284
|
+
}), _;
|
|
6199
7285
|
}
|
|
6200
7286
|
if (t.indexOf(e.data) === -1) {
|
|
6201
|
-
const
|
|
6202
|
-
return u(
|
|
6203
|
-
received:
|
|
7287
|
+
const n = x.objectValues(t);
|
|
7288
|
+
return u(a, {
|
|
7289
|
+
received: a.data,
|
|
6204
7290
|
code: c.invalid_enum_value,
|
|
6205
|
-
options:
|
|
6206
|
-
}),
|
|
7291
|
+
options: n
|
|
7292
|
+
}), _;
|
|
6207
7293
|
}
|
|
6208
|
-
return
|
|
7294
|
+
return S(e.data);
|
|
6209
7295
|
}
|
|
6210
7296
|
get enum() {
|
|
6211
7297
|
return this._def.values;
|
|
6212
7298
|
}
|
|
6213
7299
|
}
|
|
6214
|
-
|
|
6215
|
-
values:
|
|
7300
|
+
ne.create = (i, e) => new ne({
|
|
7301
|
+
values: i,
|
|
6216
7302
|
typeName: f.ZodNativeEnum,
|
|
6217
|
-
...
|
|
7303
|
+
...h(e)
|
|
6218
7304
|
});
|
|
6219
|
-
class
|
|
7305
|
+
class F extends v {
|
|
6220
7306
|
unwrap() {
|
|
6221
7307
|
return this._def.type;
|
|
6222
7308
|
}
|
|
@@ -6227,20 +7313,20 @@ class Y extends v {
|
|
|
6227
7313
|
code: c.invalid_type,
|
|
6228
7314
|
expected: l.promise,
|
|
6229
7315
|
received: t.parsedType
|
|
6230
|
-
}),
|
|
6231
|
-
const
|
|
6232
|
-
return
|
|
7316
|
+
}), _;
|
|
7317
|
+
const a = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
|
|
7318
|
+
return S(a.then((n) => this._def.type.parseAsync(n, {
|
|
6233
7319
|
path: t.path,
|
|
6234
7320
|
errorMap: t.common.contextualErrorMap
|
|
6235
7321
|
})));
|
|
6236
7322
|
}
|
|
6237
7323
|
}
|
|
6238
|
-
|
|
6239
|
-
type:
|
|
7324
|
+
F.create = (i, e) => new F({
|
|
7325
|
+
type: i,
|
|
6240
7326
|
typeName: f.ZodPromise,
|
|
6241
|
-
...
|
|
7327
|
+
...h(e)
|
|
6242
7328
|
});
|
|
6243
|
-
class
|
|
7329
|
+
class I extends v {
|
|
6244
7330
|
innerType() {
|
|
6245
7331
|
return this._def.schema;
|
|
6246
7332
|
}
|
|
@@ -6248,110 +7334,110 @@ class M extends v {
|
|
|
6248
7334
|
return this._def.schema._def.typeName === f.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
6249
7335
|
}
|
|
6250
7336
|
_parse(e) {
|
|
6251
|
-
const { status: t, ctx:
|
|
7337
|
+
const { status: t, ctx: a } = this._processInputParams(e), n = this._def.effect || null, r = {
|
|
6252
7338
|
addIssue: (s) => {
|
|
6253
|
-
u(
|
|
7339
|
+
u(a, s), s.fatal ? t.abort() : t.dirty();
|
|
6254
7340
|
},
|
|
6255
7341
|
get path() {
|
|
6256
|
-
return
|
|
7342
|
+
return a.path;
|
|
6257
7343
|
}
|
|
6258
7344
|
};
|
|
6259
|
-
if (r.addIssue = r.addIssue.bind(r),
|
|
6260
|
-
const s =
|
|
6261
|
-
return
|
|
7345
|
+
if (r.addIssue = r.addIssue.bind(r), n.type === "preprocess") {
|
|
7346
|
+
const s = n.transform(a.data, r);
|
|
7347
|
+
return a.common.issues.length ? {
|
|
6262
7348
|
status: "dirty",
|
|
6263
|
-
value:
|
|
6264
|
-
} :
|
|
7349
|
+
value: a.data
|
|
7350
|
+
} : a.common.async ? Promise.resolve(s).then((o) => this._def.schema._parseAsync({
|
|
6265
7351
|
data: o,
|
|
6266
|
-
path:
|
|
6267
|
-
parent:
|
|
7352
|
+
path: a.path,
|
|
7353
|
+
parent: a
|
|
6268
7354
|
})) : this._def.schema._parseSync({
|
|
6269
7355
|
data: s,
|
|
6270
|
-
path:
|
|
6271
|
-
parent:
|
|
7356
|
+
path: a.path,
|
|
7357
|
+
parent: a
|
|
6272
7358
|
});
|
|
6273
7359
|
}
|
|
6274
|
-
if (
|
|
7360
|
+
if (n.type === "refinement") {
|
|
6275
7361
|
const s = (o) => {
|
|
6276
|
-
const m =
|
|
6277
|
-
if (
|
|
7362
|
+
const m = n.refinement(o, r);
|
|
7363
|
+
if (a.common.async)
|
|
6278
7364
|
return Promise.resolve(m);
|
|
6279
7365
|
if (m instanceof Promise)
|
|
6280
7366
|
throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
6281
7367
|
return o;
|
|
6282
7368
|
};
|
|
6283
|
-
if (
|
|
7369
|
+
if (a.common.async === !1) {
|
|
6284
7370
|
const o = this._def.schema._parseSync({
|
|
6285
|
-
data:
|
|
6286
|
-
path:
|
|
6287
|
-
parent:
|
|
7371
|
+
data: a.data,
|
|
7372
|
+
path: a.path,
|
|
7373
|
+
parent: a
|
|
6288
7374
|
});
|
|
6289
|
-
return o.status === "aborted" ?
|
|
7375
|
+
return o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), s(o.value), { status: t.value, value: o.value });
|
|
6290
7376
|
} else
|
|
6291
|
-
return this._def.schema._parseAsync({ data:
|
|
7377
|
+
return this._def.schema._parseAsync({ data: a.data, path: a.path, parent: a }).then((o) => o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
|
|
6292
7378
|
}
|
|
6293
|
-
if (
|
|
6294
|
-
if (
|
|
7379
|
+
if (n.type === "transform")
|
|
7380
|
+
if (a.common.async === !1) {
|
|
6295
7381
|
const s = this._def.schema._parseSync({
|
|
6296
|
-
data:
|
|
6297
|
-
path:
|
|
6298
|
-
parent:
|
|
7382
|
+
data: a.data,
|
|
7383
|
+
path: a.path,
|
|
7384
|
+
parent: a
|
|
6299
7385
|
});
|
|
6300
7386
|
if (!H(s))
|
|
6301
7387
|
return s;
|
|
6302
|
-
const o =
|
|
7388
|
+
const o = n.transform(s.value, r);
|
|
6303
7389
|
if (o instanceof Promise)
|
|
6304
7390
|
throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
6305
7391
|
return { status: t.value, value: o };
|
|
6306
7392
|
} else
|
|
6307
|
-
return this._def.schema._parseAsync({ data:
|
|
6308
|
-
x.assertNever(
|
|
7393
|
+
return this._def.schema._parseAsync({ data: a.data, path: a.path, parent: a }).then((s) => H(s) ? Promise.resolve(n.transform(s.value, r)).then((o) => ({ status: t.value, value: o })) : s);
|
|
7394
|
+
x.assertNever(n);
|
|
6309
7395
|
}
|
|
6310
7396
|
}
|
|
6311
|
-
|
|
6312
|
-
schema:
|
|
7397
|
+
I.create = (i, e, t) => new I({
|
|
7398
|
+
schema: i,
|
|
6313
7399
|
typeName: f.ZodEffects,
|
|
6314
7400
|
effect: e,
|
|
6315
|
-
...
|
|
7401
|
+
...h(t)
|
|
6316
7402
|
});
|
|
6317
|
-
|
|
7403
|
+
I.createWithPreprocess = (i, e, t) => new I({
|
|
6318
7404
|
schema: e,
|
|
6319
|
-
effect: { type: "preprocess", transform:
|
|
7405
|
+
effect: { type: "preprocess", transform: i },
|
|
6320
7406
|
typeName: f.ZodEffects,
|
|
6321
|
-
...
|
|
7407
|
+
...h(t)
|
|
6322
7408
|
});
|
|
6323
|
-
class
|
|
7409
|
+
class N extends v {
|
|
6324
7410
|
_parse(e) {
|
|
6325
|
-
return this._getType(e) === l.undefined ?
|
|
7411
|
+
return this._getType(e) === l.undefined ? S(void 0) : this._def.innerType._parse(e);
|
|
6326
7412
|
}
|
|
6327
7413
|
unwrap() {
|
|
6328
7414
|
return this._def.innerType;
|
|
6329
7415
|
}
|
|
6330
7416
|
}
|
|
6331
|
-
|
|
6332
|
-
innerType:
|
|
7417
|
+
N.create = (i, e) => new N({
|
|
7418
|
+
innerType: i,
|
|
6333
7419
|
typeName: f.ZodOptional,
|
|
6334
|
-
...
|
|
7420
|
+
...h(e)
|
|
6335
7421
|
});
|
|
6336
7422
|
class q extends v {
|
|
6337
7423
|
_parse(e) {
|
|
6338
|
-
return this._getType(e) === l.null ?
|
|
7424
|
+
return this._getType(e) === l.null ? S(null) : this._def.innerType._parse(e);
|
|
6339
7425
|
}
|
|
6340
7426
|
unwrap() {
|
|
6341
7427
|
return this._def.innerType;
|
|
6342
7428
|
}
|
|
6343
7429
|
}
|
|
6344
|
-
q.create = (
|
|
6345
|
-
innerType:
|
|
7430
|
+
q.create = (i, e) => new q({
|
|
7431
|
+
innerType: i,
|
|
6346
7432
|
typeName: f.ZodNullable,
|
|
6347
|
-
...
|
|
7433
|
+
...h(e)
|
|
6348
7434
|
});
|
|
6349
7435
|
class re extends v {
|
|
6350
7436
|
_parse(e) {
|
|
6351
7437
|
const { ctx: t } = this._processInputParams(e);
|
|
6352
|
-
let
|
|
6353
|
-
return t.parsedType === l.undefined && (
|
|
6354
|
-
data:
|
|
7438
|
+
let a = t.data;
|
|
7439
|
+
return t.parsedType === l.undefined && (a = this._def.defaultValue()), this._def.innerType._parse({
|
|
7440
|
+
data: a,
|
|
6355
7441
|
path: t.path,
|
|
6356
7442
|
parent: t
|
|
6357
7443
|
});
|
|
@@ -6360,42 +7446,42 @@ class re extends v {
|
|
|
6360
7446
|
return this._def.innerType;
|
|
6361
7447
|
}
|
|
6362
7448
|
}
|
|
6363
|
-
re.create = (
|
|
6364
|
-
innerType:
|
|
7449
|
+
re.create = (i, e) => new re({
|
|
7450
|
+
innerType: i,
|
|
6365
7451
|
typeName: f.ZodDefault,
|
|
6366
7452
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
6367
|
-
...
|
|
7453
|
+
...h(e)
|
|
6368
7454
|
});
|
|
6369
7455
|
class fe extends v {
|
|
6370
7456
|
_parse(e) {
|
|
6371
|
-
const { ctx: t } = this._processInputParams(e),
|
|
7457
|
+
const { ctx: t } = this._processInputParams(e), a = {
|
|
6372
7458
|
...t,
|
|
6373
7459
|
common: {
|
|
6374
7460
|
...t.common,
|
|
6375
7461
|
issues: []
|
|
6376
7462
|
}
|
|
6377
|
-
},
|
|
6378
|
-
data:
|
|
6379
|
-
path:
|
|
7463
|
+
}, n = this._def.innerType._parse({
|
|
7464
|
+
data: a.data,
|
|
7465
|
+
path: a.path,
|
|
6380
7466
|
parent: {
|
|
6381
|
-
...
|
|
7467
|
+
...a
|
|
6382
7468
|
}
|
|
6383
7469
|
});
|
|
6384
|
-
return le(
|
|
7470
|
+
return le(n) ? n.then((r) => ({
|
|
6385
7471
|
status: "valid",
|
|
6386
7472
|
value: r.status === "valid" ? r.value : this._def.catchValue({
|
|
6387
7473
|
get error() {
|
|
6388
|
-
return new E(
|
|
7474
|
+
return new E(a.common.issues);
|
|
6389
7475
|
},
|
|
6390
|
-
input:
|
|
7476
|
+
input: a.data
|
|
6391
7477
|
})
|
|
6392
7478
|
})) : {
|
|
6393
7479
|
status: "valid",
|
|
6394
|
-
value:
|
|
7480
|
+
value: n.status === "valid" ? n.value : this._def.catchValue({
|
|
6395
7481
|
get error() {
|
|
6396
|
-
return new E(
|
|
7482
|
+
return new E(a.common.issues);
|
|
6397
7483
|
},
|
|
6398
|
-
input:
|
|
7484
|
+
input: a.data
|
|
6399
7485
|
})
|
|
6400
7486
|
};
|
|
6401
7487
|
}
|
|
@@ -6403,35 +7489,35 @@ class fe extends v {
|
|
|
6403
7489
|
return this._def.innerType;
|
|
6404
7490
|
}
|
|
6405
7491
|
}
|
|
6406
|
-
fe.create = (
|
|
6407
|
-
innerType:
|
|
7492
|
+
fe.create = (i, e) => new fe({
|
|
7493
|
+
innerType: i,
|
|
6408
7494
|
typeName: f.ZodCatch,
|
|
6409
7495
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
6410
|
-
...
|
|
7496
|
+
...h(e)
|
|
6411
7497
|
});
|
|
6412
|
-
class
|
|
7498
|
+
class ge extends v {
|
|
6413
7499
|
_parse(e) {
|
|
6414
7500
|
if (this._getType(e) !== l.nan) {
|
|
6415
|
-
const
|
|
6416
|
-
return u(
|
|
7501
|
+
const a = this._getOrReturnCtx(e);
|
|
7502
|
+
return u(a, {
|
|
6417
7503
|
code: c.invalid_type,
|
|
6418
7504
|
expected: l.nan,
|
|
6419
|
-
received:
|
|
6420
|
-
}),
|
|
7505
|
+
received: a.parsedType
|
|
7506
|
+
}), _;
|
|
6421
7507
|
}
|
|
6422
7508
|
return { status: "valid", value: e.data };
|
|
6423
7509
|
}
|
|
6424
7510
|
}
|
|
6425
|
-
|
|
7511
|
+
ge.create = (i) => new ge({
|
|
6426
7512
|
typeName: f.ZodNaN,
|
|
6427
|
-
...
|
|
7513
|
+
...h(i)
|
|
6428
7514
|
});
|
|
6429
|
-
const
|
|
7515
|
+
const mt = Symbol("zod_brand");
|
|
6430
7516
|
class Ee extends v {
|
|
6431
7517
|
_parse(e) {
|
|
6432
|
-
const { ctx: t } = this._processInputParams(e),
|
|
7518
|
+
const { ctx: t } = this._processInputParams(e), a = t.data;
|
|
6433
7519
|
return this._def.type._parse({
|
|
6434
|
-
data:
|
|
7520
|
+
data: a,
|
|
6435
7521
|
path: t.path,
|
|
6436
7522
|
parent: t
|
|
6437
7523
|
});
|
|
@@ -6442,33 +7528,33 @@ class Ee extends v {
|
|
|
6442
7528
|
}
|
|
6443
7529
|
class se extends v {
|
|
6444
7530
|
_parse(e) {
|
|
6445
|
-
const { status: t, ctx:
|
|
6446
|
-
if (
|
|
7531
|
+
const { status: t, ctx: a } = this._processInputParams(e);
|
|
7532
|
+
if (a.common.async)
|
|
6447
7533
|
return (async () => {
|
|
6448
7534
|
const r = await this._def.in._parseAsync({
|
|
6449
|
-
data:
|
|
6450
|
-
path:
|
|
6451
|
-
parent:
|
|
7535
|
+
data: a.data,
|
|
7536
|
+
path: a.path,
|
|
7537
|
+
parent: a
|
|
6452
7538
|
});
|
|
6453
|
-
return r.status === "aborted" ?
|
|
7539
|
+
return r.status === "aborted" ? _ : r.status === "dirty" ? (t.dirty(), Ae(r.value)) : this._def.out._parseAsync({
|
|
6454
7540
|
data: r.value,
|
|
6455
|
-
path:
|
|
6456
|
-
parent:
|
|
7541
|
+
path: a.path,
|
|
7542
|
+
parent: a
|
|
6457
7543
|
});
|
|
6458
7544
|
})();
|
|
6459
7545
|
{
|
|
6460
|
-
const
|
|
6461
|
-
data:
|
|
6462
|
-
path:
|
|
6463
|
-
parent:
|
|
7546
|
+
const n = this._def.in._parseSync({
|
|
7547
|
+
data: a.data,
|
|
7548
|
+
path: a.path,
|
|
7549
|
+
parent: a
|
|
6464
7550
|
});
|
|
6465
|
-
return
|
|
7551
|
+
return n.status === "aborted" ? _ : n.status === "dirty" ? (t.dirty(), {
|
|
6466
7552
|
status: "dirty",
|
|
6467
|
-
value:
|
|
7553
|
+
value: n.value
|
|
6468
7554
|
}) : this._def.out._parseSync({
|
|
6469
|
-
data:
|
|
6470
|
-
path:
|
|
6471
|
-
parent:
|
|
7555
|
+
data: n.value,
|
|
7556
|
+
path: a.path,
|
|
7557
|
+
parent: a
|
|
6472
7558
|
});
|
|
6473
7559
|
}
|
|
6474
7560
|
}
|
|
@@ -6480,54 +7566,54 @@ class se extends v {
|
|
|
6480
7566
|
});
|
|
6481
7567
|
}
|
|
6482
7568
|
}
|
|
6483
|
-
class
|
|
7569
|
+
class _e extends v {
|
|
6484
7570
|
_parse(e) {
|
|
6485
7571
|
const t = this._def.innerType._parse(e);
|
|
6486
7572
|
return H(t) && (t.value = Object.freeze(t.value)), t;
|
|
6487
7573
|
}
|
|
6488
7574
|
}
|
|
6489
|
-
|
|
6490
|
-
innerType:
|
|
7575
|
+
_e.create = (i, e) => new _e({
|
|
7576
|
+
innerType: i,
|
|
6491
7577
|
typeName: f.ZodReadonly,
|
|
6492
|
-
...
|
|
7578
|
+
...h(e)
|
|
6493
7579
|
});
|
|
6494
|
-
const
|
|
7580
|
+
const Me = (i, e = {}, t) => i ? W.create().superRefine((a, n) => {
|
|
6495
7581
|
var r, s;
|
|
6496
|
-
if (!a
|
|
6497
|
-
const o = typeof e == "function" ? e(
|
|
6498
|
-
|
|
7582
|
+
if (!i(a)) {
|
|
7583
|
+
const o = typeof e == "function" ? e(a) : typeof e == "string" ? { message: e } : e, m = (s = (r = o.fatal) !== null && r !== void 0 ? r : t) !== null && s !== void 0 ? s : !0, d = typeof o == "string" ? { message: o } : o;
|
|
7584
|
+
n.addIssue({ code: "custom", ...d, fatal: m });
|
|
6499
7585
|
}
|
|
6500
|
-
}) : W.create(),
|
|
7586
|
+
}) : W.create(), pt = {
|
|
6501
7587
|
object: w.lazycreate
|
|
6502
7588
|
};
|
|
6503
7589
|
var f;
|
|
6504
|
-
(function(
|
|
6505
|
-
|
|
7590
|
+
(function(i) {
|
|
7591
|
+
i.ZodString = "ZodString", i.ZodNumber = "ZodNumber", i.ZodNaN = "ZodNaN", i.ZodBigInt = "ZodBigInt", i.ZodBoolean = "ZodBoolean", i.ZodDate = "ZodDate", i.ZodSymbol = "ZodSymbol", i.ZodUndefined = "ZodUndefined", i.ZodNull = "ZodNull", i.ZodAny = "ZodAny", i.ZodUnknown = "ZodUnknown", i.ZodNever = "ZodNever", i.ZodVoid = "ZodVoid", i.ZodArray = "ZodArray", i.ZodObject = "ZodObject", i.ZodUnion = "ZodUnion", i.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", i.ZodIntersection = "ZodIntersection", i.ZodTuple = "ZodTuple", i.ZodRecord = "ZodRecord", i.ZodMap = "ZodMap", i.ZodSet = "ZodSet", i.ZodFunction = "ZodFunction", i.ZodLazy = "ZodLazy", i.ZodLiteral = "ZodLiteral", i.ZodEnum = "ZodEnum", i.ZodEffects = "ZodEffects", i.ZodNativeEnum = "ZodNativeEnum", i.ZodOptional = "ZodOptional", i.ZodNullable = "ZodNullable", i.ZodDefault = "ZodDefault", i.ZodCatch = "ZodCatch", i.ZodPromise = "ZodPromise", i.ZodBranded = "ZodBranded", i.ZodPipeline = "ZodPipeline", i.ZodReadonly = "ZodReadonly";
|
|
6506
7592
|
})(f || (f = {}));
|
|
6507
|
-
const
|
|
6508
|
-
message: `Input not instance of ${
|
|
6509
|
-
}) =>
|
|
6510
|
-
string: (
|
|
6511
|
-
number: (
|
|
6512
|
-
boolean: (
|
|
6513
|
-
...
|
|
7593
|
+
const ft = (i, e = {
|
|
7594
|
+
message: `Input not instance of ${i.name}`
|
|
7595
|
+
}) => Me((t) => t instanceof i, e), Ie = k.create, Pe = j.create, gt = ge.create, _t = B.create, Oe = Q.create, ht = $.create, vt = ue.create, yt = J.create, bt = X.create, xt = W.create, wt = Z.create, Ct = L.create, Tt = me.create, Rt = M.create, St = w.create, At = w.strictCreate, kt = K.create, Et = he.create, Mt = ee.create, It = O.create, Pt = te.create, Ot = pe.create, Nt = U.create, Lt = z.create, Dt = ie.create, jt = ae.create, Bt = V.create, Vt = ne.create, Zt = F.create, Re = I.create, $t = N.create, Ut = q.create, qt = I.createWithPreprocess, Gt = se.create, zt = () => Ie().optional(), Wt = () => Pe().optional(), Ft = () => Oe().optional(), Yt = {
|
|
7596
|
+
string: (i) => k.create({ ...i, coerce: !0 }),
|
|
7597
|
+
number: (i) => j.create({ ...i, coerce: !0 }),
|
|
7598
|
+
boolean: (i) => Q.create({
|
|
7599
|
+
...i,
|
|
6514
7600
|
coerce: !0
|
|
6515
7601
|
}),
|
|
6516
|
-
bigint: (
|
|
6517
|
-
date: (
|
|
6518
|
-
},
|
|
6519
|
-
var
|
|
7602
|
+
bigint: (i) => B.create({ ...i, coerce: !0 }),
|
|
7603
|
+
date: (i) => $.create({ ...i, coerce: !0 })
|
|
7604
|
+
}, Ht = _;
|
|
7605
|
+
var Qt = /* @__PURE__ */ Object.freeze({
|
|
6520
7606
|
__proto__: null,
|
|
6521
|
-
defaultErrorMap:
|
|
6522
|
-
setErrorMap:
|
|
7607
|
+
defaultErrorMap: Y,
|
|
7608
|
+
setErrorMap: Ke,
|
|
6523
7609
|
getErrorMap: ce,
|
|
6524
7610
|
makeIssue: de,
|
|
6525
|
-
EMPTY_PATH:
|
|
7611
|
+
EMPTY_PATH: et,
|
|
6526
7612
|
addIssueToContext: u,
|
|
6527
|
-
ParseStatus:
|
|
6528
|
-
INVALID:
|
|
6529
|
-
DIRTY:
|
|
6530
|
-
OK:
|
|
7613
|
+
ParseStatus: R,
|
|
7614
|
+
INVALID: _,
|
|
7615
|
+
DIRTY: Ae,
|
|
7616
|
+
OK: S,
|
|
6531
7617
|
isAborted: xe,
|
|
6532
7618
|
isDirty: we,
|
|
6533
7619
|
isValid: H,
|
|
@@ -6539,10 +7625,10 @@ var Wt = /* @__PURE__ */ Object.freeze({
|
|
|
6539
7625
|
return be;
|
|
6540
7626
|
},
|
|
6541
7627
|
ZodParsedType: l,
|
|
6542
|
-
getParsedType:
|
|
7628
|
+
getParsedType: D,
|
|
6543
7629
|
ZodType: v,
|
|
6544
|
-
ZodString:
|
|
6545
|
-
ZodNumber:
|
|
7630
|
+
ZodString: k,
|
|
7631
|
+
ZodNumber: j,
|
|
6546
7632
|
ZodBigInt: B,
|
|
6547
7633
|
ZodBoolean: Q,
|
|
6548
7634
|
ZodDate: $,
|
|
@@ -6550,88 +7636,88 @@ var Wt = /* @__PURE__ */ Object.freeze({
|
|
|
6550
7636
|
ZodUndefined: J,
|
|
6551
7637
|
ZodNull: X,
|
|
6552
7638
|
ZodAny: W,
|
|
6553
|
-
ZodUnknown:
|
|
7639
|
+
ZodUnknown: Z,
|
|
6554
7640
|
ZodNever: L,
|
|
6555
7641
|
ZodVoid: me,
|
|
6556
|
-
ZodArray:
|
|
7642
|
+
ZodArray: M,
|
|
6557
7643
|
ZodObject: w,
|
|
6558
7644
|
ZodUnion: K,
|
|
6559
|
-
ZodDiscriminatedUnion:
|
|
7645
|
+
ZodDiscriminatedUnion: he,
|
|
6560
7646
|
ZodIntersection: ee,
|
|
6561
|
-
ZodTuple:
|
|
7647
|
+
ZodTuple: O,
|
|
6562
7648
|
ZodRecord: te,
|
|
6563
7649
|
ZodMap: pe,
|
|
6564
7650
|
ZodSet: U,
|
|
6565
7651
|
ZodFunction: z,
|
|
6566
|
-
ZodLazy:
|
|
6567
|
-
ZodLiteral:
|
|
6568
|
-
ZodEnum:
|
|
6569
|
-
ZodNativeEnum:
|
|
6570
|
-
ZodPromise:
|
|
6571
|
-
ZodEffects:
|
|
6572
|
-
ZodTransformer:
|
|
6573
|
-
ZodOptional:
|
|
7652
|
+
ZodLazy: ie,
|
|
7653
|
+
ZodLiteral: ae,
|
|
7654
|
+
ZodEnum: V,
|
|
7655
|
+
ZodNativeEnum: ne,
|
|
7656
|
+
ZodPromise: F,
|
|
7657
|
+
ZodEffects: I,
|
|
7658
|
+
ZodTransformer: I,
|
|
7659
|
+
ZodOptional: N,
|
|
6574
7660
|
ZodNullable: q,
|
|
6575
7661
|
ZodDefault: re,
|
|
6576
7662
|
ZodCatch: fe,
|
|
6577
|
-
ZodNaN:
|
|
6578
|
-
BRAND:
|
|
7663
|
+
ZodNaN: ge,
|
|
7664
|
+
BRAND: mt,
|
|
6579
7665
|
ZodBranded: Ee,
|
|
6580
7666
|
ZodPipeline: se,
|
|
6581
|
-
ZodReadonly:
|
|
6582
|
-
custom:
|
|
7667
|
+
ZodReadonly: _e,
|
|
7668
|
+
custom: Me,
|
|
6583
7669
|
Schema: v,
|
|
6584
7670
|
ZodSchema: v,
|
|
6585
|
-
late:
|
|
7671
|
+
late: pt,
|
|
6586
7672
|
get ZodFirstPartyTypeKind() {
|
|
6587
7673
|
return f;
|
|
6588
7674
|
},
|
|
6589
|
-
coerce:
|
|
6590
|
-
any:
|
|
6591
|
-
array:
|
|
6592
|
-
bigint:
|
|
6593
|
-
boolean:
|
|
6594
|
-
date:
|
|
6595
|
-
discriminatedUnion:
|
|
6596
|
-
effect:
|
|
6597
|
-
enum:
|
|
6598
|
-
function:
|
|
6599
|
-
instanceof:
|
|
6600
|
-
intersection:
|
|
6601
|
-
lazy:
|
|
6602
|
-
literal:
|
|
6603
|
-
map:
|
|
6604
|
-
nan:
|
|
6605
|
-
nativeEnum:
|
|
6606
|
-
never:
|
|
6607
|
-
null:
|
|
6608
|
-
nullable:
|
|
6609
|
-
number:
|
|
6610
|
-
object:
|
|
6611
|
-
oboolean:
|
|
6612
|
-
onumber:
|
|
6613
|
-
optional:
|
|
6614
|
-
ostring:
|
|
6615
|
-
pipeline:
|
|
6616
|
-
preprocess:
|
|
6617
|
-
promise:
|
|
6618
|
-
record:
|
|
6619
|
-
set:
|
|
6620
|
-
strictObject:
|
|
6621
|
-
string:
|
|
6622
|
-
symbol:
|
|
6623
|
-
transformer:
|
|
6624
|
-
tuple:
|
|
6625
|
-
undefined:
|
|
6626
|
-
union:
|
|
6627
|
-
unknown:
|
|
6628
|
-
void:
|
|
6629
|
-
NEVER:
|
|
7675
|
+
coerce: Yt,
|
|
7676
|
+
any: xt,
|
|
7677
|
+
array: Rt,
|
|
7678
|
+
bigint: _t,
|
|
7679
|
+
boolean: Oe,
|
|
7680
|
+
date: ht,
|
|
7681
|
+
discriminatedUnion: Et,
|
|
7682
|
+
effect: Re,
|
|
7683
|
+
enum: Bt,
|
|
7684
|
+
function: Lt,
|
|
7685
|
+
instanceof: ft,
|
|
7686
|
+
intersection: Mt,
|
|
7687
|
+
lazy: Dt,
|
|
7688
|
+
literal: jt,
|
|
7689
|
+
map: Ot,
|
|
7690
|
+
nan: gt,
|
|
7691
|
+
nativeEnum: Vt,
|
|
7692
|
+
never: Ct,
|
|
7693
|
+
null: bt,
|
|
7694
|
+
nullable: Ut,
|
|
7695
|
+
number: Pe,
|
|
7696
|
+
object: St,
|
|
7697
|
+
oboolean: Ft,
|
|
7698
|
+
onumber: Wt,
|
|
7699
|
+
optional: $t,
|
|
7700
|
+
ostring: zt,
|
|
7701
|
+
pipeline: Gt,
|
|
7702
|
+
preprocess: qt,
|
|
7703
|
+
promise: Zt,
|
|
7704
|
+
record: Pt,
|
|
7705
|
+
set: Nt,
|
|
7706
|
+
strictObject: At,
|
|
7707
|
+
string: Ie,
|
|
7708
|
+
symbol: vt,
|
|
7709
|
+
transformer: Re,
|
|
7710
|
+
tuple: It,
|
|
7711
|
+
undefined: yt,
|
|
7712
|
+
union: kt,
|
|
7713
|
+
unknown: wt,
|
|
7714
|
+
void: Tt,
|
|
7715
|
+
NEVER: Ht,
|
|
6630
7716
|
ZodIssueCode: c,
|
|
6631
|
-
quotelessJson:
|
|
7717
|
+
quotelessJson: Xe,
|
|
6632
7718
|
ZodError: E
|
|
6633
7719
|
});
|
|
6634
|
-
const
|
|
7720
|
+
const Jt = [
|
|
6635
7721
|
"DASHBOARD",
|
|
6636
7722
|
"ANALYTIC",
|
|
6637
7723
|
"CAMPAIGN",
|
|
@@ -6669,22 +7755,22 @@ const Yt = [
|
|
|
6669
7755
|
"AUDIT_LOGS",
|
|
6670
7756
|
"BIN",
|
|
6671
7757
|
"QUEUE"
|
|
6672
|
-
].map((
|
|
7758
|
+
].map((i) => `$connect-${i}`), Xt = Qt.enum(Jt), g = Xt.Enum, ii = [
|
|
6673
7759
|
{
|
|
6674
7760
|
path: "",
|
|
6675
|
-
name:
|
|
6676
|
-
redirect: { name:
|
|
7761
|
+
name: g["$connect-DASHBOARD"],
|
|
7762
|
+
redirect: { name: g["$connect-ANALYTIC"] }
|
|
6677
7763
|
},
|
|
6678
7764
|
{
|
|
6679
7765
|
path: "/analytic",
|
|
6680
7766
|
component: () => import("./MainLayout-B1aJoR95.js"),
|
|
6681
|
-
redirect: { name:
|
|
7767
|
+
redirect: { name: g["$connect-ANALYTIC"] },
|
|
6682
7768
|
children: [
|
|
6683
7769
|
{
|
|
6684
7770
|
path: "/analytic",
|
|
6685
|
-
name:
|
|
6686
|
-
component:
|
|
6687
|
-
|
|
7771
|
+
name: g["$connect-ANALYTIC"],
|
|
7772
|
+
component: T(
|
|
7773
|
+
C(() => import("./Analytic-DBUfOGXN.js"))
|
|
6688
7774
|
),
|
|
6689
7775
|
meta: {
|
|
6690
7776
|
validationManifest: {
|
|
@@ -6701,15 +7787,15 @@ const Yt = [
|
|
|
6701
7787
|
},
|
|
6702
7788
|
{
|
|
6703
7789
|
path: "/campaign",
|
|
6704
|
-
name:
|
|
6705
|
-
redirect:
|
|
7790
|
+
name: g["$connect-CAMPAIGN"],
|
|
7791
|
+
redirect: g["$connect-CAMPAIGN_PROMOTION"],
|
|
6706
7792
|
component: () => import("./MainLayout-B1aJoR95.js"),
|
|
6707
7793
|
children: [
|
|
6708
7794
|
{
|
|
6709
7795
|
path: "/campaign/promotion",
|
|
6710
|
-
name:
|
|
6711
|
-
component:
|
|
6712
|
-
|
|
7796
|
+
name: g["$connect-CAMPAIGN_PROMOTION"],
|
|
7797
|
+
component: T(
|
|
7798
|
+
C(() => import("./Promotion-BvO0BUst.js"))
|
|
6713
7799
|
),
|
|
6714
7800
|
meta: {
|
|
6715
7801
|
validationManifest: {
|
|
@@ -6724,13 +7810,13 @@ const Yt = [
|
|
|
6724
7810
|
},
|
|
6725
7811
|
{
|
|
6726
7812
|
path: "/campaign/voucher",
|
|
6727
|
-
redirect: { name:
|
|
7813
|
+
redirect: { name: g["$connect-CAMPAIGN_VOUCHER"] },
|
|
6728
7814
|
children: [
|
|
6729
7815
|
{
|
|
6730
7816
|
path: "/campaign/voucher",
|
|
6731
|
-
name:
|
|
6732
|
-
component:
|
|
6733
|
-
|
|
7817
|
+
name: g["$connect-CAMPAIGN_VOUCHER"],
|
|
7818
|
+
component: T(
|
|
7819
|
+
C(() => import("./Voucher-Blbht91D.js"))
|
|
6734
7820
|
),
|
|
6735
7821
|
meta: {
|
|
6736
7822
|
validationManifest: {
|
|
@@ -6745,10 +7831,10 @@ const Yt = [
|
|
|
6745
7831
|
},
|
|
6746
7832
|
{
|
|
6747
7833
|
path: "/campaign/voucher/:id/collections",
|
|
6748
|
-
name:
|
|
6749
|
-
component:
|
|
6750
|
-
|
|
6751
|
-
() => import("./Collections-
|
|
7834
|
+
name: g["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
7835
|
+
component: T(
|
|
7836
|
+
C(
|
|
7837
|
+
() => import("./Collections-2higR9xt.js")
|
|
6752
7838
|
)
|
|
6753
7839
|
),
|
|
6754
7840
|
meta: {
|
|
@@ -6766,9 +7852,9 @@ const Yt = [
|
|
|
6766
7852
|
},
|
|
6767
7853
|
{
|
|
6768
7854
|
path: "/campaign/broadcast",
|
|
6769
|
-
name:
|
|
6770
|
-
component:
|
|
6771
|
-
|
|
7855
|
+
name: g["$connect-CAMPAIGN_BROADCAST"],
|
|
7856
|
+
component: T(
|
|
7857
|
+
C(() => import("./Broadcast-dPQylejk.js"))
|
|
6772
7858
|
),
|
|
6773
7859
|
meta: {
|
|
6774
7860
|
validationManifest: {
|
|
@@ -6786,8 +7872,8 @@ const Yt = [
|
|
|
6786
7872
|
{
|
|
6787
7873
|
path: "/program",
|
|
6788
7874
|
// component: () => import('@/layouts/MainLayout.vue'),
|
|
6789
|
-
component:
|
|
6790
|
-
|
|
7875
|
+
component: T(
|
|
7876
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
6791
7877
|
),
|
|
6792
7878
|
meta: {
|
|
6793
7879
|
validationManifest: {
|
|
@@ -6799,49 +7885,49 @@ const Yt = [
|
|
|
6799
7885
|
]
|
|
6800
7886
|
}
|
|
6801
7887
|
},
|
|
6802
|
-
name:
|
|
6803
|
-
redirect:
|
|
7888
|
+
name: g["$connect-PROGRAM"],
|
|
7889
|
+
redirect: g["$connect-PROGRAM_TIER"],
|
|
6804
7890
|
children: [
|
|
6805
7891
|
{
|
|
6806
7892
|
path: "/program/tier",
|
|
6807
|
-
name:
|
|
6808
|
-
component: () => import("./Tier-
|
|
7893
|
+
name: g["$connect-PROGRAM_TIER"],
|
|
7894
|
+
component: () => import("./Tier-B43j8PN_.js")
|
|
6809
7895
|
},
|
|
6810
7896
|
{
|
|
6811
7897
|
path: "/program/title",
|
|
6812
|
-
name:
|
|
6813
|
-
component: () => import("./Title-
|
|
7898
|
+
name: g["$connect-PROGRAM_TITLE"],
|
|
7899
|
+
component: () => import("./Title-6ThYGwPj.js")
|
|
6814
7900
|
},
|
|
6815
7901
|
{
|
|
6816
7902
|
path: "/program/experience",
|
|
6817
|
-
name:
|
|
6818
|
-
component: () => import("./Experience-
|
|
7903
|
+
name: g["$connect-PROGRAM_EXPERIENCE"],
|
|
7904
|
+
component: () => import("./Experience-B2an8JbD.js")
|
|
6819
7905
|
},
|
|
6820
7906
|
{
|
|
6821
7907
|
path: "/program/point",
|
|
6822
|
-
name:
|
|
6823
|
-
component: () => import("./Point-
|
|
7908
|
+
name: g["$connect-PROGRAM_POINT"],
|
|
7909
|
+
component: () => import("./Point-lhl01-GA.js")
|
|
6824
7910
|
},
|
|
6825
7911
|
{
|
|
6826
7912
|
path: "/program/credit",
|
|
6827
|
-
name:
|
|
6828
|
-
component: () => import("./Credit-
|
|
7913
|
+
name: g["$connect-PROGRAM_CREDIT"],
|
|
7914
|
+
component: () => import("./Credit-C0zUwRx_.js")
|
|
6829
7915
|
},
|
|
6830
7916
|
{
|
|
6831
7917
|
path: "/program/game",
|
|
6832
|
-
name:
|
|
6833
|
-
component: () => import("./Game-
|
|
7918
|
+
name: g["$connect-PROGRAM_GAME"],
|
|
7919
|
+
component: () => import("./Game-BO7F7MwC.js")
|
|
6834
7920
|
},
|
|
6835
7921
|
{
|
|
6836
7922
|
path: "/program/mission",
|
|
6837
|
-
name:
|
|
6838
|
-
component: () => import("./Mission-
|
|
7923
|
+
name: g["$connect-PROGRAM_MISSION"],
|
|
7924
|
+
component: () => import("./Mission-DSRwwQMw.js")
|
|
6839
7925
|
},
|
|
6840
7926
|
{
|
|
6841
7927
|
path: "/campaign/grab",
|
|
6842
|
-
name:
|
|
6843
|
-
component:
|
|
6844
|
-
|
|
7928
|
+
name: g["$connect-CAMPAIGN_GRAB"],
|
|
7929
|
+
component: T(
|
|
7930
|
+
C(() => import("./Grab-DhHyUon4.js"))
|
|
6845
7931
|
),
|
|
6846
7932
|
meta: {
|
|
6847
7933
|
validationManifest: {
|
|
@@ -6858,8 +7944,8 @@ const Yt = [
|
|
|
6858
7944
|
},
|
|
6859
7945
|
{
|
|
6860
7946
|
path: "/loyalty",
|
|
6861
|
-
component:
|
|
6862
|
-
|
|
7947
|
+
component: T(
|
|
7948
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
6863
7949
|
),
|
|
6864
7950
|
meta: {
|
|
6865
7951
|
validationManifest: {
|
|
@@ -6871,51 +7957,51 @@ const Yt = [
|
|
|
6871
7957
|
]
|
|
6872
7958
|
}
|
|
6873
7959
|
},
|
|
6874
|
-
name:
|
|
6875
|
-
redirect:
|
|
7960
|
+
name: g["$connect-LOYALTY"],
|
|
7961
|
+
redirect: g["$connect-LOYALTY_MEMBER"],
|
|
6876
7962
|
children: [
|
|
6877
7963
|
{
|
|
6878
7964
|
path: "/loyalty/member",
|
|
6879
|
-
name:
|
|
6880
|
-
component: () => import("./Member-
|
|
7965
|
+
name: g["$connect-LOYALTY_MEMBER"],
|
|
7966
|
+
component: () => import("./Member-Mcwja1E6.js"),
|
|
6881
7967
|
redirect: {
|
|
6882
|
-
name:
|
|
7968
|
+
name: g["$connect-LOYALTY_MEMBER_OVERVIEW"]
|
|
6883
7969
|
},
|
|
6884
7970
|
children: [
|
|
6885
7971
|
{
|
|
6886
7972
|
path: "/loyalty/member",
|
|
6887
|
-
name:
|
|
7973
|
+
name: g["$connect-LOYALTY_MEMBER_OVERVIEW"],
|
|
6888
7974
|
component: () => import("./MemberOverview-wL_ailso.js")
|
|
6889
7975
|
},
|
|
6890
7976
|
{
|
|
6891
7977
|
path: "/loyalty/member/list",
|
|
6892
|
-
name:
|
|
6893
|
-
component: () => import("./MemberList-
|
|
7978
|
+
name: g["$connect-LOYALTY_MEMBER_LIST"],
|
|
7979
|
+
component: () => import("./MemberList-BPGNOKXn.js")
|
|
6894
7980
|
},
|
|
6895
7981
|
{
|
|
6896
7982
|
path: "/loyalty/member/transactions/:id",
|
|
6897
|
-
name:
|
|
6898
|
-
component: () => import("./MemberTransactions-
|
|
7983
|
+
name: g["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
|
|
7984
|
+
component: () => import("./MemberTransactions-DaBU7MOW.js")
|
|
6899
7985
|
}
|
|
6900
7986
|
]
|
|
6901
7987
|
},
|
|
6902
7988
|
{
|
|
6903
7989
|
path: "/loyalty/segment",
|
|
6904
|
-
name:
|
|
6905
|
-
component: () => import("./Segment-
|
|
7990
|
+
name: g["$connect-LOYALTY_SEGMENT"],
|
|
7991
|
+
component: () => import("./Segment-CYk3w6PO.js")
|
|
6906
7992
|
},
|
|
6907
7993
|
{
|
|
6908
7994
|
path: "/loyalty/card",
|
|
6909
|
-
name:
|
|
6910
|
-
component: () => import("./Card-
|
|
7995
|
+
name: g["$connect-LOYALTY_CARD"],
|
|
7996
|
+
component: () => import("./Card-DqXEthXd.js")
|
|
6911
7997
|
}
|
|
6912
7998
|
]
|
|
6913
7999
|
},
|
|
6914
8000
|
{
|
|
6915
8001
|
path: "/referral",
|
|
6916
|
-
redirect: { name:
|
|
6917
|
-
component:
|
|
6918
|
-
|
|
8002
|
+
redirect: { name: g["$connect-REFERRAL"] },
|
|
8003
|
+
component: T(
|
|
8004
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
6919
8005
|
),
|
|
6920
8006
|
meta: {
|
|
6921
8007
|
validationManifest: {
|
|
@@ -6930,21 +8016,21 @@ const Yt = [
|
|
|
6930
8016
|
children: [
|
|
6931
8017
|
{
|
|
6932
8018
|
path: "/referral",
|
|
6933
|
-
name:
|
|
6934
|
-
component: () => import("./Index-
|
|
8019
|
+
name: g["$connect-REFERRAL"],
|
|
8020
|
+
component: () => import("./Index-uadi-EZ6.js"),
|
|
6935
8021
|
redirect: {
|
|
6936
|
-
name:
|
|
8022
|
+
name: g["$connect-REFERRAL_OVERVIEW"]
|
|
6937
8023
|
},
|
|
6938
8024
|
children: [
|
|
6939
8025
|
{
|
|
6940
8026
|
path: "/referral",
|
|
6941
|
-
name:
|
|
6942
|
-
component: () => import("./Overview-
|
|
8027
|
+
name: g["$connect-REFERRAL_OVERVIEW"],
|
|
8028
|
+
component: () => import("./Overview-B897q3qA.js")
|
|
6943
8029
|
},
|
|
6944
8030
|
{
|
|
6945
8031
|
path: "/referral/record",
|
|
6946
|
-
name:
|
|
6947
|
-
component: () => import("./Record-
|
|
8032
|
+
name: g["$connect-REFERRAL_RECORD"],
|
|
8033
|
+
component: () => import("./Record-BXLVpbR2.js")
|
|
6948
8034
|
}
|
|
6949
8035
|
]
|
|
6950
8036
|
}
|
|
@@ -6952,8 +8038,8 @@ const Yt = [
|
|
|
6952
8038
|
},
|
|
6953
8039
|
{
|
|
6954
8040
|
path: "/store",
|
|
6955
|
-
component:
|
|
6956
|
-
|
|
8041
|
+
component: T(
|
|
8042
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
6957
8043
|
),
|
|
6958
8044
|
meta: {
|
|
6959
8045
|
validationManifest: {
|
|
@@ -6968,22 +8054,22 @@ const Yt = [
|
|
|
6968
8054
|
children: [
|
|
6969
8055
|
{
|
|
6970
8056
|
path: "/store",
|
|
6971
|
-
name:
|
|
6972
|
-
component: () => import("./Store-
|
|
8057
|
+
name: g["$connect-STORE"],
|
|
8058
|
+
component: () => import("./Store-5svFOdbG.js")
|
|
6973
8059
|
},
|
|
6974
8060
|
{
|
|
6975
8061
|
path: "/store/rewards",
|
|
6976
|
-
redirect: { name:
|
|
8062
|
+
redirect: { name: g["$connect-STORE_REWARDS"] },
|
|
6977
8063
|
children: [
|
|
6978
8064
|
{
|
|
6979
8065
|
path: "/store/rewards",
|
|
6980
|
-
name:
|
|
6981
|
-
component: () => import("./StoreRewards-
|
|
8066
|
+
name: g["$connect-STORE_REWARDS"],
|
|
8067
|
+
component: () => import("./StoreRewards-DImHNqJA.js")
|
|
6982
8068
|
},
|
|
6983
8069
|
{
|
|
6984
8070
|
path: "/store/rewards/:id/collections",
|
|
6985
|
-
name:
|
|
6986
|
-
component: () => import("./Collections-
|
|
8071
|
+
name: g["$connect-STORE_REWARD_COLLECTIONS"],
|
|
8072
|
+
component: () => import("./Collections-2higR9xt.js")
|
|
6987
8073
|
}
|
|
6988
8074
|
]
|
|
6989
8075
|
}
|
|
@@ -6991,8 +8077,8 @@ const Yt = [
|
|
|
6991
8077
|
},
|
|
6992
8078
|
{
|
|
6993
8079
|
path: "/transaction",
|
|
6994
|
-
component:
|
|
6995
|
-
|
|
8080
|
+
component: T(
|
|
8081
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
6996
8082
|
),
|
|
6997
8083
|
meta: {
|
|
6998
8084
|
validationManifest: {
|
|
@@ -7007,15 +8093,15 @@ const Yt = [
|
|
|
7007
8093
|
children: [
|
|
7008
8094
|
{
|
|
7009
8095
|
path: "/transaction",
|
|
7010
|
-
name:
|
|
7011
|
-
component: () => import("./Transaction-
|
|
8096
|
+
name: g["$connect-TRANSACTION"],
|
|
8097
|
+
component: () => import("./Transaction-CGkAjZ9A.js")
|
|
7012
8098
|
}
|
|
7013
8099
|
]
|
|
7014
8100
|
},
|
|
7015
8101
|
{
|
|
7016
8102
|
path: "/marketing",
|
|
7017
|
-
component:
|
|
7018
|
-
|
|
8103
|
+
component: T(
|
|
8104
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
7019
8105
|
),
|
|
7020
8106
|
meta: {
|
|
7021
8107
|
validationManifest: {
|
|
@@ -7030,15 +8116,15 @@ const Yt = [
|
|
|
7030
8116
|
children: [
|
|
7031
8117
|
{
|
|
7032
8118
|
path: "/marketing",
|
|
7033
|
-
name:
|
|
7034
|
-
component: () => import("./Marketing-
|
|
8119
|
+
name: g["$connect-MARKETING"],
|
|
8120
|
+
component: () => import("./Marketing-BWpOwWf0.js")
|
|
7035
8121
|
}
|
|
7036
8122
|
]
|
|
7037
8123
|
},
|
|
7038
8124
|
{
|
|
7039
8125
|
path: "/reward",
|
|
7040
|
-
component:
|
|
7041
|
-
|
|
8126
|
+
component: T(
|
|
8127
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
7042
8128
|
),
|
|
7043
8129
|
meta: {
|
|
7044
8130
|
validationManifest: {
|
|
@@ -7053,15 +8139,15 @@ const Yt = [
|
|
|
7053
8139
|
children: [
|
|
7054
8140
|
{
|
|
7055
8141
|
path: "/reward",
|
|
7056
|
-
name:
|
|
7057
|
-
component: () => import("./Reward-
|
|
8142
|
+
name: g["$connect-REWARD_TEMPLATE"],
|
|
8143
|
+
component: () => import("./Reward-DCzxzMzn.js")
|
|
7058
8144
|
}
|
|
7059
8145
|
]
|
|
7060
8146
|
},
|
|
7061
8147
|
{
|
|
7062
8148
|
path: "/audit-logs",
|
|
7063
|
-
component:
|
|
7064
|
-
|
|
8149
|
+
component: T(
|
|
8150
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
7065
8151
|
),
|
|
7066
8152
|
meta: {
|
|
7067
8153
|
validationManifest: {
|
|
@@ -7076,15 +8162,15 @@ const Yt = [
|
|
|
7076
8162
|
children: [
|
|
7077
8163
|
{
|
|
7078
8164
|
path: "/audit-logs",
|
|
7079
|
-
name:
|
|
7080
|
-
component: () => import("./AuditLogs-
|
|
8165
|
+
name: g["$connect-AUDIT_LOGS"],
|
|
8166
|
+
component: () => import("./AuditLogs-DfcDKAAx.js")
|
|
7081
8167
|
}
|
|
7082
8168
|
]
|
|
7083
8169
|
},
|
|
7084
8170
|
{
|
|
7085
8171
|
path: "/setting",
|
|
7086
|
-
component:
|
|
7087
|
-
|
|
8172
|
+
component: T(
|
|
8173
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
7088
8174
|
),
|
|
7089
8175
|
meta: {
|
|
7090
8176
|
validationManifest: {
|
|
@@ -7099,20 +8185,20 @@ const Yt = [
|
|
|
7099
8185
|
children: [
|
|
7100
8186
|
{
|
|
7101
8187
|
path: "/setting",
|
|
7102
|
-
name:
|
|
7103
|
-
component: () => import("./Setting-
|
|
8188
|
+
name: g["$connect-SETTING"],
|
|
8189
|
+
component: () => import("./Setting-DZtcRs0k.js")
|
|
7104
8190
|
},
|
|
7105
8191
|
{
|
|
7106
8192
|
path: "/setting/advertisements",
|
|
7107
|
-
name:
|
|
7108
|
-
component: () => import("./SettingAdvertisements-
|
|
8193
|
+
name: g["$connect-SETTING_ADVERTISEMENTS"],
|
|
8194
|
+
component: () => import("./SettingAdvertisements-DBQEaFBm.js")
|
|
7109
8195
|
}
|
|
7110
8196
|
]
|
|
7111
8197
|
},
|
|
7112
8198
|
{
|
|
7113
8199
|
path: "/bin",
|
|
7114
|
-
component:
|
|
7115
|
-
|
|
8200
|
+
component: T(
|
|
8201
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
7116
8202
|
),
|
|
7117
8203
|
meta: {
|
|
7118
8204
|
validationManifest: {
|
|
@@ -7127,15 +8213,15 @@ const Yt = [
|
|
|
7127
8213
|
children: [
|
|
7128
8214
|
{
|
|
7129
8215
|
path: "/bin",
|
|
7130
|
-
name:
|
|
7131
|
-
component: () => import("./Bin-
|
|
8216
|
+
name: g["$connect-BIN"],
|
|
8217
|
+
component: () => import("./Bin-K1LAZ7Il.js")
|
|
7132
8218
|
}
|
|
7133
8219
|
]
|
|
7134
8220
|
},
|
|
7135
8221
|
{
|
|
7136
8222
|
path: "/queue",
|
|
7137
|
-
component:
|
|
7138
|
-
|
|
8223
|
+
component: T(
|
|
8224
|
+
C(() => import("./MainLayout-B1aJoR95.js"))
|
|
7139
8225
|
),
|
|
7140
8226
|
meta: {
|
|
7141
8227
|
validationManifest: {
|
|
@@ -7150,24 +8236,25 @@ const Yt = [
|
|
|
7150
8236
|
children: [
|
|
7151
8237
|
{
|
|
7152
8238
|
path: "/queue",
|
|
7153
|
-
name:
|
|
7154
|
-
component: () => import("./Queue-
|
|
8239
|
+
name: g["$connect-QUEUE"],
|
|
8240
|
+
component: () => import("./Queue-ec2IpEuf.js")
|
|
7155
8241
|
}
|
|
7156
8242
|
]
|
|
7157
8243
|
}
|
|
7158
|
-
],
|
|
7159
|
-
"en-US":
|
|
8244
|
+
], ai = {
|
|
8245
|
+
"en-US": je,
|
|
7160
8246
|
"zh-CN": $e,
|
|
7161
8247
|
"th-TH": qe,
|
|
7162
|
-
"zh-Hant":
|
|
7163
|
-
|
|
8248
|
+
"zh-Hant": Fe,
|
|
8249
|
+
"ja-JP": Je
|
|
8250
|
+
}, ni = C(() => import("./App-BKoC43t0.js"));
|
|
7164
8251
|
export {
|
|
7165
|
-
|
|
7166
|
-
|
|
8252
|
+
ni as F,
|
|
8253
|
+
g as R,
|
|
7167
8254
|
c as Z,
|
|
7168
8255
|
l as a,
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
8256
|
+
Y as e,
|
|
8257
|
+
ai as i,
|
|
8258
|
+
ii as r,
|
|
8259
|
+
Qt as z
|
|
7173
8260
|
};
|