@feedmepos/mf-connect 0.1.0-beta.2 → 0.1.0-beta.21

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