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