@feedmepos/mf-connect 0.1.98-beta.44 → 0.1.98-beta.46

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 (115) hide show
  1. package/dist/{App-B1sVRUgU.js → App-DX5hNYdq.js} +40 -37
  2. package/dist/{AuditLogs-jIv5rADu.js → AuditLogs-mHXQ564w.js} +10 -10
  3. package/dist/{Bin-BFb2FxJL.js → Bin-BJZ_BMNI.js} +8 -8
  4. package/dist/{Broadcast-C-yR1YzE.js → Broadcast-DIKGv1-A.js} +11 -11
  5. package/dist/{CampaignAnalytic-D2Udb-1I.js → CampaignAnalytic-CRG3ys5S.js} +6 -6
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pp80jczz.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DnSFhe_I.js} +7 -7
  7. package/dist/Card-B3gnDfS7.js +1060 -0
  8. package/dist/{Collections-DoDZlLT5.js → Collections-Cv1vBVoX.js} +8 -8
  9. package/dist/{Credit-D-ss0yae.js → Credit-BLShYSWf.js} +12 -12
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DbkQVmGE.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-u4meW2NQ.js} +32 -32
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B8LawUFT.js → EffectSheet.vue_vue_type_style_index_0_lang-w-W78u2c.js} +6 -6
  12. package/dist/{Experience-OMwgCv-k.js → Experience-BwVJpeNX.js} +12 -12
  13. package/dist/{FileSaver.min-Ck08usZi.js → FileSaver.min-DmEepxKi.js} +1 -1
  14. package/dist/{Game-S5m1kti2.js → Game-q1or_U4f.js} +13 -13
  15. package/dist/GiftCardSetup-CVwl7Xvu.js +662 -0
  16. package/dist/{Grab-CgVDlh8N.js → Grab-BYxd3LMm.js} +9 -9
  17. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B9JaZNoF.js → ImageInput.vue_vue_type_script_setup_true_lang-C5UWFkZq.js} +1 -1
  18. package/dist/{Index-BZRQSQt3.js → Index-qlVRiwB_.js} +10 -10
  19. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CZp2vyhp.js → LocationPicker.vue_vue_type_script_setup_true_lang-DiI_6s7R.js} +1 -1
  20. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-D9iMrk0m.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DbqW78d2.js} +1 -1
  21. package/dist/{LoyaltyDashboard-CkJsz_FM.js → LoyaltyDashboard-gXkQ6yRd.js} +7 -7
  22. package/dist/{MainLayout-y2AvCI7H.js → MainLayout-CSwcQUla.js} +3 -3
  23. package/dist/{Marketing-CdekCDN6.js → Marketing-DbJnSVzS.js} +4 -4
  24. package/dist/{MarketingMaterialEdit-r3xPXa_W.js → MarketingMaterialEdit-CeQlZGni.js} +6 -6
  25. package/dist/{Member-D4O-38yG.js → Member-C0VVffcW.js} +12 -12
  26. package/dist/{MemberList-ABpFaISm.js → MemberList-DKfVeadO.js} +26 -26
  27. package/dist/{MemberTransactions-DK-x6c7P.js → MemberTransactions-CdVatR9e.js} +1 -1
  28. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DGPNmiR9.js → MessageInput.vue_vue_type_script_setup_true_lang-BupsL_ri.js} +10 -10
  29. package/dist/{Mission-5RhDQ1MF.js → Mission-C9IqGiDI.js} +13 -13
  30. package/dist/{Overview-B52hUVqf.js → Overview-DEp_GpnT.js} +19 -19
  31. package/dist/{Overview-0ukOrJQs.js → Overview-XshwtoKB.js} +3 -3
  32. package/dist/{Point-TSd4Uvmd.js → Point-CTgCH5ww.js} +12 -12
  33. package/dist/{Promotion-BBpfsz8N.js → Promotion-Cz0ILEA5.js} +13 -13
  34. package/dist/{Queue-BgnYKxGG.js → Queue-BTB-C-m9.js} +11 -11
  35. package/dist/{Record-CAtURV9U.js → Record-BglzH9E_.js} +9 -9
  36. package/dist/{Review-CuSrZB-m.js → Review-CeG0VBlj.js} +2 -2
  37. package/dist/{ReviewFacebookCallback-DQTVwxJo.js → ReviewFacebookCallback-k5luFa74.js} +5 -5
  38. package/dist/{ReviewGoogleCallback-Dn1bMM23.js → ReviewGoogleCallback-BM8aUDcD.js} +5 -5
  39. package/dist/{Reward-GArpJo5Q.js → Reward-CosruSnZ.js} +16 -16
  40. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CuOxAvxV.js → RewardGroup.vue_vue_type_script_setup_true_lang-gTKCJEDQ.js} +12 -12
  41. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BZTg3pTi.js → RuleGroup.vue_vue_type_script_setup_true_lang-sZDzblfZ.js} +15 -15
  42. package/dist/{Segment-BNoD4VPH.js → Segment-b0sjn0Ht.js} +25 -25
  43. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-JrfOr5Px.js → SelectItems.vue_vue_type_script_setup_true_lang-Dh06v51H.js} +2 -2
  44. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BY8aFZsB.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CYEzN-ja.js} +13 -13
  45. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-KVaH8rrU.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bvdzs94r.js} +4 -4
  46. package/dist/{Setting-CRYXwRFL.js → Setting-C1f9yHcb.js} +14 -14
  47. package/dist/{SettingAdvertisements-Cqp6piIi.js → SettingAdvertisements-BSpiKy7v.js} +12 -12
  48. package/dist/{Settings-DNkUFLud.js → Settings-h2K8CcjU.js} +5 -5
  49. package/dist/Store-C7qKJO1_.js +2615 -0
  50. package/dist/{StoreRewards-DDlMWlTG.js → StoreRewards-BhWbUnaP.js} +15 -15
  51. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Zedck9Xi.js → StoreTransactions.vue_vue_type_script_setup_true_lang-C8dxa_j1.js} +21 -21
  52. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C3RBFu6J.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-OEdu52e8.js} +2 -2
  53. package/dist/{Tier-t2Ce3rxu.js → Tier-kH0FTUdH.js} +25 -25
  54. package/dist/{Title-CdI511i0.js → Title-B9fQWpgB.js} +22 -22
  55. package/dist/Transaction-CAtGFUZ8.js +45 -0
  56. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DsZxEZw9.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-L2dPD3nb.js} +6 -6
  57. package/dist/{Voucher-D1QRj4Ps.js → Voucher-BDZmikj-.js} +14 -14
  58. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BVCNUWYO.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BAOcPygI.js} +12 -12
  59. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-W_7pFEAG.js → ZodTextField.vue_vue_type_script_setup_true_lang-DaWuGWEn.js} +2 -2
  60. package/dist/{app-D4yjN_fQ.js → app-BIGPr1BQ.js} +725 -525
  61. package/dist/app.js +1 -1
  62. package/dist/{business-Dq1_o57i.js → business-C1ztrtzd.js} +1 -1
  63. package/dist/{campaign-CNkbWJTf.js → campaign-BFJC-o2t.js} +2 -2
  64. package/dist/{campaign-B7NIPxHs.js → campaign-D17yaHo7.js} +7 -7
  65. package/dist/{campaign.fn-qKzOoBBQ.js → campaign.fn-6Ul0G_eo.js} +80 -80
  66. package/dist/{collection.fn-BNRVdqye.js → collection.fn-CgJirF44.js} +2 -2
  67. package/dist/{duplicateCampaign-D29czqvn.js → duplicateCampaign-Bguk2VhU.js} +2 -2
  68. package/dist/{effect-B0ikJb6x.js → effect-Agn00g7v.js} +1 -1
  69. package/dist/{email-addresses-D0ZUpClg.js → email-addresses--b6ZRMp5.js} +2 -2
  70. package/dist/{export-Cr4mjkQZ.js → export-CZO7WdRK.js} +3 -3
  71. package/dist/{helper-ClPuPdgQ.js → helper-1LMLYuOT.js} +1 -1
  72. package/dist/{index-BOfM9FNu.js → index-B2HcSYJy.js} +7 -7
  73. package/dist/{index-B2hKSeR1.js → index-BVls8ERM.js} +1 -1
  74. package/dist/{index-GjzeMN4u.js → index-BVvOGOL3.js} +1192 -1150
  75. package/dist/{index-BrP_OwGm.js → index-BjaSmxp0.js} +7 -7
  76. package/dist/{index-DfMsF_gT.js → index-Bqah4gFm.js} +14 -14
  77. package/dist/{index-DpSlYwDW.js → index-Bxp7-J4q.js} +2 -2
  78. package/dist/{index-Dyc5Dpgs.js → index-C_F0JxFs.js} +1 -1
  79. package/dist/{index-DiqNx6FV.js → index-Cd-tJwMs.js} +1 -1
  80. package/dist/{index-BcHiQWdr.js → index-Czli6YCc.js} +2 -2
  81. package/dist/{index-CFk1uqb8.js → index-DLUkLGMO.js} +1 -1
  82. package/dist/{index-By93YZmr.js → index-DNSEyYgh.js} +11 -6
  83. package/dist/{index-CuPBtB3W.js → index-DmBWoao-.js} +1 -1
  84. package/dist/{index-C8cXXcLk.js → index-JlyOHqyG.js} +19 -13
  85. package/dist/{index-Dpk1tAhn.js → index-ULSqCLHU.js} +2 -2
  86. package/dist/{index-CuHNDW6e.js → index-a9a0E67J.js} +1 -1
  87. package/dist/{index-CnckzYTa.js → index-q90FGGn5.js} +1 -1
  88. package/dist/{index-DL7_OC7M.js → index-u4XmN7tA.js} +1 -1
  89. package/dist/{index-nuptxtNP.js → index-w-02c2Sb.js} +3 -3
  90. package/dist/{index.esm2017-D3pI9NTE.js → index.esm2017-1tPNvAVS.js} +1 -1
  91. package/dist/{loading-DLrpThuY.js → loading-BnW9omqu.js} +1 -1
  92. package/dist/{lodash-BIVtqtkS.js → lodash-CHIHYyCv.js} +1 -1
  93. package/dist/{membership-PNg3pIQf.js → membership-ByX0MwV6.js} +2 -2
  94. package/dist/{money-Ck2sBYbh.js → money-DT26h-9c.js} +1 -1
  95. package/dist/{number-dfEMJDkz.js → number-CLRlA2Ph.js} +1 -1
  96. package/dist/{objectid-Bz-UKgI1.js → objectid-Bqi3tFbn.js} +9 -9
  97. package/dist/{plugins-D4_SIsjZ.js → plugins-CqkgKVsK.js} +3 -3
  98. package/dist/{reward-UzeAq0jY.js → reward-DoYj0TRD.js} +1 -1
  99. package/dist/{rule-6OCvKihv.js → rule-BfzfFw7G.js} +3 -3
  100. package/dist/{rule-builder-VwyrN58i.js → rule-builder-CnqLXEzT.js} +1 -1
  101. package/dist/{template-DtwmJYOa.js → template-DOuh3jrd.js} +6 -6
  102. package/dist/{timezone-CHqOZvJX.js → timezone-CXUZ418k.js} +1 -1
  103. package/dist/{transaction.fn-rUQ2fYVQ.js → transaction.fn-CpTfkivT.js} +1 -1
  104. package/dist/{trigger-BT3dj5qY.js → trigger-A20rfpV9.js} +5 -5
  105. package/dist/{useMarketingMaterialActions-Dgq_G1qO.js → useMarketingMaterialActions-CCSX_Vu1.js} +3 -3
  106. package/dist/{usePagination-a1XSuIrr.js → usePagination-DElEO6kf.js} +1 -1
  107. package/dist/{user-CFls8m-e.js → user-DzTNLbUQ.js} +1 -1
  108. package/dist/{vue-i18n-CzEcAXx-.js → vue-i18n-BxjnJjv4.js} +457 -457
  109. package/dist/{xlsx-DKPe4AfX.js → xlsx-B5E_HVo5.js} +1 -1
  110. package/dist/{zod-D2Q81R3d.js → zod-DjcVp7VN.js} +1 -1
  111. package/package.json +1 -1
  112. package/dist/Card-CzzNo7nk.js +0 -996
  113. package/dist/GiftCardSetup-CR8NpUJv.js +0 -542
  114. package/dist/Store-Dnt8VDQA.js +0 -2413
  115. package/dist/Transaction-C2BHJU7_.js +0 -39
@@ -0,0 +1,662 @@
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-BnW9omqu.js";
3
+ import { u as ot } from "./app-wDQR6dpb.js";
4
+ import { n as D, f as V } from "./plugins-CqkgKVsK.js";
5
+ import "./index-a9a0E67J.js";
6
+ import { g as se } from "./index-u4XmN7tA.js";
7
+ import { c as nt } from "./index-DNSEyYgh.js";
8
+ import { S as lt } from "./index-ULSqCLHU.js";
9
+ import { p as W, q as at, r as st, s as rt, G as X, t as ct, u as it, v as _e, w as re } from "./index-BVvOGOL3.js";
10
+ import { u as dt } from "./vue-i18n-BxjnJjv4.js";
11
+ import { useRouter as mt, useRoute as ut } from "vue-router";
12
+ import { R as ft } from "./app-BIGPr1BQ.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
+ };