@overmap-ai/forms 1.0.40-file-component-improvements.1 → 1.0.40-file-component-improvements.3
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/forms.js +556 -569
- package/dist/forms.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/forms.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var zs = Object.defineProperty;
|
|
2
2
|
var Us = (r, e, t) => e in r ? zs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var R = (r, e, t) => Us(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { jsxs as _, Fragment as
|
|
5
|
-
import { Card as pt, LuIcon as N, Text as pe, Spinner as ti, Overlay as xt, preventDefault as Hs, ButtonGroup as ue, Tooltip as Xt, IconButton as ne, Separator as
|
|
6
|
-
import { cx as
|
|
4
|
+
import { jsxs as _, Fragment as Ie, jsx as p } from "react/jsx-runtime";
|
|
5
|
+
import { Card as pt, LuIcon as N, Text as pe, Spinner as ti, Overlay as xt, preventDefault as Hs, ButtonGroup as ue, Tooltip as Xt, IconButton as ne, Separator as Vt, Input as ge, Badge as ye, Checkbox as Hr, CheckboxGroup as En, Popover as xe, Button as B, DayPicker as za, Menu as D, OneTimePasswordField as Sn, stopPropagation as mt, RadioGroup as Wt, TextArea as sr, Rating as Fi, Heading as Gs, toast as qe, ToggleGroup as bn, useAlertDialog as qs } from "@overmap-ai/blocks";
|
|
6
|
+
import { cx as kt, cva as ri } from "class-variance-authority";
|
|
7
7
|
import { forwardRef as ni, createElement as kn, memo as L, createContext as jr, useState as Xe, useEffect as dt, useContext as Xs, useCallback as b, Fragment as ii, use as ce, useMemo as se, useRef as Yr, useLayoutEffect as Ws } from "react";
|
|
8
8
|
import "@xyflow/react/dist/style.css";
|
|
9
9
|
import { getBezierPath as $s, Position as yt, BaseEdge as js, EdgeLabelRenderer as Ys, NodeToolbar as Zs, Handle as Pi, MarkerType as Ks, useNodesState as Qs, useEdgesState as Js, ReactFlow as el, Panel as In } from "@xyflow/react";
|
|
@@ -651,15 +651,15 @@ const Mc = [
|
|
|
651
651
|
const Fc = [
|
|
652
652
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
653
653
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
654
|
-
],
|
|
655
|
-
const { ref: e, file: t, className: n, error: i, rightSlot: a, size: o, ...s } = r, l = () => i ? /* @__PURE__ */ _(
|
|
654
|
+
], bt = q("x", Fc), so = L((r) => {
|
|
655
|
+
const { ref: e, file: t, className: n, error: i, rightSlot: a, size: o, ...s } = r, l = () => i ? /* @__PURE__ */ _(Ie, { children: [
|
|
656
656
|
/* @__PURE__ */ p(N, { icon: bl, color: "var(--base-a11)" }),
|
|
657
657
|
/* @__PURE__ */ p(pe, { accentColor: "base", className: "truncate", size: o, children: i })
|
|
658
|
-
] }) : t ? /* @__PURE__ */ _(
|
|
658
|
+
] }) : t ? /* @__PURE__ */ _(Ie, { children: [
|
|
659
659
|
/* @__PURE__ */ p(N, { icon: Yl, color: "var(--base-a11)" }),
|
|
660
660
|
/* @__PURE__ */ p(pe, { className: "truncate", size: o, children: t.name })
|
|
661
|
-
] }) : /* @__PURE__ */ p(
|
|
662
|
-
return /* @__PURE__ */ _(pt, { className:
|
|
661
|
+
] }) : /* @__PURE__ */ p(Ie, { children: /* @__PURE__ */ p("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ p(ti, { size: o }) }) });
|
|
662
|
+
return /* @__PURE__ */ _(pt, { className: kt(n, "flex w-full items-center gap-2"), ref: e, size: "xs", ...s, children: [
|
|
663
663
|
l(),
|
|
664
664
|
a
|
|
665
665
|
] });
|
|
@@ -776,11 +776,11 @@ const Ce = jr({}), co = (r) => {
|
|
|
776
776
|
URL.revokeObjectURL(n);
|
|
777
777
|
};
|
|
778
778
|
}, [r]), e;
|
|
779
|
-
},
|
|
779
|
+
}, br = L((r) => {
|
|
780
780
|
const { file: e, ...t } = r, n = co(e);
|
|
781
781
|
return n ? /* @__PURE__ */ p("img", { src: n, alt: e.name, ...t }) : null;
|
|
782
782
|
});
|
|
783
|
-
|
|
783
|
+
br.displayName = "ImageFile";
|
|
784
784
|
const uo = jr(() => {
|
|
785
785
|
throw new Error("No ImageViewerProvider found");
|
|
786
786
|
}), si = () => Xs(uo), fo = L((r) => {
|
|
@@ -799,12 +799,12 @@ const uo = jr(() => {
|
|
|
799
799
|
/* @__PURE__ */ p(Xt.Trigger, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: n, "aria-label": "download", children: /* @__PURE__ */ p(N, { icon: Ja }) }) }),
|
|
800
800
|
/* @__PURE__ */ p(Xt.Content, { size: "sm", children: "Download" })
|
|
801
801
|
] }),
|
|
802
|
-
/* @__PURE__ */ p(
|
|
803
|
-
/* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: t, "aria-label": "close", children: /* @__PURE__ */ p(N, { icon:
|
|
802
|
+
/* @__PURE__ */ p(Vt, { orientation: "vertical", size: "sm" }),
|
|
803
|
+
/* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: t, "aria-label": "close", children: /* @__PURE__ */ p(N, { icon: bt }) }) })
|
|
804
804
|
]
|
|
805
805
|
}
|
|
806
806
|
),
|
|
807
|
-
/* @__PURE__ */ p("figure", { className: "flex size-full items-center justify-center overflow-hidden p-4", children: /* @__PURE__ */ p(
|
|
807
|
+
/* @__PURE__ */ p("figure", { className: "flex size-full items-center justify-center overflow-hidden p-4", children: /* @__PURE__ */ p(br, { className: "max-h-full max-w-full", file: e }) })
|
|
808
808
|
] }) });
|
|
809
809
|
});
|
|
810
810
|
fo.displayName = "ImageViewer";
|
|
@@ -825,7 +825,7 @@ const Pc = L((r) => {
|
|
|
825
825
|
] });
|
|
826
826
|
});
|
|
827
827
|
Pc.displayName = "FileViewerProvider";
|
|
828
|
-
const
|
|
828
|
+
const Me = L((r) => {
|
|
829
829
|
const { label: e, error: t, description: n, required: i, children: a, inputId: o, image: s, size: l } = r, [c, u] = Xe(void 0), d = si();
|
|
830
830
|
dt(() => {
|
|
831
831
|
s instanceof Promise ? s.then(u).catch(console.error) : u(s);
|
|
@@ -837,7 +837,7 @@ const Re = L((r) => {
|
|
|
837
837
|
}, [d, c]), h = i ? `${e} *` : e;
|
|
838
838
|
return /* @__PURE__ */ _("div", { className: "flex flex-col gap-1", children: [
|
|
839
839
|
c && /* @__PURE__ */ p(
|
|
840
|
-
|
|
840
|
+
br,
|
|
841
841
|
{
|
|
842
842
|
className: "h-[100px] w-full min-w-[300px] cursor-pointer rounded-md object-cover",
|
|
843
843
|
file: c,
|
|
@@ -852,7 +852,7 @@ const Re = L((r) => {
|
|
|
852
852
|
!!t && /* @__PURE__ */ p(pe, { accentColor: "danger", size: l, children: t })
|
|
853
853
|
] });
|
|
854
854
|
});
|
|
855
|
-
|
|
855
|
+
Me.displayName = "InputWithLabel";
|
|
856
856
|
const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e.identifier)), Ln = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e.identifier)), ze = (r) => {
|
|
857
857
|
const { field: e } = r, {
|
|
858
858
|
field: { value: t, name: n, onChange: i, onBlur: a, disabled: o },
|
|
@@ -910,7 +910,7 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
|
|
|
910
910
|
a();
|
|
911
911
|
}, [a]);
|
|
912
912
|
return /* @__PURE__ */ p(rl, { onDragEnd: C, children: /* @__PURE__ */ _(
|
|
913
|
-
|
|
913
|
+
Me,
|
|
914
914
|
{
|
|
915
915
|
size: t,
|
|
916
916
|
inputId: e.identifier,
|
|
@@ -991,7 +991,7 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
|
|
|
991
991
|
onClick: () => {
|
|
992
992
|
m(O);
|
|
993
993
|
},
|
|
994
|
-
children: /* @__PURE__ */ p(N, { icon:
|
|
994
|
+
children: /* @__PURE__ */ p(N, { icon: bt })
|
|
995
995
|
}
|
|
996
996
|
)
|
|
997
997
|
]
|
|
@@ -1137,7 +1137,7 @@ const po = L((r) => {
|
|
|
1137
1137
|
a();
|
|
1138
1138
|
}, [a]);
|
|
1139
1139
|
return /* @__PURE__ */ p(
|
|
1140
|
-
|
|
1140
|
+
Me,
|
|
1141
1141
|
{
|
|
1142
1142
|
size: t,
|
|
1143
1143
|
inputId: e.identifier,
|
|
@@ -1229,7 +1229,7 @@ const vo = L((r) => {
|
|
|
1229
1229
|
f.key === "Enter" && f.preventDefault();
|
|
1230
1230
|
}, []);
|
|
1231
1231
|
return /* @__PURE__ */ p(
|
|
1232
|
-
|
|
1232
|
+
Me,
|
|
1233
1233
|
{
|
|
1234
1234
|
size: t,
|
|
1235
1235
|
inputId: e.identifier,
|
|
@@ -1488,7 +1488,7 @@ const xo = L((r) => {
|
|
|
1488
1488
|
a();
|
|
1489
1489
|
}, [a]);
|
|
1490
1490
|
return /* @__PURE__ */ p(
|
|
1491
|
-
|
|
1491
|
+
Me,
|
|
1492
1492
|
{
|
|
1493
1493
|
size: t,
|
|
1494
1494
|
inputId: e.identifier,
|
|
@@ -1591,7 +1591,7 @@ const yo = L((r) => {
|
|
|
1591
1591
|
[a]
|
|
1592
1592
|
);
|
|
1593
1593
|
return /* @__PURE__ */ p(
|
|
1594
|
-
|
|
1594
|
+
Me,
|
|
1595
1595
|
{
|
|
1596
1596
|
size: t,
|
|
1597
1597
|
inputId: e.identifier,
|
|
@@ -1638,7 +1638,7 @@ const yo = L((r) => {
|
|
|
1638
1638
|
);
|
|
1639
1639
|
});
|
|
1640
1640
|
yo.displayName = "DateFieldInput";
|
|
1641
|
-
class
|
|
1641
|
+
class wr extends tt {
|
|
1642
1642
|
constructor(t) {
|
|
1643
1643
|
super(t);
|
|
1644
1644
|
R(this, "type", "date");
|
|
@@ -1650,13 +1650,13 @@ class Cr extends tt {
|
|
|
1650
1650
|
return super.getOptions();
|
|
1651
1651
|
}
|
|
1652
1652
|
duplicate(t) {
|
|
1653
|
-
return new
|
|
1653
|
+
return new wr({
|
|
1654
1654
|
...this.getOptions(),
|
|
1655
1655
|
identifier: t
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
1658
|
static deserialize(t) {
|
|
1659
|
-
return new
|
|
1659
|
+
return new wr(t);
|
|
1660
1660
|
}
|
|
1661
1661
|
setOptions(t) {
|
|
1662
1662
|
super.setOptions(t);
|
|
@@ -1703,7 +1703,7 @@ const mo = L((r) => {
|
|
|
1703
1703
|
[a]
|
|
1704
1704
|
);
|
|
1705
1705
|
return /* @__PURE__ */ p(
|
|
1706
|
-
|
|
1706
|
+
Me,
|
|
1707
1707
|
{
|
|
1708
1708
|
size: t,
|
|
1709
1709
|
inputId: e.identifier,
|
|
@@ -1752,7 +1752,7 @@ const mo = L((r) => {
|
|
|
1752
1752
|
);
|
|
1753
1753
|
});
|
|
1754
1754
|
mo.displayName = "MultiSelectFieldInput";
|
|
1755
|
-
class
|
|
1755
|
+
class St extends Qr {
|
|
1756
1756
|
constructor(t) {
|
|
1757
1757
|
const { placeholder: n, ...i } = t;
|
|
1758
1758
|
super(i);
|
|
@@ -1770,7 +1770,7 @@ class bt extends Qr {
|
|
|
1770
1770
|
};
|
|
1771
1771
|
}
|
|
1772
1772
|
duplicate(t) {
|
|
1773
|
-
return new
|
|
1773
|
+
return new St({
|
|
1774
1774
|
...this.getOptions(),
|
|
1775
1775
|
identifier: t
|
|
1776
1776
|
});
|
|
@@ -1780,7 +1780,7 @@ class bt extends Qr {
|
|
|
1780
1780
|
this.placeholder = n, super.setOptions(t);
|
|
1781
1781
|
}
|
|
1782
1782
|
static deserialize(t) {
|
|
1783
|
-
return new
|
|
1783
|
+
return new St(t);
|
|
1784
1784
|
}
|
|
1785
1785
|
serializeValue(t) {
|
|
1786
1786
|
return t;
|
|
@@ -1827,7 +1827,7 @@ const Co = L((r) => {
|
|
|
1827
1827
|
[a]
|
|
1828
1828
|
), d = se(() => e.options.find((f) => f.value === n), [e.options, n]);
|
|
1829
1829
|
return /* @__PURE__ */ p(
|
|
1830
|
-
|
|
1830
|
+
Me,
|
|
1831
1831
|
{
|
|
1832
1832
|
size: t,
|
|
1833
1833
|
inputId: e.identifier,
|
|
@@ -1870,7 +1870,7 @@ const Co = L((r) => {
|
|
|
1870
1870
|
);
|
|
1871
1871
|
});
|
|
1872
1872
|
Co.displayName = "SelectFieldInput";
|
|
1873
|
-
class
|
|
1873
|
+
class Ft extends Qr {
|
|
1874
1874
|
constructor(t) {
|
|
1875
1875
|
const { placeholder: n, ...i } = t;
|
|
1876
1876
|
super(i);
|
|
@@ -1888,7 +1888,7 @@ class Pt extends Qr {
|
|
|
1888
1888
|
};
|
|
1889
1889
|
}
|
|
1890
1890
|
duplicate(t) {
|
|
1891
|
-
return new
|
|
1891
|
+
return new Ft({
|
|
1892
1892
|
...this.getOptions(),
|
|
1893
1893
|
identifier: t
|
|
1894
1894
|
});
|
|
@@ -1898,7 +1898,7 @@ class Pt extends Qr {
|
|
|
1898
1898
|
this.placeholder = n, super.setOptions(t);
|
|
1899
1899
|
}
|
|
1900
1900
|
static deserialize(t) {
|
|
1901
|
-
return new
|
|
1901
|
+
return new Ft(t);
|
|
1902
1902
|
}
|
|
1903
1903
|
serializeValue(t) {
|
|
1904
1904
|
return t;
|
|
@@ -1938,7 +1938,7 @@ const wo = L((r) => {
|
|
|
1938
1938
|
a();
|
|
1939
1939
|
}, [a]), d = se(() => Array.from({ length: e.length }, () => G()), [e.length]);
|
|
1940
1940
|
return /* @__PURE__ */ p(
|
|
1941
|
-
|
|
1941
|
+
Me,
|
|
1942
1942
|
{
|
|
1943
1943
|
size: t,
|
|
1944
1944
|
inputId: e.identifier,
|
|
@@ -2002,7 +2002,7 @@ class Kt extends tt {
|
|
|
2002
2002
|
showDirectly: !1
|
|
2003
2003
|
},
|
|
2004
2004
|
{
|
|
2005
|
-
field: new
|
|
2005
|
+
field: new Ft({
|
|
2006
2006
|
label: "Type",
|
|
2007
2007
|
required: !1,
|
|
2008
2008
|
identifier: `${n}validationType`,
|
|
@@ -2104,21 +2104,21 @@ const $t = {
|
|
|
2104
2104
|
label: "N/A",
|
|
2105
2105
|
icon: Rl
|
|
2106
2106
|
}
|
|
2107
|
-
},
|
|
2108
|
-
class
|
|
2107
|
+
}, _r = Object.keys($t);
|
|
2108
|
+
class Pt extends File {
|
|
2109
2109
|
constructor(t, ...n) {
|
|
2110
2110
|
super(...n);
|
|
2111
2111
|
R(this, "uuid");
|
|
2112
2112
|
this.uuid = t;
|
|
2113
2113
|
}
|
|
2114
2114
|
static from(t, n) {
|
|
2115
|
-
return new
|
|
2115
|
+
return new Pt(t, [n], n.name, {
|
|
2116
2116
|
lastModified: n.lastModified,
|
|
2117
2117
|
type: n.type
|
|
2118
2118
|
});
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
|
-
class
|
|
2121
|
+
class Qt extends Promise {
|
|
2122
2122
|
constructor(t, n) {
|
|
2123
2123
|
super(t);
|
|
2124
2124
|
R(this, "_uuid");
|
|
@@ -2131,7 +2131,7 @@ class br extends Promise {
|
|
|
2131
2131
|
this._uuid = t;
|
|
2132
2132
|
}
|
|
2133
2133
|
static from(t, n) {
|
|
2134
|
-
return new
|
|
2134
|
+
return new Qt((i, a) => {
|
|
2135
2135
|
Promise.resolve(t).then(i).catch(a);
|
|
2136
2136
|
}, n);
|
|
2137
2137
|
}
|
|
@@ -2150,7 +2150,7 @@ class br extends Promise {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
2152
|
function kc(r) {
|
|
2153
|
-
return Array.isArray(r) ? r.every((e) => e instanceof
|
|
2153
|
+
return Array.isArray(r) ? r.every((e) => e instanceof Qt || e instanceof Pt) : !1;
|
|
2154
2154
|
}
|
|
2155
2155
|
function li(r, e) {
|
|
2156
2156
|
const t = new Set(r.map(({ uuid: i }) => i)), n = new Set(e.map(({ uuid: i }) => i));
|
|
@@ -2161,27 +2161,21 @@ const _o = L((r) => {
|
|
|
2161
2161
|
return /* @__PURE__ */ _(
|
|
2162
2162
|
pt,
|
|
2163
2163
|
{
|
|
2164
|
-
className:
|
|
2164
|
+
className: kt(a, "p-0! relative flex h-48 w-full flex-col overflow-hidden"),
|
|
2165
2165
|
ref: e,
|
|
2166
2166
|
size: "xs",
|
|
2167
2167
|
...s,
|
|
2168
2168
|
children: [
|
|
2169
2169
|
!t && !n && /* @__PURE__ */ p("div", { className: "absolute inset-0 flex grow items-center justify-center", children: /* @__PURE__ */ p(ti, {}) }),
|
|
2170
|
-
!!t && !n && /* @__PURE__ */ p("div", { className: "flex
|
|
2171
|
-
/* @__PURE__ */
|
|
2172
|
-
|
|
2173
|
-
"div",
|
|
2174
|
-
|
|
2175
|
-
className:
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
n ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: ro }),
|
|
2180
|
-
/* @__PURE__ */ p(pe, { className: "truncate", size: o, children: n ?? (t == null ? void 0 : t.name) }),
|
|
2181
|
-
i
|
|
2182
|
-
]
|
|
2183
|
-
}
|
|
2184
|
-
)
|
|
2170
|
+
!!t && !n && /* @__PURE__ */ p("div", { className: "flex grow items-center justify-center overflow-hidden p-3", children: /* @__PURE__ */ p(br, { className: "size-full max-w-full object-cover", file: t }) }),
|
|
2171
|
+
(!!t || !!n) && /* @__PURE__ */ _(Ie, { children: [
|
|
2172
|
+
/* @__PURE__ */ p(Vt, { size: "full" }),
|
|
2173
|
+
/* @__PURE__ */ _("div", { className: "flex w-full shrink-0 items-center gap-2 self-end p-3", children: [
|
|
2174
|
+
n ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: ro }),
|
|
2175
|
+
/* @__PURE__ */ p(pe, { className: "truncate", size: o, children: n ?? (t == null ? void 0 : t.name) }),
|
|
2176
|
+
i
|
|
2177
|
+
] })
|
|
2178
|
+
] })
|
|
2185
2179
|
]
|
|
2186
2180
|
}
|
|
2187
2181
|
);
|
|
@@ -2197,49 +2191,42 @@ const Eo = L((r) => {
|
|
|
2197
2191
|
return /* @__PURE__ */ _(
|
|
2198
2192
|
pt,
|
|
2199
2193
|
{
|
|
2200
|
-
className:
|
|
2194
|
+
className: kt(n, "p-0! relative flex h-48 w-full flex-col overflow-hidden"),
|
|
2201
2195
|
ref: e,
|
|
2202
2196
|
size: "xs",
|
|
2203
2197
|
...s,
|
|
2204
2198
|
children: [
|
|
2205
2199
|
!t && !i && /* @__PURE__ */ p("div", { className: "absolute inset-0 flex grow items-center justify-center", children: /* @__PURE__ */ p(ti, {}) }),
|
|
2206
|
-
!!t && !i && /* @__PURE__ */ p("div", { className: "flex
|
|
2207
|
-
/* @__PURE__ */
|
|
2208
|
-
|
|
2209
|
-
"div",
|
|
2210
|
-
|
|
2211
|
-
className:
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
i ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: Vc }),
|
|
2216
|
-
/* @__PURE__ */ p(pe, { className: "truncate", size: o, children: i ?? (t == null ? void 0 : t.name) }),
|
|
2217
|
-
a
|
|
2218
|
-
]
|
|
2219
|
-
}
|
|
2220
|
-
)
|
|
2200
|
+
!!t && !i && /* @__PURE__ */ p("div", { className: "flex grow items-center justify-center overflow-hidden p-3", children: /* @__PURE__ */ p(Ao, { className: "size-full max-w-full object-cover", file: t, controls: !0 }) }),
|
|
2201
|
+
(!!t || !!i) && /* @__PURE__ */ _(Ie, { children: [
|
|
2202
|
+
/* @__PURE__ */ p(Vt, { size: "full" }),
|
|
2203
|
+
/* @__PURE__ */ _("div", { className: "flex w-full shrink-0 items-center gap-2 self-end p-3", children: [
|
|
2204
|
+
i ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: Vc }),
|
|
2205
|
+
/* @__PURE__ */ p(pe, { className: "truncate", size: o, children: i ?? (t == null ? void 0 : t.name) }),
|
|
2206
|
+
a
|
|
2207
|
+
] })
|
|
2208
|
+
] })
|
|
2221
2209
|
]
|
|
2222
2210
|
}
|
|
2223
2211
|
);
|
|
2224
2212
|
});
|
|
2225
2213
|
Eo.displayName = "VideoCard";
|
|
2226
2214
|
const ci = L((r) => {
|
|
2227
|
-
const { fileOrPromise: e, onRemove: t, disabled: n, size: i } = r, [a, o] = Xe(
|
|
2215
|
+
const { fileOrPromise: e, onRemove: t, disabled: n, size: i } = r, [a, o] = Xe(
|
|
2216
|
+
e instanceof Qt ? null : e
|
|
2217
|
+
), [s, l] = Xe(null), c = si();
|
|
2228
2218
|
dt(() => {
|
|
2219
|
+
if (l(null), !(e instanceof Qt)) {
|
|
2220
|
+
o(e);
|
|
2221
|
+
return;
|
|
2222
|
+
}
|
|
2223
|
+
o(null);
|
|
2229
2224
|
let m = !0;
|
|
2230
|
-
return
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
o(A);
|
|
2236
|
-
} catch (A) {
|
|
2237
|
-
if (!m) return;
|
|
2238
|
-
l(A instanceof Error ? A.message : "Unknown error");
|
|
2239
|
-
}
|
|
2240
|
-
else
|
|
2241
|
-
o(e);
|
|
2242
|
-
})(), () => {
|
|
2225
|
+
return e.then((C) => {
|
|
2226
|
+
m && o(C);
|
|
2227
|
+
}).catch((C) => {
|
|
2228
|
+
m && l(C instanceof Error ? C.message : "Unknown error");
|
|
2229
|
+
}), () => {
|
|
2243
2230
|
m = !1;
|
|
2244
2231
|
};
|
|
2245
2232
|
}, [e]);
|
|
@@ -2278,7 +2265,7 @@ const ci = L((r) => {
|
|
|
2278
2265
|
/* @__PURE__ */ p(N, { icon: Ja }),
|
|
2279
2266
|
" Download"
|
|
2280
2267
|
] }),
|
|
2281
|
-
n ? null : /* @__PURE__ */ _(
|
|
2268
|
+
n ? null : /* @__PURE__ */ _(Ie, { children: [
|
|
2282
2269
|
/* @__PURE__ */ p(D.Separator, {}),
|
|
2283
2270
|
/* @__PURE__ */ _(D.Item, { onSelect: d, children: [
|
|
2284
2271
|
/* @__PURE__ */ p(N, { icon: Lt }),
|
|
@@ -2357,7 +2344,7 @@ const So = L((r) => {
|
|
|
2357
2344
|
(w = c.current) == null || w.click();
|
|
2358
2345
|
}, []), g = b(
|
|
2359
2346
|
(w) => {
|
|
2360
|
-
const S = Array.from(w.target.files ?? []).map((T) =>
|
|
2347
|
+
const S = Array.from(w.target.files ?? []).map((T) => Pt.from(G(), T)), O = {
|
|
2361
2348
|
...n,
|
|
2362
2349
|
files: [...n.files, ...S]
|
|
2363
2350
|
};
|
|
@@ -2382,7 +2369,7 @@ const So = L((r) => {
|
|
|
2382
2369
|
}, [a, n]);
|
|
2383
2370
|
const y = n.status && e.showNotesAndFilesOn.includes(n.status), m = `${e.identifier}-status`, C = `${e.identifier}-notes`, A = `${e.identifier}-files`;
|
|
2384
2371
|
return /* @__PURE__ */ p(
|
|
2385
|
-
|
|
2372
|
+
Me,
|
|
2386
2373
|
{
|
|
2387
2374
|
size: t,
|
|
2388
2375
|
inputId: e.identifier,
|
|
@@ -2404,7 +2391,7 @@ const So = L((r) => {
|
|
|
2404
2391
|
variant: "surface",
|
|
2405
2392
|
size: t,
|
|
2406
2393
|
onValueChange: u,
|
|
2407
|
-
children:
|
|
2394
|
+
children: _r.map((w) => {
|
|
2408
2395
|
const { label: S } = $t[w];
|
|
2409
2396
|
return /* @__PURE__ */ _("label", { className: "flex min-w-0 items-center gap-2", children: [
|
|
2410
2397
|
/* @__PURE__ */ p(Wt.Item, { value: w, children: /* @__PURE__ */ p(Wt.Indicator, { children: /* @__PURE__ */ p(N, { icon: Za, className: "fill-current" }) }) }),
|
|
@@ -2413,9 +2400,9 @@ const So = L((r) => {
|
|
|
2413
2400
|
})
|
|
2414
2401
|
}
|
|
2415
2402
|
),
|
|
2416
|
-
y && /* @__PURE__ */ _(
|
|
2403
|
+
y && /* @__PURE__ */ _(Ie, { children: [
|
|
2417
2404
|
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
2418
|
-
|
|
2405
|
+
sr,
|
|
2419
2406
|
{
|
|
2420
2407
|
id: C,
|
|
2421
2408
|
value: n.notes ?? "",
|
|
@@ -2478,7 +2465,7 @@ const So = L((r) => {
|
|
|
2478
2465
|
);
|
|
2479
2466
|
});
|
|
2480
2467
|
So.displayName = "PassFailFieldInput";
|
|
2481
|
-
const bo = (r) => typeof r == "string" &&
|
|
2468
|
+
const bo = (r) => typeof r == "string" && _r.includes(r), Lc = (r) => !(r === null || typeof r != "object" || !("status" in r) || !bo(r.status) || !("notes" in r) || typeof r.notes != "string" || !("files" in r) || !(Array.isArray(r.files) && r.files.length === 0)), zc = (r) => !(r === null || typeof r != "object" || !("status" in r) || !bo(r.status) || !("notes" in r) || typeof r.notes != "string" || !("files" in r) || !kc(r.files)), Uc = (r) => ({
|
|
2482
2469
|
status: r.status,
|
|
2483
2470
|
notes: r.notes,
|
|
2484
2471
|
files: []
|
|
@@ -2487,7 +2474,7 @@ const bo = (r) => typeof r == "string" && wr.includes(r), Lc = (r) => !(r === nu
|
|
|
2487
2474
|
notes: r.notes,
|
|
2488
2475
|
files: []
|
|
2489
2476
|
}), Gc = (r, e) => !(r.status !== e.status || r.notes !== e.notes || !li(r.files, e.files)), qc = (r, e) => !(r.status !== e.status || r.notes !== e.notes || r.files.length !== e.files.length);
|
|
2490
|
-
class
|
|
2477
|
+
class Jt extends tt {
|
|
2491
2478
|
constructor(t) {
|
|
2492
2479
|
const { showNotesAndFilesOn: n, ...i } = t;
|
|
2493
2480
|
super(i);
|
|
@@ -2499,11 +2486,11 @@ class Qt extends tt {
|
|
|
2499
2486
|
const n = t && `${t}.`;
|
|
2500
2487
|
return [
|
|
2501
2488
|
{
|
|
2502
|
-
field: new
|
|
2489
|
+
field: new St({
|
|
2503
2490
|
identifier: `${n}showNotesAndFilesOn`,
|
|
2504
2491
|
label: "Show notes and files on",
|
|
2505
2492
|
description: "Show the notes and files on desired statuses.",
|
|
2506
|
-
options:
|
|
2493
|
+
options: _r.map((i) => {
|
|
2507
2494
|
const { label: a } = $t[i];
|
|
2508
2495
|
return {
|
|
2509
2496
|
value: i,
|
|
@@ -2529,7 +2516,7 @@ class Qt extends tt {
|
|
|
2529
2516
|
};
|
|
2530
2517
|
}
|
|
2531
2518
|
duplicate(t) {
|
|
2532
|
-
return new
|
|
2519
|
+
return new Jt({
|
|
2533
2520
|
...this.getOptions(),
|
|
2534
2521
|
identifier: t
|
|
2535
2522
|
});
|
|
@@ -2549,7 +2536,7 @@ class Qt extends tt {
|
|
|
2549
2536
|
})), t;
|
|
2550
2537
|
}
|
|
2551
2538
|
static deserialize(t) {
|
|
2552
|
-
return new
|
|
2539
|
+
return new Jt({
|
|
2553
2540
|
...t,
|
|
2554
2541
|
showNotesAndFilesOn: t.showNotesAndFilesOn ?? !1
|
|
2555
2542
|
});
|
|
@@ -2612,7 +2599,7 @@ const Io = L((r) => {
|
|
|
2612
2599
|
o(null), a();
|
|
2613
2600
|
}, [a, o]);
|
|
2614
2601
|
return /* @__PURE__ */ p(
|
|
2615
|
-
|
|
2602
|
+
Me,
|
|
2616
2603
|
{
|
|
2617
2604
|
size: t,
|
|
2618
2605
|
inputId: e.identifier,
|
|
@@ -2655,7 +2642,7 @@ const Io = L((r) => {
|
|
|
2655
2642
|
accentColor: "base",
|
|
2656
2643
|
size: t,
|
|
2657
2644
|
children: [
|
|
2658
|
-
/* @__PURE__ */ p(N, { icon:
|
|
2645
|
+
/* @__PURE__ */ p(N, { icon: bt }),
|
|
2659
2646
|
"Clear"
|
|
2660
2647
|
]
|
|
2661
2648
|
}
|
|
@@ -2667,7 +2654,7 @@ const Io = L((r) => {
|
|
|
2667
2654
|
);
|
|
2668
2655
|
});
|
|
2669
2656
|
Io.displayName = "RadioFieldInput";
|
|
2670
|
-
class
|
|
2657
|
+
class er extends Qr {
|
|
2671
2658
|
constructor(t) {
|
|
2672
2659
|
super(t);
|
|
2673
2660
|
R(this, "type", "radio");
|
|
@@ -2679,7 +2666,7 @@ class Jt extends Qr {
|
|
|
2679
2666
|
return super.getOptions();
|
|
2680
2667
|
}
|
|
2681
2668
|
duplicate(t) {
|
|
2682
|
-
return new
|
|
2669
|
+
return new er({
|
|
2683
2670
|
...this.getOptions(),
|
|
2684
2671
|
identifier: t
|
|
2685
2672
|
});
|
|
@@ -2688,7 +2675,7 @@ class Jt extends Qr {
|
|
|
2688
2675
|
super.setOptions(t);
|
|
2689
2676
|
}
|
|
2690
2677
|
static deserialize(t) {
|
|
2691
|
-
return new
|
|
2678
|
+
return new er(t);
|
|
2692
2679
|
}
|
|
2693
2680
|
serializeValue(t) {
|
|
2694
2681
|
return t;
|
|
@@ -2743,7 +2730,7 @@ const Xc = ri(
|
|
|
2743
2730
|
o(null), a();
|
|
2744
2731
|
}, [a, o]), d = Array.from({ length: e.maxRating }, (f, h) => h + 1);
|
|
2745
2732
|
return /* @__PURE__ */ p(
|
|
2746
|
-
|
|
2733
|
+
Me,
|
|
2747
2734
|
{
|
|
2748
2735
|
size: t,
|
|
2749
2736
|
inputId: e.identifier,
|
|
@@ -2773,13 +2760,13 @@ const Xc = ri(
|
|
|
2773
2760
|
))
|
|
2774
2761
|
}
|
|
2775
2762
|
),
|
|
2776
|
-
!l && n !== null && /* @__PURE__ */ p(ne, { onClick: u, type: "button", variant: "ghost", accentColor: "base", size: t, children: /* @__PURE__ */ p(N, { icon:
|
|
2763
|
+
!l && n !== null && /* @__PURE__ */ p(ne, { onClick: u, type: "button", variant: "ghost", accentColor: "base", size: t, children: /* @__PURE__ */ p(N, { icon: bt }) })
|
|
2777
2764
|
] })
|
|
2778
2765
|
}
|
|
2779
2766
|
);
|
|
2780
2767
|
});
|
|
2781
2768
|
Oo.displayName = "RatingFieldInput";
|
|
2782
|
-
class
|
|
2769
|
+
class tr extends tt {
|
|
2783
2770
|
constructor(t) {
|
|
2784
2771
|
const { maxRating: n, ...i } = t;
|
|
2785
2772
|
super(i);
|
|
@@ -2824,7 +2811,7 @@ class er extends tt {
|
|
|
2824
2811
|
};
|
|
2825
2812
|
}
|
|
2826
2813
|
duplicate(t) {
|
|
2827
|
-
return new
|
|
2814
|
+
return new tr({
|
|
2828
2815
|
...this.getOptions(),
|
|
2829
2816
|
identifier: t
|
|
2830
2817
|
});
|
|
@@ -2834,7 +2821,7 @@ class er extends tt {
|
|
|
2834
2821
|
this.maxRating = n ?? this.maxRating, super.setOptions(i);
|
|
2835
2822
|
}
|
|
2836
2823
|
static deserialize(t) {
|
|
2837
|
-
return new
|
|
2824
|
+
return new tr(t);
|
|
2838
2825
|
}
|
|
2839
2826
|
serializeValue(t) {
|
|
2840
2827
|
return t;
|
|
@@ -3034,7 +3021,7 @@ var jc = /* @__PURE__ */ function() {
|
|
|
3034
3021
|
}
|
|
3035
3022
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
3036
3023
|
};
|
|
3037
|
-
}(),
|
|
3024
|
+
}(), De = (
|
|
3038
3025
|
/** @class */
|
|
3039
3026
|
function(r) {
|
|
3040
3027
|
eu(e, r);
|
|
@@ -3248,7 +3235,7 @@ var jc = /* @__PURE__ */ function() {
|
|
|
3248
3235
|
return t === void 0 && (t = void 0), parseInt(e, t);
|
|
3249
3236
|
}, r.MIN_VALUE_32_BITS = -2147483648, r.MAX_VALUE = Number.MAX_SAFE_INTEGER, r;
|
|
3250
3237
|
}()
|
|
3251
|
-
),
|
|
3238
|
+
), Re = (
|
|
3252
3239
|
/** @class */
|
|
3253
3240
|
function() {
|
|
3254
3241
|
function r(e, t) {
|
|
@@ -3701,7 +3688,7 @@ var Ee = (
|
|
|
3701
3688
|
}, r.prototype.xor = function(e) {
|
|
3702
3689
|
if (this.width !== e.getWidth() || this.height !== e.getHeight() || this.rowSize !== e.getRowSize())
|
|
3703
3690
|
throw new H("input matrix dimensions do not match");
|
|
3704
|
-
for (var t = new
|
|
3691
|
+
for (var t = new Re(Math.floor(this.width / 32) + 1), n = this.rowSize, i = this.bits, a = 0, o = this.height; a < o; a++)
|
|
3705
3692
|
for (var s = a * n, l = e.getRow(a, t).getBitArray(), c = 0; c < n; c++)
|
|
3706
3693
|
i[s + c] ^= l[c];
|
|
3707
3694
|
}, r.prototype.clear = function() {
|
|
@@ -3719,14 +3706,14 @@ var Ee = (
|
|
|
3719
3706
|
for (var u = c * s, d = e; d < a; d++)
|
|
3720
3707
|
l[u + Math.floor(d / 32)] |= 1 << (d & 31) & 4294967295;
|
|
3721
3708
|
}, r.prototype.getRow = function(e, t) {
|
|
3722
|
-
t == null || t.getSize() < this.width ? t = new
|
|
3709
|
+
t == null || t.getSize() < this.width ? t = new Re(this.width) : t.clear();
|
|
3723
3710
|
for (var n = this.rowSize, i = this.bits, a = e * n, o = 0; o < n; o++)
|
|
3724
3711
|
t.setBulk(o * 32, i[a + o]);
|
|
3725
3712
|
return t;
|
|
3726
3713
|
}, r.prototype.setRow = function(e, t) {
|
|
3727
3714
|
de.arraycopy(t.getBitArray(), 0, this.bits, e * this.rowSize, this.rowSize);
|
|
3728
3715
|
}, r.prototype.rotate180 = function() {
|
|
3729
|
-
for (var e = this.getWidth(), t = this.getHeight(), n = new
|
|
3716
|
+
for (var e = this.getWidth(), t = this.getHeight(), n = new Re(e), i = new Re(e), a = 0, o = Math.floor((t + 1) / 2); a < o; a++)
|
|
3730
3717
|
n = this.getRow(a, n), i = this.getRow(t - 1 - a, i), n.reverse(), i.reverse(), this.setRow(a, i), this.setRow(t - 1 - a, n);
|
|
3731
3718
|
}, r.prototype.getEnclosingRectangle = function() {
|
|
3732
3719
|
for (var e = this.width, t = this.height, n = this.rowSize, i = this.bits, a = e, o = t, s = -1, l = -1, c = 0; c < t; c++)
|
|
@@ -3841,7 +3828,7 @@ var Ee = (
|
|
|
3841
3828
|
}
|
|
3842
3829
|
return e.prototype.getBlackRow = function(t, n) {
|
|
3843
3830
|
var i = this.getLuminanceSource(), a = i.getWidth();
|
|
3844
|
-
n == null || n.getSize() < a ? n = new
|
|
3831
|
+
n == null || n.getSize() < a ? n = new Re(a) : n.clear(), this.initArrays(a);
|
|
3845
3832
|
for (var o = i.getRow(t, this.luminances), s = this.buckets, l = 0; l < a; l++)
|
|
3846
3833
|
s[(o[l] & 255) >> e.LUMINANCE_SHIFT]++;
|
|
3847
3834
|
var c = e.estimateBlackPoint(s);
|
|
@@ -4252,7 +4239,7 @@ var Ee = (
|
|
|
4252
4239
|
}
|
|
4253
4240
|
};
|
|
4254
4241
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4255
|
-
},
|
|
4242
|
+
}, lr = (
|
|
4256
4243
|
/** @class */
|
|
4257
4244
|
function() {
|
|
4258
4245
|
function r(e, t, n) {
|
|
@@ -4644,7 +4631,7 @@ var Ee = (
|
|
|
4644
4631
|
var l = i.decode(e);
|
|
4645
4632
|
o(l);
|
|
4646
4633
|
} catch (f) {
|
|
4647
|
-
var c = t && f instanceof I, u = f instanceof
|
|
4634
|
+
var c = t && f instanceof I, u = f instanceof De || f instanceof M, d = u && n;
|
|
4648
4635
|
if (c || d)
|
|
4649
4636
|
return setTimeout(a, i._timeBetweenDecodingAttempts, o, s);
|
|
4650
4637
|
s(f);
|
|
@@ -4666,7 +4653,7 @@ var Ee = (
|
|
|
4666
4653
|
t(a, null), setTimeout(i, n.timeBetweenScansMillis);
|
|
4667
4654
|
} catch (l) {
|
|
4668
4655
|
t(null, l);
|
|
4669
|
-
var o = l instanceof
|
|
4656
|
+
var o = l instanceof De || l instanceof M, s = l instanceof I;
|
|
4670
4657
|
(o || s) && setTimeout(i, n._timeBetweenDecodingAttempts);
|
|
4671
4658
|
}
|
|
4672
4659
|
};
|
|
@@ -4796,7 +4783,7 @@ var Hn;
|
|
|
4796
4783
|
(function(r) {
|
|
4797
4784
|
r[r.OTHER = 0] = "OTHER", r[r.ORIENTATION = 1] = "ORIENTATION", r[r.BYTE_SEGMENTS = 2] = "BYTE_SEGMENTS", r[r.ERROR_CORRECTION_LEVEL = 3] = "ERROR_CORRECTION_LEVEL", r[r.ISSUE_NUMBER = 4] = "ISSUE_NUMBER", r[r.SUGGESTED_PRICE = 5] = "SUGGESTED_PRICE", r[r.POSSIBLE_COUNTRY = 6] = "POSSIBLE_COUNTRY", r[r.UPC_EAN_EXTENSION = 7] = "UPC_EAN_EXTENSION", r[r.PDF417_EXTRA_METADATA = 8] = "PDF417_EXTRA_METADATA", r[r.STRUCTURED_APPEND_SEQUENCE = 9] = "STRUCTURED_APPEND_SEQUENCE", r[r.STRUCTURED_APPEND_PARITY = 10] = "STRUCTURED_APPEND_PARITY";
|
|
4798
4785
|
})(Hn || (Hn = {}));
|
|
4799
|
-
const
|
|
4786
|
+
const Le = Hn;
|
|
4800
4787
|
var en = (
|
|
4801
4788
|
/** @class */
|
|
4802
4789
|
function() {
|
|
@@ -4835,7 +4822,7 @@ var en = (
|
|
|
4835
4822
|
return this.structuredAppendSequenceNumber;
|
|
4836
4823
|
}, r;
|
|
4837
4824
|
}()
|
|
4838
|
-
),
|
|
4825
|
+
), vr = (
|
|
4839
4826
|
/** @class */
|
|
4840
4827
|
function() {
|
|
4841
4828
|
function r() {
|
|
@@ -4850,7 +4837,7 @@ var en = (
|
|
|
4850
4837
|
return e ^ t;
|
|
4851
4838
|
}, r;
|
|
4852
4839
|
}()
|
|
4853
|
-
),
|
|
4840
|
+
), At = (
|
|
4854
4841
|
/** @class */
|
|
4855
4842
|
function() {
|
|
4856
4843
|
function r(e, t) {
|
|
@@ -4881,13 +4868,13 @@ var en = (
|
|
|
4881
4868
|
n = 0;
|
|
4882
4869
|
for (var i = 0, a = t.length; i !== a; i++) {
|
|
4883
4870
|
var o = t[i];
|
|
4884
|
-
n =
|
|
4871
|
+
n = vr.addOrSubtract(n, o);
|
|
4885
4872
|
}
|
|
4886
4873
|
return n;
|
|
4887
4874
|
}
|
|
4888
4875
|
n = t[0];
|
|
4889
4876
|
for (var s = t.length, l = this.field, i = 1; i < s; i++)
|
|
4890
|
-
n =
|
|
4877
|
+
n = vr.addOrSubtract(l.multiply(e, n), t[i]);
|
|
4891
4878
|
return n;
|
|
4892
4879
|
}, r.prototype.addOrSubtract = function(e) {
|
|
4893
4880
|
if (!this.field.equals(e.field))
|
|
@@ -4904,7 +4891,7 @@ var en = (
|
|
|
4904
4891
|
var a = new Int32Array(n.length), o = n.length - t.length;
|
|
4905
4892
|
de.arraycopy(n, 0, a, 0, o);
|
|
4906
4893
|
for (var s = o; s < n.length; s++)
|
|
4907
|
-
a[s] =
|
|
4894
|
+
a[s] = vr.addOrSubtract(t[s - o], n[s]);
|
|
4908
4895
|
return new r(this.field, a);
|
|
4909
4896
|
}, r.prototype.multiply = function(e) {
|
|
4910
4897
|
if (!this.field.equals(e.field))
|
|
@@ -4913,7 +4900,7 @@ var en = (
|
|
|
4913
4900
|
return this.field.getZero();
|
|
4914
4901
|
for (var t = this.coefficients, n = t.length, i = e.coefficients, a = i.length, o = new Int32Array(n + a - 1), s = this.field, l = 0; l < n; l++)
|
|
4915
4902
|
for (var c = t[l], u = 0; u < a; u++)
|
|
4916
|
-
o[l + u] =
|
|
4903
|
+
o[l + u] = vr.addOrSubtract(o[l + u], s.multiply(c, i[u]));
|
|
4917
4904
|
return new r(s, o);
|
|
4918
4905
|
}, r.prototype.multiplyScalar = function(e) {
|
|
4919
4906
|
if (e === 0)
|
|
@@ -5006,7 +4993,7 @@ var en = (
|
|
|
5006
4993
|
a.expTable = o;
|
|
5007
4994
|
for (var c = new Int32Array(n), l = 0; l < n - 1; l++)
|
|
5008
4995
|
c[o[l]] = l;
|
|
5009
|
-
return a.logTable = c, a.zero = new
|
|
4996
|
+
return a.logTable = c, a.zero = new At(a, Int32Array.from([0])), a.one = new At(a, Int32Array.from([1])), a;
|
|
5010
4997
|
}
|
|
5011
4998
|
return e.prototype.getZero = function() {
|
|
5012
4999
|
return this.zero;
|
|
@@ -5018,7 +5005,7 @@ var en = (
|
|
|
5018
5005
|
if (n === 0)
|
|
5019
5006
|
return this.zero;
|
|
5020
5007
|
var i = new Int32Array(t + 1);
|
|
5021
|
-
return i[0] = n, new
|
|
5008
|
+
return i[0] = n, new At(this, i);
|
|
5022
5009
|
}, e.prototype.inverse = function(t) {
|
|
5023
5010
|
if (t === 0)
|
|
5024
5011
|
throw new To();
|
|
@@ -5034,7 +5021,7 @@ var en = (
|
|
|
5034
5021
|
}, e.prototype.equals = function(t) {
|
|
5035
5022
|
return t === this;
|
|
5036
5023
|
}, e.AZTEC_DATA_12 = new e(4201, 4096, 1), e.AZTEC_DATA_10 = new e(1033, 1024, 1), e.AZTEC_DATA_6 = new e(67, 64, 1), e.AZTEC_PARAM = new e(19, 16, 1), e.QR_CODE_FIELD_256 = new e(285, 256, 0), e.DATA_MATRIX_FIELD_256 = new e(301, 256, 1), e.AZTEC_DATA_8 = e.DATA_MATRIX_FIELD_256, e.MAXICODE_FIELD_64 = e.AZTEC_DATA_6, e;
|
|
5037
|
-
}(
|
|
5024
|
+
}(vr)
|
|
5038
5025
|
), Cu = /* @__PURE__ */ function() {
|
|
5039
5026
|
var r = function(e, t) {
|
|
5040
5027
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
@@ -5090,12 +5077,12 @@ var en = (
|
|
|
5090
5077
|
this.field = e;
|
|
5091
5078
|
}
|
|
5092
5079
|
return r.prototype.decode = function(e, t) {
|
|
5093
|
-
for (var n = this.field, i = new
|
|
5080
|
+
for (var n = this.field, i = new At(n, e), a = new Int32Array(t), o = !0, s = 0; s < t; s++) {
|
|
5094
5081
|
var l = i.evaluateAt(n.exp(s + n.getGeneratorBase()));
|
|
5095
5082
|
a[a.length - 1 - s] = l, l !== 0 && (o = !1);
|
|
5096
5083
|
}
|
|
5097
5084
|
if (!o)
|
|
5098
|
-
for (var c = new
|
|
5085
|
+
for (var c = new At(n, a), u = this.runEuclideanAlgorithm(n.buildMonomial(t, 1), c, t), d = u[0], f = u[1], h = this.findErrorLocations(d), v = this.findErrorMagnitudes(f, h), s = 0; s < h.length; s++) {
|
|
5099
5086
|
var g = e.length - 1 - n.log(h[s]);
|
|
5100
5087
|
if (g < 0)
|
|
5101
5088
|
throw new Dr("Bad error location");
|
|
@@ -5144,10 +5131,10 @@ var en = (
|
|
|
5144
5131
|
return i;
|
|
5145
5132
|
}, r;
|
|
5146
5133
|
}()
|
|
5147
|
-
),
|
|
5134
|
+
), Be;
|
|
5148
5135
|
(function(r) {
|
|
5149
5136
|
r[r.UPPER = 0] = "UPPER", r[r.LOWER = 1] = "LOWER", r[r.MIXED = 2] = "MIXED", r[r.DIGIT = 3] = "DIGIT", r[r.PUNCT = 4] = "PUNCT", r[r.BINARY = 5] = "BINARY";
|
|
5150
|
-
})(
|
|
5137
|
+
})(Be || (Be = {}));
|
|
5151
5138
|
var zi = (
|
|
5152
5139
|
/** @class */
|
|
5153
5140
|
function() {
|
|
@@ -5160,8 +5147,8 @@ var zi = (
|
|
|
5160
5147
|
}, r.highLevelDecode = function(e) {
|
|
5161
5148
|
return this.getEncodedData(e);
|
|
5162
5149
|
}, r.getEncodedData = function(e) {
|
|
5163
|
-
for (var t = e.length, n =
|
|
5164
|
-
if (i ===
|
|
5150
|
+
for (var t = e.length, n = Be.UPPER, i = Be.UPPER, a = "", o = 0; o < t; )
|
|
5151
|
+
if (i === Be.BINARY) {
|
|
5165
5152
|
if (t - o < 5)
|
|
5166
5153
|
break;
|
|
5167
5154
|
var s = r.readCode(e, o, 5);
|
|
@@ -5181,7 +5168,7 @@ var zi = (
|
|
|
5181
5168
|
}
|
|
5182
5169
|
i = n;
|
|
5183
5170
|
} else {
|
|
5184
|
-
var u = i ===
|
|
5171
|
+
var u = i === Be.DIGIT ? 4 : 5;
|
|
5185
5172
|
if (t - o < u)
|
|
5186
5173
|
break;
|
|
5187
5174
|
var c = r.readCode(e, o, u);
|
|
@@ -5193,30 +5180,30 @@ var zi = (
|
|
|
5193
5180
|
}, r.getTable = function(e) {
|
|
5194
5181
|
switch (e) {
|
|
5195
5182
|
case "L":
|
|
5196
|
-
return
|
|
5183
|
+
return Be.LOWER;
|
|
5197
5184
|
case "P":
|
|
5198
|
-
return
|
|
5185
|
+
return Be.PUNCT;
|
|
5199
5186
|
case "M":
|
|
5200
|
-
return
|
|
5187
|
+
return Be.MIXED;
|
|
5201
5188
|
case "D":
|
|
5202
|
-
return
|
|
5189
|
+
return Be.DIGIT;
|
|
5203
5190
|
case "B":
|
|
5204
|
-
return
|
|
5191
|
+
return Be.BINARY;
|
|
5205
5192
|
case "U":
|
|
5206
5193
|
default:
|
|
5207
|
-
return
|
|
5194
|
+
return Be.UPPER;
|
|
5208
5195
|
}
|
|
5209
5196
|
}, r.getCharacter = function(e, t) {
|
|
5210
5197
|
switch (e) {
|
|
5211
|
-
case
|
|
5198
|
+
case Be.UPPER:
|
|
5212
5199
|
return r.UPPER_TABLE[t];
|
|
5213
|
-
case
|
|
5200
|
+
case Be.LOWER:
|
|
5214
5201
|
return r.LOWER_TABLE[t];
|
|
5215
|
-
case
|
|
5202
|
+
case Be.MIXED:
|
|
5216
5203
|
return r.MIXED_TABLE[t];
|
|
5217
|
-
case
|
|
5204
|
+
case Be.PUNCT:
|
|
5218
5205
|
return r.PUNCT_TABLE[t];
|
|
5219
|
-
case
|
|
5206
|
+
case Be.DIGIT:
|
|
5220
5207
|
return r.DIGIT_TABLE[t];
|
|
5221
5208
|
default:
|
|
5222
5209
|
throw new Ir("Bad table");
|
|
@@ -5947,9 +5934,9 @@ var zi = (
|
|
|
5947
5934
|
throw n ?? d;
|
|
5948
5935
|
}
|
|
5949
5936
|
var l = new We(o.getText(), o.getRawBytes(), o.getNumBits(), a, P.AZTEC, de.currentTimeMillis()), c = o.getByteSegments();
|
|
5950
|
-
c != null && l.putMetadata(
|
|
5937
|
+
c != null && l.putMetadata(Le.BYTE_SEGMENTS, c);
|
|
5951
5938
|
var u = o.getECLevel();
|
|
5952
|
-
return u != null && l.putMetadata(
|
|
5939
|
+
return u != null && l.putMetadata(Le.ERROR_CORRECTION_LEVEL, u), l;
|
|
5953
5940
|
}, r.prototype.reportFoundResultPoints = function(e, t) {
|
|
5954
5941
|
if (e != null) {
|
|
5955
5942
|
var n = e.get(ve.NEED_RESULT_POINT_CALLBACK);
|
|
@@ -5982,7 +5969,7 @@ var zi = (
|
|
|
5982
5969
|
return t === void 0 && (t = 500), r.call(this, new Xn(), t) || this;
|
|
5983
5970
|
}
|
|
5984
5971
|
return e;
|
|
5985
|
-
})(
|
|
5972
|
+
})(lr);
|
|
5986
5973
|
var be = (
|
|
5987
5974
|
/** @class */
|
|
5988
5975
|
function() {
|
|
@@ -5995,7 +5982,7 @@ var be = (
|
|
|
5995
5982
|
var n = t && t.get(ve.TRY_HARDER) === !0;
|
|
5996
5983
|
if (n && e.isRotateSupported()) {
|
|
5997
5984
|
var i = e.rotateCounterClockwise(), a = this.doDecode(i, t), o = a.getResultMetadata(), s = 270;
|
|
5998
|
-
o !== null && o.get(
|
|
5985
|
+
o !== null && o.get(Le.ORIENTATION) === !0 && (s = s + o.get(Le.ORIENTATION) % 360), a.putMetadata(Le.ORIENTATION, s);
|
|
5999
5986
|
var l = a.getResultPoints();
|
|
6000
5987
|
if (l !== null)
|
|
6001
5988
|
for (var c = i.getHeight(), u = 0; u < l.length; u++)
|
|
@@ -6006,7 +5993,7 @@ var be = (
|
|
|
6006
5993
|
}
|
|
6007
5994
|
}, r.prototype.reset = function() {
|
|
6008
5995
|
}, r.prototype.doDecode = function(e, t) {
|
|
6009
|
-
var n = e.getWidth(), i = e.getHeight(), a = new
|
|
5996
|
+
var n = e.getWidth(), i = e.getHeight(), a = new Re(n), o = t && t.get(ve.TRY_HARDER) === !0, s = Math.max(1, i >> (o ? 8 : 5)), l;
|
|
6010
5997
|
o ? l = i : l = 15;
|
|
6011
5998
|
for (var c = Math.trunc(i / 2), u = 0; u < l; u++) {
|
|
6012
5999
|
var d = Math.trunc((u + 1) / 2), f = (u & 1) === 0, h = c + s * (f ? d : -d);
|
|
@@ -6027,7 +6014,7 @@ var be = (
|
|
|
6027
6014
|
try {
|
|
6028
6015
|
var w = g.decodeRow(h, a, t);
|
|
6029
6016
|
if (C === 1) {
|
|
6030
|
-
w.putMetadata(
|
|
6017
|
+
w.putMetadata(Le.ORIENTATION, 180);
|
|
6031
6018
|
var S = w.getResultPoints();
|
|
6032
6019
|
S !== null && (S[0] = new k(n - S[0].getX() - 1, S[0].getY()), S[1] = new k(n - S[1].getX() - 1, S[1].getY()));
|
|
6033
6020
|
}
|
|
@@ -6242,15 +6229,15 @@ var be = (
|
|
|
6242
6229
|
if (g = n.getNextUnset(g), !n.isRange(g, Math.min(n.getSize(), g + (g - v) / 2), !1))
|
|
6243
6230
|
throw new I();
|
|
6244
6231
|
if (A -= w * m, A % 103 !== m)
|
|
6245
|
-
throw new
|
|
6232
|
+
throw new De();
|
|
6246
6233
|
var U = h.length;
|
|
6247
6234
|
if (U === 0)
|
|
6248
6235
|
throw new I();
|
|
6249
6236
|
U > 0 && S && (u === e.CODE_CODE_C ? h = h.substring(0, U - 2) : h = h.substring(0, U - 1));
|
|
6250
|
-
for (var Z = (o[1] + o[0]) / 2, X = v + z / 2, K = c.length,
|
|
6251
|
-
|
|
6252
|
-
var
|
|
6253
|
-
return new We(h,
|
|
6237
|
+
for (var Z = (o[1] + o[0]) / 2, X = v + z / 2, K = c.length, Pe = new Uint8Array(K), Ze = 0; Ze < K; Ze++)
|
|
6238
|
+
Pe[Ze] = c[Ze];
|
|
6239
|
+
var dr = [new k(Z, t), new k(X, t)];
|
|
6240
|
+
return new We(h, Pe, 0, dr, P.CODE_128, (/* @__PURE__ */ new Date()).getTime());
|
|
6254
6241
|
}, e.CODE_PATTERNS = [
|
|
6255
6242
|
Int32Array.from([2, 1, 2, 2, 2, 2]),
|
|
6256
6243
|
Int32Array.from([2, 2, 2, 1, 2, 2]),
|
|
@@ -6443,7 +6430,7 @@ var be = (
|
|
|
6443
6430
|
for (var T = this.decodeRowResult.length - 1, F = 0, z = 0; z < T; z++)
|
|
6444
6431
|
F += e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(z));
|
|
6445
6432
|
if (this.decodeRowResult.charAt(T) !== e.ALPHABET_STRING.charAt(F % 43))
|
|
6446
|
-
throw new
|
|
6433
|
+
throw new De();
|
|
6447
6434
|
this.decodeRowResult = this.decodeRowResult.substring(0, T);
|
|
6448
6435
|
}
|
|
6449
6436
|
if (this.decodeRowResult.length === 0)
|
|
@@ -6795,7 +6782,7 @@ var be = (
|
|
|
6795
6782
|
for (var a = 1, o = 0, s = n - 1; s >= 0; s--)
|
|
6796
6783
|
o += a * e.ALPHABET_STRING.indexOf(t.charAt(s)), ++a > i && (a = 1);
|
|
6797
6784
|
if (t.charAt(n) !== e.ALPHABET_STRING[o % 47])
|
|
6798
|
-
throw new
|
|
6785
|
+
throw new De();
|
|
6799
6786
|
}, e.ALPHABET_STRING = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*", e.CHARACTER_ENCODINGS = [
|
|
6800
6787
|
276,
|
|
6801
6788
|
328,
|
|
@@ -7025,7 +7012,7 @@ var be = (
|
|
|
7025
7012
|
}
|
|
7026
7013
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
7027
7014
|
};
|
|
7028
|
-
}(),
|
|
7015
|
+
}(), rr = (
|
|
7029
7016
|
/** @class */
|
|
7030
7017
|
function(r) {
|
|
7031
7018
|
Mu(e, r);
|
|
@@ -7135,7 +7122,7 @@ var be = (
|
|
|
7135
7122
|
var i, a, o = this.decodeMiddleCounters;
|
|
7136
7123
|
o[0] = 0, o[1] = 0, o[2] = 0, o[3] = 0;
|
|
7137
7124
|
for (var s = e.getSize(), l = t[1], c = 0, u = 0; u < 5 && l < s; u++) {
|
|
7138
|
-
var d =
|
|
7125
|
+
var d = rr.decodeDigit(e, o, l, rr.L_AND_G_PATTERNS);
|
|
7139
7126
|
n += String.fromCharCode(48 + d % 10);
|
|
7140
7127
|
try {
|
|
7141
7128
|
for (var f = (i = void 0, Vu(o)), h = f.next(); !h.done; h = f.next()) {
|
|
@@ -7175,7 +7162,7 @@ var be = (
|
|
|
7175
7162
|
if (e.length !== 5)
|
|
7176
7163
|
return null;
|
|
7177
7164
|
var t = r.parseExtension5String(e);
|
|
7178
|
-
return t == null ? null : /* @__PURE__ */ new Map([[
|
|
7165
|
+
return t == null ? null : /* @__PURE__ */ new Map([[Le.SUGGESTED_PRICE, t]]);
|
|
7179
7166
|
}, r.parseExtension5String = function(e) {
|
|
7180
7167
|
var t;
|
|
7181
7168
|
switch (e.charAt(0)) {
|
|
@@ -7229,7 +7216,7 @@ var be = (
|
|
|
7229
7216
|
var i, a, o = this.decodeMiddleCounters;
|
|
7230
7217
|
o[0] = 0, o[1] = 0, o[2] = 0, o[3] = 0;
|
|
7231
7218
|
for (var s = e.getSize(), l = t[1], c = 0, u = 0; u < 2 && l < s; u++) {
|
|
7232
|
-
var d =
|
|
7219
|
+
var d = rr.decodeDigit(e, o, l, rr.L_AND_G_PATTERNS);
|
|
7233
7220
|
n += String.fromCharCode(48 + d % 10);
|
|
7234
7221
|
try {
|
|
7235
7222
|
for (var f = (i = void 0, Pu(o)), h = f.next(); !h.done; h = f.next()) {
|
|
@@ -7253,7 +7240,7 @@ var be = (
|
|
|
7253
7240
|
throw new I();
|
|
7254
7241
|
return l;
|
|
7255
7242
|
}, r.parseExtensionString = function(e) {
|
|
7256
|
-
return e.length !== 2 ? null : /* @__PURE__ */ new Map([[
|
|
7243
|
+
return e.length !== 2 ? null : /* @__PURE__ */ new Map([[Le.ISSUE_NUMBER, parseInt(e)]]);
|
|
7257
7244
|
}, r;
|
|
7258
7245
|
}()
|
|
7259
7246
|
), ku = (
|
|
@@ -7262,7 +7249,7 @@ var be = (
|
|
|
7262
7249
|
function r() {
|
|
7263
7250
|
}
|
|
7264
7251
|
return r.decodeRow = function(e, t, n) {
|
|
7265
|
-
var i =
|
|
7252
|
+
var i = rr.findGuardPattern(t, n, !1, this.EXTENSION_START_PATTERN, new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));
|
|
7266
7253
|
try {
|
|
7267
7254
|
var a = new Fu();
|
|
7268
7255
|
return a.decodeRow(e, t, i);
|
|
@@ -7326,11 +7313,11 @@ var be = (
|
|
|
7326
7313
|
if (y.length < 8)
|
|
7327
7314
|
throw new M();
|
|
7328
7315
|
if (!e.checkChecksum(y))
|
|
7329
|
-
throw new
|
|
7316
|
+
throw new De();
|
|
7330
7317
|
var m = (a[1] + a[0]) / 2, C = (f[1] + f[0]) / 2, A = this.getBarcodeFormat(), w = [new k(m, t), new k(C, t)], S = new We(y, null, 0, w, A, (/* @__PURE__ */ new Date()).getTime()), O = 0;
|
|
7331
7318
|
try {
|
|
7332
7319
|
var T = ku.decodeRow(t, n, f[1]);
|
|
7333
|
-
S.putMetadata(
|
|
7320
|
+
S.putMetadata(Le.UPC_EAN_EXTENSION, T.getText()), S.putAllMetadata(T.getResultMetadata()), S.addResultPoints(T.getResultPoints()), O = T.getText().length;
|
|
7334
7321
|
} catch {
|
|
7335
7322
|
}
|
|
7336
7323
|
var F = i == null ? null : i.get(ve.ALLOWED_EAN_EXTENSIONS);
|
|
@@ -7371,7 +7358,7 @@ var be = (
|
|
|
7371
7358
|
}, e.decodeEnd = function(t, n) {
|
|
7372
7359
|
return e.findGuardPattern(t, n, !1, e.START_END_PATTERN, new Int32Array(e.START_END_PATTERN.length).fill(0));
|
|
7373
7360
|
}, e;
|
|
7374
|
-
}(
|
|
7361
|
+
}(rr)
|
|
7375
7362
|
), zu = /* @__PURE__ */ function() {
|
|
7376
7363
|
var r = function(e, t) {
|
|
7377
7364
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
@@ -7865,7 +7852,7 @@ var be = (
|
|
|
7865
7852
|
}
|
|
7866
7853
|
};
|
|
7867
7854
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
7868
|
-
},
|
|
7855
|
+
}, Nt = (
|
|
7869
7856
|
/** @class */
|
|
7870
7857
|
function(r) {
|
|
7871
7858
|
ju(e, r);
|
|
@@ -8027,7 +8014,7 @@ var be = (
|
|
|
8027
8014
|
return r.buildBitArray = function(e) {
|
|
8028
8015
|
var t = e.length * 2 - 1;
|
|
8029
8016
|
e[e.length - 1].getRightChar() == null && (t -= 1);
|
|
8030
|
-
for (var n = 12 * t, i = new
|
|
8017
|
+
for (var n = 12 * t, i = new Re(n), a = 0, o = e[0], s = o.getRightChar().getValue(), l = 11; l >= 0; --l)
|
|
8031
8018
|
(s & 1 << l) !== 0 && i.set(a), a++;
|
|
8032
8019
|
for (var l = 1; l < e.length; ++l) {
|
|
8033
8020
|
for (var c = e[l], u = c.getLeftChar().getValue(), d = 11; d >= 0; --d)
|
|
@@ -8039,7 +8026,7 @@ var be = (
|
|
|
8039
8026
|
return i;
|
|
8040
8027
|
}, r;
|
|
8041
8028
|
}()
|
|
8042
|
-
),
|
|
8029
|
+
), It = (
|
|
8043
8030
|
/** @class */
|
|
8044
8031
|
function() {
|
|
8045
8032
|
function r(e, t) {
|
|
@@ -8105,7 +8092,7 @@ var be = (
|
|
|
8105
8092
|
}
|
|
8106
8093
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
8107
8094
|
};
|
|
8108
|
-
}(),
|
|
8095
|
+
}(), Ot = (
|
|
8109
8096
|
/** @class */
|
|
8110
8097
|
function(r) {
|
|
8111
8098
|
Ju(e, r);
|
|
@@ -8431,7 +8418,7 @@ var be = (
|
|
|
8431
8418
|
}, r.prototype.decodeGeneralPurposeField = function(e, t) {
|
|
8432
8419
|
this.buffer.setLengthToZero(), t != null && this.buffer.append(t), this.current.setPosition(e);
|
|
8433
8420
|
var n = this.parseBlocks();
|
|
8434
|
-
return n != null && n.isRemaining() ? new
|
|
8421
|
+
return n != null && n.isRemaining() ? new Ot(this.current.getPosition(), this.buffer.toString(), n.getRemainingValue()) : new Ot(this.current.getPosition(), this.buffer.toString());
|
|
8435
8422
|
}, r.prototype.parseBlocks = function() {
|
|
8436
8423
|
var e, t;
|
|
8437
8424
|
do {
|
|
@@ -8447,35 +8434,35 @@ var be = (
|
|
|
8447
8434
|
var e = this.decodeNumeric(this.current.getPosition());
|
|
8448
8435
|
if (this.current.setPosition(e.getNewPosition()), e.isFirstDigitFNC1()) {
|
|
8449
8436
|
var t = void 0;
|
|
8450
|
-
return e.isSecondDigitFNC1() ? t = new
|
|
8437
|
+
return e.isSecondDigitFNC1() ? t = new Ot(this.current.getPosition(), this.buffer.toString()) : t = new Ot(this.current.getPosition(), this.buffer.toString(), e.getSecondDigit()), new It(!0, t);
|
|
8451
8438
|
}
|
|
8452
8439
|
if (this.buffer.append(e.getFirstDigit()), e.isSecondDigitFNC1()) {
|
|
8453
|
-
var t = new
|
|
8454
|
-
return new
|
|
8440
|
+
var t = new Ot(this.current.getPosition(), this.buffer.toString());
|
|
8441
|
+
return new It(!0, t);
|
|
8455
8442
|
}
|
|
8456
8443
|
this.buffer.append(e.getSecondDigit());
|
|
8457
8444
|
}
|
|
8458
|
-
return this.isNumericToAlphaNumericLatch(this.current.getPosition()) && (this.current.setAlpha(), this.current.incrementPosition(4)), new
|
|
8445
|
+
return this.isNumericToAlphaNumericLatch(this.current.getPosition()) && (this.current.setAlpha(), this.current.incrementPosition(4)), new It(!1);
|
|
8459
8446
|
}, r.prototype.parseIsoIec646Block = function() {
|
|
8460
8447
|
for (; this.isStillIsoIec646(this.current.getPosition()); ) {
|
|
8461
8448
|
var e = this.decodeIsoIec646(this.current.getPosition());
|
|
8462
8449
|
if (this.current.setPosition(e.getNewPosition()), e.isFNC1()) {
|
|
8463
|
-
var t = new
|
|
8464
|
-
return new
|
|
8450
|
+
var t = new Ot(this.current.getPosition(), this.buffer.toString());
|
|
8451
|
+
return new It(!0, t);
|
|
8465
8452
|
}
|
|
8466
8453
|
this.buffer.append(e.getValue());
|
|
8467
8454
|
}
|
|
8468
|
-
return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setAlpha()), new
|
|
8455
|
+
return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setAlpha()), new It(!1);
|
|
8469
8456
|
}, r.prototype.parseAlphaBlock = function() {
|
|
8470
8457
|
for (; this.isStillAlpha(this.current.getPosition()); ) {
|
|
8471
8458
|
var e = this.decodeAlphanumeric(this.current.getPosition());
|
|
8472
8459
|
if (this.current.setPosition(e.getNewPosition()), e.isFNC1()) {
|
|
8473
|
-
var t = new
|
|
8474
|
-
return new
|
|
8460
|
+
var t = new Ot(this.current.getPosition(), this.buffer.toString());
|
|
8461
|
+
return new It(!0, t);
|
|
8475
8462
|
}
|
|
8476
8463
|
this.buffer.append(e.getValue());
|
|
8477
8464
|
}
|
|
8478
|
-
return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setIsoIec646()), new
|
|
8465
|
+
return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setIsoIec646()), new It(!1);
|
|
8479
8466
|
}, r.prototype.isStillIsoIec646 = function(e) {
|
|
8480
8467
|
if (e + 5 > this.information.getSize())
|
|
8481
8468
|
return !1;
|
|
@@ -8943,7 +8930,7 @@ var be = (
|
|
|
8943
8930
|
}
|
|
8944
8931
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
8945
8932
|
};
|
|
8946
|
-
}(),
|
|
8933
|
+
}(), Ct = (
|
|
8947
8934
|
/** @class */
|
|
8948
8935
|
function(r) {
|
|
8949
8936
|
xd(e, r);
|
|
@@ -8997,21 +8984,21 @@ function yd(r) {
|
|
|
8997
8984
|
var n = kr.extractNumericValueFromBitArray(r, 1, 7);
|
|
8998
8985
|
switch (n) {
|
|
8999
8986
|
case 56:
|
|
9000
|
-
return new
|
|
8987
|
+
return new Ct(r, "310", "11");
|
|
9001
8988
|
case 57:
|
|
9002
|
-
return new
|
|
8989
|
+
return new Ct(r, "320", "11");
|
|
9003
8990
|
case 58:
|
|
9004
|
-
return new
|
|
8991
|
+
return new Ct(r, "310", "13");
|
|
9005
8992
|
case 59:
|
|
9006
|
-
return new
|
|
8993
|
+
return new Ct(r, "320", "13");
|
|
9007
8994
|
case 60:
|
|
9008
|
-
return new
|
|
8995
|
+
return new Ct(r, "310", "15");
|
|
9009
8996
|
case 61:
|
|
9010
|
-
return new
|
|
8997
|
+
return new Ct(r, "320", "15");
|
|
9011
8998
|
case 62:
|
|
9012
|
-
return new
|
|
8999
|
+
return new Ct(r, "310", "17");
|
|
9013
9000
|
case 63:
|
|
9014
|
-
return new
|
|
9001
|
+
return new Ct(r, "320", "17");
|
|
9015
9002
|
}
|
|
9016
9003
|
} catch (i) {
|
|
9017
9004
|
throw console.log(i), new Ir("unknown decoder: " + r);
|
|
@@ -9088,7 +9075,7 @@ var Qi = (
|
|
|
9088
9075
|
}
|
|
9089
9076
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
9090
9077
|
};
|
|
9091
|
-
}(),
|
|
9078
|
+
}(), wt = function(r) {
|
|
9092
9079
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
|
|
9093
9080
|
if (t) return t.call(r);
|
|
9094
9081
|
if (r && typeof r.length == "number") return {
|
|
@@ -9150,7 +9137,7 @@ var Qi = (
|
|
|
9150
9137
|
var s = this.rows[o];
|
|
9151
9138
|
this.pairs.length = 0;
|
|
9152
9139
|
try {
|
|
9153
|
-
for (var l = (i = void 0,
|
|
9140
|
+
for (var l = (i = void 0, wt(t)), c = l.next(); !c.done; c = l.next()) {
|
|
9154
9141
|
var u = c.value;
|
|
9155
9142
|
this.pairs.push(u.getPairs());
|
|
9156
9143
|
}
|
|
@@ -9179,7 +9166,7 @@ var Qi = (
|
|
|
9179
9166
|
}, e.isValidSequence = function(t) {
|
|
9180
9167
|
var n, i;
|
|
9181
9168
|
try {
|
|
9182
|
-
for (var a =
|
|
9169
|
+
for (var a = wt(e.FINDER_PATTERN_SEQUENCES), o = a.next(); !o.done; o = a.next()) {
|
|
9183
9170
|
var s = o.value;
|
|
9184
9171
|
if (!(t.length > s.length)) {
|
|
9185
9172
|
for (var l = !0, c = 0; c < t.length; c++)
|
|
@@ -9214,15 +9201,15 @@ var Qi = (
|
|
|
9214
9201
|
}, e.prototype.removePartialRows = function(t, n) {
|
|
9215
9202
|
var i, a, o, s, l, c;
|
|
9216
9203
|
try {
|
|
9217
|
-
for (var u =
|
|
9204
|
+
for (var u = wt(n), d = u.next(); !d.done; d = u.next()) {
|
|
9218
9205
|
var f = d.value;
|
|
9219
9206
|
if (f.getPairs().length !== t.length) {
|
|
9220
9207
|
var h = !0;
|
|
9221
9208
|
try {
|
|
9222
|
-
for (var v = (o = void 0,
|
|
9209
|
+
for (var v = (o = void 0, wt(f.getPairs())), g = v.next(); !g.done; g = v.next()) {
|
|
9223
9210
|
var y = g.value, m = !1;
|
|
9224
9211
|
try {
|
|
9225
|
-
for (var C = (l = void 0,
|
|
9212
|
+
for (var C = (l = void 0, wt(t)), A = C.next(); !A.done; A = C.next()) {
|
|
9226
9213
|
var w = A.value;
|
|
9227
9214
|
if (Qi.equals(y, w)) {
|
|
9228
9215
|
m = !0;
|
|
@@ -9263,13 +9250,13 @@ var Qi = (
|
|
|
9263
9250
|
}, e.isPartialRow = function(t, n) {
|
|
9264
9251
|
var i, a, o, s, l, c;
|
|
9265
9252
|
try {
|
|
9266
|
-
for (var u =
|
|
9253
|
+
for (var u = wt(n), d = u.next(); !d.done; d = u.next()) {
|
|
9267
9254
|
var f = d.value, h = !0;
|
|
9268
9255
|
try {
|
|
9269
|
-
for (var v = (o = void 0,
|
|
9256
|
+
for (var v = (o = void 0, wt(t)), g = v.next(); !g.done; g = v.next()) {
|
|
9270
9257
|
var y = g.value, m = !1;
|
|
9271
9258
|
try {
|
|
9272
|
-
for (var C = (l = void 0,
|
|
9259
|
+
for (var C = (l = void 0, wt(f.getPairs())), A = C.next(); !A.done; A = C.next()) {
|
|
9273
9260
|
var w = A.value;
|
|
9274
9261
|
if (y.equals(w)) {
|
|
9275
9262
|
m = !0;
|
|
@@ -9450,7 +9437,7 @@ var Qi = (
|
|
|
9450
9437
|
var U = T + z;
|
|
9451
9438
|
if ((O & 1) !== 0 || O > 13 || O < 4)
|
|
9452
9439
|
throw new I();
|
|
9453
|
-
var Z = (13 - O) / 2, X = e.SYMBOL_WIDEST[Z], K = 9 - X,
|
|
9440
|
+
var Z = (13 - O) / 2, X = e.SYMBOL_WIDEST[Z], K = 9 - X, Pe = Gt.getRSSvalue(v, X, !0), Ze = Gt.getRSSvalue(g, K, !1), dr = e.EVEN_TOTAL_SUBSET[Z], _n = e.GSUM[Z], An = Pe * dr + Ze + _n;
|
|
9454
9441
|
return new Wr(An, U);
|
|
9455
9442
|
}, e.isNotA1left = function(t, n, i) {
|
|
9456
9443
|
return !(t.getValue() === 0 && n && i);
|
|
@@ -9615,7 +9602,7 @@ var Qi = (
|
|
|
9615
9602
|
e.FINDER_PAT_F
|
|
9616
9603
|
]
|
|
9617
9604
|
], e.MAX_PAIRS = 11, e;
|
|
9618
|
-
}(
|
|
9605
|
+
}(Nt)
|
|
9619
9606
|
), _d = /* @__PURE__ */ function() {
|
|
9620
9607
|
var r = function(e, t) {
|
|
9621
9608
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
@@ -9792,13 +9779,13 @@ var Qi = (
|
|
|
9792
9779
|
if (i) {
|
|
9793
9780
|
if ((A & 1) !== 0 || A > 12 || A < 4)
|
|
9794
9781
|
throw new I();
|
|
9795
|
-
var F = (12 - A) / 2, z = e.OUTSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !1), X = Gt.getRSSvalue(h, U, !0), K = e.OUTSIDE_EVEN_TOTAL_SUBSET[F],
|
|
9796
|
-
return new Wr(Z * K + X +
|
|
9782
|
+
var F = (12 - A) / 2, z = e.OUTSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !1), X = Gt.getRSSvalue(h, U, !0), K = e.OUTSIDE_EVEN_TOTAL_SUBSET[F], Pe = e.OUTSIDE_GSUM[F];
|
|
9783
|
+
return new Wr(Z * K + X + Pe, T);
|
|
9797
9784
|
} else {
|
|
9798
9785
|
if ((O & 1) !== 0 || O > 10 || O < 4)
|
|
9799
9786
|
throw new I();
|
|
9800
|
-
var F = (10 - O) / 2, z = e.INSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !0), X = Gt.getRSSvalue(h, U, !1), Ze = e.INSIDE_ODD_TOTAL_SUBSET[F],
|
|
9801
|
-
return new Wr(X * Ze + Z +
|
|
9787
|
+
var F = (10 - O) / 2, z = e.INSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !0), X = Gt.getRSSvalue(h, U, !1), Ze = e.INSIDE_ODD_TOTAL_SUBSET[F], Pe = e.INSIDE_GSUM[F];
|
|
9788
|
+
return new Wr(X * Ze + Z + Pe, T);
|
|
9802
9789
|
}
|
|
9803
9790
|
}, e.prototype.findFinderPattern = function(t, n) {
|
|
9804
9791
|
var i = this.getDecodeFinderCounters();
|
|
@@ -9810,7 +9797,7 @@ var Qi = (
|
|
|
9810
9797
|
i[l]++;
|
|
9811
9798
|
else {
|
|
9812
9799
|
if (l === 3) {
|
|
9813
|
-
if (
|
|
9800
|
+
if (Nt.isFinderPattern(i))
|
|
9814
9801
|
return [c, u];
|
|
9815
9802
|
c += i[0] + i[1], i[0] = i[2], i[1] = i[3], i[2] = 0, i[3] = 0, l--;
|
|
9816
9803
|
} else
|
|
@@ -9862,14 +9849,14 @@ var Qi = (
|
|
|
9862
9849
|
if (o) {
|
|
9863
9850
|
if (s)
|
|
9864
9851
|
throw new I();
|
|
9865
|
-
|
|
9852
|
+
Nt.increment(this.getOddCounts(), this.getOddRoundingErrors());
|
|
9866
9853
|
}
|
|
9867
|
-
if (s &&
|
|
9854
|
+
if (s && Nt.decrement(this.getOddCounts(), this.getOddRoundingErrors()), l) {
|
|
9868
9855
|
if (c)
|
|
9869
9856
|
throw new I();
|
|
9870
|
-
|
|
9857
|
+
Nt.increment(this.getEvenCounts(), this.getOddRoundingErrors());
|
|
9871
9858
|
}
|
|
9872
|
-
c &&
|
|
9859
|
+
c && Nt.decrement(this.getEvenCounts(), this.getEvenRoundingErrors());
|
|
9873
9860
|
}, e.OUTSIDE_EVEN_TOTAL_SUBSET = [1, 10, 34, 70, 126], e.INSIDE_ODD_TOTAL_SUBSET = [4, 20, 48, 81], e.OUTSIDE_GSUM = [0, 161, 961, 2015, 2715], e.INSIDE_GSUM = [0, 336, 1036, 1516], e.OUTSIDE_ODD_WIDEST = [8, 6, 4, 3, 1], e.INSIDE_ODD_WIDEST = [2, 4, 6, 8], e.FINDER_PATTERNS = [
|
|
9874
9861
|
Int32Array.from([3, 8, 2, 1]),
|
|
9875
9862
|
Int32Array.from([3, 5, 5, 1]),
|
|
@@ -9881,7 +9868,7 @@ var Qi = (
|
|
|
9881
9868
|
Int32Array.from([1, 5, 7, 1]),
|
|
9882
9869
|
Int32Array.from([1, 3, 9, 1])
|
|
9883
9870
|
], e;
|
|
9884
|
-
}(
|
|
9871
|
+
}(Nt)
|
|
9885
9872
|
), Sd = /* @__PURE__ */ function() {
|
|
9886
9873
|
var r = function(e, t) {
|
|
9887
9874
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
@@ -9897,7 +9884,7 @@ var Qi = (
|
|
|
9897
9884
|
}
|
|
9898
9885
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
9899
9886
|
};
|
|
9900
|
-
}(),
|
|
9887
|
+
}(), gr = (
|
|
9901
9888
|
/** @class */
|
|
9902
9889
|
function(r) {
|
|
9903
9890
|
Sd(e, r);
|
|
@@ -9939,10 +9926,10 @@ var Qi = (
|
|
|
9939
9926
|
(function(r) {
|
|
9940
9927
|
bd(e, r);
|
|
9941
9928
|
function e(t, n) {
|
|
9942
|
-
return t === void 0 && (t = 500), r.call(this, new
|
|
9929
|
+
return t === void 0 && (t = 500), r.call(this, new gr(n), t, n) || this;
|
|
9943
9930
|
}
|
|
9944
9931
|
return e;
|
|
9945
|
-
})(
|
|
9932
|
+
})(lr);
|
|
9946
9933
|
var ea = function(r) {
|
|
9947
9934
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
|
|
9948
9935
|
if (t) return t.call(r);
|
|
@@ -10165,8 +10152,8 @@ var ea = function(r) {
|
|
|
10165
10152
|
var f = d.value;
|
|
10166
10153
|
l += f.getCount();
|
|
10167
10154
|
}
|
|
10168
|
-
} catch (
|
|
10169
|
-
n = { error:
|
|
10155
|
+
} catch (Pe) {
|
|
10156
|
+
n = { error: Pe };
|
|
10170
10157
|
} finally {
|
|
10171
10158
|
try {
|
|
10172
10159
|
d && !d.done && (i = u.return) && i.call(u);
|
|
@@ -10181,8 +10168,8 @@ var ea = function(r) {
|
|
|
10181
10168
|
var C = f.getDataCodewords(), A = s.getECCodewords() + C;
|
|
10182
10169
|
h[v++] = new r(C, new Uint8Array(A));
|
|
10183
10170
|
}
|
|
10184
|
-
} catch (
|
|
10185
|
-
a = { error:
|
|
10171
|
+
} catch (Pe) {
|
|
10172
|
+
a = { error: Pe };
|
|
10186
10173
|
} finally {
|
|
10187
10174
|
try {
|
|
10188
10175
|
y && !y.done && (o = g.return) && o.call(g);
|
|
@@ -10688,7 +10675,7 @@ var Td = (
|
|
|
10688
10675
|
try {
|
|
10689
10676
|
this.rsDecoder.decode(n, e.length - t);
|
|
10690
10677
|
} catch {
|
|
10691
|
-
throw new
|
|
10678
|
+
throw new De();
|
|
10692
10679
|
}
|
|
10693
10680
|
for (var i = 0; i < t; i++)
|
|
10694
10681
|
e[i] = n[i];
|
|
@@ -10777,9 +10764,9 @@ var Td = (
|
|
|
10777
10764
|
n = this.decoder.decode(o.getBits()), i = o.getPoints();
|
|
10778
10765
|
}
|
|
10779
10766
|
var s = n.getRawBytes(), l = new We(n.getText(), s, 8 * s.length, i, P.DATA_MATRIX, de.currentTimeMillis()), c = n.getByteSegments();
|
|
10780
|
-
c != null && l.putMetadata(
|
|
10767
|
+
c != null && l.putMetadata(Le.BYTE_SEGMENTS, c);
|
|
10781
10768
|
var u = n.getECLevel();
|
|
10782
|
-
return u != null && l.putMetadata(
|
|
10769
|
+
return u != null && l.putMetadata(Le.ERROR_CORRECTION_LEVEL, u), l;
|
|
10783
10770
|
}, r.prototype.reset = function() {
|
|
10784
10771
|
}, r.extractPureBits = function(e) {
|
|
10785
10772
|
var t = e.getTopLeftOnBit(), n = e.getBottomRightOnBit();
|
|
@@ -10827,7 +10814,7 @@ var Td = (
|
|
|
10827
10814
|
return t === void 0 && (t = 500), r.call(this, new $n(), t) || this;
|
|
10828
10815
|
}
|
|
10829
10816
|
return e;
|
|
10830
|
-
})(
|
|
10817
|
+
})(lr);
|
|
10831
10818
|
var qt;
|
|
10832
10819
|
(function(r) {
|
|
10833
10820
|
r[r.L = 0] = "L", r[r.M = 1] = "M", r[r.Q = 2] = "Q", r[r.H = 3] = "H";
|
|
@@ -11018,7 +11005,7 @@ var Fd = (
|
|
|
11018
11005
|
}
|
|
11019
11006
|
};
|
|
11020
11007
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
11021
|
-
},
|
|
11008
|
+
}, Dt = (
|
|
11022
11009
|
/** @class */
|
|
11023
11010
|
function() {
|
|
11024
11011
|
function r(e, t) {
|
|
@@ -11160,10 +11147,10 @@ var Fd = (
|
|
|
11160
11147
|
new r(40, Int32Array.from([6, 30, 58, 86, 114, 142, 170]), new E(30, new x(19, 118), new x(6, 119)), new E(28, new x(18, 47), new x(31, 48)), new E(30, new x(34, 24), new x(34, 25)), new E(30, new x(20, 15), new x(61, 16)))
|
|
11161
11148
|
], r;
|
|
11162
11149
|
}()
|
|
11163
|
-
),
|
|
11150
|
+
), Oe;
|
|
11164
11151
|
(function(r) {
|
|
11165
11152
|
r[r.DATA_MASK_000 = 0] = "DATA_MASK_000", r[r.DATA_MASK_001 = 1] = "DATA_MASK_001", r[r.DATA_MASK_010 = 2] = "DATA_MASK_010", r[r.DATA_MASK_011 = 3] = "DATA_MASK_011", r[r.DATA_MASK_100 = 4] = "DATA_MASK_100", r[r.DATA_MASK_101 = 5] = "DATA_MASK_101", r[r.DATA_MASK_110 = 6] = "DATA_MASK_110", r[r.DATA_MASK_111 = 7] = "DATA_MASK_111";
|
|
11166
|
-
})(
|
|
11153
|
+
})(Oe || (Oe = {}));
|
|
11167
11154
|
var ra = (
|
|
11168
11155
|
/** @class */
|
|
11169
11156
|
function() {
|
|
@@ -11178,52 +11165,52 @@ var ra = (
|
|
|
11178
11165
|
/**
|
|
11179
11166
|
* 000: mask bits for which (x + y) mod 2 == 0
|
|
11180
11167
|
*/
|
|
11181
|
-
[
|
|
11168
|
+
[Oe.DATA_MASK_000, new r(Oe.DATA_MASK_000, function(e, t) {
|
|
11182
11169
|
return (e + t & 1) === 0;
|
|
11183
11170
|
})],
|
|
11184
11171
|
/**
|
|
11185
11172
|
* 001: mask bits for which x mod 2 == 0
|
|
11186
11173
|
*/
|
|
11187
|
-
[
|
|
11174
|
+
[Oe.DATA_MASK_001, new r(Oe.DATA_MASK_001, function(e, t) {
|
|
11188
11175
|
return (e & 1) === 0;
|
|
11189
11176
|
})],
|
|
11190
11177
|
/**
|
|
11191
11178
|
* 010: mask bits for which y mod 3 == 0
|
|
11192
11179
|
*/
|
|
11193
|
-
[
|
|
11180
|
+
[Oe.DATA_MASK_010, new r(Oe.DATA_MASK_010, function(e, t) {
|
|
11194
11181
|
return t % 3 === 0;
|
|
11195
11182
|
})],
|
|
11196
11183
|
/**
|
|
11197
11184
|
* 011: mask bits for which (x + y) mod 3 == 0
|
|
11198
11185
|
*/
|
|
11199
|
-
[
|
|
11186
|
+
[Oe.DATA_MASK_011, new r(Oe.DATA_MASK_011, function(e, t) {
|
|
11200
11187
|
return (e + t) % 3 === 0;
|
|
11201
11188
|
})],
|
|
11202
11189
|
/**
|
|
11203
11190
|
* 100: mask bits for which (x/2 + y/3) mod 2 == 0
|
|
11204
11191
|
*/
|
|
11205
|
-
[
|
|
11192
|
+
[Oe.DATA_MASK_100, new r(Oe.DATA_MASK_100, function(e, t) {
|
|
11206
11193
|
return (Math.floor(e / 2) + Math.floor(t / 3) & 1) === 0;
|
|
11207
11194
|
})],
|
|
11208
11195
|
/**
|
|
11209
11196
|
* 101: mask bits for which xy mod 2 + xy mod 3 == 0
|
|
11210
11197
|
* equivalently, such that xy mod 6 == 0
|
|
11211
11198
|
*/
|
|
11212
|
-
[
|
|
11199
|
+
[Oe.DATA_MASK_101, new r(Oe.DATA_MASK_101, function(e, t) {
|
|
11213
11200
|
return e * t % 6 === 0;
|
|
11214
11201
|
})],
|
|
11215
11202
|
/**
|
|
11216
11203
|
* 110: mask bits for which (xy mod 2 + xy mod 3) mod 2 == 0
|
|
11217
11204
|
* equivalently, such that xy mod 6 < 3
|
|
11218
11205
|
*/
|
|
11219
|
-
[
|
|
11206
|
+
[Oe.DATA_MASK_110, new r(Oe.DATA_MASK_110, function(e, t) {
|
|
11220
11207
|
return e * t % 6 < 3;
|
|
11221
11208
|
})],
|
|
11222
11209
|
/**
|
|
11223
11210
|
* 111: mask bits for which ((x+y)mod 2 + xy mod 3) mod 2 == 0
|
|
11224
11211
|
* equivalently, such that (x + y + xy mod 3) mod 2 == 0
|
|
11225
11212
|
*/
|
|
11226
|
-
[
|
|
11213
|
+
[Oe.DATA_MASK_111, new r(Oe.DATA_MASK_111, function(e, t) {
|
|
11227
11214
|
return (e + t + e * t % 3 & 1) === 0;
|
|
11228
11215
|
})]
|
|
11229
11216
|
]), r;
|
|
@@ -11257,18 +11244,18 @@ var ra = (
|
|
|
11257
11244
|
return this.parsedVersion;
|
|
11258
11245
|
var e = this.bitMatrix.getHeight(), t = Math.floor((e - 17) / 4);
|
|
11259
11246
|
if (t <= 6)
|
|
11260
|
-
return
|
|
11247
|
+
return Dt.getVersionForNumber(t);
|
|
11261
11248
|
for (var n = 0, i = e - 11, a = 5; a >= 0; a--)
|
|
11262
11249
|
for (var o = e - 9; o >= i; o--)
|
|
11263
11250
|
n = this.copyBit(o, a, n);
|
|
11264
|
-
var s =
|
|
11251
|
+
var s = Dt.decodeVersionInformation(n);
|
|
11265
11252
|
if (s !== null && s.getDimensionForVersion() === e)
|
|
11266
11253
|
return this.parsedVersion = s, s;
|
|
11267
11254
|
n = 0;
|
|
11268
11255
|
for (var o = 5; o >= 0; o--)
|
|
11269
11256
|
for (var a = e - 9; a >= i; a--)
|
|
11270
11257
|
n = this.copyBit(o, a, n);
|
|
11271
|
-
if (s =
|
|
11258
|
+
if (s = Dt.decodeVersionInformation(n), s !== null && s.getDimensionForVersion() === e)
|
|
11272
11259
|
return this.parsedVersion = s, s;
|
|
11273
11260
|
throw new M();
|
|
11274
11261
|
}, r.prototype.copyBit = function(e, t, n) {
|
|
@@ -11653,7 +11640,7 @@ var he = (
|
|
|
11653
11640
|
try {
|
|
11654
11641
|
this.rsDecoder.decode(n, e.length - t);
|
|
11655
11642
|
} catch {
|
|
11656
|
-
throw new
|
|
11643
|
+
throw new De();
|
|
11657
11644
|
}
|
|
11658
11645
|
for (var i = 0; i < t; i++)
|
|
11659
11646
|
e[i] = /*(byte) */
|
|
@@ -11852,7 +11839,7 @@ var he = (
|
|
|
11852
11839
|
return this.topRight;
|
|
11853
11840
|
}, r;
|
|
11854
11841
|
}()
|
|
11855
|
-
),
|
|
11842
|
+
), fr = function(r) {
|
|
11856
11843
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
|
|
11857
11844
|
if (t) return t.call(r);
|
|
11858
11845
|
if (r && typeof r.length == "number") return {
|
|
@@ -12049,7 +12036,7 @@ var he = (
|
|
|
12049
12036
|
return 0;
|
|
12050
12037
|
var i = null;
|
|
12051
12038
|
try {
|
|
12052
|
-
for (var a =
|
|
12039
|
+
for (var a = fr(this.possibleCenters), o = a.next(); !o.done; o = a.next()) {
|
|
12053
12040
|
var s = o.value;
|
|
12054
12041
|
if (s.getCount() >= r.CENTER_QUORUM)
|
|
12055
12042
|
if (i == null)
|
|
@@ -12071,7 +12058,7 @@ var he = (
|
|
|
12071
12058
|
}, r.prototype.haveMultiplyConfirmedCenters = function() {
|
|
12072
12059
|
var e, t, n, i, a = 0, o = 0, s = this.possibleCenters.length;
|
|
12073
12060
|
try {
|
|
12074
|
-
for (var l =
|
|
12061
|
+
for (var l = fr(this.possibleCenters), c = l.next(); !c.done; c = l.next()) {
|
|
12075
12062
|
var u = c.value;
|
|
12076
12063
|
u.getCount() >= r.CENTER_QUORUM && (a++, o += u.getEstimatedModuleSize());
|
|
12077
12064
|
}
|
|
@@ -12088,7 +12075,7 @@ var he = (
|
|
|
12088
12075
|
return !1;
|
|
12089
12076
|
var d = o / s, f = 0;
|
|
12090
12077
|
try {
|
|
12091
|
-
for (var h =
|
|
12078
|
+
for (var h = fr(this.possibleCenters), v = h.next(); !v.done; v = h.next()) {
|
|
12092
12079
|
var u = v.value;
|
|
12093
12080
|
f += Math.abs(u.getEstimatedModuleSize() - d);
|
|
12094
12081
|
}
|
|
@@ -12110,7 +12097,7 @@ var he = (
|
|
|
12110
12097
|
if (a > 3) {
|
|
12111
12098
|
var l = 0, c = 0;
|
|
12112
12099
|
try {
|
|
12113
|
-
for (var u =
|
|
12100
|
+
for (var u = fr(this.possibleCenters), d = u.next(); !d.done; d = u.next()) {
|
|
12114
12101
|
var f = d.value, h = f.getEstimatedModuleSize();
|
|
12115
12102
|
l += h, c += h * h;
|
|
12116
12103
|
}
|
|
@@ -12143,7 +12130,7 @@ var he = (
|
|
|
12143
12130
|
if (o.length > 3) {
|
|
12144
12131
|
var l = 0;
|
|
12145
12132
|
try {
|
|
12146
|
-
for (var C =
|
|
12133
|
+
for (var C = fr(o), A = C.next(); !A.done; A = C.next()) {
|
|
12147
12134
|
var w = A.value;
|
|
12148
12135
|
l += w.getEstimatedModuleSize();
|
|
12149
12136
|
}
|
|
@@ -12198,7 +12185,7 @@ var he = (
|
|
|
12198
12185
|
var t = e.getTopLeft(), n = e.getTopRight(), i = e.getBottomLeft(), a = this.calculateModuleSize(t, n, i);
|
|
12199
12186
|
if (a < 1)
|
|
12200
12187
|
throw new I("No pattern found in proccess finder.");
|
|
12201
|
-
var o = r.computeDimension(t, n, i, a), s =
|
|
12188
|
+
var o = r.computeDimension(t, n, i, a), s = Dt.getProvisionalVersionForDimension(o), l = s.getDimensionForVersion() - 7, c = null;
|
|
12202
12189
|
if (s.getAlignmentPatternCenters().length > 0)
|
|
12203
12190
|
for (var u = n.getX() - t.getX() + i.getX(), d = n.getY() - t.getY() + i.getY(), f = 1 - 3 / l, h = (
|
|
12204
12191
|
/*(int) */
|
|
@@ -12326,9 +12313,9 @@ var he = (
|
|
|
12326
12313
|
}
|
|
12327
12314
|
n.getOther() instanceof Bo && n.getOther().applyMirroredCorrection(i);
|
|
12328
12315
|
var s = new We(n.getText(), n.getRawBytes(), void 0, i, P.QR_CODE, void 0), l = n.getByteSegments();
|
|
12329
|
-
l !== null && s.putMetadata(
|
|
12316
|
+
l !== null && s.putMetadata(Le.BYTE_SEGMENTS, l);
|
|
12330
12317
|
var c = n.getECLevel();
|
|
12331
|
-
return c !== null && s.putMetadata(
|
|
12318
|
+
return c !== null && s.putMetadata(Le.ERROR_CORRECTION_LEVEL, c), n.hasStructuredAppend() && (s.putMetadata(Le.STRUCTURED_APPEND_SEQUENCE, n.getStructuredAppendSequenceNumber()), s.putMetadata(Le.STRUCTURED_APPEND_PARITY, n.getStructuredAppendParity())), s;
|
|
12332
12319
|
}, r.prototype.reset = function() {
|
|
12333
12320
|
}, r.extractPureBits = function(e) {
|
|
12334
12321
|
var t = e.getTopLeftOnBit(), n = e.getBottomRightOnBit();
|
|
@@ -18147,7 +18134,7 @@ var he = (
|
|
|
18147
18134
|
}
|
|
18148
18135
|
};
|
|
18149
18136
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
18150
|
-
},
|
|
18137
|
+
}, Tt = (
|
|
18151
18138
|
/** @class */
|
|
18152
18139
|
function() {
|
|
18153
18140
|
function r(e, t) {
|
|
@@ -18352,7 +18339,7 @@ var he = (
|
|
|
18352
18339
|
i.expTable[o] = a, a = a * n % t;
|
|
18353
18340
|
for (var o = 0; o < t - 1; o++)
|
|
18354
18341
|
i.logTable[i.expTable[o]] = o;
|
|
18355
|
-
return i.zero = new
|
|
18342
|
+
return i.zero = new Tt(i, new Int32Array([0])), i.one = new Tt(i, new Int32Array([1])), i;
|
|
18356
18343
|
}
|
|
18357
18344
|
return e.prototype.getZero = function() {
|
|
18358
18345
|
return this.zero;
|
|
@@ -18364,7 +18351,7 @@ var he = (
|
|
|
18364
18351
|
if (n === 0)
|
|
18365
18352
|
return this.zero;
|
|
18366
18353
|
var i = new Int32Array(t + 1);
|
|
18367
|
-
return i[0] = n, new
|
|
18354
|
+
return i[0] = n, new Tt(this, i);
|
|
18368
18355
|
}, e.PDF417_GF = new e(Q.NUMBER_OF_CODEWORDS, 3), e;
|
|
18369
18356
|
}(nf)
|
|
18370
18357
|
), sf = function(r) {
|
|
@@ -18383,7 +18370,7 @@ var he = (
|
|
|
18383
18370
|
this.field = of.PDF417_GF;
|
|
18384
18371
|
}
|
|
18385
18372
|
return r.prototype.decode = function(e, t, n) {
|
|
18386
|
-
for (var i, a, o = new
|
|
18373
|
+
for (var i, a, o = new Tt(this.field, e), s = new Int32Array(t), l = !1, c = t; c > 0; c--) {
|
|
18387
18374
|
var u = o.evaluateAt(this.field.exp(c));
|
|
18388
18375
|
s[t - c] = u, u !== 0 && (l = !0);
|
|
18389
18376
|
}
|
|
@@ -18393,7 +18380,7 @@ var he = (
|
|
|
18393
18380
|
if (n != null)
|
|
18394
18381
|
try {
|
|
18395
18382
|
for (var f = sf(n), h = f.next(); !h.done; h = f.next()) {
|
|
18396
|
-
var v = h.value, g = this.field.exp(e.length - 1 - v), y = new
|
|
18383
|
+
var v = h.value, g = this.field.exp(e.length - 1 - v), y = new Tt(this.field, new Int32Array([this.field.subtract(0, g), 1]));
|
|
18397
18384
|
d = d.multiply(y);
|
|
18398
18385
|
}
|
|
18399
18386
|
} catch (F) {
|
|
@@ -18405,10 +18392,10 @@ var he = (
|
|
|
18405
18392
|
if (i) throw i.error;
|
|
18406
18393
|
}
|
|
18407
18394
|
}
|
|
18408
|
-
for (var m = new
|
|
18395
|
+
for (var m = new Tt(this.field, s), C = this.runEuclideanAlgorithm(this.field.buildMonomial(t, 1), m, t), A = C[0], w = C[1], S = this.findErrorLocations(A), O = this.findErrorMagnitudes(w, A, S), c = 0; c < S.length; c++) {
|
|
18409
18396
|
var T = e.length - 1 - this.field.log(S[c]);
|
|
18410
18397
|
if (T < 0)
|
|
18411
|
-
throw
|
|
18398
|
+
throw De.getChecksumInstance();
|
|
18412
18399
|
e[T] = this.field.subtract(e[T], O[c]);
|
|
18413
18400
|
}
|
|
18414
18401
|
return S.length;
|
|
@@ -18420,7 +18407,7 @@ var he = (
|
|
|
18420
18407
|
for (var a = e, o = t, s = this.field.getZero(), l = this.field.getOne(); o.getDegree() >= Math.round(n / 2); ) {
|
|
18421
18408
|
var c = a, u = s;
|
|
18422
18409
|
if (a = o, s = l, a.isZero())
|
|
18423
|
-
throw
|
|
18410
|
+
throw De.getChecksumInstance();
|
|
18424
18411
|
o = c;
|
|
18425
18412
|
for (var d = this.field.getZero(), f = a.getCoefficient(a.getDegree()), h = this.field.inverse(f); o.getDegree() >= a.getDegree() && !o.isZero(); ) {
|
|
18426
18413
|
var v = o.getDegree() - a.getDegree(), g = this.field.multiply(o.getCoefficient(o.getDegree()), h);
|
|
@@ -18430,19 +18417,19 @@ var he = (
|
|
|
18430
18417
|
}
|
|
18431
18418
|
var y = l.getCoefficient(0);
|
|
18432
18419
|
if (y === 0)
|
|
18433
|
-
throw
|
|
18420
|
+
throw De.getChecksumInstance();
|
|
18434
18421
|
var m = this.field.inverse(y), C = l.multiply(m), A = o.multiply(m);
|
|
18435
18422
|
return [C, A];
|
|
18436
18423
|
}, r.prototype.findErrorLocations = function(e) {
|
|
18437
18424
|
for (var t = e.getDegree(), n = new Int32Array(t), i = 0, a = 1; a < this.field.getSize() && i < t; a++)
|
|
18438
18425
|
e.evaluateAt(a) === 0 && (n[i] = this.field.inverse(a), i++);
|
|
18439
18426
|
if (i !== t)
|
|
18440
|
-
throw
|
|
18427
|
+
throw De.getChecksumInstance();
|
|
18441
18428
|
return n;
|
|
18442
18429
|
}, r.prototype.findErrorMagnitudes = function(e, t, n) {
|
|
18443
18430
|
for (var i = t.getDegree(), a = new Int32Array(i), o = 1; o <= i; o++)
|
|
18444
18431
|
a[i - o] = this.field.multiply(o, t.getCoefficient(o));
|
|
18445
|
-
for (var s = new
|
|
18432
|
+
for (var s = new Tt(this.field, a), l = n.length, c = new Int32Array(l), o = 0; o < l; o++) {
|
|
18446
18433
|
var u = this.field.inverse(n[o]), d = this.field.subtract(0, e.evaluateAt(u)), f = this.field.inverse(s.evaluateAt(u));
|
|
18447
18434
|
c[o] = this.field.multiply(d, f);
|
|
18448
18435
|
}
|
|
@@ -18651,7 +18638,7 @@ var he = (
|
|
|
18651
18638
|
}
|
|
18652
18639
|
}
|
|
18653
18640
|
return a;
|
|
18654
|
-
},
|
|
18641
|
+
}, xr = (
|
|
18655
18642
|
/** @class */
|
|
18656
18643
|
function() {
|
|
18657
18644
|
function r() {
|
|
@@ -18795,7 +18782,7 @@ var he = (
|
|
|
18795
18782
|
f === 0 || (f === 1 ? c = d.getRowNumber() : d.getRowNumber() >= t.getRowCount() ? l[u] = null : c = d.getRowNumber());
|
|
18796
18783
|
}
|
|
18797
18784
|
}, e.prototype.getBarcodeMetadata = function() {
|
|
18798
|
-
var t, n, i = this.getCodewords(), a = new
|
|
18785
|
+
var t, n, i = this.getCodewords(), a = new xr(), o = new xr(), s = new xr(), l = new xr();
|
|
18799
18786
|
try {
|
|
18800
18787
|
for (var c = Rn(i), u = c.next(); !u.done; u = c.next()) {
|
|
18801
18788
|
var d = u.value;
|
|
@@ -19282,15 +19269,15 @@ function Lo() {
|
|
|
19282
19269
|
throw new Error("Can't search globals for BigInt!");
|
|
19283
19270
|
}
|
|
19284
19271
|
var Mr;
|
|
19285
|
-
function
|
|
19272
|
+
function _t(r) {
|
|
19286
19273
|
if (typeof Mr > "u" && (Mr = Lo()), Mr === null)
|
|
19287
19274
|
throw new Error("BigInt is not supported!");
|
|
19288
19275
|
return Mr(r);
|
|
19289
19276
|
}
|
|
19290
19277
|
function bf() {
|
|
19291
19278
|
var r = [];
|
|
19292
|
-
r[0] =
|
|
19293
|
-
var e =
|
|
19279
|
+
r[0] = _t(1);
|
|
19280
|
+
var e = _t(900);
|
|
19294
19281
|
r[1] = e;
|
|
19295
19282
|
for (var t = 2; t < 16; t++)
|
|
19296
19283
|
r[t] = r[t - 1] * e;
|
|
@@ -19604,7 +19591,7 @@ var If = (
|
|
|
19604
19591
|
for (var f = 0; f < 6; ++f)
|
|
19605
19592
|
o.write(
|
|
19606
19593
|
/*(byte)*/
|
|
19607
|
-
Number(
|
|
19594
|
+
Number(_t(l) >> _t(8 * (5 - f)))
|
|
19608
19595
|
);
|
|
19609
19596
|
l = 0, s = 0;
|
|
19610
19597
|
}
|
|
@@ -19638,7 +19625,7 @@ var If = (
|
|
|
19638
19625
|
for (var f = 0; f < 6; ++f)
|
|
19639
19626
|
o.write(
|
|
19640
19627
|
/*(byte)*/
|
|
19641
|
-
Number(
|
|
19628
|
+
Number(_t(l) >> _t(8 * (5 - f)))
|
|
19642
19629
|
);
|
|
19643
19630
|
l = 0, s = 0;
|
|
19644
19631
|
}
|
|
@@ -19666,8 +19653,8 @@ var If = (
|
|
|
19666
19653
|
}
|
|
19667
19654
|
return t;
|
|
19668
19655
|
}, r.decodeBase900toBase10 = function(e, t) {
|
|
19669
|
-
for (var n =
|
|
19670
|
-
n += r.EXP900[t - i - 1] *
|
|
19656
|
+
for (var n = _t(0), i = 0; i < t; i++)
|
|
19657
|
+
n += r.EXP900[t - i - 1] * _t(e[i]);
|
|
19671
19658
|
var a = n.toString();
|
|
19672
19659
|
if (a.charAt(0) !== "1")
|
|
19673
19660
|
throw new M();
|
|
@@ -19675,7 +19662,7 @@ var If = (
|
|
|
19675
19662
|
}, r.TEXT_COMPACTION_MODE_LATCH = 900, r.BYTE_COMPACTION_MODE_LATCH = 901, r.NUMERIC_COMPACTION_MODE_LATCH = 902, r.BYTE_COMPACTION_MODE_LATCH_6 = 924, r.ECI_USER_DEFINED = 925, r.ECI_GENERAL_PURPOSE = 926, r.ECI_CHARSET = 927, r.BEGIN_MACRO_PDF417_CONTROL_BLOCK = 928, r.BEGIN_MACRO_PDF417_OPTIONAL_FIELD = 923, r.MACRO_PDF417_TERMINATOR = 922, r.MODE_SHIFT_TO_BYTE_COMPACTION_MODE = 913, r.MAX_NUMERIC_CODEWORDS = 15, r.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME = 0, r.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT = 1, r.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP = 2, r.MACRO_PDF417_OPTIONAL_FIELD_SENDER = 3, r.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE = 4, r.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE = 5, r.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM = 6, r.PL = 25, r.LL = 27, r.AS = 27, r.ML = 28, r.AL = 28, r.PS = 29, r.PAL = 29, r.PUNCT_CHARS = `;<>@[\\]_\`~!\r ,:
|
|
19676
19663
|
-.$/"|*()?{}'`, r.MIXED_CHARS = "0123456789&\r ,:#-.$/+%*=^", r.EXP900 = Lo() ? bf() : [], r.NUMBER_OF_SEQUENCE_CODEWORDS = 2, r;
|
|
19677
19664
|
}()
|
|
19678
|
-
),
|
|
19665
|
+
), hr = function(r) {
|
|
19679
19666
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
|
|
19680
19667
|
if (t) return t.call(r);
|
|
19681
19668
|
if (r && typeof r.length == "number") return {
|
|
@@ -19737,7 +19724,7 @@ var If = (
|
|
|
19737
19724
|
return null;
|
|
19738
19725
|
var a = r.getMax(i), o = 0;
|
|
19739
19726
|
try {
|
|
19740
|
-
for (var s =
|
|
19727
|
+
for (var s = hr(i), l = s.next(); !l.done; l = s.next()) {
|
|
19741
19728
|
var c = l.value;
|
|
19742
19729
|
if (o += a - c, c > 0)
|
|
19743
19730
|
break;
|
|
@@ -19761,7 +19748,7 @@ var If = (
|
|
|
19761
19748
|
}, r.getMax = function(e) {
|
|
19762
19749
|
var t, n, i = -1;
|
|
19763
19750
|
try {
|
|
19764
|
-
for (var a =
|
|
19751
|
+
for (var a = hr(e), o = a.next(); !o.done; o = a.next()) {
|
|
19765
19752
|
var s = o.value;
|
|
19766
19753
|
i = Math.max(i, s);
|
|
19767
19754
|
}
|
|
@@ -19819,33 +19806,33 @@ var If = (
|
|
|
19819
19806
|
try {
|
|
19820
19807
|
return r.decodeCodewords(t, e, n);
|
|
19821
19808
|
} catch (u) {
|
|
19822
|
-
var c = u instanceof
|
|
19809
|
+
var c = u instanceof De;
|
|
19823
19810
|
if (!c)
|
|
19824
19811
|
throw u;
|
|
19825
19812
|
}
|
|
19826
19813
|
if (o.length === 0)
|
|
19827
|
-
throw
|
|
19814
|
+
throw De.getChecksumInstance();
|
|
19828
19815
|
for (var l = 0; l < o.length; l++)
|
|
19829
19816
|
if (o[l] < a[l].length - 1) {
|
|
19830
19817
|
o[l]++;
|
|
19831
19818
|
break;
|
|
19832
19819
|
} else if (o[l] = 0, l === o.length - 1)
|
|
19833
|
-
throw
|
|
19820
|
+
throw De.getChecksumInstance();
|
|
19834
19821
|
}
|
|
19835
|
-
throw
|
|
19822
|
+
throw De.getChecksumInstance();
|
|
19836
19823
|
}, r.createBarcodeMatrix = function(e) {
|
|
19837
19824
|
for (var t, n, i, a, o = Array.from({ length: e.getBarcodeRowCount() }, function() {
|
|
19838
19825
|
return new Array(e.getBarcodeColumnCount() + 2);
|
|
19839
19826
|
}), s = 0; s < o.length; s++)
|
|
19840
19827
|
for (var l = 0; l < o[s].length; l++)
|
|
19841
|
-
o[s][l] = new
|
|
19828
|
+
o[s][l] = new xr();
|
|
19842
19829
|
var c = 0;
|
|
19843
19830
|
try {
|
|
19844
|
-
for (var u =
|
|
19831
|
+
for (var u = hr(e.getDetectionResultColumns()), d = u.next(); !d.done; d = u.next()) {
|
|
19845
19832
|
var f = d.value;
|
|
19846
19833
|
if (f != null)
|
|
19847
19834
|
try {
|
|
19848
|
-
for (var h = (i = void 0,
|
|
19835
|
+
for (var h = (i = void 0, hr(f.getCodewords())), v = h.next(); !v.done; v = h.next()) {
|
|
19849
19836
|
var g = v.value;
|
|
19850
19837
|
if (g != null) {
|
|
19851
19838
|
var y = g.getRowNumber();
|
|
@@ -19890,7 +19877,7 @@ var If = (
|
|
|
19890
19877
|
for (var c = 0; r.isValidBarcodeColumn(e, t - s); ) {
|
|
19891
19878
|
t -= s;
|
|
19892
19879
|
try {
|
|
19893
|
-
for (var u = (a = void 0,
|
|
19880
|
+
for (var u = (a = void 0, hr(e.getDetectionResultColumn(t).getCodewords())), d = u.next(); !d.done; d = u.next()) {
|
|
19894
19881
|
var f = d.value;
|
|
19895
19882
|
if (f != null)
|
|
19896
19883
|
return (i ? f.getEndX() : f.getStartX()) + s * c * (f.getEndX() - f.getStartX());
|
|
@@ -19953,7 +19940,7 @@ var If = (
|
|
|
19953
19940
|
return o.setErrorsCorrected(a), o.setErasures(n.length), o;
|
|
19954
19941
|
}, r.correctErrors = function(e, t, n) {
|
|
19955
19942
|
if (t != null && t.length > n / 2 + r.MAX_ERRORS || n < 0 || n > r.MAX_EC_CODEWORDS)
|
|
19956
|
-
throw
|
|
19943
|
+
throw De.getChecksumInstance();
|
|
19957
19944
|
return r.errorCorrection.decode(e, n, t);
|
|
19958
19945
|
}, r.verifyCodewordCount = function(e, t) {
|
|
19959
19946
|
if (e.length < 4)
|
|
@@ -20013,16 +20000,16 @@ var If = (
|
|
|
20013
20000
|
try {
|
|
20014
20001
|
return r.decode(e, t, !0);
|
|
20015
20002
|
} catch (n) {
|
|
20016
|
-
throw n instanceof M || n instanceof
|
|
20003
|
+
throw n instanceof M || n instanceof De ? I.getNotFoundInstance() : n;
|
|
20017
20004
|
}
|
|
20018
20005
|
}, r.decode = function(e, t, n) {
|
|
20019
20006
|
var i, a, o = new Array(), s = tf.detectMultiple(e, t, n);
|
|
20020
20007
|
try {
|
|
20021
20008
|
for (var l = Nf(s.getPoints()), c = l.next(); !c.done; c = l.next()) {
|
|
20022
20009
|
var u = c.value, d = Of.decode(s.getBits(), u[4], u[5], u[6], u[7], r.getMinCodewordWidth(u), r.getMaxCodewordWidth(u)), f = new We(d.getText(), d.getRawBytes(), void 0, u, P.PDF_417);
|
|
20023
|
-
f.putMetadata(
|
|
20010
|
+
f.putMetadata(Le.ERROR_CORRECTION_LEVEL, d.getECLevel());
|
|
20024
20011
|
var h = d.getOther();
|
|
20025
|
-
h != null && f.putMetadata(
|
|
20012
|
+
h != null && f.putMetadata(Le.PDF417_EXTRA_METADATA, h), o.push(f);
|
|
20026
20013
|
}
|
|
20027
20014
|
} catch (v) {
|
|
20028
20015
|
i = { error: v };
|
|
@@ -20096,9 +20083,9 @@ var If = (
|
|
|
20096
20083
|
var a = n.some(function(o) {
|
|
20097
20084
|
return o === P.UPC_A || o === P.UPC_E || o === P.EAN_13 || o === P.EAN_8 || o === P.CODABAR || o === P.CODE_39 || o === P.CODE_93 || o === P.CODE_128 || o === P.ITF || o === P.RSS_14 || o === P.RSS_EXPANDED;
|
|
20098
20085
|
});
|
|
20099
|
-
a && !t && i.push(new
|
|
20086
|
+
a && !t && i.push(new gr(e)), n.includes(P.QR_CODE) && i.push(new jn()), n.includes(P.DATA_MATRIX) && i.push(new $n()), n.includes(P.AZTEC) && i.push(new Xn()), n.includes(P.PDF_417) && i.push(new Zn()), a && t && i.push(new gr(e));
|
|
20100
20087
|
}
|
|
20101
|
-
i.length === 0 && (t || i.push(new
|
|
20088
|
+
i.length === 0 && (t || i.push(new gr(e)), i.push(new jn()), i.push(new $n()), i.push(new Xn()), i.push(new Zn()), t && i.push(new gr(e))), this.readers = i;
|
|
20102
20089
|
}, r.prototype.reset = function() {
|
|
20103
20090
|
var e, t;
|
|
20104
20091
|
if (this.readers !== null)
|
|
@@ -20168,7 +20155,7 @@ var If = (
|
|
|
20168
20155
|
return e.prototype.decodeBitmap = function(t) {
|
|
20169
20156
|
return this.reader.decodeWithState(t);
|
|
20170
20157
|
}, e;
|
|
20171
|
-
})(
|
|
20158
|
+
})(lr);
|
|
20172
20159
|
var Mf = /* @__PURE__ */ function() {
|
|
20173
20160
|
var r = function(e, t) {
|
|
20174
20161
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
@@ -20191,7 +20178,7 @@ var Mf = /* @__PURE__ */ function() {
|
|
|
20191
20178
|
return t === void 0 && (t = 500), r.call(this, new Zn(), t) || this;
|
|
20192
20179
|
}
|
|
20193
20180
|
return e;
|
|
20194
|
-
})(
|
|
20181
|
+
})(lr);
|
|
20195
20182
|
var Vf = /* @__PURE__ */ function() {
|
|
20196
20183
|
var r = function(e, t) {
|
|
20197
20184
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
@@ -20214,7 +20201,7 @@ var Vf = /* @__PURE__ */ function() {
|
|
|
20214
20201
|
return t === void 0 && (t = 500), r.call(this, new jn(), t) || this;
|
|
20215
20202
|
}
|
|
20216
20203
|
return e;
|
|
20217
|
-
})(
|
|
20204
|
+
})(lr);
|
|
20218
20205
|
var Kn;
|
|
20219
20206
|
(function(r) {
|
|
20220
20207
|
r[r.ERROR_CORRECTION = 0] = "ERROR_CORRECTION", r[r.CHARACTER_SET = 1] = "CHARACTER_SET", r[r.DATA_MATRIX_SHAPE = 2] = "DATA_MATRIX_SHAPE", r[r.DATA_MATRIX_COMPACT = 3] = "DATA_MATRIX_COMPACT", r[r.MIN_SIZE = 4] = "MIN_SIZE", r[r.MAX_SIZE = 5] = "MAX_SIZE", r[r.MARGIN = 6] = "MARGIN", r[r.PDF417_COMPACT = 7] = "PDF417_COMPACT", r[r.PDF417_COMPACTION = 8] = "PDF417_COMPACTION", r[r.PDF417_DIMENSIONS = 9] = "PDF417_DIMENSIONS", r[r.AZTEC_LAYERS = 10] = "AZTEC_LAYERS", r[r.QR_VERSION = 11] = "QR_VERSION", r[r.GS1_FORMAT = 12] = "GS1_FORMAT", r[r.FORCE_C40 = 13] = "FORCE_C40";
|
|
@@ -20224,13 +20211,13 @@ var zo = (
|
|
|
20224
20211
|
/** @class */
|
|
20225
20212
|
function() {
|
|
20226
20213
|
function r(e) {
|
|
20227
|
-
this.field = e, this.cachedGenerators = [], this.cachedGenerators.push(new
|
|
20214
|
+
this.field = e, this.cachedGenerators = [], this.cachedGenerators.push(new At(e, Int32Array.from([1])));
|
|
20228
20215
|
}
|
|
20229
20216
|
return r.prototype.buildGenerator = function(e) {
|
|
20230
20217
|
var t = this.cachedGenerators;
|
|
20231
20218
|
if (e >= t.length)
|
|
20232
20219
|
for (var n = t[t.length - 1], i = this.field, a = t.length; a <= e; a++) {
|
|
20233
|
-
var o = n.multiply(new
|
|
20220
|
+
var o = n.multiply(new At(i, Int32Array.from([1, i.exp(a - 1 + i.getGeneratorBase())])));
|
|
20234
20221
|
t.push(o), n = o;
|
|
20235
20222
|
}
|
|
20236
20223
|
return t[e];
|
|
@@ -20242,14 +20229,14 @@ var zo = (
|
|
|
20242
20229
|
throw new H("No data bytes provided");
|
|
20243
20230
|
var i = this.buildGenerator(t), a = new Int32Array(n);
|
|
20244
20231
|
de.arraycopy(e, 0, a, 0, n);
|
|
20245
|
-
var o = new
|
|
20232
|
+
var o = new At(this.field, a);
|
|
20246
20233
|
o = o.multiplyByMonomial(t, 1);
|
|
20247
20234
|
for (var s = o.divide(i)[1], l = s.getCoefficients(), c = t - l.length, u = 0; u < c; u++)
|
|
20248
20235
|
e[n + u] = 0;
|
|
20249
20236
|
de.arraycopy(l, 0, e, n + c, l.length);
|
|
20250
20237
|
}, r;
|
|
20251
20238
|
}()
|
|
20252
|
-
),
|
|
20239
|
+
), yr = (
|
|
20253
20240
|
/** @class */
|
|
20254
20241
|
function() {
|
|
20255
20242
|
function r() {
|
|
@@ -20490,7 +20477,7 @@ var zo = (
|
|
|
20490
20477
|
}, r.embedBasicPatterns = function(e, t) {
|
|
20491
20478
|
r.embedPositionDetectionPatternsAndSeparators(t), r.embedDarkDotAtLeftBottomCorner(t), r.maybeEmbedPositionAdjustmentPatterns(e, t), r.embedTimingPatterns(t);
|
|
20492
20479
|
}, r.embedTypeInfo = function(e, t, n) {
|
|
20493
|
-
var i = new
|
|
20480
|
+
var i = new Re();
|
|
20494
20481
|
r.makeTypeInfoBits(e, t, i);
|
|
20495
20482
|
for (var a = 0, o = i.getSize(); a < o; ++a) {
|
|
20496
20483
|
var s = i.get(i.getSize() - 1 - a), l = r.TYPE_INFO_COORDINATES[a], c = l[0], u = l[1];
|
|
@@ -20504,7 +20491,7 @@ var zo = (
|
|
|
20504
20491
|
}
|
|
20505
20492
|
}, r.maybeEmbedVersionInfo = function(e, t) {
|
|
20506
20493
|
if (!(e.getVersionNumber() < 7)) {
|
|
20507
|
-
var n = new
|
|
20494
|
+
var n = new Re();
|
|
20508
20495
|
r.makeVersionInfoBits(e, n);
|
|
20509
20496
|
for (var i = 17, a = 0; a < 6; ++a)
|
|
20510
20497
|
for (var o = 0; o < 3; ++o) {
|
|
@@ -20519,7 +20506,7 @@ var zo = (
|
|
|
20519
20506
|
var c = o - l;
|
|
20520
20507
|
if (r.isEmpty(n.get(c, s))) {
|
|
20521
20508
|
var u = void 0;
|
|
20522
|
-
i < e.getSize() ? (u = e.get(i), ++i) : u = !1, t !== 255 &&
|
|
20509
|
+
i < e.getSize() ? (u = e.get(i), ++i) : u = !1, t !== 255 && yr.getDataMaskBit(t, c, s) && (u = !u), n.setBoolean(c, s, u);
|
|
20523
20510
|
}
|
|
20524
20511
|
}
|
|
20525
20512
|
s += a;
|
|
@@ -20544,7 +20531,7 @@ var zo = (
|
|
|
20544
20531
|
n.appendBits(i, 5);
|
|
20545
20532
|
var a = r.calculateBCHCode(i, r.TYPE_INFO_POLY);
|
|
20546
20533
|
n.appendBits(a, 10);
|
|
20547
|
-
var o = new
|
|
20534
|
+
var o = new Re();
|
|
20548
20535
|
if (o.appendBits(r.TYPE_INFO_MASK_PATTERN, 15), n.xor(o), n.getSize() !== 15)
|
|
20549
20536
|
throw new fe("should not happen but we got: " + n.getSize());
|
|
20550
20537
|
}, r.makeVersionInfoBits = function(e, t) {
|
|
@@ -20699,29 +20686,29 @@ var zo = (
|
|
|
20699
20686
|
function r() {
|
|
20700
20687
|
}
|
|
20701
20688
|
return r.calculateMaskPenalty = function(e) {
|
|
20702
|
-
return
|
|
20689
|
+
return yr.applyMaskPenaltyRule1(e) + yr.applyMaskPenaltyRule2(e) + yr.applyMaskPenaltyRule3(e) + yr.applyMaskPenaltyRule4(e);
|
|
20703
20690
|
}, r.encode = function(e, t, n) {
|
|
20704
20691
|
n === void 0 && (n = null);
|
|
20705
20692
|
var i = r.DEFAULT_BYTE_MODE_ENCODING, a = n !== null && n.get(Vr.CHARACTER_SET) !== void 0;
|
|
20706
20693
|
a && (i = n.get(Vr.CHARACTER_SET).toString());
|
|
20707
|
-
var o = this.chooseMode(e, i), s = new
|
|
20694
|
+
var o = this.chooseMode(e, i), s = new Re();
|
|
20708
20695
|
if (o === he.BYTE && (a || r.DEFAULT_BYTE_MODE_ENCODING !== i)) {
|
|
20709
20696
|
var l = Ee.getCharacterSetECIByName(i);
|
|
20710
20697
|
l !== void 0 && this.appendECI(l, s);
|
|
20711
20698
|
}
|
|
20712
20699
|
this.appendModeInfo(o, s);
|
|
20713
|
-
var c = new
|
|
20700
|
+
var c = new Re();
|
|
20714
20701
|
this.appendBytes(e, o, c, i);
|
|
20715
20702
|
var u;
|
|
20716
20703
|
if (n !== null && n.get(Vr.QR_VERSION) !== void 0) {
|
|
20717
20704
|
var d = Number.parseInt(n.get(Vr.QR_VERSION).toString(), 10);
|
|
20718
|
-
u =
|
|
20705
|
+
u = Dt.getVersionForNumber(d);
|
|
20719
20706
|
var f = this.calculateBitsNeeded(o, s, c, u);
|
|
20720
20707
|
if (!this.willFit(f, u, t))
|
|
20721
20708
|
throw new fe("Data too big for requested version");
|
|
20722
20709
|
} else
|
|
20723
20710
|
u = this.recommendVersion(t, o, s, c);
|
|
20724
|
-
var h = new
|
|
20711
|
+
var h = new Re();
|
|
20725
20712
|
h.appendBitArray(s);
|
|
20726
20713
|
var v = o === he.BYTE ? c.getSizeInBytes() : e.length;
|
|
20727
20714
|
this.appendLengthInfo(v, u, o, h), h.appendBitArray(c);
|
|
@@ -20732,7 +20719,7 @@ var zo = (
|
|
|
20732
20719
|
var A = u.getDimensionForVersion(), w = new Pf(A, A), S = this.chooseMaskPattern(m, t, u, w);
|
|
20733
20720
|
return C.setMaskPattern(S), ca.buildMatrix(m, t, u, S, w), C.setMatrix(w), C;
|
|
20734
20721
|
}, r.recommendVersion = function(e, t, n, i) {
|
|
20735
|
-
var a = this.calculateBitsNeeded(t, n, i,
|
|
20722
|
+
var a = this.calculateBitsNeeded(t, n, i, Dt.getVersionForNumber(1)), o = this.chooseVersion(a, e), s = this.calculateBitsNeeded(t, n, i, o);
|
|
20736
20723
|
return this.chooseVersion(s, e);
|
|
20737
20724
|
}, r.calculateBitsNeeded = function(e, t, n, i) {
|
|
20738
20725
|
return t.getSize() + e.getCharacterCountBits(i) + n.getSize();
|
|
@@ -20776,7 +20763,7 @@ var zo = (
|
|
|
20776
20763
|
return o;
|
|
20777
20764
|
}, r.chooseVersion = function(e, t) {
|
|
20778
20765
|
for (var n = 1; n <= 40; n++) {
|
|
20779
|
-
var i =
|
|
20766
|
+
var i = Dt.getVersionForNumber(n);
|
|
20780
20767
|
if (r.willFit(e, i, t))
|
|
20781
20768
|
return i;
|
|
20782
20769
|
}
|
|
@@ -20823,7 +20810,7 @@ var zo = (
|
|
|
20823
20810
|
}
|
|
20824
20811
|
if (n !== c)
|
|
20825
20812
|
throw new fe("Data bytes does not match offset");
|
|
20826
|
-
for (var A = new
|
|
20813
|
+
for (var A = new Re(), h = 0; h < u; ++h)
|
|
20827
20814
|
try {
|
|
20828
20815
|
for (var w = (a = void 0, ua(f)), S = w.next(); !S.done; S = w.next()) {
|
|
20829
20816
|
var O = S.value, m = O.getDataBytes();
|
|
@@ -21221,7 +21208,7 @@ var da;
|
|
|
21221
21208
|
(function(r) {
|
|
21222
21209
|
r[r.FORCE_NONE = 0] = "FORCE_NONE", r[r.FORCE_SQUARE = 1] = "FORCE_SQUARE", r[r.FORCE_RECTANGLE = 2] = "FORCE_RECTANGLE";
|
|
21223
21210
|
})(da || (da = {}));
|
|
21224
|
-
var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 239, Qf = 240, Mn = 254, Jf = 254, ha = "[)>05", pa = "[)>06", va = "", oe = 0,
|
|
21211
|
+
var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 239, Qf = 240, Mn = 254, Jf = 254, ha = "[)>05", pa = "[)>06", va = "", oe = 0, ke = 1, Ye = 2, _e = 3, Ne = 4, Ge = 5, e1 = (
|
|
21225
21212
|
/** @class */
|
|
21226
21213
|
function() {
|
|
21227
21214
|
function r() {
|
|
@@ -21239,8 +21226,8 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
|
|
|
21239
21226
|
case Ge:
|
|
21240
21227
|
e.writeCodeword(Wf), e.signalEncoderChange(Ge);
|
|
21241
21228
|
return;
|
|
21242
|
-
case
|
|
21243
|
-
e.writeCodeword(Uo), e.signalEncoderChange(
|
|
21229
|
+
case ke:
|
|
21230
|
+
e.writeCodeword(Uo), e.signalEncoderChange(ke);
|
|
21244
21231
|
return;
|
|
21245
21232
|
case _e:
|
|
21246
21233
|
e.writeCodeword(Zf), e.signalEncoderChange(_e);
|
|
@@ -21248,8 +21235,8 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
|
|
|
21248
21235
|
case Ye:
|
|
21249
21236
|
e.writeCodeword(Kf), e.signalEncoderChange(Ye);
|
|
21250
21237
|
break;
|
|
21251
|
-
case
|
|
21252
|
-
e.writeCodeword(Qf), e.signalEncoderChange(
|
|
21238
|
+
case Ne:
|
|
21239
|
+
e.writeCodeword(Qf), e.signalEncoderChange(Ne);
|
|
21253
21240
|
break;
|
|
21254
21241
|
default:
|
|
21255
21242
|
throw new Error("Illegal mode: " + i);
|
|
@@ -21305,7 +21292,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
|
|
|
21305
21292
|
function r() {
|
|
21306
21293
|
}
|
|
21307
21294
|
return r.prototype.getEncodingMode = function() {
|
|
21308
|
-
return
|
|
21295
|
+
return ke;
|
|
21309
21296
|
}, r.prototype.encodeMaximal = function(e) {
|
|
21310
21297
|
for (var t = new $(), n = 0, i = e.pos, a = 0; e.hasMoreCharacters(); ) {
|
|
21311
21298
|
var o = e.getCurrentChar();
|
|
@@ -21400,7 +21387,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
|
|
|
21400
21387
|
function r() {
|
|
21401
21388
|
}
|
|
21402
21389
|
return r.prototype.getEncodingMode = function() {
|
|
21403
|
-
return
|
|
21390
|
+
return Ne;
|
|
21404
21391
|
}, r.prototype.encode = function(e) {
|
|
21405
21392
|
for (var t = new $(); e.hasMoreCharacters(); ) {
|
|
21406
21393
|
var n = e.getCurrentChar();
|
|
@@ -21796,7 +21783,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
|
|
|
21796
21783
|
var u = l.getCodewordCount();
|
|
21797
21784
|
l.updateSymbolInfo();
|
|
21798
21785
|
var d = l.getSymbolInfo().getDataCapacity();
|
|
21799
|
-
u < d && c !== oe && c !== Ge && c !==
|
|
21786
|
+
u < d && c !== oe && c !== Ge && c !== Ne && l.writeCodeword("þ");
|
|
21800
21787
|
var f = l.getCodewords();
|
|
21801
21788
|
for (f.length() < d && f.append(fa); f.length() < d; )
|
|
21802
21789
|
f.append(this.randomize253State(f.length() + 1));
|
|
@@ -21807,7 +21794,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
|
|
|
21807
21794
|
for (var a = Math.min(t + 3, e.length), o = t; o < a; o++)
|
|
21808
21795
|
if (!this.isNativeX12(e.charCodeAt(o)))
|
|
21809
21796
|
return oe;
|
|
21810
|
-
} else if (n ===
|
|
21797
|
+
} else if (n === Ne && i === Ne) {
|
|
21811
21798
|
for (var a = Math.min(t + 4, e.length), o = t; o < a; o++)
|
|
21812
21799
|
if (!this.isNativeEDIFACT(e.charCodeAt(o)))
|
|
21813
21800
|
return oe;
|
|
@@ -21827,31 +21814,31 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
|
|
|
21827
21814
|
if (c === 1) {
|
|
21828
21815
|
if (o[Ge] > 0)
|
|
21829
21816
|
return Ge;
|
|
21830
|
-
if (o[
|
|
21831
|
-
return
|
|
21817
|
+
if (o[Ne] > 0)
|
|
21818
|
+
return Ne;
|
|
21832
21819
|
if (o[Ye] > 0)
|
|
21833
21820
|
return Ye;
|
|
21834
21821
|
if (o[_e] > 0)
|
|
21835
21822
|
return _e;
|
|
21836
21823
|
}
|
|
21837
|
-
return
|
|
21824
|
+
return ke;
|
|
21838
21825
|
}
|
|
21839
21826
|
var u = e.charCodeAt(t + a);
|
|
21840
|
-
if (a++, this.isDigit(u) ? i[oe] += 0.5 : this.isExtendedASCII(u) ? (i[oe] = Math.ceil(i[oe]), i[oe] += 2) : (i[oe] = Math.ceil(i[oe]), i[oe]++), this.isNativeC40(u) ? i[
|
|
21841
|
-
if (Se.fill(o, 0), Se.fill(s, 0), this.findMinimums(i, s, j.MAX_VALUE, o), s[oe] < this.min(s[Ge], s[
|
|
21827
|
+
if (a++, this.isDigit(u) ? i[oe] += 0.5 : this.isExtendedASCII(u) ? (i[oe] = Math.ceil(i[oe]), i[oe] += 2) : (i[oe] = Math.ceil(i[oe]), i[oe]++), this.isNativeC40(u) ? i[ke] += 2 / 3 : this.isExtendedASCII(u) ? i[ke] += 8 / 3 : i[ke] += 4 / 3, this.isNativeText(u) ? i[Ye] += 2 / 3 : this.isExtendedASCII(u) ? i[Ye] += 8 / 3 : i[Ye] += 4 / 3, this.isNativeX12(u) ? i[_e] += 2 / 3 : this.isExtendedASCII(u) ? i[_e] += 13 / 3 : i[_e] += 10 / 3, this.isNativeEDIFACT(u) ? i[Ne] += 3 / 4 : this.isExtendedASCII(u) ? i[Ne] += 17 / 4 : i[Ne] += 13 / 4, this.isSpecialB256(u) ? i[Ge] += 4 : i[Ge]++, a >= 4) {
|
|
21828
|
+
if (Se.fill(o, 0), Se.fill(s, 0), this.findMinimums(i, s, j.MAX_VALUE, o), s[oe] < this.min(s[Ge], s[ke], s[Ye], s[_e], s[Ne]))
|
|
21842
21829
|
return oe;
|
|
21843
|
-
if (s[Ge] < s[oe] || s[Ge] + 1 < this.min(s[
|
|
21830
|
+
if (s[Ge] < s[oe] || s[Ge] + 1 < this.min(s[ke], s[Ye], s[_e], s[Ne]))
|
|
21844
21831
|
return Ge;
|
|
21845
|
-
if (s[
|
|
21846
|
-
return
|
|
21847
|
-
if (s[Ye] + 1 < this.min(s[Ge], s[
|
|
21832
|
+
if (s[Ne] + 1 < this.min(s[Ge], s[ke], s[Ye], s[_e], s[oe]))
|
|
21833
|
+
return Ne;
|
|
21834
|
+
if (s[Ye] + 1 < this.min(s[Ge], s[ke], s[Ne], s[_e], s[oe]))
|
|
21848
21835
|
return Ye;
|
|
21849
|
-
if (s[_e] + 1 < this.min(s[Ge], s[
|
|
21836
|
+
if (s[_e] + 1 < this.min(s[Ge], s[ke], s[Ne], s[Ye], s[oe]))
|
|
21850
21837
|
return _e;
|
|
21851
|
-
if (s[
|
|
21852
|
-
if (s[
|
|
21853
|
-
return
|
|
21854
|
-
if (s[
|
|
21838
|
+
if (s[ke] + 1 < this.min(s[oe], s[Ge], s[Ne], s[Ye])) {
|
|
21839
|
+
if (s[ke] < s[_e])
|
|
21840
|
+
return ke;
|
|
21841
|
+
if (s[ke] === s[_e]) {
|
|
21855
21842
|
for (var d = t + a + 1; d < e.length; ) {
|
|
21856
21843
|
var f = e.charCodeAt(d);
|
|
21857
21844
|
if (this.isX12TermSep(f))
|
|
@@ -21860,7 +21847,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
|
|
|
21860
21847
|
break;
|
|
21861
21848
|
d++;
|
|
21862
21849
|
}
|
|
21863
|
-
return
|
|
21850
|
+
return ke;
|
|
21864
21851
|
}
|
|
21865
21852
|
}
|
|
21866
21853
|
}
|
|
@@ -22305,7 +22292,7 @@ var g1 = (
|
|
|
22305
22292
|
function w1(r, e, t) {
|
|
22306
22293
|
return new C1(r, e, t);
|
|
22307
22294
|
}
|
|
22308
|
-
function
|
|
22295
|
+
function pr(r, e, t) {
|
|
22309
22296
|
return new xi(r, e, t);
|
|
22310
22297
|
}
|
|
22311
22298
|
var _1 = [
|
|
@@ -22314,7 +22301,7 @@ var _1 = [
|
|
|
22314
22301
|
"DIGIT",
|
|
22315
22302
|
"MIXED",
|
|
22316
22303
|
"PUNCT"
|
|
22317
|
-
],
|
|
22304
|
+
], Et = 0, $r = 1, it = 2, Ho = 3, ht = 4, A1 = new xi(null, 0, 0), Fn = [
|
|
22318
22305
|
Int32Array.from([
|
|
22319
22306
|
0,
|
|
22320
22307
|
(5 << 16) + 28,
|
|
@@ -22380,7 +22367,7 @@ function S1(r) {
|
|
|
22380
22367
|
if (e) throw e.error;
|
|
22381
22368
|
}
|
|
22382
22369
|
}
|
|
22383
|
-
return r[
|
|
22370
|
+
return r[Et][ht] = 0, r[$r][ht] = 0, r[$r][Et] = 28, r[Ho][ht] = 0, r[it][ht] = 0, r[it][Et] = 15, r;
|
|
22384
22371
|
}
|
|
22385
22372
|
var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
|
|
22386
22373
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
|
|
@@ -22409,18 +22396,18 @@ var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
|
|
|
22409
22396
|
var n = this.bitCount, i = this.token;
|
|
22410
22397
|
if (e !== this.mode) {
|
|
22411
22398
|
var a = Fn[this.mode][e];
|
|
22412
|
-
i =
|
|
22399
|
+
i = pr(i, a & 65535, a >> 16), n += a >> 16;
|
|
22413
22400
|
}
|
|
22414
22401
|
var o = e === it ? 4 : 5;
|
|
22415
|
-
return i =
|
|
22402
|
+
return i = pr(i, t, o), new r(i, e, 0, n + o);
|
|
22416
22403
|
}, r.prototype.shiftAndAppend = function(e, t) {
|
|
22417
22404
|
var n = this.token, i = this.mode === it ? 4 : 5;
|
|
22418
|
-
return n =
|
|
22405
|
+
return n = pr(n, Go[this.mode][e], i), n = pr(n, t, 5), new r(n, this.mode, 0, this.bitCount + i + 5);
|
|
22419
22406
|
}, r.prototype.addBinaryShiftChar = function(e) {
|
|
22420
22407
|
var t = this.token, n = this.mode, i = this.bitCount;
|
|
22421
22408
|
if (this.mode === ht || this.mode === it) {
|
|
22422
|
-
var a = Fn[n][
|
|
22423
|
-
t =
|
|
22409
|
+
var a = Fn[n][Et];
|
|
22410
|
+
t = pr(t, a & 65535, a >> 16), i += a >> 16, n = Et;
|
|
22424
22411
|
}
|
|
22425
22412
|
var o = this.binaryShiftByteCount === 0 || this.binaryShiftByteCount === 31 ? 18 : this.binaryShiftByteCount === 62 ? 9 : 8, s = new r(t, n, this.binaryShiftByteCount + 1, i + o);
|
|
22426
22413
|
return s.binaryShiftByteCount === 2078 && (s = s.endBinaryShift(e + 1)), s;
|
|
@@ -22435,7 +22422,7 @@ var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
|
|
|
22435
22422
|
}, r.prototype.toBitArray = function(e) {
|
|
22436
22423
|
for (var t, n, i = [], a = this.endBinaryShift(e.length).token; a !== null; a = a.getPrevious())
|
|
22437
22424
|
i.unshift(a);
|
|
22438
|
-
var o = new
|
|
22425
|
+
var o = new Re();
|
|
22439
22426
|
try {
|
|
22440
22427
|
for (var s = b1(i), l = s.next(); !l.done; l = s.next()) {
|
|
22441
22428
|
var c = l.value;
|
|
@@ -22455,14 +22442,14 @@ var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
|
|
|
22455
22442
|
return Y.format("%s bits=%d bytes=%d", _1[this.mode], this.bitCount, this.binaryShiftByteCount);
|
|
22456
22443
|
}, r.calculateBinaryShiftCost = function(e) {
|
|
22457
22444
|
return e.binaryShiftByteCount > 62 ? 21 : e.binaryShiftByteCount > 31 ? 20 : e.binaryShiftByteCount > 0 ? 10 : 0;
|
|
22458
|
-
}, r.INITIAL_STATE = new r(A1,
|
|
22445
|
+
}, r.INITIAL_STATE = new r(A1, Et, 0, 0), r;
|
|
22459
22446
|
}()
|
|
22460
22447
|
);
|
|
22461
22448
|
function O1(r) {
|
|
22462
22449
|
var e = Y.getCharCode(" "), t = Y.getCharCode("."), n = Y.getCharCode(",");
|
|
22463
|
-
r[
|
|
22450
|
+
r[Et][e] = 1;
|
|
22464
22451
|
for (var i = Y.getCharCode("Z"), a = Y.getCharCode("A"), o = a; o <= i; o++)
|
|
22465
|
-
r[
|
|
22452
|
+
r[Et][o] = o - a + 2;
|
|
22466
22453
|
r[$r][e] = 1;
|
|
22467
22454
|
for (var s = Y.getCharCode("z"), l = Y.getCharCode("a"), o = l; o <= s; o++)
|
|
22468
22455
|
r[$r][o] = o - l + 2;
|
|
@@ -22754,7 +22741,7 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
|
|
|
22754
22741
|
e.set(a, t - i), e.set(a, t + i), e.set(t - i, a), e.set(t + i, a);
|
|
22755
22742
|
e.set(t - n, t - n), e.set(t - n + 1, t - n), e.set(t - n, t - n + 1), e.set(t + n, t - n), e.set(t + n, t - n + 1), e.set(t + n, t + n - 1);
|
|
22756
22743
|
}, r.generateModeMessage = function(e, t, n) {
|
|
22757
|
-
var i = new
|
|
22744
|
+
var i = new Re();
|
|
22758
22745
|
return e ? (i.appendBits(t - 1, 2), i.appendBits(n - 1, 6), i = r.generateCheckWords(i, 28, 4)) : (i.appendBits(t - 1, 5), i.appendBits(n - 1, 11), i = r.generateCheckWords(i, 40, 4)), i;
|
|
22759
22746
|
}, r.drawModeMessage = function(e, t, n, i) {
|
|
22760
22747
|
var a = j.truncDivision(n, 2);
|
|
@@ -22771,7 +22758,7 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
|
|
|
22771
22758
|
}, r.generateCheckWords = function(e, t, n) {
|
|
22772
22759
|
var i, a, o = e.getSize() / n, s = new zo(r.getGF(n)), l = j.truncDivision(t, n), c = r.bitsToWords(e, n, l);
|
|
22773
22760
|
s.encode(c, l - o);
|
|
22774
|
-
var u = t % n, d = new
|
|
22761
|
+
var u = t % n, d = new Re();
|
|
22775
22762
|
d.appendBits(0, u);
|
|
22776
22763
|
try {
|
|
22777
22764
|
for (var f = T1(Array.from(c)), h = f.next(); !h.done; h = f.next()) {
|
|
@@ -22812,7 +22799,7 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
|
|
|
22812
22799
|
throw new H("Unsupported word size " + e);
|
|
22813
22800
|
}
|
|
22814
22801
|
}, r.stuffBits = function(e, t) {
|
|
22815
|
-
for (var n = new
|
|
22802
|
+
for (var n = new Re(), i = e.getSize(), a = (1 << t) - 2, o = 0; o < i; o += t) {
|
|
22816
22803
|
for (var s = 0, l = 0; l < t; l++)
|
|
22817
22804
|
(o + l >= i || e.get(o + l)) && (s |= 1 << t - 1 - l);
|
|
22818
22805
|
(s & a) === a ? (n.appendBits(s & a, t), o--) : (s & a) === 0 ? (n.appendBits(s | 1, t), o--) : n.appendBits(s, t);
|
|
@@ -22909,7 +22896,7 @@ const qo = L((r) => {
|
|
|
22909
22896
|
hints: D1
|
|
22910
22897
|
});
|
|
22911
22898
|
return /* @__PURE__ */ _("div", { className: "bg-(--color-background) flex size-full flex-col justify-center overflow-hidden", children: [
|
|
22912
|
-
/* @__PURE__ */ p("div", { className: "flex w-full justify-end p-4", children: /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { "aria-label": "close", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(N, { icon:
|
|
22899
|
+
/* @__PURE__ */ p("div", { className: "flex w-full justify-end p-4", children: /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { "aria-label": "close", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(N, { icon: bt }) }) }) }),
|
|
22913
22900
|
/* @__PURE__ */ p("div", { className: "max-h-full w-full grow overflow-hidden p-4", children: /* @__PURE__ */ p("video", { className: "size-full", ref: o }) })
|
|
22914
22901
|
] });
|
|
22915
22902
|
});
|
|
@@ -22951,7 +22938,7 @@ const Xo = L((r) => {
|
|
|
22951
22938
|
u(!1), a();
|
|
22952
22939
|
}, [a]);
|
|
22953
22940
|
return /* @__PURE__ */ _(
|
|
22954
|
-
|
|
22941
|
+
Me,
|
|
22955
22942
|
{
|
|
22956
22943
|
size: t,
|
|
22957
22944
|
inputId: e.identifier,
|
|
@@ -22962,7 +22949,7 @@ const Xo = L((r) => {
|
|
|
22962
22949
|
image: e.image,
|
|
22963
22950
|
children: [
|
|
22964
22951
|
/* @__PURE__ */ p(
|
|
22965
|
-
|
|
22952
|
+
sr,
|
|
22966
22953
|
{
|
|
22967
22954
|
className: "field-sizing-content w-full",
|
|
22968
22955
|
accentColor: "base",
|
|
@@ -22999,7 +22986,7 @@ const Xo = L((r) => {
|
|
|
22999
22986
|
);
|
|
23000
22987
|
});
|
|
23001
22988
|
Xo.displayName = "ScanFieldInput";
|
|
23002
|
-
class
|
|
22989
|
+
class Ar extends tt {
|
|
23003
22990
|
constructor(t) {
|
|
23004
22991
|
super(t);
|
|
23005
22992
|
R(this, "type", "qr");
|
|
@@ -23011,7 +22998,7 @@ class _r extends tt {
|
|
|
23011
22998
|
return super.getOptions();
|
|
23012
22999
|
}
|
|
23013
23000
|
duplicate(t) {
|
|
23014
|
-
return new
|
|
23001
|
+
return new Ar({
|
|
23015
23002
|
...this.getOptions(),
|
|
23016
23003
|
identifier: t
|
|
23017
23004
|
});
|
|
@@ -23020,7 +23007,7 @@ class _r extends tt {
|
|
|
23020
23007
|
super.setOptions(t);
|
|
23021
23008
|
}
|
|
23022
23009
|
static deserialize(t) {
|
|
23023
|
-
return new
|
|
23010
|
+
return new Ar(t);
|
|
23024
23011
|
}
|
|
23025
23012
|
serializeValue(t) {
|
|
23026
23013
|
return t;
|
|
@@ -23063,7 +23050,7 @@ const Ca = 500, Wo = L((r) => {
|
|
|
23063
23050
|
f.key === "Enter" && f.preventDefault();
|
|
23064
23051
|
}, []);
|
|
23065
23052
|
return /* @__PURE__ */ p(
|
|
23066
|
-
|
|
23053
|
+
Me,
|
|
23067
23054
|
{
|
|
23068
23055
|
size: t,
|
|
23069
23056
|
inputId: e.identifier,
|
|
@@ -23091,7 +23078,7 @@ const Ca = 500, Wo = L((r) => {
|
|
|
23091
23078
|
);
|
|
23092
23079
|
});
|
|
23093
23080
|
Wo.displayName = "StringFieldInput";
|
|
23094
|
-
class
|
|
23081
|
+
class nr extends go {
|
|
23095
23082
|
constructor(t) {
|
|
23096
23083
|
const { ...n } = t, i = t.maxLength ? Math.min(Ca, t.maxLength) : Ca, a = t.minLength ? Math.min(t.minLength, i) : void 0;
|
|
23097
23084
|
super({ ...n, maxLength: i, minLength: a });
|
|
@@ -23104,7 +23091,7 @@ class rr extends go {
|
|
|
23104
23091
|
return super.getOptions();
|
|
23105
23092
|
}
|
|
23106
23093
|
duplicate(t) {
|
|
23107
|
-
return new
|
|
23094
|
+
return new nr({
|
|
23108
23095
|
...this.getOptions(),
|
|
23109
23096
|
identifier: t
|
|
23110
23097
|
});
|
|
@@ -23114,7 +23101,7 @@ class rr extends go {
|
|
|
23114
23101
|
}
|
|
23115
23102
|
static deserialize(t) {
|
|
23116
23103
|
const { maximum_length: n, minimum_length: i, ...a } = t;
|
|
23117
|
-
return new
|
|
23104
|
+
return new nr({
|
|
23118
23105
|
...a,
|
|
23119
23106
|
maxLength: n,
|
|
23120
23107
|
minLength: i,
|
|
@@ -23136,7 +23123,7 @@ const $o = L((r) => {
|
|
|
23136
23123
|
a();
|
|
23137
23124
|
}, [a]);
|
|
23138
23125
|
return /* @__PURE__ */ p(
|
|
23139
|
-
|
|
23126
|
+
Me,
|
|
23140
23127
|
{
|
|
23141
23128
|
size: t,
|
|
23142
23129
|
inputId: e.identifier,
|
|
@@ -23146,7 +23133,7 @@ const $o = L((r) => {
|
|
|
23146
23133
|
error: s,
|
|
23147
23134
|
image: e.image,
|
|
23148
23135
|
children: /* @__PURE__ */ p(
|
|
23149
|
-
|
|
23136
|
+
sr,
|
|
23150
23137
|
{
|
|
23151
23138
|
id: e.identifier,
|
|
23152
23139
|
value: n ?? "",
|
|
@@ -23166,7 +23153,7 @@ const $o = L((r) => {
|
|
|
23166
23153
|
);
|
|
23167
23154
|
});
|
|
23168
23155
|
$o.displayName = "TextFieldInput";
|
|
23169
|
-
class
|
|
23156
|
+
class ir extends go {
|
|
23170
23157
|
constructor(t) {
|
|
23171
23158
|
const n = t.maxLength ? Math.min(Xr, t.maxLength) : Xr, i = t.minLength ? Math.min(t.minLength, n) : void 0;
|
|
23172
23159
|
super({ ...t, maxLength: n, minLength: i });
|
|
@@ -23179,7 +23166,7 @@ class nr extends go {
|
|
|
23179
23166
|
return super.getOptions();
|
|
23180
23167
|
}
|
|
23181
23168
|
duplicate(t) {
|
|
23182
|
-
return new
|
|
23169
|
+
return new ir({
|
|
23183
23170
|
...this.getOptions(),
|
|
23184
23171
|
identifier: t
|
|
23185
23172
|
});
|
|
@@ -23189,7 +23176,7 @@ class nr extends go {
|
|
|
23189
23176
|
}
|
|
23190
23177
|
static deserialize(t) {
|
|
23191
23178
|
const { maximum_length: n, minimum_length: i, ...a } = t;
|
|
23192
|
-
return new
|
|
23179
|
+
return new ir({
|
|
23193
23180
|
...a,
|
|
23194
23181
|
maxLength: n,
|
|
23195
23182
|
minLength: i,
|
|
@@ -23238,13 +23225,13 @@ const rn = (r) => {
|
|
|
23238
23225
|
minutes: Number(e[2]),
|
|
23239
23226
|
utcOffset: t
|
|
23240
23227
|
} : null;
|
|
23241
|
-
},
|
|
23228
|
+
}, Te = (r) => typeof r == "string" && rn(r) !== null, _a = (r, e, t = B1()) => {
|
|
23242
23229
|
if (!Number.isInteger(r) || r < 0 || r > 23) throw new Error(`Invalid hour: ${r}`);
|
|
23243
23230
|
if (!Number.isInteger(e) || e < 0 || e > 59) throw new Error(`Invalid minute: ${e}`);
|
|
23244
23231
|
if (!mi(t)) throw new Error("Unsupported UTC offset");
|
|
23245
23232
|
const n = r.toString().padStart(2, "0"), i = e.toString().padStart(2, "0");
|
|
23246
23233
|
return `T${n}:${i}:00${t}`;
|
|
23247
|
-
}, ei = (r) => `UTC${r}`,
|
|
23234
|
+
}, ei = (r) => `UTC${r}`, Rt = (r) => {
|
|
23248
23235
|
const e = rn(r);
|
|
23249
23236
|
if (!e) throw new Error(`Invalid time value: ${r}`);
|
|
23250
23237
|
return (e.hours * 60 + e.minutes - k1(e.utcOffset) + 1440) % 1440;
|
|
@@ -23253,8 +23240,8 @@ const rn = (r) => {
|
|
|
23253
23240
|
if (!t) throw new Error(`Invalid time value: ${r}`);
|
|
23254
23241
|
const n = (t.hours % 12 || 12).toString().padStart(2, "0"), i = t.minutes.toString().padStart(2, "0"), a = t.hours >= 12 ? "PM" : "AM", o = `${n}:${i} ${a}`;
|
|
23255
23242
|
return e ? `${o} ${ei(t.utcOffset)}` : o;
|
|
23256
|
-
}, Pr = (r) => typeof r == "object" && (
|
|
23257
|
-
const t =
|
|
23243
|
+
}, Pr = (r) => typeof r == "object" && (Te(r.from) || Te(r.to)), Yo = (r, e) => {
|
|
23244
|
+
const t = Rt(r), n = e.from ? Rt(e.from) : null, i = e.to ? Rt(e.to) : null;
|
|
23258
23245
|
return n === null && i === null ? !0 : n === null ? t <= i : i === null ? t >= n : n <= i ? t >= n && t <= i : t >= n || t <= i;
|
|
23259
23246
|
}, Ci = L((r) => {
|
|
23260
23247
|
const { value: e, onChange: t, onBlur: n, disabled: i, size: a = "md", id: o, name: s, compact: l = !1 } = r, c = e ? rn(e) : null, u = c ? `${c.hours.toString().padStart(2, "0")}:${c.minutes.toString().padStart(2, "0")}` : "", d = b(
|
|
@@ -23285,7 +23272,7 @@ const rn = (r) => {
|
|
|
23285
23272
|
{
|
|
23286
23273
|
id: o,
|
|
23287
23274
|
name: s,
|
|
23288
|
-
className:
|
|
23275
|
+
className: kt(
|
|
23289
23276
|
"[&::-webkit-calendar-picker-indicator]:invert-40 dark:[&::-webkit-calendar-picker-indicator]:invert-60",
|
|
23290
23277
|
{
|
|
23291
23278
|
"[&::-webkit-datetime-edit]:opacity-60": !e
|
|
@@ -23334,7 +23321,7 @@ Ci.displayName = "TimeFieldControl";
|
|
|
23334
23321
|
const Zo = L((r) => {
|
|
23335
23322
|
const { field: e } = r, { size: t } = ce(Ce), { value: n, name: i, onBlur: a, onChange: o, error: s, disabled: l } = ze({ field: e });
|
|
23336
23323
|
return /* @__PURE__ */ p(
|
|
23337
|
-
|
|
23324
|
+
Me,
|
|
23338
23325
|
{
|
|
23339
23326
|
size: t,
|
|
23340
23327
|
inputId: e.identifier,
|
|
@@ -23359,19 +23346,19 @@ const Zo = L((r) => {
|
|
|
23359
23346
|
);
|
|
23360
23347
|
});
|
|
23361
23348
|
Zo.displayName = "TimeFieldInput";
|
|
23362
|
-
class
|
|
23349
|
+
class Er extends tt {
|
|
23363
23350
|
constructor(t) {
|
|
23364
23351
|
super(t);
|
|
23365
23352
|
R(this, "type", "time");
|
|
23366
23353
|
}
|
|
23367
23354
|
static deserialize(t) {
|
|
23368
|
-
return new
|
|
23355
|
+
return new Er(t);
|
|
23369
23356
|
}
|
|
23370
23357
|
getOptions() {
|
|
23371
23358
|
return super.getOptions();
|
|
23372
23359
|
}
|
|
23373
23360
|
duplicate(t) {
|
|
23374
|
-
return new
|
|
23361
|
+
return new Er({
|
|
23375
23362
|
...this.getOptions(),
|
|
23376
23363
|
identifier: t
|
|
23377
23364
|
});
|
|
@@ -23389,10 +23376,10 @@ class Ar extends tt {
|
|
|
23389
23376
|
return /* @__PURE__ */ p(Zo, { field: this });
|
|
23390
23377
|
}
|
|
23391
23378
|
isSerializedValue(t) {
|
|
23392
|
-
return t === null ||
|
|
23379
|
+
return t === null || Te(t);
|
|
23393
23380
|
}
|
|
23394
23381
|
isValue(t) {
|
|
23395
|
-
return t === null ||
|
|
23382
|
+
return t === null || Te(t);
|
|
23396
23383
|
}
|
|
23397
23384
|
blankValue() {
|
|
23398
23385
|
return null;
|
|
@@ -23419,7 +23406,7 @@ const Ko = L((r) => {
|
|
|
23419
23406
|
a();
|
|
23420
23407
|
return;
|
|
23421
23408
|
}
|
|
23422
|
-
const C = Array.from(m).map((w) =>
|
|
23409
|
+
const C = Array.from(m).map((w) => Pt.from(G(), w)), A = [...n, ...C];
|
|
23423
23410
|
o(A), a();
|
|
23424
23411
|
}, [a, o, n]), f = b(
|
|
23425
23412
|
(m) => {
|
|
@@ -23445,7 +23432,7 @@ const Ko = L((r) => {
|
|
|
23445
23432
|
}, [a, n]);
|
|
23446
23433
|
const g = e.maxFiles > 1 ? "Select files" : "Select a file";
|
|
23447
23434
|
return /* @__PURE__ */ _(
|
|
23448
|
-
|
|
23435
|
+
Me,
|
|
23449
23436
|
{
|
|
23450
23437
|
size: t,
|
|
23451
23438
|
inputId: e.identifier,
|
|
@@ -23485,7 +23472,7 @@ const Ko = L((r) => {
|
|
|
23485
23472
|
value: ""
|
|
23486
23473
|
}
|
|
23487
23474
|
),
|
|
23488
|
-
n.length > 0 && /* @__PURE__ */ p("div", { className: "flex h-max flex-col gap-2", children: n.map((m) => /* @__PURE__ */ p(
|
|
23475
|
+
n.length > 0 && /* @__PURE__ */ p("div", { className: "mt-1 flex h-max flex-col gap-2", children: n.map((m) => /* @__PURE__ */ p(
|
|
23489
23476
|
ci,
|
|
23490
23477
|
{
|
|
23491
23478
|
size: t,
|
|
@@ -23500,7 +23487,7 @@ const Ko = L((r) => {
|
|
|
23500
23487
|
);
|
|
23501
23488
|
});
|
|
23502
23489
|
Ko.displayName = "UploadFieldInput";
|
|
23503
|
-
class
|
|
23490
|
+
class ar extends tt {
|
|
23504
23491
|
constructor(t) {
|
|
23505
23492
|
const { extensions: n, maximum_files: i, maximum_size: a, ...o } = t;
|
|
23506
23493
|
super(o);
|
|
@@ -23528,17 +23515,17 @@ class ir extends tt {
|
|
|
23528
23515
|
{
|
|
23529
23516
|
field: new Je({
|
|
23530
23517
|
label: "What is the maximum size of each file?",
|
|
23531
|
-
description: `Maximum file size in megabytes (between 1MB–${
|
|
23518
|
+
description: `Maximum file size in megabytes (between 1MB–${mr}MB).`,
|
|
23532
23519
|
required: !1,
|
|
23533
23520
|
identifier: `${n}maximum_size`,
|
|
23534
23521
|
minimum: 1,
|
|
23535
|
-
maximum:
|
|
23522
|
+
maximum: mr,
|
|
23536
23523
|
integers: !0
|
|
23537
23524
|
}),
|
|
23538
23525
|
showDirectly: !1
|
|
23539
23526
|
},
|
|
23540
23527
|
{
|
|
23541
|
-
field: new
|
|
23528
|
+
field: new St({
|
|
23542
23529
|
label: "Accepted file types",
|
|
23543
23530
|
description: "Types of allowed files to upload. If left blank, all files will be accepted.",
|
|
23544
23531
|
required: !1,
|
|
@@ -23571,9 +23558,9 @@ class ir extends tt {
|
|
|
23571
23558
|
];
|
|
23572
23559
|
}
|
|
23573
23560
|
getFieldValidators() {
|
|
23574
|
-
const t = super.getFieldValidators(), n = this.maxFileSize ??
|
|
23561
|
+
const t = super.getFieldValidators(), n = this.maxFileSize ?? mr, i = n * 1e3 * 1e3, a = this.maxFiles || 1;
|
|
23575
23562
|
return t.push((o) => {
|
|
23576
|
-
if (o.some((s) => s instanceof
|
|
23563
|
+
if (o.some((s) => s instanceof Pt && s.size > i))
|
|
23577
23564
|
return `Files must be at most ${n}MB.`;
|
|
23578
23565
|
}), t.push((o) => {
|
|
23579
23566
|
if (o.length > a)
|
|
@@ -23597,7 +23584,7 @@ class ir extends tt {
|
|
|
23597
23584
|
};
|
|
23598
23585
|
}
|
|
23599
23586
|
duplicate(t) {
|
|
23600
|
-
return new
|
|
23587
|
+
return new ar({
|
|
23601
23588
|
...this.getOptions(),
|
|
23602
23589
|
identifier: t
|
|
23603
23590
|
});
|
|
@@ -23607,7 +23594,7 @@ class ir extends tt {
|
|
|
23607
23594
|
this.maxFileSize = typeof a == "number" ? a : this.maxFileSize, this.maxFiles = typeof i == "number" ? i : this.maxFiles, this.extensions = n, super.setOptions(o);
|
|
23608
23595
|
}
|
|
23609
23596
|
static deserialize(t) {
|
|
23610
|
-
return new
|
|
23597
|
+
return new ar(t);
|
|
23611
23598
|
}
|
|
23612
23599
|
serializeValue(t) {
|
|
23613
23600
|
return [];
|
|
@@ -23622,7 +23609,7 @@ class ir extends tt {
|
|
|
23622
23609
|
return Array.isArray(t) && t.length === 0;
|
|
23623
23610
|
}
|
|
23624
23611
|
isValue(t) {
|
|
23625
|
-
return Array.isArray(t) ? t.every((n) => n instanceof
|
|
23612
|
+
return Array.isArray(t) ? t.every((n) => n instanceof Qt || n instanceof Pt) : !1;
|
|
23626
23613
|
}
|
|
23627
23614
|
areValuesEqual(t, n) {
|
|
23628
23615
|
return li(t, n);
|
|
@@ -23652,7 +23639,7 @@ const Qo = L((r) => {
|
|
|
23652
23639
|
n !== null && window.open(n, "_blank", "noopener,noreferrer");
|
|
23653
23640
|
}, [n]);
|
|
23654
23641
|
return /* @__PURE__ */ p(
|
|
23655
|
-
|
|
23642
|
+
Me,
|
|
23656
23643
|
{
|
|
23657
23644
|
size: t,
|
|
23658
23645
|
inputId: e.identifier,
|
|
@@ -23695,7 +23682,7 @@ const Qo = L((r) => {
|
|
|
23695
23682
|
);
|
|
23696
23683
|
});
|
|
23697
23684
|
Qo.displayName = "URLFieldInput";
|
|
23698
|
-
class
|
|
23685
|
+
class Sr extends tt {
|
|
23699
23686
|
constructor(t) {
|
|
23700
23687
|
const { placeholder: n = "https://example.com", ...i } = t;
|
|
23701
23688
|
super(i);
|
|
@@ -23716,7 +23703,7 @@ class Er extends tt {
|
|
|
23716
23703
|
};
|
|
23717
23704
|
}
|
|
23718
23705
|
duplicate(t) {
|
|
23719
|
-
return new
|
|
23706
|
+
return new Sr({
|
|
23720
23707
|
...this.getOptions(),
|
|
23721
23708
|
identifier: t
|
|
23722
23709
|
});
|
|
@@ -23726,7 +23713,7 @@ class Er extends tt {
|
|
|
23726
23713
|
this.placeholder = n ?? this.placeholder, super.setOptions(i);
|
|
23727
23714
|
}
|
|
23728
23715
|
static deserialize(t) {
|
|
23729
|
-
return new
|
|
23716
|
+
return new Sr(t);
|
|
23730
23717
|
}
|
|
23731
23718
|
serializeValue(t) {
|
|
23732
23719
|
return (t == null ? void 0 : t.toString()) ?? null;
|
|
@@ -23757,23 +23744,23 @@ class Er extends tt {
|
|
|
23757
23744
|
}
|
|
23758
23745
|
}
|
|
23759
23746
|
const Jo = {
|
|
23760
|
-
date:
|
|
23761
|
-
time:
|
|
23747
|
+
date: wr,
|
|
23748
|
+
time: Er,
|
|
23762
23749
|
number: Je,
|
|
23763
23750
|
boolean: Yt,
|
|
23764
|
-
select:
|
|
23765
|
-
string:
|
|
23766
|
-
url:
|
|
23767
|
-
text:
|
|
23768
|
-
upload:
|
|
23769
|
-
qr:
|
|
23751
|
+
select: Ft,
|
|
23752
|
+
string: nr,
|
|
23753
|
+
url: Sr,
|
|
23754
|
+
text: ir,
|
|
23755
|
+
upload: ar,
|
|
23756
|
+
qr: Ar,
|
|
23770
23757
|
"multi-string": jt,
|
|
23771
|
-
"multi-select":
|
|
23772
|
-
radio:
|
|
23758
|
+
"multi-select": St,
|
|
23759
|
+
radio: er,
|
|
23773
23760
|
"checkbox-list": Zt,
|
|
23774
|
-
"pass-fail":
|
|
23761
|
+
"pass-fail": Jt,
|
|
23775
23762
|
otp: Kt,
|
|
23776
|
-
rating:
|
|
23763
|
+
rating: tr
|
|
23777
23764
|
}, L1 = Object.keys(Jo), me = {
|
|
23778
23765
|
"checkbox-list": {
|
|
23779
23766
|
description: "Allows the user to select a multiple options from a list.",
|
|
@@ -23885,7 +23872,7 @@ const Jo = {
|
|
|
23885
23872
|
[J.Temporal]: { name: "Temporal" },
|
|
23886
23873
|
[J.Text]: { name: "Text" },
|
|
23887
23874
|
[J.Verification]: { name: "Verification" }
|
|
23888
|
-
},
|
|
23875
|
+
}, mr = 50, U1 = mr * 1e3, H1 = U1 * 1e3, Ve = "Unlabelled", es = "Unlabelled";
|
|
23889
23876
|
class W {
|
|
23890
23877
|
constructor(e) {
|
|
23891
23878
|
R(this, "id");
|
|
@@ -24173,13 +24160,13 @@ const G1 = W.create({
|
|
|
24173
24160
|
}), a0 = W.create({
|
|
24174
24161
|
id: "time-before",
|
|
24175
24162
|
label: "before",
|
|
24176
|
-
getApplyFn: (r) => (e) =>
|
|
24163
|
+
getApplyFn: (r) => (e) => Rt(e) < Rt(r),
|
|
24177
24164
|
serialize: (r) => r,
|
|
24178
24165
|
deserialize: (r) => r
|
|
24179
24166
|
}), o0 = W.create({
|
|
24180
24167
|
id: "time-after",
|
|
24181
24168
|
label: "after",
|
|
24182
|
-
getApplyFn: (r) => (e) =>
|
|
24169
|
+
getApplyFn: (r) => (e) => Rt(e) > Rt(r),
|
|
24183
24170
|
serialize: (r) => r,
|
|
24184
24171
|
deserialize: (r) => r
|
|
24185
24172
|
}), s0 = W.create({
|
|
@@ -24238,12 +24225,12 @@ class Ue extends Kr {
|
|
|
24238
24225
|
return t;
|
|
24239
24226
|
}
|
|
24240
24227
|
}
|
|
24241
|
-
const ds = L,
|
|
24228
|
+
const ds = L, Bt = ds(function(r) {
|
|
24242
24229
|
const { ref: e, children: t, ...n } = r, i = b(
|
|
24243
|
-
(a) => typeof t == "function" ? /* @__PURE__ */ _(
|
|
24230
|
+
(a) => typeof t == "function" ? /* @__PURE__ */ _(Ie, { children: [
|
|
24244
24231
|
t(a),
|
|
24245
24232
|
/* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(N, { icon: et }) })
|
|
24246
|
-
] }) : /* @__PURE__ */ _(
|
|
24233
|
+
] }) : /* @__PURE__ */ _(Ie, { children: [
|
|
24247
24234
|
t,
|
|
24248
24235
|
/* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(N, { icon: et }) })
|
|
24249
24236
|
] }),
|
|
@@ -24252,10 +24239,10 @@ const ds = L, kt = ds(function(r) {
|
|
|
24252
24239
|
return /* @__PURE__ */ p(D.SelectItem, { ref: e, ...n, children: i });
|
|
24253
24240
|
}), fs = ds(function(r) {
|
|
24254
24241
|
const { ref: e, children: t, ...n } = r, i = b(
|
|
24255
|
-
(a) => typeof t == "function" ? /* @__PURE__ */ _(
|
|
24242
|
+
(a) => typeof t == "function" ? /* @__PURE__ */ _(Ie, { children: [
|
|
24256
24243
|
t(a),
|
|
24257
24244
|
/* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(N, { icon: et }) })
|
|
24258
|
-
] }) : /* @__PURE__ */ _(
|
|
24245
|
+
] }) : /* @__PURE__ */ _(Ie, { children: [
|
|
24259
24246
|
t,
|
|
24260
24247
|
/* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(N, { icon: et }) })
|
|
24261
24248
|
] }),
|
|
@@ -24264,10 +24251,10 @@ const ds = L, kt = ds(function(r) {
|
|
|
24264
24251
|
return /* @__PURE__ */ p(D.MultiSelectItem, { ref: e, ...n, children: i });
|
|
24265
24252
|
}), bi = L((r) => {
|
|
24266
24253
|
const { ref: e, children: t, ...n } = r, i = b(
|
|
24267
|
-
(a) => typeof t == "function" ? /* @__PURE__ */ _(
|
|
24254
|
+
(a) => typeof t == "function" ? /* @__PURE__ */ _(Ie, { children: [
|
|
24268
24255
|
t(a),
|
|
24269
24256
|
/* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) })
|
|
24270
|
-
] }) : /* @__PURE__ */ _(
|
|
24257
|
+
] }) : /* @__PURE__ */ _(Ie, { children: [
|
|
24271
24258
|
t,
|
|
24272
24259
|
/* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) })
|
|
24273
24260
|
] }),
|
|
@@ -24285,7 +24272,7 @@ const He = (r) => {
|
|
|
24285
24272
|
);
|
|
24286
24273
|
return /* @__PURE__ */ _(D.Root, { align: "start", children: [
|
|
24287
24274
|
/* @__PURE__ */ p(D.ClickTrigger, { children: e }),
|
|
24288
|
-
/* @__PURE__ */ p(D.Content, { size: n, variant: i, radius: o, accentColor: a, children: /* @__PURE__ */ p(D.SelectGroup, { required: !0, value: t.getConditionModifier(), onValueChange: s, children: t.getConditionModifiers().map(([l, c]) => /* @__PURE__ */ p(
|
|
24275
|
+
/* @__PURE__ */ p(D.Content, { size: n, variant: i, radius: o, accentColor: a, children: /* @__PURE__ */ p(D.SelectGroup, { required: !0, value: t.getConditionModifier(), onValueChange: s, children: t.getConditionModifiers().map(([l, c]) => /* @__PURE__ */ p(Bt, { value: l, children: c.modifier.label }, l)) }) })
|
|
24289
24276
|
] });
|
|
24290
24277
|
}, zr = L((r) => {
|
|
24291
24278
|
const { children: e, open: t, onOpenChange: n, defaultOpen: i, modal: a, size: o, align: s, accentColor: l = "base", ...c } = r;
|
|
@@ -24369,7 +24356,7 @@ const hs = L((r) => {
|
|
|
24369
24356
|
onClick: () => {
|
|
24370
24357
|
m(A);
|
|
24371
24358
|
},
|
|
24372
|
-
children: /* @__PURE__ */ p(N, { icon:
|
|
24359
|
+
children: /* @__PURE__ */ p(N, { icon: bt })
|
|
24373
24360
|
}
|
|
24374
24361
|
)
|
|
24375
24362
|
]
|
|
@@ -24380,7 +24367,7 @@ const hs = L((r) => {
|
|
|
24380
24367
|
] });
|
|
24381
24368
|
});
|
|
24382
24369
|
hs.displayName = "NumberInputPopover";
|
|
24383
|
-
const
|
|
24370
|
+
const Mt = L((r) => {
|
|
24384
24371
|
const {
|
|
24385
24372
|
children: e,
|
|
24386
24373
|
open: t,
|
|
@@ -24421,14 +24408,14 @@ const Vt = L((r) => {
|
|
|
24421
24408
|
) }) })
|
|
24422
24409
|
] });
|
|
24423
24410
|
});
|
|
24424
|
-
|
|
24425
|
-
const
|
|
24411
|
+
Mt.displayName = "NumberInputPopover";
|
|
24412
|
+
const Fe = (r) => {
|
|
24426
24413
|
const { condition: e, onClick: t, ...n } = r, i = b(() => {
|
|
24427
24414
|
t(e);
|
|
24428
24415
|
}, [e, t]);
|
|
24429
|
-
return /* @__PURE__ */ p(ne, { onClick: i, ...n, children: /* @__PURE__ */ p(N, { icon:
|
|
24416
|
+
return /* @__PURE__ */ p(ne, { onClick: i, ...n, children: /* @__PURE__ */ p(N, { icon: bt }) });
|
|
24430
24417
|
};
|
|
24431
|
-
|
|
24418
|
+
Fe.displayName = "RemoveConditionButton";
|
|
24432
24419
|
const Tr = L((r) => {
|
|
24433
24420
|
const { ref: e, selectFieldOptions: t, ...n } = r, i = se(() => t.map(
|
|
24434
24421
|
(a) => typeof a == "string" ? {
|
|
@@ -24449,10 +24436,10 @@ const Ii = L((r) => {
|
|
|
24449
24436
|
label: a
|
|
24450
24437
|
} : a
|
|
24451
24438
|
), [t]);
|
|
24452
|
-
return /* @__PURE__ */ p(D.SelectGroup, { ref: e, ...n, children: i.map((a) => /* @__PURE__ */ p(
|
|
24439
|
+
return /* @__PURE__ */ p(D.SelectGroup, { ref: e, ...n, children: i.map((a) => /* @__PURE__ */ p(Bt, { value: a.value, children: /* @__PURE__ */ p("span", { className: "truncate", children: a.label }) }, a.value)) });
|
|
24453
24440
|
});
|
|
24454
24441
|
Ii.displayName = "SelectFieldOptionSelectGroup";
|
|
24455
|
-
const
|
|
24442
|
+
const cr = L((r) => {
|
|
24456
24443
|
const {
|
|
24457
24444
|
children: e,
|
|
24458
24445
|
open: t,
|
|
@@ -24490,7 +24477,7 @@ const lr = L((r) => {
|
|
|
24490
24477
|
) }) })
|
|
24491
24478
|
] });
|
|
24492
24479
|
});
|
|
24493
|
-
|
|
24480
|
+
cr.displayName = "TextInputPopover";
|
|
24494
24481
|
const Ur = L((r) => {
|
|
24495
24482
|
const {
|
|
24496
24483
|
children: e,
|
|
@@ -24526,7 +24513,7 @@ const c0 = (r) => {
|
|
|
24526
24513
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
24527
24514
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
24528
24515
|
/* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
|
|
24529
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: e.field.label ||
|
|
24516
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ve })
|
|
24530
24517
|
] }),
|
|
24531
24518
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
|
|
24532
24519
|
/* @__PURE__ */ _(D.Root, { children: [
|
|
@@ -24538,13 +24525,13 @@ const c0 = (r) => {
|
|
|
24538
24525
|
value: n,
|
|
24539
24526
|
onValueChange: e.setConditionValue,
|
|
24540
24527
|
children: [
|
|
24541
|
-
/* @__PURE__ */ p(
|
|
24542
|
-
/* @__PURE__ */ p(
|
|
24528
|
+
/* @__PURE__ */ p(Bt, { value: !0, children: "true" }),
|
|
24529
|
+
/* @__PURE__ */ p(Bt, { value: !1, children: "false" })
|
|
24543
24530
|
]
|
|
24544
24531
|
}
|
|
24545
24532
|
) })
|
|
24546
24533
|
] }),
|
|
24547
|
-
/* @__PURE__ */ p(
|
|
24534
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
24548
24535
|
] });
|
|
24549
24536
|
}, Aa = {
|
|
24550
24537
|
equals: V({
|
|
@@ -24574,7 +24561,7 @@ class nn extends Ue {
|
|
|
24574
24561
|
return /* @__PURE__ */ p(c0, { condition: this, ...t }, this.id);
|
|
24575
24562
|
}
|
|
24576
24563
|
}
|
|
24577
|
-
const
|
|
24564
|
+
const ur = [], u0 = (r) => {
|
|
24578
24565
|
const { condition: e, onRemove: t } = r, n = e.field, i = e.getConditionValue(), a = e.getConditionModifier(), o = b(
|
|
24579
24566
|
(l) => {
|
|
24580
24567
|
l.length > 0 ? e.setConditionValue(l) : e.setConditionValue(void 0);
|
|
@@ -24593,7 +24580,7 @@ const cr = [], u0 = (r) => {
|
|
|
24593
24580
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "soft", accentColor: "base", children: [
|
|
24594
24581
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "soft", accentColor: "base", children: [
|
|
24595
24582
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
24596
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
24583
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
24597
24584
|
] }),
|
|
24598
24585
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
24599
24586
|
/* @__PURE__ */ _(D.Root, { children: [
|
|
@@ -24601,13 +24588,13 @@ const cr = [], u0 = (r) => {
|
|
|
24601
24588
|
/* @__PURE__ */ p(D.Content, { size: "sm", children: /* @__PURE__ */ p(
|
|
24602
24589
|
Tr,
|
|
24603
24590
|
{
|
|
24604
|
-
values: i ??
|
|
24591
|
+
values: i ?? ur,
|
|
24605
24592
|
selectFieldOptions: e.field.options,
|
|
24606
24593
|
onValuesChange: o
|
|
24607
24594
|
}
|
|
24608
24595
|
) })
|
|
24609
24596
|
] }),
|
|
24610
|
-
/* @__PURE__ */ p(
|
|
24597
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
24611
24598
|
] });
|
|
24612
24599
|
}, Ea = {
|
|
24613
24600
|
equals: V({
|
|
@@ -24744,11 +24731,11 @@ const dh = (r, e) => se(() => {
|
|
|
24744
24731
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
24745
24732
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
24746
24733
|
/* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
|
|
24747
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: e.field.label ||
|
|
24734
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ve })
|
|
24748
24735
|
] }),
|
|
24749
24736
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
|
|
24750
24737
|
a(),
|
|
24751
|
-
/* @__PURE__ */ p(
|
|
24738
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
24752
24739
|
] });
|
|
24753
24740
|
}, Sa = {
|
|
24754
24741
|
equals: V({
|
|
@@ -24823,7 +24810,7 @@ const f0 = (r) => {
|
|
|
24823
24810
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
24824
24811
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
24825
24812
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
24826
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
24813
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
24827
24814
|
] }),
|
|
24828
24815
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
24829
24816
|
/* @__PURE__ */ _(D.Root, { children: [
|
|
@@ -24831,13 +24818,13 @@ const f0 = (r) => {
|
|
|
24831
24818
|
/* @__PURE__ */ p(D.Content, { size: "sm", children: /* @__PURE__ */ p(
|
|
24832
24819
|
Tr,
|
|
24833
24820
|
{
|
|
24834
|
-
values: i ??
|
|
24821
|
+
values: i ?? ur,
|
|
24835
24822
|
selectFieldOptions: n.options,
|
|
24836
24823
|
onValuesChange: o
|
|
24837
24824
|
}
|
|
24838
24825
|
) })
|
|
24839
24826
|
] }),
|
|
24840
|
-
/* @__PURE__ */ p(
|
|
24827
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
24841
24828
|
] });
|
|
24842
24829
|
}, ba = {
|
|
24843
24830
|
equals: V({
|
|
@@ -24905,11 +24892,11 @@ const h0 = (r) => {
|
|
|
24905
24892
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
24906
24893
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
24907
24894
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
24908
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
24895
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
24909
24896
|
] }),
|
|
24910
24897
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
24911
|
-
/* @__PURE__ */ p(hs, { values: i ??
|
|
24912
|
-
/* @__PURE__ */ p(
|
|
24898
|
+
/* @__PURE__ */ p(hs, { values: i ?? ur, onValuesChange: o, children: /* @__PURE__ */ p(B, { type: "button", className: "truncate", children: s() }) }),
|
|
24899
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
24913
24900
|
] });
|
|
24914
24901
|
}, Ia = {
|
|
24915
24902
|
equals: V({
|
|
@@ -24971,7 +24958,7 @@ const p0 = (r) => {
|
|
|
24971
24958
|
case "lessThan": {
|
|
24972
24959
|
const l = e.modifiers.greaterThan, c = i !== void 0 && l.isConditionValueValid(i) ? i : void 0;
|
|
24973
24960
|
return /* @__PURE__ */ p(
|
|
24974
|
-
|
|
24961
|
+
Mt,
|
|
24975
24962
|
{
|
|
24976
24963
|
value: c ?? null,
|
|
24977
24964
|
onValueChange: o,
|
|
@@ -24983,9 +24970,9 @@ const p0 = (r) => {
|
|
|
24983
24970
|
case "inRange":
|
|
24984
24971
|
case "notInRange": {
|
|
24985
24972
|
const l = e.modifiers.inRange, c = i !== void 0 && l.isConditionValueValid(i) ? i : void 0;
|
|
24986
|
-
return /* @__PURE__ */ _(
|
|
24973
|
+
return /* @__PURE__ */ _(Ie, { children: [
|
|
24987
24974
|
/* @__PURE__ */ p(
|
|
24988
|
-
|
|
24975
|
+
Mt,
|
|
24989
24976
|
{
|
|
24990
24977
|
value: (c == null ? void 0 : c.from) ?? null,
|
|
24991
24978
|
onValueChange: (u) => {
|
|
@@ -24999,7 +24986,7 @@ const p0 = (r) => {
|
|
|
24999
24986
|
}
|
|
25000
24987
|
),
|
|
25001
24988
|
/* @__PURE__ */ p(
|
|
25002
|
-
|
|
24989
|
+
Mt,
|
|
25003
24990
|
{
|
|
25004
24991
|
value: (c == null ? void 0 : c.to) ?? null,
|
|
25005
24992
|
onValueChange: (u) => {
|
|
@@ -25019,11 +25006,11 @@ const p0 = (r) => {
|
|
|
25019
25006
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25020
25007
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25021
25008
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25022
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25009
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25023
25010
|
] }),
|
|
25024
25011
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25025
25012
|
s(),
|
|
25026
|
-
/* @__PURE__ */ p(
|
|
25013
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25027
25014
|
] });
|
|
25028
25015
|
}, Oa = {
|
|
25029
25016
|
equals: V({
|
|
@@ -25099,7 +25086,7 @@ const v0 = (r) => {
|
|
|
25099
25086
|
case "includes":
|
|
25100
25087
|
case "excludes":
|
|
25101
25088
|
return /* @__PURE__ */ p(
|
|
25102
|
-
|
|
25089
|
+
cr,
|
|
25103
25090
|
{
|
|
25104
25091
|
value: i ?? "",
|
|
25105
25092
|
onValueChange: e.setConditionValue,
|
|
@@ -25112,11 +25099,11 @@ const v0 = (r) => {
|
|
|
25112
25099
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25113
25100
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25114
25101
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25115
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25102
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25116
25103
|
] }),
|
|
25117
25104
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25118
25105
|
o(),
|
|
25119
|
-
/* @__PURE__ */ p(
|
|
25106
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25120
25107
|
] });
|
|
25121
25108
|
}, Na = {
|
|
25122
25109
|
equals: V({
|
|
@@ -25171,9 +25158,9 @@ const g0 = (r) => {
|
|
|
25171
25158
|
required: !1,
|
|
25172
25159
|
value: l,
|
|
25173
25160
|
onValueChange: e.setConditionValue,
|
|
25174
|
-
children:
|
|
25161
|
+
children: _r.map((c) => {
|
|
25175
25162
|
const { label: u } = $t[c];
|
|
25176
|
-
return /* @__PURE__ */ p(
|
|
25163
|
+
return /* @__PURE__ */ p(Bt, { value: c, children: /* @__PURE__ */ p("span", { className: "truncate", children: u }) }, c);
|
|
25177
25164
|
})
|
|
25178
25165
|
}
|
|
25179
25166
|
) })
|
|
@@ -25187,11 +25174,11 @@ const g0 = (r) => {
|
|
|
25187
25174
|
/* @__PURE__ */ p(D.Content, { size: "sm", children: /* @__PURE__ */ _(
|
|
25188
25175
|
D.MultiSelectGroup,
|
|
25189
25176
|
{
|
|
25190
|
-
values: l ??
|
|
25177
|
+
values: l ?? ur,
|
|
25191
25178
|
onValuesChange: e.setConditionValue,
|
|
25192
25179
|
children: [
|
|
25193
25180
|
/* @__PURE__ */ p(bi, { children: "Select all" }),
|
|
25194
|
-
|
|
25181
|
+
_r.map((c) => {
|
|
25195
25182
|
const { label: u, icon: d } = $t[c];
|
|
25196
25183
|
return /* @__PURE__ */ _(fs, { value: c, children: [
|
|
25197
25184
|
/* @__PURE__ */ p(N, { icon: d }),
|
|
@@ -25208,11 +25195,11 @@ const g0 = (r) => {
|
|
|
25208
25195
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25209
25196
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25210
25197
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25211
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25198
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25212
25199
|
] }),
|
|
25213
25200
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25214
25201
|
o(),
|
|
25215
|
-
/* @__PURE__ */ p(
|
|
25202
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25216
25203
|
] });
|
|
25217
25204
|
}, Ta = {
|
|
25218
25205
|
equals: V({
|
|
@@ -25297,7 +25284,7 @@ const x0 = (r) => {
|
|
|
25297
25284
|
Tr,
|
|
25298
25285
|
{
|
|
25299
25286
|
selectFieldOptions: n.options,
|
|
25300
|
-
values: u ??
|
|
25287
|
+
values: u ?? ur,
|
|
25301
25288
|
onValuesChange: e.setConditionValue
|
|
25302
25289
|
}
|
|
25303
25290
|
) })
|
|
@@ -25308,11 +25295,11 @@ const x0 = (r) => {
|
|
|
25308
25295
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25309
25296
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25310
25297
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25311
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25298
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25312
25299
|
] }),
|
|
25313
25300
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25314
25301
|
l(),
|
|
25315
|
-
/* @__PURE__ */ p(
|
|
25302
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25316
25303
|
] });
|
|
25317
25304
|
}, Da = {
|
|
25318
25305
|
equals: V({
|
|
@@ -25367,7 +25354,7 @@ const y0 = (r) => {
|
|
|
25367
25354
|
case "lessThan": {
|
|
25368
25355
|
const s = e.modifiers[a], l = i !== void 0 && s.isConditionValueValid(i) ? i : void 0;
|
|
25369
25356
|
return /* @__PURE__ */ p(
|
|
25370
|
-
|
|
25357
|
+
Mt,
|
|
25371
25358
|
{
|
|
25372
25359
|
value: l ?? null,
|
|
25373
25360
|
onValueChange: (c) => e.setConditionValue(c ?? void 0),
|
|
@@ -25379,9 +25366,9 @@ const y0 = (r) => {
|
|
|
25379
25366
|
case "inRange":
|
|
25380
25367
|
case "notInRange": {
|
|
25381
25368
|
const s = e.modifiers.inRange, l = i !== void 0 && s.isConditionValueValid(i) ? i : void 0;
|
|
25382
|
-
return /* @__PURE__ */ _(
|
|
25369
|
+
return /* @__PURE__ */ _(Ie, { children: [
|
|
25383
25370
|
/* @__PURE__ */ p(
|
|
25384
|
-
|
|
25371
|
+
Mt,
|
|
25385
25372
|
{
|
|
25386
25373
|
value: (l == null ? void 0 : l.from) ?? null,
|
|
25387
25374
|
onValueChange: (c) => {
|
|
@@ -25395,7 +25382,7 @@ const y0 = (r) => {
|
|
|
25395
25382
|
}
|
|
25396
25383
|
),
|
|
25397
25384
|
/* @__PURE__ */ p(
|
|
25398
|
-
|
|
25385
|
+
Mt,
|
|
25399
25386
|
{
|
|
25400
25387
|
value: (l == null ? void 0 : l.to) ?? null,
|
|
25401
25388
|
onValueChange: (c) => {
|
|
@@ -25415,11 +25402,11 @@ const y0 = (r) => {
|
|
|
25415
25402
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25416
25403
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25417
25404
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25418
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25405
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25419
25406
|
] }),
|
|
25420
25407
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25421
25408
|
o(),
|
|
25422
|
-
/* @__PURE__ */ p(
|
|
25409
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25423
25410
|
] });
|
|
25424
25411
|
}, Ra = {
|
|
25425
25412
|
equals: V({
|
|
@@ -25495,7 +25482,7 @@ const m0 = (r) => {
|
|
|
25495
25482
|
case "includes":
|
|
25496
25483
|
case "excludes":
|
|
25497
25484
|
return /* @__PURE__ */ p(
|
|
25498
|
-
|
|
25485
|
+
cr,
|
|
25499
25486
|
{
|
|
25500
25487
|
value: i ?? "",
|
|
25501
25488
|
onValueChange: e.setConditionValue,
|
|
@@ -25508,11 +25495,11 @@ const m0 = (r) => {
|
|
|
25508
25495
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25509
25496
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25510
25497
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25511
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25498
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25512
25499
|
] }),
|
|
25513
25500
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25514
25501
|
o(),
|
|
25515
|
-
/* @__PURE__ */ p(
|
|
25502
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25516
25503
|
] });
|
|
25517
25504
|
}, Ma = {
|
|
25518
25505
|
equals: V({
|
|
@@ -25596,7 +25583,7 @@ const C0 = (r) => {
|
|
|
25596
25583
|
Tr,
|
|
25597
25584
|
{
|
|
25598
25585
|
selectFieldOptions: n.options,
|
|
25599
|
-
values: d ??
|
|
25586
|
+
values: d ?? ur,
|
|
25600
25587
|
onValuesChange: l
|
|
25601
25588
|
}
|
|
25602
25589
|
) })
|
|
@@ -25607,11 +25594,11 @@ const C0 = (r) => {
|
|
|
25607
25594
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25608
25595
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25609
25596
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25610
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25597
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25611
25598
|
] }),
|
|
25612
25599
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25613
25600
|
c(),
|
|
25614
|
-
/* @__PURE__ */ p(
|
|
25601
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25615
25602
|
] });
|
|
25616
25603
|
}, Va = {
|
|
25617
25604
|
equals: V({
|
|
@@ -25663,7 +25650,7 @@ const w0 = (r) => {
|
|
|
25663
25650
|
case "includes":
|
|
25664
25651
|
case "excludes":
|
|
25665
25652
|
return /* @__PURE__ */ p(
|
|
25666
|
-
|
|
25653
|
+
cr,
|
|
25667
25654
|
{
|
|
25668
25655
|
value: i ?? "",
|
|
25669
25656
|
onValueChange: e.setConditionValue,
|
|
@@ -25676,11 +25663,11 @@ const w0 = (r) => {
|
|
|
25676
25663
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25677
25664
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25678
25665
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25679
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25666
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25680
25667
|
] }),
|
|
25681
25668
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25682
25669
|
o(),
|
|
25683
|
-
/* @__PURE__ */ p(
|
|
25670
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25684
25671
|
] });
|
|
25685
25672
|
}, Fa = {
|
|
25686
25673
|
equals: V({
|
|
@@ -25729,7 +25716,7 @@ const _0 = (r) => {
|
|
|
25729
25716
|
case "includes":
|
|
25730
25717
|
case "excludes":
|
|
25731
25718
|
return /* @__PURE__ */ p(
|
|
25732
|
-
|
|
25719
|
+
cr,
|
|
25733
25720
|
{
|
|
25734
25721
|
value: i ?? "",
|
|
25735
25722
|
onValueChange: e.setConditionValue,
|
|
@@ -25742,11 +25729,11 @@ const _0 = (r) => {
|
|
|
25742
25729
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25743
25730
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25744
25731
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25745
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25732
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25746
25733
|
] }),
|
|
25747
25734
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25748
25735
|
o(),
|
|
25749
|
-
/* @__PURE__ */ p(
|
|
25736
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25750
25737
|
] });
|
|
25751
25738
|
}, Pa = {
|
|
25752
25739
|
equals: V({
|
|
@@ -25810,7 +25797,7 @@ const A0 = (r) => {
|
|
|
25810
25797
|
const o = n && typeof n == "object" ? n : void 0, s = (l) => {
|
|
25811
25798
|
e.setConditionValue(l.from || l.to ? l : void 0);
|
|
25812
25799
|
};
|
|
25813
|
-
return /* @__PURE__ */ _(
|
|
25800
|
+
return /* @__PURE__ */ _(Ie, { children: [
|
|
25814
25801
|
/* @__PURE__ */ p(
|
|
25815
25802
|
Ur,
|
|
25816
25803
|
{
|
|
@@ -25836,46 +25823,46 @@ const A0 = (r) => {
|
|
|
25836
25823
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25837
25824
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25838
25825
|
/* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
|
|
25839
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: e.field.label ||
|
|
25826
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ve })
|
|
25840
25827
|
] }),
|
|
25841
25828
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
|
|
25842
25829
|
a(),
|
|
25843
|
-
/* @__PURE__ */ p(
|
|
25830
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25844
25831
|
] });
|
|
25845
25832
|
}, Ba = {
|
|
25846
25833
|
equals: V({
|
|
25847
25834
|
modifier: n0,
|
|
25848
|
-
isValueValid: (r) =>
|
|
25849
|
-
isConditionValueValid: (r) =>
|
|
25850
|
-
isSerializedValueValid: (r) =>
|
|
25835
|
+
isValueValid: (r) => Te(r),
|
|
25836
|
+
isConditionValueValid: (r) => Te(r),
|
|
25837
|
+
isSerializedValueValid: (r) => Te(r)
|
|
25851
25838
|
}),
|
|
25852
25839
|
notEquals: V({
|
|
25853
25840
|
modifier: i0,
|
|
25854
|
-
isValueValid: (r) =>
|
|
25855
|
-
isConditionValueValid: (r) =>
|
|
25856
|
-
isSerializedValueValid: (r) =>
|
|
25841
|
+
isValueValid: (r) => Te(r),
|
|
25842
|
+
isConditionValueValid: (r) => Te(r),
|
|
25843
|
+
isSerializedValueValid: (r) => Te(r)
|
|
25857
25844
|
}),
|
|
25858
25845
|
before: V({
|
|
25859
25846
|
modifier: a0,
|
|
25860
|
-
isValueValid: (r) =>
|
|
25861
|
-
isConditionValueValid: (r) =>
|
|
25862
|
-
isSerializedValueValid: (r) =>
|
|
25847
|
+
isValueValid: (r) => Te(r),
|
|
25848
|
+
isConditionValueValid: (r) => Te(r),
|
|
25849
|
+
isSerializedValueValid: (r) => Te(r)
|
|
25863
25850
|
}),
|
|
25864
25851
|
after: V({
|
|
25865
25852
|
modifier: o0,
|
|
25866
|
-
isValueValid: (r) =>
|
|
25867
|
-
isConditionValueValid: (r) =>
|
|
25868
|
-
isSerializedValueValid: (r) =>
|
|
25853
|
+
isValueValid: (r) => Te(r),
|
|
25854
|
+
isConditionValueValid: (r) => Te(r),
|
|
25855
|
+
isSerializedValueValid: (r) => Te(r)
|
|
25869
25856
|
}),
|
|
25870
25857
|
in: V({
|
|
25871
25858
|
modifier: s0,
|
|
25872
|
-
isValueValid: (r) =>
|
|
25859
|
+
isValueValid: (r) => Te(r),
|
|
25873
25860
|
isConditionValueValid: (r) => Pr(r),
|
|
25874
25861
|
isSerializedValueValid: (r) => Pr(r)
|
|
25875
25862
|
}),
|
|
25876
25863
|
notIn: V({
|
|
25877
25864
|
modifier: l0,
|
|
25878
|
-
isValueValid: (r) =>
|
|
25865
|
+
isValueValid: (r) => Te(r),
|
|
25879
25866
|
isConditionValueValid: (r) => Pr(r),
|
|
25880
25867
|
isSerializedValueValid: (r) => Pr(r)
|
|
25881
25868
|
})
|
|
@@ -25912,7 +25899,7 @@ const E0 = (r) => {
|
|
|
25912
25899
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25913
25900
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25914
25901
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25915
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25902
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25916
25903
|
] }),
|
|
25917
25904
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25918
25905
|
/* @__PURE__ */ _(D.Root, { children: [
|
|
@@ -25924,13 +25911,13 @@ const E0 = (r) => {
|
|
|
25924
25911
|
value: i,
|
|
25925
25912
|
onValueChange: e.setConditionValue,
|
|
25926
25913
|
children: [
|
|
25927
|
-
/* @__PURE__ */ p(
|
|
25928
|
-
/* @__PURE__ */ p(
|
|
25914
|
+
/* @__PURE__ */ p(Bt, { value: !0, children: "empty" }),
|
|
25915
|
+
/* @__PURE__ */ p(Bt, { value: !1, children: "not empty" })
|
|
25929
25916
|
]
|
|
25930
25917
|
}
|
|
25931
25918
|
) })
|
|
25932
25919
|
] }),
|
|
25933
|
-
/* @__PURE__ */ p(
|
|
25920
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25934
25921
|
] });
|
|
25935
25922
|
}, ka = {
|
|
25936
25923
|
equals: V({
|
|
@@ -25967,7 +25954,7 @@ const S0 = (r) => {
|
|
|
25967
25954
|
case "includes":
|
|
25968
25955
|
case "excludes":
|
|
25969
25956
|
return /* @__PURE__ */ p(
|
|
25970
|
-
|
|
25957
|
+
cr,
|
|
25971
25958
|
{
|
|
25972
25959
|
value: i ?? "",
|
|
25973
25960
|
onValueChange: e.setConditionValue,
|
|
@@ -25980,11 +25967,11 @@ const S0 = (r) => {
|
|
|
25980
25967
|
return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25981
25968
|
/* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
|
|
25982
25969
|
/* @__PURE__ */ p(N, { icon: me[n.type].icon }),
|
|
25983
|
-
/* @__PURE__ */ p("span", { className: "truncate", children: n.label ||
|
|
25970
|
+
/* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
|
|
25984
25971
|
] }),
|
|
25985
25972
|
/* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
|
|
25986
25973
|
o(),
|
|
25987
|
-
/* @__PURE__ */ p(
|
|
25974
|
+
/* @__PURE__ */ p(Fe, { condition: e, onClick: t })
|
|
25988
25975
|
] });
|
|
25989
25976
|
}, La = {
|
|
25990
25977
|
equals: V({
|
|
@@ -26224,10 +26211,10 @@ const V0 = (r, e) => {
|
|
|
26224
26211
|
const h = f.getConditions(e.identifier);
|
|
26225
26212
|
return new Oi(h).applyConditions(i);
|
|
26226
26213
|
}), [c, e, i]), d = Ln(e.fields);
|
|
26227
|
-
return u ? /* @__PURE__ */ _(
|
|
26228
|
-
l !== 0 ? /* @__PURE__ */ p(
|
|
26214
|
+
return u ? /* @__PURE__ */ _(Ie, { children: [
|
|
26215
|
+
l !== 0 ? /* @__PURE__ */ p(Vt, { size: "full" }) : null,
|
|
26229
26216
|
/* @__PURE__ */ _("div", { className: "flex flex-col gap-4", children: [
|
|
26230
|
-
(t || n) && /* @__PURE__ */ p(
|
|
26217
|
+
(t || n) && /* @__PURE__ */ p(Ie, { children: /* @__PURE__ */ _("div", { className: "flex flex-col gap-1", children: [
|
|
26231
26218
|
/* @__PURE__ */ p(Gs, { size: o, children: t }),
|
|
26232
26219
|
n && /* @__PURE__ */ p(pe, { accentColor: "base", size: o, children: n })
|
|
26233
26220
|
] }) }),
|
|
@@ -26236,7 +26223,7 @@ const V0 = (r, e) => {
|
|
|
26236
26223
|
] }) : null;
|
|
26237
26224
|
});
|
|
26238
26225
|
Cs.displayName = "FieldSectionLayout";
|
|
26239
|
-
const
|
|
26226
|
+
const Cr = class Cr extends lo {
|
|
26240
26227
|
constructor(t) {
|
|
26241
26228
|
const { label: n = null, description: i = null, fields: a, conditions: o = {}, ...s } = t;
|
|
26242
26229
|
super(s);
|
|
@@ -26286,7 +26273,7 @@ const mr = class mr extends lo {
|
|
|
26286
26273
|
};
|
|
26287
26274
|
}
|
|
26288
26275
|
duplicate(t) {
|
|
26289
|
-
return new
|
|
26276
|
+
return new Cr({
|
|
26290
26277
|
...this.getOptions(),
|
|
26291
26278
|
identifier: t,
|
|
26292
26279
|
fields: this.fields.map((n) => n.duplicate(G()))
|
|
@@ -26368,13 +26355,13 @@ const mr = class mr extends lo {
|
|
|
26368
26355
|
return /* @__PURE__ */ p(Cs, { fieldSection: this });
|
|
26369
26356
|
}
|
|
26370
26357
|
};
|
|
26371
|
-
R(
|
|
26358
|
+
R(Cr, "deserialize", (t) => {
|
|
26372
26359
|
const n = t.fields.map(Ni), i = {};
|
|
26373
26360
|
for (const [a, o] of Object.entries(t.conditions))
|
|
26374
26361
|
i[a] = ps(n, o);
|
|
26375
|
-
return new
|
|
26362
|
+
return new Cr({ ...t, fields: n, conditions: i });
|
|
26376
26363
|
});
|
|
26377
|
-
let ot =
|
|
26364
|
+
let ot = Cr;
|
|
26378
26365
|
const gt = jr({}), wn = L((r) => {
|
|
26379
26366
|
const { children: e, variant: t, size: n, accentColor: i, onSelectFieldType: a, ...o } = r, s = se(() => {
|
|
26380
26367
|
const l = {
|
|
@@ -26424,7 +26411,7 @@ ws.displayName = "CreateFieldDropdownMenuItem";
|
|
|
26424
26411
|
const Ri = (r) => {
|
|
26425
26412
|
switch (r) {
|
|
26426
26413
|
case "text":
|
|
26427
|
-
return new
|
|
26414
|
+
return new ir({ label: "", required: !1, identifier: G() });
|
|
26428
26415
|
case "boolean":
|
|
26429
26416
|
return new Yt({
|
|
26430
26417
|
label: "",
|
|
@@ -26438,31 +26425,31 @@ const Ri = (r) => {
|
|
|
26438
26425
|
identifier: G()
|
|
26439
26426
|
});
|
|
26440
26427
|
case "date":
|
|
26441
|
-
return new
|
|
26428
|
+
return new wr({
|
|
26442
26429
|
label: "",
|
|
26443
26430
|
required: !1,
|
|
26444
26431
|
identifier: G()
|
|
26445
26432
|
});
|
|
26446
26433
|
case "time":
|
|
26447
|
-
return new
|
|
26434
|
+
return new Er({
|
|
26448
26435
|
label: "",
|
|
26449
26436
|
required: !1,
|
|
26450
26437
|
identifier: G()
|
|
26451
26438
|
});
|
|
26452
26439
|
case "string":
|
|
26453
|
-
return new
|
|
26440
|
+
return new nr({
|
|
26454
26441
|
label: "",
|
|
26455
26442
|
required: !1,
|
|
26456
26443
|
identifier: G()
|
|
26457
26444
|
});
|
|
26458
26445
|
case "url":
|
|
26459
|
-
return new
|
|
26446
|
+
return new Sr({
|
|
26460
26447
|
label: "",
|
|
26461
26448
|
required: !1,
|
|
26462
26449
|
identifier: G()
|
|
26463
26450
|
});
|
|
26464
26451
|
case "select":
|
|
26465
|
-
return new
|
|
26452
|
+
return new Ft({
|
|
26466
26453
|
label: "",
|
|
26467
26454
|
options: [],
|
|
26468
26455
|
required: !1,
|
|
@@ -26475,28 +26462,28 @@ const Ri = (r) => {
|
|
|
26475
26462
|
identifier: G()
|
|
26476
26463
|
});
|
|
26477
26464
|
case "multi-select":
|
|
26478
|
-
return new
|
|
26465
|
+
return new St({
|
|
26479
26466
|
label: "",
|
|
26480
26467
|
options: [],
|
|
26481
26468
|
required: !1,
|
|
26482
26469
|
identifier: G()
|
|
26483
26470
|
});
|
|
26484
26471
|
case "upload":
|
|
26485
|
-
return new
|
|
26472
|
+
return new ar({
|
|
26486
26473
|
label: "",
|
|
26487
26474
|
required: !1,
|
|
26488
26475
|
identifier: G(),
|
|
26489
26476
|
maximum_files: 6,
|
|
26490
|
-
maximum_size:
|
|
26477
|
+
maximum_size: mr
|
|
26491
26478
|
});
|
|
26492
26479
|
case "qr":
|
|
26493
|
-
return new
|
|
26480
|
+
return new Ar({
|
|
26494
26481
|
label: "",
|
|
26495
26482
|
required: !1,
|
|
26496
26483
|
identifier: G()
|
|
26497
26484
|
});
|
|
26498
26485
|
case "radio":
|
|
26499
|
-
return new
|
|
26486
|
+
return new er({
|
|
26500
26487
|
label: "",
|
|
26501
26488
|
options: [],
|
|
26502
26489
|
required: !1,
|
|
@@ -26510,7 +26497,7 @@ const Ri = (r) => {
|
|
|
26510
26497
|
identifier: G()
|
|
26511
26498
|
});
|
|
26512
26499
|
case "pass-fail":
|
|
26513
|
-
return new
|
|
26500
|
+
return new Jt({
|
|
26514
26501
|
label: "",
|
|
26515
26502
|
required: !1,
|
|
26516
26503
|
identifier: G(),
|
|
@@ -26526,7 +26513,7 @@ const Ri = (r) => {
|
|
|
26526
26513
|
length: 6
|
|
26527
26514
|
});
|
|
26528
26515
|
case "rating":
|
|
26529
|
-
return new
|
|
26516
|
+
return new tr({
|
|
26530
26517
|
label: "",
|
|
26531
26518
|
required: !1,
|
|
26532
26519
|
identifier: G(),
|
|
@@ -26655,25 +26642,25 @@ const Ri = (r) => {
|
|
|
26655
26642
|
case "checkbox-list":
|
|
26656
26643
|
return Zt.getFieldCreationSchema(e);
|
|
26657
26644
|
case "multi-select":
|
|
26658
|
-
return
|
|
26645
|
+
return St.getFieldCreationSchema(e);
|
|
26659
26646
|
case "number":
|
|
26660
26647
|
return Je.getFieldCreationSchema(e);
|
|
26661
26648
|
case "radio":
|
|
26662
|
-
return
|
|
26649
|
+
return er.getFieldCreationSchema(e);
|
|
26663
26650
|
case "select":
|
|
26664
|
-
return
|
|
26651
|
+
return Ft.getFieldCreationSchema(e);
|
|
26665
26652
|
case "string":
|
|
26666
|
-
return rr.getFieldCreationSchema(e);
|
|
26667
|
-
case "text":
|
|
26668
26653
|
return nr.getFieldCreationSchema(e);
|
|
26669
|
-
case "
|
|
26654
|
+
case "text":
|
|
26670
26655
|
return ir.getFieldCreationSchema(e);
|
|
26656
|
+
case "upload":
|
|
26657
|
+
return ar.getFieldCreationSchema(e);
|
|
26671
26658
|
case "pass-fail":
|
|
26672
|
-
return
|
|
26659
|
+
return Jt.getFieldCreationSchema(e);
|
|
26673
26660
|
case "otp":
|
|
26674
26661
|
return Kt.getFieldCreationSchema(e);
|
|
26675
26662
|
case "rating":
|
|
26676
|
-
return
|
|
26663
|
+
return tr.getFieldCreationSchema(e);
|
|
26677
26664
|
default:
|
|
26678
26665
|
return;
|
|
26679
26666
|
}
|
|
@@ -26684,7 +26671,7 @@ const Ri = (r) => {
|
|
|
26684
26671
|
/* @__PURE__ */ p(N, { icon: wc }),
|
|
26685
26672
|
"Settings"
|
|
26686
26673
|
] }) }),
|
|
26687
|
-
/* @__PURE__ */ p(xe.Content, { size: "sm", ...t, children: /* @__PURE__ */ p("div", { className:
|
|
26674
|
+
/* @__PURE__ */ p(xe.Content, { size: "sm", ...t, children: /* @__PURE__ */ p("div", { className: kt("flex w-full max-w-[350px] flex-col", Di({ size: "sm" })), children: e }) })
|
|
26688
26675
|
] });
|
|
26689
26676
|
});
|
|
26690
26677
|
Es.displayName = "FieldSettingsPopover";
|
|
@@ -26744,7 +26731,7 @@ const Ss = L((r) => {
|
|
|
26744
26731
|
] }),
|
|
26745
26732
|
o && /* @__PURE__ */ _("div", { className: "group relative inline-block w-full min-w-[300px]", children: [
|
|
26746
26733
|
/* @__PURE__ */ p(
|
|
26747
|
-
|
|
26734
|
+
br,
|
|
26748
26735
|
{
|
|
26749
26736
|
className: "h-[100px] w-full min-w-[300px] cursor-pointer rounded-md object-cover",
|
|
26750
26737
|
file: o,
|
|
@@ -26776,7 +26763,7 @@ const Ss = L((r) => {
|
|
|
26776
26763
|
}
|
|
26777
26764
|
) }),
|
|
26778
26765
|
/* @__PURE__ */ p(
|
|
26779
|
-
|
|
26766
|
+
sr,
|
|
26780
26767
|
{
|
|
26781
26768
|
className: "field-sizing-content",
|
|
26782
26769
|
placeholder: "Enter a field description (optional)",
|
|
@@ -26788,7 +26775,7 @@ const Ss = L((r) => {
|
|
|
26788
26775
|
}
|
|
26789
26776
|
)
|
|
26790
26777
|
] }),
|
|
26791
|
-
c.length > 0 && /* @__PURE__ */ p("div", { className:
|
|
26778
|
+
c.length > 0 && /* @__PURE__ */ p("div", { className: kt("w-full", Di({ size: "sm" })), children: d })
|
|
26792
26779
|
] });
|
|
26793
26780
|
});
|
|
26794
26781
|
Ss.displayName = "FieldBuilder";
|
|
@@ -26863,7 +26850,7 @@ const bs = L((r) => {
|
|
|
26863
26850
|
}, [e, t]);
|
|
26864
26851
|
return /* @__PURE__ */ _(D.Item, { onSelect: n, children: [
|
|
26865
26852
|
/* @__PURE__ */ p(N, { icon: me[e.type].icon }),
|
|
26866
|
-
e.label ||
|
|
26853
|
+
e.label || Ve
|
|
26867
26854
|
] });
|
|
26868
26855
|
});
|
|
26869
26856
|
bs.displayName = "FieldDropdownMenuItem";
|
|
@@ -26913,7 +26900,7 @@ const Ns = L((r) => {
|
|
|
26913
26900
|
targetY: a,
|
|
26914
26901
|
targetPosition: d === "LR" ? yt.Left : yt.Top
|
|
26915
26902
|
});
|
|
26916
|
-
return /* @__PURE__ */ _(
|
|
26903
|
+
return /* @__PURE__ */ _(Ie, { children: [
|
|
26917
26904
|
/* @__PURE__ */ p(js, { id: e, path: y, style: o, markerEnd: s, labelX: m, labelY: C }),
|
|
26918
26905
|
/* @__PURE__ */ p(Ys, { children: /* @__PURE__ */ _(
|
|
26919
26906
|
pt,
|
|
@@ -27011,7 +26998,7 @@ const Ts = L((r) => {
|
|
|
27011
26998
|
}
|
|
27012
26999
|
) }),
|
|
27013
27000
|
/* @__PURE__ */ p(
|
|
27014
|
-
|
|
27001
|
+
sr,
|
|
27015
27002
|
{
|
|
27016
27003
|
className: "field-sizing-content",
|
|
27017
27004
|
placeholder: "Enter a section description (optional)",
|
|
@@ -27132,8 +27119,8 @@ const L0 = {
|
|
|
27132
27119
|
for (const K of i.fieldSections)
|
|
27133
27120
|
X[K.identifier] = K;
|
|
27134
27121
|
for (const K of i.fieldSections) {
|
|
27135
|
-
const
|
|
27136
|
-
for (const [Ze,
|
|
27122
|
+
const Pe = K.conditions;
|
|
27123
|
+
for (const [Ze, dr] of Object.entries(Pe))
|
|
27137
27124
|
Z.push({
|
|
27138
27125
|
id: `${K.identifier}-${Ze}`,
|
|
27139
27126
|
source: K.identifier,
|
|
@@ -27143,7 +27130,7 @@ const L0 = {
|
|
|
27143
27130
|
sourceSection: K,
|
|
27144
27131
|
layoutDirection: l
|
|
27145
27132
|
},
|
|
27146
|
-
animated:
|
|
27133
|
+
animated: dr.length > 0,
|
|
27147
27134
|
markerEnd: Ks.Arrow,
|
|
27148
27135
|
style: { strokeWidth: 2, stroke: "var(--base-a8)" },
|
|
27149
27136
|
type: "fieldSectionCondition"
|
|
@@ -27160,10 +27147,10 @@ const L0 = {
|
|
|
27160
27147
|
i.addFieldSection(new ot({ identifier: G(), fields: [] }));
|
|
27161
27148
|
}, [i]), S = b(
|
|
27162
27149
|
(Z) => {
|
|
27163
|
-
const { source: X, target: K } = Z,
|
|
27164
|
-
|
|
27150
|
+
const { source: X, target: K } = Z, Pe = i.fieldSections.find(({ identifier: Ze }) => Ze === X);
|
|
27151
|
+
Pe.setOptions({
|
|
27165
27152
|
conditions: {
|
|
27166
|
-
...
|
|
27153
|
+
...Pe.conditions,
|
|
27167
27154
|
[K]: []
|
|
27168
27155
|
}
|
|
27169
27156
|
});
|
|
@@ -27223,7 +27210,7 @@ const L0 = {
|
|
|
27223
27210
|
]
|
|
27224
27211
|
}
|
|
27225
27212
|
),
|
|
27226
|
-
/* @__PURE__ */ p(
|
|
27213
|
+
/* @__PURE__ */ p(Vt, { size: "sm" }),
|
|
27227
27214
|
/* @__PURE__ */ _(ue, { className: "flex flex-col", size: "sm", accentColor: "base", variant: "soft", children: [
|
|
27228
27215
|
/* @__PURE__ */ p(ne, { className: "rounded-b-none", onClick: F, type: "button", children: /* @__PURE__ */ p(N, { icon: ft }) }),
|
|
27229
27216
|
/* @__PURE__ */ p(ne, { onClick: T, radius: "none", type: "button", children: /* @__PURE__ */ p(N, { icon: Gr }) }),
|
|
@@ -27324,7 +27311,7 @@ async function xh(r) {
|
|
|
27324
27311
|
e[t] = await Promise.all(n);
|
|
27325
27312
|
return e;
|
|
27326
27313
|
}
|
|
27327
|
-
class
|
|
27314
|
+
class or extends Kr {
|
|
27328
27315
|
constructor(t) {
|
|
27329
27316
|
super();
|
|
27330
27317
|
R(this, "fieldSections");
|
|
@@ -27342,7 +27329,7 @@ class ar extends Kr {
|
|
|
27342
27329
|
return this.fieldSections.map((t) => t.serialize());
|
|
27343
27330
|
}
|
|
27344
27331
|
static deserialize(t) {
|
|
27345
|
-
return new
|
|
27332
|
+
return new or(t.map(ot.deserialize));
|
|
27346
27333
|
}
|
|
27347
27334
|
static reseedFieldSections(t, n) {
|
|
27348
27335
|
return q0(t, n);
|
|
@@ -27508,7 +27495,7 @@ const Vs = L((r) => {
|
|
|
27508
27495
|
}
|
|
27509
27496
|
) }),
|
|
27510
27497
|
/* @__PURE__ */ p(
|
|
27511
|
-
|
|
27498
|
+
sr,
|
|
27512
27499
|
{
|
|
27513
27500
|
className: "field-sizing-content",
|
|
27514
27501
|
placeholder: "Enter a section description (optional)",
|
|
@@ -27520,7 +27507,7 @@ const Vs = L((r) => {
|
|
|
27520
27507
|
}
|
|
27521
27508
|
)
|
|
27522
27509
|
] }),
|
|
27523
|
-
/* @__PURE__ */ p(
|
|
27510
|
+
/* @__PURE__ */ p(Vt, { size: "full" }),
|
|
27524
27511
|
/* @__PURE__ */ _("div", { className: "flex flex-col gap-2", children: [
|
|
27525
27512
|
/* @__PURE__ */ _("div", { className: "flex justify-between gap-2", children: [
|
|
27526
27513
|
/* @__PURE__ */ p(pe, { accentColor: "base", children: "Conditions" }),
|
|
@@ -27545,7 +27532,7 @@ const Vs = L((r) => {
|
|
|
27545
27532
|
l.identifier
|
|
27546
27533
|
))
|
|
27547
27534
|
] }),
|
|
27548
|
-
/* @__PURE__ */ p(
|
|
27535
|
+
/* @__PURE__ */ p(Vt, { size: "full" })
|
|
27549
27536
|
] });
|
|
27550
27537
|
});
|
|
27551
27538
|
Vs.displayName = "FieldSectionBuilder";
|
|
@@ -27570,12 +27557,12 @@ const Fs = L((r) => {
|
|
|
27570
27557
|
}, [o]), u = b(() => {
|
|
27571
27558
|
o("down");
|
|
27572
27559
|
}, [o]), d = b(async () => {
|
|
27573
|
-
const g = [e.serialize()], y =
|
|
27560
|
+
const g = [e.serialize()], y = or.reseedFieldSections(g, {
|
|
27574
27561
|
conditions: !1
|
|
27575
27562
|
}), m = JSON.stringify(y);
|
|
27576
27563
|
await navigator.clipboard.writeText(m), qe.success({ title: "Section copied" });
|
|
27577
27564
|
}, [e]), f = b(async () => {
|
|
27578
|
-
const y = n.getDependenciesOfSection(e.identifier).map((A) => A.serialize()), m =
|
|
27565
|
+
const y = n.getDependenciesOfSection(e.identifier).map((A) => A.serialize()), m = or.reseedFieldSections(y, {
|
|
27579
27566
|
conditions: !0
|
|
27580
27567
|
}), C = JSON.stringify(m);
|
|
27581
27568
|
await navigator.clipboard.writeText(C), qe.success({ title: "Section copied" });
|
|
@@ -27692,7 +27679,7 @@ const Ps = L(() => {
|
|
|
27692
27679
|
i.addFieldSection(new ot({ identifier: G(), fields: [] }));
|
|
27693
27680
|
}, [i]), o = b(async () => {
|
|
27694
27681
|
try {
|
|
27695
|
-
const c = i.serialize(), u =
|
|
27682
|
+
const c = i.serialize(), u = or.reseedFieldSections(c), d = JSON.stringify(u);
|
|
27696
27683
|
await navigator.clipboard.writeText(d), qe.success({ title: "Sections copied", description: "All sections JSON copied to clipboard." });
|
|
27697
27684
|
} catch {
|
|
27698
27685
|
qe.error({ title: "Copy failed", description: "Unable to copy the sections JSON." });
|
|
@@ -27862,7 +27849,7 @@ const X0 = L(
|
|
|
27862
27849
|
"form",
|
|
27863
27850
|
{
|
|
27864
27851
|
ref: e,
|
|
27865
|
-
className:
|
|
27852
|
+
className: kt(f, "flex flex-col gap-4"),
|
|
27866
27853
|
onSubmit: C.handleSubmit(m),
|
|
27867
27854
|
children: [
|
|
27868
27855
|
/* @__PURE__ */ p("div", { className: k0({ size: g }), children: w }),
|
|
@@ -27876,7 +27863,7 @@ const X0 = L(
|
|
|
27876
27863
|
onClick: u,
|
|
27877
27864
|
...v,
|
|
27878
27865
|
children: [
|
|
27879
|
-
/* @__PURE__ */ p(N, { icon:
|
|
27866
|
+
/* @__PURE__ */ p(N, { icon: bt }),
|
|
27880
27867
|
c
|
|
27881
27868
|
]
|
|
27882
27869
|
}
|
|
@@ -27954,7 +27941,7 @@ const Ls = L((r) => {
|
|
|
27954
27941
|
control: l.control,
|
|
27955
27942
|
compute: (v) => v.fields
|
|
27956
27943
|
}), d = se(() => {
|
|
27957
|
-
const v =
|
|
27944
|
+
const v = or.deserialize(u);
|
|
27958
27945
|
return v.observe(c), v;
|
|
27959
27946
|
}, [u, c]), f = se(() => ({
|
|
27960
27947
|
fieldSchema: d,
|
|
@@ -27997,7 +27984,7 @@ export {
|
|
|
27997
27984
|
j1 as DateAfterConditionModifier,
|
|
27998
27985
|
$1 as DateBeforeConditionModifier,
|
|
27999
27986
|
X1 as DateEqualsConditionModifier,
|
|
28000
|
-
|
|
27987
|
+
wr as DateField,
|
|
28001
27988
|
on as DateFieldCondition,
|
|
28002
27989
|
d0 as DateFieldConditionCell,
|
|
28003
27990
|
yo as DateFieldInput,
|
|
@@ -28006,7 +27993,7 @@ export {
|
|
|
28006
27993
|
Z1 as DateRangeNotInConditionModifier,
|
|
28007
27994
|
Q1 as DoesNotHaveFilesConditionModifier,
|
|
28008
27995
|
L1 as FIELD_TYPES,
|
|
28009
|
-
|
|
27996
|
+
or as FieldSchema,
|
|
28010
27997
|
ot as FieldSection,
|
|
28011
27998
|
Cs as FieldSectionLayout,
|
|
28012
27999
|
J as FieldTypeGroup,
|
|
@@ -28016,12 +28003,12 @@ export {
|
|
|
28016
28003
|
yh as FormBuilder,
|
|
28017
28004
|
K1 as HasFilesConditionModifier,
|
|
28018
28005
|
_o as ImageCard,
|
|
28019
|
-
|
|
28006
|
+
br as ImageFile,
|
|
28020
28007
|
fo as ImageViewer,
|
|
28021
28008
|
Pc as ImageViewerProvider,
|
|
28022
|
-
|
|
28009
|
+
Me as InputWithLabel,
|
|
28023
28010
|
Xr as LONG_TEXT_FIELD_MAX_LENGTH,
|
|
28024
|
-
|
|
28011
|
+
St as MultiSelectField,
|
|
28025
28012
|
sn as MultiSelectFieldCondition,
|
|
28026
28013
|
f0 as MultiSelectFieldConditionCell,
|
|
28027
28014
|
mo as MultiSelectFieldInput,
|
|
@@ -28049,27 +28036,27 @@ export {
|
|
|
28049
28036
|
r0 as PassFailArrayExcludesConditionModifier,
|
|
28050
28037
|
t0 as PassFailArrayIncludesConditionModifier,
|
|
28051
28038
|
J1 as PassFailEqualsConditionModifier,
|
|
28052
|
-
|
|
28039
|
+
Jt as PassFailField,
|
|
28053
28040
|
dn as PassFailFieldCondition,
|
|
28054
28041
|
g0 as PassFailFieldConditionCell,
|
|
28055
28042
|
So as PassFailFieldInput,
|
|
28056
28043
|
e0 as PassFailNotEqualsConditionModifier,
|
|
28057
|
-
|
|
28044
|
+
er as RadioField,
|
|
28058
28045
|
fn as RadioFieldCondition,
|
|
28059
28046
|
x0 as RadioFieldConditionCell,
|
|
28060
28047
|
Io as RadioFieldInput,
|
|
28061
|
-
|
|
28048
|
+
tr as RatingField,
|
|
28062
28049
|
hn as RatingFieldCondition,
|
|
28063
28050
|
y0 as RatingFieldConditionCell,
|
|
28064
28051
|
Oo as RatingFieldInput,
|
|
28065
28052
|
Ca as SHORT_TEXT_FIELD_MAX_LENGTH,
|
|
28066
|
-
|
|
28053
|
+
Ar as ScanField,
|
|
28067
28054
|
pn as ScanFieldCondition,
|
|
28068
28055
|
m0 as ScanFieldConditionCell,
|
|
28069
28056
|
Xo as ScanFieldInput,
|
|
28070
28057
|
yi as Scanner,
|
|
28071
28058
|
R1 as ScannerProvider,
|
|
28072
|
-
|
|
28059
|
+
Ft as SelectField,
|
|
28073
28060
|
vn as SelectFieldCondition,
|
|
28074
28061
|
C0 as SelectFieldConditionCell,
|
|
28075
28062
|
Co as SelectFieldInput,
|
|
@@ -28082,20 +28069,20 @@ export {
|
|
|
28082
28069
|
_i as StringArraySomeConditionModifier,
|
|
28083
28070
|
zt as StringEqualsConditionModifier,
|
|
28084
28071
|
Nr as StringExcludesConditionModifier,
|
|
28085
|
-
|
|
28072
|
+
nr as StringField,
|
|
28086
28073
|
gn as StringFieldCondition,
|
|
28087
28074
|
w0 as StringFieldConditionCell,
|
|
28088
28075
|
Wo as StringFieldInput,
|
|
28089
28076
|
Or as StringIncludesConditionModifier,
|
|
28090
28077
|
Ut as StringNotEqualsConditionModifier,
|
|
28091
|
-
|
|
28078
|
+
ir as TextField,
|
|
28092
28079
|
xn as TextFieldCondition,
|
|
28093
28080
|
_0 as TextFieldConditionCell,
|
|
28094
28081
|
$o as TextFieldInput,
|
|
28095
28082
|
o0 as TimeAfterConditionModifier,
|
|
28096
28083
|
a0 as TimeBeforeConditionModifier,
|
|
28097
28084
|
n0 as TimeEqualsConditionModifier,
|
|
28098
|
-
|
|
28085
|
+
Er as TimeField,
|
|
28099
28086
|
yn as TimeFieldCondition,
|
|
28100
28087
|
A0 as TimeFieldConditionCell,
|
|
28101
28088
|
Ci as TimeFieldControl,
|
|
@@ -28103,17 +28090,17 @@ export {
|
|
|
28103
28090
|
i0 as TimeNotEqualsConditionModifier,
|
|
28104
28091
|
s0 as TimeRangeInConditionModifier,
|
|
28105
28092
|
l0 as TimeRangeNotInConditionModifier,
|
|
28106
|
-
|
|
28093
|
+
Ve as UNLABELLED_FIELD_LABEL,
|
|
28107
28094
|
es as UNLABELLED_SECTION_LABEL,
|
|
28108
|
-
|
|
28095
|
+
Sr as URLField,
|
|
28109
28096
|
Cn as URLFieldCondition,
|
|
28110
28097
|
S0 as URLFieldConditionCell,
|
|
28111
28098
|
Qo as URLFieldInput,
|
|
28112
28099
|
jo as UTC_OFFSETS,
|
|
28113
28100
|
M1 as UTC_OFFSETS_SET,
|
|
28114
|
-
|
|
28115
|
-
|
|
28116
|
-
|
|
28101
|
+
Pt as UUIDFile,
|
|
28102
|
+
Qt as UUIDPromise,
|
|
28103
|
+
ar as UploadField,
|
|
28117
28104
|
mn as UploadFieldCondition,
|
|
28118
28105
|
E0 as UploadFieldConditionCell,
|
|
28119
28106
|
Ko as UploadFieldInput,
|
|
@@ -28152,7 +28139,7 @@ export {
|
|
|
28152
28139
|
ei as formatUTCOffset,
|
|
28153
28140
|
B1 as getCurrentUTCOffset,
|
|
28154
28141
|
vh as getFieldsMapping,
|
|
28155
|
-
|
|
28142
|
+
Rt as getUTCMinuteOfDay,
|
|
28156
28143
|
k1 as getUTCOffsetMinutes,
|
|
28157
28144
|
V0 as initializeFieldValues,
|
|
28158
28145
|
M0 as insertFilesAndPromisesToFieldValues,
|
|
@@ -28161,16 +28148,16 @@ export {
|
|
|
28161
28148
|
zc as isPassFailFieldValue,
|
|
28162
28149
|
Lc as isSerializedPassFailFieldValue,
|
|
28163
28150
|
qr as isStringArray,
|
|
28164
|
-
|
|
28151
|
+
Te as isTime,
|
|
28165
28152
|
Yo as isTimeInRange,
|
|
28166
28153
|
Pr as isTimeRange,
|
|
28167
28154
|
mi as isUTCOffset,
|
|
28168
28155
|
H1 as maxFileSizeB,
|
|
28169
28156
|
U1 as maxFileSizeKB,
|
|
28170
|
-
|
|
28157
|
+
mr as maxFileSizeMB,
|
|
28171
28158
|
rn as parseTime,
|
|
28172
28159
|
$t as passFailFieldStatusMapping,
|
|
28173
|
-
|
|
28160
|
+
_r as passFailFieldStatuses,
|
|
28174
28161
|
gh as separateImagesFromFields,
|
|
28175
28162
|
O0 as serializeConditions,
|
|
28176
28163
|
T0 as serializeFieldValues,
|