@feedmepos/mf-connect 0.1.98-beta.7 → 0.1.98-beta.71
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-BonFFUVJ.js → App-B-Onur9k.js} +812 -666
- package/dist/{AuditLogs-CaQisyMC.js → AuditLogs-BnEeKG1C.js} +14 -13
- package/dist/{Bin-Mu8gAiHw.js → Bin-BH9_nATR.js} +8 -8
- package/dist/Broadcast-Gt2ZLLpZ.js +302 -0
- package/dist/CampaignAnalytic-BT6zTgNk.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BoLZVrCU.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-nNLLEzii.js} +6 -5
- package/dist/Card-dD52oor7.js +1084 -0
- package/dist/{Collections-CByXxRW_.js → Collections-7bwYNl3M.js} +14 -13
- package/dist/Credit-qZdlqXqR.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-DeNn_k19.js +53 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C09W9Qja.js +4213 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BXsAX1Xa.js → EffectSheet.vue_vue_type_style_index_0_lang-Bz1HRBMa.js} +35 -35
- package/dist/{Experience-B7J-aqPK.js → Experience-CAaWgWXP.js} +112 -86
- package/dist/{FileSaver.min-D_F_MSZt.js → FileSaver.min-BpfY6VnX.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-fhrbFb_5.js +356 -0
- package/dist/GiftCardSetup-CTwmNKim.js +736 -0
- package/dist/{Grab-C45MmlD9.js → Grab-BnPfb92x.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CPPcB3PC.js → ImageInput.vue_vue_type_script_setup_true_lang-BySju1oT.js} +1 -1
- package/dist/{Index-vQ6uP49O.js → Index-DRwvmm_j.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cj3hN3tg.js → LocationPicker.vue_vue_type_script_setup_true_lang-Ya4r9NNE.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DU9eIein.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CDwtqqLQ.js} +1 -1
- package/dist/LoyaltyDashboard-8jn6SIWo.js +2865 -0
- package/dist/MainLayout-Bf42AcB1.js +143 -0
- package/dist/{Marketing-B6xMdQvW.js → Marketing-DruTMjiR.js} +7 -6
- package/dist/{MarketingMaterialEdit-0cZN4bek.js → MarketingMaterialEdit-moEHd_gP.js} +15 -14
- package/dist/Member-C9VTQqIm.js +654 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DEsVSWmv.js +1279 -0
- package/dist/MemberImportHistory-DZVwya9v.js +187 -0
- package/dist/MemberList-KusIfy1u.js +334 -0
- package/dist/{MemberTransactions-Bg-ziZy8.js → MemberTransactions-msyjdzlI.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jbDJkbZh.js → MessageInput.vue_vue_type_script_setup_true_lang-DbV-m3cC.js} +5928 -5644
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-1DYGpJnD.js +40 -0
- package/dist/Mission-CUUxpBUF.js +360 -0
- package/dist/{Overview-nsyJGSCq.js → Overview-C9jyKXHX.js} +21 -20
- package/dist/Overview-CYKoF8Hp.js +1316 -0
- package/dist/Point-CPpQ07yp.js +288 -0
- package/dist/Promotion-CJ95m9Qb.js +423 -0
- package/dist/{Queue-Dkipt6fw.js → Queue-CX39ILh_.js} +14 -13
- package/dist/{Record-BFqx6vM-.js → Record-6I0qyXB5.js} +9 -9
- package/dist/Review-DoWu2XNT.js +45 -0
- package/dist/ReviewFacebookCallback-Co-5TnI7.js +238 -0
- package/dist/ReviewGoogleCallback-Ca7ZuMcF.js +213 -0
- package/dist/{Reward-DjFEE7I_.js → Reward-Cx_N6qBJ.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BzZ6VH80.js → RewardGroup.vue_vue_type_script_setup_true_lang-Cn5Yp37p.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-A9jQX4jt.js → RuleGroup.vue_vue_type_script_setup_true_lang-M0c67Dyl.js} +196 -186
- package/dist/{Segment-BAjdUfZ6.js → Segment-Bx0EW966.js} +275 -276
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CAQPFzRH.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-ahvrEUGa.js} +37 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Gkz8jhES.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C7zSfZdl.js} +4 -4
- package/dist/{Setting-BK7y0XC-.js → Setting-DzEK3dWj.js} +14 -14
- package/dist/{SettingAdvertisements-DfQ645xr.js → SettingAdvertisements-BNALbI88.js} +12 -12
- package/dist/Settings-Cw85-xzq.js +230 -0
- package/dist/Store-BSqW1gwf.js +2612 -0
- package/dist/{StoreRewards-usHKOGmB.js → StoreRewards-CJXnS8Qf.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C6tUwHEj.js +1329 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrcWUZuR.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-iylphGuV.js} +2 -2
- package/dist/{Tier-BF3V430O.js → Tier-DfitNxp2.js} +2580 -754
- package/dist/{Title-DwPuqKfJ.js → Title-QCbtOvKB.js} +39 -37
- package/dist/Transaction-dOCzlidD.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DToNRTJS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Be5X1C-Y.js} +26 -26
- package/dist/{Voucher-DnhVIl_o.js → Voucher-BfoCDwjg.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Btb3UZCn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-0EIYoZ0F.js} +118 -124
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-EFUW9DMY.js → ZodTextField.vue_vue_type_script_setup_true_lang-UdStgKbX.js} +2 -2
- package/dist/{app-i3r-6ZVm.js → app-BxTElIm-.js} +45168 -37577
- package/dist/app.js +1 -1
- package/dist/base.export-BmUK8hMh.js +75 -0
- package/dist/{business-i0Gxk7gG.js → business-DjAiT8tR.js} +5 -5
- package/dist/campaign-DlR3KF9m.js +368 -0
- package/dist/campaign-tAmQNoq7.js +100 -0
- package/dist/{campaign.enum-CbUTfxek.js → campaign.enum-BjwEQd11.js} +1 -1
- package/dist/{campaign.fn-BjHSIDd1.js → campaign.fn-C6kWWIQx.js} +53 -53
- package/dist/{collectible.enum-DN7E_kHg.js → collectible.enum-BrtXpT9S.js} +1 -1
- package/dist/collection.fn-CDhfM3Eq.js +26 -0
- package/dist/currency-10nX5QnT.js +7 -0
- package/dist/{duplicateCampaign-DmdJQEIA.js → duplicateCampaign-6oMZOvfM.js} +11 -11
- package/dist/{effect-DM4AzeQl.js → effect-T4YzuTc5.js} +1 -1
- package/dist/{email-addresses-BlqVJhwZ.js → email-addresses-BjODnJMM.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-CkdISSVP.js → helper-BCl5r5yZ.js} +1 -1
- package/dist/{index-DgzNGQgE.js → index-B9ZMIUMa.js} +2083 -2559
- package/dist/{index-CB7ytKOE.js → index-BBsK7TUw.js} +1588 -1522
- package/dist/index-BQk6zTgf.js +32437 -0
- package/dist/index-Bd4clHfr.js +901 -0
- package/dist/index-BeVWchv7.js +14550 -0
- package/dist/index-Bht1Z11w.js +72 -0
- package/dist/{index-FD50UHqf.js → index-BiolIgqR.js} +105 -123
- package/dist/{index-Cl8t41Sk.js → index-BxU--5J5.js} +5 -5
- package/dist/index-Bz6oSli7.js +151 -0
- package/dist/index-C5IfNJUl.js +53 -0
- package/dist/{index-BWsj6lCJ.js → index-CRvUvCMA.js} +14 -14
- package/dist/{index-B6xi1soU.js → index-CnaQt4Pn.js} +1 -1
- package/dist/{index-4EtrCy_K.js → index-Ctja--IE.js} +4 -4
- package/dist/{index-D6qeYVNz.js → index-D8rGhchh.js} +1 -1
- package/dist/{index-BrboOmPq.js → index-DJdTDF9C.js} +347 -216
- package/dist/index-DXiJa8Cw.js +137 -0
- package/dist/{index-CxdLExX0.js → index-DeQKLilv.js} +24 -9
- package/dist/{index-vI-ndGu_.js → index-DhtKt4OL.js} +5 -5
- package/dist/{index.esm2017-BX5CyKoc.js → index.esm2017-CEOegJjn.js} +132 -132
- package/dist/{loading-DTKDhqew.js → loading-Dx4SCvZY.js} +1 -1
- package/dist/{lodash-CCPBsqhe.js → lodash-Dq8OKCKK.js} +1 -1
- package/dist/member-import-DX-jn2uk.js +187 -0
- package/dist/membership-CltAa-gH.js +274 -0
- package/dist/{money-wMK3QkZ5.js → money-DsaAjJTI.js} +1 -1
- package/dist/{number-DjKVlWn0.js → number-DmhHKYgY.js} +1 -1
- package/dist/objectid-BdNv-dZX.js +145 -0
- package/dist/{plugins-D25PaNJk.js → plugins-BFKVM3uC.js} +13 -12
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-E63jqJHm.js → reward--SjvIeyy.js} +1 -1
- package/dist/{rule-RVvPtAnk.js → rule-CAKdNobZ.js} +335 -275
- package/dist/style.css +1 -1
- package/dist/{template-zNxOQaqe.js → template-Cfxc5eM8.js} +6 -6
- package/dist/timezone-D2b-V5XD.js +20 -0
- package/dist/transaction.fn-B5mLY7bz.js +71 -0
- package/dist/{trigger-BXV02FhP.js → trigger-DvYcjRBZ.js} +17 -17
- package/dist/useMarketingMaterialActions-DtqnjMSt.js +96 -0
- package/dist/{usePagination-BPcPhEnp.js → usePagination-DKX24g31.js} +1 -1
- package/dist/{user-Bd8S7R5u.js → user-fWb1NxGO.js} +1 -1
- package/dist/vue-i18n-wJReAVJw.js +2365 -0
- package/dist/{xlsx-_tQC9Ezf.js → xlsx-Mthhu4JR.js} +440 -440
- package/dist/{zod-C1j2GLZP.js → zod-CVpVUgBZ.js} +1 -1
- package/package.json +10 -6
- package/dist/Broadcast-Cy-i-WOT.js +0 -266
- package/dist/Card-f2XOtWxp.js +0 -910
- package/dist/Credit-CcZF4aQS.js +0 -260
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7KZ8GMx.js +0 -3377
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-CUW7NeVG.js +0 -330
- package/dist/LoyaltyDashboard-GqyUwvXz.js +0 -1082
- package/dist/MainLayout-R5NxIBR-.js +0 -41
- package/dist/Member-CC5F6Bmz.js +0 -280
- package/dist/MemberList-Cq4zxopX.js +0 -1601
- package/dist/Mission-DcCZ6tAG.js +0 -334
- package/dist/Point-D1vLd5hL.js +0 -262
- package/dist/Promotion-Cv7MW5RJ.js +0 -397
- package/dist/Review-CKhakUMe.js +0 -1123
- package/dist/ReviewFacebookCallback-xgRpXQAg.js +0 -243
- package/dist/ReviewGoogleCallback-Cqi_43qi.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DDqK4kV1.js +0 -181
- package/dist/Store-uTRQ6KbC.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Bb2sTsuA.js +0 -1130
- package/dist/Transaction-CnTEfMGU.js +0 -39
- package/dist/campaign-CbMlARNI.js +0 -219
- package/dist/campaign-f7FT91GR.js +0 -277
- package/dist/export-DQR-0lmK.js +0 -97
- package/dist/index-COrXX9MR.js +0 -52
- package/dist/index-CWiaP-aV.js +0 -28900
- package/dist/index-jVfDVEtz.js +0 -85
- package/dist/membership-rifuatxU.js +0 -255
- package/dist/objectid-DjpWkCxH.js +0 -145
- package/dist/useMarketingMaterialActions-5TFNqZVo.js +0 -107
- package/dist/vue-i18n-CgMK-TaC.js +0 -2365
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { R as Y,
|
|
4
|
-
import { useDialog as ue, useDialogChild as ve, useSnackbar as
|
|
5
|
-
import { u as G } from "./vue-i18n-
|
|
6
|
-
import { a 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-BBsK7TUw.js";
|
|
3
|
+
import { R as Y, i as Se } from "./index-DJdTDF9C.js";
|
|
4
|
+
import { useDialog as ue, useDialogChild as ve, useSnackbar as Ve } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as G } from "./vue-i18n-wJReAVJw.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-CAKdNobZ.js";
|
|
7
|
+
import { p as Ue } from "./plugins-BFKVM3uC.js";
|
|
8
8
|
import { h as ae } from "./moment-D7p2TMB-.js";
|
|
9
|
-
import { z as Ce } 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-BxTElIm-.js";
|
|
10
|
+
import { u as X } from "./membership-CltAa-gH.js";
|
|
11
|
+
import { u as te } from "./business-DjAiT8tR.js";
|
|
12
|
+
import "./index-BxU--5J5.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
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./index-
|
|
19
|
-
const Oe = { class: "flex items-center justify-between" },
|
|
15
|
+
import { Z as le } from "./zod-CVpVUgBZ.js";
|
|
16
|
+
import "./index-B9ZMIUMa.js";
|
|
17
|
+
import "./index-Bd4clHfr.js";
|
|
18
|
+
import "./index-DhtKt4OL.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: {
|
|
@@ -35,7 +35,7 @@ const Oe = { class: "flex items-center justify-between" }, De = { class: "flex i
|
|
|
35
35
|
equator: o
|
|
36
36
|
};
|
|
37
37
|
}), f = R, n = M(
|
|
38
|
-
() =>
|
|
38
|
+
() => Te(
|
|
39
39
|
m.value.property,
|
|
40
40
|
m.value.operator,
|
|
41
41
|
m.value.equator,
|
|
@@ -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,7 +698,7 @@ 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
704
|
(r(!0), V(q, null, $(e(j).weekdays, (a) => {
|
|
@@ -717,9 +717,9 @@ const Be = [
|
|
|
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
|
{
|
|
@@ -744,7 +744,7 @@ const Be = [
|
|
|
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, [
|
|
@@ -764,8 +764,8 @@ 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
771
|
(r(!0), V(q, null, $(e(j).months, (a) => {
|
|
@@ -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,7 +801,7 @@ 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
|
})
|
|
@@ -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,7 +878,7 @@ 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
883
|
(r(!0), V(q, null, $(e(f), (o) => {
|
|
884
884
|
var i, p;
|
|
@@ -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: "
|
|
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 },
|
|
@@ -910,10 +910,9 @@ const Be = [
|
|
|
910
910
|
},
|
|
911
911
|
emits: ["update:model-value", "confirm"],
|
|
912
912
|
setup(l, { emit: R }) {
|
|
913
|
-
const _ = l, m = W(), f = W(!1), n = R;
|
|
913
|
+
const _ = l, m = W([]), f = W(!1), n = R;
|
|
914
914
|
function t() {
|
|
915
|
-
|
|
916
|
-
(o = m.value) == null || o.onConfirm(), n("update:model-value", !1);
|
|
915
|
+
n("confirm", m.value), d();
|
|
917
916
|
}
|
|
918
917
|
function d() {
|
|
919
918
|
n("update:model-value", !1);
|
|
@@ -926,20 +925,20 @@ const Be = [
|
|
|
926
925
|
), Z(() => {
|
|
927
926
|
f.value = _.modelValue;
|
|
928
927
|
}), (o, i) => {
|
|
929
|
-
const p =
|
|
928
|
+
const p = E("FmButton"), b = E("FmDialog");
|
|
930
929
|
return r(), g(b, {
|
|
931
930
|
"content-scrollable": !1,
|
|
932
931
|
contentClass: "pt-0",
|
|
933
932
|
modelValue: f.value,
|
|
934
|
-
"onUpdate:modelValue": i[
|
|
933
|
+
"onUpdate:modelValue": i[1] || (i[1] = (k) => f.value = k),
|
|
935
934
|
title: "Select Items",
|
|
936
935
|
"close-button": !1
|
|
937
936
|
}, {
|
|
938
|
-
"dialog-header": B(() => [...i[
|
|
937
|
+
"dialog-header": B(() => [...i[2] || (i[2] = [
|
|
939
938
|
C("div", null, "Select Item", -1)
|
|
940
939
|
])]),
|
|
941
940
|
"dialog-footer": B(() => [
|
|
942
|
-
C("div",
|
|
941
|
+
C("div", ot, [
|
|
943
942
|
v(p, {
|
|
944
943
|
variant: "tertiary",
|
|
945
944
|
onClick: d,
|
|
@@ -953,23 +952,18 @@ const Be = [
|
|
|
953
952
|
])
|
|
954
953
|
]),
|
|
955
954
|
default: B(() => [
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
"on-complete": (h) => {
|
|
963
|
-
n("confirm", h), d();
|
|
964
|
-
}
|
|
965
|
-
}, null, 8, ["initial-value", "filter-items", "on-complete"])
|
|
966
|
-
])
|
|
955
|
+
v(e(Ye), {
|
|
956
|
+
"initial-value": l.initialValue,
|
|
957
|
+
"filter-items": l.filterItems,
|
|
958
|
+
"max-height": 380,
|
|
959
|
+
onChange: i[0] || (i[0] = (k) => m.value = k)
|
|
960
|
+
}, null, 8, ["initial-value", "filter-items"])
|
|
967
961
|
]),
|
|
968
962
|
_: 1
|
|
969
963
|
}, 8, ["modelValue"]);
|
|
970
964
|
};
|
|
971
965
|
}
|
|
972
|
-
}),
|
|
966
|
+
}), rt = { id: "select-menu" }, nt = /* @__PURE__ */ N({
|
|
973
967
|
__name: "SelectMenu",
|
|
974
968
|
props: {
|
|
975
969
|
modelValue: {}
|
|
@@ -984,8 +978,8 @@ const Be = [
|
|
|
984
978
|
n("update:model-value", d);
|
|
985
979
|
}
|
|
986
980
|
return (d, o) => {
|
|
987
|
-
const i =
|
|
988
|
-
return r(), V("div",
|
|
981
|
+
const i = E("FmField");
|
|
982
|
+
return r(), V("div", rt, [
|
|
989
983
|
v(i, {
|
|
990
984
|
class: "text-fm-color-typo-tertiary",
|
|
991
985
|
onClick: o[0] || (o[0] = (p) => m.value = !0)
|
|
@@ -995,7 +989,7 @@ const Be = [
|
|
|
995
989
|
]),
|
|
996
990
|
_: 1
|
|
997
991
|
}),
|
|
998
|
-
v(
|
|
992
|
+
v(at, {
|
|
999
993
|
modelValue: m.value,
|
|
1000
994
|
"onUpdate:modelValue": [
|
|
1001
995
|
o[1] || (o[1] = (p) => m.value = p),
|
|
@@ -1007,10 +1001,10 @@ const Be = [
|
|
|
1007
1001
|
]);
|
|
1008
1002
|
};
|
|
1009
1003
|
}
|
|
1010
|
-
}),
|
|
1004
|
+
}), ut = {
|
|
1011
1005
|
key: 19,
|
|
1012
1006
|
class: "fm-typo-en-body-lg-600"
|
|
1013
|
-
},
|
|
1007
|
+
}, st = /* @__PURE__ */ N({
|
|
1014
1008
|
__name: "RuleEquator",
|
|
1015
1009
|
props: {
|
|
1016
1010
|
type: {
|
|
@@ -1032,8 +1026,8 @@ const Be = [
|
|
|
1032
1026
|
return n.success ? [] : n.error.errors;
|
|
1033
1027
|
});
|
|
1034
1028
|
return (n, t) => {
|
|
1035
|
-
var
|
|
1036
|
-
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");
|
|
1037
1031
|
return r(), V("div", {
|
|
1038
1032
|
class: K({ "pb-4": e(f).length })
|
|
1039
1033
|
}, [
|
|
@@ -1049,7 +1043,7 @@ const Be = [
|
|
|
1049
1043
|
key: 2,
|
|
1050
1044
|
"model-value": l.modelValue,
|
|
1051
1045
|
"onUpdate:modelValue": t[2] || (t[2] = (u) => m("update:model-value", u))
|
|
1052
|
-
}, null, 8, ["model-value"])) : l.operator == "_isRange" ? (r(), g(me(
|
|
1046
|
+
}, null, 8, ["model-value"])) : l.operator == "_isRange" ? (r(), g(me(Pe), {
|
|
1053
1047
|
key: 3,
|
|
1054
1048
|
"model-value": l.modelValue,
|
|
1055
1049
|
"onUpdate:modelValue": t[3] || (t[3] = (u) => m("update:model-value", u))
|
|
@@ -1060,7 +1054,7 @@ const Be = [
|
|
|
1060
1054
|
}, null, 8, ["model-value"])) : l.operator == "_isBetween" ? (r(), g(p, {
|
|
1061
1055
|
key: 5,
|
|
1062
1056
|
"model-value": {
|
|
1063
|
-
startDate: (
|
|
1057
|
+
startDate: (w = l.modelValue) == null ? void 0 : w.start,
|
|
1064
1058
|
endDate: (c = l.modelValue) == null ? void 0 : c.end
|
|
1065
1059
|
},
|
|
1066
1060
|
"onUpdate:modelValue": t[5] || (t[5] = (u) => {
|
|
@@ -1087,7 +1081,7 @@ const Be = [
|
|
|
1087
1081
|
end: u[1]
|
|
1088
1082
|
}
|
|
1089
1083
|
]))
|
|
1090
|
-
}, null, 8, ["model-value"])) : l.operator == "_isOnTime" ? (r(), g(
|
|
1084
|
+
}, null, 8, ["model-value"])) : l.operator == "_isOnTime" ? (r(), g(k, {
|
|
1091
1085
|
key: 9,
|
|
1092
1086
|
"model-value": l.modelValue,
|
|
1093
1087
|
"onUpdate:modelValue": t[9] || (t[9] = (u) => m("update:model-value", u))
|
|
@@ -1147,7 +1141,7 @@ const Be = [
|
|
|
1147
1141
|
})),
|
|
1148
1142
|
"model-value": l.modelValue ?? [],
|
|
1149
1143
|
"onUpdate:modelValue": t[16] || (t[16] = (u) => m("update:model-value", u))
|
|
1150
|
-
}, null, 8, ["items", "model-value"])) : l.type == "product" ? (r(), g(
|
|
1144
|
+
}, null, 8, ["items", "model-value"])) : l.type == "product" ? (r(), g(nt, {
|
|
1151
1145
|
key: 17,
|
|
1152
1146
|
"model-value": l.modelValue,
|
|
1153
1147
|
"onUpdate:modelValue": t[17] || (t[17] = (u) => m("update:model-value", u))
|
|
@@ -1160,7 +1154,7 @@ const Be = [
|
|
|
1160
1154
|
})),
|
|
1161
1155
|
"model-value": l.modelValue ?? [],
|
|
1162
1156
|
"onUpdate:modelValue": t[18] || (t[18] = (u) => m("update:model-value", u))
|
|
1163
|
-
}, null, 8, ["items", "model-value"])) : (r(), V("div",
|
|
1157
|
+
}, null, 8, ["items", "model-value"])) : (r(), V("div", ut, "Rule: " + A(l.type) + " Not implemented", 1)),
|
|
1164
1158
|
v(U, {
|
|
1165
1159
|
class: "items-end",
|
|
1166
1160
|
state: e(le).helperState(e(f), ""),
|
|
@@ -1169,7 +1163,7 @@ const Be = [
|
|
|
1169
1163
|
], 2);
|
|
1170
1164
|
};
|
|
1171
1165
|
}
|
|
1172
|
-
}),
|
|
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({
|
|
1173
1167
|
__name: "CustomRuleDialog",
|
|
1174
1168
|
props: {
|
|
1175
1169
|
triggerType: {
|
|
@@ -1179,6 +1173,10 @@ const Be = [
|
|
|
1179
1173
|
includeOnly: {
|
|
1180
1174
|
type: String
|
|
1181
1175
|
},
|
|
1176
|
+
allowSeasonEarned: {
|
|
1177
|
+
type: Boolean,
|
|
1178
|
+
default: !1
|
|
1179
|
+
},
|
|
1182
1180
|
modelValue: {
|
|
1183
1181
|
type: Object,
|
|
1184
1182
|
default: () => {
|
|
@@ -1241,13 +1239,15 @@ const Be = [
|
|
|
1241
1239
|
return F ? n(F) : de[S].name;
|
|
1242
1240
|
}
|
|
1243
1241
|
const p = l, b = M(
|
|
1244
|
-
() => ke(p.triggerType, p.includeOnly)
|
|
1245
|
-
|
|
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
1246
|
() => b.value.find((S) => {
|
|
1247
1247
|
var F;
|
|
1248
1248
|
return S.property == ((F = y.value) == null ? void 0 : F.property);
|
|
1249
1249
|
})
|
|
1250
|
-
), U = (S) => ie[b.value.find((F) => F.property === S).type],
|
|
1250
|
+
), U = (S) => ie[b.value.find((F) => F.property === S).type], w = M(() => {
|
|
1251
1251
|
if (!y.value) return [];
|
|
1252
1252
|
const S = b.value.find(
|
|
1253
1253
|
(F) => F.property === y.value.property
|
|
@@ -1259,7 +1259,7 @@ const Be = [
|
|
|
1259
1259
|
label: i(F),
|
|
1260
1260
|
value: F
|
|
1261
1261
|
})) : [];
|
|
1262
|
-
}), c =
|
|
1262
|
+
}), c = Ee, s = M(() => {
|
|
1263
1263
|
const S = c.safeParse(y.value);
|
|
1264
1264
|
return S.success ? [] : S.error.errors;
|
|
1265
1265
|
}), a = W(!1), y = W(
|
|
@@ -1269,12 +1269,12 @@ const Be = [
|
|
|
1269
1269
|
null
|
|
1270
1270
|
)
|
|
1271
1271
|
), T = M(() => {
|
|
1272
|
-
var
|
|
1272
|
+
var h;
|
|
1273
1273
|
const { property: S, negated: F, conditions: L } = y.value, H = Object.keys(L || {})[0], Q = Object.values(L || {})[0];
|
|
1274
1274
|
return {
|
|
1275
1275
|
property: S,
|
|
1276
1276
|
negated: F == !0,
|
|
1277
|
-
type: (
|
|
1277
|
+
type: (h = b.value.find((z) => z.property === S)) == null ? void 0 : h.type,
|
|
1278
1278
|
operator: H,
|
|
1279
1279
|
equator: Q
|
|
1280
1280
|
};
|
|
@@ -1306,9 +1306,9 @@ const Be = [
|
|
|
1306
1306
|
return ce(async () => {
|
|
1307
1307
|
await _.readMembership();
|
|
1308
1308
|
}), (S, F) => {
|
|
1309
|
-
const L =
|
|
1310
|
-
return r(), V("div",
|
|
1311
|
-
C("div",
|
|
1309
|
+
const L = E("FmIcon"), H = E("FmField"), Q = E("FmPill"), h = E("FmMenuItem"), z = E("FmMenu"), se = E("FmButton");
|
|
1310
|
+
return r(), V("div", mt, [
|
|
1311
|
+
C("div", it, A(e(n)("connect.template.rule.custom_modal.property")), 1),
|
|
1312
1312
|
v(z, {
|
|
1313
1313
|
shift: !0,
|
|
1314
1314
|
placement: "bottom-start",
|
|
@@ -1325,18 +1325,18 @@ const Be = [
|
|
|
1325
1325
|
}, null, 8, ["name"])
|
|
1326
1326
|
]),
|
|
1327
1327
|
default: B(() => [
|
|
1328
|
-
ne(A(o(e(
|
|
1328
|
+
ne(A(o(e(k))) + " ", 1)
|
|
1329
1329
|
]),
|
|
1330
1330
|
_: 1
|
|
1331
1331
|
})
|
|
1332
1332
|
]),
|
|
1333
1333
|
default: B(() => [
|
|
1334
|
-
(r(!0), V(q, null, $(e(b), (I) => (r(), g(
|
|
1334
|
+
(r(!0), V(q, null, $(e(b), (I) => (r(), g(h, {
|
|
1335
1335
|
key: I.property,
|
|
1336
1336
|
"model-value": e(y).property == I.property,
|
|
1337
1337
|
label: o(I),
|
|
1338
1338
|
disabled: I.premium && !e(te)().isPremium,
|
|
1339
|
-
onClick: (
|
|
1339
|
+
onClick: (St) => I.premium && !e(te)().isPremium ? null : u(I.property)
|
|
1340
1340
|
}, ye({ _: 2 }, [
|
|
1341
1341
|
I.premium ? {
|
|
1342
1342
|
name: "append",
|
|
@@ -1349,8 +1349,8 @@ const Be = [
|
|
|
1349
1349
|
]),
|
|
1350
1350
|
_: 1
|
|
1351
1351
|
}, 8, ["modelValue"]),
|
|
1352
|
-
C("div",
|
|
1353
|
-
C("div",
|
|
1352
|
+
C("div", dt, A(e(n)("connect.template.rule.custom_modal.check_to_perform")), 1),
|
|
1353
|
+
C("div", pt, [
|
|
1354
1354
|
v(O, {
|
|
1355
1355
|
class: "w-1/4",
|
|
1356
1356
|
items: [
|
|
@@ -1365,22 +1365,22 @@ const Be = [
|
|
|
1365
1365
|
}, null, 8, ["items", "model-value"]),
|
|
1366
1366
|
v(O, {
|
|
1367
1367
|
class: "flex-1",
|
|
1368
|
-
items: e(
|
|
1368
|
+
items: e(w),
|
|
1369
1369
|
"model-value": e(T).operator,
|
|
1370
1370
|
"onUpdate:modelValue": oe
|
|
1371
1371
|
}, null, 8, ["items", "model-value"])
|
|
1372
1372
|
]),
|
|
1373
1373
|
C("div", null, [
|
|
1374
|
-
C("div",
|
|
1375
|
-
e(T).type ? (r(), g(
|
|
1374
|
+
C("div", ct, A(e(n)("connect.template.rule.custom_modal.criteria")), 1),
|
|
1375
|
+
e(T).type ? (r(), g(st, {
|
|
1376
1376
|
key: 0,
|
|
1377
1377
|
type: e(T).type,
|
|
1378
1378
|
operator: e(T).operator,
|
|
1379
1379
|
"model-value": e(T).equator,
|
|
1380
1380
|
"onUpdate:modelValue": J
|
|
1381
|
-
}, null, 8, ["type", "operator", "model-value"])) :
|
|
1381
|
+
}, null, 8, ["type", "operator", "model-value"])) : P("", !0)
|
|
1382
1382
|
]),
|
|
1383
|
-
C("div",
|
|
1383
|
+
C("div", yt, [
|
|
1384
1384
|
v(se, {
|
|
1385
1385
|
onClick: F[2] || (F[2] = (I) => e(R).close()),
|
|
1386
1386
|
label: e(n)("connect.common.cancel"),
|
|
@@ -1388,14 +1388,14 @@ const Be = [
|
|
|
1388
1388
|
}, null, 8, ["label"]),
|
|
1389
1389
|
v(se, {
|
|
1390
1390
|
onClick: F[3] || (F[3] = (I) => ee()),
|
|
1391
|
-
disabled: e(s).length > 0,
|
|
1391
|
+
disabled: e(s).length > 0 || !e(k),
|
|
1392
1392
|
label: e(n)("connect.common.save")
|
|
1393
1393
|
}, null, 8, ["disabled", "label"])
|
|
1394
1394
|
])
|
|
1395
1395
|
]);
|
|
1396
1396
|
};
|
|
1397
1397
|
}
|
|
1398
|
-
}),
|
|
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({
|
|
1399
1399
|
__name: "PresetRuleDialog",
|
|
1400
1400
|
props: {
|
|
1401
1401
|
preset: {
|
|
@@ -1496,17 +1496,17 @@ const Be = [
|
|
|
1496
1496
|
i.value.name
|
|
1497
1497
|
);
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1499
|
+
function k() {
|
|
1500
1500
|
_(i.value), m("primary"), R.close();
|
|
1501
1501
|
}
|
|
1502
1502
|
const U = M(() => {
|
|
1503
|
-
const c =
|
|
1503
|
+
const c = he.safeParse(i.value);
|
|
1504
1504
|
return c.success ? [] : c.error.errors;
|
|
1505
1505
|
});
|
|
1506
1506
|
ce(async () => {
|
|
1507
1507
|
await f.readMembership();
|
|
1508
1508
|
});
|
|
1509
|
-
const
|
|
1509
|
+
const w = M(() => [
|
|
1510
1510
|
{
|
|
1511
1511
|
label: n("connect.template.rule.preset_modal.unit.day"),
|
|
1512
1512
|
value: "day"
|
|
@@ -1522,14 +1522,14 @@ const Be = [
|
|
|
1522
1522
|
]);
|
|
1523
1523
|
return (c, s) => {
|
|
1524
1524
|
var S, F, L, H, Q;
|
|
1525
|
-
const a =
|
|
1526
|
-
return r(), V("div",
|
|
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");
|
|
1526
|
+
return r(), V("div", bt, [
|
|
1527
1527
|
l.preset == "MIN_SPEND" ? (r(), g(a, {
|
|
1528
1528
|
key: 0,
|
|
1529
1529
|
label: e(n)("connect.template.rule.preset.minimum_spend"),
|
|
1530
1530
|
"model-value": e(p).equator,
|
|
1531
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
1532
|
-
}, null, 8, ["label", "model-value"])) :
|
|
1531
|
+
"onUpdate:modelValue": s[0] || (s[0] = (h) => b(h))
|
|
1532
|
+
}, null, 8, ["label", "model-value"])) : P("", !0),
|
|
1533
1533
|
l.preset == "LAST_X_DAY" ? (r(), g(a, {
|
|
1534
1534
|
key: 1,
|
|
1535
1535
|
label: "",
|
|
@@ -1537,30 +1537,30 @@ const Be = [
|
|
|
1537
1537
|
prepent: e(n)("connect.template.rule.preset_modal.day"),
|
|
1538
1538
|
"model-value": e(p).equator.x,
|
|
1539
1539
|
rules: [
|
|
1540
|
-
(
|
|
1540
|
+
(h) => h >= 0 || e(n)(
|
|
1541
1541
|
"connect.template.rule.preset_modal.value_must_be_greater_than_0"
|
|
1542
1542
|
)
|
|
1543
1543
|
],
|
|
1544
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
1544
|
+
"onUpdate:modelValue": s[1] || (s[1] = (h) => b({
|
|
1545
1545
|
op: "last",
|
|
1546
1546
|
unit: "day",
|
|
1547
1547
|
ignoreYear: !0,
|
|
1548
|
-
x:
|
|
1548
|
+
x: h
|
|
1549
1549
|
}))
|
|
1550
1550
|
}, null, 8, ["prepent", "model-value", "rules"])) : l.preset == "SPECIFIC_DATE" ? (r(), g(y, {
|
|
1551
1551
|
key: 2,
|
|
1552
1552
|
label: e(n)("connect.template.rule.preset.specific_date"),
|
|
1553
1553
|
"model-value": e(p).equator,
|
|
1554
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
1554
|
+
"onUpdate:modelValue": s[2] || (s[2] = (h) => b(h))
|
|
1555
1555
|
}, null, 8, ["label", "model-value"])) : l.preset == "SPECIFIC_TIMERANGE" ? (r(), g(T, {
|
|
1556
1556
|
key: 3,
|
|
1557
1557
|
label: e(n)("connect.template.rule.preset_modal.time_is_between"),
|
|
1558
1558
|
"disable-time-check": !0,
|
|
1559
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] = (
|
|
1560
|
+
"onUpdate:modelValue": s[3] || (s[3] = (h) => b([
|
|
1561
1561
|
{
|
|
1562
|
-
start:
|
|
1563
|
-
end:
|
|
1562
|
+
start: h[0],
|
|
1563
|
+
end: h[1]
|
|
1564
1564
|
}
|
|
1565
1565
|
]))
|
|
1566
1566
|
}, null, 8, ["label", "model-value"])) : l.preset == "WEEKLY" ? (r(), g(re, {
|
|
@@ -1568,15 +1568,15 @@ const Be = [
|
|
|
1568
1568
|
label: e(n)("connect.template.rule.preset.weekly"),
|
|
1569
1569
|
"fixed-frequency": !0,
|
|
1570
1570
|
"model-value": e(p).equator,
|
|
1571
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
1571
|
+
"onUpdate:modelValue": s[4] || (s[4] = (h) => b(h))
|
|
1572
1572
|
}, null, 8, ["label", "model-value"])) : l.preset == "MONTHLY" ? (r(), g(re, {
|
|
1573
1573
|
key: 5,
|
|
1574
1574
|
label: e(n)("connect.template.rule.preset.monthly"),
|
|
1575
1575
|
"fixed-frequency": !0,
|
|
1576
1576
|
"model-value": e(p).equator,
|
|
1577
|
-
"onUpdate:modelValue": s[5] || (s[5] = (
|
|
1577
|
+
"onUpdate:modelValue": s[5] || (s[5] = (h) => b(h))
|
|
1578
1578
|
}, null, 8, ["label", "model-value"])) : l.preset == "BIRTHDAY" ? (r(), V(q, { key: 6 }, [
|
|
1579
|
-
C("div",
|
|
1579
|
+
C("div", ft, [
|
|
1580
1580
|
v(u, {
|
|
1581
1581
|
label: e(n)("connect.template.rule.birthday.days_before"),
|
|
1582
1582
|
value: "_isDay",
|
|
@@ -1592,7 +1592,7 @@ const Be = [
|
|
|
1592
1592
|
);
|
|
1593
1593
|
})
|
|
1594
1594
|
}, null, 8, ["label", "model-value"]),
|
|
1595
|
-
C("div",
|
|
1595
|
+
C("div", gt, [
|
|
1596
1596
|
v(u, {
|
|
1597
1597
|
label: e(n)("connect.template.rule.preset_modal.is_in_this"),
|
|
1598
1598
|
value: "_isRange",
|
|
@@ -1610,17 +1610,17 @@ const Be = [
|
|
|
1610
1610
|
}, null, 8, ["label", "model-value"]),
|
|
1611
1611
|
e(p).operator == "_isRange" ? (r(), g(x, {
|
|
1612
1612
|
key: 0,
|
|
1613
|
-
items: e(
|
|
1613
|
+
items: e(w),
|
|
1614
1614
|
"model-value": e(p).equator.unit,
|
|
1615
|
-
"onUpdate:modelValue": s[8] || (s[8] = (
|
|
1615
|
+
"onUpdate:modelValue": s[8] || (s[8] = (h) => b(
|
|
1616
1616
|
{
|
|
1617
1617
|
op: "this",
|
|
1618
|
-
unit:
|
|
1618
|
+
unit: h,
|
|
1619
1619
|
ignoreYear: !0
|
|
1620
1620
|
},
|
|
1621
1621
|
"_isRange"
|
|
1622
1622
|
))
|
|
1623
|
-
}, null, 8, ["items", "model-value"])) :
|
|
1623
|
+
}, null, 8, ["items", "model-value"])) : P("", !0)
|
|
1624
1624
|
])
|
|
1625
1625
|
]),
|
|
1626
1626
|
e(p).operator == "_isDay" ? (r(), g(a, {
|
|
@@ -1628,17 +1628,17 @@ const Be = [
|
|
|
1628
1628
|
label: e(n)("connect.template.rule.birthday.days_before_label"),
|
|
1629
1629
|
"show-steppers": !1,
|
|
1630
1630
|
"model-value": e(p).equator.x,
|
|
1631
|
-
"onUpdate:modelValue": s[9] || (s[9] = (
|
|
1631
|
+
"onUpdate:modelValue": s[9] || (s[9] = (h) => b({
|
|
1632
1632
|
op: "after",
|
|
1633
|
-
x:
|
|
1633
|
+
x: h,
|
|
1634
1634
|
ignoreYear: !0
|
|
1635
1635
|
}))
|
|
1636
|
-
}, null, 8, ["label", "model-value"])) :
|
|
1636
|
+
}, null, 8, ["label", "model-value"])) : P("", !0)
|
|
1637
1637
|
], 64)) : l.preset == "TIER" ? (r(), V(q, { key: 7 }, [
|
|
1638
1638
|
v(oe, {
|
|
1639
1639
|
inline: !0,
|
|
1640
1640
|
"model-value": e(p).operator,
|
|
1641
|
-
"onUpdate:modelValue": s[10] || (s[10] = (
|
|
1641
|
+
"onUpdate:modelValue": s[10] || (s[10] = (h) => b(e(p).equator, h))
|
|
1642
1642
|
}, {
|
|
1643
1643
|
default: B(() => [
|
|
1644
1644
|
v(u, {
|
|
@@ -1657,12 +1657,12 @@ const Be = [
|
|
|
1657
1657
|
_: 1
|
|
1658
1658
|
}, 8, ["model-value"]),
|
|
1659
1659
|
v(O, {
|
|
1660
|
-
items: (e(f).sortedTiers ?? []).map((
|
|
1661
|
-
label: `Tier ${z + 1} - ${
|
|
1660
|
+
items: (e(f).sortedTiers ?? []).map((h, z) => ({
|
|
1661
|
+
label: `Tier ${z + 1} - ${h.name}`,
|
|
1662
1662
|
value: z + 1
|
|
1663
1663
|
})),
|
|
1664
1664
|
"model-value": e(p).equator,
|
|
1665
|
-
"onUpdate:modelValue": s[11] || (s[11] = (
|
|
1665
|
+
"onUpdate:modelValue": s[11] || (s[11] = (h) => b(h))
|
|
1666
1666
|
}, null, 8, ["items", "model-value"]),
|
|
1667
1667
|
v(J, {
|
|
1668
1668
|
text: d()
|
|
@@ -1670,26 +1670,26 @@ const Be = [
|
|
|
1670
1670
|
], 64)) : l.preset == "TITLE" ? (r(), g(O, {
|
|
1671
1671
|
key: 8,
|
|
1672
1672
|
label: e(n)("connect.template.rule.preset_modal.user_has_title"),
|
|
1673
|
-
items: (e(f).sortedTitles ?? []).map((
|
|
1674
|
-
label:
|
|
1675
|
-
value:
|
|
1673
|
+
items: (e(f).sortedTitles ?? []).map((h) => ({
|
|
1674
|
+
label: h.name,
|
|
1675
|
+
value: h._id
|
|
1676
1676
|
})),
|
|
1677
1677
|
"model-value": (Q = e(p).equator) == null ? void 0 : Q[0],
|
|
1678
|
-
"onUpdate:modelValue": s[12] || (s[12] = (
|
|
1679
|
-
}, 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),
|
|
1680
1680
|
v(J, {
|
|
1681
1681
|
class: "mt-[-8px]",
|
|
1682
1682
|
text: e(le).helperText(e(U), ""),
|
|
1683
1683
|
state: e(le).helperState(e(U), "")
|
|
1684
1684
|
}, null, 8, ["text", "state"]),
|
|
1685
|
-
C("div",
|
|
1685
|
+
C("div", _t, [
|
|
1686
1686
|
v(ee, {
|
|
1687
|
-
onClick: s[13] || (s[13] = (
|
|
1687
|
+
onClick: s[13] || (s[13] = (h) => e(R).close()),
|
|
1688
1688
|
label: e(n)("connect.common.cancel"),
|
|
1689
1689
|
variant: "tertiary"
|
|
1690
1690
|
}, null, 8, ["label"]),
|
|
1691
1691
|
v(ee, {
|
|
1692
|
-
onClick: s[14] || (s[14] = (
|
|
1692
|
+
onClick: s[14] || (s[14] = (h) => k()),
|
|
1693
1693
|
disabled: e(U).length > 0,
|
|
1694
1694
|
label: e(n)("connect.common.save")
|
|
1695
1695
|
}, null, 8, ["disabled", "label"])
|
|
@@ -1697,7 +1697,7 @@ const Be = [
|
|
|
1697
1697
|
]);
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
1700
|
-
}), Et = /* @__PURE__ */
|
|
1700
|
+
}), Et = /* @__PURE__ */ N({
|
|
1701
1701
|
__name: "RuleConfigurator",
|
|
1702
1702
|
props: {
|
|
1703
1703
|
triggerType: {
|
|
@@ -1707,6 +1707,10 @@ const Be = [
|
|
|
1707
1707
|
includeOnly: {
|
|
1708
1708
|
type: String
|
|
1709
1709
|
},
|
|
1710
|
+
allowSeasonEarned: {
|
|
1711
|
+
type: Boolean,
|
|
1712
|
+
default: !1
|
|
1713
|
+
},
|
|
1710
1714
|
modelValue: {
|
|
1711
1715
|
type: Object,
|
|
1712
1716
|
default: () => {
|
|
@@ -1740,10 +1744,10 @@ const Be = [
|
|
|
1740
1744
|
function b(c) {
|
|
1741
1745
|
const [s] = c.rules;
|
|
1742
1746
|
i.open({
|
|
1743
|
-
title:
|
|
1747
|
+
title: w(c),
|
|
1744
1748
|
closeButton: !1,
|
|
1745
1749
|
dismissAway: !1,
|
|
1746
|
-
contentComponent:
|
|
1750
|
+
contentComponent: kt,
|
|
1747
1751
|
contentComponentProps: {
|
|
1748
1752
|
preset: c.type,
|
|
1749
1753
|
defaultValue: s,
|
|
@@ -1751,15 +1755,16 @@ const Be = [
|
|
|
1751
1755
|
}
|
|
1752
1756
|
}).onPrimary((a) => o("update:model-value", a));
|
|
1753
1757
|
}
|
|
1754
|
-
function
|
|
1758
|
+
function k(c) {
|
|
1755
1759
|
i.open({
|
|
1756
1760
|
title: f("connect.template.rule.edit_rule"),
|
|
1757
1761
|
closeButton: !1,
|
|
1758
1762
|
dismissAway: !1,
|
|
1759
|
-
contentComponent:
|
|
1763
|
+
contentComponent: vt,
|
|
1760
1764
|
contentComponentProps: {
|
|
1761
1765
|
triggerType: d.triggerType,
|
|
1762
1766
|
includeOnly: d.includeOnly,
|
|
1767
|
+
allowSeasonEarned: d.allowSeasonEarned,
|
|
1763
1768
|
modelValue: c
|
|
1764
1769
|
}
|
|
1765
1770
|
}).onPrimary((s) => o("update:model-value", s));
|
|
@@ -1767,20 +1772,20 @@ const Be = [
|
|
|
1767
1772
|
function U(c) {
|
|
1768
1773
|
if (c.type == "CUSTOM") {
|
|
1769
1774
|
const [s] = c.rules;
|
|
1770
|
-
return
|
|
1775
|
+
return k(
|
|
1771
1776
|
Y.constructEntry(s.property, s.operator, s.equator)
|
|
1772
1777
|
);
|
|
1773
1778
|
}
|
|
1774
1779
|
return b(c);
|
|
1775
1780
|
}
|
|
1776
|
-
function
|
|
1781
|
+
function w(c) {
|
|
1777
1782
|
const s = t[c.name];
|
|
1778
1783
|
return s && n(s) ? f(s) : c.name;
|
|
1779
1784
|
}
|
|
1780
1785
|
return R({
|
|
1781
|
-
showCustomDialog:
|
|
1786
|
+
showCustomDialog: k
|
|
1782
1787
|
}), (c, s) => {
|
|
1783
|
-
const a =
|
|
1788
|
+
const a = E("FmButton"), y = E("FmPill"), T = E("FmMenuItem"), u = E("FmMenu");
|
|
1784
1789
|
return r(), g(u, {
|
|
1785
1790
|
shift: !0,
|
|
1786
1791
|
placement: "top-start"
|
|
@@ -1800,7 +1805,7 @@ const Be = [
|
|
|
1800
1805
|
), (x) => (r(), g(T, {
|
|
1801
1806
|
key: x.name,
|
|
1802
1807
|
"model-value": x.name == e(p),
|
|
1803
|
-
label:
|
|
1808
|
+
label: w(x),
|
|
1804
1809
|
onClick: () => {
|
|
1805
1810
|
x != null && x.premium && !e(m).isPremium || U(x);
|
|
1806
1811
|
},
|
|
@@ -1819,7 +1824,7 @@ const Be = [
|
|
|
1819
1824
|
});
|
|
1820
1825
|
};
|
|
1821
1826
|
}
|
|
1822
|
-
}),
|
|
1827
|
+
}), ht = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Lt = /* @__PURE__ */ N({
|
|
1823
1828
|
__name: "RuleGroup",
|
|
1824
1829
|
props: {
|
|
1825
1830
|
triggerType: {
|
|
@@ -1829,22 +1834,26 @@ const Be = [
|
|
|
1829
1834
|
includeOnly: {
|
|
1830
1835
|
type: String
|
|
1831
1836
|
},
|
|
1837
|
+
allowSeasonEarned: {
|
|
1838
|
+
type: Boolean,
|
|
1839
|
+
default: !1
|
|
1840
|
+
},
|
|
1832
1841
|
modelValue: {
|
|
1833
1842
|
type: Object
|
|
1834
1843
|
}
|
|
1835
1844
|
},
|
|
1836
1845
|
emits: ["update:model-value"],
|
|
1837
1846
|
setup(l, { emit: R }) {
|
|
1838
|
-
const _ = l, m = R, f =
|
|
1847
|
+
const _ = l, m = R, f = Ve(), { t: n } = G(), t = M(
|
|
1839
1848
|
() => _.modelValue ?? Y.scaffoldGroup()
|
|
1840
1849
|
), d = M(() => Y.getLogic(t.value)), o = M(() => [
|
|
1841
1850
|
{ label: n("connect.template.rule.and"), value: "&&" },
|
|
1842
1851
|
{ label: n("connect.template.rule.or"), value: "||" }
|
|
1843
1852
|
]), i = W();
|
|
1844
|
-
function p(b,
|
|
1853
|
+
function p(b, k) {
|
|
1845
1854
|
try {
|
|
1846
|
-
const U = Y.setRuleToGroup(b,
|
|
1847
|
-
Y.isRuleExceed(b,
|
|
1855
|
+
const U = Y.setRuleToGroup(b, k);
|
|
1856
|
+
Y.isRuleExceed(b, k), m("update:model-value", U);
|
|
1848
1857
|
} catch (U) {
|
|
1849
1858
|
f.open({
|
|
1850
1859
|
message: U.message,
|
|
@@ -1852,40 +1861,41 @@ const Be = [
|
|
|
1852
1861
|
});
|
|
1853
1862
|
}
|
|
1854
1863
|
}
|
|
1855
|
-
return (b,
|
|
1856
|
-
const U =
|
|
1857
|
-
return r(), g(
|
|
1864
|
+
return (b, k) => {
|
|
1865
|
+
const U = E("FmButtonGroup"), w = E("FmCard");
|
|
1866
|
+
return r(), g(w, { variant: "outlined" }, {
|
|
1858
1867
|
default: B(() => [
|
|
1859
|
-
v(
|
|
1868
|
+
v(w, { class: "border-l-4 border-fm-color-primary p-16 space-y-16" }, {
|
|
1860
1869
|
default: B(() => [
|
|
1861
|
-
C("div",
|
|
1870
|
+
C("div", ht, A(e(n)("connect.template.rule.when")), 1),
|
|
1862
1871
|
v(Et, {
|
|
1863
1872
|
ref_key: "configuratorRef",
|
|
1864
1873
|
ref: i,
|
|
1865
1874
|
"include-only": l.includeOnly,
|
|
1875
|
+
"allow-season-earned": l.allowSeasonEarned,
|
|
1866
1876
|
"trigger-type": l.triggerType,
|
|
1867
|
-
"onUpdate:modelValue":
|
|
1868
|
-
}, null, 8, ["include-only", "trigger-type"]),
|
|
1877
|
+
"onUpdate:modelValue": k[0] || (k[0] = (c) => p(e(t), c))
|
|
1878
|
+
}, null, 8, ["include-only", "allow-season-earned", "trigger-type"]),
|
|
1869
1879
|
(r(!0), V(q, null, $(e(t).rules, (c, s) => {
|
|
1870
1880
|
var a;
|
|
1871
1881
|
return r(), V(q, null, [
|
|
1872
|
-
e(
|
|
1882
|
+
e(Se)(c) ? (r(), g(qe, {
|
|
1873
1883
|
"model-value": c,
|
|
1874
1884
|
key: s,
|
|
1875
1885
|
onEdit: (a = e(i)) == null ? void 0 : a.showCustomDialog,
|
|
1876
|
-
onRemove:
|
|
1886
|
+
onRemove: k[1] || (k[1] = (y) => {
|
|
1877
1887
|
m(
|
|
1878
1888
|
"update:model-value",
|
|
1879
1889
|
e(Y).removeEntry(e(t), y.name)
|
|
1880
1890
|
);
|
|
1881
1891
|
})
|
|
1882
|
-
}, null, 8, ["model-value", "onEdit"])) :
|
|
1892
|
+
}, null, 8, ["model-value", "onEdit"])) : P("", !0),
|
|
1883
1893
|
v(U, {
|
|
1884
1894
|
class: "w-[200px]",
|
|
1885
1895
|
disabled: Object.keys(e(t).rules).length < 2,
|
|
1886
1896
|
items: e(o),
|
|
1887
1897
|
"model-value": e(o).find((y) => y.value === e(d)) ?? null,
|
|
1888
|
-
"onUpdate:modelValue":
|
|
1898
|
+
"onUpdate:modelValue": k[2] || (k[2] = (y) => m(
|
|
1889
1899
|
"update:model-value",
|
|
1890
1900
|
e(Y).setRuleToGroup(
|
|
1891
1901
|
e(t),
|
|
@@ -1906,6 +1916,6 @@ const Be = [
|
|
|
1906
1916
|
}
|
|
1907
1917
|
});
|
|
1908
1918
|
export {
|
|
1909
|
-
|
|
1910
|
-
|
|
1919
|
+
re as _,
|
|
1920
|
+
Lt as a
|
|
1911
1921
|
};
|