@feedmepos/mf-connect 0.1.98-beta.45 → 0.1.98-beta.47

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-BX2UE7QI.js → App-JFPlzU0L.js} +8 -8
  2. package/dist/{AuditLogs-Crhi9QVp.js → AuditLogs-Bk6QCZgp.js} +10 -10
  3. package/dist/{Bin-xPurvadn.js → Bin-CHi79olc.js} +8 -8
  4. package/dist/{Broadcast-CUYyGJY-.js → Broadcast-DSicPemE.js} +11 -11
  5. package/dist/{CampaignAnalytic-BfUdUO6Y.js → CampaignAnalytic-B3czdnvb.js} +6 -6
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BoXhFyzX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CkC0A-ix.js} +7 -7
  7. package/dist/{Card-CISdGnSl.js → Card-Begf7uD_.js} +20 -20
  8. package/dist/{Collections-N7QyYqC-.js → Collections-BSmTzG4a.js} +8 -8
  9. package/dist/{Credit-DpgSuzmF.js → Credit-BqZ9lr6S.js} +12 -12
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ber_smZ-.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-qMqks3fR.js} +32 -32
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CoJVTW3E.js → EffectSheet.vue_vue_type_style_index_0_lang-Ck2PxSye.js} +6 -6
  12. package/dist/{Experience-DO7c3BW8.js → Experience-i0bu7uAI.js} +12 -12
  13. package/dist/{FileSaver.min-Bjq1OZ_L.js → FileSaver.min-Ck6lXfKM.js} +1 -1
  14. package/dist/{Game-BHtJD6LM.js → Game-Be02GnjR.js} +13 -13
  15. package/dist/GiftCardSetup-DPN3NhND.js +662 -0
  16. package/dist/{Grab-BOMxmAcZ.js → Grab-BKIYI2d-.js} +9 -9
  17. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-bEHeJol7.js → ImageInput.vue_vue_type_script_setup_true_lang-BqylTCHX.js} +1 -1
  18. package/dist/{Index-S2H2GVM8.js → Index-BD_l8T_M.js} +10 -10
  19. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-cgXkx7R_.js → LocationPicker.vue_vue_type_script_setup_true_lang-Cch5RizQ.js} +1 -1
  20. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CQQJuVCF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D3psJutm.js} +1 -1
  21. package/dist/{LoyaltyDashboard-CbwiKazp.js → LoyaltyDashboard-D0eq0Gaw.js} +7 -7
  22. package/dist/{MainLayout-CPS8NNOv.js → MainLayout-C96xSNND.js} +3 -3
  23. package/dist/{Marketing-zIfCm74o.js → Marketing-Bg6DFKg5.js} +4 -4
  24. package/dist/{MarketingMaterialEdit-D8Gj0bOa.js → MarketingMaterialEdit-BYbWgB2R.js} +6 -6
  25. package/dist/Member-B4NAFx8G.js +573 -0
  26. package/dist/MemberImportHistory-Bw-M3Zx-.js +185 -0
  27. package/dist/{MemberList-CzLYfaf5.js → MemberList-DXpa6_Rb.js} +26 -26
  28. package/dist/{MemberTransactions-CeaEuCte.js → MemberTransactions-DEzFrc9e.js} +1 -1
  29. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BDqO9M6_.js → MessageInput.vue_vue_type_script_setup_true_lang-CFpMazFG.js} +9 -9
  30. package/dist/{Mission-B4UV0vB0.js → Mission-CWeWfTdC.js} +13 -13
  31. package/dist/{Overview-Ddua14pp.js → Overview-CPMN5kuM.js} +3 -3
  32. package/dist/{Overview-DIX5ot1i.js → Overview-De06lJt0.js} +19 -19
  33. package/dist/{Point-CIFEhEU0.js → Point-XfVYDIbj.js} +12 -12
  34. package/dist/{Promotion-DJRRCgsu.js → Promotion-Q646p6RE.js} +13 -13
  35. package/dist/{Queue-PxS_JYvd.js → Queue-BNfc0ySV.js} +11 -11
  36. package/dist/{Record-DbOoWfsG.js → Record-Dx5pZmpm.js} +9 -9
  37. package/dist/{Review-BmUzIF6a.js → Review-BX5Z5ivr.js} +2 -2
  38. package/dist/{ReviewFacebookCallback-ABDk27W_.js → ReviewFacebookCallback-B6GFP04-.js} +5 -5
  39. package/dist/{ReviewGoogleCallback-JiGhuvNs.js → ReviewGoogleCallback-BWgxTbuf.js} +5 -5
  40. package/dist/{Reward-C9JJh35t.js → Reward-DOImZVUL.js} +16 -16
  41. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CoHS8BGv.js → RewardGroup.vue_vue_type_script_setup_true_lang-8fuZmrBK.js} +12 -12
  42. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CH_hNR0X.js → RuleGroup.vue_vue_type_script_setup_true_lang-C9kWB5Zw.js} +15 -15
  43. package/dist/{Segment-BDF6homc.js → Segment-BndDCfLd.js} +25 -25
  44. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CotltnlA.js → SelectItems.vue_vue_type_script_setup_true_lang-DV1X7e-_.js} +2 -2
  45. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dm1Rm5yj.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-O9ohGQxg.js} +13 -13
  46. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bu3TFRAU.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D2knZbHq.js} +4 -4
  47. package/dist/{Setting-I1UmwNUM.js → Setting-DPm0lJmq.js} +14 -14
  48. package/dist/{SettingAdvertisements-BTSCR7Ca.js → SettingAdvertisements-DdPGyRNI.js} +12 -12
  49. package/dist/{Settings-F8t7rjZL.js → Settings-BQPDUWyz.js} +5 -5
  50. package/dist/{Store-DH9SeWMt.js → Store-Cw-c2Wgl.js} +24 -24
  51. package/dist/{StoreRewards-EkAXltsf.js → StoreRewards-CYkHL-h6.js} +15 -15
  52. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CXQyU9vZ.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DClGeare.js} +21 -21
  53. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-lnEbqNTU.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DekQ8_F8.js} +2 -2
  54. package/dist/{Tier-DuKpa1Ma.js → Tier-B7QmbFn8.js} +25 -25
  55. package/dist/{Title-DlupKRiB.js → Title-CRM_l4YE.js} +22 -22
  56. package/dist/{Transaction-jCh6b6-e.js → Transaction-C1jXS8Le.js} +2 -2
  57. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DOvKneyI.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-yPF04Hth.js} +6 -6
  58. package/dist/{Voucher-QOyU02Mg.js → Voucher-Cfh_Wudx.js} +14 -14
  59. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DH3SHPmi.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BkiXzbFh.js} +12 -12
  60. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DA98LDj7.js → ZodTextField.vue_vue_type_script_setup_true_lang-BEFynSZm.js} +2 -2
  61. package/dist/{app-CNi4ejgf.js → app-CEWVaJEZ.js} +502 -447
  62. package/dist/app.js +1 -1
  63. package/dist/{business-D_DxmzRi.js → business-DWLMb2lG.js} +5 -5
  64. package/dist/{campaign-CQOgVXhK.js → campaign-DRJO5ydK.js} +2 -2
  65. package/dist/{campaign-DgLtIuZl.js → campaign-DwYJGuSz.js} +7 -7
  66. package/dist/{campaign.fn-DaygvaVk.js → campaign.fn-CPfN51jT.js} +38 -38
  67. package/dist/{collection.fn-C2FPUyIL.js → collection.fn-j4_hDjjy.js} +2 -2
  68. package/dist/{duplicateCampaign-C1GvaB0K.js → duplicateCampaign-CQ-yfh9b.js} +2 -2
  69. package/dist/{effect-CZW6UzGQ.js → effect-DU8lcl8m.js} +1 -1
  70. package/dist/{email-addresses-C0rpNk69.js → email-addresses-DUpMDrGS.js} +2 -2
  71. package/dist/{export-BljjhGlT.js → export-BFMh5l4w.js} +3 -3
  72. package/dist/{helper-BNVm1awI.js → helper-DSvUKuiG.js} +1 -1
  73. package/dist/{index-BTMG_CZc.js → index--mkEqsYz.js} +5 -4
  74. package/dist/{index-B3VxErFJ.js → index-B-tBxRw2.js} +1 -1
  75. package/dist/{index-_RZ5EbvD.js → index-BVWwOMHO.js} +7 -7
  76. package/dist/{index-ChPTYhTe.js → index-C69TnizM.js} +1 -1
  77. package/dist/{index-BLcxRCDQ.js → index-CDyGueuB.js} +13 -13
  78. package/dist/{index-Bl2Io2q7.js → index-CWEtTfxy.js} +2 -2
  79. package/dist/index-CWbvBvE3.js +137 -0
  80. package/dist/{index-ClMqJYPu.js → index-CrKfbYDf.js} +1194 -1150
  81. package/dist/{index--l25G-H2.js → index-CuyxKvmh.js} +2 -2
  82. package/dist/{index-jN921Dx6.js → index-CvVrgPmm.js} +3 -3
  83. package/dist/{index-CuSyySq9.js → index-CvaF2wtX.js} +1 -1
  84. package/dist/{index-CP9JOHTI.js → index-D-swy6qD.js} +1 -1
  85. package/dist/{index-CTDIDrHN.js → index-D8_jwrSU.js} +14 -14
  86. package/dist/{index-20y5ETqa.js → index-DCbCuJXP.js} +1 -1
  87. package/dist/{index-C41OQn3b.js → index-DD3Jlx01.js} +1 -1
  88. package/dist/{index-IL6JQ0Uk.js → index-DLZ_cPwd.js} +1 -1
  89. package/dist/{index-aRRiC6b9.js → index-rZdY3BW8.js} +7 -7
  90. package/dist/{index.esm2017-D2J5P0Jx.js → index.esm2017-B2wpsz6n.js} +1 -1
  91. package/dist/{loading-fSLeqKr_.js → loading-BHHf9MeD.js} +1 -1
  92. package/dist/{lodash-CanxPAR4.js → lodash-zHycpMIs.js} +1 -1
  93. package/dist/member-import-MTwvl8TG.js +143 -0
  94. package/dist/{membership-BrdyfO2y.js → membership-Ctqa96gd.js} +2 -2
  95. package/dist/{money-W_YTwyxP.js → money-C9m7TfMA.js} +1 -1
  96. package/dist/{number-j1vVuQpy.js → number-ng88zCwj.js} +1 -1
  97. package/dist/{objectid-DhwxE2Ct.js → objectid-BTsufz4u.js} +6 -6
  98. package/dist/{plugins-2XgEvjxm.js → plugins-MY2whJpz.js} +3 -3
  99. package/dist/{reward-Bk3FZbGj.js → reward-DiiV8MQE.js} +1 -1
  100. package/dist/{rule-M9AijHS0.js → rule-C31n55fZ.js} +3 -3
  101. package/dist/{rule-builder-C4yj8l-c.js → rule-builder-BVEerrEc.js} +1 -1
  102. package/dist/{template-BguoWqRC.js → template-CtcRYRZb.js} +6 -6
  103. package/dist/{timezone-DdkTIxnK.js → timezone-Ck4iMIrt.js} +1 -1
  104. package/dist/{transaction.fn-BpfxFtTu.js → transaction.fn-BI0-LgQG.js} +1 -1
  105. package/dist/{trigger-C7MXRREg.js → trigger-_5hAtyky.js} +5 -5
  106. package/dist/{useMarketingMaterialActions-CgJpHDNv.js → useMarketingMaterialActions-CX9qJp_O.js} +3 -3
  107. package/dist/{usePagination-Csc19YZ0.js → usePagination-DZKDMzEh.js} +1 -1
  108. package/dist/{user-DCwNBNr2.js → user-C-Db5JiY.js} +1 -1
  109. package/dist/{vue-i18n-BIpsBqfV.js → vue-i18n-BbF7bmsx.js} +204 -204
  110. package/dist/{xlsx-Esg-74Jx.js → xlsx-CzpvTfCU.js} +1 -1
  111. package/dist/{zod-D9ri6sIU.js → zod-HtL78lno.js} +1 -1
  112. package/package.json +1 -1
  113. package/dist/GiftCardSetup-Dg-kNVsD.js +0 -633
  114. package/dist/Member-Wf4LUqGi.js +0 -281
  115. package/dist/index-sBl1JAut.js +0 -85
@@ -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-BHHf9MeD.js";
3
+ import { u as ot } from "./app-wDQR6dpb.js";
4
+ import { n as D, f as V } from "./plugins-MY2whJpz.js";
5
+ import "./index-DD3Jlx01.js";
6
+ import { g as se } from "./index-C69TnizM.js";
7
+ import { c as nt } from "./index-B-tBxRw2.js";
8
+ import { S as lt } from "./index--mkEqsYz.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-CrKfbYDf.js";
10
+ import { u as dt } from "./vue-i18n-BbF7bmsx.js";
11
+ import { useRouter as mt, useRoute as ut } from "vue-router";
12
+ import { R as ft } from "./app-CEWVaJEZ.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
+ };