@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.
- package/dist/{App-BSev7h5h.js → App-BiKMxixG.js} +8 -8
- package/dist/{AuditLogs-DeAlB7jJ.js → AuditLogs-hcUTD8r2.js} +11 -11
- package/dist/{Bin-DVjlBYHA.js → Bin-BEIYu4Wb.js} +8 -8
- package/dist/{Broadcast-BbI01idN.js → Broadcast-CdsOnoex.js} +11 -11
- package/dist/{CampaignAnalytic-DLua9bnk.js → CampaignAnalytic-tfJk4uHv.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BrLZYx65.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DCfa5b54.js} +6 -6
- package/dist/{Card-CXmIDEWx.js → Card-DD2E58eg.js} +21 -21
- package/dist/{Collections-CJrEprz_.js → Collections-BJ3-qcPo.js} +8 -8
- package/dist/{Credit-C6wBp6uU.js → Credit-CaNsiUeh.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-UrdGjhUi.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BYl60g2P.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BG9D3F4H.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CVnXbrDQ.js} +35 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DSYTcCUw.js → EffectSheet.vue_vue_type_style_index_0_lang-C6j2U0CU.js} +6 -6
- package/dist/{Experience-BBpp7fol.js → Experience-WVRmN3BW.js} +12 -12
- package/dist/{FileSaver.min-8iG7SnPC.js → FileSaver.min-B0P2vo_g.js} +1 -1
- package/dist/{Game-g-w7u2yx.js → Game-B72C_2ZX.js} +13 -13
- package/dist/{GiftCardSetup-CH7TErmR.js → GiftCardSetup-BXrBTdxF.js} +193 -191
- package/dist/{Grab-C2kR_R20.js → Grab-DkkVMS8x.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CtZnT23g.js → ImageInput.vue_vue_type_script_setup_true_lang-DOz5RTkO.js} +1 -1
- package/dist/{Index-C8qjv_-U.js → Index-CsTSWAqg.js} +10 -10
- 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
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BVLD4gvt.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CDy7s43a.js} +1 -1
- package/dist/{LoyaltyDashboard-8k50en91.js → LoyaltyDashboard-Cv1bGSmQ.js} +13 -13
- package/dist/{MainLayout-TeVUFA9q.js → MainLayout-fHF57JEF.js} +3 -3
- package/dist/{Marketing-J991msMm.js → Marketing-DSR9Ltbm.js} +4 -4
- package/dist/{MarketingMaterialEdit-DAoAumQY.js → MarketingMaterialEdit-DPiuYUe2.js} +6 -6
- package/dist/{Member-CNZ_0ILJ.js → Member-DS0JP4GM.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-Cc3HniMJ.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Pf9idXlV.js} +23 -31
- package/dist/{MemberImportHistory-Dv-oxNaB.js → MemberImportHistory-DhWnUZlE.js} +7 -7
- package/dist/MemberList-BxVGAat6.js +334 -0
- package/dist/{MemberTransactions-CLM8Dfnw.js → MemberTransactions-Brwauef3.js} +1 -1
- 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
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BhRIG5Sb.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-pUeLVYJs.js} +1 -1
- package/dist/{Mission-BFPp5W38.js → Mission-BU_Broks.js} +13 -13
- package/dist/{Overview-CYxji5bG.js → Overview-BCb7SrPX.js} +19 -19
- package/dist/{Overview-nh5EBZWQ.js → Overview-Nx3E9gxA.js} +4 -4
- package/dist/{Point-zrXRlJBE.js → Point-DxHE0zpA.js} +12 -12
- package/dist/{Promotion-CJOmHUUE.js → Promotion-DkXyrAWE.js} +13 -13
- package/dist/{Queue-2nn-uJml.js → Queue-DcqW6gFI.js} +11 -11
- package/dist/{Record-1keVaDI0.js → Record-T7-Qn-BL.js} +9 -9
- package/dist/{Review-Bh78oO8W.js → Review-C0ORLjPk.js} +2 -2
- package/dist/{ReviewFacebookCallback-pgVpv6Rz.js → ReviewFacebookCallback-BamFJii5.js} +5 -5
- package/dist/{ReviewGoogleCallback--t-5fBRo.js → ReviewGoogleCallback-BbogEq-S.js} +5 -5
- package/dist/{Reward-BDLRE4Ty.js → Reward-Bs3PlUm1.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C6MnG83y.js → RewardGroup.vue_vue_type_script_setup_true_lang-bt1XYaTg.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-ClVcFvYb.js → RuleGroup.vue_vue_type_script_setup_true_lang-BIhuiOQp.js} +226 -210
- package/dist/{Segment-g1uo_rdU.js → Segment-ByHZvxzf.js} +275 -277
- 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
- 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
- package/dist/{Setting-DEndwisq.js → Setting-CDDQh6Km.js} +14 -14
- package/dist/{SettingAdvertisements-CWDzsn2m.js → SettingAdvertisements-vNfSi0PM.js} +12 -12
- package/dist/{Settings-D7mPuTyg.js → Settings-Dr9vVMqi.js} +5 -5
- package/dist/{Store-BLTx3yC4.js → Store-6jIdhWvV.js} +25 -25
- package/dist/{StoreRewards-B3ku_1XV.js → StoreRewards-Bi-vUQa8.js} +15 -15
- 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
- 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
- package/dist/{Tier-HbcNZUPQ.js → Tier-DQxy11b5.js} +1418 -1299
- package/dist/{Title-M0r9f4da.js → Title-BrYUm3dJ.js} +21 -21
- package/dist/{Transaction-CPtRweMn.js → Transaction-BKaL8ft5.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DozDy5mg.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DO6LZkqJ.js} +6 -6
- package/dist/{Voucher-CWHQl9v6.js → Voucher-fevudt4N.js} +14 -14
- 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
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DpglwR2d.js → ZodTextField.vue_vue_type_script_setup_true_lang-CeOuczNX.js} +2 -2
- package/dist/{app-Msk98KJg.js → app-BTQMPUaZ.js} +167 -167
- package/dist/app.js +1 -1
- package/dist/{base.export-CoamCPN5.js → base.export-BvF6HW_b.js} +2 -2
- package/dist/{business-BucV5x26.js → business-1bynM2S3.js} +1 -1
- package/dist/{campaign-iVpaTK-0.js → campaign-61jHDGE4.js} +2 -2
- package/dist/{campaign-CzXbdwtP.js → campaign-x2kSthOl.js} +9 -9
- package/dist/{campaign.enum-CP4mlX7i.js → campaign.enum-DPKrl7Yi.js} +1 -1
- package/dist/{campaign.fn-DEZEgo-y.js → campaign.fn-DVkjEyJa.js} +37 -37
- package/dist/{collectible.enum-BXTBO2A6.js → collectible.enum-C-25_MsY.js} +1 -1
- package/dist/{collection.fn-DHXq98H2.js → collection.fn-CTN43Pnh.js} +2 -2
- package/dist/{currency-CqAHuPrF.js → currency-CPD7bsCi.js} +1 -1
- package/dist/{duplicateCampaign-f7qa0gjH.js → duplicateCampaign-BDFXsGKJ.js} +2 -2
- package/dist/{effect-COCNlAdD.js → effect-Dm8vqK1h.js} +1 -1
- package/dist/{email-addresses-D_2IsXxB.js → email-addresses-DW8Sb8Cs.js} +2 -2
- package/dist/{helper-Bx3UdnpF.js → helper-CCZQK8H8.js} +1 -1
- package/dist/{index-BC84wkyE.js → index-B0E21F7i.js} +2 -2
- package/dist/{index-nvJwwmuv.js → index-B9nAyvGU.js} +1 -1
- package/dist/{index-DhFw6JEp.js → index-BG6_axTA.js} +2 -2
- package/dist/{index-BQq-p2et.js → index-BHJFHHKZ.js} +2 -2
- package/dist/{index-BqmcwjlW.js → index-BdIWlpWJ.js} +1 -1
- package/dist/{index-Chkm-r8k.js → index-C8LcgPDt.js} +8 -8
- package/dist/{index-D_zKtME6.js → index-CN7lBDQn.js} +4 -4
- package/dist/{index-J6iyiSef.js → index-Cj_YiRca.js} +3 -3
- package/dist/{index-gLWU_GM_.js → index-CqOxyfYn.js} +1 -1
- package/dist/{index-CZb4b_1X.js → index-D-mVW2R4.js} +5 -5
- package/dist/{index-wq_lfdmr.js → index-D5th1Ref.js} +3 -3
- package/dist/{index-Ch7pRizF.js → index-DADAdGcF.js} +1 -1
- package/dist/{index-C0TwA_Wh.js → index-Dpfl5fwR.js} +7 -7
- package/dist/{index-zmTCGR0q.js → index-Ru-8vt_3.js} +5 -5
- package/dist/{index-BI06mIEd.js → index-WMXL77u3.js} +1 -1
- package/dist/{index-4jnmRY1-.js → index-elefz7dV.js} +7 -7
- package/dist/{index-DVIxIjkI.js → index-irwaz38u.js} +99 -91
- package/dist/{index-CkiypoZB.js → index-pNqNL1yL.js} +1 -1
- package/dist/{index.esm2017-BK-m1mf7.js → index.esm2017-BFkcep8i.js} +37 -37
- package/dist/{loading-CrPN7IBD.js → loading-DY5cgK81.js} +1 -1
- package/dist/{lodash-Cq86LJZW.js → lodash-Mri5RxId.js} +1 -1
- package/dist/{member-import-CqguFqZB.js → member-import-Ds0mHQDO.js} +1 -1
- package/dist/{membership-5mxt-mKd.js → membership-Dl9I9gta.js} +3 -3
- package/dist/{money-1Uscav6q.js → money-DJf18iEv.js} +1 -1
- package/dist/{number-D-SQ4YfT.js → number-CDlVA7gg.js} +1 -1
- package/dist/{objectid-Dv1v2_OS.js → objectid-C7Jmt3kj.js} +6 -6
- package/dist/{plugins-8dMylfLG.js → plugins-BB3qsUY2.js} +3 -3
- package/dist/{reward-lh_oH4Qz.js → reward-BDoWlsUZ.js} +1 -1
- package/dist/{rule-qyNmecW-.js → rule-DZQUn3H0.js} +8 -8
- package/dist/{template-Bzh-c8hF.js → template-DIsdAHue.js} +6 -6
- package/dist/{timezone-BftWdnuB.js → timezone-DINP7HO_.js} +1 -1
- package/dist/{transaction.fn-14_FN92e.js → transaction.fn-CorgPho4.js} +1 -1
- package/dist/{trigger-DDp0mcTt.js → trigger-BAhUCSbv.js} +5 -5
- package/dist/{useMarketingMaterialActions-CbQrS_zG.js → useMarketingMaterialActions-waypQ70p.js} +3 -3
- package/dist/{usePagination-B8IZs26_.js → usePagination-BLZ_9QGR.js} +1 -1
- package/dist/{user-DURi-ne2.js → user-PO61yniX.js} +1 -1
- package/dist/{vue-i18n-CXLriG-n.js → vue-i18n-CfOCSTEg.js} +376 -376
- package/dist/{xlsx-1GEVBJpx.js → xlsx-Cu-uiqcb.js} +224 -224
- package/dist/{zod-DsZUBW2Y.js → zod-BM3CuDZq.js} +1 -1
- package/package.json +1 -1
- package/dist/MemberList-DIftEwpi.js +0 -336
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { n as ge, C as _e, q as ke, f as
|
|
3
|
-
import { R as Y, i as
|
|
4
|
-
import { useDialog as ue, useDialogChild as ve, useSnackbar as
|
|
5
|
-
import { u as G } from "./vue-i18n-
|
|
6
|
-
import { a as Te, R as
|
|
7
|
-
import { p as Ue } from "./plugins-
|
|
1
|
+
import { defineComponent as N, computed as M, resolveComponent as E, openBlock as r, createElementBlock as V, createElementVNode as C, createVNode as v, unref as e, createTextVNode as ne, toDisplayString as A, withCtx as B, onMounted as Z, createBlock as g, createCommentVNode as P, ref as W, watch as pe, Fragment as q, renderList as $, normalizeClass as K, resolveDynamicComponent as me, onBeforeMount as ce, isRef as fe, createSlots as ye } from "vue";
|
|
2
|
+
import { n as ge, C as _e, q as ke, f as Ee, r as he } from "./index-C8LcgPDt.js";
|
|
3
|
+
import { R as Y, i as Se } from "./index-elefz7dV.js";
|
|
4
|
+
import { useDialog as ue, useDialogChild as ve, useSnackbar as Ve } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as G } from "./vue-i18n-CfOCSTEg.js";
|
|
6
|
+
import { a as Te, R as D, S as Fe, C as j, g as xe, W as Re, T as ie, O as de } from "./rule-DZQUn3H0.js";
|
|
7
|
+
import { p as Ue } from "./plugins-BB3qsUY2.js";
|
|
8
8
|
import { h as ae } from "./moment-D7p2TMB-.js";
|
|
9
|
-
import { z as Ce, S as Ye } from "./app-
|
|
10
|
-
import { u as X } from "./membership-
|
|
11
|
-
import { u as te } from "./business-
|
|
12
|
-
import "./index-
|
|
9
|
+
import { z as Ce, S as Ye } from "./app-BTQMPUaZ.js";
|
|
10
|
+
import { u as X } from "./membership-Dl9I9gta.js";
|
|
11
|
+
import { u as te } from "./business-1bynM2S3.js";
|
|
12
|
+
import "./index-D5th1Ref.js";
|
|
13
13
|
import { _ as O } from "./CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js";
|
|
14
14
|
import { c as be } from "./object-BYyQ0PZp.js";
|
|
15
|
-
import { Z as le } from "./zod-
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./index-
|
|
19
|
-
const Oe = { class: "flex items-center justify-between" },
|
|
15
|
+
import { Z as le } from "./zod-BM3CuDZq.js";
|
|
16
|
+
import "./index-irwaz38u.js";
|
|
17
|
+
import "./index-D-mVW2R4.js";
|
|
18
|
+
import "./index-Cj_YiRca.js";
|
|
19
|
+
const Oe = { class: "flex items-center justify-between" }, we = { class: "flex items-center gap-8 xs:flex-wrap" }, De = { class: "text-fm-color-primary line-clamp-1 text-ellipsis" }, qe = /* @__PURE__ */ N({
|
|
20
20
|
__name: "RuleEntry",
|
|
21
21
|
props: {
|
|
22
22
|
modelValue: {
|
|
@@ -46,12 +46,12 @@ const Oe = { class: "flex items-center justify-between" }, De = { class: "flex i
|
|
|
46
46
|
d.stopPropagation(), await Ue.remove("Are you sure you want to remove this rule?") && f("remove", _.modelValue);
|
|
47
47
|
}
|
|
48
48
|
return (d, o) => {
|
|
49
|
-
var
|
|
50
|
-
const i =
|
|
49
|
+
var k;
|
|
50
|
+
const i = E("FmChip"), p = E("FmTooltip"), b = E("FmIcon");
|
|
51
51
|
return r(), V("div", Oe, [
|
|
52
|
-
C("div",
|
|
52
|
+
C("div", we, [
|
|
53
53
|
v(i, {
|
|
54
|
-
label: (
|
|
54
|
+
label: (k = e(ge).find((U) => U.property === _.modelValue.property)) == null ? void 0 : k.name,
|
|
55
55
|
class: "!text-fm-color-typo-info !bg-fm-color-system-info-100"
|
|
56
56
|
}, null, 8, ["label"]),
|
|
57
57
|
o[1] || (o[1] = C("div", { class: "h-[26px] border-l-2 rounded-md border-fm-color-neutral-gray-100" }, null, -1)),
|
|
@@ -65,7 +65,7 @@ const Oe = { class: "flex items-center justify-between" }, De = { class: "flex i
|
|
|
65
65
|
content: e(n)[1]
|
|
66
66
|
}, {
|
|
67
67
|
default: B(() => [
|
|
68
|
-
C("div",
|
|
68
|
+
C("div", De, A(e(n)[1]), 1)
|
|
69
69
|
]),
|
|
70
70
|
_: 1
|
|
71
71
|
}, 8, ["content"])
|
|
@@ -343,7 +343,7 @@ const Be = [
|
|
|
343
343
|
}
|
|
344
344
|
]
|
|
345
345
|
}
|
|
346
|
-
], Me = { class: "flex flex-nowrap gap-x-4 items-center" }, Ie = /* @__PURE__ */
|
|
346
|
+
], Me = { class: "flex flex-nowrap gap-x-4 items-center" }, Ie = /* @__PURE__ */ N({
|
|
347
347
|
__name: "IsDayInput",
|
|
348
348
|
props: {
|
|
349
349
|
modelValue: {
|
|
@@ -373,7 +373,7 @@ const Be = [
|
|
|
373
373
|
}
|
|
374
374
|
return (t, d) => {
|
|
375
375
|
var i, p, b;
|
|
376
|
-
const o =
|
|
376
|
+
const o = E("FmStepperField");
|
|
377
377
|
return r(), V("div", Me, [
|
|
378
378
|
v(o, {
|
|
379
379
|
class: "w-1/3",
|
|
@@ -381,7 +381,7 @@ const Be = [
|
|
|
381
381
|
max: 365,
|
|
382
382
|
"show-steppers": !1,
|
|
383
383
|
"append-text": "days",
|
|
384
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
384
|
+
"onUpdate:modelValue": d[0] || (d[0] = (k) => n({ x: k }))
|
|
385
385
|
}, null, 8, ["model-value"]),
|
|
386
386
|
v(O, {
|
|
387
387
|
"model-value": ((p = l.modelValue) == null ? void 0 : p.op) ?? void 0,
|
|
@@ -392,7 +392,7 @@ const Be = [
|
|
|
392
392
|
},
|
|
393
393
|
{ label: e(_)("connect.template.rule.is_day.after"), value: "after" }
|
|
394
394
|
],
|
|
395
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
395
|
+
"onUpdate:modelValue": d[1] || (d[1] = (k) => n({ op: k }))
|
|
396
396
|
}, null, 8, ["model-value", "items"]),
|
|
397
397
|
v(O, {
|
|
398
398
|
"model-value": ((b = l.modelValue) == null ? void 0 : b.ignoreYear) ?? !1,
|
|
@@ -407,12 +407,12 @@ const Be = [
|
|
|
407
407
|
}
|
|
408
408
|
],
|
|
409
409
|
required: !0,
|
|
410
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
410
|
+
"onUpdate:modelValue": d[2] || (d[2] = (k) => n({ ignoreYear: k == !0 }))
|
|
411
411
|
}, null, 8, ["model-value", "items"])
|
|
412
412
|
]);
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
|
-
}), Ae = { class: "grid grid-cols-4 gap-x-4 items-center" },
|
|
415
|
+
}), Ae = { class: "grid grid-cols-4 gap-x-4 items-center" }, Pe = /* @__PURE__ */ N({
|
|
416
416
|
__name: "IsRangeInput",
|
|
417
417
|
props: {
|
|
418
418
|
modelValue: {
|
|
@@ -461,8 +461,8 @@ const Be = [
|
|
|
461
461
|
}
|
|
462
462
|
];
|
|
463
463
|
return (d, o) => {
|
|
464
|
-
var p, b,
|
|
465
|
-
const i =
|
|
464
|
+
var p, b, k, U, w;
|
|
465
|
+
const i = E("FmStepperField");
|
|
466
466
|
return r(), V("div", Ae, [
|
|
467
467
|
v(O, {
|
|
468
468
|
"model-value": (p = l.modelValue) == null ? void 0 : p.op,
|
|
@@ -473,7 +473,7 @@ const Be = [
|
|
|
473
473
|
}, null, 8, ["model-value"]),
|
|
474
474
|
((b = l.modelValue) == null ? void 0 : b.op) != "this" ? (r(), g(i, {
|
|
475
475
|
key: 0,
|
|
476
|
-
"model-value": ((
|
|
476
|
+
"model-value": ((k = l.modelValue) == null ? void 0 : k.x) || 0,
|
|
477
477
|
max: 365,
|
|
478
478
|
"show-steppers": !1,
|
|
479
479
|
"onUpdate:modelValue": o[1] || (o[1] = (c) => f("update:model-value", {
|
|
@@ -482,7 +482,7 @@ const Be = [
|
|
|
482
482
|
ignoreYear: l.modelValue.ignoreYear == !0,
|
|
483
483
|
x: c
|
|
484
484
|
}))
|
|
485
|
-
}, null, 8, ["model-value"])) :
|
|
485
|
+
}, null, 8, ["model-value"])) : P("", !0),
|
|
486
486
|
v(O, {
|
|
487
487
|
"model-value": (U = l.modelValue) == null ? void 0 : U.unit,
|
|
488
488
|
label: "",
|
|
@@ -492,7 +492,7 @@ const Be = [
|
|
|
492
492
|
}, null, 8, ["model-value"]),
|
|
493
493
|
v(O, {
|
|
494
494
|
label: "",
|
|
495
|
-
"model-value": (
|
|
495
|
+
"model-value": (w = l.modelValue) == null ? void 0 : w.ignoreYear,
|
|
496
496
|
items: [
|
|
497
497
|
{ label: "same", value: !1 },
|
|
498
498
|
{ label: "ignore", value: !0 }
|
|
@@ -506,7 +506,7 @@ const Be = [
|
|
|
506
506
|
]);
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
}),
|
|
509
|
+
}), Ne = { class: "space-y-8" }, Le = { class: "text-fm-color-primary rounded-md border-dashed border-2 p-8" }, $e = {
|
|
510
510
|
key: 0,
|
|
511
511
|
class: "flex items-center gap-8"
|
|
512
512
|
}, He = { class: "flex gap-4" }, We = {
|
|
@@ -524,7 +524,7 @@ const Be = [
|
|
|
524
524
|
}, Je = { class: "flex gap-4" }, et = {
|
|
525
525
|
key: 4,
|
|
526
526
|
class: "flex items-center justify-end gap-8"
|
|
527
|
-
}, re = /* @__PURE__ */
|
|
527
|
+
}, re = /* @__PURE__ */ N({
|
|
528
528
|
__name: "RruleInput",
|
|
529
529
|
props: {
|
|
530
530
|
modelValue: {
|
|
@@ -544,7 +544,7 @@ const Be = [
|
|
|
544
544
|
setup(l, { emit: R }) {
|
|
545
545
|
const { t: _ } = G(), m = l, f = R;
|
|
546
546
|
function n(o, i) {
|
|
547
|
-
return new
|
|
547
|
+
return new D({
|
|
548
548
|
...o,
|
|
549
549
|
dtstart: xe({
|
|
550
550
|
startDate: m.startDate,
|
|
@@ -553,10 +553,10 @@ const Be = [
|
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
const t = W(
|
|
556
|
-
m.modelValue ?
|
|
556
|
+
m.modelValue ? D.fromString(m.modelValue) : n({
|
|
557
557
|
dtstart: m.startDate,
|
|
558
|
-
freq:
|
|
559
|
-
wkst:
|
|
558
|
+
freq: D.DAILY,
|
|
559
|
+
wkst: D.SU,
|
|
560
560
|
interval: 1,
|
|
561
561
|
byhour: 0,
|
|
562
562
|
byminute: 0,
|
|
@@ -567,7 +567,7 @@ const Be = [
|
|
|
567
567
|
var i;
|
|
568
568
|
if ("freq" in o)
|
|
569
569
|
switch (o.freq) {
|
|
570
|
-
case
|
|
570
|
+
case D.WEEKLY:
|
|
571
571
|
t.value = n(
|
|
572
572
|
{
|
|
573
573
|
freq: o.freq,
|
|
@@ -575,13 +575,13 @@ const Be = [
|
|
|
575
575
|
byhour: 0,
|
|
576
576
|
byminute: 0,
|
|
577
577
|
bysecond: 0,
|
|
578
|
-
wkst:
|
|
579
|
-
byweekday: [
|
|
578
|
+
wkst: D.SU,
|
|
579
|
+
byweekday: [D.MO]
|
|
580
580
|
},
|
|
581
581
|
t.value
|
|
582
582
|
);
|
|
583
583
|
break;
|
|
584
|
-
case
|
|
584
|
+
case D.MONTHLY:
|
|
585
585
|
t.value = n(
|
|
586
586
|
{
|
|
587
587
|
freq: o.freq,
|
|
@@ -590,12 +590,12 @@ const Be = [
|
|
|
590
590
|
byminute: 0,
|
|
591
591
|
bysecond: 0,
|
|
592
592
|
bymonthday: [(/* @__PURE__ */ new Date()).getDate()],
|
|
593
|
-
wkst:
|
|
593
|
+
wkst: D.SU
|
|
594
594
|
},
|
|
595
595
|
t.value
|
|
596
596
|
);
|
|
597
597
|
break;
|
|
598
|
-
case
|
|
598
|
+
case D.YEARLY:
|
|
599
599
|
t.value = n(
|
|
600
600
|
{
|
|
601
601
|
freq: o.freq,
|
|
@@ -603,7 +603,7 @@ const Be = [
|
|
|
603
603
|
byhour: 0,
|
|
604
604
|
byminute: 0,
|
|
605
605
|
bysecond: 0,
|
|
606
|
-
wkst:
|
|
606
|
+
wkst: D.SU,
|
|
607
607
|
bymonth: [(/* @__PURE__ */ new Date()).getMonth() + 1],
|
|
608
608
|
bymonthday: [(/* @__PURE__ */ new Date()).getDate()]
|
|
609
609
|
},
|
|
@@ -618,7 +618,7 @@ const Be = [
|
|
|
618
618
|
byhour: 0,
|
|
619
619
|
byminute: 0,
|
|
620
620
|
bysecond: 0,
|
|
621
|
-
wkst:
|
|
621
|
+
wkst: D.SU
|
|
622
622
|
},
|
|
623
623
|
t.value
|
|
624
624
|
);
|
|
@@ -629,7 +629,7 @@ const Be = [
|
|
|
629
629
|
interval: o.interval
|
|
630
630
|
},
|
|
631
631
|
t.value
|
|
632
|
-
)), "byweekday" in o && o.byweekday && Array.isArray(o.byweekday) && o.byweekday.length > 0 && (t.value.options.bymonthday.length > 0 && t.value.options.freq ==
|
|
632
|
+
)), "byweekday" in o && o.byweekday && Array.isArray(o.byweekday) && o.byweekday.length > 0 && (t.value.options.bymonthday.length > 0 && t.value.options.freq == D.MONTHLY && (t.value.options.bymonthday = []), t.value = n(
|
|
633
633
|
{
|
|
634
634
|
...t.value.origOptions,
|
|
635
635
|
bymonthday: [],
|
|
@@ -674,16 +674,16 @@ const Be = [
|
|
|
674
674
|
return pe(
|
|
675
675
|
() => m.modelValue,
|
|
676
676
|
(o) => {
|
|
677
|
-
!o || o === t.value.toString() || (t.value =
|
|
677
|
+
!o || o === t.value.toString() || (t.value = D.fromString(o));
|
|
678
678
|
}
|
|
679
679
|
), Z(() => {
|
|
680
680
|
m.modelValue || f("update:model-value", t.value.toString());
|
|
681
681
|
}), (o, i) => {
|
|
682
|
-
var
|
|
683
|
-
const p =
|
|
684
|
-
return r(), V("div",
|
|
682
|
+
var w, c, s;
|
|
683
|
+
const p = E("FmStepperField"), b = E("FmChip"), k = E("FmButtonGroup"), U = E("FmButton");
|
|
684
|
+
return r(), V("div", Ne, [
|
|
685
685
|
C("div", Le, A(e(Fe)(e(t).options)), 1),
|
|
686
|
-
l.fixedFrequency ?
|
|
686
|
+
l.fixedFrequency ? P("", !0) : (r(), V("div", $e, [
|
|
687
687
|
C("div", null, A(e(_)("connect.template.rule.rrule.repeat_every")), 1),
|
|
688
688
|
v(p, {
|
|
689
689
|
class: "w-[100px]",
|
|
@@ -698,10 +698,10 @@ const Be = [
|
|
|
698
698
|
"onUpdate:modelValue": i[1] || (i[1] = (a) => d({ freq: a }))
|
|
699
699
|
}, null, 8, ["items", "model-value"])
|
|
700
700
|
])),
|
|
701
|
-
e(t).options.freq === e(
|
|
701
|
+
e(t).options.freq === e(D).WEEKLY ? (r(), V(q, { key: 1 }, [
|
|
702
702
|
i[8] || (i[8] = C("div", null, "Repeat on", -1)),
|
|
703
703
|
C("div", He, [
|
|
704
|
-
(r(!0), V(
|
|
704
|
+
(r(!0), V(q, null, $(e(j).weekdays, (a) => {
|
|
705
705
|
var y;
|
|
706
706
|
return r(), g(b, {
|
|
707
707
|
class: K(["cursor-pointer", `${(y = e(t).options.byweekday) != null && y.includes(a.value) ? "bg-fm-color-primary text-white" : "bg-fm-color-neutral-gray-200 text-black"}`]),
|
|
@@ -709,17 +709,17 @@ const Be = [
|
|
|
709
709
|
key: a.value,
|
|
710
710
|
compact: !0,
|
|
711
711
|
onClick: () => {
|
|
712
|
-
var
|
|
712
|
+
var T, u;
|
|
713
713
|
d({
|
|
714
|
-
byweekday: (
|
|
714
|
+
byweekday: (T = e(t).options.byweekday) != null && T.includes(a.value) ? ((u = e(t).options.byweekday) == null ? void 0 : u.filter((x) => x !== a.value)) || [] : [...e(t).options.byweekday || [], a.value]
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
717
|
}, null, 8, ["class", "label", "onClick"]);
|
|
718
718
|
}), 128))
|
|
719
719
|
])
|
|
720
|
-
], 64)) :
|
|
721
|
-
e(t).options.freq == e(
|
|
722
|
-
v(
|
|
720
|
+
], 64)) : P("", !0),
|
|
721
|
+
e(t).options.freq == e(D).MONTHLY ? (r(), V(q, { key: 2 }, [
|
|
722
|
+
v(k, {
|
|
723
723
|
"model-value": e(t).options.bymonthday.length ? { label: "Each" } : { label: "On the" },
|
|
724
724
|
items: [
|
|
725
725
|
{
|
|
@@ -734,21 +734,21 @@ const Be = [
|
|
|
734
734
|
})
|
|
735
735
|
}, null, 8, ["model-value"]),
|
|
736
736
|
e(t).options.bymonthday.length > 0 ? (r(), V("div", We, [
|
|
737
|
-
(r(!0), V(
|
|
737
|
+
(r(!0), V(q, null, $(e(j).dates, (a) => (r(), V("div", {
|
|
738
738
|
key: a.value,
|
|
739
739
|
class: K(["cursor-pointer text-center outline-1 outline-fm-color-neutral-gray-100 outline", `${e(t).options.bymonthday.includes(a.value) ? "bg-fm-color-primary text-fm-color-typo-white outline-transparent" : "bg-transparent text-fm-color-typo-primary"} ${a.value == 31 ? "border-r" : ""}`]),
|
|
740
740
|
onClick: (y) => d({
|
|
741
|
-
bymonthday: e(t).options.bymonthday.includes(a.value) ? e(t).options.bymonthday.filter((
|
|
741
|
+
bymonthday: e(t).options.bymonthday.includes(a.value) ? e(t).options.bymonthday.filter((T) => T !== a.value) : [...e(t).options.bymonthday, a.value]
|
|
742
742
|
})
|
|
743
743
|
}, A(a.value), 11, je))), 128))
|
|
744
744
|
])) : (r(), V("div", Ke, [
|
|
745
745
|
v(O, {
|
|
746
746
|
items: e(j).ordinals,
|
|
747
|
-
"model-value": (
|
|
747
|
+
"model-value": (w = e(t).options.bysetpos) == null ? void 0 : w[0],
|
|
748
748
|
"onUpdate:modelValue": i[3] || (i[3] = (a) => d({ bysetpos: a }))
|
|
749
749
|
}, null, 8, ["items", "model-value"]),
|
|
750
750
|
C("div", Ge, [
|
|
751
|
-
(r(!0), V(
|
|
751
|
+
(r(!0), V(q, null, $(e(j).weekdays, (a) => {
|
|
752
752
|
var y;
|
|
753
753
|
return r(), g(b, {
|
|
754
754
|
class: K(["cursor-pointer", `${(y = e(t).options.byweekday) != null && y.includes(a.value) ? "bg-fm-color-primary text-white" : "bg-fm-color-neutral-gray-200 text-black"}`]),
|
|
@@ -764,19 +764,19 @@ const Be = [
|
|
|
764
764
|
}), 128))
|
|
765
765
|
])
|
|
766
766
|
]))
|
|
767
|
-
], 64)) :
|
|
768
|
-
e(t).options.freq == e(
|
|
767
|
+
], 64)) : P("", !0),
|
|
768
|
+
e(t).options.freq == e(D).YEARLY ? (r(), V(q, { key: 3 }, [
|
|
769
769
|
i[9] || (i[9] = C("div", null, "Month", -1)),
|
|
770
770
|
C("div", Qe, [
|
|
771
|
-
(r(!0), V(
|
|
772
|
-
var y,
|
|
771
|
+
(r(!0), V(q, null, $(e(j).months, (a) => {
|
|
772
|
+
var y, T;
|
|
773
773
|
return r(), g(b, {
|
|
774
774
|
key: a.value,
|
|
775
775
|
class: K(["cursor-pointer", {
|
|
776
776
|
"bg-fm-color-primary text-white": (y = e(t).options.bymonth) == null ? void 0 : y.includes(
|
|
777
777
|
a.value
|
|
778
778
|
),
|
|
779
|
-
"bg-fm-color-gray-200 text-fm-color-gray-800": !((
|
|
779
|
+
"bg-fm-color-gray-200 text-fm-color-gray-800": !((T = e(t).options.bymonth) != null && T.includes(a.value))
|
|
780
780
|
}]),
|
|
781
781
|
label: a.shortName,
|
|
782
782
|
compact: !0,
|
|
@@ -786,7 +786,7 @@ const Be = [
|
|
|
786
786
|
}, null, 8, ["class", "label", "onClick"]);
|
|
787
787
|
}), 128))
|
|
788
788
|
]),
|
|
789
|
-
v(
|
|
789
|
+
v(k, {
|
|
790
790
|
"model-value": e(t).options.bymonthday.length ? { label: "Each" } : { label: "On the" },
|
|
791
791
|
items: [
|
|
792
792
|
{
|
|
@@ -801,17 +801,17 @@ const Be = [
|
|
|
801
801
|
bymonthday: [1],
|
|
802
802
|
bymonth: e(t).options.bymonth ?? [1]
|
|
803
803
|
}) : d({
|
|
804
|
-
byweekday: [e(
|
|
804
|
+
byweekday: [e(D).SU.nth(1)],
|
|
805
805
|
bymonth: e(t).options.bymonth ?? [1]
|
|
806
806
|
});
|
|
807
807
|
})
|
|
808
808
|
}, null, 8, ["model-value"]),
|
|
809
809
|
e(t).options.bymonthday.length > 0 ? (r(), V("div", ze, [
|
|
810
|
-
(r(!0), V(
|
|
810
|
+
(r(!0), V(q, null, $(Array(31).fill(null).map((a, y) => y + 1), (a) => (r(), V("div", {
|
|
811
811
|
key: a,
|
|
812
812
|
class: K(["cursor-pointer text-center outline-1 outline-fm-color-neutral-gray-100 outline", `${e(t).options.bymonthday.includes(a) ? "bg-fm-color-primary text-fm-color-typo-white outline-transparent" : "bg-transparent text-fm-color-typo-primary"} ${a == 31 ? "border-r" : ""}`]),
|
|
813
813
|
onClick: (y) => d({
|
|
814
|
-
bymonthday: e(t).options.bymonthday.includes(a) ? e(t).options.bymonthday.filter((
|
|
814
|
+
bymonthday: e(t).options.bymonthday.includes(a) ? e(t).options.bymonthday.filter((T) => T !== a) : [...e(t).options.bymonthday, a]
|
|
815
815
|
})
|
|
816
816
|
}, A(a), 11, Xe))), 128))
|
|
817
817
|
])) : (r(), V("div", Ze, [
|
|
@@ -819,17 +819,17 @@ const Be = [
|
|
|
819
819
|
items: e(j).ordinals,
|
|
820
820
|
"model-value": (s = (c = e(t).options.bynweekday) == null ? void 0 : c[0]) == null ? void 0 : s[1],
|
|
821
821
|
"onUpdate:modelValue": i[5] || (i[5] = (a) => {
|
|
822
|
-
var y,
|
|
822
|
+
var y, T;
|
|
823
823
|
return d({
|
|
824
|
-
bynweekday: [[((
|
|
824
|
+
bynweekday: [[((T = (y = e(t).options.bynweekday) == null ? void 0 : y[0]) == null ? void 0 : T[0]) ?? 1, a]]
|
|
825
825
|
});
|
|
826
826
|
})
|
|
827
827
|
}, null, 8, ["items", "model-value"]),
|
|
828
828
|
C("div", Je, [
|
|
829
|
-
(r(!0), V(
|
|
830
|
-
var y,
|
|
829
|
+
(r(!0), V(q, null, $(e(j).weekdays, (a) => {
|
|
830
|
+
var y, T;
|
|
831
831
|
return r(), g(b, {
|
|
832
|
-
class: K(["cursor-pointer", `${((
|
|
832
|
+
class: K(["cursor-pointer", `${((T = (y = e(t).options.bynweekday) == null ? void 0 : y[0]) == null ? void 0 : T[0]) === a.value ? "bg-fm-color-primary text-white" : "bg-fm-color-neutral-gray-200 text-black"}`]),
|
|
833
833
|
label: a.label[0],
|
|
834
834
|
key: a.value,
|
|
835
835
|
compact: !0,
|
|
@@ -845,7 +845,7 @@ const Be = [
|
|
|
845
845
|
}), 128))
|
|
846
846
|
])
|
|
847
847
|
]))
|
|
848
|
-
], 64)) :
|
|
848
|
+
], 64)) : P("", !0),
|
|
849
849
|
l.applyButton ? (r(), V("div", et, [
|
|
850
850
|
v(U, {
|
|
851
851
|
label: "Cancel",
|
|
@@ -856,11 +856,11 @@ const Be = [
|
|
|
856
856
|
label: "Apply",
|
|
857
857
|
onClick: i[7] || (i[7] = (a) => f("update:model-value", e(t).toString()))
|
|
858
858
|
})
|
|
859
|
-
])) :
|
|
859
|
+
])) : P("", !0)
|
|
860
860
|
]);
|
|
861
861
|
};
|
|
862
862
|
}
|
|
863
|
-
}), tt = { class: "grid grid-cols-4 gap-8 w-full flex-wrap py-16" }, lt = /* @__PURE__ */
|
|
863
|
+
}), tt = { class: "grid grid-cols-4 gap-8 w-full flex-wrap py-16" }, lt = /* @__PURE__ */ N({
|
|
864
864
|
__name: "IsInMonthInput",
|
|
865
865
|
props: {
|
|
866
866
|
modelValue: {
|
|
@@ -878,9 +878,9 @@ const Be = [
|
|
|
878
878
|
return Z(() => {
|
|
879
879
|
_.modelValue || m("update:model-value", []);
|
|
880
880
|
}), (n, t) => {
|
|
881
|
-
const d =
|
|
881
|
+
const d = E("FmChip");
|
|
882
882
|
return r(), V("div", tt, [
|
|
883
|
-
(r(!0), V(
|
|
883
|
+
(r(!0), V(q, null, $(e(f), (o) => {
|
|
884
884
|
var i, p;
|
|
885
885
|
return r(), g(d, {
|
|
886
886
|
class: K(["cursor-pointer", {
|
|
@@ -894,14 +894,14 @@ const Be = [
|
|
|
894
894
|
compact: !0,
|
|
895
895
|
onClick: (b) => m(
|
|
896
896
|
"update:model-value",
|
|
897
|
-
l.modelValue.includes(o.value) ? l.modelValue.filter((
|
|
897
|
+
l.modelValue.includes(o.value) ? l.modelValue.filter((k) => k !== o.value) : [...l.modelValue, o.value]
|
|
898
898
|
)
|
|
899
899
|
}, null, 8, ["class", "label", "onClick"]);
|
|
900
900
|
}), 128))
|
|
901
901
|
]);
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
|
-
}), ot = { class: "flex justify-end gap-8 w-full" }, at = /* @__PURE__ */
|
|
904
|
+
}), ot = { class: "flex justify-end gap-8 w-full" }, at = /* @__PURE__ */ N({
|
|
905
905
|
__name: "MenuDialog",
|
|
906
906
|
props: {
|
|
907
907
|
modelValue: { type: Boolean },
|
|
@@ -925,12 +925,12 @@ const Be = [
|
|
|
925
925
|
), Z(() => {
|
|
926
926
|
f.value = _.modelValue;
|
|
927
927
|
}), (o, i) => {
|
|
928
|
-
const p =
|
|
928
|
+
const p = E("FmButton"), b = E("FmDialog");
|
|
929
929
|
return r(), g(b, {
|
|
930
930
|
"content-scrollable": !1,
|
|
931
931
|
contentClass: "pt-0",
|
|
932
932
|
modelValue: f.value,
|
|
933
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
933
|
+
"onUpdate:modelValue": i[1] || (i[1] = (k) => f.value = k),
|
|
934
934
|
title: "Select Items",
|
|
935
935
|
"close-button": !1
|
|
936
936
|
}, {
|
|
@@ -956,14 +956,14 @@ const Be = [
|
|
|
956
956
|
"initial-value": l.initialValue,
|
|
957
957
|
"filter-items": l.filterItems,
|
|
958
958
|
"max-height": 380,
|
|
959
|
-
onChange: i[0] || (i[0] = (
|
|
959
|
+
onChange: i[0] || (i[0] = (k) => m.value = k)
|
|
960
960
|
}, null, 8, ["initial-value", "filter-items"])
|
|
961
961
|
]),
|
|
962
962
|
_: 1
|
|
963
963
|
}, 8, ["modelValue"]);
|
|
964
964
|
};
|
|
965
965
|
}
|
|
966
|
-
}), rt = { id: "select-menu" }, nt = /* @__PURE__ */
|
|
966
|
+
}), rt = { id: "select-menu" }, nt = /* @__PURE__ */ N({
|
|
967
967
|
__name: "SelectMenu",
|
|
968
968
|
props: {
|
|
969
969
|
modelValue: {}
|
|
@@ -978,7 +978,7 @@ const Be = [
|
|
|
978
978
|
n("update:model-value", d);
|
|
979
979
|
}
|
|
980
980
|
return (d, o) => {
|
|
981
|
-
const i =
|
|
981
|
+
const i = E("FmField");
|
|
982
982
|
return r(), V("div", rt, [
|
|
983
983
|
v(i, {
|
|
984
984
|
class: "text-fm-color-typo-tertiary",
|
|
@@ -1004,7 +1004,7 @@ const Be = [
|
|
|
1004
1004
|
}), ut = {
|
|
1005
1005
|
key: 19,
|
|
1006
1006
|
class: "fm-typo-en-body-lg-600"
|
|
1007
|
-
}, st = /* @__PURE__ */
|
|
1007
|
+
}, st = /* @__PURE__ */ N({
|
|
1008
1008
|
__name: "RuleEquator",
|
|
1009
1009
|
props: {
|
|
1010
1010
|
type: {
|
|
@@ -1026,8 +1026,8 @@ const Be = [
|
|
|
1026
1026
|
return n.success ? [] : n.error.errors;
|
|
1027
1027
|
});
|
|
1028
1028
|
return (n, t) => {
|
|
1029
|
-
var
|
|
1030
|
-
const d =
|
|
1029
|
+
var w, c, s, a, y, T;
|
|
1030
|
+
const d = E("FmTextField"), o = E("FmStepperField"), i = E("FmSimpleDatePicker"), p = E("FmSimpleDateRangePicker"), b = E("FmTimeRangePicker"), k = E("FmTimePicker"), U = E("FmHelperText");
|
|
1031
1031
|
return r(), V("div", {
|
|
1032
1032
|
class: K({ "pb-4": e(f).length })
|
|
1033
1033
|
}, [
|
|
@@ -1043,7 +1043,7 @@ const Be = [
|
|
|
1043
1043
|
key: 2,
|
|
1044
1044
|
"model-value": l.modelValue,
|
|
1045
1045
|
"onUpdate:modelValue": t[2] || (t[2] = (u) => m("update:model-value", u))
|
|
1046
|
-
}, null, 8, ["model-value"])) : l.operator == "_isRange" ? (r(), g(me(
|
|
1046
|
+
}, null, 8, ["model-value"])) : l.operator == "_isRange" ? (r(), g(me(Pe), {
|
|
1047
1047
|
key: 3,
|
|
1048
1048
|
"model-value": l.modelValue,
|
|
1049
1049
|
"onUpdate:modelValue": t[3] || (t[3] = (u) => m("update:model-value", u))
|
|
@@ -1054,7 +1054,7 @@ const Be = [
|
|
|
1054
1054
|
}, null, 8, ["model-value"])) : l.operator == "_isBetween" ? (r(), g(p, {
|
|
1055
1055
|
key: 5,
|
|
1056
1056
|
"model-value": {
|
|
1057
|
-
startDate: (
|
|
1057
|
+
startDate: (w = l.modelValue) == null ? void 0 : w.start,
|
|
1058
1058
|
endDate: (c = l.modelValue) == null ? void 0 : c.end
|
|
1059
1059
|
},
|
|
1060
1060
|
"onUpdate:modelValue": t[5] || (t[5] = (u) => {
|
|
@@ -1074,14 +1074,14 @@ const Be = [
|
|
|
1074
1074
|
}, null, 8, ["model-value"])) : l.operator == "_isBetweenTime" ? (r(), g(b, {
|
|
1075
1075
|
key: 8,
|
|
1076
1076
|
"disable-time-check": !0,
|
|
1077
|
-
"model-value": [(a = (s = l.modelValue) == null ? void 0 : s[0]) == null ? void 0 : a.start, (
|
|
1077
|
+
"model-value": [(a = (s = l.modelValue) == null ? void 0 : s[0]) == null ? void 0 : a.start, (T = (y = l.modelValue) == null ? void 0 : y[0]) == null ? void 0 : T.end],
|
|
1078
1078
|
"onUpdate:modelValue": t[8] || (t[8] = (u) => m("update:model-value", [
|
|
1079
1079
|
{
|
|
1080
1080
|
start: u[0],
|
|
1081
1081
|
end: u[1]
|
|
1082
1082
|
}
|
|
1083
1083
|
]))
|
|
1084
|
-
}, null, 8, ["model-value"])) : l.operator == "_isOnTime" ? (r(), g(
|
|
1084
|
+
}, null, 8, ["model-value"])) : l.operator == "_isOnTime" ? (r(), g(k, {
|
|
1085
1085
|
key: 9,
|
|
1086
1086
|
"model-value": l.modelValue,
|
|
1087
1087
|
"onUpdate:modelValue": t[9] || (t[9] = (u) => m("update:model-value", u))
|
|
@@ -1163,7 +1163,7 @@ const Be = [
|
|
|
1163
1163
|
], 2);
|
|
1164
1164
|
};
|
|
1165
1165
|
}
|
|
1166
|
-
}), mt = { class: "space-y-4" }, it = { class: "fm-typo-en-body-lg-400" }, dt = { class: "fm-typo-en-body-lg-400" }, pt = { class: "flex items-center gap-8" }, ct = { class: "fm-typo-en-body-lg-400" }, yt = { class: "flex items-center justify-end gap-8 pt-16 w-full" }, vt = /* @__PURE__ */
|
|
1166
|
+
}), mt = { class: "space-y-4" }, it = { class: "fm-typo-en-body-lg-400" }, dt = { class: "fm-typo-en-body-lg-400" }, pt = { class: "flex items-center gap-8" }, ct = { class: "fm-typo-en-body-lg-400" }, yt = { class: "flex items-center justify-end gap-8 pt-16 w-full" }, vt = /* @__PURE__ */ N({
|
|
1167
1167
|
__name: "CustomRuleDialog",
|
|
1168
1168
|
props: {
|
|
1169
1169
|
triggerType: {
|
|
@@ -1173,6 +1173,10 @@ const Be = [
|
|
|
1173
1173
|
includeOnly: {
|
|
1174
1174
|
type: String
|
|
1175
1175
|
},
|
|
1176
|
+
allowSeasonEarned: {
|
|
1177
|
+
type: Boolean,
|
|
1178
|
+
default: !1
|
|
1179
|
+
},
|
|
1176
1180
|
modelValue: {
|
|
1177
1181
|
type: Object,
|
|
1178
1182
|
default: () => {
|
|
@@ -1225,73 +1229,75 @@ const Be = [
|
|
|
1225
1229
|
_hasAll: "connect.template.rule.custom_modal.operators.has_all_of",
|
|
1226
1230
|
_hasAny: "connect.template.rule.custom_modal.operators.has_any_of"
|
|
1227
1231
|
};
|
|
1228
|
-
function o(
|
|
1229
|
-
if (!
|
|
1230
|
-
const F = t[
|
|
1231
|
-
return F ? n(F) :
|
|
1232
|
+
function o(S) {
|
|
1233
|
+
if (!S) return "";
|
|
1234
|
+
const F = t[S.property];
|
|
1235
|
+
return F ? n(F) : S.name;
|
|
1232
1236
|
}
|
|
1233
|
-
function i(
|
|
1234
|
-
const F = d[
|
|
1235
|
-
return F ? n(F) : de[
|
|
1237
|
+
function i(S) {
|
|
1238
|
+
const F = d[S];
|
|
1239
|
+
return F ? n(F) : de[S].name;
|
|
1236
1240
|
}
|
|
1237
1241
|
const p = l, b = M(
|
|
1238
|
-
() => ke(p.triggerType, p.includeOnly)
|
|
1239
|
-
|
|
1240
|
-
|
|
1242
|
+
() => ke(p.triggerType, p.includeOnly).filter(
|
|
1243
|
+
({ property: S }) => p.allowSeasonEarned || S !== "user.stats.lastSeasonTierEarned" && S !== "user.stats.lastSeasonPointEarned"
|
|
1244
|
+
)
|
|
1245
|
+
), k = M(
|
|
1246
|
+
() => b.value.find((S) => {
|
|
1241
1247
|
var F;
|
|
1242
|
-
return
|
|
1248
|
+
return S.property == ((F = y.value) == null ? void 0 : F.property);
|
|
1243
1249
|
})
|
|
1244
|
-
), U = (
|
|
1250
|
+
), U = (S) => ie[b.value.find((F) => F.property === S).type], w = M(() => {
|
|
1245
1251
|
if (!y.value) return [];
|
|
1246
|
-
const
|
|
1252
|
+
const S = b.value.find(
|
|
1247
1253
|
(F) => F.property === y.value.property
|
|
1248
1254
|
);
|
|
1249
|
-
return
|
|
1255
|
+
return S ? ie[S.type].filter((F) => {
|
|
1250
1256
|
var L, H;
|
|
1251
1257
|
return !((H = (L = de[F]) == null ? void 0 : L.exclude) != null && H.includes(y.value.property));
|
|
1252
1258
|
}).map((F) => ({
|
|
1253
1259
|
label: i(F),
|
|
1254
1260
|
value: F
|
|
1255
1261
|
})) : [];
|
|
1256
|
-
}), c =
|
|
1257
|
-
const
|
|
1258
|
-
return
|
|
1262
|
+
}), c = Ee, s = M(() => {
|
|
1263
|
+
const S = c.safeParse(y.value);
|
|
1264
|
+
return S.success ? [] : S.error.errors;
|
|
1259
1265
|
}), a = W(!1), y = W(
|
|
1260
1266
|
be(p.modelValue) ?? Y.constructEntry(
|
|
1261
1267
|
b.value[0].property,
|
|
1262
1268
|
U(b.value[0].property)[0],
|
|
1263
1269
|
null
|
|
1264
1270
|
)
|
|
1265
|
-
),
|
|
1266
|
-
var
|
|
1267
|
-
const { property:
|
|
1271
|
+
), T = M(() => {
|
|
1272
|
+
var h;
|
|
1273
|
+
const { property: S, negated: F, conditions: L } = y.value, H = Object.keys(L || {})[0], Q = Object.values(L || {})[0];
|
|
1268
1274
|
return {
|
|
1269
|
-
property:
|
|
1275
|
+
property: S,
|
|
1270
1276
|
negated: F == !0,
|
|
1271
|
-
type: (
|
|
1277
|
+
type: (h = b.value.find((z) => z.property === S)) == null ? void 0 : h.type,
|
|
1272
1278
|
operator: H,
|
|
1273
1279
|
equator: Q
|
|
1274
1280
|
};
|
|
1275
1281
|
});
|
|
1276
|
-
function u(
|
|
1282
|
+
function u(S) {
|
|
1277
1283
|
y.value = Y.constructEntry(
|
|
1278
|
-
|
|
1279
|
-
U(
|
|
1284
|
+
S,
|
|
1285
|
+
U(S)[0],
|
|
1280
1286
|
null
|
|
1281
1287
|
);
|
|
1282
1288
|
}
|
|
1283
|
-
function x(
|
|
1284
|
-
y.value = { ...y.value, negated:
|
|
1289
|
+
function x(S) {
|
|
1290
|
+
y.value = { ...y.value, negated: S == !0 };
|
|
1285
1291
|
}
|
|
1286
|
-
function oe(
|
|
1292
|
+
function oe(S) {
|
|
1287
1293
|
y.value = {
|
|
1288
1294
|
...y.value,
|
|
1289
|
-
conditions: { [
|
|
1295
|
+
conditions: { [S]: null }
|
|
1290
1296
|
};
|
|
1291
1297
|
}
|
|
1292
|
-
function J(
|
|
1298
|
+
function J(S) {
|
|
1293
1299
|
y.value.conditions = {
|
|
1294
|
-
[
|
|
1300
|
+
[T.value.operator]: S
|
|
1295
1301
|
};
|
|
1296
1302
|
}
|
|
1297
1303
|
function ee() {
|
|
@@ -1299,8 +1305,8 @@ const Be = [
|
|
|
1299
1305
|
}
|
|
1300
1306
|
return ce(async () => {
|
|
1301
1307
|
await _.readMembership();
|
|
1302
|
-
}), (
|
|
1303
|
-
const L =
|
|
1308
|
+
}), (S, F) => {
|
|
1309
|
+
const L = E("FmIcon"), H = E("FmField"), Q = E("FmPill"), h = E("FmMenuItem"), z = E("FmMenu"), se = E("FmButton");
|
|
1304
1310
|
return r(), V("div", mt, [
|
|
1305
1311
|
C("div", it, A(e(n)("connect.template.rule.custom_modal.property")), 1),
|
|
1306
1312
|
v(z, {
|
|
@@ -1319,18 +1325,18 @@ const Be = [
|
|
|
1319
1325
|
}, null, 8, ["name"])
|
|
1320
1326
|
]),
|
|
1321
1327
|
default: B(() => [
|
|
1322
|
-
ne(A(o(e(
|
|
1328
|
+
ne(A(o(e(k))) + " ", 1)
|
|
1323
1329
|
]),
|
|
1324
1330
|
_: 1
|
|
1325
1331
|
})
|
|
1326
1332
|
]),
|
|
1327
1333
|
default: B(() => [
|
|
1328
|
-
(r(!0), V(
|
|
1334
|
+
(r(!0), V(q, null, $(e(b), (I) => (r(), g(h, {
|
|
1329
1335
|
key: I.property,
|
|
1330
1336
|
"model-value": e(y).property == I.property,
|
|
1331
1337
|
label: o(I),
|
|
1332
1338
|
disabled: I.premium && !e(te)().isPremium,
|
|
1333
|
-
onClick: (
|
|
1339
|
+
onClick: (St) => I.premium && !e(te)().isPremium ? null : u(I.property)
|
|
1334
1340
|
}, ye({ _: 2 }, [
|
|
1335
1341
|
I.premium ? {
|
|
1336
1342
|
name: "append",
|
|
@@ -1359,20 +1365,20 @@ const Be = [
|
|
|
1359
1365
|
}, null, 8, ["items", "model-value"]),
|
|
1360
1366
|
v(O, {
|
|
1361
1367
|
class: "flex-1",
|
|
1362
|
-
items: e(
|
|
1363
|
-
"model-value": e(
|
|
1368
|
+
items: e(w),
|
|
1369
|
+
"model-value": e(T).operator,
|
|
1364
1370
|
"onUpdate:modelValue": oe
|
|
1365
1371
|
}, null, 8, ["items", "model-value"])
|
|
1366
1372
|
]),
|
|
1367
1373
|
C("div", null, [
|
|
1368
1374
|
C("div", ct, A(e(n)("connect.template.rule.custom_modal.criteria")), 1),
|
|
1369
|
-
e(
|
|
1375
|
+
e(T).type ? (r(), g(st, {
|
|
1370
1376
|
key: 0,
|
|
1371
|
-
type: e(
|
|
1372
|
-
operator: e(
|
|
1373
|
-
"model-value": e(
|
|
1377
|
+
type: e(T).type,
|
|
1378
|
+
operator: e(T).operator,
|
|
1379
|
+
"model-value": e(T).equator,
|
|
1374
1380
|
"onUpdate:modelValue": J
|
|
1375
|
-
}, null, 8, ["type", "operator", "model-value"])) :
|
|
1381
|
+
}, null, 8, ["type", "operator", "model-value"])) : P("", !0)
|
|
1376
1382
|
]),
|
|
1377
1383
|
C("div", yt, [
|
|
1378
1384
|
v(se, {
|
|
@@ -1382,14 +1388,14 @@ const Be = [
|
|
|
1382
1388
|
}, null, 8, ["label"]),
|
|
1383
1389
|
v(se, {
|
|
1384
1390
|
onClick: F[3] || (F[3] = (I) => ee()),
|
|
1385
|
-
disabled: e(s).length > 0,
|
|
1391
|
+
disabled: e(s).length > 0 || !e(k),
|
|
1386
1392
|
label: e(n)("connect.common.save")
|
|
1387
1393
|
}, null, 8, ["disabled", "label"])
|
|
1388
1394
|
])
|
|
1389
1395
|
]);
|
|
1390
1396
|
};
|
|
1391
1397
|
}
|
|
1392
|
-
}), bt = { class: "flex flex-col gap-8" }, ft = { class: "grid grid-cols-2 items-center" }, gt = { class: "flex items-center gap-8" }, _t = { class: "pt-16 flex items-center self-end gap-8" }, kt = /* @__PURE__ */
|
|
1398
|
+
}), bt = { class: "flex flex-col gap-8" }, ft = { class: "grid grid-cols-2 items-center" }, gt = { class: "flex items-center gap-8" }, _t = { class: "pt-16 flex items-center self-end gap-8" }, kt = /* @__PURE__ */ N({
|
|
1393
1399
|
__name: "PresetRuleDialog",
|
|
1394
1400
|
props: {
|
|
1395
1401
|
preset: {
|
|
@@ -1415,7 +1421,7 @@ const Be = [
|
|
|
1415
1421
|
case "MONTHLY":
|
|
1416
1422
|
case "BIRTHDAY":
|
|
1417
1423
|
case "TIER": {
|
|
1418
|
-
const a = f.sortedTiers.filter((y,
|
|
1424
|
+
const a = f.sortedTiers.filter((y, T) => c == "_equal" ? T + 1 == s : c == "_moreThanOrEqual" ? T + 1 >= s : T + 1 <= s);
|
|
1419
1425
|
return n("connect.template.rule.preset_modal.applies_to", {
|
|
1420
1426
|
tiers: a.map((y) => y.name).join(", ")
|
|
1421
1427
|
});
|
|
@@ -1490,17 +1496,17 @@ const Be = [
|
|
|
1490
1496
|
i.value.name
|
|
1491
1497
|
);
|
|
1492
1498
|
}
|
|
1493
|
-
function
|
|
1499
|
+
function k() {
|
|
1494
1500
|
_(i.value), m("primary"), R.close();
|
|
1495
1501
|
}
|
|
1496
1502
|
const U = M(() => {
|
|
1497
|
-
const c =
|
|
1503
|
+
const c = he.safeParse(i.value);
|
|
1498
1504
|
return c.success ? [] : c.error.errors;
|
|
1499
1505
|
});
|
|
1500
1506
|
ce(async () => {
|
|
1501
1507
|
await f.readMembership();
|
|
1502
1508
|
});
|
|
1503
|
-
const
|
|
1509
|
+
const w = M(() => [
|
|
1504
1510
|
{
|
|
1505
1511
|
label: n("connect.template.rule.preset_modal.unit.day"),
|
|
1506
1512
|
value: "day"
|
|
@@ -1515,15 +1521,15 @@ const Be = [
|
|
|
1515
1521
|
}
|
|
1516
1522
|
]);
|
|
1517
1523
|
return (c, s) => {
|
|
1518
|
-
var
|
|
1519
|
-
const a =
|
|
1524
|
+
var S, F, L, H, Q;
|
|
1525
|
+
const a = E("FmStepperField"), y = E("FmDatePicker"), T = E("FmTimeRangePicker"), u = E("FmRadio"), x = E("FmSelect"), oe = E("FmRadioGroup"), J = E("FmHelperText"), ee = E("FmButton");
|
|
1520
1526
|
return r(), V("div", bt, [
|
|
1521
1527
|
l.preset == "MIN_SPEND" ? (r(), g(a, {
|
|
1522
1528
|
key: 0,
|
|
1523
1529
|
label: e(n)("connect.template.rule.preset.minimum_spend"),
|
|
1524
1530
|
"model-value": e(p).equator,
|
|
1525
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
1526
|
-
}, null, 8, ["label", "model-value"])) :
|
|
1531
|
+
"onUpdate:modelValue": s[0] || (s[0] = (h) => b(h))
|
|
1532
|
+
}, null, 8, ["label", "model-value"])) : P("", !0),
|
|
1527
1533
|
l.preset == "LAST_X_DAY" ? (r(), g(a, {
|
|
1528
1534
|
key: 1,
|
|
1529
1535
|
label: "",
|
|
@@ -1531,30 +1537,30 @@ const Be = [
|
|
|
1531
1537
|
prepent: e(n)("connect.template.rule.preset_modal.day"),
|
|
1532
1538
|
"model-value": e(p).equator.x,
|
|
1533
1539
|
rules: [
|
|
1534
|
-
(
|
|
1540
|
+
(h) => h >= 0 || e(n)(
|
|
1535
1541
|
"connect.template.rule.preset_modal.value_must_be_greater_than_0"
|
|
1536
1542
|
)
|
|
1537
1543
|
],
|
|
1538
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
1544
|
+
"onUpdate:modelValue": s[1] || (s[1] = (h) => b({
|
|
1539
1545
|
op: "last",
|
|
1540
1546
|
unit: "day",
|
|
1541
1547
|
ignoreYear: !0,
|
|
1542
|
-
x:
|
|
1548
|
+
x: h
|
|
1543
1549
|
}))
|
|
1544
1550
|
}, null, 8, ["prepent", "model-value", "rules"])) : l.preset == "SPECIFIC_DATE" ? (r(), g(y, {
|
|
1545
1551
|
key: 2,
|
|
1546
1552
|
label: e(n)("connect.template.rule.preset.specific_date"),
|
|
1547
1553
|
"model-value": e(p).equator,
|
|
1548
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
1549
|
-
}, null, 8, ["label", "model-value"])) : l.preset == "SPECIFIC_TIMERANGE" ? (r(), g(
|
|
1554
|
+
"onUpdate:modelValue": s[2] || (s[2] = (h) => b(h))
|
|
1555
|
+
}, null, 8, ["label", "model-value"])) : l.preset == "SPECIFIC_TIMERANGE" ? (r(), g(T, {
|
|
1550
1556
|
key: 3,
|
|
1551
1557
|
label: e(n)("connect.template.rule.preset_modal.time_is_between"),
|
|
1552
1558
|
"disable-time-check": !0,
|
|
1553
|
-
"model-value": [(F = (
|
|
1554
|
-
"onUpdate:modelValue": s[3] || (s[3] = (
|
|
1559
|
+
"model-value": [(F = (S = e(p).equator) == null ? void 0 : S[0]) == null ? void 0 : F.start, (H = (L = e(p).equator) == null ? void 0 : L[0]) == null ? void 0 : H.end],
|
|
1560
|
+
"onUpdate:modelValue": s[3] || (s[3] = (h) => b([
|
|
1555
1561
|
{
|
|
1556
|
-
start:
|
|
1557
|
-
end:
|
|
1562
|
+
start: h[0],
|
|
1563
|
+
end: h[1]
|
|
1558
1564
|
}
|
|
1559
1565
|
]))
|
|
1560
1566
|
}, null, 8, ["label", "model-value"])) : l.preset == "WEEKLY" ? (r(), g(re, {
|
|
@@ -1562,14 +1568,14 @@ const Be = [
|
|
|
1562
1568
|
label: e(n)("connect.template.rule.preset.weekly"),
|
|
1563
1569
|
"fixed-frequency": !0,
|
|
1564
1570
|
"model-value": e(p).equator,
|
|
1565
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
1571
|
+
"onUpdate:modelValue": s[4] || (s[4] = (h) => b(h))
|
|
1566
1572
|
}, null, 8, ["label", "model-value"])) : l.preset == "MONTHLY" ? (r(), g(re, {
|
|
1567
1573
|
key: 5,
|
|
1568
1574
|
label: e(n)("connect.template.rule.preset.monthly"),
|
|
1569
1575
|
"fixed-frequency": !0,
|
|
1570
1576
|
"model-value": e(p).equator,
|
|
1571
|
-
"onUpdate:modelValue": s[5] || (s[5] = (
|
|
1572
|
-
}, null, 8, ["label", "model-value"])) : l.preset == "BIRTHDAY" ? (r(), V(
|
|
1577
|
+
"onUpdate:modelValue": s[5] || (s[5] = (h) => b(h))
|
|
1578
|
+
}, null, 8, ["label", "model-value"])) : l.preset == "BIRTHDAY" ? (r(), V(q, { key: 6 }, [
|
|
1573
1579
|
C("div", ft, [
|
|
1574
1580
|
v(u, {
|
|
1575
1581
|
label: e(n)("connect.template.rule.birthday.days_before"),
|
|
@@ -1604,17 +1610,17 @@ const Be = [
|
|
|
1604
1610
|
}, null, 8, ["label", "model-value"]),
|
|
1605
1611
|
e(p).operator == "_isRange" ? (r(), g(x, {
|
|
1606
1612
|
key: 0,
|
|
1607
|
-
items: e(
|
|
1613
|
+
items: e(w),
|
|
1608
1614
|
"model-value": e(p).equator.unit,
|
|
1609
|
-
"onUpdate:modelValue": s[8] || (s[8] = (
|
|
1615
|
+
"onUpdate:modelValue": s[8] || (s[8] = (h) => b(
|
|
1610
1616
|
{
|
|
1611
1617
|
op: "this",
|
|
1612
|
-
unit:
|
|
1618
|
+
unit: h,
|
|
1613
1619
|
ignoreYear: !0
|
|
1614
1620
|
},
|
|
1615
1621
|
"_isRange"
|
|
1616
1622
|
))
|
|
1617
|
-
}, null, 8, ["items", "model-value"])) :
|
|
1623
|
+
}, null, 8, ["items", "model-value"])) : P("", !0)
|
|
1618
1624
|
])
|
|
1619
1625
|
]),
|
|
1620
1626
|
e(p).operator == "_isDay" ? (r(), g(a, {
|
|
@@ -1622,17 +1628,17 @@ const Be = [
|
|
|
1622
1628
|
label: e(n)("connect.template.rule.birthday.days_before_label"),
|
|
1623
1629
|
"show-steppers": !1,
|
|
1624
1630
|
"model-value": e(p).equator.x,
|
|
1625
|
-
"onUpdate:modelValue": s[9] || (s[9] = (
|
|
1631
|
+
"onUpdate:modelValue": s[9] || (s[9] = (h) => b({
|
|
1626
1632
|
op: "after",
|
|
1627
|
-
x:
|
|
1633
|
+
x: h,
|
|
1628
1634
|
ignoreYear: !0
|
|
1629
1635
|
}))
|
|
1630
|
-
}, null, 8, ["label", "model-value"])) :
|
|
1631
|
-
], 64)) : l.preset == "TIER" ? (r(), V(
|
|
1636
|
+
}, null, 8, ["label", "model-value"])) : P("", !0)
|
|
1637
|
+
], 64)) : l.preset == "TIER" ? (r(), V(q, { key: 7 }, [
|
|
1632
1638
|
v(oe, {
|
|
1633
1639
|
inline: !0,
|
|
1634
1640
|
"model-value": e(p).operator,
|
|
1635
|
-
"onUpdate:modelValue": s[10] || (s[10] = (
|
|
1641
|
+
"onUpdate:modelValue": s[10] || (s[10] = (h) => b(e(p).equator, h))
|
|
1636
1642
|
}, {
|
|
1637
1643
|
default: B(() => [
|
|
1638
1644
|
v(u, {
|
|
@@ -1651,12 +1657,12 @@ const Be = [
|
|
|
1651
1657
|
_: 1
|
|
1652
1658
|
}, 8, ["model-value"]),
|
|
1653
1659
|
v(O, {
|
|
1654
|
-
items: (e(f).sortedTiers ?? []).map((
|
|
1655
|
-
label: `Tier ${z + 1} - ${
|
|
1660
|
+
items: (e(f).sortedTiers ?? []).map((h, z) => ({
|
|
1661
|
+
label: `Tier ${z + 1} - ${h.name}`,
|
|
1656
1662
|
value: z + 1
|
|
1657
1663
|
})),
|
|
1658
1664
|
"model-value": e(p).equator,
|
|
1659
|
-
"onUpdate:modelValue": s[11] || (s[11] = (
|
|
1665
|
+
"onUpdate:modelValue": s[11] || (s[11] = (h) => b(h))
|
|
1660
1666
|
}, null, 8, ["items", "model-value"]),
|
|
1661
1667
|
v(J, {
|
|
1662
1668
|
text: d()
|
|
@@ -1664,13 +1670,13 @@ const Be = [
|
|
|
1664
1670
|
], 64)) : l.preset == "TITLE" ? (r(), g(O, {
|
|
1665
1671
|
key: 8,
|
|
1666
1672
|
label: e(n)("connect.template.rule.preset_modal.user_has_title"),
|
|
1667
|
-
items: (e(f).sortedTitles ?? []).map((
|
|
1668
|
-
label:
|
|
1669
|
-
value:
|
|
1673
|
+
items: (e(f).sortedTitles ?? []).map((h) => ({
|
|
1674
|
+
label: h.name,
|
|
1675
|
+
value: h._id
|
|
1670
1676
|
})),
|
|
1671
1677
|
"model-value": (Q = e(p).equator) == null ? void 0 : Q[0],
|
|
1672
|
-
"onUpdate:modelValue": s[12] || (s[12] = (
|
|
1673
|
-
}, null, 8, ["label", "items", "model-value"])) :
|
|
1678
|
+
"onUpdate:modelValue": s[12] || (s[12] = (h) => b([h]))
|
|
1679
|
+
}, null, 8, ["label", "items", "model-value"])) : P("", !0),
|
|
1674
1680
|
v(J, {
|
|
1675
1681
|
class: "mt-[-8px]",
|
|
1676
1682
|
text: e(le).helperText(e(U), ""),
|
|
@@ -1678,12 +1684,12 @@ const Be = [
|
|
|
1678
1684
|
}, null, 8, ["text", "state"]),
|
|
1679
1685
|
C("div", _t, [
|
|
1680
1686
|
v(ee, {
|
|
1681
|
-
onClick: s[13] || (s[13] = (
|
|
1687
|
+
onClick: s[13] || (s[13] = (h) => e(R).close()),
|
|
1682
1688
|
label: e(n)("connect.common.cancel"),
|
|
1683
1689
|
variant: "tertiary"
|
|
1684
1690
|
}, null, 8, ["label"]),
|
|
1685
1691
|
v(ee, {
|
|
1686
|
-
onClick: s[14] || (s[14] = (
|
|
1692
|
+
onClick: s[14] || (s[14] = (h) => k()),
|
|
1687
1693
|
disabled: e(U).length > 0,
|
|
1688
1694
|
label: e(n)("connect.common.save")
|
|
1689
1695
|
}, null, 8, ["disabled", "label"])
|
|
@@ -1691,7 +1697,7 @@ const Be = [
|
|
|
1691
1697
|
]);
|
|
1692
1698
|
};
|
|
1693
1699
|
}
|
|
1694
|
-
}),
|
|
1700
|
+
}), Et = /* @__PURE__ */ N({
|
|
1695
1701
|
__name: "RuleConfigurator",
|
|
1696
1702
|
props: {
|
|
1697
1703
|
triggerType: {
|
|
@@ -1701,6 +1707,10 @@ const Be = [
|
|
|
1701
1707
|
includeOnly: {
|
|
1702
1708
|
type: String
|
|
1703
1709
|
},
|
|
1710
|
+
allowSeasonEarned: {
|
|
1711
|
+
type: Boolean,
|
|
1712
|
+
default: !1
|
|
1713
|
+
},
|
|
1704
1714
|
modelValue: {
|
|
1705
1715
|
type: Object,
|
|
1706
1716
|
default: () => {
|
|
@@ -1734,7 +1744,7 @@ const Be = [
|
|
|
1734
1744
|
function b(c) {
|
|
1735
1745
|
const [s] = c.rules;
|
|
1736
1746
|
i.open({
|
|
1737
|
-
title:
|
|
1747
|
+
title: w(c),
|
|
1738
1748
|
closeButton: !1,
|
|
1739
1749
|
dismissAway: !1,
|
|
1740
1750
|
contentComponent: kt,
|
|
@@ -1745,7 +1755,7 @@ const Be = [
|
|
|
1745
1755
|
}
|
|
1746
1756
|
}).onPrimary((a) => o("update:model-value", a));
|
|
1747
1757
|
}
|
|
1748
|
-
function
|
|
1758
|
+
function k(c) {
|
|
1749
1759
|
i.open({
|
|
1750
1760
|
title: f("connect.template.rule.edit_rule"),
|
|
1751
1761
|
closeButton: !1,
|
|
@@ -1754,6 +1764,7 @@ const Be = [
|
|
|
1754
1764
|
contentComponentProps: {
|
|
1755
1765
|
triggerType: d.triggerType,
|
|
1756
1766
|
includeOnly: d.includeOnly,
|
|
1767
|
+
allowSeasonEarned: d.allowSeasonEarned,
|
|
1757
1768
|
modelValue: c
|
|
1758
1769
|
}
|
|
1759
1770
|
}).onPrimary((s) => o("update:model-value", s));
|
|
@@ -1761,20 +1772,20 @@ const Be = [
|
|
|
1761
1772
|
function U(c) {
|
|
1762
1773
|
if (c.type == "CUSTOM") {
|
|
1763
1774
|
const [s] = c.rules;
|
|
1764
|
-
return
|
|
1775
|
+
return k(
|
|
1765
1776
|
Y.constructEntry(s.property, s.operator, s.equator)
|
|
1766
1777
|
);
|
|
1767
1778
|
}
|
|
1768
1779
|
return b(c);
|
|
1769
1780
|
}
|
|
1770
|
-
function
|
|
1781
|
+
function w(c) {
|
|
1771
1782
|
const s = t[c.name];
|
|
1772
1783
|
return s && n(s) ? f(s) : c.name;
|
|
1773
1784
|
}
|
|
1774
1785
|
return R({
|
|
1775
|
-
showCustomDialog:
|
|
1786
|
+
showCustomDialog: k
|
|
1776
1787
|
}), (c, s) => {
|
|
1777
|
-
const a =
|
|
1788
|
+
const a = E("FmButton"), y = E("FmPill"), T = E("FmMenuItem"), u = E("FmMenu");
|
|
1778
1789
|
return r(), g(u, {
|
|
1779
1790
|
shift: !0,
|
|
1780
1791
|
placement: "top-start"
|
|
@@ -1789,12 +1800,12 @@ const Be = [
|
|
|
1789
1800
|
}, null, 8, ["label"])
|
|
1790
1801
|
]),
|
|
1791
1802
|
default: B(() => [
|
|
1792
|
-
(r(!0), V(
|
|
1803
|
+
(r(!0), V(q, null, $(e(Be).filter(
|
|
1793
1804
|
(x) => !l.includeOnly || x.for.includes(l.includeOnly)
|
|
1794
|
-
), (x) => (r(), g(
|
|
1805
|
+
), (x) => (r(), g(T, {
|
|
1795
1806
|
key: x.name,
|
|
1796
1807
|
"model-value": x.name == e(p),
|
|
1797
|
-
label:
|
|
1808
|
+
label: w(x),
|
|
1798
1809
|
onClick: () => {
|
|
1799
1810
|
x != null && x.premium && !e(m).isPremium || U(x);
|
|
1800
1811
|
},
|
|
@@ -1813,7 +1824,7 @@ const Be = [
|
|
|
1813
1824
|
});
|
|
1814
1825
|
};
|
|
1815
1826
|
}
|
|
1816
|
-
}),
|
|
1827
|
+
}), ht = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Lt = /* @__PURE__ */ N({
|
|
1817
1828
|
__name: "RuleGroup",
|
|
1818
1829
|
props: {
|
|
1819
1830
|
triggerType: {
|
|
@@ -1823,22 +1834,26 @@ const Be = [
|
|
|
1823
1834
|
includeOnly: {
|
|
1824
1835
|
type: String
|
|
1825
1836
|
},
|
|
1837
|
+
allowSeasonEarned: {
|
|
1838
|
+
type: Boolean,
|
|
1839
|
+
default: !1
|
|
1840
|
+
},
|
|
1826
1841
|
modelValue: {
|
|
1827
1842
|
type: Object
|
|
1828
1843
|
}
|
|
1829
1844
|
},
|
|
1830
1845
|
emits: ["update:model-value"],
|
|
1831
1846
|
setup(l, { emit: R }) {
|
|
1832
|
-
const _ = l, m = R, f =
|
|
1847
|
+
const _ = l, m = R, f = Ve(), { t: n } = G(), t = M(
|
|
1833
1848
|
() => _.modelValue ?? Y.scaffoldGroup()
|
|
1834
1849
|
), d = M(() => Y.getLogic(t.value)), o = M(() => [
|
|
1835
1850
|
{ label: n("connect.template.rule.and"), value: "&&" },
|
|
1836
1851
|
{ label: n("connect.template.rule.or"), value: "||" }
|
|
1837
1852
|
]), i = W();
|
|
1838
|
-
function p(b,
|
|
1853
|
+
function p(b, k) {
|
|
1839
1854
|
try {
|
|
1840
|
-
const U = Y.setRuleToGroup(b,
|
|
1841
|
-
Y.isRuleExceed(b,
|
|
1855
|
+
const U = Y.setRuleToGroup(b, k);
|
|
1856
|
+
Y.isRuleExceed(b, k), m("update:model-value", U);
|
|
1842
1857
|
} catch (U) {
|
|
1843
1858
|
f.open({
|
|
1844
1859
|
message: U.message,
|
|
@@ -1846,40 +1861,41 @@ const Be = [
|
|
|
1846
1861
|
});
|
|
1847
1862
|
}
|
|
1848
1863
|
}
|
|
1849
|
-
return (b,
|
|
1850
|
-
const U =
|
|
1851
|
-
return r(), g(
|
|
1864
|
+
return (b, k) => {
|
|
1865
|
+
const U = E("FmButtonGroup"), w = E("FmCard");
|
|
1866
|
+
return r(), g(w, { variant: "outlined" }, {
|
|
1852
1867
|
default: B(() => [
|
|
1853
|
-
v(
|
|
1868
|
+
v(w, { class: "border-l-4 border-fm-color-primary p-16 space-y-16" }, {
|
|
1854
1869
|
default: B(() => [
|
|
1855
|
-
C("div",
|
|
1856
|
-
v(
|
|
1870
|
+
C("div", ht, A(e(n)("connect.template.rule.when")), 1),
|
|
1871
|
+
v(Et, {
|
|
1857
1872
|
ref_key: "configuratorRef",
|
|
1858
1873
|
ref: i,
|
|
1859
1874
|
"include-only": l.includeOnly,
|
|
1875
|
+
"allow-season-earned": l.allowSeasonEarned,
|
|
1860
1876
|
"trigger-type": l.triggerType,
|
|
1861
|
-
"onUpdate:modelValue":
|
|
1862
|
-
}, null, 8, ["include-only", "trigger-type"]),
|
|
1863
|
-
(r(!0), V(
|
|
1877
|
+
"onUpdate:modelValue": k[0] || (k[0] = (c) => p(e(t), c))
|
|
1878
|
+
}, null, 8, ["include-only", "allow-season-earned", "trigger-type"]),
|
|
1879
|
+
(r(!0), V(q, null, $(e(t).rules, (c, s) => {
|
|
1864
1880
|
var a;
|
|
1865
|
-
return r(), V(
|
|
1866
|
-
e(
|
|
1881
|
+
return r(), V(q, null, [
|
|
1882
|
+
e(Se)(c) ? (r(), g(qe, {
|
|
1867
1883
|
"model-value": c,
|
|
1868
1884
|
key: s,
|
|
1869
1885
|
onEdit: (a = e(i)) == null ? void 0 : a.showCustomDialog,
|
|
1870
|
-
onRemove:
|
|
1886
|
+
onRemove: k[1] || (k[1] = (y) => {
|
|
1871
1887
|
m(
|
|
1872
1888
|
"update:model-value",
|
|
1873
1889
|
e(Y).removeEntry(e(t), y.name)
|
|
1874
1890
|
);
|
|
1875
1891
|
})
|
|
1876
|
-
}, null, 8, ["model-value", "onEdit"])) :
|
|
1892
|
+
}, null, 8, ["model-value", "onEdit"])) : P("", !0),
|
|
1877
1893
|
v(U, {
|
|
1878
1894
|
class: "w-[200px]",
|
|
1879
1895
|
disabled: Object.keys(e(t).rules).length < 2,
|
|
1880
1896
|
items: e(o),
|
|
1881
1897
|
"model-value": e(o).find((y) => y.value === e(d)) ?? null,
|
|
1882
|
-
"onUpdate:modelValue":
|
|
1898
|
+
"onUpdate:modelValue": k[2] || (k[2] = (y) => m(
|
|
1883
1899
|
"update:model-value",
|
|
1884
1900
|
e(Y).setRuleToGroup(
|
|
1885
1901
|
e(t),
|