@feedmepos/mf-connect 0.1.0-beta.3 → 0.1.0-beta.31

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