@feedmepos/mf-connect 0.1.98-beta.67 → 0.1.98-beta.69

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 (118) hide show
  1. package/dist/{App-BSev7h5h.js → App-BiKMxixG.js} +8 -8
  2. package/dist/{AuditLogs-DeAlB7jJ.js → AuditLogs-hcUTD8r2.js} +11 -11
  3. package/dist/{Bin-DVjlBYHA.js → Bin-BEIYu4Wb.js} +8 -8
  4. package/dist/{Broadcast-BbI01idN.js → Broadcast-CdsOnoex.js} +11 -11
  5. package/dist/{CampaignAnalytic-DLua9bnk.js → CampaignAnalytic-tfJk4uHv.js} +7 -7
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BrLZYx65.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DCfa5b54.js} +6 -6
  7. package/dist/{Card-CXmIDEWx.js → Card-DD2E58eg.js} +21 -21
  8. package/dist/{Collections-CJrEprz_.js → Collections-BJ3-qcPo.js} +8 -8
  9. package/dist/{Credit-C6wBp6uU.js → Credit-CaNsiUeh.js} +12 -12
  10. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-UrdGjhUi.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BYl60g2P.js} +1 -1
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BG9D3F4H.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CVnXbrDQ.js} +35 -35
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DSYTcCUw.js → EffectSheet.vue_vue_type_style_index_0_lang-C6j2U0CU.js} +6 -6
  13. package/dist/{Experience-BBpp7fol.js → Experience-WVRmN3BW.js} +12 -12
  14. package/dist/{FileSaver.min-8iG7SnPC.js → FileSaver.min-B0P2vo_g.js} +1 -1
  15. package/dist/{Game-g-w7u2yx.js → Game-B72C_2ZX.js} +13 -13
  16. package/dist/{GiftCardSetup-CH7TErmR.js → GiftCardSetup-BXrBTdxF.js} +193 -191
  17. package/dist/{Grab-C2kR_R20.js → Grab-DkkVMS8x.js} +9 -9
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CtZnT23g.js → ImageInput.vue_vue_type_script_setup_true_lang-DOz5RTkO.js} +1 -1
  19. package/dist/{Index-C8qjv_-U.js → Index-CsTSWAqg.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BKC1fy9_.js → LocationPicker.vue_vue_type_script_setup_true_lang-Bqjz1_TS.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BVLD4gvt.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CDy7s43a.js} +1 -1
  22. package/dist/{LoyaltyDashboard-8k50en91.js → LoyaltyDashboard-Cv1bGSmQ.js} +13 -13
  23. package/dist/{MainLayout-TeVUFA9q.js → MainLayout-fHF57JEF.js} +3 -3
  24. package/dist/{Marketing-J991msMm.js → Marketing-DSR9Ltbm.js} +4 -4
  25. package/dist/{MarketingMaterialEdit-DAoAumQY.js → MarketingMaterialEdit-DPiuYUe2.js} +6 -6
  26. package/dist/{Member-CNZ_0ILJ.js → Member-DS0JP4GM.js} +7 -7
  27. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-Cc3HniMJ.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Pf9idXlV.js} +23 -31
  28. package/dist/{MemberImportHistory-Dv-oxNaB.js → MemberImportHistory-DhWnUZlE.js} +7 -7
  29. package/dist/MemberList-BxVGAat6.js +334 -0
  30. package/dist/{MemberTransactions-CLM8Dfnw.js → MemberTransactions-Brwauef3.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BhtSy-i_.js → MessageInput.vue_vue_type_script_setup_true_lang-B9t6HRkS.js} +10 -10
  32. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BhRIG5Sb.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-pUeLVYJs.js} +1 -1
  33. package/dist/{Mission-BFPp5W38.js → Mission-BU_Broks.js} +13 -13
  34. package/dist/{Overview-CYxji5bG.js → Overview-BCb7SrPX.js} +19 -19
  35. package/dist/{Overview-nh5EBZWQ.js → Overview-Nx3E9gxA.js} +4 -4
  36. package/dist/{Point-zrXRlJBE.js → Point-DxHE0zpA.js} +12 -12
  37. package/dist/{Promotion-CJOmHUUE.js → Promotion-DkXyrAWE.js} +13 -13
  38. package/dist/{Queue-2nn-uJml.js → Queue-DcqW6gFI.js} +11 -11
  39. package/dist/{Record-1keVaDI0.js → Record-T7-Qn-BL.js} +9 -9
  40. package/dist/{Review-Bh78oO8W.js → Review-C0ORLjPk.js} +2 -2
  41. package/dist/{ReviewFacebookCallback-pgVpv6Rz.js → ReviewFacebookCallback-BamFJii5.js} +5 -5
  42. package/dist/{ReviewGoogleCallback--t-5fBRo.js → ReviewGoogleCallback-BbogEq-S.js} +5 -5
  43. package/dist/{Reward-BDLRE4Ty.js → Reward-Bs3PlUm1.js} +16 -16
  44. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C6MnG83y.js → RewardGroup.vue_vue_type_script_setup_true_lang-bt1XYaTg.js} +12 -12
  45. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-ClVcFvYb.js → RuleGroup.vue_vue_type_script_setup_true_lang-BIhuiOQp.js} +226 -210
  46. package/dist/{Segment-g1uo_rdU.js → Segment-ByHZvxzf.js} +275 -277
  47. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BW6lP_bM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Chb-W_Sp.js} +13 -13
  48. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Dtq7WzFQ.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-v8tQQ_3M.js} +4 -4
  49. package/dist/{Setting-DEndwisq.js → Setting-CDDQh6Km.js} +14 -14
  50. package/dist/{SettingAdvertisements-CWDzsn2m.js → SettingAdvertisements-vNfSi0PM.js} +12 -12
  51. package/dist/{Settings-D7mPuTyg.js → Settings-Dr9vVMqi.js} +5 -5
  52. package/dist/{Store-BLTx3yC4.js → Store-6jIdhWvV.js} +25 -25
  53. package/dist/{StoreRewards-B3ku_1XV.js → StoreRewards-Bi-vUQa8.js} +15 -15
  54. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-EypHnz-D.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D_goMUgu.js} +24 -24
  55. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BDPcr_0_.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dg1Caqaz.js} +2 -2
  56. package/dist/{Tier-HbcNZUPQ.js → Tier-DQxy11b5.js} +1418 -1299
  57. package/dist/{Title-M0r9f4da.js → Title-BrYUm3dJ.js} +21 -21
  58. package/dist/{Transaction-CPtRweMn.js → Transaction-BKaL8ft5.js} +2 -2
  59. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DozDy5mg.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DO6LZkqJ.js} +6 -6
  60. package/dist/{Voucher-CWHQl9v6.js → Voucher-fevudt4N.js} +14 -14
  61. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CzqRhz3w.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Cr4_aclC.js} +12 -12
  62. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DpglwR2d.js → ZodTextField.vue_vue_type_script_setup_true_lang-CeOuczNX.js} +2 -2
  63. package/dist/{app-Msk98KJg.js → app-BTQMPUaZ.js} +167 -167
  64. package/dist/app.js +1 -1
  65. package/dist/{base.export-CoamCPN5.js → base.export-BvF6HW_b.js} +2 -2
  66. package/dist/{business-BucV5x26.js → business-1bynM2S3.js} +1 -1
  67. package/dist/{campaign-iVpaTK-0.js → campaign-61jHDGE4.js} +2 -2
  68. package/dist/{campaign-CzXbdwtP.js → campaign-x2kSthOl.js} +9 -9
  69. package/dist/{campaign.enum-CP4mlX7i.js → campaign.enum-DPKrl7Yi.js} +1 -1
  70. package/dist/{campaign.fn-DEZEgo-y.js → campaign.fn-DVkjEyJa.js} +37 -37
  71. package/dist/{collectible.enum-BXTBO2A6.js → collectible.enum-C-25_MsY.js} +1 -1
  72. package/dist/{collection.fn-DHXq98H2.js → collection.fn-CTN43Pnh.js} +2 -2
  73. package/dist/{currency-CqAHuPrF.js → currency-CPD7bsCi.js} +1 -1
  74. package/dist/{duplicateCampaign-f7qa0gjH.js → duplicateCampaign-BDFXsGKJ.js} +2 -2
  75. package/dist/{effect-COCNlAdD.js → effect-Dm8vqK1h.js} +1 -1
  76. package/dist/{email-addresses-D_2IsXxB.js → email-addresses-DW8Sb8Cs.js} +2 -2
  77. package/dist/{helper-Bx3UdnpF.js → helper-CCZQK8H8.js} +1 -1
  78. package/dist/{index-BC84wkyE.js → index-B0E21F7i.js} +2 -2
  79. package/dist/{index-nvJwwmuv.js → index-B9nAyvGU.js} +1 -1
  80. package/dist/{index-DhFw6JEp.js → index-BG6_axTA.js} +2 -2
  81. package/dist/{index-BQq-p2et.js → index-BHJFHHKZ.js} +2 -2
  82. package/dist/{index-BqmcwjlW.js → index-BdIWlpWJ.js} +1 -1
  83. package/dist/{index-Chkm-r8k.js → index-C8LcgPDt.js} +8 -8
  84. package/dist/{index-D_zKtME6.js → index-CN7lBDQn.js} +4 -4
  85. package/dist/{index-J6iyiSef.js → index-Cj_YiRca.js} +3 -3
  86. package/dist/{index-gLWU_GM_.js → index-CqOxyfYn.js} +1 -1
  87. package/dist/{index-CZb4b_1X.js → index-D-mVW2R4.js} +5 -5
  88. package/dist/{index-wq_lfdmr.js → index-D5th1Ref.js} +3 -3
  89. package/dist/{index-Ch7pRizF.js → index-DADAdGcF.js} +1 -1
  90. package/dist/{index-C0TwA_Wh.js → index-Dpfl5fwR.js} +7 -7
  91. package/dist/{index-zmTCGR0q.js → index-Ru-8vt_3.js} +5 -5
  92. package/dist/{index-BI06mIEd.js → index-WMXL77u3.js} +1 -1
  93. package/dist/{index-4jnmRY1-.js → index-elefz7dV.js} +7 -7
  94. package/dist/{index-DVIxIjkI.js → index-irwaz38u.js} +99 -91
  95. package/dist/{index-CkiypoZB.js → index-pNqNL1yL.js} +1 -1
  96. package/dist/{index.esm2017-BK-m1mf7.js → index.esm2017-BFkcep8i.js} +37 -37
  97. package/dist/{loading-CrPN7IBD.js → loading-DY5cgK81.js} +1 -1
  98. package/dist/{lodash-Cq86LJZW.js → lodash-Mri5RxId.js} +1 -1
  99. package/dist/{member-import-CqguFqZB.js → member-import-Ds0mHQDO.js} +1 -1
  100. package/dist/{membership-5mxt-mKd.js → membership-Dl9I9gta.js} +3 -3
  101. package/dist/{money-1Uscav6q.js → money-DJf18iEv.js} +1 -1
  102. package/dist/{number-D-SQ4YfT.js → number-CDlVA7gg.js} +1 -1
  103. package/dist/{objectid-Dv1v2_OS.js → objectid-C7Jmt3kj.js} +6 -6
  104. package/dist/{plugins-8dMylfLG.js → plugins-BB3qsUY2.js} +3 -3
  105. package/dist/{reward-lh_oH4Qz.js → reward-BDoWlsUZ.js} +1 -1
  106. package/dist/{rule-qyNmecW-.js → rule-DZQUn3H0.js} +8 -8
  107. package/dist/{template-Bzh-c8hF.js → template-DIsdAHue.js} +6 -6
  108. package/dist/{timezone-BftWdnuB.js → timezone-DINP7HO_.js} +1 -1
  109. package/dist/{transaction.fn-14_FN92e.js → transaction.fn-CorgPho4.js} +1 -1
  110. package/dist/{trigger-DDp0mcTt.js → trigger-BAhUCSbv.js} +5 -5
  111. package/dist/{useMarketingMaterialActions-CbQrS_zG.js → useMarketingMaterialActions-waypQ70p.js} +3 -3
  112. package/dist/{usePagination-B8IZs26_.js → usePagination-BLZ_9QGR.js} +1 -1
  113. package/dist/{user-DURi-ne2.js → user-PO61yniX.js} +1 -1
  114. package/dist/{vue-i18n-CXLriG-n.js → vue-i18n-CfOCSTEg.js} +376 -376
  115. package/dist/{xlsx-1GEVBJpx.js → xlsx-Cu-uiqcb.js} +224 -224
  116. package/dist/{zod-DsZUBW2Y.js → zod-BM3CuDZq.js} +1 -1
  117. package/package.json +1 -1
  118. package/dist/MemberList-DIftEwpi.js +0 -336
@@ -1,58 +1,58 @@
1
- import { defineComponent as lt, computed as p, ref as d, onMounted as at, resolveComponent as x, openBlock as u, createElementBlock as m, unref as e, createBlock as J, createCommentVNode as g, createElementVNode as n, createVNode as r, toDisplayString as s, withCtx as P, isRef as b, Fragment as R, renderList as K, normalizeClass as Y, withDirectives as st, withKeys as rt, vModelText as ct, createTextVNode as de } from "vue";
2
- import { u as it } from "./loading-CrPN7IBD.js";
3
- import { u as dt } from "./app-wDQR6dpb.js";
4
- import { n as E, f as L } from "./plugins-8dMylfLG.js";
5
- import "./index-nvJwwmuv.js";
6
- import { g as ue } from "./index-CkiypoZB.js";
7
- import { c as ut } from "./index-DhFw6JEp.js";
8
- import { S as mt } from "./index-BQq-p2et.js";
9
- import { a as ft } from "./MessageInput.vue_vue_type_script_setup_true_lang-BhtSy-i_.js";
10
- import { J as pt } from "./JsonViewer-v8_C7l5N.js";
11
- import { r as Q, s as Ee, t as vt, u as gt, v as yt, G as W, w as bt, x as _t, y as Fe, z as me, A as xt } from "./index-DVIxIjkI.js";
12
- import { u as Ct } from "./vue-i18n-CXLriG-n.js";
13
- import { useRouter as ht, useRoute as At } from "vue-router";
14
- import { R as Dt } from "./app-Msk98KJg.js";
15
- var Mt = { 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/" };
16
- const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-24" }, Tt = { class: "flex flex-col gap-4" }, kt = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, wt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, St = { class: "flex flex-col gap-16 max-w-[860px]" }, Nt = { class: "flex gap-12" }, Ut = { class: "flex flex-col gap-4" }, Vt = { class: "fm-typo-en-body-lg-600" }, It = { class: "flex gap-12" }, Pt = { class: "flex flex-col gap-4" }, Rt = { class: "fm-typo-en-body-lg-600" }, Lt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Gt = { class: "flex flex-wrap items-start gap-12" }, Ht = ["src"], $t = ["aria-label", "title", "onClick"], Ot = { class: "absolute bottom-4 left-4 px-8 py-2 rounded-sm bg-fm-color-neutral-white fm-typo-en-body-sm-600" }, Xt = { class: "flex gap-12" }, Bt = { class: "flex flex-col gap-4" }, zt = { class: "fm-typo-en-body-lg-600" }, jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jt = { class: "flex flex-col gap-8" }, Kt = ["onClick"], Wt = {
1
+ import { defineComponent as rt, computed as p, ref as d, onMounted as ct, resolveComponent as x, openBlock as u, createElementBlock as m, unref as e, createBlock as J, createCommentVNode as g, createElementVNode as n, createVNode as r, toDisplayString as s, withCtx as P, isRef as b, Fragment as R, renderList as K, normalizeClass as Y, withDirectives as it, withKeys as dt, vModelText as ut, createTextVNode as de } from "vue";
2
+ import { u as mt } from "./loading-DY5cgK81.js";
3
+ import { u as ft } from "./app-wDQR6dpb.js";
4
+ import { n as E, f as L } from "./plugins-BB3qsUY2.js";
5
+ import "./index-B9nAyvGU.js";
6
+ import { g as ue } from "./index-pNqNL1yL.js";
7
+ import { c as pt } from "./index-BG6_axTA.js";
8
+ import { S as Fe } from "./index-BHJFHHKZ.js";
9
+ import { a as vt } from "./MessageInput.vue_vue_type_script_setup_true_lang-B9t6HRkS.js";
10
+ import { J as gt } from "./JsonViewer-v8_C7l5N.js";
11
+ import { r as Q, s as Te, t as yt, u as bt, v as _t, G as W, w as xt, x as Ct, y as ke, z as me, A as ht } from "./index-irwaz38u.js";
12
+ import { u as At } from "./vue-i18n-CfOCSTEg.js";
13
+ import { useRouter as Dt, useRoute as Mt } from "vue-router";
14
+ import { R as Et } from "./app-BTQMPUaZ.js";
15
+ var we = { 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/" };
16
+ const Ft = { class: "px-24 pb-40" }, Tt = { class: "flex items-start gap-12 py-24" }, kt = { class: "flex flex-col gap-4" }, wt = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, St = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "flex flex-col gap-16 max-w-[860px]" }, Ut = { class: "flex gap-12" }, Vt = { class: "flex flex-col gap-4" }, It = { class: "fm-typo-en-body-lg-600" }, Pt = { class: "flex gap-12" }, Rt = { class: "flex flex-col gap-4" }, Lt = { class: "fm-typo-en-body-lg-600" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ht = { class: "flex flex-wrap items-start gap-12" }, $t = ["src"], Ot = ["aria-label", "title", "onClick"], Xt = { class: "absolute bottom-4 left-4 px-8 py-2 rounded-sm bg-fm-color-neutral-white fm-typo-en-body-sm-600" }, Bt = { class: "flex gap-12" }, zt = { class: "flex flex-col gap-4" }, jt = { class: "fm-typo-en-body-lg-600" }, Jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-8" }, Wt = ["onClick"], Zt = {
17
17
  key: 0,
18
18
  class: "w-[9px] h-[9px] rounded-full bg-fm-color-primary"
19
- }, Zt = { class: "flex-1" }, qt = { class: "block fm-typo-en-body-md-600" }, Yt = { class: "block fm-typo-en-body-md-400 text-fm-color-typo-secondary mt-2" }, Qt = {
19
+ }, qt = { class: "flex-1" }, Yt = { class: "block fm-typo-en-body-md-600" }, Qt = { class: "block fm-typo-en-body-md-400 text-fm-color-typo-secondary mt-2" }, eo = {
20
20
  key: 0,
21
21
  class: "grid sm:grid-cols-2 gap-16"
22
- }, eo = {
22
+ }, to = {
23
23
  key: 1,
24
24
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
25
- }, to = { class: "flex items-center gap-16 p-16 rounded-md bg-fm-color-neutral-gray-100" }, oo = { class: "flex flex-col gap-2 flex-1 min-w-0" }, no = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, lo = { class: "fm-typo-en-body-lg-600 truncate" }, ao = { class: "flex gap-12" }, so = { class: "flex flex-col gap-4" }, ro = { class: "fm-typo-en-body-lg-600" }, co = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, io = { class: "flex flex-col gap-8" }, uo = { class: "fm-typo-en-body-md-600" }, mo = { class: "flex flex-wrap gap-8" }, fo = { class: "flex items-start gap-8" }, po = { class: "flex items-center rounded-md border-1 border-fm-color-neutral-gray-300 overflow-hidden" }, vo = ["placeholder", "disabled"], go = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, yo = { class: "text-fm-color-primary" }, bo = { class: "flex items-center gap-12 p-16 rounded-md border-1 border-fm-color-neutral-gray-300" }, _o = { class: "flex-1" }, xo = { class: "fm-typo-en-body-md-600" }, Co = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ho = {
25
+ }, oo = { class: "flex items-center gap-16 p-16 rounded-md bg-fm-color-neutral-gray-100" }, no = { class: "flex flex-col gap-2 flex-1 min-w-0" }, lo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ao = { class: "fm-typo-en-body-lg-600 truncate" }, so = { class: "flex gap-12" }, ro = { class: "flex flex-col gap-4" }, co = { class: "fm-typo-en-body-lg-600" }, io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, uo = { class: "flex flex-col gap-8" }, mo = { class: "fm-typo-en-body-md-600" }, fo = { class: "flex flex-wrap gap-8" }, po = { class: "flex items-start gap-8" }, vo = { class: "flex items-center rounded-md border-1 border-fm-color-neutral-gray-300 overflow-hidden" }, go = ["placeholder", "disabled"], yo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, bo = { class: "text-fm-color-primary" }, _o = { class: "flex items-center gap-12 p-16 rounded-md border-1 border-fm-color-neutral-gray-300" }, xo = { class: "flex-1" }, Co = { class: "fm-typo-en-body-md-600" }, ho = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ao = {
26
26
  key: 0,
27
27
  class: "flex gap-16"
28
- }, Ao = {
28
+ }, Do = {
29
29
  key: 1,
30
30
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
31
- }, Do = { class: "flex gap-12" }, Mo = { class: "flex flex-col gap-4" }, Eo = { class: "fm-typo-en-body-lg-600" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, To = {
31
+ }, Mo = { class: "flex gap-12" }, Eo = { class: "flex flex-col gap-4" }, Fo = { class: "fm-typo-en-body-lg-600" }, To = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ko = {
32
32
  key: 0,
33
33
  class: "flex items-start gap-12 p-16 rounded-md bg-fm-color-system-info-100"
34
- }, ko = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-primary" }, wo = { class: "flex items-center gap-12" }, So = { class: "fm-typo-en-body-md-500" }, No = { class: "flex flex-col gap-8" }, Uo = { class: "fm-typo-en-body-md-600" }, Vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Io = { class: "flex flex-col gap-16 rounded-md border-1 border-fm-color-neutral-gray-300 p-16" }, Po = {
34
+ }, wo = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-primary" }, So = { class: "flex items-center gap-12" }, No = { class: "fm-typo-en-body-md-500" }, Uo = { class: "flex flex-col gap-8" }, Vo = { class: "fm-typo-en-body-md-600" }, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Po = { class: "flex flex-col gap-16 rounded-md border-1 border-fm-color-neutral-gray-300 p-16" }, Ro = {
35
35
  key: 0,
36
36
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
37
- }, Ro = {
37
+ }, Lo = {
38
38
  key: 1,
39
39
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
40
- }, Lo = { class: "flex flex-wrap gap-8" }, Go = { class: "fm-typo-en-body-lg-600" }, Ho = {
40
+ }, Go = { class: "flex flex-wrap gap-8" }, Ho = { class: "fm-typo-en-body-lg-600" }, $o = {
41
41
  key: 0,
42
42
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
43
- }, $o = { class: "flex gap-12" }, Oo = { class: "flex flex-col gap-4" }, Xo = { class: "fm-typo-en-body-lg-600" }, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zo = { class: "flex flex-wrap items-center gap-8" }, jo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Jo = {
43
+ }, Oo = { class: "flex gap-12" }, Xo = { class: "flex flex-col gap-4" }, Bo = { class: "fm-typo-en-body-lg-600" }, zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jo = { class: "flex flex-wrap items-center gap-8" }, Jo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ko = {
44
44
  key: 1,
45
45
  class: "flex items-center gap-12 p-16 rounded-md border-1 border-fm-color-neutral-gray-300"
46
- }, Ko = { class: "w-40 h-40 rounded-sm flex-none grid place-items-center bg-fm-color-neutral-gray-100" }, Wo = { class: "flex-1 min-w-0" }, Zo = ["href"], qo = {
46
+ }, Wo = { class: "w-40 h-40 rounded-sm flex-none grid place-items-center bg-fm-color-neutral-gray-100" }, Zo = { class: "flex-1 min-w-0" }, qo = ["href"], Yo = {
47
47
  key: 0,
48
48
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
49
- }, Yo = { class: "flex items-center justify-end gap-8 pt-8" }, Te = 5e6, Qo = 5e6, gn = /* @__PURE__ */ lt({
49
+ }, Qo = { class: "flex items-center justify-end gap-8 pt-8" }, Se = 5e6, en = 5e6, yn = /* @__PURE__ */ rt({
50
50
  __name: "GiftCardSetup",
51
- setup(en) {
52
- const { t: l } = Ct(), { global: ke, minor: ee } = it, we = ht(), Se = At(), G = p(() => Se.params.id || null), H = p(() => !!G.value), F = d(""), h = d([]);
51
+ setup(tn) {
52
+ const { t: l } = At(), { global: Ne, minor: ee } = mt, Ue = Dt(), Ve = Mt(), G = p(() => Ve.params.id || null), H = p(() => !!G.value), F = d(""), h = d([]);
53
53
  let fe = /* @__PURE__ */ new Set();
54
- const pe = /* @__PURE__ */ new Set(), Ne = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/gif"]), A = d("DEFAULT"), $ = d(16), T = d(Q().charset), O = d("GC"), X = d(""), ve = d(0), ge = [10, 20, 30, 50, 100], f = d([]), k = d(""), D = d(!1), w = d(10), S = d(100), ye = d(!1), B = d(!0), N = d(
55
- Ee()
54
+ const pe = /* @__PURE__ */ new Set(), Ie = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/gif"]), A = d("DEFAULT"), $ = d(16), T = d(Q().charset), O = d("GC"), X = d(""), ve = d(0), ge = [10, 20, 30, 50, 100], f = d([]), k = d(""), D = d(!1), w = d(10), S = d(100), ye = d(!1), B = d(!0), be = `https://${Fe.getBusinessId()}.${we.appUrl}/member/gift-cards`, N = d(
55
+ Te(be)
56
56
  ), M = d("SMS"), v = d(["SMS"]), te = d({
57
57
  SMS: !0,
58
58
  WHATSAPP: !1,
@@ -71,7 +71,7 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
71
71
  [M.value]: t
72
72
  };
73
73
  }
74
- }), Ue = {
74
+ }), Pe = {
75
75
  giftCard: {
76
76
  amount: "RM100",
77
77
  senderName: "Janey Wong",
@@ -79,30 +79,32 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
79
79
  recipientName: "John Doe",
80
80
  personalMessage: "Happy birthday!"
81
81
  },
82
- business: { name: "Kopi Haus" }
83
- }, be = p(
82
+ business: {
83
+ name: "Kopi Haus"
84
+ }
85
+ }, _e = p(
84
86
  () => Z.value.filter((t) => !t.available).map((t) => t.label)
85
- ), Ve = `${Mt.licensePortalUrl}settings?businessId=${mt.businessId}`;
86
- function Ie(t) {
87
+ ), Re = `${we.licensePortalUrl}settings?businessId=${Fe.businessId}`;
88
+ function Le(t) {
87
89
  if (!(!te.value[t] && !v.value.includes(t)) && (v.value = v.value.includes(t) ? v.value.filter((o) => o !== t) : [...v.value, t], !v.value.includes(M.value))) {
88
90
  const o = v.value[0];
89
91
  o && (M.value = o);
90
92
  }
91
93
  }
92
- async function Pe() {
94
+ async function Ge() {
93
95
  try {
94
- te.value = await ut.readBroadcastChannels();
96
+ te.value = await pt.readBroadcastChannels();
95
97
  } catch (t) {
96
98
  console.error("Failed to load notification channel status", t);
97
99
  }
98
100
  }
99
- const _ = d("NONE"), z = d(""), U = d(""), _e = d(null), Re = /\.pdf$/i, j = d(null), Le = p(
101
+ const _ = d("NONE"), z = d(""), U = d(""), xe = d(null), He = /\.pdf$/i, j = d(null), $e = p(
100
102
  () => {
101
103
  var t;
102
104
  return ((t = j.value) == null ? void 0 : t.name) ?? l("connect.store.giftCard.termsDocument");
103
105
  }
104
106
  );
105
- function Ge(t) {
107
+ function Oe(t) {
106
108
  return t >= 1e6 ? `${(t / 1e6).toFixed(1)} MB` : `${Math.max(1, Math.round(t / 1e3))} KB`;
107
109
  }
108
110
  const ne = p(
@@ -113,20 +115,20 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
113
115
  prefix: O.value,
114
116
  suffix: X.value
115
117
  } : Q()
116
- ), He = p(() => (ve.value, vt(ne.value))), $e = p(
117
- () => gt(T.value) ?? 1
118
+ ), Xe = p(() => (ve.value, yt(ne.value))), Be = p(
119
+ () => bt(T.value) ?? 1
118
120
  ), le = p(
119
- () => A.value === "ADVANCED" ? yt(ne.value) : null
121
+ () => A.value === "ADVANCED" ? _t(ne.value) : null
120
122
  ), V = p(
121
123
  () => f.value.length >= W
122
- ), Oe = p(() => [
124
+ ), ze = p(() => [
123
125
  ...ge.map((t) => ({ amount: t, custom: !1 })),
124
126
  ...f.value.filter((t) => !ge.includes(t)).map((t) => ({ amount: t, custom: !0 }))
125
127
  ]);
126
- function Xe(t) {
127
- t.custom || !f.value.includes(t.amount) && V.value || xe(t.amount);
128
+ function je(t) {
129
+ t.custom || !f.value.includes(t.amount) && V.value || Ce(t.amount);
128
130
  }
129
- function xe(t) {
131
+ function Ce(t) {
130
132
  if (f.value.includes(t)) {
131
133
  f.value = f.value.filter((o) => o !== t);
132
134
  return;
@@ -141,7 +143,7 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
141
143
  }
142
144
  f.value = [...f.value, t].sort((o, c) => o - c);
143
145
  }
144
- function Ce() {
146
+ function he() {
145
147
  const t = Number(k.value);
146
148
  if (!Number.isInteger(t) || t <= 0) {
147
149
  E.error(l("connect.store.giftCard.invalidAmount"));
@@ -167,7 +169,7 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
167
169
  }
168
170
  f.value = [...f.value, t].sort((o, c) => o - c), k.value = "";
169
171
  }
170
- const ae = p(() => f.value.length === 0 && !D.value ? l("connect.store.giftCard.errorNoAmount") : D.value && Number(w.value) > Number(S.value) ? l("connect.store.giftCard.errorRange") : null), Be = p(
172
+ const ae = p(() => f.value.length === 0 && !D.value ? l("connect.store.giftCard.errorNoAmount") : D.value && Number(w.value) > Number(S.value) ? l("connect.store.giftCard.errorRange") : null), Je = p(
171
173
  () => F.value.trim() ? null : l("connect.store.giftCard.errorNoName")
172
174
  ), se = p(
173
175
  () => v.value.length ? null : l("connect.store.giftCard.errorNoChannel")
@@ -182,12 +184,12 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
182
184
  }
183
185
  return null;
184
186
  }), ce = p(
185
- () => Be.value ?? le.value ?? ae.value ?? se.value ?? re.value
187
+ () => Je.value ?? le.value ?? ae.value ?? se.value ?? re.value
186
188
  );
187
- async function ze(t) {
188
- Je(t) && await ee(
189
+ async function Ke(t) {
190
+ Ze(t) && await ee(
189
191
  async () => {
190
- const o = await je(t);
192
+ const o = await We(t);
191
193
  h.value = [...h.value, o];
192
194
  },
193
195
  {
@@ -196,20 +198,20 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
196
198
  }
197
199
  );
198
200
  }
199
- function je(t) {
201
+ function We(t) {
200
202
  return L.update(
201
203
  L.bundleImagePath(void 0, t),
202
204
  t
203
205
  );
204
206
  }
205
- function Je(t) {
206
- const o = Ne.has(t.type) && t.size <= Te;
207
+ function Ze(t) {
208
+ const o = Ie.has(t.type) && t.size <= Se;
207
209
  return o || E.error(l("connect.store.giftCard.invalidDesignFile")), o;
208
210
  }
209
- async function Ke(t) {
210
- h.value = h.value.filter((o) => o !== t), await We(t);
211
+ async function qe(t) {
212
+ h.value = h.value.filter((o) => o !== t), await Ye(t);
211
213
  }
212
- async function We(t) {
214
+ async function Ye(t) {
213
215
  if (fe.has(t)) {
214
216
  pe.add(t);
215
217
  return;
@@ -219,15 +221,15 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
219
221
  } catch {
220
222
  }
221
223
  }
222
- function Ze() {
224
+ function Qe() {
223
225
  var t;
224
- (t = _e.value) == null || t.click();
226
+ (t = xe.value) == null || t.click();
225
227
  }
226
- async function qe(t) {
228
+ async function et(t) {
227
229
  var y;
228
230
  const o = t.target, c = (y = o.files) == null ? void 0 : y[0];
229
231
  if (o.value = "", !!c) {
230
- if (!Re.test(c.name) || c.size > Qo) {
232
+ if (!He.test(c.name) || c.size > en) {
231
233
  E.error(l("connect.store.giftCard.invalidTermsFile"));
232
234
  return;
233
235
  }
@@ -245,10 +247,10 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
245
247
  );
246
248
  }
247
249
  }
248
- function Ye() {
250
+ function tt() {
249
251
  U.value = "", j.value = null, _.value = "NONE";
250
252
  }
251
- function he() {
253
+ function Ae() {
252
254
  return {
253
255
  name: F.value.trim(),
254
256
  designs: h.value,
@@ -266,25 +268,25 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
266
268
  termsDocumentUrl: _.value === "DOCUMENT" && U.value || null
267
269
  };
268
270
  }
269
- function Qe(t) {
271
+ function ot(t) {
270
272
  var y, C, I, q;
271
273
  F.value = t.name, h.value = [...t.designs ?? []], fe = new Set(h.value), f.value = [...t.denominations ?? []], D.value = !!((y = t.anyAmount) != null && y.enabled), w.value = ((C = t.anyAmount) == null ? void 0 : C.min) ?? 10, S.value = ((I = t.anyAmount) == null ? void 0 : I.max) ?? 100, v.value = (q = t.channels) != null && q.length ? [...t.channels] : ["SMS"], B.value = t.allowPersonalMessage ?? !0, N.value = structuredClone(
272
- t.deliveryMessages ?? Ee()
274
+ t.deliveryMessages ?? Te(be)
273
275
  ), M.value = v.value[0] ?? "SMS";
274
276
  const o = t.numberFormat, c = !o || o.prefix === "GC" && Number(o.length) === 16;
275
277
  A.value = c ? "DEFAULT" : "ADVANCED", $.value = Number((o == null ? void 0 : o.length) ?? 16), T.value = (o == null ? void 0 : o.charset) ?? Q().charset, O.value = (o == null ? void 0 : o.prefix) ?? "GC", X.value = (o == null ? void 0 : o.suffix) ?? "", t.termsDocumentUrl ? (_.value = "DOCUMENT", U.value = t.termsDocumentUrl) : t.termsAndConditions && (_.value = "TEXT", z.value = t.termsAndConditions);
276
278
  }
277
279
  function ie() {
278
- we.push({ name: Dt["$connect-STORE"] });
280
+ Ue.push({ name: Et["$connect-STORE"] });
279
281
  }
280
- async function et() {
282
+ async function nt() {
281
283
  if (ce.value) {
282
284
  E.error(ce.value);
283
285
  return;
284
286
  }
285
287
  await ee(
286
288
  async () => {
287
- const t = he();
289
+ const t = Ae();
288
290
  G.value ? await ue.updateProgram(G.value, t) : await ue.createProgram(t), await Promise.allSettled(
289
291
  [...pe].map((o) => L.delete(o))
290
292
  ), ie();
@@ -295,38 +297,38 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
295
297
  }
296
298
  );
297
299
  }
298
- return at(async () => {
299
- await ke(async () => {
300
- await Pe(), G.value && Qe(await ue.readProgram(G.value));
300
+ return ct(async () => {
301
+ await Ne(async () => {
302
+ await Ge(), G.value && ot(await ue.readProgram(G.value));
301
303
  });
302
304
  }), (t, o) => {
303
- const c = x("FmButton"), y = x("FmTextField"), C = x("FmCard"), I = x("FmIcon"), q = x("FmDropField"), tt = x("FmStepperField"), Ae = x("FmChip"), De = x("FmSwitch"), ot = x("FmCheckbox"), nt = x("FmTextarea");
304
- return u(), m("div", Et, [
305
- e(H) ? (u(), J(pt, {
305
+ const c = x("FmButton"), y = x("FmTextField"), C = x("FmCard"), I = x("FmIcon"), q = x("FmDropField"), lt = x("FmStepperField"), De = x("FmChip"), Me = x("FmSwitch"), at = x("FmCheckbox"), st = x("FmTextarea");
306
+ return u(), m("div", Ft, [
307
+ e(H) ? (u(), J(gt, {
306
308
  key: 0,
307
- json: he()
309
+ json: Ae()
308
310
  }, null, 8, ["json"])) : g("", !0),
309
- n("div", Ft, [
311
+ n("div", Tt, [
310
312
  r(c, {
311
313
  icon: "arrow_back",
312
314
  variant: "tertiary",
313
315
  onClick: ie
314
316
  }),
315
- n("div", Tt, [
316
- n("h1", kt, s(e(H) ? e(l)("connect.store.giftCard.editTitle") : e(l)("connect.store.giftCard.createTitle")), 1),
317
- n("p", wt, s(e(l)("connect.store.giftCard.pageSubtitle")), 1)
317
+ n("div", kt, [
318
+ n("h1", wt, s(e(H) ? e(l)("connect.store.giftCard.editTitle") : e(l)("connect.store.giftCard.createTitle")), 1),
319
+ n("p", St, s(e(l)("connect.store.giftCard.pageSubtitle")), 1)
318
320
  ])
319
321
  ]),
320
- n("div", St, [
322
+ n("div", Nt, [
321
323
  r(C, {
322
324
  variant: "outlined",
323
325
  class: "p-24 flex flex-col gap-16"
324
326
  }, {
325
327
  default: P(() => [
326
- n("div", Nt, [
328
+ n("div", Ut, [
327
329
  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" }, " 1 ", -1)),
328
- n("div", Ut, [
329
- n("div", Vt, s(e(l)("connect.store.giftCard.name")), 1)
330
+ n("div", Vt, [
331
+ n("div", It, s(e(l)("connect.store.giftCard.name")), 1)
330
332
  ])
331
333
  ]),
332
334
  r(y, {
@@ -342,14 +344,14 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
342
344
  class: "p-24 flex flex-col gap-16"
343
345
  }, {
344
346
  default: P(() => [
345
- n("div", It, [
347
+ n("div", Pt, [
346
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" }, " 2 ", -1)),
347
- n("div", Pt, [
348
- n("div", Rt, s(e(l)("connect.store.giftCard.design")), 1),
349
- n("div", Lt, s(e(l)("connect.store.giftCard.designHint")), 1)
349
+ n("div", Rt, [
350
+ n("div", Lt, s(e(l)("connect.store.giftCard.design")), 1),
351
+ n("div", Gt, s(e(l)("connect.store.giftCard.designHint")), 1)
350
352
  ])
351
353
  ]),
352
- n("div", Gt, [
354
+ n("div", Ht, [
353
355
  (u(!0), m(R, null, K(e(h), (a, i) => (u(), m("div", {
354
356
  key: a,
355
357
  class: "relative w-[179px] h-[115px] rounded-md overflow-hidden border-1 border-fm-color-neutral-gray-300"
@@ -358,26 +360,26 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
358
360
  src: a,
359
361
  alt: "",
360
362
  class: "w-full h-full object-cover"
361
- }, null, 8, Ht),
363
+ }, null, 8, $t),
362
364
  n("button", {
363
365
  type: "button",
364
366
  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",
365
367
  "aria-label": e(l)("connect.common.remove"),
366
368
  title: e(l)("connect.common.remove"),
367
- onClick: (Me) => Ke(a)
369
+ onClick: (Ee) => qe(a)
368
370
  }, [
369
371
  r(I, {
370
372
  name: "close",
371
373
  size: "sm"
372
374
  })
373
- ], 8, $t),
374
- n("span", Ot, s(e(l)("connect.store.giftCard.designOption", { index: i + 1 })), 1)
375
+ ], 8, Ot),
376
+ n("span", Xt, s(e(l)("connect.store.giftCard.designOption", { index: i + 1 })), 1)
375
377
  ]))), 128)),
376
378
  r(q, {
377
379
  accept: ".png, .jpg, .jpeg, .gif",
378
- "max-file-size": Te,
380
+ "max-file-size": Se,
379
381
  "content-class": "w-[179px] h-[115px]",
380
- onFileUpload: ze
382
+ onFileUpload: Ke
381
383
  })
382
384
  ])
383
385
  ]),
@@ -388,14 +390,14 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
388
390
  class: "p-24 flex flex-col gap-16"
389
391
  }, {
390
392
  default: P(() => [
391
- n("div", Xt, [
393
+ n("div", Bt, [
392
394
  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" }, " 3 ", -1)),
393
- n("div", Bt, [
394
- n("div", zt, s(e(l)("connect.store.giftCard.numberSettings")), 1),
395
- n("div", jt, s(e(l)("connect.store.giftCard.numberSettingsHint")), 1)
395
+ n("div", zt, [
396
+ n("div", jt, s(e(l)("connect.store.giftCard.numberSettings")), 1),
397
+ n("div", Jt, s(e(l)("connect.store.giftCard.numberSettingsHint")), 1)
396
398
  ])
397
399
  ]),
398
- n("div", Jt, [
400
+ n("div", Kt, [
399
401
  (u(), m(R, null, K(["DEFAULT", "ADVANCED"], (a) => n("button", {
400
402
  key: a,
401
403
  type: "button",
@@ -411,48 +413,48 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
411
413
  e(A) === a ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300"
412
414
  ])
413
415
  }, [
414
- e(A) === a ? (u(), m("span", Wt)) : g("", !0)
416
+ e(A) === a ? (u(), m("span", Zt)) : g("", !0)
415
417
  ], 2),
416
- n("span", Zt, [
417
- n("span", qt, s(a === "DEFAULT" ? e(l)("connect.store.giftCard.numberDefault") : e(l)("connect.store.giftCard.numberAdvanced")), 1),
418
- n("span", Yt, s(a === "DEFAULT" ? e(l)("connect.store.giftCard.numberDefaultHint") : e(l)("connect.store.giftCard.numberAdvancedHint")), 1)
418
+ n("span", qt, [
419
+ n("span", Yt, s(a === "DEFAULT" ? e(l)("connect.store.giftCard.numberDefault") : e(l)("connect.store.giftCard.numberAdvanced")), 1),
420
+ n("span", Qt, s(a === "DEFAULT" ? e(l)("connect.store.giftCard.numberDefaultHint") : e(l)("connect.store.giftCard.numberAdvancedHint")), 1)
419
421
  ])
420
- ], 10, Kt)), 64))
422
+ ], 10, Wt)), 64))
421
423
  ]),
422
- e(A) === "ADVANCED" ? (u(), m("div", Qt, [
423
- r(tt, {
424
+ e(A) === "ADVANCED" ? (u(), m("div", eo, [
425
+ r(lt, {
424
426
  modelValue: e($),
425
427
  "onUpdate:modelValue": o[1] || (o[1] = (a) => b($) ? $.value = a : null),
426
428
  label: e(l)("connect.store.giftCard.length"),
427
429
  "helper-text": e(l)("connect.store.giftCard.lengthHint"),
428
- min: e($e),
429
- max: e(bt),
430
+ min: e(Be),
431
+ max: e(xt),
430
432
  step: 1
431
433
  }, null, 8, ["modelValue", "label", "helper-text", "min", "max"]),
432
434
  r(y, {
433
435
  modelValue: e(T),
434
436
  "onUpdate:modelValue": o[2] || (o[2] = (a) => b(T) ? T.value = a : null),
435
437
  label: e(l)("connect.store.giftCard.charset"),
436
- "max-length": e(_t)
438
+ "max-length": e(Ct)
437
439
  }, null, 8, ["modelValue", "label", "max-length"]),
438
440
  r(y, {
439
441
  modelValue: e(O),
440
442
  "onUpdate:modelValue": o[3] || (o[3] = (a) => b(O) ? O.value = a : null),
441
443
  label: e(l)("connect.store.giftCard.prefix"),
442
- "max-length": e(Fe)
444
+ "max-length": e(ke)
443
445
  }, null, 8, ["modelValue", "label", "max-length"]),
444
446
  r(y, {
445
447
  modelValue: e(X),
446
448
  "onUpdate:modelValue": o[4] || (o[4] = (a) => b(X) ? X.value = a : null),
447
449
  label: e(l)("connect.store.giftCard.suffix"),
448
- "max-length": e(Fe)
450
+ "max-length": e(ke)
449
451
  }, null, 8, ["modelValue", "label", "max-length"])
450
452
  ])) : g("", !0),
451
- e(le) ? (u(), m("div", eo, s(e(le)), 1)) : g("", !0),
452
- n("div", to, [
453
- n("div", oo, [
454
- n("span", no, s(e(l)("connect.store.giftCard.exampleNumber")), 1),
455
- n("span", lo, s(e(He)), 1)
453
+ e(le) ? (u(), m("div", to, s(e(le)), 1)) : g("", !0),
454
+ n("div", oo, [
455
+ n("div", no, [
456
+ n("span", lo, s(e(l)("connect.store.giftCard.exampleNumber")), 1),
457
+ n("span", ao, s(e(Xe)), 1)
456
458
  ]),
457
459
  r(c, {
458
460
  label: e(l)("connect.store.giftCard.regenerate"),
@@ -469,67 +471,67 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
469
471
  class: "p-24 flex flex-col gap-16"
470
472
  }, {
471
473
  default: P(() => [
472
- n("div", ao, [
474
+ n("div", so, [
473
475
  o[18] || (o[18] = 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)),
474
- n("div", so, [
475
- n("div", ro, s(e(l)("connect.store.giftCard.amount")), 1),
476
- n("div", co, s(e(l)("connect.store.giftCard.amountHint", {
476
+ n("div", ro, [
477
+ n("div", co, s(e(l)("connect.store.giftCard.amount")), 1),
478
+ n("div", io, s(e(l)("connect.store.giftCard.amountHint", {
477
479
  max: e(W)
478
480
  })), 1)
479
481
  ])
480
482
  ]),
481
- n("div", io, [
482
- n("div", uo, s(e(l)("connect.store.giftCard.popularAmounts")), 1),
483
- n("div", mo, [
484
- (u(!0), m(R, null, K(e(Oe), (a) => (u(), J(Ae, {
483
+ n("div", uo, [
484
+ n("div", mo, s(e(l)("connect.store.giftCard.popularAmounts")), 1),
485
+ n("div", fo, [
486
+ (u(!0), m(R, null, K(e(ze), (a) => (u(), J(De, {
485
487
  key: a.amount,
486
488
  label: `RM ${a.amount}`,
487
489
  selectable: !a.custom,
488
490
  removable: a.custom,
489
491
  selected: e(f).includes(a.amount),
490
492
  disabled: !a.custom && e(V) && !e(f).includes(a.amount),
491
- onClick: (i) => Xe(a),
492
- onChipClosed: (i) => xe(a.amount)
493
+ onClick: (i) => je(a),
494
+ onChipClosed: (i) => Ce(a.amount)
493
495
  }, null, 8, ["label", "selectable", "removable", "selected", "disabled", "onClick", "onChipClosed"]))), 128))
494
496
  ])
495
497
  ]),
496
- n("div", fo, [
497
- n("div", po, [
498
+ n("div", po, [
499
+ n("div", vo, [
498
500
  o[19] || (o[19] = 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)),
499
- st(n("input", {
501
+ it(n("input", {
500
502
  "onUpdate:modelValue": o[6] || (o[6] = (a) => b(k) ? k.value = a : null),
501
503
  type: "number",
502
504
  class: "px-12 py-8 outline-none fm-typo-en-body-md-400 w-[140px] disabled:bg-fm-color-neutral-gray-100",
503
505
  placeholder: e(l)("connect.store.giftCard.custom"),
504
506
  disabled: e(V),
505
- onKeyup: rt(Ce, ["enter"])
506
- }, null, 40, vo), [
507
- [ct, e(k)]
507
+ onKeyup: dt(he, ["enter"])
508
+ }, null, 40, go), [
509
+ [ut, e(k)]
508
510
  ])
509
511
  ]),
510
512
  r(c, {
511
513
  label: e(l)("connect.store.giftCard.addAmount"),
512
514
  variant: "secondary",
513
515
  disabled: e(V),
514
- onClick: Ce
516
+ onClick: he
515
517
  }, null, 8, ["label", "disabled"])
516
518
  ]),
517
- n("div", go, [
519
+ n("div", yo, [
518
520
  de(s(e(l)("connect.store.giftCard.selected")) + " ", 1),
519
- n("span", yo, s(e(f).length), 1),
521
+ n("span", bo, s(e(f).length), 1),
520
522
  de(" / " + s(e(W)), 1)
521
523
  ]),
522
- n("div", bo, [
523
- r(De, {
524
+ n("div", _o, [
525
+ r(Me, {
524
526
  modelValue: e(D),
525
527
  "onUpdate:modelValue": o[7] || (o[7] = (a) => b(D) ? D.value = a : null)
526
528
  }, null, 8, ["modelValue"]),
527
- n("div", _o, [
528
- n("div", xo, s(e(l)("connect.store.giftCard.anyAmount")), 1),
529
- n("div", Co, s(e(l)("connect.store.giftCard.anyAmountHint")), 1)
529
+ n("div", xo, [
530
+ n("div", Co, s(e(l)("connect.store.giftCard.anyAmount")), 1),
531
+ n("div", ho, s(e(l)("connect.store.giftCard.anyAmountHint")), 1)
530
532
  ])
531
533
  ]),
532
- e(D) ? (u(), m("div", ho, [
534
+ e(D) ? (u(), m("div", Ao, [
533
535
  r(y, {
534
536
  modelValue: e(w),
535
537
  "onUpdate:modelValue": o[8] || (o[8] = (a) => b(w) ? w.value = a : null),
@@ -546,7 +548,7 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
546
548
  class: "flex-1"
547
549
  }, null, 8, ["modelValue", "label", "helper-text"])
548
550
  ])) : g("", !0),
549
- e(ae) ? (u(), m("div", Ao, s(e(ae)), 1)) : g("", !0)
551
+ e(ae) ? (u(), m("div", Do, s(e(ae)), 1)) : g("", !0)
550
552
  ]),
551
553
  _: 1
552
554
  }),
@@ -557,82 +559,82 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
557
559
  default: P(() => {
558
560
  var a;
559
561
  return [
560
- n("div", Do, [
562
+ n("div", Mo, [
561
563
  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" }, " 5 ", -1)),
562
- n("div", Mo, [
563
- n("div", Eo, s(e(l)("connect.store.giftCard.sending")), 1),
564
- n("div", Fo, s(e(l)("connect.store.giftCard.sendingHint")), 1)
564
+ n("div", Eo, [
565
+ n("div", Fo, s(e(l)("connect.store.giftCard.sending")), 1),
566
+ n("div", To, s(e(l)("connect.store.giftCard.sendingHint")), 1)
565
567
  ])
566
568
  ]),
567
- e(ye) ? g("", !0) : (u(), m("div", To, [
569
+ e(ye) ? g("", !0) : (u(), m("div", ko, [
568
570
  r(I, {
569
571
  name: "info",
570
572
  class: "text-fm-color-system-info-400 flex-none"
571
573
  }),
572
- n("div", ko, s(e(l)("connect.store.giftCard.broadcastNotice")), 1),
574
+ n("div", wo, s(e(l)("connect.store.giftCard.broadcastNotice")), 1),
573
575
  r(c, {
574
576
  icon: "close",
575
577
  variant: "tertiary",
576
578
  onClick: o[10] || (o[10] = (i) => ye.value = !0)
577
579
  })
578
580
  ])),
579
- n("div", wo, [
580
- r(De, {
581
+ n("div", So, [
582
+ r(Me, {
581
583
  modelValue: e(B),
582
584
  "onUpdate:modelValue": o[11] || (o[11] = (i) => b(B) ? B.value = i : null)
583
585
  }, null, 8, ["modelValue"]),
584
- n("span", So, s(e(l)("connect.store.giftCard.personalMessage")), 1)
586
+ n("span", No, s(e(l)("connect.store.giftCard.personalMessage")), 1)
585
587
  ]),
586
- n("div", No, [
587
- n("div", Uo, s(e(l)("connect.store.giftCard.channels")), 1),
588
- n("div", Vo, s(e(l)("connect.store.giftCard.channelsHint")), 1),
589
- n("div", Io, [
590
- (u(!0), m(R, null, K(e(Z), (i) => (u(), J(ot, {
588
+ n("div", Uo, [
589
+ n("div", Vo, s(e(l)("connect.store.giftCard.channels")), 1),
590
+ n("div", Io, s(e(l)("connect.store.giftCard.channelsHint")), 1),
591
+ n("div", Po, [
592
+ (u(!0), m(R, null, K(e(Z), (i) => (u(), J(at, {
591
593
  key: i.value,
592
594
  value: i.value,
593
595
  label: i.label,
594
596
  "model-value": e(v).includes(i.value),
595
597
  disabled: !i.available && !e(v).includes(i.value),
596
- "onUpdate:modelValue": (Me) => Ie(i.value)
598
+ "onUpdate:modelValue": (Ee) => Le(i.value)
597
599
  }, null, 8, ["value", "label", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
598
600
  ]),
599
- e(be).length ? (u(), m("div", Po, [
601
+ e(_e).length ? (u(), m("div", Ro, [
600
602
  de(s(e(l)("connect.store.giftCard.channelUnavailable", {
601
- channels: e(be).join(", ")
603
+ channels: e(_e).join(", ")
602
604
  })) + " ", 1),
603
605
  n("a", {
604
- href: Ve,
606
+ href: Re,
605
607
  target: "_blank",
606
608
  rel: "noopener",
607
609
  class: "underline fm-typo-en-body-md-600 text-fm-color-primary"
608
610
  }, s(e(l)("connect.store.giftCard.channelConfigure")), 1)
609
611
  ])) : g("", !0),
610
- e(se) ? (u(), m("div", Ro, s(e(se)), 1)) : g("", !0)
612
+ e(se) ? (u(), m("div", Lo, s(e(se)), 1)) : g("", !0)
611
613
  ]),
612
614
  e(v).length ? (u(), m(R, { key: 1 }, [
613
- n("div", Lo, [
615
+ n("div", Go, [
614
616
  (u(!0), m(R, null, K(e(Z).filter(
615
617
  (i) => e(v).includes(i.value)
616
- ), (i) => (u(), J(Ae, {
618
+ ), (i) => (u(), J(De, {
617
619
  key: i.value,
618
620
  label: i.label,
619
621
  selectable: "",
620
622
  selected: e(M) === i.value,
621
- onClick: (Me) => M.value = i.value
623
+ onClick: (Ee) => M.value = i.value
622
624
  }, null, 8, ["label", "selected", "onClick"]))), 128))
623
625
  ]),
624
- n("div", Go, s(e(l)("connect.store.giftCard.deliveryMessage", {
626
+ n("div", Ho, s(e(l)("connect.store.giftCard.deliveryMessage", {
625
627
  channel: (a = e(Z).find(
626
628
  (i) => i.value === e(M)
627
629
  )) == null ? void 0 : a.label
628
630
  })), 1),
629
- r(ft, {
631
+ r(vt, {
630
632
  modelValue: e(oe),
631
633
  "onUpdate:modelValue": o[12] || (o[12] = (i) => b(oe) ? oe.value = i : null),
632
- variables: [...e(xt)],
633
- "preview-data": Ue
634
+ variables: [...e(ht)],
635
+ "preview-data": Pe
634
636
  }, null, 8, ["modelValue", "variables"]),
635
- e(re) ? (u(), m("div", Ho, s(e(re)), 1)) : g("", !0)
637
+ e(re) ? (u(), m("div", $o, s(e(re)), 1)) : g("", !0)
636
638
  ], 64)) : g("", !0)
637
639
  ];
638
640
  }),
@@ -643,21 +645,21 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
643
645
  class: "p-24 flex flex-col gap-16"
644
646
  }, {
645
647
  default: P(() => [
646
- n("div", $o, [
648
+ n("div", Oo, [
647
649
  o[21] || (o[21] = 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)),
648
- n("div", Oo, [
649
- n("div", Xo, s(e(l)("connect.store.giftCard.terms")), 1),
650
- n("div", Bo, s(e(l)("connect.store.giftCard.termsHint")), 1)
650
+ n("div", Xo, [
651
+ n("div", Bo, s(e(l)("connect.store.giftCard.terms")), 1),
652
+ n("div", zo, s(e(l)("connect.store.giftCard.termsHint")), 1)
651
653
  ])
652
654
  ]),
653
- n("div", zo, [
655
+ n("div", jo, [
654
656
  n("input", {
655
657
  ref_key: "termsInput",
656
- ref: _e,
658
+ ref: xe,
657
659
  type: "file",
658
660
  accept: ".pdf",
659
661
  class: "hidden",
660
- onChange: qe
662
+ onChange: et
661
663
  }, null, 544),
662
664
  r(c, {
663
665
  label: e(l)("connect.store.giftCard.enterText"),
@@ -675,43 +677,43 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
675
677
  class: Y(
676
678
  e(_) === "DOCUMENT" ? "border-fm-color-primary text-fm-color-primary" : ""
677
679
  ),
678
- onClick: Ze
680
+ onClick: Qe
679
681
  }, null, 8, ["label", "class"])
680
682
  ]),
681
- n("div", jo, s(e(l)("connect.store.giftCard.uploadDocumentHint")), 1),
682
- e(_) === "TEXT" ? (u(), J(nt, {
683
+ n("div", Jo, s(e(l)("connect.store.giftCard.uploadDocumentHint")), 1),
684
+ e(_) === "TEXT" ? (u(), J(st, {
683
685
  key: 0,
684
686
  modelValue: e(z),
685
687
  "onUpdate:modelValue": o[14] || (o[14] = (a) => b(z) ? z.value = a : null),
686
688
  rows: 5,
687
689
  placeholder: e(l)("connect.store.giftCard.termsPlaceholder")
688
- }, null, 8, ["modelValue", "placeholder"])) : e(_) === "DOCUMENT" && e(U) ? (u(), m("div", Jo, [
689
- n("span", Ko, [
690
+ }, null, 8, ["modelValue", "placeholder"])) : e(_) === "DOCUMENT" && e(U) ? (u(), m("div", Ko, [
691
+ n("span", Wo, [
690
692
  r(I, {
691
693
  name: "description",
692
694
  class: "text-fm-color-typo-secondary"
693
695
  })
694
696
  ]),
695
- n("div", Wo, [
697
+ n("div", Zo, [
696
698
  n("a", {
697
699
  href: e(U),
698
700
  target: "_blank",
699
701
  rel: "noopener",
700
702
  class: "block fm-typo-en-body-md-600 truncate"
701
- }, s(e(Le)), 9, Zo),
702
- e(j) ? (u(), m("div", qo, s(Ge(e(j).size)) + " · " + s(e(l)("connect.store.giftCard.termsUploadedJustNow")), 1)) : g("", !0)
703
+ }, s(e($e)), 9, qo),
704
+ e(j) ? (u(), m("div", Yo, s(Oe(e(j).size)) + " · " + s(e(l)("connect.store.giftCard.termsUploadedJustNow")), 1)) : g("", !0)
703
705
  ]),
704
706
  r(c, {
705
707
  icon: "delete",
706
708
  variant: "tertiary",
707
709
  "aria-label": e(l)("connect.common.remove"),
708
- onClick: Ye
710
+ onClick: tt
709
711
  }, null, 8, ["aria-label"])
710
712
  ])) : g("", !0)
711
713
  ]),
712
714
  _: 1
713
715
  }),
714
- n("div", Yo, [
716
+ n("div", Qo, [
715
717
  r(c, {
716
718
  label: e(l)("connect.common.cancel"),
717
719
  variant: "tertiary",
@@ -719,9 +721,9 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
719
721
  }, null, 8, ["label"]),
720
722
  r(c, {
721
723
  label: e(H) ? e(l)("connect.common.save") : e(l)("connect.store.giftCard.addGiftCard"),
722
- loading: e(dt)().isLoading,
724
+ loading: e(ft)().isLoading,
723
725
  disabled: !!e(ce),
724
- onClick: et
726
+ onClick: nt
725
727
  }, null, 8, ["label", "loading", "disabled"])
726
728
  ])
727
729
  ])
@@ -730,5 +732,5 @@ const Et = { class: "px-24 pb-40" }, Ft = { class: "flex items-start gap-12 py-2
730
732
  }
731
733
  });
732
734
  export {
733
- gn as default
735
+ yn as default
734
736
  };