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