@feedmepos/mf-connect 0.1.98-beta.67 → 0.1.98-beta.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BSev7h5h.js → App-C8R4gAPJ.js} +8 -8
- package/dist/{AuditLogs-DeAlB7jJ.js → AuditLogs-j94Fb_Cl.js} +11 -11
- package/dist/{Bin-DVjlBYHA.js → Bin-CpFrEnjY.js} +8 -8
- package/dist/{Broadcast-BbI01idN.js → Broadcast-fBU3lP9R.js} +11 -11
- package/dist/{CampaignAnalytic-DLua9bnk.js → CampaignAnalytic-sF1EevSu.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BrLZYx65.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwNGrw8m.js} +6 -6
- package/dist/{Card-CXmIDEWx.js → Card-ptmYoRqh.js} +21 -21
- package/dist/{Collections-CJrEprz_.js → Collections-2Qi09T6w.js} +8 -8
- package/dist/{Credit-C6wBp6uU.js → Credit-CKN7P3CE.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-UrdGjhUi.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Den2QXQK.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BG9D3F4H.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bv57OWve.js} +35 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DSYTcCUw.js → EffectSheet.vue_vue_type_style_index_0_lang-BI62I5Rc.js} +6 -6
- package/dist/{Experience-BBpp7fol.js → Experience-RfA7aQR5.js} +12 -12
- package/dist/{FileSaver.min-8iG7SnPC.js → FileSaver.min-WkbFq642.js} +1 -1
- package/dist/{Game-g-w7u2yx.js → Game-D6mGws0G.js} +13 -13
- package/dist/{GiftCardSetup-CH7TErmR.js → GiftCardSetup-puaT6Cxn.js} +193 -191
- package/dist/{Grab-C2kR_R20.js → Grab-CY5UfE9H.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CtZnT23g.js → ImageInput.vue_vue_type_script_setup_true_lang-CdD_Rg8v.js} +1 -1
- package/dist/{Index-C8qjv_-U.js → Index-CPU3B6Cc.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BKC1fy9_.js → LocationPicker.vue_vue_type_script_setup_true_lang-CRHD-P3p.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BVLD4gvt.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Du4PnjmO.js} +1 -1
- package/dist/{LoyaltyDashboard-8k50en91.js → LoyaltyDashboard-Ch9SyBi9.js} +13 -13
- package/dist/{MainLayout-TeVUFA9q.js → MainLayout-Ch5IdeRe.js} +3 -3
- package/dist/{Marketing-J991msMm.js → Marketing-HIBKUVH6.js} +4 -4
- package/dist/{MarketingMaterialEdit-DAoAumQY.js → MarketingMaterialEdit-nulwDpz-.js} +6 -6
- package/dist/{Member-CNZ_0ILJ.js → Member-DOMD0vYk.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-Cc3HniMJ.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DBP5lyqH.js} +23 -23
- package/dist/{MemberImportHistory-Dv-oxNaB.js → MemberImportHistory-CmvdCA4r.js} +7 -7
- package/dist/{MemberList-DIftEwpi.js → MemberList-kCvn0Ox5.js} +14 -14
- package/dist/{MemberTransactions-CLM8Dfnw.js → MemberTransactions-BZip5ZjK.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BhtSy-i_.js → MessageInput.vue_vue_type_script_setup_true_lang-CBpLAsMs.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BhRIG5Sb.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-ClIHJYRH.js} +1 -1
- package/dist/{Mission-BFPp5W38.js → Mission-CBaO_oPC.js} +13 -13
- package/dist/{Overview-CYxji5bG.js → Overview-CMyo4PkW.js} +19 -19
- package/dist/{Overview-nh5EBZWQ.js → Overview-D80aoCWJ.js} +4 -4
- package/dist/{Point-zrXRlJBE.js → Point-Cm5wkSKS.js} +12 -12
- package/dist/{Promotion-CJOmHUUE.js → Promotion-CI-nAziE.js} +13 -13
- package/dist/{Queue-2nn-uJml.js → Queue-S-C-qJqC.js} +11 -11
- package/dist/{Record-1keVaDI0.js → Record-DLShE52z.js} +9 -9
- package/dist/{Review-Bh78oO8W.js → Review-DRJry1sV.js} +2 -2
- package/dist/{ReviewFacebookCallback-pgVpv6Rz.js → ReviewFacebookCallback-CGligjEJ.js} +5 -5
- package/dist/{ReviewGoogleCallback--t-5fBRo.js → ReviewGoogleCallback-Dd0xDoW8.js} +5 -5
- package/dist/{Reward-BDLRE4Ty.js → Reward-B4j3B-Kl.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C6MnG83y.js → RewardGroup.vue_vue_type_script_setup_true_lang-Bdp71wHD.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-ClVcFvYb.js → RuleGroup.vue_vue_type_script_setup_true_lang-By3TF33b.js} +13 -13
- package/dist/{Segment-g1uo_rdU.js → Segment-qpQ_N0sj.js} +24 -24
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BW6lP_bM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BglJGLFP.js} +13 -13
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Dtq7WzFQ.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DhhXblf0.js} +4 -4
- package/dist/{Setting-DEndwisq.js → Setting-DyXjnfN-.js} +14 -14
- package/dist/{SettingAdvertisements-CWDzsn2m.js → SettingAdvertisements-CECela_p.js} +12 -12
- package/dist/{Settings-D7mPuTyg.js → Settings-Er_e5mMH.js} +5 -5
- package/dist/{Store-BLTx3yC4.js → Store-BUrvY3FI.js} +25 -25
- package/dist/{StoreRewards-B3ku_1XV.js → StoreRewards-DQqCEUlR.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-EypHnz-D.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CPopjf1L.js} +24 -24
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BDPcr_0_.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C6rth9ZG.js} +2 -2
- package/dist/{Tier-HbcNZUPQ.js → Tier-B4KDa38d.js} +24 -24
- package/dist/{Title-M0r9f4da.js → Title-DXdR7ja5.js} +21 -21
- package/dist/{Transaction-CPtRweMn.js → Transaction-CvBlcbF7.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DozDy5mg.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CEmMivq9.js} +6 -6
- package/dist/{Voucher-CWHQl9v6.js → Voucher-B14FbFsZ.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CzqRhz3w.js → VoucherEditor.vue_vue_type_script_setup_true_lang-D7ct9Lvu.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DpglwR2d.js → ZodTextField.vue_vue_type_script_setup_true_lang-D6MiDkQc.js} +2 -2
- package/dist/{app-Msk98KJg.js → app-CoqqIDQ3.js} +162 -162
- package/dist/app.js +1 -1
- package/dist/{base.export-CoamCPN5.js → base.export-DqEcPcVG.js} +2 -2
- package/dist/{business-BucV5x26.js → business-BVKDfmTr.js} +1 -1
- package/dist/{campaign-iVpaTK-0.js → campaign-Da7--J1A.js} +2 -2
- package/dist/{campaign-CzXbdwtP.js → campaign-MxlP6zy5.js} +9 -9
- package/dist/{campaign.enum-CP4mlX7i.js → campaign.enum-BJGwIqnr.js} +1 -1
- package/dist/{campaign.fn-DEZEgo-y.js → campaign.fn-BGJv7UgV.js} +3 -3
- package/dist/{collectible.enum-BXTBO2A6.js → collectible.enum-DoPI9HTW.js} +1 -1
- package/dist/{collection.fn-DHXq98H2.js → collection.fn-BGC-CX3p.js} +2 -2
- package/dist/{currency-CqAHuPrF.js → currency-_6BCBk43.js} +1 -1
- package/dist/{duplicateCampaign-f7qa0gjH.js → duplicateCampaign-D5unmBYk.js} +2 -2
- package/dist/{effect-COCNlAdD.js → effect-wC3ZohvD.js} +1 -1
- package/dist/{email-addresses-D_2IsXxB.js → email-addresses-B5kmcVv4.js} +2 -2
- package/dist/{helper-Bx3UdnpF.js → helper-BmZ6rhHv.js} +1 -1
- package/dist/{index-BI06mIEd.js → index-BEGcYfI1.js} +1 -1
- package/dist/{index-Chkm-r8k.js → index-BnAA5GpH.js} +3 -3
- package/dist/{index-4jnmRY1-.js → index-Bwa_8gRc.js} +7 -7
- package/dist/{index-C0TwA_Wh.js → index-C24wjLJJ.js} +7 -7
- package/dist/{index-BqmcwjlW.js → index-C8hPuGW1.js} +1 -1
- package/dist/{index-Ch7pRizF.js → index-CAa8UDmo.js} +1 -1
- package/dist/{index-gLWU_GM_.js → index-CetswdiD.js} +1 -1
- package/dist/{index-CkiypoZB.js → index-Ctoy9OUa.js} +1 -1
- package/dist/{index-J6iyiSef.js → index-CvWWuwF1.js} +3 -3
- package/dist/{index-BC84wkyE.js → index-CxAAIVWe.js} +2 -2
- package/dist/{index-nvJwwmuv.js → index-CxXSreSU.js} +1 -1
- package/dist/{index-zmTCGR0q.js → index-D-a-FNw6.js} +3 -3
- package/dist/{index-BQq-p2et.js → index-D8ABsXrh.js} +2 -2
- package/dist/{index-D_zKtME6.js → index-DfLgRlV3.js} +4 -4
- package/dist/{index-wq_lfdmr.js → index-Dm9asJIh.js} +3 -3
- package/dist/{index-CZb4b_1X.js → index-DoS4rnIq.js} +5 -5
- package/dist/{index-DVIxIjkI.js → index-y7EaVFEs.js} +99 -91
- package/dist/{index-DhFw6JEp.js → index-znrauISZ.js} +2 -2
- package/dist/{index.esm2017-BK-m1mf7.js → index.esm2017-Db68QPII.js} +1 -1
- package/dist/{loading-CrPN7IBD.js → loading-DAvs1Kcr.js} +1 -1
- package/dist/{lodash-Cq86LJZW.js → lodash-_fG26-Oo.js} +1 -1
- package/dist/{member-import-CqguFqZB.js → member-import-DTDMjlBF.js} +1 -1
- package/dist/{membership-5mxt-mKd.js → membership-DDchFhxy.js} +3 -3
- package/dist/{money-1Uscav6q.js → money-ZXFxZSd8.js} +1 -1
- package/dist/{number-D-SQ4YfT.js → number-D3iyKj4S.js} +1 -1
- package/dist/{objectid-Dv1v2_OS.js → objectid-BZWneRxN.js} +2 -2
- package/dist/{plugins-8dMylfLG.js → plugins-BULEC3m-.js} +3 -3
- package/dist/{reward-lh_oH4Qz.js → reward-Zzo07ZUZ.js} +1 -1
- package/dist/{rule-qyNmecW-.js → rule-DafCREnD.js} +8 -8
- package/dist/{template-Bzh-c8hF.js → template-DJ_At0vS.js} +6 -6
- package/dist/{timezone-BftWdnuB.js → timezone-CqDQkIzR.js} +1 -1
- package/dist/{transaction.fn-14_FN92e.js → transaction.fn-D6R7Elvk.js} +1 -1
- package/dist/{trigger-DDp0mcTt.js → trigger-DegZcxza.js} +5 -5
- package/dist/{useMarketingMaterialActions-CbQrS_zG.js → useMarketingMaterialActions-CHpaUSA5.js} +3 -3
- package/dist/{usePagination-B8IZs26_.js → usePagination-CrXA9VeI.js} +1 -1
- package/dist/{user-DURi-ne2.js → user-B-r3liHf.js} +1 -1
- package/dist/{vue-i18n-CXLriG-n.js → vue-i18n-CJaAc0Dm.js} +2 -2
- package/dist/{xlsx-1GEVBJpx.js → xlsx-CjOaxmU4.js} +1 -1
- package/dist/{zod-DsZUBW2Y.js → zod-CJ5R-AQU.js} +1 -1
- package/package.json +1 -1
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { n as E, f as L } from "./plugins-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { g as ue } from "./index-
|
|
7
|
-
import { c as
|
|
8
|
-
import { S as
|
|
9
|
-
import { a as
|
|
10
|
-
import { J as
|
|
11
|
-
import { r as Q, s as
|
|
12
|
-
import { u as
|
|
13
|
-
import { useRouter as
|
|
14
|
-
import { R as
|
|
15
|
-
var
|
|
16
|
-
const
|
|
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-DAvs1Kcr.js";
|
|
3
|
+
import { u as ft } from "./app-wDQR6dpb.js";
|
|
4
|
+
import { n as E, f as L } from "./plugins-BULEC3m-.js";
|
|
5
|
+
import "./index-CxXSreSU.js";
|
|
6
|
+
import { g as ue } from "./index-Ctoy9OUa.js";
|
|
7
|
+
import { c as pt } from "./index-znrauISZ.js";
|
|
8
|
+
import { S as Fe } from "./index-D8ABsXrh.js";
|
|
9
|
+
import { a as vt } from "./MessageInput.vue_vue_type_script_setup_true_lang-CBpLAsMs.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-y7EaVFEs.js";
|
|
12
|
+
import { u as At } from "./vue-i18n-CJaAc0Dm.js";
|
|
13
|
+
import { useRouter as Dt, useRoute as Mt } from "vue-router";
|
|
14
|
+
import { R as Et } from "./app-CoqqIDQ3.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
|
-
},
|
|
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
|
-
},
|
|
22
|
+
}, to = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
|
|
25
|
-
},
|
|
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
|
-
},
|
|
28
|
+
}, Do = {
|
|
29
29
|
key: 1,
|
|
30
30
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
|
|
31
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
37
|
+
}, Lo = {
|
|
38
38
|
key: 1,
|
|
39
39
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
|
|
40
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
52
|
-
const { t: l } =
|
|
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(),
|
|
55
|
-
|
|
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
|
-
}),
|
|
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: {
|
|
83
|
-
|
|
82
|
+
business: {
|
|
83
|
+
name: "Kopi Haus"
|
|
84
|
+
}
|
|
85
|
+
}, _e = p(
|
|
84
86
|
() => Z.value.filter((t) => !t.available).map((t) => t.label)
|
|
85
|
-
),
|
|
86
|
-
function
|
|
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
|
|
94
|
+
async function Ge() {
|
|
93
95
|
try {
|
|
94
|
-
te.value = await
|
|
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(""),
|
|
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
|
|
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
|
-
),
|
|
117
|
-
() =>
|
|
118
|
+
), Xe = p(() => (ve.value, yt(ne.value))), Be = p(
|
|
119
|
+
() => bt(T.value) ?? 1
|
|
118
120
|
), le = p(
|
|
119
|
-
() => A.value === "ADVANCED" ?
|
|
121
|
+
() => A.value === "ADVANCED" ? _t(ne.value) : null
|
|
120
122
|
), V = p(
|
|
121
123
|
() => f.value.length >= W
|
|
122
|
-
),
|
|
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
|
|
127
|
-
t.custom || !f.value.includes(t.amount) && V.value ||
|
|
128
|
+
function je(t) {
|
|
129
|
+
t.custom || !f.value.includes(t.amount) && V.value || Ce(t.amount);
|
|
128
130
|
}
|
|
129
|
-
function
|
|
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
|
|
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),
|
|
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
|
-
() =>
|
|
187
|
+
() => Je.value ?? le.value ?? ae.value ?? se.value ?? re.value
|
|
186
188
|
);
|
|
187
|
-
async function
|
|
188
|
-
|
|
189
|
+
async function Ke(t) {
|
|
190
|
+
Ze(t) && await ee(
|
|
189
191
|
async () => {
|
|
190
|
-
const o = await
|
|
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
|
|
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
|
|
206
|
-
const o =
|
|
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
|
|
210
|
-
h.value = h.value.filter((o) => o !== t), await
|
|
211
|
+
async function qe(t) {
|
|
212
|
+
h.value = h.value.filter((o) => o !== t), await Ye(t);
|
|
211
213
|
}
|
|
212
|
-
async function
|
|
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
|
|
224
|
+
function Qe() {
|
|
223
225
|
var t;
|
|
224
|
-
(t =
|
|
226
|
+
(t = xe.value) == null || t.click();
|
|
225
227
|
}
|
|
226
|
-
async function
|
|
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 (!
|
|
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
|
|
250
|
+
function tt() {
|
|
249
251
|
U.value = "", j.value = null, _.value = "NONE";
|
|
250
252
|
}
|
|
251
|
-
function
|
|
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
|
|
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 ??
|
|
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
|
-
|
|
280
|
+
Ue.push({ name: Et["$connect-STORE"] });
|
|
279
281
|
}
|
|
280
|
-
async function
|
|
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 =
|
|
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
|
|
299
|
-
await
|
|
300
|
-
await
|
|
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"),
|
|
304
|
-
return u(), m("div",
|
|
305
|
-
e(H) ? (u(), J(
|
|
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:
|
|
309
|
+
json: Ae()
|
|
308
310
|
}, null, 8, ["json"])) : g("", !0),
|
|
309
|
-
n("div",
|
|
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",
|
|
316
|
-
n("h1",
|
|
317
|
-
n("p",
|
|
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",
|
|
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",
|
|
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",
|
|
329
|
-
n("div",
|
|
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",
|
|
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",
|
|
348
|
-
n("div",
|
|
349
|
-
n("div",
|
|
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",
|
|
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,
|
|
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: (
|
|
369
|
+
onClick: (Ee) => qe(a)
|
|
368
370
|
}, [
|
|
369
371
|
r(I, {
|
|
370
372
|
name: "close",
|
|
371
373
|
size: "sm"
|
|
372
374
|
})
|
|
373
|
-
], 8,
|
|
374
|
-
n("span",
|
|
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":
|
|
380
|
+
"max-file-size": Se,
|
|
379
381
|
"content-class": "w-[179px] h-[115px]",
|
|
380
|
-
onFileUpload:
|
|
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",
|
|
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",
|
|
394
|
-
n("div",
|
|
395
|
-
n("div",
|
|
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",
|
|
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",
|
|
416
|
+
e(A) === a ? (u(), m("span", Zt)) : g("", !0)
|
|
415
417
|
], 2),
|
|
416
|
-
n("span",
|
|
417
|
-
n("span",
|
|
418
|
-
n("span",
|
|
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,
|
|
422
|
+
], 10, Wt)), 64))
|
|
421
423
|
]),
|
|
422
|
-
e(A) === "ADVANCED" ? (u(), m("div",
|
|
423
|
-
r(
|
|
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(
|
|
429
|
-
max: e(
|
|
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(
|
|
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(
|
|
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(
|
|
450
|
+
"max-length": e(ke)
|
|
449
451
|
}, null, 8, ["modelValue", "label", "max-length"])
|
|
450
452
|
])) : g("", !0),
|
|
451
|
-
e(le) ? (u(), m("div",
|
|
452
|
-
n("div",
|
|
453
|
-
n("div",
|
|
454
|
-
n("span",
|
|
455
|
-
n("span",
|
|
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",
|
|
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",
|
|
475
|
-
n("div",
|
|
476
|
-
n("div",
|
|
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",
|
|
482
|
-
n("div",
|
|
483
|
-
n("div",
|
|
484
|
-
(u(!0), m(R, null, K(e(
|
|
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) =>
|
|
492
|
-
onChipClosed: (i) =>
|
|
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",
|
|
497
|
-
n("div",
|
|
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
|
-
|
|
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:
|
|
506
|
-
}, null, 40,
|
|
507
|
-
[
|
|
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:
|
|
516
|
+
onClick: he
|
|
515
517
|
}, null, 8, ["label", "disabled"])
|
|
516
518
|
]),
|
|
517
|
-
n("div",
|
|
519
|
+
n("div", yo, [
|
|
518
520
|
de(s(e(l)("connect.store.giftCard.selected")) + " ", 1),
|
|
519
|
-
n("span",
|
|
521
|
+
n("span", bo, s(e(f).length), 1),
|
|
520
522
|
de(" / " + s(e(W)), 1)
|
|
521
523
|
]),
|
|
522
|
-
n("div",
|
|
523
|
-
r(
|
|
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",
|
|
528
|
-
n("div",
|
|
529
|
-
n("div",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
563
|
-
n("div",
|
|
564
|
-
n("div",
|
|
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",
|
|
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",
|
|
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",
|
|
580
|
-
r(
|
|
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",
|
|
586
|
+
n("span", No, s(e(l)("connect.store.giftCard.personalMessage")), 1)
|
|
585
587
|
]),
|
|
586
|
-
n("div",
|
|
587
|
-
n("div",
|
|
588
|
-
n("div",
|
|
589
|
-
n("div",
|
|
590
|
-
(u(!0), m(R, null, K(e(Z), (i) => (u(), J(
|
|
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": (
|
|
598
|
+
"onUpdate:modelValue": (Ee) => Le(i.value)
|
|
597
599
|
}, null, 8, ["value", "label", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
|
|
598
600
|
]),
|
|
599
|
-
e(
|
|
601
|
+
e(_e).length ? (u(), m("div", Ro, [
|
|
600
602
|
de(s(e(l)("connect.store.giftCard.channelUnavailable", {
|
|
601
|
-
channels: e(
|
|
603
|
+
channels: e(_e).join(", ")
|
|
602
604
|
})) + " ", 1),
|
|
603
605
|
n("a", {
|
|
604
|
-
href:
|
|
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",
|
|
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",
|
|
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(
|
|
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: (
|
|
623
|
+
onClick: (Ee) => M.value = i.value
|
|
622
624
|
}, null, 8, ["label", "selected", "onClick"]))), 128))
|
|
623
625
|
]),
|
|
624
|
-
n("div",
|
|
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(
|
|
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(
|
|
633
|
-
"preview-data":
|
|
634
|
+
variables: [...e(ht)],
|
|
635
|
+
"preview-data": Pe
|
|
634
636
|
}, null, 8, ["modelValue", "variables"]),
|
|
635
|
-
e(re) ? (u(), m("div",
|
|
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",
|
|
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",
|
|
649
|
-
n("div",
|
|
650
|
-
n("div",
|
|
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",
|
|
655
|
+
n("div", jo, [
|
|
654
656
|
n("input", {
|
|
655
657
|
ref_key: "termsInput",
|
|
656
|
-
ref:
|
|
658
|
+
ref: xe,
|
|
657
659
|
type: "file",
|
|
658
660
|
accept: ".pdf",
|
|
659
661
|
class: "hidden",
|
|
660
|
-
onChange:
|
|
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:
|
|
680
|
+
onClick: Qe
|
|
679
681
|
}, null, 8, ["label", "class"])
|
|
680
682
|
]),
|
|
681
|
-
n("div",
|
|
682
|
-
e(_) === "TEXT" ? (u(), J(
|
|
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",
|
|
689
|
-
n("span",
|
|
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",
|
|
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(
|
|
702
|
-
e(j) ? (u(), m("div",
|
|
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:
|
|
710
|
+
onClick: tt
|
|
709
711
|
}, null, 8, ["aria-label"])
|
|
710
712
|
])) : g("", !0)
|
|
711
713
|
]),
|
|
712
714
|
_: 1
|
|
713
715
|
}),
|
|
714
|
-
n("div",
|
|
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(
|
|
724
|
+
loading: e(ft)().isLoading,
|
|
723
725
|
disabled: !!e(ce),
|
|
724
|
-
onClick:
|
|
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
|
-
|
|
735
|
+
yn as default
|
|
734
736
|
};
|