@feedmepos/mf-connect 0.1.0-beta.51 → 0.1.0-beta.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Analytic-DP8oPOug.js → Analytic-Ds0tta-W.js} +11 -11
- package/dist/{App-DSFvQRnz.js → App-y5wxjtku.js} +6 -6
- package/dist/{AuditLogs-YSw2xsZw.js → AuditLogs-jVbVVyAb.js} +8 -8
- package/dist/{Bin-Da_eermT.js → Bin-EiD9mNYl.js} +8 -8
- package/dist/{Broadcast-DoNlWo4j.js → Broadcast-BzfYPJwA.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DItda2cA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-S9FXEGMY.js} +6 -6
- package/dist/{Card-CbxtYecE.js → Card-CKqRyNuC.js} +15 -15
- package/dist/{Collections-p1UhWf85.js → Collections-BmKNa3Fe.js} +5 -5
- package/dist/{Credit-DQta1iUA.js → Credit-BYde55tV.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CEWFRlr3.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-B5A8_SKV.js} +29 -29
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BN5MFZTx.js → EffectSheet.vue_vue_type_style_index_0_lang-CZh54sxJ.js} +6 -6
- package/dist/{Experience-BnwKk_PO.js → Experience-BDHVOAzP.js} +9 -9
- package/dist/{Game-_4Hj3Yyt.js → Game-D5YOyYL6.js} +9 -9
- package/dist/{Index-Bmz1R6hW.js → Index-Dt40DwP9.js} +10 -10
- package/dist/{Marketing-D0V260mx.js → Marketing-Bf-zFz9z.js} +6 -6
- package/dist/{Member-BIEihOp5.js → Member-CSfZ3bjG.js} +4 -4
- package/dist/{MemberList-C4EbD7jO.js → MemberList-B6uUNxLF.js} +24 -24
- package/dist/{MemberTransactions-DvYurEaZ.js → MemberTransactions-Lff73C-p.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-vGMke4sb.js → MessageInput.vue_vue_type_script_setup_true_lang-D1H9cg1C.js} +2 -2
- package/dist/{Mission-C6gKiY9l.js → Mission-BfFOjuIA.js} +9 -9
- package/dist/{Overview-xqu1_7-7.js → Overview-CWH9Bj4k.js} +17 -17
- package/dist/{Point-C02Z0_w5.js → Point-DkIIKUTy.js} +9 -9
- package/dist/{Promotion-BBfa32MT.js → Promotion-Bs83Qcgf.js} +10 -10
- package/dist/{Record-Bcj2D0fP.js → Record-CIrRLS-G.js} +7 -7
- package/dist/{Reward-BMvRwWnr.js → Reward-gt3nOqPY.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-gt0h6XDa.js → RewardGroup.vue_vue_type_script_setup_true_lang-CUeeE-Hy.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CPw-z0L1.js → RuleGroup.vue_vue_type_script_setup_true_lang-DjlxIxPV.js} +12 -12
- package/dist/{Segment-BpkWm7ah.js → Segment-BatkkJMx.js} +14 -14
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-_t32qpAQ.js → SelectItems.vue_vue_type_script_setup_true_lang-P-OHdI1b.js} +2 -2
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CWNF7Srw.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Dmw3Ua4W.js} +3 -3
- package/dist/{Setting-QEqA9Sjr.js → Setting-BquuIuO-.js} +10 -10
- package/dist/{Store-Bb5Qh_fa.js → Store-xPSiWyzc.js} +18 -18
- package/dist/{StoreRewards-CqmFv4KN.js → StoreRewards-BGOp7fFU.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-SGMgGM-I.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Dip5TvVQ.js} +17 -17
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Bd63YQLw.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-9fr_ghEe.js} +1 -1
- package/dist/{Tier-BG4EQUN4.js → Tier-Cy0nb7nm.js} +19 -19
- package/dist/{Title-CLZYAG35.js → Title-e7o6NB4D.js} +19 -19
- package/dist/{Transaction-DxKmtuW2.js → Transaction-CAlhdf7s.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DWqf1lcK.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-5I5c2bse.js} +6 -6
- package/dist/{Voucher-BiBkN12U.js → Voucher-CNkVPW0p.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bv6ro9Ul.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CLrpO1vV.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DaN1_uKj.js → ZodTextField.vue_vue_type_script_setup_true_lang-DTGfUQOt.js} +1 -1
- package/dist/{app-BToiZpVg.js → app-B9kwYRaf.js} +1880 -876
- package/dist/{app-BDYHz7bx.js → app-CwjQW2av.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-Cdck2Mo8.js → business-DpWZTdB5.js} +1 -1
- package/dist/{campaign-V6y28epS.js → campaign-BfoaaEQD.js} +9 -9
- package/dist/{campaign-U0MVzGkd.js → campaign-C0i8L0kd.js} +2 -2
- package/dist/{campaign.enum-C2ZHkwav.js → campaign.enum-Dafd1FVd.js} +1 -1
- package/dist/{campaign.fn-C8hqL7sq.js → campaign.fn-BnveqmRa.js} +29 -29
- package/dist/{collectible.enum-DPFWrwtU.js → collectible.enum-ByYase0A.js} +1 -1
- package/dist/{collection.fn-BUtvp8Q7.js → collection.fn-DoDvtLpC.js} +2 -2
- package/dist/{dto-CO3dr-5e.js → dto-WRjmFrfA.js} +4 -4
- package/dist/{effect-CTIglwNj.js → effect-8vUDqhjn.js} +1 -1
- package/dist/{email-addresses-fTprqBTm.js → email-addresses-CmpIupHQ.js} +1 -1
- package/dist/{export-BNfnVhxu.js → export-D5V2w6NT.js} +3 -3
- package/dist/{helper-BB4sHiiB.js → helper-O_XVmheZ.js} +1 -1
- package/dist/{index-czQ4GAtE.js → index-AIhUNoCH.js} +1 -1
- package/dist/{index-ByUriI6F.js → index-BSi-3ZKv.js} +2 -2
- package/dist/{index-fkBcbLFu.js → index-B_es_G1y.js} +4 -4
- package/dist/{index-BZjpXQbO.js → index-BxMw-97Y.js} +1 -1
- package/dist/{index-DHEtLTYr.js → index-C8iwiKBL.js} +1 -1
- package/dist/{index-BnJgi3GR.js → index-COJem__Y.js} +3 -3
- package/dist/{index-DwbN8FHi.js → index-CiaBjRyN.js} +1 -1
- package/dist/{index-DbzMtv9Z.js → index-Ck3CSnDV.js} +1 -1
- package/dist/{index-DTnTvdIA.js → index-DAKhWupM.js} +1 -1
- package/dist/{index-BpmAtLiE.js → index-DBlWM9M2.js} +1 -1
- package/dist/{index-CUDAo9HK.js → index-DmPen3ik.js} +6 -6
- package/dist/{index-wzNzbg46.js → index-fkMOPROn.js} +3 -3
- package/dist/{index.esm2017-OtiYpLFF.js → index.esm2017-CR2ozJhL.js} +1 -1
- package/dist/{loading-D_NOvElg.js → loading-CoPjpwr_.js} +1 -1
- package/dist/{membership-6M1ftDbz.js → membership-DfK6LvzX.js} +3 -3
- package/dist/{money-D6phwlff.js → money-BMWdczNZ.js} +1 -1
- package/dist/{number-CT9IX-wU.js → number-RoHZMLf4.js} +1 -1
- package/dist/{objectid-DtS-zHmd.js → objectid-nsRQA3Jm.js} +7 -7
- package/dist/{plugins-CFv-0uV9.js → plugins-Djltfdbf.js} +4 -4
- package/dist/{reward-B2aqMThx.js → reward-DDht6IgD.js} +1 -1
- package/dist/{rule-DxUsHy8Q.js → rule-FKnlDZrl.js} +3 -3
- package/dist/{rule-builder-BqkRAa1C.js → rule-builder-DN9Z65qr.js} +1 -1
- package/dist/{template-5OZEG9e3.js → template-_deCCxVQ.js} +4 -4
- package/dist/{trigger-D7aLiQDF.js → trigger-DnMqlhsD.js} +4 -4
- package/dist/{user-CMYgbV2m.js → user-C9doToN3.js} +1 -1
- package/dist/{vue-i18n-Cad7169E.js → vue-i18n-8j4jiaET.js} +244 -244
- package/dist/{xlsx-rV-XTyJC.js → xlsx-Bb8iqOxg.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as T } from "vue";
|
|
2
2
|
import { withPermission as R, Permission as x } from "@feedmepos/mf-common";
|
|
3
|
-
const
|
|
3
|
+
const Me = {
|
|
4
4
|
common: {
|
|
5
5
|
submit: "Submit",
|
|
6
6
|
confirm: "Confirm",
|
|
@@ -813,7 +813,7 @@ const Pe = {
|
|
|
813
813
|
reward: "reward(s)",
|
|
814
814
|
criteria: "criteria(s)",
|
|
815
815
|
reward_tier: "configured tier(s)",
|
|
816
|
-
referee_join_reward_description: "Reward will be given to the
|
|
816
|
+
referee_join_reward_description: "Reward will be given to the referee when the referee successfully joins the program and meets the criteria",
|
|
817
817
|
referral_tier_description: "Referer will receive rewards after referee completed all criteria"
|
|
818
818
|
},
|
|
819
819
|
reward: {
|
|
@@ -1019,7 +1019,7 @@ const Pe = {
|
|
|
1019
1019
|
effect_required: "Effect is required"
|
|
1020
1020
|
}
|
|
1021
1021
|
}, De = {
|
|
1022
|
-
connect:
|
|
1022
|
+
connect: Me,
|
|
1023
1023
|
connectZod: Le,
|
|
1024
1024
|
connectZodCustom: je
|
|
1025
1025
|
}, Ze = {
|
|
@@ -2005,7 +2005,7 @@ const Pe = {
|
|
|
2005
2005
|
map: "字典",
|
|
2006
2006
|
set: "集合"
|
|
2007
2007
|
}
|
|
2008
|
-
},
|
|
2008
|
+
}, Be = {
|
|
2009
2009
|
timeframe: {
|
|
2010
2010
|
end_before_start: "结束日期必须晚于或等于开始日期"
|
|
2011
2011
|
},
|
|
@@ -2021,10 +2021,10 @@ const Pe = {
|
|
|
2021
2021
|
reward_threshold_unique: "奖励阈值必须是唯一的",
|
|
2022
2022
|
effect_required: "效果是必需的"
|
|
2023
2023
|
}
|
|
2024
|
-
},
|
|
2024
|
+
}, $e = {
|
|
2025
2025
|
connect: Ze,
|
|
2026
2026
|
connectZod: Ve,
|
|
2027
|
-
connectZodCustom:
|
|
2027
|
+
connectZodCustom: Be
|
|
2028
2028
|
}, Ue = {
|
|
2029
2029
|
campaign: {
|
|
2030
2030
|
common: {
|
|
@@ -2699,137 +2699,1140 @@ const Pe = {
|
|
|
2699
2699
|
not_inclusive: "วันที่ต้องมากกว่า {{- ขั้นต่ำ, วันที่เวลา}}"
|
|
2700
2700
|
}
|
|
2701
2701
|
},
|
|
2702
|
-
too_big: {
|
|
2703
|
-
array: {
|
|
2704
|
-
exact: "อาร์เรย์ต้องมีองค์ประกอบ {{maximum}} ทุกประการ",
|
|
2705
|
-
inclusive: "อาร์เรย์ต้องมีองค์ประกอบไม่เกิน {{maximum}} รายการ",
|
|
2706
|
-
not_inclusive: "อาร์เรย์ต้องมีองค์ประกอบน้อยกว่า {{maximum}} รายการ"
|
|
2707
|
-
},
|
|
2708
|
-
string: {
|
|
2709
|
-
exact: "สตริงต้องมีอักขระ {{maximum}} ตัวทุกประการ",
|
|
2710
|
-
inclusive: "สตริงต้องมีอักขระไม่เกิน {{maximum}} ตัว",
|
|
2711
|
-
not_inclusive: "สตริงต้องมีอักขระไม่เกิน {{maximum}} ตัว"
|
|
2712
|
-
},
|
|
2713
|
-
number: {
|
|
2714
|
-
exact: "หมายเลขจะต้องตรงกับ {{maximum}}",
|
|
2715
|
-
inclusive: "ตัวเลขต้องน้อยกว่าหรือเท่ากับ {{maximum}}",
|
|
2716
|
-
not_inclusive: "จำนวนต้องน้อยกว่า {{maximum}}"
|
|
2717
|
-
},
|
|
2718
|
-
set: {
|
|
2719
|
-
exact: "อินพุตไม่ถูกต้อง",
|
|
2720
|
-
inclusive: "อินพุตไม่ถูกต้อง",
|
|
2721
|
-
not_inclusive: "อินพุตไม่ถูกต้อง"
|
|
2722
|
-
},
|
|
2723
|
-
date: {
|
|
2724
|
-
exact: "วันที่จะต้องตรงกับ {{- maximum, datetime}}",
|
|
2725
|
-
inclusive: "วันที่ต้องน้อยกว่าหรือเท่ากับ {{- maximum, datetime}}",
|
|
2726
|
-
not_inclusive: "วันที่ต้องน้อยกว่า {{- maximum, datetime}}"
|
|
2702
|
+
too_big: {
|
|
2703
|
+
array: {
|
|
2704
|
+
exact: "อาร์เรย์ต้องมีองค์ประกอบ {{maximum}} ทุกประการ",
|
|
2705
|
+
inclusive: "อาร์เรย์ต้องมีองค์ประกอบไม่เกิน {{maximum}} รายการ",
|
|
2706
|
+
not_inclusive: "อาร์เรย์ต้องมีองค์ประกอบน้อยกว่า {{maximum}} รายการ"
|
|
2707
|
+
},
|
|
2708
|
+
string: {
|
|
2709
|
+
exact: "สตริงต้องมีอักขระ {{maximum}} ตัวทุกประการ",
|
|
2710
|
+
inclusive: "สตริงต้องมีอักขระไม่เกิน {{maximum}} ตัว",
|
|
2711
|
+
not_inclusive: "สตริงต้องมีอักขระไม่เกิน {{maximum}} ตัว"
|
|
2712
|
+
},
|
|
2713
|
+
number: {
|
|
2714
|
+
exact: "หมายเลขจะต้องตรงกับ {{maximum}}",
|
|
2715
|
+
inclusive: "ตัวเลขต้องน้อยกว่าหรือเท่ากับ {{maximum}}",
|
|
2716
|
+
not_inclusive: "จำนวนต้องน้อยกว่า {{maximum}}"
|
|
2717
|
+
},
|
|
2718
|
+
set: {
|
|
2719
|
+
exact: "อินพุตไม่ถูกต้อง",
|
|
2720
|
+
inclusive: "อินพุตไม่ถูกต้อง",
|
|
2721
|
+
not_inclusive: "อินพุตไม่ถูกต้อง"
|
|
2722
|
+
},
|
|
2723
|
+
date: {
|
|
2724
|
+
exact: "วันที่จะต้องตรงกับ {{- maximum, datetime}}",
|
|
2725
|
+
inclusive: "วันที่ต้องน้อยกว่าหรือเท่ากับ {{- maximum, datetime}}",
|
|
2726
|
+
not_inclusive: "วันที่ต้องน้อยกว่า {{- maximum, datetime}}"
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
},
|
|
2730
|
+
validations: {
|
|
2731
|
+
email: "อีเมล",
|
|
2732
|
+
url: "url",
|
|
2733
|
+
uuid: "uuid",
|
|
2734
|
+
cuid: "cuid",
|
|
2735
|
+
regex: "regex",
|
|
2736
|
+
datetime: "datetime"
|
|
2737
|
+
},
|
|
2738
|
+
types: {
|
|
2739
|
+
function: "ฟังก์ชัน",
|
|
2740
|
+
number: "ตัวเลข",
|
|
2741
|
+
string: "สตริง",
|
|
2742
|
+
nan: "nan",
|
|
2743
|
+
integer: "จำนวนเต็ม",
|
|
2744
|
+
float: "float",
|
|
2745
|
+
boolean: "boolean",
|
|
2746
|
+
date: "วันที่",
|
|
2747
|
+
bigint: "bigint",
|
|
2748
|
+
undefined: "ไม่ได้กำหนด",
|
|
2749
|
+
symbol: "สัญลักษณ์",
|
|
2750
|
+
null: "null",
|
|
2751
|
+
array: "อาร์เรย์",
|
|
2752
|
+
object: "วัตถุ",
|
|
2753
|
+
unknown: "ไม่ทราบ",
|
|
2754
|
+
promise: "promise",
|
|
2755
|
+
void: "void",
|
|
2756
|
+
never: "never",
|
|
2757
|
+
map: "map",
|
|
2758
|
+
set: "set"
|
|
2759
|
+
}
|
|
2760
|
+
},
|
|
2761
|
+
zodCustom: {
|
|
2762
|
+
timeframe: {
|
|
2763
|
+
end_before_start: "วันที่สิ้นสุดต้องมาทีหลังหรือเหมือนกับวันที่เริ่มต้น"
|
|
2764
|
+
},
|
|
2765
|
+
campaign: {
|
|
2766
|
+
rule_required: "ต้องมีกฎเกณฑ์เมื่อประเภทตัวกระตุ้นคือ '{type}'",
|
|
2767
|
+
earning_amount_exceed: "จำนวนเงินที่ได้รับต้องน้อยกว่า {max} (จำนวนเงินที่ได้รับสูงสุดของภารกิจ)",
|
|
2768
|
+
credit_validity_required: "แคมเปญเครดิตต้องมีตัวเลือกอายุการใช้งาน (ต้องเป็นเครดิตฟรี)",
|
|
2769
|
+
mission_first_receive: "แคมเปญภารกิจต้องติดตามการรับก่อน",
|
|
2770
|
+
schedule_period_required: "ตัวกระตุ้นกำหนดการต้องตั้งค่าช่วงเวลาที่ใช้งานอยู่",
|
|
2771
|
+
active_period_invalid: "กฎช่วงเวลาที่ใช้งานอยู่ไม่ถูกต้อง",
|
|
2772
|
+
fixed_earning_required: "แคมเปญที่ไม่สามารถเรียกเก็บเงินได้ครบต้องมีตัวเลือกการรับรายได้คงที่",
|
|
2773
|
+
reward_threshold_range: "เกณฑ์รางวัลจะต้องอยู่ภายในจุดสิ้นสุดภารกิจ",
|
|
2774
|
+
reward_threshold_unique: "เกณฑ์รางวัลจะต้องไม่ซ้ำกัน",
|
|
2775
|
+
effect_required: "จำเป็นต้องมีเอฟเฟกต์"
|
|
2776
|
+
}
|
|
2777
|
+
},
|
|
2778
|
+
prompt: {
|
|
2779
|
+
confirm: "ยืนยัน",
|
|
2780
|
+
cancel: "ยกเลิก"
|
|
2781
|
+
},
|
|
2782
|
+
editTierSheet: {
|
|
2783
|
+
add: "เพิ่ม",
|
|
2784
|
+
create: "สร้างระดับ",
|
|
2785
|
+
basicInformation: "ข้อมูลพื้นฐาน",
|
|
2786
|
+
tierName: "ชื่อชั้น",
|
|
2787
|
+
tierImage: "รูปภาพระดับ",
|
|
2788
|
+
experienceThreshold: "เกณฑ์ประสบการณ์",
|
|
2789
|
+
minExperience: "ประสบการณ์ขั้นต่ำ",
|
|
2790
|
+
maxExperience: "ประสบการณ์สูงสุด",
|
|
2791
|
+
actions: "การดำเนินการ",
|
|
2792
|
+
submit: "ส่ง",
|
|
2793
|
+
cancel: "ยกเลิก"
|
|
2794
|
+
}
|
|
2795
|
+
}, qe = {
|
|
2796
|
+
connect: Ue
|
|
2797
|
+
}, Ge = {
|
|
2798
|
+
common: {
|
|
2799
|
+
confirm: "確認",
|
|
2800
|
+
cancel: "取消",
|
|
2801
|
+
save: "保存",
|
|
2802
|
+
delete: "刪除",
|
|
2803
|
+
edit: "編輯",
|
|
2804
|
+
add: "添加",
|
|
2805
|
+
optional: "可選"
|
|
2806
|
+
},
|
|
2807
|
+
template: {
|
|
2808
|
+
general: "常規",
|
|
2809
|
+
trigger: "觸發器",
|
|
2810
|
+
general_information: "基本信息",
|
|
2811
|
+
discount: "折扣",
|
|
2812
|
+
terms_conditions: "條款和條件",
|
|
2813
|
+
time_limitation: "時間限制",
|
|
2814
|
+
target_audience: "目標受眾",
|
|
2815
|
+
game_configuration: "遊戲配置",
|
|
2816
|
+
location: "位置",
|
|
2817
|
+
voucher_detail: "優惠券詳情",
|
|
2818
|
+
spending_criteria: "消費標準",
|
|
2819
|
+
feedback_criteria: "反饋標準",
|
|
2820
|
+
voucher_usage_configuration: "優惠券使用配置",
|
|
2821
|
+
notify_audience: "通知受眾",
|
|
2822
|
+
notify_message: "通知消息",
|
|
2823
|
+
earning_type: "獲取類型",
|
|
2824
|
+
validity_configuration: "有效期配置",
|
|
2825
|
+
mission_participation: "任務參與",
|
|
2826
|
+
configure_reward: "配置獎勵",
|
|
2827
|
+
content: "內容",
|
|
2828
|
+
broadcast_configuration: "廣播配置",
|
|
2829
|
+
game_type: "遊戲類型",
|
|
2830
|
+
reward_pool: "獎勵池",
|
|
2831
|
+
configuration: "配置",
|
|
2832
|
+
campaign_name: "活動名稱",
|
|
2833
|
+
campaign_description: "活動描述",
|
|
2834
|
+
campaign_period: "活動週期",
|
|
2835
|
+
voucher_name: "優惠券名稱",
|
|
2836
|
+
voucher_description: "優惠券描述",
|
|
2837
|
+
voucher_image: "優惠券圖片",
|
|
2838
|
+
target_location: "目標位置",
|
|
2839
|
+
send_notification: "發送通知",
|
|
2840
|
+
notification_message: "通知消息",
|
|
2841
|
+
min_spend: "最低消費",
|
|
2842
|
+
select_game: "選擇您希望客户參與的遊戲",
|
|
2843
|
+
configure_reward_type: "配置給予客户的獎勵類型和權重",
|
|
2844
|
+
configure_reward_customer: "配置給予客户的獎勵類型",
|
|
2845
|
+
max_per_user: "每個用户最大領取次數",
|
|
2846
|
+
usage_count: "使用次數",
|
|
2847
|
+
max_distribute: "最大發放次數",
|
|
2848
|
+
cooldown: "冷卻時間",
|
|
2849
|
+
validity_option: {
|
|
2850
|
+
title: "有效期選項",
|
|
2851
|
+
date_range: "日期範圍",
|
|
2852
|
+
custom: "自定義",
|
|
2853
|
+
expire: "過期",
|
|
2854
|
+
after_day: "天數",
|
|
2855
|
+
days: "天",
|
|
2856
|
+
expire_follow_first_receive: "過期時間從首次接收開始計算",
|
|
2857
|
+
expires_on_same_day: "當天過期"
|
|
2858
|
+
},
|
|
2859
|
+
enable_transfer: "啓用轉讓",
|
|
2860
|
+
rule: {
|
|
2861
|
+
time: {
|
|
2862
|
+
all_time: "所有時間",
|
|
2863
|
+
custom: "自定義日期/時間",
|
|
2864
|
+
confirm_remove: "您確定要關閉自定義條件嗎?這將刪除您設置的所有規則。"
|
|
2865
|
+
},
|
|
2866
|
+
audience: {
|
|
2867
|
+
all: "所有受眾",
|
|
2868
|
+
member_segment: "會員分組",
|
|
2869
|
+
custom_audience: "自定義受眾",
|
|
2870
|
+
confirm_remove: "您確定要更改受眾類型嗎?這將刪除您設置的所有規則。"
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
},
|
|
2874
|
+
campaign: {
|
|
2875
|
+
common: {
|
|
2876
|
+
createCampaign: "創建活動",
|
|
2877
|
+
search: "搜索",
|
|
2878
|
+
location: "位置:",
|
|
2879
|
+
noResults: "未找到結果",
|
|
2880
|
+
remove: {
|
|
2881
|
+
confirm: "您確定要刪除{name}嗎?",
|
|
2882
|
+
removing: "正在刪除{name}",
|
|
2883
|
+
removed: "{name}已成功刪除"
|
|
2884
|
+
},
|
|
2885
|
+
actions: {
|
|
2886
|
+
remove: "刪除",
|
|
2887
|
+
send: "發送",
|
|
2888
|
+
share: "分享"
|
|
2889
|
+
},
|
|
2890
|
+
effect_required: "效果是必需的",
|
|
2891
|
+
unsaved_changes: "您確定要丟棄這些更改嗎?",
|
|
2892
|
+
unsaved_changes_confirm: "確定",
|
|
2893
|
+
unsaved_changes_cancel: "取消",
|
|
2894
|
+
save: "保存",
|
|
2895
|
+
cancel: "取消",
|
|
2896
|
+
summary: "活動摘要",
|
|
2897
|
+
campaign_name: "活動名稱",
|
|
2898
|
+
campaign_period: "活動週期",
|
|
2899
|
+
next_schedule_at: "下次計劃時間",
|
|
2900
|
+
discount_type: "折扣類型",
|
|
2901
|
+
discount_amount: "折扣金額",
|
|
2902
|
+
discount_percentage: "折扣百分比",
|
|
2903
|
+
all_locations: "所有位置",
|
|
2904
|
+
available_at: "可用位置",
|
|
2905
|
+
always: "總是",
|
|
2906
|
+
no_location: "無位置",
|
|
2907
|
+
status: {
|
|
2908
|
+
active: "進行中",
|
|
2909
|
+
upcoming: "即將推出",
|
|
2910
|
+
expired: "已結束"
|
|
2911
|
+
}
|
|
2912
|
+
},
|
|
2913
|
+
mission: {
|
|
2914
|
+
title: "任務",
|
|
2915
|
+
create: "創建任務",
|
|
2916
|
+
confirmDelete: "您確定要刪除{name}嗎?",
|
|
2917
|
+
removing: "正在刪除{name}",
|
|
2918
|
+
removed: "成功刪除{name}",
|
|
2919
|
+
updating: "正在更新任務",
|
|
2920
|
+
updated: "任務更新成功",
|
|
2921
|
+
creating: "正在創建任務",
|
|
2922
|
+
created: "任務創建成功",
|
|
2923
|
+
location: "位置:",
|
|
2924
|
+
createProgram: "創建您的任務",
|
|
2925
|
+
description: "任務功能為購物增添了趣味元素,鼓勵客户更多地參與。",
|
|
2926
|
+
createButton: "創建任務",
|
|
2927
|
+
type: "任務類型",
|
|
2928
|
+
received: "已領取"
|
|
2929
|
+
},
|
|
2930
|
+
broadcast: {
|
|
2931
|
+
title: "廣播",
|
|
2932
|
+
messageSent: "{count}已發送",
|
|
2933
|
+
create: {
|
|
2934
|
+
title: "創建您的廣播活動",
|
|
2935
|
+
description: "廣播允許您向所有客户發送短信,通知他們有關新交易、活動或重要更新的信息。",
|
|
2936
|
+
button: "創建廣播活動"
|
|
2937
|
+
},
|
|
2938
|
+
update: {
|
|
2939
|
+
creating: "正在創建廣播",
|
|
2940
|
+
updating: "正在更新廣播",
|
|
2941
|
+
success: "廣播{action}成功"
|
|
2942
|
+
}
|
|
2943
|
+
},
|
|
2944
|
+
promotion: {
|
|
2945
|
+
title: "促銷",
|
|
2946
|
+
typeLabel: "{type} 促銷",
|
|
2947
|
+
create: {
|
|
2948
|
+
title: "創建促銷活動",
|
|
2949
|
+
description: "限時提供的特別優惠或交易,以鼓勵用户參與和購買。促銷通常對所有符合條件的用户開放,無需特定代碼,並在促銷期間由商家應用。",
|
|
2950
|
+
button: "創建促銷活動"
|
|
2951
|
+
},
|
|
2952
|
+
update: {
|
|
2953
|
+
creating: "正在創建促銷",
|
|
2954
|
+
updating: "正在更新促銷",
|
|
2955
|
+
success: "促銷{action}成功"
|
|
2956
|
+
}
|
|
2957
|
+
},
|
|
2958
|
+
voucher: {
|
|
2959
|
+
title: "代金券",
|
|
2960
|
+
claimed: "{count} 已領取",
|
|
2961
|
+
unlimited: "無限制",
|
|
2962
|
+
updateConfirm: {
|
|
2963
|
+
title: "確認",
|
|
2964
|
+
message: "這將更改所有未來的代金券?您想更新之前領取的代金券的到期日期和折扣嗎?",
|
|
2965
|
+
updateAll: "全部更新",
|
|
2966
|
+
updateFuture: "僅更新未來"
|
|
2967
|
+
},
|
|
2968
|
+
create: {
|
|
2969
|
+
title: "創建代金券活動",
|
|
2970
|
+
description: "用户可以兑換以獲得未來購買折扣的數字優惠券。用户通常需要領取並應用代金券才能享受折扣。",
|
|
2971
|
+
button: "創建代金券活動"
|
|
2972
|
+
},
|
|
2973
|
+
update: {
|
|
2974
|
+
creating: "正在創建代金券",
|
|
2975
|
+
updating: "正在更新代金券",
|
|
2976
|
+
success: "代金券{action}成功"
|
|
2977
|
+
},
|
|
2978
|
+
share: {
|
|
2979
|
+
error: "無法分享非簡單領取的代金券。",
|
|
2980
|
+
errorTitle: "分享代金券",
|
|
2981
|
+
errorButton: "確定",
|
|
2982
|
+
success: "代金券鏈接已複製到剪貼板"
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
},
|
|
2986
|
+
promotion: {
|
|
2987
|
+
createCampaign: "創建活動",
|
|
2988
|
+
promotionTitle: "促銷標題",
|
|
2989
|
+
status: "狀態",
|
|
2990
|
+
type: "類型",
|
|
2991
|
+
summary: "摘要",
|
|
2992
|
+
actions: "操作",
|
|
2993
|
+
confirmRemove: "您確定要刪除{name}嗎?",
|
|
2994
|
+
removing: "正在刪除{name}",
|
|
2995
|
+
removedSuccessfully: "成功刪除{name}",
|
|
2996
|
+
updating: "正在更新促銷",
|
|
2997
|
+
creating: "正在創建促銷",
|
|
2998
|
+
updatedSuccessfully: "促銷更新成功",
|
|
2999
|
+
createdSuccessfully: "促銷創建成功",
|
|
3000
|
+
title: "促銷",
|
|
3001
|
+
search: "搜索",
|
|
3002
|
+
location: "位置:",
|
|
3003
|
+
createPromotionCampaign: "創建促銷活動",
|
|
3004
|
+
description: "限時提供的特別優惠或交易,以鼓勵用户參與和購買。促銷通常對所有符合條件的用户開放,無需特定代碼,並在促銷期間由商家應用。"
|
|
3005
|
+
},
|
|
3006
|
+
voucher: {
|
|
3007
|
+
createCampaign: "創建活動",
|
|
3008
|
+
voucherTitle: "代金券標題",
|
|
3009
|
+
status: "狀態",
|
|
3010
|
+
summary: "摘要",
|
|
3011
|
+
quota: "配額",
|
|
3012
|
+
claimed: "已領取",
|
|
3013
|
+
actions: "操作",
|
|
3014
|
+
remove: "移除",
|
|
3015
|
+
send: "發送",
|
|
3016
|
+
share: "分享",
|
|
3017
|
+
confirmRemove: "您確定要刪除{name}嗎?",
|
|
3018
|
+
removing: "正在刪除{name}",
|
|
3019
|
+
removedSuccessfully: "成功刪除{name}",
|
|
3020
|
+
updating: "正在更新代金券",
|
|
3021
|
+
creating: "正在創建代金券",
|
|
3022
|
+
updatedSuccessfully: "代金券更新成功",
|
|
3023
|
+
createdSuccessfully: "代金券創建成功",
|
|
3024
|
+
title: "代金券",
|
|
3025
|
+
search: "搜索",
|
|
3026
|
+
location: "位置:",
|
|
3027
|
+
createVoucherCampaign: "創建代金券活動",
|
|
3028
|
+
description: "用户可以兑換以獲得未來購買折扣的數字優惠券。用户通常需要領取並應用代金券才能享受折扣。"
|
|
3029
|
+
},
|
|
3030
|
+
navigation: {
|
|
3031
|
+
analytic: "分析",
|
|
3032
|
+
campaign: "活動",
|
|
3033
|
+
promotion: "促銷",
|
|
3034
|
+
voucher: "代金券",
|
|
3035
|
+
broadcast: "廣播",
|
|
3036
|
+
program: "程序",
|
|
3037
|
+
tier: "等級",
|
|
3038
|
+
title: "頭銜",
|
|
3039
|
+
experience: "經驗",
|
|
3040
|
+
point: "點數",
|
|
3041
|
+
credit: "積分",
|
|
3042
|
+
game: "遊戲",
|
|
3043
|
+
loyalty: "忠誠度",
|
|
3044
|
+
member: "會員",
|
|
3045
|
+
segments: "分組",
|
|
3046
|
+
card: "會員卡",
|
|
3047
|
+
store: "商店",
|
|
3048
|
+
transaction: "交易",
|
|
3049
|
+
setting: "設置",
|
|
3050
|
+
mission: "任務",
|
|
3051
|
+
auditLogs: "審計日誌",
|
|
3052
|
+
referral: "推薦"
|
|
3053
|
+
},
|
|
3054
|
+
loyalty: {
|
|
3055
|
+
card: {
|
|
3056
|
+
title: "會員卡",
|
|
3057
|
+
premium_label: "高級",
|
|
3058
|
+
actions: {
|
|
3059
|
+
create: "創建會員卡",
|
|
3060
|
+
manage_design: "管理設計",
|
|
3061
|
+
add: "添加會員卡"
|
|
3062
|
+
},
|
|
3063
|
+
empty_state: {
|
|
3064
|
+
title: "創建會員卡",
|
|
3065
|
+
description: "跟蹤和管理會員卡,以保持客户對您的業務的參與。",
|
|
3066
|
+
premium_cta: "升級到高級版,享受所有功能。"
|
|
3067
|
+
},
|
|
3068
|
+
table: {
|
|
3069
|
+
card_number: "卡號",
|
|
3070
|
+
redeemed_by: "兑換者",
|
|
3071
|
+
phone: "電話",
|
|
3072
|
+
created_at: "創建於",
|
|
3073
|
+
bundle: "捆綁",
|
|
3074
|
+
redeemed_at: "兑換於",
|
|
3075
|
+
actions: "操作"
|
|
3076
|
+
}
|
|
3077
|
+
},
|
|
3078
|
+
member: {
|
|
3079
|
+
title: "會員交易",
|
|
3080
|
+
tabs: {
|
|
3081
|
+
member_list: "會員列表"
|
|
3082
|
+
}
|
|
3083
|
+
},
|
|
3084
|
+
segment: {
|
|
3085
|
+
title: "分組",
|
|
3086
|
+
actions: {
|
|
3087
|
+
refresh: "刷新分組",
|
|
3088
|
+
add: "添加分組",
|
|
3089
|
+
remove: "移除"
|
|
3090
|
+
},
|
|
3091
|
+
table: {
|
|
3092
|
+
name: "名稱",
|
|
3093
|
+
total_customers: "此細分中的總客户數",
|
|
3094
|
+
customer_percentage: "客户百分比",
|
|
3095
|
+
actions: "操作"
|
|
3096
|
+
},
|
|
3097
|
+
mobile: {
|
|
3098
|
+
total_customers: "總客户數:{count}",
|
|
3099
|
+
customer_percentage: "客户百分比:{percentage}%"
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3102
|
+
},
|
|
3103
|
+
program: {
|
|
3104
|
+
common: {
|
|
3105
|
+
create: "創建程序",
|
|
3106
|
+
search: "搜索",
|
|
3107
|
+
location: "位置:",
|
|
3108
|
+
used: "已使用:{count}",
|
|
3109
|
+
actions: {
|
|
3110
|
+
create: "創建{type}程序",
|
|
3111
|
+
delete: "刪除"
|
|
3112
|
+
},
|
|
3113
|
+
table: {
|
|
3114
|
+
title: "程序標題",
|
|
3115
|
+
status: "狀態",
|
|
3116
|
+
summary: "摘要",
|
|
3117
|
+
actions: "操作",
|
|
3118
|
+
type: "類型"
|
|
3119
|
+
},
|
|
3120
|
+
remove: {
|
|
3121
|
+
confirm: "您確定要刪除{name}嗎?",
|
|
3122
|
+
removing: "正在刪除{name}",
|
|
3123
|
+
removed: "成功刪除{name}"
|
|
3124
|
+
},
|
|
3125
|
+
update: {
|
|
3126
|
+
creating: "正在創建{type}程序",
|
|
3127
|
+
updating: "正在更新{type}程序",
|
|
3128
|
+
success: "{type}程序{action}成功"
|
|
3129
|
+
}
|
|
3130
|
+
},
|
|
3131
|
+
experience: {
|
|
3132
|
+
title: "經驗",
|
|
3133
|
+
empty_state: {
|
|
3134
|
+
title: "創建經驗計劃",
|
|
3135
|
+
description: "經驗幫助客户獲得會員等級。客户互動和消費越多,他們的會員等級就越高,解鎖更多獎勵和福利。"
|
|
3136
|
+
},
|
|
3137
|
+
received: "獲得的經驗:{count}"
|
|
3138
|
+
},
|
|
3139
|
+
game: {
|
|
3140
|
+
title: "遊戲",
|
|
3141
|
+
empty_state: {
|
|
3142
|
+
title: "創建您的遊戲計劃",
|
|
3143
|
+
description: "遊戲功能為購物增添了趣味元素,鼓勵客户更多地參與。"
|
|
3144
|
+
},
|
|
3145
|
+
token_received: "獲得的代幣:{count}"
|
|
3146
|
+
},
|
|
3147
|
+
credit: {
|
|
3148
|
+
title: "點數"
|
|
3149
|
+
},
|
|
3150
|
+
point: {
|
|
3151
|
+
title: "點數",
|
|
3152
|
+
empty_state: {
|
|
3153
|
+
title: "創建您的點數計劃",
|
|
3154
|
+
description: "點數是客户可以賺取並用於購買捆綁商品的虛擬點數。"
|
|
3155
|
+
},
|
|
3156
|
+
point_received: "獲得的點數:{count}",
|
|
3157
|
+
used: "{count} 已使用"
|
|
3158
|
+
},
|
|
3159
|
+
tier: {
|
|
3160
|
+
title: "等級",
|
|
3161
|
+
empty_state: {
|
|
3162
|
+
title: "創建等級計劃",
|
|
3163
|
+
description: "通過加入您的會員活動,為您的會員提供獨家福利和獎勵。您可以選擇希望您的忠誠度等級提供的內容。"
|
|
3164
|
+
},
|
|
3165
|
+
actions: {
|
|
3166
|
+
add: "添加等級",
|
|
3167
|
+
season_setting: "季節設置"
|
|
3168
|
+
},
|
|
3169
|
+
update: {
|
|
3170
|
+
range_discontinuous: {
|
|
3171
|
+
previous: `等級範圍不連續。
|
|
3172
|
+
之前的範圍:{name} [{from} - {to}]。
|
|
3173
|
+
您想將之前的範圍更新為 [{from} - {newTo}] 嗎?`,
|
|
3174
|
+
next: `等級範圍不連續。
|
|
3175
|
+
下一個範圍:{name} [{from} - {to}]。
|
|
3176
|
+
您想將下一個範圍更新為 [{newFrom} - {to}] 嗎?`
|
|
3177
|
+
}
|
|
3178
|
+
},
|
|
3179
|
+
remove: {
|
|
3180
|
+
confirm: "您確定要刪除此等級嗎?",
|
|
3181
|
+
title: "刪除等級",
|
|
3182
|
+
next_range: "更新下一個範圍",
|
|
3183
|
+
range_discontinuous: {
|
|
3184
|
+
previous: `等級範圍不連續。
|
|
3185
|
+
之前的範圍:{name} [{from} - {to}]。
|
|
3186
|
+
您想將之前的範圍更新為 [{from} - {newTo}] 嗎?`,
|
|
3187
|
+
next: `等級範圍不連續。
|
|
3188
|
+
下一個範圍:{name} [{from} - {to}]。
|
|
3189
|
+
您想將下一個範圍更新為 [{newFrom} - {to}] 嗎?`
|
|
3190
|
+
}
|
|
3191
|
+
},
|
|
3192
|
+
benefit: {
|
|
3193
|
+
add: "添加福利",
|
|
3194
|
+
no_linked: "無關聯福利",
|
|
3195
|
+
update: {
|
|
3196
|
+
title: "更新福利",
|
|
3197
|
+
success: "福利創建成功"
|
|
3198
|
+
}
|
|
3199
|
+
},
|
|
3200
|
+
expression: {
|
|
3201
|
+
title: "等級過期規則",
|
|
3202
|
+
description: "設置等級過期規則",
|
|
3203
|
+
change_to: "改變為",
|
|
3204
|
+
deduct_by: "扣除",
|
|
3205
|
+
deduct_percentage: "扣除百分比",
|
|
3206
|
+
value: "值",
|
|
3207
|
+
value_greater_than_or_equal: "值必須大於或等於{value}",
|
|
3208
|
+
value_less_than_or_equal: "值必須小於或等於{value}",
|
|
3209
|
+
value_between: "值必須在{from}和{to}之間",
|
|
3210
|
+
value_less_than: "值必須小於{value}"
|
|
3211
|
+
},
|
|
3212
|
+
card: {
|
|
3213
|
+
count: "{count} 會員"
|
|
3214
|
+
}
|
|
3215
|
+
},
|
|
3216
|
+
title: {
|
|
3217
|
+
title: "頭銜",
|
|
3218
|
+
empty_state: {
|
|
3219
|
+
title: "創建頭銜計劃",
|
|
3220
|
+
description: "創建頭銜計劃,創建獨特的忠誠度頭銜以個性化會員體驗。通過有趣的頭銜吸引客户,以增強忠誠度計劃的遊戲化。"
|
|
3221
|
+
},
|
|
3222
|
+
actions: {
|
|
3223
|
+
add: "添加頭銜"
|
|
3224
|
+
},
|
|
3225
|
+
update: {
|
|
3226
|
+
creating: "創建頭銜",
|
|
3227
|
+
updating: "更新頭銜",
|
|
3228
|
+
success: "頭銜{action}成功"
|
|
3229
|
+
},
|
|
3230
|
+
remove: {
|
|
3231
|
+
confirm: "您確定要刪除此頭銜嗎?",
|
|
3232
|
+
title: "刪除頭銜",
|
|
3233
|
+
deleting: "正在刪除頭銜",
|
|
3234
|
+
success: "頭銜已刪除"
|
|
3235
|
+
},
|
|
3236
|
+
benefit: {
|
|
3237
|
+
add: "添加福利",
|
|
3238
|
+
no_linked: "無關聯福利",
|
|
3239
|
+
update: {
|
|
3240
|
+
title: "更新福利",
|
|
3241
|
+
success: "福利創建成功"
|
|
3242
|
+
},
|
|
3243
|
+
voucher_update: {
|
|
3244
|
+
title: "確認",
|
|
3245
|
+
message: "這將更改所有未來的代金券?您想更新之前領取的代金券的到期日期和折扣嗎?",
|
|
3246
|
+
update_all: "全部更新",
|
|
3247
|
+
update_future: "僅更新未來"
|
|
3248
|
+
}
|
|
3249
|
+
},
|
|
3250
|
+
table: {
|
|
3251
|
+
title: "頭銜",
|
|
3252
|
+
program_title: "計劃標題",
|
|
3253
|
+
status: "狀態",
|
|
3254
|
+
type: "類型",
|
|
3255
|
+
summary: "摘要",
|
|
3256
|
+
actions: "操作"
|
|
3257
|
+
},
|
|
3258
|
+
search: "搜索",
|
|
3259
|
+
location: "位置:",
|
|
3260
|
+
addBenefit: "添加福利",
|
|
3261
|
+
noDescription: "無描述",
|
|
3262
|
+
descriptionLimit: "{name} 描述不應超過 200 個字符。",
|
|
3263
|
+
availability: "可用性",
|
|
3264
|
+
internalOnly: "僅內部",
|
|
3265
|
+
notShown: "{name} 不會顯示給客户",
|
|
3266
|
+
submit: "提交",
|
|
3267
|
+
cancel: "取消",
|
|
3268
|
+
imageLabel: "{name} 圖片"
|
|
3269
|
+
},
|
|
3270
|
+
mission: {
|
|
3271
|
+
title: "任務",
|
|
3272
|
+
empty_state: {
|
|
3273
|
+
title: "創建您的任務活動",
|
|
3274
|
+
description: "任務是允許客户完成任務以賺取獎勵的活動。"
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
},
|
|
3278
|
+
analytic: {
|
|
3279
|
+
title: "分析",
|
|
3280
|
+
addGroup: "添加組",
|
|
3281
|
+
search: "搜索",
|
|
3282
|
+
summary: {
|
|
3283
|
+
title: "連接摘要",
|
|
3284
|
+
totalCampaign: "總活動",
|
|
3285
|
+
totalProgram: "總計劃",
|
|
3286
|
+
totalMember: "總會員"
|
|
3287
|
+
},
|
|
3288
|
+
emptyState: {
|
|
3289
|
+
title: "創建活動組以跟蹤績效",
|
|
3290
|
+
description: "通過創建組開始組織您的活動和促銷。組允許您彙總多個代金券、促銷或其他獎勵的績效指標。",
|
|
3291
|
+
action: "創建組"
|
|
3292
|
+
}
|
|
3293
|
+
},
|
|
3294
|
+
marketing: {
|
|
3295
|
+
title: "營銷材料",
|
|
3296
|
+
create: "創建營銷材料",
|
|
3297
|
+
search: "搜索",
|
|
3298
|
+
table: {
|
|
3299
|
+
name: "名稱",
|
|
3300
|
+
campaign: "活動",
|
|
3301
|
+
createdDate: "創建日期",
|
|
3302
|
+
actions: "操作"
|
|
3303
|
+
},
|
|
3304
|
+
delete: {
|
|
3305
|
+
confirm: "您確定要刪除{name}嗎?",
|
|
3306
|
+
removing: "正在刪除{name}",
|
|
3307
|
+
success: "{name}已成功刪除"
|
|
3308
|
+
},
|
|
3309
|
+
emptyState: {
|
|
3310
|
+
title: "創建營銷材料",
|
|
3311
|
+
description: "通過我們的AI驅動工具輕鬆提升您的營銷工作。為您想要的平台生成驚人的圖像和引人注目的標題。",
|
|
3312
|
+
action: "添加材料"
|
|
3313
|
+
},
|
|
3314
|
+
noResults: "未找到結果"
|
|
3315
|
+
},
|
|
3316
|
+
auditLogs: {
|
|
3317
|
+
title: "審計日誌"
|
|
3318
|
+
},
|
|
3319
|
+
setting: {
|
|
3320
|
+
title: "設置",
|
|
3321
|
+
basicInfo: {
|
|
3322
|
+
title: "基本信息",
|
|
3323
|
+
membershipTitle: "會員頭銜",
|
|
3324
|
+
memberAppUrl: "會員應用URL"
|
|
3325
|
+
},
|
|
3326
|
+
counterApp: {
|
|
3327
|
+
title: "計數器應用",
|
|
3328
|
+
linkDevice: "鏈接設備",
|
|
3329
|
+
device: {
|
|
3330
|
+
activationDate: "激活日期:",
|
|
3331
|
+
linkedLocation: "關聯位置:"
|
|
3332
|
+
}
|
|
3333
|
+
},
|
|
3334
|
+
advertisement: {
|
|
3335
|
+
title: "廣告",
|
|
3336
|
+
subtitle: "這將在FeedMe訂購應用上顯示"
|
|
3337
|
+
},
|
|
3338
|
+
sms: {
|
|
3339
|
+
title: "短信",
|
|
3340
|
+
brandName: "品牌名稱",
|
|
3341
|
+
messageFormat: "RM 0 {brand}: 您的客户消息",
|
|
3342
|
+
welcomeMessage: "您好,您已被邀請加入會員"
|
|
3343
|
+
},
|
|
3344
|
+
freeCredit: {
|
|
3345
|
+
title: "免費積分作為折扣",
|
|
3346
|
+
posVersion: "*POS v6.56或更高版本",
|
|
3347
|
+
description: "啓用後,這將允許免費積分在賬單中用作折扣(POS >=v6.56)"
|
|
3348
|
+
},
|
|
3349
|
+
memberCard: {
|
|
3350
|
+
title: "會員卡",
|
|
3351
|
+
description: "允許會員通過會員應用綁定卡"
|
|
3352
|
+
},
|
|
3353
|
+
location: {
|
|
3354
|
+
title: "激活位置",
|
|
3355
|
+
selectLabel: "選擇餐廳"
|
|
3356
|
+
},
|
|
3357
|
+
summary: {
|
|
3358
|
+
title: "忠誠度設置摘要",
|
|
3359
|
+
name: "名稱",
|
|
3360
|
+
advertisement: "廣告",
|
|
3361
|
+
noAds: "無廣告",
|
|
3362
|
+
freeCredit: "免費積分作為折扣",
|
|
3363
|
+
enabled: "已啓用",
|
|
3364
|
+
disabled: "已禁用",
|
|
3365
|
+
locations: "激活位置",
|
|
3366
|
+
allLocations: "所有位置"
|
|
3367
|
+
},
|
|
3368
|
+
action: {
|
|
3369
|
+
update: "更新"
|
|
3370
|
+
}
|
|
3371
|
+
},
|
|
3372
|
+
transaction: {
|
|
3373
|
+
title: "交易",
|
|
3374
|
+
tabs: {
|
|
3375
|
+
collection: "收藏",
|
|
3376
|
+
store: "商店"
|
|
3377
|
+
}
|
|
3378
|
+
},
|
|
3379
|
+
store: {
|
|
3380
|
+
title: "商店",
|
|
3381
|
+
setting: {
|
|
3382
|
+
title: "商店設置",
|
|
3383
|
+
company: {
|
|
3384
|
+
legal_info: "公司法律信息",
|
|
3385
|
+
name: "公司名稱",
|
|
3386
|
+
reg_no: "註冊號碼",
|
|
3387
|
+
tax_reg_no: "税務登記號碼",
|
|
3388
|
+
tax: "税務",
|
|
3389
|
+
phone: "電話號碼",
|
|
3390
|
+
address: {
|
|
3391
|
+
title: "地址",
|
|
3392
|
+
line1: "地址行1",
|
|
3393
|
+
line2: "地址行2",
|
|
3394
|
+
city: "城市",
|
|
3395
|
+
postcode: "郵政編碼",
|
|
3396
|
+
state: "州/省",
|
|
3397
|
+
country: "國家"
|
|
3398
|
+
}
|
|
3399
|
+
},
|
|
3400
|
+
stripe: {
|
|
3401
|
+
title: "Stripe集成"
|
|
3402
|
+
},
|
|
3403
|
+
update: {
|
|
3404
|
+
message: "正在更新商店設置",
|
|
3405
|
+
success: "商店設置更新成功"
|
|
3406
|
+
}
|
|
3407
|
+
},
|
|
3408
|
+
actions: {
|
|
3409
|
+
setting: "商店設置",
|
|
3410
|
+
manageReward: "管理獎勵",
|
|
3411
|
+
addCategory: "添加類別",
|
|
3412
|
+
addBundle: "添加配套"
|
|
3413
|
+
},
|
|
3414
|
+
category: {
|
|
3415
|
+
label: "類別",
|
|
3416
|
+
setup: {
|
|
3417
|
+
title: "請先設置您的商店設置,然後再添加類別。",
|
|
3418
|
+
action: "去設置",
|
|
3419
|
+
button: "更新商店設置"
|
|
3420
|
+
},
|
|
3421
|
+
add: "添加類別",
|
|
3422
|
+
edit: "編輯類別",
|
|
3423
|
+
remove: {
|
|
3424
|
+
confirm: "您確定要刪除類別嗎?",
|
|
3425
|
+
title: "刪除類別"
|
|
3426
|
+
},
|
|
3427
|
+
update: {
|
|
3428
|
+
deleting: "正在刪除類別",
|
|
3429
|
+
creating: "正在創建類別",
|
|
3430
|
+
updating: "正在更新類別",
|
|
3431
|
+
success: {
|
|
3432
|
+
deleted: "類別刪除成功",
|
|
3433
|
+
created: "類別創建成功",
|
|
3434
|
+
updated: "類別更新成功"
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
},
|
|
3438
|
+
bundle: {
|
|
3439
|
+
title: "商店捆綁",
|
|
3440
|
+
description: "添加您希望用户在此處消費和獲取的項目。它可以是一堆代金券、福利、體驗等!",
|
|
3441
|
+
delete: {
|
|
3442
|
+
confirm: "您確定要刪除此捆綁嗎?",
|
|
3443
|
+
title: "刪除捆綁"
|
|
3444
|
+
},
|
|
3445
|
+
update: {
|
|
3446
|
+
error: "意外錯誤",
|
|
3447
|
+
deleting: "正在刪除捆綁",
|
|
3448
|
+
creating: "正在創建捆綁",
|
|
3449
|
+
updating: "正在更新捆綁",
|
|
3450
|
+
success: {
|
|
3451
|
+
deleted: "捆綁刪除成功",
|
|
3452
|
+
created: "捆綁創建成功",
|
|
3453
|
+
updated: "捆綁更新成功"
|
|
3454
|
+
}
|
|
3455
|
+
},
|
|
3456
|
+
edit: {
|
|
3457
|
+
title: "編輯捆綁",
|
|
3458
|
+
create: "創建捆綁",
|
|
3459
|
+
basicInformation: "基本信息",
|
|
3460
|
+
bundleName: "捆綁名稱",
|
|
3461
|
+
bundleImage: "捆綁圖片",
|
|
3462
|
+
bundlePrice: "捆綁價格",
|
|
3463
|
+
bundleValue: "捆綁價值",
|
|
3464
|
+
originalPrice: "原價",
|
|
3465
|
+
originalPriceHelper: "留空或設置為0以禁用原價",
|
|
3466
|
+
pointNeeded: "所需積分",
|
|
3467
|
+
subscriptionSettings: "訂閲設置",
|
|
3468
|
+
stripePriceId: "Stripe價格ID",
|
|
3469
|
+
subscriptionValidity: "訂閲有效期(天)",
|
|
3470
|
+
submit: "提交",
|
|
3471
|
+
cancel: "取消",
|
|
3472
|
+
advanceSetting: "高級設置",
|
|
3473
|
+
credit: "點數",
|
|
3474
|
+
normalCredit: "普通積分",
|
|
3475
|
+
freeCredit: "免費積分",
|
|
3476
|
+
taxes: "税費",
|
|
3477
|
+
taxCharge: {
|
|
3478
|
+
title: "税費({type})",
|
|
3479
|
+
inclusive: "含税",
|
|
3480
|
+
exclusive: "不含税"
|
|
3481
|
+
},
|
|
3482
|
+
totalPrice: "總價",
|
|
3483
|
+
internalBundle: "內部配套",
|
|
3484
|
+
internalBundleDescription: "內部配套將在FeedMe會員應用中隱藏",
|
|
3485
|
+
hideInPos: "在POS中隱藏",
|
|
3486
|
+
hideInPosDescription: "配套將在FeedMe POS中隱藏",
|
|
3487
|
+
maxPerUser: "用户最大購買量",
|
|
3488
|
+
bundleReward: {
|
|
3489
|
+
title: "配套獎勵",
|
|
3490
|
+
description: "讓您的會員知道他們可以從此配套中獲得什麼",
|
|
3491
|
+
table: {
|
|
3492
|
+
title: "獎勵標題",
|
|
3493
|
+
type: "獎勵類型",
|
|
3494
|
+
description: "描述"
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
},
|
|
3500
|
+
storeRewards: {
|
|
3501
|
+
title: "商店獎勵",
|
|
3502
|
+
remove: {
|
|
3503
|
+
message: "You cannot remove a title here, please remove it at the Program > Title section.",
|
|
3504
|
+
title: "Delete reward",
|
|
3505
|
+
action: "Go to title section"
|
|
3506
|
+
},
|
|
3507
|
+
edit: {
|
|
3508
|
+
message: "You cannot edit a title here, please edit it at the Program > Title section.",
|
|
3509
|
+
title: "Update reward",
|
|
3510
|
+
action: "Go to title section"
|
|
3511
|
+
},
|
|
3512
|
+
description: "為您的客户創建和管理獎勵。",
|
|
3513
|
+
type: {
|
|
3514
|
+
label: "獎勵類型:{type}",
|
|
3515
|
+
all: "全部"
|
|
3516
|
+
},
|
|
3517
|
+
search: "搜索",
|
|
3518
|
+
delete: {
|
|
3519
|
+
confirm: "您確定要刪除此獎勵嗎?",
|
|
3520
|
+
title: "刪除獎勵",
|
|
3521
|
+
message: "正在刪除獎勵",
|
|
3522
|
+
success: "獎勵已刪除"
|
|
3523
|
+
},
|
|
3524
|
+
update: {
|
|
3525
|
+
message: "正在更新獎勵",
|
|
3526
|
+
success: "獎勵更新成功"
|
|
3527
|
+
},
|
|
3528
|
+
empty: {
|
|
3529
|
+
title: "創建獎勵",
|
|
3530
|
+
description: "為您的客户創建獎勵,以便他們在捆綁中兑換。",
|
|
3531
|
+
action: "創建獎勵"
|
|
3532
|
+
},
|
|
3533
|
+
create: "創建獎勵",
|
|
3534
|
+
table: {
|
|
3535
|
+
name: "名稱",
|
|
3536
|
+
type: "類型",
|
|
3537
|
+
validity: "有效期",
|
|
3538
|
+
used: "已使用",
|
|
3539
|
+
actions: "操作"
|
|
3540
|
+
}
|
|
3541
|
+
},
|
|
3542
|
+
prompt: {
|
|
3543
|
+
confirm: "確認",
|
|
3544
|
+
cancel: "取消"
|
|
3545
|
+
},
|
|
3546
|
+
editTierSheet: {
|
|
3547
|
+
add: "添加",
|
|
3548
|
+
create: "創建等級",
|
|
3549
|
+
basicInformation: "基本信息",
|
|
3550
|
+
tierName: "等級名稱",
|
|
3551
|
+
tierImage: "等級圖片",
|
|
3552
|
+
experienceThreshold: "經驗閾值",
|
|
3553
|
+
minExperience: "最小經驗",
|
|
3554
|
+
maxExperience: "最大經驗",
|
|
3555
|
+
actions: "操作",
|
|
3556
|
+
submit: "提交",
|
|
3557
|
+
cancel: "取消"
|
|
3558
|
+
},
|
|
3559
|
+
referral: {
|
|
3560
|
+
title: "推薦計劃",
|
|
3561
|
+
actions: {
|
|
3562
|
+
create: "創建推薦",
|
|
3563
|
+
manage_reward: "管理獎勵",
|
|
3564
|
+
terms: "條款和條件",
|
|
3565
|
+
manage_criteria: "管理條件",
|
|
3566
|
+
add_referral_tier: "添加推薦等級"
|
|
3567
|
+
},
|
|
3568
|
+
tabs: {
|
|
3569
|
+
overview: "概覽",
|
|
3570
|
+
record: "記錄"
|
|
3571
|
+
},
|
|
3572
|
+
referral_tier_title: "設置成功推薦的獎勵",
|
|
3573
|
+
referral_tier_description: "在所選推薦等級內為每個步驟添加和自定義獎勵。",
|
|
3574
|
+
add_referral_tier: "添加推薦等級",
|
|
3575
|
+
overview: {
|
|
3576
|
+
title: "概覽",
|
|
3577
|
+
total_joined: "總加入人數",
|
|
3578
|
+
total_redeem: "總兑換次數",
|
|
3579
|
+
total_referee: "總被推薦人數",
|
|
3580
|
+
pending: "待處理"
|
|
3581
|
+
},
|
|
3582
|
+
how_it_works: {
|
|
3583
|
+
title: "運作方式",
|
|
3584
|
+
generate_link: "生成鏈接",
|
|
3585
|
+
generate_link_for_member: "為會員生成鏈接",
|
|
3586
|
+
referee_join_reward: "被推薦人加入獎勵",
|
|
3587
|
+
referee_meet_criteria: "被推薦人滿足條件",
|
|
3588
|
+
referer_get_reward: "推薦人獲得獎勵",
|
|
3589
|
+
reward: "獎勵",
|
|
3590
|
+
criteria: "條件",
|
|
3591
|
+
reward_tier: "獎勵等級",
|
|
3592
|
+
referee_join_reward_description: "被推薦人將在被推薦人成功加入計劃並滿足條件時獲得獎勵",
|
|
3593
|
+
referral_tier_description: "推薦人將在被推薦人完成所有條件後獲得獎勵"
|
|
3594
|
+
},
|
|
3595
|
+
reward: {
|
|
3596
|
+
add_count: "添加次數",
|
|
3597
|
+
table: {
|
|
3598
|
+
count: "推薦次數",
|
|
3599
|
+
reward: "獎勵"
|
|
3600
|
+
},
|
|
3601
|
+
remove_referral_tier: "刪除推薦等級",
|
|
3602
|
+
confirm_remove_referral_tier: "您確定要刪除此推薦等級嗎?",
|
|
3603
|
+
remove_referral_count: "刪除推薦次數",
|
|
3604
|
+
confirm_remove_referral_count: "您確定要刪除此推薦次數嗎?"
|
|
3605
|
+
},
|
|
3606
|
+
editReferralTierSheet: {
|
|
3607
|
+
create: "創建推薦等級",
|
|
3608
|
+
edit: "編輯推薦等級",
|
|
3609
|
+
target_audience: "目標受眾",
|
|
3610
|
+
name: "名稱"
|
|
3611
|
+
},
|
|
3612
|
+
editReferralCountSheet: {
|
|
3613
|
+
add: "添加推薦次數",
|
|
3614
|
+
edit: "編輯推薦次數",
|
|
3615
|
+
referrer_reward: "推薦人獎勵",
|
|
3616
|
+
min_referral_count: "最小推薦次數",
|
|
3617
|
+
max_referral_count: "最大推薦次數",
|
|
3618
|
+
max_referral_count_description: "當最大推薦次數未設置時,將默認無限"
|
|
3619
|
+
},
|
|
3620
|
+
refereeRewardSheet: {
|
|
3621
|
+
referee_reward: "被推薦人獎勵"
|
|
3622
|
+
},
|
|
3623
|
+
referral_count: {
|
|
3624
|
+
title: "推薦次數",
|
|
3625
|
+
update: {
|
|
3626
|
+
range_discontinuous: {
|
|
3627
|
+
previous: `推薦次數範圍不連續。
|
|
3628
|
+
之前的範圍:{name} [{from} - {to}]。
|
|
3629
|
+
您想將之前的範圍更新為 [{from} - {newTo}] 嗎?`,
|
|
3630
|
+
next: `推薦次數範圍不連續。
|
|
3631
|
+
下一個範圍:{name} [{from} - {to}]。
|
|
3632
|
+
您想將下一個範圍更新為 [{newFrom} - {to}] 嗎?`
|
|
3633
|
+
}
|
|
3634
|
+
},
|
|
3635
|
+
remove: {
|
|
3636
|
+
confirm: "您確定要刪除此推薦次數嗎?",
|
|
3637
|
+
title: "刪除推薦次數",
|
|
3638
|
+
next_range: "更新下一個範圍",
|
|
3639
|
+
range_discontinuous: {
|
|
3640
|
+
previous: `推薦次數範圍不連續。
|
|
3641
|
+
之前的範圍:{name} [{from} - {to}]。
|
|
3642
|
+
您想將之前的範圍更新為 [{from} - {newTo}] 嗎?`,
|
|
3643
|
+
next: `推薦次數範圍不連續。
|
|
3644
|
+
下一個範圍:{name} [{from} - {to}]。
|
|
3645
|
+
您想將下一個範圍更新為 [{newFrom} - {to}] 嗎?`
|
|
2727
3646
|
}
|
|
2728
3647
|
}
|
|
2729
3648
|
},
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
url: "url",
|
|
2733
|
-
uuid: "uuid",
|
|
2734
|
-
cuid: "cuid",
|
|
2735
|
-
regex: "regex",
|
|
2736
|
-
datetime: "datetime"
|
|
3649
|
+
term_and_condition: {
|
|
3650
|
+
confirm_remove: "您確定要刪除條款和條件嗎?"
|
|
2737
3651
|
},
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
integer: "จำนวนเต็ม",
|
|
2744
|
-
float: "float",
|
|
2745
|
-
boolean: "boolean",
|
|
2746
|
-
date: "วันที่",
|
|
2747
|
-
bigint: "bigint",
|
|
2748
|
-
undefined: "ไม่ได้กำหนด",
|
|
2749
|
-
symbol: "สัญลักษณ์",
|
|
2750
|
-
null: "null",
|
|
2751
|
-
array: "อาร์เรย์",
|
|
2752
|
-
object: "วัตถุ",
|
|
2753
|
-
unknown: "ไม่ทราบ",
|
|
2754
|
-
promise: "promise",
|
|
2755
|
-
void: "void",
|
|
2756
|
-
never: "never",
|
|
2757
|
-
map: "map",
|
|
2758
|
-
set: "set"
|
|
3652
|
+
record: {
|
|
3653
|
+
referer_info: "推薦人信息",
|
|
3654
|
+
referee_info: "被推薦人信息",
|
|
3655
|
+
referee_criteria: "被推薦人條件",
|
|
3656
|
+
status: "狀態"
|
|
2759
3657
|
}
|
|
2760
3658
|
},
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
3659
|
+
reward: {
|
|
3660
|
+
title: "獎勵",
|
|
3661
|
+
description: "為成功推薦的客户提供獎勵",
|
|
3662
|
+
table: {
|
|
3663
|
+
title: "獎勵標題",
|
|
3664
|
+
type: "獎勵類型",
|
|
3665
|
+
description: "描述"
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3668
|
+
}, ze = {
|
|
3669
|
+
errors: {
|
|
3670
|
+
invalid_type: "預期輸入為{{expected}},而輸入為{{received}}",
|
|
3671
|
+
invalid_type_received_undefined: "必填",
|
|
3672
|
+
invalid_type_received_null: "必填",
|
|
3673
|
+
invalid_literal: "錯誤的字面量值,請輸入 {{expected}}",
|
|
3674
|
+
unrecognized_keys: "對象中的鍵無法識別: {{- keys}}",
|
|
3675
|
+
invalid_union: "不滿足聯合類型中的選項",
|
|
3676
|
+
invalid_union_discriminator: "標識值無法被區分。請輸入 {{- options}}",
|
|
3677
|
+
invalid_enum_value: "錯誤的枚舉值 '{{received}}'。請輸入 {{- options}}",
|
|
3678
|
+
invalid_arguments: "錯誤的函數參數格式",
|
|
3679
|
+
invalid_return_type: "錯誤的函數返回值格式",
|
|
3680
|
+
invalid_date: "錯誤的日期格式",
|
|
3681
|
+
custom: "錯誤的輸入格式",
|
|
3682
|
+
invalid_intersection_types: "交叉類型結果無法被合併",
|
|
3683
|
+
not_multiple_of: "數值必須是 {{multipleOf}} 的倍數",
|
|
3684
|
+
not_finite: "數值必須有限",
|
|
3685
|
+
invalid_string: {
|
|
3686
|
+
email: "錯誤的{{validation}}格式",
|
|
3687
|
+
url: "錯誤的{{validation}}格式",
|
|
3688
|
+
uuid: "錯誤的{{validation}}格式",
|
|
3689
|
+
cuid: "錯誤的{{validation}}格式",
|
|
3690
|
+
regex: "錯誤的格式",
|
|
3691
|
+
datetime: "錯誤的{{validation}}格式",
|
|
3692
|
+
startsWith: '文本必須以 "{{startsWith}}" 開頭',
|
|
3693
|
+
endsWith: '文本必須以 "{{endsWith}}" 結尾'
|
|
2764
3694
|
},
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
3695
|
+
too_small: {
|
|
3696
|
+
array: {
|
|
3697
|
+
exact: "數組元素必須為 {{minimum}} 個",
|
|
3698
|
+
inclusive: "數組元素不得少於 {{minimum}} 個",
|
|
3699
|
+
not_inclusive: "數組元素必須超過 {{minimum}} 個"
|
|
3700
|
+
},
|
|
3701
|
+
string: {
|
|
3702
|
+
exact: "文本長度必須為 {{minimum}} 個字符",
|
|
3703
|
+
inclusive: "文本長度不得少於 {{minimum}} 個字符",
|
|
3704
|
+
not_inclusive: "文本長度必須超過 {{minimum}} 個字符"
|
|
3705
|
+
},
|
|
3706
|
+
number: {
|
|
3707
|
+
exact: "數值必須為 {{minimum}}",
|
|
3708
|
+
inclusive: "數值不得小於 {{minimum}}",
|
|
3709
|
+
not_inclusive: "數值必須大於 {{minimum}}"
|
|
3710
|
+
},
|
|
3711
|
+
set: {
|
|
3712
|
+
exact: "錯誤的輸入格式",
|
|
3713
|
+
inclusive: "錯誤的輸入格式",
|
|
3714
|
+
not_inclusive: "錯誤的輸入格式"
|
|
3715
|
+
},
|
|
3716
|
+
date: {
|
|
3717
|
+
exact: "日期必須為 {{- minimum, datetime}}",
|
|
3718
|
+
inclusive: "日期不得晚於 {{- minimum, datetime}}",
|
|
3719
|
+
not_inclusive: "日期必須早於 {{- minimum, datetime}}"
|
|
3720
|
+
}
|
|
3721
|
+
},
|
|
3722
|
+
too_big: {
|
|
3723
|
+
array: {
|
|
3724
|
+
exact: "數組元素必須為 {{maximum}} 個",
|
|
3725
|
+
inclusive: "數組元素不得多於 {{maximum}} 個",
|
|
3726
|
+
not_inclusive: "數組元素必須少於 {{maximum}} 個"
|
|
3727
|
+
},
|
|
3728
|
+
string: {
|
|
3729
|
+
exact: "文本長度必須為 {{maximum}} 個字符",
|
|
3730
|
+
inclusive: "文本長度不得多於 {{maximum}} 個字符",
|
|
3731
|
+
not_inclusive: "文本長度必須少於 {{maximum}} 個字符"
|
|
3732
|
+
},
|
|
3733
|
+
number: {
|
|
3734
|
+
exact: "數值必須為 {{maximum}}",
|
|
3735
|
+
inclusive: "數值不得大於 {{maximum}}",
|
|
3736
|
+
not_inclusive: "數值必須小於 {{maximum}}"
|
|
3737
|
+
},
|
|
3738
|
+
set: {
|
|
3739
|
+
exact: "錯誤的輸入格式",
|
|
3740
|
+
inclusive: "錯誤的輸入格式",
|
|
3741
|
+
not_inclusive: "錯誤的輸入格式"
|
|
3742
|
+
},
|
|
3743
|
+
date: {
|
|
3744
|
+
exact: "日期必須為 {{- maximum, datetime}}",
|
|
3745
|
+
inclusive: "日期不得早於 {{- maximum, datetime}}",
|
|
3746
|
+
not_inclusive: "日期必須晚於 {{- maximum, datetime}}"
|
|
3747
|
+
}
|
|
2776
3748
|
}
|
|
2777
3749
|
},
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
3750
|
+
validations: {
|
|
3751
|
+
email: "郵件",
|
|
3752
|
+
url: "鏈接",
|
|
3753
|
+
uuid: "uuid",
|
|
3754
|
+
cuid: "cuid",
|
|
3755
|
+
regex: "正則表達式",
|
|
3756
|
+
datetime: "日期時間"
|
|
2781
3757
|
},
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
3758
|
+
types: {
|
|
3759
|
+
function: "函數",
|
|
3760
|
+
number: "數字",
|
|
3761
|
+
string: "字符串",
|
|
3762
|
+
nan: "非數",
|
|
3763
|
+
integer: "整數",
|
|
3764
|
+
float: "浮點數",
|
|
3765
|
+
boolean: "布爾值",
|
|
3766
|
+
date: "日期",
|
|
3767
|
+
bigint: "大整數",
|
|
3768
|
+
undefined: "未定義",
|
|
3769
|
+
symbol: "符號",
|
|
3770
|
+
null: "空對象",
|
|
3771
|
+
array: "數組",
|
|
3772
|
+
object: "對象",
|
|
3773
|
+
unknown: "未知",
|
|
3774
|
+
promise: "Promise",
|
|
3775
|
+
void: "空",
|
|
3776
|
+
never: "不存在",
|
|
3777
|
+
map: "字典",
|
|
3778
|
+
set: "集合"
|
|
2794
3779
|
}
|
|
2795
|
-
},
|
|
2796
|
-
|
|
3780
|
+
}, We = {
|
|
3781
|
+
timeframe: {
|
|
3782
|
+
end_before_start: "結束日期必須晚於或等於開始日期"
|
|
3783
|
+
},
|
|
3784
|
+
campaign: {
|
|
3785
|
+
rule_required: "當觸發類型為 '{type}' 時,需要一個規則",
|
|
3786
|
+
earning_amount_exceed: "收益金額必須小於 {max}(任務的最大收集量)",
|
|
3787
|
+
credit_validity_required: "信用活動需要一個有效期選項(必須是免費信用)",
|
|
3788
|
+
mission_first_receive: "任務活動必須遵循首次接收",
|
|
3789
|
+
schedule_period_required: "計劃觸發需要設置一個活動期",
|
|
3790
|
+
active_period_invalid: "活動期規則無效",
|
|
3791
|
+
fixed_earning_required: "非賬單完成活動需要固定收益選項",
|
|
3792
|
+
reward_threshold_range: "獎勵閾值必須在任務結束範圍內",
|
|
3793
|
+
reward_threshold_unique: "獎勵閾值必須是唯一的",
|
|
3794
|
+
effect_required: "效果是必需的"
|
|
3795
|
+
}
|
|
3796
|
+
}, Ye = {
|
|
3797
|
+
connect: Ge,
|
|
3798
|
+
connectZod: ze,
|
|
3799
|
+
connectZodCustom: We
|
|
2797
3800
|
};
|
|
2798
3801
|
var b;
|
|
2799
3802
|
(function(a) {
|
|
2800
|
-
a.assertEqual = (
|
|
2801
|
-
function e(
|
|
3803
|
+
a.assertEqual = (n) => n;
|
|
3804
|
+
function e(n) {
|
|
2802
3805
|
}
|
|
2803
3806
|
a.assertIs = e;
|
|
2804
|
-
function t(
|
|
3807
|
+
function t(n) {
|
|
2805
3808
|
throw new Error();
|
|
2806
3809
|
}
|
|
2807
|
-
a.assertNever = t, a.arrayToEnum = (
|
|
2808
|
-
const
|
|
2809
|
-
for (const s of
|
|
2810
|
-
|
|
2811
|
-
return
|
|
2812
|
-
}, a.getValidEnumValues = (
|
|
2813
|
-
const
|
|
2814
|
-
for (const o of
|
|
2815
|
-
s[o] =
|
|
3810
|
+
a.assertNever = t, a.arrayToEnum = (n) => {
|
|
3811
|
+
const r = {};
|
|
3812
|
+
for (const s of n)
|
|
3813
|
+
r[s] = s;
|
|
3814
|
+
return r;
|
|
3815
|
+
}, a.getValidEnumValues = (n) => {
|
|
3816
|
+
const r = a.objectKeys(n).filter((o) => typeof n[n[o]] != "number"), s = {};
|
|
3817
|
+
for (const o of r)
|
|
3818
|
+
s[o] = n[o];
|
|
2816
3819
|
return a.objectValues(s);
|
|
2817
|
-
}, a.objectValues = (
|
|
2818
|
-
return r
|
|
2819
|
-
}), a.objectKeys = typeof Object.keys == "function" ? (
|
|
2820
|
-
const
|
|
2821
|
-
for (const s in
|
|
2822
|
-
Object.prototype.hasOwnProperty.call(
|
|
2823
|
-
return
|
|
2824
|
-
}, a.find = (
|
|
2825
|
-
for (const s of
|
|
2826
|
-
if (
|
|
3820
|
+
}, a.objectValues = (n) => a.objectKeys(n).map(function(r) {
|
|
3821
|
+
return n[r];
|
|
3822
|
+
}), a.objectKeys = typeof Object.keys == "function" ? (n) => Object.keys(n) : (n) => {
|
|
3823
|
+
const r = [];
|
|
3824
|
+
for (const s in n)
|
|
3825
|
+
Object.prototype.hasOwnProperty.call(n, s) && r.push(s);
|
|
3826
|
+
return r;
|
|
3827
|
+
}, a.find = (n, r) => {
|
|
3828
|
+
for (const s of n)
|
|
3829
|
+
if (r(s))
|
|
2827
3830
|
return s;
|
|
2828
|
-
}, a.isInteger = typeof Number.isInteger == "function" ? (
|
|
2829
|
-
function n
|
|
2830
|
-
return
|
|
3831
|
+
}, a.isInteger = typeof Number.isInteger == "function" ? (n) => Number.isInteger(n) : (n) => typeof n == "number" && isFinite(n) && Math.floor(n) === n;
|
|
3832
|
+
function i(n, r = " | ") {
|
|
3833
|
+
return n.map((s) => typeof s == "string" ? `'${s}'` : s).join(r);
|
|
2831
3834
|
}
|
|
2832
|
-
a.joinValues =
|
|
3835
|
+
a.joinValues = i, a.jsonStringifyReplacer = (n, r) => typeof r == "bigint" ? r.toString() : r;
|
|
2833
3836
|
})(b || (b = {}));
|
|
2834
3837
|
var be;
|
|
2835
3838
|
(function(a) {
|
|
@@ -2839,7 +3842,7 @@ var be;
|
|
|
2839
3842
|
// second overwrites first
|
|
2840
3843
|
});
|
|
2841
3844
|
})(be || (be = {}));
|
|
2842
|
-
const
|
|
3845
|
+
const l = b.arrayToEnum([
|
|
2843
3846
|
"string",
|
|
2844
3847
|
"nan",
|
|
2845
3848
|
"number",
|
|
@@ -2863,23 +3866,23 @@ const u = b.arrayToEnum([
|
|
|
2863
3866
|
]), j = (a) => {
|
|
2864
3867
|
switch (typeof a) {
|
|
2865
3868
|
case "undefined":
|
|
2866
|
-
return
|
|
3869
|
+
return l.undefined;
|
|
2867
3870
|
case "string":
|
|
2868
|
-
return
|
|
3871
|
+
return l.string;
|
|
2869
3872
|
case "number":
|
|
2870
|
-
return isNaN(a) ?
|
|
3873
|
+
return isNaN(a) ? l.nan : l.number;
|
|
2871
3874
|
case "boolean":
|
|
2872
|
-
return
|
|
3875
|
+
return l.boolean;
|
|
2873
3876
|
case "function":
|
|
2874
|
-
return
|
|
3877
|
+
return l.function;
|
|
2875
3878
|
case "bigint":
|
|
2876
|
-
return
|
|
3879
|
+
return l.bigint;
|
|
2877
3880
|
case "symbol":
|
|
2878
|
-
return
|
|
3881
|
+
return l.symbol;
|
|
2879
3882
|
case "object":
|
|
2880
|
-
return Array.isArray(a) ?
|
|
3883
|
+
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;
|
|
2881
3884
|
default:
|
|
2882
|
-
return
|
|
3885
|
+
return l.unknown;
|
|
2883
3886
|
}
|
|
2884
3887
|
}, c = b.arrayToEnum([
|
|
2885
3888
|
"invalid_type",
|
|
@@ -2898,13 +3901,13 @@ const u = b.arrayToEnum([
|
|
|
2898
3901
|
"invalid_intersection_types",
|
|
2899
3902
|
"not_multiple_of",
|
|
2900
3903
|
"not_finite"
|
|
2901
|
-
]),
|
|
3904
|
+
]), Fe = (a) => JSON.stringify(a, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
2902
3905
|
class E extends Error {
|
|
2903
3906
|
constructor(e) {
|
|
2904
|
-
super(), this.issues = [], this.addIssue = (
|
|
2905
|
-
this.issues = [...this.issues,
|
|
2906
|
-
}, this.addIssues = (
|
|
2907
|
-
this.issues = [...this.issues, ...
|
|
3907
|
+
super(), this.issues = [], this.addIssue = (i) => {
|
|
3908
|
+
this.issues = [...this.issues, i];
|
|
3909
|
+
}, this.addIssues = (i = []) => {
|
|
3910
|
+
this.issues = [...this.issues, ...i];
|
|
2908
3911
|
};
|
|
2909
3912
|
const t = new.target.prototype;
|
|
2910
3913
|
Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
|
|
@@ -2913,27 +3916,27 @@ class E extends Error {
|
|
|
2913
3916
|
return this.issues;
|
|
2914
3917
|
}
|
|
2915
3918
|
format(e) {
|
|
2916
|
-
const t = e || function(
|
|
2917
|
-
return
|
|
2918
|
-
},
|
|
2919
|
-
for (const s of
|
|
3919
|
+
const t = e || function(r) {
|
|
3920
|
+
return r.message;
|
|
3921
|
+
}, i = { _errors: [] }, n = (r) => {
|
|
3922
|
+
for (const s of r.issues)
|
|
2920
3923
|
if (s.code === "invalid_union")
|
|
2921
|
-
s.unionErrors.map(
|
|
3924
|
+
s.unionErrors.map(n);
|
|
2922
3925
|
else if (s.code === "invalid_return_type")
|
|
2923
|
-
|
|
3926
|
+
n(s.returnTypeError);
|
|
2924
3927
|
else if (s.code === "invalid_arguments")
|
|
2925
|
-
|
|
3928
|
+
n(s.argumentsError);
|
|
2926
3929
|
else if (s.path.length === 0)
|
|
2927
|
-
|
|
3930
|
+
i._errors.push(t(s));
|
|
2928
3931
|
else {
|
|
2929
|
-
let o =
|
|
3932
|
+
let o = i, m = 0;
|
|
2930
3933
|
for (; m < s.path.length; ) {
|
|
2931
3934
|
const d = s.path[m];
|
|
2932
3935
|
m === s.path.length - 1 ? (o[d] = o[d] || { _errors: [] }, o[d]._errors.push(t(s))) : o[d] = o[d] || { _errors: [] }, o = o[d], m++;
|
|
2933
3936
|
}
|
|
2934
3937
|
}
|
|
2935
3938
|
};
|
|
2936
|
-
return
|
|
3939
|
+
return n(this), i;
|
|
2937
3940
|
}
|
|
2938
3941
|
toString() {
|
|
2939
3942
|
return this.message;
|
|
@@ -2945,10 +3948,10 @@ class E extends Error {
|
|
|
2945
3948
|
return this.issues.length === 0;
|
|
2946
3949
|
}
|
|
2947
3950
|
flatten(e = (t) => t.message) {
|
|
2948
|
-
const t = {},
|
|
2949
|
-
for (const
|
|
2950
|
-
|
|
2951
|
-
return { formErrors:
|
|
3951
|
+
const t = {}, i = [];
|
|
3952
|
+
for (const n of this.issues)
|
|
3953
|
+
n.path.length > 0 ? (t[n.path[0]] = t[n.path[0]] || [], t[n.path[0]].push(e(n))) : i.push(e(n));
|
|
3954
|
+
return { formErrors: i, fieldErrors: t };
|
|
2952
3955
|
}
|
|
2953
3956
|
get formErrors() {
|
|
2954
3957
|
return this.flatten();
|
|
@@ -2959,7 +3962,7 @@ const F = (a, e) => {
|
|
|
2959
3962
|
let t;
|
|
2960
3963
|
switch (a.code) {
|
|
2961
3964
|
case c.invalid_type:
|
|
2962
|
-
a.received ===
|
|
3965
|
+
a.received === l.undefined ? t = "Required" : t = `Expected ${a.expected}, received ${a.received}`;
|
|
2963
3966
|
break;
|
|
2964
3967
|
case c.invalid_literal:
|
|
2965
3968
|
t = `Invalid literal value, expected ${JSON.stringify(a.expected, b.jsonStringifyReplacer)}`;
|
|
@@ -3012,28 +4015,28 @@ const F = (a, e) => {
|
|
|
3012
4015
|
return { message: t };
|
|
3013
4016
|
};
|
|
3014
4017
|
let ke = F;
|
|
3015
|
-
function
|
|
4018
|
+
function He(a) {
|
|
3016
4019
|
ke = a;
|
|
3017
4020
|
}
|
|
3018
4021
|
function ce() {
|
|
3019
4022
|
return ke;
|
|
3020
4023
|
}
|
|
3021
4024
|
const de = (a) => {
|
|
3022
|
-
const { data: e, path: t, errorMaps:
|
|
3023
|
-
...
|
|
3024
|
-
path:
|
|
4025
|
+
const { data: e, path: t, errorMaps: i, issueData: n } = a, r = [...t, ...n.path || []], s = {
|
|
4026
|
+
...n,
|
|
4027
|
+
path: r
|
|
3025
4028
|
};
|
|
3026
4029
|
let o = "";
|
|
3027
|
-
const m =
|
|
4030
|
+
const m = i.filter((d) => !!d).slice().reverse();
|
|
3028
4031
|
for (const d of m)
|
|
3029
4032
|
o = d(s, { data: e, defaultError: o }).message;
|
|
3030
4033
|
return {
|
|
3031
|
-
...
|
|
3032
|
-
path:
|
|
3033
|
-
message:
|
|
4034
|
+
...n,
|
|
4035
|
+
path: r,
|
|
4036
|
+
message: n.message || o
|
|
3034
4037
|
};
|
|
3035
|
-
},
|
|
3036
|
-
function
|
|
4038
|
+
}, Je = [];
|
|
4039
|
+
function u(a, e) {
|
|
3037
4040
|
const t = de({
|
|
3038
4041
|
issueData: e,
|
|
3039
4042
|
data: a.data,
|
|
@@ -3044,7 +4047,7 @@ function l(a, e) {
|
|
|
3044
4047
|
ce(),
|
|
3045
4048
|
F
|
|
3046
4049
|
// then global default map
|
|
3047
|
-
].filter((
|
|
4050
|
+
].filter((i) => !!i)
|
|
3048
4051
|
});
|
|
3049
4052
|
a.common.issues.push(t);
|
|
3050
4053
|
}
|
|
@@ -3059,44 +4062,44 @@ class C {
|
|
|
3059
4062
|
this.value !== "aborted" && (this.value = "aborted");
|
|
3060
4063
|
}
|
|
3061
4064
|
static mergeArray(e, t) {
|
|
3062
|
-
const
|
|
3063
|
-
for (const
|
|
3064
|
-
if (
|
|
3065
|
-
return
|
|
3066
|
-
|
|
4065
|
+
const i = [];
|
|
4066
|
+
for (const n of t) {
|
|
4067
|
+
if (n.status === "aborted")
|
|
4068
|
+
return _;
|
|
4069
|
+
n.status === "dirty" && e.dirty(), i.push(n.value);
|
|
3067
4070
|
}
|
|
3068
|
-
return { status: e.value, value:
|
|
4071
|
+
return { status: e.value, value: i };
|
|
3069
4072
|
}
|
|
3070
4073
|
static async mergeObjectAsync(e, t) {
|
|
3071
|
-
const
|
|
3072
|
-
for (const
|
|
3073
|
-
|
|
3074
|
-
key: await
|
|
3075
|
-
value: await
|
|
4074
|
+
const i = [];
|
|
4075
|
+
for (const n of t)
|
|
4076
|
+
i.push({
|
|
4077
|
+
key: await n.key,
|
|
4078
|
+
value: await n.value
|
|
3076
4079
|
});
|
|
3077
|
-
return C.mergeObjectSync(e,
|
|
4080
|
+
return C.mergeObjectSync(e, i);
|
|
3078
4081
|
}
|
|
3079
4082
|
static mergeObjectSync(e, t) {
|
|
3080
|
-
const
|
|
3081
|
-
for (const
|
|
3082
|
-
const { key:
|
|
3083
|
-
if (
|
|
3084
|
-
return
|
|
3085
|
-
|
|
4083
|
+
const i = {};
|
|
4084
|
+
for (const n of t) {
|
|
4085
|
+
const { key: r, value: s } = n;
|
|
4086
|
+
if (r.status === "aborted" || s.status === "aborted")
|
|
4087
|
+
return _;
|
|
4088
|
+
r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" || n.alwaysSet) && (i[r.value] = s.value);
|
|
3086
4089
|
}
|
|
3087
|
-
return { status: e.value, value:
|
|
4090
|
+
return { status: e.value, value: i };
|
|
3088
4091
|
}
|
|
3089
4092
|
}
|
|
3090
|
-
const
|
|
4093
|
+
const _ = Object.freeze({
|
|
3091
4094
|
status: "aborted"
|
|
3092
|
-
}), Se = (a) => ({ status: "dirty", value: a }), k = (a) => ({ status: "valid", value: a }), xe = (a) => a.status === "aborted", we = (a) => a.status === "dirty", H = (a) => a.status === "valid",
|
|
4095
|
+
}), Se = (a) => ({ status: "dirty", value: a }), k = (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;
|
|
3093
4096
|
var p;
|
|
3094
4097
|
(function(a) {
|
|
3095
4098
|
a.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, a.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
3096
4099
|
})(p || (p = {}));
|
|
3097
4100
|
class N {
|
|
3098
|
-
constructor(e, t,
|
|
3099
|
-
this._cachedPath = [], this.parent = e, this.data = t, this._path =
|
|
4101
|
+
constructor(e, t, i, n) {
|
|
4102
|
+
this._cachedPath = [], this.parent = e, this.data = t, this._path = i, this._key = n;
|
|
3100
4103
|
}
|
|
3101
4104
|
get path() {
|
|
3102
4105
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
@@ -3117,13 +4120,13 @@ const Ce = (a, e) => {
|
|
|
3117
4120
|
}
|
|
3118
4121
|
};
|
|
3119
4122
|
};
|
|
3120
|
-
function
|
|
4123
|
+
function g(a) {
|
|
3121
4124
|
if (!a)
|
|
3122
4125
|
return {};
|
|
3123
|
-
const { errorMap: e, invalid_type_error: t, required_error:
|
|
3124
|
-
if (e && (t ||
|
|
4126
|
+
const { errorMap: e, invalid_type_error: t, required_error: i, description: n } = a;
|
|
4127
|
+
if (e && (t || i))
|
|
3125
4128
|
throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
|
|
3126
|
-
return e ? { errorMap: e, description:
|
|
4129
|
+
return e ? { errorMap: e, description: n } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: i ?? o.defaultError } : { message: t ?? o.defaultError }, description: n };
|
|
3127
4130
|
}
|
|
3128
4131
|
class v {
|
|
3129
4132
|
constructor(e) {
|
|
@@ -3160,7 +4163,7 @@ class v {
|
|
|
3160
4163
|
}
|
|
3161
4164
|
_parseSync(e) {
|
|
3162
4165
|
const t = this._parse(e);
|
|
3163
|
-
if (
|
|
4166
|
+
if (le(t))
|
|
3164
4167
|
throw new Error("Synchronous parse encountered promise.");
|
|
3165
4168
|
return t;
|
|
3166
4169
|
}
|
|
@@ -3169,17 +4172,17 @@ class v {
|
|
|
3169
4172
|
return Promise.resolve(t);
|
|
3170
4173
|
}
|
|
3171
4174
|
parse(e, t) {
|
|
3172
|
-
const
|
|
3173
|
-
if (
|
|
3174
|
-
return
|
|
3175
|
-
throw
|
|
4175
|
+
const i = this.safeParse(e, t);
|
|
4176
|
+
if (i.success)
|
|
4177
|
+
return i.data;
|
|
4178
|
+
throw i.error;
|
|
3176
4179
|
}
|
|
3177
4180
|
safeParse(e, t) {
|
|
3178
|
-
var
|
|
3179
|
-
const
|
|
4181
|
+
var i;
|
|
4182
|
+
const n = {
|
|
3180
4183
|
common: {
|
|
3181
4184
|
issues: [],
|
|
3182
|
-
async: (
|
|
4185
|
+
async: (i = t == null ? void 0 : t.async) !== null && i !== void 0 ? i : !1,
|
|
3183
4186
|
contextualErrorMap: t == null ? void 0 : t.errorMap
|
|
3184
4187
|
},
|
|
3185
4188
|
path: (t == null ? void 0 : t.path) || [],
|
|
@@ -3187,17 +4190,17 @@ class v {
|
|
|
3187
4190
|
parent: null,
|
|
3188
4191
|
data: e,
|
|
3189
4192
|
parsedType: j(e)
|
|
3190
|
-
},
|
|
3191
|
-
return Ce(
|
|
4193
|
+
}, r = this._parseSync({ data: e, path: n.path, parent: n });
|
|
4194
|
+
return Ce(n, r);
|
|
3192
4195
|
}
|
|
3193
4196
|
async parseAsync(e, t) {
|
|
3194
|
-
const
|
|
3195
|
-
if (
|
|
3196
|
-
return
|
|
3197
|
-
throw
|
|
4197
|
+
const i = await this.safeParseAsync(e, t);
|
|
4198
|
+
if (i.success)
|
|
4199
|
+
return i.data;
|
|
4200
|
+
throw i.error;
|
|
3198
4201
|
}
|
|
3199
4202
|
async safeParseAsync(e, t) {
|
|
3200
|
-
const
|
|
4203
|
+
const i = {
|
|
3201
4204
|
common: {
|
|
3202
4205
|
issues: [],
|
|
3203
4206
|
contextualErrorMap: t == null ? void 0 : t.errorMap,
|
|
@@ -3208,21 +4211,21 @@ class v {
|
|
|
3208
4211
|
parent: null,
|
|
3209
4212
|
data: e,
|
|
3210
4213
|
parsedType: j(e)
|
|
3211
|
-
},
|
|
3212
|
-
return Ce(
|
|
4214
|
+
}, n = this._parse({ data: e, path: i.path, parent: i }), r = await (le(n) ? n : Promise.resolve(n));
|
|
4215
|
+
return Ce(i, r);
|
|
3213
4216
|
}
|
|
3214
4217
|
refine(e, t) {
|
|
3215
|
-
const
|
|
3216
|
-
return this._refinement((
|
|
3217
|
-
const s = e(
|
|
4218
|
+
const i = (n) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(n) : t;
|
|
4219
|
+
return this._refinement((n, r) => {
|
|
4220
|
+
const s = e(n), o = () => r.addIssue({
|
|
3218
4221
|
code: c.custom,
|
|
3219
|
-
...n
|
|
4222
|
+
...i(n)
|
|
3220
4223
|
});
|
|
3221
4224
|
return typeof Promise < "u" && s instanceof Promise ? s.then((m) => m ? !0 : (o(), !1)) : s ? !0 : (o(), !1);
|
|
3222
4225
|
});
|
|
3223
4226
|
}
|
|
3224
4227
|
refinement(e, t) {
|
|
3225
|
-
return this._refinement((
|
|
4228
|
+
return this._refinement((i, n) => e(i) ? !0 : (n.addIssue(typeof t == "function" ? t(i, n) : t), !1));
|
|
3226
4229
|
}
|
|
3227
4230
|
_refinement(e) {
|
|
3228
4231
|
return new I({
|
|
@@ -3235,7 +4238,7 @@ class v {
|
|
|
3235
4238
|
return this._refinement(e);
|
|
3236
4239
|
}
|
|
3237
4240
|
optional() {
|
|
3238
|
-
return
|
|
4241
|
+
return M.create(this, this._def);
|
|
3239
4242
|
}
|
|
3240
4243
|
nullable() {
|
|
3241
4244
|
return q.create(this, this._def);
|
|
@@ -3257,7 +4260,7 @@ class v {
|
|
|
3257
4260
|
}
|
|
3258
4261
|
transform(e) {
|
|
3259
4262
|
return new I({
|
|
3260
|
-
...
|
|
4263
|
+
...g(this._def),
|
|
3261
4264
|
schema: this,
|
|
3262
4265
|
typeName: f.ZodEffects,
|
|
3263
4266
|
effect: { type: "transform", transform: e }
|
|
@@ -3265,8 +4268,8 @@ class v {
|
|
|
3265
4268
|
}
|
|
3266
4269
|
default(e) {
|
|
3267
4270
|
const t = typeof e == "function" ? e : () => e;
|
|
3268
|
-
return new
|
|
3269
|
-
...
|
|
4271
|
+
return new re({
|
|
4272
|
+
...g(this._def),
|
|
3270
4273
|
innerType: this,
|
|
3271
4274
|
defaultValue: t,
|
|
3272
4275
|
typeName: f.ZodDefault
|
|
@@ -3276,13 +4279,13 @@ class v {
|
|
|
3276
4279
|
return new Ee({
|
|
3277
4280
|
typeName: f.ZodBranded,
|
|
3278
4281
|
type: this,
|
|
3279
|
-
...
|
|
4282
|
+
...g(this._def)
|
|
3280
4283
|
});
|
|
3281
4284
|
}
|
|
3282
4285
|
catch(e) {
|
|
3283
4286
|
const t = typeof e == "function" ? e : () => e;
|
|
3284
4287
|
return new fe({
|
|
3285
|
-
...
|
|
4288
|
+
...g(this._def),
|
|
3286
4289
|
innerType: this,
|
|
3287
4290
|
catchValue: t,
|
|
3288
4291
|
typeName: f.ZodCatch
|
|
@@ -3299,7 +4302,7 @@ class v {
|
|
|
3299
4302
|
return se.create(this, e);
|
|
3300
4303
|
}
|
|
3301
4304
|
readonly() {
|
|
3302
|
-
return
|
|
4305
|
+
return _e.create(this);
|
|
3303
4306
|
}
|
|
3304
4307
|
isOptional() {
|
|
3305
4308
|
return this.safeParse(void 0).success;
|
|
@@ -3308,142 +4311,142 @@ class v {
|
|
|
3308
4311
|
return this.safeParse(null).success;
|
|
3309
4312
|
}
|
|
3310
4313
|
}
|
|
3311
|
-
const
|
|
4314
|
+
const Xe = /^c[^\s-]{8,}$/i, Ke = /^[a-z][a-z0-9]*$/, Qe = /^[0-9A-HJKMNP-TV-Z]{26}$/, et = /^[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, tt = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, at = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
3312
4315
|
let ye;
|
|
3313
|
-
const
|
|
3314
|
-
function
|
|
3315
|
-
return !!((e === "v4" || !e) &&
|
|
4316
|
+
const it = /^(((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-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})))$/, rt = (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$");
|
|
4317
|
+
function st(a, e) {
|
|
4318
|
+
return !!((e === "v4" || !e) && it.test(a) || (e === "v6" || !e) && nt.test(a));
|
|
3316
4319
|
}
|
|
3317
4320
|
class A extends v {
|
|
3318
4321
|
_parse(e) {
|
|
3319
|
-
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !==
|
|
3320
|
-
const
|
|
3321
|
-
return
|
|
3322
|
-
|
|
4322
|
+
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== l.string) {
|
|
4323
|
+
const r = this._getOrReturnCtx(e);
|
|
4324
|
+
return u(
|
|
4325
|
+
r,
|
|
3323
4326
|
{
|
|
3324
4327
|
code: c.invalid_type,
|
|
3325
|
-
expected:
|
|
3326
|
-
received:
|
|
4328
|
+
expected: l.string,
|
|
4329
|
+
received: r.parsedType
|
|
3327
4330
|
}
|
|
3328
4331
|
//
|
|
3329
|
-
),
|
|
4332
|
+
), _;
|
|
3330
4333
|
}
|
|
3331
|
-
const
|
|
3332
|
-
let
|
|
3333
|
-
for (const
|
|
3334
|
-
if (
|
|
3335
|
-
e.data.length <
|
|
4334
|
+
const i = new C();
|
|
4335
|
+
let n;
|
|
4336
|
+
for (const r of this._def.checks)
|
|
4337
|
+
if (r.kind === "min")
|
|
4338
|
+
e.data.length < r.value && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3336
4339
|
code: c.too_small,
|
|
3337
|
-
minimum:
|
|
4340
|
+
minimum: r.value,
|
|
3338
4341
|
type: "string",
|
|
3339
4342
|
inclusive: !0,
|
|
3340
4343
|
exact: !1,
|
|
3341
|
-
message:
|
|
3342
|
-
}),
|
|
3343
|
-
else if (
|
|
3344
|
-
e.data.length >
|
|
4344
|
+
message: r.message
|
|
4345
|
+
}), i.dirty());
|
|
4346
|
+
else if (r.kind === "max")
|
|
4347
|
+
e.data.length > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3345
4348
|
code: c.too_big,
|
|
3346
|
-
maximum:
|
|
4349
|
+
maximum: r.value,
|
|
3347
4350
|
type: "string",
|
|
3348
4351
|
inclusive: !0,
|
|
3349
4352
|
exact: !1,
|
|
3350
|
-
message:
|
|
3351
|
-
}),
|
|
3352
|
-
else if (
|
|
3353
|
-
const s = e.data.length >
|
|
3354
|
-
(s || o) && (
|
|
4353
|
+
message: r.message
|
|
4354
|
+
}), i.dirty());
|
|
4355
|
+
else if (r.kind === "length") {
|
|
4356
|
+
const s = e.data.length > r.value, o = e.data.length < r.value;
|
|
4357
|
+
(s || o) && (n = this._getOrReturnCtx(e, n), s ? u(n, {
|
|
3355
4358
|
code: c.too_big,
|
|
3356
|
-
maximum:
|
|
4359
|
+
maximum: r.value,
|
|
3357
4360
|
type: "string",
|
|
3358
4361
|
inclusive: !0,
|
|
3359
4362
|
exact: !0,
|
|
3360
|
-
message:
|
|
3361
|
-
}) : o &&
|
|
4363
|
+
message: r.message
|
|
4364
|
+
}) : o && u(n, {
|
|
3362
4365
|
code: c.too_small,
|
|
3363
|
-
minimum:
|
|
4366
|
+
minimum: r.value,
|
|
3364
4367
|
type: "string",
|
|
3365
4368
|
inclusive: !0,
|
|
3366
4369
|
exact: !0,
|
|
3367
|
-
message:
|
|
3368
|
-
}),
|
|
3369
|
-
} else if (
|
|
3370
|
-
|
|
4370
|
+
message: r.message
|
|
4371
|
+
}), i.dirty());
|
|
4372
|
+
} else if (r.kind === "email")
|
|
4373
|
+
tt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3371
4374
|
validation: "email",
|
|
3372
4375
|
code: c.invalid_string,
|
|
3373
|
-
message:
|
|
3374
|
-
}),
|
|
3375
|
-
else if (
|
|
3376
|
-
ye || (ye = new RegExp(
|
|
4376
|
+
message: r.message
|
|
4377
|
+
}), i.dirty());
|
|
4378
|
+
else if (r.kind === "emoji")
|
|
4379
|
+
ye || (ye = new RegExp(at, "u")), ye.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3377
4380
|
validation: "emoji",
|
|
3378
4381
|
code: c.invalid_string,
|
|
3379
|
-
message:
|
|
3380
|
-
}),
|
|
3381
|
-
else if (
|
|
3382
|
-
|
|
4382
|
+
message: r.message
|
|
4383
|
+
}), i.dirty());
|
|
4384
|
+
else if (r.kind === "uuid")
|
|
4385
|
+
et.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3383
4386
|
validation: "uuid",
|
|
3384
4387
|
code: c.invalid_string,
|
|
3385
|
-
message:
|
|
3386
|
-
}),
|
|
3387
|
-
else if (
|
|
3388
|
-
|
|
4388
|
+
message: r.message
|
|
4389
|
+
}), i.dirty());
|
|
4390
|
+
else if (r.kind === "cuid")
|
|
4391
|
+
Xe.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3389
4392
|
validation: "cuid",
|
|
3390
4393
|
code: c.invalid_string,
|
|
3391
|
-
message:
|
|
3392
|
-
}),
|
|
3393
|
-
else if (
|
|
3394
|
-
|
|
4394
|
+
message: r.message
|
|
4395
|
+
}), i.dirty());
|
|
4396
|
+
else if (r.kind === "cuid2")
|
|
4397
|
+
Ke.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3395
4398
|
validation: "cuid2",
|
|
3396
4399
|
code: c.invalid_string,
|
|
3397
|
-
message:
|
|
3398
|
-
}),
|
|
3399
|
-
else if (
|
|
3400
|
-
|
|
4400
|
+
message: r.message
|
|
4401
|
+
}), i.dirty());
|
|
4402
|
+
else if (r.kind === "ulid")
|
|
4403
|
+
Qe.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3401
4404
|
validation: "ulid",
|
|
3402
4405
|
code: c.invalid_string,
|
|
3403
|
-
message:
|
|
3404
|
-
}),
|
|
3405
|
-
else if (
|
|
4406
|
+
message: r.message
|
|
4407
|
+
}), i.dirty());
|
|
4408
|
+
else if (r.kind === "url")
|
|
3406
4409
|
try {
|
|
3407
4410
|
new URL(e.data);
|
|
3408
4411
|
} catch {
|
|
3409
|
-
|
|
4412
|
+
n = this._getOrReturnCtx(e, n), u(n, {
|
|
3410
4413
|
validation: "url",
|
|
3411
4414
|
code: c.invalid_string,
|
|
3412
|
-
message:
|
|
3413
|
-
}),
|
|
4415
|
+
message: r.message
|
|
4416
|
+
}), i.dirty();
|
|
3414
4417
|
}
|
|
3415
|
-
else
|
|
4418
|
+
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3416
4419
|
validation: "regex",
|
|
3417
4420
|
code: c.invalid_string,
|
|
3418
|
-
message:
|
|
3419
|
-
}),
|
|
4421
|
+
message: r.message
|
|
4422
|
+
}), i.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3420
4423
|
code: c.invalid_string,
|
|
3421
|
-
validation: { includes:
|
|
3422
|
-
message:
|
|
3423
|
-
}),
|
|
4424
|
+
validation: { includes: r.value, position: r.position },
|
|
4425
|
+
message: r.message
|
|
4426
|
+
}), i.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) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3424
4427
|
code: c.invalid_string,
|
|
3425
|
-
validation: { startsWith:
|
|
3426
|
-
message:
|
|
3427
|
-
}),
|
|
4428
|
+
validation: { startsWith: r.value },
|
|
4429
|
+
message: r.message
|
|
4430
|
+
}), i.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3428
4431
|
code: c.invalid_string,
|
|
3429
|
-
validation: { endsWith:
|
|
3430
|
-
message:
|
|
3431
|
-
}),
|
|
4432
|
+
validation: { endsWith: r.value },
|
|
4433
|
+
message: r.message
|
|
4434
|
+
}), i.dirty()) : r.kind === "datetime" ? rt(r).test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3432
4435
|
code: c.invalid_string,
|
|
3433
4436
|
validation: "datetime",
|
|
3434
|
-
message:
|
|
3435
|
-
}),
|
|
4437
|
+
message: r.message
|
|
4438
|
+
}), i.dirty()) : r.kind === "ip" ? st(e.data, r.version) || (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3436
4439
|
validation: "ip",
|
|
3437
4440
|
code: c.invalid_string,
|
|
3438
|
-
message:
|
|
3439
|
-
}),
|
|
3440
|
-
return { status:
|
|
4441
|
+
message: r.message
|
|
4442
|
+
}), i.dirty()) : b.assertNever(r);
|
|
4443
|
+
return { status: i.value, value: e.data };
|
|
3441
4444
|
}
|
|
3442
|
-
_regex(e, t,
|
|
3443
|
-
return this.refinement((
|
|
4445
|
+
_regex(e, t, i) {
|
|
4446
|
+
return this.refinement((n) => e.test(n), {
|
|
3444
4447
|
validation: t,
|
|
3445
4448
|
code: c.invalid_string,
|
|
3446
|
-
...p.errToObj(
|
|
4449
|
+
...p.errToObj(i)
|
|
3447
4450
|
});
|
|
3448
4451
|
}
|
|
3449
4452
|
_addCheck(e) {
|
|
@@ -3611,57 +4614,57 @@ A.create = (a) => {
|
|
|
3611
4614
|
checks: [],
|
|
3612
4615
|
typeName: f.ZodString,
|
|
3613
4616
|
coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
|
|
3614
|
-
...
|
|
4617
|
+
...g(a)
|
|
3615
4618
|
});
|
|
3616
4619
|
};
|
|
3617
|
-
function
|
|
3618
|
-
const t = (a.toString().split(".")[1] || "").length,
|
|
3619
|
-
return
|
|
4620
|
+
function ot(a, e) {
|
|
4621
|
+
const t = (a.toString().split(".")[1] || "").length, i = (e.toString().split(".")[1] || "").length, n = t > i ? t : i, r = parseInt(a.toFixed(n).replace(".", "")), s = parseInt(e.toFixed(n).replace(".", ""));
|
|
4622
|
+
return r % s / Math.pow(10, n);
|
|
3620
4623
|
}
|
|
3621
4624
|
class D extends v {
|
|
3622
4625
|
constructor() {
|
|
3623
4626
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
3624
4627
|
}
|
|
3625
4628
|
_parse(e) {
|
|
3626
|
-
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !==
|
|
3627
|
-
const
|
|
3628
|
-
return
|
|
4629
|
+
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== l.number) {
|
|
4630
|
+
const r = this._getOrReturnCtx(e);
|
|
4631
|
+
return u(r, {
|
|
3629
4632
|
code: c.invalid_type,
|
|
3630
|
-
expected:
|
|
3631
|
-
received:
|
|
3632
|
-
}),
|
|
4633
|
+
expected: l.number,
|
|
4634
|
+
received: r.parsedType
|
|
4635
|
+
}), _;
|
|
3633
4636
|
}
|
|
3634
|
-
let
|
|
3635
|
-
const
|
|
3636
|
-
for (const
|
|
3637
|
-
|
|
4637
|
+
let i;
|
|
4638
|
+
const n = new C();
|
|
4639
|
+
for (const r of this._def.checks)
|
|
4640
|
+
r.kind === "int" ? b.isInteger(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3638
4641
|
code: c.invalid_type,
|
|
3639
4642
|
expected: "integer",
|
|
3640
4643
|
received: "float",
|
|
3641
|
-
message:
|
|
3642
|
-
}),
|
|
4644
|
+
message: r.message
|
|
4645
|
+
}), n.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3643
4646
|
code: c.too_small,
|
|
3644
|
-
minimum:
|
|
4647
|
+
minimum: r.value,
|
|
3645
4648
|
type: "number",
|
|
3646
|
-
inclusive:
|
|
4649
|
+
inclusive: r.inclusive,
|
|
3647
4650
|
exact: !1,
|
|
3648
|
-
message:
|
|
3649
|
-
}),
|
|
4651
|
+
message: r.message
|
|
4652
|
+
}), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3650
4653
|
code: c.too_big,
|
|
3651
|
-
maximum:
|
|
4654
|
+
maximum: r.value,
|
|
3652
4655
|
type: "number",
|
|
3653
|
-
inclusive:
|
|
4656
|
+
inclusive: r.inclusive,
|
|
3654
4657
|
exact: !1,
|
|
3655
|
-
message:
|
|
3656
|
-
}),
|
|
4658
|
+
message: r.message
|
|
4659
|
+
}), n.dirty()) : r.kind === "multipleOf" ? ot(e.data, r.value) !== 0 && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3657
4660
|
code: c.not_multiple_of,
|
|
3658
|
-
multipleOf:
|
|
3659
|
-
message:
|
|
3660
|
-
}),
|
|
4661
|
+
multipleOf: r.value,
|
|
4662
|
+
message: r.message
|
|
4663
|
+
}), n.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3661
4664
|
code: c.not_finite,
|
|
3662
|
-
message:
|
|
3663
|
-
}),
|
|
3664
|
-
return { status:
|
|
4665
|
+
message: r.message
|
|
4666
|
+
}), n.dirty()) : b.assertNever(r);
|
|
4667
|
+
return { status: n.value, value: e.data };
|
|
3665
4668
|
}
|
|
3666
4669
|
gte(e, t) {
|
|
3667
4670
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -3675,7 +4678,7 @@ class D extends v {
|
|
|
3675
4678
|
lt(e, t) {
|
|
3676
4679
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
3677
4680
|
}
|
|
3678
|
-
setLimit(e, t,
|
|
4681
|
+
setLimit(e, t, i, n) {
|
|
3679
4682
|
return new D({
|
|
3680
4683
|
...this._def,
|
|
3681
4684
|
checks: [
|
|
@@ -3683,8 +4686,8 @@ class D extends v {
|
|
|
3683
4686
|
{
|
|
3684
4687
|
kind: e,
|
|
3685
4688
|
value: t,
|
|
3686
|
-
inclusive:
|
|
3687
|
-
message: p.toString(
|
|
4689
|
+
inclusive: i,
|
|
4690
|
+
message: p.toString(n)
|
|
3688
4691
|
}
|
|
3689
4692
|
]
|
|
3690
4693
|
});
|
|
@@ -3776,10 +4779,10 @@ class D extends v {
|
|
|
3776
4779
|
}
|
|
3777
4780
|
get isFinite() {
|
|
3778
4781
|
let e = null, t = null;
|
|
3779
|
-
for (const
|
|
3780
|
-
if (
|
|
4782
|
+
for (const i of this._def.checks) {
|
|
4783
|
+
if (i.kind === "finite" || i.kind === "int" || i.kind === "multipleOf")
|
|
3781
4784
|
return !0;
|
|
3782
|
-
|
|
4785
|
+
i.kind === "min" ? (t === null || i.value > t) && (t = i.value) : i.kind === "max" && (e === null || i.value < e) && (e = i.value);
|
|
3783
4786
|
}
|
|
3784
4787
|
return Number.isFinite(t) && Number.isFinite(e);
|
|
3785
4788
|
}
|
|
@@ -3788,42 +4791,42 @@ D.create = (a) => new D({
|
|
|
3788
4791
|
checks: [],
|
|
3789
4792
|
typeName: f.ZodNumber,
|
|
3790
4793
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
3791
|
-
...
|
|
4794
|
+
...g(a)
|
|
3792
4795
|
});
|
|
3793
4796
|
class Z extends v {
|
|
3794
4797
|
constructor() {
|
|
3795
4798
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
3796
4799
|
}
|
|
3797
4800
|
_parse(e) {
|
|
3798
|
-
if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !==
|
|
3799
|
-
const
|
|
3800
|
-
return
|
|
4801
|
+
if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== l.bigint) {
|
|
4802
|
+
const r = this._getOrReturnCtx(e);
|
|
4803
|
+
return u(r, {
|
|
3801
4804
|
code: c.invalid_type,
|
|
3802
|
-
expected:
|
|
3803
|
-
received:
|
|
3804
|
-
}),
|
|
4805
|
+
expected: l.bigint,
|
|
4806
|
+
received: r.parsedType
|
|
4807
|
+
}), _;
|
|
3805
4808
|
}
|
|
3806
|
-
let
|
|
3807
|
-
const
|
|
3808
|
-
for (const
|
|
3809
|
-
|
|
4809
|
+
let i;
|
|
4810
|
+
const n = new C();
|
|
4811
|
+
for (const r of this._def.checks)
|
|
4812
|
+
r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3810
4813
|
code: c.too_small,
|
|
3811
4814
|
type: "bigint",
|
|
3812
|
-
minimum:
|
|
3813
|
-
inclusive:
|
|
3814
|
-
message:
|
|
3815
|
-
}),
|
|
4815
|
+
minimum: r.value,
|
|
4816
|
+
inclusive: r.inclusive,
|
|
4817
|
+
message: r.message
|
|
4818
|
+
}), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3816
4819
|
code: c.too_big,
|
|
3817
4820
|
type: "bigint",
|
|
3818
|
-
maximum:
|
|
3819
|
-
inclusive:
|
|
3820
|
-
message:
|
|
3821
|
-
}),
|
|
4821
|
+
maximum: r.value,
|
|
4822
|
+
inclusive: r.inclusive,
|
|
4823
|
+
message: r.message
|
|
4824
|
+
}), n.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (i = this._getOrReturnCtx(e, i), u(i, {
|
|
3822
4825
|
code: c.not_multiple_of,
|
|
3823
|
-
multipleOf:
|
|
3824
|
-
message:
|
|
3825
|
-
}),
|
|
3826
|
-
return { status:
|
|
4826
|
+
multipleOf: r.value,
|
|
4827
|
+
message: r.message
|
|
4828
|
+
}), n.dirty()) : b.assertNever(r);
|
|
4829
|
+
return { status: n.value, value: e.data };
|
|
3827
4830
|
}
|
|
3828
4831
|
gte(e, t) {
|
|
3829
4832
|
return this.setLimit("min", e, !0, p.toString(t));
|
|
@@ -3837,7 +4840,7 @@ class Z extends v {
|
|
|
3837
4840
|
lt(e, t) {
|
|
3838
4841
|
return this.setLimit("max", e, !1, p.toString(t));
|
|
3839
4842
|
}
|
|
3840
|
-
setLimit(e, t,
|
|
4843
|
+
setLimit(e, t, i, n) {
|
|
3841
4844
|
return new Z({
|
|
3842
4845
|
...this._def,
|
|
3843
4846
|
checks: [
|
|
@@ -3845,8 +4848,8 @@ class Z extends v {
|
|
|
3845
4848
|
{
|
|
3846
4849
|
kind: e,
|
|
3847
4850
|
value: t,
|
|
3848
|
-
inclusive:
|
|
3849
|
-
message: p.toString(
|
|
4851
|
+
inclusive: i,
|
|
4852
|
+
message: p.toString(n)
|
|
3850
4853
|
}
|
|
3851
4854
|
]
|
|
3852
4855
|
});
|
|
@@ -3915,18 +4918,18 @@ Z.create = (a) => {
|
|
|
3915
4918
|
checks: [],
|
|
3916
4919
|
typeName: f.ZodBigInt,
|
|
3917
4920
|
coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
|
|
3918
|
-
...
|
|
4921
|
+
...g(a)
|
|
3919
4922
|
});
|
|
3920
4923
|
};
|
|
3921
4924
|
class J extends v {
|
|
3922
4925
|
_parse(e) {
|
|
3923
|
-
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !==
|
|
3924
|
-
const
|
|
3925
|
-
return
|
|
4926
|
+
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== l.boolean) {
|
|
4927
|
+
const i = this._getOrReturnCtx(e);
|
|
4928
|
+
return u(i, {
|
|
3926
4929
|
code: c.invalid_type,
|
|
3927
|
-
expected:
|
|
3928
|
-
received:
|
|
3929
|
-
}),
|
|
4930
|
+
expected: l.boolean,
|
|
4931
|
+
received: i.parsedType
|
|
4932
|
+
}), _;
|
|
3930
4933
|
}
|
|
3931
4934
|
return k(e.data);
|
|
3932
4935
|
}
|
|
@@ -3934,49 +4937,49 @@ class J extends v {
|
|
|
3934
4937
|
J.create = (a) => new J({
|
|
3935
4938
|
typeName: f.ZodBoolean,
|
|
3936
4939
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
3937
|
-
...
|
|
4940
|
+
...g(a)
|
|
3938
4941
|
});
|
|
3939
|
-
class
|
|
4942
|
+
class $ extends v {
|
|
3940
4943
|
_parse(e) {
|
|
3941
|
-
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !==
|
|
3942
|
-
const
|
|
3943
|
-
return
|
|
4944
|
+
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== l.date) {
|
|
4945
|
+
const r = this._getOrReturnCtx(e);
|
|
4946
|
+
return u(r, {
|
|
3944
4947
|
code: c.invalid_type,
|
|
3945
|
-
expected:
|
|
3946
|
-
received:
|
|
3947
|
-
}),
|
|
4948
|
+
expected: l.date,
|
|
4949
|
+
received: r.parsedType
|
|
4950
|
+
}), _;
|
|
3948
4951
|
}
|
|
3949
4952
|
if (isNaN(e.data.getTime())) {
|
|
3950
|
-
const
|
|
3951
|
-
return
|
|
4953
|
+
const r = this._getOrReturnCtx(e);
|
|
4954
|
+
return u(r, {
|
|
3952
4955
|
code: c.invalid_date
|
|
3953
|
-
}),
|
|
4956
|
+
}), _;
|
|
3954
4957
|
}
|
|
3955
|
-
const
|
|
3956
|
-
let
|
|
3957
|
-
for (const
|
|
3958
|
-
|
|
4958
|
+
const i = new C();
|
|
4959
|
+
let n;
|
|
4960
|
+
for (const r of this._def.checks)
|
|
4961
|
+
r.kind === "min" ? e.data.getTime() < r.value && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3959
4962
|
code: c.too_small,
|
|
3960
|
-
message:
|
|
4963
|
+
message: r.message,
|
|
3961
4964
|
inclusive: !0,
|
|
3962
4965
|
exact: !1,
|
|
3963
|
-
minimum:
|
|
4966
|
+
minimum: r.value,
|
|
3964
4967
|
type: "date"
|
|
3965
|
-
}),
|
|
4968
|
+
}), i.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
|
|
3966
4969
|
code: c.too_big,
|
|
3967
|
-
message:
|
|
4970
|
+
message: r.message,
|
|
3968
4971
|
inclusive: !0,
|
|
3969
4972
|
exact: !1,
|
|
3970
|
-
maximum:
|
|
4973
|
+
maximum: r.value,
|
|
3971
4974
|
type: "date"
|
|
3972
|
-
}),
|
|
4975
|
+
}), i.dirty()) : b.assertNever(r);
|
|
3973
4976
|
return {
|
|
3974
|
-
status:
|
|
4977
|
+
status: i.value,
|
|
3975
4978
|
value: new Date(e.data.getTime())
|
|
3976
4979
|
};
|
|
3977
4980
|
}
|
|
3978
4981
|
_addCheck(e) {
|
|
3979
|
-
return new
|
|
4982
|
+
return new $({
|
|
3980
4983
|
...this._def,
|
|
3981
4984
|
checks: [...this._def.checks, e]
|
|
3982
4985
|
});
|
|
@@ -4008,62 +5011,62 @@ class B extends v {
|
|
|
4008
5011
|
return e != null ? new Date(e) : null;
|
|
4009
5012
|
}
|
|
4010
5013
|
}
|
|
4011
|
-
|
|
5014
|
+
$.create = (a) => new $({
|
|
4012
5015
|
checks: [],
|
|
4013
5016
|
coerce: (a == null ? void 0 : a.coerce) || !1,
|
|
4014
5017
|
typeName: f.ZodDate,
|
|
4015
|
-
...
|
|
5018
|
+
...g(a)
|
|
4016
5019
|
});
|
|
4017
|
-
class
|
|
5020
|
+
class ue extends v {
|
|
4018
5021
|
_parse(e) {
|
|
4019
|
-
if (this._getType(e) !==
|
|
4020
|
-
const
|
|
4021
|
-
return
|
|
5022
|
+
if (this._getType(e) !== l.symbol) {
|
|
5023
|
+
const i = this._getOrReturnCtx(e);
|
|
5024
|
+
return u(i, {
|
|
4022
5025
|
code: c.invalid_type,
|
|
4023
|
-
expected:
|
|
4024
|
-
received:
|
|
4025
|
-
}),
|
|
5026
|
+
expected: l.symbol,
|
|
5027
|
+
received: i.parsedType
|
|
5028
|
+
}), _;
|
|
4026
5029
|
}
|
|
4027
5030
|
return k(e.data);
|
|
4028
5031
|
}
|
|
4029
5032
|
}
|
|
4030
|
-
|
|
5033
|
+
ue.create = (a) => new ue({
|
|
4031
5034
|
typeName: f.ZodSymbol,
|
|
4032
|
-
...
|
|
5035
|
+
...g(a)
|
|
4033
5036
|
});
|
|
4034
5037
|
class X extends v {
|
|
4035
5038
|
_parse(e) {
|
|
4036
|
-
if (this._getType(e) !==
|
|
4037
|
-
const
|
|
4038
|
-
return
|
|
5039
|
+
if (this._getType(e) !== l.undefined) {
|
|
5040
|
+
const i = this._getOrReturnCtx(e);
|
|
5041
|
+
return u(i, {
|
|
4039
5042
|
code: c.invalid_type,
|
|
4040
|
-
expected:
|
|
4041
|
-
received:
|
|
4042
|
-
}),
|
|
5043
|
+
expected: l.undefined,
|
|
5044
|
+
received: i.parsedType
|
|
5045
|
+
}), _;
|
|
4043
5046
|
}
|
|
4044
5047
|
return k(e.data);
|
|
4045
5048
|
}
|
|
4046
5049
|
}
|
|
4047
5050
|
X.create = (a) => new X({
|
|
4048
5051
|
typeName: f.ZodUndefined,
|
|
4049
|
-
...
|
|
5052
|
+
...g(a)
|
|
4050
5053
|
});
|
|
4051
5054
|
class K extends v {
|
|
4052
5055
|
_parse(e) {
|
|
4053
|
-
if (this._getType(e) !==
|
|
4054
|
-
const
|
|
4055
|
-
return
|
|
5056
|
+
if (this._getType(e) !== l.null) {
|
|
5057
|
+
const i = this._getOrReturnCtx(e);
|
|
5058
|
+
return u(i, {
|
|
4056
5059
|
code: c.invalid_type,
|
|
4057
|
-
expected:
|
|
4058
|
-
received:
|
|
4059
|
-
}),
|
|
5060
|
+
expected: l.null,
|
|
5061
|
+
received: i.parsedType
|
|
5062
|
+
}), _;
|
|
4060
5063
|
}
|
|
4061
5064
|
return k(e.data);
|
|
4062
5065
|
}
|
|
4063
5066
|
}
|
|
4064
5067
|
K.create = (a) => new K({
|
|
4065
5068
|
typeName: f.ZodNull,
|
|
4066
|
-
...
|
|
5069
|
+
...g(a)
|
|
4067
5070
|
});
|
|
4068
5071
|
class W extends v {
|
|
4069
5072
|
constructor() {
|
|
@@ -4075,9 +5078,9 @@ class W extends v {
|
|
|
4075
5078
|
}
|
|
4076
5079
|
W.create = (a) => new W({
|
|
4077
5080
|
typeName: f.ZodAny,
|
|
4078
|
-
...
|
|
5081
|
+
...g(a)
|
|
4079
5082
|
});
|
|
4080
|
-
class
|
|
5083
|
+
class B extends v {
|
|
4081
5084
|
constructor() {
|
|
4082
5085
|
super(...arguments), this._unknown = !0;
|
|
4083
5086
|
}
|
|
@@ -4085,80 +5088,80 @@ class $ extends v {
|
|
|
4085
5088
|
return k(e.data);
|
|
4086
5089
|
}
|
|
4087
5090
|
}
|
|
4088
|
-
|
|
5091
|
+
B.create = (a) => new B({
|
|
4089
5092
|
typeName: f.ZodUnknown,
|
|
4090
|
-
...
|
|
5093
|
+
...g(a)
|
|
4091
5094
|
});
|
|
4092
5095
|
class L extends v {
|
|
4093
5096
|
_parse(e) {
|
|
4094
5097
|
const t = this._getOrReturnCtx(e);
|
|
4095
|
-
return
|
|
5098
|
+
return u(t, {
|
|
4096
5099
|
code: c.invalid_type,
|
|
4097
|
-
expected:
|
|
5100
|
+
expected: l.never,
|
|
4098
5101
|
received: t.parsedType
|
|
4099
|
-
}),
|
|
5102
|
+
}), _;
|
|
4100
5103
|
}
|
|
4101
5104
|
}
|
|
4102
5105
|
L.create = (a) => new L({
|
|
4103
5106
|
typeName: f.ZodNever,
|
|
4104
|
-
...
|
|
5107
|
+
...g(a)
|
|
4105
5108
|
});
|
|
4106
5109
|
class me extends v {
|
|
4107
5110
|
_parse(e) {
|
|
4108
|
-
if (this._getType(e) !==
|
|
4109
|
-
const
|
|
4110
|
-
return
|
|
5111
|
+
if (this._getType(e) !== l.undefined) {
|
|
5112
|
+
const i = this._getOrReturnCtx(e);
|
|
5113
|
+
return u(i, {
|
|
4111
5114
|
code: c.invalid_type,
|
|
4112
|
-
expected:
|
|
4113
|
-
received:
|
|
4114
|
-
}),
|
|
5115
|
+
expected: l.void,
|
|
5116
|
+
received: i.parsedType
|
|
5117
|
+
}), _;
|
|
4115
5118
|
}
|
|
4116
5119
|
return k(e.data);
|
|
4117
5120
|
}
|
|
4118
5121
|
}
|
|
4119
5122
|
me.create = (a) => new me({
|
|
4120
5123
|
typeName: f.ZodVoid,
|
|
4121
|
-
...
|
|
5124
|
+
...g(a)
|
|
4122
5125
|
});
|
|
4123
5126
|
class O extends v {
|
|
4124
5127
|
_parse(e) {
|
|
4125
|
-
const { ctx: t, status:
|
|
4126
|
-
if (t.parsedType !==
|
|
4127
|
-
return
|
|
5128
|
+
const { ctx: t, status: i } = this._processInputParams(e), n = this._def;
|
|
5129
|
+
if (t.parsedType !== l.array)
|
|
5130
|
+
return u(t, {
|
|
4128
5131
|
code: c.invalid_type,
|
|
4129
|
-
expected:
|
|
5132
|
+
expected: l.array,
|
|
4130
5133
|
received: t.parsedType
|
|
4131
|
-
}),
|
|
4132
|
-
if (
|
|
4133
|
-
const s = t.data.length >
|
|
4134
|
-
(s || o) && (
|
|
5134
|
+
}), _;
|
|
5135
|
+
if (n.exactLength !== null) {
|
|
5136
|
+
const s = t.data.length > n.exactLength.value, o = t.data.length < n.exactLength.value;
|
|
5137
|
+
(s || o) && (u(t, {
|
|
4135
5138
|
code: s ? c.too_big : c.too_small,
|
|
4136
|
-
minimum: o ?
|
|
4137
|
-
maximum: s ?
|
|
5139
|
+
minimum: o ? n.exactLength.value : void 0,
|
|
5140
|
+
maximum: s ? n.exactLength.value : void 0,
|
|
4138
5141
|
type: "array",
|
|
4139
5142
|
inclusive: !0,
|
|
4140
5143
|
exact: !0,
|
|
4141
|
-
message:
|
|
4142
|
-
}),
|
|
5144
|
+
message: n.exactLength.message
|
|
5145
|
+
}), i.dirty());
|
|
4143
5146
|
}
|
|
4144
|
-
if (
|
|
5147
|
+
if (n.minLength !== null && t.data.length < n.minLength.value && (u(t, {
|
|
4145
5148
|
code: c.too_small,
|
|
4146
|
-
minimum:
|
|
5149
|
+
minimum: n.minLength.value,
|
|
4147
5150
|
type: "array",
|
|
4148
5151
|
inclusive: !0,
|
|
4149
5152
|
exact: !1,
|
|
4150
|
-
message:
|
|
4151
|
-
}),
|
|
5153
|
+
message: n.minLength.message
|
|
5154
|
+
}), i.dirty()), n.maxLength !== null && t.data.length > n.maxLength.value && (u(t, {
|
|
4152
5155
|
code: c.too_big,
|
|
4153
|
-
maximum:
|
|
5156
|
+
maximum: n.maxLength.value,
|
|
4154
5157
|
type: "array",
|
|
4155
5158
|
inclusive: !0,
|
|
4156
5159
|
exact: !1,
|
|
4157
|
-
message:
|
|
4158
|
-
}),
|
|
4159
|
-
return Promise.all([...t.data].map((s, o) =>
|
|
4160
|
-
const
|
|
4161
|
-
return C.mergeArray(
|
|
5160
|
+
message: n.maxLength.message
|
|
5161
|
+
}), i.dirty()), t.common.async)
|
|
5162
|
+
return Promise.all([...t.data].map((s, o) => n.type._parseAsync(new N(t, s, t.path, o)))).then((s) => C.mergeArray(i, s));
|
|
5163
|
+
const r = [...t.data].map((s, o) => n.type._parseSync(new N(t, s, t.path, o)));
|
|
5164
|
+
return C.mergeArray(i, r);
|
|
4162
5165
|
}
|
|
4163
5166
|
get element() {
|
|
4164
5167
|
return this._def.type;
|
|
@@ -4191,14 +5194,14 @@ O.create = (a, e) => new O({
|
|
|
4191
5194
|
maxLength: null,
|
|
4192
5195
|
exactLength: null,
|
|
4193
5196
|
typeName: f.ZodArray,
|
|
4194
|
-
...
|
|
5197
|
+
...g(e)
|
|
4195
5198
|
});
|
|
4196
5199
|
function G(a) {
|
|
4197
5200
|
if (a instanceof w) {
|
|
4198
5201
|
const e = {};
|
|
4199
5202
|
for (const t in a.shape) {
|
|
4200
|
-
const
|
|
4201
|
-
e[t] =
|
|
5203
|
+
const i = a.shape[t];
|
|
5204
|
+
e[t] = M.create(G(i));
|
|
4202
5205
|
}
|
|
4203
5206
|
return new w({
|
|
4204
5207
|
...a._def,
|
|
@@ -4207,7 +5210,7 @@ function G(a) {
|
|
|
4207
5210
|
} else return a instanceof O ? new O({
|
|
4208
5211
|
...a._def,
|
|
4209
5212
|
type: G(a.element)
|
|
4210
|
-
}) : a instanceof
|
|
5213
|
+
}) : a instanceof M ? M.create(G(a.unwrap())) : a instanceof q ? q.create(G(a.unwrap())) : a instanceof P ? P.create(a.items.map((e) => G(e))) : a;
|
|
4211
5214
|
}
|
|
4212
5215
|
class w extends v {
|
|
4213
5216
|
constructor() {
|
|
@@ -4220,25 +5223,25 @@ class w extends v {
|
|
|
4220
5223
|
return this._cached = { shape: e, keys: t };
|
|
4221
5224
|
}
|
|
4222
5225
|
_parse(e) {
|
|
4223
|
-
if (this._getType(e) !==
|
|
5226
|
+
if (this._getType(e) !== l.object) {
|
|
4224
5227
|
const d = this._getOrReturnCtx(e);
|
|
4225
|
-
return
|
|
5228
|
+
return u(d, {
|
|
4226
5229
|
code: c.invalid_type,
|
|
4227
|
-
expected:
|
|
5230
|
+
expected: l.object,
|
|
4228
5231
|
received: d.parsedType
|
|
4229
|
-
}),
|
|
5232
|
+
}), _;
|
|
4230
5233
|
}
|
|
4231
|
-
const { status:
|
|
5234
|
+
const { status: i, ctx: n } = this._processInputParams(e), { shape: r, keys: s } = this._getCached(), o = [];
|
|
4232
5235
|
if (!(this._def.catchall instanceof L && this._def.unknownKeys === "strip"))
|
|
4233
|
-
for (const d in
|
|
5236
|
+
for (const d in n.data)
|
|
4234
5237
|
s.includes(d) || o.push(d);
|
|
4235
5238
|
const m = [];
|
|
4236
5239
|
for (const d of s) {
|
|
4237
|
-
const y =
|
|
5240
|
+
const y = r[d], S = n.data[d];
|
|
4238
5241
|
m.push({
|
|
4239
5242
|
key: { status: "valid", value: d },
|
|
4240
|
-
value: y._parse(new N(
|
|
4241
|
-
alwaysSet: d in
|
|
5243
|
+
value: y._parse(new N(n, S, n.path, d)),
|
|
5244
|
+
alwaysSet: d in n.data
|
|
4242
5245
|
});
|
|
4243
5246
|
}
|
|
4244
5247
|
if (this._def.catchall instanceof L) {
|
|
@@ -4247,29 +5250,29 @@ class w extends v {
|
|
|
4247
5250
|
for (const y of o)
|
|
4248
5251
|
m.push({
|
|
4249
5252
|
key: { status: "valid", value: y },
|
|
4250
|
-
value: { status: "valid", value:
|
|
5253
|
+
value: { status: "valid", value: n.data[y] }
|
|
4251
5254
|
});
|
|
4252
5255
|
else if (d === "strict")
|
|
4253
|
-
o.length > 0 && (
|
|
5256
|
+
o.length > 0 && (u(n, {
|
|
4254
5257
|
code: c.unrecognized_keys,
|
|
4255
5258
|
keys: o
|
|
4256
|
-
}),
|
|
5259
|
+
}), i.dirty());
|
|
4257
5260
|
else if (d !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
|
|
4258
5261
|
} else {
|
|
4259
5262
|
const d = this._def.catchall;
|
|
4260
5263
|
for (const y of o) {
|
|
4261
|
-
const S =
|
|
5264
|
+
const S = n.data[y];
|
|
4262
5265
|
m.push({
|
|
4263
5266
|
key: { status: "valid", value: y },
|
|
4264
5267
|
value: d._parse(
|
|
4265
|
-
new N(
|
|
5268
|
+
new N(n, S, n.path, y)
|
|
4266
5269
|
//, ctx.child(key), value, getParsedType(value)
|
|
4267
5270
|
),
|
|
4268
|
-
alwaysSet: y in
|
|
5271
|
+
alwaysSet: y in n.data
|
|
4269
5272
|
});
|
|
4270
5273
|
}
|
|
4271
5274
|
}
|
|
4272
|
-
return
|
|
5275
|
+
return n.common.async ? Promise.resolve().then(async () => {
|
|
4273
5276
|
const d = [];
|
|
4274
5277
|
for (const y of m) {
|
|
4275
5278
|
const S = await y.key;
|
|
@@ -4280,7 +5283,7 @@ class w extends v {
|
|
|
4280
5283
|
});
|
|
4281
5284
|
}
|
|
4282
5285
|
return d;
|
|
4283
|
-
}).then((d) => C.mergeObjectSync(
|
|
5286
|
+
}).then((d) => C.mergeObjectSync(i, d)) : C.mergeObjectSync(i, m);
|
|
4284
5287
|
}
|
|
4285
5288
|
get shape() {
|
|
4286
5289
|
return this._def.shape();
|
|
@@ -4290,9 +5293,9 @@ class w extends v {
|
|
|
4290
5293
|
...this._def,
|
|
4291
5294
|
unknownKeys: "strict",
|
|
4292
5295
|
...e !== void 0 ? {
|
|
4293
|
-
errorMap: (t,
|
|
4294
|
-
var
|
|
4295
|
-
const m = (s = (
|
|
5296
|
+
errorMap: (t, i) => {
|
|
5297
|
+
var n, r, s, o;
|
|
5298
|
+
const m = (s = (r = (n = this._def).errorMap) === null || r === void 0 ? void 0 : r.call(n, t, i).message) !== null && s !== void 0 ? s : i.defaultError;
|
|
4296
5299
|
return t.code === "unrecognized_keys" ? {
|
|
4297
5300
|
message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : m
|
|
4298
5301
|
} : {
|
|
@@ -4423,8 +5426,8 @@ class w extends v {
|
|
|
4423
5426
|
}
|
|
4424
5427
|
pick(e) {
|
|
4425
5428
|
const t = {};
|
|
4426
|
-
return b.objectKeys(e).forEach((
|
|
4427
|
-
e[
|
|
5429
|
+
return b.objectKeys(e).forEach((i) => {
|
|
5430
|
+
e[i] && this.shape[i] && (t[i] = this.shape[i]);
|
|
4428
5431
|
}), new w({
|
|
4429
5432
|
...this._def,
|
|
4430
5433
|
shape: () => t
|
|
@@ -4432,8 +5435,8 @@ class w extends v {
|
|
|
4432
5435
|
}
|
|
4433
5436
|
omit(e) {
|
|
4434
5437
|
const t = {};
|
|
4435
|
-
return b.objectKeys(this.shape).forEach((
|
|
4436
|
-
e[
|
|
5438
|
+
return b.objectKeys(this.shape).forEach((i) => {
|
|
5439
|
+
e[i] || (t[i] = this.shape[i]);
|
|
4437
5440
|
}), new w({
|
|
4438
5441
|
...this._def,
|
|
4439
5442
|
shape: () => t
|
|
@@ -4447,9 +5450,9 @@ class w extends v {
|
|
|
4447
5450
|
}
|
|
4448
5451
|
partial(e) {
|
|
4449
5452
|
const t = {};
|
|
4450
|
-
return b.objectKeys(this.shape).forEach((
|
|
4451
|
-
const
|
|
4452
|
-
e && !e[
|
|
5453
|
+
return b.objectKeys(this.shape).forEach((i) => {
|
|
5454
|
+
const n = this.shape[i];
|
|
5455
|
+
e && !e[i] ? t[i] = n : t[i] = n.optional();
|
|
4453
5456
|
}), new w({
|
|
4454
5457
|
...this._def,
|
|
4455
5458
|
shape: () => t
|
|
@@ -4457,14 +5460,14 @@ class w extends v {
|
|
|
4457
5460
|
}
|
|
4458
5461
|
required(e) {
|
|
4459
5462
|
const t = {};
|
|
4460
|
-
return b.objectKeys(this.shape).forEach((
|
|
4461
|
-
if (e && !e[
|
|
4462
|
-
t[
|
|
5463
|
+
return b.objectKeys(this.shape).forEach((i) => {
|
|
5464
|
+
if (e && !e[i])
|
|
5465
|
+
t[i] = this.shape[i];
|
|
4463
5466
|
else {
|
|
4464
|
-
let
|
|
4465
|
-
for (;
|
|
4466
|
-
|
|
4467
|
-
t[
|
|
5467
|
+
let r = this.shape[i];
|
|
5468
|
+
for (; r instanceof M; )
|
|
5469
|
+
r = r._def.innerType;
|
|
5470
|
+
t[i] = r;
|
|
4468
5471
|
}
|
|
4469
5472
|
}), new w({
|
|
4470
5473
|
...this._def,
|
|
@@ -4480,40 +5483,40 @@ w.create = (a, e) => new w({
|
|
|
4480
5483
|
unknownKeys: "strip",
|
|
4481
5484
|
catchall: L.create(),
|
|
4482
5485
|
typeName: f.ZodObject,
|
|
4483
|
-
...
|
|
5486
|
+
...g(e)
|
|
4484
5487
|
});
|
|
4485
5488
|
w.strictCreate = (a, e) => new w({
|
|
4486
5489
|
shape: () => a,
|
|
4487
5490
|
unknownKeys: "strict",
|
|
4488
5491
|
catchall: L.create(),
|
|
4489
5492
|
typeName: f.ZodObject,
|
|
4490
|
-
...
|
|
5493
|
+
...g(e)
|
|
4491
5494
|
});
|
|
4492
5495
|
w.lazycreate = (a, e) => new w({
|
|
4493
5496
|
shape: a,
|
|
4494
5497
|
unknownKeys: "strip",
|
|
4495
5498
|
catchall: L.create(),
|
|
4496
5499
|
typeName: f.ZodObject,
|
|
4497
|
-
...
|
|
5500
|
+
...g(e)
|
|
4498
5501
|
});
|
|
4499
5502
|
class Q extends v {
|
|
4500
5503
|
_parse(e) {
|
|
4501
|
-
const { ctx: t } = this._processInputParams(e),
|
|
4502
|
-
function r
|
|
4503
|
-
for (const o of
|
|
5504
|
+
const { ctx: t } = this._processInputParams(e), i = this._def.options;
|
|
5505
|
+
function n(r) {
|
|
5506
|
+
for (const o of r)
|
|
4504
5507
|
if (o.result.status === "valid")
|
|
4505
5508
|
return o.result;
|
|
4506
|
-
for (const o of
|
|
5509
|
+
for (const o of r)
|
|
4507
5510
|
if (o.result.status === "dirty")
|
|
4508
5511
|
return t.common.issues.push(...o.ctx.common.issues), o.result;
|
|
4509
|
-
const s =
|
|
4510
|
-
return
|
|
5512
|
+
const s = r.map((o) => new E(o.ctx.common.issues));
|
|
5513
|
+
return u(t, {
|
|
4511
5514
|
code: c.invalid_union,
|
|
4512
5515
|
unionErrors: s
|
|
4513
|
-
}),
|
|
5516
|
+
}), _;
|
|
4514
5517
|
}
|
|
4515
5518
|
if (t.common.async)
|
|
4516
|
-
return Promise.all(
|
|
5519
|
+
return Promise.all(i.map(async (r) => {
|
|
4517
5520
|
const s = {
|
|
4518
5521
|
...t,
|
|
4519
5522
|
common: {
|
|
@@ -4523,18 +5526,18 @@ class Q extends v {
|
|
|
4523
5526
|
parent: null
|
|
4524
5527
|
};
|
|
4525
5528
|
return {
|
|
4526
|
-
result: await
|
|
5529
|
+
result: await r._parseAsync({
|
|
4527
5530
|
data: t.data,
|
|
4528
5531
|
path: t.path,
|
|
4529
5532
|
parent: s
|
|
4530
5533
|
}),
|
|
4531
5534
|
ctx: s
|
|
4532
5535
|
};
|
|
4533
|
-
})).then(
|
|
5536
|
+
})).then(n);
|
|
4534
5537
|
{
|
|
4535
|
-
let
|
|
5538
|
+
let r;
|
|
4536
5539
|
const s = [];
|
|
4537
|
-
for (const m of
|
|
5540
|
+
for (const m of i) {
|
|
4538
5541
|
const d = {
|
|
4539
5542
|
...t,
|
|
4540
5543
|
common: {
|
|
@@ -4549,15 +5552,15 @@ class Q extends v {
|
|
|
4549
5552
|
});
|
|
4550
5553
|
if (y.status === "valid")
|
|
4551
5554
|
return y;
|
|
4552
|
-
y.status === "dirty" && !
|
|
5555
|
+
y.status === "dirty" && !r && (r = { result: y, ctx: d }), d.common.issues.length && s.push(d.common.issues);
|
|
4553
5556
|
}
|
|
4554
|
-
if (
|
|
4555
|
-
return t.common.issues.push(...
|
|
5557
|
+
if (r)
|
|
5558
|
+
return t.common.issues.push(...r.ctx.common.issues), r.result;
|
|
4556
5559
|
const o = s.map((m) => new E(m));
|
|
4557
|
-
return
|
|
5560
|
+
return u(t, {
|
|
4558
5561
|
code: c.invalid_union,
|
|
4559
5562
|
unionErrors: o
|
|
4560
|
-
}),
|
|
5563
|
+
}), _;
|
|
4561
5564
|
}
|
|
4562
5565
|
}
|
|
4563
5566
|
get options() {
|
|
@@ -4567,32 +5570,32 @@ class Q extends v {
|
|
|
4567
5570
|
Q.create = (a, e) => new Q({
|
|
4568
5571
|
options: a,
|
|
4569
5572
|
typeName: f.ZodUnion,
|
|
4570
|
-
...
|
|
5573
|
+
...g(e)
|
|
4571
5574
|
});
|
|
4572
|
-
const oe = (a) => a instanceof ae ? oe(a.schema) : a instanceof I ? oe(a.innerType()) : a instanceof
|
|
4573
|
-
class
|
|
5575
|
+
const oe = (a) => a instanceof ae ? oe(a.schema) : a instanceof I ? oe(a.innerType()) : a instanceof ie ? [a.value] : a instanceof V ? a.options : a instanceof ne ? Object.keys(a.enum) : a instanceof re ? oe(a._def.innerType) : a instanceof X ? [void 0] : a instanceof K ? [null] : null;
|
|
5576
|
+
class ge extends v {
|
|
4574
5577
|
_parse(e) {
|
|
4575
5578
|
const { ctx: t } = this._processInputParams(e);
|
|
4576
|
-
if (t.parsedType !==
|
|
4577
|
-
return
|
|
5579
|
+
if (t.parsedType !== l.object)
|
|
5580
|
+
return u(t, {
|
|
4578
5581
|
code: c.invalid_type,
|
|
4579
|
-
expected:
|
|
5582
|
+
expected: l.object,
|
|
4580
5583
|
received: t.parsedType
|
|
4581
|
-
}),
|
|
4582
|
-
const
|
|
4583
|
-
return
|
|
5584
|
+
}), _;
|
|
5585
|
+
const i = this.discriminator, n = t.data[i], r = this.optionsMap.get(n);
|
|
5586
|
+
return r ? t.common.async ? r._parseAsync({
|
|
4584
5587
|
data: t.data,
|
|
4585
5588
|
path: t.path,
|
|
4586
5589
|
parent: t
|
|
4587
|
-
}) :
|
|
5590
|
+
}) : r._parseSync({
|
|
4588
5591
|
data: t.data,
|
|
4589
5592
|
path: t.path,
|
|
4590
5593
|
parent: t
|
|
4591
|
-
}) : (
|
|
5594
|
+
}) : (u(t, {
|
|
4592
5595
|
code: c.invalid_union_discriminator,
|
|
4593
5596
|
options: Array.from(this.optionsMap.keys()),
|
|
4594
|
-
path: [
|
|
4595
|
-
}),
|
|
5597
|
+
path: [i]
|
|
5598
|
+
}), _);
|
|
4596
5599
|
}
|
|
4597
5600
|
get discriminator() {
|
|
4598
5601
|
return this._def.discriminator;
|
|
@@ -4611,82 +5614,82 @@ class _e extends v {
|
|
|
4611
5614
|
* @param types an array of object schemas
|
|
4612
5615
|
* @param params
|
|
4613
5616
|
*/
|
|
4614
|
-
static create(e, t,
|
|
4615
|
-
const
|
|
4616
|
-
for (const
|
|
4617
|
-
const s = oe(
|
|
5617
|
+
static create(e, t, i) {
|
|
5618
|
+
const n = /* @__PURE__ */ new Map();
|
|
5619
|
+
for (const r of t) {
|
|
5620
|
+
const s = oe(r.shape[e]);
|
|
4618
5621
|
if (!s)
|
|
4619
5622
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
4620
5623
|
for (const o of s) {
|
|
4621
|
-
if (
|
|
5624
|
+
if (n.has(o))
|
|
4622
5625
|
throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);
|
|
4623
|
-
|
|
5626
|
+
n.set(o, r);
|
|
4624
5627
|
}
|
|
4625
5628
|
}
|
|
4626
|
-
return new
|
|
5629
|
+
return new ge({
|
|
4627
5630
|
typeName: f.ZodDiscriminatedUnion,
|
|
4628
5631
|
discriminator: e,
|
|
4629
5632
|
options: t,
|
|
4630
|
-
optionsMap:
|
|
4631
|
-
...
|
|
5633
|
+
optionsMap: n,
|
|
5634
|
+
...g(i)
|
|
4632
5635
|
});
|
|
4633
5636
|
}
|
|
4634
5637
|
}
|
|
4635
5638
|
function Te(a, e) {
|
|
4636
|
-
const t = j(a),
|
|
5639
|
+
const t = j(a), i = j(e);
|
|
4637
5640
|
if (a === e)
|
|
4638
5641
|
return { valid: !0, data: a };
|
|
4639
|
-
if (t ===
|
|
4640
|
-
const
|
|
4641
|
-
for (const o of
|
|
5642
|
+
if (t === l.object && i === l.object) {
|
|
5643
|
+
const n = b.objectKeys(e), r = b.objectKeys(a).filter((o) => n.indexOf(o) !== -1), s = { ...a, ...e };
|
|
5644
|
+
for (const o of r) {
|
|
4642
5645
|
const m = Te(a[o], e[o]);
|
|
4643
5646
|
if (!m.valid)
|
|
4644
5647
|
return { valid: !1 };
|
|
4645
5648
|
s[o] = m.data;
|
|
4646
5649
|
}
|
|
4647
5650
|
return { valid: !0, data: s };
|
|
4648
|
-
} else if (t ===
|
|
5651
|
+
} else if (t === l.array && i === l.array) {
|
|
4649
5652
|
if (a.length !== e.length)
|
|
4650
5653
|
return { valid: !1 };
|
|
4651
|
-
const
|
|
4652
|
-
for (let
|
|
4653
|
-
const s = a[
|
|
5654
|
+
const n = [];
|
|
5655
|
+
for (let r = 0; r < a.length; r++) {
|
|
5656
|
+
const s = a[r], o = e[r], m = Te(s, o);
|
|
4654
5657
|
if (!m.valid)
|
|
4655
5658
|
return { valid: !1 };
|
|
4656
|
-
|
|
5659
|
+
n.push(m.data);
|
|
4657
5660
|
}
|
|
4658
|
-
return { valid: !0, data:
|
|
4659
|
-
} else return t ===
|
|
5661
|
+
return { valid: !0, data: n };
|
|
5662
|
+
} else return t === l.date && i === l.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
|
|
4660
5663
|
}
|
|
4661
5664
|
class ee extends v {
|
|
4662
5665
|
_parse(e) {
|
|
4663
|
-
const { status: t, ctx:
|
|
4664
|
-
if (xe(
|
|
4665
|
-
return
|
|
4666
|
-
const o = Te(
|
|
4667
|
-
return o.valid ? ((we(
|
|
5666
|
+
const { status: t, ctx: i } = this._processInputParams(e), n = (r, s) => {
|
|
5667
|
+
if (xe(r) || xe(s))
|
|
5668
|
+
return _;
|
|
5669
|
+
const o = Te(r.value, s.value);
|
|
5670
|
+
return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (u(i, {
|
|
4668
5671
|
code: c.invalid_intersection_types
|
|
4669
|
-
}),
|
|
5672
|
+
}), _);
|
|
4670
5673
|
};
|
|
4671
|
-
return
|
|
5674
|
+
return i.common.async ? Promise.all([
|
|
4672
5675
|
this._def.left._parseAsync({
|
|
4673
|
-
data:
|
|
4674
|
-
path:
|
|
4675
|
-
parent:
|
|
5676
|
+
data: i.data,
|
|
5677
|
+
path: i.path,
|
|
5678
|
+
parent: i
|
|
4676
5679
|
}),
|
|
4677
5680
|
this._def.right._parseAsync({
|
|
4678
|
-
data:
|
|
4679
|
-
path:
|
|
4680
|
-
parent:
|
|
5681
|
+
data: i.data,
|
|
5682
|
+
path: i.path,
|
|
5683
|
+
parent: i
|
|
4681
5684
|
})
|
|
4682
|
-
]).then(([
|
|
4683
|
-
data:
|
|
4684
|
-
path:
|
|
4685
|
-
parent:
|
|
5685
|
+
]).then(([r, s]) => n(r, s)) : n(this._def.left._parseSync({
|
|
5686
|
+
data: i.data,
|
|
5687
|
+
path: i.path,
|
|
5688
|
+
parent: i
|
|
4686
5689
|
}), this._def.right._parseSync({
|
|
4687
|
-
data:
|
|
4688
|
-
path:
|
|
4689
|
-
parent:
|
|
5690
|
+
data: i.data,
|
|
5691
|
+
path: i.path,
|
|
5692
|
+
parent: i
|
|
4690
5693
|
}));
|
|
4691
5694
|
}
|
|
4692
5695
|
}
|
|
@@ -4694,56 +5697,56 @@ ee.create = (a, e, t) => new ee({
|
|
|
4694
5697
|
left: a,
|
|
4695
5698
|
right: e,
|
|
4696
5699
|
typeName: f.ZodIntersection,
|
|
4697
|
-
...
|
|
5700
|
+
...g(t)
|
|
4698
5701
|
});
|
|
4699
|
-
class
|
|
5702
|
+
class P extends v {
|
|
4700
5703
|
_parse(e) {
|
|
4701
|
-
const { status: t, ctx:
|
|
4702
|
-
if (
|
|
4703
|
-
return
|
|
5704
|
+
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5705
|
+
if (i.parsedType !== l.array)
|
|
5706
|
+
return u(i, {
|
|
4704
5707
|
code: c.invalid_type,
|
|
4705
|
-
expected:
|
|
4706
|
-
received:
|
|
4707
|
-
}),
|
|
4708
|
-
if (
|
|
4709
|
-
return
|
|
5708
|
+
expected: l.array,
|
|
5709
|
+
received: i.parsedType
|
|
5710
|
+
}), _;
|
|
5711
|
+
if (i.data.length < this._def.items.length)
|
|
5712
|
+
return u(i, {
|
|
4710
5713
|
code: c.too_small,
|
|
4711
5714
|
minimum: this._def.items.length,
|
|
4712
5715
|
inclusive: !0,
|
|
4713
5716
|
exact: !1,
|
|
4714
5717
|
type: "array"
|
|
4715
|
-
}),
|
|
4716
|
-
!this._def.rest &&
|
|
5718
|
+
}), _;
|
|
5719
|
+
!this._def.rest && i.data.length > this._def.items.length && (u(i, {
|
|
4717
5720
|
code: c.too_big,
|
|
4718
5721
|
maximum: this._def.items.length,
|
|
4719
5722
|
inclusive: !0,
|
|
4720
5723
|
exact: !1,
|
|
4721
5724
|
type: "array"
|
|
4722
5725
|
}), t.dirty());
|
|
4723
|
-
const
|
|
5726
|
+
const r = [...i.data].map((s, o) => {
|
|
4724
5727
|
const m = this._def.items[o] || this._def.rest;
|
|
4725
|
-
return m ? m._parse(new N(
|
|
5728
|
+
return m ? m._parse(new N(i, s, i.path, o)) : null;
|
|
4726
5729
|
}).filter((s) => !!s);
|
|
4727
|
-
return
|
|
5730
|
+
return i.common.async ? Promise.all(r).then((s) => C.mergeArray(t, s)) : C.mergeArray(t, r);
|
|
4728
5731
|
}
|
|
4729
5732
|
get items() {
|
|
4730
5733
|
return this._def.items;
|
|
4731
5734
|
}
|
|
4732
5735
|
rest(e) {
|
|
4733
|
-
return new
|
|
5736
|
+
return new P({
|
|
4734
5737
|
...this._def,
|
|
4735
5738
|
rest: e
|
|
4736
5739
|
});
|
|
4737
5740
|
}
|
|
4738
5741
|
}
|
|
4739
|
-
|
|
5742
|
+
P.create = (a, e) => {
|
|
4740
5743
|
if (!Array.isArray(a))
|
|
4741
5744
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
4742
|
-
return new
|
|
5745
|
+
return new P({
|
|
4743
5746
|
items: a,
|
|
4744
5747
|
typeName: f.ZodTuple,
|
|
4745
5748
|
rest: null,
|
|
4746
|
-
...
|
|
5749
|
+
...g(e)
|
|
4747
5750
|
});
|
|
4748
5751
|
};
|
|
4749
5752
|
class te extends v {
|
|
@@ -4754,35 +5757,35 @@ class te extends v {
|
|
|
4754
5757
|
return this._def.valueType;
|
|
4755
5758
|
}
|
|
4756
5759
|
_parse(e) {
|
|
4757
|
-
const { status: t, ctx:
|
|
4758
|
-
if (
|
|
4759
|
-
return
|
|
5760
|
+
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5761
|
+
if (i.parsedType !== l.object)
|
|
5762
|
+
return u(i, {
|
|
4760
5763
|
code: c.invalid_type,
|
|
4761
|
-
expected:
|
|
4762
|
-
received:
|
|
4763
|
-
}),
|
|
4764
|
-
const
|
|
4765
|
-
for (const o in
|
|
4766
|
-
|
|
4767
|
-
key:
|
|
4768
|
-
value: s._parse(new N(
|
|
5764
|
+
expected: l.object,
|
|
5765
|
+
received: i.parsedType
|
|
5766
|
+
}), _;
|
|
5767
|
+
const n = [], r = this._def.keyType, s = this._def.valueType;
|
|
5768
|
+
for (const o in i.data)
|
|
5769
|
+
n.push({
|
|
5770
|
+
key: r._parse(new N(i, o, i.path, o)),
|
|
5771
|
+
value: s._parse(new N(i, i.data[o], i.path, o))
|
|
4769
5772
|
});
|
|
4770
|
-
return
|
|
5773
|
+
return i.common.async ? C.mergeObjectAsync(t, n) : C.mergeObjectSync(t, n);
|
|
4771
5774
|
}
|
|
4772
5775
|
get element() {
|
|
4773
5776
|
return this._def.valueType;
|
|
4774
5777
|
}
|
|
4775
|
-
static create(e, t,
|
|
5778
|
+
static create(e, t, i) {
|
|
4776
5779
|
return t instanceof v ? new te({
|
|
4777
5780
|
keyType: e,
|
|
4778
5781
|
valueType: t,
|
|
4779
5782
|
typeName: f.ZodRecord,
|
|
4780
|
-
...
|
|
5783
|
+
...g(i)
|
|
4781
5784
|
}) : new te({
|
|
4782
5785
|
keyType: A.create(),
|
|
4783
5786
|
valueType: e,
|
|
4784
5787
|
typeName: f.ZodRecord,
|
|
4785
|
-
...
|
|
5788
|
+
...g(t)
|
|
4786
5789
|
});
|
|
4787
5790
|
}
|
|
4788
5791
|
}
|
|
@@ -4794,24 +5797,24 @@ class pe extends v {
|
|
|
4794
5797
|
return this._def.valueType;
|
|
4795
5798
|
}
|
|
4796
5799
|
_parse(e) {
|
|
4797
|
-
const { status: t, ctx:
|
|
4798
|
-
if (
|
|
4799
|
-
return
|
|
5800
|
+
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5801
|
+
if (i.parsedType !== l.map)
|
|
5802
|
+
return u(i, {
|
|
4800
5803
|
code: c.invalid_type,
|
|
4801
|
-
expected:
|
|
4802
|
-
received:
|
|
4803
|
-
}),
|
|
4804
|
-
const
|
|
4805
|
-
key:
|
|
4806
|
-
value:
|
|
5804
|
+
expected: l.map,
|
|
5805
|
+
received: i.parsedType
|
|
5806
|
+
}), _;
|
|
5807
|
+
const n = this._def.keyType, r = this._def.valueType, s = [...i.data.entries()].map(([o, m], d) => ({
|
|
5808
|
+
key: n._parse(new N(i, o, i.path, [d, "key"])),
|
|
5809
|
+
value: r._parse(new N(i, m, i.path, [d, "value"]))
|
|
4807
5810
|
}));
|
|
4808
|
-
if (
|
|
5811
|
+
if (i.common.async) {
|
|
4809
5812
|
const o = /* @__PURE__ */ new Map();
|
|
4810
5813
|
return Promise.resolve().then(async () => {
|
|
4811
5814
|
for (const m of s) {
|
|
4812
5815
|
const d = await m.key, y = await m.value;
|
|
4813
5816
|
if (d.status === "aborted" || y.status === "aborted")
|
|
4814
|
-
return
|
|
5817
|
+
return _;
|
|
4815
5818
|
(d.status === "dirty" || y.status === "dirty") && t.dirty(), o.set(d.value, y.value);
|
|
4816
5819
|
}
|
|
4817
5820
|
return { status: t.value, value: o };
|
|
@@ -4821,7 +5824,7 @@ class pe extends v {
|
|
|
4821
5824
|
for (const m of s) {
|
|
4822
5825
|
const d = m.key, y = m.value;
|
|
4823
5826
|
if (d.status === "aborted" || y.status === "aborted")
|
|
4824
|
-
return
|
|
5827
|
+
return _;
|
|
4825
5828
|
(d.status === "dirty" || y.status === "dirty") && t.dirty(), o.set(d.value, y.value);
|
|
4826
5829
|
}
|
|
4827
5830
|
return { status: t.value, value: o };
|
|
@@ -4832,45 +5835,45 @@ pe.create = (a, e, t) => new pe({
|
|
|
4832
5835
|
valueType: e,
|
|
4833
5836
|
keyType: a,
|
|
4834
5837
|
typeName: f.ZodMap,
|
|
4835
|
-
...
|
|
5838
|
+
...g(t)
|
|
4836
5839
|
});
|
|
4837
5840
|
class U extends v {
|
|
4838
5841
|
_parse(e) {
|
|
4839
|
-
const { status: t, ctx:
|
|
4840
|
-
if (
|
|
4841
|
-
return
|
|
5842
|
+
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5843
|
+
if (i.parsedType !== l.set)
|
|
5844
|
+
return u(i, {
|
|
4842
5845
|
code: c.invalid_type,
|
|
4843
|
-
expected:
|
|
4844
|
-
received:
|
|
4845
|
-
}),
|
|
4846
|
-
const
|
|
4847
|
-
|
|
5846
|
+
expected: l.set,
|
|
5847
|
+
received: i.parsedType
|
|
5848
|
+
}), _;
|
|
5849
|
+
const n = this._def;
|
|
5850
|
+
n.minSize !== null && i.data.size < n.minSize.value && (u(i, {
|
|
4848
5851
|
code: c.too_small,
|
|
4849
|
-
minimum:
|
|
5852
|
+
minimum: n.minSize.value,
|
|
4850
5853
|
type: "set",
|
|
4851
5854
|
inclusive: !0,
|
|
4852
5855
|
exact: !1,
|
|
4853
|
-
message:
|
|
4854
|
-
}), t.dirty()),
|
|
5856
|
+
message: n.minSize.message
|
|
5857
|
+
}), t.dirty()), n.maxSize !== null && i.data.size > n.maxSize.value && (u(i, {
|
|
4855
5858
|
code: c.too_big,
|
|
4856
|
-
maximum:
|
|
5859
|
+
maximum: n.maxSize.value,
|
|
4857
5860
|
type: "set",
|
|
4858
5861
|
inclusive: !0,
|
|
4859
5862
|
exact: !1,
|
|
4860
|
-
message:
|
|
5863
|
+
message: n.maxSize.message
|
|
4861
5864
|
}), t.dirty());
|
|
4862
|
-
const
|
|
5865
|
+
const r = this._def.valueType;
|
|
4863
5866
|
function s(m) {
|
|
4864
5867
|
const d = /* @__PURE__ */ new Set();
|
|
4865
5868
|
for (const y of m) {
|
|
4866
5869
|
if (y.status === "aborted")
|
|
4867
|
-
return
|
|
5870
|
+
return _;
|
|
4868
5871
|
y.status === "dirty" && t.dirty(), d.add(y.value);
|
|
4869
5872
|
}
|
|
4870
5873
|
return { status: t.value, value: d };
|
|
4871
5874
|
}
|
|
4872
|
-
const o = [...
|
|
4873
|
-
return
|
|
5875
|
+
const o = [...i.data.values()].map((m, d) => r._parse(new N(i, m, i.path, d)));
|
|
5876
|
+
return i.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
|
|
4874
5877
|
}
|
|
4875
5878
|
min(e, t) {
|
|
4876
5879
|
return new U({
|
|
@@ -4896,7 +5899,7 @@ U.create = (a, e) => new U({
|
|
|
4896
5899
|
minSize: null,
|
|
4897
5900
|
maxSize: null,
|
|
4898
5901
|
typeName: f.ZodSet,
|
|
4899
|
-
...
|
|
5902
|
+
...g(e)
|
|
4900
5903
|
});
|
|
4901
5904
|
class z extends v {
|
|
4902
5905
|
constructor() {
|
|
@@ -4904,13 +5907,13 @@ class z extends v {
|
|
|
4904
5907
|
}
|
|
4905
5908
|
_parse(e) {
|
|
4906
5909
|
const { ctx: t } = this._processInputParams(e);
|
|
4907
|
-
if (t.parsedType !==
|
|
4908
|
-
return
|
|
5910
|
+
if (t.parsedType !== l.function)
|
|
5911
|
+
return u(t, {
|
|
4909
5912
|
code: c.invalid_type,
|
|
4910
|
-
expected:
|
|
5913
|
+
expected: l.function,
|
|
4911
5914
|
received: t.parsedType
|
|
4912
|
-
}),
|
|
4913
|
-
function
|
|
5915
|
+
}), _;
|
|
5916
|
+
function i(o, m) {
|
|
4914
5917
|
return de({
|
|
4915
5918
|
data: o,
|
|
4916
5919
|
path: t.path,
|
|
@@ -4926,7 +5929,7 @@ class z extends v {
|
|
|
4926
5929
|
}
|
|
4927
5930
|
});
|
|
4928
5931
|
}
|
|
4929
|
-
function
|
|
5932
|
+
function n(o, m) {
|
|
4930
5933
|
return de({
|
|
4931
5934
|
data: o,
|
|
4932
5935
|
path: t.path,
|
|
@@ -4942,26 +5945,26 @@ class z extends v {
|
|
|
4942
5945
|
}
|
|
4943
5946
|
});
|
|
4944
5947
|
}
|
|
4945
|
-
const
|
|
5948
|
+
const r = { errorMap: t.common.contextualErrorMap }, s = t.data;
|
|
4946
5949
|
if (this._def.returns instanceof Y) {
|
|
4947
5950
|
const o = this;
|
|
4948
5951
|
return k(async function(...m) {
|
|
4949
|
-
const d = new E([]), y = await o._def.args.parseAsync(m,
|
|
4950
|
-
throw d.addIssue(
|
|
5952
|
+
const d = new E([]), y = await o._def.args.parseAsync(m, r).catch((ve) => {
|
|
5953
|
+
throw d.addIssue(i(m, ve)), d;
|
|
4951
5954
|
}), S = await Reflect.apply(s, this, y);
|
|
4952
|
-
return await o._def.returns._def.type.parseAsync(S,
|
|
4953
|
-
throw d.addIssue(
|
|
5955
|
+
return await o._def.returns._def.type.parseAsync(S, r).catch((ve) => {
|
|
5956
|
+
throw d.addIssue(n(S, ve)), d;
|
|
4954
5957
|
});
|
|
4955
5958
|
});
|
|
4956
5959
|
} else {
|
|
4957
5960
|
const o = this;
|
|
4958
5961
|
return k(function(...m) {
|
|
4959
|
-
const d = o._def.args.safeParse(m,
|
|
5962
|
+
const d = o._def.args.safeParse(m, r);
|
|
4960
5963
|
if (!d.success)
|
|
4961
|
-
throw new E([
|
|
4962
|
-
const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y,
|
|
5964
|
+
throw new E([i(m, d.error)]);
|
|
5965
|
+
const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y, r);
|
|
4963
5966
|
if (!S.success)
|
|
4964
|
-
throw new E([
|
|
5967
|
+
throw new E([n(y, S.error)]);
|
|
4965
5968
|
return S.data;
|
|
4966
5969
|
});
|
|
4967
5970
|
}
|
|
@@ -4975,7 +5978,7 @@ class z extends v {
|
|
|
4975
5978
|
args(...e) {
|
|
4976
5979
|
return new z({
|
|
4977
5980
|
...this._def,
|
|
4978
|
-
args:
|
|
5981
|
+
args: P.create(e).rest(B.create())
|
|
4979
5982
|
});
|
|
4980
5983
|
}
|
|
4981
5984
|
returns(e) {
|
|
@@ -4990,12 +5993,12 @@ class z extends v {
|
|
|
4990
5993
|
strictImplement(e) {
|
|
4991
5994
|
return this.parse(e);
|
|
4992
5995
|
}
|
|
4993
|
-
static create(e, t,
|
|
5996
|
+
static create(e, t, i) {
|
|
4994
5997
|
return new z({
|
|
4995
|
-
args: e ||
|
|
4996
|
-
returns: t ||
|
|
5998
|
+
args: e || P.create([]).rest(B.create()),
|
|
5999
|
+
returns: t || B.create(),
|
|
4997
6000
|
typeName: f.ZodFunction,
|
|
4998
|
-
...
|
|
6001
|
+
...g(i)
|
|
4999
6002
|
});
|
|
5000
6003
|
}
|
|
5001
6004
|
}
|
|
@@ -5011,17 +6014,17 @@ class ae extends v {
|
|
|
5011
6014
|
ae.create = (a, e) => new ae({
|
|
5012
6015
|
getter: a,
|
|
5013
6016
|
typeName: f.ZodLazy,
|
|
5014
|
-
...
|
|
6017
|
+
...g(e)
|
|
5015
6018
|
});
|
|
5016
|
-
class
|
|
6019
|
+
class ie extends v {
|
|
5017
6020
|
_parse(e) {
|
|
5018
6021
|
if (e.data !== this._def.value) {
|
|
5019
6022
|
const t = this._getOrReturnCtx(e);
|
|
5020
|
-
return
|
|
6023
|
+
return u(t, {
|
|
5021
6024
|
received: t.data,
|
|
5022
6025
|
code: c.invalid_literal,
|
|
5023
6026
|
expected: this._def.value
|
|
5024
|
-
}),
|
|
6027
|
+
}), _;
|
|
5025
6028
|
}
|
|
5026
6029
|
return { status: "valid", value: e.data };
|
|
5027
6030
|
}
|
|
@@ -5029,35 +6032,35 @@ class ne extends v {
|
|
|
5029
6032
|
return this._def.value;
|
|
5030
6033
|
}
|
|
5031
6034
|
}
|
|
5032
|
-
|
|
6035
|
+
ie.create = (a, e) => new ie({
|
|
5033
6036
|
value: a,
|
|
5034
6037
|
typeName: f.ZodLiteral,
|
|
5035
|
-
...
|
|
6038
|
+
...g(e)
|
|
5036
6039
|
});
|
|
5037
6040
|
function Ae(a, e) {
|
|
5038
6041
|
return new V({
|
|
5039
6042
|
values: a,
|
|
5040
6043
|
typeName: f.ZodEnum,
|
|
5041
|
-
...
|
|
6044
|
+
...g(e)
|
|
5042
6045
|
});
|
|
5043
6046
|
}
|
|
5044
6047
|
class V extends v {
|
|
5045
6048
|
_parse(e) {
|
|
5046
6049
|
if (typeof e.data != "string") {
|
|
5047
|
-
const t = this._getOrReturnCtx(e),
|
|
5048
|
-
return
|
|
5049
|
-
expected: b.joinValues(
|
|
6050
|
+
const t = this._getOrReturnCtx(e), i = this._def.values;
|
|
6051
|
+
return u(t, {
|
|
6052
|
+
expected: b.joinValues(i),
|
|
5050
6053
|
received: t.parsedType,
|
|
5051
6054
|
code: c.invalid_type
|
|
5052
|
-
}),
|
|
6055
|
+
}), _;
|
|
5053
6056
|
}
|
|
5054
6057
|
if (this._def.values.indexOf(e.data) === -1) {
|
|
5055
|
-
const t = this._getOrReturnCtx(e),
|
|
5056
|
-
return
|
|
6058
|
+
const t = this._getOrReturnCtx(e), i = this._def.values;
|
|
6059
|
+
return u(t, {
|
|
5057
6060
|
received: t.data,
|
|
5058
6061
|
code: c.invalid_enum_value,
|
|
5059
|
-
options:
|
|
5060
|
-
}),
|
|
6062
|
+
options: i
|
|
6063
|
+
}), _;
|
|
5061
6064
|
}
|
|
5062
6065
|
return k(e.data);
|
|
5063
6066
|
}
|
|
@@ -5090,24 +6093,24 @@ class V extends v {
|
|
|
5090
6093
|
}
|
|
5091
6094
|
}
|
|
5092
6095
|
V.create = Ae;
|
|
5093
|
-
class
|
|
6096
|
+
class ne extends v {
|
|
5094
6097
|
_parse(e) {
|
|
5095
|
-
const t = b.getValidEnumValues(this._def.values),
|
|
5096
|
-
if (
|
|
5097
|
-
const
|
|
5098
|
-
return
|
|
5099
|
-
expected: b.joinValues(
|
|
5100
|
-
received:
|
|
6098
|
+
const t = b.getValidEnumValues(this._def.values), i = this._getOrReturnCtx(e);
|
|
6099
|
+
if (i.parsedType !== l.string && i.parsedType !== l.number) {
|
|
6100
|
+
const n = b.objectValues(t);
|
|
6101
|
+
return u(i, {
|
|
6102
|
+
expected: b.joinValues(n),
|
|
6103
|
+
received: i.parsedType,
|
|
5101
6104
|
code: c.invalid_type
|
|
5102
|
-
}),
|
|
6105
|
+
}), _;
|
|
5103
6106
|
}
|
|
5104
6107
|
if (t.indexOf(e.data) === -1) {
|
|
5105
|
-
const
|
|
5106
|
-
return
|
|
5107
|
-
received:
|
|
6108
|
+
const n = b.objectValues(t);
|
|
6109
|
+
return u(i, {
|
|
6110
|
+
received: i.data,
|
|
5108
6111
|
code: c.invalid_enum_value,
|
|
5109
|
-
options:
|
|
5110
|
-
}),
|
|
6112
|
+
options: n
|
|
6113
|
+
}), _;
|
|
5111
6114
|
}
|
|
5112
6115
|
return k(e.data);
|
|
5113
6116
|
}
|
|
@@ -5115,10 +6118,10 @@ class re extends v {
|
|
|
5115
6118
|
return this._def.values;
|
|
5116
6119
|
}
|
|
5117
6120
|
}
|
|
5118
|
-
|
|
6121
|
+
ne.create = (a, e) => new ne({
|
|
5119
6122
|
values: a,
|
|
5120
6123
|
typeName: f.ZodNativeEnum,
|
|
5121
|
-
...
|
|
6124
|
+
...g(e)
|
|
5122
6125
|
});
|
|
5123
6126
|
class Y extends v {
|
|
5124
6127
|
unwrap() {
|
|
@@ -5126,14 +6129,14 @@ class Y extends v {
|
|
|
5126
6129
|
}
|
|
5127
6130
|
_parse(e) {
|
|
5128
6131
|
const { ctx: t } = this._processInputParams(e);
|
|
5129
|
-
if (t.parsedType !==
|
|
5130
|
-
return
|
|
6132
|
+
if (t.parsedType !== l.promise && t.common.async === !1)
|
|
6133
|
+
return u(t, {
|
|
5131
6134
|
code: c.invalid_type,
|
|
5132
|
-
expected:
|
|
6135
|
+
expected: l.promise,
|
|
5133
6136
|
received: t.parsedType
|
|
5134
|
-
}),
|
|
5135
|
-
const
|
|
5136
|
-
return k(
|
|
6137
|
+
}), _;
|
|
6138
|
+
const i = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
|
|
6139
|
+
return k(i.then((n) => this._def.type.parseAsync(n, {
|
|
5137
6140
|
path: t.path,
|
|
5138
6141
|
errorMap: t.common.contextualErrorMap
|
|
5139
6142
|
})));
|
|
@@ -5142,7 +6145,7 @@ class Y extends v {
|
|
|
5142
6145
|
Y.create = (a, e) => new Y({
|
|
5143
6146
|
type: a,
|
|
5144
6147
|
typeName: f.ZodPromise,
|
|
5145
|
-
...
|
|
6148
|
+
...g(e)
|
|
5146
6149
|
});
|
|
5147
6150
|
class I extends v {
|
|
5148
6151
|
innerType() {
|
|
@@ -5152,94 +6155,94 @@ class I extends v {
|
|
|
5152
6155
|
return this._def.schema._def.typeName === f.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
5153
6156
|
}
|
|
5154
6157
|
_parse(e) {
|
|
5155
|
-
const { status: t, ctx:
|
|
6158
|
+
const { status: t, ctx: i } = this._processInputParams(e), n = this._def.effect || null, r = {
|
|
5156
6159
|
addIssue: (s) => {
|
|
5157
|
-
|
|
6160
|
+
u(i, s), s.fatal ? t.abort() : t.dirty();
|
|
5158
6161
|
},
|
|
5159
6162
|
get path() {
|
|
5160
|
-
return
|
|
6163
|
+
return i.path;
|
|
5161
6164
|
}
|
|
5162
6165
|
};
|
|
5163
|
-
if (
|
|
5164
|
-
const s =
|
|
5165
|
-
return
|
|
6166
|
+
if (r.addIssue = r.addIssue.bind(r), n.type === "preprocess") {
|
|
6167
|
+
const s = n.transform(i.data, r);
|
|
6168
|
+
return i.common.issues.length ? {
|
|
5166
6169
|
status: "dirty",
|
|
5167
|
-
value:
|
|
5168
|
-
} :
|
|
6170
|
+
value: i.data
|
|
6171
|
+
} : i.common.async ? Promise.resolve(s).then((o) => this._def.schema._parseAsync({
|
|
5169
6172
|
data: o,
|
|
5170
|
-
path:
|
|
5171
|
-
parent:
|
|
6173
|
+
path: i.path,
|
|
6174
|
+
parent: i
|
|
5172
6175
|
})) : this._def.schema._parseSync({
|
|
5173
6176
|
data: s,
|
|
5174
|
-
path:
|
|
5175
|
-
parent:
|
|
6177
|
+
path: i.path,
|
|
6178
|
+
parent: i
|
|
5176
6179
|
});
|
|
5177
6180
|
}
|
|
5178
|
-
if (
|
|
6181
|
+
if (n.type === "refinement") {
|
|
5179
6182
|
const s = (o) => {
|
|
5180
|
-
const m =
|
|
5181
|
-
if (
|
|
6183
|
+
const m = n.refinement(o, r);
|
|
6184
|
+
if (i.common.async)
|
|
5182
6185
|
return Promise.resolve(m);
|
|
5183
6186
|
if (m instanceof Promise)
|
|
5184
6187
|
throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
5185
6188
|
return o;
|
|
5186
6189
|
};
|
|
5187
|
-
if (
|
|
6190
|
+
if (i.common.async === !1) {
|
|
5188
6191
|
const o = this._def.schema._parseSync({
|
|
5189
|
-
data:
|
|
5190
|
-
path:
|
|
5191
|
-
parent:
|
|
6192
|
+
data: i.data,
|
|
6193
|
+
path: i.path,
|
|
6194
|
+
parent: i
|
|
5192
6195
|
});
|
|
5193
|
-
return o.status === "aborted" ?
|
|
6196
|
+
return o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), s(o.value), { status: t.value, value: o.value });
|
|
5194
6197
|
} else
|
|
5195
|
-
return this._def.schema._parseAsync({ data:
|
|
6198
|
+
return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((o) => o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
|
|
5196
6199
|
}
|
|
5197
|
-
if (
|
|
5198
|
-
if (
|
|
6200
|
+
if (n.type === "transform")
|
|
6201
|
+
if (i.common.async === !1) {
|
|
5199
6202
|
const s = this._def.schema._parseSync({
|
|
5200
|
-
data:
|
|
5201
|
-
path:
|
|
5202
|
-
parent:
|
|
6203
|
+
data: i.data,
|
|
6204
|
+
path: i.path,
|
|
6205
|
+
parent: i
|
|
5203
6206
|
});
|
|
5204
6207
|
if (!H(s))
|
|
5205
6208
|
return s;
|
|
5206
|
-
const o =
|
|
6209
|
+
const o = n.transform(s.value, r);
|
|
5207
6210
|
if (o instanceof Promise)
|
|
5208
6211
|
throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
5209
6212
|
return { status: t.value, value: o };
|
|
5210
6213
|
} else
|
|
5211
|
-
return this._def.schema._parseAsync({ data:
|
|
5212
|
-
b.assertNever(
|
|
6214
|
+
return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((s) => H(s) ? Promise.resolve(n.transform(s.value, r)).then((o) => ({ status: t.value, value: o })) : s);
|
|
6215
|
+
b.assertNever(n);
|
|
5213
6216
|
}
|
|
5214
6217
|
}
|
|
5215
6218
|
I.create = (a, e, t) => new I({
|
|
5216
6219
|
schema: a,
|
|
5217
6220
|
typeName: f.ZodEffects,
|
|
5218
6221
|
effect: e,
|
|
5219
|
-
...
|
|
6222
|
+
...g(t)
|
|
5220
6223
|
});
|
|
5221
6224
|
I.createWithPreprocess = (a, e, t) => new I({
|
|
5222
6225
|
schema: e,
|
|
5223
6226
|
effect: { type: "preprocess", transform: a },
|
|
5224
6227
|
typeName: f.ZodEffects,
|
|
5225
|
-
...
|
|
6228
|
+
...g(t)
|
|
5226
6229
|
});
|
|
5227
|
-
class
|
|
6230
|
+
class M extends v {
|
|
5228
6231
|
_parse(e) {
|
|
5229
|
-
return this._getType(e) ===
|
|
6232
|
+
return this._getType(e) === l.undefined ? k(void 0) : this._def.innerType._parse(e);
|
|
5230
6233
|
}
|
|
5231
6234
|
unwrap() {
|
|
5232
6235
|
return this._def.innerType;
|
|
5233
6236
|
}
|
|
5234
6237
|
}
|
|
5235
|
-
|
|
6238
|
+
M.create = (a, e) => new M({
|
|
5236
6239
|
innerType: a,
|
|
5237
6240
|
typeName: f.ZodOptional,
|
|
5238
|
-
...
|
|
6241
|
+
...g(e)
|
|
5239
6242
|
});
|
|
5240
6243
|
class q extends v {
|
|
5241
6244
|
_parse(e) {
|
|
5242
|
-
return this._getType(e) ===
|
|
6245
|
+
return this._getType(e) === l.null ? k(null) : this._def.innerType._parse(e);
|
|
5243
6246
|
}
|
|
5244
6247
|
unwrap() {
|
|
5245
6248
|
return this._def.innerType;
|
|
@@ -5248,14 +6251,14 @@ class q extends v {
|
|
|
5248
6251
|
q.create = (a, e) => new q({
|
|
5249
6252
|
innerType: a,
|
|
5250
6253
|
typeName: f.ZodNullable,
|
|
5251
|
-
...
|
|
6254
|
+
...g(e)
|
|
5252
6255
|
});
|
|
5253
|
-
class
|
|
6256
|
+
class re extends v {
|
|
5254
6257
|
_parse(e) {
|
|
5255
6258
|
const { ctx: t } = this._processInputParams(e);
|
|
5256
|
-
let
|
|
5257
|
-
return t.parsedType ===
|
|
5258
|
-
data:
|
|
6259
|
+
let i = t.data;
|
|
6260
|
+
return t.parsedType === l.undefined && (i = this._def.defaultValue()), this._def.innerType._parse({
|
|
6261
|
+
data: i,
|
|
5259
6262
|
path: t.path,
|
|
5260
6263
|
parent: t
|
|
5261
6264
|
});
|
|
@@ -5264,42 +6267,42 @@ class ie extends v {
|
|
|
5264
6267
|
return this._def.innerType;
|
|
5265
6268
|
}
|
|
5266
6269
|
}
|
|
5267
|
-
|
|
6270
|
+
re.create = (a, e) => new re({
|
|
5268
6271
|
innerType: a,
|
|
5269
6272
|
typeName: f.ZodDefault,
|
|
5270
6273
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
5271
|
-
...
|
|
6274
|
+
...g(e)
|
|
5272
6275
|
});
|
|
5273
6276
|
class fe extends v {
|
|
5274
6277
|
_parse(e) {
|
|
5275
|
-
const { ctx: t } = this._processInputParams(e),
|
|
6278
|
+
const { ctx: t } = this._processInputParams(e), i = {
|
|
5276
6279
|
...t,
|
|
5277
6280
|
common: {
|
|
5278
6281
|
...t.common,
|
|
5279
6282
|
issues: []
|
|
5280
6283
|
}
|
|
5281
|
-
},
|
|
5282
|
-
data:
|
|
5283
|
-
path:
|
|
6284
|
+
}, n = this._def.innerType._parse({
|
|
6285
|
+
data: i.data,
|
|
6286
|
+
path: i.path,
|
|
5284
6287
|
parent: {
|
|
5285
|
-
...
|
|
6288
|
+
...i
|
|
5286
6289
|
}
|
|
5287
6290
|
});
|
|
5288
|
-
return
|
|
6291
|
+
return le(n) ? n.then((r) => ({
|
|
5289
6292
|
status: "valid",
|
|
5290
|
-
value:
|
|
6293
|
+
value: r.status === "valid" ? r.value : this._def.catchValue({
|
|
5291
6294
|
get error() {
|
|
5292
|
-
return new E(
|
|
6295
|
+
return new E(i.common.issues);
|
|
5293
6296
|
},
|
|
5294
|
-
input:
|
|
6297
|
+
input: i.data
|
|
5295
6298
|
})
|
|
5296
6299
|
})) : {
|
|
5297
6300
|
status: "valid",
|
|
5298
|
-
value:
|
|
6301
|
+
value: n.status === "valid" ? n.value : this._def.catchValue({
|
|
5299
6302
|
get error() {
|
|
5300
|
-
return new E(
|
|
6303
|
+
return new E(i.common.issues);
|
|
5301
6304
|
},
|
|
5302
|
-
input:
|
|
6305
|
+
input: i.data
|
|
5303
6306
|
})
|
|
5304
6307
|
};
|
|
5305
6308
|
}
|
|
@@ -5311,31 +6314,31 @@ fe.create = (a, e) => new fe({
|
|
|
5311
6314
|
innerType: a,
|
|
5312
6315
|
typeName: f.ZodCatch,
|
|
5313
6316
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
5314
|
-
...
|
|
6317
|
+
...g(e)
|
|
5315
6318
|
});
|
|
5316
6319
|
class he extends v {
|
|
5317
6320
|
_parse(e) {
|
|
5318
|
-
if (this._getType(e) !==
|
|
5319
|
-
const
|
|
5320
|
-
return
|
|
6321
|
+
if (this._getType(e) !== l.nan) {
|
|
6322
|
+
const i = this._getOrReturnCtx(e);
|
|
6323
|
+
return u(i, {
|
|
5321
6324
|
code: c.invalid_type,
|
|
5322
|
-
expected:
|
|
5323
|
-
received:
|
|
5324
|
-
}),
|
|
6325
|
+
expected: l.nan,
|
|
6326
|
+
received: i.parsedType
|
|
6327
|
+
}), _;
|
|
5325
6328
|
}
|
|
5326
6329
|
return { status: "valid", value: e.data };
|
|
5327
6330
|
}
|
|
5328
6331
|
}
|
|
5329
6332
|
he.create = (a) => new he({
|
|
5330
6333
|
typeName: f.ZodNaN,
|
|
5331
|
-
...
|
|
6334
|
+
...g(a)
|
|
5332
6335
|
});
|
|
5333
|
-
const
|
|
6336
|
+
const ct = Symbol("zod_brand");
|
|
5334
6337
|
class Ee extends v {
|
|
5335
6338
|
_parse(e) {
|
|
5336
|
-
const { ctx: t } = this._processInputParams(e),
|
|
6339
|
+
const { ctx: t } = this._processInputParams(e), i = t.data;
|
|
5337
6340
|
return this._def.type._parse({
|
|
5338
|
-
data:
|
|
6341
|
+
data: i,
|
|
5339
6342
|
path: t.path,
|
|
5340
6343
|
parent: t
|
|
5341
6344
|
});
|
|
@@ -5346,33 +6349,33 @@ class Ee extends v {
|
|
|
5346
6349
|
}
|
|
5347
6350
|
class se extends v {
|
|
5348
6351
|
_parse(e) {
|
|
5349
|
-
const { status: t, ctx:
|
|
5350
|
-
if (
|
|
6352
|
+
const { status: t, ctx: i } = this._processInputParams(e);
|
|
6353
|
+
if (i.common.async)
|
|
5351
6354
|
return (async () => {
|
|
5352
|
-
const
|
|
5353
|
-
data:
|
|
5354
|
-
path:
|
|
5355
|
-
parent:
|
|
6355
|
+
const r = await this._def.in._parseAsync({
|
|
6356
|
+
data: i.data,
|
|
6357
|
+
path: i.path,
|
|
6358
|
+
parent: i
|
|
5356
6359
|
});
|
|
5357
|
-
return
|
|
5358
|
-
data:
|
|
5359
|
-
path:
|
|
5360
|
-
parent:
|
|
6360
|
+
return r.status === "aborted" ? _ : r.status === "dirty" ? (t.dirty(), Se(r.value)) : this._def.out._parseAsync({
|
|
6361
|
+
data: r.value,
|
|
6362
|
+
path: i.path,
|
|
6363
|
+
parent: i
|
|
5361
6364
|
});
|
|
5362
6365
|
})();
|
|
5363
6366
|
{
|
|
5364
|
-
const
|
|
5365
|
-
data:
|
|
5366
|
-
path:
|
|
5367
|
-
parent:
|
|
6367
|
+
const n = this._def.in._parseSync({
|
|
6368
|
+
data: i.data,
|
|
6369
|
+
path: i.path,
|
|
6370
|
+
parent: i
|
|
5368
6371
|
});
|
|
5369
|
-
return
|
|
6372
|
+
return n.status === "aborted" ? _ : n.status === "dirty" ? (t.dirty(), {
|
|
5370
6373
|
status: "dirty",
|
|
5371
|
-
value:
|
|
6374
|
+
value: n.value
|
|
5372
6375
|
}) : this._def.out._parseSync({
|
|
5373
|
-
data:
|
|
5374
|
-
path:
|
|
5375
|
-
parent:
|
|
6376
|
+
data: n.value,
|
|
6377
|
+
path: i.path,
|
|
6378
|
+
parent: i
|
|
5376
6379
|
});
|
|
5377
6380
|
}
|
|
5378
6381
|
}
|
|
@@ -5384,33 +6387,33 @@ class se extends v {
|
|
|
5384
6387
|
});
|
|
5385
6388
|
}
|
|
5386
6389
|
}
|
|
5387
|
-
class
|
|
6390
|
+
class _e extends v {
|
|
5388
6391
|
_parse(e) {
|
|
5389
6392
|
const t = this._def.innerType._parse(e);
|
|
5390
6393
|
return H(t) && (t.value = Object.freeze(t.value)), t;
|
|
5391
6394
|
}
|
|
5392
6395
|
}
|
|
5393
|
-
|
|
6396
|
+
_e.create = (a, e) => new _e({
|
|
5394
6397
|
innerType: a,
|
|
5395
6398
|
typeName: f.ZodReadonly,
|
|
5396
|
-
...
|
|
6399
|
+
...g(e)
|
|
5397
6400
|
});
|
|
5398
|
-
const Oe = (a, e = {}, t) => a ? W.create().superRefine((
|
|
5399
|
-
var
|
|
5400
|
-
if (!a(
|
|
5401
|
-
const o = typeof e == "function" ? e(
|
|
5402
|
-
|
|
6401
|
+
const Oe = (a, e = {}, t) => a ? W.create().superRefine((i, n) => {
|
|
6402
|
+
var r, s;
|
|
6403
|
+
if (!a(i)) {
|
|
6404
|
+
const o = typeof e == "function" ? e(i) : 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;
|
|
6405
|
+
n.addIssue({ code: "custom", ...d, fatal: m });
|
|
5403
6406
|
}
|
|
5404
|
-
}) : W.create(),
|
|
6407
|
+
}) : W.create(), dt = {
|
|
5405
6408
|
object: w.lazycreate
|
|
5406
6409
|
};
|
|
5407
6410
|
var f;
|
|
5408
6411
|
(function(a) {
|
|
5409
6412
|
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";
|
|
5410
6413
|
})(f || (f = {}));
|
|
5411
|
-
const
|
|
6414
|
+
const lt = (a, e = {
|
|
5412
6415
|
message: `Input not instance of ${a.name}`
|
|
5413
|
-
}) => Oe((t) => t instanceof a, e), Ie = A.create, Ne = D.create,
|
|
6416
|
+
}) => Oe((t) => t instanceof a, e), Ie = A.create, Ne = D.create, ut = he.create, mt = Z.create, Pe = J.create, pt = $.create, ft = ue.create, ht = X.create, _t = K.create, gt = W.create, vt = B.create, yt = L.create, bt = me.create, xt = O.create, wt = w.create, Tt = w.strictCreate, Ct = Q.create, Rt = ge.create, kt = ee.create, St = P.create, At = te.create, Et = pe.create, Ot = U.create, It = z.create, Nt = ae.create, Pt = ie.create, Mt = V.create, Lt = ne.create, jt = Y.create, Re = I.create, Dt = M.create, Zt = q.create, Vt = I.createWithPreprocess, Bt = se.create, $t = () => Ie().optional(), Ut = () => Ne().optional(), qt = () => Pe().optional(), Gt = {
|
|
5414
6417
|
string: (a) => A.create({ ...a, coerce: !0 }),
|
|
5415
6418
|
number: (a) => D.create({ ...a, coerce: !0 }),
|
|
5416
6419
|
boolean: (a) => J.create({
|
|
@@ -5418,124 +6421,124 @@ const st = (a, e = {
|
|
|
5418
6421
|
coerce: !0
|
|
5419
6422
|
}),
|
|
5420
6423
|
bigint: (a) => Z.create({ ...a, coerce: !0 }),
|
|
5421
|
-
date: (a) =>
|
|
5422
|
-
},
|
|
5423
|
-
var
|
|
6424
|
+
date: (a) => $.create({ ...a, coerce: !0 })
|
|
6425
|
+
}, zt = _;
|
|
6426
|
+
var Wt = /* @__PURE__ */ Object.freeze({
|
|
5424
6427
|
__proto__: null,
|
|
5425
6428
|
defaultErrorMap: F,
|
|
5426
|
-
setErrorMap:
|
|
6429
|
+
setErrorMap: He,
|
|
5427
6430
|
getErrorMap: ce,
|
|
5428
6431
|
makeIssue: de,
|
|
5429
|
-
EMPTY_PATH:
|
|
5430
|
-
addIssueToContext:
|
|
6432
|
+
EMPTY_PATH: Je,
|
|
6433
|
+
addIssueToContext: u,
|
|
5431
6434
|
ParseStatus: C,
|
|
5432
|
-
INVALID:
|
|
6435
|
+
INVALID: _,
|
|
5433
6436
|
DIRTY: Se,
|
|
5434
6437
|
OK: k,
|
|
5435
6438
|
isAborted: xe,
|
|
5436
6439
|
isDirty: we,
|
|
5437
6440
|
isValid: H,
|
|
5438
|
-
isAsync:
|
|
6441
|
+
isAsync: le,
|
|
5439
6442
|
get util() {
|
|
5440
6443
|
return b;
|
|
5441
6444
|
},
|
|
5442
6445
|
get objectUtil() {
|
|
5443
6446
|
return be;
|
|
5444
6447
|
},
|
|
5445
|
-
ZodParsedType:
|
|
6448
|
+
ZodParsedType: l,
|
|
5446
6449
|
getParsedType: j,
|
|
5447
6450
|
ZodType: v,
|
|
5448
6451
|
ZodString: A,
|
|
5449
6452
|
ZodNumber: D,
|
|
5450
6453
|
ZodBigInt: Z,
|
|
5451
6454
|
ZodBoolean: J,
|
|
5452
|
-
ZodDate:
|
|
5453
|
-
ZodSymbol:
|
|
6455
|
+
ZodDate: $,
|
|
6456
|
+
ZodSymbol: ue,
|
|
5454
6457
|
ZodUndefined: X,
|
|
5455
6458
|
ZodNull: K,
|
|
5456
6459
|
ZodAny: W,
|
|
5457
|
-
ZodUnknown:
|
|
6460
|
+
ZodUnknown: B,
|
|
5458
6461
|
ZodNever: L,
|
|
5459
6462
|
ZodVoid: me,
|
|
5460
6463
|
ZodArray: O,
|
|
5461
6464
|
ZodObject: w,
|
|
5462
6465
|
ZodUnion: Q,
|
|
5463
|
-
ZodDiscriminatedUnion:
|
|
6466
|
+
ZodDiscriminatedUnion: ge,
|
|
5464
6467
|
ZodIntersection: ee,
|
|
5465
|
-
ZodTuple:
|
|
6468
|
+
ZodTuple: P,
|
|
5466
6469
|
ZodRecord: te,
|
|
5467
6470
|
ZodMap: pe,
|
|
5468
6471
|
ZodSet: U,
|
|
5469
6472
|
ZodFunction: z,
|
|
5470
6473
|
ZodLazy: ae,
|
|
5471
|
-
ZodLiteral:
|
|
6474
|
+
ZodLiteral: ie,
|
|
5472
6475
|
ZodEnum: V,
|
|
5473
|
-
ZodNativeEnum:
|
|
6476
|
+
ZodNativeEnum: ne,
|
|
5474
6477
|
ZodPromise: Y,
|
|
5475
6478
|
ZodEffects: I,
|
|
5476
6479
|
ZodTransformer: I,
|
|
5477
|
-
ZodOptional:
|
|
6480
|
+
ZodOptional: M,
|
|
5478
6481
|
ZodNullable: q,
|
|
5479
|
-
ZodDefault:
|
|
6482
|
+
ZodDefault: re,
|
|
5480
6483
|
ZodCatch: fe,
|
|
5481
6484
|
ZodNaN: he,
|
|
5482
|
-
BRAND:
|
|
6485
|
+
BRAND: ct,
|
|
5483
6486
|
ZodBranded: Ee,
|
|
5484
6487
|
ZodPipeline: se,
|
|
5485
|
-
ZodReadonly:
|
|
6488
|
+
ZodReadonly: _e,
|
|
5486
6489
|
custom: Oe,
|
|
5487
6490
|
Schema: v,
|
|
5488
6491
|
ZodSchema: v,
|
|
5489
|
-
late:
|
|
6492
|
+
late: dt,
|
|
5490
6493
|
get ZodFirstPartyTypeKind() {
|
|
5491
6494
|
return f;
|
|
5492
6495
|
},
|
|
5493
|
-
coerce:
|
|
5494
|
-
any:
|
|
5495
|
-
array:
|
|
5496
|
-
bigint:
|
|
5497
|
-
boolean:
|
|
5498
|
-
date:
|
|
5499
|
-
discriminatedUnion:
|
|
6496
|
+
coerce: Gt,
|
|
6497
|
+
any: gt,
|
|
6498
|
+
array: xt,
|
|
6499
|
+
bigint: mt,
|
|
6500
|
+
boolean: Pe,
|
|
6501
|
+
date: pt,
|
|
6502
|
+
discriminatedUnion: Rt,
|
|
5500
6503
|
effect: Re,
|
|
5501
|
-
enum:
|
|
5502
|
-
function:
|
|
5503
|
-
instanceof:
|
|
5504
|
-
intersection:
|
|
5505
|
-
lazy:
|
|
5506
|
-
literal:
|
|
5507
|
-
map:
|
|
5508
|
-
nan:
|
|
5509
|
-
nativeEnum:
|
|
5510
|
-
never:
|
|
5511
|
-
null:
|
|
5512
|
-
nullable:
|
|
6504
|
+
enum: Mt,
|
|
6505
|
+
function: It,
|
|
6506
|
+
instanceof: lt,
|
|
6507
|
+
intersection: kt,
|
|
6508
|
+
lazy: Nt,
|
|
6509
|
+
literal: Pt,
|
|
6510
|
+
map: Et,
|
|
6511
|
+
nan: ut,
|
|
6512
|
+
nativeEnum: Lt,
|
|
6513
|
+
never: yt,
|
|
6514
|
+
null: _t,
|
|
6515
|
+
nullable: Zt,
|
|
5513
6516
|
number: Ne,
|
|
5514
|
-
object:
|
|
5515
|
-
oboolean:
|
|
5516
|
-
onumber:
|
|
5517
|
-
optional:
|
|
5518
|
-
ostring:
|
|
5519
|
-
pipeline:
|
|
5520
|
-
preprocess:
|
|
5521
|
-
promise:
|
|
5522
|
-
record:
|
|
5523
|
-
set:
|
|
5524
|
-
strictObject:
|
|
6517
|
+
object: wt,
|
|
6518
|
+
oboolean: qt,
|
|
6519
|
+
onumber: Ut,
|
|
6520
|
+
optional: Dt,
|
|
6521
|
+
ostring: $t,
|
|
6522
|
+
pipeline: Bt,
|
|
6523
|
+
preprocess: Vt,
|
|
6524
|
+
promise: jt,
|
|
6525
|
+
record: At,
|
|
6526
|
+
set: Ot,
|
|
6527
|
+
strictObject: Tt,
|
|
5525
6528
|
string: Ie,
|
|
5526
|
-
symbol:
|
|
6529
|
+
symbol: ft,
|
|
5527
6530
|
transformer: Re,
|
|
5528
|
-
tuple:
|
|
5529
|
-
undefined:
|
|
5530
|
-
union:
|
|
5531
|
-
unknown:
|
|
5532
|
-
void:
|
|
5533
|
-
NEVER:
|
|
6531
|
+
tuple: St,
|
|
6532
|
+
undefined: ht,
|
|
6533
|
+
union: Ct,
|
|
6534
|
+
unknown: vt,
|
|
6535
|
+
void: bt,
|
|
6536
|
+
NEVER: zt,
|
|
5534
6537
|
ZodIssueCode: c,
|
|
5535
|
-
quotelessJson:
|
|
6538
|
+
quotelessJson: Fe,
|
|
5536
6539
|
ZodError: E
|
|
5537
6540
|
});
|
|
5538
|
-
const
|
|
6541
|
+
const Yt = [
|
|
5539
6542
|
"DASHBOARD",
|
|
5540
6543
|
"ANALYTIC",
|
|
5541
6544
|
"CAMPAIGN",
|
|
@@ -5570,7 +6573,7 @@ const qt = [
|
|
|
5570
6573
|
"REWARD_TEMPLATE",
|
|
5571
6574
|
"AUDIT_LOGS",
|
|
5572
6575
|
"BIN"
|
|
5573
|
-
].map((a) => `$connect-${a}`),
|
|
6576
|
+
].map((a) => `$connect-${a}`), Ft = Wt.enum(Yt), h = Ft.Enum, Kt = [
|
|
5574
6577
|
{
|
|
5575
6578
|
path: "",
|
|
5576
6579
|
name: h["$connect-DASHBOARD"],
|
|
@@ -5585,7 +6588,7 @@ const qt = [
|
|
|
5585
6588
|
path: "/analytic",
|
|
5586
6589
|
name: h["$connect-ANALYTIC"],
|
|
5587
6590
|
component: R(
|
|
5588
|
-
T(() => import("./Analytic-
|
|
6591
|
+
T(() => import("./Analytic-Ds0tta-W.js"))
|
|
5589
6592
|
),
|
|
5590
6593
|
meta: {
|
|
5591
6594
|
validationManifest: {
|
|
@@ -5610,7 +6613,7 @@ const qt = [
|
|
|
5610
6613
|
path: "/campaign/promotion",
|
|
5611
6614
|
name: h["$connect-CAMPAIGN_PROMOTION"],
|
|
5612
6615
|
component: R(
|
|
5613
|
-
T(() => import("./Promotion-
|
|
6616
|
+
T(() => import("./Promotion-Bs83Qcgf.js"))
|
|
5614
6617
|
),
|
|
5615
6618
|
meta: {
|
|
5616
6619
|
validationManifest: {
|
|
@@ -5631,7 +6634,7 @@ const qt = [
|
|
|
5631
6634
|
path: "/campaign/voucher",
|
|
5632
6635
|
name: h["$connect-CAMPAIGN_VOUCHER"],
|
|
5633
6636
|
component: R(
|
|
5634
|
-
T(() => import("./Voucher-
|
|
6637
|
+
T(() => import("./Voucher-CNkVPW0p.js"))
|
|
5635
6638
|
),
|
|
5636
6639
|
meta: {
|
|
5637
6640
|
validationManifest: {
|
|
@@ -5649,7 +6652,7 @@ const qt = [
|
|
|
5649
6652
|
name: h["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
5650
6653
|
component: R(
|
|
5651
6654
|
T(
|
|
5652
|
-
() => import("./Collections-
|
|
6655
|
+
() => import("./Collections-BmKNa3Fe.js")
|
|
5653
6656
|
)
|
|
5654
6657
|
),
|
|
5655
6658
|
meta: {
|
|
@@ -5669,7 +6672,7 @@ const qt = [
|
|
|
5669
6672
|
path: "/campaign/broadcast",
|
|
5670
6673
|
name: h["$connect-CAMPAIGN_BROADCAST"],
|
|
5671
6674
|
component: R(
|
|
5672
|
-
T(() => import("./Broadcast-
|
|
6675
|
+
T(() => import("./Broadcast-BzfYPJwA.js"))
|
|
5673
6676
|
),
|
|
5674
6677
|
meta: {
|
|
5675
6678
|
validationManifest: {
|
|
@@ -5706,37 +6709,37 @@ const qt = [
|
|
|
5706
6709
|
{
|
|
5707
6710
|
path: "/program/tier",
|
|
5708
6711
|
name: h["$connect-PROGRAM_TIER"],
|
|
5709
|
-
component: () => import("./Tier-
|
|
6712
|
+
component: () => import("./Tier-Cy0nb7nm.js")
|
|
5710
6713
|
},
|
|
5711
6714
|
{
|
|
5712
6715
|
path: "/program/title",
|
|
5713
6716
|
name: h["$connect-PROGRAM_TITLE"],
|
|
5714
|
-
component: () => import("./Title-
|
|
6717
|
+
component: () => import("./Title-e7o6NB4D.js")
|
|
5715
6718
|
},
|
|
5716
6719
|
{
|
|
5717
6720
|
path: "/program/experience",
|
|
5718
6721
|
name: h["$connect-PROGRAM_EXPERIENCE"],
|
|
5719
|
-
component: () => import("./Experience-
|
|
6722
|
+
component: () => import("./Experience-BDHVOAzP.js")
|
|
5720
6723
|
},
|
|
5721
6724
|
{
|
|
5722
6725
|
path: "/program/point",
|
|
5723
6726
|
name: h["$connect-PROGRAM_POINT"],
|
|
5724
|
-
component: () => import("./Point-
|
|
6727
|
+
component: () => import("./Point-DkIIKUTy.js")
|
|
5725
6728
|
},
|
|
5726
6729
|
{
|
|
5727
6730
|
path: "/program/credit",
|
|
5728
6731
|
name: h["$connect-PROGRAM_CREDIT"],
|
|
5729
|
-
component: () => import("./Credit-
|
|
6732
|
+
component: () => import("./Credit-BYde55tV.js")
|
|
5730
6733
|
},
|
|
5731
6734
|
{
|
|
5732
6735
|
path: "/program/game",
|
|
5733
6736
|
name: h["$connect-PROGRAM_GAME"],
|
|
5734
|
-
component: () => import("./Game-
|
|
6737
|
+
component: () => import("./Game-D5YOyYL6.js")
|
|
5735
6738
|
},
|
|
5736
6739
|
{
|
|
5737
6740
|
path: "/program/mission",
|
|
5738
6741
|
name: h["$connect-PROGRAM_MISSION"],
|
|
5739
|
-
component: () => import("./Mission-
|
|
6742
|
+
component: () => import("./Mission-BfFOjuIA.js")
|
|
5740
6743
|
}
|
|
5741
6744
|
]
|
|
5742
6745
|
},
|
|
@@ -5761,7 +6764,7 @@ const qt = [
|
|
|
5761
6764
|
{
|
|
5762
6765
|
path: "/loyalty/member",
|
|
5763
6766
|
name: h["$connect-LOYALTY_MEMBER"],
|
|
5764
|
-
component: () => import("./Member-
|
|
6767
|
+
component: () => import("./Member-CSfZ3bjG.js"),
|
|
5765
6768
|
redirect: {
|
|
5766
6769
|
name: h["$connect-LOYALTY_MEMBER_OVERVIEW"]
|
|
5767
6770
|
},
|
|
@@ -5774,24 +6777,24 @@ const qt = [
|
|
|
5774
6777
|
{
|
|
5775
6778
|
path: "/loyalty/member/list",
|
|
5776
6779
|
name: h["$connect-LOYALTY_MEMBER_LIST"],
|
|
5777
|
-
component: () => import("./MemberList-
|
|
6780
|
+
component: () => import("./MemberList-B6uUNxLF.js")
|
|
5778
6781
|
},
|
|
5779
6782
|
{
|
|
5780
6783
|
path: "/loyalty/member/transactions/:id",
|
|
5781
6784
|
name: h["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
|
|
5782
|
-
component: () => import("./MemberTransactions-
|
|
6785
|
+
component: () => import("./MemberTransactions-Lff73C-p.js")
|
|
5783
6786
|
}
|
|
5784
6787
|
]
|
|
5785
6788
|
},
|
|
5786
6789
|
{
|
|
5787
6790
|
path: "/loyalty/segment",
|
|
5788
6791
|
name: h["$connect-LOYALTY_SEGMENT"],
|
|
5789
|
-
component: () => import("./Segment-
|
|
6792
|
+
component: () => import("./Segment-BatkkJMx.js")
|
|
5790
6793
|
},
|
|
5791
6794
|
{
|
|
5792
6795
|
path: "/loyalty/card",
|
|
5793
6796
|
name: h["$connect-LOYALTY_CARD"],
|
|
5794
|
-
component: () => import("./Card-
|
|
6797
|
+
component: () => import("./Card-CKqRyNuC.js")
|
|
5795
6798
|
}
|
|
5796
6799
|
]
|
|
5797
6800
|
},
|
|
@@ -5815,7 +6818,7 @@ const qt = [
|
|
|
5815
6818
|
{
|
|
5816
6819
|
path: "/referral",
|
|
5817
6820
|
name: h["$connect-REFERRAL"],
|
|
5818
|
-
component: () => import("./Index-
|
|
6821
|
+
component: () => import("./Index-Dt40DwP9.js"),
|
|
5819
6822
|
redirect: {
|
|
5820
6823
|
name: h["$connect-REFERRAL_OVERVIEW"]
|
|
5821
6824
|
},
|
|
@@ -5823,12 +6826,12 @@ const qt = [
|
|
|
5823
6826
|
{
|
|
5824
6827
|
path: "/referral",
|
|
5825
6828
|
name: h["$connect-REFERRAL_OVERVIEW"],
|
|
5826
|
-
component: () => import("./Overview-
|
|
6829
|
+
component: () => import("./Overview-CWH9Bj4k.js")
|
|
5827
6830
|
},
|
|
5828
6831
|
{
|
|
5829
6832
|
path: "/referral/record",
|
|
5830
6833
|
name: h["$connect-REFERRAL_RECORD"],
|
|
5831
|
-
component: () => import("./Record-
|
|
6834
|
+
component: () => import("./Record-CIrRLS-G.js")
|
|
5832
6835
|
}
|
|
5833
6836
|
]
|
|
5834
6837
|
}
|
|
@@ -5853,7 +6856,7 @@ const qt = [
|
|
|
5853
6856
|
{
|
|
5854
6857
|
path: "/store",
|
|
5855
6858
|
name: h["$connect-STORE"],
|
|
5856
|
-
component: () => import("./Store-
|
|
6859
|
+
component: () => import("./Store-xPSiWyzc.js")
|
|
5857
6860
|
},
|
|
5858
6861
|
{
|
|
5859
6862
|
path: "/store/rewards",
|
|
@@ -5862,12 +6865,12 @@ const qt = [
|
|
|
5862
6865
|
{
|
|
5863
6866
|
path: "/store/rewards",
|
|
5864
6867
|
name: h["$connect-STORE_REWARDS"],
|
|
5865
|
-
component: () => import("./StoreRewards-
|
|
6868
|
+
component: () => import("./StoreRewards-BGOp7fFU.js")
|
|
5866
6869
|
},
|
|
5867
6870
|
{
|
|
5868
6871
|
path: "/store/rewards/:id/collections",
|
|
5869
6872
|
name: h["$connect-STORE_REWARD_COLLECTIONS"],
|
|
5870
|
-
component: () => import("./Collections-
|
|
6873
|
+
component: () => import("./Collections-BmKNa3Fe.js")
|
|
5871
6874
|
}
|
|
5872
6875
|
]
|
|
5873
6876
|
}
|
|
@@ -5892,7 +6895,7 @@ const qt = [
|
|
|
5892
6895
|
{
|
|
5893
6896
|
path: "/transaction",
|
|
5894
6897
|
name: h["$connect-TRANSACTION"],
|
|
5895
|
-
component: () => import("./Transaction-
|
|
6898
|
+
component: () => import("./Transaction-CAlhdf7s.js")
|
|
5896
6899
|
}
|
|
5897
6900
|
]
|
|
5898
6901
|
},
|
|
@@ -5915,7 +6918,7 @@ const qt = [
|
|
|
5915
6918
|
{
|
|
5916
6919
|
path: "/marketing",
|
|
5917
6920
|
name: h["$connect-MARKETING"],
|
|
5918
|
-
component: () => import("./Marketing-
|
|
6921
|
+
component: () => import("./Marketing-Bf-zFz9z.js")
|
|
5919
6922
|
}
|
|
5920
6923
|
]
|
|
5921
6924
|
},
|
|
@@ -5938,7 +6941,7 @@ const qt = [
|
|
|
5938
6941
|
{
|
|
5939
6942
|
path: "/reward",
|
|
5940
6943
|
name: h["$connect-REWARD_TEMPLATE"],
|
|
5941
|
-
component: () => import("./Reward-
|
|
6944
|
+
component: () => import("./Reward-gt3nOqPY.js")
|
|
5942
6945
|
}
|
|
5943
6946
|
]
|
|
5944
6947
|
},
|
|
@@ -5961,7 +6964,7 @@ const qt = [
|
|
|
5961
6964
|
{
|
|
5962
6965
|
path: "/audit-logs",
|
|
5963
6966
|
name: h["$connect-AUDIT_LOGS"],
|
|
5964
|
-
component: () => import("./AuditLogs-
|
|
6967
|
+
component: () => import("./AuditLogs-jVbVVyAb.js")
|
|
5965
6968
|
}
|
|
5966
6969
|
]
|
|
5967
6970
|
},
|
|
@@ -5984,7 +6987,7 @@ const qt = [
|
|
|
5984
6987
|
{
|
|
5985
6988
|
path: "/setting",
|
|
5986
6989
|
name: h["$connect-SETTING"],
|
|
5987
|
-
component: () => import("./Setting-
|
|
6990
|
+
component: () => import("./Setting-BquuIuO-.js")
|
|
5988
6991
|
}
|
|
5989
6992
|
]
|
|
5990
6993
|
},
|
|
@@ -6005,22 +7008,23 @@ const qt = [
|
|
|
6005
7008
|
{
|
|
6006
7009
|
path: "/bin",
|
|
6007
7010
|
name: h["$connect-BIN"],
|
|
6008
|
-
component: () => import("./Bin-
|
|
7011
|
+
component: () => import("./Bin-EiD9mNYl.js")
|
|
6009
7012
|
}
|
|
6010
7013
|
]
|
|
6011
7014
|
}
|
|
6012
|
-
],
|
|
7015
|
+
], Qt = {
|
|
6013
7016
|
"en-US": De,
|
|
6014
|
-
"zh-CN":
|
|
6015
|
-
"th-TH": qe
|
|
6016
|
-
|
|
7017
|
+
"zh-CN": $e,
|
|
7018
|
+
"th-TH": qe,
|
|
7019
|
+
"zh-Hant": Ye
|
|
7020
|
+
}, ea = T(() => import("./App-y5wxjtku.js"));
|
|
6017
7021
|
export {
|
|
6018
|
-
|
|
7022
|
+
ea as F,
|
|
6019
7023
|
h as R,
|
|
6020
7024
|
c as Z,
|
|
6021
|
-
|
|
7025
|
+
l as a,
|
|
6022
7026
|
F as e,
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
7027
|
+
Qt as i,
|
|
7028
|
+
Kt as r,
|
|
7029
|
+
Wt as z
|
|
6026
7030
|
};
|