@feedmepos/mf-connect 0.1.0-beta.3 → 0.1.0-beta.31
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-C-QC9ivZ.js +424 -0
- package/dist/{App-gzbM97vW.js → App-NASVRSh2.js} +397 -384
- package/dist/{Broadcast-BwYZkTs0.js → Broadcast-Cffg7nbY.js} +32 -32
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DIh9rz6T.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CA4kVwMl.js} +8 -8
- package/dist/Card-CmYFb1_Y.js +897 -0
- package/dist/{Collections-Df6tlo8S.js → Collections-CibvGIpU.js} +4 -4
- package/dist/{Credit-BPel8vA9.js → Credit-Ck6i9ySs.js} +14 -14
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B35zbHHI.js +2198 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BT8ucS5G.js → EffectSheet.vue_vue_type_style_index_0_lang-CQV77_cx.js} +8 -8
- package/dist/{Experience-CPpz1Zwx.js → Experience-CWUX2QvS.js} +8 -8
- package/dist/{Game-ByLblISC.js → Game-D3cdZrlc.js} +15 -15
- package/dist/Index-CWLZiYXT.js +255 -0
- package/dist/Marketing-Bol8eY5d.js +20070 -0
- package/dist/{Member-CCc_FEZY.js → Member-Cso-T2Xk.js} +4 -4
- package/dist/MemberList-Bqns9wko.js +1045 -0
- package/dist/{MemberTransactions-DD5ahSbY.js → MemberTransactions-zNw-30Xu.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DSPvWk4C.js → MessageInput.vue_vue_type_script_setup_true_lang-BLS5fNr6.js} +2 -2
- package/dist/{Mission-VH4057I-.js → Mission-C0-K0A_5.js} +98 -86
- package/dist/Overview-fZ9NvFKz.js +1024 -0
- package/dist/{Point-Bu3IlpH4.js → Point-D3gGhQlP.js} +23 -23
- package/dist/{Promotion-B45AOHis.js → Promotion-COCJIfu-.js} +53 -47
- package/dist/Record-C0a4Cn1U.js +209 -0
- package/dist/Reward-D0G4CBYd.js +411 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-zSOwxAcS.js +151 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-AmIdaAeX.js +1639 -0
- package/dist/Segment-eBM3aveX.js +567 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BgMuKAjE.js +181 -0
- package/dist/{Setting-CF09eRQJ.js → Setting-Dfye6fs5.js} +8 -8
- package/dist/Store-rQfwc8d6.js +1745 -0
- package/dist/{StoreRewards-0iGExjqQ.js → StoreRewards-DVTNMWdG.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-3dvBoXz2.js +957 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BEfxin47.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DxGIUrmO.js} +1 -1
- package/dist/{Tier-IaeWe7rM.js → Tier-DekrYu5l.js} +327 -317
- package/dist/{Title-DD67Zxh5.js → Title-oAWsBqoM.js} +199 -183
- package/dist/{Transaction-BsPDnLzB.js → Transaction-Ss2XCksi.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-BMIqnBts.js +130 -0
- package/dist/{Voucher-M7JfcKo0.js → Voucher-CjPJxdw8.js} +31 -31
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DlWCpoOp.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-k0lprU2i.js → ZodTextField.vue_vue_type_script_setup_true_lang-FXQNhMrv.js} +1 -1
- package/dist/{app-HFICF0vL.js → app-C_zlbFNe.js} +1285 -1283
- package/dist/{app-DwujUNP-.js → app-WUJQRyEM.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-BaF1QJXa.js → business-C0e_E2xp.js} +1 -1
- package/dist/{campaign-CTDtmAE9.js → campaign-iWzbtNA5.js} +2 -2
- package/dist/collectible.enum-QITAo8Jg.js +19 -0
- package/dist/{collection.fn-DMW03W4R.js → collection.fn-R3hvasuZ.js} +2 -2
- package/dist/{dto-gpaNZHzQ.js → dto-D_tjJ72q.js} +78 -86
- package/dist/{effect-CBUmtwet.js → effect-_bpW5fmr.js} +9 -9
- package/dist/email-addresses-DUKn8uD0.js +705 -0
- package/dist/{export-Bdh_PbsW.js → export-CEBWZ8ko.js} +3 -3
- package/dist/{helper-Cu9elRvl.js → helper-CuF45pbY.js} +1 -1
- package/dist/{index-NXiDu42U.js → index-BO8RnVxy.js} +1 -1
- package/dist/{index-CArqG03W.js → index-BPc3wxOE.js} +39 -35
- package/dist/index-BXTQ6onZ.js +1067 -0
- package/dist/index-C4aPU80a.js +38 -0
- package/dist/{index-At6yms5t.js → index-CBzSPD25.js} +30 -26
- package/dist/{index-Ch6XwPzF.js → index-CR0ZVZQG.js} +1 -1
- package/dist/{index-DrGrOgZB.js → index-CXFwMV0s.js} +13 -1
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-Dfdg2Q3E.js → index-Dh6xIUXJ.js} +1 -1
- package/dist/{index-ogzk-Mj4.js → index-LMvyNoHf.js} +1 -1
- package/dist/{index-Crw-Vgo5.js → index-S6sFiBxK.js} +1500 -1479
- package/dist/index-SpDFfOz_.js +54 -0
- package/dist/{index-CtH2S49l.js → index-Urbp7cdO.js} +203 -195
- package/dist/index-pHbs1GrF.js +29000 -0
- package/dist/{index.esm2017-CeJpvUbA.js → index.esm2017-BunOalUj.js} +33 -33
- package/dist/{loading-Cn8ml_vy.js → loading-CYFsZ9UB.js} +591 -597
- package/dist/{membership-CX4AKMlH.js → membership-C9089j0H.js} +51 -43
- package/dist/money-D-zGFohv.js +15 -0
- package/dist/number-UFl4zW6h.js +12 -0
- package/dist/objectid-BKIyQ5iE.js +145 -0
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-LYKGLzXz.js +36 -0
- package/dist/{rule-Cv83Y59R.js → rule-BUUKmR4_.js} +180 -177
- package/dist/{rule-builder-Dew4yB5Q.js → rule-builder-9JUuOcMH.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CSnbgM1o.js → template-CkXuF0cN.js} +5 -5
- package/dist/trigger-DjAx9efN.js +114 -0
- package/dist/user-DbsZta3D.js +54 -0
- package/dist/{vue-i18n-CNH_IhVd.js → vue-i18n-yYO72Mbp.js} +2 -2
- package/dist/{xlsx-D4DUZHix.js → xlsx-Dagi6ArS.js} +1 -1
- package/package.json +8 -7
- package/dist/Analytic-BC5BA6pN.js +0 -622
- package/dist/Card-CBYQGKwY.js +0 -825
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-PsrS7I0r.js +0 -2809
- package/dist/Marketing-D0vm80e_.js +0 -316
- package/dist/MemberList-CrnipE9y.js +0 -1733
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Ijc2OYh9.js +0 -1753
- package/dist/Segment-ZWsp48aC.js +0 -437
- package/dist/Store-B_G6Dhmq.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CaxUr9zl.js +0 -890
- package/dist/index-8MaN7rez.js +0 -762
- package/dist/index-BjdHxGDn.js +0 -298
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-RP0XOPRL.js +0 -29193
- package/dist/money-BTejgvKu.js +0 -15
- package/dist/number-Cen5TucC.js +0 -12
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { withPermission as
|
|
1
|
+
import { defineAsyncComponent as k } from "vue";
|
|
2
|
+
import { withPermission as R, Permission as x } from "@feedmepos/mf-common";
|
|
3
3
|
const Pe = {
|
|
4
4
|
common: {
|
|
5
|
+
submit: "Submit",
|
|
5
6
|
confirm: "Confirm",
|
|
6
7
|
cancel: "Cancel",
|
|
7
8
|
save: "Save",
|
|
@@ -255,7 +256,8 @@ const Pe = {
|
|
|
255
256
|
store: "Store",
|
|
256
257
|
transaction: "Transaction",
|
|
257
258
|
setting: "Setting",
|
|
258
|
-
mission: "Mission"
|
|
259
|
+
mission: "Mission",
|
|
260
|
+
referral: "Referral"
|
|
259
261
|
},
|
|
260
262
|
loyalty: {
|
|
261
263
|
card: {
|
|
@@ -277,7 +279,8 @@ const Pe = {
|
|
|
277
279
|
phone: "Phone",
|
|
278
280
|
created_at: "Created at",
|
|
279
281
|
bundle: "Bundle",
|
|
280
|
-
redeemed_at: "Redeemed at"
|
|
282
|
+
redeemed_at: "Redeemed at",
|
|
283
|
+
actions: "Actions"
|
|
281
284
|
}
|
|
282
285
|
},
|
|
283
286
|
member: {
|
|
@@ -742,8 +745,8 @@ const Pe = {
|
|
|
742
745
|
}
|
|
743
746
|
},
|
|
744
747
|
prompt: {
|
|
745
|
-
confirm: "
|
|
746
|
-
cancel: "
|
|
748
|
+
confirm: "Confirm",
|
|
749
|
+
cancel: "Cancel"
|
|
747
750
|
},
|
|
748
751
|
editTierSheet: {
|
|
749
752
|
add: "Add",
|
|
@@ -757,6 +760,66 @@ const Pe = {
|
|
|
757
760
|
actions: "Actions",
|
|
758
761
|
submit: "Submit",
|
|
759
762
|
cancel: "Cancel"
|
|
763
|
+
},
|
|
764
|
+
referral: {
|
|
765
|
+
title: "Referral Program",
|
|
766
|
+
actions: {
|
|
767
|
+
create: "Create referral",
|
|
768
|
+
manage_reward: "Manage reward",
|
|
769
|
+
terms: "Terms and conditions",
|
|
770
|
+
manage_criteria: "Manage criteria",
|
|
771
|
+
add_referral_tier: "Add referral tier"
|
|
772
|
+
},
|
|
773
|
+
tabs: {
|
|
774
|
+
overview: "Overview",
|
|
775
|
+
record: "Record"
|
|
776
|
+
},
|
|
777
|
+
referral_tier_title: "Set rewards for successful referrals",
|
|
778
|
+
referral_tier_description: "Add and customize rewards for each step within the selected referral tier.",
|
|
779
|
+
add_referral_tier: "Add referral tier",
|
|
780
|
+
overview: {
|
|
781
|
+
title: "Overview",
|
|
782
|
+
total_joined: "Total joined",
|
|
783
|
+
total_redeem: "Total redeemed",
|
|
784
|
+
total_referee: "Total referee",
|
|
785
|
+
pending: "Pending"
|
|
786
|
+
},
|
|
787
|
+
how_it_works: {
|
|
788
|
+
title: "How it works",
|
|
789
|
+
generate_link: "Generate link",
|
|
790
|
+
generate_link_for_member: "Generate link for member",
|
|
791
|
+
referee_join_reward: "Referee join reward",
|
|
792
|
+
referee_meet_criteria: "Referee meet criteria",
|
|
793
|
+
referer_get_reward: "Referer get reward"
|
|
794
|
+
},
|
|
795
|
+
reward: {
|
|
796
|
+
add_count: "Add count"
|
|
797
|
+
},
|
|
798
|
+
editReferralTierSheet: {
|
|
799
|
+
create: "Create referral tier",
|
|
800
|
+
edit: "Edit referral tier",
|
|
801
|
+
target_audience: "Target audience",
|
|
802
|
+
name: "Name"
|
|
803
|
+
},
|
|
804
|
+
editReferralCountSheet: {
|
|
805
|
+
add: "Add referral count",
|
|
806
|
+
edit: "Edit referral count",
|
|
807
|
+
referrer_reward: "Referrer reward",
|
|
808
|
+
min_referral_count: "Min referral count",
|
|
809
|
+
max_referral_count: "Max referral count"
|
|
810
|
+
},
|
|
811
|
+
refereeRewardSheet: {
|
|
812
|
+
referee_reward: "Referee reward"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
reward: {
|
|
816
|
+
title: "Reward",
|
|
817
|
+
description: "Reward your customers for successful referrals",
|
|
818
|
+
table: {
|
|
819
|
+
title: "Reward title",
|
|
820
|
+
type: "Reward type",
|
|
821
|
+
description: "Description"
|
|
822
|
+
}
|
|
760
823
|
}
|
|
761
824
|
}, Le = {
|
|
762
825
|
invalid_type: "Expected {{expected}}, received {{received}}",
|
|
@@ -871,7 +934,7 @@ const Pe = {
|
|
|
871
934
|
map: "map",
|
|
872
935
|
set: "set"
|
|
873
936
|
}
|
|
874
|
-
},
|
|
937
|
+
}, je = {
|
|
875
938
|
timeframe: {
|
|
876
939
|
end_before_start: "End date must be later or same as start date"
|
|
877
940
|
},
|
|
@@ -887,11 +950,11 @@ const Pe = {
|
|
|
887
950
|
reward_threshold_unique: "Reward threshold must be unique",
|
|
888
951
|
effect_required: "Effect is required"
|
|
889
952
|
}
|
|
890
|
-
},
|
|
953
|
+
}, Ze = {
|
|
891
954
|
connect: Pe,
|
|
892
955
|
connectZod: Le,
|
|
893
|
-
connectZodCustom:
|
|
894
|
-
},
|
|
956
|
+
connectZodCustom: je
|
|
957
|
+
}, De = {
|
|
895
958
|
common: {
|
|
896
959
|
confirm: "确认",
|
|
897
960
|
cancel: "取消",
|
|
@@ -1166,7 +1229,8 @@ const Pe = {
|
|
|
1166
1229
|
phone: "电话",
|
|
1167
1230
|
created_at: "创建于",
|
|
1168
1231
|
bundle: "捆绑",
|
|
1169
|
-
redeemed_at: "兑换于"
|
|
1232
|
+
redeemed_at: "兑换于",
|
|
1233
|
+
actions: "操作"
|
|
1170
1234
|
}
|
|
1171
1235
|
},
|
|
1172
1236
|
member: {
|
|
@@ -1647,7 +1711,7 @@ const Pe = {
|
|
|
1647
1711
|
submit: "提交",
|
|
1648
1712
|
cancel: "取消"
|
|
1649
1713
|
}
|
|
1650
|
-
},
|
|
1714
|
+
}, Ve = {
|
|
1651
1715
|
errors: {
|
|
1652
1716
|
invalid_type: "预期输入为{{expected}},而输入为{{received}}",
|
|
1653
1717
|
invalid_type_received_undefined: "必填",
|
|
@@ -1759,7 +1823,7 @@ const Pe = {
|
|
|
1759
1823
|
map: "字典",
|
|
1760
1824
|
set: "集合"
|
|
1761
1825
|
}
|
|
1762
|
-
},
|
|
1826
|
+
}, $e = {
|
|
1763
1827
|
timeframe: {
|
|
1764
1828
|
end_before_start: "结束日期必须晚于或等于开始日期"
|
|
1765
1829
|
},
|
|
@@ -1776,898 +1840,774 @@ const Pe = {
|
|
|
1776
1840
|
effect_required: "效果是必需的"
|
|
1777
1841
|
}
|
|
1778
1842
|
}, Be = {
|
|
1779
|
-
connect:
|
|
1780
|
-
connectZod:
|
|
1781
|
-
connectZodCustom:
|
|
1782
|
-
},
|
|
1783
|
-
common: {
|
|
1784
|
-
confirm: "Confirm",
|
|
1785
|
-
cancel: "Cancel",
|
|
1786
|
-
save: "Save",
|
|
1787
|
-
delete: "Delete",
|
|
1788
|
-
edit: "Edit",
|
|
1789
|
-
add: "Add",
|
|
1790
|
-
optional: "Optional"
|
|
1791
|
-
},
|
|
1792
|
-
template: {
|
|
1793
|
-
general: "General",
|
|
1794
|
-
trigger: "Trigger",
|
|
1795
|
-
general_information: "General information",
|
|
1796
|
-
discount: "Discount",
|
|
1797
|
-
terms_conditions: "Terms and conditions",
|
|
1798
|
-
time_limitation: "Time limitation",
|
|
1799
|
-
target_audience: "Target audience",
|
|
1800
|
-
game_configuration: "Game configuration",
|
|
1801
|
-
location: "Location",
|
|
1802
|
-
voucher_detail: "Voucher detail",
|
|
1803
|
-
spending_criteria: "Spending criteria",
|
|
1804
|
-
feedback_criteria: "Feedback criteria",
|
|
1805
|
-
voucher_usage_configuration: "Voucher usage configuration",
|
|
1806
|
-
notify_audience: "Notify audience",
|
|
1807
|
-
notify_message: "Notify message",
|
|
1808
|
-
earning_type: "Earning type",
|
|
1809
|
-
validity_configuration: "Validity configuration",
|
|
1810
|
-
mission_participation: "Mission participation",
|
|
1811
|
-
configure_reward: "Configure reward",
|
|
1812
|
-
content: "Content",
|
|
1813
|
-
broadcast_configuration: "Broadcast configuration",
|
|
1814
|
-
game_type: "Game type",
|
|
1815
|
-
reward_pool: "Reward pool",
|
|
1816
|
-
configuration: "Configuration",
|
|
1817
|
-
campaign_name: "Campaign name",
|
|
1818
|
-
campaign_description: "Campaign description",
|
|
1819
|
-
campaign_period: "Campaign period",
|
|
1820
|
-
voucher_name: "Voucher name",
|
|
1821
|
-
voucher_description: "Voucher description",
|
|
1822
|
-
voucher_image: "Voucher image",
|
|
1823
|
-
target_location: "Target location",
|
|
1824
|
-
send_notification: "Send notification",
|
|
1825
|
-
notification_message: "Notification message",
|
|
1826
|
-
min_spend: "Min Spend",
|
|
1827
|
-
select_game: "Select a game where you want your customer to play",
|
|
1828
|
-
configure_reward_type: "Configure the reward type and weightage given to your customer.",
|
|
1829
|
-
configure_reward_customer: "Configure the reward type given to your customer.",
|
|
1830
|
-
max_per_user: "Max per user",
|
|
1831
|
-
usage_count: "Usage count",
|
|
1832
|
-
max_distribute: "Max distribute",
|
|
1833
|
-
cooldown: "Cooldown",
|
|
1834
|
-
validity_option: {
|
|
1835
|
-
title: "Validity option",
|
|
1836
|
-
date_range: "Date range",
|
|
1837
|
-
custom: "Custom",
|
|
1838
|
-
expire: "Expires",
|
|
1839
|
-
after_day: "After (days)",
|
|
1840
|
-
days: "days(s)",
|
|
1841
|
-
expire_follow_first_receive: "Expiry follows the first receive",
|
|
1842
|
-
expires_on_same_day: "Expires on the same day"
|
|
1843
|
-
},
|
|
1844
|
-
enable_transfer: "Enable transfer",
|
|
1845
|
-
rule: {
|
|
1846
|
-
time: {
|
|
1847
|
-
all_time: "All time",
|
|
1848
|
-
custom: "Custom date/time",
|
|
1849
|
-
confirm_remove: "Are you sure you want to turn off custom conditons? This will remove all the rules you have set."
|
|
1850
|
-
},
|
|
1851
|
-
audience: {
|
|
1852
|
-
all: "All audience",
|
|
1853
|
-
member_segment: "Member segment",
|
|
1854
|
-
custom_audience: "Custom audience",
|
|
1855
|
-
confirm_remove: "Are you sure you want to change the audience type? This will remove all the rules you have set."
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
},
|
|
1843
|
+
connect: De,
|
|
1844
|
+
connectZod: Ve,
|
|
1845
|
+
connectZodCustom: $e
|
|
1846
|
+
}, Ue = {
|
|
1859
1847
|
campaign: {
|
|
1860
1848
|
common: {
|
|
1861
|
-
createCampaign: "
|
|
1862
|
-
search: "
|
|
1863
|
-
location: "
|
|
1864
|
-
noResults: "
|
|
1849
|
+
createCampaign: "สร้างแคมเปญ",
|
|
1850
|
+
search: "ค้นหา",
|
|
1851
|
+
location: "ตำแหน่ง:",
|
|
1852
|
+
noResults: "ไม่พบผลลัพธ์",
|
|
1865
1853
|
remove: {
|
|
1866
|
-
confirm: "
|
|
1867
|
-
removing: "
|
|
1868
|
-
removed: "
|
|
1854
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
|
|
1855
|
+
removing: "กำลังลบ {name}",
|
|
1856
|
+
removed: "ลบ {name} สำเร็จแล้ว"
|
|
1869
1857
|
},
|
|
1870
1858
|
actions: {
|
|
1871
|
-
remove: "
|
|
1872
|
-
send: "
|
|
1873
|
-
share: "
|
|
1874
|
-
},
|
|
1875
|
-
effect_required: "
|
|
1876
|
-
unsaved_changes: "
|
|
1877
|
-
unsaved_changes_confirm: "
|
|
1878
|
-
unsaved_changes_cancel: "
|
|
1879
|
-
save: "
|
|
1880
|
-
cancel: "
|
|
1881
|
-
summary: "
|
|
1882
|
-
campaign_name: "
|
|
1883
|
-
campaign_period: "
|
|
1884
|
-
next_schedule_at: "
|
|
1885
|
-
discount_type: "
|
|
1886
|
-
discount_amount: "
|
|
1887
|
-
discount_percentage: "
|
|
1888
|
-
all_locations: "
|
|
1889
|
-
available_at: "
|
|
1890
|
-
always: "
|
|
1891
|
-
no_location: "
|
|
1892
|
-
status: {
|
|
1893
|
-
active: "Active",
|
|
1894
|
-
upcoming: "Upcoming",
|
|
1895
|
-
expired: "Expired"
|
|
1896
|
-
}
|
|
1859
|
+
remove: "ลบ",
|
|
1860
|
+
send: "ส่ง",
|
|
1861
|
+
share: "แชร์"
|
|
1862
|
+
},
|
|
1863
|
+
effect_required: "จำเป็นต้องมีผล",
|
|
1864
|
+
unsaved_changes: "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกการเปลี่ยนแปลงนี้",
|
|
1865
|
+
unsaved_changes_confirm: "ยกเลิก",
|
|
1866
|
+
unsaved_changes_cancel: "ยกเลิก",
|
|
1867
|
+
save: "บันทึก",
|
|
1868
|
+
cancel: "ยกเลิก",
|
|
1869
|
+
summary: "สรุปแคมเปญ",
|
|
1870
|
+
campaign_name: "ชื่อแคมเปญ",
|
|
1871
|
+
campaign_period: "ช่วงเวลาแคมเปญ",
|
|
1872
|
+
next_schedule_at: "กำหนดการถัดไป",
|
|
1873
|
+
discount_type: "ประเภทส่วนลด",
|
|
1874
|
+
discount_amount: "จำนวนส่วนลด",
|
|
1875
|
+
discount_percentage: "เปอร์เซ็นต์ส่วนลด",
|
|
1876
|
+
all_locations: "ทุกตำแหน่ง",
|
|
1877
|
+
available_at: "มีให้ใช้งานที่",
|
|
1878
|
+
always: "เสมอ",
|
|
1879
|
+
no_location: "ไม่มีตำแหน่ง"
|
|
1897
1880
|
},
|
|
1898
1881
|
mission: {
|
|
1899
|
-
title: "
|
|
1900
|
-
create: "
|
|
1901
|
-
confirmDelete: "
|
|
1902
|
-
removing: "
|
|
1903
|
-
removed: "
|
|
1904
|
-
updating: "
|
|
1905
|
-
updated: "
|
|
1906
|
-
creating: "
|
|
1907
|
-
created: "
|
|
1908
|
-
location: "
|
|
1909
|
-
createProgram: "
|
|
1910
|
-
description: "
|
|
1911
|
-
createButton: "
|
|
1912
|
-
type: "
|
|
1913
|
-
received: "
|
|
1882
|
+
title: "ภารกิจ",
|
|
1883
|
+
create: "สร้างแคมเปญ",
|
|
1884
|
+
confirmDelete: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
|
|
1885
|
+
removing: "กำลังลบ {name}",
|
|
1886
|
+
removed: "ลบ {name} สำเร็จแล้ว",
|
|
1887
|
+
updating: "กำลังอัปเดตโปรแกรมภารกิจ",
|
|
1888
|
+
updated: "อัปเดตโปรแกรมภารกิจเรียบร้อยแล้ว",
|
|
1889
|
+
creating: "กำลังสร้างโปรแกรมภารกิจ",
|
|
1890
|
+
created: "สร้างโปรแกรมภารกิจสำเร็จแล้ว",
|
|
1891
|
+
location: "ที่ตั้ง:",
|
|
1892
|
+
createProgram: "สร้างโปรแกรมภารกิจของคุณ",
|
|
1893
|
+
description: "ฟีเจอร์ภารกิจเพิ่มองค์ประกอบความสนุกให้กับการช้อปปิ้ง ช่วยกระตุ้นให้ลูกค้ามีส่วนร่วมมากขึ้น",
|
|
1894
|
+
createButton: "สร้างโปรแกรมภารกิจ",
|
|
1895
|
+
type: "ประเภทภารกิจ",
|
|
1896
|
+
received: "ได้รับ"
|
|
1914
1897
|
},
|
|
1915
1898
|
broadcast: {
|
|
1916
|
-
title: "
|
|
1917
|
-
messageSent: "{count}
|
|
1899
|
+
title: "บรอดแคสต์",
|
|
1900
|
+
messageSent: "ส่งแล้ว {count} ครั้ง",
|
|
1918
1901
|
create: {
|
|
1919
|
-
title: "
|
|
1920
|
-
description: "
|
|
1921
|
-
button: "
|
|
1902
|
+
title: "สร้างแคมเปญออกอากาศของคุณ",
|
|
1903
|
+
description: "บรอดแคสต์ทำให้คุณสามารถส่งข้อความถึงลูกค้าทั้งหมด เพื่อแจ้งให้พวกเขาทราบเกี่ยวกับข้อเสนอใหม่ กิจกรรม หรือการอัปเดตที่สำคัญ",
|
|
1904
|
+
button: "สร้างแคมเปญบรอดแคสต์"
|
|
1922
1905
|
},
|
|
1923
1906
|
update: {
|
|
1924
|
-
creating: "
|
|
1925
|
-
updating: "
|
|
1926
|
-
success: "
|
|
1907
|
+
creating: "กำลังสร้างการบรอดแคสต์",
|
|
1908
|
+
updating: "กำลังอัปเดตการบรอดแคสต์",
|
|
1909
|
+
success: "บรอดแคสต์ {action} สำเร็จแล้ว"
|
|
1927
1910
|
}
|
|
1928
1911
|
},
|
|
1929
1912
|
promotion: {
|
|
1930
|
-
title: "
|
|
1931
|
-
typeLabel: "{type}
|
|
1913
|
+
title: "โปรโมชัน",
|
|
1914
|
+
typeLabel: "{type} โปรโมชัน",
|
|
1932
1915
|
create: {
|
|
1933
|
-
title: "
|
|
1934
|
-
description: "
|
|
1935
|
-
button: "
|
|
1916
|
+
title: "สร้างแคมเปญโปรโมชัน",
|
|
1917
|
+
description: "ข้อเสนอพิเศษที่มีให้ในช่วงเวลาจำกัดเพื่อกระตุ้นให้ผู้ใช้มีส่วนร่วมและซื้อ โปรโมชั่นโดยทั่วไปจะมีให้สำหรับผู้ใช้ที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในช่วงเวลาที่จัดโปรโมชั่นเท่านั้น",
|
|
1918
|
+
button: "สร้างแคมเปญโปรโมชัน"
|
|
1936
1919
|
},
|
|
1937
1920
|
update: {
|
|
1938
|
-
creating: "
|
|
1939
|
-
updating: "
|
|
1940
|
-
success: "
|
|
1921
|
+
creating: "กำลังสร้างโปรโมชัน",
|
|
1922
|
+
updating: "กำลังอัปเดตโปรโมชัน",
|
|
1923
|
+
success: "โปรโมชัน {action} สำเร็จแล้ว"
|
|
1941
1924
|
}
|
|
1942
1925
|
},
|
|
1943
1926
|
voucher: {
|
|
1944
|
-
title: "
|
|
1945
|
-
claimed: "{count}
|
|
1946
|
-
unlimited: "
|
|
1927
|
+
title: "บัตรกำนัล",
|
|
1928
|
+
claimed: "ได้รับ {count} ครั้ง",
|
|
1929
|
+
unlimited: "ไม่จำกัด",
|
|
1947
1930
|
updateConfirm: {
|
|
1948
|
-
title: "
|
|
1949
|
-
message: "
|
|
1950
|
-
updateAll: "
|
|
1951
|
-
updateFuture: "
|
|
1931
|
+
title: "ยืนยัน",
|
|
1932
|
+
message: "การดำเนินการนี้จะเปลี่ยนแปลงคูปองในอนาคตทั้งหมดหรือไม่ คุณต้องการอัปเดตวันที่หมดอายุและส่วนลดของคูปองที่อ้างสิทธิ์ก่อนหน้านี้หรือไม่",
|
|
1933
|
+
updateAll: "อัปเดตทั้งหมด",
|
|
1934
|
+
updateFuture: "อัปเดตในอนาคตเท่านั้น"
|
|
1952
1935
|
},
|
|
1953
1936
|
create: {
|
|
1954
|
-
title: "
|
|
1955
|
-
description: "
|
|
1956
|
-
button: "
|
|
1937
|
+
title: "สร้างแคมเปญคูปอง",
|
|
1938
|
+
description: "คูปองดิจิทัลที่ผู้ใช้สามารถแลกรับส่วนลดในการซื้อในอนาคต โดยปกติแล้วผู้ใช้จะต้องรับและใช้คูปองเพื่อรับส่วนลด",
|
|
1939
|
+
button: "สร้างแคมเปญคูปอง"
|
|
1957
1940
|
},
|
|
1958
1941
|
update: {
|
|
1959
|
-
creating: "
|
|
1960
|
-
updating: "
|
|
1961
|
-
success: "
|
|
1942
|
+
creating: "กำลังสร้างคูปอง",
|
|
1943
|
+
updating: "กำลังอัปเดตคูปอง",
|
|
1944
|
+
success: "คูปอง {action} สำเร็จ"
|
|
1962
1945
|
},
|
|
1963
1946
|
share: {
|
|
1964
|
-
error: "
|
|
1965
|
-
errorTitle: "
|
|
1966
|
-
errorButton: "
|
|
1967
|
-
success: "
|
|
1947
|
+
error: "ไม่สามารถแชร์คูปองที่ไม่ใช่การอ้างสิทธิ์แบบง่ายได้",
|
|
1948
|
+
errorTitle: "แชร์คูปอง",
|
|
1949
|
+
errorButton: "ตกลง",
|
|
1950
|
+
success: "คัดลอกลิงก์คูปองไปยังคลิปบอร์ดแล้ว"
|
|
1968
1951
|
}
|
|
1969
1952
|
}
|
|
1970
1953
|
},
|
|
1971
1954
|
promotion: {
|
|
1972
|
-
createCampaign: "
|
|
1973
|
-
promotionTitle: "
|
|
1974
|
-
status: "
|
|
1975
|
-
type: "
|
|
1976
|
-
summary: "
|
|
1977
|
-
actions: "
|
|
1978
|
-
confirmRemove: "
|
|
1979
|
-
removing: "
|
|
1980
|
-
removedSuccessfully: "
|
|
1981
|
-
updating: "
|
|
1982
|
-
creating: "
|
|
1983
|
-
updatedSuccessfully: "
|
|
1984
|
-
createdSuccessfully: "
|
|
1985
|
-
title: "
|
|
1986
|
-
search: "
|
|
1987
|
-
location: "
|
|
1988
|
-
createPromotionCampaign: "
|
|
1989
|
-
description: "
|
|
1955
|
+
createCampaign: "สร้างแคมเปญ",
|
|
1956
|
+
promotionTitle: "ชื่อโปรโมชัน",
|
|
1957
|
+
status: "สถานะ",
|
|
1958
|
+
type: "ประเภท",
|
|
1959
|
+
summary: "สรุป",
|
|
1960
|
+
actions: "การดำเนินการ",
|
|
1961
|
+
confirmRemove: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
|
|
1962
|
+
removing: "กำลังลบ {name}",
|
|
1963
|
+
removedSuccessfully: "ลบ {name} สำเร็จ",
|
|
1964
|
+
updating: "กำลังอัปเดตโปรโมชัน",
|
|
1965
|
+
creating: "กำลังสร้างโปรโมชัน",
|
|
1966
|
+
updatedSuccessfully: "อัปเดตโปรโมชันสำเร็จแล้ว",
|
|
1967
|
+
createdSuccessfully: "สร้างโปรโมชันสำเร็จแล้ว",
|
|
1968
|
+
title: "โปรโมชัน",
|
|
1969
|
+
search: "ค้นหา",
|
|
1970
|
+
location: "ที่ตั้ง:",
|
|
1971
|
+
createPromotionCampaign: "สร้างแคมเปญส่งเสริมการขาย",
|
|
1972
|
+
description: "ข้อเสนอพิเศษที่มีให้ในช่วงเวลาจำกัดเพื่อกระตุ้นให้ผู้ใช้มีส่วนร่วมและซื้อ โปรโมชั่นโดยทั่วไปจะมีให้สำหรับผู้ใช้ที่มีสิทธิ์ทุกคนโดยไม่ต้องใช้โค้ดเฉพาะ และจะถูกนำมาใช้โดยร้านค้าในช่วงเวลาที่จัดโปรโมชั่นเท่านั้น"
|
|
1990
1973
|
},
|
|
1991
1974
|
voucher: {
|
|
1992
|
-
createCampaign: "
|
|
1993
|
-
voucherTitle: "
|
|
1994
|
-
status: "
|
|
1995
|
-
summary: "
|
|
1996
|
-
quota: "
|
|
1997
|
-
claimed: "
|
|
1998
|
-
actions: "
|
|
1999
|
-
remove: "
|
|
2000
|
-
send: "
|
|
2001
|
-
share: "
|
|
2002
|
-
confirmRemove: "
|
|
2003
|
-
removing: "
|
|
2004
|
-
removedSuccessfully: "
|
|
2005
|
-
updating: "
|
|
2006
|
-
creating: "
|
|
2007
|
-
updatedSuccessfully: "
|
|
2008
|
-
createdSuccessfully: "
|
|
2009
|
-
title: "
|
|
2010
|
-
search: "
|
|
2011
|
-
location: "
|
|
2012
|
-
createVoucherCampaign: "
|
|
2013
|
-
description: "
|
|
1975
|
+
createCampaign: "สร้างแคมเปญ",
|
|
1976
|
+
voucherTitle: "ชื่อคูปอง",
|
|
1977
|
+
status: "สถานะ",
|
|
1978
|
+
summary: "สรุป",
|
|
1979
|
+
quota: "โควตา",
|
|
1980
|
+
claimed: "อ้างสิทธิ์",
|
|
1981
|
+
actions: "การดำเนินการ",
|
|
1982
|
+
remove: "ลบ",
|
|
1983
|
+
send: "ส่ง",
|
|
1984
|
+
share: "แชร์",
|
|
1985
|
+
confirmRemove: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}",
|
|
1986
|
+
removing: "กำลังลบ {name}",
|
|
1987
|
+
removedSuccessfully: "ลบ {name} สำเร็จแล้ว",
|
|
1988
|
+
updating: "กำลังอัปเดตคูปอง",
|
|
1989
|
+
creating: "กำลังสร้างคูปอง",
|
|
1990
|
+
updatedSuccessfully: "อัปเดตคูปองสำเร็จแล้ว",
|
|
1991
|
+
createdSuccessfully: "สร้างคูปองสำเร็จแล้ว",
|
|
1992
|
+
title: "คูปอง",
|
|
1993
|
+
search: "ค้นหา",
|
|
1994
|
+
location: "ตำแหน่ง:",
|
|
1995
|
+
createVoucherCampaign: "สร้างแคมเปญคูปอง",
|
|
1996
|
+
description: "คูปองดิจิทัลที่ผู้ใช้สามารถแลกรับส่วนลดในการซื้อในอนาคต โดยปกติแล้วผู้ใช้จะต้องรับและใช้คูปองเพื่อรับส่วนลด"
|
|
2014
1997
|
},
|
|
2015
1998
|
navigation: {
|
|
2016
|
-
analytic: "
|
|
2017
|
-
campaign: "
|
|
2018
|
-
promotion: "
|
|
2019
|
-
voucher: "
|
|
2020
|
-
broadcast: "
|
|
2021
|
-
program: "
|
|
2022
|
-
tier: "
|
|
2023
|
-
title: "
|
|
2024
|
-
experience: "
|
|
2025
|
-
point: "
|
|
2026
|
-
credit: "
|
|
2027
|
-
game: "
|
|
2028
|
-
loyalty: "
|
|
2029
|
-
member: "
|
|
2030
|
-
segments: "
|
|
2031
|
-
card: "
|
|
2032
|
-
store: "
|
|
2033
|
-
transaction: "
|
|
2034
|
-
setting: "
|
|
2035
|
-
mission: "
|
|
1999
|
+
analytic: "การวิเคราะห์",
|
|
2000
|
+
campaign: "แคมเปญ",
|
|
2001
|
+
promotion: "โปรโมชั่น",
|
|
2002
|
+
voucher: "บัตรกำนัล",
|
|
2003
|
+
broadcast: "บรอดแคสต์",
|
|
2004
|
+
program: "โปรแกรม",
|
|
2005
|
+
tier: "ระดับ",
|
|
2006
|
+
title: "ชื่อ",
|
|
2007
|
+
experience: "ประสบการณ์",
|
|
2008
|
+
point: "คะแนน",
|
|
2009
|
+
credit: "เครดิต",
|
|
2010
|
+
game: "เกม",
|
|
2011
|
+
loyalty: "ความภักดี",
|
|
2012
|
+
member: "สมาชิก",
|
|
2013
|
+
segments: "กลุ่ม",
|
|
2014
|
+
card: "บัตร",
|
|
2015
|
+
store: "ร้านค้า",
|
|
2016
|
+
transaction: "ธุรกรรม",
|
|
2017
|
+
setting: "การตั้งค่า",
|
|
2018
|
+
mission: "ภารกิจ"
|
|
2036
2019
|
},
|
|
2037
2020
|
loyalty: {
|
|
2038
2021
|
card: {
|
|
2039
|
-
title: "
|
|
2040
|
-
premium_label: "
|
|
2022
|
+
title: "บัตร",
|
|
2023
|
+
premium_label: "พรีเมียม",
|
|
2041
2024
|
actions: {
|
|
2042
|
-
create: "
|
|
2043
|
-
manage_design: "
|
|
2044
|
-
add: "
|
|
2025
|
+
create: "สร้างบัตร",
|
|
2026
|
+
manage_design: "จัดการการออกแบบ",
|
|
2027
|
+
add: "เพิ่มบัตร"
|
|
2045
2028
|
},
|
|
2046
2029
|
empty_state: {
|
|
2047
|
-
title: "
|
|
2048
|
-
description: "
|
|
2049
|
-
premium_cta: "
|
|
2030
|
+
title: "สร้างบัตรสมาชิก",
|
|
2031
|
+
description: "ติดตามและจัดการบัตรสมาชิกเพื่อให้ลูกค้ามีส่วนร่วมกับธุรกิจของคุณ",
|
|
2032
|
+
premium_cta: "อัปเกรดเป็นพรีเมียมและเพลิดเพลินกับฟีเจอร์ทั้งหมด"
|
|
2050
2033
|
},
|
|
2051
2034
|
table: {
|
|
2052
|
-
card_number: "
|
|
2053
|
-
redeemed_by: "
|
|
2054
|
-
phone: "
|
|
2055
|
-
created_at: "
|
|
2056
|
-
bundle: "
|
|
2057
|
-
redeemed_at: "
|
|
2035
|
+
card_number: "หมายเลขบัตร",
|
|
2036
|
+
redeemed_by: "แลกรับโดย",
|
|
2037
|
+
phone: "โทรศัพท์",
|
|
2038
|
+
created_at: "สร้างเมื่อ",
|
|
2039
|
+
bundle: "ชุดบัตร",
|
|
2040
|
+
redeemed_at: "แลกรับเมื่อ",
|
|
2041
|
+
actions: "การดำเนินการ"
|
|
2058
2042
|
}
|
|
2059
2043
|
},
|
|
2060
2044
|
member: {
|
|
2061
|
-
title: "
|
|
2045
|
+
title: "ธุรกรรมของสมาชิก",
|
|
2062
2046
|
tabs: {
|
|
2063
|
-
member_list: "
|
|
2047
|
+
member_list: "รายชื่อสมาชิก"
|
|
2064
2048
|
}
|
|
2065
2049
|
},
|
|
2066
2050
|
segment: {
|
|
2067
|
-
title: "
|
|
2051
|
+
title: "กลุ่ม",
|
|
2068
2052
|
actions: {
|
|
2069
|
-
refresh: "
|
|
2070
|
-
add: "
|
|
2071
|
-
remove: "
|
|
2053
|
+
refresh: "รีเฟรชกลุ่มบัตร",
|
|
2054
|
+
add: "เพิ่มกลุ่มบัตร",
|
|
2055
|
+
remove: "ลบ"
|
|
2072
2056
|
},
|
|
2073
2057
|
table: {
|
|
2074
|
-
name: "
|
|
2075
|
-
total_customers: "
|
|
2076
|
-
customer_percentage: "%
|
|
2077
|
-
actions: "
|
|
2058
|
+
name: "ชื่อ",
|
|
2059
|
+
total_customers: "จำนวนลูกค้าทั้งหมดในกลุ่มบัตรนี้",
|
|
2060
|
+
customer_percentage: "% ของลูกค้า",
|
|
2061
|
+
actions: "การดำเนินการ"
|
|
2078
2062
|
},
|
|
2079
2063
|
mobile: {
|
|
2080
|
-
total_customers: "{count}
|
|
2081
|
-
customer_percentage: "{percentage}%
|
|
2064
|
+
total_customers: "ลูกค้าทั้งหมด {count} ราย",
|
|
2065
|
+
customer_percentage: "ลูกค้าทั้งหมด {percentage}%"
|
|
2082
2066
|
}
|
|
2083
2067
|
}
|
|
2084
2068
|
},
|
|
2085
2069
|
program: {
|
|
2086
2070
|
common: {
|
|
2087
|
-
create: "
|
|
2088
|
-
search: "
|
|
2089
|
-
location: "
|
|
2090
|
-
used: "{count}
|
|
2071
|
+
create: "สร้างโปรแกรม",
|
|
2072
|
+
search: "ค้นหา",
|
|
2073
|
+
location: "ตำแหน่ง:",
|
|
2074
|
+
used: "ใช้ไปแล้ว {count} ราย",
|
|
2091
2075
|
actions: {
|
|
2092
|
-
create: "
|
|
2093
|
-
delete: "
|
|
2076
|
+
create: "สร้างโปรแกรม {type} ราย",
|
|
2077
|
+
delete: "ลบ"
|
|
2094
2078
|
},
|
|
2095
2079
|
table: {
|
|
2096
|
-
title: "
|
|
2097
|
-
status: "
|
|
2098
|
-
summary: "
|
|
2099
|
-
actions: "
|
|
2100
|
-
type: "
|
|
2080
|
+
title: "ชื่อโปรแกรม",
|
|
2081
|
+
status: "สถานะ",
|
|
2082
|
+
summary: "สรุป",
|
|
2083
|
+
actions: "การดำเนินการ",
|
|
2084
|
+
type: "ประเภท"
|
|
2101
2085
|
},
|
|
2102
2086
|
remove: {
|
|
2103
|
-
confirm: "
|
|
2104
|
-
removing: "
|
|
2105
|
-
removed: "
|
|
2087
|
+
confirm: "คุณแน่ใจว่าต้องการลบ {name} หรือไม่",
|
|
2088
|
+
removing: "กำลังลบ {name}",
|
|
2089
|
+
removed: "ลบ {name} สำเร็จแล้ว"
|
|
2106
2090
|
},
|
|
2107
2091
|
update: {
|
|
2108
|
-
creating: "
|
|
2109
|
-
updating: "
|
|
2110
|
-
success: "{type}
|
|
2092
|
+
creating: "กำลังสร้างโปรแกรม {type}",
|
|
2093
|
+
updating: "กำลังอัปเดตโปรแกรม {type}",
|
|
2094
|
+
success: "โปรแกรม {type} {action} สำเร็จแล้ว"
|
|
2111
2095
|
}
|
|
2112
2096
|
},
|
|
2113
2097
|
experience: {
|
|
2114
|
-
title: "
|
|
2098
|
+
title: "ประสบการณ์",
|
|
2115
2099
|
empty_state: {
|
|
2116
|
-
title: "
|
|
2117
|
-
description: "
|
|
2100
|
+
title: "สร้างโปรแกรมประสบการณ์",
|
|
2101
|
+
description: "ประสบการณ์ช่วยให้ลูกค้าได้รับระดับสมาชิกที่สูงขึ้น ยิ่งลูกค้าโต้ตอบและใช้จ่ายมากเท่าไหร่ ระดับสมาชิกของพวกเขาก็จะสูงขึ้นเท่านั้น ทำให้สามารถปลดล็อกรางวัลและสิทธิประโยชน์ต่างๆ มากขึ้น"
|
|
2118
2102
|
},
|
|
2119
|
-
received: "
|
|
2103
|
+
received: "ประสบการณ์ที่ได้รับ: {count}"
|
|
2120
2104
|
},
|
|
2121
2105
|
game: {
|
|
2122
|
-
title: "
|
|
2106
|
+
title: "เกม",
|
|
2123
2107
|
empty_state: {
|
|
2124
|
-
title: "
|
|
2125
|
-
description: "
|
|
2108
|
+
title: "สร้างโปรแกรมเกมของคุณ",
|
|
2109
|
+
description: "ฟีเจอร์เกมเพิ่มความสนุกสนานให้กับการช้อปปิ้ง กระตุ้นให้ลูกค้ามีส่วนร่วมมากขึ้น"
|
|
2126
2110
|
},
|
|
2127
|
-
token_received: "
|
|
2111
|
+
token_received: "โทเค็นที่ได้รับ: {count}"
|
|
2128
2112
|
},
|
|
2129
2113
|
credit: {
|
|
2130
|
-
title: "
|
|
2114
|
+
title: "เครดิต"
|
|
2131
2115
|
},
|
|
2132
2116
|
point: {
|
|
2133
|
-
title: "
|
|
2117
|
+
title: "คะแนน",
|
|
2134
2118
|
empty_state: {
|
|
2135
|
-
title: "
|
|
2136
|
-
description: "
|
|
2119
|
+
title: "สร้างโปรแกรมคะแนนของคุณ",
|
|
2120
|
+
description: "คะแนนคือคะแนนเสมือนที่ลูกค้าสามารถรับและนำไปใช้ซื้อสินค้าแบบเป็นชุด (Bundle)"
|
|
2137
2121
|
},
|
|
2138
|
-
point_received: "
|
|
2139
|
-
used: "{count}
|
|
2122
|
+
point_received: "คะแนนที่ได้รับ: {count}",
|
|
2123
|
+
used: "ใช้ไปแล้ว {count} คะแนน"
|
|
2140
2124
|
},
|
|
2141
2125
|
tier: {
|
|
2142
|
-
title: "
|
|
2126
|
+
title: "ระดับ",
|
|
2143
2127
|
empty_state: {
|
|
2144
|
-
title: "
|
|
2145
|
-
description: "
|
|
2128
|
+
title: "สร้างโปรแกรมระดับ",
|
|
2129
|
+
description: "มอบสิทธิประโยชน์และรางวัลสุดพิเศษให้กับสมาชิกของคุณด้วยการเข้าร่วมแคมเปญสมาชิก คุณสามารถเลือกสิ่งที่สมาชิกต้องการเสนอได้"
|
|
2146
2130
|
},
|
|
2147
2131
|
actions: {
|
|
2148
|
-
add: "
|
|
2149
|
-
season_setting: "
|
|
2132
|
+
add: "เพิ่มระดับ",
|
|
2133
|
+
season_setting: "การตั้งค่าฤดูกาล"
|
|
2150
2134
|
},
|
|
2151
2135
|
update: {
|
|
2152
2136
|
range_discontinuous: {
|
|
2153
|
-
previous:
|
|
2154
|
-
|
|
2155
|
-
Do you want to update the previous range to [{from} - {newTo}]?`,
|
|
2156
|
-
next: `The tier range is not continuous.
|
|
2157
|
-
Next range: {name} [{from} - {to}].
|
|
2158
|
-
Do you want to update the next range to [{newFrom} - {to}]?`
|
|
2137
|
+
previous: "ช่วงชั้นไม่ต่อเนื่อง ช่วงก่อนหน้า: {name} [{from} - {to}] คุณต้องการอัปเดตช่วงก่อนหน้าเป็น [{from} - {newTo}] หรือไม่",
|
|
2138
|
+
next: "ช่วงชั้นไม่ต่อเนื่อง ช่วงถัดไป: {name} [{from} - {to}] คุณต้องการอัปเดตช่วงถัดไปเป็น [{newFrom} - {to}] หรือไม่"
|
|
2159
2139
|
}
|
|
2160
2140
|
},
|
|
2161
2141
|
remove: {
|
|
2162
|
-
confirm: "
|
|
2163
|
-
title: "
|
|
2164
|
-
next_range: "
|
|
2142
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบระดับนี้?",
|
|
2143
|
+
title: "ลบระดับ",
|
|
2144
|
+
next_range: "อัปเดตช่วงถัดไป",
|
|
2165
2145
|
range_discontinuous: {
|
|
2166
|
-
previous:
|
|
2167
|
-
|
|
2168
|
-
Do you want to update the previous range to [{from} - {newTo}]?`,
|
|
2169
|
-
next: `The tier range is not continuous.
|
|
2170
|
-
Next range: {name} [{from} - {to}].
|
|
2171
|
-
Do you want to update the next range to [{newFrom} - {to}]?`
|
|
2146
|
+
previous: "ช่วงชั้นไม่ต่อเนื่อง ช่วงก่อนหน้า: {name} [{from} - {to}] คุณต้องการอัปเดตช่วงก่อนหน้าเป็น [{from} - {newTo}] หรือไม่",
|
|
2147
|
+
next: "ช่วงชั้นไม่ต่อเนื่อง ช่วงถัดไป: {name} [{from} - {to}] คุณต้องการอัปเดตช่วงถัดไปเป็น [{newFrom} - {to}] หรือไม่"
|
|
2172
2148
|
}
|
|
2173
2149
|
},
|
|
2174
2150
|
benefit: {
|
|
2175
|
-
add: "
|
|
2176
|
-
no_linked: "
|
|
2151
|
+
add: "เพิ่มสิทธิประโยชน์",
|
|
2152
|
+
no_linked: "ไม่มีสิทธิประโยชน์ที่เชื่อมโยง",
|
|
2177
2153
|
update: {
|
|
2178
|
-
title: "
|
|
2179
|
-
success: "
|
|
2154
|
+
title: "กำลังอัปเดตสิทธิประโยชน์",
|
|
2155
|
+
success: "สร้างสิทธิประโยชน์สำเร็จแล้ว"
|
|
2180
2156
|
}
|
|
2181
|
-
},
|
|
2182
|
-
expression: {
|
|
2183
|
-
title: "Tier expiration rule",
|
|
2184
|
-
description: "To set up membership tier experience rules when expired",
|
|
2185
|
-
change_to: "Change to",
|
|
2186
|
-
deduct_by: "Deduct by",
|
|
2187
|
-
deduct_percentage: "Deduct percentage",
|
|
2188
|
-
value: "Value",
|
|
2189
|
-
value_greater_than_or_equal: "Value must be greater than or equal {value}",
|
|
2190
|
-
value_less_than_or_equal: "Value must be less than or equal {value}",
|
|
2191
|
-
value_between: "Value must be between {from} and {to}",
|
|
2192
|
-
value_less_than: "Value must be less than {value}"
|
|
2193
|
-
},
|
|
2194
|
-
card: {
|
|
2195
|
-
count: "{count} members"
|
|
2196
2157
|
}
|
|
2197
2158
|
},
|
|
2198
2159
|
title: {
|
|
2199
|
-
title: "
|
|
2160
|
+
title: "ชื่อเรื่อง",
|
|
2200
2161
|
empty_state: {
|
|
2201
|
-
title: "
|
|
2202
|
-
description: "
|
|
2162
|
+
title: "สร้างโปรแกรมชื่อเรื่อง",
|
|
2163
|
+
description: "สร้างโปรแกรมชื่อ สร้างชื่อสมาชิกที่ไม่ซ้ำกันเพื่อปรับแต่งประสบการณ์ของสมาชิก ดึงดูดลูกค้าด้วยชื่อที่สนุกสนานเพื่อปรับปรุงการเล่นเกมโปรแกรมสะสมคะแนน"
|
|
2203
2164
|
},
|
|
2204
2165
|
actions: {
|
|
2205
|
-
add: "
|
|
2166
|
+
add: "เพิ่มชื่อ"
|
|
2206
2167
|
},
|
|
2207
2168
|
update: {
|
|
2208
|
-
creating: "
|
|
2209
|
-
updating: "
|
|
2210
|
-
success: "
|
|
2169
|
+
creating: "กำลังสร้างชื่อเรื่อง",
|
|
2170
|
+
updating: "กำลังอัปเดตชื่อเรื่อง",
|
|
2171
|
+
success: "ชื่อ {action} สำเร็จแล้ว"
|
|
2211
2172
|
},
|
|
2212
2173
|
remove: {
|
|
2213
|
-
confirm: "
|
|
2214
|
-
title: "
|
|
2215
|
-
deleting: "
|
|
2216
|
-
success: "
|
|
2174
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบชื่อนี้",
|
|
2175
|
+
title: "ลบชื่อ",
|
|
2176
|
+
deleting: "กำลังลบชื่อเรื่อง",
|
|
2177
|
+
success: "ลบชื่อแล้ว"
|
|
2217
2178
|
},
|
|
2218
2179
|
benefit: {
|
|
2219
|
-
add: "
|
|
2220
|
-
no_linked: "
|
|
2180
|
+
add: "เพิ่มสิทธิประโยชน์",
|
|
2181
|
+
no_linked: "ไม่มีสิทธิประโยชน์ที่เชื่อมโยง",
|
|
2221
2182
|
update: {
|
|
2222
|
-
title: "
|
|
2223
|
-
success: "
|
|
2183
|
+
title: "อัพเดทสิทธิประโยชน์",
|
|
2184
|
+
success: "สร้างสิทธิประโยชน์สำเร็จแล้ว"
|
|
2224
2185
|
},
|
|
2225
2186
|
voucher_update: {
|
|
2226
|
-
title: "
|
|
2227
|
-
message: "
|
|
2228
|
-
update_all: "
|
|
2229
|
-
update_future: "
|
|
2187
|
+
title: "การยืนยัน",
|
|
2188
|
+
message: "สิ่งนี้จะเปลี่ยนบัตรกำนัลในอนาคตทั้งหมดหรือไม่ คุณต้องการอัปเดตวันหมดอายุและส่วนลดของบัตรกำนัลที่อ้างสิทธิ์ก่อนหน้านี้หรือไม่",
|
|
2189
|
+
update_all: "อัพเดททั้งหมด",
|
|
2190
|
+
update_future: "อัพเดทในอนาคตเท่านั้น"
|
|
2230
2191
|
}
|
|
2231
2192
|
},
|
|
2232
2193
|
table: {
|
|
2233
|
-
title: "
|
|
2234
|
-
program_title: "
|
|
2235
|
-
status: "
|
|
2236
|
-
type: "
|
|
2237
|
-
summary: "
|
|
2238
|
-
actions: "
|
|
2239
|
-
},
|
|
2240
|
-
search: "
|
|
2241
|
-
location: "
|
|
2242
|
-
addBenefit: "
|
|
2243
|
-
noDescription: "
|
|
2244
|
-
descriptionLimit: "{name}
|
|
2245
|
-
availability: "
|
|
2246
|
-
internalOnly: "
|
|
2247
|
-
notShown: "{name}
|
|
2248
|
-
submit: "
|
|
2249
|
-
cancel: "
|
|
2250
|
-
imageLabel: "{
|
|
2194
|
+
title: "ชื่อ",
|
|
2195
|
+
program_title: "ชื่อโปรแกรม",
|
|
2196
|
+
status: "สถานะ",
|
|
2197
|
+
type: "พิมพ์",
|
|
2198
|
+
summary: "สรุป",
|
|
2199
|
+
actions: "การดำเนินการ"
|
|
2200
|
+
},
|
|
2201
|
+
search: "ค้นหา",
|
|
2202
|
+
location: "ที่ตั้ง: ",
|
|
2203
|
+
addBenefit: "เพิ่มสิทธิประโยชน์",
|
|
2204
|
+
noDescription: "ไม่มีคำอธิบาย",
|
|
2205
|
+
descriptionLimit: "{name} คำอธิบายไม่ควรเกิน 200 ตัวอักษร",
|
|
2206
|
+
availability: "ความพร้อมใช้งาน",
|
|
2207
|
+
internalOnly: "ภายในเท่านั้น",
|
|
2208
|
+
notShown: "{name} จะไม่แสดงให้ลูกค้าเห็น",
|
|
2209
|
+
submit: "ส่ง",
|
|
2210
|
+
cancel: "ยกเลิก",
|
|
2211
|
+
imageLabel: "รูปภาพ {ชื่อ}"
|
|
2251
2212
|
},
|
|
2252
2213
|
mission: {
|
|
2253
|
-
title: "
|
|
2214
|
+
title: "ภารกิจ",
|
|
2254
2215
|
empty_state: {
|
|
2255
|
-
title: "
|
|
2256
|
-
description: "
|
|
2216
|
+
title: "สร้างโปรแกรมภารกิจของคุณ",
|
|
2217
|
+
description: "ภารกิจเป็นโปรแกรมที่ช่วยให้ลูกค้าสามารถทำงานให้เสร็จสิ้นเพื่อรับรางวัลได้"
|
|
2257
2218
|
}
|
|
2258
2219
|
}
|
|
2259
2220
|
},
|
|
2260
2221
|
analytic: {
|
|
2261
|
-
title: "
|
|
2262
|
-
addGroup: "
|
|
2263
|
-
search: "
|
|
2222
|
+
title: "วิเคราะห์",
|
|
2223
|
+
addGroup: "เพิ่มกลุ่ม",
|
|
2224
|
+
search: "ค้นหา",
|
|
2264
2225
|
summary: {
|
|
2265
|
-
title: "
|
|
2266
|
-
totalCampaign: "
|
|
2267
|
-
totalProgram: "
|
|
2268
|
-
totalMember: "
|
|
2226
|
+
title: "เชื่อมต่อสรุป",
|
|
2227
|
+
totalCampaign: "รวมแคมเปญ",
|
|
2228
|
+
totalProgram: "โปรแกรมรวม",
|
|
2229
|
+
totalMember: "สมาชิกทั้งหมด"
|
|
2269
2230
|
},
|
|
2270
2231
|
emptyState: {
|
|
2271
|
-
title: "
|
|
2272
|
-
description: "
|
|
2273
|
-
action: "
|
|
2232
|
+
title: "สร้างกลุ่มแคมเปญเพื่อติดตามประสิทธิภาพ",
|
|
2233
|
+
description: "เริ่มจัดระเบียบแคมเปญและโปรโมชั่นของคุณโดยการสร้างกลุ่ม กลุ่มช่วยให้คุณสามารถรวมตัวชี้วัดประสิทธิภาพจากบัตรกำนัล โปรโมชั่น หรือรางวัลอื่น ๆ ได้หลายรายการ",
|
|
2234
|
+
action: "สร้างกลุ่ม"
|
|
2274
2235
|
}
|
|
2275
2236
|
},
|
|
2276
2237
|
marketing: {
|
|
2277
|
-
title: "
|
|
2278
|
-
create: "
|
|
2279
|
-
search: "
|
|
2238
|
+
title: "สื่อการตลาด",
|
|
2239
|
+
create: "สร้างสื่อการตลาด",
|
|
2240
|
+
search: "ค้นหา",
|
|
2280
2241
|
table: {
|
|
2281
|
-
name: "
|
|
2282
|
-
campaign: "
|
|
2283
|
-
createdDate: "
|
|
2284
|
-
actions: "
|
|
2242
|
+
name: "ชื่อ",
|
|
2243
|
+
campaign: "แคมเปญ",
|
|
2244
|
+
createdDate: "วันที่สร้าง",
|
|
2245
|
+
actions: "การดำเนินการ"
|
|
2285
2246
|
},
|
|
2286
2247
|
delete: {
|
|
2287
|
-
confirm: "
|
|
2288
|
-
removing: "
|
|
2289
|
-
success: "
|
|
2248
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบ {name}?",
|
|
2249
|
+
removing: "กำลังลบ {name}",
|
|
2250
|
+
success: "ลบ {name} เรียบร้อยแล้ว"
|
|
2290
2251
|
},
|
|
2291
2252
|
emptyState: {
|
|
2292
|
-
title: "
|
|
2293
|
-
description: "
|
|
2294
|
-
action: "
|
|
2253
|
+
title: "สร้างสื่อการตลาด",
|
|
2254
|
+
description: "เพิ่มความสามารถทางการตลาดของคุณอย่างง่ายดายด้วยเครื่องมือที่ขับเคลื่อนด้วย AI ของเรา สร้างภาพที่น่าทึ่งและคำบรรยายที่น่าดึงดูดสำหรับแพลตฟอร์มที่คุณต้องการ",
|
|
2255
|
+
action: "เพิ่มวัสดุ"
|
|
2295
2256
|
},
|
|
2296
|
-
noResults: "
|
|
2257
|
+
noResults: "ไม่พบผลลัพธ์"
|
|
2297
2258
|
},
|
|
2298
2259
|
setting: {
|
|
2299
|
-
title: "
|
|
2260
|
+
title: "การตั้งค่า",
|
|
2300
2261
|
basicInfo: {
|
|
2301
|
-
title: "
|
|
2302
|
-
membershipTitle: "
|
|
2303
|
-
memberAppUrl: "
|
|
2262
|
+
title: "ข้อมูลพื้นฐาน",
|
|
2263
|
+
membershipTitle: "ชื่อสมาชิก",
|
|
2264
|
+
memberAppUrl: "URL ของแอปสมาชิก"
|
|
2304
2265
|
},
|
|
2305
2266
|
counterApp: {
|
|
2306
|
-
title: "
|
|
2307
|
-
linkDevice: "
|
|
2267
|
+
title: "แอพเคาน์เตอร์",
|
|
2268
|
+
linkDevice: "เชื่อมโยงอุปกรณ์",
|
|
2308
2269
|
device: {
|
|
2309
|
-
activationDate: "
|
|
2310
|
-
linkedLocation: "
|
|
2270
|
+
activationDate: "วันที่เปิดใช้งาน:",
|
|
2271
|
+
linkedLocation: "สถานที่ที่เชื่อมโยง:"
|
|
2311
2272
|
}
|
|
2312
2273
|
},
|
|
2313
2274
|
advertisement: {
|
|
2314
|
-
title: "
|
|
2315
|
-
subtitle: "
|
|
2275
|
+
title: "โฆษณา",
|
|
2276
|
+
subtitle: "ข้อมูลนี้จะแสดงบนแอปสั่งซื้อ FeedMe"
|
|
2316
2277
|
},
|
|
2317
2278
|
sms: {
|
|
2318
|
-
title: "SMS",
|
|
2319
|
-
brandName: "
|
|
2320
|
-
messageFormat: "RM
|
|
2321
|
-
welcomeMessage: "
|
|
2279
|
+
title: "ข้อความ SMS",
|
|
2280
|
+
brandName: "ชื่อแบรนด์",
|
|
2281
|
+
messageFormat: "0 RM {brand}: ข้อความถึงลูกค้าของคุณ",
|
|
2282
|
+
welcomeMessage: "สวัสดี คุณได้รับเชิญให้เข้าร่วมเป็นสมาชิก"
|
|
2322
2283
|
},
|
|
2323
2284
|
freeCredit: {
|
|
2324
|
-
title: "
|
|
2325
|
-
posVersion: "*POS
|
|
2326
|
-
description: "
|
|
2285
|
+
title: "เครดิตฟรีเป็นส่วนลด",
|
|
2286
|
+
posVersion: "*POS เวอร์ชัน 6.56 หรือสูงกว่า",
|
|
2287
|
+
description: "เมื่อเปิดใช้งาน สิ่งนี้จะทำให้เครดิตฟรีสามารถใช้เป็นส่วนลดในบิลได้ (POS >=v6.56)"
|
|
2327
2288
|
},
|
|
2328
2289
|
memberCard: {
|
|
2329
|
-
title: "
|
|
2330
|
-
description: "
|
|
2290
|
+
title: "บัตรสมาชิก",
|
|
2291
|
+
description: "อนุญาตให้สมาชิกผูกบัตรผ่านแอปสมาชิก"
|
|
2331
2292
|
},
|
|
2332
2293
|
location: {
|
|
2333
|
-
title: "
|
|
2334
|
-
selectLabel: "
|
|
2294
|
+
title: "สถานที่เปิดใช้งาน",
|
|
2295
|
+
selectLabel: "เลือกร้านอาหาร"
|
|
2335
2296
|
},
|
|
2336
2297
|
summary: {
|
|
2337
|
-
title: "
|
|
2338
|
-
name: "
|
|
2339
|
-
advertisement: "
|
|
2340
|
-
noAds: "
|
|
2341
|
-
freeCredit: "
|
|
2342
|
-
enabled: "
|
|
2343
|
-
disabled: "
|
|
2344
|
-
locations: "
|
|
2345
|
-
allLocations: "
|
|
2298
|
+
title: "สรุปการตั้งค่าความภักดี",
|
|
2299
|
+
name: "ชื่อ",
|
|
2300
|
+
advertisement: "โฆษณา",
|
|
2301
|
+
noAds: "ไม่มีโฆษณา",
|
|
2302
|
+
freeCredit: "เครดิตฟรีเป็นส่วนลด",
|
|
2303
|
+
enabled: "เปิดใช้งานแล้ว",
|
|
2304
|
+
disabled: "ไม่สามารถใช้งานได้",
|
|
2305
|
+
locations: "สถานที่ที่เปิดใช้งาน",
|
|
2306
|
+
allLocations: "สถานที่ทั้งหมด"
|
|
2346
2307
|
},
|
|
2347
2308
|
action: {
|
|
2348
|
-
update: "
|
|
2309
|
+
update: "อัปเดต"
|
|
2349
2310
|
}
|
|
2350
2311
|
},
|
|
2351
2312
|
transaction: {
|
|
2352
|
-
title: "
|
|
2313
|
+
title: "การทำธุรกรรม",
|
|
2353
2314
|
tabs: {
|
|
2354
|
-
collection: "
|
|
2355
|
-
store: "
|
|
2315
|
+
collection: "คอลเลคชั่น",
|
|
2316
|
+
store: "เก็บ"
|
|
2356
2317
|
}
|
|
2357
2318
|
},
|
|
2358
2319
|
store: {
|
|
2359
|
-
title: "
|
|
2320
|
+
title: "เก็บ",
|
|
2360
2321
|
setting: {
|
|
2361
|
-
title: "
|
|
2362
|
-
company: {
|
|
2363
|
-
legal_info: "Company legal information",
|
|
2364
|
-
name: "Company name",
|
|
2365
|
-
reg_no: "Registration number",
|
|
2366
|
-
tax_reg_no: "Tax Registration number",
|
|
2367
|
-
tax: "Tax",
|
|
2368
|
-
phone: "Phone number",
|
|
2369
|
-
address: {
|
|
2370
|
-
title: "Address",
|
|
2371
|
-
line1: "Line 1",
|
|
2372
|
-
line2: "Line 2",
|
|
2373
|
-
city: "City",
|
|
2374
|
-
postcode: "Postcode",
|
|
2375
|
-
state: "State",
|
|
2376
|
-
country: "Country"
|
|
2377
|
-
}
|
|
2378
|
-
},
|
|
2379
|
-
stripe: {
|
|
2380
|
-
title: "Stripe Integration"
|
|
2381
|
-
},
|
|
2322
|
+
title: "การตั้งค่าร้านค้า",
|
|
2382
2323
|
update: {
|
|
2383
|
-
message: "
|
|
2384
|
-
success: "
|
|
2324
|
+
message: "กำลังปรับปรุงการตั้งค่าร้านค้า",
|
|
2325
|
+
success: "อัปเดตการตั้งค่าร้านค้าเรียบร้อยแล้ว"
|
|
2385
2326
|
}
|
|
2386
2327
|
},
|
|
2387
2328
|
actions: {
|
|
2388
|
-
setting: "
|
|
2389
|
-
manageReward: "
|
|
2390
|
-
addCategory: "
|
|
2391
|
-
addBundle: "
|
|
2392
|
-
},
|
|
2393
|
-
category: {
|
|
2394
|
-
label: "Category",
|
|
2395
|
-
setup: {
|
|
2396
|
-
title: "Please set up your store setting first before adding category.",
|
|
2397
|
-
action: "Update now",
|
|
2398
|
-
button: "Update store setting"
|
|
2399
|
-
},
|
|
2400
|
-
add: "Add category",
|
|
2401
|
-
edit: "Edit category",
|
|
2402
|
-
remove: {
|
|
2403
|
-
confirm: "Are you sure you want to remove category?",
|
|
2404
|
-
title: "Remove category"
|
|
2405
|
-
},
|
|
2406
|
-
update: {
|
|
2407
|
-
deleting: "Deleting category",
|
|
2408
|
-
creating: "Creating category",
|
|
2409
|
-
updating: "Updating categories",
|
|
2410
|
-
success: {
|
|
2411
|
-
deleted: "Category deleted successfully",
|
|
2412
|
-
created: "Category created successfully",
|
|
2413
|
-
updated: "Category updated successfully"
|
|
2414
|
-
}
|
|
2415
|
-
}
|
|
2329
|
+
setting: "การตั้งค่าร้านค้า",
|
|
2330
|
+
manageReward: "จัดการรางวัล",
|
|
2331
|
+
addCategory: "เพิ่มหมวดหมู่",
|
|
2332
|
+
addBundle: "เพิ่มมัด"
|
|
2416
2333
|
},
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2334
|
+
category: {
|
|
2335
|
+
setup: {
|
|
2336
|
+
title: "โปรดตั้งค่าการตั้งค่าร้านค้าของคุณก่อนที่จะเพิ่มหมวดหมู่",
|
|
2337
|
+
action: "อัปเดตตอนนี้",
|
|
2338
|
+
button: "อัพเดตการตั้งค่าร้านค้า"
|
|
2339
|
+
},
|
|
2340
|
+
add: "เพิ่มหมวดหมู่",
|
|
2341
|
+
edit: "แก้ไขหมวดหมู่",
|
|
2342
|
+
remove: {
|
|
2343
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบหมวดหมู่",
|
|
2344
|
+
title: "ลบหมวดหมู่"
|
|
2345
|
+
},
|
|
2346
|
+
update: {
|
|
2347
|
+
deleting: "กำลังลบหมวดหมู่",
|
|
2348
|
+
creating: "กำลังสร้างหมวดหมู่",
|
|
2349
|
+
updating: "กำลังอัปเดตหมวดหมู่",
|
|
2350
|
+
success: {
|
|
2351
|
+
deleted: "ลบหมวดหมู่เรียบร้อยแล้ว",
|
|
2352
|
+
created: "สร้างหมวดหมู่เรียบร้อยแล้ว",
|
|
2353
|
+
updated: "อัปเดตหมวดหมู่เรียบร้อยแล้ว"
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
},
|
|
2357
|
+
bundle: {
|
|
2358
|
+
title: "รวมร้านค้า",
|
|
2359
|
+
description: "เพิ่มรายการที่คุณต้องการให้ผู้ใช้ใช้จ่ายและมาที่นี่ อาจเป็นได้ทั้งบัตรกำนัล สิทธิประโยชน์ ประสบการณ์ และอื่นๆ อีกมากมาย!",
|
|
2360
|
+
delete: {
|
|
2361
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบชุดข้อมูลนี้",
|
|
2362
|
+
title: "ลบชุดข้อมูล"
|
|
2363
|
+
},
|
|
2364
|
+
update: {
|
|
2365
|
+
error: "ข้อผิดพลาดที่ไม่คาดคิด",
|
|
2366
|
+
deleting: "กำลังลบชุดข้อมูล",
|
|
2367
|
+
creating: "กำลังสร้างชุดข้อมูล",
|
|
2368
|
+
updating: "กำลังอัปเดตชุดข้อมูล",
|
|
2369
|
+
success: {
|
|
2370
|
+
deleted: "ลบชุดข้อมูลเรียบร้อยแล้ว",
|
|
2371
|
+
created: "สร้างชุดข้อมูลเรียบร้อยแล้ว",
|
|
2372
|
+
updated: "อัปเดตชุดข้อมูลเรียบร้อยแล้ว"
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
edit: {
|
|
2376
|
+
title: "แก้ไขชุดข้อมูล",
|
|
2377
|
+
create: "สร้างชุดข้อมูลเรียบร้อยแล้ว",
|
|
2378
|
+
basicInformation: "ข้อมูลพื้นฐาน",
|
|
2379
|
+
bundleName: "ชื่อชุดข้อมูล",
|
|
2380
|
+
bundleImage: "รูปภาพชุดข้อมูล",
|
|
2381
|
+
bundlePrice: "ราคาชุดข้อมูล",
|
|
2382
|
+
bundleValue: "มูลค่าชุดข้อมูล",
|
|
2383
|
+
originalPrice: "ราคาเดิม",
|
|
2384
|
+
originalPriceHelper: "ปล่อยว่างไว้หรือตั้งค่าเป็น 0 เพื่อปิดใช้งานราคาเดิม",
|
|
2385
|
+
pointNeeded: "คะแนนที่ต้องการ",
|
|
2386
|
+
subscriptionSettings: "การตั้งค่าการสมัครสมาชิก",
|
|
2387
|
+
stripePriceId: "รหัสราคาแถบข้อมูล",
|
|
2388
|
+
subscriptionValidity: "อายุการใช้งานการสมัครสมาชิก (วัน)",
|
|
2389
|
+
submit: "ส่ง",
|
|
2390
|
+
cancel: "ยกเลิก",
|
|
2391
|
+
advanceSetting: "การตั้งค่าขั้นสูง",
|
|
2392
|
+
credit: "เครดิต",
|
|
2393
|
+
normalCredit: "เครดิตปกติ",
|
|
2394
|
+
freeCredit: "เครดิตฟรี",
|
|
2395
|
+
taxes: "ภาษี",
|
|
2456
2396
|
taxCharge: {
|
|
2457
|
-
title: "
|
|
2458
|
-
inclusive: "
|
|
2459
|
-
exclusive: "
|
|
2397
|
+
title: "ค่าธรรมเนียมภาษี ({type})",
|
|
2398
|
+
inclusive: "รวม",
|
|
2399
|
+
exclusive: "ไม่รวม"
|
|
2460
2400
|
},
|
|
2461
|
-
totalPrice: "
|
|
2462
|
-
internalBundle: "
|
|
2463
|
-
internalBundleDescription: "
|
|
2464
|
-
hideInPos: "
|
|
2465
|
-
hideInPosDescription: "Bundle
|
|
2466
|
-
maxPerUser: "
|
|
2401
|
+
totalPrice: "ราคาทั้งหมด",
|
|
2402
|
+
internalBundle: "ชุดข้อมูลภายใน",
|
|
2403
|
+
internalBundleDescription: "ชุดภายในจะถูกซ่อนอยู่ในแอปสมาชิก FeedMe",
|
|
2404
|
+
hideInPos: "ซ่อนใน POS",
|
|
2405
|
+
hideInPosDescription: "Bundle จะถูกซ่อนอยู่ใน FeedMe POS",
|
|
2406
|
+
maxPerUser: "การซื้อสูงสุดต่อผู้ใช้",
|
|
2467
2407
|
bundleReward: {
|
|
2468
|
-
title: "
|
|
2469
|
-
description: "
|
|
2408
|
+
title: "รางวัลมัด",
|
|
2409
|
+
description: "แจ้งให้สมาชิกของคุณทราบว่าพวกเขาสามารถคาดหวังอะไรได้จากชุดรวมนี้",
|
|
2470
2410
|
table: {
|
|
2471
|
-
title: "
|
|
2472
|
-
type: "
|
|
2473
|
-
description: "
|
|
2411
|
+
title: "ชื่อรางวัล",
|
|
2412
|
+
type: "ประเภทรางวัล",
|
|
2413
|
+
description: "คำอธิบาย"
|
|
2474
2414
|
}
|
|
2475
2415
|
}
|
|
2476
2416
|
}
|
|
2477
2417
|
}
|
|
2478
2418
|
},
|
|
2479
2419
|
storeRewards: {
|
|
2480
|
-
title: "
|
|
2420
|
+
title: "เก็บรางวัล",
|
|
2481
2421
|
remove: {
|
|
2482
|
-
message: "
|
|
2483
|
-
title: "
|
|
2484
|
-
action: "
|
|
2422
|
+
message: "คุณไม่สามารถลบชื่อได้ที่นี่ โปรดลบออกที่ส่วน โปรแกรม > ชื่อ",
|
|
2423
|
+
title: "ลบรางวัล",
|
|
2424
|
+
action: "ไปที่ส่วนชื่อเรื่อง"
|
|
2485
2425
|
},
|
|
2486
2426
|
edit: {
|
|
2487
|
-
message: "
|
|
2488
|
-
title: "
|
|
2489
|
-
action: "
|
|
2427
|
+
message: "คุณไม่สามารถแก้ไขชื่อได้ที่นี่ โปรดแก้ไขที่ส่วน โปรแกรม > ชื่อ",
|
|
2428
|
+
title: "อัพเดทรางวัล",
|
|
2429
|
+
action: "ไปที่ส่วนชื่อเรื่อง"
|
|
2490
2430
|
},
|
|
2491
|
-
description: "
|
|
2431
|
+
description: "สร้างและจัดการรางวัลสำหรับลูกค้าของคุณ",
|
|
2492
2432
|
type: {
|
|
2493
|
-
label: "
|
|
2494
|
-
all: "
|
|
2433
|
+
label: "ประเภทรางวัล: {type}",
|
|
2434
|
+
all: "ทั้งหมด"
|
|
2495
2435
|
},
|
|
2496
|
-
search: "
|
|
2436
|
+
search: "ค้นหา",
|
|
2497
2437
|
delete: {
|
|
2498
|
-
confirm: "
|
|
2499
|
-
title: "
|
|
2500
|
-
message: "
|
|
2501
|
-
success: "
|
|
2438
|
+
confirm: "คุณแน่ใจหรือไม่ว่าต้องการลบรางวัลนี้?",
|
|
2439
|
+
title: "ลบรางวัล",
|
|
2440
|
+
message: "กำลังลบรางวัล",
|
|
2441
|
+
success: "ลบรางวัลแล้ว"
|
|
2502
2442
|
},
|
|
2503
2443
|
update: {
|
|
2504
|
-
message: "
|
|
2505
|
-
success: "
|
|
2444
|
+
message: "กำลังอัปเดตรางวัล",
|
|
2445
|
+
success: "อัปเดตรางวัลเรียบร้อยแล้ว"
|
|
2506
2446
|
},
|
|
2507
2447
|
empty: {
|
|
2508
|
-
title: "
|
|
2509
|
-
description: "
|
|
2510
|
-
action: "
|
|
2448
|
+
title: "สร้างผลตอบแทน",
|
|
2449
|
+
description: "สร้างรางวัลสำหรับลูกค้าของคุณเพื่อแลกภายในชุดรวมของพวกเขา",
|
|
2450
|
+
action: "สร้างรางวัล"
|
|
2511
2451
|
},
|
|
2512
|
-
create: "
|
|
2452
|
+
create: "สร้างรางวัล",
|
|
2513
2453
|
table: {
|
|
2514
|
-
name: "
|
|
2515
|
-
type: "
|
|
2516
|
-
validity: "
|
|
2517
|
-
used: "
|
|
2518
|
-
actions: "
|
|
2454
|
+
name: "ชื่อ",
|
|
2455
|
+
type: "พิมพ์",
|
|
2456
|
+
validity: "ความถูกต้อง",
|
|
2457
|
+
used: "ใช้แล้ว",
|
|
2458
|
+
actions: "การดำเนินการ"
|
|
2519
2459
|
}
|
|
2520
2460
|
},
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
not_inclusive: "String must contain over {{minimum}} character(s)"
|
|
2576
|
-
},
|
|
2577
|
-
number: {
|
|
2578
|
-
exact: "Number must be exactly {{minimum}}",
|
|
2579
|
-
inclusive: "Number must be greater than or equal to {{minimum}}",
|
|
2580
|
-
not_inclusive: "Number must be greater than {{minimum}}"
|
|
2581
|
-
},
|
|
2582
|
-
set: {
|
|
2583
|
-
exact: "Invalid input",
|
|
2584
|
-
inclusive: "Invalid input",
|
|
2585
|
-
not_inclusive: "Invalid input"
|
|
2461
|
+
zod: {
|
|
2462
|
+
invalid_type: "คาดหวัง {{expected}} ได้รับ {{received}}",
|
|
2463
|
+
errors: {
|
|
2464
|
+
invalid_type: "คาดหวัง {{expected}} ได้รับ {{received}}",
|
|
2465
|
+
invalid_type_received_undefined: "ที่จำเป็น",
|
|
2466
|
+
invalid_type_received_null: "ที่จำเป็น",
|
|
2467
|
+
invalid_literal: "ค่าตัวอักษรไม่ถูกต้อง คาดไว้ {{expected}}",
|
|
2468
|
+
unrecognized_keys: "คีย์ที่ไม่รู้จักในออบเจ็กต์: {{- คีย์}}",
|
|
2469
|
+
invalid_union: "อินพุตไม่ถูกต้อง",
|
|
2470
|
+
invalid_union_discriminator: "ค่าตัวแบ่งแยกไม่ถูกต้อง คาดหวัง {{- ตัวเลือก}}",
|
|
2471
|
+
invalid_enum_value: "ค่าแจงนับไม่ถูกต้อง คาดหวัง {{- options}} ได้รับ '{{received}}'",
|
|
2472
|
+
invalid_arguments: "อาร์กิวเมนต์ของฟังก์ชันไม่ถูกต้อง",
|
|
2473
|
+
invalid_return_type: "ประเภทการส่งคืนฟังก์ชันไม่ถูกต้อง",
|
|
2474
|
+
invalid_date: "วันที่ไม่ถูกต้อง",
|
|
2475
|
+
custom: "อินพุตไม่ถูกต้อง",
|
|
2476
|
+
invalid_intersection_types: "ไม่สามารถรวมผลลัพธ์ทางแยกได้",
|
|
2477
|
+
not_multiple_of: "จำนวนต้องเป็นจำนวนทวีคูณของ {{multipleOf}}",
|
|
2478
|
+
not_finite: "จำนวนต้องมีจำกัด",
|
|
2479
|
+
invalid_string: {
|
|
2480
|
+
email: "ไม่ถูกต้อง {{validation}}",
|
|
2481
|
+
url: "ไม่ถูกต้อง {{validation}}",
|
|
2482
|
+
uuid: "ไม่ถูกต้อง {{validation}}",
|
|
2483
|
+
cuid: "ไม่ถูกต้อง {{validation}}",
|
|
2484
|
+
regex: "ไม่ถูกต้อง",
|
|
2485
|
+
datetime: "ไม่ถูกต้อง {{validation}}",
|
|
2486
|
+
startsWith: 'ข้อมูลไม่ถูกต้อง: ต้องขึ้นต้นด้วย "{{startsWith}}"',
|
|
2487
|
+
endsWith: 'ข้อมูลไม่ถูกต้อง: ต้องลงท้ายด้วย "{{endsWith}}"'
|
|
2488
|
+
},
|
|
2489
|
+
too_small: {
|
|
2490
|
+
array: {
|
|
2491
|
+
exact: "อาร์เรย์ต้องมีองค์ประกอบ {{minimum}} ทุกประการ",
|
|
2492
|
+
inclusive: "อาร์เรย์ต้องมีอย่างน้อย {{minimum}} องค์ประกอบ",
|
|
2493
|
+
not_inclusive: "อาร์เรย์ต้องมีองค์ประกอบมากกว่า {{minimum}} รายการ"
|
|
2494
|
+
},
|
|
2495
|
+
string: {
|
|
2496
|
+
exact: "สตริงต้องมีอักขระ {{minimum}} ตัวทุกประการ",
|
|
2497
|
+
inclusive: "สตริงต้องมีอักขระอย่างน้อย {{minimum}} ตัว",
|
|
2498
|
+
not_inclusive: "สตริงต้องมีอักขระเกิน {{minimum}} ตัว"
|
|
2499
|
+
},
|
|
2500
|
+
number: {
|
|
2501
|
+
exact: "หมายเลขจะต้องเป็น {{minimum}} ทุกประการ",
|
|
2502
|
+
inclusive: "ตัวเลขต้องมากกว่าหรือเท่ากับ {{minimum}}",
|
|
2503
|
+
not_inclusive: "จำนวนต้องมากกว่า {{minimum}}"
|
|
2504
|
+
},
|
|
2505
|
+
set: {
|
|
2506
|
+
exact: "อินพุตไม่ถูกต้อง",
|
|
2507
|
+
inclusive: "อินพุตไม่ถูกต้อง",
|
|
2508
|
+
not_inclusive: "อินพุตไม่ถูกต้อง"
|
|
2509
|
+
},
|
|
2510
|
+
date: {
|
|
2511
|
+
exact: "วันที่จะต้องตรงกับ {{- ขั้นต่ำ, วันที่เวลา}}",
|
|
2512
|
+
inclusive: "วันที่ต้องมากกว่าหรือเท่ากับ {{- ขั้นต่ำ, วันที่เวลา}}",
|
|
2513
|
+
not_inclusive: "วันที่ต้องมากกว่า {{- ขั้นต่ำ, วันที่เวลา}}"
|
|
2514
|
+
}
|
|
2586
2515
|
},
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2516
|
+
too_big: {
|
|
2517
|
+
array: {
|
|
2518
|
+
exact: "อาร์เรย์ต้องมีองค์ประกอบ {{maximum}} ทุกประการ",
|
|
2519
|
+
inclusive: "อาร์เรย์ต้องมีองค์ประกอบไม่เกิน {{maximum}} รายการ",
|
|
2520
|
+
not_inclusive: "อาร์เรย์ต้องมีองค์ประกอบน้อยกว่า {{maximum}} รายการ"
|
|
2521
|
+
},
|
|
2522
|
+
string: {
|
|
2523
|
+
exact: "สตริงต้องมีอักขระ {{maximum}} ตัวทุกประการ",
|
|
2524
|
+
inclusive: "สตริงต้องมีอักขระไม่เกิน {{maximum}} ตัว",
|
|
2525
|
+
not_inclusive: "สตริงต้องมีอักขระไม่เกิน {{maximum}} ตัว"
|
|
2526
|
+
},
|
|
2527
|
+
number: {
|
|
2528
|
+
exact: "หมายเลขจะต้องตรงกับ {{maximum}}",
|
|
2529
|
+
inclusive: "ตัวเลขต้องน้อยกว่าหรือเท่ากับ {{maximum}}",
|
|
2530
|
+
not_inclusive: "จำนวนต้องน้อยกว่า {{maximum}}"
|
|
2531
|
+
},
|
|
2532
|
+
set: {
|
|
2533
|
+
exact: "อินพุตไม่ถูกต้อง",
|
|
2534
|
+
inclusive: "อินพุตไม่ถูกต้อง",
|
|
2535
|
+
not_inclusive: "อินพุตไม่ถูกต้อง"
|
|
2536
|
+
},
|
|
2537
|
+
date: {
|
|
2538
|
+
exact: "วันที่จะต้องตรงกับ {{- maximum, datetime}}",
|
|
2539
|
+
inclusive: "วันที่ต้องน้อยกว่าหรือเท่ากับ {{- maximum, datetime}}",
|
|
2540
|
+
not_inclusive: "วันที่ต้องน้อยกว่า {{- maximum, datetime}}"
|
|
2541
|
+
}
|
|
2591
2542
|
}
|
|
2592
2543
|
},
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2544
|
+
validations: {
|
|
2545
|
+
email: "อีเมล",
|
|
2546
|
+
url: "url",
|
|
2547
|
+
uuid: "uuid",
|
|
2548
|
+
cuid: "cuid",
|
|
2549
|
+
regex: "regex",
|
|
2550
|
+
datetime: "datetime"
|
|
2551
|
+
},
|
|
2552
|
+
types: {
|
|
2553
|
+
function: "ฟังก์ชัน",
|
|
2554
|
+
number: "ตัวเลข",
|
|
2555
|
+
string: "สตริง",
|
|
2556
|
+
nan: "nan",
|
|
2557
|
+
integer: "จำนวนเต็ม",
|
|
2558
|
+
float: "float",
|
|
2559
|
+
boolean: "boolean",
|
|
2560
|
+
date: "วันที่",
|
|
2561
|
+
bigint: "bigint",
|
|
2562
|
+
undefined: "ไม่ได้กำหนด",
|
|
2563
|
+
symbol: "สัญลักษณ์",
|
|
2564
|
+
null: "null",
|
|
2565
|
+
array: "อาร์เรย์",
|
|
2566
|
+
object: "วัตถุ",
|
|
2567
|
+
unknown: "ไม่ทราบ",
|
|
2568
|
+
promise: "promise",
|
|
2569
|
+
void: "void",
|
|
2570
|
+
never: "never",
|
|
2571
|
+
map: "map",
|
|
2572
|
+
set: "set"
|
|
2619
2573
|
}
|
|
2620
2574
|
},
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2575
|
+
zodCustom: {
|
|
2576
|
+
timeframe: {
|
|
2577
|
+
end_before_start: "วันที่สิ้นสุดต้องมาทีหลังหรือเหมือนกับวันที่เริ่มต้น"
|
|
2578
|
+
},
|
|
2579
|
+
campaign: {
|
|
2580
|
+
rule_required: "ต้องมีกฎเกณฑ์เมื่อประเภทตัวกระตุ้นคือ '{type}'",
|
|
2581
|
+
earning_amount_exceed: "จำนวนเงินที่ได้รับต้องน้อยกว่า {max} (จำนวนเงินที่ได้รับสูงสุดของภารกิจ)",
|
|
2582
|
+
credit_validity_required: "แคมเปญเครดิตต้องมีตัวเลือกอายุการใช้งาน (ต้องเป็นเครดิตฟรี)",
|
|
2583
|
+
mission_first_receive: "แคมเปญภารกิจต้องติดตามการรับก่อน",
|
|
2584
|
+
schedule_period_required: "ตัวกระตุ้นกำหนดการต้องตั้งค่าช่วงเวลาที่ใช้งานอยู่",
|
|
2585
|
+
active_period_invalid: "กฎช่วงเวลาที่ใช้งานอยู่ไม่ถูกต้อง",
|
|
2586
|
+
fixed_earning_required: "แคมเปญที่ไม่สามารถเรียกเก็บเงินได้ครบต้องมีตัวเลือกการรับรายได้คงที่",
|
|
2587
|
+
reward_threshold_range: "เกณฑ์รางวัลจะต้องอยู่ภายในจุดสิ้นสุดภารกิจ",
|
|
2588
|
+
reward_threshold_unique: "เกณฑ์รางวัลจะต้องไม่ซ้ำกัน",
|
|
2589
|
+
effect_required: "จำเป็นต้องมีเอฟเฟกต์"
|
|
2590
|
+
}
|
|
2628
2591
|
},
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
string: "string",
|
|
2633
|
-
nan: "nan",
|
|
2634
|
-
integer: "integer",
|
|
2635
|
-
float: "float",
|
|
2636
|
-
boolean: "boolean",
|
|
2637
|
-
date: "date",
|
|
2638
|
-
bigint: "bigint",
|
|
2639
|
-
undefined: "undefined",
|
|
2640
|
-
symbol: "symbol",
|
|
2641
|
-
null: "null",
|
|
2642
|
-
array: "array",
|
|
2643
|
-
object: "object",
|
|
2644
|
-
unknown: "unknown",
|
|
2645
|
-
promise: "promise",
|
|
2646
|
-
void: "void",
|
|
2647
|
-
never: "never",
|
|
2648
|
-
map: "map",
|
|
2649
|
-
set: "set"
|
|
2650
|
-
}
|
|
2651
|
-
}, Ge = {
|
|
2652
|
-
timeframe: {
|
|
2653
|
-
end_before_start: "End date must be later or same as start date"
|
|
2592
|
+
prompt: {
|
|
2593
|
+
confirm: "ยืนยัน",
|
|
2594
|
+
cancel: "ยกเลิก"
|
|
2654
2595
|
},
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2596
|
+
editTierSheet: {
|
|
2597
|
+
add: "เพิ่ม",
|
|
2598
|
+
create: "สร้างระดับ",
|
|
2599
|
+
basicInformation: "ข้อมูลพื้นฐาน",
|
|
2600
|
+
tierName: "ชื่อชั้น",
|
|
2601
|
+
tierImage: "รูปภาพระดับ",
|
|
2602
|
+
experienceThreshold: "เกณฑ์ประสบการณ์",
|
|
2603
|
+
minExperience: "ประสบการณ์ขั้นต่ำ",
|
|
2604
|
+
maxExperience: "ประสบการณ์สูงสุด",
|
|
2605
|
+
actions: "การดำเนินการ",
|
|
2606
|
+
submit: "ส่ง",
|
|
2607
|
+
cancel: "ยกเลิก"
|
|
2666
2608
|
}
|
|
2667
|
-
},
|
|
2668
|
-
connect:
|
|
2669
|
-
connectZod: qe,
|
|
2670
|
-
connectZodCustom: Ge
|
|
2609
|
+
}, qe = {
|
|
2610
|
+
connect: Ue
|
|
2671
2611
|
};
|
|
2672
2612
|
var b;
|
|
2673
2613
|
(function(a) {
|
|
@@ -2713,7 +2653,7 @@ var be;
|
|
|
2713
2653
|
// second overwrites first
|
|
2714
2654
|
});
|
|
2715
2655
|
})(be || (be = {}));
|
|
2716
|
-
const
|
|
2656
|
+
const l = b.arrayToEnum([
|
|
2717
2657
|
"string",
|
|
2718
2658
|
"nan",
|
|
2719
2659
|
"number",
|
|
@@ -2734,26 +2674,26 @@ const u = b.arrayToEnum([
|
|
|
2734
2674
|
"never",
|
|
2735
2675
|
"map",
|
|
2736
2676
|
"set"
|
|
2737
|
-
]),
|
|
2677
|
+
]), j = (a) => {
|
|
2738
2678
|
switch (typeof a) {
|
|
2739
2679
|
case "undefined":
|
|
2740
|
-
return
|
|
2680
|
+
return l.undefined;
|
|
2741
2681
|
case "string":
|
|
2742
|
-
return
|
|
2682
|
+
return l.string;
|
|
2743
2683
|
case "number":
|
|
2744
|
-
return isNaN(a) ?
|
|
2684
|
+
return isNaN(a) ? l.nan : l.number;
|
|
2745
2685
|
case "boolean":
|
|
2746
|
-
return
|
|
2686
|
+
return l.boolean;
|
|
2747
2687
|
case "function":
|
|
2748
|
-
return
|
|
2688
|
+
return l.function;
|
|
2749
2689
|
case "bigint":
|
|
2750
|
-
return
|
|
2690
|
+
return l.bigint;
|
|
2751
2691
|
case "symbol":
|
|
2752
|
-
return
|
|
2692
|
+
return l.symbol;
|
|
2753
2693
|
case "object":
|
|
2754
|
-
return Array.isArray(a) ?
|
|
2694
|
+
return Array.isArray(a) ? l.array : a === null ? l.null : a.then && typeof a.then == "function" && a.catch && typeof a.catch == "function" ? l.promise : typeof Map < "u" && a instanceof Map ? l.map : typeof Set < "u" && a instanceof Set ? l.set : typeof Date < "u" && a instanceof Date ? l.date : l.object;
|
|
2755
2695
|
default:
|
|
2756
|
-
return
|
|
2696
|
+
return l.unknown;
|
|
2757
2697
|
}
|
|
2758
2698
|
}, c = b.arrayToEnum([
|
|
2759
2699
|
"invalid_type",
|
|
@@ -2772,7 +2712,7 @@ const u = b.arrayToEnum([
|
|
|
2772
2712
|
"invalid_intersection_types",
|
|
2773
2713
|
"not_multiple_of",
|
|
2774
2714
|
"not_finite"
|
|
2775
|
-
]),
|
|
2715
|
+
]), Ge = (a) => JSON.stringify(a, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
2776
2716
|
class E extends Error {
|
|
2777
2717
|
constructor(e) {
|
|
2778
2718
|
super(), this.issues = [], this.addIssue = (n) => {
|
|
@@ -2833,7 +2773,7 @@ const F = (a, e) => {
|
|
|
2833
2773
|
let t;
|
|
2834
2774
|
switch (a.code) {
|
|
2835
2775
|
case c.invalid_type:
|
|
2836
|
-
a.received ===
|
|
2776
|
+
a.received === l.undefined ? t = "Required" : t = `Expected ${a.expected}, received ${a.received}`;
|
|
2837
2777
|
break;
|
|
2838
2778
|
case c.invalid_literal:
|
|
2839
2779
|
t = `Invalid literal value, expected ${JSON.stringify(a.expected, b.jsonStringifyReplacer)}`;
|
|
@@ -2885,12 +2825,12 @@ const F = (a, e) => {
|
|
|
2885
2825
|
}
|
|
2886
2826
|
return { message: t };
|
|
2887
2827
|
};
|
|
2888
|
-
let
|
|
2889
|
-
function
|
|
2890
|
-
|
|
2828
|
+
let Re = F;
|
|
2829
|
+
function ze(a) {
|
|
2830
|
+
Re = a;
|
|
2891
2831
|
}
|
|
2892
2832
|
function ce() {
|
|
2893
|
-
return
|
|
2833
|
+
return Re;
|
|
2894
2834
|
}
|
|
2895
2835
|
const de = (a) => {
|
|
2896
2836
|
const { data: e, path: t, errorMaps: n, issueData: i } = a, r = [...t, ...i.path || []], s = {
|
|
@@ -2906,8 +2846,8 @@ const de = (a) => {
|
|
|
2906
2846
|
path: r,
|
|
2907
2847
|
message: i.message || o
|
|
2908
2848
|
};
|
|
2909
|
-
},
|
|
2910
|
-
function
|
|
2849
|
+
}, Ye = [];
|
|
2850
|
+
function u(a, e) {
|
|
2911
2851
|
const t = de({
|
|
2912
2852
|
issueData: e,
|
|
2913
2853
|
data: a.data,
|
|
@@ -2922,7 +2862,7 @@ function l(a, e) {
|
|
|
2922
2862
|
});
|
|
2923
2863
|
a.common.issues.push(t);
|
|
2924
2864
|
}
|
|
2925
|
-
class
|
|
2865
|
+
class T {
|
|
2926
2866
|
constructor() {
|
|
2927
2867
|
this.value = "valid";
|
|
2928
2868
|
}
|
|
@@ -2936,7 +2876,7 @@ class C {
|
|
|
2936
2876
|
const n = [];
|
|
2937
2877
|
for (const i of t) {
|
|
2938
2878
|
if (i.status === "aborted")
|
|
2939
|
-
return
|
|
2879
|
+
return f;
|
|
2940
2880
|
i.status === "dirty" && e.dirty(), n.push(i.value);
|
|
2941
2881
|
}
|
|
2942
2882
|
return { status: e.value, value: n };
|
|
@@ -2948,27 +2888,27 @@ class C {
|
|
|
2948
2888
|
key: await i.key,
|
|
2949
2889
|
value: await i.value
|
|
2950
2890
|
});
|
|
2951
|
-
return
|
|
2891
|
+
return T.mergeObjectSync(e, n);
|
|
2952
2892
|
}
|
|
2953
2893
|
static mergeObjectSync(e, t) {
|
|
2954
2894
|
const n = {};
|
|
2955
2895
|
for (const i of t) {
|
|
2956
2896
|
const { key: r, value: s } = i;
|
|
2957
2897
|
if (r.status === "aborted" || s.status === "aborted")
|
|
2958
|
-
return
|
|
2898
|
+
return f;
|
|
2959
2899
|
r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" || i.alwaysSet) && (n[r.value] = s.value);
|
|
2960
2900
|
}
|
|
2961
2901
|
return { status: e.value, value: n };
|
|
2962
2902
|
}
|
|
2963
2903
|
}
|
|
2964
|
-
const
|
|
2904
|
+
const f = Object.freeze({
|
|
2965
2905
|
status: "aborted"
|
|
2966
|
-
}),
|
|
2906
|
+
}), Se = (a) => ({ status: "dirty", value: a }), C = (a) => ({ status: "valid", value: a }), xe = (a) => a.status === "aborted", we = (a) => a.status === "dirty", H = (a) => a.status === "valid", le = (a) => typeof Promise < "u" && a instanceof Promise;
|
|
2967
2907
|
var p;
|
|
2968
2908
|
(function(a) {
|
|
2969
2909
|
a.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, a.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
2970
2910
|
})(p || (p = {}));
|
|
2971
|
-
class
|
|
2911
|
+
class N {
|
|
2972
2912
|
constructor(e, t, n, i) {
|
|
2973
2913
|
this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key = i;
|
|
2974
2914
|
}
|
|
@@ -2976,7 +2916,7 @@ class M {
|
|
|
2976
2916
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
2977
2917
|
}
|
|
2978
2918
|
}
|
|
2979
|
-
const
|
|
2919
|
+
const Ce = (a, e) => {
|
|
2980
2920
|
if (H(e))
|
|
2981
2921
|
return { success: !0, data: e.value };
|
|
2982
2922
|
if (!a.common.issues.length)
|
|
@@ -2991,7 +2931,7 @@ const Te = (a, e) => {
|
|
|
2991
2931
|
}
|
|
2992
2932
|
};
|
|
2993
2933
|
};
|
|
2994
|
-
function
|
|
2934
|
+
function _(a) {
|
|
2995
2935
|
if (!a)
|
|
2996
2936
|
return {};
|
|
2997
2937
|
const { errorMap: e, invalid_type_error: t, required_error: n, description: i } = a;
|
|
@@ -2999,7 +2939,7 @@ function f(a) {
|
|
|
2999
2939
|
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
|
|
3000
2940
|
return e ? { errorMap: e, description: i } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: n ?? o.defaultError } : { message: t ?? o.defaultError }, description: i };
|
|
3001
2941
|
}
|
|
3002
|
-
class
|
|
2942
|
+
class v {
|
|
3003
2943
|
constructor(e) {
|
|
3004
2944
|
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);
|
|
3005
2945
|
}
|
|
@@ -3007,13 +2947,13 @@ class y {
|
|
|
3007
2947
|
return this._def.description;
|
|
3008
2948
|
}
|
|
3009
2949
|
_getType(e) {
|
|
3010
|
-
return
|
|
2950
|
+
return j(e.data);
|
|
3011
2951
|
}
|
|
3012
2952
|
_getOrReturnCtx(e, t) {
|
|
3013
2953
|
return t || {
|
|
3014
2954
|
common: e.parent.common,
|
|
3015
2955
|
data: e.data,
|
|
3016
|
-
parsedType:
|
|
2956
|
+
parsedType: j(e.data),
|
|
3017
2957
|
schemaErrorMap: this._def.errorMap,
|
|
3018
2958
|
path: e.path,
|
|
3019
2959
|
parent: e.parent
|
|
@@ -3021,11 +2961,11 @@ class y {
|
|
|
3021
2961
|
}
|
|
3022
2962
|
_processInputParams(e) {
|
|
3023
2963
|
return {
|
|
3024
|
-
status: new
|
|
2964
|
+
status: new T(),
|
|
3025
2965
|
ctx: {
|
|
3026
2966
|
common: e.parent.common,
|
|
3027
2967
|
data: e.data,
|
|
3028
|
-
parsedType:
|
|
2968
|
+
parsedType: j(e.data),
|
|
3029
2969
|
schemaErrorMap: this._def.errorMap,
|
|
3030
2970
|
path: e.path,
|
|
3031
2971
|
parent: e.parent
|
|
@@ -3034,7 +2974,7 @@ class y {
|
|
|
3034
2974
|
}
|
|
3035
2975
|
_parseSync(e) {
|
|
3036
2976
|
const t = this._parse(e);
|
|
3037
|
-
if (
|
|
2977
|
+
if (le(t))
|
|
3038
2978
|
throw new Error("Synchronous parse encountered promise.");
|
|
3039
2979
|
return t;
|
|
3040
2980
|
}
|
|
@@ -3060,9 +3000,9 @@ class y {
|
|
|
3060
3000
|
schemaErrorMap: this._def.errorMap,
|
|
3061
3001
|
parent: null,
|
|
3062
3002
|
data: e,
|
|
3063
|
-
parsedType:
|
|
3003
|
+
parsedType: j(e)
|
|
3064
3004
|
}, r = this._parseSync({ data: e, path: i.path, parent: i });
|
|
3065
|
-
return
|
|
3005
|
+
return Ce(i, r);
|
|
3066
3006
|
}
|
|
3067
3007
|
async parseAsync(e, t) {
|
|
3068
3008
|
const n = await this.safeParseAsync(e, t);
|
|
@@ -3081,9 +3021,9 @@ class y {
|
|
|
3081
3021
|
schemaErrorMap: this._def.errorMap,
|
|
3082
3022
|
parent: null,
|
|
3083
3023
|
data: e,
|
|
3084
|
-
parsedType:
|
|
3085
|
-
}, i = this._parse({ data: e, path: n.path, parent: n }), r = await (
|
|
3086
|
-
return
|
|
3024
|
+
parsedType: j(e)
|
|
3025
|
+
}, i = this._parse({ data: e, path: n.path, parent: n }), r = await (le(i) ? i : Promise.resolve(i));
|
|
3026
|
+
return Ce(n, r);
|
|
3087
3027
|
}
|
|
3088
3028
|
refine(e, t) {
|
|
3089
3029
|
const n = (i) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(i) : t;
|
|
@@ -3099,7 +3039,7 @@ class y {
|
|
|
3099
3039
|
return this._refinement((n, i) => e(n) ? !0 : (i.addIssue(typeof t == "function" ? t(n, i) : t), !1));
|
|
3100
3040
|
}
|
|
3101
3041
|
_refinement(e) {
|
|
3102
|
-
return new
|
|
3042
|
+
return new I({
|
|
3103
3043
|
schema: this,
|
|
3104
3044
|
typeName: h.ZodEffects,
|
|
3105
3045
|
effect: { type: "refinement", refinement: e }
|
|
@@ -3118,7 +3058,7 @@ class y {
|
|
|
3118
3058
|
return this.nullable().optional();
|
|
3119
3059
|
}
|
|
3120
3060
|
array() {
|
|
3121
|
-
return
|
|
3061
|
+
return O.create(this, this._def);
|
|
3122
3062
|
}
|
|
3123
3063
|
promise() {
|
|
3124
3064
|
return W.create(this, this._def);
|
|
@@ -3130,8 +3070,8 @@ class y {
|
|
|
3130
3070
|
return ee.create(this, e, this._def);
|
|
3131
3071
|
}
|
|
3132
3072
|
transform(e) {
|
|
3133
|
-
return new
|
|
3134
|
-
...
|
|
3073
|
+
return new I({
|
|
3074
|
+
..._(this._def),
|
|
3135
3075
|
schema: this,
|
|
3136
3076
|
typeName: h.ZodEffects,
|
|
3137
3077
|
effect: { type: "transform", transform: e }
|
|
@@ -3140,7 +3080,7 @@ class y {
|
|
|
3140
3080
|
default(e) {
|
|
3141
3081
|
const t = typeof e == "function" ? e : () => e;
|
|
3142
3082
|
return new re({
|
|
3143
|
-
...
|
|
3083
|
+
..._(this._def),
|
|
3144
3084
|
innerType: this,
|
|
3145
3085
|
defaultValue: t,
|
|
3146
3086
|
typeName: h.ZodDefault
|
|
@@ -3150,13 +3090,13 @@ class y {
|
|
|
3150
3090
|
return new Ee({
|
|
3151
3091
|
typeName: h.ZodBranded,
|
|
3152
3092
|
type: this,
|
|
3153
|
-
...
|
|
3093
|
+
..._(this._def)
|
|
3154
3094
|
});
|
|
3155
3095
|
}
|
|
3156
3096
|
catch(e) {
|
|
3157
3097
|
const t = typeof e == "function" ? e : () => e;
|
|
3158
3098
|
return new he({
|
|
3159
|
-
...
|
|
3099
|
+
..._(this._def),
|
|
3160
3100
|
innerType: this,
|
|
3161
3101
|
catchValue: t,
|
|
3162
3102
|
typeName: h.ZodCatch
|
|
@@ -3173,7 +3113,7 @@ class y {
|
|
|
3173
3113
|
return se.create(this, e);
|
|
3174
3114
|
}
|
|
3175
3115
|
readonly() {
|
|
3176
|
-
return
|
|
3116
|
+
return ge.create(this);
|
|
3177
3117
|
}
|
|
3178
3118
|
isOptional() {
|
|
3179
3119
|
return this.safeParse(void 0).success;
|
|
@@ -3182,31 +3122,31 @@ class y {
|
|
|
3182
3122
|
return this.safeParse(null).success;
|
|
3183
3123
|
}
|
|
3184
3124
|
}
|
|
3185
|
-
const
|
|
3186
|
-
let
|
|
3187
|
-
const
|
|
3188
|
-
function
|
|
3189
|
-
return !!((e === "v4" || !e) &&
|
|
3125
|
+
const We = /^c[^\s-]{8,}$/i, Fe = /^[a-z][a-z0-9]*$/, He = /^[0-9A-HJKMNP-TV-Z]{26}$/, Je = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Xe = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ke = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
3126
|
+
let ye;
|
|
3127
|
+
const Qe = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, et = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, tt = (a) => a.precision ? a.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}Z$`) : a.precision === 0 ? a.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : a.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
|
|
3128
|
+
function at(a, e) {
|
|
3129
|
+
return !!((e === "v4" || !e) && Qe.test(a) || (e === "v6" || !e) && et.test(a));
|
|
3190
3130
|
}
|
|
3191
|
-
class
|
|
3131
|
+
class A extends v {
|
|
3192
3132
|
_parse(e) {
|
|
3193
|
-
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !==
|
|
3133
|
+
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== l.string) {
|
|
3194
3134
|
const r = this._getOrReturnCtx(e);
|
|
3195
|
-
return
|
|
3135
|
+
return u(
|
|
3196
3136
|
r,
|
|
3197
3137
|
{
|
|
3198
3138
|
code: c.invalid_type,
|
|
3199
|
-
expected:
|
|
3139
|
+
expected: l.string,
|
|
3200
3140
|
received: r.parsedType
|
|
3201
3141
|
}
|
|
3202
3142
|
//
|
|
3203
|
-
),
|
|
3143
|
+
), f;
|
|
3204
3144
|
}
|
|
3205
|
-
const n = new
|
|
3145
|
+
const n = new T();
|
|
3206
3146
|
let i;
|
|
3207
3147
|
for (const r of this._def.checks)
|
|
3208
3148
|
if (r.kind === "min")
|
|
3209
|
-
e.data.length < r.value && (i = this._getOrReturnCtx(e, i),
|
|
3149
|
+
e.data.length < r.value && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3210
3150
|
code: c.too_small,
|
|
3211
3151
|
minimum: r.value,
|
|
3212
3152
|
type: "string",
|
|
@@ -3215,7 +3155,7 @@ class R extends y {
|
|
|
3215
3155
|
message: r.message
|
|
3216
3156
|
}), n.dirty());
|
|
3217
3157
|
else if (r.kind === "max")
|
|
3218
|
-
e.data.length > r.value && (i = this._getOrReturnCtx(e, i),
|
|
3158
|
+
e.data.length > r.value && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3219
3159
|
code: c.too_big,
|
|
3220
3160
|
maximum: r.value,
|
|
3221
3161
|
type: "string",
|
|
@@ -3225,14 +3165,14 @@ class R extends y {
|
|
|
3225
3165
|
}), n.dirty());
|
|
3226
3166
|
else if (r.kind === "length") {
|
|
3227
3167
|
const s = e.data.length > r.value, o = e.data.length < r.value;
|
|
3228
|
-
(s || o) && (i = this._getOrReturnCtx(e, i), s ?
|
|
3168
|
+
(s || o) && (i = this._getOrReturnCtx(e, i), s ? u(i, {
|
|
3229
3169
|
code: c.too_big,
|
|
3230
3170
|
maximum: r.value,
|
|
3231
3171
|
type: "string",
|
|
3232
3172
|
inclusive: !0,
|
|
3233
3173
|
exact: !0,
|
|
3234
3174
|
message: r.message
|
|
3235
|
-
}) : o &&
|
|
3175
|
+
}) : o && u(i, {
|
|
3236
3176
|
code: c.too_small,
|
|
3237
3177
|
minimum: r.value,
|
|
3238
3178
|
type: "string",
|
|
@@ -3241,37 +3181,37 @@ class R extends y {
|
|
|
3241
3181
|
message: r.message
|
|
3242
3182
|
}), n.dirty());
|
|
3243
3183
|
} else if (r.kind === "email")
|
|
3244
|
-
|
|
3184
|
+
Xe.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3245
3185
|
validation: "email",
|
|
3246
3186
|
code: c.invalid_string,
|
|
3247
3187
|
message: r.message
|
|
3248
3188
|
}), n.dirty());
|
|
3249
3189
|
else if (r.kind === "emoji")
|
|
3250
|
-
|
|
3190
|
+
ye || (ye = new RegExp(Ke, "u")), ye.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3251
3191
|
validation: "emoji",
|
|
3252
3192
|
code: c.invalid_string,
|
|
3253
3193
|
message: r.message
|
|
3254
3194
|
}), n.dirty());
|
|
3255
3195
|
else if (r.kind === "uuid")
|
|
3256
|
-
|
|
3196
|
+
Je.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3257
3197
|
validation: "uuid",
|
|
3258
3198
|
code: c.invalid_string,
|
|
3259
3199
|
message: r.message
|
|
3260
3200
|
}), n.dirty());
|
|
3261
3201
|
else if (r.kind === "cuid")
|
|
3262
|
-
|
|
3202
|
+
We.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3263
3203
|
validation: "cuid",
|
|
3264
3204
|
code: c.invalid_string,
|
|
3265
3205
|
message: r.message
|
|
3266
3206
|
}), n.dirty());
|
|
3267
3207
|
else if (r.kind === "cuid2")
|
|
3268
|
-
|
|
3208
|
+
Fe.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3269
3209
|
validation: "cuid2",
|
|
3270
3210
|
code: c.invalid_string,
|
|
3271
3211
|
message: r.message
|
|
3272
3212
|
}), n.dirty());
|
|
3273
3213
|
else if (r.kind === "ulid")
|
|
3274
|
-
|
|
3214
|
+
He.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3275
3215
|
validation: "ulid",
|
|
3276
3216
|
code: c.invalid_string,
|
|
3277
3217
|
message: r.message
|
|
@@ -3280,33 +3220,33 @@ class R extends y {
|
|
|
3280
3220
|
try {
|
|
3281
3221
|
new URL(e.data);
|
|
3282
3222
|
} catch {
|
|
3283
|
-
i = this._getOrReturnCtx(e, i),
|
|
3223
|
+
i = this._getOrReturnCtx(e, i), u(i, {
|
|
3284
3224
|
validation: "url",
|
|
3285
3225
|
code: c.invalid_string,
|
|
3286
3226
|
message: r.message
|
|
3287
3227
|
}), n.dirty();
|
|
3288
3228
|
}
|
|
3289
|
-
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (i = this._getOrReturnCtx(e, i),
|
|
3229
|
+
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3290
3230
|
validation: "regex",
|
|
3291
3231
|
code: c.invalid_string,
|
|
3292
3232
|
message: r.message
|
|
3293
|
-
}), n.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (i = this._getOrReturnCtx(e, i),
|
|
3233
|
+
}), n.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3294
3234
|
code: c.invalid_string,
|
|
3295
3235
|
validation: { includes: r.value, position: r.position },
|
|
3296
3236
|
message: r.message
|
|
3297
|
-
}), n.dirty()) : r.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : r.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : r.kind === "startsWith" ? e.data.startsWith(r.value) || (i = this._getOrReturnCtx(e, i),
|
|
3237
|
+
}), n.dirty()) : r.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : r.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : r.kind === "startsWith" ? e.data.startsWith(r.value) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3298
3238
|
code: c.invalid_string,
|
|
3299
3239
|
validation: { startsWith: r.value },
|
|
3300
3240
|
message: r.message
|
|
3301
|
-
}), n.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (i = this._getOrReturnCtx(e, i),
|
|
3241
|
+
}), n.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3302
3242
|
code: c.invalid_string,
|
|
3303
3243
|
validation: { endsWith: r.value },
|
|
3304
3244
|
message: r.message
|
|
3305
|
-
}), n.dirty()) : r.kind === "datetime" ?
|
|
3245
|
+
}), n.dirty()) : r.kind === "datetime" ? tt(r).test(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3306
3246
|
code: c.invalid_string,
|
|
3307
3247
|
validation: "datetime",
|
|
3308
3248
|
message: r.message
|
|
3309
|
-
}), n.dirty()) : r.kind === "ip" ?
|
|
3249
|
+
}), n.dirty()) : r.kind === "ip" ? at(e.data, r.version) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3310
3250
|
validation: "ip",
|
|
3311
3251
|
code: c.invalid_string,
|
|
3312
3252
|
message: r.message
|
|
@@ -3321,7 +3261,7 @@ class R extends y {
|
|
|
3321
3261
|
});
|
|
3322
3262
|
}
|
|
3323
3263
|
_addCheck(e) {
|
|
3324
|
-
return new
|
|
3264
|
+
return new A({
|
|
3325
3265
|
...this._def,
|
|
3326
3266
|
checks: [...this._def.checks, e]
|
|
3327
3267
|
});
|
|
@@ -3422,19 +3362,19 @@ class R extends y {
|
|
|
3422
3362
|
return this.min(1, p.errToObj(e));
|
|
3423
3363
|
}
|
|
3424
3364
|
trim() {
|
|
3425
|
-
return new
|
|
3365
|
+
return new A({
|
|
3426
3366
|
...this._def,
|
|
3427
3367
|
checks: [...this._def.checks, { kind: "trim" }]
|
|
3428
3368
|
});
|
|
3429
3369
|
}
|
|
3430
3370
|
toLowerCase() {
|
|
3431
|
-
return new
|
|
3371
|
+
return new A({
|
|
3432
3372
|
...this._def,
|
|
3433
3373
|
checks: [...this._def.checks, { kind: "toLowerCase" }]
|
|
3434
3374
|
});
|
|
3435
3375
|
}
|
|
3436
3376
|
toUpperCase() {
|
|
3437
|
-
return new
|
|
3377
|
+
return new A({
|
|
3438
3378
|
...this._def,
|
|
3439
3379
|
checks: [...this._def.checks, { kind: "toUpperCase" }]
|
|
3440
3380
|
});
|
|
@@ -3479,59 +3419,59 @@ class R extends y {
|
|
|
3479
3419
|
return e;
|
|
3480
3420
|
}
|
|
3481
3421
|
}
|
|
3482
|
-
|
|
3422
|
+
A.create = (a) => {
|
|
3483
3423
|
var e;
|
|
3484
|
-
return new
|
|
3424
|
+
return new A({
|
|
3485
3425
|
checks: [],
|
|
3486
3426
|
typeName: h.ZodString,
|
|
3487
3427
|
coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
|
|
3488
|
-
...
|
|
3428
|
+
..._(a)
|
|
3489
3429
|
});
|
|
3490
3430
|
};
|
|
3491
|
-
function
|
|
3431
|
+
function nt(a, e) {
|
|
3492
3432
|
const t = (a.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, i = t > n ? t : n, r = parseInt(a.toFixed(i).replace(".", "")), s = parseInt(e.toFixed(i).replace(".", ""));
|
|
3493
3433
|
return r % s / Math.pow(10, i);
|
|
3494
3434
|
}
|
|
3495
|
-
class
|
|
3435
|
+
class Z extends v {
|
|
3496
3436
|
constructor() {
|
|
3497
3437
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
3498
3438
|
}
|
|
3499
3439
|
_parse(e) {
|
|
3500
|
-
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !==
|
|
3440
|
+
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== l.number) {
|
|
3501
3441
|
const r = this._getOrReturnCtx(e);
|
|
3502
|
-
return
|
|
3442
|
+
return u(r, {
|
|
3503
3443
|
code: c.invalid_type,
|
|
3504
|
-
expected:
|
|
3444
|
+
expected: l.number,
|
|
3505
3445
|
received: r.parsedType
|
|
3506
|
-
}),
|
|
3446
|
+
}), f;
|
|
3507
3447
|
}
|
|
3508
3448
|
let n;
|
|
3509
|
-
const i = new
|
|
3449
|
+
const i = new T();
|
|
3510
3450
|
for (const r of this._def.checks)
|
|
3511
|
-
r.kind === "int" ? b.isInteger(e.data) || (n = this._getOrReturnCtx(e, n),
|
|
3451
|
+
r.kind === "int" ? b.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3512
3452
|
code: c.invalid_type,
|
|
3513
3453
|
expected: "integer",
|
|
3514
3454
|
received: "float",
|
|
3515
3455
|
message: r.message
|
|
3516
|
-
}), i.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (n = this._getOrReturnCtx(e, n),
|
|
3456
|
+
}), i.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3517
3457
|
code: c.too_small,
|
|
3518
3458
|
minimum: r.value,
|
|
3519
3459
|
type: "number",
|
|
3520
3460
|
inclusive: r.inclusive,
|
|
3521
3461
|
exact: !1,
|
|
3522
3462
|
message: r.message
|
|
3523
|
-
}), i.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (n = this._getOrReturnCtx(e, n),
|
|
3463
|
+
}), i.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3524
3464
|
code: c.too_big,
|
|
3525
3465
|
maximum: r.value,
|
|
3526
3466
|
type: "number",
|
|
3527
3467
|
inclusive: r.inclusive,
|
|
3528
3468
|
exact: !1,
|
|
3529
3469
|
message: r.message
|
|
3530
|
-
}), i.dirty()) : r.kind === "multipleOf" ?
|
|
3470
|
+
}), i.dirty()) : r.kind === "multipleOf" ? nt(e.data, r.value) !== 0 && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3531
3471
|
code: c.not_multiple_of,
|
|
3532
3472
|
multipleOf: r.value,
|
|
3533
3473
|
message: r.message
|
|
3534
|
-
}), i.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n),
|
|
3474
|
+
}), i.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3535
3475
|
code: c.not_finite,
|
|
3536
3476
|
message: r.message
|
|
3537
3477
|
}), i.dirty()) : b.assertNever(r);
|
|
@@ -3550,7 +3490,7 @@ class j extends y {
|
|
|
3550
3490
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
3551
3491
|
}
|
|
3552
3492
|
setLimit(e, t, n, i) {
|
|
3553
|
-
return new
|
|
3493
|
+
return new Z({
|
|
3554
3494
|
...this._def,
|
|
3555
3495
|
checks: [
|
|
3556
3496
|
...this._def.checks,
|
|
@@ -3564,7 +3504,7 @@ class j extends y {
|
|
|
3564
3504
|
});
|
|
3565
3505
|
}
|
|
3566
3506
|
_addCheck(e) {
|
|
3567
|
-
return new
|
|
3507
|
+
return new Z({
|
|
3568
3508
|
...this._def,
|
|
3569
3509
|
checks: [...this._def.checks, e]
|
|
3570
3510
|
});
|
|
@@ -3658,41 +3598,41 @@ class j extends y {
|
|
|
3658
3598
|
return Number.isFinite(t) && Number.isFinite(e);
|
|
3659
3599
|
}
|
|
3660
3600
|
}
|
|
3661
|
-
|
|
3601
|
+
Z.create = (a) => new Z({
|
|
3662
3602
|
checks: [],
|
|
3663
3603
|
typeName: h.ZodNumber,
|
|
3664
3604
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
3665
|
-
...
|
|
3605
|
+
..._(a)
|
|
3666
3606
|
});
|
|
3667
|
-
class
|
|
3607
|
+
class D extends v {
|
|
3668
3608
|
constructor() {
|
|
3669
3609
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
3670
3610
|
}
|
|
3671
3611
|
_parse(e) {
|
|
3672
|
-
if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !==
|
|
3612
|
+
if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== l.bigint) {
|
|
3673
3613
|
const r = this._getOrReturnCtx(e);
|
|
3674
|
-
return
|
|
3614
|
+
return u(r, {
|
|
3675
3615
|
code: c.invalid_type,
|
|
3676
|
-
expected:
|
|
3616
|
+
expected: l.bigint,
|
|
3677
3617
|
received: r.parsedType
|
|
3678
|
-
}),
|
|
3618
|
+
}), f;
|
|
3679
3619
|
}
|
|
3680
3620
|
let n;
|
|
3681
|
-
const i = new
|
|
3621
|
+
const i = new T();
|
|
3682
3622
|
for (const r of this._def.checks)
|
|
3683
|
-
r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (n = this._getOrReturnCtx(e, n),
|
|
3623
|
+
r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3684
3624
|
code: c.too_small,
|
|
3685
3625
|
type: "bigint",
|
|
3686
3626
|
minimum: r.value,
|
|
3687
3627
|
inclusive: r.inclusive,
|
|
3688
3628
|
message: r.message
|
|
3689
|
-
}), i.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (n = this._getOrReturnCtx(e, n),
|
|
3629
|
+
}), i.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3690
3630
|
code: c.too_big,
|
|
3691
3631
|
type: "bigint",
|
|
3692
3632
|
maximum: r.value,
|
|
3693
3633
|
inclusive: r.inclusive,
|
|
3694
3634
|
message: r.message
|
|
3695
|
-
}), i.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n),
|
|
3635
|
+
}), i.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3696
3636
|
code: c.not_multiple_of,
|
|
3697
3637
|
multipleOf: r.value,
|
|
3698
3638
|
message: r.message
|
|
@@ -3712,7 +3652,7 @@ class V extends y {
|
|
|
3712
3652
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
3713
3653
|
}
|
|
3714
3654
|
setLimit(e, t, n, i) {
|
|
3715
|
-
return new
|
|
3655
|
+
return new D({
|
|
3716
3656
|
...this._def,
|
|
3717
3657
|
checks: [
|
|
3718
3658
|
...this._def.checks,
|
|
@@ -3726,7 +3666,7 @@ class V extends y {
|
|
|
3726
3666
|
});
|
|
3727
3667
|
}
|
|
3728
3668
|
_addCheck(e) {
|
|
3729
|
-
return new
|
|
3669
|
+
return new D({
|
|
3730
3670
|
...this._def,
|
|
3731
3671
|
checks: [...this._def.checks, e]
|
|
3732
3672
|
});
|
|
@@ -3783,60 +3723,60 @@ class V extends y {
|
|
|
3783
3723
|
return e;
|
|
3784
3724
|
}
|
|
3785
3725
|
}
|
|
3786
|
-
|
|
3726
|
+
D.create = (a) => {
|
|
3787
3727
|
var e;
|
|
3788
|
-
return new
|
|
3728
|
+
return new D({
|
|
3789
3729
|
checks: [],
|
|
3790
3730
|
typeName: h.ZodBigInt,
|
|
3791
3731
|
coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
|
|
3792
|
-
...
|
|
3732
|
+
..._(a)
|
|
3793
3733
|
});
|
|
3794
3734
|
};
|
|
3795
|
-
class J extends
|
|
3735
|
+
class J extends v {
|
|
3796
3736
|
_parse(e) {
|
|
3797
|
-
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !==
|
|
3737
|
+
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== l.boolean) {
|
|
3798
3738
|
const n = this._getOrReturnCtx(e);
|
|
3799
|
-
return
|
|
3739
|
+
return u(n, {
|
|
3800
3740
|
code: c.invalid_type,
|
|
3801
|
-
expected:
|
|
3741
|
+
expected: l.boolean,
|
|
3802
3742
|
received: n.parsedType
|
|
3803
|
-
}),
|
|
3743
|
+
}), f;
|
|
3804
3744
|
}
|
|
3805
|
-
return
|
|
3745
|
+
return C(e.data);
|
|
3806
3746
|
}
|
|
3807
3747
|
}
|
|
3808
3748
|
J.create = (a) => new J({
|
|
3809
3749
|
typeName: h.ZodBoolean,
|
|
3810
3750
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
3811
|
-
...
|
|
3751
|
+
..._(a)
|
|
3812
3752
|
});
|
|
3813
|
-
class B extends
|
|
3753
|
+
class B extends v {
|
|
3814
3754
|
_parse(e) {
|
|
3815
|
-
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !==
|
|
3755
|
+
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== l.date) {
|
|
3816
3756
|
const r = this._getOrReturnCtx(e);
|
|
3817
|
-
return
|
|
3757
|
+
return u(r, {
|
|
3818
3758
|
code: c.invalid_type,
|
|
3819
|
-
expected:
|
|
3759
|
+
expected: l.date,
|
|
3820
3760
|
received: r.parsedType
|
|
3821
|
-
}),
|
|
3761
|
+
}), f;
|
|
3822
3762
|
}
|
|
3823
3763
|
if (isNaN(e.data.getTime())) {
|
|
3824
3764
|
const r = this._getOrReturnCtx(e);
|
|
3825
|
-
return
|
|
3765
|
+
return u(r, {
|
|
3826
3766
|
code: c.invalid_date
|
|
3827
|
-
}),
|
|
3767
|
+
}), f;
|
|
3828
3768
|
}
|
|
3829
|
-
const n = new
|
|
3769
|
+
const n = new T();
|
|
3830
3770
|
let i;
|
|
3831
3771
|
for (const r of this._def.checks)
|
|
3832
|
-
r.kind === "min" ? e.data.getTime() < r.value && (i = this._getOrReturnCtx(e, i),
|
|
3772
|
+
r.kind === "min" ? e.data.getTime() < r.value && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3833
3773
|
code: c.too_small,
|
|
3834
3774
|
message: r.message,
|
|
3835
3775
|
inclusive: !0,
|
|
3836
3776
|
exact: !1,
|
|
3837
3777
|
minimum: r.value,
|
|
3838
3778
|
type: "date"
|
|
3839
|
-
}), n.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (i = this._getOrReturnCtx(e, i),
|
|
3779
|
+
}), n.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3840
3780
|
code: c.too_big,
|
|
3841
3781
|
message: r.message,
|
|
3842
3782
|
inclusive: !0,
|
|
@@ -3886,126 +3826,126 @@ B.create = (a) => new B({
|
|
|
3886
3826
|
checks: [],
|
|
3887
3827
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
3888
3828
|
typeName: h.ZodDate,
|
|
3889
|
-
...
|
|
3829
|
+
..._(a)
|
|
3890
3830
|
});
|
|
3891
|
-
class
|
|
3831
|
+
class ue extends v {
|
|
3892
3832
|
_parse(e) {
|
|
3893
|
-
if (this._getType(e) !==
|
|
3833
|
+
if (this._getType(e) !== l.symbol) {
|
|
3894
3834
|
const n = this._getOrReturnCtx(e);
|
|
3895
|
-
return
|
|
3835
|
+
return u(n, {
|
|
3896
3836
|
code: c.invalid_type,
|
|
3897
|
-
expected:
|
|
3837
|
+
expected: l.symbol,
|
|
3898
3838
|
received: n.parsedType
|
|
3899
|
-
}),
|
|
3839
|
+
}), f;
|
|
3900
3840
|
}
|
|
3901
|
-
return
|
|
3841
|
+
return C(e.data);
|
|
3902
3842
|
}
|
|
3903
3843
|
}
|
|
3904
|
-
|
|
3844
|
+
ue.create = (a) => new ue({
|
|
3905
3845
|
typeName: h.ZodSymbol,
|
|
3906
|
-
...
|
|
3846
|
+
..._(a)
|
|
3907
3847
|
});
|
|
3908
|
-
class X extends
|
|
3848
|
+
class X extends v {
|
|
3909
3849
|
_parse(e) {
|
|
3910
|
-
if (this._getType(e) !==
|
|
3850
|
+
if (this._getType(e) !== l.undefined) {
|
|
3911
3851
|
const n = this._getOrReturnCtx(e);
|
|
3912
|
-
return
|
|
3852
|
+
return u(n, {
|
|
3913
3853
|
code: c.invalid_type,
|
|
3914
|
-
expected:
|
|
3854
|
+
expected: l.undefined,
|
|
3915
3855
|
received: n.parsedType
|
|
3916
|
-
}),
|
|
3856
|
+
}), f;
|
|
3917
3857
|
}
|
|
3918
|
-
return
|
|
3858
|
+
return C(e.data);
|
|
3919
3859
|
}
|
|
3920
3860
|
}
|
|
3921
3861
|
X.create = (a) => new X({
|
|
3922
3862
|
typeName: h.ZodUndefined,
|
|
3923
|
-
...
|
|
3863
|
+
..._(a)
|
|
3924
3864
|
});
|
|
3925
|
-
class K extends
|
|
3865
|
+
class K extends v {
|
|
3926
3866
|
_parse(e) {
|
|
3927
|
-
if (this._getType(e) !==
|
|
3867
|
+
if (this._getType(e) !== l.null) {
|
|
3928
3868
|
const n = this._getOrReturnCtx(e);
|
|
3929
|
-
return
|
|
3869
|
+
return u(n, {
|
|
3930
3870
|
code: c.invalid_type,
|
|
3931
|
-
expected:
|
|
3871
|
+
expected: l.null,
|
|
3932
3872
|
received: n.parsedType
|
|
3933
|
-
}),
|
|
3873
|
+
}), f;
|
|
3934
3874
|
}
|
|
3935
|
-
return
|
|
3875
|
+
return C(e.data);
|
|
3936
3876
|
}
|
|
3937
3877
|
}
|
|
3938
3878
|
K.create = (a) => new K({
|
|
3939
3879
|
typeName: h.ZodNull,
|
|
3940
|
-
...
|
|
3880
|
+
..._(a)
|
|
3941
3881
|
});
|
|
3942
|
-
class Y extends
|
|
3882
|
+
class Y extends v {
|
|
3943
3883
|
constructor() {
|
|
3944
3884
|
super(...arguments), this._any = !0;
|
|
3945
3885
|
}
|
|
3946
3886
|
_parse(e) {
|
|
3947
|
-
return
|
|
3887
|
+
return C(e.data);
|
|
3948
3888
|
}
|
|
3949
3889
|
}
|
|
3950
3890
|
Y.create = (a) => new Y({
|
|
3951
3891
|
typeName: h.ZodAny,
|
|
3952
|
-
...
|
|
3892
|
+
..._(a)
|
|
3953
3893
|
});
|
|
3954
|
-
class
|
|
3894
|
+
class $ extends v {
|
|
3955
3895
|
constructor() {
|
|
3956
3896
|
super(...arguments), this._unknown = !0;
|
|
3957
3897
|
}
|
|
3958
3898
|
_parse(e) {
|
|
3959
|
-
return
|
|
3899
|
+
return C(e.data);
|
|
3960
3900
|
}
|
|
3961
3901
|
}
|
|
3962
|
-
|
|
3902
|
+
$.create = (a) => new $({
|
|
3963
3903
|
typeName: h.ZodUnknown,
|
|
3964
|
-
...
|
|
3904
|
+
..._(a)
|
|
3965
3905
|
});
|
|
3966
|
-
class L extends
|
|
3906
|
+
class L extends v {
|
|
3967
3907
|
_parse(e) {
|
|
3968
3908
|
const t = this._getOrReturnCtx(e);
|
|
3969
|
-
return
|
|
3909
|
+
return u(t, {
|
|
3970
3910
|
code: c.invalid_type,
|
|
3971
|
-
expected:
|
|
3911
|
+
expected: l.never,
|
|
3972
3912
|
received: t.parsedType
|
|
3973
|
-
}),
|
|
3913
|
+
}), f;
|
|
3974
3914
|
}
|
|
3975
3915
|
}
|
|
3976
3916
|
L.create = (a) => new L({
|
|
3977
3917
|
typeName: h.ZodNever,
|
|
3978
|
-
...
|
|
3918
|
+
..._(a)
|
|
3979
3919
|
});
|
|
3980
|
-
class me extends
|
|
3920
|
+
class me extends v {
|
|
3981
3921
|
_parse(e) {
|
|
3982
|
-
if (this._getType(e) !==
|
|
3922
|
+
if (this._getType(e) !== l.undefined) {
|
|
3983
3923
|
const n = this._getOrReturnCtx(e);
|
|
3984
|
-
return
|
|
3924
|
+
return u(n, {
|
|
3985
3925
|
code: c.invalid_type,
|
|
3986
|
-
expected:
|
|
3926
|
+
expected: l.void,
|
|
3987
3927
|
received: n.parsedType
|
|
3988
|
-
}),
|
|
3928
|
+
}), f;
|
|
3989
3929
|
}
|
|
3990
|
-
return
|
|
3930
|
+
return C(e.data);
|
|
3991
3931
|
}
|
|
3992
3932
|
}
|
|
3993
3933
|
me.create = (a) => new me({
|
|
3994
3934
|
typeName: h.ZodVoid,
|
|
3995
|
-
...
|
|
3935
|
+
..._(a)
|
|
3996
3936
|
});
|
|
3997
|
-
class
|
|
3937
|
+
class O extends v {
|
|
3998
3938
|
_parse(e) {
|
|
3999
3939
|
const { ctx: t, status: n } = this._processInputParams(e), i = this._def;
|
|
4000
|
-
if (t.parsedType !==
|
|
4001
|
-
return
|
|
3940
|
+
if (t.parsedType !== l.array)
|
|
3941
|
+
return u(t, {
|
|
4002
3942
|
code: c.invalid_type,
|
|
4003
|
-
expected:
|
|
3943
|
+
expected: l.array,
|
|
4004
3944
|
received: t.parsedType
|
|
4005
|
-
}),
|
|
3945
|
+
}), f;
|
|
4006
3946
|
if (i.exactLength !== null) {
|
|
4007
3947
|
const s = t.data.length > i.exactLength.value, o = t.data.length < i.exactLength.value;
|
|
4008
|
-
(s || o) && (
|
|
3948
|
+
(s || o) && (u(t, {
|
|
4009
3949
|
code: s ? c.too_big : c.too_small,
|
|
4010
3950
|
minimum: o ? i.exactLength.value : void 0,
|
|
4011
3951
|
maximum: s ? i.exactLength.value : void 0,
|
|
@@ -4015,14 +3955,14 @@ class I extends y {
|
|
|
4015
3955
|
message: i.exactLength.message
|
|
4016
3956
|
}), n.dirty());
|
|
4017
3957
|
}
|
|
4018
|
-
if (i.minLength !== null && t.data.length < i.minLength.value && (
|
|
3958
|
+
if (i.minLength !== null && t.data.length < i.minLength.value && (u(t, {
|
|
4019
3959
|
code: c.too_small,
|
|
4020
3960
|
minimum: i.minLength.value,
|
|
4021
3961
|
type: "array",
|
|
4022
3962
|
inclusive: !0,
|
|
4023
3963
|
exact: !1,
|
|
4024
3964
|
message: i.minLength.message
|
|
4025
|
-
}), n.dirty()), i.maxLength !== null && t.data.length > i.maxLength.value && (
|
|
3965
|
+
}), n.dirty()), i.maxLength !== null && t.data.length > i.maxLength.value && (u(t, {
|
|
4026
3966
|
code: c.too_big,
|
|
4027
3967
|
maximum: i.maxLength.value,
|
|
4028
3968
|
type: "array",
|
|
@@ -4030,27 +3970,27 @@ class I extends y {
|
|
|
4030
3970
|
exact: !1,
|
|
4031
3971
|
message: i.maxLength.message
|
|
4032
3972
|
}), n.dirty()), t.common.async)
|
|
4033
|
-
return Promise.all([...t.data].map((s, o) => i.type._parseAsync(new
|
|
4034
|
-
const r = [...t.data].map((s, o) => i.type._parseSync(new
|
|
4035
|
-
return
|
|
3973
|
+
return Promise.all([...t.data].map((s, o) => i.type._parseAsync(new N(t, s, t.path, o)))).then((s) => T.mergeArray(n, s));
|
|
3974
|
+
const r = [...t.data].map((s, o) => i.type._parseSync(new N(t, s, t.path, o)));
|
|
3975
|
+
return T.mergeArray(n, r);
|
|
4036
3976
|
}
|
|
4037
3977
|
get element() {
|
|
4038
3978
|
return this._def.type;
|
|
4039
3979
|
}
|
|
4040
3980
|
min(e, t) {
|
|
4041
|
-
return new
|
|
3981
|
+
return new O({
|
|
4042
3982
|
...this._def,
|
|
4043
3983
|
minLength: { value: e, message: p.toString(t) }
|
|
4044
3984
|
});
|
|
4045
3985
|
}
|
|
4046
3986
|
max(e, t) {
|
|
4047
|
-
return new
|
|
3987
|
+
return new O({
|
|
4048
3988
|
...this._def,
|
|
4049
3989
|
maxLength: { value: e, message: p.toString(t) }
|
|
4050
3990
|
});
|
|
4051
3991
|
}
|
|
4052
3992
|
length(e, t) {
|
|
4053
|
-
return new
|
|
3993
|
+
return new O({
|
|
4054
3994
|
...this._def,
|
|
4055
3995
|
exactLength: { value: e, message: p.toString(t) }
|
|
4056
3996
|
});
|
|
@@ -4059,31 +3999,31 @@ class I extends y {
|
|
|
4059
3999
|
return this.min(1, e);
|
|
4060
4000
|
}
|
|
4061
4001
|
}
|
|
4062
|
-
|
|
4002
|
+
O.create = (a, e) => new O({
|
|
4063
4003
|
type: a,
|
|
4064
4004
|
minLength: null,
|
|
4065
4005
|
maxLength: null,
|
|
4066
4006
|
exactLength: null,
|
|
4067
4007
|
typeName: h.ZodArray,
|
|
4068
|
-
...
|
|
4008
|
+
..._(e)
|
|
4069
4009
|
});
|
|
4070
4010
|
function G(a) {
|
|
4071
|
-
if (a instanceof
|
|
4011
|
+
if (a instanceof w) {
|
|
4072
4012
|
const e = {};
|
|
4073
4013
|
for (const t in a.shape) {
|
|
4074
4014
|
const n = a.shape[t];
|
|
4075
4015
|
e[t] = P.create(G(n));
|
|
4076
4016
|
}
|
|
4077
|
-
return new
|
|
4017
|
+
return new w({
|
|
4078
4018
|
...a._def,
|
|
4079
4019
|
shape: () => e
|
|
4080
4020
|
});
|
|
4081
|
-
} else return a instanceof
|
|
4021
|
+
} else return a instanceof O ? new O({
|
|
4082
4022
|
...a._def,
|
|
4083
4023
|
type: G(a.element)
|
|
4084
|
-
}) : a instanceof P ? P.create(G(a.unwrap())) : a instanceof q ? q.create(G(a.unwrap())) : a instanceof
|
|
4024
|
+
}) : a instanceof P ? P.create(G(a.unwrap())) : a instanceof q ? q.create(G(a.unwrap())) : a instanceof M ? M.create(a.items.map((e) => G(e))) : a;
|
|
4085
4025
|
}
|
|
4086
|
-
class
|
|
4026
|
+
class w extends v {
|
|
4087
4027
|
constructor() {
|
|
4088
4028
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
4089
4029
|
}
|
|
@@ -4094,13 +4034,13 @@ class x extends y {
|
|
|
4094
4034
|
return this._cached = { shape: e, keys: t };
|
|
4095
4035
|
}
|
|
4096
4036
|
_parse(e) {
|
|
4097
|
-
if (this._getType(e) !==
|
|
4037
|
+
if (this._getType(e) !== l.object) {
|
|
4098
4038
|
const d = this._getOrReturnCtx(e);
|
|
4099
|
-
return
|
|
4039
|
+
return u(d, {
|
|
4100
4040
|
code: c.invalid_type,
|
|
4101
|
-
expected:
|
|
4041
|
+
expected: l.object,
|
|
4102
4042
|
received: d.parsedType
|
|
4103
|
-
}),
|
|
4043
|
+
}), f;
|
|
4104
4044
|
}
|
|
4105
4045
|
const { status: n, ctx: i } = this._processInputParams(e), { shape: r, keys: s } = this._getCached(), o = [];
|
|
4106
4046
|
if (!(this._def.catchall instanceof L && this._def.unknownKeys === "strip"))
|
|
@@ -4108,59 +4048,59 @@ class x extends y {
|
|
|
4108
4048
|
s.includes(d) || o.push(d);
|
|
4109
4049
|
const m = [];
|
|
4110
4050
|
for (const d of s) {
|
|
4111
|
-
const
|
|
4051
|
+
const y = r[d], S = i.data[d];
|
|
4112
4052
|
m.push({
|
|
4113
4053
|
key: { status: "valid", value: d },
|
|
4114
|
-
value:
|
|
4054
|
+
value: y._parse(new N(i, S, i.path, d)),
|
|
4115
4055
|
alwaysSet: d in i.data
|
|
4116
4056
|
});
|
|
4117
4057
|
}
|
|
4118
4058
|
if (this._def.catchall instanceof L) {
|
|
4119
4059
|
const d = this._def.unknownKeys;
|
|
4120
4060
|
if (d === "passthrough")
|
|
4121
|
-
for (const
|
|
4061
|
+
for (const y of o)
|
|
4122
4062
|
m.push({
|
|
4123
|
-
key: { status: "valid", value:
|
|
4124
|
-
value: { status: "valid", value: i.data[
|
|
4063
|
+
key: { status: "valid", value: y },
|
|
4064
|
+
value: { status: "valid", value: i.data[y] }
|
|
4125
4065
|
});
|
|
4126
4066
|
else if (d === "strict")
|
|
4127
|
-
o.length > 0 && (
|
|
4067
|
+
o.length > 0 && (u(i, {
|
|
4128
4068
|
code: c.unrecognized_keys,
|
|
4129
4069
|
keys: o
|
|
4130
4070
|
}), n.dirty());
|
|
4131
4071
|
else if (d !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
|
|
4132
4072
|
} else {
|
|
4133
4073
|
const d = this._def.catchall;
|
|
4134
|
-
for (const
|
|
4135
|
-
const S = i.data[
|
|
4074
|
+
for (const y of o) {
|
|
4075
|
+
const S = i.data[y];
|
|
4136
4076
|
m.push({
|
|
4137
|
-
key: { status: "valid", value:
|
|
4077
|
+
key: { status: "valid", value: y },
|
|
4138
4078
|
value: d._parse(
|
|
4139
|
-
new
|
|
4079
|
+
new N(i, S, i.path, y)
|
|
4140
4080
|
//, ctx.child(key), value, getParsedType(value)
|
|
4141
4081
|
),
|
|
4142
|
-
alwaysSet:
|
|
4082
|
+
alwaysSet: y in i.data
|
|
4143
4083
|
});
|
|
4144
4084
|
}
|
|
4145
4085
|
}
|
|
4146
4086
|
return i.common.async ? Promise.resolve().then(async () => {
|
|
4147
4087
|
const d = [];
|
|
4148
|
-
for (const
|
|
4149
|
-
const S = await
|
|
4088
|
+
for (const y of m) {
|
|
4089
|
+
const S = await y.key;
|
|
4150
4090
|
d.push({
|
|
4151
4091
|
key: S,
|
|
4152
|
-
value: await
|
|
4153
|
-
alwaysSet:
|
|
4092
|
+
value: await y.value,
|
|
4093
|
+
alwaysSet: y.alwaysSet
|
|
4154
4094
|
});
|
|
4155
4095
|
}
|
|
4156
4096
|
return d;
|
|
4157
|
-
}).then((d) =>
|
|
4097
|
+
}).then((d) => T.mergeObjectSync(n, d)) : T.mergeObjectSync(n, m);
|
|
4158
4098
|
}
|
|
4159
4099
|
get shape() {
|
|
4160
4100
|
return this._def.shape();
|
|
4161
4101
|
}
|
|
4162
4102
|
strict(e) {
|
|
4163
|
-
return p.errToObj, new
|
|
4103
|
+
return p.errToObj, new w({
|
|
4164
4104
|
...this._def,
|
|
4165
4105
|
unknownKeys: "strict",
|
|
4166
4106
|
...e !== void 0 ? {
|
|
@@ -4177,13 +4117,13 @@ class x extends y {
|
|
|
4177
4117
|
});
|
|
4178
4118
|
}
|
|
4179
4119
|
strip() {
|
|
4180
|
-
return new
|
|
4120
|
+
return new w({
|
|
4181
4121
|
...this._def,
|
|
4182
4122
|
unknownKeys: "strip"
|
|
4183
4123
|
});
|
|
4184
4124
|
}
|
|
4185
4125
|
passthrough() {
|
|
4186
|
-
return new
|
|
4126
|
+
return new w({
|
|
4187
4127
|
...this._def,
|
|
4188
4128
|
unknownKeys: "passthrough"
|
|
4189
4129
|
});
|
|
@@ -4206,7 +4146,7 @@ class x extends y {
|
|
|
4206
4146
|
// }) as any;
|
|
4207
4147
|
// };
|
|
4208
4148
|
extend(e) {
|
|
4209
|
-
return new
|
|
4149
|
+
return new w({
|
|
4210
4150
|
...this._def,
|
|
4211
4151
|
shape: () => ({
|
|
4212
4152
|
...this._def.shape(),
|
|
@@ -4220,7 +4160,7 @@ class x extends y {
|
|
|
4220
4160
|
* upgrade if you are experiencing issues.
|
|
4221
4161
|
*/
|
|
4222
4162
|
merge(e) {
|
|
4223
|
-
return new
|
|
4163
|
+
return new w({
|
|
4224
4164
|
unknownKeys: e._def.unknownKeys,
|
|
4225
4165
|
catchall: e._def.catchall,
|
|
4226
4166
|
shape: () => ({
|
|
@@ -4290,7 +4230,7 @@ class x extends y {
|
|
|
4290
4230
|
// return merged;
|
|
4291
4231
|
// }
|
|
4292
4232
|
catchall(e) {
|
|
4293
|
-
return new
|
|
4233
|
+
return new w({
|
|
4294
4234
|
...this._def,
|
|
4295
4235
|
catchall: e
|
|
4296
4236
|
});
|
|
@@ -4299,7 +4239,7 @@ class x extends y {
|
|
|
4299
4239
|
const t = {};
|
|
4300
4240
|
return b.objectKeys(e).forEach((n) => {
|
|
4301
4241
|
e[n] && this.shape[n] && (t[n] = this.shape[n]);
|
|
4302
|
-
}), new
|
|
4242
|
+
}), new w({
|
|
4303
4243
|
...this._def,
|
|
4304
4244
|
shape: () => t
|
|
4305
4245
|
});
|
|
@@ -4308,7 +4248,7 @@ class x extends y {
|
|
|
4308
4248
|
const t = {};
|
|
4309
4249
|
return b.objectKeys(this.shape).forEach((n) => {
|
|
4310
4250
|
e[n] || (t[n] = this.shape[n]);
|
|
4311
|
-
}), new
|
|
4251
|
+
}), new w({
|
|
4312
4252
|
...this._def,
|
|
4313
4253
|
shape: () => t
|
|
4314
4254
|
});
|
|
@@ -4324,7 +4264,7 @@ class x extends y {
|
|
|
4324
4264
|
return b.objectKeys(this.shape).forEach((n) => {
|
|
4325
4265
|
const i = this.shape[n];
|
|
4326
4266
|
e && !e[n] ? t[n] = i : t[n] = i.optional();
|
|
4327
|
-
}), new
|
|
4267
|
+
}), new w({
|
|
4328
4268
|
...this._def,
|
|
4329
4269
|
shape: () => t
|
|
4330
4270
|
});
|
|
@@ -4340,37 +4280,37 @@ class x extends y {
|
|
|
4340
4280
|
r = r._def.innerType;
|
|
4341
4281
|
t[n] = r;
|
|
4342
4282
|
}
|
|
4343
|
-
}), new
|
|
4283
|
+
}), new w({
|
|
4344
4284
|
...this._def,
|
|
4345
4285
|
shape: () => t
|
|
4346
4286
|
});
|
|
4347
4287
|
}
|
|
4348
4288
|
keyof() {
|
|
4349
|
-
return
|
|
4289
|
+
return Ae(b.objectKeys(this.shape));
|
|
4350
4290
|
}
|
|
4351
4291
|
}
|
|
4352
|
-
|
|
4292
|
+
w.create = (a, e) => new w({
|
|
4353
4293
|
shape: () => a,
|
|
4354
4294
|
unknownKeys: "strip",
|
|
4355
4295
|
catchall: L.create(),
|
|
4356
4296
|
typeName: h.ZodObject,
|
|
4357
|
-
...
|
|
4297
|
+
..._(e)
|
|
4358
4298
|
});
|
|
4359
|
-
|
|
4299
|
+
w.strictCreate = (a, e) => new w({
|
|
4360
4300
|
shape: () => a,
|
|
4361
4301
|
unknownKeys: "strict",
|
|
4362
4302
|
catchall: L.create(),
|
|
4363
4303
|
typeName: h.ZodObject,
|
|
4364
|
-
...
|
|
4304
|
+
..._(e)
|
|
4365
4305
|
});
|
|
4366
|
-
|
|
4306
|
+
w.lazycreate = (a, e) => new w({
|
|
4367
4307
|
shape: a,
|
|
4368
4308
|
unknownKeys: "strip",
|
|
4369
4309
|
catchall: L.create(),
|
|
4370
4310
|
typeName: h.ZodObject,
|
|
4371
|
-
...
|
|
4311
|
+
..._(e)
|
|
4372
4312
|
});
|
|
4373
|
-
class Q extends
|
|
4313
|
+
class Q extends v {
|
|
4374
4314
|
_parse(e) {
|
|
4375
4315
|
const { ctx: t } = this._processInputParams(e), n = this._def.options;
|
|
4376
4316
|
function i(r) {
|
|
@@ -4381,10 +4321,10 @@ class Q extends y {
|
|
|
4381
4321
|
if (o.result.status === "dirty")
|
|
4382
4322
|
return t.common.issues.push(...o.ctx.common.issues), o.result;
|
|
4383
4323
|
const s = r.map((o) => new E(o.ctx.common.issues));
|
|
4384
|
-
return
|
|
4324
|
+
return u(t, {
|
|
4385
4325
|
code: c.invalid_union,
|
|
4386
4326
|
unionErrors: s
|
|
4387
|
-
}),
|
|
4327
|
+
}), f;
|
|
4388
4328
|
}
|
|
4389
4329
|
if (t.common.async)
|
|
4390
4330
|
return Promise.all(n.map(async (r) => {
|
|
@@ -4416,22 +4356,22 @@ class Q extends y {
|
|
|
4416
4356
|
issues: []
|
|
4417
4357
|
},
|
|
4418
4358
|
parent: null
|
|
4419
|
-
},
|
|
4359
|
+
}, y = m._parseSync({
|
|
4420
4360
|
data: t.data,
|
|
4421
4361
|
path: t.path,
|
|
4422
4362
|
parent: d
|
|
4423
4363
|
});
|
|
4424
|
-
if (
|
|
4425
|
-
return
|
|
4426
|
-
|
|
4364
|
+
if (y.status === "valid")
|
|
4365
|
+
return y;
|
|
4366
|
+
y.status === "dirty" && !r && (r = { result: y, ctx: d }), d.common.issues.length && s.push(d.common.issues);
|
|
4427
4367
|
}
|
|
4428
4368
|
if (r)
|
|
4429
4369
|
return t.common.issues.push(...r.ctx.common.issues), r.result;
|
|
4430
4370
|
const o = s.map((m) => new E(m));
|
|
4431
|
-
return
|
|
4371
|
+
return u(t, {
|
|
4432
4372
|
code: c.invalid_union,
|
|
4433
4373
|
unionErrors: o
|
|
4434
|
-
}),
|
|
4374
|
+
}), f;
|
|
4435
4375
|
}
|
|
4436
4376
|
}
|
|
4437
4377
|
get options() {
|
|
@@ -4441,18 +4381,18 @@ class Q extends y {
|
|
|
4441
4381
|
Q.create = (a, e) => new Q({
|
|
4442
4382
|
options: a,
|
|
4443
4383
|
typeName: h.ZodUnion,
|
|
4444
|
-
...
|
|
4384
|
+
..._(e)
|
|
4445
4385
|
});
|
|
4446
|
-
const oe = (a) => a instanceof ae ? oe(a.schema) : a instanceof
|
|
4447
|
-
class
|
|
4386
|
+
const oe = (a) => a instanceof ae ? oe(a.schema) : a instanceof I ? oe(a.innerType()) : a instanceof ne ? [a.value] : a instanceof V ? a.options : a instanceof ie ? Object.keys(a.enum) : a instanceof re ? oe(a._def.innerType) : a instanceof X ? [void 0] : a instanceof K ? [null] : null;
|
|
4387
|
+
class _e extends v {
|
|
4448
4388
|
_parse(e) {
|
|
4449
4389
|
const { ctx: t } = this._processInputParams(e);
|
|
4450
|
-
if (t.parsedType !==
|
|
4451
|
-
return
|
|
4390
|
+
if (t.parsedType !== l.object)
|
|
4391
|
+
return u(t, {
|
|
4452
4392
|
code: c.invalid_type,
|
|
4453
|
-
expected:
|
|
4393
|
+
expected: l.object,
|
|
4454
4394
|
received: t.parsedType
|
|
4455
|
-
}),
|
|
4395
|
+
}), f;
|
|
4456
4396
|
const n = this.discriminator, i = t.data[n], r = this.optionsMap.get(i);
|
|
4457
4397
|
return r ? t.common.async ? r._parseAsync({
|
|
4458
4398
|
data: t.data,
|
|
@@ -4462,11 +4402,11 @@ class ye extends y {
|
|
|
4462
4402
|
data: t.data,
|
|
4463
4403
|
path: t.path,
|
|
4464
4404
|
parent: t
|
|
4465
|
-
}) : (
|
|
4405
|
+
}) : (u(t, {
|
|
4466
4406
|
code: c.invalid_union_discriminator,
|
|
4467
4407
|
options: Array.from(this.optionsMap.keys()),
|
|
4468
4408
|
path: [n]
|
|
4469
|
-
}),
|
|
4409
|
+
}), f);
|
|
4470
4410
|
}
|
|
4471
4411
|
get discriminator() {
|
|
4472
4412
|
return this._def.discriminator;
|
|
@@ -4497,50 +4437,50 @@ class ye extends y {
|
|
|
4497
4437
|
i.set(o, r);
|
|
4498
4438
|
}
|
|
4499
4439
|
}
|
|
4500
|
-
return new
|
|
4440
|
+
return new _e({
|
|
4501
4441
|
typeName: h.ZodDiscriminatedUnion,
|
|
4502
4442
|
discriminator: e,
|
|
4503
4443
|
options: t,
|
|
4504
4444
|
optionsMap: i,
|
|
4505
|
-
...
|
|
4445
|
+
..._(n)
|
|
4506
4446
|
});
|
|
4507
4447
|
}
|
|
4508
4448
|
}
|
|
4509
|
-
function
|
|
4510
|
-
const t =
|
|
4449
|
+
function Te(a, e) {
|
|
4450
|
+
const t = j(a), n = j(e);
|
|
4511
4451
|
if (a === e)
|
|
4512
4452
|
return { valid: !0, data: a };
|
|
4513
|
-
if (t ===
|
|
4453
|
+
if (t === l.object && n === l.object) {
|
|
4514
4454
|
const i = b.objectKeys(e), r = b.objectKeys(a).filter((o) => i.indexOf(o) !== -1), s = { ...a, ...e };
|
|
4515
4455
|
for (const o of r) {
|
|
4516
|
-
const m =
|
|
4456
|
+
const m = Te(a[o], e[o]);
|
|
4517
4457
|
if (!m.valid)
|
|
4518
4458
|
return { valid: !1 };
|
|
4519
4459
|
s[o] = m.data;
|
|
4520
4460
|
}
|
|
4521
4461
|
return { valid: !0, data: s };
|
|
4522
|
-
} else if (t ===
|
|
4462
|
+
} else if (t === l.array && n === l.array) {
|
|
4523
4463
|
if (a.length !== e.length)
|
|
4524
4464
|
return { valid: !1 };
|
|
4525
4465
|
const i = [];
|
|
4526
4466
|
for (let r = 0; r < a.length; r++) {
|
|
4527
|
-
const s = a[r], o = e[r], m =
|
|
4467
|
+
const s = a[r], o = e[r], m = Te(s, o);
|
|
4528
4468
|
if (!m.valid)
|
|
4529
4469
|
return { valid: !1 };
|
|
4530
4470
|
i.push(m.data);
|
|
4531
4471
|
}
|
|
4532
4472
|
return { valid: !0, data: i };
|
|
4533
|
-
} else return t ===
|
|
4473
|
+
} else return t === l.date && n === l.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
|
|
4534
4474
|
}
|
|
4535
|
-
class ee extends
|
|
4475
|
+
class ee extends v {
|
|
4536
4476
|
_parse(e) {
|
|
4537
4477
|
const { status: t, ctx: n } = this._processInputParams(e), i = (r, s) => {
|
|
4538
4478
|
if (xe(r) || xe(s))
|
|
4539
|
-
return
|
|
4540
|
-
const o =
|
|
4541
|
-
return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (
|
|
4479
|
+
return f;
|
|
4480
|
+
const o = Te(r.value, s.value);
|
|
4481
|
+
return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (u(n, {
|
|
4542
4482
|
code: c.invalid_intersection_types
|
|
4543
|
-
}),
|
|
4483
|
+
}), f);
|
|
4544
4484
|
};
|
|
4545
4485
|
return n.common.async ? Promise.all([
|
|
4546
4486
|
this._def.left._parseAsync({
|
|
@@ -4568,26 +4508,26 @@ ee.create = (a, e, t) => new ee({
|
|
|
4568
4508
|
left: a,
|
|
4569
4509
|
right: e,
|
|
4570
4510
|
typeName: h.ZodIntersection,
|
|
4571
|
-
...
|
|
4511
|
+
..._(t)
|
|
4572
4512
|
});
|
|
4573
|
-
class
|
|
4513
|
+
class M extends v {
|
|
4574
4514
|
_parse(e) {
|
|
4575
4515
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
4576
|
-
if (n.parsedType !==
|
|
4577
|
-
return
|
|
4516
|
+
if (n.parsedType !== l.array)
|
|
4517
|
+
return u(n, {
|
|
4578
4518
|
code: c.invalid_type,
|
|
4579
|
-
expected:
|
|
4519
|
+
expected: l.array,
|
|
4580
4520
|
received: n.parsedType
|
|
4581
|
-
}),
|
|
4521
|
+
}), f;
|
|
4582
4522
|
if (n.data.length < this._def.items.length)
|
|
4583
|
-
return
|
|
4523
|
+
return u(n, {
|
|
4584
4524
|
code: c.too_small,
|
|
4585
4525
|
minimum: this._def.items.length,
|
|
4586
4526
|
inclusive: !0,
|
|
4587
4527
|
exact: !1,
|
|
4588
4528
|
type: "array"
|
|
4589
|
-
}),
|
|
4590
|
-
!this._def.rest && n.data.length > this._def.items.length && (
|
|
4529
|
+
}), f;
|
|
4530
|
+
!this._def.rest && n.data.length > this._def.items.length && (u(n, {
|
|
4591
4531
|
code: c.too_big,
|
|
4592
4532
|
maximum: this._def.items.length,
|
|
4593
4533
|
inclusive: !0,
|
|
@@ -4596,31 +4536,31 @@ class O extends y {
|
|
|
4596
4536
|
}), t.dirty());
|
|
4597
4537
|
const r = [...n.data].map((s, o) => {
|
|
4598
4538
|
const m = this._def.items[o] || this._def.rest;
|
|
4599
|
-
return m ? m._parse(new
|
|
4539
|
+
return m ? m._parse(new N(n, s, n.path, o)) : null;
|
|
4600
4540
|
}).filter((s) => !!s);
|
|
4601
|
-
return n.common.async ? Promise.all(r).then((s) =>
|
|
4541
|
+
return n.common.async ? Promise.all(r).then((s) => T.mergeArray(t, s)) : T.mergeArray(t, r);
|
|
4602
4542
|
}
|
|
4603
4543
|
get items() {
|
|
4604
4544
|
return this._def.items;
|
|
4605
4545
|
}
|
|
4606
4546
|
rest(e) {
|
|
4607
|
-
return new
|
|
4547
|
+
return new M({
|
|
4608
4548
|
...this._def,
|
|
4609
4549
|
rest: e
|
|
4610
4550
|
});
|
|
4611
4551
|
}
|
|
4612
4552
|
}
|
|
4613
|
-
|
|
4553
|
+
M.create = (a, e) => {
|
|
4614
4554
|
if (!Array.isArray(a))
|
|
4615
4555
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
4616
|
-
return new
|
|
4556
|
+
return new M({
|
|
4617
4557
|
items: a,
|
|
4618
4558
|
typeName: h.ZodTuple,
|
|
4619
4559
|
rest: null,
|
|
4620
|
-
...
|
|
4560
|
+
..._(e)
|
|
4621
4561
|
});
|
|
4622
4562
|
};
|
|
4623
|
-
class te extends
|
|
4563
|
+
class te extends v {
|
|
4624
4564
|
get keySchema() {
|
|
4625
4565
|
return this._def.keyType;
|
|
4626
4566
|
}
|
|
@@ -4629,38 +4569,38 @@ class te extends y {
|
|
|
4629
4569
|
}
|
|
4630
4570
|
_parse(e) {
|
|
4631
4571
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
4632
|
-
if (n.parsedType !==
|
|
4633
|
-
return
|
|
4572
|
+
if (n.parsedType !== l.object)
|
|
4573
|
+
return u(n, {
|
|
4634
4574
|
code: c.invalid_type,
|
|
4635
|
-
expected:
|
|
4575
|
+
expected: l.object,
|
|
4636
4576
|
received: n.parsedType
|
|
4637
|
-
}),
|
|
4577
|
+
}), f;
|
|
4638
4578
|
const i = [], r = this._def.keyType, s = this._def.valueType;
|
|
4639
4579
|
for (const o in n.data)
|
|
4640
4580
|
i.push({
|
|
4641
|
-
key: r._parse(new
|
|
4642
|
-
value: s._parse(new
|
|
4581
|
+
key: r._parse(new N(n, o, n.path, o)),
|
|
4582
|
+
value: s._parse(new N(n, n.data[o], n.path, o))
|
|
4643
4583
|
});
|
|
4644
|
-
return n.common.async ?
|
|
4584
|
+
return n.common.async ? T.mergeObjectAsync(t, i) : T.mergeObjectSync(t, i);
|
|
4645
4585
|
}
|
|
4646
4586
|
get element() {
|
|
4647
4587
|
return this._def.valueType;
|
|
4648
4588
|
}
|
|
4649
4589
|
static create(e, t, n) {
|
|
4650
|
-
return t instanceof
|
|
4590
|
+
return t instanceof v ? new te({
|
|
4651
4591
|
keyType: e,
|
|
4652
4592
|
valueType: t,
|
|
4653
4593
|
typeName: h.ZodRecord,
|
|
4654
|
-
...
|
|
4594
|
+
..._(n)
|
|
4655
4595
|
}) : new te({
|
|
4656
|
-
keyType:
|
|
4596
|
+
keyType: A.create(),
|
|
4657
4597
|
valueType: e,
|
|
4658
4598
|
typeName: h.ZodRecord,
|
|
4659
|
-
...
|
|
4599
|
+
..._(t)
|
|
4660
4600
|
});
|
|
4661
4601
|
}
|
|
4662
4602
|
}
|
|
4663
|
-
class pe extends
|
|
4603
|
+
class pe extends v {
|
|
4664
4604
|
get keySchema() {
|
|
4665
4605
|
return this._def.keyType;
|
|
4666
4606
|
}
|
|
@@ -4669,34 +4609,34 @@ class pe extends y {
|
|
|
4669
4609
|
}
|
|
4670
4610
|
_parse(e) {
|
|
4671
4611
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
4672
|
-
if (n.parsedType !==
|
|
4673
|
-
return
|
|
4612
|
+
if (n.parsedType !== l.map)
|
|
4613
|
+
return u(n, {
|
|
4674
4614
|
code: c.invalid_type,
|
|
4675
|
-
expected:
|
|
4615
|
+
expected: l.map,
|
|
4676
4616
|
received: n.parsedType
|
|
4677
|
-
}),
|
|
4617
|
+
}), f;
|
|
4678
4618
|
const i = this._def.keyType, r = this._def.valueType, s = [...n.data.entries()].map(([o, m], d) => ({
|
|
4679
|
-
key: i._parse(new
|
|
4680
|
-
value: r._parse(new
|
|
4619
|
+
key: i._parse(new N(n, o, n.path, [d, "key"])),
|
|
4620
|
+
value: r._parse(new N(n, m, n.path, [d, "value"]))
|
|
4681
4621
|
}));
|
|
4682
4622
|
if (n.common.async) {
|
|
4683
4623
|
const o = /* @__PURE__ */ new Map();
|
|
4684
4624
|
return Promise.resolve().then(async () => {
|
|
4685
4625
|
for (const m of s) {
|
|
4686
|
-
const d = await m.key,
|
|
4687
|
-
if (d.status === "aborted" ||
|
|
4688
|
-
return
|
|
4689
|
-
(d.status === "dirty" ||
|
|
4626
|
+
const d = await m.key, y = await m.value;
|
|
4627
|
+
if (d.status === "aborted" || y.status === "aborted")
|
|
4628
|
+
return f;
|
|
4629
|
+
(d.status === "dirty" || y.status === "dirty") && t.dirty(), o.set(d.value, y.value);
|
|
4690
4630
|
}
|
|
4691
4631
|
return { status: t.value, value: o };
|
|
4692
4632
|
});
|
|
4693
4633
|
} else {
|
|
4694
4634
|
const o = /* @__PURE__ */ new Map();
|
|
4695
4635
|
for (const m of s) {
|
|
4696
|
-
const d = m.key,
|
|
4697
|
-
if (d.status === "aborted" ||
|
|
4698
|
-
return
|
|
4699
|
-
(d.status === "dirty" ||
|
|
4636
|
+
const d = m.key, y = m.value;
|
|
4637
|
+
if (d.status === "aborted" || y.status === "aborted")
|
|
4638
|
+
return f;
|
|
4639
|
+
(d.status === "dirty" || y.status === "dirty") && t.dirty(), o.set(d.value, y.value);
|
|
4700
4640
|
}
|
|
4701
4641
|
return { status: t.value, value: o };
|
|
4702
4642
|
}
|
|
@@ -4706,26 +4646,26 @@ pe.create = (a, e, t) => new pe({
|
|
|
4706
4646
|
valueType: e,
|
|
4707
4647
|
keyType: a,
|
|
4708
4648
|
typeName: h.ZodMap,
|
|
4709
|
-
...
|
|
4649
|
+
..._(t)
|
|
4710
4650
|
});
|
|
4711
|
-
class
|
|
4651
|
+
class U extends v {
|
|
4712
4652
|
_parse(e) {
|
|
4713
4653
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
4714
|
-
if (n.parsedType !==
|
|
4715
|
-
return
|
|
4654
|
+
if (n.parsedType !== l.set)
|
|
4655
|
+
return u(n, {
|
|
4716
4656
|
code: c.invalid_type,
|
|
4717
|
-
expected:
|
|
4657
|
+
expected: l.set,
|
|
4718
4658
|
received: n.parsedType
|
|
4719
|
-
}),
|
|
4659
|
+
}), f;
|
|
4720
4660
|
const i = this._def;
|
|
4721
|
-
i.minSize !== null && n.data.size < i.minSize.value && (
|
|
4661
|
+
i.minSize !== null && n.data.size < i.minSize.value && (u(n, {
|
|
4722
4662
|
code: c.too_small,
|
|
4723
4663
|
minimum: i.minSize.value,
|
|
4724
4664
|
type: "set",
|
|
4725
4665
|
inclusive: !0,
|
|
4726
4666
|
exact: !1,
|
|
4727
4667
|
message: i.minSize.message
|
|
4728
|
-
}), t.dirty()), i.maxSize !== null && n.data.size > i.maxSize.value && (
|
|
4668
|
+
}), t.dirty()), i.maxSize !== null && n.data.size > i.maxSize.value && (u(n, {
|
|
4729
4669
|
code: c.too_big,
|
|
4730
4670
|
maximum: i.maxSize.value,
|
|
4731
4671
|
type: "set",
|
|
@@ -4736,24 +4676,24 @@ class $ extends y {
|
|
|
4736
4676
|
const r = this._def.valueType;
|
|
4737
4677
|
function s(m) {
|
|
4738
4678
|
const d = /* @__PURE__ */ new Set();
|
|
4739
|
-
for (const
|
|
4740
|
-
if (
|
|
4741
|
-
return
|
|
4742
|
-
|
|
4679
|
+
for (const y of m) {
|
|
4680
|
+
if (y.status === "aborted")
|
|
4681
|
+
return f;
|
|
4682
|
+
y.status === "dirty" && t.dirty(), d.add(y.value);
|
|
4743
4683
|
}
|
|
4744
4684
|
return { status: t.value, value: d };
|
|
4745
4685
|
}
|
|
4746
|
-
const o = [...n.data.values()].map((m, d) => r._parse(new
|
|
4686
|
+
const o = [...n.data.values()].map((m, d) => r._parse(new N(n, m, n.path, d)));
|
|
4747
4687
|
return n.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
|
|
4748
4688
|
}
|
|
4749
4689
|
min(e, t) {
|
|
4750
|
-
return new
|
|
4690
|
+
return new U({
|
|
4751
4691
|
...this._def,
|
|
4752
4692
|
minSize: { value: e, message: p.toString(t) }
|
|
4753
4693
|
});
|
|
4754
4694
|
}
|
|
4755
4695
|
max(e, t) {
|
|
4756
|
-
return new
|
|
4696
|
+
return new U({
|
|
4757
4697
|
...this._def,
|
|
4758
4698
|
maxSize: { value: e, message: p.toString(t) }
|
|
4759
4699
|
});
|
|
@@ -4765,25 +4705,25 @@ class $ extends y {
|
|
|
4765
4705
|
return this.min(1, e);
|
|
4766
4706
|
}
|
|
4767
4707
|
}
|
|
4768
|
-
|
|
4708
|
+
U.create = (a, e) => new U({
|
|
4769
4709
|
valueType: a,
|
|
4770
4710
|
minSize: null,
|
|
4771
4711
|
maxSize: null,
|
|
4772
4712
|
typeName: h.ZodSet,
|
|
4773
|
-
...
|
|
4713
|
+
..._(e)
|
|
4774
4714
|
});
|
|
4775
|
-
class z extends
|
|
4715
|
+
class z extends v {
|
|
4776
4716
|
constructor() {
|
|
4777
4717
|
super(...arguments), this.validate = this.implement;
|
|
4778
4718
|
}
|
|
4779
4719
|
_parse(e) {
|
|
4780
4720
|
const { ctx: t } = this._processInputParams(e);
|
|
4781
|
-
if (t.parsedType !==
|
|
4782
|
-
return
|
|
4721
|
+
if (t.parsedType !== l.function)
|
|
4722
|
+
return u(t, {
|
|
4783
4723
|
code: c.invalid_type,
|
|
4784
|
-
expected:
|
|
4724
|
+
expected: l.function,
|
|
4785
4725
|
received: t.parsedType
|
|
4786
|
-
}),
|
|
4726
|
+
}), f;
|
|
4787
4727
|
function n(o, m) {
|
|
4788
4728
|
return de({
|
|
4789
4729
|
data: o,
|
|
@@ -4819,23 +4759,23 @@ class z extends y {
|
|
|
4819
4759
|
const r = { errorMap: t.common.contextualErrorMap }, s = t.data;
|
|
4820
4760
|
if (this._def.returns instanceof W) {
|
|
4821
4761
|
const o = this;
|
|
4822
|
-
return
|
|
4823
|
-
const d = new E([]),
|
|
4762
|
+
return C(async function(...m) {
|
|
4763
|
+
const d = new E([]), y = await o._def.args.parseAsync(m, r).catch((ve) => {
|
|
4824
4764
|
throw d.addIssue(n(m, ve)), d;
|
|
4825
|
-
}), S = await Reflect.apply(s, this,
|
|
4765
|
+
}), S = await Reflect.apply(s, this, y);
|
|
4826
4766
|
return await o._def.returns._def.type.parseAsync(S, r).catch((ve) => {
|
|
4827
4767
|
throw d.addIssue(i(S, ve)), d;
|
|
4828
4768
|
});
|
|
4829
4769
|
});
|
|
4830
4770
|
} else {
|
|
4831
4771
|
const o = this;
|
|
4832
|
-
return
|
|
4772
|
+
return C(function(...m) {
|
|
4833
4773
|
const d = o._def.args.safeParse(m, r);
|
|
4834
4774
|
if (!d.success)
|
|
4835
4775
|
throw new E([n(m, d.error)]);
|
|
4836
|
-
const
|
|
4776
|
+
const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y, r);
|
|
4837
4777
|
if (!S.success)
|
|
4838
|
-
throw new E([i(
|
|
4778
|
+
throw new E([i(y, S.error)]);
|
|
4839
4779
|
return S.data;
|
|
4840
4780
|
});
|
|
4841
4781
|
}
|
|
@@ -4849,7 +4789,7 @@ class z extends y {
|
|
|
4849
4789
|
args(...e) {
|
|
4850
4790
|
return new z({
|
|
4851
4791
|
...this._def,
|
|
4852
|
-
args:
|
|
4792
|
+
args: M.create(e).rest($.create())
|
|
4853
4793
|
});
|
|
4854
4794
|
}
|
|
4855
4795
|
returns(e) {
|
|
@@ -4866,14 +4806,14 @@ class z extends y {
|
|
|
4866
4806
|
}
|
|
4867
4807
|
static create(e, t, n) {
|
|
4868
4808
|
return new z({
|
|
4869
|
-
args: e ||
|
|
4870
|
-
returns: t ||
|
|
4809
|
+
args: e || M.create([]).rest($.create()),
|
|
4810
|
+
returns: t || $.create(),
|
|
4871
4811
|
typeName: h.ZodFunction,
|
|
4872
|
-
...
|
|
4812
|
+
..._(n)
|
|
4873
4813
|
});
|
|
4874
4814
|
}
|
|
4875
4815
|
}
|
|
4876
|
-
class ae extends
|
|
4816
|
+
class ae extends v {
|
|
4877
4817
|
get schema() {
|
|
4878
4818
|
return this._def.getter();
|
|
4879
4819
|
}
|
|
@@ -4885,17 +4825,17 @@ class ae extends y {
|
|
|
4885
4825
|
ae.create = (a, e) => new ae({
|
|
4886
4826
|
getter: a,
|
|
4887
4827
|
typeName: h.ZodLazy,
|
|
4888
|
-
...
|
|
4828
|
+
..._(e)
|
|
4889
4829
|
});
|
|
4890
|
-
class ne extends
|
|
4830
|
+
class ne extends v {
|
|
4891
4831
|
_parse(e) {
|
|
4892
4832
|
if (e.data !== this._def.value) {
|
|
4893
4833
|
const t = this._getOrReturnCtx(e);
|
|
4894
|
-
return
|
|
4834
|
+
return u(t, {
|
|
4895
4835
|
received: t.data,
|
|
4896
4836
|
code: c.invalid_literal,
|
|
4897
4837
|
expected: this._def.value
|
|
4898
|
-
}),
|
|
4838
|
+
}), f;
|
|
4899
4839
|
}
|
|
4900
4840
|
return { status: "valid", value: e.data };
|
|
4901
4841
|
}
|
|
@@ -4906,34 +4846,34 @@ class ne extends y {
|
|
|
4906
4846
|
ne.create = (a, e) => new ne({
|
|
4907
4847
|
value: a,
|
|
4908
4848
|
typeName: h.ZodLiteral,
|
|
4909
|
-
...
|
|
4849
|
+
..._(e)
|
|
4910
4850
|
});
|
|
4911
|
-
function
|
|
4912
|
-
return new
|
|
4851
|
+
function Ae(a, e) {
|
|
4852
|
+
return new V({
|
|
4913
4853
|
values: a,
|
|
4914
4854
|
typeName: h.ZodEnum,
|
|
4915
|
-
...
|
|
4855
|
+
..._(e)
|
|
4916
4856
|
});
|
|
4917
4857
|
}
|
|
4918
|
-
class
|
|
4858
|
+
class V extends v {
|
|
4919
4859
|
_parse(e) {
|
|
4920
4860
|
if (typeof e.data != "string") {
|
|
4921
4861
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
4922
|
-
return
|
|
4862
|
+
return u(t, {
|
|
4923
4863
|
expected: b.joinValues(n),
|
|
4924
4864
|
received: t.parsedType,
|
|
4925
4865
|
code: c.invalid_type
|
|
4926
|
-
}),
|
|
4866
|
+
}), f;
|
|
4927
4867
|
}
|
|
4928
4868
|
if (this._def.values.indexOf(e.data) === -1) {
|
|
4929
4869
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
4930
|
-
return
|
|
4870
|
+
return u(t, {
|
|
4931
4871
|
received: t.data,
|
|
4932
4872
|
code: c.invalid_enum_value,
|
|
4933
4873
|
options: n
|
|
4934
|
-
}),
|
|
4874
|
+
}), f;
|
|
4935
4875
|
}
|
|
4936
|
-
return
|
|
4876
|
+
return C(e.data);
|
|
4937
4877
|
}
|
|
4938
4878
|
get options() {
|
|
4939
4879
|
return this._def.values;
|
|
@@ -4957,33 +4897,33 @@ class Z extends y {
|
|
|
4957
4897
|
return e;
|
|
4958
4898
|
}
|
|
4959
4899
|
extract(e) {
|
|
4960
|
-
return
|
|
4900
|
+
return V.create(e);
|
|
4961
4901
|
}
|
|
4962
4902
|
exclude(e) {
|
|
4963
|
-
return
|
|
4903
|
+
return V.create(this.options.filter((t) => !e.includes(t)));
|
|
4964
4904
|
}
|
|
4965
4905
|
}
|
|
4966
|
-
|
|
4967
|
-
class ie extends
|
|
4906
|
+
V.create = Ae;
|
|
4907
|
+
class ie extends v {
|
|
4968
4908
|
_parse(e) {
|
|
4969
4909
|
const t = b.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
4970
|
-
if (n.parsedType !==
|
|
4910
|
+
if (n.parsedType !== l.string && n.parsedType !== l.number) {
|
|
4971
4911
|
const i = b.objectValues(t);
|
|
4972
|
-
return
|
|
4912
|
+
return u(n, {
|
|
4973
4913
|
expected: b.joinValues(i),
|
|
4974
4914
|
received: n.parsedType,
|
|
4975
4915
|
code: c.invalid_type
|
|
4976
|
-
}),
|
|
4916
|
+
}), f;
|
|
4977
4917
|
}
|
|
4978
4918
|
if (t.indexOf(e.data) === -1) {
|
|
4979
4919
|
const i = b.objectValues(t);
|
|
4980
|
-
return
|
|
4920
|
+
return u(n, {
|
|
4981
4921
|
received: n.data,
|
|
4982
4922
|
code: c.invalid_enum_value,
|
|
4983
4923
|
options: i
|
|
4984
|
-
}),
|
|
4924
|
+
}), f;
|
|
4985
4925
|
}
|
|
4986
|
-
return
|
|
4926
|
+
return C(e.data);
|
|
4987
4927
|
}
|
|
4988
4928
|
get enum() {
|
|
4989
4929
|
return this._def.values;
|
|
@@ -4992,22 +4932,22 @@ class ie extends y {
|
|
|
4992
4932
|
ie.create = (a, e) => new ie({
|
|
4993
4933
|
values: a,
|
|
4994
4934
|
typeName: h.ZodNativeEnum,
|
|
4995
|
-
...
|
|
4935
|
+
..._(e)
|
|
4996
4936
|
});
|
|
4997
|
-
class W extends
|
|
4937
|
+
class W extends v {
|
|
4998
4938
|
unwrap() {
|
|
4999
4939
|
return this._def.type;
|
|
5000
4940
|
}
|
|
5001
4941
|
_parse(e) {
|
|
5002
4942
|
const { ctx: t } = this._processInputParams(e);
|
|
5003
|
-
if (t.parsedType !==
|
|
5004
|
-
return
|
|
4943
|
+
if (t.parsedType !== l.promise && t.common.async === !1)
|
|
4944
|
+
return u(t, {
|
|
5005
4945
|
code: c.invalid_type,
|
|
5006
|
-
expected:
|
|
4946
|
+
expected: l.promise,
|
|
5007
4947
|
received: t.parsedType
|
|
5008
|
-
}),
|
|
5009
|
-
const n = t.parsedType ===
|
|
5010
|
-
return
|
|
4948
|
+
}), f;
|
|
4949
|
+
const n = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
|
|
4950
|
+
return C(n.then((i) => this._def.type.parseAsync(i, {
|
|
5011
4951
|
path: t.path,
|
|
5012
4952
|
errorMap: t.common.contextualErrorMap
|
|
5013
4953
|
})));
|
|
@@ -5016,9 +4956,9 @@ class W extends y {
|
|
|
5016
4956
|
W.create = (a, e) => new W({
|
|
5017
4957
|
type: a,
|
|
5018
4958
|
typeName: h.ZodPromise,
|
|
5019
|
-
...
|
|
4959
|
+
..._(e)
|
|
5020
4960
|
});
|
|
5021
|
-
class
|
|
4961
|
+
class I extends v {
|
|
5022
4962
|
innerType() {
|
|
5023
4963
|
return this._def.schema;
|
|
5024
4964
|
}
|
|
@@ -5028,7 +4968,7 @@ class N extends y {
|
|
|
5028
4968
|
_parse(e) {
|
|
5029
4969
|
const { status: t, ctx: n } = this._processInputParams(e), i = this._def.effect || null, r = {
|
|
5030
4970
|
addIssue: (s) => {
|
|
5031
|
-
|
|
4971
|
+
u(n, s), s.fatal ? t.abort() : t.dirty();
|
|
5032
4972
|
},
|
|
5033
4973
|
get path() {
|
|
5034
4974
|
return n.path;
|
|
@@ -5064,9 +5004,9 @@ class N extends y {
|
|
|
5064
5004
|
path: n.path,
|
|
5065
5005
|
parent: n
|
|
5066
5006
|
});
|
|
5067
|
-
return o.status === "aborted" ?
|
|
5007
|
+
return o.status === "aborted" ? f : (o.status === "dirty" && t.dirty(), s(o.value), { status: t.value, value: o.value });
|
|
5068
5008
|
} else
|
|
5069
|
-
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ?
|
|
5009
|
+
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? f : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
|
|
5070
5010
|
}
|
|
5071
5011
|
if (i.type === "transform")
|
|
5072
5012
|
if (n.common.async === !1) {
|
|
@@ -5086,21 +5026,21 @@ class N extends y {
|
|
|
5086
5026
|
b.assertNever(i);
|
|
5087
5027
|
}
|
|
5088
5028
|
}
|
|
5089
|
-
|
|
5029
|
+
I.create = (a, e, t) => new I({
|
|
5090
5030
|
schema: a,
|
|
5091
5031
|
typeName: h.ZodEffects,
|
|
5092
5032
|
effect: e,
|
|
5093
|
-
...
|
|
5033
|
+
..._(t)
|
|
5094
5034
|
});
|
|
5095
|
-
|
|
5035
|
+
I.createWithPreprocess = (a, e, t) => new I({
|
|
5096
5036
|
schema: e,
|
|
5097
5037
|
effect: { type: "preprocess", transform: a },
|
|
5098
5038
|
typeName: h.ZodEffects,
|
|
5099
|
-
...
|
|
5039
|
+
..._(t)
|
|
5100
5040
|
});
|
|
5101
|
-
class P extends
|
|
5041
|
+
class P extends v {
|
|
5102
5042
|
_parse(e) {
|
|
5103
|
-
return this._getType(e) ===
|
|
5043
|
+
return this._getType(e) === l.undefined ? C(void 0) : this._def.innerType._parse(e);
|
|
5104
5044
|
}
|
|
5105
5045
|
unwrap() {
|
|
5106
5046
|
return this._def.innerType;
|
|
@@ -5109,11 +5049,11 @@ class P extends y {
|
|
|
5109
5049
|
P.create = (a, e) => new P({
|
|
5110
5050
|
innerType: a,
|
|
5111
5051
|
typeName: h.ZodOptional,
|
|
5112
|
-
...
|
|
5052
|
+
..._(e)
|
|
5113
5053
|
});
|
|
5114
|
-
class q extends
|
|
5054
|
+
class q extends v {
|
|
5115
5055
|
_parse(e) {
|
|
5116
|
-
return this._getType(e) ===
|
|
5056
|
+
return this._getType(e) === l.null ? C(null) : this._def.innerType._parse(e);
|
|
5117
5057
|
}
|
|
5118
5058
|
unwrap() {
|
|
5119
5059
|
return this._def.innerType;
|
|
@@ -5122,13 +5062,13 @@ class q extends y {
|
|
|
5122
5062
|
q.create = (a, e) => new q({
|
|
5123
5063
|
innerType: a,
|
|
5124
5064
|
typeName: h.ZodNullable,
|
|
5125
|
-
...
|
|
5065
|
+
..._(e)
|
|
5126
5066
|
});
|
|
5127
|
-
class re extends
|
|
5067
|
+
class re extends v {
|
|
5128
5068
|
_parse(e) {
|
|
5129
5069
|
const { ctx: t } = this._processInputParams(e);
|
|
5130
5070
|
let n = t.data;
|
|
5131
|
-
return t.parsedType ===
|
|
5071
|
+
return t.parsedType === l.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
|
|
5132
5072
|
data: n,
|
|
5133
5073
|
path: t.path,
|
|
5134
5074
|
parent: t
|
|
@@ -5142,9 +5082,9 @@ re.create = (a, e) => new re({
|
|
|
5142
5082
|
innerType: a,
|
|
5143
5083
|
typeName: h.ZodDefault,
|
|
5144
5084
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
5145
|
-
...
|
|
5085
|
+
..._(e)
|
|
5146
5086
|
});
|
|
5147
|
-
class he extends
|
|
5087
|
+
class he extends v {
|
|
5148
5088
|
_parse(e) {
|
|
5149
5089
|
const { ctx: t } = this._processInputParams(e), n = {
|
|
5150
5090
|
...t,
|
|
@@ -5159,7 +5099,7 @@ class he extends y {
|
|
|
5159
5099
|
...n
|
|
5160
5100
|
}
|
|
5161
5101
|
});
|
|
5162
|
-
return
|
|
5102
|
+
return le(i) ? i.then((r) => ({
|
|
5163
5103
|
status: "valid",
|
|
5164
5104
|
value: r.status === "valid" ? r.value : this._def.catchValue({
|
|
5165
5105
|
get error() {
|
|
@@ -5185,27 +5125,27 @@ he.create = (a, e) => new he({
|
|
|
5185
5125
|
innerType: a,
|
|
5186
5126
|
typeName: h.ZodCatch,
|
|
5187
5127
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
5188
|
-
...
|
|
5128
|
+
..._(e)
|
|
5189
5129
|
});
|
|
5190
|
-
class
|
|
5130
|
+
class fe extends v {
|
|
5191
5131
|
_parse(e) {
|
|
5192
|
-
if (this._getType(e) !==
|
|
5132
|
+
if (this._getType(e) !== l.nan) {
|
|
5193
5133
|
const n = this._getOrReturnCtx(e);
|
|
5194
|
-
return
|
|
5134
|
+
return u(n, {
|
|
5195
5135
|
code: c.invalid_type,
|
|
5196
|
-
expected:
|
|
5136
|
+
expected: l.nan,
|
|
5197
5137
|
received: n.parsedType
|
|
5198
|
-
}),
|
|
5138
|
+
}), f;
|
|
5199
5139
|
}
|
|
5200
5140
|
return { status: "valid", value: e.data };
|
|
5201
5141
|
}
|
|
5202
5142
|
}
|
|
5203
|
-
|
|
5143
|
+
fe.create = (a) => new fe({
|
|
5204
5144
|
typeName: h.ZodNaN,
|
|
5205
|
-
...
|
|
5145
|
+
..._(a)
|
|
5206
5146
|
});
|
|
5207
|
-
const
|
|
5208
|
-
class Ee extends
|
|
5147
|
+
const it = Symbol("zod_brand");
|
|
5148
|
+
class Ee extends v {
|
|
5209
5149
|
_parse(e) {
|
|
5210
5150
|
const { ctx: t } = this._processInputParams(e), n = t.data;
|
|
5211
5151
|
return this._def.type._parse({
|
|
@@ -5218,7 +5158,7 @@ class Ee extends y {
|
|
|
5218
5158
|
return this._def.type;
|
|
5219
5159
|
}
|
|
5220
5160
|
}
|
|
5221
|
-
class se extends
|
|
5161
|
+
class se extends v {
|
|
5222
5162
|
_parse(e) {
|
|
5223
5163
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
5224
5164
|
if (n.common.async)
|
|
@@ -5228,7 +5168,7 @@ class se extends y {
|
|
|
5228
5168
|
path: n.path,
|
|
5229
5169
|
parent: n
|
|
5230
5170
|
});
|
|
5231
|
-
return r.status === "aborted" ?
|
|
5171
|
+
return r.status === "aborted" ? f : r.status === "dirty" ? (t.dirty(), Se(r.value)) : this._def.out._parseAsync({
|
|
5232
5172
|
data: r.value,
|
|
5233
5173
|
path: n.path,
|
|
5234
5174
|
parent: n
|
|
@@ -5240,7 +5180,7 @@ class se extends y {
|
|
|
5240
5180
|
path: n.path,
|
|
5241
5181
|
parent: n
|
|
5242
5182
|
});
|
|
5243
|
-
return i.status === "aborted" ?
|
|
5183
|
+
return i.status === "aborted" ? f : i.status === "dirty" ? (t.dirty(), {
|
|
5244
5184
|
status: "dirty",
|
|
5245
5185
|
value: i.value
|
|
5246
5186
|
}) : this._def.out._parseSync({
|
|
@@ -5258,158 +5198,158 @@ class se extends y {
|
|
|
5258
5198
|
});
|
|
5259
5199
|
}
|
|
5260
5200
|
}
|
|
5261
|
-
class
|
|
5201
|
+
class ge extends v {
|
|
5262
5202
|
_parse(e) {
|
|
5263
5203
|
const t = this._def.innerType._parse(e);
|
|
5264
5204
|
return H(t) && (t.value = Object.freeze(t.value)), t;
|
|
5265
5205
|
}
|
|
5266
5206
|
}
|
|
5267
|
-
|
|
5207
|
+
ge.create = (a, e) => new ge({
|
|
5268
5208
|
innerType: a,
|
|
5269
5209
|
typeName: h.ZodReadonly,
|
|
5270
|
-
...
|
|
5210
|
+
..._(e)
|
|
5271
5211
|
});
|
|
5272
|
-
const
|
|
5212
|
+
const Oe = (a, e = {}, t) => a ? Y.create().superRefine((n, i) => {
|
|
5273
5213
|
var r, s;
|
|
5274
5214
|
if (!a(n)) {
|
|
5275
5215
|
const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, m = (s = (r = o.fatal) !== null && r !== void 0 ? r : t) !== null && s !== void 0 ? s : !0, d = typeof o == "string" ? { message: o } : o;
|
|
5276
5216
|
i.addIssue({ code: "custom", ...d, fatal: m });
|
|
5277
5217
|
}
|
|
5278
|
-
}) : Y.create(),
|
|
5279
|
-
object:
|
|
5218
|
+
}) : Y.create(), rt = {
|
|
5219
|
+
object: w.lazycreate
|
|
5280
5220
|
};
|
|
5281
5221
|
var h;
|
|
5282
5222
|
(function(a) {
|
|
5283
5223
|
a.ZodString = "ZodString", a.ZodNumber = "ZodNumber", a.ZodNaN = "ZodNaN", a.ZodBigInt = "ZodBigInt", a.ZodBoolean = "ZodBoolean", a.ZodDate = "ZodDate", a.ZodSymbol = "ZodSymbol", a.ZodUndefined = "ZodUndefined", a.ZodNull = "ZodNull", a.ZodAny = "ZodAny", a.ZodUnknown = "ZodUnknown", a.ZodNever = "ZodNever", a.ZodVoid = "ZodVoid", a.ZodArray = "ZodArray", a.ZodObject = "ZodObject", a.ZodUnion = "ZodUnion", a.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", a.ZodIntersection = "ZodIntersection", a.ZodTuple = "ZodTuple", a.ZodRecord = "ZodRecord", a.ZodMap = "ZodMap", a.ZodSet = "ZodSet", a.ZodFunction = "ZodFunction", a.ZodLazy = "ZodLazy", a.ZodLiteral = "ZodLiteral", a.ZodEnum = "ZodEnum", a.ZodEffects = "ZodEffects", a.ZodNativeEnum = "ZodNativeEnum", a.ZodOptional = "ZodOptional", a.ZodNullable = "ZodNullable", a.ZodDefault = "ZodDefault", a.ZodCatch = "ZodCatch", a.ZodPromise = "ZodPromise", a.ZodBranded = "ZodBranded", a.ZodPipeline = "ZodPipeline", a.ZodReadonly = "ZodReadonly";
|
|
5284
5224
|
})(h || (h = {}));
|
|
5285
|
-
const
|
|
5225
|
+
const st = (a, e = {
|
|
5286
5226
|
message: `Input not instance of ${a.name}`
|
|
5287
|
-
}) =>
|
|
5288
|
-
string: (a) =>
|
|
5289
|
-
number: (a) =>
|
|
5227
|
+
}) => Oe((t) => t instanceof a, e), Ie = A.create, Ne = Z.create, ot = fe.create, ct = D.create, Me = J.create, dt = B.create, lt = ue.create, ut = X.create, mt = K.create, pt = Y.create, ht = $.create, ft = L.create, gt = me.create, _t = O.create, vt = w.create, yt = w.strictCreate, bt = Q.create, xt = _e.create, wt = ee.create, Tt = M.create, Ct = te.create, kt = pe.create, Rt = U.create, St = z.create, At = ae.create, Et = ne.create, Ot = V.create, It = ie.create, Nt = W.create, ke = I.create, Mt = P.create, Pt = q.create, Lt = I.createWithPreprocess, jt = se.create, Zt = () => Ie().optional(), Dt = () => Ne().optional(), Vt = () => Me().optional(), $t = {
|
|
5228
|
+
string: (a) => A.create({ ...a, coerce: !0 }),
|
|
5229
|
+
number: (a) => Z.create({ ...a, coerce: !0 }),
|
|
5290
5230
|
boolean: (a) => J.create({
|
|
5291
5231
|
...a,
|
|
5292
5232
|
coerce: !0
|
|
5293
5233
|
}),
|
|
5294
|
-
bigint: (a) =>
|
|
5234
|
+
bigint: (a) => D.create({ ...a, coerce: !0 }),
|
|
5295
5235
|
date: (a) => B.create({ ...a, coerce: !0 })
|
|
5296
|
-
},
|
|
5297
|
-
var
|
|
5236
|
+
}, Bt = f;
|
|
5237
|
+
var Ut = /* @__PURE__ */ Object.freeze({
|
|
5298
5238
|
__proto__: null,
|
|
5299
5239
|
defaultErrorMap: F,
|
|
5300
|
-
setErrorMap:
|
|
5240
|
+
setErrorMap: ze,
|
|
5301
5241
|
getErrorMap: ce,
|
|
5302
5242
|
makeIssue: de,
|
|
5303
|
-
EMPTY_PATH:
|
|
5304
|
-
addIssueToContext:
|
|
5305
|
-
ParseStatus:
|
|
5306
|
-
INVALID:
|
|
5307
|
-
DIRTY:
|
|
5308
|
-
OK:
|
|
5243
|
+
EMPTY_PATH: Ye,
|
|
5244
|
+
addIssueToContext: u,
|
|
5245
|
+
ParseStatus: T,
|
|
5246
|
+
INVALID: f,
|
|
5247
|
+
DIRTY: Se,
|
|
5248
|
+
OK: C,
|
|
5309
5249
|
isAborted: xe,
|
|
5310
5250
|
isDirty: we,
|
|
5311
5251
|
isValid: H,
|
|
5312
|
-
isAsync:
|
|
5252
|
+
isAsync: le,
|
|
5313
5253
|
get util() {
|
|
5314
5254
|
return b;
|
|
5315
5255
|
},
|
|
5316
5256
|
get objectUtil() {
|
|
5317
5257
|
return be;
|
|
5318
5258
|
},
|
|
5319
|
-
ZodParsedType:
|
|
5320
|
-
getParsedType:
|
|
5321
|
-
ZodType:
|
|
5322
|
-
ZodString:
|
|
5323
|
-
ZodNumber:
|
|
5324
|
-
ZodBigInt:
|
|
5259
|
+
ZodParsedType: l,
|
|
5260
|
+
getParsedType: j,
|
|
5261
|
+
ZodType: v,
|
|
5262
|
+
ZodString: A,
|
|
5263
|
+
ZodNumber: Z,
|
|
5264
|
+
ZodBigInt: D,
|
|
5325
5265
|
ZodBoolean: J,
|
|
5326
5266
|
ZodDate: B,
|
|
5327
|
-
ZodSymbol:
|
|
5267
|
+
ZodSymbol: ue,
|
|
5328
5268
|
ZodUndefined: X,
|
|
5329
5269
|
ZodNull: K,
|
|
5330
5270
|
ZodAny: Y,
|
|
5331
|
-
ZodUnknown:
|
|
5271
|
+
ZodUnknown: $,
|
|
5332
5272
|
ZodNever: L,
|
|
5333
5273
|
ZodVoid: me,
|
|
5334
|
-
ZodArray:
|
|
5335
|
-
ZodObject:
|
|
5274
|
+
ZodArray: O,
|
|
5275
|
+
ZodObject: w,
|
|
5336
5276
|
ZodUnion: Q,
|
|
5337
|
-
ZodDiscriminatedUnion:
|
|
5277
|
+
ZodDiscriminatedUnion: _e,
|
|
5338
5278
|
ZodIntersection: ee,
|
|
5339
|
-
ZodTuple:
|
|
5279
|
+
ZodTuple: M,
|
|
5340
5280
|
ZodRecord: te,
|
|
5341
5281
|
ZodMap: pe,
|
|
5342
|
-
ZodSet:
|
|
5282
|
+
ZodSet: U,
|
|
5343
5283
|
ZodFunction: z,
|
|
5344
5284
|
ZodLazy: ae,
|
|
5345
5285
|
ZodLiteral: ne,
|
|
5346
|
-
ZodEnum:
|
|
5286
|
+
ZodEnum: V,
|
|
5347
5287
|
ZodNativeEnum: ie,
|
|
5348
5288
|
ZodPromise: W,
|
|
5349
|
-
ZodEffects:
|
|
5350
|
-
ZodTransformer:
|
|
5289
|
+
ZodEffects: I,
|
|
5290
|
+
ZodTransformer: I,
|
|
5351
5291
|
ZodOptional: P,
|
|
5352
5292
|
ZodNullable: q,
|
|
5353
5293
|
ZodDefault: re,
|
|
5354
5294
|
ZodCatch: he,
|
|
5355
|
-
ZodNaN:
|
|
5356
|
-
BRAND:
|
|
5295
|
+
ZodNaN: fe,
|
|
5296
|
+
BRAND: it,
|
|
5357
5297
|
ZodBranded: Ee,
|
|
5358
5298
|
ZodPipeline: se,
|
|
5359
|
-
ZodReadonly:
|
|
5360
|
-
custom:
|
|
5361
|
-
Schema:
|
|
5362
|
-
ZodSchema:
|
|
5363
|
-
late:
|
|
5299
|
+
ZodReadonly: ge,
|
|
5300
|
+
custom: Oe,
|
|
5301
|
+
Schema: v,
|
|
5302
|
+
ZodSchema: v,
|
|
5303
|
+
late: rt,
|
|
5364
5304
|
get ZodFirstPartyTypeKind() {
|
|
5365
5305
|
return h;
|
|
5366
5306
|
},
|
|
5367
5307
|
coerce: $t,
|
|
5368
|
-
any:
|
|
5308
|
+
any: pt,
|
|
5369
5309
|
array: _t,
|
|
5370
|
-
bigint:
|
|
5371
|
-
boolean:
|
|
5372
|
-
date:
|
|
5373
|
-
discriminatedUnion:
|
|
5374
|
-
effect:
|
|
5375
|
-
enum:
|
|
5376
|
-
function:
|
|
5377
|
-
instanceof:
|
|
5378
|
-
intersection:
|
|
5379
|
-
lazy:
|
|
5380
|
-
literal:
|
|
5310
|
+
bigint: ct,
|
|
5311
|
+
boolean: Me,
|
|
5312
|
+
date: dt,
|
|
5313
|
+
discriminatedUnion: xt,
|
|
5314
|
+
effect: ke,
|
|
5315
|
+
enum: Ot,
|
|
5316
|
+
function: St,
|
|
5317
|
+
instanceof: st,
|
|
5318
|
+
intersection: wt,
|
|
5319
|
+
lazy: At,
|
|
5320
|
+
literal: Et,
|
|
5381
5321
|
map: kt,
|
|
5382
|
-
nan:
|
|
5383
|
-
nativeEnum:
|
|
5384
|
-
never:
|
|
5385
|
-
null:
|
|
5386
|
-
nullable:
|
|
5387
|
-
number:
|
|
5388
|
-
object:
|
|
5389
|
-
oboolean:
|
|
5390
|
-
onumber:
|
|
5391
|
-
optional:
|
|
5322
|
+
nan: ot,
|
|
5323
|
+
nativeEnum: It,
|
|
5324
|
+
never: ft,
|
|
5325
|
+
null: mt,
|
|
5326
|
+
nullable: Pt,
|
|
5327
|
+
number: Ne,
|
|
5328
|
+
object: vt,
|
|
5329
|
+
oboolean: Vt,
|
|
5330
|
+
onumber: Dt,
|
|
5331
|
+
optional: Mt,
|
|
5392
5332
|
ostring: Zt,
|
|
5393
|
-
pipeline:
|
|
5394
|
-
preprocess:
|
|
5395
|
-
promise:
|
|
5396
|
-
record:
|
|
5333
|
+
pipeline: jt,
|
|
5334
|
+
preprocess: Lt,
|
|
5335
|
+
promise: Nt,
|
|
5336
|
+
record: Ct,
|
|
5397
5337
|
set: Rt,
|
|
5398
|
-
strictObject:
|
|
5399
|
-
string:
|
|
5400
|
-
symbol:
|
|
5401
|
-
transformer:
|
|
5402
|
-
tuple:
|
|
5403
|
-
undefined:
|
|
5404
|
-
union:
|
|
5405
|
-
unknown:
|
|
5406
|
-
void:
|
|
5407
|
-
NEVER:
|
|
5338
|
+
strictObject: yt,
|
|
5339
|
+
string: Ie,
|
|
5340
|
+
symbol: lt,
|
|
5341
|
+
transformer: ke,
|
|
5342
|
+
tuple: Tt,
|
|
5343
|
+
undefined: ut,
|
|
5344
|
+
union: bt,
|
|
5345
|
+
unknown: ht,
|
|
5346
|
+
void: gt,
|
|
5347
|
+
NEVER: Bt,
|
|
5408
5348
|
ZodIssueCode: c,
|
|
5409
|
-
quotelessJson:
|
|
5349
|
+
quotelessJson: Ge,
|
|
5410
5350
|
ZodError: E
|
|
5411
5351
|
});
|
|
5412
|
-
const
|
|
5352
|
+
const qt = [
|
|
5413
5353
|
"DASHBOARD",
|
|
5414
5354
|
"ANALYTIC",
|
|
5415
5355
|
"CAMPAIGN",
|
|
@@ -5437,28 +5377,32 @@ const zt = [
|
|
|
5437
5377
|
"STORE_REWARD_COLLECTIONS",
|
|
5438
5378
|
"TRANSACTION",
|
|
5439
5379
|
"MARKETING",
|
|
5440
|
-
"SETTING"
|
|
5441
|
-
|
|
5380
|
+
"SETTING",
|
|
5381
|
+
"REFERRAL",
|
|
5382
|
+
"REFERRAL_OVERVIEW",
|
|
5383
|
+
"REFERRAL_RECORD",
|
|
5384
|
+
"REWARD_TEMPLATE"
|
|
5385
|
+
].map((a) => `$connect-${a}`), Gt = Ut.enum(qt), g = Gt.Enum, Ft = [
|
|
5442
5386
|
{
|
|
5443
5387
|
path: "",
|
|
5444
|
-
name:
|
|
5445
|
-
redirect: { name:
|
|
5388
|
+
name: g["$connect-DASHBOARD"],
|
|
5389
|
+
redirect: { name: g["$connect-ANALYTIC"] }
|
|
5446
5390
|
},
|
|
5447
5391
|
{
|
|
5448
5392
|
path: "/analytic",
|
|
5449
5393
|
component: () => import("./MainLayout-B1aJoR95.js"),
|
|
5450
|
-
redirect: { name:
|
|
5394
|
+
redirect: { name: g["$connect-ANALYTIC"] },
|
|
5451
5395
|
children: [
|
|
5452
5396
|
{
|
|
5453
5397
|
path: "/analytic",
|
|
5454
|
-
name:
|
|
5455
|
-
component: k(
|
|
5398
|
+
name: g["$connect-ANALYTIC"],
|
|
5399
|
+
component: R(k(() => import("./Analytic-C-QC9ivZ.js"))),
|
|
5456
5400
|
meta: {
|
|
5457
5401
|
validationManifest: {
|
|
5458
5402
|
requiredCaslPermissions: [
|
|
5459
5403
|
{
|
|
5460
|
-
action:
|
|
5461
|
-
subject:
|
|
5404
|
+
action: x.Action.manage,
|
|
5405
|
+
subject: x.Subject.Business.membership
|
|
5462
5406
|
}
|
|
5463
5407
|
]
|
|
5464
5408
|
}
|
|
@@ -5468,20 +5412,20 @@ const zt = [
|
|
|
5468
5412
|
},
|
|
5469
5413
|
{
|
|
5470
5414
|
path: "/campaign",
|
|
5471
|
-
name:
|
|
5472
|
-
redirect:
|
|
5415
|
+
name: g["$connect-CAMPAIGN"],
|
|
5416
|
+
redirect: g["$connect-CAMPAIGN_PROMOTION"],
|
|
5473
5417
|
component: () => import("./MainLayout-B1aJoR95.js"),
|
|
5474
5418
|
children: [
|
|
5475
5419
|
{
|
|
5476
5420
|
path: "/campaign/promotion",
|
|
5477
|
-
name:
|
|
5478
|
-
component: k(
|
|
5421
|
+
name: g["$connect-CAMPAIGN_PROMOTION"],
|
|
5422
|
+
component: R(k(() => import("./Promotion-COCJIfu-.js"))),
|
|
5479
5423
|
meta: {
|
|
5480
5424
|
validationManifest: {
|
|
5481
5425
|
requiredCaslPermissions: [
|
|
5482
5426
|
{
|
|
5483
|
-
action:
|
|
5484
|
-
subject:
|
|
5427
|
+
action: x.Action.manage,
|
|
5428
|
+
subject: x.Subject.Business.promotion
|
|
5485
5429
|
}
|
|
5486
5430
|
]
|
|
5487
5431
|
}
|
|
@@ -5489,18 +5433,18 @@ const zt = [
|
|
|
5489
5433
|
},
|
|
5490
5434
|
{
|
|
5491
5435
|
path: "/campaign/voucher",
|
|
5492
|
-
redirect: { name:
|
|
5436
|
+
redirect: { name: g["$connect-CAMPAIGN_VOUCHER"] },
|
|
5493
5437
|
children: [
|
|
5494
5438
|
{
|
|
5495
5439
|
path: "/campaign/voucher",
|
|
5496
|
-
name:
|
|
5497
|
-
component: k(
|
|
5440
|
+
name: g["$connect-CAMPAIGN_VOUCHER"],
|
|
5441
|
+
component: R(k(() => import("./Voucher-CjPJxdw8.js"))),
|
|
5498
5442
|
meta: {
|
|
5499
5443
|
validationManifest: {
|
|
5500
5444
|
requiredCaslPermissions: [
|
|
5501
5445
|
{
|
|
5502
|
-
action:
|
|
5503
|
-
subject:
|
|
5446
|
+
action: x.Action.manage,
|
|
5447
|
+
subject: x.Subject.Business.voucher
|
|
5504
5448
|
}
|
|
5505
5449
|
]
|
|
5506
5450
|
}
|
|
@@ -5508,14 +5452,14 @@ const zt = [
|
|
|
5508
5452
|
},
|
|
5509
5453
|
{
|
|
5510
5454
|
path: "/campaign/voucher/:id/collections",
|
|
5511
|
-
name:
|
|
5512
|
-
component: k(
|
|
5455
|
+
name: g["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
5456
|
+
component: R(k(() => import("./Collections-CibvGIpU.js"))),
|
|
5513
5457
|
meta: {
|
|
5514
5458
|
validationManifest: {
|
|
5515
5459
|
requiredCaslPermissions: [
|
|
5516
5460
|
{
|
|
5517
|
-
action:
|
|
5518
|
-
subject:
|
|
5461
|
+
action: x.Action.manage,
|
|
5462
|
+
subject: x.Subject.Business.voucher
|
|
5519
5463
|
}
|
|
5520
5464
|
]
|
|
5521
5465
|
}
|
|
@@ -5525,14 +5469,14 @@ const zt = [
|
|
|
5525
5469
|
},
|
|
5526
5470
|
{
|
|
5527
5471
|
path: "/campaign/broadcast",
|
|
5528
|
-
name:
|
|
5529
|
-
component: k(
|
|
5472
|
+
name: g["$connect-CAMPAIGN_BROADCAST"],
|
|
5473
|
+
component: R(k(() => import("./Broadcast-Cffg7nbY.js"))),
|
|
5530
5474
|
meta: {
|
|
5531
5475
|
validationManifest: {
|
|
5532
5476
|
requiredCaslPermissions: [
|
|
5533
5477
|
{
|
|
5534
|
-
action:
|
|
5535
|
-
subject:
|
|
5478
|
+
action: x.Action.manage,
|
|
5479
|
+
subject: x.Subject.Business.membership
|
|
5536
5480
|
}
|
|
5537
5481
|
]
|
|
5538
5482
|
}
|
|
@@ -5543,119 +5487,156 @@ const zt = [
|
|
|
5543
5487
|
{
|
|
5544
5488
|
path: "/program",
|
|
5545
5489
|
// component: () => import('@/layouts/MainLayout.vue'),
|
|
5546
|
-
component: k(
|
|
5490
|
+
component: R(k(() => import("./MainLayout-B1aJoR95.js"))),
|
|
5547
5491
|
meta: {
|
|
5548
5492
|
validationManifest: {
|
|
5549
5493
|
requiredCaslPermissions: [
|
|
5550
5494
|
{
|
|
5551
|
-
action:
|
|
5552
|
-
subject:
|
|
5495
|
+
action: x.Action.manage,
|
|
5496
|
+
subject: x.Subject.Business.membership
|
|
5553
5497
|
}
|
|
5554
5498
|
]
|
|
5555
5499
|
}
|
|
5556
5500
|
},
|
|
5557
|
-
name:
|
|
5558
|
-
redirect:
|
|
5501
|
+
name: g["$connect-PROGRAM"],
|
|
5502
|
+
redirect: g["$connect-PROGRAM_TIER"],
|
|
5559
5503
|
children: [
|
|
5560
5504
|
{
|
|
5561
5505
|
path: "/program/tier",
|
|
5562
|
-
name:
|
|
5563
|
-
component: () => import("./Tier-
|
|
5506
|
+
name: g["$connect-PROGRAM_TIER"],
|
|
5507
|
+
component: () => import("./Tier-DekrYu5l.js")
|
|
5564
5508
|
},
|
|
5565
5509
|
{
|
|
5566
5510
|
path: "/program/title",
|
|
5567
|
-
name:
|
|
5568
|
-
component: () => import("./Title-
|
|
5511
|
+
name: g["$connect-PROGRAM_TITLE"],
|
|
5512
|
+
component: () => import("./Title-oAWsBqoM.js")
|
|
5569
5513
|
},
|
|
5570
5514
|
{
|
|
5571
5515
|
path: "/program/experience",
|
|
5572
|
-
name:
|
|
5573
|
-
component: () => import("./Experience-
|
|
5516
|
+
name: g["$connect-PROGRAM_EXPERIENCE"],
|
|
5517
|
+
component: () => import("./Experience-CWUX2QvS.js")
|
|
5574
5518
|
},
|
|
5575
5519
|
{
|
|
5576
5520
|
path: "/program/point",
|
|
5577
|
-
name:
|
|
5578
|
-
component: () => import("./Point-
|
|
5521
|
+
name: g["$connect-PROGRAM_POINT"],
|
|
5522
|
+
component: () => import("./Point-D3gGhQlP.js")
|
|
5579
5523
|
},
|
|
5580
5524
|
{
|
|
5581
5525
|
path: "/program/credit",
|
|
5582
|
-
name:
|
|
5583
|
-
component: () => import("./Credit-
|
|
5526
|
+
name: g["$connect-PROGRAM_CREDIT"],
|
|
5527
|
+
component: () => import("./Credit-Ck6i9ySs.js")
|
|
5584
5528
|
},
|
|
5585
5529
|
{
|
|
5586
5530
|
path: "/program/game",
|
|
5587
|
-
name:
|
|
5588
|
-
component: () => import("./Game-
|
|
5531
|
+
name: g["$connect-PROGRAM_GAME"],
|
|
5532
|
+
component: () => import("./Game-D3cdZrlc.js")
|
|
5589
5533
|
},
|
|
5590
5534
|
{
|
|
5591
5535
|
path: "/program/mission",
|
|
5592
|
-
name:
|
|
5593
|
-
component: () => import("./Mission-
|
|
5536
|
+
name: g["$connect-PROGRAM_MISSION"],
|
|
5537
|
+
component: () => import("./Mission-C0-K0A_5.js")
|
|
5594
5538
|
}
|
|
5595
5539
|
]
|
|
5596
5540
|
},
|
|
5597
5541
|
{
|
|
5598
5542
|
path: "/loyalty",
|
|
5599
|
-
component: k(
|
|
5543
|
+
component: R(k(() => import("./MainLayout-B1aJoR95.js"))),
|
|
5600
5544
|
meta: {
|
|
5601
5545
|
validationManifest: {
|
|
5602
5546
|
requiredCaslPermissions: [
|
|
5603
5547
|
{
|
|
5604
|
-
action:
|
|
5605
|
-
subject:
|
|
5548
|
+
action: x.Action.manage,
|
|
5549
|
+
subject: x.Subject.Business.membership
|
|
5606
5550
|
}
|
|
5607
5551
|
]
|
|
5608
5552
|
}
|
|
5609
5553
|
},
|
|
5610
|
-
name:
|
|
5611
|
-
redirect:
|
|
5554
|
+
name: g["$connect-LOYALTY"],
|
|
5555
|
+
redirect: g["$connect-LOYALTY_MEMBER"],
|
|
5612
5556
|
children: [
|
|
5613
5557
|
{
|
|
5614
5558
|
path: "/loyalty/member",
|
|
5615
|
-
name:
|
|
5616
|
-
component: () => import("./Member-
|
|
5559
|
+
name: g["$connect-LOYALTY_MEMBER"],
|
|
5560
|
+
component: () => import("./Member-Cso-T2Xk.js"),
|
|
5617
5561
|
redirect: {
|
|
5618
|
-
name:
|
|
5562
|
+
name: g["$connect-LOYALTY_MEMBER_OVERVIEW"]
|
|
5619
5563
|
},
|
|
5620
5564
|
children: [
|
|
5621
5565
|
{
|
|
5622
5566
|
path: "/loyalty/member",
|
|
5623
|
-
name:
|
|
5567
|
+
name: g["$connect-LOYALTY_MEMBER_OVERVIEW"],
|
|
5624
5568
|
component: () => import("./MemberOverview-wL_ailso.js")
|
|
5625
5569
|
},
|
|
5626
5570
|
{
|
|
5627
5571
|
path: "/loyalty/member/list",
|
|
5628
|
-
name:
|
|
5629
|
-
component: () => import("./MemberList-
|
|
5572
|
+
name: g["$connect-LOYALTY_MEMBER_LIST"],
|
|
5573
|
+
component: () => import("./MemberList-Bqns9wko.js")
|
|
5630
5574
|
},
|
|
5631
5575
|
{
|
|
5632
5576
|
path: "/loyalty/member/transactions/:id",
|
|
5633
|
-
name:
|
|
5634
|
-
component: () => import("./MemberTransactions-
|
|
5577
|
+
name: g["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
|
|
5578
|
+
component: () => import("./MemberTransactions-zNw-30Xu.js")
|
|
5635
5579
|
}
|
|
5636
5580
|
]
|
|
5637
5581
|
},
|
|
5638
5582
|
{
|
|
5639
5583
|
path: "/loyalty/segment",
|
|
5640
|
-
name:
|
|
5641
|
-
component: () => import("./Segment-
|
|
5584
|
+
name: g["$connect-LOYALTY_SEGMENT"],
|
|
5585
|
+
component: () => import("./Segment-eBM3aveX.js")
|
|
5642
5586
|
},
|
|
5643
5587
|
{
|
|
5644
5588
|
path: "/loyalty/card",
|
|
5645
|
-
name:
|
|
5646
|
-
component: () => import("./Card-
|
|
5589
|
+
name: g["$connect-LOYALTY_CARD"],
|
|
5590
|
+
component: () => import("./Card-CmYFb1_Y.js")
|
|
5591
|
+
}
|
|
5592
|
+
]
|
|
5593
|
+
},
|
|
5594
|
+
{
|
|
5595
|
+
path: "/referral",
|
|
5596
|
+
redirect: { name: g["$connect-REFERRAL"] },
|
|
5597
|
+
component: R(k(() => import("./MainLayout-B1aJoR95.js"))),
|
|
5598
|
+
meta: {
|
|
5599
|
+
validationManifest: {
|
|
5600
|
+
requiredCaslPermissions: [
|
|
5601
|
+
{
|
|
5602
|
+
action: x.Action.manage,
|
|
5603
|
+
subject: x.Subject.Business.membership
|
|
5604
|
+
}
|
|
5605
|
+
]
|
|
5606
|
+
}
|
|
5607
|
+
},
|
|
5608
|
+
children: [
|
|
5609
|
+
{
|
|
5610
|
+
path: "/referral",
|
|
5611
|
+
name: g["$connect-REFERRAL"],
|
|
5612
|
+
component: () => import("./Index-CWLZiYXT.js"),
|
|
5613
|
+
redirect: {
|
|
5614
|
+
name: g["$connect-REFERRAL_OVERVIEW"]
|
|
5615
|
+
},
|
|
5616
|
+
children: [
|
|
5617
|
+
{
|
|
5618
|
+
path: "/referral",
|
|
5619
|
+
name: g["$connect-REFERRAL_OVERVIEW"],
|
|
5620
|
+
component: () => import("./Overview-fZ9NvFKz.js")
|
|
5621
|
+
},
|
|
5622
|
+
{
|
|
5623
|
+
path: "/referral/record",
|
|
5624
|
+
name: g["$connect-REFERRAL_RECORD"],
|
|
5625
|
+
component: () => import("./Record-C0a4Cn1U.js")
|
|
5626
|
+
}
|
|
5627
|
+
]
|
|
5647
5628
|
}
|
|
5648
5629
|
]
|
|
5649
5630
|
},
|
|
5650
5631
|
{
|
|
5651
5632
|
path: "/store",
|
|
5652
|
-
component: k(
|
|
5633
|
+
component: R(k(() => import("./MainLayout-B1aJoR95.js"))),
|
|
5653
5634
|
meta: {
|
|
5654
5635
|
validationManifest: {
|
|
5655
5636
|
requiredCaslPermissions: [
|
|
5656
5637
|
{
|
|
5657
|
-
action:
|
|
5658
|
-
subject:
|
|
5638
|
+
action: x.Action.manage,
|
|
5639
|
+
subject: x.Subject.Business.membership
|
|
5659
5640
|
}
|
|
5660
5641
|
]
|
|
5661
5642
|
}
|
|
@@ -5663,22 +5644,22 @@ const zt = [
|
|
|
5663
5644
|
children: [
|
|
5664
5645
|
{
|
|
5665
5646
|
path: "/store",
|
|
5666
|
-
name:
|
|
5667
|
-
component: () => import("./Store-
|
|
5647
|
+
name: g["$connect-STORE"],
|
|
5648
|
+
component: () => import("./Store-rQfwc8d6.js")
|
|
5668
5649
|
},
|
|
5669
5650
|
{
|
|
5670
5651
|
path: "/store/rewards",
|
|
5671
|
-
redirect: { name:
|
|
5652
|
+
redirect: { name: g["$connect-STORE_REWARDS"] },
|
|
5672
5653
|
children: [
|
|
5673
5654
|
{
|
|
5674
5655
|
path: "/store/rewards",
|
|
5675
|
-
name:
|
|
5676
|
-
component: () => import("./StoreRewards-
|
|
5656
|
+
name: g["$connect-STORE_REWARDS"],
|
|
5657
|
+
component: () => import("./StoreRewards-DVTNMWdG.js")
|
|
5677
5658
|
},
|
|
5678
5659
|
{
|
|
5679
5660
|
path: "/store/rewards/:id/collections",
|
|
5680
|
-
name:
|
|
5681
|
-
component: () => import("./Collections-
|
|
5661
|
+
name: g["$connect-STORE_REWARD_COLLECTIONS"],
|
|
5662
|
+
component: () => import("./Collections-CibvGIpU.js")
|
|
5682
5663
|
}
|
|
5683
5664
|
]
|
|
5684
5665
|
}
|
|
@@ -5686,13 +5667,13 @@ const zt = [
|
|
|
5686
5667
|
},
|
|
5687
5668
|
{
|
|
5688
5669
|
path: "/transaction",
|
|
5689
|
-
component: k(
|
|
5670
|
+
component: R(k(() => import("./MainLayout-B1aJoR95.js"))),
|
|
5690
5671
|
meta: {
|
|
5691
5672
|
validationManifest: {
|
|
5692
5673
|
requiredCaslPermissions: [
|
|
5693
5674
|
{
|
|
5694
|
-
action:
|
|
5695
|
-
subject:
|
|
5675
|
+
action: x.Action.manage,
|
|
5676
|
+
subject: x.Subject.Business.membership
|
|
5696
5677
|
}
|
|
5697
5678
|
]
|
|
5698
5679
|
}
|
|
@@ -5700,20 +5681,20 @@ const zt = [
|
|
|
5700
5681
|
children: [
|
|
5701
5682
|
{
|
|
5702
5683
|
path: "/transaction",
|
|
5703
|
-
name:
|
|
5704
|
-
component: () => import("./Transaction-
|
|
5684
|
+
name: g["$connect-TRANSACTION"],
|
|
5685
|
+
component: () => import("./Transaction-Ss2XCksi.js")
|
|
5705
5686
|
}
|
|
5706
5687
|
]
|
|
5707
5688
|
},
|
|
5708
5689
|
{
|
|
5709
5690
|
path: "/marketing",
|
|
5710
|
-
component: k(
|
|
5691
|
+
component: R(k(() => import("./MainLayout-B1aJoR95.js"))),
|
|
5711
5692
|
meta: {
|
|
5712
5693
|
validationManifest: {
|
|
5713
5694
|
requiredCaslPermissions: [
|
|
5714
5695
|
{
|
|
5715
|
-
action:
|
|
5716
|
-
subject:
|
|
5696
|
+
action: x.Action.manage,
|
|
5697
|
+
subject: x.Subject.Business.membership
|
|
5717
5698
|
}
|
|
5718
5699
|
]
|
|
5719
5700
|
}
|
|
@@ -5721,20 +5702,41 @@ const zt = [
|
|
|
5721
5702
|
children: [
|
|
5722
5703
|
{
|
|
5723
5704
|
path: "/marketing",
|
|
5724
|
-
name:
|
|
5725
|
-
component: () => import("./Marketing-
|
|
5705
|
+
name: g["$connect-MARKETING"],
|
|
5706
|
+
component: () => import("./Marketing-Bol8eY5d.js")
|
|
5707
|
+
}
|
|
5708
|
+
]
|
|
5709
|
+
},
|
|
5710
|
+
{
|
|
5711
|
+
path: "/reward",
|
|
5712
|
+
component: R(k(() => import("./MainLayout-B1aJoR95.js"))),
|
|
5713
|
+
meta: {
|
|
5714
|
+
validationManifest: {
|
|
5715
|
+
requiredCaslPermissions: [
|
|
5716
|
+
{
|
|
5717
|
+
action: x.Action.manage,
|
|
5718
|
+
subject: x.Subject.Business.membership
|
|
5719
|
+
}
|
|
5720
|
+
]
|
|
5721
|
+
}
|
|
5722
|
+
},
|
|
5723
|
+
children: [
|
|
5724
|
+
{
|
|
5725
|
+
path: "/reward",
|
|
5726
|
+
name: g["$connect-REWARD_TEMPLATE"],
|
|
5727
|
+
component: () => import("./Reward-D0G4CBYd.js")
|
|
5726
5728
|
}
|
|
5727
5729
|
]
|
|
5728
5730
|
},
|
|
5729
5731
|
{
|
|
5730
5732
|
path: "/setting",
|
|
5731
|
-
component: k(
|
|
5733
|
+
component: R(k(() => import("./MainLayout-B1aJoR95.js"))),
|
|
5732
5734
|
meta: {
|
|
5733
5735
|
validationManifest: {
|
|
5734
5736
|
requiredCaslPermissions: [
|
|
5735
5737
|
{
|
|
5736
|
-
action:
|
|
5737
|
-
subject:
|
|
5738
|
+
action: x.Action.manage,
|
|
5739
|
+
subject: x.Subject.Business.membership
|
|
5738
5740
|
}
|
|
5739
5741
|
]
|
|
5740
5742
|
}
|
|
@@ -5742,23 +5744,23 @@ const zt = [
|
|
|
5742
5744
|
children: [
|
|
5743
5745
|
{
|
|
5744
5746
|
path: "/setting",
|
|
5745
|
-
name:
|
|
5746
|
-
component: () => import("./Setting-
|
|
5747
|
+
name: g["$connect-SETTING"],
|
|
5748
|
+
component: () => import("./Setting-Dfye6fs5.js")
|
|
5747
5749
|
}
|
|
5748
5750
|
]
|
|
5749
5751
|
}
|
|
5750
|
-
],
|
|
5751
|
-
"en-US":
|
|
5752
|
+
], Ht = {
|
|
5753
|
+
"en-US": Ze,
|
|
5752
5754
|
"zh-CN": Be,
|
|
5753
|
-
"th-TH":
|
|
5754
|
-
},
|
|
5755
|
+
"th-TH": qe
|
|
5756
|
+
}, Jt = k(() => import("./App-NASVRSh2.js"));
|
|
5755
5757
|
export {
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
+
Jt as F,
|
|
5759
|
+
g as R,
|
|
5758
5760
|
c as Z,
|
|
5759
|
-
|
|
5761
|
+
l as a,
|
|
5760
5762
|
F as e,
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5763
|
+
Ht as i,
|
|
5764
|
+
Ft as r,
|
|
5765
|
+
Ut as z
|
|
5764
5766
|
};
|