customer-module-frontend 2.0.0-beta.7 → 2.0.0-beta.8
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/customer-module.js +129 -125
- package/dist/customer-module.js.map +1 -1
- package/package.json +1 -1
package/dist/customer-module.js
CHANGED
|
@@ -2782,7 +2782,7 @@ function e1(e, n) {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
return t;
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2785
|
+
function sr(e) {
|
|
2786
2786
|
for (var n = 1; n < arguments.length; n++) {
|
|
2787
2787
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
2788
2788
|
n % 2 ? e1(Object(t), !0).forEach(function(a) {
|
|
@@ -3211,7 +3211,7 @@ svg.p-icon g,
|
|
|
3211
3211
|
classes: {},
|
|
3212
3212
|
styles: "",
|
|
3213
3213
|
extend: function() {
|
|
3214
|
-
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = n.css, a =
|
|
3214
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = n.css, a = sr(sr({}, n.defaultProps), Ot.defaultProps), r = {}, o = function(d) {
|
|
3215
3215
|
var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3216
3216
|
return Ot.context = m, Ot.cProps = d, B.getMergedProps(d, a);
|
|
3217
3217
|
}, l = function(d) {
|
|
@@ -3235,14 +3235,14 @@ svg.p-icon g,
|
|
|
3235
3235
|
} : fe != null && fe.hasOwnProperty("className") && Array.isArray(fe.className) ? {
|
|
3236
3236
|
className: Re.apply(void 0, $d(fe.className))
|
|
3237
3237
|
} : fe;
|
|
3238
|
-
}, ce = C ? v ? kf(K, g, y) : Pf(K, g, y) : void 0, ne = v ? void 0 : Es(xs(m, P), K, g, y), Se = !I &&
|
|
3238
|
+
}, ce = C ? v ? kf(K, g, y) : Pf(K, g, y) : void 0, ne = v ? void 0 : Es(xs(m, P), K, g, y), Se = !I && sr(sr({}, w === "root" && Fc({}, "".concat(S, "name"), y.props && y.props.__parentMetadata ? B.toFlatCase(y.props.__TYPE) : P)), {}, Fc({}, "".concat(S, "section"), w));
|
|
3239
3239
|
return M || !M && ne ? ie ? ds([ce, ne, Object.keys(Se).length ? Se : {}], {
|
|
3240
3240
|
classNameMergeFunction: (d = Ot.context.ptOptions) === null || d === void 0 ? void 0 : d.classNameMergeFunction
|
|
3241
|
-
}) :
|
|
3241
|
+
}) : sr(sr(sr({}, ce), ne), Object.keys(Se).length ? Se : {}) : sr(sr({}, ne), Object.keys(Se).length ? Se : {});
|
|
3242
3242
|
}, c = function() {
|
|
3243
3243
|
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, m = d.props, b = d.state, y = function() {
|
|
3244
3244
|
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3245
|
-
return s((m || {}).pt, P,
|
|
3245
|
+
return s((m || {}).pt, P, sr(sr({}, d), I));
|
|
3246
3246
|
}, C = function() {
|
|
3247
3247
|
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3248
3248
|
return s(P, I, S, !1);
|
|
@@ -3250,17 +3250,17 @@ svg.p-icon g,
|
|
|
3250
3250
|
return Ot.context.unstyled || Pt.unstyled || m.unstyled;
|
|
3251
3251
|
}, v = function() {
|
|
3252
3252
|
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3253
|
-
return g() ? void 0 : xa(t && t.classes, P,
|
|
3253
|
+
return g() ? void 0 : xa(t && t.classes, P, sr({
|
|
3254
3254
|
props: m,
|
|
3255
3255
|
state: b
|
|
3256
3256
|
}, I));
|
|
3257
3257
|
}, w = function() {
|
|
3258
3258
|
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
3259
3259
|
if (S) {
|
|
3260
|
-
var V, L = xa(t && t.inlineStyles, P,
|
|
3260
|
+
var V, L = xa(t && t.inlineStyles, P, sr({
|
|
3261
3261
|
props: m,
|
|
3262
3262
|
state: b
|
|
3263
|
-
}, I)), N = xa(r, P,
|
|
3263
|
+
}, I)), N = xa(r, P, sr({
|
|
3264
3264
|
props: m,
|
|
3265
3265
|
state: b
|
|
3266
3266
|
}, I));
|
|
@@ -3277,7 +3277,7 @@ svg.p-icon g,
|
|
|
3277
3277
|
isUnstyled: g
|
|
3278
3278
|
};
|
|
3279
3279
|
};
|
|
3280
|
-
return
|
|
3280
|
+
return sr(sr({
|
|
3281
3281
|
getProps: o,
|
|
3282
3282
|
getOtherProps: l,
|
|
3283
3283
|
setMetaData: c
|
|
@@ -3308,7 +3308,7 @@ svg.p-icon g,
|
|
|
3308
3308
|
var l = n._usept || Ot.context.ptOptions || {}, s = l.mergeSections, c = s === void 0 ? !0 : s, u = l.mergeProps, d = u === void 0 ? !1 : u, m = l.classNameMergeFunction, b = o(n.originalValue), y = o(n.value);
|
|
3309
3309
|
return b === void 0 && y === void 0 ? void 0 : B.isString(y) ? y : B.isString(b) ? b : c || !c && y ? d ? ds([b, y], {
|
|
3310
3310
|
classNameMergeFunction: m
|
|
3311
|
-
}) :
|
|
3311
|
+
}) : sr(sr({}, b), y) : y;
|
|
3312
3312
|
}
|
|
3313
3313
|
return o(n);
|
|
3314
3314
|
}, Q3 = function() {
|
|
@@ -12366,7 +12366,7 @@ function W6(e) {
|
|
|
12366
12366
|
var n = K6(e, "string");
|
|
12367
12367
|
return No(n) == "symbol" ? n : n + "";
|
|
12368
12368
|
}
|
|
12369
|
-
function
|
|
12369
|
+
function or(e, n, t) {
|
|
12370
12370
|
return (n = W6(n)) in e ? Object.defineProperty(e, n, {
|
|
12371
12371
|
value: t,
|
|
12372
12372
|
enumerable: !0,
|
|
@@ -12578,7 +12578,7 @@ function W1(e) {
|
|
|
12578
12578
|
for (var n = 1; n < arguments.length; n++) {
|
|
12579
12579
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
12580
12580
|
n % 2 ? K1(Object(t), !0).forEach(function(a) {
|
|
12581
|
-
|
|
12581
|
+
or(e, a, t[a]);
|
|
12582
12582
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : K1(Object(t)).forEach(function(a) {
|
|
12583
12583
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
12584
12584
|
});
|
|
@@ -12625,7 +12625,7 @@ function rv(e) {
|
|
|
12625
12625
|
for (var n = 1; n < arguments.length; n++) {
|
|
12626
12626
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
12627
12627
|
n % 2 ? G1(Object(t), !0).forEach(function(a) {
|
|
12628
|
-
|
|
12628
|
+
or(e, a, t[a]);
|
|
12629
12629
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : G1(Object(t)).forEach(function(a) {
|
|
12630
12630
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
12631
12631
|
});
|
|
@@ -12699,29 +12699,29 @@ var vr = Object.freeze({
|
|
|
12699
12699
|
}), Or = /* @__PURE__ */ av(function e() {
|
|
12700
12700
|
ov(this, e);
|
|
12701
12701
|
});
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12702
|
+
or(Or, "ripple", !1);
|
|
12703
|
+
or(Or, "inputStyle", "outlined");
|
|
12704
|
+
or(Or, "locale", "en");
|
|
12705
|
+
or(Or, "appendTo", null);
|
|
12706
|
+
or(Or, "cssTransition", !0);
|
|
12707
|
+
or(Or, "autoZIndex", !0);
|
|
12708
|
+
or(Or, "hideOverlaysOnDocumentScrolling", !1);
|
|
12709
|
+
or(Or, "nonce", null);
|
|
12710
|
+
or(Or, "nullSortOrder", 1);
|
|
12711
|
+
or(Or, "zIndex", {
|
|
12712
12712
|
modal: 1100,
|
|
12713
12713
|
overlay: 1e3,
|
|
12714
12714
|
menu: 1e3,
|
|
12715
12715
|
tooltip: 1100,
|
|
12716
12716
|
toast: 1200
|
|
12717
12717
|
});
|
|
12718
|
-
|
|
12719
|
-
|
|
12718
|
+
or(Or, "pt", void 0);
|
|
12719
|
+
or(Or, "filterMatchModeOptions", {
|
|
12720
12720
|
text: [vr.STARTS_WITH, vr.CONTAINS, vr.NOT_CONTAINS, vr.ENDS_WITH, vr.EQUALS, vr.NOT_EQUALS],
|
|
12721
12721
|
numeric: [vr.EQUALS, vr.NOT_EQUALS, vr.LESS_THAN, vr.LESS_THAN_OR_EQUAL_TO, vr.GREATER_THAN, vr.GREATER_THAN_OR_EQUAL_TO],
|
|
12722
12722
|
date: [vr.DATE_IS, vr.DATE_IS_NOT, vr.DATE_BEFORE, vr.DATE_AFTER]
|
|
12723
12723
|
});
|
|
12724
|
-
|
|
12724
|
+
or(Or, "changeTheme", function(e, n, t, a) {
|
|
12725
12725
|
var r, o = document.getElementById(t);
|
|
12726
12726
|
if (!o)
|
|
12727
12727
|
throw Error("Element with id ".concat(t, " not found."));
|
|
@@ -12929,7 +12929,7 @@ function sv(e) {
|
|
|
12929
12929
|
for (var n = 1; n < arguments.length; n++) {
|
|
12930
12930
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
12931
12931
|
n % 2 ? J1(Object(t), !0).forEach(function(a) {
|
|
12932
|
-
|
|
12932
|
+
or(e, a, t[a]);
|
|
12933
12933
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : J1(Object(t)).forEach(function(a) {
|
|
12934
12934
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
12935
12935
|
});
|
|
@@ -12987,7 +12987,7 @@ function cv(e) {
|
|
|
12987
12987
|
for (var n = 1; n < arguments.length; n++) {
|
|
12988
12988
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
12989
12989
|
n % 2 ? X1(Object(t), !0).forEach(function(a) {
|
|
12990
|
-
|
|
12990
|
+
or(e, a, t[a]);
|
|
12991
12991
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : X1(Object(t)).forEach(function(a) {
|
|
12992
12992
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
12993
12993
|
});
|
|
@@ -13119,7 +13119,7 @@ function uv(e) {
|
|
|
13119
13119
|
for (var n = 1; n < arguments.length; n++) {
|
|
13120
13120
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
13121
13121
|
n % 2 ? Z1(Object(t), !0).forEach(function(a) {
|
|
13122
|
-
|
|
13122
|
+
or(e, a, t[a]);
|
|
13123
13123
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Z1(Object(t)).forEach(function(a) {
|
|
13124
13124
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
13125
13125
|
});
|
|
@@ -13217,7 +13217,7 @@ function dv(e) {
|
|
|
13217
13217
|
for (var n = 1; n < arguments.length; n++) {
|
|
13218
13218
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
13219
13219
|
n % 2 ? Y1(Object(t), !0).forEach(function(a) {
|
|
13220
|
-
|
|
13220
|
+
or(e, a, t[a]);
|
|
13221
13221
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Y1(Object(t)).forEach(function(a) {
|
|
13222
13222
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
13223
13223
|
});
|
|
@@ -18348,7 +18348,7 @@ function v0(e, n) {
|
|
|
18348
18348
|
}
|
|
18349
18349
|
return t;
|
|
18350
18350
|
}
|
|
18351
|
-
function
|
|
18351
|
+
function lr(e) {
|
|
18352
18352
|
for (var n = 1; n < arguments.length; n++) {
|
|
18353
18353
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
18354
18354
|
n % 2 ? v0(Object(t), !0).forEach(function(a) {
|
|
@@ -18580,10 +18580,10 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
18580
18580
|
}, Bn = function(j) {
|
|
18581
18581
|
var re = j.rowData, ye = j.field, Pe = j.editingKey;
|
|
18582
18582
|
j.rowIndex;
|
|
18583
|
-
var Te = j.editing, Me =
|
|
18583
|
+
var Te = j.editing, Me = lr({}, z), Qe = Me[Pe];
|
|
18584
18584
|
if (Te)
|
|
18585
18585
|
!Qe && (Qe = Me[Pe] = {
|
|
18586
|
-
data:
|
|
18586
|
+
data: lr({}, re),
|
|
18587
18587
|
fields: []
|
|
18588
18588
|
}), Qe.fields.push(ye);
|
|
18589
18589
|
else if (Qe) {
|
|
@@ -18596,10 +18596,10 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
18596
18596
|
}, Un = function() {
|
|
18597
18597
|
r.editMode && B.isNotEmpty(z) && W({});
|
|
18598
18598
|
}, Ln = function(j) {
|
|
18599
|
-
var re = j.rowData, ye = j.field, Pe = j.editingKey, Te = j.editing, Me =
|
|
18599
|
+
var re = j.rowData, ye = j.field, Pe = j.editingKey, Te = j.editing, Me = lr({}, be), Qe = Me[Pe];
|
|
18600
18600
|
if (Te)
|
|
18601
18601
|
!Qe && (Qe = Me[Pe] = {
|
|
18602
|
-
data:
|
|
18602
|
+
data: lr({}, re),
|
|
18603
18603
|
fields: []
|
|
18604
18604
|
}), Qe.fields.push(ye);
|
|
18605
18605
|
else if (Qe) {
|
|
@@ -18914,7 +18914,7 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
18914
18914
|
return Ut.value !== null;
|
|
18915
18915
|
});
|
|
18916
18916
|
if (xt.length > 0)
|
|
18917
|
-
return [ot,
|
|
18917
|
+
return [ot, lr(lr({}, gt), {}, {
|
|
18918
18918
|
constraints: xt
|
|
18919
18919
|
})];
|
|
18920
18920
|
} else if (gt.value !== null)
|
|
@@ -18971,9 +18971,9 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
18971
18971
|
re[Me] = Qe.operator ? {
|
|
18972
18972
|
operator: Qe.operator,
|
|
18973
18973
|
constraints: Qe.constraints.map(function(ot) {
|
|
18974
|
-
return
|
|
18974
|
+
return lr({}, ot);
|
|
18975
18975
|
})
|
|
18976
|
-
} :
|
|
18976
|
+
} : lr({}, Qe);
|
|
18977
18977
|
});
|
|
18978
18978
|
else {
|
|
18979
18979
|
var ye = x();
|
|
@@ -18996,7 +18996,7 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
18996
18996
|
}
|
|
18997
18997
|
return re;
|
|
18998
18998
|
}, Wr = function(j, re, ye) {
|
|
18999
|
-
var Pe = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, Te =
|
|
18999
|
+
var Pe = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, Te = lr({}, vt), Me = Te[re], Qe = Me && Me.operator ? Me.constraints[Pe] : Me;
|
|
19000
19000
|
Qe = Me ? {
|
|
19001
19001
|
value: j,
|
|
19002
19002
|
matchMode: ye || Qe.matchMode
|
|
@@ -19049,7 +19049,7 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
19049
19049
|
}, re * 5);
|
|
19050
19050
|
});
|
|
19051
19051
|
}, ma = function(j) {
|
|
19052
|
-
return
|
|
19052
|
+
return lr({
|
|
19053
19053
|
first: He(),
|
|
19054
19054
|
rows: it(),
|
|
19055
19055
|
sortField: mt(),
|
|
@@ -19092,7 +19092,7 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
19092
19092
|
if (r.globalFilter)
|
|
19093
19093
|
Wr(r.globalFilter, "global", r.globalFilterMatchMode);
|
|
19094
19094
|
else if (vt.global) {
|
|
19095
|
-
var Fe =
|
|
19095
|
+
var Fe = lr({}, vt);
|
|
19096
19096
|
delete Fe.global, At(Fe), Yo(Fe);
|
|
19097
19097
|
}
|
|
19098
19098
|
}, [r.globalFilter, r.globalFilterMatchMode]), ur(function() {
|
|
@@ -19145,7 +19145,7 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
19145
19145
|
className: te.cx("loadingIcon")
|
|
19146
19146
|
}, te.ptm("loadingIcon")), re = r.loadingIcon || /* @__PURE__ */ i.createElement(Ji, In({}, j, {
|
|
19147
19147
|
spin: !0
|
|
19148
|
-
})), ye = Kt.getJSXIcon(re,
|
|
19148
|
+
})), ye = Kt.getJSXIcon(re, lr({}, j), {
|
|
19149
19149
|
props: r
|
|
19150
19150
|
}), Pe = a({
|
|
19151
19151
|
className: te.cx("loadingOverlay")
|
|
@@ -19406,7 +19406,7 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
19406
19406
|
if (re) {
|
|
19407
19407
|
var Te = Ie(), Me = r.virtualScrollerOptions || {}, Qe = a({
|
|
19408
19408
|
className: te.cx("wrapper"),
|
|
19409
|
-
style:
|
|
19409
|
+
style: lr(lr({}, te.sx("wrapper")), {}, {
|
|
19410
19410
|
maxHeight: Te ? r.scrollHeight : null
|
|
19411
19411
|
})
|
|
19412
19412
|
}, te.ptm("wrapper"));
|
|
@@ -19417,7 +19417,7 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
19417
19417
|
}, Me, {
|
|
19418
19418
|
items: j,
|
|
19419
19419
|
columns: re,
|
|
19420
|
-
style:
|
|
19420
|
+
style: lr(lr({}, Me.style), {
|
|
19421
19421
|
height: r.scrollHeight !== "flex" ? r.scrollHeight : void 0
|
|
19422
19422
|
}),
|
|
19423
19423
|
scrollHeight: r.scrollHeight !== "flex" ? void 0 : "100%",
|
|
@@ -19503,14 +19503,14 @@ var Km = /* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
19503
19503
|
style: te.sx("reorderIndicatorUp", {
|
|
19504
19504
|
style: j
|
|
19505
19505
|
})
|
|
19506
|
-
}, te.ptm("reorderIndicatorUp")), ye = a(te.ptm("reorderIndicatorUpIcon")), Pe = Kt.getJSXIcon(r.reorderIndicatorUpIcon || /* @__PURE__ */ i.createElement(_f, ye),
|
|
19506
|
+
}, te.ptm("reorderIndicatorUp")), ye = a(te.ptm("reorderIndicatorUpIcon")), Pe = Kt.getJSXIcon(r.reorderIndicatorUpIcon || /* @__PURE__ */ i.createElement(_f, ye), lr({}, ye), {
|
|
19507
19507
|
props: r
|
|
19508
19508
|
}), Te = a({
|
|
19509
19509
|
className: te.cx("reorderIndicatorDown"),
|
|
19510
19510
|
style: te.sx("reorderIndicatorDown", {
|
|
19511
19511
|
style: j
|
|
19512
19512
|
})
|
|
19513
|
-
}, te.ptm("reorderIndicatorDown")), Me = a(te.ptm("reorderIndicatorDownIcon")), Qe = Kt.getJSXIcon(r.reorderIndicatorDownIcon || /* @__PURE__ */ i.createElement($f, Me),
|
|
19513
|
+
}, te.ptm("reorderIndicatorDown")), Me = a(te.ptm("reorderIndicatorDownIcon")), Qe = Kt.getJSXIcon(r.reorderIndicatorDownIcon || /* @__PURE__ */ i.createElement($f, Me), lr({}, Me), {
|
|
19514
19514
|
props: r
|
|
19515
19515
|
});
|
|
19516
19516
|
return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("span", In({
|
|
@@ -27227,7 +27227,7 @@ const a9 = ({
|
|
|
27227
27227
|
date_to: n?.date_to
|
|
27228
27228
|
}
|
|
27229
27229
|
}
|
|
27230
|
-
)).data,
|
|
27230
|
+
)).data, cr = As((e, n) => ({
|
|
27231
27231
|
data: null,
|
|
27232
27232
|
isLoading: !1,
|
|
27233
27233
|
error: null,
|
|
@@ -27371,13 +27371,13 @@ const a9 = ({
|
|
|
27371
27371
|
accountId: e,
|
|
27372
27372
|
conversationId: n
|
|
27373
27373
|
}) => {
|
|
27374
|
-
const t = Zt(null), a =
|
|
27374
|
+
const t = Zt(null), a = cr((w) => w.fetchCompanySummary), r = cr((w) => w.fetchCompanyConversations), o = cr((w) => w.fetchNextPageCompanyConversations), l = cr(
|
|
27375
27375
|
(w) => e ? w.summaries[e] : void 0
|
|
27376
|
-
), s =
|
|
27376
|
+
), s = cr(
|
|
27377
27377
|
(w) => e ? w.conversations[e] : void 0
|
|
27378
|
-
), c =
|
|
27378
|
+
), c = cr(
|
|
27379
27379
|
(w) => e ? w.conversationsLoading[e] : !1
|
|
27380
|
-
), u =
|
|
27380
|
+
), u = cr(
|
|
27381
27381
|
(w) => e ? w.summaryLoading[e] : !1
|
|
27382
27382
|
), { callbacks: d } = sn();
|
|
27383
27383
|
nn(() => {
|
|
@@ -27910,7 +27910,7 @@ function v9() {
|
|
|
27910
27910
|
] });
|
|
27911
27911
|
}
|
|
27912
27912
|
function b9() {
|
|
27913
|
-
const e = ws(), n = ua(), t =
|
|
27913
|
+
const e = ws(), n = ua(), t = cr((d) => d.data), a = cr((d) => d.summaries), r = Sr((d) => d.data), o = Sr((d) => d.summaries), l = e.pathname, s = [], c = (d) => {
|
|
27914
27914
|
const m = parseInt(d, 10);
|
|
27915
27915
|
if (isNaN(m)) return "Account";
|
|
27916
27916
|
const b = a[m];
|
|
@@ -28109,7 +28109,7 @@ const _0 = () => /* @__PURE__ */ p("div", { className: "cm:h-4 cm:bg-gray-200 cm
|
|
|
28109
28109
|
}
|
|
28110
28110
|
];
|
|
28111
28111
|
function A9() {
|
|
28112
|
-
const e = ua(), { data: n, isLoading: t, fetchCompanies: a, fetchNextPage: r } =
|
|
28112
|
+
const e = ua(), { data: n, isLoading: t, fetchCompanies: a, fetchNextPage: r } = cr(), o = Zt(null), l = sn((y) => y.callbacks), [s, c] = Et(!0);
|
|
28113
28113
|
nn(() => {
|
|
28114
28114
|
c(!0), a().finally(() => {
|
|
28115
28115
|
c(!1);
|
|
@@ -30291,7 +30291,7 @@ const Mn = {
|
|
|
30291
30291
|
CONTACT: "contact"
|
|
30292
30292
|
}, d8 = {
|
|
30293
30293
|
ACCOUNT: "account"
|
|
30294
|
-
},
|
|
30294
|
+
}, ar = {
|
|
30295
30295
|
TEXT: "TEXT",
|
|
30296
30296
|
NUMBER: "NUMBER",
|
|
30297
30297
|
DATE: "DATE",
|
|
@@ -30301,13 +30301,13 @@ const Mn = {
|
|
|
30301
30301
|
}, cf = {
|
|
30302
30302
|
HIVER: "hiver"
|
|
30303
30303
|
}, f8 = [
|
|
30304
|
-
{ label: "Text", value:
|
|
30305
|
-
{ label: "Number", value:
|
|
30306
|
-
{ label: "Date", value:
|
|
30307
|
-
{ label: "Url", value:
|
|
30308
|
-
{ label: "Dropdown", value:
|
|
30304
|
+
{ label: "Text", value: ar.TEXT, icon: "pi pi-align-left" },
|
|
30305
|
+
{ label: "Number", value: ar.NUMBER, icon: "pi pi-hashtag" },
|
|
30306
|
+
{ label: "Date", value: ar.DATE, icon: "pi pi-calendar" },
|
|
30307
|
+
{ label: "Url", value: ar.URL, icon: "pi pi-link" },
|
|
30308
|
+
{ label: "Dropdown", value: ar.DROPDOWN, icon: "pi pi-chevron-down" }
|
|
30309
30309
|
], m8 = {
|
|
30310
|
-
type:
|
|
30310
|
+
type: ar.TEXT,
|
|
30311
30311
|
dropdown_values: [],
|
|
30312
30312
|
display_name: "",
|
|
30313
30313
|
description: ""
|
|
@@ -31520,7 +31520,7 @@ var hp = /* @__PURE__ */ i.memo(/* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
31520
31520
|
else {
|
|
31521
31521
|
var It = oe.parentElement.previousElementSibling;
|
|
31522
31522
|
if (It) {
|
|
31523
|
-
var er = D.index(oe.parentElement),
|
|
31523
|
+
var er = D.index(oe.parentElement), ir = Array.from(oe.parentElement.parentElement.children), pr = ir.slice(0, er).reverse(), xr = pr.find(function(pa) {
|
|
31524
31524
|
var ha = pa.children[le].children[0];
|
|
31525
31525
|
return !D.getAttribute(ha, "data-p-disabled");
|
|
31526
31526
|
});
|
|
@@ -31983,7 +31983,7 @@ var hp = /* @__PURE__ */ i.memo(/* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
31983
31983
|
selectable: Wr(It, er.month, er.year, !0)
|
|
31984
31984
|
});
|
|
31985
31985
|
}
|
|
31986
|
-
for (var
|
|
31986
|
+
for (var ir = 7 - ct.length, pr = 0; pr < ir; pr++)
|
|
31987
31987
|
ct.push({
|
|
31988
31988
|
day: ge,
|
|
31989
31989
|
month: f,
|
|
@@ -32155,17 +32155,17 @@ var hp = /* @__PURE__ */ i.memo(/* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
32155
32155
|
}, bl = function(f, h) {
|
|
32156
32156
|
if (!f)
|
|
32157
32157
|
return "";
|
|
32158
|
-
var O, k = function(
|
|
32159
|
-
var pr = O + 1 < h.length && h.charAt(O + 1) ===
|
|
32158
|
+
var O, k = function(ir) {
|
|
32159
|
+
var pr = O + 1 < h.length && h.charAt(O + 1) === ir;
|
|
32160
32160
|
return pr && O++, pr;
|
|
32161
|
-
}, oe = function(
|
|
32161
|
+
}, oe = function(ir, pr, xr) {
|
|
32162
32162
|
var yn = "" + pr;
|
|
32163
|
-
if (k(
|
|
32163
|
+
if (k(ir))
|
|
32164
32164
|
for (; yn.length < xr; )
|
|
32165
32165
|
yn = "0" + yn;
|
|
32166
32166
|
return yn;
|
|
32167
|
-
}, le = function(
|
|
32168
|
-
return k(
|
|
32167
|
+
}, le = function(ir, pr, xr, yn) {
|
|
32168
|
+
return k(ir) ? yn[pr] : xr[pr];
|
|
32169
32169
|
}, ge = "", we = !1, ut = Lr(r.locale), Nt = ut.dayNamesShort, Ft = ut.dayNames, ct = ut.monthNamesShort, It = ut.monthNames;
|
|
32170
32170
|
if (f)
|
|
32171
32171
|
for (O = 0; O < h.length; O++)
|
|
@@ -32280,7 +32280,7 @@ var hp = /* @__PURE__ */ i.memo(/* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
32280
32280
|
var O, k, oe, le = 0, ge = typeof r.shortYearCutoff != "string" ? r.shortYearCutoff : (/* @__PURE__ */ new Date()).getFullYear() % 100 + parseInt(r.shortYearCutoff, 10), we = -1, ut = -1, Nt = -1, Ft = -1, ct = !1, It, er = function(Qr) {
|
|
32281
32281
|
var Pa = O + 1 < h.length && h.charAt(O + 1) === Qr;
|
|
32282
32282
|
return Pa && O++, Pa;
|
|
32283
|
-
},
|
|
32283
|
+
}, ir = function(Qr) {
|
|
32284
32284
|
var Pa = er(Qr), vo = Qr === "@" ? 14 : Qr === "!" ? 20 : Qr === "y" && Pa ? 4 : Qr === "o" ? 3 : 2, Ra = Qr === "y" ? vo : 1, Ga = new RegExp("^\\d{" + Ra + "," + vo + "}"), Jr = f.substring(le).match(Ga);
|
|
32285
32285
|
if (!Jr)
|
|
32286
32286
|
throw new Error("Missing number at position " + le);
|
|
@@ -32314,28 +32314,28 @@ var hp = /* @__PURE__ */ i.memo(/* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
32314
32314
|
else
|
|
32315
32315
|
switch (h.charAt(O)) {
|
|
32316
32316
|
case "d":
|
|
32317
|
-
Nt =
|
|
32317
|
+
Nt = ir("d");
|
|
32318
32318
|
break;
|
|
32319
32319
|
case "D":
|
|
32320
32320
|
pr("D", Ur, tc);
|
|
32321
32321
|
break;
|
|
32322
32322
|
case "o":
|
|
32323
|
-
Ft =
|
|
32323
|
+
Ft = ir("o");
|
|
32324
32324
|
break;
|
|
32325
32325
|
case "m":
|
|
32326
|
-
ut =
|
|
32326
|
+
ut = ir("m");
|
|
32327
32327
|
break;
|
|
32328
32328
|
case "M":
|
|
32329
32329
|
ut = pr("M", nc, Al);
|
|
32330
32330
|
break;
|
|
32331
32331
|
case "y":
|
|
32332
|
-
we =
|
|
32332
|
+
we = ir("y");
|
|
32333
32333
|
break;
|
|
32334
32334
|
case "@":
|
|
32335
|
-
It = new Date(
|
|
32335
|
+
It = new Date(ir("@")), we = It.getFullYear(), ut = It.getMonth() + 1, Nt = It.getDate();
|
|
32336
32336
|
break;
|
|
32337
32337
|
case "!":
|
|
32338
|
-
It = new Date((
|
|
32338
|
+
It = new Date((ir("!") - ticksTo1970) / 1e4), we = It.getFullYear(), ut = It.getMonth() + 1, Nt = It.getDate();
|
|
32339
32339
|
break;
|
|
32340
32340
|
case "'":
|
|
32341
32341
|
er("'") ? xr() : ct = !0;
|
|
@@ -32577,7 +32577,7 @@ var hp = /* @__PURE__ */ i.memo(/* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
32577
32577
|
}), yn);
|
|
32578
32578
|
}));
|
|
32579
32579
|
if (r.yearNavigatorTemplate) {
|
|
32580
|
-
var
|
|
32580
|
+
var ir = ct.map(function(yn, Ur) {
|
|
32581
32581
|
return {
|
|
32582
32582
|
label: yn,
|
|
32583
32583
|
value: yn,
|
|
@@ -32588,7 +32588,7 @@ var hp = /* @__PURE__ */ i.memo(/* @__PURE__ */ i.forwardRef(function(e, n) {
|
|
|
32588
32588
|
className: "p-datepicker-year",
|
|
32589
32589
|
value: O,
|
|
32590
32590
|
names: ct,
|
|
32591
|
-
options:
|
|
32591
|
+
options: ir,
|
|
32592
32592
|
element: er,
|
|
32593
32593
|
props: r
|
|
32594
32594
|
};
|
|
@@ -33326,7 +33326,7 @@ const k8 = ({
|
|
|
33326
33326
|
name: "name",
|
|
33327
33327
|
label: "Account Name",
|
|
33328
33328
|
placeholder: "Enter an account name",
|
|
33329
|
-
type:
|
|
33329
|
+
type: ar.TEXT,
|
|
33330
33330
|
validations: {
|
|
33331
33331
|
isRequired: !0
|
|
33332
33332
|
}
|
|
@@ -33334,7 +33334,7 @@ const k8 = ({
|
|
|
33334
33334
|
{
|
|
33335
33335
|
name: "domains",
|
|
33336
33336
|
label: "Domain(s)",
|
|
33337
|
-
type:
|
|
33337
|
+
type: ar.CHIP,
|
|
33338
33338
|
placeholder: "Add a domain",
|
|
33339
33339
|
info: "Press Enter or Tab to add each domain",
|
|
33340
33340
|
validations: {
|
|
@@ -33345,7 +33345,7 @@ const k8 = ({
|
|
|
33345
33345
|
{
|
|
33346
33346
|
name: "name",
|
|
33347
33347
|
label: "Contact Name",
|
|
33348
|
-
type:
|
|
33348
|
+
type: ar.TEXT,
|
|
33349
33349
|
placeholder: "Enter a contact name",
|
|
33350
33350
|
validations: {
|
|
33351
33351
|
isRequired: !0
|
|
@@ -33354,7 +33354,7 @@ const k8 = ({
|
|
|
33354
33354
|
{
|
|
33355
33355
|
name: "email",
|
|
33356
33356
|
label: "Email",
|
|
33357
|
-
type:
|
|
33357
|
+
type: ar.TEXT,
|
|
33358
33358
|
placeholder: "Enter an email address",
|
|
33359
33359
|
validations: {
|
|
33360
33360
|
isRequired: !0
|
|
@@ -33363,7 +33363,7 @@ const k8 = ({
|
|
|
33363
33363
|
{
|
|
33364
33364
|
name: "phone_number",
|
|
33365
33365
|
label: "Phone",
|
|
33366
|
-
type:
|
|
33366
|
+
type: ar.TEXT,
|
|
33367
33367
|
placeholder: "Enter a phone number",
|
|
33368
33368
|
validations: {
|
|
33369
33369
|
isRequired: !0
|
|
@@ -33479,7 +33479,7 @@ const k8 = ({
|
|
|
33479
33479
|
}
|
|
33480
33480
|
)
|
|
33481
33481
|
] });
|
|
33482
|
-
}, B8 = (e, n) => n ===
|
|
33482
|
+
}, B8 = (e, n) => n === ar.DATE || n === ar.DROPDOWN ? `Select a ${e}` : `Enter ${e.toLowerCase()}`, j8 = (e) => {
|
|
33483
33483
|
const n = e;
|
|
33484
33484
|
return Array.isArray(n) ? n.map((t) => {
|
|
33485
33485
|
const a = { ...t };
|
|
@@ -33588,7 +33588,7 @@ const k8 = ({
|
|
|
33588
33588
|
label: v.label,
|
|
33589
33589
|
info: v.info,
|
|
33590
33590
|
validations: v.validations,
|
|
33591
|
-
renderField: (w) => v.type ===
|
|
33591
|
+
renderField: (w) => v.type === ar.DROPDOWN ? /* @__PURE__ */ p(
|
|
33592
33592
|
dp,
|
|
33593
33593
|
{
|
|
33594
33594
|
placeholder: v.placeholder,
|
|
@@ -33596,7 +33596,7 @@ const k8 = ({
|
|
|
33596
33596
|
onChange: (E) => w.onChange(E.target.value),
|
|
33597
33597
|
options: v.options
|
|
33598
33598
|
}
|
|
33599
|
-
) : v.type ===
|
|
33599
|
+
) : v.type === ar.DATE ? /* @__PURE__ */ p(
|
|
33600
33600
|
k8,
|
|
33601
33601
|
{
|
|
33602
33602
|
placeholder: v.placeholder,
|
|
@@ -33605,7 +33605,7 @@ const k8 = ({
|
|
|
33605
33605
|
onChange: (E) => w.onChange(E),
|
|
33606
33606
|
onBlur: w.onBlur
|
|
33607
33607
|
}
|
|
33608
|
-
) : v.type ===
|
|
33608
|
+
) : v.type === ar.NUMBER ? /* @__PURE__ */ p(
|
|
33609
33609
|
q8,
|
|
33610
33610
|
{
|
|
33611
33611
|
placeholder: v.placeholder,
|
|
@@ -33614,7 +33614,7 @@ const k8 = ({
|
|
|
33614
33614
|
onChange: (E) => w.onChange(E),
|
|
33615
33615
|
onBlur: w.onBlur
|
|
33616
33616
|
}
|
|
33617
|
-
) : v.type ===
|
|
33617
|
+
) : v.type === ar.CHIP ? /* @__PURE__ */ p(
|
|
33618
33618
|
R8,
|
|
33619
33619
|
{
|
|
33620
33620
|
placeholder: v.placeholder,
|
|
@@ -34936,11 +34936,11 @@ const Wb = () => {
|
|
|
34936
34936
|
] })
|
|
34937
34937
|
}
|
|
34938
34938
|
), Gb = () => {
|
|
34939
|
-
const { accountId: e } = Lo(), n = Zt(null), t =
|
|
34939
|
+
const { accountId: e } = Lo(), n = Zt(null), t = cr(
|
|
34940
34940
|
(u) => e ? u.conversations[parseInt(e, 10)] : void 0
|
|
34941
|
-
), a =
|
|
34941
|
+
), a = cr(
|
|
34942
34942
|
(u) => e ? u.conversationsLoading[parseInt(e, 10)] : !1
|
|
34943
|
-
), r =
|
|
34943
|
+
), r = cr((u) => u.fetchCompanyConversations), o = cr((u) => u.fetchNextPageCompanyConversations);
|
|
34944
34944
|
nn(() => {
|
|
34945
34945
|
if (e) {
|
|
34946
34946
|
const u = parseInt(e, 10);
|
|
@@ -35099,16 +35099,16 @@ const Wb = () => {
|
|
|
35099
35099
|
] }),
|
|
35100
35100
|
/* @__PURE__ */ p("div", { className: "cm:flex-1 cm:flex cm:gap-2 cm:h-full cm:items-center cm:min-w-0 cm:px-1 cm:py-0 cm:relative cm:shrink-0", children: /* @__PURE__ */ p("p", { className: "cm:font-medium cm:leading-5 cm:text-sm cm:text-slate-text-title cm:whitespace-nowrap", children: t }) })
|
|
35101
35101
|
] }) }), $b = () => {
|
|
35102
|
-
const { accountId: e } = Lo(), n = e ? parseInt(e, 10) : void 0, t =
|
|
35102
|
+
const { accountId: e } = Lo(), n = e ? parseInt(e, 10) : void 0, t = cr((y) => y.fetchCompanySummary), a = al(ol.CUSTOM_FIELDS_ENABLED), { summaries: r } = cr(), { data: o, isLoading: l } = Vd({ entity_type: Mn.COMPANY, entity_ids: [n], enabled: a && !!n }), s = Gt(() => e ? r[parseInt(e, 10)] : void 0, [e, r]);
|
|
35103
35103
|
nn(() => {
|
|
35104
35104
|
if (e) {
|
|
35105
35105
|
const y = parseInt(e, 10);
|
|
35106
35106
|
isNaN(y) || t(y);
|
|
35107
35107
|
}
|
|
35108
35108
|
}, [e, t]);
|
|
35109
|
-
const c =
|
|
35109
|
+
const c = cr(
|
|
35110
35110
|
(y) => e ? y.summaryLoading[parseInt(e, 10)] : !1
|
|
35111
|
-
), u =
|
|
35111
|
+
), u = cr(
|
|
35112
35112
|
(y) => e ? parseInt(e, 10) in y.summaryLoading : !1
|
|
35113
35113
|
), d = Gt(() => {
|
|
35114
35114
|
if (!s) return {};
|
|
@@ -36259,7 +36259,8 @@ const Ey = (e) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16
|
|
|
36259
36259
|
}, Oy = async ({ payload: e, entity_type: n, cf_id: t }) => {
|
|
36260
36260
|
const a = il(), r = {
|
|
36261
36261
|
...e,
|
|
36262
|
-
status: e.status === 0 ? 0 : 1
|
|
36262
|
+
status: e.status === 0 ? 0 : 1,
|
|
36263
|
+
action: "EDIT"
|
|
36263
36264
|
}, o = sl(Mr.EDIT_CUSTOM_FIELD, {
|
|
36264
36265
|
entity_type: n,
|
|
36265
36266
|
cf_id: String(t)
|
|
@@ -36320,7 +36321,7 @@ const Ey = (e) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16
|
|
|
36320
36321
|
}
|
|
36321
36322
|
),
|
|
36322
36323
|
/* @__PURE__ */ X(cp, { initialData: c, children: [
|
|
36323
|
-
/* @__PURE__ */ p(Dy, {}),
|
|
36324
|
+
/* @__PURE__ */ p(Dy, { isEdit: o }),
|
|
36324
36325
|
/* @__PURE__ */ p(
|
|
36325
36326
|
ky,
|
|
36326
36327
|
{
|
|
@@ -36331,8 +36332,6 @@ const Ey = (e) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16
|
|
|
36331
36332
|
payload: {
|
|
36332
36333
|
...d,
|
|
36333
36334
|
info_icon: !1,
|
|
36334
|
-
dropdown_default_value: null,
|
|
36335
|
-
dropdown_values: d.dropdown_values ?? [],
|
|
36336
36335
|
status: n.status === 0 ? 0 : 1
|
|
36337
36336
|
},
|
|
36338
36337
|
entity_type: t,
|
|
@@ -36341,8 +36340,10 @@ const Ey = (e) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16
|
|
|
36341
36340
|
payload: {
|
|
36342
36341
|
...d,
|
|
36343
36342
|
info_icon: !1,
|
|
36344
|
-
|
|
36345
|
-
|
|
36343
|
+
...d.type === ar.DROPDOWN && {
|
|
36344
|
+
dropdown_default_value: null,
|
|
36345
|
+
dropdown_values: j8(d.dropdown_values)
|
|
36346
|
+
}
|
|
36346
36347
|
},
|
|
36347
36348
|
entity_type: t
|
|
36348
36349
|
});
|
|
@@ -36352,20 +36353,21 @@ const Ey = (e) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16
|
|
|
36352
36353
|
)
|
|
36353
36354
|
] }, n?.cf_id)
|
|
36354
36355
|
] }) });
|
|
36355
|
-
}, Dy = () => {
|
|
36356
|
-
const
|
|
36356
|
+
}, Dy = ({ isEdit: e }) => {
|
|
36357
|
+
const n = ya((t) => t.values.type);
|
|
36357
36358
|
return /* @__PURE__ */ X("div", { className: "cm:flex-1 cm:min-h-0 cm:overflow-y-auto cm:px-7 cm:py-5 cm:flex cm:flex-col cm:gap-5", children: [
|
|
36358
36359
|
/* @__PURE__ */ p(
|
|
36359
36360
|
pi,
|
|
36360
36361
|
{
|
|
36361
36362
|
name: "type",
|
|
36362
36363
|
label: "Customer field type",
|
|
36363
|
-
renderField: (
|
|
36364
|
+
renderField: (t) => /* @__PURE__ */ p(
|
|
36364
36365
|
dp,
|
|
36365
36366
|
{
|
|
36366
|
-
value:
|
|
36367
|
+
value: t.value,
|
|
36367
36368
|
options: f8,
|
|
36368
|
-
|
|
36369
|
+
disabled: e,
|
|
36370
|
+
onChange: (a) => t.onChange(a.target.value)
|
|
36369
36371
|
}
|
|
36370
36372
|
)
|
|
36371
36373
|
}
|
|
@@ -36376,14 +36378,14 @@ const Ey = (e) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16
|
|
|
36376
36378
|
name: "display_name",
|
|
36377
36379
|
label: "Name",
|
|
36378
36380
|
validations: { isRequired: !0, maxLength: 50 },
|
|
36379
|
-
renderField: (
|
|
36381
|
+
renderField: (t) => /* @__PURE__ */ p(
|
|
36380
36382
|
Ls,
|
|
36381
36383
|
{
|
|
36382
36384
|
placeholder: "Enter a name",
|
|
36383
|
-
value:
|
|
36384
|
-
error:
|
|
36385
|
-
onChange: (
|
|
36386
|
-
onBlur:
|
|
36385
|
+
value: t.value,
|
|
36386
|
+
error: t.hasError,
|
|
36387
|
+
onChange: (a) => t.onChange(a.target.value),
|
|
36388
|
+
onBlur: t.onBlur,
|
|
36387
36389
|
maxLength: 50
|
|
36388
36390
|
}
|
|
36389
36391
|
)
|
|
@@ -36394,20 +36396,20 @@ const Ey = (e) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16
|
|
|
36394
36396
|
{
|
|
36395
36397
|
name: "description",
|
|
36396
36398
|
label: "Description",
|
|
36397
|
-
renderField: (
|
|
36399
|
+
renderField: (t) => /* @__PURE__ */ p(
|
|
36398
36400
|
yy,
|
|
36399
36401
|
{
|
|
36400
36402
|
placeholder: "Add a description for this customer field",
|
|
36401
|
-
value:
|
|
36402
|
-
error:
|
|
36403
|
-
onChange: (
|
|
36403
|
+
value: t.value,
|
|
36404
|
+
error: t.hasError,
|
|
36405
|
+
onChange: (a) => t.onChange(a.target.value),
|
|
36404
36406
|
maxLength: 150,
|
|
36405
|
-
onBlur:
|
|
36407
|
+
onBlur: t.onBlur
|
|
36406
36408
|
}
|
|
36407
36409
|
)
|
|
36408
36410
|
}
|
|
36409
36411
|
),
|
|
36410
|
-
|
|
36412
|
+
n === ar.DROPDOWN && /* @__PURE__ */ p(
|
|
36411
36413
|
pi,
|
|
36412
36414
|
{
|
|
36413
36415
|
name: "dropdown_values",
|
|
@@ -36416,19 +36418,19 @@ const Ey = (e) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16
|
|
|
36416
36418
|
isRequired: !0,
|
|
36417
36419
|
custom: F8
|
|
36418
36420
|
},
|
|
36419
|
-
renderField: (
|
|
36420
|
-
const
|
|
36421
|
+
renderField: (t) => {
|
|
36422
|
+
const a = t.value ?? [], r = () => ({ display_name: "", __id: Py() });
|
|
36421
36423
|
return /* @__PURE__ */ p(
|
|
36422
36424
|
Sy,
|
|
36423
36425
|
{
|
|
36424
|
-
value:
|
|
36426
|
+
value: a,
|
|
36425
36427
|
inputKey: "display_name",
|
|
36426
36428
|
maxLength: 50,
|
|
36427
|
-
error:
|
|
36428
|
-
createRow:
|
|
36429
|
-
getKey: (
|
|
36430
|
-
onChange:
|
|
36431
|
-
onBlur:
|
|
36429
|
+
error: t.hasError,
|
|
36430
|
+
createRow: r,
|
|
36431
|
+
getKey: (o) => o.id || o.__id,
|
|
36432
|
+
onChange: t.onChange,
|
|
36433
|
+
onBlur: t.onBlur
|
|
36432
36434
|
}
|
|
36433
36435
|
);
|
|
36434
36436
|
}
|
|
@@ -36437,8 +36439,10 @@ const Ey = (e) => /* @__PURE__ */ i.createElement("svg", { width: 16, height: 16
|
|
|
36437
36439
|
] });
|
|
36438
36440
|
}, Ny = async ({ customField: e }) => {
|
|
36439
36441
|
const n = {
|
|
36440
|
-
|
|
36441
|
-
|
|
36442
|
+
display_name: e.display_name,
|
|
36443
|
+
info_icon: !1,
|
|
36444
|
+
status: e.status === 1 ? 0 : 1,
|
|
36445
|
+
action: "TOGGLE"
|
|
36442
36446
|
}, t = il(), a = sl(Mr.TOGGLE_CUSTOM_FIELD_VISIBILITY, {
|
|
36443
36447
|
cf_id: e.cf_id
|
|
36444
36448
|
});
|