@jield/solodb-react-components 1.2.6 → 1.2.7
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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +799 -799
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22857,9 +22857,9 @@ function JO({ children: e }) {
|
|
|
22857
22857
|
}) });
|
|
22858
22858
|
}
|
|
22859
22859
|
//#endregion
|
|
22860
|
-
//#region
|
|
22861
|
-
var YO
|
|
22862
|
-
function
|
|
22860
|
+
//#region node_modules/react-google-charts/dist/index.js
|
|
22861
|
+
var YO, XO;
|
|
22862
|
+
function ZO(e) {
|
|
22863
22863
|
let [t, n] = v(!0), [r, i] = v(null), [a, o] = v(!1), s = () => {
|
|
22864
22864
|
n(!1), o(!0);
|
|
22865
22865
|
};
|
|
@@ -22888,20 +22888,20 @@ function QO(e) {
|
|
|
22888
22888
|
isSuccess: a
|
|
22889
22889
|
};
|
|
22890
22890
|
}
|
|
22891
|
-
var
|
|
22891
|
+
var QO = (e) => e && e.charts, $O = (e, t) => {
|
|
22892
22892
|
let { controls: n, toolbarItems: r, getChartEditor: i } = e;
|
|
22893
22893
|
return t && t.charts && t.visualization && t.visualization.ChartWrapper && t.visualization.Dashboard && (!n || t.visualization.ChartWrapper) && (!i || t.visualization.ChartEditor) && (!r || t.visualization.drawToolbar);
|
|
22894
|
-
},
|
|
22895
|
-
function
|
|
22896
|
-
let { chartVersion: t = "current", chartPackages: n = ["corechart", "controls"], chartLanguage: r = "en", mapsApiKey: i } = e, [a, o] = v(null), [s, c] = v(null), [l, u] = v(null), { isLoading: f, error: p, isSuccess: m } =
|
|
22894
|
+
}, ek = (e) => window.google;
|
|
22895
|
+
function tk(e) {
|
|
22896
|
+
let { chartVersion: t = "current", chartPackages: n = ["corechart", "controls"], chartLanguage: r = "en", mapsApiKey: i } = e, [a, o] = v(null), [s, c] = v(null), [l, u] = v(null), { isLoading: f, error: p, isSuccess: m } = ZO(e.chartLoaderScriptUrl || "https://www.gstatic.com/charts/loader.js");
|
|
22897
22897
|
return d(() => {
|
|
22898
22898
|
if (!m) return;
|
|
22899
|
-
let a =
|
|
22900
|
-
if (
|
|
22899
|
+
let a = ek();
|
|
22900
|
+
if (!QO(a)) {
|
|
22901
22901
|
c(/* @__PURE__ */ Error("[ScriptInitializationError] Script loaded but Google not attached to window."));
|
|
22902
22902
|
return;
|
|
22903
22903
|
}
|
|
22904
|
-
if (
|
|
22904
|
+
if ($O(e, a)) {
|
|
22905
22905
|
o(a);
|
|
22906
22906
|
return;
|
|
22907
22907
|
}
|
|
@@ -22910,7 +22910,7 @@ function nk(e) {
|
|
|
22910
22910
|
language: r,
|
|
22911
22911
|
mapsApiKey: i
|
|
22912
22912
|
}), a.charts.setOnLoadCallback(() => {
|
|
22913
|
-
if (
|
|
22913
|
+
if (!$O(e, a)) {
|
|
22914
22914
|
let e = /* @__PURE__ */ Error("[GoogleChartsInitializationError] Google Charts not ready after load callback.");
|
|
22915
22915
|
console.error(e), u(e);
|
|
22916
22916
|
return;
|
|
@@ -22923,7 +22923,7 @@ function nk(e) {
|
|
|
22923
22923
|
google: a
|
|
22924
22924
|
};
|
|
22925
22925
|
}
|
|
22926
|
-
var
|
|
22926
|
+
var nk = {
|
|
22927
22927
|
legend_toggle: !1,
|
|
22928
22928
|
options: {},
|
|
22929
22929
|
legendToggle: !1,
|
|
@@ -22935,7 +22935,7 @@ var rk = {
|
|
|
22935
22935
|
rootProps: {},
|
|
22936
22936
|
chartWrapperParams: {},
|
|
22937
22937
|
chartLoaderScriptUrl: "https://www.gstatic.com/charts/loader.js"
|
|
22938
|
-
},
|
|
22938
|
+
}, rk = (e) => {
|
|
22939
22939
|
let { isReady: n, chartControls: r, filter: i } = e;
|
|
22940
22940
|
return !n || !r || !r?.length ? null : /*#__PURE__*/ t.createElement(t.Fragment, null, r.filter((e) => {
|
|
22941
22941
|
let { controlProp: t, control: n } = e;
|
|
@@ -22950,13 +22950,13 @@ var rk = {
|
|
|
22950
22950
|
id: n.getContainerId()
|
|
22951
22951
|
});
|
|
22952
22952
|
}));
|
|
22953
|
-
},
|
|
22954
|
-
|
|
22953
|
+
}, ik = 0, ak = () => (ik += 1, `reactgooglegraph-${ik}`), ok = class {};
|
|
22954
|
+
YO = ok, sn(ok, "initializeControls", (e) => {
|
|
22955
22955
|
for (let t = 0; t < e.length; t += 1) {
|
|
22956
22956
|
let { controlType: n, options: r, controlWrapperParams: i } = e[t].controlProp;
|
|
22957
22957
|
i && "state" in i && e[t].control.setState(i.state), e[t].control.setOptions(r), e[t].control.setControlType(n);
|
|
22958
22958
|
}
|
|
22959
|
-
}), sn(
|
|
22959
|
+
}), sn(ok, "listenToControlEvents", (e, t) => {
|
|
22960
22960
|
let { google: n } = t;
|
|
22961
22961
|
return e.flatMap((e) => {
|
|
22962
22962
|
let { control: r, controlProp: i } = e, { controlEvents: a = [] } = i;
|
|
@@ -22973,13 +22973,13 @@ XO = sk, sn(sk, "initializeControls", (e) => {
|
|
|
22973
22973
|
});
|
|
22974
22974
|
});
|
|
22975
22975
|
});
|
|
22976
|
-
}), sn(
|
|
22976
|
+
}), sn(ok, "createControlId", (e) => {
|
|
22977
22977
|
let t;
|
|
22978
|
-
return t = e === void 0 ? `googlechart-control-${
|
|
22979
|
-
}), sn(
|
|
22978
|
+
return t = e === void 0 ? `googlechart-control-${ak()}` : e, t;
|
|
22979
|
+
}), sn(ok, "createChartControls", (e) => {
|
|
22980
22980
|
let { controls: t, google: n } = e;
|
|
22981
22981
|
return t ? t.map((e, t) => {
|
|
22982
|
-
let { controlID: r, controlType: i, options: a, controlWrapperParams: o } = e, s =
|
|
22982
|
+
let { controlID: r, controlType: i, options: a, controlWrapperParams: o } = e, s = YO.createControlId(r);
|
|
22983
22983
|
return {
|
|
22984
22984
|
controlProp: e,
|
|
22985
22985
|
control: new n.visualization.ControlWrapper({
|
|
@@ -22990,14 +22990,14 @@ XO = sk, sn(sk, "initializeControls", (e) => {
|
|
|
22990
22990
|
})
|
|
22991
22991
|
};
|
|
22992
22992
|
}) : null;
|
|
22993
|
-
}), sn(
|
|
22994
|
-
let { chartWrapper: t, chartDashboard: n } = e, r =
|
|
22993
|
+
}), sn(ok, "addControls", (e) => {
|
|
22994
|
+
let { chartWrapper: t, chartDashboard: n } = e, r = YO.createChartControls(e);
|
|
22995
22995
|
return !r || !n || !t ? null : (n.bind(r.map((e) => {
|
|
22996
22996
|
let { control: t } = e;
|
|
22997
22997
|
return t;
|
|
22998
|
-
}), t),
|
|
22998
|
+
}), t), YO.initializeControls(r), r);
|
|
22999
22999
|
});
|
|
23000
|
-
var
|
|
23000
|
+
var sk = (t) => {
|
|
23001
23001
|
let [n, r] = e.useState(null);
|
|
23002
23002
|
return [e.useMemo(() => !n || !t ? null : t.map((e, t) => {
|
|
23003
23003
|
let r = n[t];
|
|
@@ -23006,25 +23006,25 @@ var ck = (t) => {
|
|
|
23006
23006
|
control: r
|
|
23007
23007
|
} : void 0;
|
|
23008
23008
|
}).flatMap((e) => e ? [e] : []), [n, t]), r];
|
|
23009
|
-
},
|
|
23009
|
+
}, ck = (t, n) => {
|
|
23010
23010
|
e.useEffect(() => {
|
|
23011
|
-
let e =
|
|
23011
|
+
let e = ok.listenToControlEvents(t ?? [], n);
|
|
23012
23012
|
return () => {
|
|
23013
23013
|
e.forEach((e) => {
|
|
23014
23014
|
n.google.visualization.events.removeListener(e);
|
|
23015
23015
|
});
|
|
23016
23016
|
};
|
|
23017
23017
|
}, [t, n]);
|
|
23018
|
-
},
|
|
23019
|
-
let [n, r] =
|
|
23020
|
-
return
|
|
23018
|
+
}, lk = (t) => {
|
|
23019
|
+
let [n, r] = sk(t.controls);
|
|
23020
|
+
return ck(n ?? [], t), {
|
|
23021
23021
|
addControls: (e) => {
|
|
23022
|
-
let t =
|
|
23022
|
+
let t = ok.addControls(e);
|
|
23023
23023
|
r(t?.map((e) => e.control) ?? null);
|
|
23024
23024
|
},
|
|
23025
23025
|
renderControl: (r) => {
|
|
23026
23026
|
let { chartWrapper: i, chartDashboard: a } = t;
|
|
23027
|
-
return /*#__PURE__*/ e.createElement(
|
|
23027
|
+
return /*#__PURE__*/ e.createElement(rk, {
|
|
23028
23028
|
...t,
|
|
23029
23029
|
isReady: !!(i && a),
|
|
23030
23030
|
chartControls: n,
|
|
@@ -23032,13 +23032,13 @@ var ck = (t) => {
|
|
|
23032
23032
|
});
|
|
23033
23033
|
}
|
|
23034
23034
|
};
|
|
23035
|
-
},
|
|
23035
|
+
}, uk = (t) => {
|
|
23036
23036
|
let n = e.useRef(null);
|
|
23037
23037
|
return { chartId: (() => {
|
|
23038
23038
|
let { graphID: e, graph_id: r } = t, i = e || r, a;
|
|
23039
|
-
return a = i || n.current ||
|
|
23039
|
+
return a = i || n.current || ak(), n.current = a, n.current;
|
|
23040
23040
|
})() };
|
|
23041
|
-
},
|
|
23041
|
+
}, dk = [
|
|
23042
23042
|
"#3366CC",
|
|
23043
23043
|
"#DC3912",
|
|
23044
23044
|
"#FF9900",
|
|
@@ -23059,7 +23059,7 @@ var ck = (t) => {
|
|
|
23059
23059
|
"#329262",
|
|
23060
23060
|
"#5574A6",
|
|
23061
23061
|
"#3B3EAC"
|
|
23062
|
-
],
|
|
23062
|
+
], fk = async function(e, t) {
|
|
23063
23063
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
23064
23064
|
return new Promise((r, i) => {
|
|
23065
23065
|
let a = `${n.headers ? `headers=${n.headers}` : "headers=0"}`, o = `${n.query ? `&tq=${encodeURIComponent(n.query)}` : ""}`, s = `${t}/gviz/tq?${`${a}${`${n.gid ? `&gid=${n.gid}` : ""}`}${`${n.sheet ? `&sheet=${n.sheet}` : ""}`}${o}${`${n.access_token ? `&access_token=${n.access_token}` : ""}`}`}`;
|
|
@@ -23067,8 +23067,8 @@ var ck = (t) => {
|
|
|
23067
23067
|
e.isError() ? i(`Error in query: ${e.getMessage()} ${e.getDetailedMessage()}`) : r(e.getDataTable());
|
|
23068
23068
|
});
|
|
23069
23069
|
});
|
|
23070
|
-
},
|
|
23071
|
-
|
|
23070
|
+
}, pk = "#CCCCCC", mk = class {};
|
|
23071
|
+
XO = mk, sn(mk, "grayOutHiddenColumnsLabel", (e, t) => {
|
|
23072
23072
|
let { googleChartWrapper: n, options: r } = e;
|
|
23073
23073
|
if (!n) {
|
|
23074
23074
|
console.error("googleChartWrapper is not defined");
|
|
@@ -23079,14 +23079,14 @@ ZO = hk, sn(hk, "grayOutHiddenColumnsLabel", (e, t) => {
|
|
|
23079
23079
|
let a = i.getNumberOfColumns();
|
|
23080
23080
|
if (!(t.length > 0)) return;
|
|
23081
23081
|
let o = Array.from({ length: a - 1 }).map((e, n) => {
|
|
23082
|
-
let a =
|
|
23083
|
-
return t.includes(a) ?
|
|
23082
|
+
let a = XO.getColumnId(i, n + 1);
|
|
23083
|
+
return t.includes(a) ? pk : r && r.colors ? r.colors[n] : dk[n];
|
|
23084
23084
|
});
|
|
23085
23085
|
n.setOptions({
|
|
23086
23086
|
...r,
|
|
23087
23087
|
colors: o
|
|
23088
23088
|
}), n.draw();
|
|
23089
|
-
}), sn(
|
|
23089
|
+
}), sn(mk, "listenToLegendToggle", (e, t) => {
|
|
23090
23090
|
let [n, r] = t, { google: i, googleChartWrapper: a } = e;
|
|
23091
23091
|
if (!a) {
|
|
23092
23092
|
console.error("googleChartWrapper is not defined");
|
|
@@ -23095,10 +23095,10 @@ ZO = hk, sn(hk, "grayOutHiddenColumnsLabel", (e, t) => {
|
|
|
23095
23095
|
return i.visualization.events.addListener(a, "select", () => {
|
|
23096
23096
|
let e = a.getChart().getSelection(), t = a.getDataTable();
|
|
23097
23097
|
if (e.length === 0 || e[0].row !== null || !t) return;
|
|
23098
|
-
let i = e[0].column, o =
|
|
23098
|
+
let i = e[0].column, o = XO.getColumnId(t, i);
|
|
23099
23099
|
n?.includes(o) ? r((e) => [...e.filter((e) => e !== o)]) : r((e) => [...e, o]);
|
|
23100
23100
|
});
|
|
23101
|
-
}), sn(
|
|
23101
|
+
}), sn(mk, "draw", async (e) => {
|
|
23102
23102
|
let { data: t, diffdata: n, rows: r, columns: i, options: a, chartType: o, formatters: s, spreadSheetUrl: c, spreadSheetQueryParameters: l, googleChartDashboard: u, googleChartWrapper: d, google: f, hiddenColumns: p, legendToggle: m, legend_toggle: h } = e;
|
|
23103
23103
|
if (!d) {
|
|
23104
23104
|
console.error("draw was called with googleChartWrapper = null");
|
|
@@ -23109,9 +23109,9 @@ ZO = hk, sn(hk, "grayOutHiddenColumnsLabel", (e, t) => {
|
|
|
23109
23109
|
let e = f.visualization.arrayToDataTable(n.old), t = f.visualization.arrayToDataTable(n.new);
|
|
23110
23110
|
_ = f.visualization[o].prototype.computeDiff(e, t);
|
|
23111
23111
|
}
|
|
23112
|
-
g = t ? t instanceof f.visualization.DataTable ? t : Array.isArray(t) ? f.visualization.arrayToDataTable(t) : new f.visualization.DataTable(t) : r && i ? f.visualization.arrayToDataTable([i, ...r]) : c ? await
|
|
23112
|
+
g = t ? t instanceof f.visualization.DataTable ? t : Array.isArray(t) ? f.visualization.arrayToDataTable(t) : new f.visualization.DataTable(t) : r && i ? f.visualization.arrayToDataTable([i, ...r]) : c ? await fk(f, c, l) : f.visualization.arrayToDataTable([]);
|
|
23113
23113
|
let v = g.getNumberOfColumns(), y = Array(v).fill(0).map((e, t) => {
|
|
23114
|
-
let n =
|
|
23114
|
+
let n = XO.getColumnId(g, t);
|
|
23115
23115
|
return p.includes(n) ? {
|
|
23116
23116
|
label: g.getColumnLabel(t),
|
|
23117
23117
|
type: g.getColumnType(t),
|
|
@@ -23120,12 +23120,12 @@ ZO = hk, sn(hk, "grayOutHiddenColumnsLabel", (e, t) => {
|
|
|
23120
23120
|
}), b = d.getChart();
|
|
23121
23121
|
d.getChartType() === "Timeline" && b && b.clearChart(), d.setChartType(o), d.setOptions(a || {});
|
|
23122
23122
|
let x = new f.visualization.DataView(g);
|
|
23123
|
-
x.setColumns(y), d.setDataTable(x), d.draw(), u && u.draw(g), _ && (d.setDataTable(_), d.draw()), s && (
|
|
23123
|
+
x.setColumns(y), d.setDataTable(x), d.draw(), u && u.draw(g), _ && (d.setDataTable(_), d.draw()), s && (XO.applyFormatters({
|
|
23124
23124
|
dataTable: g,
|
|
23125
23125
|
formatters: s,
|
|
23126
23126
|
google: f
|
|
23127
|
-
}), d.setDataTable(g), d.draw()), (m === !0 || h === !0) &&
|
|
23128
|
-
}), sn(
|
|
23127
|
+
}), d.setDataTable(g), d.draw()), (m === !0 || h === !0) && XO.grayOutHiddenColumnsLabel(e, p);
|
|
23128
|
+
}), sn(mk, "getColumnId", (e, t) => e.getColumnId(t) || e.getColumnLabel(t)), sn(mk, "applyFormatters", (e) => {
|
|
23129
23129
|
let { dataTable: t, formatters: n, google: r } = e;
|
|
23130
23130
|
for (let e of n) switch (e.type) {
|
|
23131
23131
|
case "ArrowFormat":
|
|
@@ -23154,10 +23154,10 @@ ZO = hk, sn(hk, "grayOutHiddenColumnsLabel", (e, t) => {
|
|
|
23154
23154
|
return;
|
|
23155
23155
|
}
|
|
23156
23156
|
});
|
|
23157
|
-
var
|
|
23157
|
+
var hk = (t) => {
|
|
23158
23158
|
let { google: n, googleChartWrapper: r, googleChartDashboard: i } = t, [a, o] = e.useState([]);
|
|
23159
23159
|
e.useEffect(() => {
|
|
23160
|
-
r &&
|
|
23160
|
+
r && mk.draw({
|
|
23161
23161
|
...t,
|
|
23162
23162
|
hiddenColumns: a,
|
|
23163
23163
|
googleChartWrapper: r,
|
|
@@ -23183,14 +23183,14 @@ var gk = (t) => {
|
|
|
23183
23183
|
e && e.draw();
|
|
23184
23184
|
}, c = (e) => {
|
|
23185
23185
|
let r = [], { legendToggle: c, legend_toggle: l } = t;
|
|
23186
|
-
if (
|
|
23186
|
+
if (mk.draw({
|
|
23187
23187
|
...t,
|
|
23188
23188
|
hiddenColumns: a,
|
|
23189
23189
|
googleChartWrapper: e,
|
|
23190
23190
|
googleChartDashboard: i,
|
|
23191
23191
|
google: n
|
|
23192
23192
|
}), window.addEventListener("resize", s), l || c) {
|
|
23193
|
-
let e =
|
|
23193
|
+
let e = mk.listenToLegendToggle(t, [a, o]);
|
|
23194
23194
|
e && r.push(e);
|
|
23195
23195
|
}
|
|
23196
23196
|
return r;
|
|
@@ -23210,7 +23210,7 @@ var gk = (t) => {
|
|
|
23210
23210
|
c,
|
|
23211
23211
|
l
|
|
23212
23212
|
]);
|
|
23213
|
-
},
|
|
23213
|
+
}, gk = (e) => {
|
|
23214
23214
|
let { chartEvents: t, google: n, googleChartWrapper: r } = e;
|
|
23215
23215
|
if (t) {
|
|
23216
23216
|
if (!r) {
|
|
@@ -23229,27 +23229,27 @@ var gk = (t) => {
|
|
|
23229
23229
|
});
|
|
23230
23230
|
});
|
|
23231
23231
|
}
|
|
23232
|
-
},
|
|
23232
|
+
}, _k = (e) => {
|
|
23233
23233
|
d(() => {
|
|
23234
23234
|
if (!e.googleChartWrapper) return;
|
|
23235
|
-
let t =
|
|
23235
|
+
let t = gk(e);
|
|
23236
23236
|
return () => {
|
|
23237
23237
|
t?.forEach((t) => {
|
|
23238
23238
|
e.google.visualization.events.removeListener(t);
|
|
23239
23239
|
});
|
|
23240
23240
|
};
|
|
23241
23241
|
}, [e]);
|
|
23242
|
-
},
|
|
23243
|
-
let [n, r] = e.useState(null), [i, a] = e.useState(null), { addControls: o, renderControl: s } =
|
|
23242
|
+
}, vk = (t) => {
|
|
23243
|
+
let [n, r] = e.useState(null), [i, a] = e.useState(null), { addControls: o, renderControl: s } = lk({
|
|
23244
23244
|
...t,
|
|
23245
23245
|
chartDashboard: i,
|
|
23246
23246
|
chartWrapper: n
|
|
23247
23247
|
});
|
|
23248
|
-
|
|
23248
|
+
_k({
|
|
23249
23249
|
...t,
|
|
23250
23250
|
googleChartWrapper: n
|
|
23251
23251
|
});
|
|
23252
|
-
let { chartId: c } =
|
|
23252
|
+
let { chartId: c } = uk(t), l = e.useRef(null), u = e.useRef(null);
|
|
23253
23253
|
e.useEffect(() => {
|
|
23254
23254
|
let { options: e, google: n, chartType: i, chartWrapperParams: s, toolbarItems: d, getChartEditor: f, getChartWrapper: p, onLoad: m } = t, h = {
|
|
23255
23255
|
chartType: i,
|
|
@@ -23275,7 +23275,7 @@ var gk = (t) => {
|
|
|
23275
23275
|
chartEditor: v,
|
|
23276
23276
|
chartDashboard: _
|
|
23277
23277
|
});
|
|
23278
|
-
}, []),
|
|
23278
|
+
}, []), hk({
|
|
23279
23279
|
...t,
|
|
23280
23280
|
googleChartWrapper: n,
|
|
23281
23281
|
googleChartDashboard: i
|
|
@@ -23317,28 +23317,28 @@ var gk = (t) => {
|
|
|
23317
23317
|
let { controlProp: t } = e;
|
|
23318
23318
|
return t.controlPosition === "bottom";
|
|
23319
23319
|
}), f());
|
|
23320
|
-
},
|
|
23320
|
+
}, yk = /*#__PURE__*/ e.createContext(nk), bk = (t) => {
|
|
23321
23321
|
let { children: n, value: r } = t;
|
|
23322
|
-
return /*#__PURE__*/ e.createElement(
|
|
23323
|
-
},
|
|
23324
|
-
let { google: n, isLoading: r, error: i } =
|
|
23325
|
-
return r ? e.loader ?? null : i ? e.errorElement ?? null : n ? /*#__PURE__*/ t.createElement(
|
|
23322
|
+
return /*#__PURE__*/ e.createElement(yk.Provider, { value: r }, n);
|
|
23323
|
+
}, xk = (e) => {
|
|
23324
|
+
let { google: n, isLoading: r, error: i } = tk(e);
|
|
23325
|
+
return r ? e.loader ?? null : i ? e.errorElement ?? null : n ? /*#__PURE__*/ t.createElement(vk, {
|
|
23326
23326
|
google: n,
|
|
23327
23327
|
...e
|
|
23328
23328
|
}) : null;
|
|
23329
|
-
},
|
|
23329
|
+
}, Sk = (e) => {
|
|
23330
23330
|
let n = {
|
|
23331
|
-
...
|
|
23331
|
+
...nk,
|
|
23332
23332
|
...e
|
|
23333
23333
|
};
|
|
23334
|
-
return /*#__PURE__*/ t.createElement(
|
|
23335
|
-
},
|
|
23334
|
+
return /*#__PURE__*/ t.createElement(bk, { value: n }, /*#__PURE__*/ t.createElement(xk, n));
|
|
23335
|
+
}, Ck;
|
|
23336
23336
|
(function(e) {
|
|
23337
23337
|
e.annotation = "annotation", e.annotationText = "annotationText", e.certainty = "certainty", e.emphasis = "emphasis", e.interval = "interval", e.scope = "scope", e.style = "style", e.tooltip = "tooltip", e.domain = "domain";
|
|
23338
|
-
})(
|
|
23338
|
+
})(Ck || (Ck = {}));
|
|
23339
23339
|
//#endregion
|
|
23340
23340
|
//#region src/modules/monitor/components/monitor/requirement/requirementChart.tsx
|
|
23341
|
-
function
|
|
23341
|
+
function wk({ target: e, results: t }) {
|
|
23342
23342
|
let n = {
|
|
23343
23343
|
title: e.logging_parameter.name,
|
|
23344
23344
|
curveType: "function",
|
|
@@ -23379,7 +23379,7 @@ function Tk({ target: e, results: t }) {
|
|
|
23379
23379
|
}), r.length === 1 ? /* @__PURE__ */ x("div", {
|
|
23380
23380
|
className: "text-center",
|
|
23381
23381
|
children: "No data available"
|
|
23382
|
-
}) : /* @__PURE__ */ x(
|
|
23382
|
+
}) : /* @__PURE__ */ x(Sk, {
|
|
23383
23383
|
chartType: "ScatterChart",
|
|
23384
23384
|
width: "100%",
|
|
23385
23385
|
height: "400px",
|
|
@@ -23389,7 +23389,7 @@ function Tk({ target: e, results: t }) {
|
|
|
23389
23389
|
}
|
|
23390
23390
|
//#endregion
|
|
23391
23391
|
//#region src/modules/partial/paginationLinks.tsx
|
|
23392
|
-
var
|
|
23392
|
+
var Tk = ({ data: e, setPage: t, setPageSize: n, pageSize: r, isPlaceholderData: i }) => {
|
|
23393
23393
|
if (e === void 0 || i) return /* @__PURE__ */ x(b, {});
|
|
23394
23394
|
let a = [];
|
|
23395
23395
|
for (let n = 1; n <= e.amountOfPages; n++) a.push(/* @__PURE__ */ x(su.Item, {
|
|
@@ -23450,7 +23450,7 @@ var Ek = ({ data: e, setPage: t, setPageSize: n, pageSize: r, isPlaceholderData:
|
|
|
23450
23450
|
};
|
|
23451
23451
|
//#endregion
|
|
23452
23452
|
//#region src/modules/monitor/components/monitor/requirement/addResultModal.tsx
|
|
23453
|
-
function
|
|
23453
|
+
function Ek({ show: e, onClose: t }) {
|
|
23454
23454
|
return /* @__PURE__ */ x(Su, {
|
|
23455
23455
|
position: "top-end",
|
|
23456
23456
|
className: "p-3",
|
|
@@ -23467,8 +23467,8 @@ function Dk({ show: e, onClose: t }) {
|
|
|
23467
23467
|
})
|
|
23468
23468
|
});
|
|
23469
23469
|
}
|
|
23470
|
-
var
|
|
23471
|
-
let [r, i] = v(!1), [a, o] = v(!1), [s, c] = v(!1), { control: l, register: u, handleSubmit: f, reset: p, watch: m, formState: { errors: h, isValid: g } } = _f({ defaultValues: { date:
|
|
23470
|
+
var Dk = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], Ok = ({ requirement: e, targets: t, refetchResults: n }) => {
|
|
23471
|
+
let [r, i] = v(!1), [a, o] = v(!1), [s, c] = v(!1), { control: l, register: u, handleSubmit: f, reset: p, watch: m, formState: { errors: h, isValid: g } } = _f({ defaultValues: { date: Dk } }), { fields: _, append: C, remove: w } = gf({
|
|
23472
23472
|
control: l,
|
|
23473
23473
|
name: "results",
|
|
23474
23474
|
rules: { required: !0 }
|
|
@@ -23551,7 +23551,7 @@ var Ok = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], kk = ({ requi
|
|
|
23551
23551
|
]
|
|
23552
23552
|
})
|
|
23553
23553
|
}),
|
|
23554
|
-
/* @__PURE__ */ x(
|
|
23554
|
+
/* @__PURE__ */ x(Ek, {
|
|
23555
23555
|
show: a,
|
|
23556
23556
|
onClose: () => o(!1)
|
|
23557
23557
|
})
|
|
@@ -23559,7 +23559,7 @@ var Ok = (/* @__PURE__ */ new Date()).toISOString().split("T")[0], kk = ({ requi
|
|
|
23559
23559
|
};
|
|
23560
23560
|
//#endregion
|
|
23561
23561
|
//#region src/modules/monitor/components/monitor/requirement/addStepParameterValueModal.tsx
|
|
23562
|
-
function
|
|
23562
|
+
function kk({ show: e, onClose: t }) {
|
|
23563
23563
|
return /* @__PURE__ */ x(Su, {
|
|
23564
23564
|
position: "top-end",
|
|
23565
23565
|
className: "p-3",
|
|
@@ -23576,7 +23576,7 @@ function Ak({ show: e, onClose: t }) {
|
|
|
23576
23576
|
})
|
|
23577
23577
|
});
|
|
23578
23578
|
}
|
|
23579
|
-
var
|
|
23579
|
+
var Ak = ({ requirement: e, result: t, refetchMonitorStepParameterValues: n }) => {
|
|
23580
23580
|
let [r, i] = v(!1), [a, o] = v(!1), [s, c] = v(!1), [l, u] = v([]), { control: f, register: p, handleSubmit: m, reset: h, watch: g, formState: { errors: _, isValid: C } } = _f({ defaultValues: {} });
|
|
23581
23581
|
d(() => {
|
|
23582
23582
|
async function n() {
|
|
@@ -23672,7 +23672,7 @@ var jk = ({ requirement: e, result: t, refetchMonitorStepParameterValues: n }) =
|
|
|
23672
23672
|
]
|
|
23673
23673
|
})
|
|
23674
23674
|
}),
|
|
23675
|
-
/* @__PURE__ */ x(
|
|
23675
|
+
/* @__PURE__ */ x(kk, {
|
|
23676
23676
|
show: a,
|
|
23677
23677
|
onClose: () => o(!1)
|
|
23678
23678
|
})
|
|
@@ -23680,7 +23680,7 @@ var jk = ({ requirement: e, result: t, refetchMonitorStepParameterValues: n }) =
|
|
|
23680
23680
|
};
|
|
23681
23681
|
//#endregion
|
|
23682
23682
|
//#region src/modules/monitor/components/monitor/requirement/editStepParameterValueModal.tsx
|
|
23683
|
-
function
|
|
23683
|
+
function jk({ show: e, onClose: t }) {
|
|
23684
23684
|
return /* @__PURE__ */ x(Su, {
|
|
23685
23685
|
position: "top-end",
|
|
23686
23686
|
className: "p-3",
|
|
@@ -23697,7 +23697,7 @@ function Mk({ show: e, onClose: t }) {
|
|
|
23697
23697
|
})
|
|
23698
23698
|
});
|
|
23699
23699
|
}
|
|
23700
|
-
var
|
|
23700
|
+
var Mk = ({ monitorResultStepParameterValue: e, refetchMonitorStepParameterValues: t }) => {
|
|
23701
23701
|
let [n, r] = v(!1), [i, a] = v(!1), [o, s] = v(!1), { control: c, register: l, handleSubmit: u, reset: f, watch: p, formState: { errors: m, isValid: h } } = _f({ defaultValues: { value: e.value.toString() } });
|
|
23702
23702
|
d(() => {
|
|
23703
23703
|
s(h);
|
|
@@ -23782,7 +23782,7 @@ var Nk = ({ monitorResultStepParameterValue: e, refetchMonitorStepParameterValue
|
|
|
23782
23782
|
]
|
|
23783
23783
|
})
|
|
23784
23784
|
}),
|
|
23785
|
-
/* @__PURE__ */ x(
|
|
23785
|
+
/* @__PURE__ */ x(jk, {
|
|
23786
23786
|
show: i,
|
|
23787
23787
|
onClose: () => a(!1)
|
|
23788
23788
|
})
|
|
@@ -23790,7 +23790,7 @@ var Nk = ({ monitorResultStepParameterValue: e, refetchMonitorStepParameterValue
|
|
|
23790
23790
|
};
|
|
23791
23791
|
//#endregion
|
|
23792
23792
|
//#region src/modules/monitor/components/monitor/requirement/requirementResults.tsx
|
|
23793
|
-
function
|
|
23793
|
+
function Nk({ requirement: e }) {
|
|
23794
23794
|
let [t, n] = v(""), [r, i] = v(1), [a, o] = v(15), [s, c, u, d] = O({ queries: [
|
|
23795
23795
|
{
|
|
23796
23796
|
queryKey: [
|
|
@@ -23897,7 +23897,7 @@ function Pk({ requirement: e }) {
|
|
|
23897
23897
|
className: "my-3",
|
|
23898
23898
|
children: /* @__PURE__ */ S(Di, { children: [/* @__PURE__ */ x("h2", { children: "Charts" }), /* @__PURE__ */ x("div", {
|
|
23899
23899
|
className: "d-flex",
|
|
23900
|
-
children: c.data?.items.map((e) => /* @__PURE__ */ x(
|
|
23900
|
+
children: c.data?.items.map((e) => /* @__PURE__ */ x(wk, {
|
|
23901
23901
|
target: e,
|
|
23902
23902
|
results: u.data.items
|
|
23903
23903
|
}, e.id))
|
|
@@ -23913,7 +23913,7 @@ function Pk({ requirement: e }) {
|
|
|
23913
23913
|
}),
|
|
23914
23914
|
/* @__PURE__ */ S("div", {
|
|
23915
23915
|
className: "d-flex justify-content-between",
|
|
23916
|
-
children: [/* @__PURE__ */ x("h2", { children: "Results" }), /* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(
|
|
23916
|
+
children: [/* @__PURE__ */ x("h2", { children: "Results" }), /* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(Ok, {
|
|
23917
23917
|
requirement: e,
|
|
23918
23918
|
targets: c.data.items,
|
|
23919
23919
|
refetchResults: u.refetch
|
|
@@ -23971,7 +23971,7 @@ function Pk({ requirement: e }) {
|
|
|
23971
23971
|
}),
|
|
23972
23972
|
f.map((e) => {
|
|
23973
23973
|
let n = [];
|
|
23974
|
-
for (let r of d.data?.items ?? []) r.step_parameter.id !== e.id || r.result.id !== t.id || n.push(/* @__PURE__ */ x(
|
|
23974
|
+
for (let r of d.data?.items ?? []) r.step_parameter.id !== e.id || r.result.id !== t.id || n.push(/* @__PURE__ */ x(Mk, {
|
|
23975
23975
|
monitorResultStepParameterValue: r,
|
|
23976
23976
|
refetchMonitorStepParameterValues: d.refetch
|
|
23977
23977
|
}, r.id));
|
|
@@ -23980,14 +23980,14 @@ function Pk({ requirement: e }) {
|
|
|
23980
23980
|
children: n
|
|
23981
23981
|
}, e.id);
|
|
23982
23982
|
}),
|
|
23983
|
-
/* @__PURE__ */ x("td", { children: /* @__PURE__ */ x(
|
|
23983
|
+
/* @__PURE__ */ x("td", { children: /* @__PURE__ */ x(Ak, {
|
|
23984
23984
|
result: t,
|
|
23985
23985
|
requirement: e,
|
|
23986
23986
|
refetchMonitorStepParameterValues: d.refetch
|
|
23987
23987
|
}) })
|
|
23988
23988
|
] }, t.id)) })]
|
|
23989
23989
|
}),
|
|
23990
|
-
/* @__PURE__ */ x(
|
|
23990
|
+
/* @__PURE__ */ x(Tk, {
|
|
23991
23991
|
data: u.data,
|
|
23992
23992
|
setPage: i,
|
|
23993
23993
|
setPageSize: o,
|
|
@@ -24031,7 +24031,7 @@ function Pk({ requirement: e }) {
|
|
|
24031
24031
|
t + 1,
|
|
24032
24032
|
" ",
|
|
24033
24033
|
/* @__PURE__ */ x("a", {
|
|
24034
|
-
href:
|
|
24034
|
+
href: e.url,
|
|
24035
24035
|
children: e.name
|
|
24036
24036
|
}),
|
|
24037
24037
|
e.has_monitor_step_loggings && /* @__PURE__ */ x(ri, {
|
|
@@ -24052,7 +24052,7 @@ function Pk({ requirement: e }) {
|
|
|
24052
24052
|
}
|
|
24053
24053
|
//#endregion
|
|
24054
24054
|
//#region src/modules/monitor/components/monitor/monitorPage.tsx
|
|
24055
|
-
function
|
|
24055
|
+
function Pk() {
|
|
24056
24056
|
let { id: e } = L(), [t, n] = O({ queries: [{
|
|
24057
24057
|
queryKey: ["monitor", e],
|
|
24058
24058
|
queryFn: () => He({ id: parseInt(e) })
|
|
@@ -24065,12 +24065,12 @@ function Fk() {
|
|
|
24065
24065
|
children: ["SPC Test ", t.data?.name]
|
|
24066
24066
|
}), n.data?.items.map((e, t) => /* @__PURE__ */ x("div", {
|
|
24067
24067
|
className: "border border-1 p-3 my-3",
|
|
24068
|
-
children: /* @__PURE__ */ x(
|
|
24068
|
+
children: /* @__PURE__ */ x(Nk, { requirement: e })
|
|
24069
24069
|
}, t))] });
|
|
24070
24070
|
}
|
|
24071
24071
|
//#endregion
|
|
24072
24072
|
//#region src/modules/monitor/components/monitor/monitorHeaderElement.tsx
|
|
24073
|
-
function
|
|
24073
|
+
function Fk() {
|
|
24074
24074
|
return /* @__PURE__ */ x(Oi, {
|
|
24075
24075
|
fluid: !0,
|
|
24076
24076
|
children: /* @__PURE__ */ x(P, {})
|
|
@@ -24078,7 +24078,7 @@ function Ik() {
|
|
|
24078
24078
|
}
|
|
24079
24079
|
//#endregion
|
|
24080
24080
|
//#region src/modules/monitor/hooks/useMonitor.ts
|
|
24081
|
-
var
|
|
24081
|
+
var Ik = () => {
|
|
24082
24082
|
let [e, t] = v(null), { id: n } = L();
|
|
24083
24083
|
d(() => {
|
|
24084
24084
|
e === null && He({ id: parseInt(n) }).then(t);
|
|
@@ -24091,15 +24091,15 @@ var Lk = () => {
|
|
|
24091
24091
|
setMonitor: t,
|
|
24092
24092
|
reloadMonitor: r
|
|
24093
24093
|
};
|
|
24094
|
-
},
|
|
24094
|
+
}, Lk = o({
|
|
24095
24095
|
monitor: {},
|
|
24096
24096
|
reloadMonitor: () => {}
|
|
24097
24097
|
});
|
|
24098
24098
|
//#endregion
|
|
24099
24099
|
//#region src/modules/monitor/providers/monitorProvider.tsx
|
|
24100
|
-
function
|
|
24101
|
-
let { monitor: t, reloadMonitor: n } =
|
|
24102
|
-
return t === null ? /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(nn, { message: "Loading monitor..." }) }) : /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(
|
|
24100
|
+
function Rk({ children: e }) {
|
|
24101
|
+
let { monitor: t, reloadMonitor: n } = Ik();
|
|
24102
|
+
return t === null ? /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(nn, { message: "Loading monitor..." }) }) : /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(Lk.Provider, {
|
|
24103
24103
|
value: {
|
|
24104
24104
|
monitor: t,
|
|
24105
24105
|
reloadMonitor: n
|
|
@@ -24112,7 +24112,7 @@ function zk({ children: e }) {
|
|
|
24112
24112
|
}
|
|
24113
24113
|
//#endregion
|
|
24114
24114
|
//#region src/modules/run/hooks/useRun.ts
|
|
24115
|
-
var
|
|
24115
|
+
var zk = () => {
|
|
24116
24116
|
let [e, t] = v(null), { id: n } = L();
|
|
24117
24117
|
d(() => {
|
|
24118
24118
|
(e === null || n !== e.id.toString()) && rt({ id: parseInt(n) }).then(t);
|
|
@@ -24124,15 +24124,15 @@ var Bk = () => {
|
|
|
24124
24124
|
run: e,
|
|
24125
24125
|
reloadRun: r
|
|
24126
24126
|
};
|
|
24127
|
-
},
|
|
24127
|
+
}, Bk = o({
|
|
24128
24128
|
run: {},
|
|
24129
24129
|
reloadRun: () => {}
|
|
24130
24130
|
});
|
|
24131
24131
|
//#endregion
|
|
24132
24132
|
//#region src/modules/run/providers/runProvider.tsx
|
|
24133
|
-
function
|
|
24134
|
-
let { run: t, reloadRun: n } =
|
|
24135
|
-
return t === null ? /* @__PURE__ */ x(nn, { message: "Loading run..." }) : /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(
|
|
24133
|
+
function Vk({ children: e }) {
|
|
24134
|
+
let { run: t, reloadRun: n } = zk();
|
|
24135
|
+
return t === null ? /* @__PURE__ */ x(nn, { message: "Loading run..." }) : /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(Bk.Provider, {
|
|
24136
24136
|
value: {
|
|
24137
24137
|
run: t,
|
|
24138
24138
|
reloadRun: n
|
|
@@ -24145,14 +24145,14 @@ function Hk({ children: e }) {
|
|
|
24145
24145
|
}
|
|
24146
24146
|
//#endregion
|
|
24147
24147
|
//#region src/utils/text.tsx
|
|
24148
|
-
function
|
|
24148
|
+
function Hk({ text: e }) {
|
|
24149
24149
|
if (!e) return null;
|
|
24150
24150
|
let n = e.split(/\r\n|\n|\r/);
|
|
24151
24151
|
return /* @__PURE__ */ x(b, { children: n.map((e, r) => /* @__PURE__ */ S(t.Fragment, { children: [e, r < n.length - 1 && /* @__PURE__ */ x("br", {})] }, r)) });
|
|
24152
24152
|
}
|
|
24153
24153
|
//#endregion
|
|
24154
24154
|
//#region src/modules/partial/dateFormat.tsx
|
|
24155
|
-
var
|
|
24155
|
+
var Uk = ({ children: e, format: t = "d-M-Y" }) => /* @__PURE__ */ x(b, { children: vO(e, t) }), Wk = ({ run: e }) => {
|
|
24156
24156
|
let [t, n] = v(e.batch_card), [r, i] = v(!1), { register: a, handleSubmit: o, formState: s, resetField: c } = _f({ defaultValues: { content: t?.content } }), { isSubmitting: l, errors: u } = s, d = async (t) => {
|
|
24157
24157
|
await y.create().patch("update/run/batch-card/" + e.id, { content: t.content }), i(!1);
|
|
24158
24158
|
let r = await y.get("view/run/" + e.id);
|
|
@@ -24212,14 +24212,14 @@ var Wk = ({ children: e, format: t = "d-M-Y" }) => /* @__PURE__ */ x(b, { childr
|
|
|
24212
24212
|
})]
|
|
24213
24213
|
}), /* @__PURE__ */ x(vi.Text, {
|
|
24214
24214
|
className: "mt-3 mb-2 fs-5 text-body",
|
|
24215
|
-
children: t && /* @__PURE__ */ x(
|
|
24215
|
+
children: t && /* @__PURE__ */ x(Hk, { text: t.content })
|
|
24216
24216
|
})] }), /* @__PURE__ */ x(vi.Footer, {
|
|
24217
24217
|
className: "bg-transparent border-0 pt-0 pb-3",
|
|
24218
24218
|
children: /* @__PURE__ */ S("div", {
|
|
24219
24219
|
className: "text-muted small",
|
|
24220
24220
|
children: [
|
|
24221
24221
|
"Created ",
|
|
24222
|
-
/* @__PURE__ */ x(
|
|
24222
|
+
/* @__PURE__ */ x(Uk, {
|
|
24223
24223
|
format: "DD-MM-YY",
|
|
24224
24224
|
children: t.date_created
|
|
24225
24225
|
}),
|
|
@@ -24231,7 +24231,7 @@ var Wk = ({ children: e, format: t = "d-M-Y" }) => /* @__PURE__ */ x(b, { childr
|
|
|
24231
24231
|
t.last_update && /* @__PURE__ */ S("span", { children: [
|
|
24232
24232
|
" (",
|
|
24233
24233
|
"Updated ",
|
|
24234
|
-
/* @__PURE__ */ x(
|
|
24234
|
+
/* @__PURE__ */ x(Uk, {
|
|
24235
24235
|
format: "DD-MM-YY H:m",
|
|
24236
24236
|
children: t.last_update
|
|
24237
24237
|
}),
|
|
@@ -24249,8 +24249,8 @@ var Wk = ({ children: e, format: t = "d-M-Y" }) => /* @__PURE__ */ x(b, { childr
|
|
|
24249
24249
|
};
|
|
24250
24250
|
//#endregion
|
|
24251
24251
|
//#region src/modules/run/components/run/partial/runHeader.tsx
|
|
24252
|
-
function
|
|
24253
|
-
let { run: e } = u(
|
|
24252
|
+
function Gk() {
|
|
24253
|
+
let { run: e } = u(Bk);
|
|
24254
24254
|
return /* @__PURE__ */ S(b, { children: [
|
|
24255
24255
|
e.run_type === Kt.RESEARCH && /* @__PURE__ */ x("small", { children: "Research run" }),
|
|
24256
24256
|
e.run_type === Kt.PRODUCTION && /* @__PURE__ */ x("small", { children: "Production run" }),
|
|
@@ -24266,13 +24266,13 @@ function Kk() {
|
|
|
24266
24266
|
]
|
|
24267
24267
|
})
|
|
24268
24268
|
}),
|
|
24269
|
-
/* @__PURE__ */ x(
|
|
24269
|
+
/* @__PURE__ */ x(Wk, { run: e })
|
|
24270
24270
|
] });
|
|
24271
24271
|
}
|
|
24272
24272
|
//#endregion
|
|
24273
24273
|
//#region src/modules/run/components/run/partial/runTabs.tsx
|
|
24274
|
-
function
|
|
24275
|
-
let { run: t, reloadRun: n } = u(
|
|
24274
|
+
function Kk(e) {
|
|
24275
|
+
let { run: t, reloadRun: n } = u(Bk), { environment: r } = L(), i = window.location.pathname, a = [
|
|
24276
24276
|
{
|
|
24277
24277
|
title: "Information",
|
|
24278
24278
|
link: `/${r}/operator/run/details/${t.id}/information`
|
|
@@ -24300,22 +24300,22 @@ function qk(e) {
|
|
|
24300
24300
|
}
|
|
24301
24301
|
//#endregion
|
|
24302
24302
|
//#region src/modules/run/components/run/runHeaderElement.tsx
|
|
24303
|
-
function
|
|
24304
|
-
return /* @__PURE__ */ x(
|
|
24303
|
+
function qk() {
|
|
24304
|
+
return /* @__PURE__ */ x(Vk, { children: /* @__PURE__ */ S(Oi, {
|
|
24305
24305
|
fluid: !0,
|
|
24306
24306
|
children: [
|
|
24307
|
-
/* @__PURE__ */ x(
|
|
24308
|
-
/* @__PURE__ */ x(
|
|
24307
|
+
/* @__PURE__ */ x(Gk, {}),
|
|
24308
|
+
/* @__PURE__ */ x(Kk, { className: "mb-4" }),
|
|
24309
24309
|
/* @__PURE__ */ x(P, {})
|
|
24310
24310
|
]
|
|
24311
24311
|
}) });
|
|
24312
24312
|
}
|
|
24313
24313
|
//#endregion
|
|
24314
24314
|
//#region src/modules/run/contexts/emphasizedParametersContext.tsx
|
|
24315
|
-
var
|
|
24315
|
+
var Jk = o({
|
|
24316
24316
|
showOnlyEmphasizedParameters: !1,
|
|
24317
24317
|
setShowOnlyEmphasizedParameters: () => {}
|
|
24318
|
-
}),
|
|
24318
|
+
}), Yk = ({ parameter: e, value: t, refetchFn: n }) => {
|
|
24319
24319
|
let [r, i] = v(!1), [a, o] = v(t.value), s = async (r) => {
|
|
24320
24320
|
let a = { value: r };
|
|
24321
24321
|
try {
|
|
@@ -24372,7 +24372,7 @@ var Yk = o({
|
|
|
24372
24372
|
})
|
|
24373
24373
|
]
|
|
24374
24374
|
})] });
|
|
24375
|
-
},
|
|
24375
|
+
}, Xk = ({ runStep: e, showOnlyEmphasizedParameters: t, editableParameters: n = !0, refetchFn: r }) => {
|
|
24376
24376
|
let { data: i, isLoading: a } = k({
|
|
24377
24377
|
queryKey: ["runStepParameters", e.id],
|
|
24378
24378
|
queryFn: () => gt({ runStep: e })
|
|
@@ -24419,7 +24419,7 @@ var Yk = o({
|
|
|
24419
24419
|
children: e.sequence
|
|
24420
24420
|
}) }),
|
|
24421
24421
|
/* @__PURE__ */ x("td", { children: e.parameter.name }),
|
|
24422
|
-
e.values.map((t, r) => /* @__PURE__ */ x("td", { children: n ? /* @__PURE__ */ x(
|
|
24422
|
+
e.values.map((t, r) => /* @__PURE__ */ x("td", { children: n ? /* @__PURE__ */ x(Yk, {
|
|
24423
24423
|
parameter: e,
|
|
24424
24424
|
refetchFn: s,
|
|
24425
24425
|
value: t
|
|
@@ -24429,7 +24429,7 @@ var Yk = o({
|
|
|
24429
24429
|
colSpan: 3 + c[0].values.length,
|
|
24430
24430
|
children: "No emphasized parameters found."
|
|
24431
24431
|
}) }) })] });
|
|
24432
|
-
},
|
|
24432
|
+
}, Zk = (e) => {
|
|
24433
24433
|
if (e === 0) return "0 Bytes";
|
|
24434
24434
|
let t = 1024, n = [
|
|
24435
24435
|
"Bytes",
|
|
@@ -24440,7 +24440,7 @@ var Yk = o({
|
|
|
24440
24440
|
], r = Math.floor(Math.log(e) / Math.log(t));
|
|
24441
24441
|
return `${parseFloat((e / t ** r).toFixed(2))} ${n[r]}`;
|
|
24442
24442
|
};
|
|
24443
|
-
function
|
|
24443
|
+
function Qk({ runStep: e, refetchFn: t }) {
|
|
24444
24444
|
let [n, r] = v([]), [i, a] = v(""), { data: o, isLoading: s } = k({
|
|
24445
24445
|
queryKey: ["files", e.id],
|
|
24446
24446
|
queryFn: () => ht({ step: e })
|
|
@@ -24499,7 +24499,7 @@ function $k({ runStep: e, refetchFn: t }) {
|
|
|
24499
24499
|
children: t + 1
|
|
24500
24500
|
}) }),
|
|
24501
24501
|
/* @__PURE__ */ S("td", { children: [/* @__PURE__ */ x("a", {
|
|
24502
|
-
href: `${
|
|
24502
|
+
href: `${e.url}`,
|
|
24503
24503
|
children: e.name
|
|
24504
24504
|
}), e.has_run_step_loggings && /* @__PURE__ */ x(ri, {
|
|
24505
24505
|
className: "ms-1 bg-primary",
|
|
@@ -24518,7 +24518,7 @@ function $k({ runStep: e, refetchFn: t }) {
|
|
|
24518
24518
|
}
|
|
24519
24519
|
}),
|
|
24520
24520
|
" ",
|
|
24521
|
-
|
|
24521
|
+
Zk(e.size)
|
|
24522
24522
|
] }),
|
|
24523
24523
|
/* @__PURE__ */ x("td", { children: yO(e.date_created, "DD-MM-YY HH:mm") })
|
|
24524
24524
|
] }, e.url)) })]
|
|
@@ -24550,7 +24550,7 @@ function $k({ runStep: e, refetchFn: t }) {
|
|
|
24550
24550
|
}
|
|
24551
24551
|
//#endregion
|
|
24552
24552
|
//#region src/modules/run/components/shared/parts_table/element/runStepPartComment.tsx
|
|
24553
|
-
var
|
|
24553
|
+
var $k = ({ runStepPart: e, setRunStepPart: t, editable: n = !0 }) => {
|
|
24554
24554
|
let [r, i] = v(!1), [a, o] = v(e.comment), { register: s, handleSubmit: c, formState: l, resetField: u } = _f({ defaultValues: { comment: a } }), { isSubmitting: d, errors: f } = l;
|
|
24555
24555
|
return n ? r ? /* @__PURE__ */ S(G, {
|
|
24556
24556
|
onSubmit: c(async (n) => {
|
|
@@ -24603,7 +24603,7 @@ var eA = ({ runStepPart: e, setRunStepPart: t, editable: n = !0 }) => {
|
|
|
24603
24603
|
children: "Edit"
|
|
24604
24604
|
})]
|
|
24605
24605
|
}) : /* @__PURE__ */ x("div", { children: a });
|
|
24606
|
-
},
|
|
24606
|
+
}, eA = ({ runStepPart: e, setRunStepPartAction: t, createRunStepPart: n }) => /* @__PURE__ */ S(Ks, {
|
|
24607
24607
|
align: "end",
|
|
24608
24608
|
children: [/* @__PURE__ */ x(Ks.Toggle, {
|
|
24609
24609
|
size: "sm",
|
|
@@ -24619,7 +24619,7 @@ var eA = ({ runStepPart: e, setRunStepPart: t, editable: n = !0 }) => {
|
|
|
24619
24619
|
onClick: () => n(),
|
|
24620
24620
|
children: "Init"
|
|
24621
24621
|
})] })]
|
|
24622
|
-
}),
|
|
24622
|
+
}), tA = {
|
|
24623
24623
|
[xt.START]: "btn-start",
|
|
24624
24624
|
[xt.FINISH]: "btn-success",
|
|
24625
24625
|
[xt.FAIL]: "btn-failed",
|
|
@@ -24628,15 +24628,15 @@ var eA = ({ runStepPart: e, setRunStepPart: t, editable: n = !0 }) => {
|
|
|
24628
24628
|
[xt.CLEAR_REPAIR]: "btn-secondary",
|
|
24629
24629
|
[xt.SET_TESTING]: "btn-test",
|
|
24630
24630
|
[xt.CLEAR_TESTING]: "btn-secondary"
|
|
24631
|
-
},
|
|
24631
|
+
}, nA = ({ runStepPart: e, setRunStepPartAction: t }) => e.available_actions.length === 0 ? null : /* @__PURE__ */ x(b, { children: e.available_actions.map(({ id: n, name: r }) => /* @__PURE__ */ x("button", {
|
|
24632
24632
|
type: "button",
|
|
24633
|
-
className: `btn btn-sm me-2 ${
|
|
24633
|
+
className: `btn btn-sm me-2 ${tA[n]}`,
|
|
24634
24634
|
onClick: () => t({
|
|
24635
24635
|
runStepPart: e,
|
|
24636
24636
|
runStepPartAction: n
|
|
24637
24637
|
}),
|
|
24638
24638
|
children: r
|
|
24639
|
-
}, n)) }),
|
|
24639
|
+
}, n)) }), rA = (e, t) => {
|
|
24640
24640
|
let { status: n, processed: r, failed: i, started: a, available_actions: o } = t.updated_run_step_part_state;
|
|
24641
24641
|
return {
|
|
24642
24642
|
...e,
|
|
@@ -24646,7 +24646,7 @@ var eA = ({ runStepPart: e, setRunStepPart: t, editable: n = !0 }) => {
|
|
|
24646
24646
|
started: a,
|
|
24647
24647
|
available_actions: o
|
|
24648
24648
|
};
|
|
24649
|
-
},
|
|
24649
|
+
}, iA = (e, t) => e && (Array.isArray(e.pages) ? {
|
|
24650
24650
|
...e,
|
|
24651
24651
|
pages: e.pages.map((e) => !e || !Array.isArray(e.items) ? e : {
|
|
24652
24652
|
...e,
|
|
@@ -24655,24 +24655,24 @@ var eA = ({ runStepPart: e, setRunStepPart: t, editable: n = !0 }) => {
|
|
|
24655
24655
|
} : Array.isArray(e.items) ? {
|
|
24656
24656
|
...e,
|
|
24657
24657
|
items: t(e.items)
|
|
24658
|
-
} : e),
|
|
24658
|
+
} : e), aA = (e) => e ? Array.isArray(e.pages) ? e.pages.flatMap((e) => Array.isArray(e?.items) ? e.items : []) : Array.isArray(e.items) ? e.items : [] : [], oA = (e, t) => {
|
|
24659
24659
|
let { runStepPart: n, latestAction: r } = t;
|
|
24660
|
-
return
|
|
24661
|
-
},
|
|
24662
|
-
let n =
|
|
24660
|
+
return iA(e, (e) => e.map((e) => e.id === n.id ? rA(e, r) : e));
|
|
24661
|
+
}, sA = (e, t) => iA(e, (e) => e.map((e) => t.get(e.id) ?? e)), cA = (e) => Array.isArray(e) ? e : Array.isArray(e.items) ? e.items : [], lA = (e, t) => {
|
|
24662
|
+
let n = cA(t);
|
|
24663
24663
|
if (n.length === 0) return e;
|
|
24664
24664
|
let r = new Map(n.map((e) => [e.updated_run_step_part_state.run_step_part_id, e])), i = new Map(n.map((e) => [e.updated_run_step_part_state.run_part_id, e]));
|
|
24665
|
-
return
|
|
24665
|
+
return iA(e, (e) => e.map((e) => {
|
|
24666
24666
|
let t = r.get(e.id) ?? i.get(e.part_id);
|
|
24667
|
-
return t ?
|
|
24667
|
+
return t ? rA(e, t) : e;
|
|
24668
24668
|
}));
|
|
24669
|
-
},
|
|
24669
|
+
}, uA = (e, t, n, r) => {
|
|
24670
24670
|
if (e.id === n.id || e.part_id !== n.part_id) return !1;
|
|
24671
24671
|
let i = r.get(e.step_id);
|
|
24672
24672
|
return i ? i.run_id === t.run_id && i.part_level === 0 && i.sequence > t.sequence : !1;
|
|
24673
|
-
},
|
|
24673
|
+
}, dA = (e, t, n, r = {}, i = /* @__PURE__ */ new Map()) => {
|
|
24674
24674
|
if (!e) return e;
|
|
24675
|
-
let a = (e) => e.id === n.id ? n : r.updateSubsequent &&
|
|
24675
|
+
let a = (e) => e.id === n.id ? n : r.updateSubsequent && uA(e, t, n, i) ? {
|
|
24676
24676
|
...e,
|
|
24677
24677
|
tray_id: n.tray_id,
|
|
24678
24678
|
tray_row: n.tray_row,
|
|
@@ -24680,7 +24680,7 @@ var eA = ({ runStepPart: e, setRunStepPart: t, editable: n = !0 }) => {
|
|
|
24680
24680
|
} : e;
|
|
24681
24681
|
if (Array.isArray(e.pages)) {
|
|
24682
24682
|
let t = e.pages;
|
|
24683
|
-
if (t.some((e) => Array.isArray(e?.items) && e.items.some((e) => e.id === n.id))) return
|
|
24683
|
+
if (t.some((e) => Array.isArray(e?.items) && e.items.some((e) => e.id === n.id))) return iA(e, (e) => e.map(a));
|
|
24684
24684
|
if (t.length > 0) {
|
|
24685
24685
|
let r = t.length - 1;
|
|
24686
24686
|
return {
|
|
@@ -24705,57 +24705,57 @@ var eA = ({ runStepPart: e, setRunStepPart: t, editable: n = !0 }) => {
|
|
|
24705
24705
|
};
|
|
24706
24706
|
}
|
|
24707
24707
|
return e;
|
|
24708
|
-
},
|
|
24708
|
+
}, fA = (e) => {
|
|
24709
24709
|
let t = /* @__PURE__ */ new Map();
|
|
24710
24710
|
return e.getQueriesData({ queryKey: ["runSteps"] }).forEach(([, e]) => {
|
|
24711
|
-
|
|
24711
|
+
aA(e).forEach((e) => {
|
|
24712
24712
|
t.set(e.id, e);
|
|
24713
24713
|
});
|
|
24714
24714
|
}), t;
|
|
24715
|
-
},
|
|
24715
|
+
}, pA = async (e, t) => {
|
|
24716
24716
|
if (t.length === 0) return;
|
|
24717
24717
|
let n = Array.from(new Set(t.map((e) => e.part_id))).map((e) => ({ id: e }));
|
|
24718
24718
|
if (n.length === 0) return;
|
|
24719
24719
|
let r = await _t({ runPart: n }), i = new Map(r.items.map((e) => [e.id, e]));
|
|
24720
|
-
i.size !== 0 && e.setQueriesData({ queryKey: ["runStepParts"] }, (e) =>
|
|
24721
|
-
},
|
|
24720
|
+
i.size !== 0 && e.setQueriesData({ queryKey: ["runStepParts"] }, (e) => sA(e, i));
|
|
24721
|
+
}, mA = async (e, t) => {
|
|
24722
24722
|
let n = Array.from(new Set(t.map((e) => e.step_id)));
|
|
24723
24723
|
if (n.length === 0) return;
|
|
24724
24724
|
let r = await Promise.all(n.map((e) => it({ id: e }))), i = new Map(r.map((e) => [e.id, e]));
|
|
24725
|
-
e.setQueriesData({ queryKey: ["runSteps"] }, (e) =>
|
|
24726
|
-
},
|
|
24727
|
-
e.setQueriesData({ queryKey: ["runStepParts"] }, (e) =>
|
|
24725
|
+
e.setQueriesData({ queryKey: ["runSteps"] }, (e) => iA(e, (e) => e.map((e) => i.get(e.id) ?? e)));
|
|
24726
|
+
}, hA = (e, t) => {
|
|
24727
|
+
e.setQueriesData({ queryKey: ["runStepParts"] }, (e) => oA(e, t)), pA(e, [t.runStepPart]).catch((e) => {
|
|
24728
24728
|
console.error("Failed to refresh run step part cache from run part.", e);
|
|
24729
|
-
}),
|
|
24729
|
+
}), mA(e, [t.runStepPart]).catch((e) => {
|
|
24730
24730
|
console.error("Failed to refresh run step cache from run step part.", e);
|
|
24731
24731
|
});
|
|
24732
|
-
},
|
|
24733
|
-
|
|
24734
|
-
},
|
|
24732
|
+
}, gA = (e, t) => {
|
|
24733
|
+
hA(e, t);
|
|
24734
|
+
}, _A = (e, t, n) => {
|
|
24735
24735
|
if ("latestActions" in n) {
|
|
24736
|
-
e.setQueriesData({ predicate: (e) => Array.isArray(e.queryKey) && e.queryKey[0] === "runStepParts" && (e.queryKey.length === 1 || e.queryKey[1] === t.id) }, (e) =>
|
|
24736
|
+
e.setQueriesData({ predicate: (e) => Array.isArray(e.queryKey) && e.queryKey[0] === "runStepParts" && (e.queryKey.length === 1 || e.queryKey[1] === t.id) }, (e) => lA(e, n.latestActions)), pA(e, cA(n.latestActions).map((e) => ({
|
|
24737
24737
|
id: e.updated_run_step_part_state.run_step_part_id,
|
|
24738
24738
|
part_id: e.updated_run_step_part_state.run_part_id
|
|
24739
24739
|
}))).catch((e) => {
|
|
24740
24740
|
console.error("Failed to refresh run step part cache from run parts.", e);
|
|
24741
|
-
}),
|
|
24741
|
+
}), mA(e, [{ step_id: t.id }]).catch((e) => {
|
|
24742
24742
|
console.error("Failed to refresh run step cache from run step.", e);
|
|
24743
24743
|
});
|
|
24744
24744
|
return;
|
|
24745
24745
|
}
|
|
24746
|
-
|
|
24747
|
-
},
|
|
24748
|
-
let i = r.updateSubsequent ?
|
|
24749
|
-
e.setQueriesData({ queryKey: ["runStepParts"] }, (e) =>
|
|
24746
|
+
hA(e, n);
|
|
24747
|
+
}, vA = (e, t, n, r = {}) => {
|
|
24748
|
+
let i = r.updateSubsequent ? fA(e) : /* @__PURE__ */ new Map();
|
|
24749
|
+
e.setQueriesData({ queryKey: ["runStepParts"] }, (e) => dA(e, t, n, r, i));
|
|
24750
24750
|
};
|
|
24751
24751
|
//#endregion
|
|
24752
24752
|
//#region src/modules/run/utils/isRunStepReadyForProcessing.ts
|
|
24753
|
-
function
|
|
24753
|
+
function yA(e) {
|
|
24754
24754
|
return !0;
|
|
24755
24755
|
}
|
|
24756
24756
|
//#endregion
|
|
24757
24757
|
//#region src/modules/run/components/shared/parts_table/element/runPartProductionTableRow.tsx
|
|
24758
|
-
var
|
|
24758
|
+
var bA = (e) => !!e.closest("button, a, input, textarea, select, option, label"), xA = ({ runPart: e, partIsSelected: t, setPartAsSelected: n, runStepParts: r, canInit: i, runStep: a, dropdown: o }) => {
|
|
24759
24759
|
let [s, c] = v(), l = A();
|
|
24760
24760
|
d(() => {
|
|
24761
24761
|
let t = r.find((t) => t.part_id === e.id);
|
|
@@ -24764,7 +24764,7 @@ var xA = (e) => !!e.closest("button, a, input, textarea, select, option, label")
|
|
|
24764
24764
|
let u = (t) => {
|
|
24765
24765
|
if (!n) return;
|
|
24766
24766
|
let r = t.target;
|
|
24767
|
-
if (
|
|
24767
|
+
if (bA(r)) return;
|
|
24768
24768
|
let i = s ? s.part_id : e.id;
|
|
24769
24769
|
i !== void 0 && n(i);
|
|
24770
24770
|
}, f = () => {
|
|
@@ -24773,7 +24773,7 @@ var xA = (e) => !!e.closest("button, a, input, textarea, select, option, label")
|
|
|
24773
24773
|
run_step_id: a.id
|
|
24774
24774
|
}).then((e) => {
|
|
24775
24775
|
let t = { ...e.data };
|
|
24776
|
-
c(t),
|
|
24776
|
+
c(t), vA(l, a, t);
|
|
24777
24777
|
});
|
|
24778
24778
|
}, p = async ({ runStepPart: e, runStepPartAction: t }) => {
|
|
24779
24779
|
let n = await yt({
|
|
@@ -24791,7 +24791,7 @@ var xA = (e) => !!e.closest("button, a, input, textarea, select, option, label")
|
|
|
24791
24791
|
started: a,
|
|
24792
24792
|
available_actions: o
|
|
24793
24793
|
};
|
|
24794
|
-
}),
|
|
24794
|
+
}), _A(l, a, {
|
|
24795
24795
|
runStepPart: e,
|
|
24796
24796
|
latestAction: n
|
|
24797
24797
|
});
|
|
@@ -24800,7 +24800,7 @@ var xA = (e) => !!e.closest("button, a, input, textarea, select, option, label")
|
|
|
24800
24800
|
onClick: u,
|
|
24801
24801
|
style: n ? { cursor: "pointer" } : void 0,
|
|
24802
24802
|
children: [
|
|
24803
|
-
/* @__PURE__ */ x("td", { children: n &&
|
|
24803
|
+
/* @__PURE__ */ x("td", { children: n && yA(a) && /* @__PURE__ */ x("input", {
|
|
24804
24804
|
type: "checkbox",
|
|
24805
24805
|
id: `part-select-${s.part_id}`,
|
|
24806
24806
|
name: "tomato",
|
|
@@ -24820,40 +24820,40 @@ var xA = (e) => !!e.closest("button, a, input, textarea, select, option, label")
|
|
|
24820
24820
|
children: s.status.text
|
|
24821
24821
|
})]
|
|
24822
24822
|
}) }),
|
|
24823
|
-
|
|
24823
|
+
yA(a) && /* @__PURE__ */ x("td", { children: o ? /* @__PURE__ */ x(eA, {
|
|
24824
24824
|
runStepPart: s,
|
|
24825
24825
|
setRunStepPartAction: p,
|
|
24826
24826
|
createRunStepPart: f
|
|
24827
|
-
}) : /* @__PURE__ */ x(
|
|
24827
|
+
}) : /* @__PURE__ */ x(nA, {
|
|
24828
24828
|
runStepPart: s,
|
|
24829
24829
|
setRunStepPartAction: p
|
|
24830
24830
|
}) }),
|
|
24831
|
-
/* @__PURE__ */ x("td", { children: /* @__PURE__ */ x(
|
|
24831
|
+
/* @__PURE__ */ x("td", { children: /* @__PURE__ */ x($k, {
|
|
24832
24832
|
runStepPart: s,
|
|
24833
24833
|
setRunStepPart: c
|
|
24834
24834
|
}) })
|
|
24835
24835
|
]
|
|
24836
24836
|
}) : null;
|
|
24837
|
-
},
|
|
24838
|
-
let e = u(
|
|
24837
|
+
}, SA = o(null), CA = () => {
|
|
24838
|
+
let e = u(SA);
|
|
24839
24839
|
if (e === null) throw Error("useScannerContext must be used within a ScannerProvider");
|
|
24840
24840
|
return e;
|
|
24841
|
-
},
|
|
24841
|
+
}, wA = /* @__PURE__ */ function(e) {
|
|
24842
24842
|
return e[e.WILD_CARD = 0] = "WILD_CARD", e[e.PERFORM_RUN_ACTION = 1] = "PERFORM_RUN_ACTION", e[e.RESET_FORM = 2] = "RESET_FORM", e;
|
|
24843
24843
|
}({});
|
|
24844
|
-
function
|
|
24844
|
+
function TA(e) {
|
|
24845
24845
|
return e.startsWith("_qr") ? 1 : e.toUpperCase().includes("RESET-FORM") ? 2 : 0;
|
|
24846
24846
|
}
|
|
24847
24847
|
//#endregion
|
|
24848
24848
|
//#region src/modules/run/hooks/run/parts/usePartSelection.ts
|
|
24849
|
-
function
|
|
24849
|
+
function EA({ parts: e }) {
|
|
24850
24850
|
let [t, n] = v(/* @__PURE__ */ new Map()), r = l((e) => {
|
|
24851
24851
|
n((t) => {
|
|
24852
24852
|
let n = new Map(t);
|
|
24853
24853
|
return n.set(e, !(t.get(e) ?? !1)), n;
|
|
24854
24854
|
});
|
|
24855
|
-
}, []), { lastlyReadedKeys: i, addCallbackFn: a, removeCallbackFn: o } =
|
|
24856
|
-
if (
|
|
24855
|
+
}, []), { lastlyReadedKeys: i, addCallbackFn: a, removeCallbackFn: o } = CA(), s = f(), c = _(/* @__PURE__ */ new Set()), u = l((t) => {
|
|
24856
|
+
if (TA(t) != wA.WILD_CARD) return;
|
|
24857
24857
|
let n = t.replace(/_/g, "-").toUpperCase();
|
|
24858
24858
|
if (!n) return;
|
|
24859
24859
|
if (e.length == 0) {
|
|
@@ -24867,8 +24867,8 @@ function DA({ parts: e }) {
|
|
|
24867
24867
|
let i = e.find((e) => n.includes(e.scanner_label.toUpperCase()));
|
|
24868
24868
|
i && r(i.id);
|
|
24869
24869
|
}, [e, r]);
|
|
24870
|
-
return d(() => (o(
|
|
24871
|
-
o(
|
|
24870
|
+
return d(() => (o(wA.WILD_CARD, s), u(i), a(wA.WILD_CARD, s, u), () => {
|
|
24871
|
+
o(wA.WILD_CARD, s);
|
|
24872
24872
|
}), [e]), d(() => {
|
|
24873
24873
|
let r = /* @__PURE__ */ new Map();
|
|
24874
24874
|
for (let n of e) {
|
|
@@ -24904,15 +24904,15 @@ function DA({ parts: e }) {
|
|
|
24904
24904
|
}
|
|
24905
24905
|
//#endregion
|
|
24906
24906
|
//#region src/utils/notification.tsx
|
|
24907
|
-
var
|
|
24908
|
-
function
|
|
24909
|
-
if (!
|
|
24907
|
+
var DA = null;
|
|
24908
|
+
function OA(e) {
|
|
24909
|
+
if (!DA) {
|
|
24910
24910
|
console.warn("notification() called before NotificationProvider is mounted");
|
|
24911
24911
|
return;
|
|
24912
24912
|
}
|
|
24913
|
-
|
|
24913
|
+
DA(e);
|
|
24914
24914
|
}
|
|
24915
|
-
function
|
|
24915
|
+
function kA({ children: e }) {
|
|
24916
24916
|
let [t, n] = v([]), r = _(0), i = l((e) => {
|
|
24917
24917
|
let t = ++r.current;
|
|
24918
24918
|
n((n) => [...n, {
|
|
@@ -24920,8 +24920,8 @@ function AA({ children: e }) {
|
|
|
24920
24920
|
id: t
|
|
24921
24921
|
}]);
|
|
24922
24922
|
}, []);
|
|
24923
|
-
d(() => (
|
|
24924
|
-
|
|
24923
|
+
d(() => (DA = i, () => {
|
|
24924
|
+
DA = null;
|
|
24925
24925
|
}), [i]);
|
|
24926
24926
|
let a = l((e) => {
|
|
24927
24927
|
n((t) => t.filter((t) => t.id !== e));
|
|
@@ -24945,11 +24945,11 @@ function AA({ children: e }) {
|
|
|
24945
24945
|
}
|
|
24946
24946
|
//#endregion
|
|
24947
24947
|
//#region src/modules/run/hooks/run/parts/usePartActions.ts
|
|
24948
|
-
var
|
|
24949
|
-
function
|
|
24950
|
-
let o = A(), { addCallbackFn: s, removeCallbackFn: c } =
|
|
24948
|
+
var AA = (e) => "step_id" in e && "part_id" in e;
|
|
24949
|
+
function jA({ runStep: e, parts: t, selectedParts: n, getRunPart: r, getRunStepPart: i, actionsFromScanner: a = !0 }) {
|
|
24950
|
+
let o = A(), { addCallbackFn: s, removeCallbackFn: c } = CA(), u = f(), p = l(() => {
|
|
24951
24951
|
if (t.length === 0) return [];
|
|
24952
|
-
if (
|
|
24952
|
+
if (AA(t[0])) return t.filter((e) => {
|
|
24953
24953
|
let t = r ? r(e) : e.part_id;
|
|
24954
24954
|
return n.get(t);
|
|
24955
24955
|
});
|
|
@@ -24975,7 +24975,7 @@ function MA({ runStep: e, parts: t, selectedParts: n, getRunPart: r, getRunStepP
|
|
|
24975
24975
|
runStepPart: e,
|
|
24976
24976
|
runStepPartAction: t
|
|
24977
24977
|
});
|
|
24978
|
-
|
|
24978
|
+
gA(o, {
|
|
24979
24979
|
runStepPart: e,
|
|
24980
24980
|
latestAction: n
|
|
24981
24981
|
});
|
|
@@ -24985,31 +24985,31 @@ function MA({ runStep: e, parts: t, selectedParts: n, getRunPart: r, getRunStepP
|
|
|
24985
24985
|
runStepPart: e,
|
|
24986
24986
|
runStepPartAction: t
|
|
24987
24987
|
})) });
|
|
24988
|
-
|
|
24988
|
+
_A(o, e, { latestActions: i });
|
|
24989
24989
|
}, [
|
|
24990
24990
|
p,
|
|
24991
24991
|
o,
|
|
24992
24992
|
e
|
|
24993
24993
|
]), h = l((e) => {
|
|
24994
|
-
if (!e || !
|
|
24994
|
+
if (!e || !MA(e)) return;
|
|
24995
24995
|
let t = Ct(e.split("/")[1]);
|
|
24996
24996
|
if (!t) {
|
|
24997
|
-
|
|
24997
|
+
OA({
|
|
24998
24998
|
notificationHeader: "Part scanner",
|
|
24999
24999
|
notificationBody: "Non valid action found in the scanned text",
|
|
25000
25000
|
notificationType: "danger"
|
|
25001
25001
|
});
|
|
25002
25002
|
return;
|
|
25003
25003
|
}
|
|
25004
|
-
|
|
25004
|
+
OA({
|
|
25005
25005
|
notificationHeader: "Part scanner",
|
|
25006
25006
|
notificationBody: `Performing action ${St(t)} on selected parts`,
|
|
25007
25007
|
notificationType: "success"
|
|
25008
25008
|
}), m(t);
|
|
25009
25009
|
}, [m]);
|
|
25010
25010
|
return d(() => {
|
|
25011
|
-
if (a) return c(
|
|
25012
|
-
c(
|
|
25011
|
+
if (a) return c(wA.PERFORM_RUN_ACTION, u), s(wA.PERFORM_RUN_ACTION, u, h), () => {
|
|
25012
|
+
c(wA.PERFORM_RUN_ACTION, u);
|
|
25013
25013
|
};
|
|
25014
25014
|
}, [
|
|
25015
25015
|
a,
|
|
@@ -25029,12 +25029,12 @@ function MA({ runStep: e, parts: t, selectedParts: n, getRunPart: r, getRunStepP
|
|
|
25029
25029
|
}, [p])
|
|
25030
25030
|
};
|
|
25031
25031
|
}
|
|
25032
|
-
function
|
|
25032
|
+
function MA(e) {
|
|
25033
25033
|
return (/* @__PURE__ */ RegExp("^_qr/.+")).test(e);
|
|
25034
25034
|
}
|
|
25035
25035
|
//#endregion
|
|
25036
25036
|
//#region src/modules/run/components/shared/parts_table/element/partSelectionControls.tsx
|
|
25037
|
-
var
|
|
25037
|
+
var NA = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdown: r, traySelections: i, onToggleTray: a }) => {
|
|
25038
25038
|
let o = (i ?? []).length > 0;
|
|
25039
25039
|
return /* @__PURE__ */ S("div", {
|
|
25040
25040
|
className: "d-flex flex-wrap gap-3",
|
|
@@ -25073,7 +25073,7 @@ var PA = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdow
|
|
|
25073
25073
|
n && r
|
|
25074
25074
|
]
|
|
25075
25075
|
});
|
|
25076
|
-
},
|
|
25076
|
+
}, PA = ({ availableActions: e, onActionSelected: t }) => {
|
|
25077
25077
|
let [n, r] = v(null);
|
|
25078
25078
|
if (e.length === 0) return null;
|
|
25079
25079
|
let i = async (e) => {
|
|
@@ -25088,12 +25088,12 @@ var PA = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdow
|
|
|
25088
25088
|
};
|
|
25089
25089
|
return /* @__PURE__ */ x(b, { children: e.map(({ id: e, name: t }) => /* @__PURE__ */ S("button", {
|
|
25090
25090
|
type: "button",
|
|
25091
|
-
className: `btn btn-sm ${
|
|
25091
|
+
className: `btn btn-sm ${tA[e]}`,
|
|
25092
25092
|
onClick: () => void i(e),
|
|
25093
25093
|
disabled: n !== null,
|
|
25094
25094
|
children: [n === e && /* @__PURE__ */ x("span", { className: "spinner-border spinner-border-sm me-1" }), t]
|
|
25095
25095
|
}, e)) });
|
|
25096
|
-
},
|
|
25096
|
+
}, FA = ({ run: e, runStep: n }) => {
|
|
25097
25097
|
let r = O({ queries: [{
|
|
25098
25098
|
queryKey: [
|
|
25099
25099
|
"runParts",
|
|
@@ -25107,12 +25107,12 @@ var PA = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdow
|
|
|
25107
25107
|
}, {
|
|
25108
25108
|
queryKey: ["runStepParts", n.id],
|
|
25109
25109
|
queryFn: () => _t({ step: n })
|
|
25110
|
-
}] }), [i, a] = r, o = r.some((e) => e.isLoading), s = r.some((e) => e.isError), c = h(() => i.data?.items ?? [], [i.data]), l = h(() => a.data?.items ?? [], [a.data]), u = h(() => c.filter((e) => e.part_level === n.part_level), [c, n.part_level]), [d, f] = v(!1), { selectedParts: p, selectAllParts: m } =
|
|
25111
|
-
|
|
25110
|
+
}] }), [i, a] = r, o = r.some((e) => e.isLoading), s = r.some((e) => e.isError), c = h(() => i.data?.items ?? [], [i.data]), l = h(() => a.data?.items ?? [], [a.data]), u = h(() => c.filter((e) => e.part_level === n.part_level), [c, n.part_level]), [d, f] = v(!1), { selectedParts: p, selectAllParts: m } = EA({ parts: u });
|
|
25111
|
+
RA({
|
|
25112
25112
|
runStepParts: l,
|
|
25113
25113
|
runParts: u
|
|
25114
25114
|
});
|
|
25115
|
-
let g = h(() => u.filter((e) => p.get(e.id) && (d || !
|
|
25115
|
+
let g = h(() => u.filter((e) => p.get(e.id) && (d || !IA(l, e))), [
|
|
25116
25116
|
u,
|
|
25117
25117
|
l,
|
|
25118
25118
|
p,
|
|
@@ -25157,7 +25157,7 @@ var PA = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdow
|
|
|
25157
25157
|
animation: "glow",
|
|
25158
25158
|
children: /* @__PURE__ */ x(q, { xs: 7 })
|
|
25159
25159
|
}) })
|
|
25160
|
-
] }, `placeholder-${t}`)), !o && g.map((e, t) => /* @__PURE__ */ x(
|
|
25160
|
+
] }, `placeholder-${t}`)), !o && g.map((e, t) => /* @__PURE__ */ x(xA, {
|
|
25161
25161
|
runStep: n,
|
|
25162
25162
|
runPart: e,
|
|
25163
25163
|
runStepParts: l,
|
|
@@ -25165,7 +25165,7 @@ var PA = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdow
|
|
|
25165
25165
|
partIsSelected: p.get(e.id) ?? !1,
|
|
25166
25166
|
dropdown: !1
|
|
25167
25167
|
}, `${e.parsed_label}${t}`))] })]
|
|
25168
|
-
}), /* @__PURE__ */ x(
|
|
25168
|
+
}), /* @__PURE__ */ x(LA, {
|
|
25169
25169
|
runStepParts: l,
|
|
25170
25170
|
selectedPartsLength: g.length,
|
|
25171
25171
|
totalParts: u.length,
|
|
@@ -25174,10 +25174,10 @@ var PA = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdow
|
|
|
25174
25174
|
f(!d);
|
|
25175
25175
|
}
|
|
25176
25176
|
})] });
|
|
25177
|
-
},
|
|
25177
|
+
}, IA = (e, t) => {
|
|
25178
25178
|
let n = e.find((e) => e.part_id == t.id);
|
|
25179
25179
|
return n != null && n.processed;
|
|
25180
|
-
},
|
|
25180
|
+
}, LA = ({ runStepParts: e, selectedPartsLength: t, totalParts: n, onSelectAll: r, toggleShowCompletedParts: i }) => {
|
|
25181
25181
|
let a = h(() => {
|
|
25182
25182
|
let t = 0;
|
|
25183
25183
|
return e.forEach((e) => e.processed ? t++ : null), t;
|
|
@@ -25230,34 +25230,34 @@ var PA = ({ onSelectAll: e, onSelectNone: t, hasSelectedParts: n, actionsDropdow
|
|
|
25230
25230
|
};
|
|
25231
25231
|
//#endregion
|
|
25232
25232
|
//#region src/modules/run/hooks/run/parts/useQrPartNotifications.ts
|
|
25233
|
-
function
|
|
25234
|
-
let { addCallbackFn: n, removeCallbackFn: r } =
|
|
25233
|
+
function RA({ runStepParts: e, runParts: t }) {
|
|
25234
|
+
let { addCallbackFn: n, removeCallbackFn: r } = CA(), i = f(), a = l((n) => {
|
|
25235
25235
|
let r = n.replace(/_/g, "-").toUpperCase();
|
|
25236
25236
|
if (!r) return;
|
|
25237
25237
|
let i = t.find((e) => r.includes(e.scanner_label.toUpperCase()));
|
|
25238
25238
|
if (i) {
|
|
25239
|
-
if (
|
|
25240
|
-
|
|
25239
|
+
if (IA(e, i)) {
|
|
25240
|
+
OA({
|
|
25241
25241
|
notificationHeader: "Run parts table",
|
|
25242
25242
|
notificationBody: `Part ${i.parsed_label ?? i.scanner_label} is already completed`,
|
|
25243
25243
|
notificationType: "danger"
|
|
25244
25244
|
});
|
|
25245
25245
|
return;
|
|
25246
25246
|
}
|
|
25247
|
-
|
|
25247
|
+
OA({
|
|
25248
25248
|
notificationHeader: "Part scanner",
|
|
25249
25249
|
notificationBody: `Found part: ${i.scanner_label}`,
|
|
25250
25250
|
notificationType: "success"
|
|
25251
25251
|
});
|
|
25252
25252
|
}
|
|
25253
25253
|
}, [t, e]);
|
|
25254
|
-
d(() => (r(
|
|
25255
|
-
r(
|
|
25254
|
+
d(() => (r(wA.WILD_CARD, i), n(wA.WILD_CARD, i, a), () => {
|
|
25255
|
+
r(wA.WILD_CARD, i);
|
|
25256
25256
|
}), [t, e]);
|
|
25257
25257
|
}
|
|
25258
25258
|
//#endregion
|
|
25259
25259
|
//#region src/modules/run/components/shared/parts_table/runPartsRegularFlow.tsx
|
|
25260
|
-
var
|
|
25260
|
+
var zA = !1, BA = ({ run: e, runStep: t }) => {
|
|
25261
25261
|
let n = A(), i = O({ queries: [{
|
|
25262
25262
|
queryKey: [
|
|
25263
25263
|
"runParts",
|
|
@@ -25271,8 +25271,8 @@ var BA = !1, VA = ({ run: e, runStep: t }) => {
|
|
|
25271
25271
|
}, {
|
|
25272
25272
|
queryKey: ["runStepParts", t.id],
|
|
25273
25273
|
queryFn: () => _t({ step: t })
|
|
25274
|
-
}] }), [a, o] = i, s = i.some((e) => e.isLoading), c = i.some((e) => e.isError), l = h(() => a.data?.items ?? [], [a.data]), u = h(() => o.data?.items ?? [], [o.data]), { selectedParts: f, setPartAsSelected: p, setPartsSelection: m, selectAllParts: g, selectNoneParts: _, hasSelectedParts: v } =
|
|
25275
|
-
|
|
25274
|
+
}] }), [a, o] = i, s = i.some((e) => e.isLoading), c = i.some((e) => e.isError), l = h(() => a.data?.items ?? [], [a.data]), u = h(() => o.data?.items ?? [], [o.data]), { selectedParts: f, setPartAsSelected: p, setPartsSelection: m, selectAllParts: g, selectNoneParts: _, hasSelectedParts: v } = EA({ parts: l });
|
|
25275
|
+
RA({
|
|
25276
25276
|
runStepParts: u,
|
|
25277
25277
|
runParts: l
|
|
25278
25278
|
}), d(() => {
|
|
@@ -25284,7 +25284,7 @@ var BA = !1, VA = ({ run: e, runStep: t }) => {
|
|
|
25284
25284
|
t.id,
|
|
25285
25285
|
f
|
|
25286
25286
|
]);
|
|
25287
|
-
let { performActionToSelectedParts: y, getAvailableActionsForSelection: C } =
|
|
25287
|
+
let { performActionToSelectedParts: y, getAvailableActionsForSelection: C } = jA({
|
|
25288
25288
|
runStep: t,
|
|
25289
25289
|
parts: l,
|
|
25290
25290
|
selectedParts: f,
|
|
@@ -25322,7 +25322,7 @@ var BA = !1, VA = ({ run: e, runStep: t }) => {
|
|
|
25322
25322
|
f,
|
|
25323
25323
|
l,
|
|
25324
25324
|
u
|
|
25325
|
-
]), E = h(() => /* @__PURE__ */ x(
|
|
25325
|
+
]), E = h(() => /* @__PURE__ */ x(PA, {
|
|
25326
25326
|
availableActions: w,
|
|
25327
25327
|
onActionSelected: y
|
|
25328
25328
|
}), [w, y]);
|
|
@@ -25339,7 +25339,7 @@ var BA = !1, VA = ({ run: e, runStep: t }) => {
|
|
|
25339
25339
|
variant: "warning",
|
|
25340
25340
|
children: "No step parts found for this run step."
|
|
25341
25341
|
});
|
|
25342
|
-
let D =
|
|
25342
|
+
let D = yA(t), k = () => /* @__PURE__ */ x(b, { children: D && /* @__PURE__ */ x(NA, {
|
|
25343
25343
|
onSelectAll: g,
|
|
25344
25344
|
onSelectNone: _,
|
|
25345
25345
|
hasSelectedParts: v,
|
|
@@ -25368,14 +25368,14 @@ var BA = !1, VA = ({ run: e, runStep: t }) => {
|
|
|
25368
25368
|
/* @__PURE__ */ x("th", { children: "Comment" })
|
|
25369
25369
|
] }) }), /* @__PURE__ */ x("tbody", { children: l.map((n, r) => {
|
|
25370
25370
|
let i = f.get(n.id) ?? !1;
|
|
25371
|
-
return /* @__PURE__ */ x(
|
|
25371
|
+
return /* @__PURE__ */ x(xA, {
|
|
25372
25372
|
runStep: t,
|
|
25373
25373
|
runPart: n,
|
|
25374
25374
|
runStepParts: u,
|
|
25375
25375
|
canInit: e.run_type === Kt.PRODUCTION,
|
|
25376
25376
|
partIsSelected: i,
|
|
25377
25377
|
setPartAsSelected: D ? p : void 0,
|
|
25378
|
-
dropdown:
|
|
25378
|
+
dropdown: zA
|
|
25379
25379
|
}, `key-${r}-${n.id}`);
|
|
25380
25380
|
}) })]
|
|
25381
25381
|
})] }),
|
|
@@ -25384,15 +25384,15 @@ var BA = !1, VA = ({ run: e, runStep: t }) => {
|
|
|
25384
25384
|
};
|
|
25385
25385
|
//#endregion
|
|
25386
25386
|
//#region src/modules/run/components/run/steps/element/stepDetails.tsx
|
|
25387
|
-
function
|
|
25388
|
-
let { run: r } = u(
|
|
25387
|
+
function VA({ run: e, step: t, refetchFn: n = () => null }) {
|
|
25388
|
+
let { run: r } = u(Bk), { showOnlyEmphasizedParameters: i } = u(Jk), a = e ?? r;
|
|
25389
25389
|
return a ? /* @__PURE__ */ x(vi, {
|
|
25390
25390
|
className: "p-4 my-3",
|
|
25391
25391
|
children: /* @__PURE__ */ x(vi.Body, { children: /* @__PURE__ */ S(du, { children: [/* @__PURE__ */ S(Di, {
|
|
25392
25392
|
md: "6",
|
|
25393
25393
|
children: [
|
|
25394
25394
|
/* @__PURE__ */ x("h4", { children: "Experimental split" }),
|
|
25395
|
-
/* @__PURE__ */ x(
|
|
25395
|
+
/* @__PURE__ */ x(BA, {
|
|
25396
25396
|
run: a,
|
|
25397
25397
|
runStep: t
|
|
25398
25398
|
}),
|
|
@@ -25402,7 +25402,7 @@ function HA({ run: e, step: t, refetchFn: n = () => null }) {
|
|
|
25402
25402
|
md: "6",
|
|
25403
25403
|
children: [
|
|
25404
25404
|
/* @__PURE__ */ x("h4", { children: "Parameters" }),
|
|
25405
|
-
/* @__PURE__ */ x(
|
|
25405
|
+
/* @__PURE__ */ x(Xk, {
|
|
25406
25406
|
runStep: t,
|
|
25407
25407
|
showOnlyEmphasizedParameters: i,
|
|
25408
25408
|
refetchFn: () => {
|
|
@@ -25410,7 +25410,7 @@ function HA({ run: e, step: t, refetchFn: n = () => null }) {
|
|
|
25410
25410
|
}
|
|
25411
25411
|
}),
|
|
25412
25412
|
/* @__PURE__ */ x("h4", { children: "Files" }),
|
|
25413
|
-
/* @__PURE__ */ x(
|
|
25413
|
+
/* @__PURE__ */ x(Qk, {
|
|
25414
25414
|
runStep: t,
|
|
25415
25415
|
refetchFn: () => {
|
|
25416
25416
|
n(["runSteps"]);
|
|
@@ -25422,22 +25422,22 @@ function HA({ run: e, step: t, refetchFn: n = () => null }) {
|
|
|
25422
25422
|
}
|
|
25423
25423
|
//#endregion
|
|
25424
25424
|
//#region src/modules/run/components/shared/parts/runPartSlotDistribution.ts
|
|
25425
|
-
var
|
|
25425
|
+
var HA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 : e - t, UA = (e, t) => HA(e.left, t.left) || e.id - t.id, WA = (e) => e.parent?.id ?? e.root_id ?? e.id, GA = (e, t) => {
|
|
25426
25426
|
let n = e[0], r = t[0];
|
|
25427
|
-
return
|
|
25428
|
-
},
|
|
25427
|
+
return HA(n?.parent?.left, r?.parent?.left) || HA(n?.parent?.id, r?.parent?.id) || UA(n, r);
|
|
25428
|
+
}, KA = ({ parts: e, slotCount: t, getSlotIndex: n }) => {
|
|
25429
25429
|
let r = Array.from({ length: t }, () => []), i = /* @__PURE__ */ new Map();
|
|
25430
25430
|
e.forEach((e) => {
|
|
25431
|
-
let t =
|
|
25431
|
+
let t = WA(e), n = i.get(t) ?? [];
|
|
25432
25432
|
n.push(e), i.set(t, n);
|
|
25433
25433
|
});
|
|
25434
25434
|
for (let e of i.values()) {
|
|
25435
|
-
let i = [...e].sort(
|
|
25435
|
+
let i = [...e].sort(UA), a = n(i[0]), o = a !== null && a >= 0 && a < t ? a : r.reduce((e, t, n) => e === -1 || t.length < r[e].length ? n : e, -1);
|
|
25436
25436
|
o !== -1 && r[o].push(i);
|
|
25437
25437
|
}
|
|
25438
|
-
return r.map((e) => e.sort(
|
|
25439
|
-
},
|
|
25440
|
-
let i = /* @__PURE__ */ new Map(), a = [...new Set(e.map((e) => e.part_level))].sort((e, t) => e - t), o = [...e].sort((e, t) => e.root_id && t.root_id && e.root_id !== t.root_id ? e.root_id - t.root_id :
|
|
25438
|
+
return r.map((e) => e.sort(GA).flat());
|
|
25439
|
+
}, qA = ({ parts: e, getOverrideSlotIndex: t, getDirectSlotIndex: n, slotCount: r }) => {
|
|
25440
|
+
let i = /* @__PURE__ */ new Map(), a = [...new Set(e.map((e) => e.part_level))].sort((e, t) => e - t), o = [...e].sort((e, t) => e.root_id && t.root_id && e.root_id !== t.root_id ? e.root_id - t.root_id : HA(e.left, t.left) || e.id - t.id);
|
|
25441
25441
|
return a.forEach((e) => {
|
|
25442
25442
|
let a = o.filter((t) => t.part_level === e), s = /* @__PURE__ */ new Set(), c = [];
|
|
25443
25443
|
a.forEach((e) => {
|
|
@@ -25463,7 +25463,7 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25463
25463
|
r !== void 0 && t >= r || (i.set(e.id, t), s.add(t));
|
|
25464
25464
|
});
|
|
25465
25465
|
}), i;
|
|
25466
|
-
},
|
|
25466
|
+
}, JA = ({ runPart: e, stepPart: n, statusClass: r, withTrayCell: i = !1, allowCreate: a = !1, isSelected: o = !1, runStep: s }) => {
|
|
25467
25467
|
let c = A(), l = n?.id !== void 0, [u, f] = v(!1), p = _(null), m = _(null), h = _(null), g = () => {
|
|
25468
25468
|
h.current && (clearTimeout(h.current), h.current = null), !u && (m.current && clearTimeout(m.current), m.current = setTimeout(() => {
|
|
25469
25469
|
f(!0);
|
|
@@ -25480,14 +25480,14 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25480
25480
|
run_step_id: s.id
|
|
25481
25481
|
}).then((e) => {
|
|
25482
25482
|
let t = { ...e.data };
|
|
25483
|
-
|
|
25483
|
+
vA(c, s, t);
|
|
25484
25484
|
});
|
|
25485
25485
|
}, w = async ({ runStepPart: e, runStepPartAction: t }) => {
|
|
25486
25486
|
let n = await yt({
|
|
25487
25487
|
runStepPart: e,
|
|
25488
25488
|
runStepPartAction: t
|
|
25489
25489
|
});
|
|
25490
|
-
s &&
|
|
25490
|
+
s && _A(c, s, {
|
|
25491
25491
|
runStepPart: e,
|
|
25492
25492
|
latestAction: n
|
|
25493
25493
|
});
|
|
@@ -25534,47 +25534,47 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25534
25534
|
whiteSpace: "nowrap",
|
|
25535
25535
|
...o.style
|
|
25536
25536
|
},
|
|
25537
|
-
children: /* @__PURE__ */ x(
|
|
25537
|
+
children: /* @__PURE__ */ x(nA, {
|
|
25538
25538
|
runStepPart: n,
|
|
25539
25539
|
setRunStepPartAction: w
|
|
25540
25540
|
})
|
|
25541
25541
|
})
|
|
25542
25542
|
})] }) : T;
|
|
25543
|
-
},
|
|
25543
|
+
}, YA = (e, t) => t.get(e.id)?.status.class ?? "step-part-inactive", XA = ({ runPart: e, context: t }) => {
|
|
25544
25544
|
let { step: n, stepPartsById: r, allowCreate: i, selectedPartIds: a } = t;
|
|
25545
|
-
return /* @__PURE__ */ x(
|
|
25545
|
+
return /* @__PURE__ */ x(JA, {
|
|
25546
25546
|
runPart: e,
|
|
25547
|
-
statusClass:
|
|
25547
|
+
statusClass: YA(e, r),
|
|
25548
25548
|
allowCreate: i,
|
|
25549
25549
|
stepPart: r.get(e.id),
|
|
25550
25550
|
isSelected: a.includes(e.id),
|
|
25551
25551
|
runStep: n
|
|
25552
25552
|
});
|
|
25553
|
-
},
|
|
25553
|
+
}, ZA = ({ runParts: e, context: t }) => /* @__PURE__ */ x("div", {
|
|
25554
25554
|
className: `tray-grid__cell${e.length ? "" : " tray-grid__cell--empty"}${e.length > 1 ? " tray-grid__cell--multi" : ""}`,
|
|
25555
|
-
children: e.map((e) => /* @__PURE__ */ x(
|
|
25555
|
+
children: e.map((e) => /* @__PURE__ */ x(XA, {
|
|
25556
25556
|
runPart: e,
|
|
25557
25557
|
context: t
|
|
25558
25558
|
}, e.id))
|
|
25559
|
-
}),
|
|
25559
|
+
}), QA = ({ runPart: e, context: t }) => {
|
|
25560
25560
|
let { step: n, stepPartsById: r, allowCreate: i, selectedPartIds: a } = t;
|
|
25561
|
-
return /* @__PURE__ */ x(
|
|
25561
|
+
return /* @__PURE__ */ x(JA, {
|
|
25562
25562
|
runPart: e,
|
|
25563
|
-
statusClass: e ?
|
|
25563
|
+
statusClass: e ? YA(e, r) : void 0,
|
|
25564
25564
|
withTrayCell: !0,
|
|
25565
25565
|
allowCreate: i,
|
|
25566
25566
|
stepPart: e ? r.get(e.id) : void 0,
|
|
25567
25567
|
isSelected: e ? a.includes(e.id) : !1,
|
|
25568
25568
|
runStep: n
|
|
25569
25569
|
});
|
|
25570
|
-
},
|
|
25571
|
-
let i =
|
|
25570
|
+
}, $A = 12, ej = ({ leveledParts: e, allNonTrayParts: t, isSplitLevel: n, context: r }) => {
|
|
25571
|
+
let i = qA({
|
|
25572
25572
|
parts: t,
|
|
25573
25573
|
getDirectSlotIndex: (e) => e.left >= 1 ? e.left - 1 : null
|
|
25574
|
-
}), a = n ? e.reduce((e, t) => Math.max(e, (i.get(t.id) ?? -1) + 1), 0) : Math.max(e.length, e.reduce((e, t) => Math.max(e, t.left ?? 0), 0)), o = Math.max(1, Math.ceil(a /
|
|
25574
|
+
}), a = n ? e.reduce((e, t) => Math.max(e, (i.get(t.id) ?? -1) + 1), 0) : Math.max(e.length, e.reduce((e, t) => Math.max(e, t.left ?? 0), 0)), o = Math.max(1, Math.ceil(a / $A)), s = $A, c = {
|
|
25575
25575
|
"--tray-columns": s,
|
|
25576
25576
|
"--tray-rows": o
|
|
25577
|
-
}, l = n ?
|
|
25577
|
+
}, l = n ? KA({
|
|
25578
25578
|
parts: e,
|
|
25579
25579
|
slotCount: o * s,
|
|
25580
25580
|
getSlotIndex: (e) => i.get(e.id) ?? null
|
|
@@ -25597,15 +25597,15 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25597
25597
|
className: "tray-grid",
|
|
25598
25598
|
"data-orientation": "ltr",
|
|
25599
25599
|
style: c,
|
|
25600
|
-
children: l.map((e, t) => n ? /* @__PURE__ */ x(
|
|
25600
|
+
children: l.map((e, t) => n ? /* @__PURE__ */ x(ZA, {
|
|
25601
25601
|
runParts: e,
|
|
25602
25602
|
context: r
|
|
25603
|
-
}, `slot-no-tray-${t}`) : /* @__PURE__ */ x(
|
|
25603
|
+
}, `slot-no-tray-${t}`) : /* @__PURE__ */ x(QA, {
|
|
25604
25604
|
runPart: e[0] ?? null,
|
|
25605
25605
|
context: r
|
|
25606
25606
|
}, `slot-no-tray-${t}`))
|
|
25607
25607
|
});
|
|
25608
|
-
},
|
|
25608
|
+
}, tj = ({ label: e, trayStepParts: t, runStep: n, children: r }) => {
|
|
25609
25609
|
let i = A(), a = _(null), o = _(null), [s, c] = v(!1), l = () => {
|
|
25610
25610
|
o.current && (clearTimeout(o.current), o.current = null), c(!0);
|
|
25611
25611
|
}, u = () => {
|
|
@@ -25624,7 +25624,7 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25624
25624
|
runStepPart: t,
|
|
25625
25625
|
runStepPartAction: e
|
|
25626
25626
|
})) });
|
|
25627
|
-
|
|
25627
|
+
_A(i, n, { latestActions: a });
|
|
25628
25628
|
};
|
|
25629
25629
|
return /* @__PURE__ */ S("div", {
|
|
25630
25630
|
ref: a,
|
|
@@ -25658,7 +25658,7 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25658
25658
|
whiteSpace: "nowrap",
|
|
25659
25659
|
...a.style
|
|
25660
25660
|
},
|
|
25661
|
-
children: /* @__PURE__ */ x(
|
|
25661
|
+
children: /* @__PURE__ */ x(PA, {
|
|
25662
25662
|
availableActions: d,
|
|
25663
25663
|
onActionSelected: f
|
|
25664
25664
|
})
|
|
@@ -25666,44 +25666,44 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25666
25666
|
})
|
|
25667
25667
|
]
|
|
25668
25668
|
});
|
|
25669
|
-
},
|
|
25670
|
-
let { step: o, stepPartsById: s } = a, c = e.tray_type, l = e.name ?? e.label ?? "", u =
|
|
25669
|
+
}, nj = (e, t, n) => !t || !n || t < 1 || n < 1 || t > e.rows || n > e.columns ? null : e.orientation === "ttb" ? (n - 1) * e.rows + (t - 1) : (t - 1) * e.columns + (n - 1), rj = (e, t) => e.map((e) => t.get(e.id)).filter((e) => e !== void 0), ij = (e) => e?.tray_id != null && !e?.failed ? 1 : e?.tray_id == null ? 3 : 2, aj = ({ tray: e, trayParts: t, trayAllParts: n, stepParts: r, isSplitLevel: i, context: a }) => {
|
|
25670
|
+
let { step: o, stepPartsById: s } = a, c = e.tray_type, l = e.name ?? e.label ?? "", u = rj(t, s), d = /* @__PURE__ */ new Map();
|
|
25671
25671
|
if (r.forEach((e) => {
|
|
25672
25672
|
e.step_id === o.id && d.set(e.part_id, e);
|
|
25673
|
-
}), !c?.rows || !c?.columns) return /* @__PURE__ */ x(
|
|
25673
|
+
}), !c?.rows || !c?.columns) return /* @__PURE__ */ x(tj, {
|
|
25674
25674
|
label: l,
|
|
25675
25675
|
trayStepParts: u,
|
|
25676
25676
|
runStep: o,
|
|
25677
25677
|
children: /* @__PURE__ */ x("div", {
|
|
25678
25678
|
className: "d-flex flex-wrap gap-2",
|
|
25679
|
-
children: t.map((e) => /* @__PURE__ */ x(
|
|
25679
|
+
children: t.map((e) => /* @__PURE__ */ x(XA, {
|
|
25680
25680
|
runPart: e,
|
|
25681
25681
|
context: a
|
|
25682
25682
|
}, e.id))
|
|
25683
25683
|
})
|
|
25684
25684
|
});
|
|
25685
|
-
let f = c.rows * c.columns, p = new Set((c.forbidden_slots ?? []).map((e) =>
|
|
25685
|
+
let f = c.rows * c.columns, p = new Set((c.forbidden_slots ?? []).map((e) => nj(c, e.y, e.x)).filter((e) => e !== null)), m = c.orientation === "ttb" ? "ttb" : "ltr", h = {
|
|
25686
25686
|
"--tray-columns": c.columns,
|
|
25687
25687
|
"--tray-rows": c.rows
|
|
25688
|
-
}, g =
|
|
25688
|
+
}, g = qA({
|
|
25689
25689
|
parts: n,
|
|
25690
25690
|
slotCount: f,
|
|
25691
25691
|
getOverrideSlotIndex: (e) => {
|
|
25692
25692
|
let t = d.get(e.id);
|
|
25693
|
-
return !t || t.tray_row == null && t.tray_column == null ? null :
|
|
25693
|
+
return !t || t.tray_row == null && t.tray_column == null ? null : nj(c, t.tray_row ?? e.tray_row, t.tray_column ?? e.tray_column);
|
|
25694
25694
|
},
|
|
25695
|
-
getDirectSlotIndex: (e) =>
|
|
25696
|
-
}), _ = i ?
|
|
25695
|
+
getDirectSlotIndex: (e) => nj(c, e.tray_row, e.tray_column)
|
|
25696
|
+
}), _ = i ? KA({
|
|
25697
25697
|
parts: t,
|
|
25698
25698
|
slotCount: f,
|
|
25699
25699
|
getSlotIndex: (e) => g.get(e.id) ?? null
|
|
25700
25700
|
}) : Array.from({ length: f }, () => []);
|
|
25701
25701
|
return i || t.forEach((e) => {
|
|
25702
|
-
let t = d.get(e.id), n =
|
|
25702
|
+
let t = d.get(e.id), n = nj(c, t?.tray_row ?? e.tray_row, t?.tray_column ?? e.tray_column);
|
|
25703
25703
|
if (n === null) return;
|
|
25704
|
-
let r =
|
|
25704
|
+
let r = ij(t), i = _[n][0], a = i ? ij(d.get(i.id)) : null;
|
|
25705
25705
|
a !== null && a < r || (_[n] = [e]);
|
|
25706
|
-
}), /* @__PURE__ */ x(
|
|
25706
|
+
}), /* @__PURE__ */ x(tj, {
|
|
25707
25707
|
label: l,
|
|
25708
25708
|
trayStepParts: u,
|
|
25709
25709
|
runStep: o,
|
|
@@ -25711,28 +25711,28 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25711
25711
|
className: "tray-grid",
|
|
25712
25712
|
"data-orientation": m,
|
|
25713
25713
|
style: h,
|
|
25714
|
-
children: _.map((t, n) => p.has(n) ? /* @__PURE__ */ x("div", { "aria-hidden": "true" }, `slot-${e.id}-${n}`) : i ? /* @__PURE__ */ x(
|
|
25714
|
+
children: _.map((t, n) => p.has(n) ? /* @__PURE__ */ x("div", { "aria-hidden": "true" }, `slot-${e.id}-${n}`) : i ? /* @__PURE__ */ x(ZA, {
|
|
25715
25715
|
runParts: t,
|
|
25716
25716
|
context: a
|
|
25717
|
-
}, `slot-${e.id}-${n}`) : /* @__PURE__ */ x(
|
|
25717
|
+
}, `slot-${e.id}-${n}`) : /* @__PURE__ */ x(QA, {
|
|
25718
25718
|
runPart: t[0] ?? null,
|
|
25719
25719
|
context: a
|
|
25720
25720
|
}, `slot-${e.id}-${n}`))
|
|
25721
25721
|
})
|
|
25722
25722
|
});
|
|
25723
|
-
},
|
|
25723
|
+
}, oj = (e, t) => !t || !t.tray_id ? e.tray?.id ?? 0 : t.tray_id, sj = (e, t) => {
|
|
25724
25724
|
let n = new Map(t.map((e) => [e.part_id, e]));
|
|
25725
25725
|
return e.reduce((e, t) => {
|
|
25726
25726
|
if (!t.tray) return e;
|
|
25727
|
-
let r =
|
|
25727
|
+
let r = oj(t, n.get(t.id)), i = e.get(r) ?? [];
|
|
25728
25728
|
return i.push(t), e.set(r, i), e;
|
|
25729
25729
|
}, /* @__PURE__ */ new Map());
|
|
25730
|
-
},
|
|
25730
|
+
}, cj = ({ step: e, parts: t, stepParts: n, run: r }) => {
|
|
25731
25731
|
let i = h(() => t.filter((t) => t.part_level === e.part_level).sort((e, t) => e.root_id && t.root_id && e.root_id !== t.root_id ? e.root_id - t.root_id : e.left - t.left), [t]), a = h(() => {
|
|
25732
25732
|
let t = /* @__PURE__ */ new Map();
|
|
25733
25733
|
for (let r of n) r.step_id === e.id && t.set(r.part_id, r);
|
|
25734
25734
|
return t;
|
|
25735
|
-
}, [n, e]), o = h(() => [...r.run_trays ?? []].sort((e, t) => e.sequence - t.sequence), [r]), s = h(() =>
|
|
25735
|
+
}, [n, e]), o = h(() => [...r.run_trays ?? []].sort((e, t) => e.sequence - t.sequence), [r]), s = h(() => sj(i, n), [i, n]), c = h(() => t.filter((e) => !e.tray), [t]), l = h(() => sj(t, n), [t, n]), u = r.run_type === Kt.PRODUCTION, d = e.part_level > 0, { data: f = [] } = k({
|
|
25736
25736
|
queryKey: ["runPartSelection", e.id],
|
|
25737
25737
|
queryFn: async () => [],
|
|
25738
25738
|
initialData: [],
|
|
@@ -25743,14 +25743,14 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25743
25743
|
allowCreate: u,
|
|
25744
25744
|
selectedPartIds: f
|
|
25745
25745
|
};
|
|
25746
|
-
return o.length === 0 || i[0]?.part_level > 0 ? /* @__PURE__ */ x(
|
|
25746
|
+
return o.length === 0 || i[0]?.part_level > 0 ? /* @__PURE__ */ x(ej, {
|
|
25747
25747
|
leveledParts: i,
|
|
25748
25748
|
allNonTrayParts: c,
|
|
25749
25749
|
isSplitLevel: d,
|
|
25750
25750
|
context: p
|
|
25751
25751
|
}) : /* @__PURE__ */ x("div", {
|
|
25752
25752
|
className: "tray-grid-group",
|
|
25753
|
-
children: o.map((e) => /* @__PURE__ */ x(
|
|
25753
|
+
children: o.map((e) => /* @__PURE__ */ x(aj, {
|
|
25754
25754
|
tray: e,
|
|
25755
25755
|
trayParts: s.get(e.id) ?? [],
|
|
25756
25756
|
trayAllParts: l.get(e.id) ?? [],
|
|
@@ -25762,7 +25762,7 @@ var UA = (e, t) => e == null && t == null ? 0 : e == null ? 1 : t == null ? -1 :
|
|
|
25762
25762
|
};
|
|
25763
25763
|
//#endregion
|
|
25764
25764
|
//#region src/modules/run/components/run/steps/element/stepInList.tsx
|
|
25765
|
-
function
|
|
25765
|
+
function lj({ run: e, step: t, parts: n, monitoredBy: r, refetchFn: i }) {
|
|
25766
25766
|
let { environment: a } = L(), [o, s] = v(!1), c = () => {
|
|
25767
25767
|
s(!o);
|
|
25768
25768
|
}, [l, u] = v(t.process_module.module);
|
|
@@ -25797,7 +25797,7 @@ function uj({ run: e, step: t, parts: n, monitoredBy: r, refetchFn: i }) {
|
|
|
25797
25797
|
height: "1.5rem",
|
|
25798
25798
|
borderRadius: "3px"
|
|
25799
25799
|
} }, t))
|
|
25800
|
-
}) : /* @__PURE__ */ x(
|
|
25800
|
+
}) : /* @__PURE__ */ x(cj, {
|
|
25801
25801
|
step: t,
|
|
25802
25802
|
parts: n,
|
|
25803
25803
|
stepParts: p,
|
|
@@ -25845,7 +25845,7 @@ function uj({ run: e, step: t, parts: n, monitoredBy: r, refetchFn: i }) {
|
|
|
25845
25845
|
})] })
|
|
25846
25846
|
] }), o && /* @__PURE__ */ x("tr", { children: /* @__PURE__ */ x("td", {
|
|
25847
25847
|
colSpan: n.length + 6,
|
|
25848
|
-
children: /* @__PURE__ */ x(
|
|
25848
|
+
children: /* @__PURE__ */ x(VA, {
|
|
25849
25849
|
step: t,
|
|
25850
25850
|
refetchFn: i
|
|
25851
25851
|
})
|
|
@@ -25853,7 +25853,7 @@ function uj({ run: e, step: t, parts: n, monitoredBy: r, refetchFn: i }) {
|
|
|
25853
25853
|
}
|
|
25854
25854
|
//#endregion
|
|
25855
25855
|
//#region src/modules/run/components/shared/requirement/fillValueModal.tsx
|
|
25856
|
-
var
|
|
25856
|
+
var uj = ({ requirement: e, result: t, show: n, setShow: r, refetchFn: i, part: a, stepPart: o }) => {
|
|
25857
25857
|
let [s, c] = v({}), [l, u] = v(!1), [f, p] = v(null), [m, g] = v(!1), _ = h(() => new Map(t?.values.map((e) => [e.logging_parameter.id, e]) ?? []), [t?.values]);
|
|
25858
25858
|
d(() => {
|
|
25859
25859
|
if (Object.keys(s).length > 0) return;
|
|
@@ -25978,7 +25978,7 @@ var dj = ({ requirement: e, result: t, show: n, setShow: r, refetchFn: i, part:
|
|
|
25978
25978
|
})] })]
|
|
25979
25979
|
})]
|
|
25980
25980
|
});
|
|
25981
|
-
},
|
|
25981
|
+
}, dj = o({
|
|
25982
25982
|
runStep: {},
|
|
25983
25983
|
setRunStep: (e) => {},
|
|
25984
25984
|
reloadRunStep: () => {},
|
|
@@ -25988,8 +25988,8 @@ var dj = ({ requirement: e, result: t, show: n, setShow: r, refetchFn: i, part:
|
|
|
25988
25988
|
});
|
|
25989
25989
|
//#endregion
|
|
25990
25990
|
//#region src/modules/run/components/shared/requirement/requirementValuesWithPartTable.tsx
|
|
25991
|
-
function
|
|
25992
|
-
let { run: s } = u(
|
|
25991
|
+
function fj({ requirement: e, step: t, stepParts: n, parts: r, measurementResults: i, refetchFn: a, editOnly: o = !1 }) {
|
|
25992
|
+
let { run: s } = u(dj), [c, l] = v(r ?? []), [f, p] = v(n ?? []), [m, h] = v(i ?? []), g = A(), _ = O({ queries: [
|
|
25993
25993
|
{
|
|
25994
25994
|
queryKey: ["runParts", `${s?.id ?? "unknown"}`],
|
|
25995
25995
|
queryFn: async () => await ct({ run: s }),
|
|
@@ -26134,7 +26134,7 @@ function pj({ requirement: e, step: t, stepParts: n, parts: r, measurementResult
|
|
|
26134
26134
|
}) })]
|
|
26135
26135
|
}), !o && j.map((t) => {
|
|
26136
26136
|
let n = m.find((e) => e.values.some((e) => e.step_part_id === t.id));
|
|
26137
|
-
return /* @__PURE__ */ x(
|
|
26137
|
+
return /* @__PURE__ */ x(uj, {
|
|
26138
26138
|
requirement: e,
|
|
26139
26139
|
...n ? { result: n } : {
|
|
26140
26140
|
part: k.find((e) => e.id === t.part_id),
|
|
@@ -26154,7 +26154,7 @@ function pj({ requirement: e, step: t, stepParts: n, parts: r, measurementResult
|
|
|
26154
26154
|
}
|
|
26155
26155
|
//#endregion
|
|
26156
26156
|
//#region src/modules/run/components/shared/requirement/requirementValuesByStep.tsx
|
|
26157
|
-
function
|
|
26157
|
+
function pj({ requirement: e, measurementResults: t, refetchFn: n, editOnly: r = !1 }) {
|
|
26158
26158
|
let [i, a] = v(t ?? []), o = A(), s = O({ queries: [{
|
|
26159
26159
|
queryKey: [
|
|
26160
26160
|
"requirement",
|
|
@@ -26223,7 +26223,7 @@ function mj({ requirement: e, measurementResults: t, refetchFn: n, editOnly: r =
|
|
|
26223
26223
|
/* @__PURE__ */ x("td", { children: e.logging_parameter.unit?.abbr ?? "" })
|
|
26224
26224
|
] }, `value:${e.id}`)) })]
|
|
26225
26225
|
}),
|
|
26226
|
-
/* @__PURE__ */ x(
|
|
26226
|
+
/* @__PURE__ */ x(uj, {
|
|
26227
26227
|
requirement: e,
|
|
26228
26228
|
result: t,
|
|
26229
26229
|
show: u === t.id,
|
|
@@ -26242,7 +26242,7 @@ function mj({ requirement: e, measurementResults: t, refetchFn: n, editOnly: r =
|
|
|
26242
26242
|
children: [/* @__PURE__ */ x("i", { className: "fa fa-plus" }), " Add results"]
|
|
26243
26243
|
})
|
|
26244
26244
|
}),
|
|
26245
|
-
/* @__PURE__ */ x(
|
|
26245
|
+
/* @__PURE__ */ x(uj, {
|
|
26246
26246
|
requirement: e,
|
|
26247
26247
|
show: p,
|
|
26248
26248
|
setShow: (e) => {
|
|
@@ -26255,7 +26255,7 @@ function mj({ requirement: e, measurementResults: t, refetchFn: n, editOnly: r =
|
|
|
26255
26255
|
}
|
|
26256
26256
|
//#endregion
|
|
26257
26257
|
//#region src/modules/run/components/run/steps/element/requirementDetails.tsx
|
|
26258
|
-
function
|
|
26258
|
+
function mj({ requirement: e, step: t, stepParts: n, parts: r, measurementResults: i, refetchFn: a }) {
|
|
26259
26259
|
let { environment: o } = L();
|
|
26260
26260
|
return /* @__PURE__ */ x(vi, {
|
|
26261
26261
|
className: "p-4 my-3",
|
|
@@ -26263,7 +26263,7 @@ function hj({ requirement: e, step: t, stepParts: n, parts: r, measurementResult
|
|
|
26263
26263
|
md: "7",
|
|
26264
26264
|
children: [
|
|
26265
26265
|
/* @__PURE__ */ x("h4", { children: "Measurements by part" }),
|
|
26266
|
-
/* @__PURE__ */ x(
|
|
26266
|
+
/* @__PURE__ */ x(fj, {
|
|
26267
26267
|
requirement: e,
|
|
26268
26268
|
step: t,
|
|
26269
26269
|
stepParts: n,
|
|
@@ -26272,7 +26272,7 @@ function hj({ requirement: e, step: t, stepParts: n, parts: r, measurementResult
|
|
|
26272
26272
|
refetchFn: a
|
|
26273
26273
|
}),
|
|
26274
26274
|
/* @__PURE__ */ x("h4", { children: "Measurements for whole step" }),
|
|
26275
|
-
/* @__PURE__ */ x(
|
|
26275
|
+
/* @__PURE__ */ x(pj, {
|
|
26276
26276
|
requirement: e,
|
|
26277
26277
|
measurementResults: i,
|
|
26278
26278
|
refetchFn: a
|
|
@@ -26310,7 +26310,7 @@ function hj({ requirement: e, step: t, stepParts: n, parts: r, measurementResult
|
|
|
26310
26310
|
] }, e.id)) })]
|
|
26311
26311
|
}),
|
|
26312
26312
|
/* @__PURE__ */ x("h4", { children: "Files" }),
|
|
26313
|
-
/* @__PURE__ */ x(
|
|
26313
|
+
/* @__PURE__ */ x(Qk, {
|
|
26314
26314
|
runStep: t,
|
|
26315
26315
|
refetchFn: () => {
|
|
26316
26316
|
a(["requirements"]);
|
|
@@ -26322,7 +26322,7 @@ function hj({ requirement: e, step: t, stepParts: n, parts: r, measurementResult
|
|
|
26322
26322
|
}
|
|
26323
26323
|
//#endregion
|
|
26324
26324
|
//#region src/modules/run/components/shared/requirement/measurementResultsBadge.tsx
|
|
26325
|
-
var
|
|
26325
|
+
var hj = ({ requirement: e, step: t, measurementResults: n, parts: r, stepParts: i }) => {
|
|
26326
26326
|
let a = r.filter((e) => e.part_level === t.part_level).sort((e, t) => e.root_id && t.root_id && e.root_id !== t.root_id ? e.root_id - t.root_id : e.left - t.left), o = a.reduce((e, t) => {
|
|
26327
26327
|
let n = t.root_id ?? t.id;
|
|
26328
26328
|
return e[n] || (e[n] = []), e[n].push(t), e;
|
|
@@ -26367,7 +26367,7 @@ var gj = ({ requirement: e, step: t, measurementResults: n, parts: r, stepParts:
|
|
|
26367
26367
|
};
|
|
26368
26368
|
//#endregion
|
|
26369
26369
|
//#region src/modules/run/components/run/steps/element/requirementStepInList.tsx
|
|
26370
|
-
function
|
|
26370
|
+
function gj({ requirement: e, step: t, parts: n, refetchFn: r }) {
|
|
26371
26371
|
let { environment: i } = L(), [a, o] = v(!1), [s, c] = v(t.process_module.module);
|
|
26372
26372
|
d(() => {
|
|
26373
26373
|
c(t.process_module.module);
|
|
@@ -26423,7 +26423,7 @@ function _j({ requirement: e, step: t, parts: n, refetchFn: r }) {
|
|
|
26423
26423
|
height: "1.5rem",
|
|
26424
26424
|
borderRadius: "3px"
|
|
26425
26425
|
} }, t))
|
|
26426
|
-
}) : /* @__PURE__ */ x(
|
|
26426
|
+
}) : /* @__PURE__ */ x(hj, {
|
|
26427
26427
|
requirement: e,
|
|
26428
26428
|
step: t,
|
|
26429
26429
|
measurementResults: C,
|
|
@@ -26469,7 +26469,7 @@ function _j({ requirement: e, step: t, parts: n, refetchFn: r }) {
|
|
|
26469
26469
|
]
|
|
26470
26470
|
}), a && /* @__PURE__ */ x("tr", { children: /* @__PURE__ */ x("td", {
|
|
26471
26471
|
colSpan: n.length + 5,
|
|
26472
|
-
children: _ ? "Loading..." : /* @__PURE__ */ x(
|
|
26472
|
+
children: _ ? "Loading..." : /* @__PURE__ */ x(mj, {
|
|
26473
26473
|
requirement: e,
|
|
26474
26474
|
step: t,
|
|
26475
26475
|
stepParts: y,
|
|
@@ -26481,7 +26481,7 @@ function _j({ requirement: e, step: t, parts: n, refetchFn: r }) {
|
|
|
26481
26481
|
}
|
|
26482
26482
|
//#endregion
|
|
26483
26483
|
//#region src/modules/run/components/run/steps/runStepsElement.tsx
|
|
26484
|
-
var
|
|
26484
|
+
var _j = (e) => /* @__PURE__ */ x("tr", {
|
|
26485
26485
|
style: { pointerEvents: "none" },
|
|
26486
26486
|
children: /* @__PURE__ */ x("td", {
|
|
26487
26487
|
colSpan: 5,
|
|
@@ -26490,8 +26490,8 @@ var vj = (e) => /* @__PURE__ */ x("tr", {
|
|
|
26490
26490
|
children: /* @__PURE__ */ x("span", { children: e.step_group?.label })
|
|
26491
26491
|
})
|
|
26492
26492
|
});
|
|
26493
|
-
function
|
|
26494
|
-
let { run: e } = u(
|
|
26493
|
+
function vj() {
|
|
26494
|
+
let { run: e } = u(Bk), { showOnlyEmphasizedParameters: n, setShowOnlyEmphasizedParameters: r } = u(Jk), [i, a] = v(1), [o] = v(25), [s, c] = v(/* @__PURE__ */ new Map()), l = A(), f = O({ queries: [
|
|
26495
26495
|
{
|
|
26496
26496
|
queryKey: [
|
|
26497
26497
|
"runSteps",
|
|
@@ -26675,12 +26675,12 @@ function yj() {
|
|
|
26675
26675
|
/* @__PURE__ */ x("th", { children: "Equipment" })
|
|
26676
26676
|
] }) }), /* @__PURE__ */ x("tbody", { children: w.map((n) => {
|
|
26677
26677
|
let r = `step-${n.id}`;
|
|
26678
|
-
return /* @__PURE__ */ S(t.Fragment, { children: [n.has_label && N(n), (!n.has_label || s.get(n.label?.id ?? -1)) && /* @__PURE__ */ S(b, { children: [n.has_step_group && j.includes(n) &&
|
|
26678
|
+
return /* @__PURE__ */ S(t.Fragment, { children: [n.has_label && N(n), (!n.has_label || s.get(n.label?.id ?? -1)) && /* @__PURE__ */ S(b, { children: [n.has_step_group && j.includes(n) && _j(n), n.has_requirement ? /* @__PURE__ */ x(gj, {
|
|
26679
26679
|
requirement: D.find((e) => e.step.id === n.id),
|
|
26680
26680
|
step: n,
|
|
26681
26681
|
parts: E,
|
|
26682
26682
|
refetchFn: p
|
|
26683
|
-
}) : /* @__PURE__ */ x(
|
|
26683
|
+
}) : /* @__PURE__ */ x(lj, {
|
|
26684
26684
|
run: e,
|
|
26685
26685
|
step: n,
|
|
26686
26686
|
parts: E,
|
|
@@ -26689,7 +26689,7 @@ function yj() {
|
|
|
26689
26689
|
})] })] }, r);
|
|
26690
26690
|
}) })]
|
|
26691
26691
|
}),
|
|
26692
|
-
/* @__PURE__ */ x(
|
|
26692
|
+
/* @__PURE__ */ x(Tk, {
|
|
26693
26693
|
data: m.data,
|
|
26694
26694
|
setPage: a,
|
|
26695
26695
|
isPlaceholderData: m.isPlaceholderData
|
|
@@ -26698,17 +26698,17 @@ function yj() {
|
|
|
26698
26698
|
}
|
|
26699
26699
|
//#endregion
|
|
26700
26700
|
//#region src/modules/run/hooks/useParentRunSelection.ts
|
|
26701
|
-
var
|
|
26701
|
+
var yj = [], bj = /* @__PURE__ */ new Set(), xj = (e, t, n) => {
|
|
26702
26702
|
let r = e[t] ?? [];
|
|
26703
26703
|
if (r.length === n.length && r.every((e, t) => e === n[t]) || n.length === 0 && !(t in e)) return e;
|
|
26704
26704
|
let i = { ...e };
|
|
26705
26705
|
return n.length > 0 ? i[t] = n : delete i[t], i;
|
|
26706
|
-
},
|
|
26706
|
+
}, Sj = (e, t) => {
|
|
26707
26707
|
if (!(t in e)) return e;
|
|
26708
26708
|
let n = { ...e };
|
|
26709
26709
|
return delete n[t], n;
|
|
26710
26710
|
};
|
|
26711
|
-
function
|
|
26711
|
+
function Cj() {
|
|
26712
26712
|
let [e, t] = v([]), [n, r] = v({}), [i, a] = v({}), [o, s] = v({}), c = h(() => {
|
|
26713
26713
|
let e = {};
|
|
26714
26714
|
for (let [t, r] of Object.entries(n)) e[Number(t)] = new Set(r);
|
|
@@ -26723,17 +26723,17 @@ function wj() {
|
|
|
26723
26723
|
t((t) => t.some((t) => t.id === e.id) ? t : [...t, e]);
|
|
26724
26724
|
}, []),
|
|
26725
26725
|
deselectRun: l((e) => {
|
|
26726
|
-
t((t) => t.filter((t) => t.id !== e)), r((t) =>
|
|
26726
|
+
t((t) => t.filter((t) => t.id !== e)), r((t) => xj(t, e, [])), a((t) => Sj(t, e)), s((t) => Sj(t, e));
|
|
26727
26727
|
}, []),
|
|
26728
|
-
getSelectedPartIds: l((e) => n[e] ??
|
|
26729
|
-
isPartSelected: l((e, t) => (c[e] ??
|
|
26728
|
+
getSelectedPartIds: l((e) => n[e] ?? yj, [n]),
|
|
26729
|
+
isPartSelected: l((e, t) => (c[e] ?? bj).has(t), [c]),
|
|
26730
26730
|
setRunPartIds: l((e, t) => {
|
|
26731
|
-
r((n) =>
|
|
26731
|
+
r((n) => xj(n, e, t));
|
|
26732
26732
|
}, []),
|
|
26733
26733
|
togglePart: l((e, t) => {
|
|
26734
26734
|
r((n) => {
|
|
26735
26735
|
let r = n[e] ?? [];
|
|
26736
|
-
return
|
|
26736
|
+
return xj(n, e, r.includes(t) ? r.filter((e) => e !== t) : [...r, t]);
|
|
26737
26737
|
});
|
|
26738
26738
|
}, []),
|
|
26739
26739
|
setPartsSelected: l((e, t, n) => {
|
|
@@ -26746,7 +26746,7 @@ function wj() {
|
|
|
26746
26746
|
let e = new Set(t);
|
|
26747
26747
|
a = i.filter((t) => !e.has(t));
|
|
26748
26748
|
}
|
|
26749
|
-
return
|
|
26749
|
+
return xj(r, e, a);
|
|
26750
26750
|
});
|
|
26751
26751
|
}, []),
|
|
26752
26752
|
getPartAmount: l((e, t) => i[e]?.[t] ?? 1, [i]),
|
|
@@ -26771,7 +26771,7 @@ function wj() {
|
|
|
26771
26771
|
}
|
|
26772
26772
|
//#endregion
|
|
26773
26773
|
//#region src/modules/run/utils/buildRunParentPayloads.ts
|
|
26774
|
-
function
|
|
26774
|
+
function wj(e, t) {
|
|
26775
26775
|
return t.selectedRuns.map((n) => {
|
|
26776
26776
|
let r = t.partIdsByRunId[n.id] ?? [], i = t.amountPerPartByRunId[n.id] ?? {}, a = r.length > 0 ? Object.fromEntries(r.map((e) => [e, i[e] ?? 1])) : null;
|
|
26777
26777
|
return {
|
|
@@ -26785,7 +26785,7 @@ function Tj(e, t) {
|
|
|
26785
26785
|
}
|
|
26786
26786
|
//#endregion
|
|
26787
26787
|
//#region src/modules/run/components/shared/parentRuns/partGrouping.ts
|
|
26788
|
-
var
|
|
26788
|
+
var Tj = (e, t) => e.root_id && t.root_id && e.root_id !== t.root_id ? e.root_id - t.root_id : e.left - t.left, Ej = (e) => {
|
|
26789
26789
|
let t = /* @__PURE__ */ new Map();
|
|
26790
26790
|
for (let n of e) {
|
|
26791
26791
|
let e = t.get(n.part_level) ?? [];
|
|
@@ -26793,13 +26793,13 @@ var Ej = (e, t) => e.root_id && t.root_id && e.root_id !== t.root_id ? e.root_id
|
|
|
26793
26793
|
}
|
|
26794
26794
|
return Array.from(t.entries()).toSorted(([e], [t]) => e - t).map(([e, t]) => ({
|
|
26795
26795
|
level: e,
|
|
26796
|
-
parts: t.toSorted(
|
|
26796
|
+
parts: t.toSorted(Tj)
|
|
26797
26797
|
}));
|
|
26798
|
-
},
|
|
26798
|
+
}, Dj = (e) => e.parsed_label || e.scanner_label || e.label || e.short_label;
|
|
26799
26799
|
//#endregion
|
|
26800
26800
|
//#region src/modules/run/components/shared/parentRuns/partLevelFieldset.tsx
|
|
26801
|
-
function
|
|
26802
|
-
let r = n.isPartSelected(e, t.id), i =
|
|
26801
|
+
function Oj({ runId: e, part: t, selection: n }) {
|
|
26802
|
+
let r = n.isPartSelected(e, t.id), i = Dj(t), a = `part-amount-${e}-${t.id}`, o = `part-selected-${e}-${t.id}`;
|
|
26803
26803
|
return /* @__PURE__ */ S("div", {
|
|
26804
26804
|
className: `list-group-item d-flex align-items-center gap-3 flex-wrap${r ? " border-primary border-top" : ""}`,
|
|
26805
26805
|
children: [
|
|
@@ -26839,7 +26839,7 @@ function kj({ runId: e, part: t, selection: n }) {
|
|
|
26839
26839
|
]
|
|
26840
26840
|
});
|
|
26841
26841
|
}
|
|
26842
|
-
function
|
|
26842
|
+
function kj({ runId: e, part: t, selection: n }) {
|
|
26843
26843
|
let r = n.isPartSelected(e, t.id);
|
|
26844
26844
|
return /* @__PURE__ */ x(ri, {
|
|
26845
26845
|
as: "button",
|
|
@@ -26850,10 +26850,10 @@ function Aj({ runId: e, part: t, selection: n }) {
|
|
|
26850
26850
|
title: t.label,
|
|
26851
26851
|
className: `border-0 fs-6 fw-normal px-3 py-2${r ? " step-part-selected" : ""}`,
|
|
26852
26852
|
style: { cursor: "pointer" },
|
|
26853
|
-
children:
|
|
26853
|
+
children: Dj(t)
|
|
26854
26854
|
});
|
|
26855
26855
|
}
|
|
26856
|
-
function
|
|
26856
|
+
function Aj({ runId: e, group: t, selection: n, experimentalEdit: r }) {
|
|
26857
26857
|
let i = t.parts.length > 0 && t.parts.every((t) => n.isPartSelected(e, t.id));
|
|
26858
26858
|
return /* @__PURE__ */ S("fieldset", {
|
|
26859
26859
|
className: "mb-4 border-0 p-0",
|
|
@@ -26879,14 +26879,14 @@ function jj({ runId: e, group: t, selection: n, experimentalEdit: r }) {
|
|
|
26879
26879
|
]
|
|
26880
26880
|
}), r ? /* @__PURE__ */ x("div", {
|
|
26881
26881
|
className: "list-group",
|
|
26882
|
-
children: t.parts.map((t) => /* @__PURE__ */ x(
|
|
26882
|
+
children: t.parts.map((t) => /* @__PURE__ */ x(Oj, {
|
|
26883
26883
|
runId: e,
|
|
26884
26884
|
part: t,
|
|
26885
26885
|
selection: n
|
|
26886
26886
|
}, t.id))
|
|
26887
26887
|
}) : /* @__PURE__ */ x("div", {
|
|
26888
26888
|
className: "d-flex flex-wrap gap-2",
|
|
26889
|
-
children: t.parts.map((t) => /* @__PURE__ */ x(
|
|
26889
|
+
children: t.parts.map((t) => /* @__PURE__ */ x(kj, {
|
|
26890
26890
|
runId: e,
|
|
26891
26891
|
part: t,
|
|
26892
26892
|
selection: n
|
|
@@ -26896,7 +26896,7 @@ function jj({ runId: e, group: t, selection: n, experimentalEdit: r }) {
|
|
|
26896
26896
|
}
|
|
26897
26897
|
//#endregion
|
|
26898
26898
|
//#region src/modules/run/components/shared/parentRuns/runPartPicker.tsx
|
|
26899
|
-
function
|
|
26899
|
+
function jj({ run: e, selection: t, partGroups: n, isLoadingParts: r, experimentalEdit: i, onToggleExperimentalEdit: a }) {
|
|
26900
26900
|
let o = t.getSelectedPartIds(e.id);
|
|
26901
26901
|
return /* @__PURE__ */ S("div", { children: [
|
|
26902
26902
|
/* @__PURE__ */ S("div", {
|
|
@@ -26962,7 +26962,7 @@ function Mj({ run: e, selection: t, partGroups: n, isLoadingParts: r, experiment
|
|
|
26962
26962
|
className: "text-secondary mb-0",
|
|
26963
26963
|
children: "This run has no parts to select."
|
|
26964
26964
|
}),
|
|
26965
|
-
!r && n.map((n) => /* @__PURE__ */ x(
|
|
26965
|
+
!r && n.map((n) => /* @__PURE__ */ x(Aj, {
|
|
26966
26966
|
runId: e.id,
|
|
26967
26967
|
group: n,
|
|
26968
26968
|
selection: t,
|
|
@@ -26972,7 +26972,7 @@ function Mj({ run: e, selection: t, partGroups: n, isLoadingParts: r, experiment
|
|
|
26972
26972
|
}
|
|
26973
26973
|
//#endregion
|
|
26974
26974
|
//#region src/modules/run/components/shared/parentRuns/selectedRunList.tsx
|
|
26975
|
-
function
|
|
26975
|
+
function Mj({ selectedRuns: e, onDeselect: t }) {
|
|
26976
26976
|
return /* @__PURE__ */ S("div", {
|
|
26977
26977
|
className: "mb-4",
|
|
26978
26978
|
children: [
|
|
@@ -27022,12 +27022,12 @@ function Nj({ selectedRuns: e, onDeselect: t }) {
|
|
|
27022
27022
|
}
|
|
27023
27023
|
//#endregion
|
|
27024
27024
|
//#region src/modules/run/components/shared/parentRuns/parentRunSelect.tsx
|
|
27025
|
-
var
|
|
27025
|
+
var Nj = (e) => Ej(e.items ?? []), Pj = (e) => ({
|
|
27026
27026
|
value: e.id,
|
|
27027
27027
|
label: `${e.label} — ${e.name}`,
|
|
27028
27028
|
run: e
|
|
27029
|
-
}),
|
|
27030
|
-
function
|
|
27029
|
+
}), Fj = Ax;
|
|
27030
|
+
function Ij({ selection: e, run: t }) {
|
|
27031
27031
|
let { environment: n } = L(), [r, i] = v(null), [a, o] = v(!1), { selectedRuns: s } = e, { data: c, isFetching: l } = k({
|
|
27032
27032
|
queryKey: [n],
|
|
27033
27033
|
queryFn: () => ut({
|
|
@@ -27037,10 +27037,10 @@ function Lj({ selection: e, run: t }) {
|
|
|
27037
27037
|
}), u = O({ queries: s.map((e) => ({
|
|
27038
27038
|
queryKey: [e.id],
|
|
27039
27039
|
queryFn: () => ct({ run: e }),
|
|
27040
|
-
select:
|
|
27041
|
-
})) }), d = h(() => c?.items ?? [], [c]), f = h(() => d.map(
|
|
27040
|
+
select: Nj
|
|
27041
|
+
})) }), d = h(() => c?.items ?? [], [c]), f = h(() => d.map(Pj), [d]), p = r === null ? 0 : Math.max(0, s.findIndex((e) => e.id === r)), m = s[p] ?? null, g = u[p], _ = async (e) => {
|
|
27042
27042
|
let t = e.toLowerCase(), n = [];
|
|
27043
|
-
for (let e of d) (!t || e.label.toLowerCase().includes(t) || e.name.toLowerCase().includes(t)) && n.push(
|
|
27043
|
+
for (let e of d) (!t || e.label.toLowerCase().includes(t) || e.name.toLowerCase().includes(t)) && n.push(Pj(e));
|
|
27044
27044
|
return n;
|
|
27045
27045
|
}, y = (t) => {
|
|
27046
27046
|
e.selectRun(t), i(t.id);
|
|
@@ -27056,13 +27056,13 @@ function Lj({ selection: e, run: t }) {
|
|
|
27056
27056
|
loadOptions: _,
|
|
27057
27057
|
isLoading: l,
|
|
27058
27058
|
value: null,
|
|
27059
|
-
styles:
|
|
27059
|
+
styles: Fj,
|
|
27060
27060
|
onChange: (e) => {
|
|
27061
27061
|
e && y(e.run);
|
|
27062
27062
|
}
|
|
27063
27063
|
})]
|
|
27064
27064
|
}),
|
|
27065
|
-
/* @__PURE__ */ x(
|
|
27065
|
+
/* @__PURE__ */ x(Mj, {
|
|
27066
27066
|
selectedRuns: s,
|
|
27067
27067
|
onDeselect: e.deselectRun
|
|
27068
27068
|
}),
|
|
@@ -27079,7 +27079,7 @@ function Lj({ selection: e, run: t }) {
|
|
|
27079
27079
|
}) }, e.id))
|
|
27080
27080
|
}), /* @__PURE__ */ x("div", {
|
|
27081
27081
|
className: "ms-2 ps-2",
|
|
27082
|
-
children: m && /* @__PURE__ */ x(
|
|
27082
|
+
children: m && /* @__PURE__ */ x(jj, {
|
|
27083
27083
|
run: m,
|
|
27084
27084
|
selection: e,
|
|
27085
27085
|
partGroups: g?.data ?? [],
|
|
@@ -27092,7 +27092,7 @@ function Lj({ selection: e, run: t }) {
|
|
|
27092
27092
|
}
|
|
27093
27093
|
//#endregion
|
|
27094
27094
|
//#region src/modules/run/components/wizard/createRunForm/formSection.tsx
|
|
27095
|
-
function
|
|
27095
|
+
function Lj({ title: e, children: t }) {
|
|
27096
27096
|
return /* @__PURE__ */ S("fieldset", { children: [/* @__PURE__ */ x("legend", {
|
|
27097
27097
|
className: "fs-5 mb-0",
|
|
27098
27098
|
children: e
|
|
@@ -27100,12 +27100,12 @@ function Rj({ title: e, children: t }) {
|
|
|
27100
27100
|
}
|
|
27101
27101
|
//#endregion
|
|
27102
27102
|
//#region src/modules/run/components/wizard/createRunForm/organisationSelect.tsx
|
|
27103
|
-
var
|
|
27103
|
+
var Rj = (e) => {
|
|
27104
27104
|
if (e === "") return null;
|
|
27105
27105
|
let t = Number(e);
|
|
27106
27106
|
return Number.isFinite(t) ? t : null;
|
|
27107
27107
|
};
|
|
27108
|
-
function
|
|
27108
|
+
function zj({ controlId: e, label: t, options: n, isLoading: r, value: i, onChange: a, showError: o, disabled: s, helpText: c }) {
|
|
27109
27109
|
let l = t.toLowerCase(), u = `${l}s`;
|
|
27110
27110
|
return /* @__PURE__ */ S(G.Group, {
|
|
27111
27111
|
as: du,
|
|
@@ -27127,7 +27127,7 @@ function Bj({ controlId: e, label: t, options: n, isLoading: r, value: i, onChan
|
|
|
27127
27127
|
children: [
|
|
27128
27128
|
/* @__PURE__ */ S(G.Select, {
|
|
27129
27129
|
value: i ?? "",
|
|
27130
|
-
onChange: (e) => a(
|
|
27130
|
+
onChange: (e) => a(Rj(e.target.value)),
|
|
27131
27131
|
required: !0,
|
|
27132
27132
|
disabled: s,
|
|
27133
27133
|
isInvalid: o,
|
|
@@ -27153,7 +27153,7 @@ function Bj({ controlId: e, label: t, options: n, isLoading: r, value: i, onChan
|
|
|
27153
27153
|
}
|
|
27154
27154
|
//#endregion
|
|
27155
27155
|
//#region src/modules/run/components/wizard/createRunForm/selectionOverview.tsx
|
|
27156
|
-
function
|
|
27156
|
+
function Bj({ title: e, isEmpty: t, children: n }) {
|
|
27157
27157
|
return t ? "" : /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("div", {
|
|
27158
27158
|
className: "text-secondary mb-2",
|
|
27159
27159
|
children: [
|
|
@@ -27169,8 +27169,8 @@ function Vj({ title: e, isEmpty: t, children: n }) {
|
|
|
27169
27169
|
children: n
|
|
27170
27170
|
})] });
|
|
27171
27171
|
}
|
|
27172
|
-
function
|
|
27173
|
-
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(
|
|
27172
|
+
function Vj({ selectedRuns: e, selectedSubstrates: t, partIdsByRunId: n }) {
|
|
27173
|
+
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(Bj, {
|
|
27174
27174
|
title: "Parent runs & parts",
|
|
27175
27175
|
isEmpty: e.length === 0,
|
|
27176
27176
|
children: e.map((e) => {
|
|
@@ -27199,7 +27199,7 @@ function Hj({ selectedRuns: e, selectedSubstrates: t, partIdsByRunId: n }) {
|
|
|
27199
27199
|
})]
|
|
27200
27200
|
}, e.id);
|
|
27201
27201
|
})
|
|
27202
|
-
}), /* @__PURE__ */ x(
|
|
27202
|
+
}), /* @__PURE__ */ x(Bj, {
|
|
27203
27203
|
title: "Substrates",
|
|
27204
27204
|
isEmpty: t.length === 0,
|
|
27205
27205
|
children: t.map(({ substrate: e, amount: t }) => /* @__PURE__ */ S("div", {
|
|
@@ -27222,7 +27222,7 @@ function Hj({ selectedRuns: e, selectedSubstrates: t, partIdsByRunId: n }) {
|
|
|
27222
27222
|
}
|
|
27223
27223
|
//#endregion
|
|
27224
27224
|
//#region src/modules/run/components/wizard/createRunForm/createRunForm.tsx
|
|
27225
|
-
function
|
|
27225
|
+
function Hj({ isSubmitting: e, errorMessage: t, selectedRuns: n, selectedSubstrates: r, partIdsByRunId: i, onBack: a, onSubmit: o }) {
|
|
27226
27226
|
let { environment: s } = L(), [c, l] = v(""), [u, d] = v(""), [f, p] = v(null), [m, h] = v(null), [g, _] = v(null), [y, b] = v(Kt.RESEARCH), [C, w] = v(1), [T, E] = v(""), [D, O] = v(!1), { data: A, isError: j, isLoading: M } = k({
|
|
27227
27227
|
queryKey: ["organisation-groups", s],
|
|
27228
27228
|
queryFn: () => Xe({ environment: s })
|
|
@@ -27263,7 +27263,7 @@ function Uj({ isSubmitting: e, errorMessage: t, selectedRuns: n, selectedSubstra
|
|
|
27263
27263
|
},
|
|
27264
27264
|
className: "form-horizontal",
|
|
27265
27265
|
children: [
|
|
27266
|
-
/* @__PURE__ */ S(
|
|
27266
|
+
/* @__PURE__ */ S(Lj, {
|
|
27267
27267
|
title: "Details",
|
|
27268
27268
|
children: [
|
|
27269
27269
|
/* @__PURE__ */ S(G.Group, {
|
|
@@ -27359,14 +27359,14 @@ function Uj({ isSubmitting: e, errorMessage: t, selectedRuns: n, selectedSubstra
|
|
|
27359
27359
|
})
|
|
27360
27360
|
]
|
|
27361
27361
|
}),
|
|
27362
|
-
/* @__PURE__ */ S(
|
|
27362
|
+
/* @__PURE__ */ S(Lj, {
|
|
27363
27363
|
title: "Organisation",
|
|
27364
27364
|
children: [
|
|
27365
27365
|
D && ae && /* @__PURE__ */ x(ni, {
|
|
27366
27366
|
variant: "warning",
|
|
27367
27367
|
children: "Could not load organisation values."
|
|
27368
27368
|
}),
|
|
27369
|
-
/* @__PURE__ */ x(
|
|
27369
|
+
/* @__PURE__ */ x(zj, {
|
|
27370
27370
|
controlId: "create-run-group",
|
|
27371
27371
|
label: "Group",
|
|
27372
27372
|
options: oe,
|
|
@@ -27377,7 +27377,7 @@ function Uj({ isSubmitting: e, errorMessage: t, selectedRuns: n, selectedSubstra
|
|
|
27377
27377
|
disabled: e,
|
|
27378
27378
|
helpText: "Select the group to which this run belongs"
|
|
27379
27379
|
}),
|
|
27380
|
-
/* @__PURE__ */ x(
|
|
27380
|
+
/* @__PURE__ */ x(zj, {
|
|
27381
27381
|
controlId: "create-run-team",
|
|
27382
27382
|
label: "Team",
|
|
27383
27383
|
options: se,
|
|
@@ -27388,7 +27388,7 @@ function Uj({ isSubmitting: e, errorMessage: t, selectedRuns: n, selectedSubstra
|
|
|
27388
27388
|
disabled: e,
|
|
27389
27389
|
helpText: "Select the team to which this run belongs"
|
|
27390
27390
|
}),
|
|
27391
|
-
/* @__PURE__ */ x(
|
|
27391
|
+
/* @__PURE__ */ x(zj, {
|
|
27392
27392
|
controlId: "create-run-project",
|
|
27393
27393
|
label: "Project",
|
|
27394
27394
|
options: R,
|
|
@@ -27401,7 +27401,7 @@ function Uj({ isSubmitting: e, errorMessage: t, selectedRuns: n, selectedSubstra
|
|
|
27401
27401
|
})
|
|
27402
27402
|
]
|
|
27403
27403
|
}),
|
|
27404
|
-
/* @__PURE__ */ x(
|
|
27404
|
+
/* @__PURE__ */ x(Lj, {
|
|
27405
27405
|
title: "Parts",
|
|
27406
27406
|
children: /* @__PURE__ */ S(G.Group, {
|
|
27407
27407
|
as: du,
|
|
@@ -27427,7 +27427,7 @@ function Uj({ isSubmitting: e, errorMessage: t, selectedRuns: n, selectedSubstra
|
|
|
27427
27427
|
})]
|
|
27428
27428
|
})
|
|
27429
27429
|
}),
|
|
27430
|
-
/* @__PURE__ */ x(
|
|
27430
|
+
/* @__PURE__ */ x(Lj, {
|
|
27431
27431
|
title: "Type",
|
|
27432
27432
|
children: /* @__PURE__ */ S(G.Group, {
|
|
27433
27433
|
as: du,
|
|
@@ -27459,7 +27459,7 @@ function Uj({ isSubmitting: e, errorMessage: t, selectedRuns: n, selectedSubstra
|
|
|
27459
27459
|
children: /* @__PURE__ */ x(Di, {
|
|
27460
27460
|
sm: 9,
|
|
27461
27461
|
className: "offset-sm-3",
|
|
27462
|
-
children: /* @__PURE__ */ x(
|
|
27462
|
+
children: /* @__PURE__ */ x(Vj, {
|
|
27463
27463
|
selectedRuns: n,
|
|
27464
27464
|
selectedSubstrates: r,
|
|
27465
27465
|
partIdsByRunId: i
|
|
@@ -27491,7 +27491,7 @@ function Uj({ isSubmitting: e, errorMessage: t, selectedRuns: n, selectedSubstra
|
|
|
27491
27491
|
}
|
|
27492
27492
|
//#endregion
|
|
27493
27493
|
//#region src/modules/run/components/wizard/getCreateRunErrorMessage.ts
|
|
27494
|
-
var
|
|
27494
|
+
var Uj = (e) => {
|
|
27495
27495
|
if (e instanceof Error && e.message !== "") return e.message;
|
|
27496
27496
|
if (typeof e == "object" && e && "response" in e && typeof e.response == "object" && e.response !== null) {
|
|
27497
27497
|
let t = e.response;
|
|
@@ -27499,12 +27499,12 @@ var Wj = (e) => {
|
|
|
27499
27499
|
if (typeof t.data?.detail == "string") return t.data.detail;
|
|
27500
27500
|
}
|
|
27501
27501
|
return "Could not create the run.";
|
|
27502
|
-
},
|
|
27502
|
+
}, Wj = (e) => ({
|
|
27503
27503
|
value: e.id,
|
|
27504
27504
|
label: `${e.label} — ${e.short_label}`,
|
|
27505
27505
|
substrate: e
|
|
27506
|
-
}),
|
|
27507
|
-
function
|
|
27506
|
+
}), Gj = async (e) => (await kt({ query: e || void 0 })).items.map(Wj), Kj = Ax;
|
|
27507
|
+
function qj({ selectedSubstrates: e, setSelectedSubstrates: t }) {
|
|
27508
27508
|
let n = (e) => {
|
|
27509
27509
|
t((t) => t.some((t) => t.substrate.id === e.id) ? t : [...t, {
|
|
27510
27510
|
substrate: e,
|
|
@@ -27528,9 +27528,9 @@ function Jj({ selectedSubstrates: e, setSelectedSubstrates: t }) {
|
|
|
27528
27528
|
isClearable: !0,
|
|
27529
27529
|
defaultOptions: !0,
|
|
27530
27530
|
placeholder: "— Select a substrate, or start typing",
|
|
27531
|
-
loadOptions:
|
|
27531
|
+
loadOptions: Gj,
|
|
27532
27532
|
value: null,
|
|
27533
|
-
styles:
|
|
27533
|
+
styles: Kj,
|
|
27534
27534
|
onChange: (e) => {
|
|
27535
27535
|
e && n(e.substrate);
|
|
27536
27536
|
}
|
|
@@ -27571,8 +27571,8 @@ function Jj({ selectedSubstrates: e, setSelectedSubstrates: t }) {
|
|
|
27571
27571
|
}
|
|
27572
27572
|
//#endregion
|
|
27573
27573
|
//#region src/modules/run/components/wizard/wizardElement.tsx
|
|
27574
|
-
function
|
|
27575
|
-
let { environment: e } = L(), t = I(), n = A(), [r, i] = v("parts"), [a, o] = v([]), s =
|
|
27574
|
+
function Jj() {
|
|
27575
|
+
let { environment: e } = L(), t = I(), n = A(), [r, i] = v("parts"), [a, o] = v([]), s = Cj(), c = D({
|
|
27576
27576
|
mutationFn: async ({ runValues: e, parentRuns: t, substrates: n }) => {
|
|
27577
27577
|
let r = await $e({
|
|
27578
27578
|
name: e.name,
|
|
@@ -27583,7 +27583,7 @@ function Yj() {
|
|
|
27583
27583
|
parts: e.parts,
|
|
27584
27584
|
location: e.location || null,
|
|
27585
27585
|
run_type: e.runType
|
|
27586
|
-
}), i =
|
|
27586
|
+
}), i = wj(r.id, t).map((e) => et(e)), a = n.map(({ substrate: e, amount: t }) => tt({
|
|
27587
27587
|
run_id: r.id,
|
|
27588
27588
|
substrate_id: e.id,
|
|
27589
27589
|
amount: t
|
|
@@ -27613,14 +27613,14 @@ function Yj() {
|
|
|
27613
27613
|
}), /* @__PURE__ */ S("div", {
|
|
27614
27614
|
className: "m-3",
|
|
27615
27615
|
children: [
|
|
27616
|
-
r === "parts" && /* @__PURE__ */ x(
|
|
27617
|
-
r === "substrate" && /* @__PURE__ */ x(
|
|
27616
|
+
r === "parts" && /* @__PURE__ */ x(Ij, { selection: s }),
|
|
27617
|
+
r === "substrate" && /* @__PURE__ */ x(qj, {
|
|
27618
27618
|
selectedSubstrates: a,
|
|
27619
27619
|
setSelectedSubstrates: o
|
|
27620
27620
|
}),
|
|
27621
|
-
r === "details" && /* @__PURE__ */ x(
|
|
27621
|
+
r === "details" && /* @__PURE__ */ x(Hj, {
|
|
27622
27622
|
isSubmitting: c.isPending,
|
|
27623
|
-
errorMessage: c.isError ?
|
|
27623
|
+
errorMessage: c.isError ? Uj(c.error) : void 0,
|
|
27624
27624
|
selectedRuns: s.selectedRuns,
|
|
27625
27625
|
selectedSubstrates: a,
|
|
27626
27626
|
partIdsByRunId: s.partIdsByRunId,
|
|
@@ -27649,9 +27649,9 @@ function Yj() {
|
|
|
27649
27649
|
}
|
|
27650
27650
|
//#endregion
|
|
27651
27651
|
//#region src/modules/run/components/run/parent/editRunParents.tsx
|
|
27652
|
-
function
|
|
27653
|
-
let { environment: e } = L(), { run: t, reloadRun: n } = u(
|
|
27654
|
-
mutationFn: async (e) => Promise.all(
|
|
27652
|
+
function Yj() {
|
|
27653
|
+
let { environment: e } = L(), { run: t, reloadRun: n } = u(Bk), r = A(), i = Cj(), a = D({
|
|
27654
|
+
mutationFn: async (e) => Promise.all(wj(t.id, e).map((e) => et(e))),
|
|
27655
27655
|
onSuccess: (i, a) => {
|
|
27656
27656
|
n(), r.invalidateQueries({ queryKey: [e] }), r.invalidateQueries({ queryKey: [t.id] }), a.selectedRuns.forEach((e) => {
|
|
27657
27657
|
r.invalidateQueries({ queryKey: [e.id] });
|
|
@@ -27659,7 +27659,7 @@ function Xj() {
|
|
|
27659
27659
|
}
|
|
27660
27660
|
});
|
|
27661
27661
|
return /* @__PURE__ */ x("div", { children: /* @__PURE__ */ S("div", { children: [
|
|
27662
|
-
/* @__PURE__ */ x(
|
|
27662
|
+
/* @__PURE__ */ x(Ij, {
|
|
27663
27663
|
selection: i,
|
|
27664
27664
|
run: t
|
|
27665
27665
|
}),
|
|
@@ -27687,8 +27687,8 @@ function Xj() {
|
|
|
27687
27687
|
}
|
|
27688
27688
|
//#endregion
|
|
27689
27689
|
//#region src/modules/run/components/run/information/elements/runInformationGrid.tsx
|
|
27690
|
-
function
|
|
27691
|
-
let { run: e } = u(
|
|
27690
|
+
function Xj() {
|
|
27691
|
+
let { run: e } = u(Bk), { environment: t } = L(), n = e.run_type === Kt.RESEARCH, r = e.run_type === Kt.PRODUCTION, i = n ? "Research" : r ? "Production" : String(e.run_type);
|
|
27692
27692
|
return /* @__PURE__ */ S("div", {
|
|
27693
27693
|
className: "row g-4 mt-1",
|
|
27694
27694
|
children: [
|
|
@@ -27890,7 +27890,7 @@ function Zj() {
|
|
|
27890
27890
|
}
|
|
27891
27891
|
//#endregion
|
|
27892
27892
|
//#region src/modules/run/components/run/information/elements/runUploadFiles.tsx
|
|
27893
|
-
var
|
|
27893
|
+
var Zj = (e) => {
|
|
27894
27894
|
if (e === 0) return "0 Bytes";
|
|
27895
27895
|
let t = 1024, n = [
|
|
27896
27896
|
"Bytes",
|
|
@@ -27901,8 +27901,8 @@ var Qj = (e) => {
|
|
|
27901
27901
|
], r = Math.floor(Math.log(e) / Math.log(t));
|
|
27902
27902
|
return `${parseFloat((e / t ** r).toFixed(2))} ${n[r]}`;
|
|
27903
27903
|
};
|
|
27904
|
-
function
|
|
27905
|
-
let { run: e } = u(
|
|
27904
|
+
function Qj() {
|
|
27905
|
+
let { run: e } = u(Bk), [t, n] = v([]), [r, i] = v(""), [a, o] = v(!1), s = A(), { environment: c } = L(), { data: l, isLoading: d } = k({
|
|
27906
27906
|
queryKey: ["run-files", e.id],
|
|
27907
27907
|
queryFn: () => at({ run: e }),
|
|
27908
27908
|
enabled: !!e?.id
|
|
@@ -28035,7 +28035,7 @@ function $j() {
|
|
|
28035
28035
|
className: "ms-2 bg-primary",
|
|
28036
28036
|
children: "Logging"
|
|
28037
28037
|
})] }),
|
|
28038
|
-
/* @__PURE__ */ x("td", { children:
|
|
28038
|
+
/* @__PURE__ */ x("td", { children: Zj(e.size) }),
|
|
28039
28039
|
/* @__PURE__ */ x("td", { children: yO(e.date_created, "DD-MM-YY HH:mm") }),
|
|
28040
28040
|
/* @__PURE__ */ S("td", {
|
|
28041
28041
|
className: "text-end",
|
|
@@ -28082,7 +28082,7 @@ function $j() {
|
|
|
28082
28082
|
className: "d-flex justify-content-between align-items-center",
|
|
28083
28083
|
children: [/* @__PURE__ */ x("span", { children: e.name }), /* @__PURE__ */ x("small", {
|
|
28084
28084
|
className: "text-muted",
|
|
28085
|
-
children:
|
|
28085
|
+
children: Zj(e.size)
|
|
28086
28086
|
})]
|
|
28087
28087
|
}, `${e.name}-${e.lastModified}`))
|
|
28088
28088
|
}),
|
|
@@ -28103,21 +28103,21 @@ function $j() {
|
|
|
28103
28103
|
}
|
|
28104
28104
|
//#endregion
|
|
28105
28105
|
//#region src/modules/run/components/run/information/runInformationElement.tsx
|
|
28106
|
-
function
|
|
28106
|
+
function $j() {
|
|
28107
28107
|
return /* @__PURE__ */ S("div", { children: [
|
|
28108
28108
|
/* @__PURE__ */ x("h2", { children: "Run information" }),
|
|
28109
|
-
/* @__PURE__ */ x(
|
|
28110
|
-
/* @__PURE__ */ x(
|
|
28109
|
+
/* @__PURE__ */ x(Xj, {}),
|
|
28110
|
+
/* @__PURE__ */ x(Qj, {})
|
|
28111
28111
|
] });
|
|
28112
28112
|
}
|
|
28113
28113
|
//#endregion
|
|
28114
28114
|
//#region src/modules/run/components/run/layout/elements/runLayoutTrayVisual.tsx
|
|
28115
|
-
var
|
|
28115
|
+
var eM = (e, t) => {
|
|
28116
28116
|
e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", String(t.id));
|
|
28117
|
-
},
|
|
28117
|
+
}, tM = (e) => {
|
|
28118
28118
|
e.preventDefault(), e.dataTransfer.dropEffect = "move";
|
|
28119
28119
|
};
|
|
28120
|
-
function
|
|
28120
|
+
function nM({ step: e, tray: t, parts: n, stepParts: r }) {
|
|
28121
28121
|
let i = A(), a = t.tray_type, o = t.label ? `${t.name} - ${t.label}` : t.name, s = h(() => new Map(n.map((e) => [e.id, e])), [n]), c = h(() => new Map(r.map((e) => [e.id, e])), [r]), l = async (t, n, o, l) => {
|
|
28122
28122
|
t.preventDefault();
|
|
28123
28123
|
let u = Number(t.dataTransfer.getData("text/plain")), d = c.get(u);
|
|
@@ -28133,7 +28133,7 @@ function rM({ step: e, tray: t, parts: n, stepParts: r }) {
|
|
|
28133
28133
|
let r = s.get(t.part_id);
|
|
28134
28134
|
return (t.tray_id ?? r?.tray?.id) === n.id && (t.tray_row ?? r?.tray_row) === o && (t.tray_column ?? r?.tray_column) === l;
|
|
28135
28135
|
})) {
|
|
28136
|
-
|
|
28136
|
+
OA({
|
|
28137
28137
|
notificationHeader: "Tray part change",
|
|
28138
28138
|
notificationBody: "This position is occupied by a part that has not failed in this or a previous step.",
|
|
28139
28139
|
notificationType: "danger"
|
|
@@ -28146,18 +28146,18 @@ function rM({ step: e, tray: t, parts: n, stepParts: r }) {
|
|
|
28146
28146
|
tray_row: o,
|
|
28147
28147
|
tray_column: l
|
|
28148
28148
|
};
|
|
28149
|
-
|
|
28149
|
+
vA(i, e, p);
|
|
28150
28150
|
try {
|
|
28151
28151
|
let t = await vt(d, n, o, l, !0);
|
|
28152
|
-
|
|
28152
|
+
vA(i, e, t.data, { updateSubsequent: !0 }), OA({
|
|
28153
28153
|
notificationHeader: "Tray part change",
|
|
28154
28154
|
notificationBody: "Part moved successfully",
|
|
28155
28155
|
notificationType: "success"
|
|
28156
28156
|
});
|
|
28157
28157
|
} catch (t) {
|
|
28158
|
-
|
|
28158
|
+
vA(i, e, d), OA({
|
|
28159
28159
|
notificationHeader: "Tray part change",
|
|
28160
|
-
notificationBody:
|
|
28160
|
+
notificationBody: aM(t),
|
|
28161
28161
|
notificationType: "danger"
|
|
28162
28162
|
});
|
|
28163
28163
|
}
|
|
@@ -28170,17 +28170,17 @@ function rM({ step: e, tray: t, parts: n, stepParts: r }) {
|
|
|
28170
28170
|
let u = a.rows * a.columns, d = {
|
|
28171
28171
|
"--tray-rows": a.rows,
|
|
28172
28172
|
"--tray-columns": a.columns
|
|
28173
|
-
}, f = new Set((a.forbidden_slots ?? []).map((e) =>
|
|
28173
|
+
}, f = new Set((a.forbidden_slots ?? []).map((e) => rM(a, e.y, e.x)).filter((e) => e !== null)), p = Array.from({ length: u }, () => null);
|
|
28174
28174
|
return r.forEach((e) => {
|
|
28175
28175
|
let t = s.get(e.part_id);
|
|
28176
28176
|
if (!t) return;
|
|
28177
|
-
let n =
|
|
28177
|
+
let n = rM(a, e.tray_row ?? t.tray_row, e.tray_column ?? t.tray_column);
|
|
28178
28178
|
if (n === null) {
|
|
28179
28179
|
console.log(e);
|
|
28180
28180
|
return;
|
|
28181
28181
|
}
|
|
28182
28182
|
if (e.has_failed_in_previouse_state) return;
|
|
28183
|
-
let r =
|
|
28183
|
+
let r = oM(e), i = p[n], o = i ? oM(i) : null;
|
|
28184
28184
|
o !== null && o < r || (p[n] = e);
|
|
28185
28185
|
}), /* @__PURE__ */ S("section", {
|
|
28186
28186
|
className: "tray-visual my-2",
|
|
@@ -28195,7 +28195,7 @@ function rM({ step: e, tray: t, parts: n, stepParts: r }) {
|
|
|
28195
28195
|
className: "tray-visual__grid",
|
|
28196
28196
|
"data-orientation": a.orientation === "ttb" ? "ttb" : "ltr",
|
|
28197
28197
|
children: p.map((e, n) => {
|
|
28198
|
-
let r = n + 1, { row: i, column: o } =
|
|
28198
|
+
let r = n + 1, { row: i, column: o } = iM(a, n), c = e ? s.get(e.part_id) : null, u = sM(e), d = cM(e);
|
|
28199
28199
|
return f.has(n) ? /* @__PURE__ */ x("div", {
|
|
28200
28200
|
className: "tray-visual__pocket",
|
|
28201
28201
|
"aria-hidden": "true"
|
|
@@ -28207,7 +28207,7 @@ function rM({ step: e, tray: t, parts: n, stepParts: r }) {
|
|
|
28207
28207
|
"data-tray-row": i,
|
|
28208
28208
|
"data-tray-column": o,
|
|
28209
28209
|
"data-pocket-number": r,
|
|
28210
|
-
onDragOver:
|
|
28210
|
+
onDragOver: tM,
|
|
28211
28211
|
onDrop: (e) => l(e, t, i, o),
|
|
28212
28212
|
children: c && e ? /* @__PURE__ */ x(Ql, {
|
|
28213
28213
|
placement: "top",
|
|
@@ -28220,7 +28220,7 @@ function rM({ step: e, tray: t, parts: n, stepParts: r }) {
|
|
|
28220
28220
|
"data-part-id": c.id,
|
|
28221
28221
|
"data-step-part-id": e.id,
|
|
28222
28222
|
draggable: !0,
|
|
28223
|
-
onDragStart: (t) =>
|
|
28223
|
+
onDragStart: (t) => eM(t, e),
|
|
28224
28224
|
children: c.scanner_label
|
|
28225
28225
|
})
|
|
28226
28226
|
}, e.id) : /* @__PURE__ */ x("span", {
|
|
@@ -28234,29 +28234,29 @@ function rM({ step: e, tray: t, parts: n, stepParts: r }) {
|
|
|
28234
28234
|
})]
|
|
28235
28235
|
});
|
|
28236
28236
|
}
|
|
28237
|
-
var
|
|
28237
|
+
var rM = (e, t, n) => !t || !n || t < 1 || n < 1 || t > e.rows || n > e.columns ? null : e.orientation === "ttb" ? (n - 1) * e.rows + (t - 1) : (t - 1) * e.columns + (n - 1), iM = (e, t) => e.orientation === "ttb" ? {
|
|
28238
28238
|
row: t % e.rows + 1,
|
|
28239
28239
|
column: Math.floor(t / e.rows) + 1
|
|
28240
28240
|
} : {
|
|
28241
28241
|
row: Math.floor(t / e.columns) + 1,
|
|
28242
28242
|
column: t % e.columns + 1
|
|
28243
|
-
},
|
|
28243
|
+
}, aM = (e) => {
|
|
28244
28244
|
if (typeof e == "object" && e && "response" in e) {
|
|
28245
28245
|
let t = e.response;
|
|
28246
28246
|
if (typeof t?.data?.detail == "string" && t.data.detail !== "") return t.data.detail;
|
|
28247
28247
|
if (typeof t?.data?.message == "string" && t.data.message !== "") return t.data.message;
|
|
28248
28248
|
}
|
|
28249
28249
|
return e instanceof Error && e.message !== "" ? e.message : "Could not move part.";
|
|
28250
|
-
},
|
|
28251
|
-
let i = h(() => [...r.run_trays ?? []].sort((e, t) => e.sequence - t.sequence), [r]), a = h(() => n.filter((t) => t.step_id === e.id), [n, e.id]), o = h(() => t.filter((t) => t.part_level === e.part_level).sort((e, t) => e.root_id && t.root_id && e.root_id !== t.root_id ? e.root_id - t.root_id : e.left - t.left), [t]), s = h(() =>
|
|
28252
|
-
return i.length === 0 || o[0]?.part_level > 0 ? /* @__PURE__ */ x(
|
|
28250
|
+
}, oM = (e) => e.tray_id != null && !e.failed ? 1 : e.tray_id == null ? 3 : 2, sM = (e) => e?.failed ? "bg-danger" : e?.tray_id ? "bg-primary" : "bg-grey", cM = (e) => e?.failed ? "Part failed" : e == null ? "In default postion" : e.tray_id == null ? "In default position" : "Not in default postion", lM = ({ step: e, parts: t, stepParts: n, run: r }) => {
|
|
28251
|
+
let i = h(() => [...r.run_trays ?? []].sort((e, t) => e.sequence - t.sequence), [r]), a = h(() => n.filter((t) => t.step_id === e.id), [n, e.id]), o = h(() => t.filter((t) => t.part_level === e.part_level).sort((e, t) => e.root_id && t.root_id && e.root_id !== t.root_id ? e.root_id - t.root_id : e.left - t.left), [t]), s = h(() => sj(o, a), [o, a]);
|
|
28252
|
+
return i.length === 0 || o[0]?.part_level > 0 ? /* @__PURE__ */ x(cj, {
|
|
28253
28253
|
step: e,
|
|
28254
28254
|
parts: t,
|
|
28255
28255
|
stepParts: n,
|
|
28256
28256
|
run: r
|
|
28257
28257
|
}) : /* @__PURE__ */ x("div", {
|
|
28258
28258
|
className: "d-flex flex-wrap gap-4",
|
|
28259
|
-
children: i.map((t) => /* @__PURE__ */ x(
|
|
28259
|
+
children: i.map((t) => /* @__PURE__ */ x(nM, {
|
|
28260
28260
|
step: e,
|
|
28261
28261
|
tray: t,
|
|
28262
28262
|
parts: s.get(t.id) ?? [],
|
|
@@ -28266,7 +28266,7 @@ var iM = (e, t, n) => !t || !n || t < 1 || n < 1 || t > e.rows || n > e.columns
|
|
|
28266
28266
|
};
|
|
28267
28267
|
//#endregion
|
|
28268
28268
|
//#region src/modules/run/components/run/layout/elements/runStepInLayout.tsx
|
|
28269
|
-
function
|
|
28269
|
+
function uM({ step: e, parts: t, run: n }) {
|
|
28270
28270
|
let { environment: r } = L(), [i] = O({ queries: [{
|
|
28271
28271
|
queryKey: ["runStepParts", e.id],
|
|
28272
28272
|
queryFn: () => _t({ step: e }),
|
|
@@ -28284,7 +28284,7 @@ function dM({ step: e, parts: t, run: n }) {
|
|
|
28284
28284
|
height: "1.5rem",
|
|
28285
28285
|
borderRadius: "3px"
|
|
28286
28286
|
} }, t))
|
|
28287
|
-
}) : /* @__PURE__ */ x(
|
|
28287
|
+
}) : /* @__PURE__ */ x(lM, {
|
|
28288
28288
|
step: e,
|
|
28289
28289
|
parts: o,
|
|
28290
28290
|
stepParts: a,
|
|
@@ -28293,7 +28293,7 @@ function dM({ step: e, parts: t, run: n }) {
|
|
|
28293
28293
|
}
|
|
28294
28294
|
//#endregion
|
|
28295
28295
|
//#region src/modules/run/components/run/layout/runLayoutElement.tsx
|
|
28296
|
-
var
|
|
28296
|
+
var dM = (e) => /* @__PURE__ */ x("tr", {
|
|
28297
28297
|
style: { pointerEvents: "none" },
|
|
28298
28298
|
children: /* @__PURE__ */ x("td", {
|
|
28299
28299
|
colSpan: 2,
|
|
@@ -28302,8 +28302,8 @@ var fM = (e) => /* @__PURE__ */ x("tr", {
|
|
|
28302
28302
|
children: /* @__PURE__ */ x("span", { children: e.step_group?.label })
|
|
28303
28303
|
})
|
|
28304
28304
|
});
|
|
28305
|
-
function
|
|
28306
|
-
let { run: e } = u(
|
|
28305
|
+
function fM() {
|
|
28306
|
+
let { run: e } = u(Bk), [n, r] = v(1), [i] = v(25), [a, o] = v(/* @__PURE__ */ new Map()), s = O({ queries: [{
|
|
28307
28307
|
queryKey: [
|
|
28308
28308
|
"runSteps",
|
|
28309
28309
|
JSON.stringify(e),
|
|
@@ -28405,13 +28405,13 @@ function pM() {
|
|
|
28405
28405
|
hover: !0,
|
|
28406
28406
|
striped: !0,
|
|
28407
28407
|
size: "sm",
|
|
28408
|
-
children: [/* @__PURE__ */ x("thead", { children: /* @__PURE__ */ S("tr", { children: [/* @__PURE__ */ x("th", { children: "Step" }), /* @__PURE__ */ x("th", { children: "Parts" })] }) }), /* @__PURE__ */ x("tbody", { children: m.map((n) => /* @__PURE__ */ S(t.Fragment, { children: [n.has_label && w(n), (!n.has_label || !!a.get(n.label?.id ?? -1)) && /* @__PURE__ */ S(b, { children: [n.has_step_group && y.includes(n) &&
|
|
28408
|
+
children: [/* @__PURE__ */ x("thead", { children: /* @__PURE__ */ S("tr", { children: [/* @__PURE__ */ x("th", { children: "Step" }), /* @__PURE__ */ x("th", { children: "Parts" })] }) }), /* @__PURE__ */ x("tbody", { children: m.map((n) => /* @__PURE__ */ S(t.Fragment, { children: [n.has_label && w(n), (!n.has_label || !!a.get(n.label?.id ?? -1)) && /* @__PURE__ */ S(b, { children: [n.has_step_group && y.includes(n) && dM(n), /* @__PURE__ */ x(uM, {
|
|
28409
28409
|
step: n,
|
|
28410
28410
|
parts: g,
|
|
28411
28411
|
run: e
|
|
28412
28412
|
}, `step-${n.id}`)] })] }, `step-${n.id}`)) })]
|
|
28413
28413
|
}),
|
|
28414
|
-
/* @__PURE__ */ x(
|
|
28414
|
+
/* @__PURE__ */ x(Tk, {
|
|
28415
28415
|
data: c.data,
|
|
28416
28416
|
setPage: r,
|
|
28417
28417
|
isPlaceholderData: c.isPlaceholderData
|
|
@@ -28420,7 +28420,7 @@ function pM() {
|
|
|
28420
28420
|
}
|
|
28421
28421
|
//#endregion
|
|
28422
28422
|
//#region src/modules/run/hooks/useRunStep.ts
|
|
28423
|
-
var
|
|
28423
|
+
var pM = () => {
|
|
28424
28424
|
let [e, t] = v(null), [n, r] = v(null), { id: i } = L();
|
|
28425
28425
|
d(() => {
|
|
28426
28426
|
(e === null || i !== e.id.toString()) && it({ id: parseInt(i) }).then((e) => (rt({ id: e.run_id }).then(r), e)).then(t);
|
|
@@ -28437,13 +28437,13 @@ var mM = () => {
|
|
|
28437
28437
|
};
|
|
28438
28438
|
//#endregion
|
|
28439
28439
|
//#region src/modules/run/providers/runStepProvider.tsx
|
|
28440
|
-
function
|
|
28441
|
-
let { runStep: t, setRunStep: n, run: r, reloadRunStep: a } =
|
|
28440
|
+
function mM({ children: e }) {
|
|
28441
|
+
let { runStep: t, setRunStep: n, run: r, reloadRunStep: a } = pM(), [o, s] = v({});
|
|
28442
28442
|
if (t === null || r === null) {
|
|
28443
28443
|
let e = "Loading run...";
|
|
28444
28444
|
return t === null && r === null ? e = "Loading run and run step..." : r === null && (e = "Loading run step..."), /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(nn, { message: e }) });
|
|
28445
28445
|
}
|
|
28446
|
-
return /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(
|
|
28446
|
+
return /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(dj.Provider, {
|
|
28447
28447
|
value: {
|
|
28448
28448
|
runStep: t,
|
|
28449
28449
|
setRunStep: n,
|
|
@@ -28460,18 +28460,18 @@ function hM({ children: e }) {
|
|
|
28460
28460
|
}
|
|
28461
28461
|
//#endregion
|
|
28462
28462
|
//#region src/modules/run/components/step/runStepHeaderElement.tsx
|
|
28463
|
-
function
|
|
28464
|
-
return /* @__PURE__ */ x(
|
|
28463
|
+
function hM() {
|
|
28464
|
+
return /* @__PURE__ */ x(mM, { children: /* @__PURE__ */ x(Oi, {
|
|
28465
28465
|
fluid: !0,
|
|
28466
28466
|
children: /* @__PURE__ */ x(P, {})
|
|
28467
28467
|
}) });
|
|
28468
28468
|
}
|
|
28469
28469
|
//#endregion
|
|
28470
28470
|
//#region src/modules/run/components/step/view/element/stepLabel.tsx
|
|
28471
|
-
var
|
|
28471
|
+
var gM = ({ label: e }) => /* @__PURE__ */ x("div", {
|
|
28472
28472
|
className: "p-2 h4 mb-1 bg-info text-white",
|
|
28473
28473
|
children: e.label
|
|
28474
|
-
}),
|
|
28474
|
+
}), _M = ({ runStep: e }) => {
|
|
28475
28475
|
let { environment: t } = L();
|
|
28476
28476
|
return /* @__PURE__ */ S("h2", { children: [
|
|
28477
28477
|
" ",
|
|
@@ -28490,7 +28490,7 @@ var _M = ({ label: e }) => /* @__PURE__ */ x("div", {
|
|
|
28490
28490
|
]
|
|
28491
28491
|
})
|
|
28492
28492
|
] });
|
|
28493
|
-
},
|
|
28493
|
+
}, vM = ({ checklistItem: e, show: t, setModalShow: n, mutation: r }) => /* @__PURE__ */ S(K, {
|
|
28494
28494
|
show: t,
|
|
28495
28495
|
size: "lg",
|
|
28496
28496
|
onHide: () => n(!1),
|
|
@@ -28516,7 +28516,7 @@ var _M = ({ label: e }) => /* @__PURE__ */ x("div", {
|
|
|
28516
28516
|
});
|
|
28517
28517
|
//#endregion
|
|
28518
28518
|
//#region src/modules/run/components/step/view/element/checklist/checklistItemElement.tsx
|
|
28519
|
-
function
|
|
28519
|
+
function yM({ checklistItem: e, onOpenModal: t, onMarkDone: n }) {
|
|
28520
28520
|
return e.can_finish ? e.description === "" ? /* @__PURE__ */ x(W, {
|
|
28521
28521
|
className: "float-end",
|
|
28522
28522
|
size: "sm",
|
|
@@ -28530,7 +28530,7 @@ function bM({ checklistItem: e, onOpenModal: t, onMarkDone: n }) {
|
|
|
28530
28530
|
children: "Execute checklist step"
|
|
28531
28531
|
}) : null;
|
|
28532
28532
|
}
|
|
28533
|
-
var
|
|
28533
|
+
var bM = ({ checklistItem: e, refetch: t }) => {
|
|
28534
28534
|
let [n, r] = v(!1), i = D({
|
|
28535
28535
|
mutationFn: async () => (await y.create().patch("update/run/step/checklist/done/" + e.id, {})).data,
|
|
28536
28536
|
onSuccess: (e) => {
|
|
@@ -28543,20 +28543,20 @@ var xM = ({ checklistItem: e, refetch: t }) => {
|
|
|
28543
28543
|
children: [
|
|
28544
28544
|
/* @__PURE__ */ S("div", {
|
|
28545
28545
|
className: "d-flex flex-column",
|
|
28546
|
-
children: [e.task, e.is_executed && /* @__PURE__ */ S("small", { children: ["Executed on ", /* @__PURE__ */ x(
|
|
28546
|
+
children: [e.task, e.is_executed && /* @__PURE__ */ S("small", { children: ["Executed on ", /* @__PURE__ */ x(Uk, {
|
|
28547
28547
|
format: "DD-MM-YYYY",
|
|
28548
28548
|
children: e.date_executed
|
|
28549
28549
|
})] })]
|
|
28550
28550
|
}),
|
|
28551
28551
|
/* @__PURE__ */ x("div", {
|
|
28552
28552
|
className: "flex-shrink-0",
|
|
28553
|
-
children: /* @__PURE__ */ x(
|
|
28553
|
+
children: /* @__PURE__ */ x(yM, {
|
|
28554
28554
|
checklistItem: e,
|
|
28555
28555
|
onOpenModal: () => r(!0),
|
|
28556
28556
|
onMarkDone: () => i.mutate()
|
|
28557
28557
|
})
|
|
28558
28558
|
}),
|
|
28559
|
-
/* @__PURE__ */ x(
|
|
28559
|
+
/* @__PURE__ */ x(vM, {
|
|
28560
28560
|
checklistItem: e,
|
|
28561
28561
|
show: n,
|
|
28562
28562
|
setModalShow: r,
|
|
@@ -28564,7 +28564,7 @@ var xM = ({ checklistItem: e, refetch: t }) => {
|
|
|
28564
28564
|
})
|
|
28565
28565
|
]
|
|
28566
28566
|
});
|
|
28567
|
-
},
|
|
28567
|
+
}, xM = {
|
|
28568
28568
|
movingOut: "Moving out...",
|
|
28569
28569
|
skipping: "Skipping...",
|
|
28570
28570
|
unskipping: "Unskipping...",
|
|
@@ -28572,8 +28572,8 @@ var xM = ({ checklistItem: e, refetch: t }) => {
|
|
|
28572
28572
|
operationSkipped: "Operation skipped",
|
|
28573
28573
|
operationUnskipped: "Operation unskipped"
|
|
28574
28574
|
};
|
|
28575
|
-
function
|
|
28576
|
-
let r = I(), { environment: i } = L(), [a, o] = v(null), [s, c] = v(!1), { run: f, runStep: p, reloadRunStep: m } = u(
|
|
28575
|
+
function SM({ run: e, runStep: t, reloadRunStep: n }) {
|
|
28576
|
+
let r = I(), { environment: i } = L(), [a, o] = v(null), [s, c] = v(!1), { run: f, runStep: p, reloadRunStep: m } = u(dj);
|
|
28577
28577
|
d(() => {
|
|
28578
28578
|
if (a) {
|
|
28579
28579
|
let e = setTimeout(() => {
|
|
@@ -28587,10 +28587,10 @@ function CM({ run: e, runStep: t, reloadRunStep: n }) {
|
|
|
28587
28587
|
queryFn: () => pt({ runStep: _ }),
|
|
28588
28588
|
enabled: !!_
|
|
28589
28589
|
}), O = l(async (e) => {
|
|
28590
|
-
o(
|
|
28590
|
+
o(xM.movingOut), c(!0);
|
|
28591
28591
|
try {
|
|
28592
28592
|
let t = await mt(e);
|
|
28593
|
-
o(
|
|
28593
|
+
o(xM.operationFinished), t.data.next_step_id === null ? C() : r(`/${i}/operator/run/step/${t.data.next_step_id}`);
|
|
28594
28594
|
} finally {
|
|
28595
28595
|
c(!1);
|
|
28596
28596
|
}
|
|
@@ -28599,16 +28599,16 @@ function CM({ run: e, runStep: t, reloadRunStep: n }) {
|
|
|
28599
28599
|
r,
|
|
28600
28600
|
C
|
|
28601
28601
|
]), A = l(async (e) => {
|
|
28602
|
-
o(
|
|
28602
|
+
o(xM.skipping), c(!0);
|
|
28603
28603
|
try {
|
|
28604
|
-
await y.create().patch(`update/run/step/skip/${e.id}`, {}), o(
|
|
28604
|
+
await y.create().patch(`update/run/step/skip/${e.id}`, {}), o(xM.operationSkipped), C();
|
|
28605
28605
|
} finally {
|
|
28606
28606
|
c(!1);
|
|
28607
28607
|
}
|
|
28608
28608
|
}, [C]), j = l(async (e) => {
|
|
28609
|
-
o(
|
|
28609
|
+
o(xM.unskipping), c(!0);
|
|
28610
28610
|
try {
|
|
28611
|
-
await y.create().patch(`update/run/step/un-skip/${e.id}`, {}), o(
|
|
28611
|
+
await y.create().patch(`update/run/step/un-skip/${e.id}`, {}), o(xM.operationUnskipped), C();
|
|
28612
28612
|
} finally {
|
|
28613
28613
|
c(!1);
|
|
28614
28614
|
}
|
|
@@ -28630,7 +28630,7 @@ function CM({ run: e, runStep: t, reloadRunStep: n }) {
|
|
|
28630
28630
|
variant: "info",
|
|
28631
28631
|
children: "No checklist found"
|
|
28632
28632
|
}),
|
|
28633
|
-
M.length > 0 && /* @__PURE__ */ x(Ic, { children: M.map((e) => /* @__PURE__ */ x(
|
|
28633
|
+
M.length > 0 && /* @__PURE__ */ x(Ic, { children: M.map((e) => /* @__PURE__ */ x(bM, {
|
|
28634
28634
|
checklistItem: e,
|
|
28635
28635
|
refetch: D
|
|
28636
28636
|
}, e.id)) }),
|
|
@@ -28643,19 +28643,19 @@ function CM({ run: e, runStep: t, reloadRunStep: n }) {
|
|
|
28643
28643
|
variant: "success",
|
|
28644
28644
|
onClick: () => O(_),
|
|
28645
28645
|
disabled: s,
|
|
28646
|
-
children: a ===
|
|
28646
|
+
children: a === xM.operationFinished || a === xM.movingOut ? a : "Move out"
|
|
28647
28647
|
}) }),
|
|
28648
28648
|
g.access.edit && !_.is_skipped && /* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(W, {
|
|
28649
28649
|
variant: "primary",
|
|
28650
28650
|
onClick: () => A(_),
|
|
28651
28651
|
disabled: s,
|
|
28652
|
-
children: a ===
|
|
28652
|
+
children: a === xM.operationSkipped || a === xM.skipping ? a : "Skip operation"
|
|
28653
28653
|
}) }),
|
|
28654
28654
|
g.access.edit && _.is_skipped && /* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(W, {
|
|
28655
28655
|
variant: "warning",
|
|
28656
28656
|
onClick: () => j(_),
|
|
28657
28657
|
disabled: s,
|
|
28658
|
-
children: a ===
|
|
28658
|
+
children: a === xM.operationUnskipped || a === xM.unskipping ? a : "Unskip operation"
|
|
28659
28659
|
}) })
|
|
28660
28660
|
]
|
|
28661
28661
|
}), /* @__PURE__ */ x("div", {
|
|
@@ -28671,9 +28671,9 @@ function CM({ run: e, runStep: t, reloadRunStep: n }) {
|
|
|
28671
28671
|
}
|
|
28672
28672
|
//#endregion
|
|
28673
28673
|
//#region src/modules/run/components/step/view/element/stepRemark.tsx
|
|
28674
|
-
var
|
|
28675
|
-
function
|
|
28676
|
-
let { runStep: i, setRunStep: a } = u(
|
|
28674
|
+
var CM = () => void 0;
|
|
28675
|
+
function wM({ runStep: e, reloadRunStep: t, title: n = "Remark", titleClassName: r = "mb-2 text-start" }) {
|
|
28676
|
+
let { runStep: i, setRunStep: a } = u(dj), o = e ?? i, s = t ? () => t() : e ? CM : a ?? CM, [c, f] = v(!1), p = o ? !o.is_finished : !1, m = !!o?.remark?.trim(), { register: h, handleSubmit: g, formState: _, reset: C } = _f({ defaultValues: { remark: o?.remark_unparsed ?? "" } }), { isSubmitting: w } = _;
|
|
28677
28677
|
d(() => {
|
|
28678
28678
|
C({ remark: o?.remark_unparsed ?? "" });
|
|
28679
28679
|
}, [C, o?.remark_unparsed]);
|
|
@@ -28747,7 +28747,7 @@ function TM({ runStep: e, reloadRunStep: t, title: n = "Remark", titleClassName:
|
|
|
28747
28747
|
}
|
|
28748
28748
|
//#endregion
|
|
28749
28749
|
//#region src/modules/run/components/step/view/element/hold-code/holdCodeModal.tsx
|
|
28750
|
-
var
|
|
28750
|
+
var TM = (e, t) => {
|
|
28751
28751
|
y.get("list/run/hold-code").then((e) => {
|
|
28752
28752
|
let { data: t } = e;
|
|
28753
28753
|
return t._embedded.items;
|
|
@@ -28757,7 +28757,7 @@ var EM = (e, t) => {
|
|
|
28757
28757
|
label: e.code
|
|
28758
28758
|
})));
|
|
28759
28759
|
});
|
|
28760
|
-
},
|
|
28760
|
+
}, EM = ({ run: e, show: n, setShow: r, runHoldCode: i, setRunHoldCode: a }) => {
|
|
28761
28761
|
let [o, s] = t.useState(!1), { register: c, control: l, setValue: u, handleSubmit: d, formState: f } = _f({ defaultValues: {
|
|
28762
28762
|
holdCode: i ? {
|
|
28763
28763
|
value: i.hold_code.id,
|
|
@@ -28802,7 +28802,7 @@ var EM = (e, t) => {
|
|
|
28802
28802
|
isSearchable: !1,
|
|
28803
28803
|
defaultOptions: !0,
|
|
28804
28804
|
placeholder: "— Select a hold code",
|
|
28805
|
-
loadOptions:
|
|
28805
|
+
loadOptions: TM,
|
|
28806
28806
|
value: e.value,
|
|
28807
28807
|
onChange: (t) => {
|
|
28808
28808
|
e.onChange(t);
|
|
@@ -28849,8 +28849,8 @@ var EM = (e, t) => {
|
|
|
28849
28849
|
]
|
|
28850
28850
|
})
|
|
28851
28851
|
});
|
|
28852
|
-
},
|
|
28853
|
-
let { run: e } = u(
|
|
28852
|
+
}, DM = () => {
|
|
28853
|
+
let { run: e } = u(dj), [t, n] = v(!1), [r, i] = v(e.hold_code), a = () => {
|
|
28854
28854
|
n(!0);
|
|
28855
28855
|
};
|
|
28856
28856
|
return /* @__PURE__ */ S(b, { children: [
|
|
@@ -28881,7 +28881,7 @@ var EM = (e, t) => {
|
|
|
28881
28881
|
},
|
|
28882
28882
|
children: "No hold code"
|
|
28883
28883
|
}),
|
|
28884
|
-
/* @__PURE__ */ x(
|
|
28884
|
+
/* @__PURE__ */ x(EM, {
|
|
28885
28885
|
run: e,
|
|
28886
28886
|
show: t,
|
|
28887
28887
|
setShow: n,
|
|
@@ -28889,8 +28889,8 @@ var EM = (e, t) => {
|
|
|
28889
28889
|
setRunHoldCode: i
|
|
28890
28890
|
})
|
|
28891
28891
|
] });
|
|
28892
|
-
},
|
|
28893
|
-
let { run: e } = u(
|
|
28892
|
+
}, OM = () => {
|
|
28893
|
+
let { run: e } = u(dj), [n, r] = v(e.priority);
|
|
28894
28894
|
return /* @__PURE__ */ S(t.Fragment, { children: [n && /* @__PURE__ */ x("span", {
|
|
28895
28895
|
className: "badge",
|
|
28896
28896
|
style: {
|
|
@@ -28904,7 +28904,7 @@ var EM = (e, t) => {
|
|
|
28904
28904
|
style: { fontSize: "1.5rem" },
|
|
28905
28905
|
children: "NORMAL"
|
|
28906
28906
|
})] });
|
|
28907
|
-
},
|
|
28907
|
+
}, kM = ({ run: e, runStep: t, showOnlyEmphasizedParameters: n }) => /* @__PURE__ */ x("div", {
|
|
28908
28908
|
className: "border rounded px-3 py-3",
|
|
28909
28909
|
children: /* @__PURE__ */ S("div", {
|
|
28910
28910
|
className: "d-flex flex-wrap gap-3",
|
|
@@ -28913,7 +28913,7 @@ var EM = (e, t) => {
|
|
|
28913
28913
|
flexGrow: 1,
|
|
28914
28914
|
flex: "1 1 360px"
|
|
28915
28915
|
},
|
|
28916
|
-
children: /* @__PURE__ */ x(
|
|
28916
|
+
children: /* @__PURE__ */ x(BA, {
|
|
28917
28917
|
run: e,
|
|
28918
28918
|
runStep: t
|
|
28919
28919
|
})
|
|
@@ -28925,7 +28925,7 @@ var EM = (e, t) => {
|
|
|
28925
28925
|
children: [
|
|
28926
28926
|
n && /* @__PURE__ */ x("h4", { children: "Emphasized parameters" }),
|
|
28927
28927
|
!n && /* @__PURE__ */ x("h4", { children: "Parameters" }),
|
|
28928
|
-
/* @__PURE__ */ x(
|
|
28928
|
+
/* @__PURE__ */ x(Xk, {
|
|
28929
28929
|
runStep: t,
|
|
28930
28930
|
editableParameters: !1,
|
|
28931
28931
|
showOnlyEmphasizedParameters: n
|
|
@@ -28933,8 +28933,8 @@ var EM = (e, t) => {
|
|
|
28933
28933
|
]
|
|
28934
28934
|
})]
|
|
28935
28935
|
})
|
|
28936
|
-
}),
|
|
28937
|
-
let { environment: s } = L(), [c, l] = v(!1), { runStep: d } = u(
|
|
28936
|
+
}), AM = ({ run: e, monitoredBy: t, runStep: n, runParts: r, runStepParts: i, hideLabel: a, firstInGroup: o }) => {
|
|
28937
|
+
let { environment: s } = L(), [c, l] = v(!1), { runStep: d } = u(dj);
|
|
28938
28938
|
return /* @__PURE__ */ S(b, { children: [
|
|
28939
28939
|
!a && n.has_label && n.is_own_label && /* @__PURE__ */ x("div", {
|
|
28940
28940
|
className: "bg-info text-white rounded px-3 py-1",
|
|
@@ -28972,7 +28972,7 @@ var EM = (e, t) => {
|
|
|
28972
28972
|
children: [
|
|
28973
28973
|
/* @__PURE__ */ x("div", {
|
|
28974
28974
|
className: "flex-shrink-0",
|
|
28975
|
-
children: /* @__PURE__ */ x(
|
|
28975
|
+
children: /* @__PURE__ */ x(cj, {
|
|
28976
28976
|
step: n,
|
|
28977
28977
|
parts: r,
|
|
28978
28978
|
stepParts: i,
|
|
@@ -29026,7 +29026,7 @@ var EM = (e, t) => {
|
|
|
29026
29026
|
}),
|
|
29027
29027
|
/* @__PURE__ */ x("span", {
|
|
29028
29028
|
className: "text-nowrap",
|
|
29029
|
-
children: n.is_finished ? /* @__PURE__ */ x(
|
|
29029
|
+
children: n.is_finished ? /* @__PURE__ */ x(Uk, {
|
|
29030
29030
|
format: "DD-MM-YYYY",
|
|
29031
29031
|
children: n.finish_date
|
|
29032
29032
|
}) : ""
|
|
@@ -29035,7 +29035,7 @@ var EM = (e, t) => {
|
|
|
29035
29035
|
})
|
|
29036
29036
|
]
|
|
29037
29037
|
}),
|
|
29038
|
-
c && /* @__PURE__ */ x(
|
|
29038
|
+
c && /* @__PURE__ */ x(kM, {
|
|
29039
29039
|
run: e,
|
|
29040
29040
|
runStep: n,
|
|
29041
29041
|
showOnlyEmphasizedParameters: !1
|
|
@@ -29044,7 +29044,7 @@ var EM = (e, t) => {
|
|
|
29044
29044
|
};
|
|
29045
29045
|
//#endregion
|
|
29046
29046
|
//#region src/modules/run/components/step/view/element/step-overview/requirementDetails.tsx
|
|
29047
|
-
function
|
|
29047
|
+
function jM({ requirement: e, step: t, stepParts: n, parts: r, measurementResults: i }) {
|
|
29048
29048
|
let a = n.filter((t) => t.step_id === (e.requirement_for_step?.id ?? e.step.id)), { environment: o } = L();
|
|
29049
29049
|
return /* @__PURE__ */ x(b, { children: /* @__PURE__ */ x("div", {
|
|
29050
29050
|
className: "border rounded px-3 py-3",
|
|
@@ -29055,7 +29055,7 @@ function MM({ requirement: e, step: t, stepParts: n, parts: r, measurementResult
|
|
|
29055
29055
|
flexGrow: 1,
|
|
29056
29056
|
flex: "1 1 360px"
|
|
29057
29057
|
},
|
|
29058
|
-
children: [/* @__PURE__ */ x("h4", { children: "Measurement results" }), /* @__PURE__ */ x(
|
|
29058
|
+
children: [/* @__PURE__ */ x("h4", { children: "Measurement results" }), /* @__PURE__ */ x(fj, {
|
|
29059
29059
|
requirement: e,
|
|
29060
29060
|
step: t,
|
|
29061
29061
|
stepParts: a,
|
|
@@ -29102,8 +29102,8 @@ function MM({ requirement: e, step: t, stepParts: n, parts: r, measurementResult
|
|
|
29102
29102
|
}
|
|
29103
29103
|
//#endregion
|
|
29104
29104
|
//#region src/modules/run/components/step/view/element/step-overview/requirementElement.tsx
|
|
29105
|
-
function
|
|
29106
|
-
let a = e.step, { environment: o } = L(), { runStep: s } = u(
|
|
29105
|
+
function MM({ requirement: e, runParts: t, runStepParts: n, hideLabel: r, firstInGroup: i }) {
|
|
29106
|
+
let a = e.step, { environment: o } = L(), { runStep: s } = u(dj), [c, l] = v(!1), [d] = O({ queries: [{
|
|
29107
29107
|
queryKey: [
|
|
29108
29108
|
"requirement",
|
|
29109
29109
|
"measurementResults",
|
|
@@ -29159,7 +29159,7 @@ function NM({ requirement: e, runParts: t, runStepParts: n, hideLabel: r, firstI
|
|
|
29159
29159
|
children: [
|
|
29160
29160
|
/* @__PURE__ */ x("div", {
|
|
29161
29161
|
className: "flex-shrink-0",
|
|
29162
|
-
children: /* @__PURE__ */ x(
|
|
29162
|
+
children: /* @__PURE__ */ x(hj, {
|
|
29163
29163
|
requirement: e,
|
|
29164
29164
|
step: a,
|
|
29165
29165
|
parts: t,
|
|
@@ -29211,7 +29211,7 @@ function NM({ requirement: e, runParts: t, runStepParts: n, hideLabel: r, firstI
|
|
|
29211
29211
|
}),
|
|
29212
29212
|
/* @__PURE__ */ x("span", {
|
|
29213
29213
|
className: "text-nowrap",
|
|
29214
|
-
children: a.is_finished ? /* @__PURE__ */ x(
|
|
29214
|
+
children: a.is_finished ? /* @__PURE__ */ x(Uk, {
|
|
29215
29215
|
format: "DD-MM-YYYY",
|
|
29216
29216
|
children: a.finish_date
|
|
29217
29217
|
}) : ""
|
|
@@ -29220,7 +29220,7 @@ function NM({ requirement: e, runParts: t, runStepParts: n, hideLabel: r, firstI
|
|
|
29220
29220
|
})
|
|
29221
29221
|
]
|
|
29222
29222
|
}),
|
|
29223
|
-
c && /* @__PURE__ */ x(
|
|
29223
|
+
c && /* @__PURE__ */ x(jM, {
|
|
29224
29224
|
requirement: e,
|
|
29225
29225
|
step: a,
|
|
29226
29226
|
stepParts: n,
|
|
@@ -29231,8 +29231,8 @@ function NM({ requirement: e, runParts: t, runStepParts: n, hideLabel: r, firstI
|
|
|
29231
29231
|
}
|
|
29232
29232
|
//#endregion
|
|
29233
29233
|
//#region src/modules/run/components/step/view/element/runStepSimpleList.tsx
|
|
29234
|
-
var
|
|
29235
|
-
let { runStep: r, run: i } = u(
|
|
29234
|
+
var NM = ({ pageSize: e = 25, hideLabel: n = !1 }) => {
|
|
29235
|
+
let { runStep: r, run: i } = u(dj), [a, o] = v(1);
|
|
29236
29236
|
d(() => {
|
|
29237
29237
|
r?.sequence && o(Math.max(1, Math.ceil(r.sequence / e)));
|
|
29238
29238
|
}, [r?.sequence, e]);
|
|
@@ -29285,12 +29285,12 @@ var PM = ({ pageSize: e = 25, hideLabel: n = !1 }) => {
|
|
|
29285
29285
|
]), /* @__PURE__ */ S("div", { children: [
|
|
29286
29286
|
N ? /* @__PURE__ */ x("div", { children: "Loading..." }) : P ? /* @__PURE__ */ S("div", { children: ["Error: ", String(F?.message ?? F)] }) : /* @__PURE__ */ x("div", {
|
|
29287
29287
|
className: "d-flex flex-column gap-2",
|
|
29288
|
-
children: ee.map((e, r) => /* @__PURE__ */ x(t.Fragment, { children: e.has_requirement ? /* @__PURE__ */ x(
|
|
29288
|
+
children: ee.map((e, r) => /* @__PURE__ */ x(t.Fragment, { children: e.has_requirement ? /* @__PURE__ */ x(MM, {
|
|
29289
29289
|
requirement: te.find((t) => t.step.id === e.id),
|
|
29290
29290
|
runParts: I,
|
|
29291
29291
|
runStepParts: L,
|
|
29292
29292
|
firstInGroup: re.includes(e)
|
|
29293
|
-
}, e.id ?? e.sequence ?? r) : /* @__PURE__ */ x(
|
|
29293
|
+
}, e.id ?? e.sequence ?? r) : /* @__PURE__ */ x(AM, {
|
|
29294
29294
|
run: i,
|
|
29295
29295
|
monitoredBy: ie[e.id],
|
|
29296
29296
|
runParts: I,
|
|
@@ -29300,7 +29300,7 @@ var PM = ({ pageSize: e = 25, hideLabel: n = !1 }) => {
|
|
|
29300
29300
|
runStep: e
|
|
29301
29301
|
}, e.id ?? e.sequence ?? r) }, r))
|
|
29302
29302
|
}),
|
|
29303
|
-
/* @__PURE__ */ x(
|
|
29303
|
+
/* @__PURE__ */ x(Tk, {
|
|
29304
29304
|
data: y,
|
|
29305
29305
|
setPage: o,
|
|
29306
29306
|
isPlaceholderData: D
|
|
@@ -29310,15 +29310,15 @@ var PM = ({ pageSize: e = 25, hideLabel: n = !1 }) => {
|
|
|
29310
29310
|
};
|
|
29311
29311
|
//#endregion
|
|
29312
29312
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
29313
|
-
function
|
|
29313
|
+
function PM(e, t) {
|
|
29314
29314
|
(t == null || t > e.length) && (t = e.length);
|
|
29315
29315
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
29316
29316
|
return r;
|
|
29317
29317
|
}
|
|
29318
|
-
function
|
|
29318
|
+
function FM(e) {
|
|
29319
29319
|
if (Array.isArray(e)) return e;
|
|
29320
29320
|
}
|
|
29321
|
-
function
|
|
29321
|
+
function IM(e, t) {
|
|
29322
29322
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
29323
29323
|
if (n != null) {
|
|
29324
29324
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -29336,113 +29336,113 @@ function LM(e, t) {
|
|
|
29336
29336
|
return s;
|
|
29337
29337
|
}
|
|
29338
29338
|
}
|
|
29339
|
-
function
|
|
29339
|
+
function LM() {
|
|
29340
29340
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
29341
29341
|
}
|
|
29342
|
-
function
|
|
29343
|
-
return
|
|
29342
|
+
function RM(e, t) {
|
|
29343
|
+
return FM(e) || IM(e, t) || zM(e, t) || LM();
|
|
29344
29344
|
}
|
|
29345
|
-
function
|
|
29345
|
+
function zM(e, t) {
|
|
29346
29346
|
if (e) {
|
|
29347
|
-
if (typeof e == "string") return
|
|
29347
|
+
if (typeof e == "string") return PM(e, t);
|
|
29348
29348
|
var n = {}.toString.call(e).slice(8, -1);
|
|
29349
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
29349
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? PM(e, t) : void 0;
|
|
29350
29350
|
}
|
|
29351
29351
|
}
|
|
29352
|
-
var
|
|
29353
|
-
|
|
29352
|
+
var BM = Object.entries, VM = Object.setPrototypeOf, HM = Object.isFrozen, UM = Object.getPrototypeOf, WM = Object.getOwnPropertyDescriptor, GM = Object.freeze, KM = Object.seal, qM = Object.create, JM = typeof Reflect < "u" && Reflect, YM = JM.apply, XM = JM.construct;
|
|
29353
|
+
GM || (GM = function(e) {
|
|
29354
29354
|
return e;
|
|
29355
|
-
}),
|
|
29355
|
+
}), KM || (KM = function(e) {
|
|
29356
29356
|
return e;
|
|
29357
|
-
}),
|
|
29357
|
+
}), YM || (YM = function(e, t) {
|
|
29358
29358
|
var n = [...arguments].slice(2);
|
|
29359
29359
|
return e.apply(t, n);
|
|
29360
|
-
}),
|
|
29360
|
+
}), XM || (XM = function(e) {
|
|
29361
29361
|
return new e(...[...arguments].slice(1));
|
|
29362
29362
|
});
|
|
29363
|
-
var
|
|
29364
|
-
function
|
|
29363
|
+
var ZM = _N(Array.prototype.forEach), QM = _N(Array.prototype.lastIndexOf), $M = _N(Array.prototype.pop), eN = _N(Array.prototype.push), tN = _N(Array.prototype.splice), nN = Array.isArray, rN = _N(String.prototype.toLowerCase), iN = _N(String.prototype.toString), aN = _N(String.prototype.match), oN = _N(String.prototype.replace), sN = _N(String.prototype.indexOf), cN = _N(String.prototype.trim), lN = _N(Number.prototype.toString), uN = _N(Boolean.prototype.toString), dN = typeof BigInt > "u" ? null : _N(BigInt.prototype.toString), fN = typeof Symbol > "u" ? null : _N(Symbol.prototype.toString), pN = _N(Object.prototype.hasOwnProperty), mN = _N(Object.prototype.toString), hN = _N(RegExp.prototype.test), gN = vN(TypeError);
|
|
29364
|
+
function _N(e) {
|
|
29365
29365
|
return function(t) {
|
|
29366
29366
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
29367
29367
|
var n = [...arguments].slice(1);
|
|
29368
|
-
return
|
|
29368
|
+
return YM(e, t, n);
|
|
29369
29369
|
};
|
|
29370
29370
|
}
|
|
29371
|
-
function
|
|
29371
|
+
function vN(e) {
|
|
29372
29372
|
return function() {
|
|
29373
|
-
return
|
|
29373
|
+
return XM(e, [...arguments]);
|
|
29374
29374
|
};
|
|
29375
29375
|
}
|
|
29376
|
-
function
|
|
29377
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
29378
|
-
if (
|
|
29376
|
+
function yN(e, t) {
|
|
29377
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : rN;
|
|
29378
|
+
if (VM && VM(e, null), !nN(t)) return e;
|
|
29379
29379
|
let r = t.length;
|
|
29380
29380
|
for (; r--;) {
|
|
29381
29381
|
let i = t[r];
|
|
29382
29382
|
if (typeof i == "string") {
|
|
29383
29383
|
let e = n(i);
|
|
29384
|
-
e !== i && (
|
|
29384
|
+
e !== i && (HM(t) || (t[r] = e), i = e);
|
|
29385
29385
|
}
|
|
29386
29386
|
e[i] = !0;
|
|
29387
29387
|
}
|
|
29388
29388
|
return e;
|
|
29389
29389
|
}
|
|
29390
|
-
function
|
|
29391
|
-
for (let t = 0; t < e.length; t++)
|
|
29390
|
+
function bN(e) {
|
|
29391
|
+
for (let t = 0; t < e.length; t++) pN(e, t) || (e[t] = null);
|
|
29392
29392
|
return e;
|
|
29393
29393
|
}
|
|
29394
|
-
function
|
|
29395
|
-
let t =
|
|
29396
|
-
for (let r of
|
|
29397
|
-
var n =
|
|
29394
|
+
function xN(e) {
|
|
29395
|
+
let t = qM(null);
|
|
29396
|
+
for (let r of BM(e)) {
|
|
29397
|
+
var n = RM(r, 2);
|
|
29398
29398
|
let i = n[0], a = n[1];
|
|
29399
|
-
|
|
29399
|
+
pN(e, i) && (nN(a) ? t[i] = bN(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = xN(a) : t[i] = a);
|
|
29400
29400
|
}
|
|
29401
29401
|
return t;
|
|
29402
29402
|
}
|
|
29403
|
-
function
|
|
29403
|
+
function SN(e) {
|
|
29404
29404
|
switch (typeof e) {
|
|
29405
29405
|
case "string": return e;
|
|
29406
|
-
case "number": return
|
|
29407
|
-
case "boolean": return
|
|
29408
|
-
case "bigint": return
|
|
29409
|
-
case "symbol": return
|
|
29410
|
-
case "undefined": return
|
|
29406
|
+
case "number": return lN(e);
|
|
29407
|
+
case "boolean": return uN(e);
|
|
29408
|
+
case "bigint": return dN ? dN(e) : "0";
|
|
29409
|
+
case "symbol": return fN ? fN(e) : "Symbol()";
|
|
29410
|
+
case "undefined": return mN(e);
|
|
29411
29411
|
case "function":
|
|
29412
29412
|
case "object": {
|
|
29413
|
-
if (e === null) return
|
|
29414
|
-
let t = e, n =
|
|
29413
|
+
if (e === null) return mN(e);
|
|
29414
|
+
let t = e, n = CN(t, "toString");
|
|
29415
29415
|
if (typeof n == "function") {
|
|
29416
29416
|
let e = n(t);
|
|
29417
|
-
return typeof e == "string" ? e :
|
|
29417
|
+
return typeof e == "string" ? e : mN(e);
|
|
29418
29418
|
}
|
|
29419
|
-
return
|
|
29419
|
+
return mN(e);
|
|
29420
29420
|
}
|
|
29421
|
-
default: return
|
|
29421
|
+
default: return mN(e);
|
|
29422
29422
|
}
|
|
29423
29423
|
}
|
|
29424
|
-
function
|
|
29424
|
+
function CN(e, t) {
|
|
29425
29425
|
for (; e !== null;) {
|
|
29426
|
-
let n =
|
|
29426
|
+
let n = WM(e, t);
|
|
29427
29427
|
if (n) {
|
|
29428
|
-
if (n.get) return
|
|
29429
|
-
if (typeof n.value == "function") return
|
|
29428
|
+
if (n.get) return _N(n.get);
|
|
29429
|
+
if (typeof n.value == "function") return _N(n.value);
|
|
29430
29430
|
}
|
|
29431
|
-
e =
|
|
29431
|
+
e = UM(e);
|
|
29432
29432
|
}
|
|
29433
29433
|
function n() {
|
|
29434
29434
|
return null;
|
|
29435
29435
|
}
|
|
29436
29436
|
return n;
|
|
29437
29437
|
}
|
|
29438
|
-
function
|
|
29438
|
+
function wN(e) {
|
|
29439
29439
|
try {
|
|
29440
|
-
return
|
|
29440
|
+
return hN(e, ""), !0;
|
|
29441
29441
|
} catch {
|
|
29442
29442
|
return !1;
|
|
29443
29443
|
}
|
|
29444
29444
|
}
|
|
29445
|
-
var
|
|
29445
|
+
var TN = GM(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), EN = GM(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), DN = GM([
|
|
29446
29446
|
"feBlend",
|
|
29447
29447
|
"feColorMatrix",
|
|
29448
29448
|
"feComponentTransfer",
|
|
@@ -29468,7 +29468,7 @@ var EN = KM(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
29468
29468
|
"feSpotLight",
|
|
29469
29469
|
"feTile",
|
|
29470
29470
|
"feTurbulence"
|
|
29471
|
-
]),
|
|
29471
|
+
]), ON = GM([
|
|
29472
29472
|
"animate",
|
|
29473
29473
|
"color-profile",
|
|
29474
29474
|
"cursor",
|
|
@@ -29491,7 +29491,7 @@ var EN = KM(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
29491
29491
|
"solidcolor",
|
|
29492
29492
|
"unknown",
|
|
29493
29493
|
"use"
|
|
29494
|
-
]),
|
|
29494
|
+
]), kN = GM(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), AN = GM([
|
|
29495
29495
|
"maction",
|
|
29496
29496
|
"maligngroup",
|
|
29497
29497
|
"malignmark",
|
|
@@ -29507,13 +29507,13 @@ var EN = KM(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
29507
29507
|
"annotation-xml",
|
|
29508
29508
|
"mprescripts",
|
|
29509
29509
|
"none"
|
|
29510
|
-
]),
|
|
29510
|
+
]), jN = GM(["#text"]), MN = GM(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), NN = GM(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), PN = GM(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), FN = GM([
|
|
29511
29511
|
"xlink:href",
|
|
29512
29512
|
"xml:id",
|
|
29513
29513
|
"xlink:title",
|
|
29514
29514
|
"xml:space",
|
|
29515
29515
|
"xmlns:xlink"
|
|
29516
|
-
]),
|
|
29516
|
+
]), IN = KM(/{{[\w\W]*|^[\w\W]*}}/g), LN = KM(/<%[\w\W]*|^[\w\W]*%>/g), RN = KM(/\${[\w\W]*/g), zN = KM(/^data-[\-\w.\u00B7-\uFFFF]+$/), BN = KM(/^aria-[\-\w]+$/), VN = KM(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), HN = KM(/^(?:\w+script|data):/i), UN = KM(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), WN = KM(/^html$/i), GN = KM(/^[a-z][.\w]*(-[.\w]+)+$/i), KN = KM(/<[/\w!]/g), qN = KM(/<[/\w]/g), JN = KM(/<\/no(script|embed|frames)/i), YN = KM(/\/>/i), XN = {
|
|
29517
29517
|
element: 1,
|
|
29518
29518
|
attribute: 2,
|
|
29519
29519
|
text: 3,
|
|
@@ -29526,9 +29526,9 @@ var EN = KM(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
29526
29526
|
documentType: 10,
|
|
29527
29527
|
documentFragment: 11,
|
|
29528
29528
|
notation: 12
|
|
29529
|
-
},
|
|
29529
|
+
}, ZN = function() {
|
|
29530
29530
|
return typeof window > "u" ? null : window;
|
|
29531
|
-
},
|
|
29531
|
+
}, QN = function(e, t) {
|
|
29532
29532
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
29533
29533
|
let n = null, r = "data-tt-policy-suffix";
|
|
29534
29534
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -29545,7 +29545,7 @@ var EN = KM(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
29545
29545
|
} catch {
|
|
29546
29546
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
29547
29547
|
}
|
|
29548
|
-
},
|
|
29548
|
+
}, $N = function() {
|
|
29549
29549
|
return {
|
|
29550
29550
|
afterSanitizeAttributes: [],
|
|
29551
29551
|
afterSanitizeElements: [],
|
|
@@ -29557,23 +29557,23 @@ var EN = KM(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.b
|
|
|
29557
29557
|
uponSanitizeElement: [],
|
|
29558
29558
|
uponSanitizeShadowNode: []
|
|
29559
29559
|
};
|
|
29560
|
-
},
|
|
29561
|
-
return
|
|
29560
|
+
}, eP = function(e, t, n, r) {
|
|
29561
|
+
return pN(e, t) && nN(e[t]) ? yN(r.base ? xN(r.base) : {}, e[t], r.transform) : n;
|
|
29562
29562
|
};
|
|
29563
|
-
function
|
|
29564
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
29565
|
-
if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
29563
|
+
function tP() {
|
|
29564
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ZN(), t = (e) => tP(e);
|
|
29565
|
+
if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !== XN.document || !e.Element) return t.isSupported = !1, t;
|
|
29566
29566
|
let n = e.document, r = n, i = r.currentScript;
|
|
29567
29567
|
e.DocumentFragment;
|
|
29568
29568
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
29569
29569
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
29570
|
-
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f =
|
|
29570
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = CN(d, "cloneNode"), p = CN(d, "remove"), m = CN(d, "nextSibling"), h = CN(d, "childNodes"), g = CN(d, "parentNode"), _ = CN(d, "shadowRoot"), v = CN(d, "attributes"), y = o && o.prototype ? CN(o.prototype, "nodeType") : null, b = o && o.prototype ? CN(o.prototype, "nodeName") : null;
|
|
29571
29571
|
if (typeof a == "function") {
|
|
29572
29572
|
let e = n.createElement("template");
|
|
29573
29573
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
29574
29574
|
}
|
|
29575
29575
|
let x, S = "", C, w = !1, T = 0, E = function() {
|
|
29576
|
-
if (T > 0) throw
|
|
29576
|
+
if (T > 0) throw gN("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
29577
29577
|
}, D = function(e) {
|
|
29578
29578
|
E(), T++;
|
|
29579
29579
|
try {
|
|
@@ -29589,21 +29589,21 @@ function nP() {
|
|
|
29589
29589
|
T--;
|
|
29590
29590
|
}
|
|
29591
29591
|
}, k = function() {
|
|
29592
|
-
return w || (C =
|
|
29593
|
-
}, A = n, j = A.implementation, M = A.createNodeIterator, N = A.createDocumentFragment, P = A.getElementsByTagName, F = r.importNode, I =
|
|
29594
|
-
t.isSupported = typeof
|
|
29595
|
-
let L =
|
|
29592
|
+
return w || (C = QN(u, i), w = !0), C;
|
|
29593
|
+
}, A = n, j = A.implementation, M = A.createNodeIterator, N = A.createDocumentFragment, P = A.getElementsByTagName, F = r.importNode, I = $N();
|
|
29594
|
+
t.isSupported = typeof BM == "function" && typeof g == "function" && j && j.createHTMLDocument !== void 0;
|
|
29595
|
+
let L = IN, ee = LN, te = RN, ne = zN, re = BN, ie = HN, ae = UN, oe = GN, se = VN, R = null, ce = yN({}, [
|
|
29596
|
+
...TN,
|
|
29596
29597
|
...EN,
|
|
29597
29598
|
...DN,
|
|
29598
|
-
...
|
|
29599
|
-
...
|
|
29600
|
-
|
|
29601
|
-
|
|
29599
|
+
...kN,
|
|
29600
|
+
...jN
|
|
29601
|
+
]), z = null, le = yN({}, [
|
|
29602
|
+
...MN,
|
|
29602
29603
|
...NN,
|
|
29603
29604
|
...PN,
|
|
29604
|
-
...FN
|
|
29605
|
-
|
|
29606
|
-
]), ue = Object.seal(JM(null, {
|
|
29605
|
+
...FN
|
|
29606
|
+
]), ue = Object.seal(qM(null, {
|
|
29607
29607
|
tagNameCheck: {
|
|
29608
29608
|
writable: !0,
|
|
29609
29609
|
configurable: !1,
|
|
@@ -29622,7 +29622,7 @@ function nP() {
|
|
|
29622
29622
|
enumerable: !0,
|
|
29623
29623
|
value: !1
|
|
29624
29624
|
}
|
|
29625
|
-
})), de = null, fe = null, pe = Object.seal(
|
|
29625
|
+
})), de = null, fe = null, pe = Object.seal(qM(null, {
|
|
29626
29626
|
tagCheck: {
|
|
29627
29627
|
writable: !0,
|
|
29628
29628
|
configurable: !1,
|
|
@@ -29635,14 +29635,14 @@ function nP() {
|
|
|
29635
29635
|
enumerable: !0,
|
|
29636
29636
|
value: null
|
|
29637
29637
|
}
|
|
29638
|
-
})), me = !0, he = !0, ge = !1, _e = !0, ve = !1, ye = !0, be = !1, xe = !1, Se = null, Ce = null, we = !1, Te = !1, Ee = !1, De = !1, Oe = !0, ke = !1, Ae = "user-content-", je = !0, Me = !1, Ne = {}, Pe = null, Fe =
|
|
29638
|
+
})), me = !0, he = !0, ge = !1, _e = !0, ve = !1, ye = !0, be = !1, xe = !1, Se = null, Ce = null, we = !1, Te = !1, Ee = !1, De = !1, Oe = !0, ke = !1, Ae = "user-content-", je = !0, Me = !1, Ne = {}, Pe = null, Fe = yN({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ie = null, Le = yN({}, [
|
|
29639
29639
|
"audio",
|
|
29640
29640
|
"video",
|
|
29641
29641
|
"img",
|
|
29642
29642
|
"source",
|
|
29643
29643
|
"image",
|
|
29644
29644
|
"track"
|
|
29645
|
-
]), Re = null, ze =
|
|
29645
|
+
]), Re = null, ze = yN({}, [
|
|
29646
29646
|
"alt",
|
|
29647
29647
|
"class",
|
|
29648
29648
|
"for",
|
|
@@ -29657,17 +29657,17 @@ function nP() {
|
|
|
29657
29657
|
"value",
|
|
29658
29658
|
"style",
|
|
29659
29659
|
"xmlns"
|
|
29660
|
-
]), Be = "http://www.w3.org/1998/Math/MathML", Ve = "http://www.w3.org/2000/svg", He = "http://www.w3.org/1999/xhtml", Ue = He, We = !1, Ge = null, Ke =
|
|
29660
|
+
]), Be = "http://www.w3.org/1998/Math/MathML", Ve = "http://www.w3.org/2000/svg", He = "http://www.w3.org/1999/xhtml", Ue = He, We = !1, Ge = null, Ke = yN({}, [
|
|
29661
29661
|
Be,
|
|
29662
29662
|
Ve,
|
|
29663
29663
|
He
|
|
29664
|
-
],
|
|
29664
|
+
], iN), qe = GM([
|
|
29665
29665
|
"mi",
|
|
29666
29666
|
"mo",
|
|
29667
29667
|
"mn",
|
|
29668
29668
|
"ms",
|
|
29669
29669
|
"mtext"
|
|
29670
|
-
]), Je =
|
|
29670
|
+
]), Je = yN({}, qe), Ye = GM(["annotation-xml"]), Xe = yN({}, Ye), Ze = yN({}, [
|
|
29671
29671
|
"title",
|
|
29672
29672
|
"style",
|
|
29673
29673
|
"font",
|
|
@@ -29678,21 +29678,21 @@ function nP() {
|
|
|
29678
29678
|
}, it = function() {
|
|
29679
29679
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
29680
29680
|
if (tt && tt === e) return;
|
|
29681
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
29681
|
+
(!e || typeof e != "object") && (e = {}), e = xN(e), Qe = $e.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, et = Qe === "application/xhtml+xml" ? iN : rN, R = eP(e, "ALLOWED_TAGS", ce, { transform: et }), z = eP(e, "ALLOWED_ATTR", le, { transform: et }), Ge = eP(e, "ALLOWED_NAMESPACES", Ke, { transform: iN }), Re = eP(e, "ADD_URI_SAFE_ATTR", ze, {
|
|
29682
29682
|
transform: et,
|
|
29683
29683
|
base: ze
|
|
29684
|
-
}), Ie =
|
|
29684
|
+
}), Ie = eP(e, "ADD_DATA_URI_TAGS", Le, {
|
|
29685
29685
|
transform: et,
|
|
29686
29686
|
base: Le
|
|
29687
|
-
}), Pe =
|
|
29688
|
-
let t =
|
|
29689
|
-
if (ue =
|
|
29687
|
+
}), Pe = eP(e, "FORBID_CONTENTS", Fe, { transform: et }), de = eP(e, "FORBID_TAGS", xN({}), { transform: et }), fe = eP(e, "FORBID_ATTR", xN({}), { transform: et }), Ne = pN(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? xN(e.USE_PROFILES) : e.USE_PROFILES : !1, me = e.ALLOW_ARIA_ATTR !== !1, he = e.ALLOW_DATA_ATTR !== !1, ge = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _e = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ve = e.SAFE_FOR_TEMPLATES || !1, ye = e.SAFE_FOR_XML !== !1, be = e.WHOLE_DOCUMENT || !1, Te = e.RETURN_DOM || !1, Ee = e.RETURN_DOM_FRAGMENT || !1, De = e.RETURN_TRUSTED_TYPE || !1, we = e.FORCE_BODY || !1, Oe = e.SANITIZE_DOM !== !1, ke = e.SANITIZE_NAMED_PROPS || !1, je = e.KEEP_CONTENT !== !1, Me = e.IN_PLACE || !1, se = wN(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : VN, Ue = typeof e.NAMESPACE == "string" ? e.NAMESPACE : He, Je = pN(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? xN(e.MATHML_TEXT_INTEGRATION_POINTS) : yN({}, qe), Xe = pN(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? xN(e.HTML_INTEGRATION_POINTS) : yN({}, Ye);
|
|
29688
|
+
let t = pN(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? xN(e.CUSTOM_ELEMENT_HANDLING) : qM(null);
|
|
29689
|
+
if (ue = qM(null), pN(t, "tagNameCheck") && rt(t.tagNameCheck) && (ue.tagNameCheck = t.tagNameCheck), pN(t, "attributeNameCheck") && rt(t.attributeNameCheck) && (ue.attributeNameCheck = t.attributeNameCheck), pN(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (ue.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), KM(ue), ve && (he = !1), Ee && (Te = !0), Ne && (R = yN({}, jN), z = qM(null), Ne.html === !0 && (yN(R, TN), yN(z, MN)), Ne.svg === !0 && (yN(R, EN), yN(z, NN), yN(z, FN)), Ne.svgFilters === !0 && (yN(R, DN), yN(z, NN), yN(z, FN)), Ne.mathMl === !0 && (yN(R, kN), yN(z, PN), yN(z, FN))), pe.tagCheck = null, pe.attributeCheck = null, pN(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? pe.tagCheck = e.ADD_TAGS : nN(e.ADD_TAGS) && (R === ce && (R = xN(R)), yN(R, e.ADD_TAGS, et))), pN(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? pe.attributeCheck = e.ADD_ATTR : nN(e.ADD_ATTR) && (z === le && (z = xN(z)), yN(z, e.ADD_ATTR, et))), pN(e, "ADD_URI_SAFE_ATTR") && nN(e.ADD_URI_SAFE_ATTR) && yN(Re, e.ADD_URI_SAFE_ATTR, et), pN(e, "FORBID_CONTENTS") && nN(e.FORBID_CONTENTS) && (Pe === Fe && (Pe = xN(Pe)), yN(Pe, e.FORBID_CONTENTS, et)), pN(e, "ADD_FORBID_CONTENTS") && nN(e.ADD_FORBID_CONTENTS) && (Pe === Fe && (Pe = xN(Pe)), yN(Pe, e.ADD_FORBID_CONTENTS, et)), je && (R["#text"] = !0), be && yN(R, [
|
|
29690
29690
|
"html",
|
|
29691
29691
|
"head",
|
|
29692
29692
|
"body"
|
|
29693
|
-
]), R.table && (
|
|
29694
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
29695
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
29693
|
+
]), R.table && (yN(R, ["tbody"]), delete de.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
29694
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw gN("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
29695
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw gN("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
29696
29696
|
let t = x;
|
|
29697
29697
|
x = e.TRUSTED_TYPES_POLICY;
|
|
29698
29698
|
try {
|
|
@@ -29701,12 +29701,12 @@ function nP() {
|
|
|
29701
29701
|
throw x = t, e;
|
|
29702
29702
|
}
|
|
29703
29703
|
} else e.TRUSTED_TYPES_POLICY === null ? (x = void 0, S = "") : (x === void 0 && (x = k()), x && typeof S == "string" && (S = D("")));
|
|
29704
|
-
|
|
29705
|
-
}, at =
|
|
29704
|
+
GM && GM(e), tt = e;
|
|
29705
|
+
}, at = yN({}, [
|
|
29706
|
+
...EN,
|
|
29706
29707
|
...DN,
|
|
29707
|
-
...ON
|
|
29708
|
-
|
|
29709
|
-
]), ot = bN({}, [...AN, ...jN]), st = function(e, t, n) {
|
|
29708
|
+
...ON
|
|
29709
|
+
]), ot = yN({}, [...kN, ...AN]), st = function(e, t, n) {
|
|
29710
29710
|
return t.namespaceURI === He ? e === "svg" : t.namespaceURI === Be ? e === "svg" && (n === "annotation-xml" || Je[n]) : !!at[e];
|
|
29711
29711
|
}, ct = function(e, t, n) {
|
|
29712
29712
|
return t.namespaceURI === He ? e === "math" : t.namespaceURI === Ve ? e === "math" && Xe[n] : !!ot[e];
|
|
@@ -29718,23 +29718,23 @@ function nP() {
|
|
|
29718
29718
|
namespaceURI: Ue,
|
|
29719
29719
|
tagName: "template"
|
|
29720
29720
|
});
|
|
29721
|
-
let n =
|
|
29721
|
+
let n = rN(e.tagName), r = rN(t.tagName);
|
|
29722
29722
|
return Ge[e.namespaceURI] ? e.namespaceURI === Ve ? st(n, t, r) : e.namespaceURI === Be ? ct(n, t, r) : e.namespaceURI === He ? lt(n, t, r) : !!(Qe === "application/xhtml+xml" && Ge[e.namespaceURI]) : !1;
|
|
29723
29723
|
}, dt = function(e) {
|
|
29724
|
-
|
|
29724
|
+
eN(t.removed, { element: e });
|
|
29725
29725
|
try {
|
|
29726
29726
|
g(e).removeChild(e);
|
|
29727
29727
|
} catch {
|
|
29728
|
-
if (p(e), !g(e)) throw
|
|
29728
|
+
if (p(e), !g(e)) throw gN("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
29729
29729
|
}
|
|
29730
29730
|
}, ft = function(e) {
|
|
29731
29731
|
ht(e);
|
|
29732
29732
|
let t = h(e);
|
|
29733
29733
|
if (t) {
|
|
29734
29734
|
let e = [];
|
|
29735
|
-
|
|
29736
|
-
|
|
29737
|
-
}),
|
|
29735
|
+
ZM(t, (t) => {
|
|
29736
|
+
eN(e, t);
|
|
29737
|
+
}), ZM(e, (e) => {
|
|
29738
29738
|
try {
|
|
29739
29739
|
p(e);
|
|
29740
29740
|
} catch {}
|
|
@@ -29749,12 +29749,12 @@ function nP() {
|
|
|
29749
29749
|
}
|
|
29750
29750
|
}, pt = function(e, n) {
|
|
29751
29751
|
try {
|
|
29752
|
-
|
|
29752
|
+
eN(t.removed, {
|
|
29753
29753
|
attribute: n.getAttributeNode(e),
|
|
29754
29754
|
from: n
|
|
29755
29755
|
});
|
|
29756
29756
|
} catch {
|
|
29757
|
-
|
|
29757
|
+
eN(t.removed, {
|
|
29758
29758
|
attribute: null,
|
|
29759
29759
|
from: n
|
|
29760
29760
|
});
|
|
@@ -29777,7 +29777,7 @@ function nP() {
|
|
|
29777
29777
|
let t = [e];
|
|
29778
29778
|
for (; t.length > 0;) {
|
|
29779
29779
|
let e = t.pop();
|
|
29780
|
-
(y ? y(e) : e.nodeType) ===
|
|
29780
|
+
(y ? y(e) : e.nodeType) === XN.element && mt(e);
|
|
29781
29781
|
let n = h(e);
|
|
29782
29782
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
29783
29783
|
}
|
|
@@ -29786,13 +29786,13 @@ function nP() {
|
|
|
29786
29786
|
let t = [e];
|
|
29787
29787
|
for (; t.length > 0;) {
|
|
29788
29788
|
let e = t.pop(), n = y ? y(e) : e.nodeType;
|
|
29789
|
-
if (n ===
|
|
29789
|
+
if (n === XN.processingInstruction || n === XN.comment && hN(qN, e.data)) {
|
|
29790
29790
|
try {
|
|
29791
29791
|
p(e);
|
|
29792
29792
|
} catch {}
|
|
29793
29793
|
continue;
|
|
29794
29794
|
}
|
|
29795
|
-
if (n ===
|
|
29795
|
+
if (n === XN.element) {
|
|
29796
29796
|
let t = e, n = et(b ? b(e) : e.nodeName);
|
|
29797
29797
|
try {
|
|
29798
29798
|
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
|
|
@@ -29805,7 +29805,7 @@ function nP() {
|
|
|
29805
29805
|
let t = null, r = null;
|
|
29806
29806
|
if (we) e = "<remove></remove>" + e;
|
|
29807
29807
|
else {
|
|
29808
|
-
let t =
|
|
29808
|
+
let t = aN(e, /^[\r\n\t ]+/);
|
|
29809
29809
|
r = t && t[0];
|
|
29810
29810
|
}
|
|
29811
29811
|
Qe === "application/xhtml+xml" && Ue === He && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
@@ -29824,13 +29824,13 @@ function nP() {
|
|
|
29824
29824
|
}, vt = function(e) {
|
|
29825
29825
|
return M.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
29826
29826
|
}, yt = function(e) {
|
|
29827
|
-
return e =
|
|
29827
|
+
return e = oN(e, L, " "), e = oN(e, ee, " "), e = oN(e, te, " "), e;
|
|
29828
29828
|
}, bt = function(e) {
|
|
29829
29829
|
e.normalize();
|
|
29830
29830
|
let t = M.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
29831
29831
|
for (; n;) n.data = yt(n.data), n = t.nextNode();
|
|
29832
29832
|
let r = e.querySelectorAll?.call(e, "template");
|
|
29833
|
-
r &&
|
|
29833
|
+
r && ZM(r, (e) => {
|
|
29834
29834
|
St(e.content) && bt(e.content);
|
|
29835
29835
|
});
|
|
29836
29836
|
}, xt = function(e) {
|
|
@@ -29839,7 +29839,7 @@ function nP() {
|
|
|
29839
29839
|
}, St = function(e) {
|
|
29840
29840
|
if (!y || typeof e != "object" || !e) return !1;
|
|
29841
29841
|
try {
|
|
29842
|
-
return y(e) ===
|
|
29842
|
+
return y(e) === XN.documentFragment;
|
|
29843
29843
|
} catch {
|
|
29844
29844
|
return !1;
|
|
29845
29845
|
}
|
|
@@ -29852,14 +29852,14 @@ function nP() {
|
|
|
29852
29852
|
}
|
|
29853
29853
|
};
|
|
29854
29854
|
function wt(e, n, r) {
|
|
29855
|
-
e.length !== 0 &&
|
|
29855
|
+
e.length !== 0 && ZM(e, (e) => {
|
|
29856
29856
|
e.call(t, n, r, tt);
|
|
29857
29857
|
});
|
|
29858
29858
|
}
|
|
29859
29859
|
let Tt = function(e, t) {
|
|
29860
|
-
return !!(ye && e.hasChildNodes() && !Ct(e.firstElementChild) &&
|
|
29860
|
+
return !!(ye && e.hasChildNodes() && !Ct(e.firstElementChild) && hN(KN, e.textContent) && hN(KN, e.innerHTML) || ye && e.namespaceURI === He && t === "style" && Ct(e.firstElementChild) || e.nodeType === XN.processingInstruction || ye && e.nodeType === XN.comment && hN(qN, e.data));
|
|
29861
29861
|
}, Et = function(e, t) {
|
|
29862
|
-
if (!de[t] && At(t) && (ue.tagNameCheck instanceof RegExp &&
|
|
29862
|
+
if (!de[t] && At(t) && (ue.tagNameCheck instanceof RegExp && hN(ue.tagNameCheck, t) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(t))) return !1;
|
|
29863
29863
|
if (je && !Pe[t]) {
|
|
29864
29864
|
let t = g(e), n = h(e);
|
|
29865
29865
|
if (n && t) {
|
|
@@ -29884,22 +29884,22 @@ function nP() {
|
|
|
29884
29884
|
let t = Et(e, r);
|
|
29885
29885
|
return t === !1 && wt(I.afterSanitizeElements, e, null), t;
|
|
29886
29886
|
}
|
|
29887
|
-
if ((y ? y(e) : e.nodeType) ===
|
|
29888
|
-
if (ve && e.nodeType ===
|
|
29887
|
+
if ((y ? y(e) : e.nodeType) === XN.element && !ut(e) || (r === "noscript" || r === "noembed" || r === "noframes") && hN(JN, e.innerHTML)) return dt(e), !0;
|
|
29888
|
+
if (ve && e.nodeType === XN.text) {
|
|
29889
29889
|
let n = yt(e.textContent);
|
|
29890
|
-
e.textContent !== n && (
|
|
29890
|
+
e.textContent !== n && (eN(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
29891
29891
|
}
|
|
29892
29892
|
return wt(I.afterSanitizeElements, e, null), !1;
|
|
29893
29893
|
}, Ot = function(e, t, r) {
|
|
29894
29894
|
if (fe[t] || ye && t === "patchsrc" || ye && t === "for" && e !== "label" && e !== "output" || Oe && (t === "id" || t === "name") && (r in n || r in nt)) return !1;
|
|
29895
29895
|
let i = z[t] || pe.attributeCheck instanceof Function && pe.attributeCheck(t, e);
|
|
29896
|
-
if (!(he &&
|
|
29896
|
+
if (!(he && hN(ne, t)) && !(me && hN(re, t))) {
|
|
29897
29897
|
if (!i) {
|
|
29898
|
-
if (!(At(e) && (ue.tagNameCheck instanceof RegExp &&
|
|
29899
|
-
} else if (!Re[t] && !
|
|
29898
|
+
if (!(At(e) && (ue.tagNameCheck instanceof RegExp && hN(ue.tagNameCheck, e) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(e)) && (ue.attributeNameCheck instanceof RegExp && hN(ue.attributeNameCheck, t) || ue.attributeNameCheck instanceof Function && ue.attributeNameCheck(t, e)) || t === "is" && ue.allowCustomizedBuiltInElements && (ue.tagNameCheck instanceof RegExp && hN(ue.tagNameCheck, r) || ue.tagNameCheck instanceof Function && ue.tagNameCheck(r)))) return !1;
|
|
29899
|
+
} else if (!Re[t] && !hN(se, oN(r, ae, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && sN(r, "data:") === 0 && Ie[e]) && !(ge && !hN(ie, oN(r, ae, ""))) && r) return !1;
|
|
29900
29900
|
}
|
|
29901
29901
|
return !0;
|
|
29902
|
-
}, kt =
|
|
29902
|
+
}, kt = yN({}, [
|
|
29903
29903
|
"annotation-xml",
|
|
29904
29904
|
"color-profile",
|
|
29905
29905
|
"font-face",
|
|
@@ -29909,7 +29909,7 @@ function nP() {
|
|
|
29909
29909
|
"font-face-uri",
|
|
29910
29910
|
"missing-glyph"
|
|
29911
29911
|
]), At = function(e) {
|
|
29912
|
-
return !kt[
|
|
29912
|
+
return !kt[rN(e)] && hN(oe, e);
|
|
29913
29913
|
}, jt = function(e, t, n, r) {
|
|
29914
29914
|
if (x && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
29915
29915
|
case "TrustedHTML": return D(r);
|
|
@@ -29918,7 +29918,7 @@ function nP() {
|
|
|
29918
29918
|
return r;
|
|
29919
29919
|
}, Mt = function(e, n, r, i) {
|
|
29920
29920
|
try {
|
|
29921
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), xt(e) ? dt(e) :
|
|
29921
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), xt(e) ? dt(e) : $M(t.removed);
|
|
29922
29922
|
} catch {
|
|
29923
29923
|
pt(n, e);
|
|
29924
29924
|
}
|
|
@@ -29934,12 +29934,12 @@ function nP() {
|
|
|
29934
29934
|
forceKeepAttr: void 0
|
|
29935
29935
|
}, r = t.length, i = et(e.nodeName);
|
|
29936
29936
|
for (; r--;) {
|
|
29937
|
-
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = et(o), u = c, d = o === "value" ? u :
|
|
29938
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, wt(I.uponSanitizeAttribute, e, n), d = n.attrValue, ke && (l === "id" || l === "name") &&
|
|
29937
|
+
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = et(o), u = c, d = o === "value" ? u : cN(u);
|
|
29938
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, wt(I.uponSanitizeAttribute, e, n), d = n.attrValue, ke && (l === "id" || l === "name") && sN(d, Ae) !== 0 && (pt(o, e), d = Ae + d), ye && hN(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
29939
29939
|
pt(o, e);
|
|
29940
29940
|
continue;
|
|
29941
29941
|
}
|
|
29942
|
-
if (l === "attributename" &&
|
|
29942
|
+
if (l === "attributename" && aN(d, "href")) {
|
|
29943
29943
|
pt(o, e);
|
|
29944
29944
|
continue;
|
|
29945
29945
|
}
|
|
@@ -29948,7 +29948,7 @@ function nP() {
|
|
|
29948
29948
|
pt(o, e);
|
|
29949
29949
|
continue;
|
|
29950
29950
|
}
|
|
29951
|
-
if (!_e &&
|
|
29951
|
+
if (!_e && hN(YN, d)) {
|
|
29952
29952
|
pt(o, e);
|
|
29953
29953
|
continue;
|
|
29954
29954
|
}
|
|
@@ -29962,7 +29962,7 @@ function nP() {
|
|
|
29962
29962
|
wt(I.afterSanitizeAttributes, e, null);
|
|
29963
29963
|
}, Pt = function(e) {
|
|
29964
29964
|
let t = null, n = vt(e);
|
|
29965
|
-
for (wt(I.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (wt(I.uponSanitizeShadowNode, t, null), Dt(t, e), Nt(t), St(t.content) && Pt(t.content), (y ? y(t) : t.nodeType) ===
|
|
29965
|
+
for (wt(I.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (wt(I.uponSanitizeShadowNode, t, null), Dt(t, e), Nt(t), St(t.content) && Pt(t.content), (y ? y(t) : t.nodeType) === XN.element) {
|
|
29966
29966
|
let e = _(t);
|
|
29967
29967
|
St(e) && (Ft(e), Pt(e));
|
|
29968
29968
|
}
|
|
@@ -29978,7 +29978,7 @@ function nP() {
|
|
|
29978
29978
|
Pt(e.shadow);
|
|
29979
29979
|
continue;
|
|
29980
29980
|
}
|
|
29981
|
-
let n = e.node, r = (y ? y(n) : n.nodeType) ===
|
|
29981
|
+
let n = e.node, r = (y ? y(n) : n.nodeType) === XN.element, i = h(n);
|
|
29982
29982
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
29983
29983
|
node: i[e],
|
|
29984
29984
|
shadow: null
|
|
@@ -30007,24 +30007,24 @@ function nP() {
|
|
|
30007
30007
|
};
|
|
30008
30008
|
return t.sanitize = function(e) {
|
|
30009
30009
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
30010
|
-
if (We = !e, We && (e = "<!-->"), typeof e != "string" && !Ct(e) && (e =
|
|
30010
|
+
if (We = !e, We && (e = "<!-->"), typeof e != "string" && !Ct(e) && (e = SN(e), typeof e != "string")) throw gN("dirty is not a string, aborting");
|
|
30011
30011
|
if (!t.isSupported) return e;
|
|
30012
|
-
xe ? (R = Se, z = Ce) : it(n), (I.uponSanitizeElement.length > 0 || I.uponSanitizeAttribute.length > 0) && (R =
|
|
30012
|
+
xe ? (R = Se, z = Ce) : it(n), (I.uponSanitizeElement.length > 0 || I.uponSanitizeAttribute.length > 0) && (R = xN(R)), I.uponSanitizeAttribute.length > 0 && (z = xN(z)), t.removed = [];
|
|
30013
30013
|
let c = Me && typeof e != "string" && Ct(e);
|
|
30014
30014
|
if (c) {
|
|
30015
30015
|
gt(e);
|
|
30016
30016
|
let t = b ? b(e) : e.nodeName;
|
|
30017
30017
|
if (typeof t == "string") {
|
|
30018
30018
|
let n = et(t);
|
|
30019
|
-
if (!R[n] || de[n]) throw ft(e),
|
|
30019
|
+
if (!R[n] || de[n]) throw ft(e), gN("root node is forbidden and cannot be sanitized in-place");
|
|
30020
30020
|
}
|
|
30021
|
-
if (xt(e)) throw ft(e),
|
|
30021
|
+
if (xt(e)) throw ft(e), gN("root node is clobbered and cannot be sanitized in-place");
|
|
30022
30022
|
try {
|
|
30023
30023
|
Ft(e);
|
|
30024
30024
|
} catch (t) {
|
|
30025
30025
|
throw ft(e), t;
|
|
30026
30026
|
}
|
|
30027
|
-
} else if (Ct(e)) i = _t("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType ===
|
|
30027
|
+
} else if (Ct(e)) i = _t("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === XN.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Ft(a);
|
|
30028
30028
|
else {
|
|
30029
30029
|
if (!Te && !ve && !be && e.indexOf("<") === -1) return x && De ? D(e) : e;
|
|
30030
30030
|
if (i = _t(e), !i) return Te ? null : De ? S : "";
|
|
@@ -30034,11 +30034,11 @@ function nP() {
|
|
|
30034
30034
|
try {
|
|
30035
30035
|
for (; o = u.nextNode();) Dt(o, l), Nt(o), St(o.content) && Pt(o.content);
|
|
30036
30036
|
} catch (n) {
|
|
30037
|
-
throw c && (ft(e),
|
|
30037
|
+
throw c && (ft(e), ZM(t.removed, (e) => {
|
|
30038
30038
|
e.element && ht(e.element);
|
|
30039
30039
|
})), n;
|
|
30040
30040
|
}
|
|
30041
|
-
if (c) return
|
|
30041
|
+
if (c) return ZM(t.removed, (e) => {
|
|
30042
30042
|
e.element && ht(e.element);
|
|
30043
30043
|
}), ve && bt(e), e;
|
|
30044
30044
|
if (Te) {
|
|
@@ -30047,7 +30047,7 @@ function nP() {
|
|
|
30047
30047
|
return (z.shadowroot || z.shadowrootmode) && (s = F.call(r, s, !0)), s;
|
|
30048
30048
|
}
|
|
30049
30049
|
let d = be ? i.outerHTML : i.innerHTML;
|
|
30050
|
-
return be && R["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name &&
|
|
30050
|
+
return be && R["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && hN(WN, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), ve && (d = yt(d)), x && De ? D(d) : d;
|
|
30051
30051
|
}, t.setConfig = function() {
|
|
30052
30052
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30053
30053
|
it(e), xe = !0, Se = R, Ce = z;
|
|
@@ -30058,23 +30058,23 @@ function nP() {
|
|
|
30058
30058
|
let r = et(e), i = et(t);
|
|
30059
30059
|
return Ot(r, i, n);
|
|
30060
30060
|
}, t.addHook = function(e, t) {
|
|
30061
|
-
typeof t == "function" &&
|
|
30061
|
+
typeof t == "function" && pN(I, e) && eN(I[e], t);
|
|
30062
30062
|
}, t.removeHook = function(e, t) {
|
|
30063
|
-
if (
|
|
30063
|
+
if (pN(I, e)) {
|
|
30064
30064
|
if (t !== void 0) {
|
|
30065
|
-
let n =
|
|
30066
|
-
return n === -1 ? void 0 :
|
|
30065
|
+
let n = QM(I[e], t);
|
|
30066
|
+
return n === -1 ? void 0 : tN(I[e], n, 1)[0];
|
|
30067
30067
|
}
|
|
30068
|
-
return
|
|
30068
|
+
return $M(I[e]);
|
|
30069
30069
|
}
|
|
30070
30070
|
}, t.removeHooks = function(e) {
|
|
30071
|
-
|
|
30071
|
+
pN(I, e) && (I[e] = []);
|
|
30072
30072
|
}, t.removeAllHooks = function() {
|
|
30073
|
-
I =
|
|
30073
|
+
I = $N();
|
|
30074
30074
|
}, t;
|
|
30075
30075
|
}
|
|
30076
|
-
var
|
|
30077
|
-
let { run: n } = u(
|
|
30076
|
+
var nP = tP(), rP = ({ show: e, setModalShow: t }) => {
|
|
30077
|
+
let { run: n } = u(dj), [r, i] = v(1), { isPending: a, isLoading: o, isError: s, error: c, data: l, isFetching: d, isPlaceholderData: f } = k({
|
|
30078
30078
|
queryKey: [
|
|
30079
30079
|
"run_changelog",
|
|
30080
30080
|
n,
|
|
@@ -30102,11 +30102,11 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30102
30102
|
bordered: !0,
|
|
30103
30103
|
hover: !0,
|
|
30104
30104
|
children: /* @__PURE__ */ x("tbody", { children: l.items.map((e) => /* @__PURE__ */ S("tr", { children: [
|
|
30105
|
-
/* @__PURE__ */ x("td", { children: /* @__PURE__ */ x(
|
|
30105
|
+
/* @__PURE__ */ x("td", { children: /* @__PURE__ */ x(Uk, {
|
|
30106
30106
|
format: "DD-MM-YYYY",
|
|
30107
30107
|
children: e.date_created
|
|
30108
30108
|
}) }),
|
|
30109
|
-
/* @__PURE__ */ x("td", { children: /* @__PURE__ */ x("span", { dangerouslySetInnerHTML: { __html:
|
|
30109
|
+
/* @__PURE__ */ x("td", { children: /* @__PURE__ */ x("span", { dangerouslySetInnerHTML: { __html: nP.sanitize(e.message) } }) }),
|
|
30110
30110
|
/* @__PURE__ */ S("td", { children: [
|
|
30111
30111
|
e.user.first_name,
|
|
30112
30112
|
" ",
|
|
@@ -30114,7 +30114,7 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30114
30114
|
] })
|
|
30115
30115
|
] }, e.id)) })
|
|
30116
30116
|
}),
|
|
30117
|
-
/* @__PURE__ */ x(
|
|
30117
|
+
/* @__PURE__ */ x(Tk, {
|
|
30118
30118
|
data: l,
|
|
30119
30119
|
setPage: i,
|
|
30120
30120
|
isPlaceholderData: f
|
|
@@ -30131,19 +30131,19 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30131
30131
|
}) })
|
|
30132
30132
|
]
|
|
30133
30133
|
});
|
|
30134
|
-
},
|
|
30134
|
+
}, iP = ({ size: e }) => {
|
|
30135
30135
|
let [t, n] = v(!1);
|
|
30136
30136
|
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(W, {
|
|
30137
30137
|
size: e,
|
|
30138
30138
|
variant: "primary",
|
|
30139
30139
|
onClick: () => n(!t),
|
|
30140
30140
|
children: "Run history"
|
|
30141
|
-
}), t && /* @__PURE__ */ x(
|
|
30141
|
+
}), t && /* @__PURE__ */ x(rP, {
|
|
30142
30142
|
show: t,
|
|
30143
30143
|
setModalShow: n
|
|
30144
30144
|
})] });
|
|
30145
|
-
},
|
|
30146
|
-
let { run: n } = u(
|
|
30145
|
+
}, aP = ({ show: e, setModalShow: t }) => {
|
|
30146
|
+
let { run: n } = u(dj);
|
|
30147
30147
|
return /* @__PURE__ */ S(K, {
|
|
30148
30148
|
show: e,
|
|
30149
30149
|
size: "xl",
|
|
@@ -30153,7 +30153,7 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30153
30153
|
closeButton: !0,
|
|
30154
30154
|
children: /* @__PURE__ */ S(K.Title, { children: ["All steps of run ", n.label] })
|
|
30155
30155
|
}),
|
|
30156
|
-
/* @__PURE__ */ x(K.Body, { children: /* @__PURE__ */ x(
|
|
30156
|
+
/* @__PURE__ */ x(K.Body, { children: /* @__PURE__ */ x(NM, { hideLabel: !1 }) }),
|
|
30157
30157
|
/* @__PURE__ */ x(K.Footer, { children: /* @__PURE__ */ x(W, {
|
|
30158
30158
|
className: "float-end",
|
|
30159
30159
|
variant: "secondary",
|
|
@@ -30164,19 +30164,19 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30164
30164
|
}) })
|
|
30165
30165
|
]
|
|
30166
30166
|
});
|
|
30167
|
-
},
|
|
30167
|
+
}, oP = ({ size: e }) => {
|
|
30168
30168
|
let [n, r] = v(!1);
|
|
30169
30169
|
return /* @__PURE__ */ S(t.Fragment, { children: [/* @__PURE__ */ x(W, {
|
|
30170
30170
|
size: e,
|
|
30171
30171
|
variant: "primary",
|
|
30172
30172
|
onClick: () => r(!0),
|
|
30173
30173
|
children: "All run steps"
|
|
30174
|
-
}), n && /* @__PURE__ */ x(
|
|
30174
|
+
}), n && /* @__PURE__ */ x(aP, {
|
|
30175
30175
|
show: n,
|
|
30176
30176
|
setModalShow: r
|
|
30177
30177
|
})] });
|
|
30178
|
-
},
|
|
30179
|
-
let { runStep: e, run: t } = u(
|
|
30178
|
+
}, sP = () => {
|
|
30179
|
+
let { runStep: e, run: t } = u(dj), [n, r] = v(!1), [i, a] = v({}), [o, s] = v(null), [c, l] = v([]), [f, p] = v([]), [m, h] = v([]), [g, _] = v(""), [C, w] = v(!1), [T, E, D] = O({ queries: [
|
|
30180
30180
|
{
|
|
30181
30181
|
queryKey: ["templates", m],
|
|
30182
30182
|
queryFn: () => Ot({ reworkRecipes: m }),
|
|
@@ -30398,17 +30398,17 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30398
30398
|
onClick: () => r(!0),
|
|
30399
30399
|
children: "Set Rework"
|
|
30400
30400
|
})] });
|
|
30401
|
-
},
|
|
30401
|
+
}, cP = {
|
|
30402
30402
|
items: [],
|
|
30403
30403
|
amountOfPages: 0,
|
|
30404
30404
|
currentPage: 0,
|
|
30405
30405
|
totalItems: 0,
|
|
30406
30406
|
hasMore: !1
|
|
30407
|
-
},
|
|
30408
|
-
let { environment: e } = L(), { runStep: t, run: n } = u(
|
|
30407
|
+
}, lP = () => {
|
|
30408
|
+
let { environment: e } = L(), { runStep: t, run: n } = u(dj), r = O({ queries: [
|
|
30409
30409
|
{
|
|
30410
30410
|
queryKey: ["monitors", t.process_module.module.equipment],
|
|
30411
|
-
queryFn: () => t.process_module.module.equipment ? We({ equipment: t.process_module.module.equipment }) :
|
|
30411
|
+
queryFn: () => t.process_module.module.equipment ? We({ equipment: t.process_module.module.equipment }) : cP
|
|
30412
30412
|
},
|
|
30413
30413
|
{
|
|
30414
30414
|
queryKey: ["ecn", t.process_module.module],
|
|
@@ -30425,7 +30425,7 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30425
30425
|
step: t
|
|
30426
30426
|
})
|
|
30427
30427
|
}
|
|
30428
|
-
] }), [i, a, o, s] = r, [c, l] = v(!0), { addReadingCallbackFn: p, removeReadingCallbackFn: m } =
|
|
30428
|
+
] }), [i, a, o, s] = r, [c, l] = v(!0), { addReadingCallbackFn: p, removeReadingCallbackFn: m } = CA(), [h, g] = v(""), _ = f();
|
|
30429
30429
|
d(() => (p(_, g), () => {
|
|
30430
30430
|
m(_);
|
|
30431
30431
|
}), []);
|
|
@@ -30465,8 +30465,8 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30465
30465
|
className: "mx-1 badge bg-primary",
|
|
30466
30466
|
children: "Rework"
|
|
30467
30467
|
}),
|
|
30468
|
-
/* @__PURE__ */ x(kM, {}),
|
|
30469
30468
|
/* @__PURE__ */ x(OM, {}),
|
|
30469
|
+
/* @__PURE__ */ x(DM, {}),
|
|
30470
30470
|
t.is_skipped && /* @__PURE__ */ x("span", {
|
|
30471
30471
|
style: { fontSize: "1.5rem" },
|
|
30472
30472
|
className: "badge bg-info",
|
|
@@ -30475,9 +30475,9 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30475
30475
|
]
|
|
30476
30476
|
})]
|
|
30477
30477
|
}),
|
|
30478
|
-
/* @__PURE__ */ x(
|
|
30479
|
-
t.label && /* @__PURE__ */ x(
|
|
30480
|
-
/* @__PURE__ */ x(
|
|
30478
|
+
/* @__PURE__ */ x(Wk, { run: n }),
|
|
30479
|
+
t.label && /* @__PURE__ */ x(gM, { label: t.label }),
|
|
30480
|
+
/* @__PURE__ */ x(_M, { runStep: t }),
|
|
30481
30481
|
t.is_finished && /* @__PURE__ */ S(ni, {
|
|
30482
30482
|
variant: "success",
|
|
30483
30483
|
children: [
|
|
@@ -30504,18 +30504,18 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30504
30504
|
}),
|
|
30505
30505
|
s.data?.items.length == 1 && /* @__PURE__ */ S(b, { children: [
|
|
30506
30506
|
/* @__PURE__ */ x("h4", { children: "Measurements by part" }),
|
|
30507
|
-
/* @__PURE__ */ x(
|
|
30507
|
+
/* @__PURE__ */ x(fj, {
|
|
30508
30508
|
requirement: s.data.items[0],
|
|
30509
30509
|
step: t,
|
|
30510
30510
|
editOnly: !1
|
|
30511
30511
|
}),
|
|
30512
30512
|
/* @__PURE__ */ x("h4", { children: "Measurements for whole step" }),
|
|
30513
|
-
/* @__PURE__ */ x(
|
|
30513
|
+
/* @__PURE__ */ x(pj, {
|
|
30514
30514
|
requirement: s.data.items[0],
|
|
30515
30515
|
editOnly: !1
|
|
30516
30516
|
})
|
|
30517
30517
|
] }),
|
|
30518
|
-
s.data?.items.length != 1 && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h3", { children: "Experimental split" }), /* @__PURE__ */ x(
|
|
30518
|
+
s.data?.items.length != 1 && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h3", { children: "Experimental split" }), /* @__PURE__ */ x(BA, {
|
|
30519
30519
|
run: n,
|
|
30520
30520
|
runStep: t
|
|
30521
30521
|
})] }),
|
|
@@ -30527,12 +30527,12 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30527
30527
|
className: "pm-3",
|
|
30528
30528
|
children: [/* @__PURE__ */ S(Di, { children: [
|
|
30529
30529
|
/* @__PURE__ */ x("h3", { children: "Checklist" }),
|
|
30530
|
-
/* @__PURE__ */ x(
|
|
30530
|
+
/* @__PURE__ */ x(SM, {}),
|
|
30531
30531
|
/* @__PURE__ */ x("h2", {
|
|
30532
30532
|
className: "mt-2",
|
|
30533
30533
|
children: "Step files"
|
|
30534
30534
|
}),
|
|
30535
|
-
/* @__PURE__ */ x(
|
|
30535
|
+
/* @__PURE__ */ x(Qk, { runStep: t })
|
|
30536
30536
|
] }), /* @__PURE__ */ S(Di, { children: [
|
|
30537
30537
|
/* @__PURE__ */ x("h2", { children: "Parameters" }),
|
|
30538
30538
|
/* @__PURE__ */ S("div", {
|
|
@@ -30550,18 +30550,18 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30550
30550
|
children: "Show only emphasized parameters"
|
|
30551
30551
|
})]
|
|
30552
30552
|
}),
|
|
30553
|
-
/* @__PURE__ */ x(
|
|
30553
|
+
/* @__PURE__ */ x(Xk, {
|
|
30554
30554
|
runStep: t,
|
|
30555
30555
|
editableParameters: !1,
|
|
30556
30556
|
showOnlyEmphasizedParameters: c
|
|
30557
30557
|
}),
|
|
30558
30558
|
t.has_instructions && t.instructions && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("h3", { children: "Instructions" }), /* @__PURE__ */ x("span", { dangerouslySetInnerHTML: { __html: t.instructions } })] }),
|
|
30559
|
-
/* @__PURE__ */ x(
|
|
30559
|
+
/* @__PURE__ */ x(wM, {}),
|
|
30560
30560
|
/* @__PURE__ */ x("h3", {
|
|
30561
30561
|
className: "pt-3",
|
|
30562
30562
|
children: "Rework"
|
|
30563
30563
|
}),
|
|
30564
|
-
/* @__PURE__ */ x(
|
|
30564
|
+
/* @__PURE__ */ x(sP, {})
|
|
30565
30565
|
] })]
|
|
30566
30566
|
}),
|
|
30567
30567
|
/* @__PURE__ */ S("div", {
|
|
@@ -30569,8 +30569,8 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30569
30569
|
children: [/* @__PURE__ */ x("h2", { children: "Run steps" }), /* @__PURE__ */ S("div", {
|
|
30570
30570
|
className: "d-flex gap-2 flex-wrap justify-content-end",
|
|
30571
30571
|
children: [
|
|
30572
|
-
/* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(
|
|
30573
|
-
/* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(
|
|
30572
|
+
/* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(oP, { size: void 0 }) }),
|
|
30573
|
+
/* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(iP, { size: void 0 }) }),
|
|
30574
30574
|
/* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(LO, {
|
|
30575
30575
|
size: void 0,
|
|
30576
30576
|
moduleId: t.process_module.module.id
|
|
@@ -30578,7 +30578,7 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30578
30578
|
]
|
|
30579
30579
|
})]
|
|
30580
30580
|
}),
|
|
30581
|
-
/* @__PURE__ */ x(
|
|
30581
|
+
/* @__PURE__ */ x(NM, {
|
|
30582
30582
|
pageSize: n.run_type === Kt.RESEARCH ? 5 : 1e3,
|
|
30583
30583
|
hideLabel: !0
|
|
30584
30584
|
})
|
|
@@ -30624,8 +30624,8 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30624
30624
|
})
|
|
30625
30625
|
})] })
|
|
30626
30626
|
});
|
|
30627
|
-
},
|
|
30628
|
-
let [e, t] = v(!1), { modalProperties: n } = u(
|
|
30627
|
+
}, uP = () => {
|
|
30628
|
+
let [e, t] = v(!1), { modalProperties: n } = u(dj), r = () => {
|
|
30629
30629
|
t(!1), n.show = !1;
|
|
30630
30630
|
};
|
|
30631
30631
|
return d(() => {
|
|
@@ -30650,12 +30650,12 @@ var rP = nP(), iP = ({ show: e, setModalShow: t }) => {
|
|
|
30650
30650
|
};
|
|
30651
30651
|
//#endregion
|
|
30652
30652
|
//#region src/modules/run/components/step/view/runStepExecuteElement.tsx
|
|
30653
|
-
function
|
|
30654
|
-
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(
|
|
30653
|
+
function dP() {
|
|
30654
|
+
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(lP, {}), /* @__PURE__ */ x(uP, {})] });
|
|
30655
30655
|
}
|
|
30656
30656
|
//#endregion
|
|
30657
30657
|
//#region src/modules/run/components/step/view/runStepExecuteMinimal.tsx
|
|
30658
|
-
function
|
|
30658
|
+
function fP({ run: e, runStep: n, showOnlyEmphasizedParameters: r, reloadRunStepFn: i }) {
|
|
30659
30659
|
let { data: a, refetch: o } = k({
|
|
30660
30660
|
queryKey: ["checklist", n?.id],
|
|
30661
30661
|
queryFn: () => pt({ runStep: n })
|
|
@@ -30704,7 +30704,7 @@ function pP({ run: e, runStep: n, showOnlyEmphasizedParameters: r, reloadRunStep
|
|
|
30704
30704
|
}) })
|
|
30705
30705
|
})]
|
|
30706
30706
|
}),
|
|
30707
|
-
/* @__PURE__ */ x(
|
|
30707
|
+
/* @__PURE__ */ x(FA, {
|
|
30708
30708
|
run: e,
|
|
30709
30709
|
runStep: n
|
|
30710
30710
|
}),
|
|
@@ -30712,7 +30712,7 @@ function pP({ run: e, runStep: n, showOnlyEmphasizedParameters: r, reloadRunStep
|
|
|
30712
30712
|
className: "mt-2",
|
|
30713
30713
|
children: "Parameters"
|
|
30714
30714
|
}),
|
|
30715
|
-
/* @__PURE__ */ x(
|
|
30715
|
+
/* @__PURE__ */ x(Xk, {
|
|
30716
30716
|
runStep: n,
|
|
30717
30717
|
showOnlyEmphasizedParameters: r
|
|
30718
30718
|
}),
|
|
@@ -30720,7 +30720,7 @@ function pP({ run: e, runStep: n, showOnlyEmphasizedParameters: r, reloadRunStep
|
|
|
30720
30720
|
className: "row row-cols-2",
|
|
30721
30721
|
children: [/* @__PURE__ */ x("div", {
|
|
30722
30722
|
className: "col",
|
|
30723
|
-
children: /* @__PURE__ */ x(
|
|
30723
|
+
children: /* @__PURE__ */ x(wM, {
|
|
30724
30724
|
runStep: n,
|
|
30725
30725
|
reloadRunStep: i
|
|
30726
30726
|
})
|
|
@@ -30755,7 +30755,7 @@ function pP({ run: e, runStep: n, showOnlyEmphasizedParameters: r, reloadRunStep
|
|
|
30755
30755
|
s && /* @__PURE__ */ S(b, { children: [s.length === 0 && /* @__PURE__ */ x(ni, {
|
|
30756
30756
|
variant: "info",
|
|
30757
30757
|
children: "No checklist found"
|
|
30758
|
-
}), s.length > 0 && /* @__PURE__ */ x(Ic, { children: s.map((e) => /* @__PURE__ */ x(
|
|
30758
|
+
}), s.length > 0 && /* @__PURE__ */ x(Ic, { children: s.map((e) => /* @__PURE__ */ x(bM, {
|
|
30759
30759
|
checklistItem: e,
|
|
30760
30760
|
refetch: o
|
|
30761
30761
|
}, e.id)) })] })
|
|
@@ -30765,16 +30765,16 @@ function pP({ run: e, runStep: n, showOnlyEmphasizedParameters: r, reloadRunStep
|
|
|
30765
30765
|
children: [/* @__PURE__ */ x("h3", {
|
|
30766
30766
|
className: "mt-2",
|
|
30767
30767
|
children: "Step files"
|
|
30768
|
-
}), /* @__PURE__ */ x(
|
|
30768
|
+
}), /* @__PURE__ */ x(Qk, { runStep: n })]
|
|
30769
30769
|
})]
|
|
30770
30770
|
})
|
|
30771
30771
|
] });
|
|
30772
30772
|
}
|
|
30773
30773
|
//#endregion
|
|
30774
30774
|
//#region src/modules/run/providers/emphasizedParametersProvider.tsx
|
|
30775
|
-
function
|
|
30775
|
+
function pP({ children: e }) {
|
|
30776
30776
|
let [t, n] = v(!1);
|
|
30777
|
-
return /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(
|
|
30777
|
+
return /* @__PURE__ */ x(cn, { children: /* @__PURE__ */ x(Jk.Provider, {
|
|
30778
30778
|
value: {
|
|
30779
30779
|
showOnlyEmphasizedParameters: t,
|
|
30780
30780
|
setShowOnlyEmphasizedParameters: n
|
|
@@ -30787,7 +30787,7 @@ function mP({ children: e }) {
|
|
|
30787
30787
|
}
|
|
30788
30788
|
//#endregion
|
|
30789
30789
|
//#region src/modules/chemical/components/chemicalHeaderElement.tsx
|
|
30790
|
-
function
|
|
30790
|
+
function mP() {
|
|
30791
30791
|
return /* @__PURE__ */ x(Oi, {
|
|
30792
30792
|
fluid: !0,
|
|
30793
30793
|
children: /* @__PURE__ */ x(P, {})
|
|
@@ -30795,7 +30795,7 @@ function hP() {
|
|
|
30795
30795
|
}
|
|
30796
30796
|
//#endregion
|
|
30797
30797
|
//#region src/modules/chemical/form/roomSelectElement.tsx
|
|
30798
|
-
function
|
|
30798
|
+
function hP({ control: e, name: t }) {
|
|
30799
30799
|
let { environment: n } = L(), [r, i] = v([]), [a, o] = v(!0);
|
|
30800
30800
|
return d(() => {
|
|
30801
30801
|
async function e() {
|
|
@@ -30837,21 +30837,21 @@ function gP({ control: e, name: t }) {
|
|
|
30837
30837
|
}
|
|
30838
30838
|
//#endregion
|
|
30839
30839
|
//#region node_modules/qrcode.react/lib/esm/index.js
|
|
30840
|
-
var
|
|
30840
|
+
var gP = Object.defineProperty, _P = Object.getOwnPropertySymbols, vP = Object.prototype.hasOwnProperty, yP = Object.prototype.propertyIsEnumerable, bP = (e, t, n) => t in e ? gP(e, t, {
|
|
30841
30841
|
enumerable: !0,
|
|
30842
30842
|
configurable: !0,
|
|
30843
30843
|
writable: !0,
|
|
30844
30844
|
value: n
|
|
30845
|
-
}) : e[t] = n,
|
|
30846
|
-
for (var n in t || (t = {}))
|
|
30847
|
-
if (
|
|
30845
|
+
}) : e[t] = n, xP = (e, t) => {
|
|
30846
|
+
for (var n in t || (t = {})) vP.call(t, n) && bP(e, n, t[n]);
|
|
30847
|
+
if (_P) for (var n of _P(t)) yP.call(t, n) && bP(e, n, t[n]);
|
|
30848
30848
|
return e;
|
|
30849
|
-
},
|
|
30849
|
+
}, SP = (e, t) => {
|
|
30850
30850
|
var n = {};
|
|
30851
|
-
for (var r in e)
|
|
30852
|
-
if (e != null &&
|
|
30851
|
+
for (var r in e) vP.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
30852
|
+
if (e != null && _P) for (var r of _P(e)) t.indexOf(r) < 0 && yP.call(e, r) && (n[r] = e[r]);
|
|
30853
30853
|
return n;
|
|
30854
|
-
},
|
|
30854
|
+
}, CP;
|
|
30855
30855
|
((e) => {
|
|
30856
30856
|
let t = class t {
|
|
30857
30857
|
constructor(e, n, r, a) {
|
|
@@ -31541,7 +31541,7 @@ var _P = Object.defineProperty, vP = Object.getOwnPropertySymbols, yP = Object.p
|
|
|
31541
31541
|
a.NUMERIC_REGEX = /^[0-9]*$/, a.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, a.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
31542
31542
|
let o = a;
|
|
31543
31543
|
e.QrSegment = a;
|
|
31544
|
-
})(
|
|
31544
|
+
})(CP || (CP = {})), ((e) => {
|
|
31545
31545
|
((e) => {
|
|
31546
31546
|
let t = class {
|
|
31547
31547
|
constructor(e, t) {
|
|
@@ -31550,7 +31550,7 @@ var _P = Object.defineProperty, vP = Object.getOwnPropertySymbols, yP = Object.p
|
|
|
31550
31550
|
};
|
|
31551
31551
|
t.LOW = new t(0, 1), t.MEDIUM = new t(1, 0), t.QUARTILE = new t(2, 3), t.HIGH = new t(3, 2), e.Ecc = t;
|
|
31552
31552
|
})(e.QrCode || (e.QrCode = {}));
|
|
31553
|
-
})(
|
|
31553
|
+
})(CP || (CP = {})), ((e) => {
|
|
31554
31554
|
((e) => {
|
|
31555
31555
|
let t = class {
|
|
31556
31556
|
constructor(e, t) {
|
|
@@ -31582,14 +31582,14 @@ var _P = Object.defineProperty, vP = Object.getOwnPropertySymbols, yP = Object.p
|
|
|
31582
31582
|
0
|
|
31583
31583
|
]), e.Mode = t;
|
|
31584
31584
|
})(e.QrSegment || (e.QrSegment = {}));
|
|
31585
|
-
})(
|
|
31586
|
-
var
|
|
31587
|
-
L:
|
|
31588
|
-
M:
|
|
31589
|
-
Q:
|
|
31590
|
-
H:
|
|
31591
|
-
},
|
|
31592
|
-
function
|
|
31585
|
+
})(CP || (CP = {}));
|
|
31586
|
+
var wP = CP, TP = {
|
|
31587
|
+
L: wP.QrCode.Ecc.LOW,
|
|
31588
|
+
M: wP.QrCode.Ecc.MEDIUM,
|
|
31589
|
+
Q: wP.QrCode.Ecc.QUARTILE,
|
|
31590
|
+
H: wP.QrCode.Ecc.HIGH
|
|
31591
|
+
}, EP = 128, DP = "L", OP = "#FFFFFF", kP = "#000000", AP = !1, jP = 1, MP = 4, NP = 0, PP = .1;
|
|
31592
|
+
function FP(e, t = 0) {
|
|
31593
31593
|
let n = [];
|
|
31594
31594
|
return e.forEach(function(e, r) {
|
|
31595
31595
|
let i = null;
|
|
@@ -31607,12 +31607,12 @@ function IP(e, t = 0) {
|
|
|
31607
31607
|
});
|
|
31608
31608
|
}), n.join("");
|
|
31609
31609
|
}
|
|
31610
|
-
function
|
|
31610
|
+
function IP(e, t) {
|
|
31611
31611
|
return e.slice().map((e, n) => n < t.y || n >= t.y + t.h ? e : e.map((e, n) => n < t.x || n >= t.x + t.w ? e : !1));
|
|
31612
31612
|
}
|
|
31613
|
-
function
|
|
31613
|
+
function LP(e, t, n, r) {
|
|
31614
31614
|
if (r == null) return null;
|
|
31615
|
-
let i = e.length + n * 2, a = Math.floor(t *
|
|
31615
|
+
let i = e.length + n * 2, a = Math.floor(t * PP), o = i / t, s = (r.width || a) * o, c = (r.height || a) * o, l = r.x == null ? e.length / 2 - s / 2 : r.x * o, u = r.y == null ? e.length / 2 - c / 2 : r.y * o, d = r.opacity == null ? 1 : r.opacity, f = null;
|
|
31616
31616
|
if (r.excavate) {
|
|
31617
31617
|
let e = Math.floor(l), t = Math.floor(u);
|
|
31618
31618
|
f = {
|
|
@@ -31633,25 +31633,25 @@ function RP(e, t, n, r) {
|
|
|
31633
31633
|
crossOrigin: p
|
|
31634
31634
|
};
|
|
31635
31635
|
}
|
|
31636
|
-
function
|
|
31637
|
-
return t == null ? e ?
|
|
31636
|
+
function RP(e, t) {
|
|
31637
|
+
return t == null ? e ? MP : NP : Math.max(Math.floor(t), 0);
|
|
31638
31638
|
}
|
|
31639
|
-
function
|
|
31639
|
+
function zP({ value: e, level: n, minVersion: r, includeMargin: i, marginSize: a, imageSettings: o, size: s, boostLevel: c }) {
|
|
31640
31640
|
let l = t.useMemo(() => {
|
|
31641
|
-
let t = (Array.isArray(e) ? e : [e]).reduce((e, t) => (e.push(...
|
|
31642
|
-
return
|
|
31641
|
+
let t = (Array.isArray(e) ? e : [e]).reduce((e, t) => (e.push(...wP.QrSegment.makeSegments(t)), e), []);
|
|
31642
|
+
return wP.QrCode.encodeSegments(t, TP[n], r, void 0, void 0, c);
|
|
31643
31643
|
}, [
|
|
31644
31644
|
e,
|
|
31645
31645
|
n,
|
|
31646
31646
|
r,
|
|
31647
31647
|
c
|
|
31648
31648
|
]), { cells: u, margin: d, numCells: f, calculatedImageSettings: p } = t.useMemo(() => {
|
|
31649
|
-
let e = l.getModules(), t =
|
|
31649
|
+
let e = l.getModules(), t = RP(i, a);
|
|
31650
31650
|
return {
|
|
31651
31651
|
cells: e,
|
|
31652
31652
|
margin: t,
|
|
31653
31653
|
numCells: e.length + t * 2,
|
|
31654
|
-
calculatedImageSettings:
|
|
31654
|
+
calculatedImageSettings: LP(e, s, t, o)
|
|
31655
31655
|
};
|
|
31656
31656
|
}, [
|
|
31657
31657
|
l,
|
|
@@ -31668,15 +31668,15 @@ function BP({ value: e, level: n, minVersion: r, includeMargin: i, marginSize: a
|
|
|
31668
31668
|
calculatedImageSettings: p
|
|
31669
31669
|
};
|
|
31670
31670
|
}
|
|
31671
|
-
var
|
|
31671
|
+
var BP = function() {
|
|
31672
31672
|
try {
|
|
31673
31673
|
new Path2D().addPath(new Path2D());
|
|
31674
31674
|
} catch {
|
|
31675
31675
|
return !1;
|
|
31676
31676
|
}
|
|
31677
31677
|
return !0;
|
|
31678
|
-
}(),
|
|
31679
|
-
let r = e, { value: i, size: a =
|
|
31678
|
+
}(), VP = t.forwardRef(function(e, n) {
|
|
31679
|
+
let r = e, { value: i, size: a = EP, level: o = DP, bgColor: s = OP, fgColor: c = kP, includeMargin: l = AP, minVersion: u = jP, boostLevel: d, marginSize: f, imageSettings: p } = r, m = SP(r, [
|
|
31680
31680
|
"value",
|
|
31681
31681
|
"size",
|
|
31682
31682
|
"level",
|
|
@@ -31687,9 +31687,9 @@ var VP = function() {
|
|
|
31687
31687
|
"boostLevel",
|
|
31688
31688
|
"marginSize",
|
|
31689
31689
|
"imageSettings"
|
|
31690
|
-
]), { style: h } = m, g =
|
|
31690
|
+
]), { style: h } = m, g = SP(m, ["style"]), _ = p?.src, v = t.useRef(null), y = t.useRef(null), b = t.useCallback((e) => {
|
|
31691
31691
|
v.current = e, typeof n == "function" ? n(e) : n && (n.current = e);
|
|
31692
|
-
}, [n]), [x, S] = t.useState(!1), { margin: C, cells: w, numCells: T, calculatedImageSettings: E } =
|
|
31692
|
+
}, [n]), [x, S] = t.useState(!1), { margin: C, cells: w, numCells: T, calculatedImageSettings: E } = zP({
|
|
31693
31693
|
value: i,
|
|
31694
31694
|
level: o,
|
|
31695
31695
|
minVersion: u,
|
|
@@ -31704,11 +31704,11 @@ var VP = function() {
|
|
|
31704
31704
|
let e = v.current, t = e.getContext("2d");
|
|
31705
31705
|
if (!t) return;
|
|
31706
31706
|
let n = w, r = y.current, i = E != null && r !== null && r.complete && r.naturalHeight !== 0 && r.naturalWidth !== 0;
|
|
31707
|
-
i && E.excavation != null && (n =
|
|
31707
|
+
i && E.excavation != null && (n = IP(w, E.excavation));
|
|
31708
31708
|
let o = window.devicePixelRatio || 1;
|
|
31709
31709
|
e.height = e.width = a * o;
|
|
31710
31710
|
let l = a / T * o;
|
|
31711
|
-
t.scale(l, l), t.fillStyle = s, t.fillRect(0, 0, T, T), t.fillStyle = c,
|
|
31711
|
+
t.scale(l, l), t.fillStyle = s, t.fillRect(0, 0, T, T), t.fillStyle = c, BP ? t.fill(new Path2D(FP(n, C))) : w.forEach(function(e, n) {
|
|
31712
31712
|
e.forEach(function(e, r) {
|
|
31713
31713
|
e && t.fillRect(r + C, n + C, 1, 1);
|
|
31714
31714
|
});
|
|
@@ -31717,7 +31717,7 @@ var VP = function() {
|
|
|
31717
31717
|
}), t.useEffect(() => {
|
|
31718
31718
|
S(!1);
|
|
31719
31719
|
}, [_]);
|
|
31720
|
-
let D =
|
|
31720
|
+
let D = xP({
|
|
31721
31721
|
height: a,
|
|
31722
31722
|
width: a
|
|
31723
31723
|
}, h), O = null;
|
|
@@ -31730,7 +31730,7 @@ var VP = function() {
|
|
|
31730
31730
|
},
|
|
31731
31731
|
ref: y,
|
|
31732
31732
|
crossOrigin: E?.crossOrigin
|
|
31733
|
-
})), /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("canvas",
|
|
31733
|
+
})), /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("canvas", xP({
|
|
31734
31734
|
style: D,
|
|
31735
31735
|
height: a,
|
|
31736
31736
|
width: a,
|
|
@@ -31738,9 +31738,9 @@ var VP = function() {
|
|
|
31738
31738
|
role: "img"
|
|
31739
31739
|
}, g)), O);
|
|
31740
31740
|
});
|
|
31741
|
-
|
|
31742
|
-
var
|
|
31743
|
-
let r = e, { value: i, size: a =
|
|
31741
|
+
VP.displayName = "QRCodeCanvas";
|
|
31742
|
+
var HP = t.forwardRef(function(e, n) {
|
|
31743
|
+
let r = e, { value: i, size: a = EP, level: o = DP, bgColor: s = OP, fgColor: c = kP, includeMargin: l = AP, minVersion: u = jP, boostLevel: d, title: f, marginSize: p, imageSettings: m } = r, h = SP(r, [
|
|
31744
31744
|
"value",
|
|
31745
31745
|
"size",
|
|
31746
31746
|
"level",
|
|
@@ -31752,7 +31752,7 @@ var UP = t.forwardRef(function(e, n) {
|
|
|
31752
31752
|
"title",
|
|
31753
31753
|
"marginSize",
|
|
31754
31754
|
"imageSettings"
|
|
31755
|
-
]), { margin: g, cells: _, numCells: v, calculatedImageSettings: y } =
|
|
31755
|
+
]), { margin: g, cells: _, numCells: v, calculatedImageSettings: y } = zP({
|
|
31756
31756
|
value: i,
|
|
31757
31757
|
level: o,
|
|
31758
31758
|
minVersion: u,
|
|
@@ -31762,7 +31762,7 @@ var UP = t.forwardRef(function(e, n) {
|
|
|
31762
31762
|
imageSettings: m,
|
|
31763
31763
|
size: a
|
|
31764
31764
|
}), b = _, x = null;
|
|
31765
|
-
m != null && y != null && (y.excavation != null && (b =
|
|
31765
|
+
m != null && y != null && (y.excavation != null && (b = IP(_, y.excavation)), x = /* @__PURE__ */ t.createElement("image", {
|
|
31766
31766
|
href: m.src,
|
|
31767
31767
|
height: y.h,
|
|
31768
31768
|
width: y.w,
|
|
@@ -31772,8 +31772,8 @@ var UP = t.forwardRef(function(e, n) {
|
|
|
31772
31772
|
opacity: y.opacity,
|
|
31773
31773
|
crossOrigin: y.crossOrigin
|
|
31774
31774
|
}));
|
|
31775
|
-
let S =
|
|
31776
|
-
return /* @__PURE__ */ t.createElement("svg",
|
|
31775
|
+
let S = FP(b, g);
|
|
31776
|
+
return /* @__PURE__ */ t.createElement("svg", xP({
|
|
31777
31777
|
height: a,
|
|
31778
31778
|
width: a,
|
|
31779
31779
|
viewBox: `0 0 ${v} ${v}`,
|
|
@@ -31789,10 +31789,10 @@ var UP = t.forwardRef(function(e, n) {
|
|
|
31789
31789
|
shapeRendering: "crispEdges"
|
|
31790
31790
|
}), x);
|
|
31791
31791
|
});
|
|
31792
|
-
|
|
31792
|
+
HP.displayName = "QRCodeSVG";
|
|
31793
31793
|
//#endregion
|
|
31794
31794
|
//#region src/modules/chemical/form/locationSelectFormElement.tsx
|
|
31795
|
-
function
|
|
31795
|
+
function UP({ control: e, name: t, room: n }) {
|
|
31796
31796
|
let [r, i] = v([]), [a, o] = v(!0);
|
|
31797
31797
|
return d(() => {
|
|
31798
31798
|
async function e() {
|
|
@@ -31837,7 +31837,7 @@ function WP({ control: e, name: t, room: n }) {
|
|
|
31837
31837
|
textAlign: "center",
|
|
31838
31838
|
marginTop: "10px"
|
|
31839
31839
|
},
|
|
31840
|
-
children: [/* @__PURE__ */ x(
|
|
31840
|
+
children: [/* @__PURE__ */ x(HP, {
|
|
31841
31841
|
value: "/l/" + n.id.toString(),
|
|
31842
31842
|
size: 128
|
|
31843
31843
|
}), " "]
|
|
@@ -31850,7 +31850,7 @@ function WP({ control: e, name: t, room: n }) {
|
|
|
31850
31850
|
}
|
|
31851
31851
|
//#endregion
|
|
31852
31852
|
//#region src/modules/chemical/components/modal/createChemicalModal.tsx
|
|
31853
|
-
var
|
|
31853
|
+
var WP = ({ show: e, setShow: t, onChemicalCreate: n }) => {
|
|
31854
31854
|
let { register: r, control: i, setValue: a, handleSubmit: o, formState: { errors: s, isSubmitting: c } } = _f({ defaultValues: {} }), l = async (e) => {
|
|
31855
31855
|
try {
|
|
31856
31856
|
let t = await y.post("create/chemical", e);
|
|
@@ -32007,7 +32007,7 @@ var GP = ({ show: e, setShow: t, onChemicalCreate: n }) => {
|
|
|
32007
32007
|
};
|
|
32008
32008
|
//#endregion
|
|
32009
32009
|
//#region src/modules/chemical/form/chemicalSelectFormElement.tsx
|
|
32010
|
-
function
|
|
32010
|
+
function GP({ control: e, name: t, setValue: n, errors: r }) {
|
|
32011
32011
|
let [i, a] = v({}), [o, s] = v(!1), [c, l] = v(null), u = (e, t) => {
|
|
32012
32012
|
try {
|
|
32013
32013
|
Se({ query: e }).then((e) => {
|
|
@@ -32053,7 +32053,7 @@ function KP({ control: e, name: t, setValue: n, errors: r }) {
|
|
|
32053
32053
|
children: "Create New Chemical"
|
|
32054
32054
|
}) })
|
|
32055
32055
|
] })]
|
|
32056
|
-
}), /* @__PURE__ */ x(
|
|
32056
|
+
}), /* @__PURE__ */ x(WP, {
|
|
32057
32057
|
show: o,
|
|
32058
32058
|
setShow: s,
|
|
32059
32059
|
onChemicalCreate: async (e) => {
|
|
@@ -32074,14 +32074,14 @@ function KP({ control: e, name: t, setValue: n, errors: r }) {
|
|
|
32074
32074
|
}
|
|
32075
32075
|
//#endregion
|
|
32076
32076
|
//#region src/modules/chemical/utils/chemicalContainerUtils.ts
|
|
32077
|
-
function
|
|
32077
|
+
function KP(e) {
|
|
32078
32078
|
return /\/l\/\d+$/.test(e);
|
|
32079
32079
|
}
|
|
32080
|
-
function
|
|
32080
|
+
function qP(e) {
|
|
32081
32081
|
let t = e.match(/\/l\/(\d+)$/);
|
|
32082
32082
|
return t ? parseInt(t[1], 10) : null;
|
|
32083
32083
|
}
|
|
32084
|
-
var
|
|
32084
|
+
var JP = [
|
|
32085
32085
|
{
|
|
32086
32086
|
value: "g",
|
|
32087
32087
|
label: "Gram"
|
|
@@ -32191,15 +32191,15 @@ var YP = [
|
|
|
32191
32191
|
label: "Microliter"
|
|
32192
32192
|
}
|
|
32193
32193
|
].sort((e, t) => e.label.localeCompare(t.label));
|
|
32194
|
-
function
|
|
32194
|
+
function YP() {
|
|
32195
32195
|
let e = /* @__PURE__ */ new Date();
|
|
32196
32196
|
return e.setFullYear(e.getFullYear() + 5), e.toISOString().split("T")[0];
|
|
32197
32197
|
}
|
|
32198
32198
|
//#endregion
|
|
32199
32199
|
//#region src/modules/chemical/components/chemical/registerBarcodeElement.tsx
|
|
32200
|
-
function
|
|
32201
|
-
let { user: a } = u(fe), { environment: o } = L(), { addCallbackFn: s, removeCallbackFn: c } =
|
|
32202
|
-
expire_date:
|
|
32200
|
+
function XP({ room: e, barcode: t, resetForm: n, location: r, setLocation: i }) {
|
|
32201
|
+
let { user: a } = u(fe), { environment: o } = L(), { addCallbackFn: s, removeCallbackFn: c } = CA(), [p, m] = v(null), { register: h, control: g, handleSubmit: _, watch: C, setValue: w, formState: { errors: T, isSubmitting: E } } = _f({ defaultValues: {
|
|
32202
|
+
expire_date: YP(),
|
|
32203
32203
|
owner: {
|
|
32204
32204
|
value: a?.id,
|
|
32205
32205
|
label: a?.full_name
|
|
@@ -32209,13 +32209,13 @@ function ZP({ room: e, barcode: t, resetForm: n, location: r, setLocation: i })
|
|
|
32209
32209
|
D && Re({ id: D }).then((e) => i(e));
|
|
32210
32210
|
}, [D]);
|
|
32211
32211
|
let O = f(), k = l((e) => {
|
|
32212
|
-
if (
|
|
32213
|
-
let t =
|
|
32212
|
+
if (KP(e)) {
|
|
32213
|
+
let t = qP(e);
|
|
32214
32214
|
t !== null && (Re({ id: t }).then((e) => i(e)), w("location", t));
|
|
32215
32215
|
}
|
|
32216
32216
|
e.startsWith("reset-scan-location") && j();
|
|
32217
32217
|
}, [w]);
|
|
32218
|
-
d(() => (c(
|
|
32218
|
+
d(() => (c(wA.WILD_CARD, O), s(wA.WILD_CARD, O, k), () => c(wA.WILD_CARD, O)), [w]);
|
|
32219
32219
|
let A = async (e) => {
|
|
32220
32220
|
if (e.user = e.owner.value, (await be({ qrCodeContent: t })).items.length > 0) {
|
|
32221
32221
|
alert("This barcode is already registered to a container");
|
|
@@ -32232,7 +32232,7 @@ function ZP({ room: e, barcode: t, resetForm: n, location: r, setLocation: i })
|
|
|
32232
32232
|
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S(G, {
|
|
32233
32233
|
onSubmit: _(A),
|
|
32234
32234
|
children: [
|
|
32235
|
-
!r && /* @__PURE__ */ x(
|
|
32235
|
+
!r && /* @__PURE__ */ x(UP, {
|
|
32236
32236
|
room: e,
|
|
32237
32237
|
control: g,
|
|
32238
32238
|
name: "location"
|
|
@@ -32246,7 +32246,7 @@ function ZP({ room: e, barcode: t, resetForm: n, location: r, setLocation: i })
|
|
|
32246
32246
|
children: r.name
|
|
32247
32247
|
}), /* @__PURE__ */ S("div", {
|
|
32248
32248
|
className: "d-flex flex-column",
|
|
32249
|
-
children: [/* @__PURE__ */ x(
|
|
32249
|
+
children: [/* @__PURE__ */ x(HP, {
|
|
32250
32250
|
value: "reset-scan-location",
|
|
32251
32251
|
size: 100,
|
|
32252
32252
|
onClick: j
|
|
@@ -32258,7 +32258,7 @@ function ZP({ room: e, barcode: t, resetForm: n, location: r, setLocation: i })
|
|
|
32258
32258
|
}) })]
|
|
32259
32259
|
}),
|
|
32260
32260
|
r && /* @__PURE__ */ S(b, { children: [
|
|
32261
|
-
/* @__PURE__ */ x(
|
|
32261
|
+
/* @__PURE__ */ x(GP, {
|
|
32262
32262
|
control: g,
|
|
32263
32263
|
errors: T,
|
|
32264
32264
|
setValue: w,
|
|
@@ -32308,7 +32308,7 @@ function ZP({ room: e, barcode: t, resetForm: n, location: r, setLocation: i })
|
|
|
32308
32308
|
children: [/* @__PURE__ */ x(Ks.Item, {
|
|
32309
32309
|
eventKey: "",
|
|
32310
32310
|
children: "(no unit)"
|
|
32311
|
-
}, 0),
|
|
32311
|
+
}, 0), JP.map((e) => /* @__PURE__ */ S(Ks.Item, {
|
|
32312
32312
|
eventKey: e.value,
|
|
32313
32313
|
children: [
|
|
32314
32314
|
e.label,
|
|
@@ -32360,7 +32360,7 @@ function ZP({ room: e, barcode: t, resetForm: n, location: r, setLocation: i })
|
|
|
32360
32360
|
className: "btn btn-primary",
|
|
32361
32361
|
href: `${o}/chemical/container/details/${p.id}/general.html`,
|
|
32362
32362
|
children: "Go to container"
|
|
32363
|
-
}), /* @__PURE__ */ x(
|
|
32363
|
+
}), /* @__PURE__ */ x(HP, {
|
|
32364
32364
|
value: "reset-form",
|
|
32365
32365
|
size: 100,
|
|
32366
32366
|
className: "float-end",
|
|
@@ -32371,7 +32371,7 @@ function ZP({ room: e, barcode: t, resetForm: n, location: r, setLocation: i })
|
|
|
32371
32371
|
}
|
|
32372
32372
|
//#endregion
|
|
32373
32373
|
//#region src/modules/chemical/form/chemicalContainerTypeSelectFormElement.tsx
|
|
32374
|
-
function
|
|
32374
|
+
function ZP({ control: e, errors: t }) {
|
|
32375
32375
|
let [n, r] = v({}), i = (e, t) => {
|
|
32376
32376
|
try {
|
|
32377
32377
|
xe({ query: e }).then((e) => {
|
|
@@ -32405,8 +32405,8 @@ function QP({ control: e, errors: t }) {
|
|
|
32405
32405
|
}
|
|
32406
32406
|
//#endregion
|
|
32407
32407
|
//#region src/modules/chemical/components/chemical/registerContainerElement.tsx
|
|
32408
|
-
function
|
|
32409
|
-
let { user: i } = u(fe), { environment: a } = L(), { addCallbackFn: o, removeCallbackFn: s } =
|
|
32408
|
+
function QP({ room: e, resetForm: t, location: n, setLocation: r }) {
|
|
32409
|
+
let { user: i } = u(fe), { environment: a } = L(), { addCallbackFn: o, removeCallbackFn: s } = CA(), [c, p] = v(null), m = /* @__PURE__ */ new Date();
|
|
32410
32410
|
m.setFullYear(m.getFullYear() + 5);
|
|
32411
32411
|
let { register: h, control: g, handleSubmit: _, watch: C, setValue: w, formState: { errors: T, isSubmitting: E } } = _f({ defaultValues: {
|
|
32412
32412
|
expire_date: m.toISOString().split("T")[0],
|
|
@@ -32423,8 +32423,8 @@ function $P({ room: e, resetForm: t, location: n, setLocation: r }) {
|
|
|
32423
32423
|
let O = l(() => {
|
|
32424
32424
|
r(null), w("location", 0);
|
|
32425
32425
|
}, [r, w]), k = f(), A = l(async (e) => {
|
|
32426
|
-
if (
|
|
32427
|
-
let t =
|
|
32426
|
+
if (KP(e)) {
|
|
32427
|
+
let t = qP(e);
|
|
32428
32428
|
t !== null && (r(await Re({ id: t })), w("location", t));
|
|
32429
32429
|
return;
|
|
32430
32430
|
}
|
|
@@ -32434,14 +32434,14 @@ function $P({ room: e, resetForm: t, location: n, setLocation: r }) {
|
|
|
32434
32434
|
w,
|
|
32435
32435
|
O
|
|
32436
32436
|
]);
|
|
32437
|
-
return d(() => (s(
|
|
32437
|
+
return d(() => (s(wA.WILD_CARD, k), o(wA.WILD_CARD, k, A), () => s(wA.WILD_CARD, k)), [A]), /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S(G, {
|
|
32438
32438
|
onSubmit: _(async (e) => {
|
|
32439
32439
|
e.user = e.owner.value;
|
|
32440
32440
|
let t = await y.post("create/chemical/container", e);
|
|
32441
32441
|
p(t.data);
|
|
32442
32442
|
}),
|
|
32443
32443
|
children: [
|
|
32444
|
-
!n && /* @__PURE__ */ x(
|
|
32444
|
+
!n && /* @__PURE__ */ x(UP, {
|
|
32445
32445
|
room: e,
|
|
32446
32446
|
control: g,
|
|
32447
32447
|
name: "location"
|
|
@@ -32455,7 +32455,7 @@ function $P({ room: e, resetForm: t, location: n, setLocation: r }) {
|
|
|
32455
32455
|
children: n.name
|
|
32456
32456
|
}), /* @__PURE__ */ S("div", {
|
|
32457
32457
|
className: "d-flex flex-column",
|
|
32458
|
-
children: [/* @__PURE__ */ x(
|
|
32458
|
+
children: [/* @__PURE__ */ x(HP, {
|
|
32459
32459
|
value: "reset-scan-location",
|
|
32460
32460
|
size: 100,
|
|
32461
32461
|
onClick: () => O()
|
|
@@ -32467,7 +32467,7 @@ function $P({ room: e, resetForm: t, location: n, setLocation: r }) {
|
|
|
32467
32467
|
}) })]
|
|
32468
32468
|
}),
|
|
32469
32469
|
n && /* @__PURE__ */ S(b, { children: [
|
|
32470
|
-
/* @__PURE__ */ x(
|
|
32470
|
+
/* @__PURE__ */ x(GP, {
|
|
32471
32471
|
control: g,
|
|
32472
32472
|
errors: T,
|
|
32473
32473
|
setValue: w,
|
|
@@ -32517,7 +32517,7 @@ function $P({ room: e, resetForm: t, location: n, setLocation: r }) {
|
|
|
32517
32517
|
children: [/* @__PURE__ */ x(Ks.Item, {
|
|
32518
32518
|
eventKey: "",
|
|
32519
32519
|
children: "(no unit)"
|
|
32520
|
-
}, 0),
|
|
32520
|
+
}, 0), JP.map((e) => /* @__PURE__ */ S(Ks.Item, {
|
|
32521
32521
|
eventKey: e.value,
|
|
32522
32522
|
children: [
|
|
32523
32523
|
e.label,
|
|
@@ -32540,7 +32540,7 @@ function $P({ room: e, resetForm: t, location: n, setLocation: r }) {
|
|
|
32540
32540
|
className: "mb-3 row",
|
|
32541
32541
|
children: [
|
|
32542
32542
|
/* @__PURE__ */ x(G.Label, { children: "Container type" }),
|
|
32543
|
-
/* @__PURE__ */ x(
|
|
32543
|
+
/* @__PURE__ */ x(ZP, {
|
|
32544
32544
|
control: g,
|
|
32545
32545
|
...h("container_type", { required: "Container type is required" }),
|
|
32546
32546
|
errors: T
|
|
@@ -32592,7 +32592,7 @@ function $P({ room: e, resetForm: t, location: n, setLocation: r }) {
|
|
|
32592
32592
|
href: `${a}/chemical/container/details/${c.id}/general.html`,
|
|
32593
32593
|
children: "Go to container"
|
|
32594
32594
|
}) }),
|
|
32595
|
-
/* @__PURE__ */ x(
|
|
32595
|
+
/* @__PURE__ */ x(HP, {
|
|
32596
32596
|
value: "reset-form",
|
|
32597
32597
|
size: 100,
|
|
32598
32598
|
className: "float-end",
|
|
@@ -32604,8 +32604,8 @@ function $P({ room: e, resetForm: t, location: n, setLocation: r }) {
|
|
|
32604
32604
|
}
|
|
32605
32605
|
//#endregion
|
|
32606
32606
|
//#region src/modules/chemical/components/chemical/chemicalIntakeElement.tsx
|
|
32607
|
-
function
|
|
32608
|
-
let { environment: e } = L(), { addReadingCallbackFn: t, removeReadingCallbackFn: n, addCallbackFn: r, removeCallbackFn: i } =
|
|
32607
|
+
function $P() {
|
|
32608
|
+
let { environment: e } = L(), { addReadingCallbackFn: t, removeReadingCallbackFn: n, addCallbackFn: r, removeCallbackFn: i } = CA(), [a, o] = v(""), [s, c] = v([]), [u, p] = v(null), [m, h] = v(!1), [g, _] = v(!1), [y, C] = v(null), [w, T] = v(null), [E, D] = v(null), { control: O, watch: k, reset: A, setValue: j } = _f({ defaultValues: { room: null } }), M = k("room"), N = l(() => {
|
|
32609
32609
|
C(null), p(null), c([]), h(!1);
|
|
32610
32610
|
}, []);
|
|
32611
32611
|
d(() => {
|
|
@@ -32649,14 +32649,14 @@ function eF() {
|
|
|
32649
32649
|
}
|
|
32650
32650
|
}
|
|
32651
32651
|
}, [w]);
|
|
32652
|
-
d(() => (i(
|
|
32652
|
+
d(() => (i(wA.WILD_CARD, F), w && r(wA.WILD_CARD, F, I), () => i(wA.WILD_CARD, F)), [I, w]);
|
|
32653
32653
|
let ee = f();
|
|
32654
|
-
return d(() => (i(
|
|
32654
|
+
return d(() => (i(wA.RESET_FORM, ee), r(wA.RESET_FORM, ee, P), () => i(wA.RESET_FORM, ee)), [P]), /* @__PURE__ */ S("div", { children: [
|
|
32655
32655
|
/* @__PURE__ */ S("div", {
|
|
32656
32656
|
className: "d-flex justify-content-between",
|
|
32657
32657
|
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("div", {
|
|
32658
32658
|
style: { width: "fit-content" },
|
|
32659
|
-
children: /* @__PURE__ */ x(
|
|
32659
|
+
children: /* @__PURE__ */ x(hP, {
|
|
32660
32660
|
control: O,
|
|
32661
32661
|
name: "room"
|
|
32662
32662
|
})
|
|
@@ -32665,7 +32665,7 @@ function eF() {
|
|
|
32665
32665
|
children: w ? `Reading from scanner: ${y ?? "No chemical barcode scanned"}` : "Chemical scanner disabled"
|
|
32666
32666
|
})] }), /* @__PURE__ */ S("div", {
|
|
32667
32667
|
className: "d-flex flex-column",
|
|
32668
|
-
children: [/* @__PURE__ */ x(
|
|
32668
|
+
children: [/* @__PURE__ */ x(HP, {
|
|
32669
32669
|
value: "reset-form",
|
|
32670
32670
|
size: 100,
|
|
32671
32671
|
className: "float-end",
|
|
@@ -32724,14 +32724,14 @@ function eF() {
|
|
|
32724
32724
|
children: t.container.location.name
|
|
32725
32725
|
}) })
|
|
32726
32726
|
] }, t.id)) })] }),
|
|
32727
|
-
!u && m && w && y && /* @__PURE__ */ x(
|
|
32727
|
+
!u && m && w && y && /* @__PURE__ */ x(XP, {
|
|
32728
32728
|
room: w,
|
|
32729
32729
|
barcode: y,
|
|
32730
32730
|
location: E,
|
|
32731
32731
|
setLocation: D,
|
|
32732
32732
|
resetForm: P
|
|
32733
32733
|
}),
|
|
32734
|
-
!u && w && !g && /* @__PURE__ */ x(
|
|
32734
|
+
!u && w && !g && /* @__PURE__ */ x(QP, {
|
|
32735
32735
|
room: w,
|
|
32736
32736
|
location: E,
|
|
32737
32737
|
setLocation: D,
|
|
@@ -32741,7 +32741,7 @@ function eF() {
|
|
|
32741
32741
|
}
|
|
32742
32742
|
//#endregion
|
|
32743
32743
|
//#region src/modules/admin/components/goldsteinClientsDashboard/cardReadedValue.tsx
|
|
32744
|
-
function
|
|
32744
|
+
function eF({ badge_uuid: e }) {
|
|
32745
32745
|
return /* @__PURE__ */ S("span", {
|
|
32746
32746
|
className: "rounded p-2 bg-success",
|
|
32747
32747
|
children: ["Card read: ", e]
|
|
@@ -32749,10 +32749,10 @@ function tF({ badge_uuid: e }) {
|
|
|
32749
32749
|
}
|
|
32750
32750
|
//#endregion
|
|
32751
32751
|
//#region src/modules/admin/components/goldsteinClientsDashboard/userAuthenticated.tsx
|
|
32752
|
-
function
|
|
32752
|
+
function tF({ user_id: e }) {
|
|
32753
32753
|
let [t, n] = v("");
|
|
32754
32754
|
return d(() => {
|
|
32755
|
-
let t = "https://" +
|
|
32755
|
+
let t = "https://" + iF + `/api/onelab/view/user/${e}`;
|
|
32756
32756
|
(async () => {
|
|
32757
32757
|
try {
|
|
32758
32758
|
let e = await fetch(t);
|
|
@@ -32770,18 +32770,18 @@ function nF({ user_id: e }) {
|
|
|
32770
32770
|
}
|
|
32771
32771
|
//#endregion
|
|
32772
32772
|
//#region src/modules/admin/components/goldsteinClientsDashboard/equipmentConnected.tsx
|
|
32773
|
-
function
|
|
32773
|
+
function nF() {
|
|
32774
32774
|
return /* @__PURE__ */ x("div", {});
|
|
32775
32775
|
}
|
|
32776
32776
|
//#endregion
|
|
32777
32777
|
//#region src/modules/admin/components/goldsteinClientsDashboard.tsx
|
|
32778
|
-
var
|
|
32778
|
+
var rF = [
|
|
32779
32779
|
"all",
|
|
32780
32780
|
"equipment",
|
|
32781
32781
|
"not_set"
|
|
32782
|
-
],
|
|
32783
|
-
async function
|
|
32784
|
-
let t = "https://" +
|
|
32782
|
+
], iF = document.getElementById("root")?.dataset.goldsteinEndpoint ?? "", aF = "mock-token", oF = 10, sF = 15;
|
|
32783
|
+
async function cF(e) {
|
|
32784
|
+
let t = "https://" + iF + "/api/update/client-association", n = prompt("Select the new association for the client:", e);
|
|
32785
32785
|
if (n === null) {
|
|
32786
32786
|
alert("Please enter a not null value");
|
|
32787
32787
|
return;
|
|
@@ -32791,7 +32791,7 @@ async function lF(e) {
|
|
|
32791
32791
|
alert("Please follow the correct format: $item:$id");
|
|
32792
32792
|
return;
|
|
32793
32793
|
}
|
|
32794
|
-
if (!
|
|
32794
|
+
if (!rF.slice(1).includes(r)) {
|
|
32795
32795
|
alert("Please select a valid $item: (equipment, not_set)");
|
|
32796
32796
|
return;
|
|
32797
32797
|
}
|
|
@@ -32807,10 +32807,10 @@ async function lF(e) {
|
|
|
32807
32807
|
let s = await o.text();
|
|
32808
32808
|
alert(s);
|
|
32809
32809
|
}
|
|
32810
|
-
function
|
|
32810
|
+
function lF() {
|
|
32811
32811
|
let e = _(null), [t, n] = v(/* @__PURE__ */ new Map());
|
|
32812
32812
|
async function r(e) {
|
|
32813
|
-
let t = _y(e.notifications_list, /* @__PURE__ */ new Date(),
|
|
32813
|
+
let t = _y(e.notifications_list, /* @__PURE__ */ new Date(), oF, sF);
|
|
32814
32814
|
n(t);
|
|
32815
32815
|
}
|
|
32816
32816
|
function i() {
|
|
@@ -32834,7 +32834,7 @@ function uF() {
|
|
|
32834
32834
|
(e.current === null || e.current.readyState === WebSocket.CLOSED || e.current.readyState === WebSocket.CLOSING) && o();
|
|
32835
32835
|
}, 1e3);
|
|
32836
32836
|
}, o = () => {
|
|
32837
|
-
hy("wss://" +
|
|
32837
|
+
hy("wss://" + iF + "/ws", aF).then((t) => {
|
|
32838
32838
|
e.current !== null && e.current.close(), t.onmessage = (e) => {
|
|
32839
32839
|
my(e, r);
|
|
32840
32840
|
}, t.onclose = () => {
|
|
@@ -32852,7 +32852,7 @@ function uF() {
|
|
|
32852
32852
|
d(() => (o(), () => {
|
|
32853
32853
|
e.current && (e.current.close(), console.log("Web socket disconnected"));
|
|
32854
32854
|
}), []);
|
|
32855
|
-
let [s, c] = v(
|
|
32855
|
+
let [s, c] = v(rF[0]);
|
|
32856
32856
|
return d(() => {
|
|
32857
32857
|
i();
|
|
32858
32858
|
}, [s]), /* @__PURE__ */ S("div", { children: [
|
|
@@ -32865,7 +32865,7 @@ function uF() {
|
|
|
32865
32865
|
id: "typeFilter",
|
|
32866
32866
|
value: s,
|
|
32867
32867
|
onChange: (e) => c(e.target.value),
|
|
32868
|
-
children:
|
|
32868
|
+
children: rF.map((e) => /* @__PURE__ */ x("option", {
|
|
32869
32869
|
value: e,
|
|
32870
32870
|
children: e
|
|
32871
32871
|
}, e))
|
|
@@ -32882,14 +32882,14 @@ function uF() {
|
|
|
32882
32882
|
] }) }), /* @__PURE__ */ x("tbody", { children: Array.from(t.entries()).map(([e, t]) => /* @__PURE__ */ S("tr", { children: [
|
|
32883
32883
|
/* @__PURE__ */ x("td", { children: e }),
|
|
32884
32884
|
/* @__PURE__ */ S("td", { children: [
|
|
32885
|
-
t.status === gy.CLIENT_CONNECTED && /* @__PURE__ */ x(
|
|
32886
|
-
t.status === gy.CARD_READED && /* @__PURE__ */ x(
|
|
32887
|
-
t.status === gy.USER_AUTHENTICATED && /* @__PURE__ */ x(
|
|
32885
|
+
t.status === gy.CLIENT_CONNECTED && /* @__PURE__ */ x(nF, {}),
|
|
32886
|
+
t.status === gy.CARD_READED && /* @__PURE__ */ x(eF, { badge_uuid: t.message.badgeUUID }),
|
|
32887
|
+
t.status === gy.USER_AUTHENTICATED && /* @__PURE__ */ x(tF, { user_id: t.message.userID })
|
|
32888
32888
|
] }),
|
|
32889
32889
|
/* @__PURE__ */ x("td", { children: /* @__PURE__ */ x("button", {
|
|
32890
32890
|
type: "button",
|
|
32891
32891
|
className: "btn btn-primary",
|
|
32892
|
-
onClick: () =>
|
|
32892
|
+
onClick: () => cF(e),
|
|
32893
32893
|
children: "Edit association"
|
|
32894
32894
|
}) })
|
|
32895
32895
|
] }, e)) })]
|
|
@@ -32898,8 +32898,8 @@ function uF() {
|
|
|
32898
32898
|
}
|
|
32899
32899
|
//#endregion
|
|
32900
32900
|
//#region src/modules/service/components/report/Criterion.tsx
|
|
32901
|
-
var
|
|
32902
|
-
function
|
|
32901
|
+
var uF = (e) => typeof e == "string" ? e : "";
|
|
32902
|
+
function dF({ result: e, status: t, onAutoSave: n, onDirty: r }) {
|
|
32903
32903
|
let { control: i, formState: a } = sd(), o = e.criterion_version, s = String(e.id), c = o.criterion.background_color && o.criterion.has_background_color ? { backgroundColor: o.criterion.background_color } : void 0, l = a.errors[s]?.message, u = o.required, d = (e) => u ? Array.isArray(e) ? e.length > 0 || "This field is required." : typeof e == "boolean" || e != null && e !== "" || "This field is required." : !0, f = l ? "is-invalid" : t?.state === "saved" ? "is-valid" : t?.state === "dirty" ? "border-warning" : "", p = l ? "border border-danger rounded p-2" : t?.state === "saved" ? "border border-success rounded p-2" : t?.state === "dirty" ? "border border-warning rounded p-2" : "", m = o.criterion.values ?? {};
|
|
32904
32904
|
return /* @__PURE__ */ S("div", {
|
|
32905
32905
|
className: `form-group mb-3 rounded ${o.highlighted ? "border border-warning" : ""}`,
|
|
@@ -32926,7 +32926,7 @@ function fF({ result: e, status: t, onAutoSave: n, onDirty: r }) {
|
|
|
32926
32926
|
type: "number",
|
|
32927
32927
|
step: o.criterion.input_type === "float" ? "0.01" : "1",
|
|
32928
32928
|
className: `form-control ${f}`,
|
|
32929
|
-
value:
|
|
32929
|
+
value: uF(t.value),
|
|
32930
32930
|
onChange: (n) => {
|
|
32931
32931
|
t.onChange(n.target.value), r(e.id);
|
|
32932
32932
|
},
|
|
@@ -32939,7 +32939,7 @@ function fF({ result: e, status: t, onAutoSave: n, onDirty: r }) {
|
|
|
32939
32939
|
"aria-label": o.criterion.criterion,
|
|
32940
32940
|
type: "date",
|
|
32941
32941
|
className: `form-control ${f}`,
|
|
32942
|
-
value:
|
|
32942
|
+
value: uF(t.value),
|
|
32943
32943
|
onChange: (n) => {
|
|
32944
32944
|
t.onChange(n.target.value), r(e.id);
|
|
32945
32945
|
},
|
|
@@ -32952,7 +32952,7 @@ function fF({ result: e, status: t, onAutoSave: n, onDirty: r }) {
|
|
|
32952
32952
|
"aria-label": o.criterion.criterion,
|
|
32953
32953
|
className: `form-control ${f}`,
|
|
32954
32954
|
rows: 3,
|
|
32955
|
-
value:
|
|
32955
|
+
value: uF(t.value),
|
|
32956
32956
|
onChange: (n) => {
|
|
32957
32957
|
t.onChange(n.target.value), r(e.id);
|
|
32958
32958
|
},
|
|
@@ -32965,7 +32965,7 @@ function fF({ result: e, status: t, onAutoSave: n, onDirty: r }) {
|
|
|
32965
32965
|
"aria-label": o.criterion.criterion,
|
|
32966
32966
|
type: "text",
|
|
32967
32967
|
className: `form-control ${f}`,
|
|
32968
|
-
value:
|
|
32968
|
+
value: uF(t.value),
|
|
32969
32969
|
onChange: (n) => {
|
|
32970
32970
|
t.onChange(n.target.value), r(e.id);
|
|
32971
32971
|
},
|
|
@@ -32976,7 +32976,7 @@ function fF({ result: e, status: t, onAutoSave: n, onDirty: r }) {
|
|
|
32976
32976
|
case "select": return /* @__PURE__ */ S("select", {
|
|
32977
32977
|
id: `result-${e.id}`,
|
|
32978
32978
|
className: `form-select ${f}`,
|
|
32979
|
-
value:
|
|
32979
|
+
value: uF(t.value),
|
|
32980
32980
|
onChange: (i) => {
|
|
32981
32981
|
t.onChange(i.target.value), r(e.id), n(e);
|
|
32982
32982
|
},
|
|
@@ -33097,7 +33097,7 @@ function fF({ result: e, status: t, onAutoSave: n, onDirty: r }) {
|
|
|
33097
33097
|
}
|
|
33098
33098
|
//#endregion
|
|
33099
33099
|
//#region src/modules/service/components/report/Category.tsx
|
|
33100
|
-
function
|
|
33100
|
+
function fF({ categoryId: e, label: t, results: n }) {
|
|
33101
33101
|
let r = _({}), i = _({}), a = String(e), [o, s] = v({
|
|
33102
33102
|
categoryId: a,
|
|
33103
33103
|
statuses: {}
|
|
@@ -33195,7 +33195,7 @@ function pF({ categoryId: e, label: t, results: n }) {
|
|
|
33195
33195
|
return window.addEventListener("beforeunload", e), () => window.removeEventListener("beforeunload", e);
|
|
33196
33196
|
}, [E]), /* @__PURE__ */ S(cd, {
|
|
33197
33197
|
...f,
|
|
33198
|
-
children: [/* @__PURE__ */ x("legend", { children: t }), n.map((e) => /* @__PURE__ */ x(
|
|
33198
|
+
children: [/* @__PURE__ */ x("legend", { children: t }), n.map((e) => /* @__PURE__ */ x(dF, {
|
|
33199
33199
|
result: e,
|
|
33200
33200
|
status: c[e.id],
|
|
33201
33201
|
onAutoSave: w,
|
|
@@ -33205,7 +33205,7 @@ function pF({ categoryId: e, label: t, results: n }) {
|
|
|
33205
33205
|
}
|
|
33206
33206
|
//#endregion
|
|
33207
33207
|
//#region src/modules/service/components/ReportResult.tsx
|
|
33208
|
-
function
|
|
33208
|
+
function pF() {
|
|
33209
33209
|
let { id: e } = L(), n = F(), r = I(), [i, a] = v(), [o, s] = v({}), [c, l] = v({}), [u, f] = v(0), [p, m] = v(null);
|
|
33210
33210
|
d(() => {
|
|
33211
33211
|
e && (wt({ id: Number(e) }).then((e) => {
|
|
@@ -33283,7 +33283,7 @@ function mF() {
|
|
|
33283
33283
|
children: "Next"
|
|
33284
33284
|
})
|
|
33285
33285
|
]
|
|
33286
|
-
}), /* @__PURE__ */ x(
|
|
33286
|
+
}), /* @__PURE__ */ x(fF, {
|
|
33287
33287
|
categoryId: g[u],
|
|
33288
33288
|
label: o[g[u]],
|
|
33289
33289
|
results: i[g[u]]
|
|
@@ -33291,7 +33291,7 @@ function mF() {
|
|
|
33291
33291
|
}
|
|
33292
33292
|
//#endregion
|
|
33293
33293
|
//#region src/modules/iris/components/irisOperatorDashboardUtils.ts
|
|
33294
|
-
var
|
|
33294
|
+
var mF = {
|
|
33295
33295
|
active: "text-bg-warning",
|
|
33296
33296
|
approved: "text-bg-success",
|
|
33297
33297
|
canceled: "text-bg-secondary",
|
|
@@ -33311,16 +33311,16 @@ var hF = {
|
|
|
33311
33311
|
success: "text-bg-success",
|
|
33312
33312
|
uploaded: "text-bg-success"
|
|
33313
33313
|
};
|
|
33314
|
-
function
|
|
33314
|
+
function hF(e) {
|
|
33315
33315
|
let t = e.trim().toLowerCase();
|
|
33316
|
-
return t in
|
|
33316
|
+
return t in mF ? mF[t] : /(fail|error|reject|invalid|deny)/.test(t) ? "text-bg-danger" : /(complete|done|success|approve|upload|finish|ready|ok)/.test(t) ? "text-bg-success" : /(run|process|progress|pending|queue|start|wait|active)/.test(t) ? "text-bg-warning" : /(cancel|skip|expire|close|stop)/.test(t) ? "text-bg-secondary" : "text-bg-info";
|
|
33317
33317
|
}
|
|
33318
|
-
function
|
|
33318
|
+
function gF(e) {
|
|
33319
33319
|
return e instanceof Map ? Array.from(e.entries()) : Array.isArray(e) ? e.flatMap((e) => Array.isArray(e) && e.length === 2 && typeof e[0] == "string" && typeof e[1] == "string" ? [[e[0], e[1]]] : []) : typeof e == "object" && e ? Object.entries(e).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []) : [];
|
|
33320
33320
|
}
|
|
33321
33321
|
//#endregion
|
|
33322
33322
|
//#region src/modules/iris/components/operatorDashboard/irisOperatorEventDetailsUtils.ts
|
|
33323
|
-
var
|
|
33323
|
+
var _F = {
|
|
33324
33324
|
approve: {
|
|
33325
33325
|
action: "approve",
|
|
33326
33326
|
buttonClassName: "btn-success",
|
|
@@ -33345,7 +33345,7 @@ var vF = {
|
|
|
33345
33345
|
label: "Reject",
|
|
33346
33346
|
successMessage: "Upload rejected."
|
|
33347
33347
|
}
|
|
33348
|
-
},
|
|
33348
|
+
}, vF = {
|
|
33349
33349
|
awaiting_approval: [
|
|
33350
33350
|
"approve",
|
|
33351
33351
|
"reject",
|
|
@@ -33359,10 +33359,10 @@ var vF = {
|
|
|
33359
33359
|
"fail"
|
|
33360
33360
|
]
|
|
33361
33361
|
};
|
|
33362
|
-
function
|
|
33363
|
-
return (
|
|
33362
|
+
function yF(e) {
|
|
33363
|
+
return (vF[e] ?? []).map((e) => _F[e]);
|
|
33364
33364
|
}
|
|
33365
|
-
function
|
|
33365
|
+
function bF(e) {
|
|
33366
33366
|
if (typeof e == "object" && e && "response" in e) {
|
|
33367
33367
|
let t = e.response;
|
|
33368
33368
|
if (typeof t?.data?.message == "string") return t.data.message;
|
|
@@ -33371,8 +33371,8 @@ function xF(e) {
|
|
|
33371
33371
|
}
|
|
33372
33372
|
//#endregion
|
|
33373
33373
|
//#region src/modules/iris/components/operatorDashboard/IrisOperatorEventDetails.tsx
|
|
33374
|
-
function
|
|
33375
|
-
let [i, a] = v(null), [o, s] = v(""), [c, u] = v(""), d = h(() => e ?
|
|
33374
|
+
function xF({ event: e, contentEntries: t, irisEndpoint: n, onEventUpdated: r }) {
|
|
33375
|
+
let [i, a] = v(null), [o, s] = v(""), [c, u] = v(""), d = h(() => e ? yF(e.state) : [], [e]), f = l(async (t) => {
|
|
33376
33376
|
if (e) {
|
|
33377
33377
|
a(t), s(""), u("");
|
|
33378
33378
|
try {
|
|
@@ -33384,7 +33384,7 @@ function SF({ event: e, contentEntries: t, irisEndpoint: n, onEventUpdated: r })
|
|
|
33384
33384
|
let o = d.find((e) => e.action === t);
|
|
33385
33385
|
r(a), u(o?.successMessage ?? "Action completed.");
|
|
33386
33386
|
} catch (e) {
|
|
33387
|
-
s(
|
|
33387
|
+
s(bF(e));
|
|
33388
33388
|
} finally {
|
|
33389
33389
|
a(null);
|
|
33390
33390
|
}
|
|
@@ -33426,7 +33426,7 @@ function SF({ event: e, contentEntries: t, irisEndpoint: n, onEventUpdated: r })
|
|
|
33426
33426
|
})] }), /* @__PURE__ */ x("div", {
|
|
33427
33427
|
className: "d-flex align-items-start",
|
|
33428
33428
|
children: /* @__PURE__ */ x("span", {
|
|
33429
|
-
className: `badge ${
|
|
33429
|
+
className: `badge ${hF(e.state)}`,
|
|
33430
33430
|
children: e.state
|
|
33431
33431
|
})
|
|
33432
33432
|
})]
|
|
@@ -33584,7 +33584,7 @@ function SF({ event: e, contentEntries: t, irisEndpoint: n, onEventUpdated: r })
|
|
|
33584
33584
|
}
|
|
33585
33585
|
//#endregion
|
|
33586
33586
|
//#region src/modules/iris/components/operatorDashboard/IrisOperatorEventList.tsx
|
|
33587
|
-
function
|
|
33587
|
+
function SF({ activeContext: e, events: t, selectedEventUid: n, onSelectEvent: r }) {
|
|
33588
33588
|
return /* @__PURE__ */ S("div", {
|
|
33589
33589
|
className: "border rounded overflow-hidden h-100",
|
|
33590
33590
|
children: [/* @__PURE__ */ S("div", {
|
|
@@ -33611,7 +33611,7 @@ function CF({ activeContext: e, events: t, selectedEventUid: n, onSelectEvent: r
|
|
|
33611
33611
|
className: t ? "text-white" : "",
|
|
33612
33612
|
children: e.uid
|
|
33613
33613
|
}), /* @__PURE__ */ x("span", {
|
|
33614
|
-
className: `badge ${
|
|
33614
|
+
className: `badge ${hF(e.state)}`,
|
|
33615
33615
|
children: e.state
|
|
33616
33616
|
})]
|
|
33617
33617
|
}), /* @__PURE__ */ S("div", {
|
|
@@ -33634,7 +33634,7 @@ function CF({ activeContext: e, events: t, selectedEventUid: n, onSelectEvent: r
|
|
|
33634
33634
|
}
|
|
33635
33635
|
//#endregion
|
|
33636
33636
|
//#region src/modules/iris/hooks/useIrisStreamContextEvents.ts
|
|
33637
|
-
function
|
|
33637
|
+
function CF({ irisEndpoint: e, context: t, onMessage: n, onError: r }) {
|
|
33638
33638
|
let i = _(null), a = _(null), o = _(!0), s = _(0), [c, l] = v(!1);
|
|
33639
33639
|
return d(() => {
|
|
33640
33640
|
if (!t) return;
|
|
@@ -33679,7 +33679,7 @@ function wF({ irisEndpoint: e, context: t, onMessage: n, onError: r }) {
|
|
|
33679
33679
|
}
|
|
33680
33680
|
//#endregion
|
|
33681
33681
|
//#region src/modules/iris/components/IrisOperatorDashboard.tsx
|
|
33682
|
-
function
|
|
33682
|
+
function wF() {
|
|
33683
33683
|
let [e, t] = v(""), [n, r] = v(""), [i, a] = v([]), [o, s] = v(""), [c, u] = v(""), f = en();
|
|
33684
33684
|
d(() => {
|
|
33685
33685
|
n && Ft({
|
|
@@ -33691,7 +33691,7 @@ function TF() {
|
|
|
33691
33691
|
}, [n]);
|
|
33692
33692
|
let p = l((e) => {
|
|
33693
33693
|
n !== "" && e.context === n && (u(""), a((t) => [e, ...t.filter((t) => t.uid !== e.uid)]), s(e.uid));
|
|
33694
|
-
}, [n]), { isConnected: m } =
|
|
33694
|
+
}, [n]), { isConnected: m } = CF({
|
|
33695
33695
|
irisEndpoint: f,
|
|
33696
33696
|
context: n,
|
|
33697
33697
|
onMessage: p,
|
|
@@ -33708,7 +33708,7 @@ function TF() {
|
|
|
33708
33708
|
}, [n])
|
|
33709
33709
|
}), g = l((t) => {
|
|
33710
33710
|
t.preventDefault(), r(e), a([]), s(""), u("");
|
|
33711
|
-
}, [e]), _ = h(() => i.length === 0 ? null : i.find((e) => e.uid === o) ?? i[0], [i, o]), y = h(() => _ ?
|
|
33711
|
+
}, [e]), _ = h(() => i.length === 0 ? null : i.find((e) => e.uid === o) ?? i[0], [i, o]), y = h(() => _ ? gF(_.content) : [], [_]);
|
|
33712
33712
|
return /* @__PURE__ */ x("div", {
|
|
33713
33713
|
className: "w-100",
|
|
33714
33714
|
children: /* @__PURE__ */ x("div", {
|
|
@@ -33755,7 +33755,7 @@ function TF() {
|
|
|
33755
33755
|
className: "row g-3",
|
|
33756
33756
|
children: [/* @__PURE__ */ x("div", {
|
|
33757
33757
|
className: "col-xl-5",
|
|
33758
|
-
children: /* @__PURE__ */ x(
|
|
33758
|
+
children: /* @__PURE__ */ x(SF, {
|
|
33759
33759
|
activeContext: n,
|
|
33760
33760
|
events: i,
|
|
33761
33761
|
selectedEventUid: _?.uid || "",
|
|
@@ -33763,7 +33763,7 @@ function TF() {
|
|
|
33763
33763
|
})
|
|
33764
33764
|
}), /* @__PURE__ */ x("div", {
|
|
33765
33765
|
className: "col-xl-7",
|
|
33766
|
-
children: /* @__PURE__ */ x(
|
|
33766
|
+
children: /* @__PURE__ */ x(xF, {
|
|
33767
33767
|
event: _,
|
|
33768
33768
|
contentEntries: y,
|
|
33769
33769
|
irisEndpoint: f,
|
|
@@ -33778,7 +33778,7 @@ function TF() {
|
|
|
33778
33778
|
}
|
|
33779
33779
|
//#endregion
|
|
33780
33780
|
//#region src/utils/keySequenceListener.ts
|
|
33781
|
-
function
|
|
33781
|
+
function TF(e) {
|
|
33782
33782
|
switch (e) {
|
|
33783
33783
|
case "Shift": return !0;
|
|
33784
33784
|
case "Alt": return !0;
|
|
@@ -33787,25 +33787,25 @@ function EF(e) {
|
|
|
33787
33787
|
}
|
|
33788
33788
|
return !1;
|
|
33789
33789
|
}
|
|
33790
|
-
function
|
|
33790
|
+
function EF(e) {
|
|
33791
33791
|
switch (e) {
|
|
33792
33792
|
case "Enter": return !0;
|
|
33793
33793
|
default: return !1;
|
|
33794
33794
|
}
|
|
33795
33795
|
}
|
|
33796
|
-
function
|
|
33796
|
+
function DF(e, t) {
|
|
33797
33797
|
let n = "", r = () => {
|
|
33798
33798
|
n = "", t && t(n);
|
|
33799
33799
|
};
|
|
33800
33800
|
return (i) => {
|
|
33801
33801
|
if (i.target instanceof HTMLInputElement || i.target instanceof HTMLTextAreaElement) return;
|
|
33802
33802
|
let a = i.key;
|
|
33803
|
-
if (!
|
|
33803
|
+
if (!TF(a)) {
|
|
33804
33804
|
if (a === "Escape") {
|
|
33805
33805
|
r();
|
|
33806
33806
|
return;
|
|
33807
33807
|
}
|
|
33808
|
-
if (
|
|
33808
|
+
if (EF(a)) {
|
|
33809
33809
|
e(n), r();
|
|
33810
33810
|
return;
|
|
33811
33811
|
}
|
|
@@ -33815,24 +33815,24 @@ function OF(e, t) {
|
|
|
33815
33815
|
}
|
|
33816
33816
|
//#endregion
|
|
33817
33817
|
//#region src/modules/core/providers/scannerProvider.tsx
|
|
33818
|
-
var
|
|
33818
|
+
var OF = ({ children: e }) => {
|
|
33819
33819
|
let [t, n] = v(""), r = _(/* @__PURE__ */ new Map()), i = _(/* @__PURE__ */ new Map()), a = (e) => {
|
|
33820
33820
|
c(() => {
|
|
33821
33821
|
i.current.forEach((t) => t(e));
|
|
33822
33822
|
});
|
|
33823
33823
|
}, o = (e) => {
|
|
33824
33824
|
n(e);
|
|
33825
|
-
let t =
|
|
33825
|
+
let t = TA(e);
|
|
33826
33826
|
c(() => {
|
|
33827
33827
|
r.current.get(t)?.forEach((t) => t(e));
|
|
33828
33828
|
});
|
|
33829
33829
|
};
|
|
33830
33830
|
return d(() => {
|
|
33831
|
-
let e =
|
|
33831
|
+
let e = DF(o, a);
|
|
33832
33832
|
return document.addEventListener("keyup", e), () => {
|
|
33833
33833
|
document.removeEventListener("keyup", e);
|
|
33834
33834
|
};
|
|
33835
|
-
}, [o, a]), /* @__PURE__ */ x(
|
|
33835
|
+
}, [o, a]), /* @__PURE__ */ x(SA.Provider, {
|
|
33836
33836
|
value: {
|
|
33837
33837
|
lastlyReadedKeys: t,
|
|
33838
33838
|
addCallbackFn: (e, t, n) => {
|
|
@@ -33853,15 +33853,15 @@ var kF = ({ children: e }) => {
|
|
|
33853
33853
|
};
|
|
33854
33854
|
//#endregion
|
|
33855
33855
|
//#region src/modules/run/hooks/useSelectRunWithScanner.ts
|
|
33856
|
-
function
|
|
33857
|
-
let [n, r] = v(null), { lastlyReadedKeys: i } =
|
|
33856
|
+
function kF({ runsList: e, onFail: t = (e) => null }) {
|
|
33857
|
+
let [n, r] = v(null), { lastlyReadedKeys: i } = CA();
|
|
33858
33858
|
return d(() => {
|
|
33859
33859
|
let n = i.replace(/_/g, "-").toUpperCase(), a = e.find((e) => n.includes(e.label));
|
|
33860
33860
|
if (!a) {
|
|
33861
33861
|
t("Run not found");
|
|
33862
33862
|
return;
|
|
33863
33863
|
}
|
|
33864
|
-
|
|
33864
|
+
OA({
|
|
33865
33865
|
notificationHeader: "Run scanner",
|
|
33866
33866
|
notificationBody: `Run ${a.label} found`,
|
|
33867
33867
|
notificationType: "success"
|
|
@@ -33869,6 +33869,6 @@ function AF({ runsList: e, onFail: t = (e) => null }) {
|
|
|
33869
33869
|
}, [i]), { selectedRun: n };
|
|
33870
33870
|
}
|
|
33871
33871
|
//#endregion
|
|
33872
|
-
export { fe as AuthContext, ln as AuthProvider,
|
|
33872
|
+
export { fe as AuthContext, ln as AuthProvider, Wk as BatchCardElement, mP as ChemicalHeaderElement, $P as ChemicalIntakeElement, Uk as DateFormat, Yj as EditRunParents, Jk as EmphasizedParametersContext, pP as EmphasizedParametersProvider, RO as EquipmentContext, UO as EquipmentDashboard, qO as EquipmentHeaderElement, GO as EquipmentProvider, lF as GoldsteinClientsDashboard, Uy as GoldsteinEquipmentDashboard, uP as InputModal, wF as IrisOperatorDashboard, vf as ModuleStatusElement, FO as MonitorCard, Lk as MonitorContext, Fk as MonitorHeaderElement, Pk as MonitorPage, Rk as MonitorProvider, Jj as NewRunWizard, kA as NotificationProvider, Tk as PaginationLinks, pF as ReportResults, Bk as RunContext, qk as RunHeaderElement, $j as RunInformationElement, fM as RunLayoutElement, Vk as RunProvider, SM as RunStepChecklist, dj as RunStepContext, dP as RunStepExecuteElement, fP as RunStepExecuteMinimal, hM as RunStepHeaderElement, mM as RunStepProvider, vj as RunStepsElement, SA as ScannerContext, OF as ScannerProvider, sy as SetupUpdateEquipment, PO as StatusMailComponent, Wy as StatusMailContext, JO as StatusMailProvider, VA as StepDetails, Zt as initSolodbComponents, OA as notification, tn as useAuth, CA as useScannerContext, kF as useSelectRunWithScanner };
|
|
33873
33873
|
|
|
33874
33874
|
//# sourceMappingURL=index.js.map
|