@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-beta.81
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-DsB2o1oB.js → App-CKdnfhUE.js} +853 -683
- package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-vN-szmrB.js} +16 -13
- package/dist/{Bin-DMr7K8Kj.js → Bin-FIyWozvZ.js} +8 -8
- package/dist/Broadcast-CV_euppF.js +306 -0
- package/dist/CampaignAnalytic-Dlovlsh3.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Fd_0aPzZ.js} +8 -5
- package/dist/Card-ZgfOZ7sV.js +1086 -0
- package/dist/{Collections-B0uGC2FE.js → Collections-DZmHKbZn.js} +14 -13
- package/dist/Credit-DGsbEvMw.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cj89MnB0.js +53 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C77dXZo-.js +4432 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-CcIiEV2Z.js} +36 -36
- package/dist/Experience-DlJycdKe.js +288 -0
- package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-DVGF0TBc.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-q2X_SSup.js +356 -0
- package/dist/GiftCardSetup-BLDm3RfC.js +736 -0
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CBC5AGR-.js +424 -0
- package/dist/Goals-CD8vdUPQ.js +247 -0
- package/dist/{Grab-DmmwrGzk.js → Grab-KDYktOCn.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-DUi1YY1x.js} +1 -1
- package/dist/{Index-m7l4insz.js → Index-BT4esMkG.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js → LocationPicker.vue_vue_type_script_setup_true_lang-BRCrx3DA.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D3G4alTX.js} +1 -1
- package/dist/LoyaltyDashboard-CzmwuzTw.js +2911 -0
- package/dist/MainLayout-CVYfxfuS.js +143 -0
- package/dist/{Marketing-C9pSIdBU.js → Marketing-sDWWcaL5.js} +7 -6
- package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-DHmI38Lo.js} +15 -14
- package/dist/Member-sdcMiTmr.js +654 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DqchRq6h.js +1281 -0
- package/dist/MemberImportHistory-Df_5SiGn.js +187 -0
- package/dist/MemberList-BGoClGZE.js +334 -0
- package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-qR38yGk5.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-D4yY57Vo.js} +5928 -5644
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Co9oeOFx.js +40 -0
- package/dist/Mission-DSyqYeI6.js +363 -0
- package/dist/{Overview-DOJj4XvO.js → Overview-BDM8Lxfv.js} +23 -20
- package/dist/Overview-sLhLv5Oa.js +1316 -0
- package/dist/Point-DO5Z5sOL.js +297 -0
- package/dist/Promotion-BXm1Dxlv.js +426 -0
- package/dist/{Queue-55G2gtP5.js → Queue-C4kEj_Bp.js} +16 -13
- package/dist/{Record-DNPI02c6.js → Record-iKUy-nn3.js} +9 -9
- package/dist/Review-D-3-BRON.js +45 -0
- package/dist/ReviewFacebookCallback-SLzE3D7c.js +238 -0
- package/dist/ReviewGoogleCallback-DntrtfGB.js +213 -0
- package/dist/{Reward-CnP8R2pS.js → Reward-CNQS6F2m.js} +28 -28
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-D0ZNJilO.js} +26 -23
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgvaMOAJ.js} +198 -186
- package/dist/{Segment-CxiQnnyj.js → Segment-Bi58A7cw.js} +278 -276
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CxC6ZLZT.js} +45 -42
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CToVAWKO.js} +4 -4
- package/dist/Setting-CixcOp_l.js +574 -0
- package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-DkPNDfxz.js} +12 -12
- package/dist/Settings-bD_DkKI0.js +230 -0
- package/dist/Store-BvnsumDX.js +2615 -0
- package/dist/{StoreRewards-DILeipMG.js → StoreRewards-CKPnV_j3.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-k46T2rql.js +1319 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-IknvTIMG.js} +2 -2
- package/dist/{Tier-BAZ1xuKL.js → Tier-CiKGy-Do.js} +2576 -757
- package/dist/{Title-CcNAt47f.js → Title-CNFamvkQ.js} +41 -37
- package/dist/Transaction-C8SnyFML.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DQrTH7cz.js} +26 -26
- package/dist/Voucher-9Q-GHuvD.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-B-6mF0RH.js} +118 -124
- package/dist/WhatsappAccount-DRKJVs0I.js +325 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DGOPGiGH.js +96 -0
- package/dist/WhatsappBot-muUmTIyY.js +441 -0
- package/dist/WhatsappBotSettings-DUjKwiv6.js +136 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-7tSuZ_C3.js} +2 -2
- package/dist/{app-Z-UKRG5V.js → app-CQnX8TXq.js} +50951 -42514
- package/dist/app.js +1 -1
- package/dist/base.export-CwCY41wr.js +75 -0
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-C7EF6cKC.js → business-DGYo03yh.js} +5 -5
- package/dist/campaign-BFhMhQWk.js +400 -0
- package/dist/campaign-BmVMseCM.js +100 -0
- package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/campaign.fn-DHdhR9C8.js +776 -0
- package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-CYrQd8Th.js +26 -0
- package/dist/currency-B7wFZjCM.js +7 -0
- package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-C62eVSKZ.js} +11 -11
- package/dist/{effect-BcB8IlTI.js → effect-XVC0SyM1.js} +1 -1
- package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-DUWzbknH.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-BSgrCJRv.js → helper-Bw_KFook.js} +1 -1
- package/dist/index-B88wz0DA.js +53 -0
- package/dist/{index-iMPtFp54.js → index-BHPcqvxB.js} +10 -9
- package/dist/{index-HXiYGO4_.js → index-BL01AAGF.js} +6343 -7693
- package/dist/index-BpcakDLo.js +32438 -0
- package/dist/{index-VlFWaBrg.js → index-Bu0rl1Jm.js} +1 -1
- package/dist/{index-BpI-BI4H.js → index-C0WVYJgp.js} +4 -4
- package/dist/index-C5a9ZaAM.js +151 -0
- package/dist/{index-CsoBDon4.js → index-CRX2b_-n.js} +1590 -1523
- package/dist/{index-CIBPhxlC.js → index-CSaO5mCs.js} +105 -123
- package/dist/{index-hlyg-wxV.js → index-CX2tKi6X.js} +1 -1
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-BoYEqLif.js → index-CmJ4UtbH.js} +1517 -263
- package/dist/index-CoaZuwwm.js +172 -0
- package/dist/{index-Bf6jNZit.js → index-CsZ7_Qzf.js} +24 -9
- package/dist/index-D5D85re4.js +902 -0
- package/dist/index-D89ye2yV.js +74 -0
- package/dist/index-DHRVhERM.js +14550 -0
- package/dist/index-DKabvlsg.js +69 -0
- package/dist/{index-CoHWpylO.js → index-DlFjUct2.js} +2140 -2557
- package/dist/index-XCHxkJPE.js +137 -0
- package/dist/index-o2Ga_qaX.js +39 -0
- package/dist/index-z0K48rtR.js +54 -0
- package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-cOXL--fX.js} +164 -164
- package/dist/{loading-CSXr0Yqz.js → loading-BlfJuA-h.js} +1 -1
- package/dist/{lodash-Bh7XKI-R.js → lodash-CFkpI5Sp.js} +1 -1
- package/dist/member-import-B4ihDPgR.js +188 -0
- package/dist/membership-CyNEU3ld.js +274 -0
- package/dist/{money-BZIST_m9.js → money-B0QV3AtE.js} +1 -1
- package/dist/{number-DXLR2w95.js → number-DJ7EhoTu.js} +1 -1
- package/dist/objectid-DZ8o9_J4.js +145 -0
- package/dist/onboarding-BhMbuIRK.js +131 -0
- package/dist/onboardingSetup-BZMYTun6.js +17 -0
- package/dist/{plugins-4FlbwoES.js → plugins-C7hEP98r.js} +13 -12
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-DUbl79bZ.js → reward-D4975Y4s.js} +1 -1
- package/dist/{rule-BQUoZ4l_.js → rule-BfSrqM9Z.js} +337 -275
- package/dist/style.css +1 -1
- package/dist/{template-BoiSG7G7.js → template-CTCYJKDu.js} +6 -6
- package/dist/timezone-hBjTK85u.js +20 -0
- package/dist/transaction.fn-1iGyAGZA.js +71 -0
- package/dist/{trigger-D5g5m6tT.js → trigger-CdJikvw9.js} +17 -17
- package/dist/useMarketingMaterialActions-R1rDbIr8.js +96 -0
- package/dist/{usePagination-DHePBBoR.js → usePagination-CqSRHo9z.js} +1 -1
- package/dist/{user-C_ToSo-g.js → user-C8i4TfQt.js} +1 -1
- package/dist/vue-i18n-CiJ_kNkt.js +2365 -0
- package/dist/{xlsx-h4G1C-xj.js → xlsx-DGiPalb9.js} +440 -440
- package/dist/{zod-CgigfJar.js → zod-CKl6yP5K.js} +1 -1
- package/package.json +10 -6
- package/dist/Broadcast-C9akM-TB.js +0 -266
- package/dist/Card-DRkIYs0M.js +0 -910
- package/dist/Credit-V5YA_hGx.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-CYQMXARx.js +0 -3377
- package/dist/Experience-WTWy5yY6.js +0 -259
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-BwOfTCW5.js +0 -330
- package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
- package/dist/MainLayout-Du5kZOtA.js +0 -41
- package/dist/Member-DUV_vbPI.js +0 -280
- package/dist/MemberList-Ye4nOk-i.js +0 -1601
- package/dist/Mission-BBmCGpt8.js +0 -334
- package/dist/Point-Bzg6hi6o.js +0 -262
- package/dist/Promotion-BMXIp_ef.js +0 -397
- package/dist/Review-CYNPPxYU.js +0 -1141
- package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
- package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js +0 -181
- package/dist/Setting-jHAjccod.js +0 -2047
- package/dist/Store-Cu-hKmVa.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
- package/dist/Transaction-D7DO3dKQ.js +0 -39
- package/dist/Voucher-Cq-n1CaC.js +0 -421
- package/dist/campaign--MjoY1Mn.js +0 -219
- package/dist/campaign-DHBuP4UA.js +0 -277
- package/dist/campaign.fn-Bd34dVnx.js +0 -776
- package/dist/export-CjB7qxZ9.js +0 -97
- package/dist/index-BIAjmMga.js +0 -85
- package/dist/index-Bm0QPucw.js +0 -67
- package/dist/index-Bv4MBLQ5.js +0 -52
- package/dist/index-hbyCVNa7.js +0 -30289
- package/dist/membership-CfredTm3.js +0 -255
- package/dist/objectid-Dg4ZodlT.js +0 -145
- package/dist/useMarketingMaterialActions-B-Jlw2Z9.js +0 -107
- package/dist/vue-i18n-BcYh6_51.js +0 -2365
|
@@ -1,22 +1,24 @@
|
|
|
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-CRX2b_-n.js";
|
|
3
|
+
import { R as Y, i as Se } from "./index-CmJ4UtbH.js";
|
|
4
|
+
import { useDialog as ue, useDialogChild as ve, useSnackbar as Ve } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as G } from "./vue-i18n-CiJ_kNkt.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-BfSrqM9Z.js";
|
|
7
|
+
import { p as Ue } from "./plugins-C7hEP98r.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-CQnX8TXq.js";
|
|
10
|
+
import { u as X } from "./membership-CyNEU3ld.js";
|
|
11
|
+
import { u as te } from "./business-DGYo03yh.js";
|
|
12
|
+
import "./index-BL01AAGF.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
|
-
|
|
15
|
+
import { Z as le } from "./zod-CKl6yP5K.js";
|
|
16
|
+
import "./index-DlFjUct2.js";
|
|
17
|
+
import "./index-D5D85re4.js";
|
|
18
|
+
import "./index-BHPcqvxB.js";
|
|
19
|
+
import "./index-o2Ga_qaX.js";
|
|
20
|
+
import "./index-CoaZuwwm.js";
|
|
21
|
+
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
22
|
__name: "RuleEntry",
|
|
21
23
|
props: {
|
|
22
24
|
modelValue: {
|
|
@@ -35,7 +37,7 @@ const Oe = { class: "flex items-center justify-between" }, De = { class: "flex i
|
|
|
35
37
|
equator: o
|
|
36
38
|
};
|
|
37
39
|
}), f = R, n = M(
|
|
38
|
-
() =>
|
|
40
|
+
() => Te(
|
|
39
41
|
m.value.property,
|
|
40
42
|
m.value.operator,
|
|
41
43
|
m.value.equator,
|
|
@@ -46,12 +48,12 @@ const Oe = { class: "flex items-center justify-between" }, De = { class: "flex i
|
|
|
46
48
|
d.stopPropagation(), await Ue.remove("Are you sure you want to remove this rule?") && f("remove", _.modelValue);
|
|
47
49
|
}
|
|
48
50
|
return (d, o) => {
|
|
49
|
-
var
|
|
50
|
-
const i =
|
|
51
|
+
var k;
|
|
52
|
+
const i = E("FmChip"), p = E("FmTooltip"), b = E("FmIcon");
|
|
51
53
|
return r(), V("div", Oe, [
|
|
52
|
-
C("div",
|
|
54
|
+
C("div", we, [
|
|
53
55
|
v(i, {
|
|
54
|
-
label: (
|
|
56
|
+
label: (k = e(ge).find((U) => U.property === _.modelValue.property)) == null ? void 0 : k.name,
|
|
55
57
|
class: "!text-fm-color-typo-info !bg-fm-color-system-info-100"
|
|
56
58
|
}, null, 8, ["label"]),
|
|
57
59
|
o[1] || (o[1] = C("div", { class: "h-[26px] border-l-2 rounded-md border-fm-color-neutral-gray-100" }, null, -1)),
|
|
@@ -65,7 +67,7 @@ const Oe = { class: "flex items-center justify-between" }, De = { class: "flex i
|
|
|
65
67
|
content: e(n)[1]
|
|
66
68
|
}, {
|
|
67
69
|
default: B(() => [
|
|
68
|
-
C("div",
|
|
70
|
+
C("div", De, A(e(n)[1]), 1)
|
|
69
71
|
]),
|
|
70
72
|
_: 1
|
|
71
73
|
}, 8, ["content"])
|
|
@@ -343,7 +345,7 @@ const Be = [
|
|
|
343
345
|
}
|
|
344
346
|
]
|
|
345
347
|
}
|
|
346
|
-
], Me = { class: "flex flex-nowrap gap-x-4 items-center" }, Ie = /* @__PURE__ */
|
|
348
|
+
], Me = { class: "flex flex-nowrap gap-x-4 items-center" }, Ie = /* @__PURE__ */ N({
|
|
347
349
|
__name: "IsDayInput",
|
|
348
350
|
props: {
|
|
349
351
|
modelValue: {
|
|
@@ -373,7 +375,7 @@ const Be = [
|
|
|
373
375
|
}
|
|
374
376
|
return (t, d) => {
|
|
375
377
|
var i, p, b;
|
|
376
|
-
const o =
|
|
378
|
+
const o = E("FmStepperField");
|
|
377
379
|
return r(), V("div", Me, [
|
|
378
380
|
v(o, {
|
|
379
381
|
class: "w-1/3",
|
|
@@ -381,7 +383,7 @@ const Be = [
|
|
|
381
383
|
max: 365,
|
|
382
384
|
"show-steppers": !1,
|
|
383
385
|
"append-text": "days",
|
|
384
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
386
|
+
"onUpdate:modelValue": d[0] || (d[0] = (k) => n({ x: k }))
|
|
385
387
|
}, null, 8, ["model-value"]),
|
|
386
388
|
v(O, {
|
|
387
389
|
"model-value": ((p = l.modelValue) == null ? void 0 : p.op) ?? void 0,
|
|
@@ -392,7 +394,7 @@ const Be = [
|
|
|
392
394
|
},
|
|
393
395
|
{ label: e(_)("connect.template.rule.is_day.after"), value: "after" }
|
|
394
396
|
],
|
|
395
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
397
|
+
"onUpdate:modelValue": d[1] || (d[1] = (k) => n({ op: k }))
|
|
396
398
|
}, null, 8, ["model-value", "items"]),
|
|
397
399
|
v(O, {
|
|
398
400
|
"model-value": ((b = l.modelValue) == null ? void 0 : b.ignoreYear) ?? !1,
|
|
@@ -407,12 +409,12 @@ const Be = [
|
|
|
407
409
|
}
|
|
408
410
|
],
|
|
409
411
|
required: !0,
|
|
410
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
412
|
+
"onUpdate:modelValue": d[2] || (d[2] = (k) => n({ ignoreYear: k == !0 }))
|
|
411
413
|
}, null, 8, ["model-value", "items"])
|
|
412
414
|
]);
|
|
413
415
|
};
|
|
414
416
|
}
|
|
415
|
-
}), Ae = { class: "grid grid-cols-4 gap-x-4 items-center" },
|
|
417
|
+
}), Ae = { class: "grid grid-cols-4 gap-x-4 items-center" }, Pe = /* @__PURE__ */ N({
|
|
416
418
|
__name: "IsRangeInput",
|
|
417
419
|
props: {
|
|
418
420
|
modelValue: {
|
|
@@ -461,8 +463,8 @@ const Be = [
|
|
|
461
463
|
}
|
|
462
464
|
];
|
|
463
465
|
return (d, o) => {
|
|
464
|
-
var p, b,
|
|
465
|
-
const i =
|
|
466
|
+
var p, b, k, U, w;
|
|
467
|
+
const i = E("FmStepperField");
|
|
466
468
|
return r(), V("div", Ae, [
|
|
467
469
|
v(O, {
|
|
468
470
|
"model-value": (p = l.modelValue) == null ? void 0 : p.op,
|
|
@@ -473,7 +475,7 @@ const Be = [
|
|
|
473
475
|
}, null, 8, ["model-value"]),
|
|
474
476
|
((b = l.modelValue) == null ? void 0 : b.op) != "this" ? (r(), g(i, {
|
|
475
477
|
key: 0,
|
|
476
|
-
"model-value": ((
|
|
478
|
+
"model-value": ((k = l.modelValue) == null ? void 0 : k.x) || 0,
|
|
477
479
|
max: 365,
|
|
478
480
|
"show-steppers": !1,
|
|
479
481
|
"onUpdate:modelValue": o[1] || (o[1] = (c) => f("update:model-value", {
|
|
@@ -482,7 +484,7 @@ const Be = [
|
|
|
482
484
|
ignoreYear: l.modelValue.ignoreYear == !0,
|
|
483
485
|
x: c
|
|
484
486
|
}))
|
|
485
|
-
}, null, 8, ["model-value"])) :
|
|
487
|
+
}, null, 8, ["model-value"])) : P("", !0),
|
|
486
488
|
v(O, {
|
|
487
489
|
"model-value": (U = l.modelValue) == null ? void 0 : U.unit,
|
|
488
490
|
label: "",
|
|
@@ -492,7 +494,7 @@ const Be = [
|
|
|
492
494
|
}, null, 8, ["model-value"]),
|
|
493
495
|
v(O, {
|
|
494
496
|
label: "",
|
|
495
|
-
"model-value": (
|
|
497
|
+
"model-value": (w = l.modelValue) == null ? void 0 : w.ignoreYear,
|
|
496
498
|
items: [
|
|
497
499
|
{ label: "same", value: !1 },
|
|
498
500
|
{ label: "ignore", value: !0 }
|
|
@@ -506,7 +508,7 @@ const Be = [
|
|
|
506
508
|
]);
|
|
507
509
|
};
|
|
508
510
|
}
|
|
509
|
-
}),
|
|
511
|
+
}), Ne = { class: "space-y-8" }, Le = { class: "text-fm-color-primary rounded-md border-dashed border-2 p-8" }, $e = {
|
|
510
512
|
key: 0,
|
|
511
513
|
class: "flex items-center gap-8"
|
|
512
514
|
}, He = { class: "flex gap-4" }, We = {
|
|
@@ -524,7 +526,7 @@ const Be = [
|
|
|
524
526
|
}, Je = { class: "flex gap-4" }, et = {
|
|
525
527
|
key: 4,
|
|
526
528
|
class: "flex items-center justify-end gap-8"
|
|
527
|
-
}, re = /* @__PURE__ */
|
|
529
|
+
}, re = /* @__PURE__ */ N({
|
|
528
530
|
__name: "RruleInput",
|
|
529
531
|
props: {
|
|
530
532
|
modelValue: {
|
|
@@ -544,7 +546,7 @@ const Be = [
|
|
|
544
546
|
setup(l, { emit: R }) {
|
|
545
547
|
const { t: _ } = G(), m = l, f = R;
|
|
546
548
|
function n(o, i) {
|
|
547
|
-
return new
|
|
549
|
+
return new D({
|
|
548
550
|
...o,
|
|
549
551
|
dtstart: xe({
|
|
550
552
|
startDate: m.startDate,
|
|
@@ -553,10 +555,10 @@ const Be = [
|
|
|
553
555
|
});
|
|
554
556
|
}
|
|
555
557
|
const t = W(
|
|
556
|
-
m.modelValue ?
|
|
558
|
+
m.modelValue ? D.fromString(m.modelValue) : n({
|
|
557
559
|
dtstart: m.startDate,
|
|
558
|
-
freq:
|
|
559
|
-
wkst:
|
|
560
|
+
freq: D.DAILY,
|
|
561
|
+
wkst: D.SU,
|
|
560
562
|
interval: 1,
|
|
561
563
|
byhour: 0,
|
|
562
564
|
byminute: 0,
|
|
@@ -567,7 +569,7 @@ const Be = [
|
|
|
567
569
|
var i;
|
|
568
570
|
if ("freq" in o)
|
|
569
571
|
switch (o.freq) {
|
|
570
|
-
case
|
|
572
|
+
case D.WEEKLY:
|
|
571
573
|
t.value = n(
|
|
572
574
|
{
|
|
573
575
|
freq: o.freq,
|
|
@@ -575,13 +577,13 @@ const Be = [
|
|
|
575
577
|
byhour: 0,
|
|
576
578
|
byminute: 0,
|
|
577
579
|
bysecond: 0,
|
|
578
|
-
wkst:
|
|
579
|
-
byweekday: [
|
|
580
|
+
wkst: D.SU,
|
|
581
|
+
byweekday: [D.MO]
|
|
580
582
|
},
|
|
581
583
|
t.value
|
|
582
584
|
);
|
|
583
585
|
break;
|
|
584
|
-
case
|
|
586
|
+
case D.MONTHLY:
|
|
585
587
|
t.value = n(
|
|
586
588
|
{
|
|
587
589
|
freq: o.freq,
|
|
@@ -590,12 +592,12 @@ const Be = [
|
|
|
590
592
|
byminute: 0,
|
|
591
593
|
bysecond: 0,
|
|
592
594
|
bymonthday: [(/* @__PURE__ */ new Date()).getDate()],
|
|
593
|
-
wkst:
|
|
595
|
+
wkst: D.SU
|
|
594
596
|
},
|
|
595
597
|
t.value
|
|
596
598
|
);
|
|
597
599
|
break;
|
|
598
|
-
case
|
|
600
|
+
case D.YEARLY:
|
|
599
601
|
t.value = n(
|
|
600
602
|
{
|
|
601
603
|
freq: o.freq,
|
|
@@ -603,7 +605,7 @@ const Be = [
|
|
|
603
605
|
byhour: 0,
|
|
604
606
|
byminute: 0,
|
|
605
607
|
bysecond: 0,
|
|
606
|
-
wkst:
|
|
608
|
+
wkst: D.SU,
|
|
607
609
|
bymonth: [(/* @__PURE__ */ new Date()).getMonth() + 1],
|
|
608
610
|
bymonthday: [(/* @__PURE__ */ new Date()).getDate()]
|
|
609
611
|
},
|
|
@@ -618,7 +620,7 @@ const Be = [
|
|
|
618
620
|
byhour: 0,
|
|
619
621
|
byminute: 0,
|
|
620
622
|
bysecond: 0,
|
|
621
|
-
wkst:
|
|
623
|
+
wkst: D.SU
|
|
622
624
|
},
|
|
623
625
|
t.value
|
|
624
626
|
);
|
|
@@ -629,7 +631,7 @@ const Be = [
|
|
|
629
631
|
interval: o.interval
|
|
630
632
|
},
|
|
631
633
|
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 ==
|
|
634
|
+
)), "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
635
|
{
|
|
634
636
|
...t.value.origOptions,
|
|
635
637
|
bymonthday: [],
|
|
@@ -674,16 +676,16 @@ const Be = [
|
|
|
674
676
|
return pe(
|
|
675
677
|
() => m.modelValue,
|
|
676
678
|
(o) => {
|
|
677
|
-
!o || o === t.value.toString() || (t.value =
|
|
679
|
+
!o || o === t.value.toString() || (t.value = D.fromString(o));
|
|
678
680
|
}
|
|
679
681
|
), Z(() => {
|
|
680
682
|
m.modelValue || f("update:model-value", t.value.toString());
|
|
681
683
|
}), (o, i) => {
|
|
682
|
-
var
|
|
683
|
-
const p =
|
|
684
|
-
return r(), V("div",
|
|
684
|
+
var w, c, s;
|
|
685
|
+
const p = E("FmStepperField"), b = E("FmChip"), k = E("FmButtonGroup"), U = E("FmButton");
|
|
686
|
+
return r(), V("div", Ne, [
|
|
685
687
|
C("div", Le, A(e(Fe)(e(t).options)), 1),
|
|
686
|
-
l.fixedFrequency ?
|
|
688
|
+
l.fixedFrequency ? P("", !0) : (r(), V("div", $e, [
|
|
687
689
|
C("div", null, A(e(_)("connect.template.rule.rrule.repeat_every")), 1),
|
|
688
690
|
v(p, {
|
|
689
691
|
class: "w-[100px]",
|
|
@@ -698,7 +700,7 @@ const Be = [
|
|
|
698
700
|
"onUpdate:modelValue": i[1] || (i[1] = (a) => d({ freq: a }))
|
|
699
701
|
}, null, 8, ["items", "model-value"])
|
|
700
702
|
])),
|
|
701
|
-
e(t).options.freq === e(
|
|
703
|
+
e(t).options.freq === e(D).WEEKLY ? (r(), V(q, { key: 1 }, [
|
|
702
704
|
i[8] || (i[8] = C("div", null, "Repeat on", -1)),
|
|
703
705
|
C("div", He, [
|
|
704
706
|
(r(!0), V(q, null, $(e(j).weekdays, (a) => {
|
|
@@ -717,9 +719,9 @@ const Be = [
|
|
|
717
719
|
}, null, 8, ["class", "label", "onClick"]);
|
|
718
720
|
}), 128))
|
|
719
721
|
])
|
|
720
|
-
], 64)) :
|
|
721
|
-
e(t).options.freq == e(
|
|
722
|
-
v(
|
|
722
|
+
], 64)) : P("", !0),
|
|
723
|
+
e(t).options.freq == e(D).MONTHLY ? (r(), V(q, { key: 2 }, [
|
|
724
|
+
v(k, {
|
|
723
725
|
"model-value": e(t).options.bymonthday.length ? { label: "Each" } : { label: "On the" },
|
|
724
726
|
items: [
|
|
725
727
|
{
|
|
@@ -744,7 +746,7 @@ const Be = [
|
|
|
744
746
|
])) : (r(), V("div", Ke, [
|
|
745
747
|
v(O, {
|
|
746
748
|
items: e(j).ordinals,
|
|
747
|
-
"model-value": (
|
|
749
|
+
"model-value": (w = e(t).options.bysetpos) == null ? void 0 : w[0],
|
|
748
750
|
"onUpdate:modelValue": i[3] || (i[3] = (a) => d({ bysetpos: a }))
|
|
749
751
|
}, null, 8, ["items", "model-value"]),
|
|
750
752
|
C("div", Ge, [
|
|
@@ -764,8 +766,8 @@ const Be = [
|
|
|
764
766
|
}), 128))
|
|
765
767
|
])
|
|
766
768
|
]))
|
|
767
|
-
], 64)) :
|
|
768
|
-
e(t).options.freq == e(
|
|
769
|
+
], 64)) : P("", !0),
|
|
770
|
+
e(t).options.freq == e(D).YEARLY ? (r(), V(q, { key: 3 }, [
|
|
769
771
|
i[9] || (i[9] = C("div", null, "Month", -1)),
|
|
770
772
|
C("div", Qe, [
|
|
771
773
|
(r(!0), V(q, null, $(e(j).months, (a) => {
|
|
@@ -786,7 +788,7 @@ const Be = [
|
|
|
786
788
|
}, null, 8, ["class", "label", "onClick"]);
|
|
787
789
|
}), 128))
|
|
788
790
|
]),
|
|
789
|
-
v(
|
|
791
|
+
v(k, {
|
|
790
792
|
"model-value": e(t).options.bymonthday.length ? { label: "Each" } : { label: "On the" },
|
|
791
793
|
items: [
|
|
792
794
|
{
|
|
@@ -801,7 +803,7 @@ const Be = [
|
|
|
801
803
|
bymonthday: [1],
|
|
802
804
|
bymonth: e(t).options.bymonth ?? [1]
|
|
803
805
|
}) : d({
|
|
804
|
-
byweekday: [e(
|
|
806
|
+
byweekday: [e(D).SU.nth(1)],
|
|
805
807
|
bymonth: e(t).options.bymonth ?? [1]
|
|
806
808
|
});
|
|
807
809
|
})
|
|
@@ -845,7 +847,7 @@ const Be = [
|
|
|
845
847
|
}), 128))
|
|
846
848
|
])
|
|
847
849
|
]))
|
|
848
|
-
], 64)) :
|
|
850
|
+
], 64)) : P("", !0),
|
|
849
851
|
l.applyButton ? (r(), V("div", et, [
|
|
850
852
|
v(U, {
|
|
851
853
|
label: "Cancel",
|
|
@@ -856,11 +858,11 @@ const Be = [
|
|
|
856
858
|
label: "Apply",
|
|
857
859
|
onClick: i[7] || (i[7] = (a) => f("update:model-value", e(t).toString()))
|
|
858
860
|
})
|
|
859
|
-
])) :
|
|
861
|
+
])) : P("", !0)
|
|
860
862
|
]);
|
|
861
863
|
};
|
|
862
864
|
}
|
|
863
|
-
}), tt = { class: "grid grid-cols-4 gap-8 w-full flex-wrap py-16" }, lt = /* @__PURE__ */
|
|
865
|
+
}), tt = { class: "grid grid-cols-4 gap-8 w-full flex-wrap py-16" }, lt = /* @__PURE__ */ N({
|
|
864
866
|
__name: "IsInMonthInput",
|
|
865
867
|
props: {
|
|
866
868
|
modelValue: {
|
|
@@ -878,7 +880,7 @@ const Be = [
|
|
|
878
880
|
return Z(() => {
|
|
879
881
|
_.modelValue || m("update:model-value", []);
|
|
880
882
|
}), (n, t) => {
|
|
881
|
-
const d =
|
|
883
|
+
const d = E("FmChip");
|
|
882
884
|
return r(), V("div", tt, [
|
|
883
885
|
(r(!0), V(q, null, $(e(f), (o) => {
|
|
884
886
|
var i, p;
|
|
@@ -894,14 +896,14 @@ const Be = [
|
|
|
894
896
|
compact: !0,
|
|
895
897
|
onClick: (b) => m(
|
|
896
898
|
"update:model-value",
|
|
897
|
-
l.modelValue.includes(o.value) ? l.modelValue.filter((
|
|
899
|
+
l.modelValue.includes(o.value) ? l.modelValue.filter((k) => k !== o.value) : [...l.modelValue, o.value]
|
|
898
900
|
)
|
|
899
901
|
}, null, 8, ["class", "label", "onClick"]);
|
|
900
902
|
}), 128))
|
|
901
903
|
]);
|
|
902
904
|
};
|
|
903
905
|
}
|
|
904
|
-
}), ot = { class: "
|
|
906
|
+
}), ot = { class: "flex justify-end gap-8 w-full" }, at = /* @__PURE__ */ N({
|
|
905
907
|
__name: "MenuDialog",
|
|
906
908
|
props: {
|
|
907
909
|
modelValue: { type: Boolean },
|
|
@@ -910,10 +912,9 @@ const Be = [
|
|
|
910
912
|
},
|
|
911
913
|
emits: ["update:model-value", "confirm"],
|
|
912
914
|
setup(l, { emit: R }) {
|
|
913
|
-
const _ = l, m = W(), f = W(!1), n = R;
|
|
915
|
+
const _ = l, m = W([]), f = W(!1), n = R;
|
|
914
916
|
function t() {
|
|
915
|
-
|
|
916
|
-
(o = m.value) == null || o.onConfirm(), n("update:model-value", !1);
|
|
917
|
+
n("confirm", m.value), d();
|
|
917
918
|
}
|
|
918
919
|
function d() {
|
|
919
920
|
n("update:model-value", !1);
|
|
@@ -926,20 +927,20 @@ const Be = [
|
|
|
926
927
|
), Z(() => {
|
|
927
928
|
f.value = _.modelValue;
|
|
928
929
|
}), (o, i) => {
|
|
929
|
-
const p =
|
|
930
|
+
const p = E("FmButton"), b = E("FmDialog");
|
|
930
931
|
return r(), g(b, {
|
|
931
932
|
"content-scrollable": !1,
|
|
932
933
|
contentClass: "pt-0",
|
|
933
934
|
modelValue: f.value,
|
|
934
|
-
"onUpdate:modelValue": i[
|
|
935
|
+
"onUpdate:modelValue": i[1] || (i[1] = (k) => f.value = k),
|
|
935
936
|
title: "Select Items",
|
|
936
937
|
"close-button": !1
|
|
937
938
|
}, {
|
|
938
|
-
"dialog-header": B(() => [...i[
|
|
939
|
+
"dialog-header": B(() => [...i[2] || (i[2] = [
|
|
939
940
|
C("div", null, "Select Item", -1)
|
|
940
941
|
])]),
|
|
941
942
|
"dialog-footer": B(() => [
|
|
942
|
-
C("div",
|
|
943
|
+
C("div", ot, [
|
|
943
944
|
v(p, {
|
|
944
945
|
variant: "tertiary",
|
|
945
946
|
onClick: d,
|
|
@@ -953,23 +954,18 @@ const Be = [
|
|
|
953
954
|
])
|
|
954
955
|
]),
|
|
955
956
|
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
|
-
])
|
|
957
|
+
v(e(Ye), {
|
|
958
|
+
"initial-value": l.initialValue,
|
|
959
|
+
"filter-items": l.filterItems,
|
|
960
|
+
"max-height": 380,
|
|
961
|
+
onChange: i[0] || (i[0] = (k) => m.value = k)
|
|
962
|
+
}, null, 8, ["initial-value", "filter-items"])
|
|
967
963
|
]),
|
|
968
964
|
_: 1
|
|
969
965
|
}, 8, ["modelValue"]);
|
|
970
966
|
};
|
|
971
967
|
}
|
|
972
|
-
}),
|
|
968
|
+
}), rt = { id: "select-menu" }, nt = /* @__PURE__ */ N({
|
|
973
969
|
__name: "SelectMenu",
|
|
974
970
|
props: {
|
|
975
971
|
modelValue: {}
|
|
@@ -984,8 +980,8 @@ const Be = [
|
|
|
984
980
|
n("update:model-value", d);
|
|
985
981
|
}
|
|
986
982
|
return (d, o) => {
|
|
987
|
-
const i =
|
|
988
|
-
return r(), V("div",
|
|
983
|
+
const i = E("FmField");
|
|
984
|
+
return r(), V("div", rt, [
|
|
989
985
|
v(i, {
|
|
990
986
|
class: "text-fm-color-typo-tertiary",
|
|
991
987
|
onClick: o[0] || (o[0] = (p) => m.value = !0)
|
|
@@ -995,7 +991,7 @@ const Be = [
|
|
|
995
991
|
]),
|
|
996
992
|
_: 1
|
|
997
993
|
}),
|
|
998
|
-
v(
|
|
994
|
+
v(at, {
|
|
999
995
|
modelValue: m.value,
|
|
1000
996
|
"onUpdate:modelValue": [
|
|
1001
997
|
o[1] || (o[1] = (p) => m.value = p),
|
|
@@ -1007,10 +1003,10 @@ const Be = [
|
|
|
1007
1003
|
]);
|
|
1008
1004
|
};
|
|
1009
1005
|
}
|
|
1010
|
-
}),
|
|
1006
|
+
}), ut = {
|
|
1011
1007
|
key: 19,
|
|
1012
1008
|
class: "fm-typo-en-body-lg-600"
|
|
1013
|
-
},
|
|
1009
|
+
}, st = /* @__PURE__ */ N({
|
|
1014
1010
|
__name: "RuleEquator",
|
|
1015
1011
|
props: {
|
|
1016
1012
|
type: {
|
|
@@ -1032,8 +1028,8 @@ const Be = [
|
|
|
1032
1028
|
return n.success ? [] : n.error.errors;
|
|
1033
1029
|
});
|
|
1034
1030
|
return (n, t) => {
|
|
1035
|
-
var
|
|
1036
|
-
const d =
|
|
1031
|
+
var w, c, s, a, y, T;
|
|
1032
|
+
const d = E("FmTextField"), o = E("FmStepperField"), i = E("FmSimpleDatePicker"), p = E("FmSimpleDateRangePicker"), b = E("FmTimeRangePicker"), k = E("FmTimePicker"), U = E("FmHelperText");
|
|
1037
1033
|
return r(), V("div", {
|
|
1038
1034
|
class: K({ "pb-4": e(f).length })
|
|
1039
1035
|
}, [
|
|
@@ -1049,7 +1045,7 @@ const Be = [
|
|
|
1049
1045
|
key: 2,
|
|
1050
1046
|
"model-value": l.modelValue,
|
|
1051
1047
|
"onUpdate:modelValue": t[2] || (t[2] = (u) => m("update:model-value", u))
|
|
1052
|
-
}, null, 8, ["model-value"])) : l.operator == "_isRange" ? (r(), g(me(
|
|
1048
|
+
}, null, 8, ["model-value"])) : l.operator == "_isRange" ? (r(), g(me(Pe), {
|
|
1053
1049
|
key: 3,
|
|
1054
1050
|
"model-value": l.modelValue,
|
|
1055
1051
|
"onUpdate:modelValue": t[3] || (t[3] = (u) => m("update:model-value", u))
|
|
@@ -1060,7 +1056,7 @@ const Be = [
|
|
|
1060
1056
|
}, null, 8, ["model-value"])) : l.operator == "_isBetween" ? (r(), g(p, {
|
|
1061
1057
|
key: 5,
|
|
1062
1058
|
"model-value": {
|
|
1063
|
-
startDate: (
|
|
1059
|
+
startDate: (w = l.modelValue) == null ? void 0 : w.start,
|
|
1064
1060
|
endDate: (c = l.modelValue) == null ? void 0 : c.end
|
|
1065
1061
|
},
|
|
1066
1062
|
"onUpdate:modelValue": t[5] || (t[5] = (u) => {
|
|
@@ -1087,7 +1083,7 @@ const Be = [
|
|
|
1087
1083
|
end: u[1]
|
|
1088
1084
|
}
|
|
1089
1085
|
]))
|
|
1090
|
-
}, null, 8, ["model-value"])) : l.operator == "_isOnTime" ? (r(), g(
|
|
1086
|
+
}, null, 8, ["model-value"])) : l.operator == "_isOnTime" ? (r(), g(k, {
|
|
1091
1087
|
key: 9,
|
|
1092
1088
|
"model-value": l.modelValue,
|
|
1093
1089
|
"onUpdate:modelValue": t[9] || (t[9] = (u) => m("update:model-value", u))
|
|
@@ -1147,7 +1143,7 @@ const Be = [
|
|
|
1147
1143
|
})),
|
|
1148
1144
|
"model-value": l.modelValue ?? [],
|
|
1149
1145
|
"onUpdate:modelValue": t[16] || (t[16] = (u) => m("update:model-value", u))
|
|
1150
|
-
}, null, 8, ["items", "model-value"])) : l.type == "product" ? (r(), g(
|
|
1146
|
+
}, null, 8, ["items", "model-value"])) : l.type == "product" ? (r(), g(nt, {
|
|
1151
1147
|
key: 17,
|
|
1152
1148
|
"model-value": l.modelValue,
|
|
1153
1149
|
"onUpdate:modelValue": t[17] || (t[17] = (u) => m("update:model-value", u))
|
|
@@ -1160,7 +1156,7 @@ const Be = [
|
|
|
1160
1156
|
})),
|
|
1161
1157
|
"model-value": l.modelValue ?? [],
|
|
1162
1158
|
"onUpdate:modelValue": t[18] || (t[18] = (u) => m("update:model-value", u))
|
|
1163
|
-
}, null, 8, ["items", "model-value"])) : (r(), V("div",
|
|
1159
|
+
}, null, 8, ["items", "model-value"])) : (r(), V("div", ut, "Rule: " + A(l.type) + " Not implemented", 1)),
|
|
1164
1160
|
v(U, {
|
|
1165
1161
|
class: "items-end",
|
|
1166
1162
|
state: e(le).helperState(e(f), ""),
|
|
@@ -1169,7 +1165,7 @@ const Be = [
|
|
|
1169
1165
|
], 2);
|
|
1170
1166
|
};
|
|
1171
1167
|
}
|
|
1172
|
-
}),
|
|
1168
|
+
}), 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
1169
|
__name: "CustomRuleDialog",
|
|
1174
1170
|
props: {
|
|
1175
1171
|
triggerType: {
|
|
@@ -1179,6 +1175,10 @@ const Be = [
|
|
|
1179
1175
|
includeOnly: {
|
|
1180
1176
|
type: String
|
|
1181
1177
|
},
|
|
1178
|
+
allowSeasonEarned: {
|
|
1179
|
+
type: Boolean,
|
|
1180
|
+
default: !1
|
|
1181
|
+
},
|
|
1182
1182
|
modelValue: {
|
|
1183
1183
|
type: Object,
|
|
1184
1184
|
default: () => {
|
|
@@ -1241,13 +1241,15 @@ const Be = [
|
|
|
1241
1241
|
return F ? n(F) : de[S].name;
|
|
1242
1242
|
}
|
|
1243
1243
|
const p = l, b = M(
|
|
1244
|
-
() => ke(p.triggerType, p.includeOnly)
|
|
1245
|
-
|
|
1244
|
+
() => ke(p.triggerType, p.includeOnly).filter(
|
|
1245
|
+
({ property: S }) => p.allowSeasonEarned || S !== "user.stats.lastSeasonTierEarned" && S !== "user.stats.lastSeasonPointEarned"
|
|
1246
|
+
)
|
|
1247
|
+
), k = M(
|
|
1246
1248
|
() => b.value.find((S) => {
|
|
1247
1249
|
var F;
|
|
1248
1250
|
return S.property == ((F = y.value) == null ? void 0 : F.property);
|
|
1249
1251
|
})
|
|
1250
|
-
), U = (S) => ie[b.value.find((F) => F.property === S).type],
|
|
1252
|
+
), U = (S) => ie[b.value.find((F) => F.property === S).type], w = M(() => {
|
|
1251
1253
|
if (!y.value) return [];
|
|
1252
1254
|
const S = b.value.find(
|
|
1253
1255
|
(F) => F.property === y.value.property
|
|
@@ -1259,7 +1261,7 @@ const Be = [
|
|
|
1259
1261
|
label: i(F),
|
|
1260
1262
|
value: F
|
|
1261
1263
|
})) : [];
|
|
1262
|
-
}), c =
|
|
1264
|
+
}), c = Ee, s = M(() => {
|
|
1263
1265
|
const S = c.safeParse(y.value);
|
|
1264
1266
|
return S.success ? [] : S.error.errors;
|
|
1265
1267
|
}), a = W(!1), y = W(
|
|
@@ -1269,12 +1271,12 @@ const Be = [
|
|
|
1269
1271
|
null
|
|
1270
1272
|
)
|
|
1271
1273
|
), T = M(() => {
|
|
1272
|
-
var
|
|
1274
|
+
var h;
|
|
1273
1275
|
const { property: S, negated: F, conditions: L } = y.value, H = Object.keys(L || {})[0], Q = Object.values(L || {})[0];
|
|
1274
1276
|
return {
|
|
1275
1277
|
property: S,
|
|
1276
1278
|
negated: F == !0,
|
|
1277
|
-
type: (
|
|
1279
|
+
type: (h = b.value.find((z) => z.property === S)) == null ? void 0 : h.type,
|
|
1278
1280
|
operator: H,
|
|
1279
1281
|
equator: Q
|
|
1280
1282
|
};
|
|
@@ -1306,9 +1308,9 @@ const Be = [
|
|
|
1306
1308
|
return ce(async () => {
|
|
1307
1309
|
await _.readMembership();
|
|
1308
1310
|
}), (S, F) => {
|
|
1309
|
-
const L =
|
|
1310
|
-
return r(), V("div",
|
|
1311
|
-
C("div",
|
|
1311
|
+
const L = E("FmIcon"), H = E("FmField"), Q = E("FmPill"), h = E("FmMenuItem"), z = E("FmMenu"), se = E("FmButton");
|
|
1312
|
+
return r(), V("div", mt, [
|
|
1313
|
+
C("div", it, A(e(n)("connect.template.rule.custom_modal.property")), 1),
|
|
1312
1314
|
v(z, {
|
|
1313
1315
|
shift: !0,
|
|
1314
1316
|
placement: "bottom-start",
|
|
@@ -1325,18 +1327,18 @@ const Be = [
|
|
|
1325
1327
|
}, null, 8, ["name"])
|
|
1326
1328
|
]),
|
|
1327
1329
|
default: B(() => [
|
|
1328
|
-
ne(A(o(e(
|
|
1330
|
+
ne(A(o(e(k))) + " ", 1)
|
|
1329
1331
|
]),
|
|
1330
1332
|
_: 1
|
|
1331
1333
|
})
|
|
1332
1334
|
]),
|
|
1333
1335
|
default: B(() => [
|
|
1334
|
-
(r(!0), V(q, null, $(e(b), (I) => (r(), g(
|
|
1336
|
+
(r(!0), V(q, null, $(e(b), (I) => (r(), g(h, {
|
|
1335
1337
|
key: I.property,
|
|
1336
1338
|
"model-value": e(y).property == I.property,
|
|
1337
1339
|
label: o(I),
|
|
1338
1340
|
disabled: I.premium && !e(te)().isPremium,
|
|
1339
|
-
onClick: (
|
|
1341
|
+
onClick: (St) => I.premium && !e(te)().isPremium ? null : u(I.property)
|
|
1340
1342
|
}, ye({ _: 2 }, [
|
|
1341
1343
|
I.premium ? {
|
|
1342
1344
|
name: "append",
|
|
@@ -1349,8 +1351,8 @@ const Be = [
|
|
|
1349
1351
|
]),
|
|
1350
1352
|
_: 1
|
|
1351
1353
|
}, 8, ["modelValue"]),
|
|
1352
|
-
C("div",
|
|
1353
|
-
C("div",
|
|
1354
|
+
C("div", dt, A(e(n)("connect.template.rule.custom_modal.check_to_perform")), 1),
|
|
1355
|
+
C("div", pt, [
|
|
1354
1356
|
v(O, {
|
|
1355
1357
|
class: "w-1/4",
|
|
1356
1358
|
items: [
|
|
@@ -1365,22 +1367,22 @@ const Be = [
|
|
|
1365
1367
|
}, null, 8, ["items", "model-value"]),
|
|
1366
1368
|
v(O, {
|
|
1367
1369
|
class: "flex-1",
|
|
1368
|
-
items: e(
|
|
1370
|
+
items: e(w),
|
|
1369
1371
|
"model-value": e(T).operator,
|
|
1370
1372
|
"onUpdate:modelValue": oe
|
|
1371
1373
|
}, null, 8, ["items", "model-value"])
|
|
1372
1374
|
]),
|
|
1373
1375
|
C("div", null, [
|
|
1374
|
-
C("div",
|
|
1375
|
-
e(T).type ? (r(), g(
|
|
1376
|
+
C("div", ct, A(e(n)("connect.template.rule.custom_modal.criteria")), 1),
|
|
1377
|
+
e(T).type ? (r(), g(st, {
|
|
1376
1378
|
key: 0,
|
|
1377
1379
|
type: e(T).type,
|
|
1378
1380
|
operator: e(T).operator,
|
|
1379
1381
|
"model-value": e(T).equator,
|
|
1380
1382
|
"onUpdate:modelValue": J
|
|
1381
|
-
}, null, 8, ["type", "operator", "model-value"])) :
|
|
1383
|
+
}, null, 8, ["type", "operator", "model-value"])) : P("", !0)
|
|
1382
1384
|
]),
|
|
1383
|
-
C("div",
|
|
1385
|
+
C("div", yt, [
|
|
1384
1386
|
v(se, {
|
|
1385
1387
|
onClick: F[2] || (F[2] = (I) => e(R).close()),
|
|
1386
1388
|
label: e(n)("connect.common.cancel"),
|
|
@@ -1388,14 +1390,14 @@ const Be = [
|
|
|
1388
1390
|
}, null, 8, ["label"]),
|
|
1389
1391
|
v(se, {
|
|
1390
1392
|
onClick: F[3] || (F[3] = (I) => ee()),
|
|
1391
|
-
disabled: e(s).length > 0,
|
|
1393
|
+
disabled: e(s).length > 0 || !e(k),
|
|
1392
1394
|
label: e(n)("connect.common.save")
|
|
1393
1395
|
}, null, 8, ["disabled", "label"])
|
|
1394
1396
|
])
|
|
1395
1397
|
]);
|
|
1396
1398
|
};
|
|
1397
1399
|
}
|
|
1398
|
-
}),
|
|
1400
|
+
}), 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
1401
|
__name: "PresetRuleDialog",
|
|
1400
1402
|
props: {
|
|
1401
1403
|
preset: {
|
|
@@ -1496,17 +1498,17 @@ const Be = [
|
|
|
1496
1498
|
i.value.name
|
|
1497
1499
|
);
|
|
1498
1500
|
}
|
|
1499
|
-
function
|
|
1501
|
+
function k() {
|
|
1500
1502
|
_(i.value), m("primary"), R.close();
|
|
1501
1503
|
}
|
|
1502
1504
|
const U = M(() => {
|
|
1503
|
-
const c =
|
|
1505
|
+
const c = he.safeParse(i.value);
|
|
1504
1506
|
return c.success ? [] : c.error.errors;
|
|
1505
1507
|
});
|
|
1506
1508
|
ce(async () => {
|
|
1507
1509
|
await f.readMembership();
|
|
1508
1510
|
});
|
|
1509
|
-
const
|
|
1511
|
+
const w = M(() => [
|
|
1510
1512
|
{
|
|
1511
1513
|
label: n("connect.template.rule.preset_modal.unit.day"),
|
|
1512
1514
|
value: "day"
|
|
@@ -1522,14 +1524,14 @@ const Be = [
|
|
|
1522
1524
|
]);
|
|
1523
1525
|
return (c, s) => {
|
|
1524
1526
|
var S, F, L, H, Q;
|
|
1525
|
-
const a =
|
|
1526
|
-
return r(), V("div",
|
|
1527
|
+
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");
|
|
1528
|
+
return r(), V("div", bt, [
|
|
1527
1529
|
l.preset == "MIN_SPEND" ? (r(), g(a, {
|
|
1528
1530
|
key: 0,
|
|
1529
1531
|
label: e(n)("connect.template.rule.preset.minimum_spend"),
|
|
1530
1532
|
"model-value": e(p).equator,
|
|
1531
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
1532
|
-
}, null, 8, ["label", "model-value"])) :
|
|
1533
|
+
"onUpdate:modelValue": s[0] || (s[0] = (h) => b(h))
|
|
1534
|
+
}, null, 8, ["label", "model-value"])) : P("", !0),
|
|
1533
1535
|
l.preset == "LAST_X_DAY" ? (r(), g(a, {
|
|
1534
1536
|
key: 1,
|
|
1535
1537
|
label: "",
|
|
@@ -1537,30 +1539,30 @@ const Be = [
|
|
|
1537
1539
|
prepent: e(n)("connect.template.rule.preset_modal.day"),
|
|
1538
1540
|
"model-value": e(p).equator.x,
|
|
1539
1541
|
rules: [
|
|
1540
|
-
(
|
|
1542
|
+
(h) => h >= 0 || e(n)(
|
|
1541
1543
|
"connect.template.rule.preset_modal.value_must_be_greater_than_0"
|
|
1542
1544
|
)
|
|
1543
1545
|
],
|
|
1544
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
1546
|
+
"onUpdate:modelValue": s[1] || (s[1] = (h) => b({
|
|
1545
1547
|
op: "last",
|
|
1546
1548
|
unit: "day",
|
|
1547
1549
|
ignoreYear: !0,
|
|
1548
|
-
x:
|
|
1550
|
+
x: h
|
|
1549
1551
|
}))
|
|
1550
1552
|
}, null, 8, ["prepent", "model-value", "rules"])) : l.preset == "SPECIFIC_DATE" ? (r(), g(y, {
|
|
1551
1553
|
key: 2,
|
|
1552
1554
|
label: e(n)("connect.template.rule.preset.specific_date"),
|
|
1553
1555
|
"model-value": e(p).equator,
|
|
1554
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
1556
|
+
"onUpdate:modelValue": s[2] || (s[2] = (h) => b(h))
|
|
1555
1557
|
}, null, 8, ["label", "model-value"])) : l.preset == "SPECIFIC_TIMERANGE" ? (r(), g(T, {
|
|
1556
1558
|
key: 3,
|
|
1557
1559
|
label: e(n)("connect.template.rule.preset_modal.time_is_between"),
|
|
1558
1560
|
"disable-time-check": !0,
|
|
1559
1561
|
"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] = (
|
|
1562
|
+
"onUpdate:modelValue": s[3] || (s[3] = (h) => b([
|
|
1561
1563
|
{
|
|
1562
|
-
start:
|
|
1563
|
-
end:
|
|
1564
|
+
start: h[0],
|
|
1565
|
+
end: h[1]
|
|
1564
1566
|
}
|
|
1565
1567
|
]))
|
|
1566
1568
|
}, null, 8, ["label", "model-value"])) : l.preset == "WEEKLY" ? (r(), g(re, {
|
|
@@ -1568,15 +1570,15 @@ const Be = [
|
|
|
1568
1570
|
label: e(n)("connect.template.rule.preset.weekly"),
|
|
1569
1571
|
"fixed-frequency": !0,
|
|
1570
1572
|
"model-value": e(p).equator,
|
|
1571
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
1573
|
+
"onUpdate:modelValue": s[4] || (s[4] = (h) => b(h))
|
|
1572
1574
|
}, null, 8, ["label", "model-value"])) : l.preset == "MONTHLY" ? (r(), g(re, {
|
|
1573
1575
|
key: 5,
|
|
1574
1576
|
label: e(n)("connect.template.rule.preset.monthly"),
|
|
1575
1577
|
"fixed-frequency": !0,
|
|
1576
1578
|
"model-value": e(p).equator,
|
|
1577
|
-
"onUpdate:modelValue": s[5] || (s[5] = (
|
|
1579
|
+
"onUpdate:modelValue": s[5] || (s[5] = (h) => b(h))
|
|
1578
1580
|
}, null, 8, ["label", "model-value"])) : l.preset == "BIRTHDAY" ? (r(), V(q, { key: 6 }, [
|
|
1579
|
-
C("div",
|
|
1581
|
+
C("div", ft, [
|
|
1580
1582
|
v(u, {
|
|
1581
1583
|
label: e(n)("connect.template.rule.birthday.days_before"),
|
|
1582
1584
|
value: "_isDay",
|
|
@@ -1592,7 +1594,7 @@ const Be = [
|
|
|
1592
1594
|
);
|
|
1593
1595
|
})
|
|
1594
1596
|
}, null, 8, ["label", "model-value"]),
|
|
1595
|
-
C("div",
|
|
1597
|
+
C("div", gt, [
|
|
1596
1598
|
v(u, {
|
|
1597
1599
|
label: e(n)("connect.template.rule.preset_modal.is_in_this"),
|
|
1598
1600
|
value: "_isRange",
|
|
@@ -1610,17 +1612,17 @@ const Be = [
|
|
|
1610
1612
|
}, null, 8, ["label", "model-value"]),
|
|
1611
1613
|
e(p).operator == "_isRange" ? (r(), g(x, {
|
|
1612
1614
|
key: 0,
|
|
1613
|
-
items: e(
|
|
1615
|
+
items: e(w),
|
|
1614
1616
|
"model-value": e(p).equator.unit,
|
|
1615
|
-
"onUpdate:modelValue": s[8] || (s[8] = (
|
|
1617
|
+
"onUpdate:modelValue": s[8] || (s[8] = (h) => b(
|
|
1616
1618
|
{
|
|
1617
1619
|
op: "this",
|
|
1618
|
-
unit:
|
|
1620
|
+
unit: h,
|
|
1619
1621
|
ignoreYear: !0
|
|
1620
1622
|
},
|
|
1621
1623
|
"_isRange"
|
|
1622
1624
|
))
|
|
1623
|
-
}, null, 8, ["items", "model-value"])) :
|
|
1625
|
+
}, null, 8, ["items", "model-value"])) : P("", !0)
|
|
1624
1626
|
])
|
|
1625
1627
|
]),
|
|
1626
1628
|
e(p).operator == "_isDay" ? (r(), g(a, {
|
|
@@ -1628,17 +1630,17 @@ const Be = [
|
|
|
1628
1630
|
label: e(n)("connect.template.rule.birthday.days_before_label"),
|
|
1629
1631
|
"show-steppers": !1,
|
|
1630
1632
|
"model-value": e(p).equator.x,
|
|
1631
|
-
"onUpdate:modelValue": s[9] || (s[9] = (
|
|
1633
|
+
"onUpdate:modelValue": s[9] || (s[9] = (h) => b({
|
|
1632
1634
|
op: "after",
|
|
1633
|
-
x:
|
|
1635
|
+
x: h,
|
|
1634
1636
|
ignoreYear: !0
|
|
1635
1637
|
}))
|
|
1636
|
-
}, null, 8, ["label", "model-value"])) :
|
|
1638
|
+
}, null, 8, ["label", "model-value"])) : P("", !0)
|
|
1637
1639
|
], 64)) : l.preset == "TIER" ? (r(), V(q, { key: 7 }, [
|
|
1638
1640
|
v(oe, {
|
|
1639
1641
|
inline: !0,
|
|
1640
1642
|
"model-value": e(p).operator,
|
|
1641
|
-
"onUpdate:modelValue": s[10] || (s[10] = (
|
|
1643
|
+
"onUpdate:modelValue": s[10] || (s[10] = (h) => b(e(p).equator, h))
|
|
1642
1644
|
}, {
|
|
1643
1645
|
default: B(() => [
|
|
1644
1646
|
v(u, {
|
|
@@ -1657,12 +1659,12 @@ const Be = [
|
|
|
1657
1659
|
_: 1
|
|
1658
1660
|
}, 8, ["model-value"]),
|
|
1659
1661
|
v(O, {
|
|
1660
|
-
items: (e(f).sortedTiers ?? []).map((
|
|
1661
|
-
label: `Tier ${z + 1} - ${
|
|
1662
|
+
items: (e(f).sortedTiers ?? []).map((h, z) => ({
|
|
1663
|
+
label: `Tier ${z + 1} - ${h.name}`,
|
|
1662
1664
|
value: z + 1
|
|
1663
1665
|
})),
|
|
1664
1666
|
"model-value": e(p).equator,
|
|
1665
|
-
"onUpdate:modelValue": s[11] || (s[11] = (
|
|
1667
|
+
"onUpdate:modelValue": s[11] || (s[11] = (h) => b(h))
|
|
1666
1668
|
}, null, 8, ["items", "model-value"]),
|
|
1667
1669
|
v(J, {
|
|
1668
1670
|
text: d()
|
|
@@ -1670,26 +1672,26 @@ const Be = [
|
|
|
1670
1672
|
], 64)) : l.preset == "TITLE" ? (r(), g(O, {
|
|
1671
1673
|
key: 8,
|
|
1672
1674
|
label: e(n)("connect.template.rule.preset_modal.user_has_title"),
|
|
1673
|
-
items: (e(f).sortedTitles ?? []).map((
|
|
1674
|
-
label:
|
|
1675
|
-
value:
|
|
1675
|
+
items: (e(f).sortedTitles ?? []).map((h) => ({
|
|
1676
|
+
label: h.name,
|
|
1677
|
+
value: h._id
|
|
1676
1678
|
})),
|
|
1677
1679
|
"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"])) :
|
|
1680
|
+
"onUpdate:modelValue": s[12] || (s[12] = (h) => b([h]))
|
|
1681
|
+
}, null, 8, ["label", "items", "model-value"])) : P("", !0),
|
|
1680
1682
|
v(J, {
|
|
1681
1683
|
class: "mt-[-8px]",
|
|
1682
1684
|
text: e(le).helperText(e(U), ""),
|
|
1683
1685
|
state: e(le).helperState(e(U), "")
|
|
1684
1686
|
}, null, 8, ["text", "state"]),
|
|
1685
|
-
C("div",
|
|
1687
|
+
C("div", _t, [
|
|
1686
1688
|
v(ee, {
|
|
1687
|
-
onClick: s[13] || (s[13] = (
|
|
1689
|
+
onClick: s[13] || (s[13] = (h) => e(R).close()),
|
|
1688
1690
|
label: e(n)("connect.common.cancel"),
|
|
1689
1691
|
variant: "tertiary"
|
|
1690
1692
|
}, null, 8, ["label"]),
|
|
1691
1693
|
v(ee, {
|
|
1692
|
-
onClick: s[14] || (s[14] = (
|
|
1694
|
+
onClick: s[14] || (s[14] = (h) => k()),
|
|
1693
1695
|
disabled: e(U).length > 0,
|
|
1694
1696
|
label: e(n)("connect.common.save")
|
|
1695
1697
|
}, null, 8, ["disabled", "label"])
|
|
@@ -1697,7 +1699,7 @@ const Be = [
|
|
|
1697
1699
|
]);
|
|
1698
1700
|
};
|
|
1699
1701
|
}
|
|
1700
|
-
}), Et = /* @__PURE__ */
|
|
1702
|
+
}), Et = /* @__PURE__ */ N({
|
|
1701
1703
|
__name: "RuleConfigurator",
|
|
1702
1704
|
props: {
|
|
1703
1705
|
triggerType: {
|
|
@@ -1707,6 +1709,10 @@ const Be = [
|
|
|
1707
1709
|
includeOnly: {
|
|
1708
1710
|
type: String
|
|
1709
1711
|
},
|
|
1712
|
+
allowSeasonEarned: {
|
|
1713
|
+
type: Boolean,
|
|
1714
|
+
default: !1
|
|
1715
|
+
},
|
|
1710
1716
|
modelValue: {
|
|
1711
1717
|
type: Object,
|
|
1712
1718
|
default: () => {
|
|
@@ -1740,10 +1746,10 @@ const Be = [
|
|
|
1740
1746
|
function b(c) {
|
|
1741
1747
|
const [s] = c.rules;
|
|
1742
1748
|
i.open({
|
|
1743
|
-
title:
|
|
1749
|
+
title: w(c),
|
|
1744
1750
|
closeButton: !1,
|
|
1745
1751
|
dismissAway: !1,
|
|
1746
|
-
contentComponent:
|
|
1752
|
+
contentComponent: kt,
|
|
1747
1753
|
contentComponentProps: {
|
|
1748
1754
|
preset: c.type,
|
|
1749
1755
|
defaultValue: s,
|
|
@@ -1751,15 +1757,16 @@ const Be = [
|
|
|
1751
1757
|
}
|
|
1752
1758
|
}).onPrimary((a) => o("update:model-value", a));
|
|
1753
1759
|
}
|
|
1754
|
-
function
|
|
1760
|
+
function k(c) {
|
|
1755
1761
|
i.open({
|
|
1756
1762
|
title: f("connect.template.rule.edit_rule"),
|
|
1757
1763
|
closeButton: !1,
|
|
1758
1764
|
dismissAway: !1,
|
|
1759
|
-
contentComponent:
|
|
1765
|
+
contentComponent: vt,
|
|
1760
1766
|
contentComponentProps: {
|
|
1761
1767
|
triggerType: d.triggerType,
|
|
1762
1768
|
includeOnly: d.includeOnly,
|
|
1769
|
+
allowSeasonEarned: d.allowSeasonEarned,
|
|
1763
1770
|
modelValue: c
|
|
1764
1771
|
}
|
|
1765
1772
|
}).onPrimary((s) => o("update:model-value", s));
|
|
@@ -1767,20 +1774,20 @@ const Be = [
|
|
|
1767
1774
|
function U(c) {
|
|
1768
1775
|
if (c.type == "CUSTOM") {
|
|
1769
1776
|
const [s] = c.rules;
|
|
1770
|
-
return
|
|
1777
|
+
return k(
|
|
1771
1778
|
Y.constructEntry(s.property, s.operator, s.equator)
|
|
1772
1779
|
);
|
|
1773
1780
|
}
|
|
1774
1781
|
return b(c);
|
|
1775
1782
|
}
|
|
1776
|
-
function
|
|
1783
|
+
function w(c) {
|
|
1777
1784
|
const s = t[c.name];
|
|
1778
1785
|
return s && n(s) ? f(s) : c.name;
|
|
1779
1786
|
}
|
|
1780
1787
|
return R({
|
|
1781
|
-
showCustomDialog:
|
|
1788
|
+
showCustomDialog: k
|
|
1782
1789
|
}), (c, s) => {
|
|
1783
|
-
const a =
|
|
1790
|
+
const a = E("FmButton"), y = E("FmPill"), T = E("FmMenuItem"), u = E("FmMenu");
|
|
1784
1791
|
return r(), g(u, {
|
|
1785
1792
|
shift: !0,
|
|
1786
1793
|
placement: "top-start"
|
|
@@ -1800,7 +1807,7 @@ const Be = [
|
|
|
1800
1807
|
), (x) => (r(), g(T, {
|
|
1801
1808
|
key: x.name,
|
|
1802
1809
|
"model-value": x.name == e(p),
|
|
1803
|
-
label:
|
|
1810
|
+
label: w(x),
|
|
1804
1811
|
onClick: () => {
|
|
1805
1812
|
x != null && x.premium && !e(m).isPremium || U(x);
|
|
1806
1813
|
},
|
|
@@ -1819,7 +1826,7 @@ const Be = [
|
|
|
1819
1826
|
});
|
|
1820
1827
|
};
|
|
1821
1828
|
}
|
|
1822
|
-
}),
|
|
1829
|
+
}), ht = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ht = /* @__PURE__ */ N({
|
|
1823
1830
|
__name: "RuleGroup",
|
|
1824
1831
|
props: {
|
|
1825
1832
|
triggerType: {
|
|
@@ -1829,22 +1836,26 @@ const Be = [
|
|
|
1829
1836
|
includeOnly: {
|
|
1830
1837
|
type: String
|
|
1831
1838
|
},
|
|
1839
|
+
allowSeasonEarned: {
|
|
1840
|
+
type: Boolean,
|
|
1841
|
+
default: !1
|
|
1842
|
+
},
|
|
1832
1843
|
modelValue: {
|
|
1833
1844
|
type: Object
|
|
1834
1845
|
}
|
|
1835
1846
|
},
|
|
1836
1847
|
emits: ["update:model-value"],
|
|
1837
1848
|
setup(l, { emit: R }) {
|
|
1838
|
-
const _ = l, m = R, f =
|
|
1849
|
+
const _ = l, m = R, f = Ve(), { t: n } = G(), t = M(
|
|
1839
1850
|
() => _.modelValue ?? Y.scaffoldGroup()
|
|
1840
1851
|
), d = M(() => Y.getLogic(t.value)), o = M(() => [
|
|
1841
1852
|
{ label: n("connect.template.rule.and"), value: "&&" },
|
|
1842
1853
|
{ label: n("connect.template.rule.or"), value: "||" }
|
|
1843
1854
|
]), i = W();
|
|
1844
|
-
function p(b,
|
|
1855
|
+
function p(b, k) {
|
|
1845
1856
|
try {
|
|
1846
|
-
const U = Y.setRuleToGroup(b,
|
|
1847
|
-
Y.isRuleExceed(b,
|
|
1857
|
+
const U = Y.setRuleToGroup(b, k);
|
|
1858
|
+
Y.isRuleExceed(b, k), m("update:model-value", U);
|
|
1848
1859
|
} catch (U) {
|
|
1849
1860
|
f.open({
|
|
1850
1861
|
message: U.message,
|
|
@@ -1852,40 +1863,41 @@ const Be = [
|
|
|
1852
1863
|
});
|
|
1853
1864
|
}
|
|
1854
1865
|
}
|
|
1855
|
-
return (b,
|
|
1856
|
-
const U =
|
|
1857
|
-
return r(), g(
|
|
1866
|
+
return (b, k) => {
|
|
1867
|
+
const U = E("FmButtonGroup"), w = E("FmCard");
|
|
1868
|
+
return r(), g(w, { variant: "outlined" }, {
|
|
1858
1869
|
default: B(() => [
|
|
1859
|
-
v(
|
|
1870
|
+
v(w, { class: "border-l-4 border-fm-color-primary p-16 space-y-16" }, {
|
|
1860
1871
|
default: B(() => [
|
|
1861
|
-
C("div",
|
|
1872
|
+
C("div", ht, A(e(n)("connect.template.rule.when")), 1),
|
|
1862
1873
|
v(Et, {
|
|
1863
1874
|
ref_key: "configuratorRef",
|
|
1864
1875
|
ref: i,
|
|
1865
1876
|
"include-only": l.includeOnly,
|
|
1877
|
+
"allow-season-earned": l.allowSeasonEarned,
|
|
1866
1878
|
"trigger-type": l.triggerType,
|
|
1867
|
-
"onUpdate:modelValue":
|
|
1868
|
-
}, null, 8, ["include-only", "trigger-type"]),
|
|
1879
|
+
"onUpdate:modelValue": k[0] || (k[0] = (c) => p(e(t), c))
|
|
1880
|
+
}, null, 8, ["include-only", "allow-season-earned", "trigger-type"]),
|
|
1869
1881
|
(r(!0), V(q, null, $(e(t).rules, (c, s) => {
|
|
1870
1882
|
var a;
|
|
1871
1883
|
return r(), V(q, null, [
|
|
1872
|
-
e(
|
|
1884
|
+
e(Se)(c) ? (r(), g(qe, {
|
|
1873
1885
|
"model-value": c,
|
|
1874
1886
|
key: s,
|
|
1875
1887
|
onEdit: (a = e(i)) == null ? void 0 : a.showCustomDialog,
|
|
1876
|
-
onRemove:
|
|
1888
|
+
onRemove: k[1] || (k[1] = (y) => {
|
|
1877
1889
|
m(
|
|
1878
1890
|
"update:model-value",
|
|
1879
1891
|
e(Y).removeEntry(e(t), y.name)
|
|
1880
1892
|
);
|
|
1881
1893
|
})
|
|
1882
|
-
}, null, 8, ["model-value", "onEdit"])) :
|
|
1894
|
+
}, null, 8, ["model-value", "onEdit"])) : P("", !0),
|
|
1883
1895
|
v(U, {
|
|
1884
1896
|
class: "w-[200px]",
|
|
1885
1897
|
disabled: Object.keys(e(t).rules).length < 2,
|
|
1886
1898
|
items: e(o),
|
|
1887
1899
|
"model-value": e(o).find((y) => y.value === e(d)) ?? null,
|
|
1888
|
-
"onUpdate:modelValue":
|
|
1900
|
+
"onUpdate:modelValue": k[2] || (k[2] = (y) => m(
|
|
1889
1901
|
"update:model-value",
|
|
1890
1902
|
e(Y).setRuleToGroup(
|
|
1891
1903
|
e(t),
|
|
@@ -1906,6 +1918,6 @@ const Be = [
|
|
|
1906
1918
|
}
|
|
1907
1919
|
});
|
|
1908
1920
|
export {
|
|
1909
|
-
|
|
1910
|
-
|
|
1921
|
+
re as _,
|
|
1922
|
+
Ht as a
|
|
1911
1923
|
};
|