@orchidui/core 1.21.1-2 → 1.21.1-21
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/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
- package/dist/DataDisplay/NewTable/OcNewTable.js +1 -1
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +1 -1
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +1 -1
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
- package/dist/Disclosure/Steps/OcSteps.js +1 -1
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
- package/dist/Elements/Box/OcBox.js +1 -1
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +1 -1
- package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +2 -2
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/TopBanner/OcTopBanner.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-M1jTxEYw.js → OcAccountSetupProgress-Bbhe6d9L.js} +1 -1
- package/dist/{OcComplexCalendar-CeOoQw4b.js → OcComplexCalendar-D8HrQXAa.js} +1 -1
- package/dist/{OcComplexDatePicker-Cm2Uzb7S.js → OcComplexDatePicker-CSMoghp5.js} +1 -1
- package/dist/{OcCropper-C4d7NMl1.js → OcCropper-CziGYVsj.js} +1 -1
- package/dist/{OcDataTable-9m0QrhGC.js → OcDataTable-burJz9P_.js} +114 -113
- package/dist/{OcDraggableList-Bim60S5D.js → OcDraggableList-WAUxd-qH.js} +1 -1
- package/dist/{OcEmojiPicker-C6Nq_x88.js → OcEmojiPicker-BS7x4tBq.js} +1 -1
- package/dist/{OcFilterForm-DnFUl9-M.js → OcFilterForm-BZs_PStS.js} +1 -1
- package/dist/{OcFilterSearch-CT9mNll6.js → OcFilterSearch-Dobj7z1m.js} +1 -1
- package/dist/{OcFilterSearchFor-BDxlpYXT.js → OcFilterSearchFor-DBSIL8WM.js} +1 -1
- package/dist/{OcModalCropper-DRIf3-iy.js → OcModalCropper-NI4pQKOh.js} +2 -2
- package/dist/{OcTimePicker-DCFTQE9D.js → OcTimePicker-DQ_IoL_D.js} +1 -1
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
- package/dist/Overlay/Modal/OcModal.js +1 -1
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
- package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
- package/dist/{SubPlanCard-BWgale95.js → SubPlanCard-BD0Ybr5h.js} +1 -1
- package/dist/{ThumbnailSection-B2eBrp2l.js → ThumbnailSection-2BeOQmy0.js} +1 -1
- package/dist/{ThumbnailTheme-UXITJaFA.js → ThumbnailTheme-SRpmGqlo.js} +1 -1
- package/dist/{index-O00mMbpa.js → index-BhHJ45f7.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as $, onMounted as Te, createBlock as L, openBlock as r, unref as
|
|
2
|
-
import { aA as Ke, B as Ie, C as cl, D as ml, L as pl, $ as fl, aL as yl, aM as gl, aN as bl, I as kl, J as je, j as hl } from "./index-
|
|
1
|
+
import { ref as $, onMounted as Te, createBlock as L, openBlock as r, unref as u, withCtx as w, createVNode as j, createElementVNode as q, createElementBlock as h, createCommentVNode as y, mergeProps as Ce, Fragment as re, renderList as de, normalizeClass as ve, toDisplayString as Pe, computed as S, watch as ne, nextTick as nl, renderSlot as A, resolveDynamicComponent as dl, createSlots as vl, normalizeProps as Ae, guardReactiveProps as Le } from "vue";
|
|
2
|
+
import { aA as Ke, B as Ie, C as cl, D as ml, L as pl, $ as fl, aL as yl, aM as gl, aN as bl, I as kl, J as je, j as hl } from "./index-BhHJ45f7.js";
|
|
3
3
|
import { useDataTable as xl } from "./DataTable/useDataTable.js";
|
|
4
4
|
import { VueDraggableNext as Be } from "vue-draggable-next";
|
|
5
|
-
import { getFromLocalStorage as
|
|
5
|
+
import { getFromLocalStorage as Ne, formatHeadersFromLocalStorage as qe, formatHeadersToLocalStorage as wl, setInLocalStorage as Sl } from "./DataTable/utils/editColumnsUtils.js";
|
|
6
6
|
import { _ as Ue } from "./OcIcon-CxreweI4.js";
|
|
7
7
|
import { formatFilterDisplay as $l, clearAllFilters as Fl } from "./DataTable/utils/filterUtils.js";
|
|
8
8
|
import { formatCustomItemsPerPageOptions as Ol, getItemsPerPageOptions as Vl } from "./DataTable/utils/paginationUtils.js";
|
|
@@ -31,54 +31,54 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["change-active", "onMoved", "update-order"],
|
|
33
33
|
setup(F, { emit: se }) {
|
|
34
|
-
const oe = se,
|
|
34
|
+
const oe = se, i = F, g = $([]), d = $([]), T = $(!1), O = {
|
|
35
35
|
handle: ".drag-el",
|
|
36
36
|
filter: ".is-disabled",
|
|
37
37
|
group: "headers",
|
|
38
38
|
animation: 500,
|
|
39
39
|
forceFallback: !1,
|
|
40
|
-
move: (
|
|
40
|
+
move: (E) => E.to.dataset.activeHeaders ? !0 : !!E.draggedContext.futureIndex,
|
|
41
41
|
"onUpdate:modelValue": () => K()
|
|
42
|
-
}, K = (
|
|
42
|
+
}, K = (E = !1) => {
|
|
43
43
|
d.value = d.value.map((o) => ({
|
|
44
44
|
...o,
|
|
45
45
|
isActive: !0
|
|
46
46
|
})), oe("update-order", {
|
|
47
47
|
fixedHeaders: d.value,
|
|
48
48
|
activeHeaders: g.value,
|
|
49
|
-
isOnMount:
|
|
49
|
+
isOnMount: E
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
return Te(() => {
|
|
53
|
-
const
|
|
54
|
-
d.value = o ||
|
|
53
|
+
const E = Ne(i.localKey), { fixed: o, active: v } = qe(E, i.headers, i.localKey);
|
|
54
|
+
d.value = o || i.headers.slice(0, 1), g.value = v || i.headers.slice(1).map((C) => {
|
|
55
55
|
var ee, le, ae;
|
|
56
56
|
return {
|
|
57
|
-
...
|
|
58
|
-
isActive: ((ae = (le = (ee =
|
|
57
|
+
...C,
|
|
58
|
+
isActive: ((ae = (le = (ee = i.options) == null ? void 0 : ee.active) == null ? void 0 : le.find((ie) => ie.key === C.key)) == null ? void 0 : ae.isActive) ?? !0
|
|
59
59
|
};
|
|
60
60
|
}), K(!0);
|
|
61
|
-
}), (
|
|
61
|
+
}), (E, o) => (r(), L(u(Ke), {
|
|
62
62
|
modelValue: T.value,
|
|
63
63
|
"onUpdate:modelValue": o[3] || (o[3] = (v) => T.value = v),
|
|
64
64
|
"is-attach-to-body": ""
|
|
65
65
|
}, {
|
|
66
66
|
menu: w(() => [
|
|
67
|
-
|
|
67
|
+
q("div", Dl, [
|
|
68
68
|
d.value.length ? (r(), h("div", El, [
|
|
69
|
-
o[4] || (o[4] =
|
|
70
|
-
j(
|
|
69
|
+
o[4] || (o[4] = q("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
|
|
70
|
+
j(u(Be), Ce({
|
|
71
71
|
key: "key",
|
|
72
72
|
modelValue: d.value,
|
|
73
73
|
"onUpdate:modelValue": o[0] || (o[0] = (v) => d.value = v)
|
|
74
74
|
}, O), {
|
|
75
75
|
default: w(() => [
|
|
76
|
-
(r(!0), h(re, null, de(d.value, (v,
|
|
76
|
+
(r(!0), h(re, null, de(d.value, (v, C) => (r(), h("div", {
|
|
77
77
|
key: v.key,
|
|
78
|
-
class: ve(["flex items-center justify-between h-[26px]",
|
|
78
|
+
class: ve(["flex items-center justify-between h-[26px]", C ? "" : "is-disabled"])
|
|
79
79
|
}, [
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
q("span", null, Pe(v.label), 1),
|
|
81
|
+
C ? (r(), L(u(Ue), {
|
|
82
82
|
key: 0,
|
|
83
83
|
width: "18",
|
|
84
84
|
height: "18",
|
|
@@ -90,9 +90,9 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
90
90
|
_: 1
|
|
91
91
|
}, 16, ["modelValue"])
|
|
92
92
|
])) : y("", !0),
|
|
93
|
-
|
|
94
|
-
o[5] || (o[5] =
|
|
95
|
-
j(
|
|
93
|
+
q("div", Cl, [
|
|
94
|
+
o[5] || (o[5] = q("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
|
|
95
|
+
j(u(Be), Ce({
|
|
96
96
|
key: "key",
|
|
97
97
|
modelValue: g.value,
|
|
98
98
|
"onUpdate:modelValue": o[2] || (o[2] = (v) => g.value = v)
|
|
@@ -102,18 +102,18 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
102
102
|
key: v.key
|
|
103
103
|
}, [
|
|
104
104
|
v.key !== "actions" ? (r(), h("div", Pl, [
|
|
105
|
-
|
|
106
|
-
j(
|
|
105
|
+
q("div", Al, [
|
|
106
|
+
j(u(cl), {
|
|
107
107
|
modelValue: v.isActive,
|
|
108
108
|
"onUpdate:modelValue": [
|
|
109
|
-
(
|
|
110
|
-
o[1] || (o[1] = (
|
|
109
|
+
(C) => v.isActive = C,
|
|
110
|
+
o[1] || (o[1] = (C) => K())
|
|
111
111
|
],
|
|
112
112
|
class: "!w-fit"
|
|
113
113
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
114
|
-
|
|
114
|
+
q("div", Ll, Pe(v.label), 1)
|
|
115
115
|
]),
|
|
116
|
-
g.value.length > 1 ? (r(), L(
|
|
116
|
+
g.value.length > 1 ? (r(), L(u(Ue), {
|
|
117
117
|
key: 0,
|
|
118
118
|
width: "18",
|
|
119
119
|
height: "18",
|
|
@@ -129,7 +129,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
129
129
|
])
|
|
130
130
|
]),
|
|
131
131
|
default: w(() => [
|
|
132
|
-
j(
|
|
132
|
+
j(u(Ie), {
|
|
133
133
|
label: "Edit Column",
|
|
134
134
|
"left-icon": "setting",
|
|
135
135
|
size: "small",
|
|
@@ -152,7 +152,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
152
152
|
}, Il = {
|
|
153
153
|
key: 1,
|
|
154
154
|
class: "flex justify-center w-full gap-5 md:justify-start"
|
|
155
|
-
},
|
|
155
|
+
}, Nl = {
|
|
156
156
|
key: 2,
|
|
157
157
|
class: "items-center hidden md:flex"
|
|
158
158
|
}, Yl = {
|
|
@@ -197,6 +197,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
197
197
|
emits: {
|
|
198
198
|
"update:selected": [],
|
|
199
199
|
"update:filter": [],
|
|
200
|
+
"apply-filter": [],
|
|
200
201
|
"click:row": [],
|
|
201
202
|
"filter-fields-changed": [],
|
|
202
203
|
"filter-removed": [],
|
|
@@ -209,37 +210,37 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
209
210
|
},
|
|
210
211
|
setup(F, { expose: se, emit: oe }) {
|
|
211
212
|
var ye, ge, be, ke, he, xe, we, Se, $e, Fe, Oe, Ve, De, Ee;
|
|
212
|
-
const
|
|
213
|
+
const i = F, g = oe, d = S(() => {
|
|
213
214
|
var e;
|
|
214
|
-
return (e =
|
|
215
|
+
return (e = i.options) == null ? void 0 : e.cursor;
|
|
215
216
|
}), T = $(), O = S(() => {
|
|
216
217
|
var e;
|
|
217
|
-
return (e =
|
|
218
|
-
}), K = S(() =>
|
|
219
|
-
localData:
|
|
218
|
+
return (e = i.options) == null ? void 0 : e.tableOptions;
|
|
219
|
+
}), K = S(() => i.localDb !== void 0), {
|
|
220
|
+
localData: E,
|
|
220
221
|
paginationData: o,
|
|
221
222
|
isLoading: v,
|
|
222
223
|
// Methods
|
|
223
|
-
bulkPutLocalData:
|
|
224
|
+
bulkPutLocalData: C,
|
|
224
225
|
bulkDeleteLocalData: ee,
|
|
225
226
|
getLocalDataUpdatedAt: le,
|
|
226
227
|
getProductIdAndLastUpdatedAt: ae,
|
|
227
|
-
syncLocalData:
|
|
228
|
+
syncLocalData: ie,
|
|
228
229
|
sortByData: R,
|
|
229
230
|
// Setters
|
|
230
231
|
setFilter: Qe,
|
|
231
232
|
setSortBy: ze
|
|
232
233
|
} = xl({
|
|
233
|
-
name: ((ye =
|
|
234
|
-
db: ((ge =
|
|
235
|
-
filterableFields: (be =
|
|
236
|
-
sortableFields: (ke =
|
|
237
|
-
searchableFields: (he =
|
|
234
|
+
name: ((ye = i.localDb) == null ? void 0 : ye.table_name) ?? null,
|
|
235
|
+
db: ((ge = i.localDb) == null ? void 0 : ge.db) ?? null,
|
|
236
|
+
filterableFields: (be = i.options) == null ? void 0 : be.filterableFields,
|
|
237
|
+
sortableFields: (ke = i.options) == null ? void 0 : ke.sortableFields,
|
|
238
|
+
searchableFields: (he = i.options) == null ? void 0 : he.searchableFields
|
|
238
239
|
});
|
|
239
240
|
ne(
|
|
240
241
|
() => {
|
|
241
242
|
var e;
|
|
242
|
-
return (e =
|
|
243
|
+
return (e = i.options) == null ? void 0 : e.pagination;
|
|
243
244
|
},
|
|
244
245
|
(e) => {
|
|
245
246
|
K.value || (o.value = e);
|
|
@@ -255,38 +256,38 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
255
256
|
return n.class = ((m = (f = O.value) == null ? void 0 : f.headers.find((s) => s.key === n.key)) == null ? void 0 : m.class) ?? "", n;
|
|
256
257
|
}).filter((n) => n.isActive) : (l = O.value) == null ? void 0 : l.headers.filter((n) => He(n.key))
|
|
257
258
|
};
|
|
258
|
-
return (c = e.fields) != null && c.length || (e.fields =
|
|
259
|
+
return (c = e.fields) != null && c.length || (e.fields = E.value), e;
|
|
259
260
|
}), a = S(() => {
|
|
260
261
|
var e;
|
|
261
|
-
return (e =
|
|
262
|
+
return (e = i.options) == null ? void 0 : e.filterOptions;
|
|
262
263
|
}), Re = S(() => {
|
|
263
264
|
var e;
|
|
264
|
-
return (e =
|
|
265
|
-
}),
|
|
265
|
+
return (e = i.options) == null ? void 0 : e.hidePerPageDropdown;
|
|
266
|
+
}), Je = S(() => {
|
|
266
267
|
var e;
|
|
267
268
|
return ((e = o.value) == null ? void 0 : e.last_page) === 1;
|
|
268
|
-
}),
|
|
269
|
-
!
|
|
270
|
-
const t = $(
|
|
269
|
+
}), J = JSON.parse(JSON.stringify({ ...i.filter }));
|
|
270
|
+
!J && o.value ? J.page = 1 : !J && d && (J.cursor = "");
|
|
271
|
+
const t = $(J), Q = $(!1), B = $(t.value[(we = (xe = a.value) == null ? void 0 : xe.tabs) == null ? void 0 : we.key]), M = $(t.value.page), z = $(
|
|
271
272
|
($e = (Se = a.value) == null ? void 0 : Se.per_page) != null && $e.key ? t.value[(Oe = (Fe = a.value) == null ? void 0 : Fe.per_page) == null ? void 0 : Oe.key] : t.value.per_page
|
|
272
|
-
), me = ((Ee = t.value[t.value.selectedSearchOption || ((De = (Ve = a.value) == null ? void 0 : Ve.search) == null ? void 0 : De.key)]) == null ? void 0 : Ee.trim()) ?? "", U = $(me ? me.split(",") : []), pe = $(!1),
|
|
273
|
+
), me = ((Ee = t.value[t.value.selectedSearchOption || ((De = (Ve = a.value) == null ? void 0 : Ve.search) == null ? void 0 : De.key)]) == null ? void 0 : Ee.trim()) ?? "", U = $(me ? me.split(",") : []), pe = $(!1), Me = S(
|
|
273
274
|
() => {
|
|
274
275
|
var e;
|
|
275
|
-
return Ol((e =
|
|
276
|
+
return Ol((e = i.options) == null ? void 0 : e.perPageOptions);
|
|
276
277
|
}
|
|
277
|
-
), Ge = S(() => Vl(
|
|
278
|
+
), Ge = S(() => Vl(Me.value, o.value)), We = S(() => {
|
|
278
279
|
var e;
|
|
279
|
-
return ((e =
|
|
280
|
+
return ((e = i.selected) == null ? void 0 : e.length) > 0;
|
|
280
281
|
}), Xe = (e) => {
|
|
281
|
-
!e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e],
|
|
282
|
+
!e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e], V(), g("search-query-changed", e));
|
|
282
283
|
}, Ye = (e) => {
|
|
283
|
-
U.value = U.value.filter((l) => l !== e),
|
|
284
|
+
U.value = U.value.filter((l) => l !== e), V();
|
|
284
285
|
}, Ze = S(() => $l(t.value, a.value)), He = (e) => {
|
|
285
286
|
var l, c, n, f, m, s;
|
|
286
287
|
return ((s = (m = (f = (n = t.value) == null ? void 0 : n[(c = (l = a.value) == null ? void 0 : l.columnEdit) == null ? void 0 : c.key]) == null ? void 0 : f.active) == null ? void 0 : m.find((b) => b.key === e)) == null ? void 0 : s.isActive) ?? !0;
|
|
287
288
|
}, _e = ({ fixedHeaders: e, activeHeaders: l, isOnMount: c }) => {
|
|
288
|
-
var n, f, m, s, b, x, P,
|
|
289
|
-
if (t.value[(f = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : f.key] || (t.value[(s = (m = a.value) == null ? void 0 : m.columnEdit) == null ? void 0 : s.key] = {}), t.value[(x = (b = a.value) == null ? void 0 : b.columnEdit) == null ? void 0 : x.key].fixed = e, t.value[(
|
|
289
|
+
var n, f, m, s, b, x, P, D;
|
|
290
|
+
if (t.value[(f = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : f.key] || (t.value[(s = (m = a.value) == null ? void 0 : m.columnEdit) == null ? void 0 : s.key] = {}), t.value[(x = (b = a.value) == null ? void 0 : b.columnEdit) == null ? void 0 : x.key].fixed = e, t.value[(D = (P = a.value) == null ? void 0 : P.columnEdit) == null ? void 0 : D.key].active = l, T.value = [...e, ...l], !c) {
|
|
290
291
|
const I = wl(e, l);
|
|
291
292
|
Sl(a.value.columnEdit.localStorageKey, I);
|
|
292
293
|
}
|
|
@@ -294,9 +295,9 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
294
295
|
}, el = () => {
|
|
295
296
|
var e, l, c, n, f, m;
|
|
296
297
|
if ((l = (e = a.value) == null ? void 0 : e.columnEdit) != null && l.localStorageKey) {
|
|
297
|
-
const s =
|
|
298
|
+
const s = Ne(a.value.columnEdit.localStorageKey);
|
|
298
299
|
if (s) {
|
|
299
|
-
const { fixed: b, active: x } =
|
|
300
|
+
const { fixed: b, active: x } = qe(
|
|
300
301
|
s,
|
|
301
302
|
O.value.headers,
|
|
302
303
|
a.value.columnEdit.localStorageKey
|
|
@@ -312,53 +313,53 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
312
313
|
a.value,
|
|
313
314
|
z.value,
|
|
314
315
|
B.value
|
|
315
|
-
),
|
|
316
|
+
), V();
|
|
316
317
|
}, tl = () => {
|
|
317
|
-
|
|
318
|
-
},
|
|
319
|
-
var s, b, x, P,
|
|
320
|
-
o.value && !l && (
|
|
321
|
-
var
|
|
322
|
-
(
|
|
318
|
+
V(null, M.value);
|
|
319
|
+
}, V = (e = null, l = !1, c = "", n = !1, f = !1) => {
|
|
320
|
+
var s, b, x, P, D, I, G, W, X, Y, Z, H, _;
|
|
321
|
+
o.value && !l && (M.value = 1), o.value ? t.value.page = M.value : t.value.cursor = c, (s = a.value) != null && s.per_page ? t.value[a.value.per_page.key] = z.value : t.value.per_page = z.value, (b = a.value) != null && b.tabs && f && (t.value[a.value.tabs.key] = B.value), (x = a.value) != null && x.search && ((D = (P = a.value.search) == null ? void 0 : P.options) != null && D.length ? (Object.keys(t.value).forEach((k) => {
|
|
322
|
+
var N;
|
|
323
|
+
(N = a.value.search.options) != null && N.map((p) => p.value).includes(k) && delete t.value[k];
|
|
323
324
|
}), t.value[((I = t.value) == null ? void 0 : I.selectedSearchOption) || ((X = (W = (G = a.value.search) == null ? void 0 : G.options) == null ? void 0 : W[0]) == null ? void 0 : X.value) || a.value.search.key] = U.value.join()) : t.value[a.value.search.key] = U.value.join()), e && (Q.value = !1, t.value = { ...t.value, ...e }, Object.keys(t.value).forEach((k) => {
|
|
324
325
|
Array.isArray(t.value[k]) && t.value[k].length === 0 && delete t.value[k];
|
|
325
326
|
}));
|
|
326
327
|
let m = (Z = (Y = a.value) == null ? void 0 : Y.tabs) == null ? void 0 : Z.key;
|
|
327
328
|
if (m && B.value !== t.value[m]) {
|
|
328
329
|
const k = (_ = (H = a.value.tabs) == null ? void 0 : H.options) == null ? void 0 : _.find(
|
|
329
|
-
(
|
|
330
|
+
(N) => {
|
|
330
331
|
var p, te;
|
|
331
|
-
return ((p =
|
|
332
|
+
return ((p = N.value) == null ? void 0 : p.toString()) === ((te = t.value[m]) == null ? void 0 : te.toString());
|
|
332
333
|
}
|
|
333
334
|
);
|
|
334
|
-
k != null && k.value && (B.value = k.value);
|
|
335
|
+
k != null && k.value && (B.value = k.value, V());
|
|
335
336
|
}
|
|
336
337
|
sl(n);
|
|
337
338
|
}, fe = $(null), sl = (e = !1) => {
|
|
338
339
|
clearTimeout(fe.value), fe.value = setTimeout(() => {
|
|
339
|
-
g("update:filter", { ...t.value }, e);
|
|
340
|
-
},
|
|
340
|
+
g("update:filter", { ...t.value }, e), g("apply-filter", { ...t.value }, e);
|
|
341
|
+
}, 50);
|
|
341
342
|
}, ol = (e, l) => {
|
|
342
|
-
(l === a.value.tabs.key || l === "tabs") && (B.value = ""),
|
|
343
|
+
(l === a.value.tabs.key || l === "tabs") && (B.value = ""), V(e), g("filter-removed", l);
|
|
343
344
|
};
|
|
344
345
|
Te(() => {
|
|
345
346
|
el(), nl(() => {
|
|
346
347
|
g("on-table-ready");
|
|
347
348
|
});
|
|
348
349
|
});
|
|
349
|
-
const
|
|
350
|
+
const ue = S(() => i.isLoading || v.value);
|
|
350
351
|
se({
|
|
351
|
-
localData:
|
|
352
|
+
localData: E,
|
|
352
353
|
paginationData: o,
|
|
353
|
-
tableIsLoading:
|
|
354
|
-
bulkPutLocalData:
|
|
354
|
+
tableIsLoading: ue,
|
|
355
|
+
bulkPutLocalData: C,
|
|
355
356
|
bulkDeleteLocalData: ee,
|
|
356
357
|
getLocalDataUpdatedAt: le,
|
|
357
358
|
getProductIdAndLastUpdatedAt: ae,
|
|
358
|
-
syncLocalData:
|
|
359
|
+
syncLocalData: ie,
|
|
359
360
|
sortByData: R
|
|
360
361
|
});
|
|
361
|
-
const
|
|
362
|
+
const il = ({ key: e, value: l }) => {
|
|
362
363
|
Object.keys(R.value).forEach((c) => {
|
|
363
364
|
c !== e && (R.value[c] = null);
|
|
364
365
|
}), R.value[e] = l, g("update:sort-by", R.value);
|
|
@@ -370,20 +371,20 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
370
371
|
},
|
|
371
372
|
{ deep: !0, immediate: !0 }
|
|
372
373
|
), ne(
|
|
373
|
-
() =>
|
|
374
|
+
() => i.sortBy,
|
|
374
375
|
() => {
|
|
375
|
-
K.value &&
|
|
376
|
+
K.value && i.sortBy && ze({ ...i.sortBy });
|
|
376
377
|
},
|
|
377
378
|
{ deep: !0, immediate: !0 }
|
|
378
379
|
), (e, l) => {
|
|
379
380
|
var c, n, f, m;
|
|
380
381
|
return r(), h("div", Bl, [
|
|
381
|
-
ce.value ? (r(), L(dl(F.isNewTable ?
|
|
382
|
+
ce.value ? (r(), L(dl(F.isNewTable ? u(ml) : u(pl)), {
|
|
382
383
|
key: 0,
|
|
383
384
|
selected: F.selected,
|
|
384
385
|
"row-key": F.rowKey,
|
|
385
386
|
options: ce.value,
|
|
386
|
-
"is-loading":
|
|
387
|
+
"is-loading": ue.value,
|
|
387
388
|
"loading-rows": z.value,
|
|
388
389
|
"row-class": F.rowClass,
|
|
389
390
|
"row-link": F.rowLink,
|
|
@@ -391,7 +392,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
391
392
|
"is-borderless": O.value.isBorderless,
|
|
392
393
|
"sort-by": F.sortBy,
|
|
393
394
|
"onUpdate:selected": l[8] || (l[8] = (s) => e.$emit("update:selected", s)),
|
|
394
|
-
"onUpdate:sortBy":
|
|
395
|
+
"onUpdate:sortBy": il,
|
|
395
396
|
"onClick:row": l[9] || (l[9] = (s) => e.$emit("click:row", s)),
|
|
396
397
|
"onHover:cell": l[10] || (l[10] = (s) => e.$emit("hover:cell", s))
|
|
397
398
|
}, vl({
|
|
@@ -419,29 +420,29 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
419
420
|
We.value ? (r(), h("div", Tl, [
|
|
420
421
|
A(e.$slots, "bulk-actions", { selectedRows: F.selected })
|
|
421
422
|
])) : (r(), h("div", Kl, [
|
|
422
|
-
(P = a.value) != null && P.tabs ? (r(), L(
|
|
423
|
+
(P = a.value) != null && P.tabs ? (r(), L(u(fl), {
|
|
423
424
|
key: 0,
|
|
424
425
|
modelValue: B.value,
|
|
425
426
|
"onUpdate:modelValue": [
|
|
426
|
-
l[0] || (l[0] = (
|
|
427
|
-
l[1] || (l[1] = (
|
|
427
|
+
l[0] || (l[0] = (D) => B.value = D),
|
|
428
|
+
l[1] || (l[1] = (D) => V(null, !1, "", !1, !0))
|
|
428
429
|
],
|
|
429
|
-
"is-disabled":
|
|
430
|
+
"is-disabled": ue.value,
|
|
430
431
|
tabs: a.value.tabs.options,
|
|
431
432
|
variant: "pills"
|
|
432
433
|
}, null, 8, ["modelValue", "is-disabled", "tabs"])) : y("", !0)
|
|
433
434
|
])),
|
|
434
435
|
A(e.$slots, "filter-options", {}, () => {
|
|
435
|
-
var
|
|
436
|
+
var D, I, G, W, X, Y, Z, H, _, k, N;
|
|
436
437
|
return [
|
|
437
|
-
(
|
|
438
|
+
(D = a.value) != null && D.search || (I = a.value) != null && I.form || (G = a.value) != null && G.columnEdit ? (r(), h("div", {
|
|
438
439
|
key: 0,
|
|
439
440
|
class: ve([
|
|
440
441
|
"flex gap-3 absolute ml-auto items-center bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
|
|
441
442
|
a.value ? pe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
|
|
442
443
|
])
|
|
443
444
|
}, [
|
|
444
|
-
(W = a.value) != null && W.search ? (r(), L(
|
|
445
|
+
(W = a.value) != null && W.search ? (r(), L(u(yl), {
|
|
445
446
|
key: 0,
|
|
446
447
|
"is-search-only": !a.value.tabs || a.value.isSearchOnly,
|
|
447
448
|
"search-options": ((X = a.value.search) == null ? void 0 : X.options) ?? [],
|
|
@@ -450,7 +451,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
450
451
|
onToggle: l[2] || (l[2] = (p) => pe.value = p),
|
|
451
452
|
onChangeSearchKey: ll
|
|
452
453
|
}, null, 8, ["is-search-only", "search-options", "selected-option"])) : y("", !0),
|
|
453
|
-
(k = a.value) != null && k.form ? (r(), L(
|
|
454
|
+
(k = a.value) != null && k.form ? (r(), L(u(Ke), {
|
|
454
455
|
key: 1,
|
|
455
456
|
modelValue: Q.value,
|
|
456
457
|
"onUpdate:modelValue": [
|
|
@@ -462,22 +463,22 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
462
463
|
"is-attach-to-body": ""
|
|
463
464
|
}, {
|
|
464
465
|
menu: w(() => [
|
|
465
|
-
Q.value ? (r(), L(
|
|
466
|
+
Q.value ? (r(), L(u(gl), {
|
|
466
467
|
key: 0,
|
|
467
468
|
id: F.id,
|
|
468
469
|
"json-form": a.value.form ?? [],
|
|
469
470
|
grid: a.value.grid ?? null,
|
|
470
471
|
values: t.value,
|
|
471
472
|
actions: a.value.actions,
|
|
472
|
-
onApplyFilter: l[3] || (l[3] = (p) =>
|
|
473
|
+
onApplyFilter: l[3] || (l[3] = (p) => V(p)),
|
|
473
474
|
onFilterFieldsChanged: l[4] || (l[4] = (p) => g("filter-fields-changed", p)),
|
|
474
475
|
onCancel: l[5] || (l[5] = (p) => Q.value = !1)
|
|
475
476
|
}, {
|
|
476
|
-
default: w(({ errors: p, values: te, jsonForm:
|
|
477
|
+
default: w(({ errors: p, values: te, jsonForm: ul, updateForm: rl }) => [
|
|
477
478
|
A(e.$slots, "custom-filter-form", {
|
|
478
479
|
errors: p,
|
|
479
480
|
values: te,
|
|
480
|
-
jsonForm:
|
|
481
|
+
jsonForm: ul,
|
|
481
482
|
updateFilter: rl
|
|
482
483
|
})
|
|
483
484
|
]),
|
|
@@ -485,7 +486,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
485
486
|
}, 8, ["id", "json-form", "grid", "values", "actions"])) : y("", !0)
|
|
486
487
|
]),
|
|
487
488
|
default: w(() => [
|
|
488
|
-
j(
|
|
489
|
+
j(u(Ie), {
|
|
489
490
|
"is-active": Q.value,
|
|
490
491
|
variant: "secondary",
|
|
491
492
|
"left-icon": "filter",
|
|
@@ -499,7 +500,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
499
500
|
a.value.columnEdit ? (r(), L(jl, {
|
|
500
501
|
key: 2,
|
|
501
502
|
options: t.value.columnEdit,
|
|
502
|
-
headers: ((
|
|
503
|
+
headers: ((N = O.value) == null ? void 0 : N.headers) || [],
|
|
503
504
|
"local-key": a.value.columnEdit.localStorageKey,
|
|
504
505
|
onUpdateOrder: _e
|
|
505
506
|
}, null, 8, ["options", "headers", "local-key"])) : y("", !0)
|
|
@@ -507,7 +508,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
507
508
|
];
|
|
508
509
|
})
|
|
509
510
|
])) : y("", !0),
|
|
510
|
-
j(
|
|
511
|
+
j(u(bl), {
|
|
511
512
|
filters: Ze.value,
|
|
512
513
|
queries: U.value,
|
|
513
514
|
class: "border-t border-oc-gray-200",
|
|
@@ -530,39 +531,39 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
|
|
|
530
531
|
}))
|
|
531
532
|
]), 1064, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless", "sort-by"])) : y("", !0),
|
|
532
533
|
A(e.$slots, "before-pagination"),
|
|
533
|
-
|
|
534
|
+
u(o) || d.value ? (r(), h("div", {
|
|
534
535
|
key: 1,
|
|
535
|
-
class: ve(["flex items-center gap-3",
|
|
536
|
+
class: ve(["flex items-center gap-3", u(o) && u(o).last_page === 1 ? "justify-end" : ""])
|
|
536
537
|
}, [
|
|
537
|
-
|
|
538
|
+
u(o) && !Je.value ? (r(), L(u(kl), {
|
|
538
539
|
key: 0,
|
|
539
|
-
modelValue:
|
|
540
|
+
modelValue: M.value,
|
|
540
541
|
"onUpdate:modelValue": [
|
|
541
|
-
l[11] || (l[11] = (s) =>
|
|
542
|
+
l[11] || (l[11] = (s) => M.value = s),
|
|
542
543
|
tl
|
|
543
544
|
],
|
|
544
545
|
class: "justify-center text-[13px]",
|
|
545
|
-
"max-page":
|
|
546
|
-
strategy:
|
|
546
|
+
"max-page": u(o).last_page,
|
|
547
|
+
strategy: u(o).strategy,
|
|
547
548
|
"total-visible": "5"
|
|
548
549
|
}, null, 8, ["modelValue", "max-page", "strategy"])) : y("", !0),
|
|
549
550
|
d.value ? (r(), h("div", Il, [
|
|
550
|
-
j(
|
|
551
|
+
j(u(je), {
|
|
551
552
|
disabled: !d.value.prev,
|
|
552
|
-
onClick: l[12] || (l[12] = (s) => d.value.prev ?
|
|
553
|
+
onClick: l[12] || (l[12] = (s) => d.value.prev ? V(null, !1, d.value.prev) : null)
|
|
553
554
|
}, null, 8, ["disabled"]),
|
|
554
|
-
j(
|
|
555
|
+
j(u(je), {
|
|
555
556
|
disabled: !d.value.next,
|
|
556
557
|
"is-next": "",
|
|
557
|
-
onClick: l[13] || (l[13] = (s) => d.value.next ?
|
|
558
|
+
onClick: l[13] || (l[13] = (s) => d.value.next ? V(null, !1, d.value.next) : null)
|
|
558
559
|
}, null, 8, ["disabled"])
|
|
559
560
|
])) : y("", !0),
|
|
560
|
-
Re.value ? y("", !0) : (r(), h("div",
|
|
561
|
-
j(
|
|
561
|
+
Re.value ? y("", !0) : (r(), h("div", Nl, [
|
|
562
|
+
j(u(hl), {
|
|
562
563
|
modelValue: z.value,
|
|
563
564
|
"onUpdate:modelValue": [
|
|
564
565
|
l[14] || (l[14] = (s) => z.value = s),
|
|
565
|
-
l[15] || (l[15] = (s) =>
|
|
566
|
+
l[15] || (l[15] = (s) => V(null))
|
|
566
567
|
],
|
|
567
568
|
label: "Item per page",
|
|
568
569
|
"is-inline-label": "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as w, createBlock as y, openBlock as c, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as $, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as x, createVNode as f } from "vue";
|
|
2
|
-
import { aJ as D, aF as S, aA as B } from "./index-
|
|
2
|
+
import { aJ as D, aF as S, aA as B } from "./index-BhHJ45f7.js";
|
|
3
3
|
import { _ as g } from "./OcIcon-CxreweI4.js";
|
|
4
4
|
const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, A = { class: "flex items-center flex-wrap w-full" }, E = ["href"], F = { class: "min-w-[120px]" }, O = { class: "truncate w-[200px]" }, W = { class: "flex items-center ml-4" }, j = { class: "flex w-full" }, T = {
|
|
5
5
|
__name: "OcDraggableList",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as m, computed as p, createElementBlock as l, openBlock as s, createVNode as f, createBlock as N, createCommentVNode as z, unref as c, withCtx as v, createElementVNode as n, normalizeClass as T, Fragment as V, renderList as k, createTextVNode as C } from "vue";
|
|
2
|
-
import { aA as U, d as A, B as _ } from "./index-
|
|
2
|
+
import { aA as U, d as A, B as _ } from "./index-BhHJ45f7.js";
|
|
3
3
|
import { EMOJI_LIST as a, EMOJI_CATEGORIES as J } from "./Form/EmojiPicker/conts/emoji.js";
|
|
4
4
|
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, G = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as r, computed as u, onMounted as B, createElementBlock as O, openBlock as k, renderSlot as $, createElementVNode as f, createVNode as c, unref as i } from "vue";
|
|
2
|
-
import { u as w, B as m } from "./index-
|
|
2
|
+
import { u as w, B as m } from "./index-BhHJ45f7.js";
|
|
3
3
|
const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500px] overflow-y-auto p-5" }, E = { class: "flex gap-x-5 px-5 pb-5" }, N = {
|
|
4
4
|
__name: "OcFilterForm",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as u, computed as K, createElementBlock as d, openBlock as s, Fragment as p, createElementVNode as r, createCommentVNode as f, normalizeClass as O, createVNode as m, unref as c, withKeys as N, createSlots as Q, withCtx as h, toDisplayString as A, renderList as D, createBlock as S, nextTick as E } from "vue";
|
|
2
|
-
import { d as F, aA as I, aB as U, B as w } from "./index-
|
|
2
|
+
import { d as F, aA as I, aB as U, B as w } from "./index-BhHJ45f7.js";
|
|
3
3
|
import { _ as j } from "./OcIcon-CxreweI4.js";
|
|
4
4
|
const q = { class: "flex gap-x-4" }, L = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, T = { class: "p-2 flex flex-col" }, P = {
|
|
5
5
|
__name: "OcFilterSearch",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as k, createBlock as m, createCommentVNode as x, openBlock as a, unref as o, withCtx as y, createElementVNode as f, createElementBlock as v, createVNode as F, Fragment as b, renderList as p } from "vue";
|
|
2
|
-
import { O as $, av as c } from "./index-
|
|
2
|
+
import { O as $, av as c } from "./index-BhHJ45f7.js";
|
|
3
3
|
const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, O = {
|
|
4
4
|
__name: "OcFilterSearchFor",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as o, createBlock as v, openBlock as d, unref as r, withCtx as x, createVNode as C } from "vue";
|
|
2
|
-
import { aC as O } from "./index-
|
|
3
|
-
import b from "./OcCropper-
|
|
2
|
+
import { aC as O } from "./index-BhHJ45f7.js";
|
|
3
|
+
import b from "./OcCropper-CziGYVsj.js";
|
|
4
4
|
const h = {
|
|
5
5
|
__name: "OcModalCropper",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as n, watch as g, createBlock as m, openBlock as s, unref as o, withCtx as p, createVNode as v, createCommentVNode as y } from "vue";
|
|
2
|
-
import { aA as S, d as h, aK as D } from "./index-
|
|
2
|
+
import { aA as S, d as h, aK as D } from "./index-BhHJ45f7.js";
|
|
3
3
|
import c from "dayjs";
|
|
4
4
|
const w = {
|
|
5
5
|
__name: "OcTimePicker",
|