frame.identify 0.5.1 → 0.5.2
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/frame.identify.js
CHANGED
|
@@ -4333,12 +4333,12 @@ process.env.NODE_ENV !== "production" && (Mo.propTypes = {
|
|
|
4333
4333
|
});
|
|
4334
4334
|
//#endregion
|
|
4335
4335
|
//#region src/state/machine.ts
|
|
4336
|
-
var No = "idle", Po = "Image loaded", Fo = "Values defined", Io = "Image cropped", Lo = "X-axis started", Ro = "X-axis finished", zo = "Points defined", Bo = "Shape defined", Vo = "Trademark defined", Ho = "
|
|
4336
|
+
var No = "idle", Po = "Image loaded", Fo = "Values defined", Io = "Image cropped", Lo = "X-axis started", Ro = "X-axis finished", zo = "Points defined", Bo = "Shape defined", Vo = "Trademark defined", Ho = "Finished", Uo = "FINISH", Wo = "RESET", Go = "LOAD_IMAGE", Ko = "ENTER_VALUES", qo = "CROP", Jo = "SKIP_CROP", Yo = "UNDO_CROP", Xo = "START_X_AXIS", Zo = "FINISH_X_AXIS", Qo = "UNDO_X_AXIS", $o = "ADD_POINT", es = "DEFINE_TRADEMARK", ts = "FINISH_POINTS", ns = "UNDO_SHAPE", rs = "UNDO_TRADEMARK", is = "UNDO_FINISH", as = "define values", os = E({
|
|
4337
4337
|
types: { context: {} },
|
|
4338
4338
|
actions: {
|
|
4339
4339
|
"reset rotation angle": T({ rotationAngle: 0 }),
|
|
4340
4340
|
"define rotation angle": T({ rotationAngle: ({ context: e, event: t }) => (t && t.type === "FINISH_X_AXIS" && (e.rotationAngle = t.rotationAngle), e.rotationAngle) }),
|
|
4341
|
-
[
|
|
4341
|
+
[as]: T({
|
|
4342
4342
|
SL: ({ event: e }) => e.type === "ENTER_VALUES" ? e.SL : 0,
|
|
4343
4343
|
SH: ({ event: e }) => e.type === "ENTER_VALUES" ? e.SH : 0,
|
|
4344
4344
|
AZG: ({ event: e }) => e.type === "ENTER_VALUES" ? e.AZG : 0
|
|
@@ -4349,55 +4349,64 @@ var No = "idle", Po = "Image loaded", Fo = "Values defined", Io = "Image cropped
|
|
|
4349
4349
|
context: { rotationAngle: 0 },
|
|
4350
4350
|
initial: No,
|
|
4351
4351
|
states: {
|
|
4352
|
-
[No]: { on: { [
|
|
4352
|
+
[No]: { on: { [Go]: Po } },
|
|
4353
4353
|
[Po]: { on: {
|
|
4354
|
-
[
|
|
4355
|
-
[
|
|
4356
|
-
actions: [{ type:
|
|
4354
|
+
[Wo]: No,
|
|
4355
|
+
[Ko]: {
|
|
4356
|
+
actions: [{ type: as }],
|
|
4357
4357
|
target: Fo
|
|
4358
4358
|
}
|
|
4359
4359
|
} },
|
|
4360
4360
|
[Fo]: { on: {
|
|
4361
|
-
[
|
|
4362
|
-
[
|
|
4363
|
-
[
|
|
4361
|
+
[Wo]: No,
|
|
4362
|
+
[qo]: Io,
|
|
4363
|
+
[Jo]: Io
|
|
4364
4364
|
} },
|
|
4365
4365
|
[Io]: { on: {
|
|
4366
|
-
[
|
|
4367
|
-
[
|
|
4368
|
-
[
|
|
4366
|
+
[Wo]: No,
|
|
4367
|
+
[Yo]: Po,
|
|
4368
|
+
[Xo]: Lo
|
|
4369
4369
|
} },
|
|
4370
4370
|
[Lo]: { on: {
|
|
4371
|
-
[
|
|
4372
|
-
[
|
|
4373
|
-
[
|
|
4371
|
+
[Wo]: No,
|
|
4372
|
+
[Qo]: Io,
|
|
4373
|
+
[Zo]: {
|
|
4374
4374
|
actions: [{ type: "define rotation angle" }],
|
|
4375
4375
|
target: Ro
|
|
4376
4376
|
}
|
|
4377
4377
|
} },
|
|
4378
4378
|
[Ro]: { on: {
|
|
4379
|
-
[
|
|
4380
|
-
[
|
|
4379
|
+
[Wo]: No,
|
|
4380
|
+
[Qo]: {
|
|
4381
4381
|
actions: [{ type: "reset rotation angle" }],
|
|
4382
4382
|
target: Lo
|
|
4383
4383
|
},
|
|
4384
|
-
[
|
|
4384
|
+
[$o]: zo
|
|
4385
4385
|
} },
|
|
4386
4386
|
[zo]: { on: {
|
|
4387
|
-
[
|
|
4388
|
-
[
|
|
4389
|
-
[
|
|
4387
|
+
[$o]: zo,
|
|
4388
|
+
[Wo]: No,
|
|
4389
|
+
[ts]: Bo
|
|
4390
4390
|
} },
|
|
4391
4391
|
[Bo]: { on: {
|
|
4392
|
-
[
|
|
4393
|
-
[
|
|
4392
|
+
[Wo]: No,
|
|
4393
|
+
[ns]: zo,
|
|
4394
|
+
[es]: Vo,
|
|
4395
|
+
[Uo]: Ho
|
|
4394
4396
|
} },
|
|
4395
|
-
[Vo]: { on: {
|
|
4397
|
+
[Vo]: { on: {
|
|
4398
|
+
[rs]: zo,
|
|
4399
|
+
[Uo]: Ho
|
|
4400
|
+
} },
|
|
4401
|
+
[Ho]: { on: {
|
|
4402
|
+
[is]: Vo,
|
|
4403
|
+
[Wo]: No
|
|
4404
|
+
} }
|
|
4396
4405
|
}
|
|
4397
4406
|
});
|
|
4398
4407
|
//#endregion
|
|
4399
4408
|
//#region src/MachineState.tsx
|
|
4400
|
-
function
|
|
4409
|
+
function ss(e) {
|
|
4401
4410
|
let { t } = h(), n, r = e.actor.getSnapshot();
|
|
4402
4411
|
switch (r.value) {
|
|
4403
4412
|
case No:
|
|
@@ -4424,6 +4433,9 @@ function ns(e) {
|
|
|
4424
4433
|
case Bo:
|
|
4425
4434
|
n = t("main.identify.finish", { defaultValue: "Please define a trademark" });
|
|
4426
4435
|
break;
|
|
4436
|
+
case Vo:
|
|
4437
|
+
n = t("main.identify.trademarkDefined", { defaultValue: "trademark is now defined" });
|
|
4438
|
+
break;
|
|
4427
4439
|
default: n = t("main.identify.unknownState", {
|
|
4428
4440
|
defaultValue: "unknown state: {{value}}",
|
|
4429
4441
|
value: r.value
|
|
@@ -4450,7 +4462,7 @@ function ns(e) {
|
|
|
4450
4462
|
}
|
|
4451
4463
|
//#endregion
|
|
4452
4464
|
//#region node_modules/frame.theme/dist/frame.theme.js
|
|
4453
|
-
function
|
|
4465
|
+
function cs(e) {
|
|
4454
4466
|
let t = w(), [n, i] = o(""), s = a(null), { t: l } = h(), u = (e, t, n) => {
|
|
4455
4467
|
let r = parseFloat(e);
|
|
4456
4468
|
i(isNaN(r) ? l("main.identify.error.validNumber", { field: t }) : r < 0 ? l("main.identify.error.positive", { field: t }) : r === 0 ? l("main.identify.error.notNull", { field: t }) : n !== void 0 && r > n ? l("main.identify.error.notGreaterThan", {
|
|
@@ -4511,7 +4523,7 @@ function rs(e) {
|
|
|
4511
4523
|
}
|
|
4512
4524
|
//#endregion
|
|
4513
4525
|
//#region src/EnterValues.tsx
|
|
4514
|
-
function
|
|
4526
|
+
function ls(e) {
|
|
4515
4527
|
let [t, n] = o(e.testMode ? "50" : ""), [r, i] = o(e.testMode ? "44" : ""), [a, u] = o(e.testMode ? "15" : ""), d = D(e.actor, (e) => e), f = (e, t, n, r) => {
|
|
4516
4528
|
let i = parseFloat(t);
|
|
4517
4529
|
n(isNaN(i) ? v("main.identify.error.validNumber", { field: e }) : i <= 0 ? v("main.identify.error.positive", { field: e }) : i > r ? v("main.identify.error.notGreaterThan", {
|
|
@@ -4530,7 +4542,7 @@ function is(e) {
|
|
|
4530
4542
|
};
|
|
4531
4543
|
function m(t, n, r) {
|
|
4532
4544
|
e.actor.send({
|
|
4533
|
-
type:
|
|
4545
|
+
type: Ko,
|
|
4534
4546
|
SL: Number(t),
|
|
4535
4547
|
SH: Number(n),
|
|
4536
4548
|
AZG: Number(r)
|
|
@@ -4554,7 +4566,7 @@ function is(e) {
|
|
|
4554
4566
|
gap: 2
|
|
4555
4567
|
},
|
|
4556
4568
|
children: [
|
|
4557
|
-
/* @__PURE__ */ c(
|
|
4569
|
+
/* @__PURE__ */ c(cs, {
|
|
4558
4570
|
value: t,
|
|
4559
4571
|
onChange: n,
|
|
4560
4572
|
checkValue: (e, t) => f("SL", e, t, 80),
|
|
@@ -4562,14 +4574,14 @@ function is(e) {
|
|
|
4562
4574
|
dataTestid: "scheibenlaenge-input",
|
|
4563
4575
|
autofocus: !0
|
|
4564
4576
|
}),
|
|
4565
|
-
/* @__PURE__ */ c(
|
|
4577
|
+
/* @__PURE__ */ c(cs, {
|
|
4566
4578
|
value: r,
|
|
4567
4579
|
checkValue: (e, t) => f("SH", e, t, 60),
|
|
4568
4580
|
onChange: i,
|
|
4569
4581
|
label: v("main.identify.label.scheibenhoehe", { defaultValue: "box height" }),
|
|
4570
4582
|
dataTestid: "scheibenhoehe-input"
|
|
4571
4583
|
}),
|
|
4572
|
-
/* @__PURE__ */ c(
|
|
4584
|
+
/* @__PURE__ */ c(cs, {
|
|
4573
4585
|
value: a,
|
|
4574
4586
|
checkValue: (e, t) => f("AzG", e, t, 40),
|
|
4575
4587
|
onChange: u,
|
|
@@ -4591,7 +4603,7 @@ function is(e) {
|
|
|
4591
4603
|
}
|
|
4592
4604
|
//#endregion
|
|
4593
4605
|
//#region src/ModalImageLoaded.tsx
|
|
4594
|
-
function
|
|
4606
|
+
function us(e) {
|
|
4595
4607
|
let t = a(null), n = a(null), i = a(null), [s, u] = o(!1), d = a(null), [f, p] = o(null), [m, v] = o(0), b = w(), { t: x } = h(), S = D(e.actor, (e) => e), C = e.actor.getSnapshot();
|
|
4596
4608
|
r(() => {}, [e.actor]);
|
|
4597
4609
|
function T(r) {
|
|
@@ -4599,7 +4611,7 @@ function as(e) {
|
|
|
4599
4611
|
i.onload = () => {
|
|
4600
4612
|
let e = t.current;
|
|
4601
4613
|
e && (e.width = i.naturalWidth, e.height = i.naturalHeight, e.getContext("2d")?.drawImage(i, 0, 0), n.current = i);
|
|
4602
|
-
}, i.src = r, e.actor.send({ type:
|
|
4614
|
+
}, i.src = r, e.actor.send({ type: Go });
|
|
4603
4615
|
}
|
|
4604
4616
|
function E(e) {
|
|
4605
4617
|
let t = e.target.files?.[0];
|
|
@@ -4644,13 +4656,13 @@ function as(e) {
|
|
|
4644
4656
|
let r = O(n, e), { x: i, y: a } = d.current;
|
|
4645
4657
|
d.current = null;
|
|
4646
4658
|
let o = Math.min(i, r.x), s = Math.min(a, r.y), c = Math.abs(r.x - i), l = Math.abs(r.y - a);
|
|
4647
|
-
k(), !(c < 2 || l < 2) && ee(c, l, o, s,
|
|
4659
|
+
k(), !(c < 2 || l < 2) && ee(c, l, o, s, qo);
|
|
4648
4660
|
}
|
|
4649
4661
|
function N() {
|
|
4650
4662
|
k();
|
|
4651
4663
|
}
|
|
4652
4664
|
function P() {
|
|
4653
|
-
e.actor.send({ type:
|
|
4665
|
+
e.actor.send({ type: Wo });
|
|
4654
4666
|
let t = C.context.SL ?? 0, n = C.context.SH ?? 0, r = C.context.AZG ?? 0;
|
|
4655
4667
|
e.onAfterCloseModal(t, n, r, 0, [], [])();
|
|
4656
4668
|
}
|
|
@@ -4681,7 +4693,7 @@ function as(e) {
|
|
|
4681
4693
|
backgroundColor: b.palette.primary.light
|
|
4682
4694
|
},
|
|
4683
4695
|
children: [
|
|
4684
|
-
f && /* @__PURE__ */ c(
|
|
4696
|
+
f && /* @__PURE__ */ c(Uc, {
|
|
4685
4697
|
actor: e.actor,
|
|
4686
4698
|
dataUrl: f,
|
|
4687
4699
|
modalIsOpen: s,
|
|
@@ -4691,11 +4703,11 @@ function as(e) {
|
|
|
4691
4703
|
},
|
|
4692
4704
|
testMode: e.testMode
|
|
4693
4705
|
}, m),
|
|
4694
|
-
/* @__PURE__ */ c(
|
|
4706
|
+
/* @__PURE__ */ c(ss, {
|
|
4695
4707
|
actor: e.actor,
|
|
4696
4708
|
testMode: e.testMode
|
|
4697
4709
|
}),
|
|
4698
|
-
C.value === "Image loaded" && /* @__PURE__ */ c(
|
|
4710
|
+
C.value === "Image loaded" && /* @__PURE__ */ c(ls, {
|
|
4699
4711
|
actor: e.actor,
|
|
4700
4712
|
testMode: e.testMode
|
|
4701
4713
|
}),
|
|
@@ -4758,23 +4770,23 @@ function as(e) {
|
|
|
4758
4770
|
}
|
|
4759
4771
|
//#endregion
|
|
4760
4772
|
//#region node_modules/@mui/material/utils/capitalize.mjs
|
|
4761
|
-
var
|
|
4773
|
+
var ds = tt, fs = Vr, ps = xo, ms = H.default.oneOfType([H.default.func, H.default.object]);
|
|
4762
4774
|
//#endregion
|
|
4763
4775
|
//#region node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.mjs
|
|
4764
|
-
function
|
|
4776
|
+
function hs(e) {
|
|
4765
4777
|
let { prototype: t = {} } = e;
|
|
4766
4778
|
return !!t.isReactComponent;
|
|
4767
4779
|
}
|
|
4768
|
-
function
|
|
4780
|
+
function gs(t, n, r, i, a) {
|
|
4769
4781
|
let o = t[n], s = a || n;
|
|
4770
4782
|
if (o == null || typeof window > "u") return null;
|
|
4771
4783
|
let c;
|
|
4772
|
-
return typeof o == "function" && !
|
|
4784
|
+
return typeof o == "function" && !hs(o) && (c = "Did you accidentally provide a plain function component instead?"), o === e.Fragment && (c = "Did you accidentally provide a React.Fragment instead?"), c === void 0 ? null : /* @__PURE__ */ Error(`Invalid ${i} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`);
|
|
4773
4785
|
}
|
|
4774
|
-
var
|
|
4786
|
+
var _s = ye(H.default.elementType, gs);
|
|
4775
4787
|
//#endregion
|
|
4776
4788
|
//#region node_modules/@mui/utils/isFocusVisible/isFocusVisible.mjs
|
|
4777
|
-
function
|
|
4789
|
+
function vs(e) {
|
|
4778
4790
|
try {
|
|
4779
4791
|
return e.matches(":focus-visible");
|
|
4780
4792
|
} catch {
|
|
@@ -4784,7 +4796,7 @@ function ps(e) {
|
|
|
4784
4796
|
}
|
|
4785
4797
|
//#endregion
|
|
4786
4798
|
//#region node_modules/@mui/material/utils/useFocusableWhenDisabled.mjs
|
|
4787
|
-
function
|
|
4799
|
+
function ys(t) {
|
|
4788
4800
|
let { focusableWhenDisabled: n, disabled: r, composite: i = !1, tabIndex: a = 0, isNativeButton: o } = t, s = i && n !== !1, c = i && n === !1;
|
|
4789
4801
|
return e.useMemo(() => {
|
|
4790
4802
|
let e = { onKeyDown(e) {
|
|
@@ -4803,9 +4815,9 @@ function ms(t) {
|
|
|
4803
4815
|
}
|
|
4804
4816
|
//#endregion
|
|
4805
4817
|
//#region node_modules/@mui/material/ButtonBase/useButtonBase.mjs
|
|
4806
|
-
var
|
|
4807
|
-
function
|
|
4808
|
-
let { nativeButton: n, nativeButtonProp: r, internalNativeButton: i = n, allowInferredHostMismatch: a = !1, disabled: o, type: s, hasFormAction: c = !1, tabIndex: l = 0, focusableWhenDisabled: u, stopEventPropagation: d = !1, onBeforeKeyDown: f, onBeforeKeyUp: p } = t, m = e.useRef(null), h = u === !0, g =
|
|
4818
|
+
var bs = {};
|
|
4819
|
+
function xs(t) {
|
|
4820
|
+
let { nativeButton: n, nativeButtonProp: r, internalNativeButton: i = n, allowInferredHostMismatch: a = !1, disabled: o, type: s, hasFormAction: c = !1, tabIndex: l = 0, focusableWhenDisabled: u, stopEventPropagation: d = !1, onBeforeKeyDown: f, onBeforeKeyUp: p } = t, m = e.useRef(null), h = u === !0, g = ys({
|
|
4809
4821
|
focusableWhenDisabled: h,
|
|
4810
4822
|
disabled: o,
|
|
4811
4823
|
isNativeButton: n,
|
|
@@ -4844,7 +4856,7 @@ function gs(t) {
|
|
|
4844
4856
|
s
|
|
4845
4857
|
]);
|
|
4846
4858
|
return {
|
|
4847
|
-
getButtonProps: e.useCallback((e =
|
|
4859
|
+
getButtonProps: e.useCallback((e = bs) => {
|
|
4848
4860
|
let { onClick: t, onKeyDown: n, onKeyUp: r, ...i } = e, a = (e) => {
|
|
4849
4861
|
if (d && e.stopPropagation(), o) {
|
|
4850
4862
|
e.preventDefault();
|
|
@@ -4884,36 +4896,36 @@ function gs(t) {
|
|
|
4884
4896
|
}
|
|
4885
4897
|
//#endregion
|
|
4886
4898
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
|
|
4887
|
-
function
|
|
4899
|
+
function Ss(e) {
|
|
4888
4900
|
"@babel/helpers - typeof";
|
|
4889
|
-
return
|
|
4901
|
+
return Ss = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4890
4902
|
return typeof e;
|
|
4891
4903
|
} : function(e) {
|
|
4892
4904
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4893
|
-
},
|
|
4905
|
+
}, Ss(e);
|
|
4894
4906
|
}
|
|
4895
4907
|
//#endregion
|
|
4896
4908
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
|
|
4897
|
-
function
|
|
4898
|
-
if (
|
|
4909
|
+
function Cs(e, t) {
|
|
4910
|
+
if (Ss(e) != "object" || !e) return e;
|
|
4899
4911
|
var n = e[Symbol.toPrimitive];
|
|
4900
4912
|
if (n !== void 0) {
|
|
4901
4913
|
var r = n.call(e, t || "default");
|
|
4902
|
-
if (
|
|
4914
|
+
if (Ss(r) != "object") return r;
|
|
4903
4915
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
4904
4916
|
}
|
|
4905
4917
|
return (t === "string" ? String : Number)(e);
|
|
4906
4918
|
}
|
|
4907
4919
|
//#endregion
|
|
4908
4920
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
|
|
4909
|
-
function
|
|
4910
|
-
var t =
|
|
4911
|
-
return
|
|
4921
|
+
function ws(e) {
|
|
4922
|
+
var t = Cs(e, "string");
|
|
4923
|
+
return Ss(t) == "symbol" ? t : t + "";
|
|
4912
4924
|
}
|
|
4913
4925
|
//#endregion
|
|
4914
4926
|
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
|
|
4915
|
-
function
|
|
4916
|
-
return (t =
|
|
4927
|
+
function Ts(e, t, n) {
|
|
4928
|
+
return (t = ws(t)) in e ? Object.defineProperty(e, t, {
|
|
4917
4929
|
value: n,
|
|
4918
4930
|
enumerable: !0,
|
|
4919
4931
|
configurable: !0,
|
|
@@ -4922,7 +4934,7 @@ function bs(e, t, n) {
|
|
|
4922
4934
|
}
|
|
4923
4935
|
//#endregion
|
|
4924
4936
|
//#region node_modules/@mui/material/useLazyRipple/useLazyRipple.mjs
|
|
4925
|
-
var
|
|
4937
|
+
var Es = class t {
|
|
4926
4938
|
static create() {
|
|
4927
4939
|
return new t();
|
|
4928
4940
|
}
|
|
@@ -4931,12 +4943,12 @@ var xs = class t {
|
|
|
4931
4943
|
return n.shouldMount = r, n.setShouldMount = i, e.useEffect(n.mountEffect, [r]), n;
|
|
4932
4944
|
}
|
|
4933
4945
|
constructor() {
|
|
4934
|
-
|
|
4946
|
+
Ts(this, "mountEffect", () => {
|
|
4935
4947
|
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
4936
4948
|
}), this.ref = { current: null }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
4937
4949
|
}
|
|
4938
4950
|
mount() {
|
|
4939
|
-
return this.mounted || (this.mounted =
|
|
4951
|
+
return this.mounted || (this.mounted = Os(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
4940
4952
|
}
|
|
4941
4953
|
start(...e) {
|
|
4942
4954
|
this.mount().then(() => this.ref.current?.start(...e));
|
|
@@ -4948,10 +4960,10 @@ var xs = class t {
|
|
|
4948
4960
|
this.mount().then(() => this.ref.current?.pulsate(...e));
|
|
4949
4961
|
}
|
|
4950
4962
|
};
|
|
4951
|
-
function
|
|
4952
|
-
return
|
|
4963
|
+
function Ds() {
|
|
4964
|
+
return Es.use();
|
|
4953
4965
|
}
|
|
4954
|
-
function
|
|
4966
|
+
function Os() {
|
|
4955
4967
|
let e, t, n = new Promise((n, r) => {
|
|
4956
4968
|
e = n, t = r;
|
|
4957
4969
|
});
|
|
@@ -4959,17 +4971,17 @@ function Cs() {
|
|
|
4959
4971
|
}
|
|
4960
4972
|
//#endregion
|
|
4961
4973
|
//#region node_modules/@mui/utils/useOnMount/useOnMount.mjs
|
|
4962
|
-
var
|
|
4963
|
-
function
|
|
4964
|
-
e.useEffect(t,
|
|
4974
|
+
var ks = [];
|
|
4975
|
+
function As(t) {
|
|
4976
|
+
e.useEffect(t, ks);
|
|
4965
4977
|
}
|
|
4966
4978
|
//#endregion
|
|
4967
4979
|
//#region node_modules/@mui/utils/useTimeout/useTimeout.mjs
|
|
4968
|
-
var
|
|
4980
|
+
var js = class e {
|
|
4969
4981
|
constructor() {
|
|
4970
|
-
|
|
4982
|
+
Ts(this, "currentId", null), Ts(this, "clear", () => {
|
|
4971
4983
|
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
4972
|
-
}),
|
|
4984
|
+
}), Ts(this, "disposeEffect", () => this.clear);
|
|
4973
4985
|
}
|
|
4974
4986
|
static create() {
|
|
4975
4987
|
return new e();
|
|
@@ -4980,14 +4992,14 @@ var Es = class e {
|
|
|
4980
4992
|
}, e);
|
|
4981
4993
|
}
|
|
4982
4994
|
};
|
|
4983
|
-
function
|
|
4984
|
-
let e = Ia(
|
|
4985
|
-
return
|
|
4995
|
+
function Ms() {
|
|
4996
|
+
let e = Ia(js.create).current;
|
|
4997
|
+
return As(e.disposeEffect), e;
|
|
4986
4998
|
}
|
|
4987
4999
|
//#endregion
|
|
4988
5000
|
//#region node_modules/@mui/material/ButtonBase/Ripple.mjs
|
|
4989
|
-
function
|
|
4990
|
-
let { className: n, classes: r, pulsate: i = !1, rippleX: a, rippleY: o, rippleSize: s, in: l, onExited: u, timeout: d } = t, [f, p] = e.useState(!1), m =
|
|
5001
|
+
function Ns(t) {
|
|
5002
|
+
let { className: n, classes: r, pulsate: i = !1, rippleX: a, rippleY: o, rippleSize: s, in: l, onExited: u, timeout: d } = t, [f, p] = e.useState(!1), m = Ms(), h = e.useRef(!1), g = e.useRef(u);
|
|
4991
5003
|
g.current = u;
|
|
4992
5004
|
let _ = u != null, v = V(n, r.ripple, r.rippleVisible, i && r.ripplePulsate), y = {
|
|
4993
5005
|
width: s,
|
|
@@ -5010,7 +5022,7 @@ function Os(t) {
|
|
|
5010
5022
|
children: /*#__PURE__*/ c("span", { className: b })
|
|
5011
5023
|
});
|
|
5012
5024
|
}
|
|
5013
|
-
process.env.NODE_ENV !== "production" && (
|
|
5025
|
+
process.env.NODE_ENV !== "production" && (Ns.propTypes = {
|
|
5014
5026
|
classes: H.default.object.isRequired,
|
|
5015
5027
|
className: H.default.string,
|
|
5016
5028
|
in: H.default.bool,
|
|
@@ -5031,8 +5043,8 @@ var $ = tr("MuiTouchRipple", [
|
|
|
5031
5043
|
"child",
|
|
5032
5044
|
"childLeaving",
|
|
5033
5045
|
"childPulsate"
|
|
5034
|
-
]),
|
|
5035
|
-
function
|
|
5046
|
+
]), Ps = 550, Fs = {}, Is = [], Ls = () => {};
|
|
5047
|
+
function Rs(e, t) {
|
|
5036
5048
|
let n = new Set(t), r = /* @__PURE__ */ new Map(), i = [];
|
|
5037
5049
|
for (let t of e) n.has(t) ? i.length > 0 && (r.set(t, i), i = []) : i.push(t);
|
|
5038
5050
|
let a = [];
|
|
@@ -5042,7 +5054,7 @@ function Ns(e, t) {
|
|
|
5042
5054
|
}
|
|
5043
5055
|
return a.push(...i), a;
|
|
5044
5056
|
}
|
|
5045
|
-
function
|
|
5057
|
+
function zs({ event: e, element: t, center: n }) {
|
|
5046
5058
|
let r = t ? t.getBoundingClientRect() : {
|
|
5047
5059
|
width: 0,
|
|
5048
5060
|
height: 0,
|
|
@@ -5066,7 +5078,7 @@ function Ps({ event: e, element: t, center: n }) {
|
|
|
5066
5078
|
rippleSize: o
|
|
5067
5079
|
};
|
|
5068
5080
|
}
|
|
5069
|
-
var
|
|
5081
|
+
var Bs = m`
|
|
5070
5082
|
0% {
|
|
5071
5083
|
transform: scale(0);
|
|
5072
5084
|
opacity: 0.1;
|
|
@@ -5076,7 +5088,7 @@ var Fs = m`
|
|
|
5076
5088
|
transform: scale(1);
|
|
5077
5089
|
opacity: 0.3;
|
|
5078
5090
|
}
|
|
5079
|
-
`,
|
|
5091
|
+
`, Vs = m`
|
|
5080
5092
|
0% {
|
|
5081
5093
|
opacity: 1;
|
|
5082
5094
|
}
|
|
@@ -5084,7 +5096,7 @@ var Fs = m`
|
|
|
5084
5096
|
100% {
|
|
5085
5097
|
opacity: 0;
|
|
5086
5098
|
}
|
|
5087
|
-
`,
|
|
5099
|
+
`, Hs = m`
|
|
5088
5100
|
0% {
|
|
5089
5101
|
transform: scale(1);
|
|
5090
5102
|
}
|
|
@@ -5097,12 +5109,12 @@ var Fs = m`
|
|
|
5097
5109
|
transform: scale(1);
|
|
5098
5110
|
}
|
|
5099
5111
|
`;
|
|
5100
|
-
function
|
|
5112
|
+
function Us(e) {
|
|
5101
5113
|
if (e.motion.reducedMotion === "always") return null;
|
|
5102
5114
|
let t = p`
|
|
5103
5115
|
&.${$.rippleVisible} {
|
|
5104
|
-
animation-name: ${
|
|
5105
|
-
animation-duration: ${
|
|
5116
|
+
animation-name: ${Bs};
|
|
5117
|
+
animation-duration: ${Ps}ms;
|
|
5106
5118
|
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
5107
5119
|
}
|
|
5108
5120
|
|
|
@@ -5111,13 +5123,13 @@ function Rs(e) {
|
|
|
5111
5123
|
}
|
|
5112
5124
|
|
|
5113
5125
|
& .${$.childLeaving} {
|
|
5114
|
-
animation-name: ${
|
|
5115
|
-
animation-duration: ${
|
|
5126
|
+
animation-name: ${Vs};
|
|
5127
|
+
animation-duration: ${Ps}ms;
|
|
5116
5128
|
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
5117
5129
|
}
|
|
5118
5130
|
|
|
5119
5131
|
& .${$.childPulsate} {
|
|
5120
|
-
animation-name: ${
|
|
5132
|
+
animation-name: ${Hs};
|
|
5121
5133
|
animation-duration: 2500ms;
|
|
5122
5134
|
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
5123
5135
|
animation-iteration-count: infinite;
|
|
@@ -5130,7 +5142,7 @@ function Rs(e) {
|
|
|
5130
5142
|
}
|
|
5131
5143
|
` : t;
|
|
5132
5144
|
}
|
|
5133
|
-
var
|
|
5145
|
+
var Ws = Q("span", {
|
|
5134
5146
|
name: "MuiTouchRipple",
|
|
5135
5147
|
slot: "Root"
|
|
5136
5148
|
})({
|
|
@@ -5143,7 +5155,7 @@ var zs = Q("span", {
|
|
|
5143
5155
|
bottom: 0,
|
|
5144
5156
|
left: 0,
|
|
5145
5157
|
borderRadius: "inherit"
|
|
5146
|
-
}),
|
|
5158
|
+
}), Gs = Q(Ns, {
|
|
5147
5159
|
name: "MuiTouchRipple",
|
|
5148
5160
|
slot: "Ripple"
|
|
5149
5161
|
})`
|
|
@@ -5183,29 +5195,29 @@ var zs = Q("span", {
|
|
|
5183
5195
|
top: 0;
|
|
5184
5196
|
}
|
|
5185
5197
|
|
|
5186
|
-
${({ theme: e }) =>
|
|
5187
|
-
`,
|
|
5198
|
+
${({ theme: e }) => Us(e)}
|
|
5199
|
+
`, Ks = /*#__PURE__*/ e.forwardRef(function(t, n) {
|
|
5188
5200
|
let r = Ea({
|
|
5189
5201
|
props: t,
|
|
5190
5202
|
name: "MuiTouchRipple"
|
|
5191
|
-
}), i = fo(Sa().motion.reducedMotion, !1), { center: a = !1, classes: o =
|
|
5192
|
-
items:
|
|
5193
|
-
order:
|
|
5203
|
+
}), i = fo(Sa().motion.reducedMotion, !1), { center: a = !1, classes: o = Fs, className: s, ...l } = r, [u, d] = e.useState({
|
|
5204
|
+
items: Is,
|
|
5205
|
+
order: Is
|
|
5194
5206
|
}), f = u.items, p = e.useRef(0), m = e.useRef(null), h = e.useRef(!1);
|
|
5195
|
-
|
|
5207
|
+
As(() => (h.current = !0, () => {
|
|
5196
5208
|
h.current = !1;
|
|
5197
5209
|
})), e.useEffect(() => {
|
|
5198
5210
|
m.current && (m.current(), m.current = null);
|
|
5199
5211
|
}, [f]);
|
|
5200
|
-
let g = e.useRef(!1), _ =
|
|
5212
|
+
let g = e.useRef(!1), _ = Ms(), v = e.useRef(null), y = e.useRef(null), b = ps((e) => {
|
|
5201
5213
|
h.current && d((t) => {
|
|
5202
5214
|
let n = t.items.filter((t) => t.key !== e);
|
|
5203
5215
|
return {
|
|
5204
5216
|
items: n,
|
|
5205
|
-
order:
|
|
5217
|
+
order: Rs(t.order.filter((t) => t !== e), n.filter((e) => !e.exiting).map((e) => e.key))
|
|
5206
5218
|
};
|
|
5207
5219
|
});
|
|
5208
|
-
}), x =
|
|
5220
|
+
}), x = ps((e) => {
|
|
5209
5221
|
let { pulsate: t, rippleX: n, rippleY: r, rippleSize: i, cb: a } = e, o = p.current;
|
|
5210
5222
|
p.current += 1, d((e) => {
|
|
5211
5223
|
let a = [...e.items, {
|
|
@@ -5218,17 +5230,17 @@ var zs = Q("span", {
|
|
|
5218
5230
|
}];
|
|
5219
5231
|
return {
|
|
5220
5232
|
items: a,
|
|
5221
|
-
order:
|
|
5233
|
+
order: Rs(e.order, a.filter((e) => !e.exiting).map((e) => e.key))
|
|
5222
5234
|
};
|
|
5223
5235
|
}), m.current = a;
|
|
5224
|
-
}), S =
|
|
5236
|
+
}), S = ps((e = Fs, t = Fs, n = Ls) => {
|
|
5225
5237
|
let { pulsate: r = !1, center: i = a || t.pulsate, fakeElement: o = !1 } = t;
|
|
5226
5238
|
if (e?.type === "mousedown" && g.current) {
|
|
5227
5239
|
g.current = !1;
|
|
5228
5240
|
return;
|
|
5229
5241
|
}
|
|
5230
5242
|
e?.type === "touchstart" && (g.current = !0);
|
|
5231
|
-
let { rippleX: s, rippleY: c, rippleSize: l } =
|
|
5243
|
+
let { rippleX: s, rippleY: c, rippleSize: l } = zs({
|
|
5232
5244
|
event: e,
|
|
5233
5245
|
element: o ? null : y.current,
|
|
5234
5246
|
center: i
|
|
@@ -5250,9 +5262,9 @@ var zs = Q("span", {
|
|
|
5250
5262
|
rippleSize: l,
|
|
5251
5263
|
cb: n
|
|
5252
5264
|
});
|
|
5253
|
-
}), C =
|
|
5254
|
-
S(
|
|
5255
|
-
}), w =
|
|
5265
|
+
}), C = ps(() => {
|
|
5266
|
+
S(Fs, { pulsate: !0 });
|
|
5267
|
+
}), w = ps((e, t) => {
|
|
5256
5268
|
if (_.clear(), e?.type === "touchend" && v.current) {
|
|
5257
5269
|
v.current(), v.current = null, _.start(0, () => {
|
|
5258
5270
|
w(e, t);
|
|
@@ -5268,7 +5280,7 @@ var zs = Q("span", {
|
|
|
5268
5280
|
exiting: !0
|
|
5269
5281
|
}, {
|
|
5270
5282
|
items: n,
|
|
5271
|
-
order:
|
|
5283
|
+
order: Rs(e.order, n.filter((e) => !e.exiting).map((e) => e.key))
|
|
5272
5284
|
};
|
|
5273
5285
|
}), m.current = t;
|
|
5274
5286
|
});
|
|
@@ -5282,11 +5294,11 @@ var zs = Q("span", {
|
|
|
5282
5294
|
w
|
|
5283
5295
|
]);
|
|
5284
5296
|
let T = new Map(f.map((e) => [e.key, e])), E = u.order.map((e) => T.get(e)).filter(Boolean);
|
|
5285
|
-
return /*#__PURE__*/ c(
|
|
5297
|
+
return /*#__PURE__*/ c(Ws, {
|
|
5286
5298
|
className: V($.root, o.root, s),
|
|
5287
5299
|
ref: y,
|
|
5288
5300
|
...l,
|
|
5289
|
-
children: E.map((e) => /*#__PURE__*/ c(
|
|
5301
|
+
children: E.map((e) => /*#__PURE__*/ c(Gs, {
|
|
5290
5302
|
classes: {
|
|
5291
5303
|
ripple: V(o.ripple, $.ripple),
|
|
5292
5304
|
rippleVisible: V(o.rippleVisible, $.rippleVisible),
|
|
@@ -5295,7 +5307,7 @@ var zs = Q("span", {
|
|
|
5295
5307
|
childLeaving: V(o.childLeaving, $.childLeaving),
|
|
5296
5308
|
childPulsate: V(o.childPulsate, $.childPulsate)
|
|
5297
5309
|
},
|
|
5298
|
-
timeout: i.shouldReduceMotion ? 0 :
|
|
5310
|
+
timeout: i.shouldReduceMotion ? 0 : Ps,
|
|
5299
5311
|
pulsate: e.pulsate,
|
|
5300
5312
|
rippleX: e.rippleX,
|
|
5301
5313
|
rippleY: e.rippleY,
|
|
@@ -5305,28 +5317,28 @@ var zs = Q("span", {
|
|
|
5305
5317
|
}, e.key))
|
|
5306
5318
|
});
|
|
5307
5319
|
});
|
|
5308
|
-
process.env.NODE_ENV !== "production" && (
|
|
5320
|
+
process.env.NODE_ENV !== "production" && (Ks.propTypes = {
|
|
5309
5321
|
center: H.default.bool,
|
|
5310
5322
|
classes: H.default.object,
|
|
5311
5323
|
className: H.default.string
|
|
5312
5324
|
});
|
|
5313
5325
|
//#endregion
|
|
5314
5326
|
//#region node_modules/@mui/material/ButtonBase/buttonBaseClasses.mjs
|
|
5315
|
-
function
|
|
5327
|
+
function qs(e) {
|
|
5316
5328
|
return er("MuiButtonBase", e);
|
|
5317
5329
|
}
|
|
5318
|
-
var
|
|
5330
|
+
var Js = tr("MuiButtonBase", [
|
|
5319
5331
|
"root",
|
|
5320
5332
|
"disabled",
|
|
5321
5333
|
"focusVisible"
|
|
5322
|
-
]),
|
|
5334
|
+
]), Ys = (e) => {
|
|
5323
5335
|
let { disabled: t, focusVisible: n, focusVisibleClassName: r, suppressFocusVisible: i, classes: a } = e, o = Ce({ root: [
|
|
5324
5336
|
"root",
|
|
5325
5337
|
t && "disabled",
|
|
5326
5338
|
n && !i && "focusVisible"
|
|
5327
|
-
] },
|
|
5339
|
+
] }, qs, a);
|
|
5328
5340
|
return n && !i && r && (o.root += ` ${r}`), o;
|
|
5329
|
-
},
|
|
5341
|
+
}, Xs = Q("button", {
|
|
5330
5342
|
name: "MuiButtonBase",
|
|
5331
5343
|
slot: "Root"
|
|
5332
5344
|
})(Ta(({ theme: e }) => ({
|
|
@@ -5350,7 +5362,7 @@ var Us = tr("MuiButtonBase", [
|
|
|
5350
5362
|
textDecoration: "none",
|
|
5351
5363
|
color: "inherit",
|
|
5352
5364
|
"&::-moz-focus-inner": { borderStyle: "none" },
|
|
5353
|
-
[`&.${
|
|
5365
|
+
[`&.${Js.disabled}`]: {
|
|
5354
5366
|
pointerEvents: "none",
|
|
5355
5367
|
cursor: "default"
|
|
5356
5368
|
},
|
|
@@ -5359,26 +5371,26 @@ var Us = tr("MuiButtonBase", [
|
|
|
5359
5371
|
props: { internalDisabledThemeFocusVisible: !1 },
|
|
5360
5372
|
style: e.focusVisible && {
|
|
5361
5373
|
...Ti,
|
|
5362
|
-
[`&.${
|
|
5374
|
+
[`&.${Js.focusVisible}`]: e.focusVisible
|
|
5363
5375
|
}
|
|
5364
5376
|
}]
|
|
5365
|
-
}))),
|
|
5377
|
+
}))), Zs = /*#__PURE__*/ e.forwardRef(function(t, n) {
|
|
5366
5378
|
let r = Ea({
|
|
5367
5379
|
props: t,
|
|
5368
5380
|
name: "MuiButtonBase"
|
|
5369
5381
|
}), { action: i, centerRipple: a = !1, children: o, className: s, component: u = "button", disabled: d = !1, disableRipple: f = !1, disableTouchRipple: p = !1, focusRipple: m = !1, focusVisibleClassName: h, focusableWhenDisabled: g, suppressFocusVisible: _ = !1, internalNativeButton: v, internalDisabledThemeFocusVisible: y = !1, LinkComponent: b = "a", nativeButton: x, onBlur: S, onClick: C, onContextMenu: w, onDragLeave: T, onFocus: E, onFocusVisible: D, onKeyDown: O, onKeyUp: k, onMouseDown: A, onMouseLeave: j, onMouseUp: M, onTouchEnd: N, onTouchMove: P, onTouchStart: ee, tabIndex: F = 0, TouchRippleProps: I, touchRippleRef: L, type: R, ...z } = r, te = !!(z.href || z.to), ne = !!z.formAction, re = u;
|
|
5370
5382
|
re === "button" && te && (re = b);
|
|
5371
|
-
let ie = typeof re == "string" ? re === "button" : v ?? !1, ae = x ?? ie, B =
|
|
5383
|
+
let ie = typeof re == "string" ? re === "button" : v ?? !1, ae = x ?? ie, B = Ds(), oe = po(B.ref, L), [se, ce] = e.useState(!1);
|
|
5372
5384
|
(d || _) && se && ce(!1);
|
|
5373
|
-
let le =
|
|
5385
|
+
let le = ps((e) => {
|
|
5374
5386
|
m && !e.repeat && se && e.key === " " && B.stop(e, () => {
|
|
5375
5387
|
B.start(e);
|
|
5376
5388
|
});
|
|
5377
|
-
}), ue =
|
|
5389
|
+
}), ue = ps((e) => {
|
|
5378
5390
|
m && e.key === " " && se && !e.defaultPrevented && B.stop(e, () => {
|
|
5379
5391
|
B.pulsate(e);
|
|
5380
5392
|
});
|
|
5381
|
-
}), { getButtonProps: de, rootRef: fe } =
|
|
5393
|
+
}), { getButtonProps: de, rootRef: fe } = xs({
|
|
5382
5394
|
nativeButton: ae,
|
|
5383
5395
|
nativeButtonProp: x,
|
|
5384
5396
|
internalNativeButton: ie,
|
|
@@ -5406,12 +5418,12 @@ var Us = tr("MuiButtonBase", [
|
|
|
5406
5418
|
se,
|
|
5407
5419
|
B
|
|
5408
5420
|
]);
|
|
5409
|
-
let ve =
|
|
5421
|
+
let ve = Qs(B, "start", A, p), ye = Qs(B, "stop", w, p), H = Qs(B, "stop", T, p), be = Qs(B, "stop", M, p), xe = Qs(B, "stop", (e) => {
|
|
5410
5422
|
se && e.preventDefault(), j && j(e);
|
|
5411
|
-
}, p), Se =
|
|
5412
|
-
|
|
5413
|
-
}, !1), Ee =
|
|
5414
|
-
fe.current || (fe.current = e.currentTarget), !_ &&
|
|
5423
|
+
}, p), Se = Qs(B, "start", ee, p), Ce = Qs(B, "stop", N, p), we = Qs(B, "stop", P, p), Te = Qs(B, "stop", (e) => {
|
|
5424
|
+
vs(e.target) || ce(!1), S && S(e);
|
|
5425
|
+
}, !1), Ee = ps((e) => {
|
|
5426
|
+
fe.current || (fe.current = e.currentTarget), !_ && vs(e.target) && (ce(!0), D && D(e)), E && E(e);
|
|
5415
5427
|
}), De = {};
|
|
5416
5428
|
te && (De.tabIndex = d ? -1 : F, d && (De["aria-disabled"] = d), De.type = R);
|
|
5417
5429
|
let Oe = po(n, fe), ke = {
|
|
@@ -5426,8 +5438,8 @@ var Us = tr("MuiButtonBase", [
|
|
|
5426
5438
|
tabIndex: F,
|
|
5427
5439
|
focusVisible: se,
|
|
5428
5440
|
internalDisabledThemeFocusVisible: y
|
|
5429
|
-
}, Ae =
|
|
5430
|
-
return /*#__PURE__*/ l(
|
|
5441
|
+
}, Ae = Ys(ke);
|
|
5442
|
+
return /*#__PURE__*/ l(Xs, {
|
|
5431
5443
|
as: re,
|
|
5432
5444
|
className: V(Ae.root, s),
|
|
5433
5445
|
ownerState: ke,
|
|
@@ -5447,23 +5459,23 @@ var Us = tr("MuiButtonBase", [
|
|
|
5447
5459
|
ref: Oe,
|
|
5448
5460
|
...te ? De : ge,
|
|
5449
5461
|
...z,
|
|
5450
|
-
children: [o, _e ? /*#__PURE__*/ c(
|
|
5462
|
+
children: [o, _e ? /*#__PURE__*/ c(Ks, {
|
|
5451
5463
|
ref: oe,
|
|
5452
5464
|
center: a,
|
|
5453
5465
|
...I
|
|
5454
5466
|
}) : null]
|
|
5455
5467
|
});
|
|
5456
5468
|
});
|
|
5457
|
-
function
|
|
5458
|
-
return
|
|
5469
|
+
function Qs(e, t, n, r = !1) {
|
|
5470
|
+
return ps((i) => (n && n(i), r || e[t](i), !0));
|
|
5459
5471
|
}
|
|
5460
|
-
process.env.NODE_ENV !== "production" && (
|
|
5461
|
-
action:
|
|
5472
|
+
process.env.NODE_ENV !== "production" && (Zs.propTypes = {
|
|
5473
|
+
action: ms,
|
|
5462
5474
|
centerRipple: H.default.bool,
|
|
5463
5475
|
children: H.default.node,
|
|
5464
5476
|
classes: H.default.object,
|
|
5465
5477
|
className: H.default.string,
|
|
5466
|
-
component:
|
|
5478
|
+
component: _s,
|
|
5467
5479
|
disabled: H.default.bool,
|
|
5468
5480
|
disableRipple: H.default.bool,
|
|
5469
5481
|
disableTouchRipple: H.default.bool,
|
|
@@ -5507,20 +5519,20 @@ process.env.NODE_ENV !== "production" && (Ks.propTypes = {
|
|
|
5507
5519
|
});
|
|
5508
5520
|
//#endregion
|
|
5509
5521
|
//#region node_modules/@mui/material/utils/createSimplePaletteValueFilter.mjs
|
|
5510
|
-
function
|
|
5522
|
+
function $s(e) {
|
|
5511
5523
|
return typeof e.main == "string";
|
|
5512
5524
|
}
|
|
5513
|
-
function
|
|
5514
|
-
if (
|
|
5525
|
+
function ec(e, t = []) {
|
|
5526
|
+
if (!$s(e)) return !1;
|
|
5515
5527
|
for (let n of t) if (!e.hasOwnProperty(n) || typeof e[n] != "string") return !1;
|
|
5516
5528
|
return !0;
|
|
5517
5529
|
}
|
|
5518
|
-
function
|
|
5519
|
-
return ([, t]) => t &&
|
|
5530
|
+
function tc(e = []) {
|
|
5531
|
+
return ([, t]) => t && ec(t, e);
|
|
5520
5532
|
}
|
|
5521
5533
|
//#endregion
|
|
5522
5534
|
//#region node_modules/@mui/material/CircularProgress/circularProgressClasses.mjs
|
|
5523
|
-
function
|
|
5535
|
+
function nc(e) {
|
|
5524
5536
|
return er("MuiCircularProgress", e);
|
|
5525
5537
|
}
|
|
5526
5538
|
tr("MuiCircularProgress", [
|
|
@@ -5536,7 +5548,7 @@ tr("MuiCircularProgress", [
|
|
|
5536
5548
|
]);
|
|
5537
5549
|
//#endregion
|
|
5538
5550
|
//#region node_modules/@mui/material/CircularProgress/CircularProgress.mjs
|
|
5539
|
-
var
|
|
5551
|
+
var rc = 44, ic = !1, ac = !1, oc = m`
|
|
5540
5552
|
0% {
|
|
5541
5553
|
transform: rotate(0deg);
|
|
5542
5554
|
}
|
|
@@ -5544,7 +5556,7 @@ var Qs = 44, $s = !1, ec = !1, tc = m`
|
|
|
5544
5556
|
100% {
|
|
5545
5557
|
transform: rotate(360deg);
|
|
5546
5558
|
}
|
|
5547
|
-
`,
|
|
5559
|
+
`, sc = m`
|
|
5548
5560
|
0% {
|
|
5549
5561
|
stroke-dasharray: 1px, 200px;
|
|
5550
5562
|
stroke-dashoffset: 0;
|
|
@@ -5559,23 +5571,23 @@ var Qs = 44, $s = !1, ec = !1, tc = m`
|
|
|
5559
5571
|
stroke-dasharray: 1px, 200px;
|
|
5560
5572
|
stroke-dashoffset: -126px;
|
|
5561
5573
|
}
|
|
5562
|
-
`,
|
|
5563
|
-
animation: ${
|
|
5564
|
-
`,
|
|
5565
|
-
animation: ${
|
|
5566
|
-
`,
|
|
5574
|
+
`, cc = typeof oc == "string" ? null : p`
|
|
5575
|
+
animation: ${oc} 1.4s linear infinite;
|
|
5576
|
+
`, lc = typeof sc == "string" ? null : p`
|
|
5577
|
+
animation: ${sc} 1.4s ease-in-out infinite;
|
|
5578
|
+
`, uc = (e) => {
|
|
5567
5579
|
let { classes: t, variant: n, color: r, disableShrink: i } = e;
|
|
5568
5580
|
return Ce({
|
|
5569
5581
|
root: [
|
|
5570
5582
|
"root",
|
|
5571
5583
|
n,
|
|
5572
|
-
`color${
|
|
5584
|
+
`color${ds(r)}`
|
|
5573
5585
|
],
|
|
5574
5586
|
svg: ["svg"],
|
|
5575
5587
|
track: ["track"],
|
|
5576
5588
|
circle: ["circle", i && "circleDisableShrink"]
|
|
5577
|
-
},
|
|
5578
|
-
},
|
|
5589
|
+
}, nc, t);
|
|
5590
|
+
}, dc = Q("span", {
|
|
5579
5591
|
name: "MuiCircularProgress",
|
|
5580
5592
|
slot: "Root",
|
|
5581
5593
|
overridesResolver: (e, t) => {
|
|
@@ -5583,7 +5595,7 @@ var Qs = 44, $s = !1, ec = !1, tc = m`
|
|
|
5583
5595
|
return [
|
|
5584
5596
|
t.root,
|
|
5585
5597
|
t[n.variant],
|
|
5586
|
-
t[`color${
|
|
5598
|
+
t[`color${ds(n.color)}`]
|
|
5587
5599
|
];
|
|
5588
5600
|
}
|
|
5589
5601
|
})(Ta(({ theme: e }) => {
|
|
@@ -5597,22 +5609,22 @@ var Qs = 44, $s = !1, ec = !1, tc = m`
|
|
|
5597
5609
|
},
|
|
5598
5610
|
{
|
|
5599
5611
|
props: { variant: "indeterminate" },
|
|
5600
|
-
style:
|
|
5612
|
+
style: cc || { animation: `${oc} 1.4s linear infinite` }
|
|
5601
5613
|
},
|
|
5602
5614
|
...t ? [{
|
|
5603
5615
|
props: { variant: "indeterminate" },
|
|
5604
5616
|
style: t
|
|
5605
5617
|
}] : [],
|
|
5606
|
-
...Object.entries(e.palette).filter(
|
|
5618
|
+
...Object.entries(e.palette).filter(tc()).map(([t]) => ({
|
|
5607
5619
|
props: { color: t },
|
|
5608
5620
|
style: { color: (e.vars || e).palette[t].main }
|
|
5609
5621
|
}))
|
|
5610
5622
|
]
|
|
5611
5623
|
};
|
|
5612
|
-
})),
|
|
5624
|
+
})), fc = Q("svg", {
|
|
5613
5625
|
name: "MuiCircularProgress",
|
|
5614
5626
|
slot: "Svg"
|
|
5615
|
-
})({ display: "block" }),
|
|
5627
|
+
})({ display: "block" }), pc = Q("circle", {
|
|
5616
5628
|
name: "MuiCircularProgress",
|
|
5617
5629
|
slot: "Circle",
|
|
5618
5630
|
overridesResolver: (e, t) => {
|
|
@@ -5637,7 +5649,7 @@ var Qs = 44, $s = !1, ec = !1, tc = m`
|
|
|
5637
5649
|
},
|
|
5638
5650
|
{
|
|
5639
5651
|
props: ({ ownerState: e }) => e.variant === "indeterminate" && !e.disableShrink,
|
|
5640
|
-
style:
|
|
5652
|
+
style: lc || { animation: `${sc} 1.4s ease-in-out infinite` }
|
|
5641
5653
|
},
|
|
5642
5654
|
...t ? [{
|
|
5643
5655
|
props: ({ ownerState: e }) => e.variant === "indeterminate" && !e.disableShrink,
|
|
@@ -5645,18 +5657,18 @@ var Qs = 44, $s = !1, ec = !1, tc = m`
|
|
|
5645
5657
|
}] : []
|
|
5646
5658
|
]
|
|
5647
5659
|
};
|
|
5648
|
-
})),
|
|
5660
|
+
})), mc = Q("circle", {
|
|
5649
5661
|
name: "MuiCircularProgress",
|
|
5650
5662
|
slot: "Track"
|
|
5651
5663
|
})(Ta(({ theme: e }) => ({
|
|
5652
5664
|
stroke: "currentColor",
|
|
5653
5665
|
opacity: (e.vars || e).palette.action.activatedOpacity
|
|
5654
|
-
}))),
|
|
5666
|
+
}))), hc = /*#__PURE__*/ e.forwardRef(function(e, t) {
|
|
5655
5667
|
let n = Ea({
|
|
5656
5668
|
props: e,
|
|
5657
5669
|
name: "MuiCircularProgress"
|
|
5658
5670
|
}), { className: r, color: i = "primary", disableShrink: a = !1, enableTrackSlot: o = !1, min: s, max: u, size: d = 40, style: f, thickness: p = 3.6, value: m = n.min ?? 0, variant: h = "indeterminate", ...g } = n;
|
|
5659
|
-
process.env.NODE_ENV !== "production" &&
|
|
5671
|
+
process.env.NODE_ENV !== "production" && !ic && h === "indeterminate" && (s !== void 0 || u !== void 0) && (console.warn("MUI: You have provided the `min` or `max` props with an 'indeterminate' variant. These props will have no effect."), ic = !0);
|
|
5660
5672
|
let _ = s ?? 0, v = u ?? 100, y = {
|
|
5661
5673
|
...n,
|
|
5662
5674
|
color: i,
|
|
@@ -5666,14 +5678,14 @@ var Qs = 44, $s = !1, ec = !1, tc = m`
|
|
|
5666
5678
|
value: m,
|
|
5667
5679
|
variant: h,
|
|
5668
5680
|
enableTrackSlot: o
|
|
5669
|
-
}, b =
|
|
5681
|
+
}, b = uc(y), x = {}, S = {}, C = {};
|
|
5670
5682
|
if (h === "determinate") {
|
|
5671
|
-
let e = 2 * Math.PI * ((
|
|
5672
|
-
process.env.NODE_ENV !== "production" && !
|
|
5683
|
+
let e = 2 * Math.PI * ((rc - p) / 2);
|
|
5684
|
+
process.env.NODE_ENV !== "production" && !ac && (m < _ || m > v || _ >= v) && (console.error(`MUI: The min, max, and value props in CircularProgress should be numbers where min < max and min <= value <= max. Received min=${_}, max=${v}, value=${m}.`), ac = !0);
|
|
5673
5685
|
let t = v - _;
|
|
5674
5686
|
x.strokeDasharray = e.toFixed(3), x.strokeDashoffset = t > 0 ? `${((v - m) / t * e).toFixed(3)}px` : `${e.toFixed(3)}px`, S.transform = "rotate(-90deg)", C["aria-valuenow"] = m, C["aria-valuemin"] = _, C["aria-valuemax"] = v;
|
|
5675
5687
|
}
|
|
5676
|
-
return /*#__PURE__*/ c(
|
|
5688
|
+
return /*#__PURE__*/ c(dc, {
|
|
5677
5689
|
className: V(b.root, r),
|
|
5678
5690
|
style: {
|
|
5679
5691
|
width: d,
|
|
@@ -5686,33 +5698,33 @@ var Qs = 44, $s = !1, ec = !1, tc = m`
|
|
|
5686
5698
|
role: "progressbar",
|
|
5687
5699
|
...C,
|
|
5688
5700
|
...g,
|
|
5689
|
-
children: /*#__PURE__*/ l(
|
|
5701
|
+
children: /*#__PURE__*/ l(fc, {
|
|
5690
5702
|
className: b.svg,
|
|
5691
5703
|
ownerState: y,
|
|
5692
|
-
viewBox: `${
|
|
5693
|
-
children: [o ? /*#__PURE__*/ c(
|
|
5704
|
+
viewBox: `${rc / 2} ${rc / 2} ${rc} ${rc}`,
|
|
5705
|
+
children: [o ? /*#__PURE__*/ c(mc, {
|
|
5694
5706
|
className: b.track,
|
|
5695
5707
|
ownerState: y,
|
|
5696
|
-
cx:
|
|
5697
|
-
cy:
|
|
5698
|
-
r: (
|
|
5708
|
+
cx: rc,
|
|
5709
|
+
cy: rc,
|
|
5710
|
+
r: (rc - p) / 2,
|
|
5699
5711
|
fill: "none",
|
|
5700
5712
|
strokeWidth: p,
|
|
5701
5713
|
"aria-hidden": "true"
|
|
5702
|
-
}) : null, /*#__PURE__*/ c(
|
|
5714
|
+
}) : null, /*#__PURE__*/ c(pc, {
|
|
5703
5715
|
className: b.circle,
|
|
5704
5716
|
style: x,
|
|
5705
5717
|
ownerState: y,
|
|
5706
|
-
cx:
|
|
5707
|
-
cy:
|
|
5708
|
-
r: (
|
|
5718
|
+
cx: rc,
|
|
5719
|
+
cy: rc,
|
|
5720
|
+
r: (rc - p) / 2,
|
|
5709
5721
|
fill: "none",
|
|
5710
5722
|
strokeWidth: p
|
|
5711
5723
|
})]
|
|
5712
5724
|
})
|
|
5713
5725
|
});
|
|
5714
5726
|
});
|
|
5715
|
-
process.env.NODE_ENV !== "production" && (
|
|
5727
|
+
process.env.NODE_ENV !== "production" && (hc.propTypes = {
|
|
5716
5728
|
classes: H.default.object,
|
|
5717
5729
|
className: H.default.string,
|
|
5718
5730
|
color: H.default.oneOfType([H.default.oneOf([
|
|
@@ -5745,39 +5757,39 @@ process.env.NODE_ENV !== "production" && (uc.propTypes = {
|
|
|
5745
5757
|
});
|
|
5746
5758
|
//#endregion
|
|
5747
5759
|
//#region node_modules/@mui/material/Button/buttonClasses.mjs
|
|
5748
|
-
function
|
|
5760
|
+
function gc(e) {
|
|
5749
5761
|
return er("MuiButton", e);
|
|
5750
5762
|
}
|
|
5751
|
-
var
|
|
5752
|
-
process.env.NODE_ENV !== "production" && (
|
|
5763
|
+
var _c = tr("MuiButton", /* @__PURE__ */ "root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd".split(".")), vc = /*#__PURE__*/ e.createContext({});
|
|
5764
|
+
process.env.NODE_ENV !== "production" && (vc.displayName = "ButtonGroupContext");
|
|
5753
5765
|
//#endregion
|
|
5754
5766
|
//#region node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.mjs
|
|
5755
|
-
var
|
|
5756
|
-
process.env.NODE_ENV !== "production" && (
|
|
5767
|
+
var yc = /*#__PURE__*/ e.createContext(void 0);
|
|
5768
|
+
process.env.NODE_ENV !== "production" && (yc.displayName = "ButtonGroupButtonContext");
|
|
5757
5769
|
//#endregion
|
|
5758
5770
|
//#region node_modules/@mui/material/Button/Button.mjs
|
|
5759
|
-
var
|
|
5771
|
+
var bc = (e) => {
|
|
5760
5772
|
let { color: t, disableElevation: n, fullWidth: r, size: i, variant: a, loading: o, loadingPosition: s, classes: c } = e, l = Ce({
|
|
5761
5773
|
root: [
|
|
5762
5774
|
"root",
|
|
5763
5775
|
o && "loading",
|
|
5764
5776
|
a,
|
|
5765
|
-
`size${
|
|
5766
|
-
`color${
|
|
5777
|
+
`size${ds(i)}`,
|
|
5778
|
+
`color${ds(t)}`,
|
|
5767
5779
|
n && "disableElevation",
|
|
5768
5780
|
r && "fullWidth",
|
|
5769
|
-
o && `loadingPosition${
|
|
5781
|
+
o && `loadingPosition${ds(s)}`
|
|
5770
5782
|
],
|
|
5771
5783
|
startIcon: ["icon", "startIcon"],
|
|
5772
5784
|
endIcon: ["icon", "endIcon"],
|
|
5773
5785
|
loadingIndicator: ["loadingIndicator"],
|
|
5774
5786
|
loadingWrapper: ["loadingWrapper"]
|
|
5775
|
-
},
|
|
5787
|
+
}, gc, c);
|
|
5776
5788
|
return {
|
|
5777
5789
|
...c,
|
|
5778
5790
|
...l
|
|
5779
5791
|
};
|
|
5780
|
-
},
|
|
5792
|
+
}, xc = [
|
|
5781
5793
|
{
|
|
5782
5794
|
props: { size: "small" },
|
|
5783
5795
|
style: { "& > *:nth-of-type(1)": { fontSize: 18 } }
|
|
@@ -5790,7 +5802,7 @@ var hc = (e) => {
|
|
|
5790
5802
|
props: { size: "large" },
|
|
5791
5803
|
style: { "& > *:nth-of-type(1)": { fontSize: 22 } }
|
|
5792
5804
|
}
|
|
5793
|
-
],
|
|
5805
|
+
], Sc = Q(Zs, {
|
|
5794
5806
|
shouldForwardProp: (e) => wa(e) || e === "classes",
|
|
5795
5807
|
name: "MuiButton",
|
|
5796
5808
|
slot: "Root",
|
|
@@ -5799,7 +5811,7 @@ var hc = (e) => {
|
|
|
5799
5811
|
return [
|
|
5800
5812
|
t.root,
|
|
5801
5813
|
t[n.variant],
|
|
5802
|
-
t[`size${
|
|
5814
|
+
t[`size${ds(n.size)}`],
|
|
5803
5815
|
n.color === "inherit" && t.colorInherit,
|
|
5804
5816
|
n.disableElevation && t.disableElevation,
|
|
5805
5817
|
n.fullWidth && t.fullWidth,
|
|
@@ -5821,7 +5833,7 @@ var hc = (e) => {
|
|
|
5821
5833
|
"color"
|
|
5822
5834
|
], { duration: e.transitions.duration.short }),
|
|
5823
5835
|
"&:hover": { textDecoration: "none" },
|
|
5824
|
-
[`&.${
|
|
5836
|
+
[`&.${_c.disabled}`]: { color: (e.vars || e).palette.action.disabled },
|
|
5825
5837
|
variants: [
|
|
5826
5838
|
{
|
|
5827
5839
|
props: { variant: "contained" },
|
|
@@ -5834,11 +5846,11 @@ var hc = (e) => {
|
|
|
5834
5846
|
"@media (hover: none)": { boxShadow: (e.vars || e).shadows[2] }
|
|
5835
5847
|
},
|
|
5836
5848
|
"&:active": { boxShadow: (e.vars || e).shadows[8] },
|
|
5837
|
-
[`&.${
|
|
5849
|
+
[`&.${_c.focusVisible}`]: {
|
|
5838
5850
|
...e.focusVisible,
|
|
5839
5851
|
boxShadow: e.focusVisible?.boxShadow ? `${(e.vars || e).shadows[6]}, ${e.focusVisible.boxShadow}` : (e.vars || e).shadows[6]
|
|
5840
5852
|
},
|
|
5841
|
-
[`&.${
|
|
5853
|
+
[`&.${_c.disabled}`]: {
|
|
5842
5854
|
color: (e.vars || e).palette.action.disabled,
|
|
5843
5855
|
boxShadow: (e.vars || e).shadows[0],
|
|
5844
5856
|
backgroundColor: (e.vars || e).palette.action.disabledBackground
|
|
@@ -5853,7 +5865,7 @@ var hc = (e) => {
|
|
|
5853
5865
|
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
5854
5866
|
backgroundColor: "var(--variant-outlinedBg)",
|
|
5855
5867
|
color: "var(--variant-outlinedColor)",
|
|
5856
|
-
[`&.${
|
|
5868
|
+
[`&.${_c.disabled}`]: { border: `1px solid ${(e.vars || e).palette.action.disabledBackground}` }
|
|
5857
5869
|
}
|
|
5858
5870
|
},
|
|
5859
5871
|
{
|
|
@@ -5864,7 +5876,7 @@ var hc = (e) => {
|
|
|
5864
5876
|
backgroundColor: "var(--variant-textBg)"
|
|
5865
5877
|
}
|
|
5866
5878
|
},
|
|
5867
|
-
...Object.entries(e.palette).filter(
|
|
5879
|
+
...Object.entries(e.palette).filter(tc()).map(([t]) => ({
|
|
5868
5880
|
props: { color: t },
|
|
5869
5881
|
style: {
|
|
5870
5882
|
"--variant-textColor": (e.vars || e).palette[t].main,
|
|
@@ -5958,9 +5970,9 @@ var hc = (e) => {
|
|
|
5958
5970
|
style: {
|
|
5959
5971
|
boxShadow: "none",
|
|
5960
5972
|
"&:hover": { boxShadow: "none" },
|
|
5961
|
-
[`&.${
|
|
5973
|
+
[`&.${_c.focusVisible}`]: { boxShadow: e.focusVisible?.boxShadow ?? "none" },
|
|
5962
5974
|
"&:active": { boxShadow: "none" },
|
|
5963
|
-
[`&.${
|
|
5975
|
+
[`&.${_c.disabled}`]: { boxShadow: "none" }
|
|
5964
5976
|
}
|
|
5965
5977
|
},
|
|
5966
5978
|
{
|
|
@@ -5975,12 +5987,12 @@ var hc = (e) => {
|
|
|
5975
5987
|
"box-shadow",
|
|
5976
5988
|
"border-color"
|
|
5977
5989
|
], { duration: e.transitions.duration.short }),
|
|
5978
|
-
[`&.${
|
|
5990
|
+
[`&.${_c.loading}`]: { color: "transparent" }
|
|
5979
5991
|
}
|
|
5980
5992
|
}
|
|
5981
5993
|
]
|
|
5982
5994
|
};
|
|
5983
|
-
})),
|
|
5995
|
+
})), Cc = Q("span", {
|
|
5984
5996
|
name: "MuiButton",
|
|
5985
5997
|
slot: "StartIcon",
|
|
5986
5998
|
overridesResolver: (e, t) => {
|
|
@@ -6020,9 +6032,9 @@ var hc = (e) => {
|
|
|
6020
6032
|
},
|
|
6021
6033
|
style: { marginRight: -8 }
|
|
6022
6034
|
},
|
|
6023
|
-
...
|
|
6035
|
+
...xc
|
|
6024
6036
|
]
|
|
6025
|
-
})),
|
|
6037
|
+
})), wc = Q("span", {
|
|
6026
6038
|
name: "MuiButton",
|
|
6027
6039
|
slot: "EndIcon",
|
|
6028
6040
|
overridesResolver: (e, t) => {
|
|
@@ -6056,9 +6068,9 @@ var hc = (e) => {
|
|
|
6056
6068
|
},
|
|
6057
6069
|
style: { marginLeft: -8 }
|
|
6058
6070
|
},
|
|
6059
|
-
...
|
|
6071
|
+
...xc
|
|
6060
6072
|
]
|
|
6061
|
-
})),
|
|
6073
|
+
})), Tc = Q("span", {
|
|
6062
6074
|
name: "MuiButton",
|
|
6063
6075
|
slot: "LoadingIndicator"
|
|
6064
6076
|
})(({ theme: e }) => ({
|
|
@@ -6135,18 +6147,18 @@ var hc = (e) => {
|
|
|
6135
6147
|
}
|
|
6136
6148
|
}
|
|
6137
6149
|
]
|
|
6138
|
-
})),
|
|
6150
|
+
})), Ec = Q("span", {
|
|
6139
6151
|
name: "MuiButton",
|
|
6140
6152
|
slot: "LoadingIconPlaceholder"
|
|
6141
6153
|
})({
|
|
6142
6154
|
display: "inline-block",
|
|
6143
6155
|
width: "1em",
|
|
6144
6156
|
height: "1em"
|
|
6145
|
-
}),
|
|
6146
|
-
let r = e.useContext(
|
|
6157
|
+
}), Dc = /*#__PURE__*/ e.forwardRef(function(t, n) {
|
|
6158
|
+
let r = e.useContext(vc), i = e.useContext(yc), a = Ea({
|
|
6147
6159
|
props: vr(r, t),
|
|
6148
6160
|
name: "MuiButton"
|
|
6149
|
-
}), { children: o, color: s = "primary", component: u = "button", className: d, disabled: f = !1, disableElevation: p = !1, disableFocusRipple: m = !1, endIcon: h, focusVisibleClassName: g, fullWidth: _ = !1, id: v, loading: y = null, loadingIndicator: b, loadingPosition: x = "center", size: S = "medium", startIcon: C, type: w, variant: T = "text", ...E } = a, D =
|
|
6161
|
+
}), { children: o, color: s = "primary", component: u = "button", className: d, disabled: f = !1, disableElevation: p = !1, disableFocusRipple: m = !1, endIcon: h, focusVisibleClassName: g, fullWidth: _ = !1, id: v, loading: y = null, loadingIndicator: b, loadingPosition: x = "center", size: S = "medium", startIcon: C, type: w, variant: T = "text", ...E } = a, D = fs(v), O = b ?? /*#__PURE__*/ c(hc, {
|
|
6150
6162
|
"aria-labelledby": D,
|
|
6151
6163
|
color: "inherit",
|
|
6152
6164
|
size: 16
|
|
@@ -6164,30 +6176,30 @@ var hc = (e) => {
|
|
|
6164
6176
|
size: S,
|
|
6165
6177
|
type: w,
|
|
6166
6178
|
variant: T
|
|
6167
|
-
}, A =
|
|
6179
|
+
}, A = bc(k), j = (C || y && x === "start") && /*#__PURE__*/ c(Cc, {
|
|
6168
6180
|
className: A.startIcon,
|
|
6169
6181
|
ownerState: k,
|
|
6170
|
-
children: C || /*#__PURE__*/ c(
|
|
6182
|
+
children: C || /*#__PURE__*/ c(Ec, {
|
|
6171
6183
|
className: A.loadingIconPlaceholder,
|
|
6172
6184
|
ownerState: k
|
|
6173
6185
|
})
|
|
6174
|
-
}), M = (h || y && x === "end") && /*#__PURE__*/ c(
|
|
6186
|
+
}), M = (h || y && x === "end") && /*#__PURE__*/ c(wc, {
|
|
6175
6187
|
className: A.endIcon,
|
|
6176
6188
|
ownerState: k,
|
|
6177
|
-
children: h || /*#__PURE__*/ c(
|
|
6189
|
+
children: h || /*#__PURE__*/ c(Ec, {
|
|
6178
6190
|
className: A.loadingIconPlaceholder,
|
|
6179
6191
|
ownerState: k
|
|
6180
6192
|
})
|
|
6181
6193
|
}), N = i || "", P = typeof y == "boolean" ? /*#__PURE__*/ c("span", {
|
|
6182
6194
|
className: A.loadingWrapper,
|
|
6183
6195
|
style: { display: "contents" },
|
|
6184
|
-
children: y && /*#__PURE__*/ c(
|
|
6196
|
+
children: y && /*#__PURE__*/ c(Tc, {
|
|
6185
6197
|
className: A.loadingIndicator,
|
|
6186
6198
|
ownerState: k,
|
|
6187
6199
|
children: O
|
|
6188
6200
|
})
|
|
6189
6201
|
}) : null, { root: ee, ...F } = A;
|
|
6190
|
-
return /*#__PURE__*/ l(
|
|
6202
|
+
return /*#__PURE__*/ l(Sc, {
|
|
6191
6203
|
ownerState: k,
|
|
6192
6204
|
className: V(r.className, A.root, d, N),
|
|
6193
6205
|
component: u,
|
|
@@ -6209,7 +6221,7 @@ var hc = (e) => {
|
|
|
6209
6221
|
]
|
|
6210
6222
|
});
|
|
6211
6223
|
});
|
|
6212
|
-
process.env.NODE_ENV !== "production" && (
|
|
6224
|
+
process.env.NODE_ENV !== "production" && (Dc.propTypes = {
|
|
6213
6225
|
children: H.default.node,
|
|
6214
6226
|
classes: H.default.object,
|
|
6215
6227
|
className: H.default.string,
|
|
@@ -6263,54 +6275,54 @@ process.env.NODE_ENV !== "production" && (Sc.propTypes = {
|
|
|
6263
6275
|
});
|
|
6264
6276
|
//#endregion
|
|
6265
6277
|
//#region node_modules/ai.akima/dist/ai-akima.es.js
|
|
6266
|
-
function
|
|
6278
|
+
function Oc(e) {
|
|
6267
6279
|
let t = e % 1;
|
|
6268
6280
|
return t < 0 ? t + 1 : t;
|
|
6269
6281
|
}
|
|
6270
|
-
function
|
|
6282
|
+
function kc(e, t, n) {
|
|
6271
6283
|
return {
|
|
6272
6284
|
x: e.x + (t.x - e.x) * n,
|
|
6273
6285
|
y: e.y + (t.y - e.y) * n
|
|
6274
6286
|
};
|
|
6275
6287
|
}
|
|
6276
|
-
function
|
|
6288
|
+
function Ac(e, t, n, r, i) {
|
|
6277
6289
|
let a = i * i, o = a * i;
|
|
6278
6290
|
return {
|
|
6279
6291
|
x: .5 * (2 * t.x + (-e.x + n.x) * i + (2 * e.x - 5 * t.x + 4 * n.x - r.x) * a + (-e.x + 3 * t.x - 3 * n.x + r.x) * o),
|
|
6280
6292
|
y: .5 * (2 * t.y + (-e.y + n.y) * i + (2 * e.y - 5 * t.y + 4 * n.y - r.y) * a + (-e.y + 3 * t.y - 3 * n.y + r.y) * o)
|
|
6281
6293
|
};
|
|
6282
6294
|
}
|
|
6283
|
-
function
|
|
6295
|
+
function jc(e, t) {
|
|
6284
6296
|
return e[(t % e.length + e.length) % e.length];
|
|
6285
6297
|
}
|
|
6286
|
-
function
|
|
6298
|
+
function Mc(e, t) {
|
|
6287
6299
|
return (e % t + t) % t;
|
|
6288
6300
|
}
|
|
6289
|
-
function
|
|
6301
|
+
function Nc(e, t) {
|
|
6290
6302
|
let n = t * e.length, r = Math.floor(n), i = n - r;
|
|
6291
|
-
return
|
|
6303
|
+
return Ac(jc(e, r - 1), jc(e, r), jc(e, r + 1), jc(e, r + 2), i);
|
|
6292
6304
|
}
|
|
6293
|
-
function
|
|
6305
|
+
function Pc(e) {
|
|
6294
6306
|
let t = e.length;
|
|
6295
6307
|
if (t === 0) return [];
|
|
6296
|
-
let n = Array.from({ length: t }, (n, r) => e[
|
|
6308
|
+
let n = Array.from({ length: t }, (n, r) => e[Mc(r + 1, t)] - e[r]);
|
|
6297
6309
|
return Array.from({ length: t }, (e, r) => {
|
|
6298
|
-
let i = n[
|
|
6310
|
+
let i = n[Mc(r - 2, t)], a = n[Mc(r - 1, t)], o = n[Mc(r, t)], s = n[Mc(r + 1, t)], c = Math.abs(s - o), l = Math.abs(a - i), u = c + l;
|
|
6299
6311
|
return u > 1e-12 ? (c * a + l * o) / u : (a + o) / 2;
|
|
6300
6312
|
});
|
|
6301
6313
|
}
|
|
6302
|
-
function
|
|
6314
|
+
function Fc(e, t, n, r, i) {
|
|
6303
6315
|
let a = i * i, o = a * i;
|
|
6304
6316
|
return (2 * o - 3 * a + 1) * e + (o - 2 * a + i) * t + (-2 * o + 3 * a) * n + (o - a) * r;
|
|
6305
6317
|
}
|
|
6306
|
-
function
|
|
6307
|
-
let n = e.length, r = e.map((e) => e.x), i = e.map((e) => e.y), a =
|
|
6318
|
+
function Ic(e, t) {
|
|
6319
|
+
let n = e.length, r = e.map((e) => e.x), i = e.map((e) => e.y), a = Pc(r), o = Pc(i), s = t * n, c = Math.floor(s), l = s - c, u = Mc(c, n), d = Mc(c + 1, n);
|
|
6308
6320
|
return {
|
|
6309
|
-
x:
|
|
6310
|
-
y:
|
|
6321
|
+
x: Fc(r[u], a[u], r[d], a[d], l),
|
|
6322
|
+
y: Fc(i[u], o[u], i[d], o[d], l)
|
|
6311
6323
|
};
|
|
6312
6324
|
}
|
|
6313
|
-
function
|
|
6325
|
+
function Lc(e) {
|
|
6314
6326
|
if (e.length < 3) return e;
|
|
6315
6327
|
let t = e.reduce((e, t) => ({
|
|
6316
6328
|
x: e.x + t.x,
|
|
@@ -6329,7 +6341,7 @@ function Mc(e) {
|
|
|
6329
6341
|
distanceSquared: (e.x - n.x) * (e.x - n.x) + (e.y - n.y) * (e.y - n.y)
|
|
6330
6342
|
})).sort((e, t) => e.angle - t.angle || e.distanceSquared - t.distanceSquared || e.index - t.index).map(({ point: e }) => e);
|
|
6331
6343
|
}
|
|
6332
|
-
function
|
|
6344
|
+
function Rc(e) {
|
|
6333
6345
|
if (e.length === 0) return {
|
|
6334
6346
|
x: 0,
|
|
6335
6347
|
y: 0
|
|
@@ -6346,8 +6358,8 @@ function Nc(e) {
|
|
|
6346
6358
|
y: t.y / e.length
|
|
6347
6359
|
};
|
|
6348
6360
|
}
|
|
6349
|
-
function
|
|
6350
|
-
let r =
|
|
6361
|
+
function zc(e, t, n) {
|
|
6362
|
+
let r = Rc(e), i = Hc(e, 1024, n), a = Math.cos(t), o = Math.sin(t), s = i[0] ?? {
|
|
6351
6363
|
x: r.x,
|
|
6352
6364
|
y: r.y
|
|
6353
6365
|
}, c = Infinity;
|
|
@@ -6362,39 +6374,39 @@ function Pc(e, t, n) {
|
|
|
6362
6374
|
}
|
|
6363
6375
|
return s;
|
|
6364
6376
|
}
|
|
6365
|
-
function
|
|
6366
|
-
let n =
|
|
6377
|
+
function Bc(e, t = "catmull") {
|
|
6378
|
+
let n = Lc(e), r = Rc(n);
|
|
6367
6379
|
return (e) => {
|
|
6368
|
-
let i =
|
|
6380
|
+
let i = zc(n, e, t);
|
|
6369
6381
|
return {
|
|
6370
6382
|
x: i.x + r.x,
|
|
6371
6383
|
y: i.y + r.y
|
|
6372
6384
|
};
|
|
6373
6385
|
};
|
|
6374
6386
|
}
|
|
6375
|
-
function
|
|
6376
|
-
let r =
|
|
6387
|
+
function Vc(e, t, n = "catmull") {
|
|
6388
|
+
let r = Lc(e);
|
|
6377
6389
|
if (r.length === 0) return {
|
|
6378
6390
|
x: 0,
|
|
6379
6391
|
y: 0
|
|
6380
6392
|
};
|
|
6381
6393
|
if (r.length === 1) return { ...r[0] };
|
|
6382
|
-
let i =
|
|
6394
|
+
let i = Oc(t);
|
|
6383
6395
|
if (r.length === 2) {
|
|
6384
6396
|
let e = i * 2;
|
|
6385
|
-
return e <= 1 ?
|
|
6397
|
+
return e <= 1 ? kc(r[0], r[1], e) : kc(r[1], r[0], e - 1);
|
|
6386
6398
|
}
|
|
6387
|
-
return n === "akima" ?
|
|
6399
|
+
return n === "akima" ? Ic(r, i) : Nc(r, i);
|
|
6388
6400
|
}
|
|
6389
|
-
function
|
|
6401
|
+
function Hc(e, t, n = "catmull") {
|
|
6390
6402
|
if (t <= 0) return [];
|
|
6391
6403
|
let r = [];
|
|
6392
|
-
for (let i = 0; i < t; i += 1) r.push(
|
|
6404
|
+
for (let i = 0; i < t; i += 1) r.push(Vc(e, i / t, n));
|
|
6393
6405
|
return r;
|
|
6394
6406
|
}
|
|
6395
6407
|
//#endregion
|
|
6396
6408
|
//#region src/ModalImageCropped.tsx
|
|
6397
|
-
function
|
|
6409
|
+
function Uc(e) {
|
|
6398
6410
|
let t = "ModalImageCropped", s = a(null), u = a(null), [d, f] = o([]), [p, m] = o([]), [g, _] = o(0), [x, T] = o(0), [E, D] = o(!1), [O, k] = o(void 0), [A, j] = o(0), [M, N] = o(0), [P, ee] = o(!1), [F, I] = o("[{ \"x\": 225.77, \"y\": 71.09 },\n{ \"x\": 225.77, \"y\": 289.70 },\n{ \"x\": 394.13, \"y\": 114.60 },\n{ \"x\": 60.40, \"y\": 176.28 },\n{ \"x\": 82.32, \"y\": 269.80 },\n{ \"x\": 335.36, \"y\": 271.79 },\n{ \"x\": 70.37, \"y\": 94.70 },\n{ \"x\": 376.20, \"y\": 89.72 },\n{ \"x\": 380.19, \"y\": 206.13 },\n{ \"x\": 320.41, \"y\": 75.80 },\n{ \"x\": 65.38, \"y\": 119.57 },\n{ \"x\": 113.20, \"y\": 78.78 }]"), L = w(), { t: R } = h(), z = e.actor.getSnapshot();
|
|
6399
6411
|
function te(e, t) {
|
|
6400
6412
|
e.save(), e.fillStyle = "black", e.font = "bold 14px sans-serif", e.textAlign = "center", e.textBaseline = "middle", e.fillText("®", t.x, t.y), e.restore();
|
|
@@ -6490,7 +6502,7 @@ function Rc(e) {
|
|
|
6490
6502
|
let t = e[0], n = e[1];
|
|
6491
6503
|
return -Math.atan2(t.y, t.x) > -Math.atan2(n.y, n.x);
|
|
6492
6504
|
}, me = n((e, t, n, r = !1) => {
|
|
6493
|
-
let i =
|
|
6505
|
+
let i = Bc(n, E ? "akima" : "catmull"), a = -Infinity, o = Infinity, s = -Infinity, c = Infinity, l = Array.from({ length: 128 }, (e, t) => {
|
|
6494
6506
|
let n = i(t * 2 * Math.PI / 128);
|
|
6495
6507
|
return n.x > a && (a = n.x), n.x < o && (o = n.x), n.y > s && (s = n.y), n.y < c && (c = n.y), n;
|
|
6496
6508
|
});
|
|
@@ -6553,7 +6565,7 @@ function Rc(e) {
|
|
|
6553
6565
|
for (let t of ge.polygon) e.lineTo(t.x, t.y);
|
|
6554
6566
|
return e.closePath(), e.fill(), e.stroke(), ge;
|
|
6555
6567
|
}, [ge]), V = i(() => {
|
|
6556
|
-
if (z.value !== "Shape defined" || ge.polygon.length === 0) return {
|
|
6568
|
+
if (z.value !== "Shape defined" && z.value !== "Trademark defined" || ge.polygon.length === 0) return {
|
|
6557
6569
|
points: [],
|
|
6558
6570
|
center: {
|
|
6559
6571
|
x: 0,
|
|
@@ -6579,33 +6591,70 @@ function Rc(e) {
|
|
|
6579
6591
|
let n = s.current, r = u.current;
|
|
6580
6592
|
if (!n || !r) return [];
|
|
6581
6593
|
let i = n.getContext("2d");
|
|
6582
|
-
x === 0 ? i.drawImage(r, 0, 0) : (i.clearRect(0, 0, n.width, n.height), i.save(), i.translate(n.width / 2, n.height / 2), i.rotate(x), i.drawImage(r, -r.naturalWidth / 2, -r.naturalHeight / 2), i.restore()), i.setLineDash([]), x === 0 && ae(i, e, "red"), z.value
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
{
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6594
|
+
switch (x === 0 ? i.drawImage(r, 0, 0) : (i.clearRect(0, 0, n.width, n.height), i.save(), i.translate(n.width / 2, n.height / 2), i.rotate(x), i.drawImage(r, -r.naturalWidth / 2, -r.naturalHeight / 2), i.restore()), i.setLineDash([]), x === 0 && ae(i, e, "red"), z.value) {
|
|
6595
|
+
case zo:
|
|
6596
|
+
ae(i, p, "orange"), oe(i, p, "magenta", !0);
|
|
6597
|
+
break;
|
|
6598
|
+
case Bo:
|
|
6599
|
+
{
|
|
6600
|
+
let { points: e, center: n } = V;
|
|
6601
|
+
if (B(i, e, n, "red"), t && e.length > 0) {
|
|
6602
|
+
let n = e[ie(t, e)], r = [
|
|
6603
|
+
{
|
|
6604
|
+
x: n.x + 10,
|
|
6605
|
+
y: n.y
|
|
6606
|
+
},
|
|
6607
|
+
{
|
|
6608
|
+
x: n.x,
|
|
6609
|
+
y: n.y + 10
|
|
6610
|
+
},
|
|
6611
|
+
{
|
|
6612
|
+
x: n.x - 10,
|
|
6613
|
+
y: n.y
|
|
6614
|
+
},
|
|
6615
|
+
{
|
|
6616
|
+
x: n.x,
|
|
6617
|
+
y: n.y - 10
|
|
6618
|
+
}
|
|
6619
|
+
];
|
|
6620
|
+
oe(i, r, "black"), ne(i);
|
|
6603
6621
|
}
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6622
|
+
}
|
|
6623
|
+
break;
|
|
6624
|
+
case Vo:
|
|
6625
|
+
{
|
|
6626
|
+
let { points: e, center: n } = V;
|
|
6627
|
+
if (B(i, e, n, "red"), t && e.length > 0) {
|
|
6628
|
+
let n = e[ie(t, e)], r = [
|
|
6629
|
+
{
|
|
6630
|
+
x: n.x + 10,
|
|
6631
|
+
y: n.y
|
|
6632
|
+
},
|
|
6633
|
+
{
|
|
6634
|
+
x: n.x,
|
|
6635
|
+
y: n.y + 10
|
|
6636
|
+
},
|
|
6637
|
+
{
|
|
6638
|
+
x: n.x - 10,
|
|
6639
|
+
y: n.y
|
|
6640
|
+
},
|
|
6641
|
+
{
|
|
6642
|
+
x: n.x,
|
|
6643
|
+
y: n.y - 10
|
|
6644
|
+
}
|
|
6645
|
+
];
|
|
6646
|
+
oe(i, r, "black"), ne(i);
|
|
6647
|
+
}
|
|
6648
|
+
}
|
|
6649
|
+
ne(i);
|
|
6650
|
+
break;
|
|
6651
|
+
case Ho:
|
|
6652
|
+
ne(i);
|
|
6653
|
+
break;
|
|
6654
|
+
default: console.log(`unknown state: ${z.value}`);
|
|
6607
6655
|
}
|
|
6608
|
-
|
|
6656
|
+
let { polygon: a } = _e(i);
|
|
6657
|
+
return e.length === 2 && (z.value === "Image cropped" || z.value === "X-axis started") && ve(i, e), e.length === 1 && z.value === "X-axis started" && t && ve(i, e, t), a;
|
|
6609
6658
|
}, [
|
|
6610
6659
|
p,
|
|
6611
6660
|
oe,
|
|
@@ -6640,7 +6689,7 @@ function Rc(e) {
|
|
|
6640
6689
|
function xe(t, n) {
|
|
6641
6690
|
let r = n.x - t.x, i = n.y - t.y, a = -Math.atan2(i, r);
|
|
6642
6691
|
a > Math.PI / 2 && (a -= Math.PI), a < -Math.PI / 2 && (a += Math.PI), T(a), e.actor.send({
|
|
6643
|
-
type:
|
|
6692
|
+
type: Zo,
|
|
6644
6693
|
rotationAngle: a
|
|
6645
6694
|
}), _((e) => e + 1);
|
|
6646
6695
|
}
|
|
@@ -6652,7 +6701,7 @@ function Rc(e) {
|
|
|
6652
6701
|
};
|
|
6653
6702
|
}
|
|
6654
6703
|
function Ce() {
|
|
6655
|
-
e.actor.getSnapshot().value === "Image cropped" && e.actor.send({ type:
|
|
6704
|
+
e.actor.getSnapshot().value === "Image cropped" && e.actor.send({ type: Xo }), e.actor.getSnapshot().value === "X-axis started" && e.actor.send({ type: Zo }), e.actor.getSnapshot().value === "X-axis finished" && e.actor.send({ type: $o }), m((e) => [
|
|
6656
6705
|
...e,
|
|
6657
6706
|
{
|
|
6658
6707
|
x: 50,
|
|
@@ -6681,10 +6730,10 @@ function Rc(e) {
|
|
|
6681
6730
|
]);
|
|
6682
6731
|
}
|
|
6683
6732
|
function we() {
|
|
6684
|
-
if (
|
|
6733
|
+
if (!Fe) throw Error("SL is undefined");
|
|
6685
6734
|
if (!Ie) throw Error("SH is undefined");
|
|
6686
6735
|
let t = he(Fe, Ie, !0);
|
|
6687
|
-
|
|
6736
|
+
z.value === "Points defined" ? e.actor.send({ type: ts }) : z.value === "Shape defined" || z.value === "Trademark defined" ? e.actor.send({ type: Uo }) : e.onCloseModal(x, p, t, O)();
|
|
6688
6737
|
}
|
|
6689
6738
|
function Te() {
|
|
6690
6739
|
ee(!1);
|
|
@@ -6696,7 +6745,7 @@ function Rc(e) {
|
|
|
6696
6745
|
console.log(`handleChange called with value: ${e.target.value}`), I(e.target.value);
|
|
6697
6746
|
}
|
|
6698
6747
|
function Oe() {
|
|
6699
|
-
e.actor.getSnapshot().value === "Image cropped" && e.actor.send({ type:
|
|
6748
|
+
e.actor.getSnapshot().value === "Image cropped" && e.actor.send({ type: Xo }), e.actor.getSnapshot().value === "X-axis started" && e.actor.send({ type: Zo }), e.actor.getSnapshot().value === "X-axis finished" && e.actor.send({ type: $o });
|
|
6700
6749
|
let t = JSON.parse(F);
|
|
6701
6750
|
Array.isArray(t) && m((e) => [...e, ...t]);
|
|
6702
6751
|
}
|
|
@@ -6712,31 +6761,54 @@ function Rc(e) {
|
|
|
6712
6761
|
let n = e.actor.getSnapshot(), r = s.current;
|
|
6713
6762
|
if (!r || !u.current) return;
|
|
6714
6763
|
let i = Se(r, t), a = t.button === 2;
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
console.log("
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
return;
|
|
6725
|
-
}
|
|
6726
|
-
if (n.value === "X-axis finished" || n.value === "Points defined") {
|
|
6727
|
-
let e = Se(r, t);
|
|
6728
|
-
a ? m((t) => {
|
|
6729
|
-
let n = ke(t, e);
|
|
6730
|
-
if (n !== -1) {
|
|
6731
|
-
let e = [...t];
|
|
6732
|
-
return e.splice(n, 1), e;
|
|
6764
|
+
switch (n.value) {
|
|
6765
|
+
case No:
|
|
6766
|
+
console.log("handleMouseDown: state is IDLE");
|
|
6767
|
+
break;
|
|
6768
|
+
case Io:
|
|
6769
|
+
case Lo:
|
|
6770
|
+
if (a) {
|
|
6771
|
+
console.log("right mouse button clicked"), f((e) => e.slice(0, -1)), T(0), be(Qo);
|
|
6772
|
+
return;
|
|
6733
6773
|
}
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6774
|
+
{
|
|
6775
|
+
let e = Se(r, t);
|
|
6776
|
+
f((t) => (t.length % 2 == 0 ? be(Xo) : t.length % 2 == 1 && xe(t[0], e), t.length < 2 ? [...t, e] : [e]));
|
|
6777
|
+
}
|
|
6778
|
+
break;
|
|
6779
|
+
case zo:
|
|
6780
|
+
case Ro:
|
|
6781
|
+
{
|
|
6782
|
+
let e = Se(r, t);
|
|
6783
|
+
a ? m((t) => {
|
|
6784
|
+
let n = ke(t, e);
|
|
6785
|
+
if (n !== -1) {
|
|
6786
|
+
let e = [...t];
|
|
6787
|
+
return e.splice(n, 1), e;
|
|
6788
|
+
}
|
|
6789
|
+
return t;
|
|
6790
|
+
}) : (m((t) => [...t, e]), be($o));
|
|
6791
|
+
}
|
|
6792
|
+
break;
|
|
6793
|
+
case Bo:
|
|
6794
|
+
if (a) k(void 0), e.actor.send({ type: ns });
|
|
6795
|
+
else {
|
|
6796
|
+
let { points: t } = V, n = t[ie(i, t)];
|
|
6797
|
+
k(n), e.actor.send({ type: es });
|
|
6798
|
+
}
|
|
6799
|
+
break;
|
|
6800
|
+
case Vo:
|
|
6801
|
+
if (console.log("handleMouseDown: state is TRADEMARK_DEFINED"), a) k(void 0), e.actor.send({ type: rs });
|
|
6802
|
+
else {
|
|
6803
|
+
let { points: t } = V, n = t[ie(i, t)];
|
|
6804
|
+
k(n), e.actor.send({ type: es });
|
|
6805
|
+
}
|
|
6806
|
+
break;
|
|
6807
|
+
case Ho:
|
|
6808
|
+
console.log("handleMouseDown: state is FINISHED"), a && e.actor.send({ type: is });
|
|
6809
|
+
break;
|
|
6810
|
+
default: console.log(`handleMouseDown: unhandled state ${n.value}`);
|
|
6811
|
+
}
|
|
6740
6812
|
}
|
|
6741
6813
|
function je(e) {
|
|
6742
6814
|
let t = s.current;
|
|
@@ -6752,7 +6824,7 @@ function Rc(e) {
|
|
|
6752
6824
|
}
|
|
6753
6825
|
let Pe = (e) => {
|
|
6754
6826
|
D(e.target.checked);
|
|
6755
|
-
}, Fe = e.actor.getSnapshot().context.SL, Ie = e.actor.getSnapshot().context.SH, Le = e.actor.getSnapshot().context.AZG, Re = z.value === "Points defined" && p.length > 3 ? R("main.identify.button.finish", { defaultValue: "Finish" }) : z.value === "Trademark defined" ? R("main.identify.button.finish1", { defaultValue: "Finish 1" }) : z.value === "idle" ? R("main.identify.button.
|
|
6827
|
+
}, Fe = e.actor.getSnapshot().context.SL, Ie = e.actor.getSnapshot().context.SH, Le = e.actor.getSnapshot().context.AZG, Re = z.value === "Points defined" && p.length > 3 ? R("main.identify.button.finish", { defaultValue: "Finish" }) : z.value === "Trademark defined" ? R("main.identify.button.finish1", { defaultValue: "Finish 1" }) : z.value === "idle" ? R("main.identify.button.finishActionReally", { defaultValue: "Finish now" }) : z.value === "Shape defined" ? R("main.identify.button.finishAction", { defaultValue: "Finish action" }) : R("main.identify.button.finishXXX", { defaultValue: "Undo" });
|
|
6756
6828
|
return /* @__PURE__ */ c(Mo, {
|
|
6757
6829
|
"data-testid": `${t}.Modal`,
|
|
6758
6830
|
sx: {
|
|
@@ -6773,7 +6845,7 @@ function Rc(e) {
|
|
|
6773
6845
|
backgroundColor: L.palette.primary.main
|
|
6774
6846
|
},
|
|
6775
6847
|
children: [
|
|
6776
|
-
/* @__PURE__ */ c(
|
|
6848
|
+
/* @__PURE__ */ c(ss, {
|
|
6777
6849
|
actor: e.actor,
|
|
6778
6850
|
testMode: e.testMode
|
|
6779
6851
|
}, g),
|
|
@@ -6852,14 +6924,14 @@ function Rc(e) {
|
|
|
6852
6924
|
})
|
|
6853
6925
|
] }),
|
|
6854
6926
|
(z.value === "Image cropped" || z.value === "X-axis started" || z.value === "X-axis finished") && /* @__PURE__ */ l("div", { children: [
|
|
6855
|
-
/* @__PURE__ */ c(
|
|
6927
|
+
/* @__PURE__ */ c(Dc, {
|
|
6856
6928
|
color: "secondary",
|
|
6857
6929
|
variant: "outlined",
|
|
6858
6930
|
size: "small",
|
|
6859
6931
|
onClick: Ce,
|
|
6860
6932
|
children: "Test"
|
|
6861
6933
|
}),
|
|
6862
|
-
/* @__PURE__ */ c(
|
|
6934
|
+
/* @__PURE__ */ c(Dc, {
|
|
6863
6935
|
color: "secondary",
|
|
6864
6936
|
variant: "outlined",
|
|
6865
6937
|
size: "small",
|
|
@@ -6869,7 +6941,7 @@ function Rc(e) {
|
|
|
6869
6941
|
/* @__PURE__ */ c(Mo, {
|
|
6870
6942
|
open: P,
|
|
6871
6943
|
onClose: Te,
|
|
6872
|
-
children: /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(
|
|
6944
|
+
children: /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(Dc, {
|
|
6873
6945
|
color: "secondary",
|
|
6874
6946
|
variant: "outlined",
|
|
6875
6947
|
size: "small",
|
|
@@ -6881,7 +6953,8 @@ function Rc(e) {
|
|
|
6881
6953
|
})] })
|
|
6882
6954
|
})
|
|
6883
6955
|
] }),
|
|
6884
|
-
/* @__PURE__ */ c(
|
|
6956
|
+
/* @__PURE__ */ c(Dc, {
|
|
6957
|
+
"data-testId": `${t}.button.finish`,
|
|
6885
6958
|
color: "secondary",
|
|
6886
6959
|
variant: "contained",
|
|
6887
6960
|
size: "small",
|
|
@@ -6895,6 +6968,6 @@ function Rc(e) {
|
|
|
6895
6968
|
});
|
|
6896
6969
|
}
|
|
6897
6970
|
//#endregion
|
|
6898
|
-
export {
|
|
6971
|
+
export { qo as ACTION_CROP, Wo as ACTION_RESET, Jo as ACTION_SKIP_CROP, Yo as ACTION_UNDO_CROP, Uc as ModalImageCropped, us as ModalImageLoaded, os as identifyMachine };
|
|
6899
6972
|
|
|
6900
6973
|
//# sourceMappingURL=frame.identify.js.map
|