@feedmepos/mf-connect 0.1.98-beta.61 → 0.1.98-beta.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/{App-BPFhGsvV.js → App-guaCkKXg.js} +8 -8
  2. package/dist/{AuditLogs-CW8vs5kM.js → AuditLogs-CClvXGGB.js} +11 -11
  3. package/dist/{Bin-CgdkmL0M.js → Bin-DLSrRQD-.js} +8 -8
  4. package/dist/{Broadcast-CoRRvfXh.js → Broadcast-CG3kxtIU.js} +11 -11
  5. package/dist/{CampaignAnalytic-UAwVz0E3.js → CampaignAnalytic-B_N6etSS.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B_IbtQLp.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DZYllW83.js} +6 -6
  7. package/dist/{Card-D3-MgguK.js → Card-CBwJqlEx.js} +21 -21
  8. package/dist/{Collections-BU7-Lz_-.js → Collections-UGBJWN49.js} +8 -8
  9. package/dist/{Credit-C9gf6eCr.js → Credit-1l23ITCt.js} +12 -12
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-UK9GcPFC.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CypzQrA0.js} +1 -1
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B9A98JpX.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BxmytUpl.js} +35 -35
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-nKD6CT3U.js → EffectSheet.vue_vue_type_style_index_0_lang-BlAtwBWD.js} +6 -6
  13. package/dist/{Experience-dKvKT4v4.js → Experience-DiVKVX6I.js} +12 -12
  14. package/dist/{FileSaver.min-CI8hZvUL.js → FileSaver.min-CLSg4ToQ.js} +1 -1
  15. package/dist/{Game-CBjdeb6F.js → Game-BogPLFT0.js} +13 -13
  16. package/dist/GiftCardSetup-Dm2yuzvQ.js +734 -0
  17. package/dist/{Grab-zCeZMSNI.js → Grab-C47e6pDJ.js} +9 -9
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CxhlYuM9.js → ImageInput.vue_vue_type_script_setup_true_lang-B0xt9FaU.js} +1 -1
  19. package/dist/{Index-UGpjUfjV.js → Index-BuVG1J2p.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-D21fIVUX.js → LocationPicker.vue_vue_type_script_setup_true_lang-BnWDUvHP.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DrB7xzy1.js → LottieAnimation.vue_vue_type_script_setup_true_lang-WtWddxyI.js} +1 -1
  22. package/dist/{LoyaltyDashboard-CBPnQReU.js → LoyaltyDashboard-BSuUbSFu.js} +13 -13
  23. package/dist/{MainLayout-BBJUWsAz.js → MainLayout-De_gl-ld.js} +3 -3
  24. package/dist/{Marketing-BjQG6Q41.js → Marketing-BEYhzEyE.js} +4 -4
  25. package/dist/{MarketingMaterialEdit-CMUbiKjd.js → MarketingMaterialEdit-d2tZxASP.js} +6 -6
  26. package/dist/{Member-B-7tGoFW.js → Member-CDah9kY9.js} +7 -7
  27. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BLmafK0n.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-B4dapkDo.js} +23 -23
  28. package/dist/{MemberImportHistory-CDyHKO1L.js → MemberImportHistory-spRsk-Gk.js} +7 -7
  29. package/dist/{MemberList-f0dMdOF8.js → MemberList-CDmkqx_r.js} +14 -14
  30. package/dist/{MemberTransactions-DVcRoyxv.js → MemberTransactions-128l1ktp.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CnpXUVvO.js → MessageInput.vue_vue_type_script_setup_true_lang-DI5v2r1r.js} +3707 -3626
  32. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BTBXutpq.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-a7HR-vvr.js} +1 -1
  33. package/dist/{Mission-CrrXaD8F.js → Mission-DzEolsIs.js} +13 -13
  34. package/dist/{Overview-Y_hxLN7Y.js → Overview-CW5NcVti.js} +4 -4
  35. package/dist/{Overview-CAIxshHU.js → Overview-l-tnF-xB.js} +19 -19
  36. package/dist/{Point-CE0G4oxW.js → Point-LwXAlGHT.js} +12 -12
  37. package/dist/{Promotion-C_NQWWOT.js → Promotion-DrmjZpqk.js} +13 -13
  38. package/dist/{Queue-BfZGOOsa.js → Queue-Bm1cE6oL.js} +11 -11
  39. package/dist/{Record-BR3Su26B.js → Record-Wg-mZiYU.js} +9 -9
  40. package/dist/{Review-FrIgV7vH.js → Review-DwTeSQxf.js} +2 -2
  41. package/dist/{ReviewFacebookCallback-DOyee73-.js → ReviewFacebookCallback-D1MM7OKO.js} +5 -5
  42. package/dist/{ReviewGoogleCallback-CX0cbT4r.js → ReviewGoogleCallback-B9BRkF7Q.js} +5 -5
  43. package/dist/{Reward-COkgkVT-.js → Reward-BwH5V3H2.js} +16 -16
  44. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CUd-Gy5a.js → RewardGroup.vue_vue_type_script_setup_true_lang-C6fcccjj.js} +12 -12
  45. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-eBVDv0Qy.js → RuleGroup.vue_vue_type_script_setup_true_lang-CQT6qtb_.js} +13 -13
  46. package/dist/{Segment-kh3FuWRP.js → Segment-DIejAX8H.js} +24 -24
  47. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CUoiQlba.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DIfiqpfz.js} +13 -13
  48. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BkylJ859.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BXXFEMOP.js} +4 -4
  49. package/dist/{Setting-UDrEIdF9.js → Setting-CahqUu7J.js} +14 -14
  50. package/dist/{SettingAdvertisements-Dic4fC0u.js → SettingAdvertisements-DFLApK-e.js} +12 -12
  51. package/dist/{Settings-Ct_ESMn8.js → Settings-Bo0gQj5Q.js} +5 -5
  52. package/dist/{Store-CyG1FPWq.js → Store-DvkBbmIY.js} +25 -25
  53. package/dist/{StoreRewards-C9b_rMRT.js → StoreRewards-B6anPbxy.js} +15 -15
  54. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DaGFayps.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CE0i3Euv.js} +24 -24
  55. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Dew6rC4d.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-ChO8I7CC.js} +2 -2
  56. package/dist/{Tier-DgLEHrFJ.js → Tier-w5R71dQu.js} +24 -24
  57. package/dist/{Title-C_8gMnYS.js → Title-fztlqeO9.js} +21 -21
  58. package/dist/{Transaction-B9E0jWw9.js → Transaction-wIqZ8IPi.js} +2 -2
  59. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DgW4dSkV.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-D1dfLdtG.js} +6 -6
  60. package/dist/{Voucher-DR3Eteh4.js → Voucher-CZ6kBAha.js} +14 -14
  61. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-JexB74ky.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DVno3aZQ.js} +12 -12
  62. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ChOd_di8.js → ZodTextField.vue_vue_type_script_setup_true_lang-sxOKrmNW.js} +2 -2
  63. package/dist/{app-BIjITpNJ.js → app-DiBTTCcT.js} +127 -62
  64. package/dist/app.js +1 -1
  65. package/dist/{base.export-DqZ38Nx2.js → base.export-BA3Ee8G0.js} +2 -2
  66. package/dist/{business-j4ZuiLuJ.js → business-CIkTNNcc.js} +1 -1
  67. package/dist/{campaign-MS9awZ18.js → campaign-BSWlNx6N.js} +9 -9
  68. package/dist/{campaign-DxhXoOvw.js → campaign-CpknEi6S.js} +2 -2
  69. package/dist/{campaign.enum-Bk6qcWR3.js → campaign.enum-Bf0NeIHs.js} +1 -1
  70. package/dist/{campaign.fn-DR_X38U8.js → campaign.fn-C1-GzT0s.js} +128 -128
  71. package/dist/{collectible.enum-C_E4CCGR.js → collectible.enum-6rC9NVah.js} +1 -1
  72. package/dist/{collection.fn-BfyWr7cC.js → collection.fn-B50OV0vD.js} +2 -2
  73. package/dist/{currency-DZzC-632.js → currency-CGXrbnkG.js} +1 -1
  74. package/dist/{duplicateCampaign-BgTmR0T2.js → duplicateCampaign-BNhjsPL7.js} +2 -2
  75. package/dist/{effect-DPCjkqDR.js → effect-pTJGzdG8.js} +1 -1
  76. package/dist/{email-addresses-BoPJkP5p.js → email-addresses-CLOYzdbu.js} +2 -2
  77. package/dist/{helper-DwJK1iKj.js → helper-Ba9wqa0h.js} +1 -1
  78. package/dist/{index-CIuQyo1z.js → index-All3Db69.js} +3 -3
  79. package/dist/{index-DfwXt9fy.js → index-B-WYhj5D.js} +3 -3
  80. package/dist/{index-LJrZDUgh.js → index-BElGiQ1t.js} +1 -1
  81. package/dist/{index-BvxBDSzh.js → index-BFPMp4XE.js} +7 -7
  82. package/dist/{index-DGOX45St.js → index-BKWbkQRH.js} +2 -2
  83. package/dist/{index-Bd4ErVnX.js → index-BmpRvnHs.js} +3 -3
  84. package/dist/{index-CXbojcfi.js → index-BrRmuba9.js} +2 -2
  85. package/dist/{index-BkFxLxI6.js → index-CfHOzwQG.js} +2 -2
  86. package/dist/{index-DD24eHtV.js → index-Co80skLp.js} +7 -7
  87. package/dist/{index-CMJCsyXT.js → index-CtT4ehQX.js} +1 -1
  88. package/dist/{index-Cso1GrEu.js → index-D20a2IXA.js} +1 -1
  89. package/dist/{index-CTo26AN3.js → index-DQwgC-Lv.js} +1381 -1361
  90. package/dist/{index-DP6WMBRq.js → index-DaW5WO6R.js} +17 -17
  91. package/dist/{index-a15EaBn7.js → index-DlTsZdai.js} +1 -1
  92. package/dist/{index-8vHynDvo.js → index-GikO70UH.js} +700 -587
  93. package/dist/{index-Dn2mOB0A.js → index-fqc1prh1.js} +1 -1
  94. package/dist/{index-CVMsPseO.js → index-lREUEhlD.js} +1 -1
  95. package/dist/{index-C5Jm1Was.js → index-nQrjn1J6.js} +1 -1
  96. package/dist/{index.esm2017-CWii-ZqX.js → index.esm2017-DU8wiMAX.js} +1 -1
  97. package/dist/{loading-CibOtJVR.js → loading-CWK2-0Ho.js} +1 -1
  98. package/dist/{lodash-oHoQ9t6u.js → lodash-CV8P6Bvk.js} +1 -1
  99. package/dist/{member-import-BgJP811X.js → member-import-BoHZ5-7i.js} +1 -1
  100. package/dist/{membership-CqFY6ya6.js → membership-B4aAwlz8.js} +3 -3
  101. package/dist/{money-tVvfE8ha.js → money-iCeuikQA.js} +1 -1
  102. package/dist/{number-B4p37H0W.js → number-AdDRHpAe.js} +1 -1
  103. package/dist/objectid-BZv-bGhq.js +145 -0
  104. package/dist/{plugins-S4qmcyLz.js → plugins-Cxm0QmPj.js} +3 -3
  105. package/dist/{reward-CgHNw9uj.js → reward-DGwdM1Eq.js} +1 -1
  106. package/dist/{rule-BECsW_aD.js → rule-CXTCrk78.js} +8 -8
  107. package/dist/{template-jOqP_F7D.js → template-BFybQvqD.js} +6 -6
  108. package/dist/{timezone-BBXko2_m.js → timezone-CRNmT1Tn.js} +1 -1
  109. package/dist/{transaction.fn-3DOFgJNT.js → transaction.fn-CAnvF_aW.js} +1 -1
  110. package/dist/{trigger-DBIaHlqi.js → trigger-CiUT4vNp.js} +5 -5
  111. package/dist/{useMarketingMaterialActions-Dnln39_O.js → useMarketingMaterialActions-DodRCjMg.js} +3 -3
  112. package/dist/{usePagination-BKN2uLM2.js → usePagination-BL7EsKHK.js} +1 -1
  113. package/dist/{user-CTKTBdLx.js → user-DKeyU00A.js} +1 -1
  114. package/dist/{vue-i18n-Di-6yoyq.js → vue-i18n-DRz9ToDe.js} +409 -409
  115. package/dist/{xlsx-Z1jRdg68.js → xlsx-snf87-X0.js} +166 -166
  116. package/dist/{zod-BmQ5EO9I.js → zod-BILLB1UT.js} +1 -1
  117. package/package.json +4 -1
  118. package/dist/GiftCardSetup-DA9yMwPR.js +0 -662
  119. package/dist/objectid-reVda6sT.js +0 -145
@@ -1,662 +0,0 @@
1
- import { defineComponent as Ze, computed as f, ref as i, onMounted as Ye, resolveComponent as _, openBlock as d, createElementBlock as u, createElementVNode as n, createVNode as r, toDisplayString as s, unref as e, withCtx as U, isRef as g, Fragment as j, renderList as K, normalizeClass as q, createCommentVNode as b, createBlock as le, withDirectives as Je, withKeys as Qe, vModelText as et, createTextVNode as ae } from "vue";
2
- import { u as tt } from "./loading-CibOtJVR.js";
3
- import { u as ot } from "./app-wDQR6dpb.js";
4
- import { n as D, f as V } from "./plugins-S4qmcyLz.js";
5
- import "./index-Dn2mOB0A.js";
6
- import { g as se } from "./index-Cso1GrEu.js";
7
- import { c as nt } from "./index-DGOX45St.js";
8
- import { S as lt } from "./index-CXbojcfi.js";
9
- import { q as W, r as at, s as st, t as rt, G as X, u as ct, v as it, w as _e, x as re } from "./index-8vHynDvo.js";
10
- import { u as dt } from "./vue-i18n-Di-6yoyq.js";
11
- import { useRouter as mt, useRoute as ut } from "vue-router";
12
- import { R as ft } from "./app-BIjITpNJ.js";
13
- var pt = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
14
- const vt = { class: "px-24 pb-40" }, gt = { class: "flex items-start gap-12 py-24" }, yt = { class: "flex flex-col gap-4" }, bt = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _t = { class: "flex flex-col gap-16 max-w-[860px]" }, Ct = { class: "flex gap-12" }, ht = { class: "flex flex-col gap-4" }, At = { class: "fm-typo-en-body-lg-600" }, Dt = { class: "flex gap-12" }, Ft = { class: "flex flex-col gap-4" }, Tt = { class: "fm-typo-en-body-lg-600" }, wt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Et = { class: "flex flex-wrap items-start gap-12" }, kt = ["src"], Nt = ["aria-label", "title", "onClick"], St = { class: "absolute bottom-4 left-4 px-8 py-2 rounded-sm bg-fm-color-neutral-white fm-typo-en-body-sm-600" }, Mt = { class: "flex gap-12" }, Ut = { class: "flex flex-col gap-4" }, Vt = { class: "fm-typo-en-body-lg-600" }, It = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pt = { class: "flex flex-col gap-8" }, Rt = ["onClick"], Lt = {
15
- key: 0,
16
- class: "w-[9px] h-[9px] rounded-full bg-fm-color-primary"
17
- }, Gt = { class: "flex-1" }, Ht = { class: "block fm-typo-en-body-md-600" }, Ot = { class: "block fm-typo-en-body-md-400 text-fm-color-typo-secondary mt-2" }, $t = {
18
- key: 0,
19
- class: "grid sm:grid-cols-2 gap-16"
20
- }, Xt = {
21
- key: 1,
22
- class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
23
- }, Bt = { class: "flex items-center gap-16 p-16 rounded-md bg-fm-color-neutral-gray-100" }, zt = { class: "flex flex-col gap-2 flex-1 min-w-0" }, jt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, Kt = { class: "fm-typo-en-body-lg-600 truncate" }, qt = { class: "flex gap-12" }, Wt = { class: "flex flex-col gap-4" }, Zt = { class: "fm-typo-en-body-lg-600" }, Yt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jt = { class: "flex flex-col gap-8" }, Qt = { class: "fm-typo-en-body-md-600" }, eo = { class: "flex flex-wrap gap-8" }, to = { class: "flex items-start gap-8" }, oo = { class: "flex items-center rounded-md border-1 border-fm-color-neutral-gray-300 overflow-hidden" }, no = ["placeholder", "disabled"], lo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ao = { class: "text-fm-color-primary" }, so = { class: "flex items-center gap-12 p-16 rounded-md border-1 border-fm-color-neutral-gray-300" }, ro = { class: "flex-1" }, co = { class: "fm-typo-en-body-md-600" }, io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, mo = {
24
- key: 0,
25
- class: "flex gap-16"
26
- }, uo = {
27
- key: 1,
28
- class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
29
- }, fo = { class: "flex gap-12" }, po = { class: "flex flex-col gap-4" }, vo = { class: "fm-typo-en-body-lg-600" }, go = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yo = {
30
- key: 0,
31
- class: "flex items-start gap-12 p-16 rounded-md bg-fm-color-system-info-100"
32
- }, bo = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-primary" }, xo = { class: "flex items-center gap-12" }, _o = { class: "fm-typo-en-body-md-500" }, Co = { class: "flex flex-col gap-8" }, ho = { class: "fm-typo-en-body-md-600" }, Ao = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Do = { class: "flex flex-wrap gap-8" }, Fo = {
33
- key: 0,
34
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
35
- }, To = {
36
- key: 1,
37
- class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
38
- }, wo = { class: "flex gap-12" }, Eo = { class: "flex flex-col gap-4" }, ko = { class: "fm-typo-en-body-lg-600" }, No = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, So = { class: "flex flex-wrap items-center gap-8" }, Mo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Uo = {
39
- key: 1,
40
- class: "flex items-center gap-12 p-16 rounded-md border-1 border-fm-color-neutral-gray-300"
41
- }, Vo = { class: "w-40 h-40 rounded-sm flex-none grid place-items-center bg-fm-color-neutral-gray-100" }, Io = { class: "flex-1 min-w-0" }, Po = ["href"], Ro = {
42
- key: 0,
43
- class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
44
- }, Lo = { class: "flex items-center justify-end gap-8 pt-8" }, Ce = 5e6, Go = 5e6, en = /* @__PURE__ */ Ze({
45
- __name: "GiftCardSetup",
46
- setup(Ho) {
47
- const { t: l } = dt(), { global: he, minor: Z } = tt, Ae = mt(), De = ut(), I = f(() => De.params.id || null), B = f(() => !!I.value), F = i(""), C = i([]);
48
- let ce = /* @__PURE__ */ new Set();
49
- const ie = /* @__PURE__ */ new Set(), Fe = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/gif"]), h = i("DEFAULT"), P = i(16), T = i(W().charset), R = i("GC"), L = i(""), de = i(0), me = [10, 20, 30, 50, 100], m = i([]), w = i(""), A = i(!1), E = i(10), k = i(100), ue = i(!1), G = i(!0), y = i(["SMS"]), Y = i({
50
- SMS: !0,
51
- WHATSAPP: !1,
52
- EMAIL: !1
53
- }), fe = f(
54
- () => ["SMS", "WHATSAPP", "EMAIL"].map((t) => ({
55
- value: t,
56
- label: l(`connect.store.giftCard.channel${t}`),
57
- available: Y.value[t]
58
- }))
59
- ), pe = f(
60
- () => fe.value.filter((t) => !t.available).map((t) => t.label)
61
- ), Te = `${pt.licensePortalUrl}settings?businessId=${lt.businessId}`;
62
- function we(t) {
63
- !Y.value[t] && !y.value.includes(t) || (y.value = y.value.includes(t) ? y.value.filter((o) => o !== t) : [...y.value, t]);
64
- }
65
- async function Ee() {
66
- try {
67
- Y.value = await nt.readBroadcastChannels();
68
- } catch (t) {
69
- console.error("Failed to load notification channel status", t);
70
- }
71
- }
72
- const v = i("NONE"), H = i(""), N = i(""), ve = i(null), ke = /\.pdf$/i, O = i(null), Ne = f(
73
- () => {
74
- var t;
75
- return ((t = O.value) == null ? void 0 : t.name) ?? l("connect.store.giftCard.termsDocument");
76
- }
77
- );
78
- function Se(t) {
79
- return t >= 1e6 ? `${(t / 1e6).toFixed(1)} MB` : `${Math.max(1, Math.round(t / 1e3))} KB`;
80
- }
81
- const J = f(
82
- () => h.value === "ADVANCED" ? {
83
- ...W(),
84
- length: Number(P.value),
85
- charset: T.value,
86
- prefix: R.value,
87
- suffix: L.value
88
- } : W()
89
- ), Me = f(() => (de.value, at(J.value))), Ue = f(
90
- () => st(T.value) ?? 1
91
- ), Q = f(
92
- () => h.value === "ADVANCED" ? rt(J.value) : null
93
- ), S = f(
94
- () => m.value.length >= X
95
- ), Ve = f(() => [
96
- ...me.map((t) => ({ amount: t, custom: !1 })),
97
- ...m.value.filter((t) => !me.includes(t)).map((t) => ({ amount: t, custom: !0 }))
98
- ]);
99
- function Ie(t) {
100
- t.custom || !m.value.includes(t.amount) && S.value || ge(t.amount);
101
- }
102
- function ge(t) {
103
- if (m.value.includes(t)) {
104
- m.value = m.value.filter((o) => o !== t);
105
- return;
106
- }
107
- if (S.value) {
108
- D.error(
109
- l("connect.store.giftCard.maxAmounts", {
110
- max: X
111
- })
112
- );
113
- return;
114
- }
115
- m.value = [...m.value, t].sort((o, c) => o - c);
116
- }
117
- function ye() {
118
- const t = Number(w.value);
119
- if (!Number.isInteger(t) || t <= 0) {
120
- D.error(l("connect.store.giftCard.invalidAmount"));
121
- return;
122
- }
123
- if (t > re) {
124
- D.error(
125
- l("connect.store.giftCard.amountTooLarge", { max: re })
126
- );
127
- return;
128
- }
129
- if (m.value.includes(t)) {
130
- w.value = "";
131
- return;
132
- }
133
- if (S.value) {
134
- D.error(
135
- l("connect.store.giftCard.maxAmounts", {
136
- max: X
137
- })
138
- );
139
- return;
140
- }
141
- m.value = [...m.value, t].sort((o, c) => o - c), w.value = "";
142
- }
143
- const ee = f(() => m.value.length === 0 && !A.value ? l("connect.store.giftCard.errorNoAmount") : A.value && Number(E.value) > Number(k.value) ? l("connect.store.giftCard.errorRange") : null), Pe = f(
144
- () => F.value.trim() ? null : l("connect.store.giftCard.errorNoName")
145
- ), te = f(
146
- () => y.value.length ? null : l("connect.store.giftCard.errorNoChannel")
147
- ), oe = f(
148
- () => Pe.value ?? Q.value ?? ee.value ?? te.value
149
- );
150
- async function Re(t) {
151
- Ge(t) && await Z(
152
- async () => {
153
- const o = await Le(t);
154
- C.value = [...C.value, o];
155
- },
156
- {
157
- message: l("connect.store.giftCard.uploading"),
158
- successMessage: l("connect.store.giftCard.uploaded")
159
- }
160
- );
161
- }
162
- function Le(t) {
163
- return V.update(
164
- V.bundleImagePath(void 0, t),
165
- t
166
- );
167
- }
168
- function Ge(t) {
169
- const o = Fe.has(t.type) && t.size <= Ce;
170
- return o || D.error(l("connect.store.giftCard.invalidDesignFile")), o;
171
- }
172
- async function He(t) {
173
- C.value = C.value.filter((o) => o !== t), await Oe(t);
174
- }
175
- async function Oe(t) {
176
- if (ce.has(t)) {
177
- ie.add(t);
178
- return;
179
- }
180
- try {
181
- await V.delete(t);
182
- } catch {
183
- }
184
- }
185
- function $e() {
186
- var t;
187
- (t = ve.value) == null || t.click();
188
- }
189
- async function Xe(t) {
190
- var p;
191
- const o = t.target, c = (p = o.files) == null ? void 0 : p[0];
192
- if (o.value = "", !!c) {
193
- if (!ke.test(c.name) || c.size > Go) {
194
- D.error(l("connect.store.giftCard.invalidTermsFile"));
195
- return;
196
- }
197
- await Z(
198
- async () => {
199
- N.value = await V.update(
200
- V.bundleImagePath(void 0, c),
201
- c
202
- ), O.value = { name: c.name, size: c.size }, v.value = "DOCUMENT";
203
- },
204
- {
205
- message: l("connect.store.giftCard.uploading"),
206
- successMessage: l("connect.store.giftCard.uploaded")
207
- }
208
- );
209
- }
210
- }
211
- function Be() {
212
- N.value = "", O.value = null, v.value = "NONE";
213
- }
214
- function ze() {
215
- return {
216
- name: F.value.trim(),
217
- designs: C.value,
218
- numberFormat: J.value,
219
- denominations: m.value.map(Number),
220
- anyAmount: A.value ? {
221
- enabled: !0,
222
- min: Number(E.value),
223
- max: Number(k.value)
224
- } : null,
225
- channels: y.value,
226
- allowPersonalMessage: G.value,
227
- termsAndConditions: v.value === "TEXT" && H.value || null,
228
- termsDocumentUrl: v.value === "DOCUMENT" && N.value || null
229
- };
230
- }
231
- function je(t) {
232
- var p, x, M, z;
233
- F.value = t.name, C.value = [...t.designs ?? []], ce = new Set(C.value), m.value = [...t.denominations ?? []], A.value = !!((p = t.anyAmount) != null && p.enabled), E.value = ((x = t.anyAmount) == null ? void 0 : x.min) ?? 10, k.value = ((M = t.anyAmount) == null ? void 0 : M.max) ?? 100, y.value = (z = t.channels) != null && z.length ? [...t.channels] : ["SMS"], G.value = t.allowPersonalMessage ?? !0;
234
- const o = t.numberFormat, c = !o || o.prefix === "GC" && Number(o.length) === 16;
235
- h.value = c ? "DEFAULT" : "ADVANCED", P.value = Number((o == null ? void 0 : o.length) ?? 16), T.value = (o == null ? void 0 : o.charset) ?? W().charset, R.value = (o == null ? void 0 : o.prefix) ?? "GC", L.value = (o == null ? void 0 : o.suffix) ?? "", t.termsDocumentUrl ? (v.value = "DOCUMENT", N.value = t.termsDocumentUrl) : t.termsAndConditions && (v.value = "TEXT", H.value = t.termsAndConditions);
236
- }
237
- function ne() {
238
- Ae.push({ name: ft["$connect-STORE"] });
239
- }
240
- async function Ke() {
241
- if (oe.value) {
242
- D.error(oe.value);
243
- return;
244
- }
245
- await Z(
246
- async () => {
247
- const t = ze();
248
- I.value ? await se.updateProgram(I.value, t) : await se.createProgram(t), await Promise.allSettled(
249
- [...ie].map((o) => V.delete(o))
250
- ), ne();
251
- },
252
- {
253
- message: B.value ? l("connect.store.giftCard.saving") : l("connect.store.giftCard.creating"),
254
- successMessage: B.value ? l("connect.store.giftCard.saved") : l("connect.store.giftCard.created")
255
- }
256
- );
257
- }
258
- return Ye(async () => {
259
- await he(async () => {
260
- await Ee(), I.value && je(await se.readProgram(I.value));
261
- });
262
- }), (t, o) => {
263
- const c = _("FmButton"), p = _("FmTextField"), x = _("FmCard"), M = _("FmIcon"), z = _("FmDropField"), qe = _("FmStepperField"), be = _("FmChip"), xe = _("FmSwitch"), We = _("FmTextarea");
264
- return d(), u("div", vt, [
265
- n("div", gt, [
266
- r(c, {
267
- icon: "arrow_back",
268
- variant: "tertiary",
269
- onClick: ne
270
- }),
271
- n("div", yt, [
272
- n("h1", bt, s(e(B) ? e(l)("connect.store.giftCard.editTitle") : e(l)("connect.store.giftCard.createTitle")), 1),
273
- n("p", xt, s(e(l)("connect.store.giftCard.pageSubtitle")), 1)
274
- ])
275
- ]),
276
- n("div", _t, [
277
- r(x, {
278
- variant: "outlined",
279
- class: "p-24 flex flex-col gap-16"
280
- }, {
281
- default: U(() => [
282
- n("div", Ct, [
283
- o[14] || (o[14] = n("span", { class: "w-[18px] h-[18px] rounded-sm flex-none grid place-items-center bg-fm-color-primary-oats text-fm-color-primary fm-typo-en-body-sm-600" }, " 1 ", -1)),
284
- n("div", ht, [
285
- n("div", At, s(e(l)("connect.store.giftCard.name")), 1)
286
- ])
287
- ]),
288
- r(p, {
289
- modelValue: e(F),
290
- "onUpdate:modelValue": o[0] || (o[0] = (a) => g(F) ? F.value = a : null),
291
- placeholder: e(l)("connect.store.giftCard.namePlaceholder")
292
- }, null, 8, ["modelValue", "placeholder"])
293
- ]),
294
- _: 1
295
- }),
296
- r(x, {
297
- variant: "outlined",
298
- class: "p-24 flex flex-col gap-16"
299
- }, {
300
- default: U(() => [
301
- n("div", Dt, [
302
- o[15] || (o[15] = n("span", { class: "w-[18px] h-[18px] rounded-sm flex-none grid place-items-center bg-fm-color-primary-oats text-fm-color-primary fm-typo-en-body-sm-600" }, " 2 ", -1)),
303
- n("div", Ft, [
304
- n("div", Tt, s(e(l)("connect.store.giftCard.design")), 1),
305
- n("div", wt, s(e(l)("connect.store.giftCard.designHint")), 1)
306
- ])
307
- ]),
308
- n("div", Et, [
309
- (d(!0), u(j, null, K(e(C), (a, $) => (d(), u("div", {
310
- key: a,
311
- class: "relative w-[179px] h-[115px] rounded-md overflow-hidden border-1 border-fm-color-neutral-gray-300"
312
- }, [
313
- n("img", {
314
- src: a,
315
- alt: "",
316
- class: "w-full h-full object-cover"
317
- }, null, 8, kt),
318
- n("button", {
319
- type: "button",
320
- class: "absolute top-4 right-4 w-24 h-24 rounded-sm grid place-items-center bg-fm-color-neutral-black text-fm-color-typo-white opacity-70 hover:opacity-100",
321
- "aria-label": e(l)("connect.common.remove"),
322
- title: e(l)("connect.common.remove"),
323
- onClick: (Oo) => He(a)
324
- }, [
325
- r(M, {
326
- name: "close",
327
- size: "sm"
328
- })
329
- ], 8, Nt),
330
- n("span", St, s(e(l)("connect.store.giftCard.designOption", { index: $ + 1 })), 1)
331
- ]))), 128)),
332
- r(z, {
333
- accept: ".png, .jpg, .jpeg, .gif",
334
- "max-file-size": Ce,
335
- "content-class": "w-[179px] h-[115px]",
336
- onFileUpload: Re
337
- })
338
- ])
339
- ]),
340
- _: 1
341
- }),
342
- r(x, {
343
- variant: "outlined",
344
- class: "p-24 flex flex-col gap-16"
345
- }, {
346
- default: U(() => [
347
- n("div", Mt, [
348
- o[16] || (o[16] = n("span", { class: "w-[18px] h-[18px] rounded-sm flex-none grid place-items-center bg-fm-color-primary-oats text-fm-color-primary fm-typo-en-body-sm-600" }, " 3 ", -1)),
349
- n("div", Ut, [
350
- n("div", Vt, s(e(l)("connect.store.giftCard.numberSettings")), 1),
351
- n("div", It, s(e(l)("connect.store.giftCard.numberSettingsHint")), 1)
352
- ])
353
- ]),
354
- n("div", Pt, [
355
- (d(), u(j, null, K(["DEFAULT", "ADVANCED"], (a) => n("button", {
356
- key: a,
357
- type: "button",
358
- class: q([
359
- "flex gap-12 items-start text-left p-16 rounded-md border-1 transition-colors",
360
- e(h) === a ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300"
361
- ]),
362
- onClick: ($) => h.value = a
363
- }, [
364
- n("span", {
365
- class: q([
366
- "w-[18px] h-[18px] rounded-full border-1 flex-none mt-2 grid place-items-center",
367
- e(h) === a ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300"
368
- ])
369
- }, [
370
- e(h) === a ? (d(), u("span", Lt)) : b("", !0)
371
- ], 2),
372
- n("span", Gt, [
373
- n("span", Ht, s(a === "DEFAULT" ? e(l)("connect.store.giftCard.numberDefault") : e(l)("connect.store.giftCard.numberAdvanced")), 1),
374
- n("span", Ot, s(a === "DEFAULT" ? e(l)("connect.store.giftCard.numberDefaultHint") : e(l)("connect.store.giftCard.numberAdvancedHint")), 1)
375
- ])
376
- ], 10, Rt)), 64))
377
- ]),
378
- e(h) === "ADVANCED" ? (d(), u("div", $t, [
379
- r(qe, {
380
- modelValue: e(P),
381
- "onUpdate:modelValue": o[1] || (o[1] = (a) => g(P) ? P.value = a : null),
382
- label: e(l)("connect.store.giftCard.length"),
383
- "helper-text": e(l)("connect.store.giftCard.lengthHint"),
384
- min: e(Ue),
385
- max: e(ct),
386
- step: 1
387
- }, null, 8, ["modelValue", "label", "helper-text", "min", "max"]),
388
- r(p, {
389
- modelValue: e(T),
390
- "onUpdate:modelValue": o[2] || (o[2] = (a) => g(T) ? T.value = a : null),
391
- label: e(l)("connect.store.giftCard.charset"),
392
- "max-length": e(it)
393
- }, null, 8, ["modelValue", "label", "max-length"]),
394
- r(p, {
395
- modelValue: e(R),
396
- "onUpdate:modelValue": o[3] || (o[3] = (a) => g(R) ? R.value = a : null),
397
- label: e(l)("connect.store.giftCard.prefix"),
398
- "max-length": e(_e)
399
- }, null, 8, ["modelValue", "label", "max-length"]),
400
- r(p, {
401
- modelValue: e(L),
402
- "onUpdate:modelValue": o[4] || (o[4] = (a) => g(L) ? L.value = a : null),
403
- label: e(l)("connect.store.giftCard.suffix"),
404
- "max-length": e(_e)
405
- }, null, 8, ["modelValue", "label", "max-length"])
406
- ])) : b("", !0),
407
- e(Q) ? (d(), u("div", Xt, s(e(Q)), 1)) : b("", !0),
408
- n("div", Bt, [
409
- n("div", zt, [
410
- n("span", jt, s(e(l)("connect.store.giftCard.exampleNumber")), 1),
411
- n("span", Kt, s(e(Me)), 1)
412
- ]),
413
- r(c, {
414
- label: e(l)("connect.store.giftCard.regenerate"),
415
- icon: "refresh",
416
- variant: "secondary",
417
- onClick: o[5] || (o[5] = (a) => de.value++)
418
- }, null, 8, ["label"])
419
- ])
420
- ]),
421
- _: 1
422
- }),
423
- r(x, {
424
- variant: "outlined",
425
- class: "p-24 flex flex-col gap-16"
426
- }, {
427
- default: U(() => [
428
- n("div", qt, [
429
- o[17] || (o[17] = n("span", { class: "w-[18px] h-[18px] rounded-sm flex-none grid place-items-center bg-fm-color-primary-oats text-fm-color-primary fm-typo-en-body-sm-600" }, " 4 ", -1)),
430
- n("div", Wt, [
431
- n("div", Zt, s(e(l)("connect.store.giftCard.amount")), 1),
432
- n("div", Yt, s(e(l)("connect.store.giftCard.amountHint", {
433
- max: e(X)
434
- })), 1)
435
- ])
436
- ]),
437
- n("div", Jt, [
438
- n("div", Qt, s(e(l)("connect.store.giftCard.popularAmounts")), 1),
439
- n("div", eo, [
440
- (d(!0), u(j, null, K(e(Ve), (a) => (d(), le(be, {
441
- key: a.amount,
442
- label: `RM ${a.amount}`,
443
- selectable: !a.custom,
444
- removable: a.custom,
445
- selected: e(m).includes(a.amount),
446
- disabled: !a.custom && e(S) && !e(m).includes(a.amount),
447
- onClick: ($) => Ie(a),
448
- onChipClosed: ($) => ge(a.amount)
449
- }, null, 8, ["label", "selectable", "removable", "selected", "disabled", "onClick", "onChipClosed"]))), 128))
450
- ])
451
- ]),
452
- n("div", to, [
453
- n("div", oo, [
454
- o[18] || (o[18] = n("span", { class: "px-12 py-8 bg-fm-color-neutral-gray-100 fm-typo-en-body-md-500 text-fm-color-typo-secondary" }, " RM ", -1)),
455
- Je(n("input", {
456
- "onUpdate:modelValue": o[6] || (o[6] = (a) => g(w) ? w.value = a : null),
457
- type: "number",
458
- class: "px-12 py-8 outline-none fm-typo-en-body-md-400 w-[140px] disabled:bg-fm-color-neutral-gray-100",
459
- placeholder: e(l)("connect.store.giftCard.custom"),
460
- disabled: e(S),
461
- onKeyup: Qe(ye, ["enter"])
462
- }, null, 40, no), [
463
- [et, e(w)]
464
- ])
465
- ]),
466
- r(c, {
467
- label: e(l)("connect.store.giftCard.addAmount"),
468
- variant: "secondary",
469
- disabled: e(S),
470
- onClick: ye
471
- }, null, 8, ["label", "disabled"])
472
- ]),
473
- n("div", lo, [
474
- ae(s(e(l)("connect.store.giftCard.selected")) + " ", 1),
475
- n("span", ao, s(e(m).length), 1),
476
- ae(" / " + s(e(X)), 1)
477
- ]),
478
- n("div", so, [
479
- r(xe, {
480
- modelValue: e(A),
481
- "onUpdate:modelValue": o[7] || (o[7] = (a) => g(A) ? A.value = a : null)
482
- }, null, 8, ["modelValue"]),
483
- n("div", ro, [
484
- n("div", co, s(e(l)("connect.store.giftCard.anyAmount")), 1),
485
- n("div", io, s(e(l)("connect.store.giftCard.anyAmountHint")), 1)
486
- ])
487
- ]),
488
- e(A) ? (d(), u("div", mo, [
489
- r(p, {
490
- modelValue: e(E),
491
- "onUpdate:modelValue": o[8] || (o[8] = (a) => g(E) ? E.value = a : null),
492
- type: "number",
493
- label: e(l)("connect.store.giftCard.min"),
494
- class: "flex-1"
495
- }, null, 8, ["modelValue", "label"]),
496
- r(p, {
497
- modelValue: e(k),
498
- "onUpdate:modelValue": o[9] || (o[9] = (a) => g(k) ? k.value = a : null),
499
- type: "number",
500
- label: e(l)("connect.store.giftCard.max"),
501
- "helper-text": `Up to RM${e(re)}`,
502
- class: "flex-1"
503
- }, null, 8, ["modelValue", "label", "helper-text"])
504
- ])) : b("", !0),
505
- e(ee) ? (d(), u("div", uo, s(e(ee)), 1)) : b("", !0)
506
- ]),
507
- _: 1
508
- }),
509
- r(x, {
510
- variant: "outlined",
511
- class: "p-24 flex flex-col gap-16"
512
- }, {
513
- default: U(() => [
514
- n("div", fo, [
515
- o[19] || (o[19] = n("span", { class: "w-[18px] h-[18px] rounded-sm flex-none grid place-items-center bg-fm-color-primary-oats text-fm-color-primary fm-typo-en-body-sm-600" }, " 5 ", -1)),
516
- n("div", po, [
517
- n("div", vo, s(e(l)("connect.store.giftCard.sending")), 1),
518
- n("div", go, s(e(l)("connect.store.giftCard.sendingHint")), 1)
519
- ])
520
- ]),
521
- e(ue) ? b("", !0) : (d(), u("div", yo, [
522
- r(M, {
523
- name: "info",
524
- class: "text-fm-color-system-info-400 flex-none"
525
- }),
526
- n("div", bo, s(e(l)("connect.store.giftCard.broadcastNotice")), 1),
527
- r(c, {
528
- icon: "close",
529
- variant: "tertiary",
530
- onClick: o[10] || (o[10] = (a) => ue.value = !0)
531
- })
532
- ])),
533
- n("div", xo, [
534
- r(xe, {
535
- modelValue: e(G),
536
- "onUpdate:modelValue": o[11] || (o[11] = (a) => g(G) ? G.value = a : null)
537
- }, null, 8, ["modelValue"]),
538
- n("span", _o, s(e(l)("connect.store.giftCard.personalMessage")), 1)
539
- ]),
540
- n("div", Co, [
541
- n("div", ho, s(e(l)("connect.store.giftCard.channels")), 1),
542
- n("div", Ao, s(e(l)("connect.store.giftCard.channelsHint")), 1),
543
- n("div", Do, [
544
- (d(!0), u(j, null, K(e(fe), (a) => (d(), le(be, {
545
- key: a.value,
546
- label: a.label,
547
- selectable: "",
548
- selected: e(y).includes(a.value),
549
- disabled: !a.available && !e(y).includes(a.value),
550
- onClick: ($) => we(a.value)
551
- }, null, 8, ["label", "selected", "disabled", "onClick"]))), 128))
552
- ]),
553
- e(pe).length ? (d(), u("div", Fo, [
554
- ae(s(e(l)("connect.store.giftCard.channelUnavailable", {
555
- channels: e(pe).join(", ")
556
- })) + " ", 1),
557
- n("a", {
558
- href: Te,
559
- target: "_blank",
560
- rel: "noopener",
561
- class: "underline fm-typo-en-body-md-600 text-fm-color-primary"
562
- }, s(e(l)("connect.store.giftCard.channelConfigure")), 1)
563
- ])) : b("", !0),
564
- e(te) ? (d(), u("div", To, s(e(te)), 1)) : b("", !0)
565
- ])
566
- ]),
567
- _: 1
568
- }),
569
- r(x, {
570
- variant: "outlined",
571
- class: "p-24 flex flex-col gap-16"
572
- }, {
573
- default: U(() => [
574
- n("div", wo, [
575
- o[20] || (o[20] = n("span", { class: "w-[18px] h-[18px] rounded-sm flex-none grid place-items-center bg-fm-color-primary-oats text-fm-color-primary fm-typo-en-body-sm-600" }, " 6 ", -1)),
576
- n("div", Eo, [
577
- n("div", ko, s(e(l)("connect.store.giftCard.terms")), 1),
578
- n("div", No, s(e(l)("connect.store.giftCard.termsHint")), 1)
579
- ])
580
- ]),
581
- n("div", So, [
582
- n("input", {
583
- ref_key: "termsInput",
584
- ref: ve,
585
- type: "file",
586
- accept: ".pdf",
587
- class: "hidden",
588
- onChange: Xe
589
- }, null, 544),
590
- r(c, {
591
- label: e(l)("connect.store.giftCard.enterText"),
592
- icon: "edit",
593
- variant: "secondary",
594
- class: q(
595
- e(v) === "TEXT" ? "border-fm-color-primary text-fm-color-primary" : ""
596
- ),
597
- onClick: o[12] || (o[12] = (a) => v.value = "TEXT")
598
- }, null, 8, ["label", "class"]),
599
- r(c, {
600
- label: e(l)("connect.store.giftCard.uploadDocument"),
601
- icon: "upload",
602
- variant: "secondary",
603
- class: q(
604
- e(v) === "DOCUMENT" ? "border-fm-color-primary text-fm-color-primary" : ""
605
- ),
606
- onClick: $e
607
- }, null, 8, ["label", "class"])
608
- ]),
609
- n("div", Mo, s(e(l)("connect.store.giftCard.uploadDocumentHint")), 1),
610
- e(v) === "TEXT" ? (d(), le(We, {
611
- key: 0,
612
- modelValue: e(H),
613
- "onUpdate:modelValue": o[13] || (o[13] = (a) => g(H) ? H.value = a : null),
614
- rows: 5,
615
- placeholder: e(l)("connect.store.giftCard.termsPlaceholder")
616
- }, null, 8, ["modelValue", "placeholder"])) : e(v) === "DOCUMENT" && e(N) ? (d(), u("div", Uo, [
617
- n("span", Vo, [
618
- r(M, {
619
- name: "description",
620
- class: "text-fm-color-typo-secondary"
621
- })
622
- ]),
623
- n("div", Io, [
624
- n("a", {
625
- href: e(N),
626
- target: "_blank",
627
- rel: "noopener",
628
- class: "block fm-typo-en-body-md-600 truncate"
629
- }, s(e(Ne)), 9, Po),
630
- e(O) ? (d(), u("div", Ro, s(Se(e(O).size)) + " · " + s(e(l)("connect.store.giftCard.termsUploadedJustNow")), 1)) : b("", !0)
631
- ]),
632
- r(c, {
633
- icon: "delete",
634
- variant: "tertiary",
635
- "aria-label": e(l)("connect.common.remove"),
636
- onClick: Be
637
- }, null, 8, ["aria-label"])
638
- ])) : b("", !0)
639
- ]),
640
- _: 1
641
- }),
642
- n("div", Lo, [
643
- r(c, {
644
- label: e(l)("connect.common.cancel"),
645
- variant: "tertiary",
646
- onClick: ne
647
- }, null, 8, ["label"]),
648
- r(c, {
649
- label: e(B) ? e(l)("connect.common.save") : e(l)("connect.store.giftCard.addGiftCard"),
650
- loading: e(ot)().isLoading,
651
- disabled: !!e(oe),
652
- onClick: Ke
653
- }, null, 8, ["label", "loading", "disabled"])
654
- ])
655
- ])
656
- ]);
657
- };
658
- }
659
- });
660
- export {
661
- en as default
662
- };