@commercelayer/app-elements 3.0.0 → 3.0.1
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/{CodeEditorComponent-DKQNsw4L.js → CodeEditorComponent-Cru9Y-Qc.js} +176 -174
- package/dist/{InputDateComponent-vJauylce.js → InputDateComponent-B9rTA3XE.js} +1 -1
- package/dist/{main-CJx2CWKA.js → main-r1-D6uI_.js} +118 -127
- package/dist/main.js +1 -1
- package/dist/ui/forms/CodeEditor/CodeEditorComponent.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ var dV = Object.defineProperty;
|
|
|
3
3
|
var mV = (e, t, n) => t in e ? dV(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var O2 = (e, t, n) => mV(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
5
|
import * as Xe from "react";
|
|
6
|
-
import a, { useRef as ot, useCallback as ve, useEffect as ae, useState as
|
|
6
|
+
import a, { useRef as ot, useCallback as ve, useEffect as ae, useState as se, createContext as vr, forwardRef as N, useContext as Ya, useMemo as Ke, isValidElement as cr, Children as W0, cloneElement as Jr, useReducer as Ll, Fragment as Ra, useLayoutEffect as qc, useDebugValue as fV, Component as ag, useImperativeHandle as rg, lazy as Qc, Suspense as Kc, createElement as pV } from "react";
|
|
7
7
|
import hV, { createPortal as ig } from "react-dom";
|
|
8
8
|
import { FormProvider as gV, useFormContext as a0, get as fc, set as I2, appendErrors as bV, useForm as Tl, Controller as Xn } from "react-hook-form";
|
|
9
9
|
import vV, { CommerceLayerStatic as yV } from "@commercelayer/sdk";
|
|
@@ -8874,7 +8874,7 @@ const JN = (e) => {
|
|
|
8874
8874
|
}), []), t;
|
|
8875
8875
|
}
|
|
8876
8876
|
}, ob = (e = 500) => {
|
|
8877
|
-
const [t, n] =
|
|
8877
|
+
const [t, n] = se(e === 0), r = ot(null);
|
|
8878
8878
|
return ae(() => (t || (r.current = window.setTimeout(() => {
|
|
8879
8879
|
n(!0);
|
|
8880
8880
|
}, e)), () => {
|
|
@@ -8928,16 +8928,16 @@ function QN() {
|
|
|
8928
8928
|
var Z = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
8929
8929
|
function M(I) {
|
|
8930
8930
|
{
|
|
8931
|
-
for (var W = arguments.length,
|
|
8932
|
-
|
|
8933
|
-
V("error", I,
|
|
8931
|
+
for (var W = arguments.length, ie = new Array(W > 1 ? W - 1 : 0), je = 1; je < W; je++)
|
|
8932
|
+
ie[je - 1] = arguments[je];
|
|
8933
|
+
V("error", I, ie);
|
|
8934
8934
|
}
|
|
8935
8935
|
}
|
|
8936
|
-
function V(I, W,
|
|
8936
|
+
function V(I, W, ie) {
|
|
8937
8937
|
{
|
|
8938
8938
|
var je = Z.ReactDebugCurrentFrame, ut = je.getStackAddendum();
|
|
8939
|
-
ut !== "" && (W += "%s",
|
|
8940
|
-
var _t =
|
|
8939
|
+
ut !== "" && (W += "%s", ie = ie.concat([ut]));
|
|
8940
|
+
var _t = ie.map(function(st) {
|
|
8941
8941
|
return String(st);
|
|
8942
8942
|
});
|
|
8943
8943
|
_t.unshift("Warning: " + W), Function.prototype.apply.call(console[I], console, _t);
|
|
@@ -8952,12 +8952,12 @@ function QN() {
|
|
|
8952
8952
|
// with.
|
|
8953
8953
|
I.$$typeof === B || I.getModuleId !== void 0));
|
|
8954
8954
|
}
|
|
8955
|
-
function oe(I, W,
|
|
8955
|
+
function oe(I, W, ie) {
|
|
8956
8956
|
var je = I.displayName;
|
|
8957
8957
|
if (je)
|
|
8958
8958
|
return je;
|
|
8959
8959
|
var ut = W.displayName || W.name || "";
|
|
8960
|
-
return ut !== "" ?
|
|
8960
|
+
return ut !== "" ? ie + "(" + ut + ")" : ie;
|
|
8961
8961
|
}
|
|
8962
8962
|
function re(I) {
|
|
8963
8963
|
return I.displayName || "Context";
|
|
@@ -8989,8 +8989,8 @@ function QN() {
|
|
|
8989
8989
|
var W = I;
|
|
8990
8990
|
return re(W) + ".Consumer";
|
|
8991
8991
|
case c:
|
|
8992
|
-
var
|
|
8993
|
-
return re(
|
|
8992
|
+
var ie = I;
|
|
8993
|
+
return re(ie._context) + ".Provider";
|
|
8994
8994
|
case m:
|
|
8995
8995
|
return oe(I, I.render, "ForwardRef");
|
|
8996
8996
|
case h:
|
|
@@ -9070,7 +9070,7 @@ function QN() {
|
|
|
9070
9070
|
}
|
|
9071
9071
|
}
|
|
9072
9072
|
var Le = Z.ReactCurrentDispatcher, ft;
|
|
9073
|
-
function Te(I, W,
|
|
9073
|
+
function Te(I, W, ie) {
|
|
9074
9074
|
{
|
|
9075
9075
|
if (ft === void 0)
|
|
9076
9076
|
try {
|
|
@@ -9092,9 +9092,9 @@ function QN() {
|
|
|
9092
9092
|
if (!I || xt)
|
|
9093
9093
|
return "";
|
|
9094
9094
|
{
|
|
9095
|
-
var
|
|
9096
|
-
if (
|
|
9097
|
-
return
|
|
9095
|
+
var ie = bt.get(I);
|
|
9096
|
+
if (ie !== void 0)
|
|
9097
|
+
return ie;
|
|
9098
9098
|
}
|
|
9099
9099
|
var je;
|
|
9100
9100
|
xt = !0;
|
|
@@ -9159,14 +9159,14 @@ function QN() {
|
|
|
9159
9159
|
var Jn = I ? I.displayName || I.name : "", S0 = Jn ? Te(Jn) : "";
|
|
9160
9160
|
return typeof I == "function" && bt.set(I, S0), S0;
|
|
9161
9161
|
}
|
|
9162
|
-
function Se(I, W,
|
|
9162
|
+
function Se(I, W, ie) {
|
|
9163
9163
|
return q(I, !1);
|
|
9164
9164
|
}
|
|
9165
9165
|
function ke(I) {
|
|
9166
9166
|
var W = I.prototype;
|
|
9167
9167
|
return !!(W && W.isReactComponent);
|
|
9168
9168
|
}
|
|
9169
|
-
function xe(I, W,
|
|
9169
|
+
function xe(I, W, ie) {
|
|
9170
9170
|
if (I == null)
|
|
9171
9171
|
return "";
|
|
9172
9172
|
if (typeof I == "function")
|
|
@@ -9184,11 +9184,11 @@ function QN() {
|
|
|
9184
9184
|
case m:
|
|
9185
9185
|
return Se(I.render);
|
|
9186
9186
|
case h:
|
|
9187
|
-
return xe(I.type, W,
|
|
9187
|
+
return xe(I.type, W, ie);
|
|
9188
9188
|
case v: {
|
|
9189
9189
|
var je = I, ut = je._payload, _t = je._init;
|
|
9190
9190
|
try {
|
|
9191
|
-
return xe(_t(ut), W,
|
|
9191
|
+
return xe(_t(ut), W, ie);
|
|
9192
9192
|
} catch {
|
|
9193
9193
|
}
|
|
9194
9194
|
}
|
|
@@ -9198,12 +9198,12 @@ function QN() {
|
|
|
9198
9198
|
var It = Object.prototype.hasOwnProperty, vt = {}, Je = Z.ReactDebugCurrentFrame;
|
|
9199
9199
|
function Ze(I) {
|
|
9200
9200
|
if (I) {
|
|
9201
|
-
var W = I._owner,
|
|
9202
|
-
Je.setExtraStackFrame(
|
|
9201
|
+
var W = I._owner, ie = xe(I.type, I._source, W ? W.type : null);
|
|
9202
|
+
Je.setExtraStackFrame(ie);
|
|
9203
9203
|
} else
|
|
9204
9204
|
Je.setExtraStackFrame(null);
|
|
9205
9205
|
}
|
|
9206
|
-
function nt(I, W,
|
|
9206
|
+
function nt(I, W, ie, je, ut) {
|
|
9207
9207
|
{
|
|
9208
9208
|
var _t = Function.call.bind(It);
|
|
9209
9209
|
for (var st in I)
|
|
@@ -9211,14 +9211,14 @@ function QN() {
|
|
|
9211
9211
|
var qe = void 0;
|
|
9212
9212
|
try {
|
|
9213
9213
|
if (typeof I[st] != "function") {
|
|
9214
|
-
var Ge = Error((je || "React class") + ": " +
|
|
9214
|
+
var Ge = Error((je || "React class") + ": " + ie + " type `" + st + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof I[st] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
9215
9215
|
throw Ge.name = "Invariant Violation", Ge;
|
|
9216
9216
|
}
|
|
9217
|
-
qe = I[st](W, st, je,
|
|
9217
|
+
qe = I[st](W, st, je, ie, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
9218
9218
|
} catch (yt) {
|
|
9219
9219
|
qe = yt;
|
|
9220
9220
|
}
|
|
9221
|
-
qe && !(qe instanceof Error) && (Ze(ut), M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", je || "React class",
|
|
9221
|
+
qe && !(qe instanceof Error) && (Ze(ut), M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", je || "React class", ie, st, typeof qe), Ze(null)), qe instanceof Error && !(qe.message in vt) && (vt[qe.message] = !0, Ze(ut), M("Failed %s type: %s", ie, qe.message), Ze(null));
|
|
9222
9222
|
}
|
|
9223
9223
|
}
|
|
9224
9224
|
}
|
|
@@ -9228,8 +9228,8 @@ function QN() {
|
|
|
9228
9228
|
}
|
|
9229
9229
|
function M0(I) {
|
|
9230
9230
|
{
|
|
9231
|
-
var W = typeof Symbol == "function" && Symbol.toStringTag,
|
|
9232
|
-
return
|
|
9231
|
+
var W = typeof Symbol == "function" && Symbol.toStringTag, ie = W && I[Symbol.toStringTag] || I.constructor.name || "Object";
|
|
9232
|
+
return ie;
|
|
9233
9233
|
}
|
|
9234
9234
|
}
|
|
9235
9235
|
function Kt(I) {
|
|
@@ -9271,40 +9271,40 @@ function QN() {
|
|
|
9271
9271
|
}
|
|
9272
9272
|
function St(I, W) {
|
|
9273
9273
|
if (typeof I.ref == "string" && c0.current && W && c0.current.stateNode !== W) {
|
|
9274
|
-
var
|
|
9275
|
-
I0[
|
|
9274
|
+
var ie = ge(c0.current.type);
|
|
9275
|
+
I0[ie] || (M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ge(c0.current.type), I.ref), I0[ie] = !0);
|
|
9276
9276
|
}
|
|
9277
9277
|
}
|
|
9278
9278
|
function Ht(I, W) {
|
|
9279
9279
|
{
|
|
9280
|
-
var
|
|
9280
|
+
var ie = function() {
|
|
9281
9281
|
k0 || (k0 = !0, M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W));
|
|
9282
9282
|
};
|
|
9283
|
-
|
|
9284
|
-
get:
|
|
9283
|
+
ie.isReactWarning = !0, Object.defineProperty(I, "key", {
|
|
9284
|
+
get: ie,
|
|
9285
9285
|
configurable: !0
|
|
9286
9286
|
});
|
|
9287
9287
|
}
|
|
9288
9288
|
}
|
|
9289
9289
|
function kt(I, W) {
|
|
9290
9290
|
{
|
|
9291
|
-
var
|
|
9291
|
+
var ie = function() {
|
|
9292
9292
|
Y0 || (Y0 = !0, M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", W));
|
|
9293
9293
|
};
|
|
9294
|
-
|
|
9295
|
-
get:
|
|
9294
|
+
ie.isReactWarning = !0, Object.defineProperty(I, "ref", {
|
|
9295
|
+
get: ie,
|
|
9296
9296
|
configurable: !0
|
|
9297
9297
|
});
|
|
9298
9298
|
}
|
|
9299
9299
|
}
|
|
9300
|
-
var jt = function(I, W,
|
|
9300
|
+
var jt = function(I, W, ie, je, ut, _t, st) {
|
|
9301
9301
|
var qe = {
|
|
9302
9302
|
// This tag allows us to uniquely identify this as a React Element
|
|
9303
9303
|
$$typeof: t,
|
|
9304
9304
|
// Built-in properties that belong on the element
|
|
9305
9305
|
type: I,
|
|
9306
9306
|
key: W,
|
|
9307
|
-
ref:
|
|
9307
|
+
ref: ie,
|
|
9308
9308
|
props: st,
|
|
9309
9309
|
// Record the component responsible for creating this element.
|
|
9310
9310
|
_owner: _t
|
|
@@ -9326,10 +9326,10 @@ function QN() {
|
|
|
9326
9326
|
value: ut
|
|
9327
9327
|
}), Object.freeze && (Object.freeze(qe.props), Object.freeze(qe)), qe;
|
|
9328
9328
|
};
|
|
9329
|
-
function Yt(I, W,
|
|
9329
|
+
function Yt(I, W, ie, je, ut) {
|
|
9330
9330
|
{
|
|
9331
9331
|
var _t, st = {}, qe = null, Ge = null;
|
|
9332
|
-
|
|
9332
|
+
ie !== void 0 && (f0(ie), qe = "" + ie), p0(W) && (f0(W.key), qe = "" + W.key), cn(W) && (Ge = W.ref, St(W, ut));
|
|
9333
9333
|
for (_t in W)
|
|
9334
9334
|
It.call(W, _t) && !i0.hasOwnProperty(_t) && (st[_t] = W[_t]);
|
|
9335
9335
|
if (I && I.defaultProps) {
|
|
@@ -9347,8 +9347,8 @@ function QN() {
|
|
|
9347
9347
|
var Rt = Z.ReactCurrentOwner, Jt = Z.ReactDebugCurrentFrame;
|
|
9348
9348
|
function u0(I) {
|
|
9349
9349
|
if (I) {
|
|
9350
|
-
var W = I._owner,
|
|
9351
|
-
Jt.setExtraStackFrame(
|
|
9350
|
+
var W = I._owner, ie = xe(I.type, I._source, W ? W.type : null);
|
|
9351
|
+
Jt.setExtraStackFrame(ie);
|
|
9352
9352
|
} else
|
|
9353
9353
|
Jt.setExtraStackFrame(null);
|
|
9354
9354
|
}
|
|
@@ -9377,10 +9377,10 @@ Check the render method of \`` + I + "`.";
|
|
|
9377
9377
|
{
|
|
9378
9378
|
var W = Ft();
|
|
9379
9379
|
if (!W) {
|
|
9380
|
-
var
|
|
9381
|
-
|
|
9380
|
+
var ie = typeof I == "string" ? I : I.displayName || I.name;
|
|
9381
|
+
ie && (W = `
|
|
9382
9382
|
|
|
9383
|
-
Check the top-level render call using <` +
|
|
9383
|
+
Check the top-level render call using <` + ie + ">.");
|
|
9384
9384
|
}
|
|
9385
9385
|
return W;
|
|
9386
9386
|
}
|
|
@@ -9390,12 +9390,12 @@ Check the top-level render call using <` + se + ">.");
|
|
|
9390
9390
|
if (!I._store || I._store.validated || I.key != null)
|
|
9391
9391
|
return;
|
|
9392
9392
|
I._store.validated = !0;
|
|
9393
|
-
var
|
|
9394
|
-
if (He[
|
|
9393
|
+
var ie = it(W);
|
|
9394
|
+
if (He[ie])
|
|
9395
9395
|
return;
|
|
9396
|
-
He[
|
|
9396
|
+
He[ie] = !0;
|
|
9397
9397
|
var je = "";
|
|
9398
|
-
I && I._owner && I._owner !== Rt.current && (je = " It was passed a child from " + ge(I._owner.type) + "."), u0(I), M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
9398
|
+
I && I._owner && I._owner !== Rt.current && (je = " It was passed a child from " + ge(I._owner.type) + "."), u0(I), M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ie, je), u0(null);
|
|
9399
9399
|
}
|
|
9400
9400
|
}
|
|
9401
9401
|
function xn(I, W) {
|
|
@@ -9403,8 +9403,8 @@ Check the top-level render call using <` + se + ">.");
|
|
|
9403
9403
|
if (typeof I != "object")
|
|
9404
9404
|
return;
|
|
9405
9405
|
if (Xt(I))
|
|
9406
|
-
for (var
|
|
9407
|
-
var je = I[
|
|
9406
|
+
for (var ie = 0; ie < I.length; ie++) {
|
|
9407
|
+
var je = I[ie];
|
|
9408
9408
|
q0(je) && x0(je, W);
|
|
9409
9409
|
}
|
|
9410
9410
|
else if (q0(I))
|
|
@@ -9422,18 +9422,18 @@ Check the top-level render call using <` + se + ">.");
|
|
|
9422
9422
|
var W = I.type;
|
|
9423
9423
|
if (W == null || typeof W == "string")
|
|
9424
9424
|
return;
|
|
9425
|
-
var
|
|
9425
|
+
var ie;
|
|
9426
9426
|
if (typeof W == "function")
|
|
9427
|
-
|
|
9427
|
+
ie = W.propTypes;
|
|
9428
9428
|
else if (typeof W == "object" && (W.$$typeof === m || // Note: Memo only checks outer props here.
|
|
9429
9429
|
// Inner props are checked in the reconciler.
|
|
9430
9430
|
W.$$typeof === h))
|
|
9431
|
-
|
|
9431
|
+
ie = W.propTypes;
|
|
9432
9432
|
else
|
|
9433
9433
|
return;
|
|
9434
|
-
if (
|
|
9434
|
+
if (ie) {
|
|
9435
9435
|
var je = ge(W);
|
|
9436
|
-
nt(
|
|
9436
|
+
nt(ie, I.props, "prop", je, I);
|
|
9437
9437
|
} else if (W.PropTypes !== void 0 && !J0) {
|
|
9438
9438
|
J0 = !0;
|
|
9439
9439
|
var ut = ge(W);
|
|
@@ -9444,8 +9444,8 @@ Check the top-level render call using <` + se + ">.");
|
|
|
9444
9444
|
}
|
|
9445
9445
|
function Me(I) {
|
|
9446
9446
|
{
|
|
9447
|
-
for (var W = Object.keys(I.props),
|
|
9448
|
-
var je = W[
|
|
9447
|
+
for (var W = Object.keys(I.props), ie = 0; ie < W.length; ie++) {
|
|
9448
|
+
var je = W[ie];
|
|
9449
9449
|
if (je !== "children" && je !== "key") {
|
|
9450
9450
|
u0(I), M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", je), u0(null);
|
|
9451
9451
|
break;
|
|
@@ -9455,7 +9455,7 @@ Check the top-level render call using <` + se + ">.");
|
|
|
9455
9455
|
}
|
|
9456
9456
|
}
|
|
9457
9457
|
var Re = {};
|
|
9458
|
-
function Dt(I, W,
|
|
9458
|
+
function Dt(I, W, ie, je, ut, _t) {
|
|
9459
9459
|
{
|
|
9460
9460
|
var st = ne(I);
|
|
9461
9461
|
if (!st) {
|
|
@@ -9466,7 +9466,7 @@ Check the top-level render call using <` + se + ">.");
|
|
|
9466
9466
|
var yt;
|
|
9467
9467
|
I === null ? yt = "null" : Xt(I) ? yt = "array" : I !== void 0 && I.$$typeof === t ? (yt = "<" + (ge(I.type) || "Unknown") + " />", qe = " Did you accidentally export a JSX literal instead of a component?") : yt = typeof I, M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", yt, qe);
|
|
9468
9468
|
}
|
|
9469
|
-
var Bt = Yt(I, W,
|
|
9469
|
+
var Bt = Yt(I, W, ie, ut, _t);
|
|
9470
9470
|
if (Bt == null)
|
|
9471
9471
|
return Bt;
|
|
9472
9472
|
if (st) {
|
|
@@ -9499,11 +9499,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
9499
9499
|
return I === r ? Me(Bt) : ue(Bt), Bt;
|
|
9500
9500
|
}
|
|
9501
9501
|
}
|
|
9502
|
-
function h0(I, W,
|
|
9503
|
-
return Dt(I, W,
|
|
9502
|
+
function h0(I, W, ie) {
|
|
9503
|
+
return Dt(I, W, ie, !0);
|
|
9504
9504
|
}
|
|
9505
|
-
function Q0(I, W,
|
|
9506
|
-
return Dt(I, W,
|
|
9505
|
+
function Q0(I, W, ie) {
|
|
9506
|
+
return Dt(I, W, ie, !1);
|
|
9507
9507
|
}
|
|
9508
9508
|
var K0 = Q0, b0 = h0;
|
|
9509
9509
|
W1.Fragment = r, W1.jsx = K0, W1.jsxs = b0;
|
|
@@ -9838,7 +9838,7 @@ if (typeof history < "u" && typeof window[Gd] > "u") {
|
|
|
9838
9838
|
Object.defineProperty(window, Gd, { value: !0 });
|
|
9839
9839
|
}
|
|
9840
9840
|
function xr(e) {
|
|
9841
|
-
const [t, n] =
|
|
9841
|
+
const [t, n] = se(!1), r = dk(), i = window != null && (e == null ? void 0 : e.queryParam) != null, l = ve(() => {
|
|
9842
9842
|
i ? window.history.back() : n(!1);
|
|
9843
9843
|
}, [i]), c = ve(() => {
|
|
9844
9844
|
if (i) {
|
|
@@ -15336,7 +15336,7 @@ const _7 = ({
|
|
|
15336
15336
|
menuWidth: l,
|
|
15337
15337
|
...c
|
|
15338
15338
|
}) => {
|
|
15339
|
-
const [d, m] =
|
|
15339
|
+
const [d, m] = se();
|
|
15340
15340
|
return ae(() => {
|
|
15341
15341
|
var p;
|
|
15342
15342
|
m((p = i == null ? void 0 : i.current) == null ? void 0 : p.clientWidth);
|
|
@@ -15420,7 +15420,7 @@ const A7 = ({
|
|
|
15420
15420
|
menuPosition: r = "bottom-right",
|
|
15421
15421
|
menuWidth: i
|
|
15422
15422
|
}) => {
|
|
15423
|
-
const [l, c] =
|
|
15423
|
+
const [l, c] = se(!1);
|
|
15424
15424
|
function d() {
|
|
15425
15425
|
c(!l);
|
|
15426
15426
|
}
|
|
@@ -15964,7 +15964,7 @@ const Nu = /* @__PURE__ */ o0(Dle), Ble = N(
|
|
|
15964
15964
|
autoFocus: r,
|
|
15965
15965
|
...i
|
|
15966
15966
|
}, l) => {
|
|
15967
|
-
const [c, d] =
|
|
15967
|
+
const [c, d] = se(""), m = ve(Nu(e, t), [
|
|
15968
15968
|
e
|
|
15969
15969
|
]);
|
|
15970
15970
|
return ae(
|
|
@@ -16599,7 +16599,7 @@ const eo = N(
|
|
|
16599
16599
|
delayMs: m,
|
|
16600
16600
|
...p
|
|
16601
16601
|
}, g) => {
|
|
16602
|
-
const [h, v] =
|
|
16602
|
+
const [h, v] = se(""), x = ve(Nu(t, r), [
|
|
16603
16603
|
t
|
|
16604
16604
|
]);
|
|
16605
16605
|
return ae(() => {
|
|
@@ -17879,7 +17879,7 @@ const Gu = N(
|
|
|
17879
17879
|
hideIconOnDesktop: c,
|
|
17880
17880
|
...d
|
|
17881
17881
|
}, m) => {
|
|
17882
|
-
const [p, g] =
|
|
17882
|
+
const [p, g] = se(
|
|
17883
17883
|
d.defaultChecked ?? d.checked ?? !1
|
|
17884
17884
|
);
|
|
17885
17885
|
return /* @__PURE__ */ u.jsxs(
|
|
@@ -17989,7 +17989,7 @@ function Z2e({
|
|
|
17989
17989
|
const {
|
|
17990
17990
|
emitInvalidAuth: t,
|
|
17991
17991
|
settings: { accessToken: n, domain: r, organizationSlug: i }
|
|
17992
|
-
} = r0(), [l, c] =
|
|
17992
|
+
} = r0(), [l, c] = se(
|
|
17993
17993
|
void 0
|
|
17994
17994
|
);
|
|
17995
17995
|
if (ae(
|
|
@@ -18723,7 +18723,7 @@ const lce = _e.object({
|
|
|
18723
18723
|
{
|
|
18724
18724
|
fields: ["metadata"]
|
|
18725
18725
|
}
|
|
18726
|
-
]), [c, d] =
|
|
18726
|
+
]), [c, d] = se(!1), [m, p] = se(void 0), { sdkClient: g } = ua(), h = Ke(() => {
|
|
18727
18727
|
if ((r == null ? void 0 : r.metadata) != null) {
|
|
18728
18728
|
const E = Object.entries(r.metadata).map(
|
|
18729
18729
|
([Z, M]) => ({
|
|
@@ -21280,7 +21280,7 @@ var Pv = function(t) {
|
|
|
21280
21280
|
marginTop: d.menuGutter
|
|
21281
21281
|
});
|
|
21282
21282
|
}, Lv = /* @__PURE__ */ vr(null), V8e = function(t) {
|
|
21283
|
-
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, l = t.menuPlacement, c = t.menuPosition, d = t.menuShouldScrollIntoView, m = t.theme, p = Ya(Lv) || {}, g = p.setPortalPlacement, h = ot(null), v =
|
|
21283
|
+
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, l = t.menuPlacement, c = t.menuPosition, d = t.menuShouldScrollIntoView, m = t.theme, p = Ya(Lv) || {}, g = p.setPortalPlacement, h = ot(null), v = se(i), x = Z0(v, 2), A = x[0], y = x[1], E = se(null), Z = Z0(E, 2), M = Z[0], V = Z[1], O = m.spacing.controlHeight;
|
|
21284
21284
|
return Gc(function() {
|
|
21285
21285
|
var C = h.current;
|
|
21286
21286
|
if (C) {
|
|
@@ -21365,11 +21365,11 @@ var Pv = function(t) {
|
|
|
21365
21365
|
zIndex: 1
|
|
21366
21366
|
};
|
|
21367
21367
|
}, L8e = function(t) {
|
|
21368
|
-
var n = t.appendTo, r = t.children, i = t.controlElement, l = t.innerProps, c = t.menuPlacement, d = t.menuPosition, m = ot(null), p = ot(null), g =
|
|
21368
|
+
var n = t.appendTo, r = t.children, i = t.controlElement, l = t.innerProps, c = t.menuPlacement, d = t.menuPosition, m = ot(null), p = ot(null), g = se(Pv(c)), h = Z0(g, 2), v = h[0], x = h[1], A = Ke(function() {
|
|
21369
21369
|
return {
|
|
21370
21370
|
setPortalPlacement: x
|
|
21371
21371
|
};
|
|
21372
|
-
}, []), y =
|
|
21372
|
+
}, []), y = se(null), E = Z0(y, 2), Z = E[0], M = E[1], V = ve(function() {
|
|
21373
21373
|
if (i) {
|
|
21374
21374
|
var F = h8e(i), k = d === "fixed" ? 0 : window.pageYOffset, B = F[v] + k;
|
|
21375
21375
|
(B !== (Z == null ? void 0 : Z.offset) || F.left !== (Z == null ? void 0 : Z.rect.left) || F.width !== (Z == null ? void 0 : Z.rect.width)) && M({
|
|
@@ -23649,7 +23649,7 @@ var ty = function(t) {
|
|
|
23649
23649
|
Ui.defaultProps = _6e;
|
|
23650
23650
|
var Z6e = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
23651
23651
|
function fo(e) {
|
|
23652
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, l = e.defaultValue, c = l === void 0 ? null : l, d = e.inputValue, m = e.menuIsOpen, p = e.onChange, g = e.onInputChange, h = e.onMenuClose, v = e.onMenuOpen, x = e.value, A = Yn(e, Z6e), y =
|
|
23652
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, l = e.defaultValue, c = l === void 0 ? null : l, d = e.inputValue, m = e.menuIsOpen, p = e.onChange, g = e.onInputChange, h = e.onMenuClose, v = e.onMenuOpen, x = e.value, A = Yn(e, Z6e), y = se(d !== void 0 ? d : n), E = Z0(y, 2), Z = E[0], M = E[1], V = se(m !== void 0 ? m : i), O = Z0(V, 2), C = O[0], L = O[1], F = se(x !== void 0 ? x : c), k = Z0(F, 2), B = k[0], ne = k[1], oe = ve(function(te, be) {
|
|
23653
23653
|
typeof p == "function" && p(te, be), ne(te);
|
|
23654
23654
|
}, [p]), re = ve(function(te, be) {
|
|
23655
23655
|
var me;
|
|
@@ -23673,7 +23673,7 @@ var H6e = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoadin
|
|
|
23673
23673
|
function ny(e) {
|
|
23674
23674
|
var t = e.defaultOptions, n = t === void 0 ? !1 : t, r = e.cacheOptions, i = r === void 0 ? !1 : r, l = e.loadOptions;
|
|
23675
23675
|
e.options;
|
|
23676
|
-
var c = e.isLoading, d = c === void 0 ? !1 : c, m = e.onInputChange, p = e.filterOption, g = p === void 0 ? null : p, h = Yn(e, H6e), v = h.inputValue, x = ot(void 0), A = ot(!1), y =
|
|
23676
|
+
var c = e.isLoading, d = c === void 0 ? !1 : c, m = e.onInputChange, p = e.filterOption, g = p === void 0 ? null : p, h = Yn(e, H6e), v = h.inputValue, x = ot(void 0), A = ot(!1), y = se(Array.isArray(n) ? n : void 0), E = Z0(y, 2), Z = E[0], M = E[1], V = se(typeof v < "u" ? v : ""), O = Z0(V, 2), C = O[0], L = O[1], F = se(n === !0), k = Z0(F, 2), B = k[0], ne = k[1], oe = se(void 0), re = Z0(oe, 2), ge = re[0], le = re[1], j = se([]), R = Z0(j, 2), K = R[0], te = R[1], be = se(!1), me = Z0(be, 2), Ee = me[0], Ie = me[1], Be = se({}), gt = Z0(Be, 2), et = gt[0], Le = gt[1], ft = se(void 0), Te = Z0(ft, 2), xt = Te[0], bt = Te[1], tt = se(void 0), q = Z0(tt, 2), Se = q[0], ke = q[1];
|
|
23677
23677
|
i !== Se && (Le({}), ke(i)), n !== xt && (M(Array.isArray(n) ? n : void 0), bt(n)), ae(function() {
|
|
23678
23678
|
return A.current = !0, function() {
|
|
23679
23679
|
A.current = !1;
|
|
@@ -23781,7 +23781,7 @@ Il.exports;
|
|
|
23781
23781
|
["partial", C],
|
|
23782
23782
|
["partialRight", L],
|
|
23783
23783
|
["rearg", k]
|
|
23784
|
-
], et = "[object Arguments]", Le = "[object Array]", ft = "[object AsyncFunction]", Te = "[object Boolean]", xt = "[object Date]", bt = "[object DOMException]", tt = "[object Error]", q = "[object Function]", Se = "[object GeneratorFunction]", ke = "[object Map]", xe = "[object Number]", It = "[object Null]", vt = "[object Object]", Je = "[object Promise]", Ze = "[object Proxy]", nt = "[object RegExp]", Nt = "[object Set]", Xt = "[object String]", M0 = "[object Symbol]", Kt = "[object Undefined]", pt = "[object WeakMap]", f0 = "[object WeakSet]", c0 = "[object ArrayBuffer]", i0 = "[object DataView]", k0 = "[object Float32Array]", Y0 = "[object Float64Array]", I0 = "[object Int8Array]", cn = "[object Int16Array]", p0 = "[object Int32Array]", St = "[object Uint8Array]", Ht = "[object Uint8ClampedArray]", kt = "[object Uint16Array]", jt = "[object Uint32Array]", Yt = /\b__p \+= '';/g, Rt = /\b(__p \+=) '' \+/g, Jt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, u0 = /&(?:amp|lt|gt|quot|#39);/g, J0 = /[&<>"']/g, q0 = RegExp(u0.source), Ft = RegExp(J0.source), A0 = /<%-([\s\S]+?)%>/g, He = /<%([\s\S]+?)%>/g, it = /<%=([\s\S]+?)%>/g, x0 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xn = /^\w*$/, ue = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Me = /[\\^$.*+?()[\]{}|]/g, Re = RegExp(Me.source), Dt = /^\s+/, h0 = /\s/, Q0 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, K0 = /\{\n\/\* \[wrapped with (.+)\] \*/, b0 = /,? & /, I = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, W = /[()=,{}\[\]\/\s]/,
|
|
23784
|
+
], et = "[object Arguments]", Le = "[object Array]", ft = "[object AsyncFunction]", Te = "[object Boolean]", xt = "[object Date]", bt = "[object DOMException]", tt = "[object Error]", q = "[object Function]", Se = "[object GeneratorFunction]", ke = "[object Map]", xe = "[object Number]", It = "[object Null]", vt = "[object Object]", Je = "[object Promise]", Ze = "[object Proxy]", nt = "[object RegExp]", Nt = "[object Set]", Xt = "[object String]", M0 = "[object Symbol]", Kt = "[object Undefined]", pt = "[object WeakMap]", f0 = "[object WeakSet]", c0 = "[object ArrayBuffer]", i0 = "[object DataView]", k0 = "[object Float32Array]", Y0 = "[object Float64Array]", I0 = "[object Int8Array]", cn = "[object Int16Array]", p0 = "[object Int32Array]", St = "[object Uint8Array]", Ht = "[object Uint8ClampedArray]", kt = "[object Uint16Array]", jt = "[object Uint32Array]", Yt = /\b__p \+= '';/g, Rt = /\b(__p \+=) '' \+/g, Jt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, u0 = /&(?:amp|lt|gt|quot|#39);/g, J0 = /[&<>"']/g, q0 = RegExp(u0.source), Ft = RegExp(J0.source), A0 = /<%-([\s\S]+?)%>/g, He = /<%([\s\S]+?)%>/g, it = /<%=([\s\S]+?)%>/g, x0 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xn = /^\w*$/, ue = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Me = /[\\^$.*+?()[\]{}|]/g, Re = RegExp(Me.source), Dt = /^\s+/, h0 = /\s/, Q0 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, K0 = /\{\n\/\* \[wrapped with (.+)\] \*/, b0 = /,? & /, I = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, W = /[()=,{}\[\]\/\s]/, ie = /\\(\\)?/g, je = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ut = /\w*$/, _t = /^[-+]0x[0-9a-f]+$/i, st = /^0b[01]+$/i, qe = /^\[object .+?Constructor\]$/, Ge = /^0o[0-7]+$/i, yt = /^(?:0|[1-9]\d*)$/, Bt = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, e0 = /($^)/, Jn = /['\n\r\u2028\u2029\\]/g, S0 = "\\ud800-\\udfff", j0 = "\\u0300-\\u036f", Z1 = "\\ufe20-\\ufe2f", _o = "\\u20d0-\\u20ff", Qi = j0 + Z1 + _o, b8 = "\\u2700-\\u27bf", v8 = "a-z\\xdf-\\xf6\\xf8-\\xff", l_ = "\\xac\\xb1\\xd7\\xf7", o_ = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", c_ = "\\u2000-\\u206f", u_ = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", y8 = "A-Z\\xc0-\\xd6\\xd8-\\xde", _8 = "\\ufe0e\\ufe0f", A8 = l_ + o_ + c_ + u_, Ao = "['’]", d_ = "[" + S0 + "]", x8 = "[" + A8 + "]", Ki = "[" + Qi + "]", w8 = "\\d+", m_ = "[" + b8 + "]", E8 = "[" + v8 + "]", Z8 = "[^" + S0 + A8 + w8 + b8 + v8 + y8 + "]", xo = "\\ud83c[\\udffb-\\udfff]", f_ = "(?:" + Ki + "|" + xo + ")", H8 = "[^" + S0 + "]", wo = "(?:\\ud83c[\\udde6-\\uddff]){2}", Eo = "[\\ud800-\\udbff][\\udc00-\\udfff]", Zr = "[" + y8 + "]", V8 = "\\u200d", M8 = "(?:" + E8 + "|" + Z8 + ")", p_ = "(?:" + Zr + "|" + Z8 + ")", C8 = "(?:" + Ao + "(?:d|ll|m|re|s|t|ve))?", $8 = "(?:" + Ao + "(?:D|LL|M|RE|S|T|VE))?", O8 = f_ + "?", I8 = "[" + _8 + "]?", h_ = "(?:" + V8 + "(?:" + [H8, wo, Eo].join("|") + ")" + I8 + O8 + ")*", g_ = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", b_ = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", S8 = I8 + O8 + h_, v_ = "(?:" + [m_, wo, Eo].join("|") + ")" + S8, y_ = "(?:" + [H8 + Ki + "?", Ki, wo, Eo, d_].join("|") + ")", __ = RegExp(Ao, "g"), A_ = RegExp(Ki, "g"), Zo = RegExp(xo + "(?=" + xo + ")|" + y_ + S8, "g"), x_ = RegExp([
|
|
23785
23785
|
Zr + "?" + E8 + "+" + C8 + "(?=" + [x8, Zr, "$"].join("|") + ")",
|
|
23786
23786
|
p_ + "+" + $8 + "(?=" + [x8, Zr + M8, "$"].join("|") + ")",
|
|
23787
23787
|
Zr + "?" + M8 + "+" + C8,
|
|
@@ -25969,7 +25969,7 @@ Il.exports;
|
|
|
25969
25969
|
var i6 = zx(function(s) {
|
|
25970
25970
|
var o = [];
|
|
25971
25971
|
return s.charCodeAt(0) === 46 && o.push(""), s.replace(ue, function(f, b, _, H) {
|
|
25972
|
-
o.push(_ ? H.replace(
|
|
25972
|
+
o.push(_ ? H.replace(ie, "$1") : b || f);
|
|
25973
25973
|
}), o;
|
|
25974
25974
|
});
|
|
25975
25975
|
function Kn(s) {
|
|
@@ -27926,7 +27926,7 @@ const Ci = ({
|
|
|
27926
27926
|
onSelect: n,
|
|
27927
27927
|
...r
|
|
27928
27928
|
}) => {
|
|
27929
|
-
const { control: i, watch: l, getValues: c } = a0(), d = jn(e), [m, p] =
|
|
27929
|
+
const { control: i, watch: l, getValues: c } = a0(), d = jn(e), [m, p] = se(c(e)), g = l(e), h = ot(null);
|
|
27930
27930
|
ae(
|
|
27931
27931
|
function() {
|
|
27932
27932
|
h.current != null && g == null && m !== g && h.current.clearValue(), p(g);
|
|
@@ -27971,7 +27971,7 @@ function z6e() {
|
|
|
27971
27971
|
Overlay: e,
|
|
27972
27972
|
open: t,
|
|
27973
27973
|
close: n
|
|
27974
|
-
} = xr({ queryParam: "edit-tags" }), { settings: r } = r0(), [i, l] =
|
|
27974
|
+
} = xr({ queryParam: "edit-tags" }), { settings: r } = r0(), [i, l] = se(!1), c = ru({
|
|
27975
27975
|
destination: {
|
|
27976
27976
|
app: "tags",
|
|
27977
27977
|
mode: r.mode
|
|
@@ -28008,7 +28008,7 @@ function z6e() {
|
|
|
28008
28008
|
), E = ve(
|
|
28009
28009
|
(V) => V.length > 0 ? V.map((O) => O.meta) : [{ id: null, type: "tags" }],
|
|
28010
28010
|
[]
|
|
28011
|
-
), [Z, M] =
|
|
28011
|
+
), [Z, M] = se(
|
|
28012
28012
|
y(v ?? [])
|
|
28013
28013
|
);
|
|
28014
28014
|
return x || v == null ? /* @__PURE__ */ u.jsx(u.Fragment, {}) : /* @__PURE__ */ u.jsx(
|
|
@@ -28668,7 +28668,7 @@ const ri = zc, Pa = 300, Js = 3e3, o8 = ({
|
|
|
28668
28668
|
showValue: n = !0,
|
|
28669
28669
|
...r
|
|
28670
28670
|
}) => {
|
|
28671
|
-
const [i, l] =
|
|
28671
|
+
const [i, l] = se(!1);
|
|
28672
28672
|
ri(
|
|
28673
28673
|
Js > Pa,
|
|
28674
28674
|
"feedbackDurationMs must be greater than transitionMs"
|
|
@@ -28790,7 +28790,7 @@ const gde = ze(
|
|
|
28790
28790
|
children: c,
|
|
28791
28791
|
...d
|
|
28792
28792
|
}) => {
|
|
28793
|
-
const [m, p] =
|
|
28793
|
+
const [m, p] = se(t);
|
|
28794
28794
|
return ae(() => {
|
|
28795
28795
|
p(t);
|
|
28796
28796
|
}, [t]), /* @__PURE__ */ u.jsx(V0, { ...d, label: n, hint: r, children: /* @__PURE__ */ u.jsxs("div", { className: "flex group w-full rounded bg-gray-50 [.overlay-container_&]:bg-gray-200", children: [
|
|
@@ -29172,7 +29172,7 @@ function wde({
|
|
|
29172
29172
|
);
|
|
29173
29173
|
},
|
|
29174
29174
|
[t]
|
|
29175
|
-
), [m, p] =
|
|
29175
|
+
), [m, p] = se(
|
|
29176
29176
|
l ?? d ?? 0
|
|
29177
29177
|
);
|
|
29178
29178
|
return ae(
|
|
@@ -29350,7 +29350,7 @@ function vy(e = Ode) {
|
|
|
29350
29350
|
var Rr = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, uc = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
29351
29351
|
const jde = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: i = "dark", anchorId: l, anchorSelect: c, place: d = "top", offset: m = 10, events: p = ["hover"], openOnClick: g = !1, positionStrategy: h = "absolute", middlewares: v, wrapper: x, delayShow: A = 0, delayHide: y = 0, float: E = !1, hidden: Z = !1, noArrow: M = !1, clickable: V = !1, closeOnEsc: O = !1, closeOnScroll: C = !1, closeOnResize: L = !1, openEvents: F, closeEvents: k, globalCloseEvents: B, imperativeModeOnly: ne, style: oe, position: re, afterShow: ge, afterHide: le, disableTooltip: j, content: R, contentWrapperRef: K, isOpen: te, defaultIsOpen: be = !1, setIsOpen: me, activeAnchor: Ee, setActiveAnchor: Ie, border: Be, opacity: gt, arrowColor: et, role: Le = "tooltip" }) => {
|
|
29352
29352
|
var ft;
|
|
29353
|
-
const Te = ot(null), xt = ot(null), bt = ot(null), tt = ot(null), q = ot(null), [Se, ke] =
|
|
29353
|
+
const Te = ot(null), xt = ot(null), bt = ot(null), tt = ot(null), q = ot(null), [Se, ke] = se({ tooltipStyles: {}, tooltipArrowStyles: {}, place: d }), [xe, It] = se(!1), [vt, Je] = se(!1), [Ze, nt] = se(null), Nt = ot(!1), Xt = ot(null), { anchorRefs: M0, setActiveAnchor: Kt } = vy(t), pt = ot(!1), [f0, c0] = se([]), i0 = ot(!1), k0 = g || p.includes("click"), Y0 = k0 || (F == null ? void 0 : F.click) || (F == null ? void 0 : F.dblclick) || (F == null ? void 0 : F.mousedown), I0 = F ? { ...F } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
29354
29354
|
!F && k0 && Object.assign(I0, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
29355
29355
|
const cn = k ? { ...k } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
|
|
29356
29356
|
!k && k0 && Object.assign(cn, { mouseleave: !1, blur: !1, mouseout: !1 });
|
|
@@ -29448,13 +29448,13 @@ const jde = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: i
|
|
|
29448
29448
|
Ge.key === "Escape" && St(!1);
|
|
29449
29449
|
};
|
|
29450
29450
|
p0.escape && window.addEventListener("keydown", I), p0.clickOutsideAnchor && window.addEventListener("click", J0);
|
|
29451
|
-
const W = [],
|
|
29451
|
+
const W = [], ie = (Ge) => {
|
|
29452
29452
|
xe && (Ge == null ? void 0 : Ge.target) === Ee || Yt(Ge);
|
|
29453
29453
|
}, je = (Ge) => {
|
|
29454
29454
|
xe && (Ge == null ? void 0 : Ge.target) === Ee && Rt();
|
|
29455
29455
|
}, ut = ["mouseover", "mouseout", "mouseenter", "mouseleave", "focus", "blur"], _t = ["click", "dblclick", "mousedown", "mouseup"];
|
|
29456
29456
|
Object.entries(I0).forEach(([Ge, yt]) => {
|
|
29457
|
-
yt && (ut.includes(Ge) ? W.push({ event: Ge, listener: A0 }) : _t.includes(Ge) && W.push({ event: Ge, listener:
|
|
29457
|
+
yt && (ut.includes(Ge) ? W.push({ event: Ge, listener: A0 }) : _t.includes(Ge) && W.push({ event: Ge, listener: ie }));
|
|
29458
29458
|
}), Object.entries(cn).forEach(([Ge, yt]) => {
|
|
29459
29459
|
yt && (ut.includes(Ge) ? W.push({ event: Ge, listener: He }) : _t.includes(Ge) && W.push({ event: Ge, listener: je }));
|
|
29460
29460
|
}), E && W.push({ event: "pointermove", listener: u0 });
|
|
@@ -29492,8 +29492,8 @@ const jde = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: i
|
|
|
29492
29492
|
} catch {
|
|
29493
29493
|
}
|
|
29494
29494
|
I.some((W) => {
|
|
29495
|
-
var
|
|
29496
|
-
return !!(!((
|
|
29495
|
+
var ie;
|
|
29496
|
+
return !!(!((ie = W == null ? void 0 : W.contains) === null || ie === void 0) && ie.call(W, Ee)) && (Je(!1), St(!1), Ie(null), On(bt), On(tt), !0);
|
|
29497
29497
|
});
|
|
29498
29498
|
}
|
|
29499
29499
|
if (Re) try {
|
|
@@ -29549,7 +29549,7 @@ const jde = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: i
|
|
|
29549
29549
|
On(q), xe || ue.propertyName !== "opacity" || (Je(!1), nt(null), le == null || le());
|
|
29550
29550
|
}, style: { ...oe, ...Se.tooltipStyles, opacity: gt !== void 0 && xn ? gt : void 0 }, ref: Te }, x0, a.createElement(x, { className: U("react-tooltip-arrow", Rr.arrow, uc.arrow, r, M && Rr.noArrow), style: { ...Se.tooltipArrowStyles, background: et ? `linear-gradient(to right bottom, transparent 50%, ${et} 50%)` : void 0 }, ref: xt })) : null;
|
|
29551
29551
|
}, Fde = ({ content: e }) => a.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), Pde = a.forwardRef(({ id: e, anchorId: t, anchorSelect: n, content: r, html: i, render: l, className: c, classNameArrow: d, variant: m = "dark", place: p = "top", offset: g = 10, wrapper: h = "div", children: v = null, events: x = ["hover"], openOnClick: A = !1, positionStrategy: y = "absolute", middlewares: E, delayShow: Z = 0, delayHide: M = 0, float: V = !1, hidden: O = !1, noArrow: C = !1, clickable: L = !1, closeOnEsc: F = !1, closeOnScroll: k = !1, closeOnResize: B = !1, openEvents: ne, closeEvents: oe, globalCloseEvents: re, imperativeModeOnly: ge = !1, style: le, position: j, isOpen: R, defaultIsOpen: K = !1, disableStyleInjection: te = !1, border: be, opacity: me, arrowColor: Ee, setIsOpen: Ie, afterShow: Be, afterHide: gt, disableTooltip: et, role: Le = "tooltip" }, ft) => {
|
|
29552
|
-
const [Te, xt] =
|
|
29552
|
+
const [Te, xt] = se(r), [bt, tt] = se(i), [q, Se] = se(p), [ke, xe] = se(m), [It, vt] = se(g), [Je, Ze] = se(Z), [nt, Nt] = se(M), [Xt, M0] = se(V), [Kt, pt] = se(O), [f0, c0] = se(h), [i0, k0] = se(x), [Y0, I0] = se(y), [cn, p0] = se(null), [St, Ht] = se(null), kt = ot(te), { anchorRefs: jt, activeAnchor: Yt } = vy(e), Rt = (Ft) => Ft == null ? void 0 : Ft.getAttributeNames().reduce((A0, He) => {
|
|
29553
29553
|
var it;
|
|
29554
29554
|
return He.startsWith("data-tooltip-") && (A0[He.replace(/^data-tooltip-/, "")] = (it = Ft == null ? void 0 : Ft.getAttribute(He)) !== null && it !== void 0 ? it : null), A0;
|
|
29555
29555
|
}, {}), Jt = (Ft) => {
|
|
@@ -30111,7 +30111,7 @@ function Yde(e) {
|
|
|
30111
30111
|
);
|
|
30112
30112
|
}
|
|
30113
30113
|
const Jde = Qc(
|
|
30114
|
-
async () => await import("./CodeEditorComponent-
|
|
30114
|
+
async () => await import("./CodeEditorComponent-Cru9Y-Qc.js").then((e) => ({
|
|
30115
30115
|
default: e.CodeEditor
|
|
30116
30116
|
}))
|
|
30117
30117
|
), _y = N(
|
|
@@ -30122,30 +30122,21 @@ function hhe({
|
|
|
30122
30122
|
name: e,
|
|
30123
30123
|
...t
|
|
30124
30124
|
}) {
|
|
30125
|
-
const { control: n } = a0(), r = jn(e)
|
|
30125
|
+
const { control: n } = a0(), r = jn(e);
|
|
30126
30126
|
return /* @__PURE__ */ u.jsx(
|
|
30127
30127
|
Xn,
|
|
30128
30128
|
{
|
|
30129
30129
|
name: e,
|
|
30130
30130
|
control: n,
|
|
30131
|
-
|
|
30132
|
-
validate: () => {
|
|
30133
|
-
var c, d;
|
|
30134
|
-
return i == null || i.length === 0 ? !0 : ((c = i[0]) == null ? void 0 : c.message.includes("Valid values: ")) === !0 ? "Value is not accepted." : (d = i[0]) == null ? void 0 : d.message;
|
|
30135
|
-
}
|
|
30136
|
-
},
|
|
30137
|
-
render: ({ field: c }) => /* @__PURE__ */ u.jsx(
|
|
30131
|
+
render: ({ field: i }) => /* @__PURE__ */ u.jsx(
|
|
30138
30132
|
_y,
|
|
30139
30133
|
{
|
|
30140
30134
|
...t,
|
|
30141
30135
|
name: e,
|
|
30142
30136
|
feedback: r,
|
|
30143
|
-
defaultValue:
|
|
30144
|
-
|
|
30145
|
-
l
|
|
30146
|
-
},
|
|
30147
|
-
onChange: (d) => {
|
|
30148
|
-
c.onChange(d);
|
|
30137
|
+
defaultValue: i.value,
|
|
30138
|
+
onChange: (l) => {
|
|
30139
|
+
i.onChange(l);
|
|
30149
30140
|
}
|
|
30150
30141
|
}
|
|
30151
30142
|
)
|
|
@@ -30167,7 +30158,7 @@ const bo = N(
|
|
|
30167
30158
|
inline: g,
|
|
30168
30159
|
...h
|
|
30169
30160
|
}, v) => {
|
|
30170
|
-
const [x, A] =
|
|
30161
|
+
const [x, A] = se(c), y = l != null ? x >= l : !1, E = i != null ? x <= i : !1, Z = ve(
|
|
30171
30162
|
(M) => {
|
|
30172
30163
|
isNaN(M) || i != null && M < i || l != null && M > l || (A(M), d(M));
|
|
30173
30164
|
},
|
|
@@ -30651,9 +30642,9 @@ var oa = function(e) {
|
|
|
30651
30642
|
disableAbbreviations: ge,
|
|
30652
30643
|
prefix: O || et.prefix,
|
|
30653
30644
|
transformRawValue: Ee
|
|
30654
|
-
}, bt =
|
|
30645
|
+
}, bt = se(function() {
|
|
30655
30646
|
return h != null ? Wr(Pt(Pt({}, Te), { decimalScale: V, value: String(h) })) : y != null ? Wr(Pt(Pt({}, Te), { decimalScale: V, value: String(y) })) : "";
|
|
30656
|
-
}), tt = bt[0], q = bt[1], Se =
|
|
30647
|
+
}), tt = bt[0], q = bt[1], Se = se(!1), ke = Se[0], xe = Se[1], It = se(0), vt = It[0], Je = It[1], Ze = se(0), nt = Ze[0], Nt = Ze[1], Xt = se(null), M0 = Xt[0], Kt = Xt[1], pt = ot(null);
|
|
30657
30648
|
rg(t, function() {
|
|
30658
30649
|
return pt.current;
|
|
30659
30650
|
});
|
|
@@ -30785,7 +30776,7 @@ const jl = N(
|
|
|
30785
30776
|
inline: h,
|
|
30786
30777
|
...v
|
|
30787
30778
|
}, x) => {
|
|
30788
|
-
const A = Ke(() => Ey(c), [c]), [y, E] =
|
|
30779
|
+
const A = Ke(() => Ey(c), [c]), [y, E] = se(
|
|
30789
30780
|
Y5({ cents: i, currency: A })
|
|
30790
30781
|
), Z = Ke(
|
|
30791
30782
|
() => A != null ? p8(A) : 0,
|
|
@@ -30927,7 +30918,7 @@ function Zy({
|
|
|
30927
30918
|
className: p,
|
|
30928
30919
|
feedback: g
|
|
30929
30920
|
}) {
|
|
30930
|
-
const [h, v] =
|
|
30921
|
+
const [h, v] = se(m), [x, A] = se([
|
|
30931
30922
|
e,
|
|
30932
30923
|
t
|
|
30933
30924
|
]), y = x[0], E = x[1], Z = ot(!0);
|
|
@@ -31021,7 +31012,7 @@ function Zy({
|
|
|
31021
31012
|
}
|
|
31022
31013
|
Zy.displayName = "InputCurrencyRange";
|
|
31023
31014
|
const gme = Qc(
|
|
31024
|
-
async () => await import("./InputDateComponent-
|
|
31015
|
+
async () => await import("./InputDateComponent-B9rTA3XE.js").then((e) => ({
|
|
31025
31016
|
default: e.InputDateComponent
|
|
31026
31017
|
}))
|
|
31027
31018
|
), Fl = N(
|
|
@@ -31234,7 +31225,7 @@ function yme({
|
|
|
31234
31225
|
hint: m,
|
|
31235
31226
|
...p
|
|
31236
31227
|
}) {
|
|
31237
|
-
const [g, h] =
|
|
31228
|
+
const [g, h] = se(""), [v, x] = se(d);
|
|
31238
31229
|
return ae(
|
|
31239
31230
|
function() {
|
|
31240
31231
|
if (x(void 0), fe(g)) {
|
|
@@ -31303,7 +31294,7 @@ const Vy = ze(
|
|
|
31303
31294
|
feedback: d,
|
|
31304
31295
|
hint: m
|
|
31305
31296
|
}) => {
|
|
31306
|
-
const [p, g] =
|
|
31297
|
+
const [p, g] = se(n);
|
|
31307
31298
|
return ae(
|
|
31308
31299
|
function() {
|
|
31309
31300
|
i(p);
|
|
@@ -32072,7 +32063,7 @@ const yfe = ({ children: e, variant: t, tableHeadings: n, isLoading: r, footer:
|
|
|
32072
32063
|
i
|
|
32073
32064
|
] });
|
|
32074
32065
|
function Oy(e) {
|
|
32075
|
-
const [t, n] =
|
|
32066
|
+
const [t, n] = se(e);
|
|
32076
32067
|
return {
|
|
32077
32068
|
values: t,
|
|
32078
32069
|
toggleValue: (i) => {
|
|
@@ -32125,7 +32116,7 @@ function _fe({
|
|
|
32125
32116
|
showCheckboxIcon: p = !0,
|
|
32126
32117
|
hideSelected: g = !1
|
|
32127
32118
|
}) {
|
|
32128
|
-
const { values: h, toggleValue: v } = Oy(e), [x, A] =
|
|
32119
|
+
const { values: h, toggleValue: v } = Oy(e), [x, A] = se({}), [y, E] = se(""), Z = Ke(() => e, []), M = h.length, { ResourceList: V } = $y({
|
|
32129
32120
|
type: l,
|
|
32130
32121
|
query: {
|
|
32131
32122
|
pageSize: 25,
|
|
@@ -32226,7 +32217,7 @@ const Afe = () => {
|
|
|
32226
32217
|
hideSelected: h = !1,
|
|
32227
32218
|
title: v
|
|
32228
32219
|
}) => {
|
|
32229
|
-
const { values: x, toggleValue: A, setValues: y } = Oy(e), E = x.length, [Z, M] =
|
|
32220
|
+
const { values: x, toggleValue: A, setValues: y } = Oy(e), E = x.length, [Z, M] = se(e), { list: V, isLoading: O, totalCount: C } = xfe({
|
|
32230
32221
|
resource: l,
|
|
32231
32222
|
limit: r,
|
|
32232
32223
|
fieldForValue: n,
|
|
@@ -32879,7 +32870,7 @@ const Dr = _e.string({
|
|
|
32879
32870
|
children: e,
|
|
32880
32871
|
columns: t
|
|
32881
32872
|
}) => /* @__PURE__ */ u.jsx(Ve, { bottom: "8", children: /* @__PURE__ */ u.jsx(py, { columns: t, children: e }) }), Lfe = ({ namePrefix: e }) => {
|
|
32882
|
-
const [t, n] =
|
|
32873
|
+
const [t, n] = se(), [r, i] = se(!1);
|
|
32883
32874
|
return ae(() => {
|
|
32884
32875
|
fetch("https://data.commercelayer.app/assets/lists/countries.json").then(async (l) => await l.json()).then((l) => {
|
|
32885
32876
|
n(l);
|
|
@@ -32898,7 +32889,7 @@ const Dr = _e.string({
|
|
|
32898
32889
|
t == null ? void 0 : t.length
|
|
32899
32890
|
);
|
|
32900
32891
|
}, Tfe = ({ namePrefix: e }) => {
|
|
32901
|
-
const [t, n] =
|
|
32892
|
+
const [t, n] = se(), { watch: r, setValue: i } = a0(), [l, c] = se(!1), d = r("country_code"), m = r("state_code"), p = ["US", "IT"];
|
|
32902
32893
|
return ae(() => {
|
|
32903
32894
|
d != null && p.includes(d) && fetch(
|
|
32904
32895
|
`https://data.commercelayer.app/assets/lists/states/${d}.json`
|
|
@@ -32932,7 +32923,7 @@ const Dr = _e.string({
|
|
|
32932
32923
|
resolver: io(
|
|
32933
32924
|
Ffe({ requiresBillingInfo: n })
|
|
32934
32925
|
)
|
|
32935
|
-
}), [d, m] =
|
|
32926
|
+
}), [d, m] = se(), { sdkClient: p } = ua();
|
|
32936
32927
|
return /* @__PURE__ */ u.jsxs(
|
|
32937
32928
|
Di,
|
|
32938
32929
|
{
|
|
@@ -33036,7 +33027,7 @@ const Dr = _e.string({
|
|
|
33036
33027
|
onCreate: c,
|
|
33037
33028
|
onUpdate: d
|
|
33038
33029
|
}) => {
|
|
33039
|
-
const [m, p] =
|
|
33030
|
+
const [m, p] = se(e), { canUser: g } = r0(), h = ve(
|
|
33040
33031
|
(y) => {
|
|
33041
33032
|
d == null || d(y), p(y);
|
|
33042
33033
|
},
|
|
@@ -33147,7 +33138,7 @@ const Dfe = _e.object({
|
|
|
33147
33138
|
reference: _e.string().nullable(),
|
|
33148
33139
|
reference_origin: _e.string().nullable()
|
|
33149
33140
|
}), Bfe = ze(({ resource: e, onUpdated: t }) => {
|
|
33150
|
-
const [n, r] =
|
|
33141
|
+
const [n, r] = se(void 0), { sdkClient: i } = ua(), l = Tl({
|
|
33151
33142
|
defaultValues: {
|
|
33152
33143
|
reference: e.reference,
|
|
33153
33144
|
reference_origin: e.reference_origin
|
|
@@ -33319,7 +33310,7 @@ function bhe(e) {
|
|
|
33319
33310
|
}[e];
|
|
33320
33311
|
}
|
|
33321
33312
|
const Wfe = ze(({ item: e, isLast: t, onChange: n, onSwap: r }) => {
|
|
33322
|
-
const { canUser: i } = r0(), { sdkClient: l } = ua(), [c, d] =
|
|
33313
|
+
const { canUser: i } = r0(), { sdkClient: l } = ua(), [c, d] = se(!1), m = e.type === "line_items" && i("update", "line_items"), p = m && e.type === "line_items" && i("destroy", "line_items"), g = p && r != null && e.type === "line_items" && i("create", "line_items"), h = g && t, v = /* @__PURE__ */ u.jsx(
|
|
33323
33314
|
hy,
|
|
33324
33315
|
{
|
|
33325
33316
|
"aria-label": "Delete",
|
|
@@ -34435,7 +34426,7 @@ const cpe = ({
|
|
|
34435
34426
|
);
|
|
34436
34427
|
}
|
|
34437
34428
|
), dpe = (e) => {
|
|
34438
|
-
const [t, n] =
|
|
34429
|
+
const [t, n] = se(e.id), {
|
|
34439
34430
|
canAccess: r,
|
|
34440
34431
|
settings: { mode: i }
|
|
34441
34432
|
} = r0(), [l, c] = Ll((p, g) => {
|
|
@@ -34766,7 +34757,7 @@ const cpe = ({
|
|
|
34766
34757
|
variant: n = "boxed"
|
|
34767
34758
|
}) => {
|
|
34768
34759
|
var p, g, h, v;
|
|
34769
|
-
const [r, i] =
|
|
34760
|
+
const [r, i] = se(!1), l = mpe.safeParse(
|
|
34770
34761
|
(p = e.payment_source) == null ? void 0 : p.payment_instrument
|
|
34771
34762
|
), c = "payment_method" in e ? (g = e.payment_method) == null ? void 0 : g.name : e.type === "customer_payment_sources" ? ppe(e) : void 0, d = fpe(
|
|
34772
34763
|
((h = e.payment_method) == null ? void 0 : h.payment_source_type) ?? ((v = e.payment_source) == null ? void 0 : v.type)
|
|
@@ -35275,7 +35266,7 @@ const Vpe = /* @__PURE__ */ o0(Hpe);
|
|
|
35275
35266
|
function Mpe({
|
|
35276
35267
|
item: e
|
|
35277
35268
|
}) {
|
|
35278
|
-
const { control: t } = a0(), n = e.sdk.predicate, { sdkClient: r } = ua(), [i, l] =
|
|
35269
|
+
const { control: t } = a0(), n = e.sdk.predicate, { sdkClient: r } = ua(), [i, l] = se();
|
|
35279
35270
|
return ae(() => {
|
|
35280
35271
|
Cpe({ sdkClient: r }).then(l);
|
|
35281
35272
|
}, []), i == null ? /* @__PURE__ */ u.jsx(u.Fragment, {}) : /* @__PURE__ */ u.jsx(
|
|
@@ -36841,7 +36832,7 @@ function Zhe({
|
|
|
36841
36832
|
instructions: e,
|
|
36842
36833
|
predicateWhitelist: t = []
|
|
36843
36834
|
}) {
|
|
36844
|
-
const { user: n } = r0(), [r, i] =
|
|
36835
|
+
const { user: n } = r0(), [r, i] = se(), l = window.location.search, c = yo({
|
|
36845
36836
|
instructions: e,
|
|
36846
36837
|
predicateWhitelist: t
|
|
36847
36838
|
}), { validInstructions: d } = c, m = Ke(() => c.adaptUrlQueryToFormValues({
|