@feedmepos/mf-connect 0.1.38-beta.52 → 0.1.38-beta.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/package.json +2 -2
  2. package/dist/Analytic-BU1mOMoX.js +0 -760
  3. package/dist/App-fw6iFNxW.js +0 -4638
  4. package/dist/AuditLogs-CliU8167.js +0 -1887
  5. package/dist/Bin-C49tzfas.js +0 -166
  6. package/dist/Broadcast-YZVnZTCD.js +0 -232
  7. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DEwsZags.js +0 -122
  8. package/dist/Card-DcQQyJl9.js +0 -911
  9. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
  10. package/dist/Collections--8lmoXWR.js +0 -540
  11. package/dist/Credit-CfkLFMei.js +0 -227
  12. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
  13. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  14. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-t6eac8yR.js +0 -3151
  15. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CXVOuiLI.js +0 -347
  16. package/dist/Experience-BnVVC2-L.js +0 -228
  17. package/dist/FileSaver.min-NlMItPOc.js +0 -74
  18. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  19. package/dist/Game-Dbz4DzY_.js +0 -297
  20. package/dist/Grab-CCqScmpp.js +0 -300
  21. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-C5irH9v6.js +0 -145
  22. package/dist/Index-DPsM9D4W.js +0 -259
  23. package/dist/JsonViewer-v8_C7l5N.js +0 -87
  24. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
  25. package/dist/MainLayout-B1aJoR95.js +0 -41
  26. package/dist/Marketing-CFwxWdJq.js +0 -21761
  27. package/dist/Member-ZPKbf5Bk.js +0 -281
  28. package/dist/MemberList-BDs-70nG.js +0 -1607
  29. package/dist/MemberOverview-wL_ailso.js +0 -58
  30. package/dist/MemberTransactions-C-zHpuZF.js +0 -45
  31. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-B2TKmOOK.js +0 -60616
  32. package/dist/Mission-BHkb1E9m.js +0 -301
  33. package/dist/Overview-DYlcqNCX.js +0 -1079
  34. package/dist/Point-BEhNBY2_.js +0 -231
  35. package/dist/Promotion-DOXRIej4.js +0 -363
  36. package/dist/Queue-Bwa0LWhf.js +0 -260
  37. package/dist/Record-BoI8l1Qq.js +0 -341
  38. package/dist/Reward-BVQaqAYM.js +0 -442
  39. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BC3dEiWi.js +0 -150
  40. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-HpleMvjm.js +0 -1767
  41. package/dist/Segment-Cmy7nu27.js +0 -882
  42. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-pab6X2DC.js +0 -181
  43. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BqIh8D8O.js +0 -189
  44. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CESoNd87.js +0 -147
  45. package/dist/Setting-DN8j_6Xv.js +0 -1993
  46. package/dist/SettingAdvertisements-qHdiaa6m.js +0 -264
  47. package/dist/Store-DfhVYCgX.js +0 -1936
  48. package/dist/StoreRewards-NYucFLJU.js +0 -535
  49. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BGOcOAXR.js +0 -1036
  50. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DRin8Jzw.js +0 -8093
  51. package/dist/Tier-Dl0aBuJz.js +0 -970
  52. package/dist/Title-DvO6Mira.js +0 -568
  53. package/dist/Transaction-ONVl4UZZ.js +0 -39
  54. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-FyE25D8o.js +0 -130
  55. package/dist/Voucher-BZ1feYh1.js +0 -399
  56. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Lilql8J4.js +0 -421
  57. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-C_ZdCOPI.js +0 -56
  58. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  59. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  60. package/dist/app-B_RRkjaD.js +0 -42566
  61. package/dist/app-wDQR6dpb.js +0 -39
  62. package/dist/app.js +0 -7
  63. package/dist/business-y5qSMcd-.js +0 -82
  64. package/dist/campaign-CpzFl8Vr.js +0 -4
  65. package/dist/campaign-DHgol2Lt.js +0 -219
  66. package/dist/campaign-Drxe0zPX.js +0 -253
  67. package/dist/campaign.enum-CwAPVgPe.js +0 -21
  68. package/dist/campaign.fn-DMx5xsiK.js +0 -776
  69. package/dist/collectible.enum-Bh4jnUgP.js +0 -19
  70. package/dist/collection.fn-BpC_YBwG.js +0 -26
  71. package/dist/dto-DWkf9QOb.js +0 -222
  72. package/dist/effect-D5ZWGpNS.js +0 -78
  73. package/dist/email-addresses-DFtVESS8.js +0 -705
  74. package/dist/export-BtUy3sWU.js +0 -97
  75. package/dist/feedme.ico +0 -0
  76. package/dist/helper-DtWMZoWX.js +0 -86
  77. package/dist/index-7HXC3sH0.js +0 -56
  78. package/dist/index-BQlhmw75.js +0 -3
  79. package/dist/index-BdX7CxUg.js +0 -30076
  80. package/dist/index-BerRe0M3.js +0 -76
  81. package/dist/index-BrZ3xZzk.js +0 -146
  82. package/dist/index-CJzBpsBP.js +0 -3412
  83. package/dist/index-CQiABpeB.js +0 -32456
  84. package/dist/index-CqIWlGW3.js +0 -38
  85. package/dist/index-CsaQJMAR.js +0 -66
  86. package/dist/index-DPCDboPA.js +0 -32
  87. package/dist/index-DPaH8jaV.js +0 -8884
  88. package/dist/index-Dkce3JZ_.js +0 -54
  89. package/dist/index-DrYv_gG4.js +0 -31
  90. package/dist/index-SfJbKfWl.js +0 -2407
  91. package/dist/index-vh86FiIQ.js +0 -10
  92. package/dist/index.esm2017-CbvE5vCC.js +0 -3069
  93. package/dist/loading-BWGIK17X.js +0 -71
  94. package/dist/lodash-B5I3zXaY.js +0 -3678
  95. package/dist/membership-Zy2P6O6X.js +0 -235
  96. package/dist/moment-D7p2TMB-.js +0 -2583
  97. package/dist/money-D_fZmBbi.js +0 -15
  98. package/dist/number-C4DhXkCm.js +0 -12
  99. package/dist/object-qECH92oz.js +0 -26
  100. package/dist/objectId-dwaoBfJX.js +0 -7
  101. package/dist/objectid-C6eRcDzI.js +0 -145
  102. package/dist/plugins-DDAJav2s.js +0 -1817
  103. package/dist/reward-Dxjvmy7-.js +0 -36
  104. package/dist/rule-builder-ZkPWAiTl.js +0 -102
  105. package/dist/rule-sclqeiyk.js +0 -1951
  106. package/dist/style.css +0 -4
  107. package/dist/template-CAs0lkTY.js +0 -188
  108. package/dist/tier-BJDhpH6X.js +0 -4
  109. package/dist/tiers/tier=1.png +0 -0
  110. package/dist/tiers/tier=2.png +0 -0
  111. package/dist/tiers/tier=3.png +0 -0
  112. package/dist/tiers/tier=4.png +0 -0
  113. package/dist/timezone-5t8ki0gE.js +0 -1151
  114. package/dist/titles/type=diamond.png +0 -0
  115. package/dist/titles/type=drinks.png +0 -0
  116. package/dist/titles/type=food.png +0 -0
  117. package/dist/titles/type=heart.png +0 -0
  118. package/dist/titles/type=medal.png +0 -0
  119. package/dist/titles/type=spend.png +0 -0
  120. package/dist/titles/type=thank-you.png +0 -0
  121. package/dist/titles/type=thumbs-up.png +0 -0
  122. package/dist/titles/type=years.png +0 -0
  123. package/dist/trigger-B2fpKTfg.js +0 -213
  124. package/dist/tslib.es6-BCqqvLQ_.js +0 -44
  125. package/dist/type_drinks-D6jnpvwV.js +0 -4
  126. package/dist/usePagination-Ds-cuHop.js +0 -223
  127. package/dist/user-ORhbAsqi.js +0 -55
  128. package/dist/vue-i18n-cyOhW8mW.js +0 -2365
  129. package/dist/xlsx-4klfjFae.js +0 -15491
  130. package/dist/zod-BsHmzMQd.js +0 -91
@@ -1,227 +0,0 @@
1
- import { defineComponent as N, ref as L, computed as j, h as M, onMounted as H, resolveComponent as m, openBlock as d, createElementBlock as y, Fragment as h, createVNode as i, unref as t, createElementVNode as n, withCtx as C, renderList as q, createBlock as w, resolveDynamicComponent as O, toDisplayString as g, createCommentVNode as z } from "vue";
2
- import { _ as G } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as J, components as Q } from "@feedmepos/ui-library";
4
- import { p as W } from "./plugins-DDAJav2s.js";
5
- import { u as X } from "./loading-BWGIK17X.js";
6
- import { u as Y } from "./business-y5qSMcd-.js";
7
- import { u as Z, c as _ } from "./campaign-DHgol2Lt.js";
8
- import { a as ee, b as S, c as V } from "./campaign-Drxe0zPX.js";
9
- import { u as oe } from "./vue-i18n-cyOhW8mW.js";
10
- import { _ as te } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
11
- import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-t6eac8yR.js";
12
- import { u as ne } from "./template-CAs0lkTY.js";
13
- const re = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ie = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { key: 0 }, Be = /* @__PURE__ */ N({
14
- __name: "Credit",
15
- setup(ge) {
16
- const { t: r } = oe(), B = {
17
- label: r("connect.program.common.actions.create", {
18
- type: r("connect.program.credit.title").toLowerCase()
19
- }),
20
- value: "create",
21
- isPrimary: !0,
22
- prependIcon: "add"
23
- }, I = ne("CREDIT", J()), R = Y(), u = Z(), { global: D, minor: v } = X, s = L({
24
- searchKey: "",
25
- location: []
26
- });
27
- function T(e) {
28
- const o = s.value.location;
29
- return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((l) => {
30
- var c;
31
- return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
32
- }) : e.targetLocation.includes(o);
33
- }
34
- const p = j(
35
- () => u.campaigns.credit.filter((e) => T(e))
36
- ), E = [
37
- {
38
- header: r("connect.program.common.table.title"),
39
- accessorFn: (e) => e.name
40
- },
41
- {
42
- header: r("connect.program.common.table.status"),
43
- accessorFn: (e) => ee(e),
44
- cell(e) {
45
- return S(e.row.original);
46
- }
47
- },
48
- {
49
- header: r("connect.program.common.table.summary"),
50
- accessorFn: (e) => V(e)
51
- },
52
- {
53
- header: r("connect.program.common.table.actions"),
54
- cell(e) {
55
- return M(Q.FmButton, {
56
- variant: "tertiary",
57
- icon: "delete",
58
- iconColor: "neutral-gray-400",
59
- onClick: (o) => {
60
- o.stopPropagation(), x(e.row.original);
61
- }
62
- });
63
- }
64
- }
65
- ], b = L();
66
- async function x(e) {
67
- await W.remove(
68
- r("connect.program.common.remove.confirm", { name: e.name })
69
- ) && await v(
70
- async () => {
71
- await _.delete(e._id), await u.read("CREDIT");
72
- },
73
- {
74
- message: r("connect.program.common.remove.removing", { name: e.name }),
75
- successMessage: r("connect.program.common.remove.removed", {
76
- name: e.name
77
- })
78
- }
79
- );
80
- }
81
- async function f(e) {
82
- e ? await o() : I.open(async (l) => {
83
- await o(l);
84
- });
85
- async function o(l) {
86
- var c;
87
- (c = b.value) == null || c.showSheet(
88
- !0,
89
- "CREDIT",
90
- e ? await _.readById(e._id) : void 0,
91
- l
92
- );
93
- }
94
- }
95
- async function K(e) {
96
- await v(
97
- async () => {
98
- e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await u.read("CREDIT");
99
- },
100
- {
101
- message: `${e.campaign._id ? "Updating" : "Creating"} credit program`,
102
- successMessage: `Credit program ${e.campaign._id ? "updated" : "created"} successfully`
103
- }
104
- );
105
- }
106
- return H(async () => {
107
- await D(async () => {
108
- await u.read("CREDIT");
109
- });
110
- }), (e, o) => {
111
- const l = m("FmPageHead"), c = m("FmSearch"), $ = m("FmTable"), F = m("FmButton"), P = m("FmListItem"), U = m("FmList"), A = m("FmCard");
112
- return d(), y(h, null, [
113
- i(l, {
114
- title: t(r)("connect.program.credit.title"),
115
- actions: t(p).length > 0 ? [B] : [],
116
- "onClick:action": o[0] || (o[0] = () => f())
117
- }, null, 8, ["title", "actions"]),
118
- n("div", re, [
119
- i(c, {
120
- modelValue: t(s).searchKey,
121
- "onUpdate:modelValue": o[1] || (o[1] = (a) => t(s).searchKey = a),
122
- class: "hidden xs:!block border-b-2 border-fm-color-neutral-gray-100",
123
- placeholder: "search",
124
- collapsible: ""
125
- }, null, 8, ["modelValue"]),
126
- t(u).campaigns.credit && t(u).campaigns.credit.length > 0 ? (d(), y(h, { key: 0 }, [
127
- n("div", se, [
128
- n("div", ie, [
129
- i(te, {
130
- label: `${t(r)("connect.common.location")}: `,
131
- "right-icon": "keyboard_arrow_down",
132
- modelValue: t(s).location,
133
- "onUpdate:modelValue": o[2] || (o[2] = (a) => t(s).location = a),
134
- icon: "storefront",
135
- "show-item-label": !0,
136
- items: t(R).locationOptions
137
- }, null, 8, ["label", "modelValue", "items"])
138
- ]),
139
- i(c, {
140
- modelValue: t(s).searchKey,
141
- "onUpdate:modelValue": o[3] || (o[3] = (a) => t(s).searchKey = a),
142
- class: "xs:hidden",
143
- placeholder: "search",
144
- collapsible: ""
145
- }, null, 8, ["modelValue"])
146
- ]),
147
- i($, {
148
- class: "xs:hidden",
149
- "row-data": t(p),
150
- "column-defs": E,
151
- "search-value": t(s).searchKey,
152
- "column-filter": [],
153
- onRowClick: o[4] || (o[4] = (a) => f(a.original)),
154
- "hide-footer": t(p).length < 10
155
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
156
- i(U, { class: "hidden xs:!flex flex-col mx-[-24px]" }, {
157
- default: C(() => [
158
- (d(!0), y(h, null, q(t(p).filter(
159
- (a) => a.name.toLowerCase().includes(t(s).searchKey.toLowerCase())
160
- ), (a) => (d(), w(P, {
161
- key: a._id.toString(),
162
- onClick: (k) => f(a),
163
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
164
- }, {
165
- default: C(() => [
166
- n("div", ce, [
167
- n("div", le, [
168
- (d(), w(O(t(S)(a)))),
169
- n("div", me, g(a.currentReceive ?? 0) + " used ", 1)
170
- ]),
171
- n("div", de, [
172
- n("div", ue, g(a.name), 1),
173
- n("div", pe, g(t(V)(a)), 1)
174
- ]),
175
- n("div", fe, " Credit received: " + g(a.currentReceive ?? 0), 1)
176
- ]),
177
- i(F, {
178
- icon: "delete",
179
- "icon-color": "neutral-gray-400",
180
- variant: "tertiary",
181
- onClick: (k) => (k.stopPropagation(), x(a))
182
- }, null, 8, ["onClick"])
183
- ]),
184
- _: 2
185
- }, 1032, ["onClick"]))), 128))
186
- ]),
187
- _: 1
188
- }),
189
- t(p).length == 0 ? (d(), y("div", ye, [...o[6] || (o[6] = [
190
- n("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1)
191
- ])])) : z("", !0)
192
- ], 64)) : (d(), w(A, {
193
- key: 1,
194
- variant: "outlined",
195
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
196
- }, {
197
- default: C(() => [
198
- o[7] || (o[7] = n("img", {
199
- src: G,
200
- class: "aspect-square w-[150px]"
201
- }, null, -1)),
202
- o[8] || (o[8] = n("div", { class: "flex flex-col gap-16 text-center" }, [
203
- n("div", { class: "fm-typo-en-title-sm-800" }, "Create your credit program"),
204
- n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Credits are virtual money that customers can use to pay for their purchases, similar to cash within your store. ")
205
- ], -1)),
206
- i(F, {
207
- variant: "primary",
208
- label: "Create credit program",
209
- icon: "add",
210
- onClick: o[5] || (o[5] = (a) => f())
211
- })
212
- ]),
213
- _: 1
214
- })),
215
- i(ae, {
216
- ref_key: "sheetRef",
217
- ref: b,
218
- "onSubmit:modelValue": K
219
- }, null, 512)
220
- ])
221
- ], 64);
222
- };
223
- }
224
- });
225
- export {
226
- Be as default
227
- };
@@ -1,128 +0,0 @@
1
- import { defineComponent as j, ref as B, computed as N, resolveComponent as i, openBlock as n, createBlock as g, unref as r, withCtx as v, renderSlot as p, createElementBlock as f, toDisplayString as h, createCommentVNode as F, createVNode as C, normalizeClass as V, createElementVNode as q, Fragment as A, renderList as E } from "vue";
2
- const M = {
3
- key: 0,
4
- class: "fm-typo-en-body-lg-400 mb-4"
5
- }, O = {
6
- key: 1,
7
- class: "fm-typo-en-body-lg-400"
8
- }, D = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, G = /* @__PURE__ */ j({
9
- __name: "CustomSelect",
10
- props: {
11
- label: {
12
- type: String,
13
- required: !1
14
- },
15
- placeholder: {
16
- type: String,
17
- required: !1
18
- },
19
- items: {
20
- type: Object,
21
- required: !0
22
- },
23
- modelValue: {
24
- type: Object
25
- },
26
- zIndex: {
27
- type: Number
28
- },
29
- multiselect: {
30
- type: Boolean
31
- }
32
- },
33
- emits: ["update:model-value"],
34
- setup(e, { emit: w }) {
35
- const u = e, s = w, d = B(!1), b = N(() => !u.multiselect || !u.modelValue ? !1 : u.items.every((m) => u.modelValue.includes(m.value))), I = () => {
36
- u.multiselect && (b.value ? s("update:model-value", []) : s(
37
- "update:model-value",
38
- u.items.map((m) => m.value)
39
- ));
40
- };
41
- return (m, c) => {
42
- const S = i("FmIcon"), z = i("FmField"), k = i("FmMenuItem"), P = i("FmPopover");
43
- return n(), g(P, {
44
- "show-popover": r(d),
45
- onPopoverChanged: c[1] || (c[1] = (l) => d.value = l),
46
- "z-index": e.zIndex
47
- }, {
48
- "popover-button": v(() => [
49
- p(m.$slots, "popover-button", {}, () => [
50
- e.label ? (n(), f("div", M, h(e.label), 1)) : F("", !0),
51
- C(z, null, {
52
- append: v(() => [
53
- p(m.$slots, "append"),
54
- C(S, {
55
- name: r(d) ? "expand_less" : "expand_more",
56
- size: "md",
57
- color: "black"
58
- }, null, 8, ["name"])
59
- ]),
60
- default: v(() => {
61
- var l;
62
- return [
63
- e.multiselect ? (n(), f("div", O, h((() => {
64
- const t = e.items.filter(
65
- (o) => {
66
- var a;
67
- return (a = e.modelValue) == null ? void 0 : a.includes(o.value);
68
- }
69
- );
70
- return t.length <= 5 ? t.map((o) => o.label).join(", ") : t.slice(0, 5).map((o) => o.label).join(", ") + ` +${t.length - 5} selected`;
71
- })()), 1)) : (n(), f("div", {
72
- key: 0,
73
- class: V(["fm-typo-en-body-lg-400", {
74
- "text-fm-color-typo-secondary": !e.items.find(
75
- (t) => t.value == e.modelValue
76
- )
77
- }])
78
- }, h(((l = e.items.find((t) => t.value == e.modelValue)) == null ? void 0 : l.label) || e.placeholder), 3))
79
- ];
80
- }),
81
- _: 3
82
- })
83
- ])
84
- ]),
85
- default: v(() => [
86
- q("div", D, [
87
- e.multiselect ? (n(), g(k, {
88
- key: 0,
89
- class: V(`${r(b) ? "bg-fm-color-system-warning-100" : ""}`),
90
- "has-checkbox": !0,
91
- "model-value": r(b),
92
- label: "All",
93
- onClick: c[0] || (c[0] = (l) => {
94
- l.stopPropagation(), I();
95
- })
96
- }, null, 8, ["class", "model-value"])) : F("", !0),
97
- (n(!0), f(A, null, E(e.items, (l) => {
98
- var t, o;
99
- return n(), g(k, {
100
- class: V(`${e.multiselect ? (t = e.modelValue) != null && t.some((a) => a == l.value) ? "bg-fm-color-system-warning-100" : "" : e.modelValue == l.value}`),
101
- "has-checkbox": e.multiselect,
102
- key: l.value,
103
- "model-value": e.multiselect ? (o = e.modelValue) == null ? void 0 : o.some((a) => a == l.value) : e.modelValue == l.value,
104
- label: l.label,
105
- onClick: (a) => {
106
- var x;
107
- if (a.stopPropagation(), !e.multiselect)
108
- d.value = !1, s("update:model-value", l.value);
109
- else {
110
- const $ = (x = e.modelValue) == null ? void 0 : x.some((y) => y == l.value);
111
- s(
112
- "update:model-value",
113
- $ ? (e.modelValue ?? []).filter((y) => y !== l.value) : [...e.modelValue ?? [], l.value]
114
- );
115
- }
116
- }
117
- }, null, 8, ["class", "has-checkbox", "model-value", "label", "onClick"]);
118
- }), 128))
119
- ])
120
- ]),
121
- _: 3
122
- }, 8, ["show-popover", "z-index"]);
123
- };
124
- }
125
- });
126
- export {
127
- G as _
128
- };
@@ -1,58 +0,0 @@
1
- import { defineComponent as f, mergeModels as l, useModel as g, computed as u, onMounted as _, watch as R, resolveComponent as m, openBlock as h, createBlock as V, withCtx as b, createVNode as k, unref as y } from "vue";
2
- import { h as t } from "./moment-D7p2TMB-.js";
3
- const a = "YYYY-MM-DD", F = /* @__PURE__ */ f({
4
- __name: "DateRangeChip",
5
- props: /* @__PURE__ */ l({
6
- modelValue: {
7
- type: Object,
8
- required: !0
9
- }
10
- }, {
11
- dateRange: {
12
- type: Object,
13
- default: () => ({
14
- startDate: t().subtract(7, "day").format(a),
15
- endDate: t().endOf("day").format(a)
16
- })
17
- },
18
- dateRangeModifiers: {}
19
- }),
20
- emits: /* @__PURE__ */ l(["update:model-value"], ["update:dateRange"]),
21
- setup(r, { emit: s }) {
22
- const o = r, c = s, e = g(r, "dateRange"), i = u(() => e.value ? `${n.value.startDate ?? "Start"} - ${n.value.endDate ?? "End"}` : "No dates selected."), n = u(() => ({
23
- startDate: e.value.startDate ? t(e.value.startDate).format(a) : void 0,
24
- endDate: e.value.endDate ? t(e.value.endDate).format(a) : void 0
25
- }));
26
- return _(() => {
27
- e.value = {
28
- startDate: o.modelValue.startDate ? t(o.modelValue.startDate).format(a) : void 0,
29
- endDate: o.modelValue.endDate ? t(o.modelValue.endDate).format(a) : void 0
30
- };
31
- }), R(
32
- () => e.value,
33
- () => {
34
- c("update:model-value", n.value);
35
- }
36
- ), (C, d) => {
37
- const p = m("FmChip"), D = m("FmDateRangePicker");
38
- return h(), V(D, {
39
- modelValue: e.value,
40
- "onUpdate:modelValue": d[0] || (d[0] = (v) => e.value = v),
41
- "show-predefined-range": ""
42
- }, {
43
- "trigger-button": b(() => [
44
- k(p, {
45
- label: y(i),
46
- icon: "calendar_month",
47
- "right-icon": "keyboard_arrow_down",
48
- class: "text-fm-color-neutral-gray-400 cursor-pointer"
49
- }, null, 8, ["label"])
50
- ]),
51
- _: 1
52
- }, 8, ["modelValue"]);
53
- };
54
- }
55
- });
56
- export {
57
- F as _
58
- };