@opencxh/domain 1.277.0 → 1.279.0
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/entities/catalog/types.d.ts +5 -0
- package/dist/entities/company/types.d.ts +8 -0
- package/dist/entities/contact/index.d.ts +3 -0
- package/dist/entities/contact/lifecycle.d.ts +9 -0
- package/dist/entities/contact/name.d.ts +3 -0
- package/dist/entities/contact/segment.d.ts +32 -0
- package/dist/entities/contact/types.d.ts +6 -0
- package/dist/entities/time-entry/billing.d.ts +20 -0
- package/dist/entities/time-entry/billing.test.d.ts +1 -0
- package/dist/entities/time-entry/index.d.ts +1 -0
- package/dist/entities/time-entry/types.d.ts +5 -0
- package/dist/entities/transaction/types.d.ts +5 -0
- package/dist/index.cjs +16 -16
- package/dist/index.js +1177 -1131
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const la = 10, ua = 10, da = 10, fa = 5, Cn = /* @__PURE__ */ new Set([
|
|
2
2
|
"header",
|
|
3
3
|
"section",
|
|
4
4
|
"context",
|
|
@@ -14,7 +14,7 @@ function ae(e) {
|
|
|
14
14
|
const t = e;
|
|
15
15
|
return typeof t.key == "string" || typeof t.value == "string";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function pa(e, t = () => {
|
|
18
18
|
}) {
|
|
19
19
|
if (!Array.isArray(e)) return [];
|
|
20
20
|
const n = [];
|
|
@@ -484,40 +484,40 @@ function Je(e) {
|
|
|
484
484
|
function v(e) {
|
|
485
485
|
return D[e];
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function ma(e) {
|
|
488
488
|
return v(e)?.icon ?? "circle";
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function ha(e) {
|
|
491
491
|
return v(e)?.channelKind;
|
|
492
492
|
}
|
|
493
493
|
function Ht(e) {
|
|
494
494
|
return e === "message" || e === "note";
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function ga(e) {
|
|
497
497
|
return Ht(v(e)?.shape);
|
|
498
498
|
}
|
|
499
499
|
function Gt(e) {
|
|
500
500
|
return e === "note";
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function ya(e) {
|
|
503
503
|
return Gt(v(e)?.shape);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function ba(e) {
|
|
506
506
|
return v(e)?.replyable === !0;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Aa(e) {
|
|
509
509
|
return v(e)?.carriesText === !0;
|
|
510
510
|
}
|
|
511
511
|
function Rn(e) {
|
|
512
512
|
return v(e)?.countsAs;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function _a(e) {
|
|
515
515
|
return v(e)?.playbookAuthored === !0;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Ea(e) {
|
|
518
518
|
return v(e)?.connected === !0;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Sa(e) {
|
|
521
521
|
const t = v(e);
|
|
522
522
|
return t?.shape === "artifact" && t?.carriesText === !0;
|
|
523
523
|
}
|
|
@@ -525,11 +525,11 @@ function Ln(e) {
|
|
|
525
525
|
const t = v(e.type)?.snippet;
|
|
526
526
|
return t ? t(e) : "";
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Ta(e, t) {
|
|
529
529
|
const n = v(e.type)?.timeline;
|
|
530
530
|
return n ? n(e, t) : e.type.replace(/_/g, " ").toLowerCase();
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Ia(e) {
|
|
533
533
|
const t = v(e.type)?.joinUrl;
|
|
534
534
|
return t ? t(e) : void 0;
|
|
535
535
|
}
|
|
@@ -564,7 +564,7 @@ function Kn(e) {
|
|
|
564
564
|
const t = e.trim();
|
|
565
565
|
return t.length <= Ze ? t : `${t.slice(0, Ze - 1).trimEnd()}…`;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function va(e, t) {
|
|
568
568
|
const n = Pn(t?.text, e), r = t ? Ee(t.text, e, (o) => o) : null;
|
|
569
569
|
return {
|
|
570
570
|
activityId: e.id,
|
|
@@ -698,8 +698,8 @@ class Fn {
|
|
|
698
698
|
return this.translate;
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
-
const
|
|
702
|
-
function
|
|
701
|
+
const ka = new Fn();
|
|
702
|
+
function wa(e, t, n = []) {
|
|
703
703
|
const r = e.createdAt;
|
|
704
704
|
if (!r) return [];
|
|
705
705
|
const o = new Set(n);
|
|
@@ -708,10 +708,10 @@ function va(e, t, n = []) {
|
|
|
708
708
|
function jn(e) {
|
|
709
709
|
return e.createdAt ?? 0;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Ma(e) {
|
|
712
712
|
return e.type === "EMAIL_RECEIVED" || e.type === "EMAIL_SENT";
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Oa(e) {
|
|
715
715
|
return e.type === "CHAT_MESSAGE_SENT" || e.type === "CHAT_MESSAGE_RECEIVED";
|
|
716
716
|
}
|
|
717
717
|
const Ue = [
|
|
@@ -732,16 +732,16 @@ const Ue = [
|
|
|
732
732
|
*/
|
|
733
733
|
{ id: "decision", defaultFlag: "isDefaultDecision", label: "Beslissingen" }
|
|
734
734
|
];
|
|
735
|
-
function
|
|
735
|
+
function Ca(e) {
|
|
736
736
|
return Ue.find((t) => t.id === e)?.defaultFlag;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Na(e) {
|
|
739
739
|
const t = {};
|
|
740
740
|
for (const n of Ue)
|
|
741
741
|
t[n.defaultFlag] = e?.[n.defaultFlag] === !0;
|
|
742
742
|
return t;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function xa(e, t) {
|
|
745
745
|
const n = {};
|
|
746
746
|
for (const r of Ue) {
|
|
747
747
|
const o = r.defaultFlag;
|
|
@@ -756,7 +756,7 @@ const Bn = {
|
|
|
756
756
|
audio: "audio",
|
|
757
757
|
video: "video"
|
|
758
758
|
};
|
|
759
|
-
function
|
|
759
|
+
function $a(e, t) {
|
|
760
760
|
if (t === "text") return !0;
|
|
761
761
|
if (!e?.in?.length) return;
|
|
762
762
|
const n = Bn[t];
|
|
@@ -771,7 +771,7 @@ function Hn(e) {
|
|
|
771
771
|
let n;
|
|
772
772
|
return e.expectsSchema ? (n = "fast", t.push("schema-antwoord")) : (e.mode ?? "agent") === "ask" && !e.toolCount ? (n = "fast", t.push("vraag zonder tools")) : e.toolCount || e.hasAttachments ? (n = "standard", t.push(e.hasAttachments ? "bijlagen" : "tools beschikbaar")) : (n = "standard", t.push("standaard")), e.repair && (n = nt(n, 1), t.push("herstelbeurt: een tier omhoog")), e.budgetPressure === "soft" && n !== "fast" && (n = nt(n, -1), t.push("budget bijna op: een tier omlaag in plaats van weigeren")), e.maxTier && Se(n) > Se(e.maxTier) && (n = e.maxTier, t.push(`plafond van de rol: ${e.maxTier}`)), { tier: n, reasons: t };
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function Da(e, t, n) {
|
|
775
775
|
const r = Hn(t);
|
|
776
776
|
if (!e) return { ...r, ...n, routed: !1 };
|
|
777
777
|
for (let o = Se(r.tier); o >= 0; o--) {
|
|
@@ -788,7 +788,7 @@ function xa(e, t, n) {
|
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
790
|
const rt = 255, ot = 2, it = 10;
|
|
791
|
-
function
|
|
791
|
+
function Ra(e) {
|
|
792
792
|
const t = Object.keys(e);
|
|
793
793
|
if (!t.length) return "geen vragen gesteld";
|
|
794
794
|
for (const n of t) {
|
|
@@ -808,10 +808,10 @@ function $a(e) {
|
|
|
808
808
|
}
|
|
809
809
|
return null;
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function La(e, t = 0.9, n = 0.6) {
|
|
812
812
|
return Number.isFinite(e) ? e >= t ? "act" : e >= n ? "check" : "refuse" : "refuse";
|
|
813
813
|
}
|
|
814
|
-
const
|
|
814
|
+
const Pa = [
|
|
815
815
|
"counting or arithmetic",
|
|
816
816
|
"comparing dates or durations",
|
|
817
817
|
"judging whether two numbers are close",
|
|
@@ -923,23 +923,23 @@ const Ra = [
|
|
|
923
923
|
function oe(e) {
|
|
924
924
|
return Wt.find((t) => t.id === e);
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function Ka(e) {
|
|
927
927
|
return oe(e)?.label ?? e;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Ua(e, t = "gpt-5-mini") {
|
|
930
930
|
return oe(e)?.defaultModel ?? t;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function Fa(e) {
|
|
933
933
|
return Wt.filter((t) => t.capabilities.includes(e));
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function ja(e) {
|
|
936
936
|
const t = oe(e);
|
|
937
937
|
return !!t && !t.baseUrl;
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function Ba(e, t) {
|
|
940
940
|
return t === "text" ? !0 : oe(e)?.attachmentKinds?.includes(t) === !0;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Ha(e, t) {
|
|
943
943
|
if (!e.enabled) return "ok";
|
|
944
944
|
const n = st(e.hardLimitNanos), r = st(e.softLimitNanos);
|
|
945
945
|
return n !== void 0 && t >= n ? "hard" : r !== void 0 && t >= r ? "soft" : "ok";
|
|
@@ -951,17 +951,17 @@ function Gn(e, t = "month") {
|
|
|
951
951
|
const n = new Date(e);
|
|
952
952
|
return Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), 1);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function Ga(e, t = "month") {
|
|
955
955
|
const n = new Date(Gn(e, t));
|
|
956
956
|
return `${n.getUTCFullYear()}-${String(n.getUTCMonth() + 1).padStart(2, "0")}`;
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Wa(e) {
|
|
959
959
|
return e === "ask" || e === "draft" || e === "agent";
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function Va(e) {
|
|
962
962
|
return e?.listeningEnabled !== !1;
|
|
963
963
|
}
|
|
964
|
-
const
|
|
964
|
+
const za = [
|
|
965
965
|
{ id: "agent", label: "Agent", labelSource: "user" },
|
|
966
966
|
{ id: "team", label: "Team", labelSource: "team" },
|
|
967
967
|
{ id: "inbox", label: "Inbox", labelSource: "inbox" },
|
|
@@ -983,14 +983,14 @@ function V(e, t) {
|
|
|
983
983
|
return n.setUTCMinutes(0, 0, 0), t === "day" && n.setUTCHours(0), n.getTime();
|
|
984
984
|
}
|
|
985
985
|
const Wn = 36e5, Vn = 864e5;
|
|
986
|
-
function
|
|
986
|
+
function Ya(e, t, n) {
|
|
987
987
|
const r = n === "hour" ? Wn : Vn, o = [];
|
|
988
988
|
for (let i = V(e, n); i <= t; i += r)
|
|
989
989
|
o.push(W(i, n));
|
|
990
990
|
return o;
|
|
991
991
|
}
|
|
992
992
|
const zn = /* @__PURE__ */ new Set(["time"]);
|
|
993
|
-
function
|
|
993
|
+
function Xa(e, t, n) {
|
|
994
994
|
if (!e) return [];
|
|
995
995
|
const r = new Set(e.supportedDimensions ?? []);
|
|
996
996
|
return t.filter((o) => r.has(o.id) && !zn.has(o.id)).map((o) => ({
|
|
@@ -999,21 +999,21 @@ function za(e, t, n) {
|
|
|
999
999
|
options: o.options?.length ? o.options : n[o.id] ?? []
|
|
1000
1000
|
})).filter((o) => o.options.length > 0);
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function qa(e, t) {
|
|
1003
1003
|
const n = t.find((o) => o.id === e.dimensionId), r = n?.options.find((o) => o.value === e.value);
|
|
1004
1004
|
return `${n?.label ?? e.dimensionId} · ${r?.label ?? e.value}`;
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function Qa(e) {
|
|
1007
1007
|
return { value: e.id, label: `${e.category} · ${e.label}` };
|
|
1008
1008
|
}
|
|
1009
|
-
const
|
|
1009
|
+
const Yn = [
|
|
1010
1010
|
{ id: "resource", label: "Resource", labelSource: "raw" },
|
|
1011
1011
|
{ id: "origin", label: "Herkomst", labelSource: "raw" }
|
|
1012
|
-
],
|
|
1012
|
+
], Xn = Yn.map((e) => e.id);
|
|
1013
1013
|
function qn(e, t) {
|
|
1014
1014
|
return `${e}.usage.${t}`;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function Ja(e, t) {
|
|
1017
1017
|
return t.map((n) => ({
|
|
1018
1018
|
id: qn(e, n.unit),
|
|
1019
1019
|
label: n.label,
|
|
@@ -1022,13 +1022,13 @@ function qa(e, t) {
|
|
|
1022
1022
|
aggregation: "sum",
|
|
1023
1023
|
supportedDimensions: [
|
|
1024
1024
|
"provider",
|
|
1025
|
-
...
|
|
1025
|
+
...Xn,
|
|
1026
1026
|
...n.extraDimensions ?? [],
|
|
1027
1027
|
"time"
|
|
1028
1028
|
]
|
|
1029
1029
|
}));
|
|
1030
1030
|
}
|
|
1031
|
-
async function
|
|
1031
|
+
async function Za(e, t) {
|
|
1032
1032
|
let n = 0, r = 0;
|
|
1033
1033
|
for (const o of e)
|
|
1034
1034
|
try {
|
|
@@ -1040,22 +1040,22 @@ async function Qa(e, t) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
return { decided: n, waiting: r };
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function ec(e) {
|
|
1044
1044
|
return e.approvalRequestIds?.length ? [...e.approvalRequestIds] : e.approvalRequestId ? [e.approvalRequestId] : [];
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function tc(e, t) {
|
|
1047
1047
|
return e.filter((r) => !r.enabled || r.scopeKind !== t.scopeKind || r.act !== t.act ? !1 : r.minAmountCents == null ? !0 : t.amountCents != null && t.amountCents >= r.minAmountCents).sort((r, o) => {
|
|
1048
1048
|
const i = r.minAmountCents ?? -1;
|
|
1049
1049
|
return (o.minAmountCents ?? -1) - i || r.id.localeCompare(o.id);
|
|
1050
1050
|
})[0];
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function nc(e, t, n, r) {
|
|
1053
1053
|
const o = new Set(e.userIds);
|
|
1054
1054
|
for (const i of e.teamIds)
|
|
1055
1055
|
for (const s of t[i] ?? []) o.add(s);
|
|
1056
1056
|
return r || o.delete(n), [...o];
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function rc(e, t) {
|
|
1059
1059
|
if (e.status !== "pending" || e.decisions.some((i) => i.userId === t.userId)) return e;
|
|
1060
1060
|
const n = [...e.decisions, t], r = e.pendingUserIds.filter((i) => i !== t.userId);
|
|
1061
1061
|
if (t.decision === "rejected")
|
|
@@ -1069,7 +1069,7 @@ function tc(e, t) {
|
|
|
1069
1069
|
settledAt: o ? t.at : void 0
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
|
-
const Vt = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), at = 200, ct = 100, lt = 200, ut = 12, dt = 4, ft = 10, Qn = 8, pt = 12, zt = 4e3, Z = 500,
|
|
1072
|
+
const Vt = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), at = 200, ct = 100, lt = 200, ut = 12, dt = 4, ft = 10, Qn = 8, pt = 12, zt = 4e3, Z = 500, oc = 1024 * 1024, Jn = /* @__PURE__ */ new Set([
|
|
1073
1073
|
"heading",
|
|
1074
1074
|
"paragraph",
|
|
1075
1075
|
"list",
|
|
@@ -1145,7 +1145,7 @@ function j(e, t = 200) {
|
|
|
1145
1145
|
function ir(e, t = "info") {
|
|
1146
1146
|
return typeof e == "string" && Vt.has(e) ? e : t;
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function ic(e, t = () => {
|
|
1149
1149
|
}) {
|
|
1150
1150
|
if (!Array.isArray(e)) return [];
|
|
1151
1151
|
const n = [];
|
|
@@ -1364,10 +1364,10 @@ function rc(e, t = () => {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
return n;
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function sc(e) {
|
|
1368
1368
|
return JSON.stringify(e).length;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function ac(e) {
|
|
1371
1371
|
return {
|
|
1372
1372
|
blocks: e.length,
|
|
1373
1373
|
types: e.map((t) => t.type),
|
|
@@ -1454,45 +1454,45 @@ function ar(e, t) {
|
|
|
1454
1454
|
`)}
|
|
1455
1455
|
`;
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1458
|
-
function
|
|
1457
|
+
const Yt = (e) => `user:${e}`, Xt = (e) => `team:${e}`;
|
|
1458
|
+
function cc(e) {
|
|
1459
1459
|
const t = /* @__PURE__ */ new Set();
|
|
1460
1460
|
for (const n of e ?? [])
|
|
1461
|
-
n?.id && (n.kind === "user" && t.add(
|
|
1461
|
+
n?.id && (n.kind === "user" && t.add(Yt(n.id)), n.kind === "team" && t.add(Xt(n.id)));
|
|
1462
1462
|
return [...t].sort();
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1465
|
-
return [
|
|
1464
|
+
function lc(e, t) {
|
|
1465
|
+
return [Yt(e), ...t.map(Xt)];
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function uc(e) {
|
|
1468
1468
|
const t = /* @__PURE__ */ new Set();
|
|
1469
1469
|
for (const n of e ?? [])
|
|
1470
1470
|
n?.kind && t.add(n.kind);
|
|
1471
1471
|
return [...t];
|
|
1472
1472
|
}
|
|
1473
|
-
const cr = ["done", "escalated"],
|
|
1474
|
-
function
|
|
1473
|
+
const cr = ["done", "escalated"], dc = ["open", "waiting"];
|
|
1474
|
+
function fc(e) {
|
|
1475
1475
|
return cr.includes(e);
|
|
1476
1476
|
}
|
|
1477
1477
|
const lr = "assignment";
|
|
1478
|
-
function
|
|
1478
|
+
function pc(e) {
|
|
1479
1479
|
return `${lr}:${e}`;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function mc(e, t, n, r) {
|
|
1482
1482
|
if (e.direction === "inbound") return !0;
|
|
1483
1483
|
if (e.author?.type === "user" && e.author.id === t) return !1;
|
|
1484
1484
|
const o = e.payload?.mentions;
|
|
1485
1485
|
return Array.isArray(o) && o.includes(t) || r && r === t ? !0 : n === "reply";
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function hc(e) {
|
|
1488
1488
|
const { targetAuthorId: t, reactorId: n, agentId: r, on: o } = e;
|
|
1489
1489
|
return !o || !t || t !== r ? !1 : n !== r;
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function gc(e) {
|
|
1492
1492
|
return e.subjectKind && e.subjectId ? { type: e.subjectKind, id: e.subjectId } : void 0;
|
|
1493
1493
|
}
|
|
1494
1494
|
const ur = 12;
|
|
1495
|
-
function
|
|
1495
|
+
function yc(e, t, n = ur) {
|
|
1496
1496
|
const r = t + 1;
|
|
1497
1497
|
return e ? e.kind === "done" ? { status: "done", waitingOn: null, turns: r, reason: e.note } : e.kind === "escalate" ? { status: "escalated", waitingOn: null, turns: r, reason: e.reason } : r >= n ? {
|
|
1498
1498
|
status: "escalated",
|
|
@@ -1507,7 +1507,7 @@ function hc(e, t, n = ur) {
|
|
|
1507
1507
|
};
|
|
1508
1508
|
}
|
|
1509
1509
|
const dr = 2;
|
|
1510
|
-
function
|
|
1510
|
+
function bc(e, t, n, r) {
|
|
1511
1511
|
if (t === n)
|
|
1512
1512
|
return "een agent schakelt zichzelf niet in";
|
|
1513
1513
|
if (!r?.includes(t))
|
|
@@ -1518,14 +1518,14 @@ function gc(e, t, n, r) {
|
|
|
1518
1518
|
const i = Math.max(0, o.length - 1);
|
|
1519
1519
|
return i >= dr ? `er zijn al ${i} agents ingeschakeld voor deze vraag; dieper delegeren mag niet` : null;
|
|
1520
1520
|
}
|
|
1521
|
-
const
|
|
1522
|
-
function
|
|
1521
|
+
const Ac = "organization.business-entities.list";
|
|
1522
|
+
function _c(e, t, n) {
|
|
1523
1523
|
return e ? e === t : n;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function Ec(e) {
|
|
1526
1526
|
return e.isDefault === !0 ? [e.id, ""] : [e.id];
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Sc(e, t, n) {
|
|
1529
1529
|
const r = /* @__PURE__ */ new Map();
|
|
1530
1530
|
for (const o of e) o.businessEntityId || r.set(o[t], o);
|
|
1531
1531
|
if (n)
|
|
@@ -1544,7 +1544,7 @@ function pr(e) {
|
|
|
1544
1544
|
t += Number(e[n]) * (n % 2 === 0 ? 3 : 1);
|
|
1545
1545
|
return (10 - t % 10) % 10;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function Tc(e, t) {
|
|
1548
1548
|
const n = t.trim(), r = fr(n), o = [{ sku: n }, { barcodes: { $in: [n] } }];
|
|
1549
1549
|
return r && o.push({ gtin: r }), { organizationId: e, $or: o };
|
|
1550
1550
|
}
|
|
@@ -1569,7 +1569,7 @@ function R(e, t = {}) {
|
|
|
1569
1569
|
c > 0 && (s.length - c) % 3 === 0 && (l += r), l += s[c];
|
|
1570
1570
|
return `${o ? "-" : ""}${l}${n}${a}`;
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Ic(e) {
|
|
1573
1573
|
const t = e.trim().replace(/[\s ]/g, "");
|
|
1574
1574
|
if (!t) return;
|
|
1575
1575
|
const n = t.replace(/^[-+]?[^\d.,-]*/, "").replace(/[^\d.,-]+$/, ""), r = /^-/.test(t) || /-$/.test(t), o = n.replace(/-/g, "");
|
|
@@ -1584,7 +1584,7 @@ function Sc(e) {
|
|
|
1584
1584
|
function hr(e) {
|
|
1585
1585
|
return /^\d+$/.test(e) ? !0 : e.includes(".") && e.includes(",") ? !1 : /^\d{1,3}([.,]\d{3})*$/.test(e);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function vc(e) {
|
|
1588
1588
|
return e.costPriceCents == null ? e.netCents : e.netCents - z(e.costPriceCents * e.quantity);
|
|
1589
1589
|
}
|
|
1590
1590
|
const gr = [
|
|
@@ -1640,7 +1640,7 @@ function br(e, t) {
|
|
|
1640
1640
|
return e.unitPriceCents != null ? e.unitPriceCents : e.discountPercent != null ? z(t * (1 - e.discountPercent / 100)) : t;
|
|
1641
1641
|
}
|
|
1642
1642
|
const Ar = "manual";
|
|
1643
|
-
function
|
|
1643
|
+
function kc(e, t, n, r) {
|
|
1644
1644
|
return e.map((o) => {
|
|
1645
1645
|
if (o.kind !== "product" || o.priceSourceKey === Ar) return o;
|
|
1646
1646
|
const i = t.find((a) => a.id === o.productId);
|
|
@@ -1649,37 +1649,55 @@ function Ic(e, t, n, r) {
|
|
|
1649
1649
|
return s.unitPriceCents === o.unitPriceCents && s.sourceKey === o.priceSourceKey ? o : { ...o, unitPriceCents: s.unitPriceCents, priceSourceKey: s.sourceKey };
|
|
1650
1650
|
});
|
|
1651
1651
|
}
|
|
1652
|
-
const
|
|
1652
|
+
const wc = ["piece", "hour", "day", "month", "km", "license"], Mc = /* @__PURE__ */ new Set(["mail", "message"]);
|
|
1653
1653
|
function _r(e, t) {
|
|
1654
1654
|
const n = e.settings?.signatures?.[t];
|
|
1655
1655
|
return !n?.enabled || !n.body || n.body.trim() === "" ? null : n;
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Oc(e, t, n, r = "html") {
|
|
1658
1658
|
if (!e) return n;
|
|
1659
1659
|
const o = _r(e, t);
|
|
1660
1660
|
return o ? `${n}${r === "text" ? `
|
|
1661
1661
|
|
|
1662
1662
|
` : t === "mail" ? "<br><br>-- <br>" : "<br><br>"}${o.body}` : n;
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function Cc(e) {
|
|
1665
1665
|
return e.endpoints ?? [];
|
|
1666
1666
|
}
|
|
1667
|
+
const Nc = ["lead", "opportunity", "customer", "former"], xc = ["new", "working", "unqualified"];
|
|
1668
|
+
function $c(e) {
|
|
1669
|
+
return [e.firstName, e.lastName].filter(Boolean).join(" ").trim();
|
|
1670
|
+
}
|
|
1671
|
+
const Er = [
|
|
1672
|
+
"stages",
|
|
1673
|
+
"leadStatuses",
|
|
1674
|
+
"sources",
|
|
1675
|
+
"scopes",
|
|
1676
|
+
"cities",
|
|
1677
|
+
"parentCompanyIds"
|
|
1678
|
+
], Sr = ["openDeal", "hasContacts"], Dc = {
|
|
1679
|
+
contact: ["stages", "leadStatuses", "sources", "scopes", "cities", "openDeal"],
|
|
1680
|
+
company: ["stages", "sources", "scopes", "cities", "parentCompanyIds", "hasContacts"]
|
|
1681
|
+
}, Rc = ["updatedAt", "createdAt", "name"], Lc = ["list"];
|
|
1682
|
+
function Pc(e) {
|
|
1683
|
+
return e.search?.trim() || e.createdWithinDays || Sr.some((t) => e[t]) || Er.some((t) => e[t]?.length) ? !1 : !Object.values(e.fields ?? {}).some((t) => t.length);
|
|
1684
|
+
}
|
|
1667
1685
|
function L(e) {
|
|
1668
1686
|
const t = (e ?? "").trim().toLowerCase();
|
|
1669
1687
|
if (t)
|
|
1670
1688
|
return t.split(/[-_]/)[0] || void 0;
|
|
1671
1689
|
}
|
|
1672
|
-
function
|
|
1690
|
+
function Kc(e) {
|
|
1673
1691
|
return L(e.contactLocale) ?? L(e.companyLocale) ?? L(e.organizationLocale);
|
|
1674
1692
|
}
|
|
1675
|
-
function
|
|
1693
|
+
function Uc(e, t, n, r) {
|
|
1676
1694
|
const o = e.filter((a) => a.key === t && !a.archived);
|
|
1677
1695
|
if (o.length === 0) return;
|
|
1678
1696
|
const i = L(n), s = L(r);
|
|
1679
1697
|
return o.find((a) => L(a.locale) === i) ?? o.find((a) => L(a.locale) === s) ?? // A row with no language at all is the single-language case: it is for everybody.
|
|
1680
1698
|
o.find((a) => !a.locale) ?? o[0];
|
|
1681
1699
|
}
|
|
1682
|
-
const
|
|
1700
|
+
const Tr = /\{([a-zA-Z0-9_.]+)\}/g;
|
|
1683
1701
|
function qt(e, t) {
|
|
1684
1702
|
let n = e;
|
|
1685
1703
|
for (const r of t.split(".")) {
|
|
@@ -1688,17 +1706,17 @@ function qt(e, t) {
|
|
|
1688
1706
|
}
|
|
1689
1707
|
return n;
|
|
1690
1708
|
}
|
|
1691
|
-
function
|
|
1709
|
+
function Ir(e) {
|
|
1692
1710
|
return typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
|
|
1693
1711
|
}
|
|
1694
|
-
function
|
|
1712
|
+
function vr(e, t, n) {
|
|
1695
1713
|
const r = [];
|
|
1696
|
-
return { text: e.replace(
|
|
1714
|
+
return { text: e.replace(Tr, (i, s) => {
|
|
1697
1715
|
const a = qt(t, s);
|
|
1698
|
-
return a == null || a === "" ? (r.includes(s) || r.push(s), n ?? `{${s}}`) :
|
|
1716
|
+
return a == null || a === "" ? (r.includes(s) || r.push(s), n ?? `{${s}}`) : Ir(a);
|
|
1699
1717
|
}), unresolved: r };
|
|
1700
1718
|
}
|
|
1701
|
-
function
|
|
1719
|
+
function kr(e, t) {
|
|
1702
1720
|
if (!e) return !0;
|
|
1703
1721
|
const n = qt(t, e.key);
|
|
1704
1722
|
if (e.exists !== void 0) {
|
|
@@ -1707,14 +1725,14 @@ function Ir(e, t) {
|
|
|
1707
1725
|
}
|
|
1708
1726
|
return e.equals !== void 0 ? n === e.equals : !0;
|
|
1709
1727
|
}
|
|
1710
|
-
function
|
|
1728
|
+
function Fc(e, t, n, r, o) {
|
|
1711
1729
|
const i = [], s = [], a = /* @__PURE__ */ new Set(), l = (c) => {
|
|
1712
|
-
const d =
|
|
1730
|
+
const d = vr(c, t, o);
|
|
1713
1731
|
for (const u of d.unresolved) i.includes(u) || i.push(u);
|
|
1714
1732
|
return d.text;
|
|
1715
1733
|
};
|
|
1716
1734
|
for (const c of e) {
|
|
1717
|
-
if (c.block_id && !
|
|
1735
|
+
if (c.block_id && !kr(n?.[c.block_id], t)) continue;
|
|
1718
1736
|
const d = c.block_id ? r?.[c.block_id] : void 0;
|
|
1719
1737
|
if (d && c.block_id) {
|
|
1720
1738
|
a.add(c.block_id), s.push(...d);
|
|
@@ -1804,7 +1822,7 @@ function Nc(e, t, n, r, o) {
|
|
|
1804
1822
|
unusedSlots: Object.keys(r ?? {}).filter((c) => !a.has(c))
|
|
1805
1823
|
};
|
|
1806
1824
|
}
|
|
1807
|
-
function
|
|
1825
|
+
function wr(e) {
|
|
1808
1826
|
const t = e?.address, n = [t?.street, t?.houseNumber].filter(Boolean).join(" "), r = [t?.postalCode, t?.city].filter(Boolean).join(" ");
|
|
1809
1827
|
return {
|
|
1810
1828
|
name: e?.name ?? "",
|
|
@@ -1818,8 +1836,8 @@ function vr(e) {
|
|
|
1818
1836
|
...e?.logo ? { logo: e.logo } : {}
|
|
1819
1837
|
};
|
|
1820
1838
|
}
|
|
1821
|
-
function
|
|
1822
|
-
return
|
|
1839
|
+
function jc(e) {
|
|
1840
|
+
return wr({
|
|
1823
1841
|
name: e?.billing?.companyName || e?.name || e?.displayName || "",
|
|
1824
1842
|
address: e?.address,
|
|
1825
1843
|
kvkNumber: e?.billing?.kvkNumber,
|
|
@@ -1829,7 +1847,7 @@ function xc(e) {
|
|
|
1829
1847
|
logo: e?.logo
|
|
1830
1848
|
});
|
|
1831
1849
|
}
|
|
1832
|
-
function
|
|
1850
|
+
function Mr(e, t, n, r = Date.now()) {
|
|
1833
1851
|
const o = n.filter((i) => i.ok).length;
|
|
1834
1852
|
return {
|
|
1835
1853
|
suite: e,
|
|
@@ -1839,10 +1857,10 @@ function kr(e, t, n, r = Date.now()) {
|
|
|
1839
1857
|
perCase: [...n]
|
|
1840
1858
|
};
|
|
1841
1859
|
}
|
|
1842
|
-
function
|
|
1860
|
+
function Bc(e) {
|
|
1843
1861
|
return e.perCase.filter((t) => !t.ok).map((t) => `${t.caseId}: ${t.note ?? "onverwacht resultaat"}`);
|
|
1844
1862
|
}
|
|
1845
|
-
async function
|
|
1863
|
+
async function Hc(e, t, n, r, o = Date.now()) {
|
|
1846
1864
|
const i = [];
|
|
1847
1865
|
for (const s of n)
|
|
1848
1866
|
try {
|
|
@@ -1854,26 +1872,26 @@ async function Dc(e, t, n, r, o = Date.now()) {
|
|
|
1854
1872
|
note: `beoordeling mislukt: ${a?.message ?? String(a)}`
|
|
1855
1873
|
});
|
|
1856
1874
|
}
|
|
1857
|
-
return
|
|
1875
|
+
return Mr(e, t, i, o);
|
|
1858
1876
|
}
|
|
1859
|
-
const
|
|
1877
|
+
const Or = 36e5, Cr = 864e5, P = -1 / 0, Gc = (e) => e.score > P, ne = {
|
|
1860
1878
|
urgent: 40,
|
|
1861
1879
|
high: 25,
|
|
1862
1880
|
normal: 10,
|
|
1863
1881
|
low: 0
|
|
1864
1882
|
};
|
|
1865
|
-
function
|
|
1883
|
+
function Wc(e) {
|
|
1866
1884
|
return Object.fromEntries(e.map((t) => [t.resourceId, t]));
|
|
1867
1885
|
}
|
|
1868
|
-
const
|
|
1869
|
-
function
|
|
1870
|
-
return !!(e &&
|
|
1886
|
+
const Nr = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i, Qt = /\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;
|
|
1887
|
+
function xr(e, t) {
|
|
1888
|
+
return !!(e && Nr.test(e) || t && Qt.test(t));
|
|
1871
1889
|
}
|
|
1872
|
-
const
|
|
1873
|
-
function
|
|
1874
|
-
return e >=
|
|
1890
|
+
const $r = 3, Dr = 600;
|
|
1891
|
+
function Vc(e, t) {
|
|
1892
|
+
return e >= $r || t >= Dr;
|
|
1875
1893
|
}
|
|
1876
|
-
const
|
|
1894
|
+
const Rr = [
|
|
1877
1895
|
"list-unsubscribe",
|
|
1878
1896
|
"list-unsubscribe-post",
|
|
1879
1897
|
"list-id",
|
|
@@ -1883,90 +1901,90 @@ const $r = [
|
|
|
1883
1901
|
"feedback-id",
|
|
1884
1902
|
"x-mailer"
|
|
1885
1903
|
];
|
|
1886
|
-
function
|
|
1904
|
+
function zc(e) {
|
|
1887
1905
|
const t = {};
|
|
1888
1906
|
for (const n of e) {
|
|
1889
1907
|
const r = n.name?.toLowerCase();
|
|
1890
|
-
r && n.value !== void 0 &&
|
|
1908
|
+
r && n.value !== void 0 && Rr.includes(r) && (t[r] = n.value);
|
|
1891
1909
|
}
|
|
1892
1910
|
return t;
|
|
1893
1911
|
}
|
|
1894
|
-
const
|
|
1895
|
-
function
|
|
1912
|
+
const Lr = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|notifications?|bounce|postmaster|mailer)@/i, Pr = /(^|[._+-])(newsletter|nieuwsbrief|marketing|mailing)@/i;
|
|
1913
|
+
function Yc(e) {
|
|
1896
1914
|
const t = e.headers ?? {}, n = e.from?.email, r = t["auto-submitted"]?.toLowerCase();
|
|
1897
|
-
if (r && r !== "no" || t["x-auto-response-suppress"] || n &&
|
|
1915
|
+
if (r && r !== "no" || t["x-auto-response-suppress"] || n && Lr.test(n))
|
|
1898
1916
|
return "automated";
|
|
1899
1917
|
const o = t.precedence?.toLowerCase();
|
|
1900
|
-
if (t["list-unsubscribe"] || t["list-unsubscribe-post"] || t["list-id"] || o === "bulk" || o === "list" || e.body && Qt.test(e.body) || n &&
|
|
1918
|
+
if (t["list-unsubscribe"] || t["list-unsubscribe-post"] || t["list-id"] || o === "bulk" || o === "list" || e.body && Qt.test(e.body) || n && Pr.test(n))
|
|
1901
1919
|
return "marketing";
|
|
1902
1920
|
}
|
|
1903
|
-
function
|
|
1921
|
+
function Kr(e, t) {
|
|
1904
1922
|
return e.lastActivityAt ? !(e.seenBy ?? []).includes(t) : !1;
|
|
1905
1923
|
}
|
|
1906
|
-
const
|
|
1907
|
-
function
|
|
1924
|
+
const Ur = ["open"], Fr = 1e3, jr = 72;
|
|
1925
|
+
function Br(e) {
|
|
1908
1926
|
return e.lastActivityAt ?? (e.createdAt ? new Date(jn(e)).getTime() : 0);
|
|
1909
1927
|
}
|
|
1910
|
-
function
|
|
1911
|
-
return
|
|
1928
|
+
function Hr(e, t) {
|
|
1929
|
+
return Gr(t.remindersById?.[e.id], e, t.now);
|
|
1912
1930
|
}
|
|
1913
|
-
function
|
|
1931
|
+
function Gr(e, t, n) {
|
|
1914
1932
|
return !e || e.remindAt <= n ? !1 : !((t.lastActivityAt ?? 0) > e.parkedAt && t.lastActivityPreview?.direction === "inbound");
|
|
1915
1933
|
}
|
|
1916
|
-
const Jt = (e) => Rn(e) === "outbound_message", Zt = (e) =>
|
|
1934
|
+
const Jt = (e) => Rn(e) === "outbound_message", Zt = (e) => Ur.includes(e);
|
|
1917
1935
|
function je(e, t) {
|
|
1918
|
-
return Math.max(0, (t -
|
|
1936
|
+
return Math.max(0, (t - Br(e)) / Or);
|
|
1919
1937
|
}
|
|
1920
|
-
function
|
|
1938
|
+
function Wr(e, t) {
|
|
1921
1939
|
const n = e.assignedInboxId ? t?.[e.assignedInboxId] : void 0;
|
|
1922
1940
|
return typeof n == "number" && n > 0 ? n : void 0;
|
|
1923
1941
|
}
|
|
1924
|
-
function
|
|
1942
|
+
function Xc(e) {
|
|
1925
1943
|
const t = {};
|
|
1926
1944
|
for (const n of e)
|
|
1927
1945
|
typeof n.slaHours == "number" && n.slaHours > 0 && (t[n.id] = n.slaHours);
|
|
1928
1946
|
return t;
|
|
1929
1947
|
}
|
|
1930
|
-
function
|
|
1948
|
+
function qc(e, t, n) {
|
|
1931
1949
|
if (!Zt(e.status) || e.firstResponseAt) return !1;
|
|
1932
|
-
const r =
|
|
1950
|
+
const r = Wr(e, n);
|
|
1933
1951
|
return r !== void 0 && je(e, t) > r;
|
|
1934
1952
|
}
|
|
1935
|
-
function
|
|
1953
|
+
function Vr(e, t) {
|
|
1936
1954
|
const n = e.lastActivityPreview;
|
|
1937
|
-
return n?.direction !== "outbound" || !Jt(n.type) ? !1 : je(e, t) <
|
|
1955
|
+
return n?.direction !== "outbound" || !Jt(n.type) ? !1 : je(e, t) < jr;
|
|
1938
1956
|
}
|
|
1939
|
-
function
|
|
1957
|
+
function Qc(e, t) {
|
|
1940
1958
|
if (!Zt(e.status)) return { score: P, reasons: [] };
|
|
1941
1959
|
if (e.snoozedTill && e.snoozedTill > t.now) return { score: P, reasons: [] };
|
|
1942
|
-
if (
|
|
1943
|
-
if (
|
|
1960
|
+
if (Vr(e, t.now)) return { score: P, reasons: [] };
|
|
1961
|
+
if (Hr(e, t)) return { score: P, reasons: [] };
|
|
1944
1962
|
let n = 0;
|
|
1945
1963
|
const r = [], o = e.priority ?? "normal";
|
|
1946
|
-
ne[o] > 0 && (n += ne[o], r.push(`priority:${o}`)),
|
|
1964
|
+
ne[o] > 0 && (n += ne[o], r.push(`priority:${o}`)), Kr(e, t.userId) && (n += 20, r.push("unseen")), e.assignedUserId && e.assignedUserId === t.userId && (n += 15, r.push("assigned-to-you"));
|
|
1947
1965
|
const i = je(e, t.now);
|
|
1948
1966
|
if (i > 0) {
|
|
1949
1967
|
const l = Math.min(i * 2, 30);
|
|
1950
1968
|
n += l, i >= 1 && r.push(`waiting:${Math.round(i)}h`);
|
|
1951
1969
|
}
|
|
1952
1970
|
const s = e.lastActivityPreview;
|
|
1953
|
-
return s?.type === "AI_ACTION_PROPOSED" && (n += 30, r.push("awaiting-approval")), s?.direction === "outbound" && Jt(s.type) && (n += 10, r.push("no-reply")), !e.firstResponseAt && e.lastActivityPreview?.direction === "inbound" && (n += 10, r.push("awaiting-reply")), (e.tags?.some((l) => l === "marketing" || l === "automated") ||
|
|
1971
|
+
return s?.type === "AI_ACTION_PROPOSED" && (n += 30, r.push("awaiting-approval")), s?.direction === "outbound" && Jt(s.type) && (n += 10, r.push("no-reply")), !e.firstResponseAt && e.lastActivityPreview?.direction === "inbound" && (n += 10, r.push("awaiting-reply")), (e.tags?.some((l) => l === "marketing" || l === "automated") || xr(e.remoteParty?.resource, e.lastActivityPreview?.snippet)) && (n -= Fr, r.push("bulk")), { score: n, reasons: r };
|
|
1954
1972
|
}
|
|
1955
|
-
const
|
|
1973
|
+
const Jc = (e) => !!e.assignedUserId || !!e.assignedInboxId, Zc = (e) => e.status === "closed", el = (e) => ({
|
|
1956
1974
|
urgent: 10,
|
|
1957
1975
|
high: 5,
|
|
1958
1976
|
normal: 2,
|
|
1959
1977
|
low: 1
|
|
1960
|
-
})[e.priority] || 0,
|
|
1961
|
-
function
|
|
1978
|
+
})[e.priority] || 0, tl = (e, t = 30) => e.title?.length <= t ? e.title : `${e.title.substring(0, t)}...`;
|
|
1979
|
+
function nl(e, t) {
|
|
1962
1980
|
const n = e.labels ?? [];
|
|
1963
1981
|
return n.find((r) => r.locale === t)?.label ?? n[0]?.label ?? e.url;
|
|
1964
1982
|
}
|
|
1965
|
-
function
|
|
1983
|
+
function rl(e, t, n) {
|
|
1966
1984
|
const r = e.translations ?? [];
|
|
1967
1985
|
return r.find((o) => o.locale === t) ?? (n ? r.find((o) => o.locale === n) : void 0) ?? { locale: t };
|
|
1968
1986
|
}
|
|
1969
|
-
const
|
|
1987
|
+
const ol = "article", gt = [
|
|
1970
1988
|
{ code: "nl", label: "Nederlands", english: "Dutch" },
|
|
1971
1989
|
{ code: "en", label: "English", english: "English" },
|
|
1972
1990
|
{ code: "de", label: "Deutsch", english: "German" },
|
|
@@ -1985,15 +2003,15 @@ function en(e) {
|
|
|
1985
2003
|
const t = (e ?? "").toLowerCase();
|
|
1986
2004
|
return gt.find((n) => n.code === t) ?? gt.find((n) => n.code === t.split("-")[0]);
|
|
1987
2005
|
}
|
|
1988
|
-
function
|
|
2006
|
+
function il(e) {
|
|
1989
2007
|
return en(e)?.label ?? e;
|
|
1990
2008
|
}
|
|
1991
|
-
function
|
|
2009
|
+
function sl(e) {
|
|
1992
2010
|
const t = en(e);
|
|
1993
2011
|
return t ? t.english === t.label ? `${t.english} (${t.code})` : `${t.english} — ${t.label} (${t.code})` : e;
|
|
1994
2012
|
}
|
|
1995
2013
|
const tn = 3;
|
|
1996
|
-
function
|
|
2014
|
+
function zr(e, t) {
|
|
1997
2015
|
const n = /* @__PURE__ */ new Set();
|
|
1998
2016
|
let r = 1, o = t.get(e)?.parentId;
|
|
1999
2017
|
for (; o; ) {
|
|
@@ -2002,15 +2020,15 @@ function Wr(e, t) {
|
|
|
2002
2020
|
}
|
|
2003
2021
|
return r;
|
|
2004
2022
|
}
|
|
2005
|
-
function
|
|
2023
|
+
function al(e, t, n) {
|
|
2006
2024
|
if (!e) return !0;
|
|
2007
2025
|
if (e === t) return !1;
|
|
2008
2026
|
const r = new Map(n.map((s) => [s.id, s]));
|
|
2009
|
-
if (!r.has(e) || t &&
|
|
2010
|
-
const o =
|
|
2027
|
+
if (!r.has(e) || t && Yr(e, t, r)) return !1;
|
|
2028
|
+
const o = zr(e, r), i = t ? nn(t, n) : 1;
|
|
2011
2029
|
return o + i <= tn;
|
|
2012
2030
|
}
|
|
2013
|
-
function
|
|
2031
|
+
function Yr(e, t, n) {
|
|
2014
2032
|
const r = /* @__PURE__ */ new Set();
|
|
2015
2033
|
let o = n.get(e)?.parentId;
|
|
2016
2034
|
for (; o; ) {
|
|
@@ -2026,17 +2044,17 @@ function nn(e, t, n = /* @__PURE__ */ new Set()) {
|
|
|
2026
2044
|
const r = t.filter((o) => o.parentId === e);
|
|
2027
2045
|
return r.length ? 1 + Math.max(...r.map((o) => nn(o.id, t, n))) : 1;
|
|
2028
2046
|
}
|
|
2029
|
-
const
|
|
2030
|
-
function
|
|
2031
|
-
return e.defaultLocale || e.locale ||
|
|
2047
|
+
const Xr = "en";
|
|
2048
|
+
function qr(e) {
|
|
2049
|
+
return e.defaultLocale || e.locale || Xr;
|
|
2032
2050
|
}
|
|
2033
|
-
function
|
|
2051
|
+
function cl(e) {
|
|
2034
2052
|
const t = /* @__PURE__ */ new Set(), n = [];
|
|
2035
|
-
for (const r of [
|
|
2053
|
+
for (const r of [qr(e), ...e.locales ?? []])
|
|
2036
2054
|
!r || t.has(r) || (t.add(r), n.push(r));
|
|
2037
2055
|
return n;
|
|
2038
2056
|
}
|
|
2039
|
-
function
|
|
2057
|
+
function ll(e, t, n) {
|
|
2040
2058
|
const r = e.translations ?? [];
|
|
2041
2059
|
return r.find((o) => o.locale === t)?.name ?? (n ? r.find((o) => o.locale === n)?.name : void 0) ?? e.name;
|
|
2042
2060
|
}
|
|
@@ -2061,7 +2079,7 @@ function de(e) {
|
|
|
2061
2079
|
}
|
|
2062
2080
|
return null;
|
|
2063
2081
|
}
|
|
2064
|
-
function
|
|
2082
|
+
function Qr(e, t) {
|
|
2065
2083
|
switch (e.kind) {
|
|
2066
2084
|
case "org":
|
|
2067
2085
|
return !0;
|
|
@@ -2071,29 +2089,29 @@ function Yr(e, t) {
|
|
|
2071
2089
|
return e.userId === t.userId;
|
|
2072
2090
|
}
|
|
2073
2091
|
}
|
|
2074
|
-
function
|
|
2075
|
-
return e.filter((n) => n.enabled &&
|
|
2092
|
+
function ul(e, t) {
|
|
2093
|
+
return e.filter((n) => n.enabled && Qr(n.ownerScope, t));
|
|
2076
2094
|
}
|
|
2077
|
-
function
|
|
2095
|
+
function dl(e) {
|
|
2078
2096
|
return e.credentialScope ? e.credentialScope : (e.authMode ?? "header") === "header" || e.oauth?.scope === "org" ? "shared" : "per-user";
|
|
2079
2097
|
}
|
|
2080
|
-
function
|
|
2098
|
+
function fl(e) {
|
|
2081
2099
|
return `mcp__${e}__`;
|
|
2082
2100
|
}
|
|
2083
|
-
const
|
|
2084
|
-
function
|
|
2101
|
+
const pl = 1e3, ml = 2e3, hl = 500, gl = 12e3, yl = 4e3, Jr = ["contact", "company", "work_item"];
|
|
2102
|
+
function bl(e) {
|
|
2085
2103
|
if (!e) return !1;
|
|
2086
2104
|
const t = e.slice(0, e.indexOf(":"));
|
|
2087
|
-
return
|
|
2105
|
+
return Jr.includes(t);
|
|
2088
2106
|
}
|
|
2089
|
-
const
|
|
2107
|
+
const Al = [
|
|
2090
2108
|
{ key: "high", label: "tax_high", percent: 21, kind: "standard" },
|
|
2091
2109
|
{ key: "low", label: "tax_low", percent: 9, kind: "reduced" },
|
|
2092
2110
|
{ key: "zero", label: "tax_zero", percent: 0, kind: "zero" },
|
|
2093
2111
|
{ key: "reverse_charge", label: "tax_reverse_charge", percent: 0, kind: "reverse_charge" },
|
|
2094
2112
|
{ key: "exempt", label: "tax_exempt", percent: 0, kind: "exempt" }
|
|
2095
2113
|
];
|
|
2096
|
-
function
|
|
2114
|
+
function Zr(e, t) {
|
|
2097
2115
|
return t.find((n) => n.key === e) ?? {
|
|
2098
2116
|
key: e,
|
|
2099
2117
|
label: e,
|
|
@@ -2101,13 +2119,13 @@ function Qr(e, t) {
|
|
|
2101
2119
|
kind: "zero"
|
|
2102
2120
|
};
|
|
2103
2121
|
}
|
|
2104
|
-
function
|
|
2122
|
+
function eo(e) {
|
|
2105
2123
|
if (e.kind !== "product") return 0;
|
|
2106
2124
|
const t = 1 - (e.discountPercent ?? 0) / 100;
|
|
2107
2125
|
return z(e.quantity * e.unitPriceCents * t);
|
|
2108
2126
|
}
|
|
2109
|
-
function
|
|
2110
|
-
const r = e.map((c) => ({ ...c, netCents:
|
|
2127
|
+
function _l(e, t, n) {
|
|
2128
|
+
const r = e.map((c) => ({ ...c, netCents: eo(c), taxCents: 0 })), o = /* @__PURE__ */ new Map();
|
|
2111
2129
|
for (let c = 0; c < r.length; c++) {
|
|
2112
2130
|
if (r[c].kind !== "product" || r[c].optional) continue;
|
|
2113
2131
|
const d = n ?? r[c].taxRateKey, u = o.get(d);
|
|
@@ -2116,7 +2134,7 @@ function dl(e, t, n) {
|
|
|
2116
2134
|
const i = [];
|
|
2117
2135
|
let s = 0, a = 0;
|
|
2118
2136
|
for (const [c, d] of o) {
|
|
2119
|
-
const u =
|
|
2137
|
+
const u = Zr(c, t), f = d.reduce((m, S) => m + r[S].netCents, 0), p = z(f * u.percent / 100), y = mr(
|
|
2120
2138
|
p,
|
|
2121
2139
|
d.map((m) => r[m].netCents)
|
|
2122
2140
|
);
|
|
@@ -2144,7 +2162,7 @@ function dl(e, t, n) {
|
|
|
2144
2162
|
}
|
|
2145
2163
|
};
|
|
2146
2164
|
}
|
|
2147
|
-
const
|
|
2165
|
+
const El = "onboarding-source", Sl = ["support", "billing", "availability", "sales", "onboarding"], Tl = ["keep", "replace"], Be = [
|
|
2148
2166
|
{
|
|
2149
2167
|
key: "shift",
|
|
2150
2168
|
label: "kind_shift",
|
|
@@ -2218,7 +2236,7 @@ const fl = "onboarding-source", pl = ["support", "billing", "availability", "sal
|
|
|
2218
2236
|
absent: !0,
|
|
2219
2237
|
icon: "party-popper"
|
|
2220
2238
|
}
|
|
2221
|
-
],
|
|
2239
|
+
], to = {
|
|
2222
2240
|
key: "unknown",
|
|
2223
2241
|
label: "kind_unknown",
|
|
2224
2242
|
capacity: !1,
|
|
@@ -2226,9 +2244,9 @@ const fl = "onboarding-source", pl = ["support", "billing", "availability", "sal
|
|
|
2226
2244
|
absent: !1
|
|
2227
2245
|
};
|
|
2228
2246
|
function $(e, t = Be) {
|
|
2229
|
-
return t.find((n) => n.key === e) ?? { ...
|
|
2247
|
+
return t.find((n) => n.key === e) ?? { ...to, key: e };
|
|
2230
2248
|
}
|
|
2231
|
-
function
|
|
2249
|
+
function Y(e) {
|
|
2232
2250
|
return e === "published" || e === "approved";
|
|
2233
2251
|
}
|
|
2234
2252
|
function rn(e, t, n = Be) {
|
|
@@ -2236,18 +2254,18 @@ function rn(e, t, n = Be) {
|
|
|
2236
2254
|
const r = $(e.kindKey, n);
|
|
2237
2255
|
return r.absent ? !1 : r.productive || r.capacity;
|
|
2238
2256
|
}
|
|
2239
|
-
function
|
|
2240
|
-
if (!e.userId || !
|
|
2257
|
+
function Il(e, t = Be) {
|
|
2258
|
+
if (!e.userId || !Y(e.status)) return !1;
|
|
2241
2259
|
const n = $(e.kindKey, t);
|
|
2242
2260
|
return n.capacity || n.productive || n.absent;
|
|
2243
2261
|
}
|
|
2244
|
-
const
|
|
2245
|
-
function
|
|
2246
|
-
return Math.round((t - e) /
|
|
2262
|
+
const no = 864e5;
|
|
2263
|
+
function ro(e, t) {
|
|
2264
|
+
return Math.round((t - e) / no);
|
|
2247
2265
|
}
|
|
2248
2266
|
function on(e, t) {
|
|
2249
2267
|
const n = e.cycleMinutes.length;
|
|
2250
|
-
return n === 0 ? 0 : (
|
|
2268
|
+
return n === 0 ? 0 : (ro(e.anchor, t) % n + n) % n;
|
|
2251
2269
|
}
|
|
2252
2270
|
function sn(e, t) {
|
|
2253
2271
|
return e.effectiveFrom !== void 0 && t < e.effectiveFrom ? 0 : e.cycleMinutes[on(e, t)] ?? 0;
|
|
@@ -2263,13 +2281,13 @@ function cn(e, t, n, r) {
|
|
|
2263
2281
|
o.filter((a) => !a.userId && a.teamId && n.includes(a.teamId))
|
|
2264
2282
|
);
|
|
2265
2283
|
}
|
|
2266
|
-
function
|
|
2284
|
+
function oo(e, t, n) {
|
|
2267
2285
|
return e.filter(
|
|
2268
2286
|
(r) => r.userId === t && (r.effectiveFrom === void 0 || r.effectiveFrom <= n)
|
|
2269
2287
|
).sort((r, o) => (o.effectiveFrom ?? 0) - (r.effectiveFrom ?? 0))[0];
|
|
2270
2288
|
}
|
|
2271
2289
|
const Te = 864e5;
|
|
2272
|
-
function
|
|
2290
|
+
function io(e) {
|
|
2273
2291
|
const t = Math.max(1, Math.round((e.to - e.from) / Te));
|
|
2274
2292
|
return Array.from({ length: t }, (n, r) => e.from + r * Te);
|
|
2275
2293
|
}
|
|
@@ -2278,11 +2296,11 @@ function Ie(e, t, n, r) {
|
|
|
2278
2296
|
return o > 0 ? o / 1e3 : 0;
|
|
2279
2297
|
}
|
|
2280
2298
|
const bt = { interval: 0, day: 1, week: 2 };
|
|
2281
|
-
function
|
|
2299
|
+
function vl(e, t) {
|
|
2282
2300
|
const { entries: n, patterns: r = [], terms: o = [] } = t, i = n.filter(
|
|
2283
|
-
(u) => u.userId &&
|
|
2301
|
+
(u) => u.userId && Y(u.status) && $(u.kindKey).capacity
|
|
2284
2302
|
), s = n.filter(
|
|
2285
|
-
(u) => u.userId &&
|
|
2303
|
+
(u) => u.userId && Y(u.status) && $(u.kindKey).absent
|
|
2286
2304
|
), a = t.userIds ?? [
|
|
2287
2305
|
.../* @__PURE__ */ new Set([
|
|
2288
2306
|
...i.map((u) => u.userId),
|
|
@@ -2297,10 +2315,10 @@ function gl(e, t) {
|
|
|
2297
2315
|
for (const u of a) {
|
|
2298
2316
|
const f = t.teamIdsOf?.(u) ?? [];
|
|
2299
2317
|
let p = 0, y = 0, m = 0;
|
|
2300
|
-
for (const h of
|
|
2318
|
+
for (const h of io(e)) {
|
|
2301
2319
|
const E = Math.max(h, e.from), x = Math.min(h + Te, e.to);
|
|
2302
2320
|
m++;
|
|
2303
|
-
const C = i.filter((k) => k.userId === u).reduce((k,
|
|
2321
|
+
const C = i.filter((k) => k.userId === u).reduce((k, Xe) => k + Ie(Xe.start, Xe.end, E, x), 0);
|
|
2304
2322
|
if (C > 0) {
|
|
2305
2323
|
p += C;
|
|
2306
2324
|
continue;
|
|
@@ -2313,7 +2331,7 @@ function gl(e, t) {
|
|
|
2313
2331
|
w || y++;
|
|
2314
2332
|
}
|
|
2315
2333
|
if (y > 0) {
|
|
2316
|
-
const h =
|
|
2334
|
+
const h = oo(o, u, e.from);
|
|
2317
2335
|
h && (p += h.weeklyMinutes * 60 * (y / 7), d("week"));
|
|
2318
2336
|
}
|
|
2319
2337
|
const S = s.filter((h) => h.userId === u).reduce(
|
|
@@ -2328,7 +2346,7 @@ function gl(e, t) {
|
|
|
2328
2346
|
byUser: l
|
|
2329
2347
|
};
|
|
2330
2348
|
}
|
|
2331
|
-
function
|
|
2349
|
+
function kl(e, t) {
|
|
2332
2350
|
if (!e.some((a) => a.userId)) return [];
|
|
2333
2351
|
const n = "", r = /* @__PURE__ */ new Map();
|
|
2334
2352
|
for (const a of e) {
|
|
@@ -2351,9 +2369,9 @@ function yl(e, t) {
|
|
|
2351
2369
|
const s = r.get(n) ?? 0;
|
|
2352
2370
|
return s > 0 && i.push({ requiredSeconds: s, capacitySeconds: 0, netSeconds: -s }), i;
|
|
2353
2371
|
}
|
|
2354
|
-
function
|
|
2372
|
+
function wl(e, t, n, r) {
|
|
2355
2373
|
const o = e.filter(
|
|
2356
|
-
(s) => s.userId &&
|
|
2374
|
+
(s) => s.userId && Y(s.status) && !$(s.kindKey).absent
|
|
2357
2375
|
), i = Object.entries(r.byUser).map(
|
|
2358
2376
|
([s, a]) => {
|
|
2359
2377
|
let l = 0, c = 0;
|
|
@@ -2373,59 +2391,59 @@ function bl(e, t, n, r) {
|
|
|
2373
2391
|
);
|
|
2374
2392
|
return i.sort((s, a) => a.freeSeconds - s.freeSeconds), i;
|
|
2375
2393
|
}
|
|
2376
|
-
const
|
|
2377
|
-
function
|
|
2394
|
+
const Ml = "demand-source", At = 1e3;
|
|
2395
|
+
function so(e, t) {
|
|
2378
2396
|
let n = 1;
|
|
2379
2397
|
for (let r = 1; r <= e; r++)
|
|
2380
2398
|
n = t * n / (r + t * n);
|
|
2381
2399
|
return n;
|
|
2382
2400
|
}
|
|
2383
|
-
function
|
|
2401
|
+
function ao(e, t) {
|
|
2384
2402
|
if (e <= 0) return 1;
|
|
2385
2403
|
if (t <= 0) return 0;
|
|
2386
2404
|
if (e <= t) return 1;
|
|
2387
|
-
const n =
|
|
2405
|
+
const n = so(e, t), r = t / e;
|
|
2388
2406
|
return n / (1 - r * (1 - n));
|
|
2389
2407
|
}
|
|
2390
|
-
function
|
|
2391
|
-
return r <= 0 ? 1 : e <= t ? 0 : 1 -
|
|
2408
|
+
function co(e, t, n, r) {
|
|
2409
|
+
return r <= 0 ? 1 : e <= t ? 0 : 1 - ao(e, t) * Math.exp(-(e - t) * n / r);
|
|
2392
2410
|
}
|
|
2393
|
-
function
|
|
2411
|
+
function lo(e, t, n) {
|
|
2394
2412
|
return n <= 0 ? 0 : e * t / n;
|
|
2395
2413
|
}
|
|
2396
|
-
function
|
|
2414
|
+
function uo(e, t, n, r) {
|
|
2397
2415
|
if (e <= 0 || t <= 0) return 0;
|
|
2398
|
-
const o =
|
|
2416
|
+
const o = lo(e, t, n);
|
|
2399
2417
|
if (o <= 0) return 0;
|
|
2400
2418
|
const i = r.serviceLevelPercent / 100, s = r.maxOccupancyPercent ? r.maxOccupancyPercent / 100 : void 0;
|
|
2401
2419
|
for (let a = Math.max(1, Math.ceil(o)); a <= At; a++)
|
|
2402
|
-
if (!(a <= o) && !(
|
|
2420
|
+
if (!(a <= o) && !(co(a, o, r.targetSeconds, t) < i) && !(s && o / a > s))
|
|
2403
2421
|
return a;
|
|
2404
2422
|
return At;
|
|
2405
2423
|
}
|
|
2406
|
-
const
|
|
2407
|
-
function
|
|
2408
|
-
return e === "day" ?
|
|
2424
|
+
const fo = 36e5, po = 864e5;
|
|
2425
|
+
function mo(e) {
|
|
2426
|
+
return e === "day" ? po : fo;
|
|
2409
2427
|
}
|
|
2410
|
-
function
|
|
2428
|
+
function Ol(e, t) {
|
|
2411
2429
|
return e.start < t.end && t.start < e.end;
|
|
2412
2430
|
}
|
|
2413
2431
|
function fe(e, t, n) {
|
|
2414
2432
|
const r = Math.min(e.end, n) - Math.max(e.start, t);
|
|
2415
2433
|
return r > 0 ? r / 1e3 : 0;
|
|
2416
2434
|
}
|
|
2417
|
-
function
|
|
2435
|
+
function ho(e, t, n) {
|
|
2418
2436
|
const r = e.handleSeconds ?? 0, o = e.seconds ?? (e.volume !== void 0 ? e.volume * r : 0);
|
|
2419
2437
|
if (o <= 0 && !e.volume) return { seconds: 0, headcount: 0 };
|
|
2420
2438
|
const i = (t.unplannedLossPercent ?? 0) / 100, s = i > 0 && i < 1 ? 1 / (1 - i) : 1;
|
|
2421
2439
|
if (t.model === "queue" && e.volume !== void 0 && r > 0) {
|
|
2422
|
-
const a =
|
|
2440
|
+
const a = uo(e.volume, r, n, t);
|
|
2423
2441
|
return { seconds: o, headcount: a * s };
|
|
2424
2442
|
}
|
|
2425
2443
|
return { seconds: o, headcount: o / n * s };
|
|
2426
2444
|
}
|
|
2427
|
-
function
|
|
2428
|
-
const { entries: t, workstreamId: n, staffing: r, demand: o, range: i } = e, s = e.grain ?? "hour", a =
|
|
2445
|
+
function Cl(e) {
|
|
2446
|
+
const { entries: t, workstreamId: n, staffing: r, demand: o, range: i } = e, s = e.grain ?? "hour", a = mo(s), l = a / 1e3, c = e.kinds, d = t.filter((m) => Y(m.status)), u = d.filter((m) => rn(m, n, c)), f = d.filter((m) => $(m.kindKey, c).capacity), p = d.filter((m) => $(m.kindKey, c).absent), y = [];
|
|
2429
2447
|
for (let m = V(i.from, s); m < i.to; m += a) {
|
|
2430
2448
|
const S = m + a, g = W(m, s);
|
|
2431
2449
|
let h = 0;
|
|
@@ -2434,7 +2452,7 @@ function El(e) {
|
|
|
2434
2452
|
for (const k of f) E += fe(k, m, S);
|
|
2435
2453
|
let x = 0;
|
|
2436
2454
|
for (const k of p) x += fe(k, m, S);
|
|
2437
|
-
const C = o?.[g] ?? {}, w =
|
|
2455
|
+
const C = o?.[g] ?? {}, w = ho(C, r, l), N = h / l;
|
|
2438
2456
|
y.push({
|
|
2439
2457
|
period: g,
|
|
2440
2458
|
forecastVolume: C.volume,
|
|
@@ -2449,24 +2467,24 @@ function El(e) {
|
|
|
2449
2467
|
}
|
|
2450
2468
|
return y;
|
|
2451
2469
|
}
|
|
2452
|
-
function
|
|
2470
|
+
function go(e, t) {
|
|
2453
2471
|
return e.workTypeKey ?? t?.defaultWorkTypeKey;
|
|
2454
2472
|
}
|
|
2455
|
-
function
|
|
2456
|
-
const r =
|
|
2473
|
+
function Nl(e, t, n) {
|
|
2474
|
+
const r = go(e, t);
|
|
2457
2475
|
return r ? n.find((o) => o.key === r)?.defaultBillable ?? !1 : !1;
|
|
2458
2476
|
}
|
|
2459
|
-
function
|
|
2477
|
+
function xl(e) {
|
|
2460
2478
|
return e.filter(
|
|
2461
2479
|
(t) => t.netHeadcount < 0 && t.requiredHeadcount > 0
|
|
2462
2480
|
);
|
|
2463
2481
|
}
|
|
2464
|
-
const
|
|
2465
|
-
function
|
|
2482
|
+
const yo = 36e5, ve = 6048e5, bo = 8, Ao = 0.5, _o = 2;
|
|
2483
|
+
function Eo(e) {
|
|
2466
2484
|
const t = Number(e.slice(0, 4)), n = Number(e.slice(5, 7)), r = Number(e.slice(8, 10)), o = e.length > 10 ? Number(e.slice(11, 13)) : 0;
|
|
2467
2485
|
return Date.UTC(t, n - 1, r, o);
|
|
2468
2486
|
}
|
|
2469
|
-
function
|
|
2487
|
+
function So(e, t, n) {
|
|
2470
2488
|
const r = [];
|
|
2471
2489
|
for (let i = 0; i < n; i++) {
|
|
2472
2490
|
const s = t - i * ve, a = s - ve;
|
|
@@ -2477,21 +2495,21 @@ function _o(e, t, n) {
|
|
|
2477
2495
|
}
|
|
2478
2496
|
if (r.length < 2) return 1;
|
|
2479
2497
|
const o = r.reduce((i, s) => i + s, 0) / r.length;
|
|
2480
|
-
return o <= 0 ? 1 : Math.min(
|
|
2498
|
+
return o <= 0 ? 1 : Math.min(_o, Math.max(Ao, r[0] / o));
|
|
2481
2499
|
}
|
|
2482
|
-
function
|
|
2500
|
+
function To(e, t) {
|
|
2483
2501
|
if (!e?.length) return;
|
|
2484
2502
|
let n;
|
|
2485
2503
|
for (const r of e)
|
|
2486
2504
|
t >= r.from && t < r.to && (n = r);
|
|
2487
2505
|
return n;
|
|
2488
2506
|
}
|
|
2489
|
-
function
|
|
2490
|
-
const r = Math.max(1, n?.weeks ??
|
|
2507
|
+
function $l(e, t, n) {
|
|
2508
|
+
const r = Math.max(1, n?.weeks ?? bo), o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
|
|
2491
2509
|
for (const l of e)
|
|
2492
|
-
o.set(
|
|
2493
|
-
const s =
|
|
2494
|
-
for (let l = V(t.from, "hour"); l < t.to; l +=
|
|
2510
|
+
o.set(Eo(l.period), l.value), i.add(l.period.slice(0, 10));
|
|
2511
|
+
const s = So(o, V(t.from, "hour"), r), a = [];
|
|
2512
|
+
for (let l = V(t.from, "hour"); l < t.to; l += yo) {
|
|
2495
2513
|
let c = 0, d = 0;
|
|
2496
2514
|
for (let p = 1; p <= r; p++) {
|
|
2497
2515
|
const y = l - p * ve, S = o.get(y) ?? (i.has(W(y, "day")) ? 0 : void 0);
|
|
@@ -2500,20 +2518,20 @@ function Il(e, t, n) {
|
|
|
2500
2518
|
c += S * g, d += g;
|
|
2501
2519
|
}
|
|
2502
2520
|
let u = d > 0 ? c / d * s : 0;
|
|
2503
|
-
const f =
|
|
2521
|
+
const f = To(n?.adjustments, l);
|
|
2504
2522
|
f?.absoluteVolume !== void 0 ? u = f.absoluteVolume : f?.factor !== void 0 && (u *= f.factor), a.push({ period: W(l, "hour"), volume: u });
|
|
2505
2523
|
}
|
|
2506
2524
|
return a;
|
|
2507
2525
|
}
|
|
2508
|
-
const
|
|
2509
|
-
function
|
|
2510
|
-
return `${
|
|
2526
|
+
const Io = "schedule_entry", vo = "workstream";
|
|
2527
|
+
function Dl(e) {
|
|
2528
|
+
return `${Io}:${e}`;
|
|
2511
2529
|
}
|
|
2512
|
-
function
|
|
2513
|
-
return `${
|
|
2530
|
+
function Rl(e) {
|
|
2531
|
+
return `${vo}:${e}`;
|
|
2514
2532
|
}
|
|
2515
2533
|
const ke = 36e5, F = 864e5;
|
|
2516
|
-
function
|
|
2534
|
+
function ko(e, t) {
|
|
2517
2535
|
const n = t === "day" ? F : ke, r = [];
|
|
2518
2536
|
for (let o = V(e.from, t); o < e.to; o += n) r.push(o);
|
|
2519
2537
|
return r;
|
|
@@ -2526,8 +2544,8 @@ function pe(e, t, n, r) {
|
|
|
2526
2544
|
const o = Math.min(t, r) - Math.max(e, n);
|
|
2527
2545
|
return o > 0 ? o / 1e3 : 0;
|
|
2528
2546
|
}
|
|
2529
|
-
function
|
|
2530
|
-
const r = n.grain ?? "hour", o =
|
|
2547
|
+
function Ll(e, t, n = {}) {
|
|
2548
|
+
const r = n.grain ?? "hour", o = ko(t, r), i = r === "day" ? F : ke, s = new Map(o.map((u) => [u, 0])), a = e.filter((u) => u.userId && $(u.kindKey).capacity), l = n.userIds?.length ? new Set(n.userIds) : null, c = /* @__PURE__ */ new Set();
|
|
2531
2549
|
for (const u of a)
|
|
2532
2550
|
if (!(l && u.userId && !l.has(u.userId))) {
|
|
2533
2551
|
for (const f of o) {
|
|
@@ -2569,7 +2587,7 @@ function wl(e, t, n = {}) {
|
|
|
2569
2587
|
}
|
|
2570
2588
|
return o.map((u) => ({ period: W(u, r), weight: s.get(u) ?? 0 }));
|
|
2571
2589
|
}
|
|
2572
|
-
function
|
|
2590
|
+
function wo(e, t) {
|
|
2573
2591
|
if (e <= 0 || !t.length) return [];
|
|
2574
2592
|
const n = t.reduce((r, o) => r + Math.max(0, o.weight), 0);
|
|
2575
2593
|
if (n <= 0) {
|
|
@@ -2578,11 +2596,11 @@ function vo(e, t) {
|
|
|
2578
2596
|
}
|
|
2579
2597
|
return t.filter((r) => r.weight > 0).map((r) => ({ period: r.period, seconds: e * r.weight / n }));
|
|
2580
2598
|
}
|
|
2581
|
-
function
|
|
2599
|
+
function Pl(e, t, n) {
|
|
2582
2600
|
const r = /* @__PURE__ */ new Map();
|
|
2583
2601
|
for (const o of e) {
|
|
2584
2602
|
const i = o.by ? t.filter((a) => n(a.period) < o.by) : t, s = i.length ? i : t;
|
|
2585
|
-
for (const a of
|
|
2603
|
+
for (const a of wo(o.seconds, s)) {
|
|
2586
2604
|
const l = `${a.period}|${o.userId ?? ""}`, c = r.get(l);
|
|
2587
2605
|
c ? c.seconds += a.seconds : r.set(l, { ...a, userId: o.userId });
|
|
2588
2606
|
}
|
|
@@ -2591,7 +2609,7 @@ function Ml(e, t, n) {
|
|
|
2591
2609
|
(o, i) => o.period.localeCompare(i.period) || (o.userId ?? "").localeCompare(i.userId ?? "")
|
|
2592
2610
|
);
|
|
2593
2611
|
}
|
|
2594
|
-
function
|
|
2612
|
+
function Mo(e) {
|
|
2595
2613
|
switch (e.kind) {
|
|
2596
2614
|
case "user":
|
|
2597
2615
|
return `user:${e.userId}`;
|
|
@@ -2601,7 +2619,7 @@ function ko(e) {
|
|
|
2601
2619
|
return "org";
|
|
2602
2620
|
}
|
|
2603
2621
|
}
|
|
2604
|
-
function
|
|
2622
|
+
function Kl(e) {
|
|
2605
2623
|
if (typeof e != "string") return;
|
|
2606
2624
|
const t = e.trim();
|
|
2607
2625
|
if (t === "org") return { kind: "org" };
|
|
@@ -2613,10 +2631,10 @@ function Ol(e) {
|
|
|
2613
2631
|
if (r === "team") return { kind: "team", teamId: o };
|
|
2614
2632
|
}
|
|
2615
2633
|
}
|
|
2616
|
-
function
|
|
2617
|
-
return
|
|
2634
|
+
function Oo(e) {
|
|
2635
|
+
return Mo(e);
|
|
2618
2636
|
}
|
|
2619
|
-
function
|
|
2637
|
+
function Co(e) {
|
|
2620
2638
|
switch (e.kind) {
|
|
2621
2639
|
case "personal":
|
|
2622
2640
|
return { kind: "user", userId: e.userId };
|
|
@@ -2626,21 +2644,21 @@ function Mo(e) {
|
|
|
2626
2644
|
return { kind: "org" };
|
|
2627
2645
|
}
|
|
2628
2646
|
}
|
|
2629
|
-
function
|
|
2630
|
-
return e.agentId ? { kind: "user", userId: e.agentId } :
|
|
2647
|
+
function Ul(e) {
|
|
2648
|
+
return e.agentId ? { kind: "user", userId: e.agentId } : Co(e.ownerScope);
|
|
2631
2649
|
}
|
|
2632
|
-
function
|
|
2633
|
-
return
|
|
2650
|
+
function Fl(e) {
|
|
2651
|
+
return Oo(e);
|
|
2634
2652
|
}
|
|
2635
|
-
const
|
|
2636
|
-
function
|
|
2637
|
-
return `${
|
|
2653
|
+
const No = "playbook-run", jl = "run";
|
|
2654
|
+
function Bl(e, t = 0) {
|
|
2655
|
+
return `${No}:${e}~${t}`;
|
|
2638
2656
|
}
|
|
2639
|
-
function
|
|
2657
|
+
function Hl(e) {
|
|
2640
2658
|
const t = e.indexOf("~");
|
|
2641
2659
|
return t < 0 ? e : e.slice(0, t);
|
|
2642
2660
|
}
|
|
2643
|
-
function
|
|
2661
|
+
function xo(e, t) {
|
|
2644
2662
|
if (!t) return;
|
|
2645
2663
|
let n = e;
|
|
2646
2664
|
for (const r of t.split(".")) {
|
|
@@ -2649,44 +2667,44 @@ function Co(e, t) {
|
|
|
2649
2667
|
}
|
|
2650
2668
|
return n;
|
|
2651
2669
|
}
|
|
2652
|
-
function
|
|
2670
|
+
function Gl(e, t) {
|
|
2653
2671
|
return e.targets.find((n) => n.activityTypes.includes(t));
|
|
2654
2672
|
}
|
|
2655
|
-
function
|
|
2673
|
+
function Wl(e, t) {
|
|
2656
2674
|
if (t)
|
|
2657
2675
|
return e.targets.find((n) => n.id === t);
|
|
2658
2676
|
}
|
|
2659
|
-
function
|
|
2677
|
+
function $o(e) {
|
|
2660
2678
|
return e?.kind === "assignment";
|
|
2661
2679
|
}
|
|
2662
|
-
function
|
|
2680
|
+
function Vl(e) {
|
|
2663
2681
|
const { trigger: t, agentId: n, target: r, activityType: o, assigneeUserId: i, authorUserId: s } = e;
|
|
2664
|
-
return
|
|
2682
|
+
return $o(t) ? n ? r ? r.activityTypes.includes(o) ? i ? i !== n ? "assigned to someone else" : s && s === n ? "the agent assigned this to itself, which would restart its own run" : null : `no assignee found at ${r.assigneePath}` : `activity type ${o} does not announce an assignment for ${r.id}` : `assignment target kind "${t.targetKind}" is not declared by any installed app` : "this playbook has no agent, so an assignment can never be for it" : "trigger is not an assignment trigger";
|
|
2665
2683
|
}
|
|
2666
2684
|
const we = ["suggest", "outward", "auto"];
|
|
2667
|
-
function
|
|
2685
|
+
function zl(e) {
|
|
2668
2686
|
return typeof e == "string" && we.includes(e);
|
|
2669
2687
|
}
|
|
2670
|
-
function
|
|
2688
|
+
function Yl(e) {
|
|
2671
2689
|
const t = e.playbook?.autonomy ?? e.agent?.autonomy ?? "suggest";
|
|
2672
2690
|
return e.demoted && t === "auto" ? "outward" : t;
|
|
2673
2691
|
}
|
|
2674
|
-
function
|
|
2692
|
+
function Xl(e, t) {
|
|
2675
2693
|
const n = e ?? "suggest";
|
|
2676
2694
|
return t && we.indexOf(t) < we.indexOf(n) ? t : n;
|
|
2677
2695
|
}
|
|
2678
|
-
function
|
|
2696
|
+
function ql(e) {
|
|
2679
2697
|
return e.replace(/__/g, " · ").replace(/\./g, " · ").replace(/_/g, " ");
|
|
2680
2698
|
}
|
|
2681
|
-
function
|
|
2699
|
+
function Do(e) {
|
|
2682
2700
|
const t = e.split("__");
|
|
2683
2701
|
return t[t.length - 1] || e;
|
|
2684
2702
|
}
|
|
2685
|
-
function
|
|
2686
|
-
const t =
|
|
2703
|
+
function Ql(e) {
|
|
2704
|
+
const t = Do(e).replace(/[_.]+/g, " ").trim();
|
|
2687
2705
|
return t ? t.charAt(0).toUpperCase() + t.slice(1) : e;
|
|
2688
2706
|
}
|
|
2689
|
-
const
|
|
2707
|
+
const Jl = [
|
|
2690
2708
|
{ name: "text", type: "string" },
|
|
2691
2709
|
{ name: "subject", type: "string" },
|
|
2692
2710
|
{ name: "from", type: "string" },
|
|
@@ -2727,10 +2745,10 @@ const Hl = [
|
|
|
2727
2745
|
// the trigger filter runs — like contactId/companyId above.
|
|
2728
2746
|
{ name: "assigneeUserId", type: "string" }
|
|
2729
2747
|
];
|
|
2730
|
-
function
|
|
2748
|
+
function Zl(e, t) {
|
|
2731
2749
|
return !e.onlyFor || !t?.length ? !0 : t.some((n) => e.onlyFor?.includes(n));
|
|
2732
2750
|
}
|
|
2733
|
-
const
|
|
2751
|
+
const eu = {
|
|
2734
2752
|
topics: [
|
|
2735
2753
|
{ name: "topicId", type: "string" },
|
|
2736
2754
|
{ name: "topic", type: "string" },
|
|
@@ -2744,20 +2762,20 @@ const Wl = {
|
|
|
2744
2762
|
// Deliberately empty: the fields come from `ClassifyStep.fields` and so differ per step.
|
|
2745
2763
|
extract: []
|
|
2746
2764
|
};
|
|
2747
|
-
function
|
|
2765
|
+
function Ro(e) {
|
|
2748
2766
|
return `${e.type}:${e.id}`;
|
|
2749
2767
|
}
|
|
2750
|
-
const
|
|
2751
|
-
function
|
|
2752
|
-
return e?.type ===
|
|
2768
|
+
const Lo = "interaction";
|
|
2769
|
+
function Po(e) {
|
|
2770
|
+
return e?.type === Lo ? e.id : void 0;
|
|
2753
2771
|
}
|
|
2754
|
-
const
|
|
2755
|
-
function
|
|
2772
|
+
const Ko = 64, Uo = 8e3;
|
|
2773
|
+
function tu(e) {
|
|
2756
2774
|
const t = typeof e == "number" ? e : Number(String(e ?? "").trim());
|
|
2757
2775
|
if (!(!Number.isFinite(t) || t <= 0))
|
|
2758
|
-
return Math.min(Math.max(Math.round(t),
|
|
2776
|
+
return Math.min(Math.max(Math.round(t), Ko), Uo);
|
|
2759
2777
|
}
|
|
2760
|
-
const
|
|
2778
|
+
const nu = [
|
|
2761
2779
|
"condition",
|
|
2762
2780
|
"for-each",
|
|
2763
2781
|
"parallel",
|
|
@@ -2768,48 +2786,48 @@ const zl = [
|
|
|
2768
2786
|
"agent",
|
|
2769
2787
|
"wait-for-reply",
|
|
2770
2788
|
"wait-for-task"
|
|
2771
|
-
],
|
|
2772
|
-
function
|
|
2789
|
+
], ru = { kind: "workflow", steps: [] };
|
|
2790
|
+
function ou(e) {
|
|
2773
2791
|
return e?.kind === "workflow" ? e.steps : [];
|
|
2774
2792
|
}
|
|
2775
|
-
function
|
|
2793
|
+
function iu(e) {
|
|
2776
2794
|
return e?.kind === "procedure" ? e.procedure : void 0;
|
|
2777
2795
|
}
|
|
2778
|
-
function
|
|
2796
|
+
function su(e) {
|
|
2779
2797
|
return e.assignmentId ? "assignment" : e.decider?.kind === "procedure" ? "procedure" : "workflow";
|
|
2780
2798
|
}
|
|
2781
|
-
function
|
|
2799
|
+
function Fo(e) {
|
|
2782
2800
|
const t = e?.approved ?? 0, n = t + (e?.rejected ?? 0);
|
|
2783
2801
|
return { total: n, rate: n ? t / n : 0 };
|
|
2784
2802
|
}
|
|
2785
|
-
const
|
|
2786
|
-
function
|
|
2787
|
-
const { total: t, rate: n } =
|
|
2788
|
-
return t >=
|
|
2803
|
+
const jo = 10, Bo = 0.9;
|
|
2804
|
+
function au(e) {
|
|
2805
|
+
const { total: t, rate: n } = Fo(e);
|
|
2806
|
+
return t >= jo && n >= Bo;
|
|
2789
2807
|
}
|
|
2790
|
-
const
|
|
2791
|
-
function
|
|
2792
|
-
return
|
|
2808
|
+
const Ho = ["done", "escalated", "failed", "stopped"];
|
|
2809
|
+
function cu(e) {
|
|
2810
|
+
return Ho.includes(e);
|
|
2793
2811
|
}
|
|
2794
|
-
function
|
|
2812
|
+
function Go(e) {
|
|
2795
2813
|
return e === "waiting";
|
|
2796
2814
|
}
|
|
2797
|
-
function
|
|
2798
|
-
return e === "running" ||
|
|
2815
|
+
function lu(e) {
|
|
2816
|
+
return e === "running" || Go(e);
|
|
2799
2817
|
}
|
|
2800
2818
|
function ln(e) {
|
|
2801
2819
|
return e.subjectKind && e.subjectId ? { type: e.subjectKind, id: e.subjectId } : void 0;
|
|
2802
2820
|
}
|
|
2803
|
-
function
|
|
2821
|
+
function uu(e) {
|
|
2804
2822
|
const t = ln(e);
|
|
2805
|
-
return t ?
|
|
2823
|
+
return t ? Ro(t) : void 0;
|
|
2806
2824
|
}
|
|
2807
|
-
function
|
|
2808
|
-
return
|
|
2825
|
+
function du(e) {
|
|
2826
|
+
return Po(ln(e));
|
|
2809
2827
|
}
|
|
2810
|
-
function
|
|
2828
|
+
function fu(e) {
|
|
2811
2829
|
const t = [], n = /* @__PURE__ */ new Map();
|
|
2812
|
-
for (const r of [...e].sort(
|
|
2830
|
+
for (const r of [...e].sort(Wo)) {
|
|
2813
2831
|
const o = n.get(r.emoji);
|
|
2814
2832
|
if (o) {
|
|
2815
2833
|
o.push(r.actor);
|
|
@@ -2822,8 +2840,8 @@ function ru(e) {
|
|
|
2822
2840
|
return { emoji: r, count: o.length, actors: o };
|
|
2823
2841
|
}).sort((r, o) => o.count - r.count || t.indexOf(r.emoji) - t.indexOf(o.emoji));
|
|
2824
2842
|
}
|
|
2825
|
-
const
|
|
2826
|
-
function
|
|
2843
|
+
const Wo = (e, t) => (e.createdAt ?? 0) - (t.createdAt ?? 0);
|
|
2844
|
+
function pu(e, t) {
|
|
2827
2845
|
return t ? e.actors.some((n) => n.type === "user" && n.id === t) : !1;
|
|
2828
2846
|
}
|
|
2829
2847
|
class un extends Error {
|
|
@@ -2831,12 +2849,12 @@ class un extends Error {
|
|
|
2831
2849
|
super(t), this.name = "UnresolvedRefError";
|
|
2832
2850
|
}
|
|
2833
2851
|
}
|
|
2834
|
-
const
|
|
2835
|
-
function
|
|
2852
|
+
const Vo = /^\{\{\s*([\w.]+)\s*\}\}$/, zo = /\{\{\s*([\w.]+)\s*\}\}/g, Yo = /\$[A-Za-z_][\w]*\.[\w.]+/;
|
|
2853
|
+
function mu(e, t, n = {}) {
|
|
2836
2854
|
return Me(e, t, n);
|
|
2837
2855
|
}
|
|
2838
2856
|
function Me(e, t, n = {}) {
|
|
2839
|
-
return typeof e == "string" ?
|
|
2857
|
+
return typeof e == "string" ? Xo(e, t, n) : Array.isArray(e) ? e.map((r) => Me(r, t, n)) : e && typeof e == "object" ? Object.fromEntries(
|
|
2840
2858
|
Object.entries(e).map(([r, o]) => [
|
|
2841
2859
|
r,
|
|
2842
2860
|
Me(o, t, {
|
|
@@ -2846,21 +2864,21 @@ function Me(e, t, n = {}) {
|
|
|
2846
2864
|
])
|
|
2847
2865
|
) : e;
|
|
2848
2866
|
}
|
|
2849
|
-
function
|
|
2867
|
+
function Xo(e, t, n) {
|
|
2850
2868
|
const r = n.onMissing === "throw";
|
|
2851
2869
|
if (r) {
|
|
2852
|
-
const i = e.match(
|
|
2870
|
+
const i = e.match(Yo);
|
|
2853
2871
|
if (i)
|
|
2854
2872
|
throw new un(
|
|
2855
2873
|
`"${i[0]}" in ${n.where ?? "een waarde"} is de oude schrijfwijze; gebruik {{ ${i[0].slice(1)} }}.`
|
|
2856
2874
|
);
|
|
2857
2875
|
}
|
|
2858
|
-
const o = e.match(
|
|
2876
|
+
const o = e.match(Vo);
|
|
2859
2877
|
if (o) {
|
|
2860
2878
|
const i = Et(t, o[1], e, n);
|
|
2861
2879
|
return i === void 0 && !r ? "" : i;
|
|
2862
2880
|
}
|
|
2863
|
-
return e.replace(
|
|
2881
|
+
return e.replace(zo, (i, s) => {
|
|
2864
2882
|
const a = Et(t, s, i, n);
|
|
2865
2883
|
return a == null ? "" : typeof a == "object" ? JSON.stringify(a) : String(a);
|
|
2866
2884
|
});
|
|
@@ -2873,9 +2891,9 @@ function Et(e, t, n, r) {
|
|
|
2873
2891
|
`onbekende verwijzing ${n} in ${r.where ?? "een waarde"}: "${o}" bestaat niet. Beschikbaar: ${i.length ? i.join(", ") : "(nog niets)"}`
|
|
2874
2892
|
);
|
|
2875
2893
|
}
|
|
2876
|
-
return
|
|
2894
|
+
return qo(e, t);
|
|
2877
2895
|
}
|
|
2878
|
-
function
|
|
2896
|
+
function qo(e, t) {
|
|
2879
2897
|
let n = e;
|
|
2880
2898
|
for (const r of t.split(".")) {
|
|
2881
2899
|
if (n == null || typeof n != "object") return;
|
|
@@ -2883,11 +2901,11 @@ function Xo(e, t) {
|
|
|
2883
2901
|
}
|
|
2884
2902
|
return n;
|
|
2885
2903
|
}
|
|
2886
|
-
const
|
|
2887
|
-
function
|
|
2904
|
+
const hu = /* @__PURE__ */ new Set(["filled", "empty"]);
|
|
2905
|
+
function gu() {
|
|
2888
2906
|
return { kind: "rule", op: "==", varPath: "", value: "" };
|
|
2889
2907
|
}
|
|
2890
|
-
const
|
|
2908
|
+
const Qo = /* @__PURE__ */ new Set(["==", "!=", ">", "<", ">=", "<="]);
|
|
2891
2909
|
function me(e) {
|
|
2892
2910
|
return !!e && typeof e == "object" && "var" in e && typeof e.var == "string";
|
|
2893
2911
|
}
|
|
@@ -2895,7 +2913,7 @@ function St(e) {
|
|
|
2895
2913
|
const t = typeof e;
|
|
2896
2914
|
return t === "string" || t === "number" || t === "boolean";
|
|
2897
2915
|
}
|
|
2898
|
-
function
|
|
2916
|
+
function Jo(e) {
|
|
2899
2917
|
if (e === !0 || e == null) return { kind: "group", op: "and", children: [] };
|
|
2900
2918
|
if (e === !1) return null;
|
|
2901
2919
|
const t = Oe(e);
|
|
@@ -2929,7 +2947,7 @@ function Oe(e) {
|
|
|
2929
2947
|
const [o, i] = r;
|
|
2930
2948
|
return !me(i) || !St(o) ? null : { kind: "rule", op: "in", varPath: i.var, value: o };
|
|
2931
2949
|
}
|
|
2932
|
-
if (
|
|
2950
|
+
if (Qo.has(n)) {
|
|
2933
2951
|
if (!Array.isArray(r) || r.length !== 2) return null;
|
|
2934
2952
|
const [o, i] = r;
|
|
2935
2953
|
return !me(o) || !St(i) ? null : { kind: "rule", op: n, varPath: o.var, value: i };
|
|
@@ -2939,8 +2957,8 @@ function Oe(e) {
|
|
|
2939
2957
|
function he(e) {
|
|
2940
2958
|
return e.kind === "group" ? e.children.length === 0 ? !0 : e.children.length === 1 ? he(e.children[0]) : { [e.op]: e.children.map(he) } : e.kind === "not" ? { "!": he(e.child) } : e.op === "filled" ? { "!!": [{ var: e.varPath }] } : e.op === "empty" ? { "!": [{ var: e.varPath }] } : e.op === "in" ? { in: [e.value, { var: e.varPath }] } : { [e.op]: [{ var: e.varPath }, e.value] };
|
|
2941
2959
|
}
|
|
2942
|
-
function
|
|
2943
|
-
const t =
|
|
2960
|
+
function yu(e) {
|
|
2961
|
+
const t = Jo(e);
|
|
2944
2962
|
return t && Ce(t) || null;
|
|
2945
2963
|
}
|
|
2946
2964
|
function Ce(e) {
|
|
@@ -2962,7 +2980,7 @@ const ge = [
|
|
|
2962
2980
|
{ min: 0, max: 7 }
|
|
2963
2981
|
// day of week
|
|
2964
2982
|
];
|
|
2965
|
-
function
|
|
2983
|
+
function Zo(e, t, n) {
|
|
2966
2984
|
const r = /* @__PURE__ */ new Set();
|
|
2967
2985
|
for (const o of e.split(",")) {
|
|
2968
2986
|
const [i, s] = o.split("/"), a = s === void 0 ? 1 : Number(s);
|
|
@@ -2983,7 +3001,7 @@ function dn(e) {
|
|
|
2983
3001
|
for (let l = 0; l < ge.length; l++) {
|
|
2984
3002
|
const c = ge[l], d = t[l];
|
|
2985
3003
|
if (!c || d === void 0) return null;
|
|
2986
|
-
const u =
|
|
3004
|
+
const u = Zo(d, c.min, c.max);
|
|
2987
3005
|
if (!u) return null;
|
|
2988
3006
|
n.push(u);
|
|
2989
3007
|
}
|
|
@@ -2998,17 +3016,17 @@ function dn(e) {
|
|
|
2998
3016
|
anyDayOfWeek: t[4] === "*"
|
|
2999
3017
|
};
|
|
3000
3018
|
}
|
|
3001
|
-
function
|
|
3019
|
+
function bu(e) {
|
|
3002
3020
|
return dn(e) !== null;
|
|
3003
3021
|
}
|
|
3004
|
-
function
|
|
3022
|
+
function ei(e, t) {
|
|
3005
3023
|
const n = dn(e);
|
|
3006
3024
|
if (!n || !n.minute.has(t.getUTCMinutes()) || !n.hour.has(t.getUTCHours()) || !n.month.has(t.getUTCMonth() + 1)) return !1;
|
|
3007
3025
|
const r = n.dayOfMonth.has(t.getUTCDate()), o = n.dayOfWeek.has(t.getUTCDay());
|
|
3008
3026
|
return n.anyDayOfMonth && n.anyDayOfWeek ? !0 : n.anyDayOfMonth ? o : n.anyDayOfWeek ? r : r || o;
|
|
3009
3027
|
}
|
|
3010
|
-
const
|
|
3011
|
-
function
|
|
3028
|
+
const ti = "@schedule", Tt = 3;
|
|
3029
|
+
function ni(e, t, n) {
|
|
3012
3030
|
const r = [], o = e.depth ?? 0;
|
|
3013
3031
|
if (o >= Tt)
|
|
3014
3032
|
return {
|
|
@@ -3025,7 +3043,7 @@ function ei(e, t, n) {
|
|
|
3025
3043
|
continue;
|
|
3026
3044
|
}
|
|
3027
3045
|
if (a.trigger.kind === "schedule") {
|
|
3028
|
-
if (e.name !==
|
|
3046
|
+
if (e.name !== ti) {
|
|
3029
3047
|
r.push({ ruleId: a.id, reason: "luistert op de klok" });
|
|
3030
3048
|
continue;
|
|
3031
3049
|
}
|
|
@@ -3034,7 +3052,7 @@ function ei(e, t, n) {
|
|
|
3034
3052
|
r.push({ ruleId: a.id, reason: "tik zonder tijdstip" });
|
|
3035
3053
|
continue;
|
|
3036
3054
|
}
|
|
3037
|
-
if (!
|
|
3055
|
+
if (!ei(a.trigger.cron, new Date(l))) {
|
|
3038
3056
|
r.push({ ruleId: a.id, reason: `niet aan de beurt (${a.trigger.cron})` });
|
|
3039
3057
|
continue;
|
|
3040
3058
|
}
|
|
@@ -3057,11 +3075,11 @@ function ei(e, t, n) {
|
|
|
3057
3075
|
}
|
|
3058
3076
|
return { matched: s, skipped: r };
|
|
3059
3077
|
}
|
|
3060
|
-
function
|
|
3078
|
+
function Au(e, t) {
|
|
3061
3079
|
return { causedByRule: t, depth: (e.depth ?? 0) + 1 };
|
|
3062
3080
|
}
|
|
3063
|
-
function
|
|
3064
|
-
const { event: n, rules: r } = e.input, { matched: o, skipped: i } =
|
|
3081
|
+
function _u(e, t) {
|
|
3082
|
+
const { event: n, rules: r } = e.input, { matched: o, skipped: i } = ni(n, r, t), s = o.flatMap((c) => c.rule.then.map((d) => d.action)), a = e.expected?.actions ?? [];
|
|
3065
3083
|
if (s.length === a.length && s.every((c, d) => c === a[d]))
|
|
3066
3084
|
return { caseId: e.id, ok: !0 };
|
|
3067
3085
|
const l = i.map((c) => `${c.ruleId}: ${c.reason}`).join(" · ");
|
|
@@ -3072,49 +3090,49 @@ function du(e, t) {
|
|
|
3072
3090
|
note: a.length ? `verwacht [${a.join(", ")}], kreeg [${s.join(", ")}]${l ? ` — ${l}` : ""}` : `mocht niet vuren, maar deed [${s.join(", ")}]`
|
|
3073
3091
|
};
|
|
3074
3092
|
}
|
|
3075
|
-
function
|
|
3093
|
+
function ri(e, t) {
|
|
3076
3094
|
return e.wrote && t in e.wrote ? e.wrote[t] : t in e.params ? e.params[t] : "";
|
|
3077
3095
|
}
|
|
3078
|
-
function
|
|
3096
|
+
function oi(e, t) {
|
|
3079
3097
|
return e.fields.filter(
|
|
3080
|
-
(n) => t?.[n] !== void 0 && t[n] !==
|
|
3098
|
+
(n) => t?.[n] !== void 0 && t[n] !== ri(e, n)
|
|
3081
3099
|
);
|
|
3082
3100
|
}
|
|
3083
|
-
function
|
|
3084
|
-
return n ? "undone" : !t || !e.length ? "unknown" : e.some((r) =>
|
|
3101
|
+
function Eu(e, t, n) {
|
|
3102
|
+
return n ? "undone" : !t || !e.length ? "unknown" : e.some((r) => oi(r, t).length) ? "corrected" : "kept";
|
|
3085
3103
|
}
|
|
3086
|
-
function
|
|
3104
|
+
function Su(e) {
|
|
3087
3105
|
return e === "string[]" ? ["in"] : e === "boolean" ? ["==", "!="] : e === "number" || e === "date" ? ["==", "!=", ">", "<", ">=", "<="] : ["==", "!=", "in", "filled", "empty"];
|
|
3088
3106
|
}
|
|
3089
|
-
function
|
|
3107
|
+
function Tu(e) {
|
|
3090
3108
|
return `subject.${e.path}`;
|
|
3091
3109
|
}
|
|
3092
|
-
function
|
|
3110
|
+
function Iu(e, t) {
|
|
3093
3111
|
return e.events.find((n) => n.name === t);
|
|
3094
3112
|
}
|
|
3095
|
-
function
|
|
3096
|
-
return e.filter((n) =>
|
|
3113
|
+
function vu(e, t) {
|
|
3114
|
+
return e.filter((n) => xo(t, n.path) === void 0).map((n) => n.path);
|
|
3097
3115
|
}
|
|
3098
|
-
const Ne = 6e4,
|
|
3116
|
+
const Ne = 6e4, ii = 36e5, X = 864e5, fn = 800;
|
|
3099
3117
|
function It(e, t) {
|
|
3100
3118
|
const n = Date.UTC(e, t + 1, 0);
|
|
3101
|
-
return n - new Date(n).getUTCDay() *
|
|
3119
|
+
return n - new Date(n).getUTCDay() * X + ii;
|
|
3102
3120
|
}
|
|
3103
|
-
function
|
|
3121
|
+
function si(e) {
|
|
3104
3122
|
const t = new Date(e).getUTCFullYear();
|
|
3105
3123
|
return e >= It(t, 2) && e < It(t, 9);
|
|
3106
3124
|
}
|
|
3107
3125
|
function pn(e, t) {
|
|
3108
|
-
const n = t.dst === "eu" &&
|
|
3126
|
+
const n = t.dst === "eu" && si(e) ? 60 : 0;
|
|
3109
3127
|
return (t.utcOffsetMinutes + n) * Ne;
|
|
3110
3128
|
}
|
|
3111
|
-
function
|
|
3129
|
+
function ai(e) {
|
|
3112
3130
|
return (e + 3) % 7 + 1;
|
|
3113
3131
|
}
|
|
3114
3132
|
function mn(e, t) {
|
|
3115
|
-
const n = pn(e, t), r = e + n, o = Math.floor(r /
|
|
3116
|
-
if (!t.days.includes(
|
|
3117
|
-
const i = o *
|
|
3133
|
+
const n = pn(e, t), r = e + n, o = Math.floor(r / X);
|
|
3134
|
+
if (!t.days.includes(ai(o))) return null;
|
|
3135
|
+
const i = o * X;
|
|
3118
3136
|
return {
|
|
3119
3137
|
open: i + t.fromMinutes * Ne - n,
|
|
3120
3138
|
close: i + t.toMinutes * Ne - n
|
|
@@ -3122,7 +3140,7 @@ function mn(e, t) {
|
|
|
3122
3140
|
}
|
|
3123
3141
|
function hn(e, t) {
|
|
3124
3142
|
const n = pn(e, t), r = e + n;
|
|
3125
|
-
return (Math.floor(r /
|
|
3143
|
+
return (Math.floor(r / X) + 1) * X - n;
|
|
3126
3144
|
}
|
|
3127
3145
|
function xe(e, t, n) {
|
|
3128
3146
|
if (t <= e) return 0;
|
|
@@ -3155,61 +3173,61 @@ function He(e, t, n) {
|
|
|
3155
3173
|
}
|
|
3156
3174
|
return e + t;
|
|
3157
3175
|
}
|
|
3158
|
-
function
|
|
3176
|
+
function ku(e) {
|
|
3159
3177
|
const t = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(e);
|
|
3160
3178
|
return t ? Number(t[1]) * 60 + Number(t[2]) : null;
|
|
3161
3179
|
}
|
|
3162
3180
|
const $e = 1, De = 2, Re = 4;
|
|
3163
|
-
function
|
|
3181
|
+
function wu(e) {
|
|
3164
3182
|
return e === "snoozed" ? $e : De;
|
|
3165
3183
|
}
|
|
3166
3184
|
function Ge(e) {
|
|
3167
3185
|
const t = e.calendar;
|
|
3168
3186
|
return t && Array.isArray(t.days) ? t : null;
|
|
3169
3187
|
}
|
|
3170
|
-
const
|
|
3188
|
+
const Mu = [
|
|
3171
3189
|
"speed_of_answer",
|
|
3172
3190
|
"first_response",
|
|
3173
3191
|
"next_response",
|
|
3174
3192
|
"resolution",
|
|
3175
3193
|
"close"
|
|
3176
|
-
],
|
|
3194
|
+
], Ou = ["snoozed", "waiting_for_customer"], ci = 6e4, gn = ["speed_of_answer", "first_response", "next_response"], li = [...gn, "resolution", "close"];
|
|
3177
3195
|
function q(e) {
|
|
3178
3196
|
return e.state === "running" || e.state === "paused";
|
|
3179
3197
|
}
|
|
3180
|
-
function
|
|
3198
|
+
function ui(e, t) {
|
|
3181
3199
|
return q(e) ? { state: (e.state === "paused" ? e.remainingMs > 0 : t <= e.dueAt) ? "hit" : "missed", settledAt: Math.max(t, e.startedAt) } : null;
|
|
3182
3200
|
}
|
|
3183
3201
|
function vt(e) {
|
|
3184
3202
|
return q(e) ? { state: "void" } : null;
|
|
3185
3203
|
}
|
|
3186
|
-
function
|
|
3204
|
+
function di(e, t, n, r) {
|
|
3187
3205
|
if (!q(e) || (e.pauseBits & t) !== 0) return null;
|
|
3188
3206
|
const o = e.pauseBits | t;
|
|
3189
3207
|
return e.state === "paused" ? { pauseBits: o } : { pauseBits: o, state: "paused", remainingMs: xe(n, e.dueAt, r) };
|
|
3190
3208
|
}
|
|
3191
|
-
function
|
|
3209
|
+
function fi(e, t, n, r) {
|
|
3192
3210
|
if (!q(e) || (e.pauseBits & t) === 0) return null;
|
|
3193
3211
|
const o = e.pauseBits & ~t;
|
|
3194
3212
|
return o !== 0 ? { pauseBits: o } : { pauseBits: o, state: "running", dueAt: He(n, e.remainingMs, r) };
|
|
3195
3213
|
}
|
|
3196
|
-
function
|
|
3214
|
+
function Cu({ event: e, at: t, now: n, clocks: r, profile: o }) {
|
|
3197
3215
|
const i = Ge(o), s = Math.min(t, n), a = r.map((g) => ({ ...g })), l = [], c = (g, h) => {
|
|
3198
3216
|
h && (l.push({ op: "patch", clockId: g.id, patch: h }), Object.assign(g, h));
|
|
3199
3217
|
}, d = (g) => {
|
|
3200
3218
|
for (const h of a)
|
|
3201
|
-
h.metric === g && c(h,
|
|
3219
|
+
h.metric === g && c(h, ui(h, s));
|
|
3202
3220
|
}, u = (g) => {
|
|
3203
3221
|
for (const h of a)
|
|
3204
3222
|
g.includes(h.metric) && c(h, vt(h));
|
|
3205
3223
|
}, f = (g) => {
|
|
3206
|
-
for (const h of a) c(h,
|
|
3224
|
+
for (const h of a) c(h, di(h, g, s, i));
|
|
3207
3225
|
}, p = (g) => {
|
|
3208
|
-
for (const h of a) c(h,
|
|
3226
|
+
for (const h of a) c(h, fi(h, g, s, i));
|
|
3209
3227
|
}, y = (g) => a.reduce((h, E) => E.metric === g ? Math.max(h, E.attempt) : h, 0) + 1, m = (g) => a.some((h) => h.metric === g && q(h)), S = (g, h) => {
|
|
3210
3228
|
const E = o.targets.find((C) => C.metric === g);
|
|
3211
3229
|
if (!E) return;
|
|
3212
|
-
const x = E.minutes *
|
|
3230
|
+
const x = E.minutes * ci;
|
|
3213
3231
|
l.push({
|
|
3214
3232
|
op: "start",
|
|
3215
3233
|
metric: g,
|
|
@@ -3267,33 +3285,33 @@ function Eu({ event: e, at: t, now: n, clocks: r, profile: o }) {
|
|
|
3267
3285
|
p(Re);
|
|
3268
3286
|
break;
|
|
3269
3287
|
case "discarded":
|
|
3270
|
-
u(
|
|
3288
|
+
u(li);
|
|
3271
3289
|
break;
|
|
3272
3290
|
}
|
|
3273
3291
|
return l;
|
|
3274
3292
|
}
|
|
3275
|
-
function
|
|
3293
|
+
function pi(e) {
|
|
3276
3294
|
return e.state === "running" || e.state === "paused";
|
|
3277
3295
|
}
|
|
3278
|
-
function
|
|
3296
|
+
function Nu(e) {
|
|
3279
3297
|
return (e.pauseBits & Re) !== 0;
|
|
3280
3298
|
}
|
|
3281
3299
|
function Le(e, t) {
|
|
3282
3300
|
const n = Ge(e);
|
|
3283
3301
|
return e.state === "paused" ? e.remainingMs : t >= e.dueAt ? -xe(e.dueAt, t, n) : xe(t, e.dueAt, n);
|
|
3284
3302
|
}
|
|
3285
|
-
function
|
|
3303
|
+
function xu(e, t) {
|
|
3286
3304
|
return e.state === "paused" ? He(t, e.remainingMs, Ge(e)) : e.dueAt;
|
|
3287
3305
|
}
|
|
3288
|
-
function
|
|
3289
|
-
const n = e.filter(
|
|
3306
|
+
function $u(e, t) {
|
|
3307
|
+
const n = e.filter(pi);
|
|
3290
3308
|
if (!n.length) return;
|
|
3291
3309
|
const r = n.filter((i) => i.state === "running");
|
|
3292
3310
|
return (r.length ? r : n).reduce(
|
|
3293
3311
|
(i, s) => Le(s, t) < Le(i, t) ? s : i
|
|
3294
3312
|
);
|
|
3295
3313
|
}
|
|
3296
|
-
function
|
|
3314
|
+
function Du(e, t) {
|
|
3297
3315
|
if (e.state === "missed") return "breached";
|
|
3298
3316
|
if (e.state === "hit") return "met";
|
|
3299
3317
|
if (e.state === "paused") return "paused";
|
|
@@ -3301,41 +3319,41 @@ function vu(e, t) {
|
|
|
3301
3319
|
const n = Le(e, t);
|
|
3302
3320
|
return n <= 0 ? "breached" : n <= e.targetMs / 5 ? "urgent" : "running";
|
|
3303
3321
|
}
|
|
3304
|
-
function
|
|
3322
|
+
function Ru(e) {
|
|
3305
3323
|
const t = Math.floor(Math.abs(e) / 1e3), n = Math.floor(t / 86400), r = Math.floor(t % 86400 / 3600), o = Math.floor(t % 3600 / 60);
|
|
3306
3324
|
return n ? r ? `${n}d ${r}u` : `${n}d` : r ? o ? `${r}u ${o}m` : `${r}u` : o ? `${o}m` : `${t % 60}s`;
|
|
3307
3325
|
}
|
|
3308
|
-
const
|
|
3326
|
+
const mi = "strategy_item";
|
|
3309
3327
|
function yn(e) {
|
|
3310
|
-
return `${
|
|
3328
|
+
return `${mi}:${e}`;
|
|
3311
3329
|
}
|
|
3312
|
-
function
|
|
3330
|
+
function Lu(e, t = 25) {
|
|
3313
3331
|
const n = /* @__PURE__ */ new Set([yn(e.id)]);
|
|
3314
3332
|
for (const r of e.ancestorKeys ?? []) n.add(r);
|
|
3315
3333
|
return Array.from(n).slice(0, t);
|
|
3316
3334
|
}
|
|
3317
|
-
function
|
|
3335
|
+
function Pu(e) {
|
|
3318
3336
|
return e ? [...e.ancestorKeys ?? [], yn(e.id)] : [];
|
|
3319
3337
|
}
|
|
3320
3338
|
const ie = [
|
|
3321
3339
|
{ key: "area", label: "level_area", order: 10, measurable: !1, icon: "compass" },
|
|
3322
3340
|
{ key: "objective", label: "level_objective", order: 20, measurable: !0, icon: "target" },
|
|
3323
3341
|
{ key: "key_result", label: "level_key_result", order: 30, measurable: !0, icon: "gauge" }
|
|
3324
|
-
],
|
|
3325
|
-
function
|
|
3342
|
+
], hi = 999, gi = 7;
|
|
3343
|
+
function yi(e, t = ie) {
|
|
3326
3344
|
return t.find((n) => n.key === e);
|
|
3327
3345
|
}
|
|
3328
3346
|
function Pe(e, t = ie) {
|
|
3329
|
-
return
|
|
3347
|
+
return yi(e, t)?.order ?? hi;
|
|
3330
3348
|
}
|
|
3331
|
-
function
|
|
3349
|
+
function Ku(e, t, n = ie) {
|
|
3332
3350
|
return Pe(t, n) <= Pe(e, n);
|
|
3333
3351
|
}
|
|
3334
|
-
function
|
|
3352
|
+
function Uu(e, t = ie) {
|
|
3335
3353
|
const n = Pe(e, t);
|
|
3336
3354
|
return t.filter((o) => o.order > n).sort((o, i) => o.order - i.order)[0]?.key ?? e;
|
|
3337
3355
|
}
|
|
3338
|
-
function
|
|
3356
|
+
function Fu(e) {
|
|
3339
3357
|
const t = e.trim().toLowerCase();
|
|
3340
3358
|
return t ? t.includes("key result") || t.includes("keyresult") || t === "kr" ? "key_result" : t.includes("objective") || t.includes("goal") || t.includes("doel") ? "objective" : t.includes("focus") || t.includes("area") || t.includes("theme") ? "area" : null : null;
|
|
3341
3359
|
}
|
|
@@ -3348,74 +3366,91 @@ const Ke = {
|
|
|
3348
3366
|
achieved: "closed",
|
|
3349
3367
|
missed: "closed"
|
|
3350
3368
|
};
|
|
3351
|
-
function
|
|
3369
|
+
function ju(e) {
|
|
3352
3370
|
return Ke[e] ?? "open";
|
|
3353
3371
|
}
|
|
3354
|
-
function
|
|
3372
|
+
function Bu(e) {
|
|
3355
3373
|
return Object.keys(Ke).filter(
|
|
3356
3374
|
(t) => e.includes(Ke[t])
|
|
3357
3375
|
);
|
|
3358
3376
|
}
|
|
3359
|
-
const
|
|
3360
|
-
function
|
|
3377
|
+
const bi = 864e5, se = (e) => e <= 0 ? 0 : e > 1 ? 1 : e;
|
|
3378
|
+
function Hu(e, t) {
|
|
3361
3379
|
const { direction: n } = e, r = e.startValue ?? 0, o = e.targetValue ?? 0;
|
|
3362
3380
|
if (!Number.isFinite(t)) return 0;
|
|
3363
3381
|
const i = n === "down" ? t <= o : t >= o, s = o - r;
|
|
3364
3382
|
return (n === "down" ? s < 0 : s > 0) ? se((t - r) / s) : i ? 1 : 0;
|
|
3365
3383
|
}
|
|
3366
|
-
function
|
|
3384
|
+
function Gu(e, t) {
|
|
3367
3385
|
const { startDate: n, targetDate: r } = e;
|
|
3368
3386
|
if (!(typeof n != "number" || typeof r != "number") && !(r <= n))
|
|
3369
3387
|
return se((t - n) / (r - n));
|
|
3370
3388
|
}
|
|
3371
|
-
const
|
|
3372
|
-
function
|
|
3389
|
+
const Ai = 0.1, _i = 0.25;
|
|
3390
|
+
function Wu(e, t) {
|
|
3373
3391
|
if (typeof e != "number" || typeof t != "number") return;
|
|
3374
3392
|
if (e >= 1) return "achieved";
|
|
3375
3393
|
const n = t - e;
|
|
3376
|
-
return n >=
|
|
3394
|
+
return n >= _i ? "off_track" : n >= Ai ? "at_risk" : "on_track";
|
|
3377
3395
|
}
|
|
3378
|
-
function
|
|
3396
|
+
function Vu(e, t) {
|
|
3379
3397
|
if (t)
|
|
3380
3398
|
return se(e / t);
|
|
3381
3399
|
}
|
|
3382
|
-
function
|
|
3400
|
+
function zu(e) {
|
|
3383
3401
|
const t = e.map((n) => n.progress?.ratio).filter((n) => typeof n == "number" && Number.isFinite(n));
|
|
3384
3402
|
if (t.length)
|
|
3385
3403
|
return se(t.reduce((n, r) => n + r, 0) / t.length);
|
|
3386
3404
|
}
|
|
3387
|
-
function
|
|
3405
|
+
function Yu(e, t) {
|
|
3388
3406
|
const n = e.lastCheckInAt ?? e.createdAt;
|
|
3389
3407
|
if (typeof n != "number") return 0;
|
|
3390
|
-
const r = (e.checkInEveryDays ??
|
|
3408
|
+
const r = (e.checkInEveryDays ?? gi) * bi, o = t - n - r;
|
|
3391
3409
|
return o > 0 ? o : 0;
|
|
3392
3410
|
}
|
|
3393
|
-
function
|
|
3411
|
+
function Xu(e) {
|
|
3394
3412
|
return e.targetDate ?? Number.MAX_SAFE_INTEGER;
|
|
3395
3413
|
}
|
|
3396
|
-
function
|
|
3414
|
+
function qu(e) {
|
|
3415
|
+
const t = /* @__PURE__ */ new Map(), n = [...e].sort((r, o) => r.startedAt - o.startedAt);
|
|
3416
|
+
for (const r of n) {
|
|
3417
|
+
const o = `${r.workType ?? ""}|${r.scopeKey ?? ""}`, i = t.get(o) ?? {
|
|
3418
|
+
workType: r.workType,
|
|
3419
|
+
scopeKey: r.scopeKey,
|
|
3420
|
+
scopeLabel: r.scopeLabel,
|
|
3421
|
+
seconds: 0,
|
|
3422
|
+
hours: 0,
|
|
3423
|
+
entryIds: [],
|
|
3424
|
+
from: r.startedAt,
|
|
3425
|
+
to: r.startedAt
|
|
3426
|
+
};
|
|
3427
|
+
i.seconds += r.durationSeconds ?? 0, i.hours = Math.round(i.seconds / 3600 * 100) / 100, i.entryIds.push(r.id), i.to = r.startedAt, t.set(o, i);
|
|
3428
|
+
}
|
|
3429
|
+
return [...t.values()];
|
|
3430
|
+
}
|
|
3431
|
+
function Qu(e, t) {
|
|
3397
3432
|
const n = e.accumulatedSeconds || 0;
|
|
3398
3433
|
return e.runningSince ? n + Math.max(0, Math.floor((t - e.runningSince) / 1e3)) : n;
|
|
3399
3434
|
}
|
|
3400
|
-
function
|
|
3435
|
+
function Ju(e, t) {
|
|
3401
3436
|
const n = Math.max(1, Math.ceil(Math.max(0, e) / 60));
|
|
3402
3437
|
if (!t || t === "exact") return n * 60;
|
|
3403
3438
|
const r = Number(t);
|
|
3404
3439
|
return !Number.isFinite(r) || r <= 0 ? n * 60 : Math.ceil(n / r) * r * 60;
|
|
3405
3440
|
}
|
|
3406
|
-
function
|
|
3441
|
+
function Zu(e) {
|
|
3407
3442
|
const t = Math.max(0, Math.round(e / 60));
|
|
3408
3443
|
return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
|
|
3409
3444
|
}
|
|
3410
|
-
function
|
|
3445
|
+
function ed(e) {
|
|
3411
3446
|
const t = Math.max(0, Math.floor(e)), n = (i) => String(i).padStart(2, "0"), r = Math.floor(t / 60) % 60, o = Math.floor(t / 3600);
|
|
3412
3447
|
return o > 0 ? `${o}:${n(r)}:${n(t % 60)}` : `${n(r)}:${n(t % 60)}`;
|
|
3413
3448
|
}
|
|
3414
|
-
function
|
|
3449
|
+
function Ei(e) {
|
|
3415
3450
|
return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
|
|
3416
3451
|
}
|
|
3417
|
-
function
|
|
3418
|
-
const n =
|
|
3452
|
+
function td(e, t) {
|
|
3453
|
+
const n = Ei(e) || "werksoort", r = new Set(t);
|
|
3419
3454
|
if (!r.has(n)) return n;
|
|
3420
3455
|
for (let o = 2; o < 500; o++) {
|
|
3421
3456
|
const i = `${n}-${o}`;
|
|
@@ -3423,29 +3458,29 @@ function Wu(e, t) {
|
|
|
3423
3458
|
}
|
|
3424
3459
|
return `${n}-${r.size + 1}`;
|
|
3425
3460
|
}
|
|
3426
|
-
function
|
|
3461
|
+
function nd(e, t) {
|
|
3427
3462
|
const n = e.ownerScope;
|
|
3428
3463
|
return !n || n.kind === "org" ? !0 : t.includes(n.teamId);
|
|
3429
3464
|
}
|
|
3430
|
-
function
|
|
3431
|
-
return e.filter((t) => !t.archived).sort(
|
|
3465
|
+
function rd(e) {
|
|
3466
|
+
return e.filter((t) => !t.archived).sort(Si);
|
|
3432
3467
|
}
|
|
3433
|
-
function
|
|
3468
|
+
function Si(e, t) {
|
|
3434
3469
|
const n = (e.order ?? 0) - (t.order ?? 0);
|
|
3435
3470
|
return n !== 0 ? n : (e.label || "").localeCompare(t.label || "");
|
|
3436
3471
|
}
|
|
3437
|
-
const
|
|
3472
|
+
const Ti = 20, Ii = 20, ye = 300;
|
|
3438
3473
|
function K(e) {
|
|
3439
3474
|
return e.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, " ").replace(/\s+/g, " ").trim();
|
|
3440
3475
|
}
|
|
3441
|
-
function
|
|
3476
|
+
function vi(e) {
|
|
3442
3477
|
const t = e.replace(/\s+/g, " ").trim();
|
|
3443
3478
|
if (t.length <= ye) return t;
|
|
3444
3479
|
const n = t.slice(0, ye), r = Math.max(n.lastIndexOf(". "), n.lastIndexOf("! "), n.lastIndexOf("? "));
|
|
3445
3480
|
return r > ye * 0.6 ? n.slice(0, r + 1) : `${n.trimEnd()}…`;
|
|
3446
3481
|
}
|
|
3447
|
-
function
|
|
3448
|
-
const n =
|
|
3482
|
+
function od(e, t) {
|
|
3483
|
+
const n = vi(t.text), r = K(n);
|
|
3449
3484
|
if (!r || (e.examples ?? []).some((s) => K(s) === r)) return null;
|
|
3450
3485
|
const o = e.exampleCandidates ?? [], i = o.findIndex((s) => K(s.text) === r);
|
|
3451
3486
|
if (i >= 0) {
|
|
@@ -3453,27 +3488,27 @@ function Xu(e, t) {
|
|
|
3453
3488
|
const s = [...o];
|
|
3454
3489
|
return s[i] = { ...s[i], corrected: !0, addedAt: t.addedAt }, kt(s);
|
|
3455
3490
|
}
|
|
3456
|
-
return kt([{ ...t, text: n }, ...o]).slice(0,
|
|
3491
|
+
return kt([{ ...t, text: n }, ...o]).slice(0, Ii);
|
|
3457
3492
|
}
|
|
3458
3493
|
function kt(e) {
|
|
3459
3494
|
return [...e].sort(
|
|
3460
3495
|
(t, n) => Number(n.corrected) - Number(t.corrected) || n.addedAt - t.addedAt
|
|
3461
3496
|
);
|
|
3462
3497
|
}
|
|
3463
|
-
function
|
|
3498
|
+
function id(e, t) {
|
|
3464
3499
|
const n = K(t), r = (e.examples ?? []).filter((i) => i.trim());
|
|
3465
|
-
return { examples: r.some((i) => K(i) === n) ? r : [...r, t].slice(-
|
|
3500
|
+
return { examples: r.some((i) => K(i) === n) ? r : [...r, t].slice(-Ti), exampleCandidates: ki(e, t) };
|
|
3466
3501
|
}
|
|
3467
|
-
function
|
|
3502
|
+
function ki(e, t) {
|
|
3468
3503
|
const n = K(t);
|
|
3469
3504
|
return (e.exampleCandidates ?? []).filter((r) => K(r.text) !== n);
|
|
3470
3505
|
}
|
|
3471
|
-
function
|
|
3506
|
+
function wi(e, t) {
|
|
3472
3507
|
const n = e.ownerScope;
|
|
3473
3508
|
return n ? n.kind === "org" ? !0 : n.kind === "team" ? !!t && n.teamId === t : !1 : !1;
|
|
3474
3509
|
}
|
|
3475
|
-
function
|
|
3476
|
-
return e.filter((n) =>
|
|
3510
|
+
function sd(e, t) {
|
|
3511
|
+
return e.filter((n) => wi(n, t));
|
|
3477
3512
|
}
|
|
3478
3513
|
const We = [
|
|
3479
3514
|
{
|
|
@@ -3553,7 +3588,7 @@ const We = [
|
|
|
3553
3588
|
"invoice",
|
|
3554
3589
|
"credit_note"
|
|
3555
3590
|
];
|
|
3556
|
-
function
|
|
3591
|
+
function ad() {
|
|
3557
3592
|
const e = /* @__PURE__ */ new Map();
|
|
3558
3593
|
for (const t of We)
|
|
3559
3594
|
bn.includes(t.key) && (e.has(t.path) || e.set(t.path, t));
|
|
@@ -3573,7 +3608,7 @@ function O(e) {
|
|
|
3573
3608
|
convertsTo: []
|
|
3574
3609
|
};
|
|
3575
3610
|
}
|
|
3576
|
-
const
|
|
3611
|
+
const cd = {
|
|
3577
3612
|
draft: "Concept",
|
|
3578
3613
|
sent: "Verstuurd",
|
|
3579
3614
|
accepted: "Geaccepteerd",
|
|
@@ -3588,16 +3623,16 @@ const Ju = {
|
|
|
3588
3623
|
cancelled: "Geannuleerd",
|
|
3589
3624
|
superseded: "Vervangen"
|
|
3590
3625
|
};
|
|
3591
|
-
function
|
|
3626
|
+
function Mi(e, t) {
|
|
3592
3627
|
return O(e).transitions[t] ?? [];
|
|
3593
3628
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return
|
|
3629
|
+
function ld(e, t, n) {
|
|
3630
|
+
return Mi(e, t).includes(n);
|
|
3596
3631
|
}
|
|
3597
|
-
function
|
|
3632
|
+
function Oi(e) {
|
|
3598
3633
|
return e.issuedAt != null;
|
|
3599
3634
|
}
|
|
3600
|
-
const
|
|
3635
|
+
const ud = [
|
|
3601
3636
|
"status",
|
|
3602
3637
|
"fileRef",
|
|
3603
3638
|
"number",
|
|
@@ -3605,7 +3640,7 @@ const ed = [
|
|
|
3605
3640
|
"postedAt",
|
|
3606
3641
|
"dunning",
|
|
3607
3642
|
"updatedAt"
|
|
3608
|
-
],
|
|
3643
|
+
], dd = [
|
|
3609
3644
|
"companyId",
|
|
3610
3645
|
"contactId",
|
|
3611
3646
|
"dealItemId",
|
|
@@ -3621,7 +3656,7 @@ const ed = [
|
|
|
3621
3656
|
"periodTo",
|
|
3622
3657
|
"paymentTerm",
|
|
3623
3658
|
"lines"
|
|
3624
|
-
],
|
|
3659
|
+
], fd = [
|
|
3625
3660
|
"contactId",
|
|
3626
3661
|
"dealItemId",
|
|
3627
3662
|
"title",
|
|
@@ -3634,15 +3669,15 @@ const ed = [
|
|
|
3634
3669
|
"periodFrom",
|
|
3635
3670
|
"periodTo"
|
|
3636
3671
|
];
|
|
3637
|
-
function
|
|
3672
|
+
function pd(e, t) {
|
|
3638
3673
|
if (!bn.includes(t) || !O(e.kindKey).convertsTo.includes(t)) return !1;
|
|
3639
3674
|
const n = O(t);
|
|
3640
|
-
return !n.credits || n.credits === e.kindKey &&
|
|
3675
|
+
return !n.credits || n.credits === e.kindKey && Oi(e);
|
|
3641
3676
|
}
|
|
3642
|
-
function
|
|
3643
|
-
const n = O(t).signFlip !== O(e.kindKey).signFlip, r = e.lines.map((o) => ({
|
|
3644
|
-
...
|
|
3645
|
-
quantity: n ? -
|
|
3677
|
+
function Ci(e, t) {
|
|
3678
|
+
const n = O(t).signFlip !== O(e.kindKey).signFlip, r = e.lines.map(({ timeEntryIds: o, ...i }) => ({
|
|
3679
|
+
...i,
|
|
3680
|
+
quantity: n ? -i.quantity : i.quantity,
|
|
3646
3681
|
netCents: 0,
|
|
3647
3682
|
taxCents: 0
|
|
3648
3683
|
}));
|
|
@@ -3678,17 +3713,18 @@ function Mi(e, t) {
|
|
|
3678
3713
|
source: e.source
|
|
3679
3714
|
};
|
|
3680
3715
|
}
|
|
3681
|
-
function
|
|
3716
|
+
function md(e) {
|
|
3682
3717
|
return {
|
|
3683
|
-
...
|
|
3718
|
+
...Ci(e, e.kindKey),
|
|
3684
3719
|
sourceTransactionId: e.sourceTransactionId,
|
|
3685
3720
|
previousVersionId: e.id,
|
|
3686
3721
|
version: e.version + 1,
|
|
3687
|
-
|
|
3722
|
+
// Hours stay stamped on the version they were billed on; claiming them again would conflict.
|
|
3723
|
+
lines: e.lines.map(({ timeEntryIds: n, ...r }) => ({ ...r })),
|
|
3688
3724
|
totals: e.totals
|
|
3689
3725
|
};
|
|
3690
3726
|
}
|
|
3691
|
-
function
|
|
3727
|
+
function hd(e, t = {}) {
|
|
3692
3728
|
const n = O(e.kindKey), r = e.totals ?? { netCents: 0, taxCents: 0, grossCents: 0 };
|
|
3693
3729
|
return {
|
|
3694
3730
|
customer: {
|
|
@@ -3697,7 +3733,7 @@ function id(e, t = {}) {
|
|
|
3697
3733
|
// One token per line of the address, plus `street` on its own for a template that wants
|
|
3698
3734
|
// the house number elsewhere. Empty stays empty: `fillText` reports it as a hole, and a
|
|
3699
3735
|
// recipient block missing its street is exactly what the issue gate has to refuse.
|
|
3700
|
-
address:
|
|
3736
|
+
address: $i(t.companyAddress),
|
|
3701
3737
|
street: t.companyAddress?.street ?? "",
|
|
3702
3738
|
house_number: t.companyAddress?.houseNumber ?? "",
|
|
3703
3739
|
postal_code: t.companyAddress?.postalCode ?? "",
|
|
@@ -3735,7 +3771,7 @@ function id(e, t = {}) {
|
|
|
3735
3771
|
}
|
|
3736
3772
|
};
|
|
3737
3773
|
}
|
|
3738
|
-
function
|
|
3774
|
+
function gd(e, t = [], n = Ni) {
|
|
3739
3775
|
const r = e.totals ?? { netCents: 0, grossCents: 0, byRate: [] }, o = (a) => t.find((l) => l.key === a)?.percent ?? 0, i = {
|
|
3740
3776
|
block_id: "lines",
|
|
3741
3777
|
type: "table",
|
|
@@ -3750,8 +3786,8 @@ function sd(e, t = [], n = Oi) {
|
|
|
3750
3786
|
// A text line spans as a heading: empty money cells would read as "free".
|
|
3751
3787
|
[a.name, "", "", ""]
|
|
3752
3788
|
) : [
|
|
3753
|
-
|
|
3754
|
-
|
|
3789
|
+
xi(a.name, a.description, a.optional, n.optional),
|
|
3790
|
+
Di(a.quantity),
|
|
3755
3791
|
R(a.unitPriceCents),
|
|
3756
3792
|
R(a.netCents)
|
|
3757
3793
|
]
|
|
@@ -3770,7 +3806,7 @@ function sd(e, t = [], n = Oi) {
|
|
|
3770
3806
|
};
|
|
3771
3807
|
return { lines: [i], totals: [s] };
|
|
3772
3808
|
}
|
|
3773
|
-
const
|
|
3809
|
+
const Ni = {
|
|
3774
3810
|
description: "Omschrijving",
|
|
3775
3811
|
optional: "optioneel",
|
|
3776
3812
|
quantity: "Aantal",
|
|
@@ -3779,14 +3815,14 @@ const Oi = {
|
|
|
3779
3815
|
tax: "Btw",
|
|
3780
3816
|
gross: "Totaal"
|
|
3781
3817
|
};
|
|
3782
|
-
function
|
|
3818
|
+
function xi(e, t, n, r) {
|
|
3783
3819
|
const o = t ? `${e} — ${t}` : e;
|
|
3784
3820
|
return n ? `${o} (${r})` : o;
|
|
3785
3821
|
}
|
|
3786
|
-
function
|
|
3822
|
+
function $i(e) {
|
|
3787
3823
|
return e?.street ? [e.street, e.houseNumber].filter(Boolean).join(" ") : "";
|
|
3788
3824
|
}
|
|
3789
|
-
function
|
|
3825
|
+
function Di(e) {
|
|
3790
3826
|
return Number.isInteger(e) ? String(e) : String(e).replace(".", ",");
|
|
3791
3827
|
}
|
|
3792
3828
|
function U(e) {
|
|
@@ -3794,14 +3830,14 @@ function U(e) {
|
|
|
3794
3830
|
const t = new Date(e), n = (r) => String(r).padStart(2, "0");
|
|
3795
3831
|
return `${n(t.getDate())}-${n(t.getMonth() + 1)}-${t.getFullYear()}`;
|
|
3796
3832
|
}
|
|
3797
|
-
function
|
|
3833
|
+
function Ri(e) {
|
|
3798
3834
|
const t = O(e), n = t.key, r = t.numbered;
|
|
3799
3835
|
return [
|
|
3800
3836
|
{
|
|
3801
3837
|
block_id: "head",
|
|
3802
3838
|
type: "letterhead",
|
|
3803
3839
|
fields: [
|
|
3804
|
-
...r ? [{ key: "number", label:
|
|
3840
|
+
...r ? [{ key: "number", label: Li[n]?.number ?? "Nummer", value: `{${n}.number}` }] : [],
|
|
3805
3841
|
{ key: "date", label: "Datum", value: `{${n}.date}` },
|
|
3806
3842
|
...r ? [{ key: "due_date", label: "Vervaldatum", value: `{${n}.due_date}` }] : [{ key: "valid_until", label: "Geldig tot", value: `{${n}.valid_until}` }],
|
|
3807
3843
|
// Required on a credit note: an open token is a hole, and the issue gate refuses holes.
|
|
@@ -3850,11 +3886,11 @@ function $i(e) {
|
|
|
3850
3886
|
{ block_id: "terms", type: "paragraph", text: Mt[n] ?? Mt.quote }
|
|
3851
3887
|
];
|
|
3852
3888
|
}
|
|
3853
|
-
const
|
|
3889
|
+
const yd = (e) => ({
|
|
3854
3890
|
note: { key: `${O(e).key}.note`, exists: !0 },
|
|
3855
3891
|
// Keyed on the start: a range without one is not a range, and `period_to` alone says nothing.
|
|
3856
3892
|
period: { key: `${O(e).key}.period_from`, exists: !0 }
|
|
3857
|
-
}),
|
|
3893
|
+
}), Li = {
|
|
3858
3894
|
invoice: { number: "Factuurnummer" },
|
|
3859
3895
|
credit_note: { number: "Creditnotanummer" }
|
|
3860
3896
|
}, wt = {
|
|
@@ -3875,54 +3911,54 @@ Hierbij onze creditnota. De onderstaande bedragen worden met u verrekend.`
|
|
|
3875
3911
|
order: "Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",
|
|
3876
3912
|
invoice: "Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",
|
|
3877
3913
|
credit_note: "Genoemde bedragen zijn exclusief btw tenzij anders vermeld."
|
|
3878
|
-
},
|
|
3879
|
-
function
|
|
3914
|
+
}, bd = Ri("quote"), Pi = We.map((e) => e.key), Ki = "product";
|
|
3915
|
+
function Ui(e, t) {
|
|
3880
3916
|
return `${e}:${t}`;
|
|
3881
3917
|
}
|
|
3882
|
-
function
|
|
3883
|
-
return `${
|
|
3918
|
+
function Ad(e) {
|
|
3919
|
+
return `${Ki}:${e}`;
|
|
3884
3920
|
}
|
|
3885
|
-
function
|
|
3921
|
+
function _d(e, t) {
|
|
3886
3922
|
const n = e.businessEntityId || t;
|
|
3887
3923
|
if (n)
|
|
3888
3924
|
return `/apps/sales/${n}/${O(e.kindKey).path}/${e.id}`;
|
|
3889
3925
|
}
|
|
3890
|
-
function
|
|
3926
|
+
function Ed(e, t) {
|
|
3891
3927
|
const n = e.businessEntityId || t;
|
|
3892
3928
|
return n ? `/apps/sales/${n}/product/${e.id}` : void 0;
|
|
3893
3929
|
}
|
|
3894
|
-
function
|
|
3930
|
+
function Sd(e) {
|
|
3895
3931
|
const t = e.indexOf(":");
|
|
3896
3932
|
if (t < 0) return;
|
|
3897
3933
|
const n = e.slice(0, t);
|
|
3898
|
-
return
|
|
3934
|
+
return Pi.includes(n) ? e.slice(t + 1) : void 0;
|
|
3899
3935
|
}
|
|
3900
|
-
function
|
|
3901
|
-
const t = /* @__PURE__ */ new Set([
|
|
3936
|
+
function Td(e) {
|
|
3937
|
+
const t = /* @__PURE__ */ new Set([Ui(e.kindKey, e.id)]);
|
|
3902
3938
|
return e.companyId && t.add(`company:${e.companyId}`), e.contactId && t.add(`contact:${e.contactId}`), e.dealItemId && t.add(`work_item:${e.dealItemId}`), Array.from(t);
|
|
3903
3939
|
}
|
|
3904
|
-
const
|
|
3905
|
-
function
|
|
3940
|
+
const Id = 4;
|
|
3941
|
+
function vd(e, t) {
|
|
3906
3942
|
const n = String(t).padStart(Math.max(1, e.padding), "0");
|
|
3907
3943
|
return `${e.prefix}${e.period ? `${e.period}-` : ""}${n}`;
|
|
3908
3944
|
}
|
|
3909
|
-
function
|
|
3945
|
+
function kd(e, t = Date.now()) {
|
|
3910
3946
|
return e === "year" ? String(new Date(t).getFullYear()) : "";
|
|
3911
3947
|
}
|
|
3912
|
-
const
|
|
3948
|
+
const wd = [
|
|
3913
3949
|
"cash",
|
|
3914
3950
|
"credit",
|
|
3915
3951
|
"direct_debit",
|
|
3916
3952
|
"card",
|
|
3917
3953
|
"other"
|
|
3918
3954
|
];
|
|
3919
|
-
function
|
|
3955
|
+
function Md(e, t) {
|
|
3920
3956
|
return e + Math.max(0, Math.round(t)) * 24 * 60 * 60 * 1e3;
|
|
3921
3957
|
}
|
|
3922
|
-
function
|
|
3958
|
+
function Od(e) {
|
|
3923
3959
|
return { code: e.code, label: e.label, method: e.method, dueDays: e.dueDays };
|
|
3924
3960
|
}
|
|
3925
|
-
const
|
|
3961
|
+
const Cd = [
|
|
3926
3962
|
{
|
|
3927
3963
|
code: "14D",
|
|
3928
3964
|
label: "Binnen 14 dagen",
|
|
@@ -3934,34 +3970,34 @@ const _d = [
|
|
|
3934
3970
|
{ code: "30D", label: "Binnen 30 dagen", method: "credit", dueDays: 30, order: 1 },
|
|
3935
3971
|
{ code: "CONTANT", label: "Contant", method: "cash", dueDays: 0, order: 2 }
|
|
3936
3972
|
];
|
|
3937
|
-
function
|
|
3973
|
+
function Nd(e) {
|
|
3938
3974
|
return e.type === "agent";
|
|
3939
3975
|
}
|
|
3940
|
-
const
|
|
3976
|
+
const Fi = [
|
|
3941
3977
|
"communication:interactions:created",
|
|
3942
3978
|
"communication:interactions:updated",
|
|
3943
3979
|
"communication:activities:created",
|
|
3944
3980
|
"communication:activities:updated"
|
|
3945
3981
|
];
|
|
3946
|
-
function
|
|
3947
|
-
return
|
|
3982
|
+
function xd(e) {
|
|
3983
|
+
return Fi.includes(e);
|
|
3948
3984
|
}
|
|
3949
|
-
const
|
|
3950
|
-
function
|
|
3985
|
+
const $d = "WORK_COMMENT_ADDED", Dd = "WORK_ITEM_ASSIGNED", Rd = "WORK_ITEM_STATUS_CHANGED";
|
|
3986
|
+
function ji(e, t) {
|
|
3951
3987
|
const n = (r) => {
|
|
3952
3988
|
const o = new Date(r);
|
|
3953
3989
|
return o.setHours(0, 0, 0, 0), o.getTime();
|
|
3954
3990
|
};
|
|
3955
|
-
return Math.round((n(e) - n(t)) /
|
|
3991
|
+
return Math.round((n(e) - n(t)) / Cr);
|
|
3956
3992
|
}
|
|
3957
|
-
function
|
|
3993
|
+
function Ld(e, t) {
|
|
3958
3994
|
if (e.closedAt != null) return { score: P, reasons: [] };
|
|
3959
3995
|
const n = t.remindersById?.[e.id];
|
|
3960
3996
|
if (n && n.remindAt > t.now) return { score: P, reasons: [] };
|
|
3961
3997
|
let r = 0;
|
|
3962
3998
|
const o = [], i = e.priority ?? "normal";
|
|
3963
3999
|
if (ne[i] > 0 && (r += ne[i], o.push(`priority:${i}`)), typeof e.dueDate == "number") {
|
|
3964
|
-
const s =
|
|
4000
|
+
const s = ji(e.dueDate, t.now);
|
|
3965
4001
|
s < 0 ? (r += 35, o.push("overdue")) : s === 0 && (r += 20, o.push("due-today"));
|
|
3966
4002
|
}
|
|
3967
4003
|
return e.source?.initiator === "system" && e.source.systemReason && (r += 15, o.push(`auto:${e.source.systemReason}`)), { score: r, reasons: o };
|
|
@@ -3976,35 +4012,35 @@ const Ve = [
|
|
|
3976
4012
|
{ key: "deal", label: "type_deal" },
|
|
3977
4013
|
/** A date others lead up to: what blocks it, or sits under it, is its progress. No duration. */
|
|
3978
4014
|
{ key: "milestone", label: "type_milestone" }
|
|
3979
|
-
],
|
|
3980
|
-
function
|
|
4015
|
+
], Pd = Ve.map((e) => e.key);
|
|
4016
|
+
function Kd(e) {
|
|
3981
4017
|
return e?.types?.length ? e.types : Ve;
|
|
3982
4018
|
}
|
|
3983
|
-
function
|
|
4019
|
+
function Ud(e, t) {
|
|
3984
4020
|
return t.find((n) => n.key === e);
|
|
3985
4021
|
}
|
|
3986
|
-
function
|
|
4022
|
+
function Fd(e) {
|
|
3987
4023
|
const t = e.trim().toLowerCase();
|
|
3988
4024
|
return t ? t.includes("sub-task") || t.includes("subtask") || t.includes("sub task") ? "subtask" : t.includes("bug") || t.includes("defect") ? "bug" : t.includes("epic") ? "epic" : t.includes("story") ? "story" : t.includes("incident") || t.includes("problem") || t.includes("service request") || t.includes("change") ? "case" : t.includes("milestone") || t.includes("mijlpaal") ? "milestone" : t.includes("task") ? "task" : null : null;
|
|
3989
4025
|
}
|
|
3990
|
-
function
|
|
4026
|
+
function jd(...e) {
|
|
3991
4027
|
return e.map((t) => Ve.find((n) => n.key === t)).filter((t) => !!t);
|
|
3992
4028
|
}
|
|
3993
|
-
const
|
|
3994
|
-
function
|
|
3995
|
-
return `${
|
|
4029
|
+
const Bi = "work_item", Hi = "work_project", Gi = "work_activity", Bd = "work_cycle";
|
|
4030
|
+
function Wi(e) {
|
|
4031
|
+
return `${Bi}:${e}`;
|
|
3996
4032
|
}
|
|
3997
4033
|
function An(e) {
|
|
3998
|
-
return `${
|
|
4034
|
+
return `${Hi}:${e}`;
|
|
3999
4035
|
}
|
|
4000
|
-
function
|
|
4001
|
-
return `${
|
|
4036
|
+
function Hd(e) {
|
|
4037
|
+
return `${Gi}:${e}`;
|
|
4002
4038
|
}
|
|
4003
|
-
function
|
|
4039
|
+
function Gd(e, t, n) {
|
|
4004
4040
|
const r = `${e}-${t}`;
|
|
4005
4041
|
return n ? `${r}-${n}` : r;
|
|
4006
4042
|
}
|
|
4007
|
-
function
|
|
4043
|
+
function Wd(e) {
|
|
4008
4044
|
const t = /^([A-Za-z0-9]{2,8})-(\d+)(?:-(\d+))?$/.exec((e || "").trim());
|
|
4009
4045
|
return t ? {
|
|
4010
4046
|
projectKey: t[1].toUpperCase(),
|
|
@@ -4012,17 +4048,17 @@ function Rd(e) {
|
|
|
4012
4048
|
...t[3] ? { subSequence: Number(t[3]) } : {}
|
|
4013
4049
|
} : null;
|
|
4014
4050
|
}
|
|
4015
|
-
function
|
|
4051
|
+
function Vd(e) {
|
|
4016
4052
|
return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toUpperCase().replace(/[^A-Z0-9]/g, "").slice(0, 3) || "PRJ";
|
|
4017
4053
|
}
|
|
4018
|
-
function
|
|
4019
|
-
const n = /* @__PURE__ */ new Set([
|
|
4054
|
+
function zd(e, t = 25) {
|
|
4055
|
+
const n = /* @__PURE__ */ new Set([Wi(e.id)]);
|
|
4020
4056
|
e.projectId && n.add(An(e.projectId));
|
|
4021
4057
|
for (const r of e.ancestorKeys ?? []) n.add(r);
|
|
4022
4058
|
for (const r of e.partyKeys ?? []) n.add(r);
|
|
4023
4059
|
return Array.from(n).slice(0, t);
|
|
4024
4060
|
}
|
|
4025
|
-
function
|
|
4061
|
+
function Yd(e) {
|
|
4026
4062
|
return [An(e.id)];
|
|
4027
4063
|
}
|
|
4028
4064
|
const ze = [
|
|
@@ -4031,33 +4067,33 @@ const ze = [
|
|
|
4031
4067
|
{ key: "done", label: "status_done", category: "done", order: 2 },
|
|
4032
4068
|
{ key: "cancelled", label: "status_cancelled", category: "done", order: 3 }
|
|
4033
4069
|
], _n = ze.map((e) => e.key);
|
|
4034
|
-
function
|
|
4070
|
+
function Vi(e) {
|
|
4035
4071
|
return e?.statuses?.length ? e.statuses : ze;
|
|
4036
4072
|
}
|
|
4037
|
-
function
|
|
4073
|
+
function zi(e, t) {
|
|
4038
4074
|
return t.find((n) => n.key === e)?.category ?? "todo";
|
|
4039
4075
|
}
|
|
4040
|
-
function
|
|
4076
|
+
function Xd(e, t) {
|
|
4041
4077
|
return t.find((n) => n.key === e);
|
|
4042
4078
|
}
|
|
4043
|
-
function
|
|
4044
|
-
const t =
|
|
4045
|
-
return n && t.some((r) => r.key === n) ? n :
|
|
4079
|
+
function qd(e) {
|
|
4080
|
+
const t = Vi(e), n = e?.defaultStatusKey;
|
|
4081
|
+
return n && t.some((r) => r.key === n) ? n : Yi(t)[0]?.key ?? ze[0].key;
|
|
4046
4082
|
}
|
|
4047
|
-
function
|
|
4083
|
+
function Yi(e) {
|
|
4048
4084
|
return [...e].sort((t, n) => {
|
|
4049
4085
|
const r = (t.order ?? 0) - (n.order ?? 0);
|
|
4050
4086
|
return r !== 0 ? r : (t.label || "").localeCompare(n.label || "");
|
|
4051
4087
|
});
|
|
4052
4088
|
}
|
|
4053
|
-
function
|
|
4054
|
-
return
|
|
4089
|
+
function Qd(e, t) {
|
|
4090
|
+
return zi(e, t) === "done";
|
|
4055
4091
|
}
|
|
4056
|
-
function
|
|
4092
|
+
function Xi(e) {
|
|
4057
4093
|
return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
|
|
4058
4094
|
}
|
|
4059
|
-
function
|
|
4060
|
-
const n =
|
|
4095
|
+
function Jd(e, t) {
|
|
4096
|
+
const n = Xi(e) || "status", r = /* @__PURE__ */ new Set([...t, ..._n]);
|
|
4061
4097
|
if (!r.has(n)) return n;
|
|
4062
4098
|
for (let o = 2; o < 500; o++) {
|
|
4063
4099
|
const i = `${n}-${o}`;
|
|
@@ -4065,7 +4101,7 @@ function Bd(e, t) {
|
|
|
4065
4101
|
}
|
|
4066
4102
|
return `${n}-${r.size + 1}`;
|
|
4067
4103
|
}
|
|
4068
|
-
function
|
|
4104
|
+
function Zd(e) {
|
|
4069
4105
|
const t = [];
|
|
4070
4106
|
if (!e.length) return [{ index: -1, reason: "empty" }];
|
|
4071
4107
|
const n = /* @__PURE__ */ new Set();
|
|
@@ -4077,42 +4113,42 @@ function Hd(e) {
|
|
|
4077
4113
|
_n.includes(r.key) && t.push({ index: o, reason: "reserved_key", key: r.key }), n.has(r.key) && t.push({ index: o, reason: "duplicate_key", key: r.key }), n.add(r.key);
|
|
4078
4114
|
}), e.some((r) => r.category === "todo" || r.category === "in_progress") || t.push({ index: -1, reason: "no_open" }), e.some((r) => r.category === "done") || t.push({ index: -1, reason: "no_done" }), t;
|
|
4079
4115
|
}
|
|
4080
|
-
function
|
|
4116
|
+
function ef(e, t) {
|
|
4081
4117
|
return t.find((n) => n.key === e)?.requiresApproval === !0;
|
|
4082
4118
|
}
|
|
4083
|
-
function
|
|
4119
|
+
function tf(e, t) {
|
|
4084
4120
|
if (!e) return;
|
|
4085
4121
|
const n = t?.resolutions?.find((r) => r.key === e)?.positive;
|
|
4086
4122
|
return n === void 0 ? void 0 : n ? "won" : "lost";
|
|
4087
4123
|
}
|
|
4088
|
-
function
|
|
4124
|
+
function nf(e) {
|
|
4089
4125
|
return e.startDate ?? Number.MAX_SAFE_INTEGER;
|
|
4090
4126
|
}
|
|
4091
|
-
function
|
|
4127
|
+
function rf(e) {
|
|
4092
4128
|
return e.completedAt ? "completed" : e.startedAt ? "active" : "planned";
|
|
4093
4129
|
}
|
|
4094
|
-
const
|
|
4130
|
+
const of = [
|
|
4095
4131
|
"statusKeys",
|
|
4096
4132
|
"typeKeys",
|
|
4097
4133
|
"labels",
|
|
4098
4134
|
"priority",
|
|
4099
4135
|
"assignees"
|
|
4100
|
-
],
|
|
4136
|
+
], sf = ["blockedOnly", "watchingOnly", "reportedByMe"], af = [
|
|
4101
4137
|
"priority",
|
|
4102
4138
|
"dueDate",
|
|
4103
4139
|
"updatedAt",
|
|
4104
4140
|
"createdAt",
|
|
4105
4141
|
"title",
|
|
4106
4142
|
"estimateSeconds"
|
|
4107
|
-
],
|
|
4108
|
-
function
|
|
4143
|
+
], cf = ["list", "board", "calendar", "workload"], qi = ["day", "week", "month"];
|
|
4144
|
+
function lf(e) {
|
|
4109
4145
|
const t = e;
|
|
4110
|
-
if (!t || !
|
|
4146
|
+
if (!t || !qi.includes(t.every)) return;
|
|
4111
4147
|
const n = Math.floor(Number(t.interval ?? 1));
|
|
4112
4148
|
if (!(!Number.isFinite(n) || n < 1 || n > 365))
|
|
4113
4149
|
return { every: t.every, interval: n };
|
|
4114
4150
|
}
|
|
4115
|
-
function
|
|
4151
|
+
function Qi(e, t) {
|
|
4116
4152
|
const n = new Date(e);
|
|
4117
4153
|
if (t.every === "day") n.setDate(n.getDate() + t.interval);
|
|
4118
4154
|
else if (t.every === "week") n.setDate(n.getDate() + 7 * t.interval);
|
|
@@ -4122,11 +4158,11 @@ function Yi(e, t) {
|
|
|
4122
4158
|
}
|
|
4123
4159
|
return n.getTime();
|
|
4124
4160
|
}
|
|
4125
|
-
function
|
|
4126
|
-
const r =
|
|
4161
|
+
function uf(e, t, n) {
|
|
4162
|
+
const r = Qi(e.dueDate ?? n, t);
|
|
4127
4163
|
return e.startDate === void 0 || e.dueDate === void 0 ? { dueDate: r } : { dueDate: r, startDate: r - (e.dueDate - e.startDate) };
|
|
4128
4164
|
}
|
|
4129
|
-
const
|
|
4165
|
+
const Ji = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), Zi = /* @__PURE__ */ new Set([
|
|
4130
4166
|
"text/plain",
|
|
4131
4167
|
"text/markdown",
|
|
4132
4168
|
"text/csv",
|
|
@@ -4135,71 +4171,71 @@ const qi = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "ima
|
|
|
4135
4171
|
"application/xml",
|
|
4136
4172
|
"text/xml"
|
|
4137
4173
|
]);
|
|
4138
|
-
function
|
|
4174
|
+
function es(e) {
|
|
4139
4175
|
const t = (e ?? "").trim().toLowerCase().split(";")[0];
|
|
4140
|
-
return t ?
|
|
4176
|
+
return t ? Ji.has(t) ? "image" : t === "application/pdf" ? "pdf" : Zi.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
|
|
4141
4177
|
}
|
|
4142
|
-
const B = 1024 * 1024,
|
|
4178
|
+
const B = 1024 * 1024, ts = {
|
|
4143
4179
|
image: 5 * B,
|
|
4144
4180
|
pdf: 20 * B,
|
|
4145
4181
|
text: 1 * B,
|
|
4146
4182
|
audio: 20 * B
|
|
4147
|
-
},
|
|
4148
|
-
function
|
|
4149
|
-
const n =
|
|
4150
|
-
return n === "unsupported" ? "unsupported" : t >
|
|
4183
|
+
}, df = 25 * B, ff = 5;
|
|
4184
|
+
function pf(e, t) {
|
|
4185
|
+
const n = es(e);
|
|
4186
|
+
return n === "unsupported" ? "unsupported" : t > ts[n] ? "too-large" : null;
|
|
4151
4187
|
}
|
|
4152
|
-
const
|
|
4153
|
-
function
|
|
4188
|
+
const mf = "ai-tool";
|
|
4189
|
+
function hf(e) {
|
|
4154
4190
|
return e.access === "read" ? "idempotent" : e.reversible ?? "none";
|
|
4155
4191
|
}
|
|
4156
4192
|
function En(e) {
|
|
4157
4193
|
return e.access !== "read" && e.effect !== "internal";
|
|
4158
4194
|
}
|
|
4159
|
-
function
|
|
4195
|
+
function ns(e) {
|
|
4160
4196
|
return `${e.kind}:${e.id || e.url || e.title}`;
|
|
4161
4197
|
}
|
|
4162
|
-
function
|
|
4198
|
+
function gf(e, t = []) {
|
|
4163
4199
|
const n = new Set(t), r = [], o = [];
|
|
4164
4200
|
for (const i of e) {
|
|
4165
|
-
const s =
|
|
4201
|
+
const s = ns(i);
|
|
4166
4202
|
n.has(s) || (n.add(s), r.push(i), o.push(s));
|
|
4167
4203
|
}
|
|
4168
4204
|
return { sources: r, keys: o };
|
|
4169
4205
|
}
|
|
4170
|
-
const
|
|
4171
|
-
function
|
|
4206
|
+
const yf = "assist-source", bf = ["blocking", "due", "open"];
|
|
4207
|
+
function Af(e, t) {
|
|
4172
4208
|
const [n, r] = (e.subjectKey ?? "").split(":");
|
|
4173
4209
|
return n === t && r ? r : void 0;
|
|
4174
4210
|
}
|
|
4175
4211
|
const Ot = { blocking: 0, due: 1, open: 2 };
|
|
4176
|
-
function
|
|
4212
|
+
function _f(e, t) {
|
|
4177
4213
|
return Ot[e.band ?? "open"] - Ot[t.band ?? "open"] || (t.priority ?? 0) - (e.priority ?? 0) || e.id.localeCompare(t.id);
|
|
4178
4214
|
}
|
|
4179
|
-
function
|
|
4215
|
+
function Ef(e) {
|
|
4180
4216
|
return e.sessions.filter(
|
|
4181
4217
|
(t) => t.id !== e.exceptSessionId && t.state === "connected" && e.canHold(t.providerId)
|
|
4182
4218
|
);
|
|
4183
4219
|
}
|
|
4184
|
-
function
|
|
4220
|
+
function Sf(e) {
|
|
4185
4221
|
return e.sessions.filter(
|
|
4186
4222
|
(t) => t.id !== e.exceptSessionId && t.state === "connected" && !e.canHold(t.providerId)
|
|
4187
4223
|
);
|
|
4188
4224
|
}
|
|
4189
|
-
function
|
|
4225
|
+
function Tf(e) {
|
|
4190
4226
|
return e.sessions.some(
|
|
4191
4227
|
(n) => n.id !== e.exceptSessionId && (n.state === "connected" || n.state === "on_hold")
|
|
4192
4228
|
) ? { admit: !1, reason: "busy" } : { admit: !0 };
|
|
4193
4229
|
}
|
|
4194
|
-
function
|
|
4195
|
-
const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, o = t.intents.filter((s) => !n.has(s.intent)).map((s) =>
|
|
4230
|
+
function rs(e, t) {
|
|
4231
|
+
const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, o = t.intents.filter((s) => !n.has(s.intent)).map((s) => is(s, r[s.intent]));
|
|
4196
4232
|
if (!e.extraIntents || e.extraIntents.length === 0) return o;
|
|
4197
4233
|
const i = new Set(o.map((s) => s.intent));
|
|
4198
4234
|
for (const s of e.extraIntents)
|
|
4199
4235
|
i.has(s.intent) || (o.push(s), i.add(s.intent));
|
|
4200
4236
|
return o;
|
|
4201
4237
|
}
|
|
4202
|
-
function
|
|
4238
|
+
function os(e, t) {
|
|
4203
4239
|
const n = {};
|
|
4204
4240
|
for (const r of e.intents) {
|
|
4205
4241
|
if (!r.togglable) continue;
|
|
@@ -4208,46 +4244,46 @@ function ns(e, t) {
|
|
|
4208
4244
|
}
|
|
4209
4245
|
return n;
|
|
4210
4246
|
}
|
|
4211
|
-
function
|
|
4212
|
-
const n =
|
|
4247
|
+
function If(e, t) {
|
|
4248
|
+
const n = os(e, t);
|
|
4213
4249
|
return Object.entries(n).filter(([, r]) => !r).map(([r]) => r);
|
|
4214
4250
|
}
|
|
4215
|
-
function
|
|
4251
|
+
function is(e, t) {
|
|
4216
4252
|
return t ? {
|
|
4217
4253
|
intent: t.intent ?? e.intent,
|
|
4218
4254
|
targetSchemes: t.targetSchemes ?? e.targetSchemes,
|
|
4219
4255
|
transport: t.transport ?? e.transport
|
|
4220
4256
|
} : e;
|
|
4221
4257
|
}
|
|
4222
|
-
function
|
|
4258
|
+
function vf(e, t) {
|
|
4223
4259
|
const n = [];
|
|
4224
4260
|
for (const r of e) {
|
|
4225
4261
|
if (!r.enabled) continue;
|
|
4226
4262
|
const o = t[r.providerId];
|
|
4227
4263
|
if (o)
|
|
4228
|
-
for (const i of
|
|
4264
|
+
for (const i of rs(r, o))
|
|
4229
4265
|
n.push({ channel: r, description: o, capability: i });
|
|
4230
4266
|
}
|
|
4231
4267
|
return n;
|
|
4232
4268
|
}
|
|
4233
|
-
function
|
|
4269
|
+
function kf(e, t) {
|
|
4234
4270
|
return t.filter((n) => n.capability.intent === e);
|
|
4235
4271
|
}
|
|
4236
|
-
function
|
|
4272
|
+
function ss(e, t) {
|
|
4237
4273
|
return t.filter((n) => n.capability.targetSchemes.includes(e));
|
|
4238
4274
|
}
|
|
4239
|
-
function
|
|
4240
|
-
return
|
|
4275
|
+
function wf(e, t) {
|
|
4276
|
+
return ss(e.scheme, t);
|
|
4241
4277
|
}
|
|
4242
|
-
function
|
|
4278
|
+
function Mf(e, t, n) {
|
|
4243
4279
|
const r = [];
|
|
4244
4280
|
for (const o of e)
|
|
4245
4281
|
for (const i of n)
|
|
4246
4282
|
i.capability.intent === t && i.capability.targetSchemes.includes(o.scheme) && r.push({ channelIntent: i, endpoint: o });
|
|
4247
4283
|
return r;
|
|
4248
4284
|
}
|
|
4249
|
-
var
|
|
4250
|
-
const
|
|
4285
|
+
var as = /* @__PURE__ */ ((e) => (e.MAILTO = "mailto", e.SIP = "sip", e.TEL = "tel", e.WEBHOOK = "webhook", e.USERNAME = "username", e.ID = "id", e.CUSTOM = "custom", e.URL = "url", e.TELEGRAM = "telegram", e.WHATSAPP = "whatsapp", e.MESSENGER = "messenger", e.INSTAGRAM = "instagram", e.VIBER = "viber", e.SMS = "sms", e.FAX = "fax", e.TEAMS = "teams", e.CALENDAR = "calendar", e))(as || {});
|
|
4286
|
+
const cs = {
|
|
4251
4287
|
mailto: "mail",
|
|
4252
4288
|
sip: "tel",
|
|
4253
4289
|
tel: "tel",
|
|
@@ -4268,10 +4304,10 @@ const ss = {
|
|
|
4268
4304
|
id: "note",
|
|
4269
4305
|
custom: "note"
|
|
4270
4306
|
};
|
|
4271
|
-
function
|
|
4272
|
-
return e ?
|
|
4307
|
+
function Of(e) {
|
|
4308
|
+
return e ? cs[e] ?? "note" : "note";
|
|
4273
4309
|
}
|
|
4274
|
-
const
|
|
4310
|
+
const Cf = "message_window", Nf = "message_templates", xf = {
|
|
4275
4311
|
// E-mail
|
|
4276
4312
|
FROM: "from",
|
|
4277
4313
|
TO: "to",
|
|
@@ -4288,11 +4324,11 @@ const _f = "message_window", Ef = "message_templates", Sf = {
|
|
|
4288
4324
|
// Voice/conference
|
|
4289
4325
|
HOST: "host",
|
|
4290
4326
|
PARTICIPANT: "participant"
|
|
4291
|
-
},
|
|
4327
|
+
}, $f = (e, t) => ({ intent: e, ...t }), Df = "folder_management", Rf = "remote_search", Lf = "message_reactions", Pf = {
|
|
4292
4328
|
ok: !1,
|
|
4293
4329
|
code: "UNSUPPORTED",
|
|
4294
4330
|
message: "Provider does not support this op"
|
|
4295
|
-
},
|
|
4331
|
+
}, Kf = "connector", Uf = "context.collect", _ = (e) => ({ type: "string", description: e }), A = (e) => ({ type: "number", description: e }), ee = (e) => ({ type: "boolean", description: e }), M = _("Sheet name. Omit for the sheet the user is looking at."), Ct = _("Slide id, as `inspect` reports it.");
|
|
4296
4332
|
function b(e, t, n, r, o, i) {
|
|
4297
4333
|
return {
|
|
4298
4334
|
op: e,
|
|
@@ -4303,7 +4339,7 @@ function b(e, t, n, r, o, i) {
|
|
|
4303
4339
|
visible: i.visible
|
|
4304
4340
|
};
|
|
4305
4341
|
}
|
|
4306
|
-
const G = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, Nt = { undoable: !1, visible: !0 }, re = { undoable: !1, visible: !1 },
|
|
4342
|
+
const G = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, Nt = { undoable: !1, visible: !0 }, re = { undoable: !1, visible: !1 }, ls = [
|
|
4307
4343
|
b(
|
|
4308
4344
|
"pdf.goToPage",
|
|
4309
4345
|
["pdf"],
|
|
@@ -4398,7 +4434,7 @@ const G = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, Nt =
|
|
|
4398
4434
|
["page", "text"],
|
|
4399
4435
|
re
|
|
4400
4436
|
)
|
|
4401
|
-
],
|
|
4437
|
+
], us = [
|
|
4402
4438
|
b(
|
|
4403
4439
|
"sheet.setValues",
|
|
4404
4440
|
["sheet"],
|
|
@@ -4550,7 +4586,7 @@ const G = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, Nt =
|
|
|
4550
4586
|
[],
|
|
4551
4587
|
G
|
|
4552
4588
|
)
|
|
4553
|
-
],
|
|
4589
|
+
], ds = [
|
|
4554
4590
|
b(
|
|
4555
4591
|
"word.replaceParagraph",
|
|
4556
4592
|
["word"],
|
|
@@ -4612,7 +4648,7 @@ const G = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, Nt =
|
|
|
4612
4648
|
["start"],
|
|
4613
4649
|
G
|
|
4614
4650
|
)
|
|
4615
|
-
],
|
|
4651
|
+
], fs = [
|
|
4616
4652
|
b(
|
|
4617
4653
|
"slides.setText",
|
|
4618
4654
|
["slides"],
|
|
@@ -4641,23 +4677,23 @@ const G = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, Nt =
|
|
|
4641
4677
|
re
|
|
4642
4678
|
)
|
|
4643
4679
|
], Sn = [
|
|
4644
|
-
...as,
|
|
4645
|
-
...cs,
|
|
4646
4680
|
...ls,
|
|
4647
|
-
...us
|
|
4681
|
+
...us,
|
|
4682
|
+
...ds,
|
|
4683
|
+
...fs
|
|
4648
4684
|
];
|
|
4649
|
-
function
|
|
4685
|
+
function Ff(e) {
|
|
4650
4686
|
return Sn.filter((t) => t.kinds.includes(e));
|
|
4651
4687
|
}
|
|
4652
|
-
function
|
|
4688
|
+
function jf(e) {
|
|
4653
4689
|
return Sn.find((t) => t.op === e);
|
|
4654
4690
|
}
|
|
4655
|
-
const xt = /(?: {2,}|\\)$/,
|
|
4691
|
+
const xt = /(?: {2,}|\\)$/, ps = /^\*\*([^*]+)\*\*\s+(.*)$/;
|
|
4656
4692
|
function $t(e) {
|
|
4657
|
-
const t =
|
|
4693
|
+
const t = ps.exec(e);
|
|
4658
4694
|
return t ? { lead: t[1], text: t[2] } : { text: e };
|
|
4659
4695
|
}
|
|
4660
|
-
function
|
|
4696
|
+
function Bf(e) {
|
|
4661
4697
|
const t = (e ?? "").replace(/\r\n/g, `
|
|
4662
4698
|
`).split(`
|
|
4663
4699
|
`), n = [];
|
|
@@ -4736,27 +4772,27 @@ function xf(e) {
|
|
|
4736
4772
|
}
|
|
4737
4773
|
return d(), n;
|
|
4738
4774
|
}
|
|
4739
|
-
function
|
|
4775
|
+
function Hf(e, t) {
|
|
4740
4776
|
return ar(e, t).replace(/^```.*$/gm, "").replace(/^\|[\s:|-]*\|$/gm, "").replace(/[ \t]*\|[ \t]*/g, " ").replace(/^[ \t]*(#{1,6}|>|[-*+]|\d+\.)[ \t]+/gm, "").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/(\*\*|__|\*|_|`|~~)/g, "").replace(/[ \t]+$/gm, "").replace(/\n{3,}/g, `
|
|
4741
4777
|
|
|
4742
4778
|
`).trim();
|
|
4743
4779
|
}
|
|
4744
|
-
const
|
|
4745
|
-
function
|
|
4780
|
+
const Gf = "documents.describe", Wf = "documents.inspect", Vf = "documents.apply";
|
|
4781
|
+
function zf(e) {
|
|
4746
4782
|
const t = e.indexOf(":");
|
|
4747
4783
|
if (t !== -1) return e.slice(0, t);
|
|
4748
4784
|
const n = e.indexOf(".");
|
|
4749
4785
|
return n === -1 ? e : e.slice(0, n);
|
|
4750
4786
|
}
|
|
4751
|
-
const
|
|
4752
|
-
function
|
|
4787
|
+
const Yf = "installation-id";
|
|
4788
|
+
function Xf(e) {
|
|
4753
4789
|
const t = [];
|
|
4754
4790
|
for (const n of Object.keys(e))
|
|
4755
4791
|
for (const r of Object.keys(e[n]))
|
|
4756
4792
|
t.push({ lang: n, key: r, value: e[n][r] });
|
|
4757
4793
|
return t;
|
|
4758
4794
|
}
|
|
4759
|
-
const
|
|
4795
|
+
const qf = "notification-source", Qf = (e, t) => `${e}.pref.${t}`, Jf = {
|
|
4760
4796
|
ai: [
|
|
4761
4797
|
"account.read",
|
|
4762
4798
|
"account.write",
|
|
@@ -4896,48 +4932,48 @@ const Ff = "notification-source", jf = (e, t) => `${e}.pref.${t}`, Bf = {
|
|
|
4896
4932
|
time: ["entry.read", "entry.write", "work-type.read", "work-type.write"],
|
|
4897
4933
|
user: ["user.read", "user.write"],
|
|
4898
4934
|
work: ["item.read", "item.write", "project.read", "project.write"]
|
|
4899
|
-
}, Tn = 9e4,
|
|
4900
|
-
function
|
|
4935
|
+
}, Tn = 9e4, ms = ["out_of_office"], In = (e) => ms.includes(e);
|
|
4936
|
+
function Zf(e, t, n) {
|
|
4901
4937
|
const r = n - e < Tn, o = t?.status && (!t.expiresAt || t.expiresAt > n) ? t : void 0;
|
|
4902
4938
|
if (!o?.status) return { online: r, status: r ? "available" : "offline" };
|
|
4903
4939
|
const i = o.status;
|
|
4904
4940
|
return !r && !In(i) ? { online: !1, status: "offline" } : { online: r, status: i, message: o.message };
|
|
4905
4941
|
}
|
|
4906
|
-
function
|
|
4942
|
+
function ep(e, t) {
|
|
4907
4943
|
const n = t - e.lastSeenAt < Tn, r = n || In(e.status) ? e.status : "offline";
|
|
4908
4944
|
return n === e.online && r === e.status ? e : { ...e, online: n, status: r };
|
|
4909
4945
|
}
|
|
4910
|
-
function
|
|
4946
|
+
function tp(e, t) {
|
|
4911
4947
|
return e?.teamId && t.includes(e.teamId) ? { teamId: e.teamId, mustChoose: !1 } : t.length === 1 ? { teamId: t[0], mustChoose: !1 } : { teamId: void 0, mustChoose: t.length > 1 };
|
|
4912
4948
|
}
|
|
4913
|
-
function
|
|
4949
|
+
function np(e) {
|
|
4914
4950
|
return e.providerAvailable && e.allowed;
|
|
4915
4951
|
}
|
|
4916
|
-
const
|
|
4917
|
-
function
|
|
4952
|
+
const rp = "resources.describe", op = "resources.search", ip = "resources.resolve", sp = "resources.attached";
|
|
4953
|
+
function ap(e) {
|
|
4918
4954
|
const t = e.indexOf(":");
|
|
4919
4955
|
return t === -1 ? e : e.slice(0, t);
|
|
4920
4956
|
}
|
|
4921
|
-
const
|
|
4957
|
+
const cp = "/provider/scope/related", lp = "/provider/scope/read", up = "/provider/scope/acts", vn = "auth";
|
|
4922
4958
|
function kn(e) {
|
|
4923
4959
|
const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
|
|
4924
4960
|
return t ? t[1] : null;
|
|
4925
4961
|
}
|
|
4926
|
-
function
|
|
4962
|
+
function dp(e) {
|
|
4927
4963
|
const t = kn(e);
|
|
4928
4964
|
return t ? t !== vn : typeof e == "string" && e.startsWith("/wake");
|
|
4929
4965
|
}
|
|
4930
|
-
function
|
|
4966
|
+
function fp(e) {
|
|
4931
4967
|
return typeof e != "string" || e === "" || e === "/" ? !0 : kn(e) === vn;
|
|
4932
4968
|
}
|
|
4933
|
-
function
|
|
4969
|
+
function hs(e) {
|
|
4934
4970
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4935
4971
|
}
|
|
4936
|
-
function
|
|
4937
|
-
const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : `/${
|
|
4972
|
+
function gs(e) {
|
|
4973
|
+
const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : `/${hs(r)}`).join("");
|
|
4938
4974
|
return new RegExp(`^${n}\\/?$`);
|
|
4939
4975
|
}
|
|
4940
|
-
function
|
|
4976
|
+
function ys(e, t) {
|
|
4941
4977
|
const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean), o = {};
|
|
4942
4978
|
return n.forEach((i, s) => {
|
|
4943
4979
|
if (i.startsWith(":")) {
|
|
@@ -4946,14 +4982,14 @@ function hs(e, t) {
|
|
|
4946
4982
|
}
|
|
4947
4983
|
}), o;
|
|
4948
4984
|
}
|
|
4949
|
-
function
|
|
4985
|
+
function bs(e) {
|
|
4950
4986
|
return e.publicBasePath ?? `/apps/${e.name}`;
|
|
4951
4987
|
}
|
|
4952
|
-
function
|
|
4988
|
+
function pp(e) {
|
|
4953
4989
|
const t = [];
|
|
4954
4990
|
for (const n of e) {
|
|
4955
4991
|
if (!n?.name) continue;
|
|
4956
|
-
const r =
|
|
4992
|
+
const r = bs(n);
|
|
4957
4993
|
for (const o of n.routes ?? []) {
|
|
4958
4994
|
if (!o.public) continue;
|
|
4959
4995
|
const i = o.path === "/" ? "" : o.path;
|
|
@@ -4967,7 +5003,7 @@ function rp(e) {
|
|
|
4967
5003
|
}
|
|
4968
5004
|
return t;
|
|
4969
5005
|
}
|
|
4970
|
-
function
|
|
5006
|
+
function As(e, t) {
|
|
4971
5007
|
const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
|
|
4972
5008
|
for (let o = 0; o < Math.min(n.length, r.length); o++) {
|
|
4973
5009
|
const i = n[o].startsWith(":"), s = r[o].startsWith(":");
|
|
@@ -4975,35 +5011,35 @@ function ys(e, t) {
|
|
|
4975
5011
|
}
|
|
4976
5012
|
return n.length > r.length;
|
|
4977
5013
|
}
|
|
4978
|
-
function
|
|
5014
|
+
function _s(e, t) {
|
|
4979
5015
|
if (typeof e != "string") return null;
|
|
4980
5016
|
let n = null;
|
|
4981
5017
|
for (const r of t)
|
|
4982
|
-
|
|
4983
|
-
return n ? { ...n, params: { ...n.props, ...
|
|
5018
|
+
gs(r.pattern).test(e) && (!n || As(r.pattern, n.pattern)) && (n = r);
|
|
5019
|
+
return n ? { ...n, params: { ...n.props, ...ys(n.pattern, e) } } : null;
|
|
4984
5020
|
}
|
|
4985
|
-
function
|
|
4986
|
-
return
|
|
5021
|
+
function mp(e, t) {
|
|
5022
|
+
return _s(e, t) !== null;
|
|
4987
5023
|
}
|
|
4988
|
-
const
|
|
5024
|
+
const hp = 10 * 1024 * 1024, gp = 25 * 1024 * 1024, yp = "sync-target", bp = 20;
|
|
4989
5025
|
function wn(e, t) {
|
|
4990
5026
|
const n = Array.isArray(t) ? t.find((r) => r.name === e.name)?.policy : void 0;
|
|
4991
5027
|
return n ? n !== "read" : e.access ? e.access !== "read" : !0;
|
|
4992
5028
|
}
|
|
4993
|
-
function
|
|
5029
|
+
function Es(e, t, n) {
|
|
4994
5030
|
return wn(e, n) ? t.guarded === "all" || t.guarded?.has(e.name) ? !0 : t.autonomy === "auto" ? !1 : t.autonomy === "outward" ? En(e) : !0 : !1;
|
|
4995
5031
|
}
|
|
4996
|
-
function
|
|
5032
|
+
function Ss(e) {
|
|
4997
5033
|
return e.produces === "draft";
|
|
4998
5034
|
}
|
|
4999
|
-
function
|
|
5035
|
+
function Ap(e, t) {
|
|
5000
5036
|
if (t.allowed) {
|
|
5001
5037
|
const n = t.personalTools === "allow" && e.personal === !0;
|
|
5002
5038
|
if (!t.allowed.has(e.name) && !n) return "hidden";
|
|
5003
5039
|
}
|
|
5004
|
-
return t.narrow && !t.narrow.has(e.name) || !t.attended && (e.personal === !0 || e.surface === "interactive") || t.readOnly && e.access !== "read" || t.mode === "ask" && wn(e) || t.mode === "draft" && (En(e) || e.access !== "read" && !
|
|
5040
|
+
return t.narrow && !t.narrow.has(e.name) || !t.attended && (e.personal === !0 || e.surface === "interactive") || t.readOnly && e.access !== "read" || t.mode === "ask" && wn(e) || t.mode === "draft" && (En(e) || e.access !== "read" && !Ss(e)) ? "hidden" : t.gate && Es(e, t.gate, t.policy) ? "held" : "free";
|
|
5005
5041
|
}
|
|
5006
|
-
const
|
|
5042
|
+
const Ts = {
|
|
5007
5043
|
afrikaans: [
|
|
5008
5044
|
"[Muziek]",
|
|
5009
5045
|
"(C) TV GELDERLAND 2021",
|
|
@@ -5153,14 +5189,14 @@ const Es = {
|
|
|
5153
5189
|
"[MÚSICA]",
|
|
5154
5190
|
"[Music cuts in British]"
|
|
5155
5191
|
]
|
|
5156
|
-
},
|
|
5192
|
+
}, Is = (e) => {
|
|
5157
5193
|
let t = e;
|
|
5158
|
-
return Object.values(
|
|
5194
|
+
return Object.values(Ts).forEach((n) => {
|
|
5159
5195
|
n.forEach((r) => {
|
|
5160
5196
|
t = t.replaceAll(r, "");
|
|
5161
5197
|
});
|
|
5162
5198
|
}), t = t.replace(/\(.*?\)/g, ""), t = t.replace(/\[.*?\]/g, ""), t;
|
|
5163
|
-
},
|
|
5199
|
+
}, vs = 6e4, ks = 8e3, ws = 2, Ms = 0.4, Os = 3, Cs = /* @__PURE__ */ new Set([
|
|
5164
5200
|
"aan",
|
|
5165
5201
|
"als",
|
|
5166
5202
|
"ben",
|
|
@@ -5273,13 +5309,13 @@ const Es = {
|
|
|
5273
5309
|
"you",
|
|
5274
5310
|
"your"
|
|
5275
5311
|
]);
|
|
5276
|
-
function
|
|
5312
|
+
function Ns(e) {
|
|
5277
5313
|
const t = /* @__PURE__ */ new Set();
|
|
5278
5314
|
for (const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))
|
|
5279
|
-
n.length <
|
|
5315
|
+
n.length < Os || Cs.has(n) || t.add(n);
|
|
5280
5316
|
return [...t];
|
|
5281
5317
|
}
|
|
5282
|
-
function
|
|
5318
|
+
function xs(e, t) {
|
|
5283
5319
|
if (!e.length) return 0;
|
|
5284
5320
|
if (!t.length) return 1;
|
|
5285
5321
|
const n = new Set(t), r = new Set(e);
|
|
@@ -5287,32 +5323,32 @@ function Cs(e, t) {
|
|
|
5287
5323
|
for (const i of r) n.has(i) || (o += 1);
|
|
5288
5324
|
return o / r.size;
|
|
5289
5325
|
}
|
|
5290
|
-
function
|
|
5326
|
+
function $s(e, t = vs) {
|
|
5291
5327
|
const n = e.filter((s) => !s.partial && typeof s.text == "string");
|
|
5292
5328
|
if (!n.length) return { text: "", segmentCount: 0 };
|
|
5293
5329
|
const o = n.reduce((s, a) => Math.max(s, a.endedAt ?? 0), 0) - t;
|
|
5294
|
-
return { text: n.filter((s) => (s.endedAt ?? 0) >= o).map((s) =>
|
|
5330
|
+
return { text: n.filter((s) => (s.endedAt ?? 0) >= o).map((s) => Is(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
|
|
5295
5331
|
}
|
|
5296
|
-
const
|
|
5297
|
-
function
|
|
5332
|
+
const Ds = 60;
|
|
5333
|
+
function _p(e, t, n = Ds) {
|
|
5298
5334
|
const r = new Set(e), o = [...e];
|
|
5299
5335
|
for (const i of t)
|
|
5300
5336
|
!i || r.has(i) || (r.add(i), o.push(i));
|
|
5301
5337
|
return o.slice(-n);
|
|
5302
5338
|
}
|
|
5303
|
-
function
|
|
5339
|
+
function Ep(e) {
|
|
5304
5340
|
const { segments: t, now: n, state: r } = e;
|
|
5305
|
-
if (r.lastTriggerAt && n - r.lastTriggerAt <
|
|
5341
|
+
if (r.lastTriggerAt && n - r.lastTriggerAt < ks)
|
|
5306
5342
|
return { trigger: !1, reason: "too_soon" };
|
|
5307
|
-
const o =
|
|
5343
|
+
const o = $s(t, e.windowMs);
|
|
5308
5344
|
if (!o.text) return { trigger: !1, reason: "no_speech" };
|
|
5309
5345
|
const i = o.segmentCount - (r.lastSegmentCount ?? 0);
|
|
5310
|
-
if (r.lastQueryTerms && i <
|
|
5346
|
+
if (r.lastQueryTerms && i < ws)
|
|
5311
5347
|
return { trigger: !1, reason: "too_few_new" };
|
|
5312
|
-
const s =
|
|
5313
|
-
return s.length ? r.lastQueryTerms?.length &&
|
|
5348
|
+
const s = Ns(o.text);
|
|
5349
|
+
return s.length ? r.lastQueryTerms?.length && xs(s, r.lastQueryTerms) < Ms ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: o.text, terms: s, segmentCount: o.segmentCount } : { trigger: !1, reason: "no_speech" };
|
|
5314
5350
|
}
|
|
5315
|
-
const
|
|
5351
|
+
const Sp = [
|
|
5316
5352
|
"personal",
|
|
5317
5353
|
"organization",
|
|
5318
5354
|
"connections",
|
|
@@ -5320,7 +5356,7 @@ const fp = [
|
|
|
5320
5356
|
"work",
|
|
5321
5357
|
"administration",
|
|
5322
5358
|
"ai"
|
|
5323
|
-
],
|
|
5359
|
+
], Tp = "navNotice", Ye = {
|
|
5324
5360
|
// The lower bounds are deliberately generous: service ranges (0800/0900) are
|
|
5325
5361
|
// shorter than geographic numbers, and a too-strict minimum silently drops them.
|
|
5326
5362
|
// An over-permissive key is harmless — it simply matches nothing.
|
|
@@ -5343,38 +5379,38 @@ const fp = [
|
|
|
5343
5379
|
PL: { callingCode: "48", nsnMin: 9, nsnMax: 9 },
|
|
5344
5380
|
US: { callingCode: "1", nsnMin: 10, nsnMax: 10 },
|
|
5345
5381
|
CA: { callingCode: "1", nsnMin: 10, nsnMax: 10 }
|
|
5346
|
-
},
|
|
5347
|
-
new Set(Object.values(
|
|
5382
|
+
}, Rs = "NL", Ls = 15, Ps = 8, Ks = Array.from(
|
|
5383
|
+
new Set(Object.values(Ye).map((e) => e.callingCode))
|
|
5348
5384
|
).sort((e, t) => t.length - e.length);
|
|
5349
5385
|
function Dt(e) {
|
|
5350
5386
|
if (e)
|
|
5351
|
-
return
|
|
5387
|
+
return Ye[e.trim().toUpperCase()];
|
|
5352
5388
|
}
|
|
5353
5389
|
function te(e, t) {
|
|
5354
5390
|
return e.length >= t.nsnMin && e.length <= t.nsnMax;
|
|
5355
5391
|
}
|
|
5356
5392
|
function Rt(e) {
|
|
5357
|
-
if (e.length >
|
|
5358
|
-
for (const t of
|
|
5393
|
+
if (e.length > Ls) return null;
|
|
5394
|
+
for (const t of Ks) {
|
|
5359
5395
|
if (!e.startsWith(t)) continue;
|
|
5360
5396
|
const n = e.slice(t.length);
|
|
5361
|
-
for (const r of Object.values(
|
|
5397
|
+
for (const r of Object.values(Ye)) {
|
|
5362
5398
|
if (r.callingCode !== t) continue;
|
|
5363
5399
|
const o = r.trunkPrefix, i = o && n.startsWith(o) ? n.slice(o.length) : n;
|
|
5364
5400
|
if (te(i, r)) return `+${t}${i}`;
|
|
5365
5401
|
}
|
|
5366
5402
|
return null;
|
|
5367
5403
|
}
|
|
5368
|
-
return e.length <
|
|
5404
|
+
return e.length < Ps ? null : `+${e}`;
|
|
5369
5405
|
}
|
|
5370
|
-
function
|
|
5406
|
+
function Us(e) {
|
|
5371
5407
|
let t = e.trim();
|
|
5372
5408
|
const n = t.match(/^(sips?|tel|whatsapp):/i);
|
|
5373
5409
|
n && (t = t.slice(n[0].length));
|
|
5374
5410
|
const r = t.indexOf("@");
|
|
5375
5411
|
return r >= 0 && (t = t.slice(0, r)), t.trim();
|
|
5376
5412
|
}
|
|
5377
|
-
function
|
|
5413
|
+
function Ip(e) {
|
|
5378
5414
|
if (!e) return !1;
|
|
5379
5415
|
const t = e.indexOf("@");
|
|
5380
5416
|
if (t <= 0) return !1;
|
|
@@ -5383,13 +5419,13 @@ function mp(e) {
|
|
|
5383
5419
|
}
|
|
5384
5420
|
function Lt(e, t) {
|
|
5385
5421
|
if (!e) return null;
|
|
5386
|
-
const n =
|
|
5422
|
+
const n = Us(e);
|
|
5387
5423
|
if (!n) return null;
|
|
5388
5424
|
const r = n.startsWith("+"), o = n.replace(/\D/g, "");
|
|
5389
5425
|
if (!o) return null;
|
|
5390
5426
|
if (r) return Rt(o);
|
|
5391
5427
|
if (o.startsWith("00")) return Rt(o.slice(2));
|
|
5392
|
-
const i = Dt(t) ?? Dt(
|
|
5428
|
+
const i = Dt(t) ?? Dt(Rs);
|
|
5393
5429
|
if (!i) return null;
|
|
5394
5430
|
const s = i.trunkPrefix;
|
|
5395
5431
|
if (s && o.startsWith(s)) {
|
|
@@ -5402,7 +5438,7 @@ function Lt(e, t) {
|
|
|
5402
5438
|
}
|
|
5403
5439
|
return !s && te(o, i) ? `+${i.callingCode}${o}` : null;
|
|
5404
5440
|
}
|
|
5405
|
-
function
|
|
5441
|
+
function vp(e, t = 9) {
|
|
5406
5442
|
const n = (e ?? "").replace(/\D/g, "");
|
|
5407
5443
|
return n.length < t ? null : n.slice(-t);
|
|
5408
5444
|
}
|
|
@@ -5413,11 +5449,11 @@ function Mn(e) {
|
|
|
5413
5449
|
const r = t.slice(0, n).split("+")[0], o = t.slice(n + 1);
|
|
5414
5450
|
return !r || !o.includes(".") ? null : `${r}@${o}`;
|
|
5415
5451
|
}
|
|
5416
|
-
function
|
|
5452
|
+
function kp(e) {
|
|
5417
5453
|
const t = Mn(e);
|
|
5418
5454
|
return t ? t.slice(t.lastIndexOf("@") + 1) : null;
|
|
5419
5455
|
}
|
|
5420
|
-
const
|
|
5456
|
+
const Fs = /* @__PURE__ */ new Set([
|
|
5421
5457
|
"co.uk",
|
|
5422
5458
|
"org.uk",
|
|
5423
5459
|
"gov.uk",
|
|
@@ -5427,14 +5463,14 @@ const Ks = /* @__PURE__ */ new Set([
|
|
|
5427
5463
|
"com.br",
|
|
5428
5464
|
"co.za"
|
|
5429
5465
|
]);
|
|
5430
|
-
function
|
|
5466
|
+
function js(e) {
|
|
5431
5467
|
if (!e) return null;
|
|
5432
5468
|
const t = e.trim().toLowerCase().replace(/\.$/, "").split(".").filter(Boolean);
|
|
5433
5469
|
if (t.length < 2) return null;
|
|
5434
5470
|
const n = t.slice(-2).join(".");
|
|
5435
|
-
return
|
|
5471
|
+
return Fs.has(n) && t.length >= 3 ? t.slice(-3).join(".") : n;
|
|
5436
5472
|
}
|
|
5437
|
-
const
|
|
5473
|
+
const Bs = /* @__PURE__ */ new Set([
|
|
5438
5474
|
"gmail.com",
|
|
5439
5475
|
"googlemail.com",
|
|
5440
5476
|
"outlook.com",
|
|
@@ -5479,16 +5515,16 @@ const Fs = /* @__PURE__ */ new Set([
|
|
|
5479
5515
|
"proximus.be",
|
|
5480
5516
|
"scarlet.be"
|
|
5481
5517
|
]);
|
|
5482
|
-
function
|
|
5483
|
-
const t =
|
|
5484
|
-
return t ?
|
|
5518
|
+
function wp(e) {
|
|
5519
|
+
const t = js(e);
|
|
5520
|
+
return t ? Bs.has(t) : !1;
|
|
5485
5521
|
}
|
|
5486
|
-
function
|
|
5522
|
+
function Mp(e) {
|
|
5487
5523
|
if (!e) return !1;
|
|
5488
5524
|
const t = e.trim().toLowerCase();
|
|
5489
5525
|
return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
|
|
5490
5526
|
}
|
|
5491
|
-
function
|
|
5527
|
+
function Op(e, t, n) {
|
|
5492
5528
|
if (!e || !t) return null;
|
|
5493
5529
|
const r = e.trim().toLowerCase();
|
|
5494
5530
|
if (r === "tel" || r === "sms" || r === "whatsapp") {
|
|
@@ -5506,7 +5542,7 @@ function Ap(e, t, n) {
|
|
|
5506
5542
|
const o = t.trim().toLowerCase();
|
|
5507
5543
|
return o ? `${r}:${o}` : null;
|
|
5508
5544
|
}
|
|
5509
|
-
const
|
|
5545
|
+
const Hs = [
|
|
5510
5546
|
/<blockquote/i,
|
|
5511
5547
|
/class="?gmail_quote/i,
|
|
5512
5548
|
// Gmail quote container
|
|
@@ -5519,24 +5555,24 @@ const js = [
|
|
|
5519
5555
|
// Outlook underscore separator before "From:"
|
|
5520
5556
|
/\bOn\b[\s\S]{0,200}?\bwrote:/i
|
|
5521
5557
|
// Gmail "On <date> <name> wrote:"
|
|
5522
|
-
], Pt = /^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i,
|
|
5523
|
-
function
|
|
5558
|
+
], Pt = /^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i, Gs = /^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;
|
|
5559
|
+
function Ws(e) {
|
|
5524
5560
|
const t = e.split(`
|
|
5525
5561
|
`);
|
|
5526
5562
|
for (let n = 0; n < t.length; n++)
|
|
5527
|
-
if (
|
|
5563
|
+
if (Gs.test(t[n]) || Pt.test(t[n]) && t.slice(n + 1, n + 4).some((r) => Pt.test(r)))
|
|
5528
5564
|
return t.slice(0, n).join(`
|
|
5529
5565
|
`).trim();
|
|
5530
5566
|
return e;
|
|
5531
5567
|
}
|
|
5532
|
-
const
|
|
5568
|
+
const Vs = /^(?:https?:|mailto:|tel:)/i, zs = /^(?:https?:|cid:|data:image\/)/i;
|
|
5533
5569
|
function be(e, t) {
|
|
5534
5570
|
const n = e.match(new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s">]+))`, "i"));
|
|
5535
5571
|
return (n?.[1] ?? n?.[2] ?? n?.[3] ?? "").trim();
|
|
5536
5572
|
}
|
|
5537
|
-
const
|
|
5573
|
+
const Ys = /(!\[[^\]]*\]\([^)]*\))/;
|
|
5538
5574
|
function Kt(e) {
|
|
5539
|
-
return e.replace(/\s+/g, " ").trim().split(
|
|
5575
|
+
return e.replace(/\s+/g, " ").trim().split(Ys).map((t, n) => n % 2 === 1 ? t : t.replace(/[[\]]/g, "\\$&")).join("");
|
|
5540
5576
|
}
|
|
5541
5577
|
function Ae(e) {
|
|
5542
5578
|
return e.replace(
|
|
@@ -5544,47 +5580,47 @@ function Ae(e) {
|
|
|
5544
5580
|
(t) => `%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0")}`
|
|
5545
5581
|
);
|
|
5546
5582
|
}
|
|
5547
|
-
function
|
|
5583
|
+
function Xs(e) {
|
|
5548
5584
|
return e.replace(/<img\b([^>]*?)\/?>/gi, (n, r) => {
|
|
5549
5585
|
const o = be(r, "src");
|
|
5550
|
-
return
|
|
5586
|
+
return zs.test(o) ? `})` : "";
|
|
5551
5587
|
}).replace(
|
|
5552
5588
|
/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/gi,
|
|
5553
5589
|
(n, r, o) => {
|
|
5554
5590
|
const i = Kt(o.replace(/<[^>]*>/g, "")), s = be(r, "href");
|
|
5555
|
-
return
|
|
5591
|
+
return Vs.test(s) ? `[${i || Ae(s)}](${Ae(s)})` : i;
|
|
5556
5592
|
}
|
|
5557
5593
|
);
|
|
5558
5594
|
}
|
|
5559
|
-
const
|
|
5560
|
-
function
|
|
5595
|
+
const qs = /<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i, Qs = /<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi, Js = /<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;
|
|
5596
|
+
function Zs(e, t) {
|
|
5561
5597
|
return /<table\b/i.test(e) || e.includes(`
|
|
5562
5598
|
|
|
5563
5599
|
|`) || t.includes("![") || t.length > 200;
|
|
5564
5600
|
}
|
|
5565
|
-
const
|
|
5566
|
-
function
|
|
5601
|
+
const ea = 40, ta = { left: "---", center: ":---:", right: "---:" };
|
|
5602
|
+
function na(e) {
|
|
5567
5603
|
const t = e.match(/align\s*[=:]\s*["']?\s*(right|center)/i);
|
|
5568
5604
|
return t ? t[1].toLowerCase() : "left";
|
|
5569
5605
|
}
|
|
5570
|
-
function
|
|
5606
|
+
function ra(e) {
|
|
5571
5607
|
return e.replace(/<[^>]*>/g, "").replace(/\s+/g, " ").trim().replace(/\|/g, "\\|");
|
|
5572
5608
|
}
|
|
5573
|
-
function
|
|
5609
|
+
function oa(e) {
|
|
5574
5610
|
const t = [];
|
|
5575
|
-
for (const s of e.matchAll(
|
|
5611
|
+
for (const s of e.matchAll(Qs)) {
|
|
5576
5612
|
const a = [];
|
|
5577
|
-
for (const l of s[1].matchAll(
|
|
5578
|
-
const c =
|
|
5579
|
-
if (
|
|
5580
|
-
a.push({ text: c, align:
|
|
5613
|
+
for (const l of s[1].matchAll(Js)) {
|
|
5614
|
+
const c = ra(l[3]);
|
|
5615
|
+
if (Zs(l[3], c)) return null;
|
|
5616
|
+
a.push({ text: c, align: na(l[2]) });
|
|
5581
5617
|
}
|
|
5582
5618
|
if (a.length === 0) return null;
|
|
5583
5619
|
a.some((l) => l.text !== "") && t.push(a);
|
|
5584
5620
|
}
|
|
5585
5621
|
const n = t[0]?.length ?? 0;
|
|
5586
5622
|
if (t.length < 2 || n < 2 || t.some((s) => s.length !== n)) return null;
|
|
5587
|
-
const r = (s) => `| ${s.map((a) => a.text).join(" | ")} |`, o = t[1].map((s) =>
|
|
5623
|
+
const r = (s) => `| ${s.map((a) => a.text).join(" | ")} |`, o = t[1].map((s) => ta[s.align]).join(" | "), i = t.slice(1).map(r).join(`
|
|
5588
5624
|
`);
|
|
5589
5625
|
return `
|
|
5590
5626
|
|
|
@@ -5594,18 +5630,18 @@ ${i}
|
|
|
5594
5630
|
|
|
5595
5631
|
`;
|
|
5596
5632
|
}
|
|
5597
|
-
function
|
|
5633
|
+
function ia(e) {
|
|
5598
5634
|
return e.replace(/<\/(t[dh])\s*>/gi, " ").replace(/<\/tr\s*>/gi, `
|
|
5599
5635
|
`).replace(/<(?:tbody|thead|tfoot|caption|colgroup|col|tr|t[dh])\b[^>]*>/gi, "").replace(/<\/(?:tbody|thead|tfoot|caption|colgroup)\s*>/gi, "");
|
|
5600
5636
|
}
|
|
5601
|
-
function
|
|
5637
|
+
function sa(e) {
|
|
5602
5638
|
let t = e;
|
|
5603
|
-
for (let n = 0; n <
|
|
5604
|
-
const r =
|
|
5639
|
+
for (let n = 0; n < ea; n++) {
|
|
5640
|
+
const r = qs.exec(t);
|
|
5605
5641
|
if (!r || r.index === void 0) break;
|
|
5606
|
-
const i =
|
|
5642
|
+
const i = oa(r[1]) ?? `
|
|
5607
5643
|
|
|
5608
|
-
${
|
|
5644
|
+
${ia(r[1])}
|
|
5609
5645
|
|
|
5610
5646
|
`;
|
|
5611
5647
|
t = t.slice(0, r.index) + i + t.slice(r.index + r[0].length);
|
|
@@ -5615,7 +5651,7 @@ ${ra(r[1])}
|
|
|
5615
5651
|
function Ut(e, t) {
|
|
5616
5652
|
let n = e;
|
|
5617
5653
|
return n = n.replace(/<(script|style)[\s\S]*?<\/\1>/gi, ""), n = n.replace(/<!--[\s\S]*?-->/g, ""), n = n.replace(/<br\s*\/?>/gi, `
|
|
5618
|
-
`), t && (n =
|
|
5654
|
+
`), t && (n = sa(Xs(n))), n = n.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi, `
|
|
5619
5655
|
|
|
5620
5656
|
`), n = n.replace(/<\/(div|li|tr)>/gi, `
|
|
5621
5657
|
`), n = n.replace(/<\/(td|th)>/gi, " "), n = n.replace(/<[^>]+>/g, ""), n = n.replace(/<[^>]*$/, ""), n;
|
|
@@ -5623,7 +5659,7 @@ function Ut(e, t) {
|
|
|
5623
5659
|
function Ft(e) {
|
|
5624
5660
|
return !Number.isInteger(e) || e < 0 || e > 1114111 ? null : String.fromCodePoint(e);
|
|
5625
5661
|
}
|
|
5626
|
-
const
|
|
5662
|
+
const aa = {
|
|
5627
5663
|
euro: "€",
|
|
5628
5664
|
pound: "£",
|
|
5629
5665
|
yen: "¥",
|
|
@@ -5646,7 +5682,7 @@ const ia = {
|
|
|
5646
5682
|
apos: "'"
|
|
5647
5683
|
};
|
|
5648
5684
|
function jt(e) {
|
|
5649
|
-
return e.replace(/ /gi, " ").replace(/&([a-z]+);/gi, (t, n) =>
|
|
5685
|
+
return e.replace(/ /gi, " ").replace(/&([a-z]+);/gi, (t, n) => aa[n.toLowerCase()] ?? t).replace(/</gi, "<").replace(/>/gi, ">").replace(/"/gi, '"').replace(/&#(\d+);/g, (t, n) => Ft(Number(n)) ?? t).replace(/&#x([0-9a-f]+);/gi, (t, n) => Ft(parseInt(n, 16)) ?? t).replace(/&/gi, "&");
|
|
5650
5686
|
}
|
|
5651
5687
|
function Bt(e) {
|
|
5652
5688
|
return e.replace(/\r/g, "").replace(/[ \t]+/g, " ").replace(/ *\n */g, `
|
|
@@ -5654,41 +5690,41 @@ function Bt(e) {
|
|
|
5654
5690
|
|
|
5655
5691
|
`).trim();
|
|
5656
5692
|
}
|
|
5657
|
-
const
|
|
5658
|
-
function
|
|
5659
|
-
return
|
|
5693
|
+
const ca = /<\s*(html|body|div|p|table|br|span)\b/i;
|
|
5694
|
+
function Cp(e) {
|
|
5695
|
+
return ca.test(e);
|
|
5660
5696
|
}
|
|
5661
|
-
function
|
|
5697
|
+
function Np(e) {
|
|
5662
5698
|
return On(e, !1);
|
|
5663
5699
|
}
|
|
5664
|
-
function
|
|
5700
|
+
function xp(e) {
|
|
5665
5701
|
return On(e, !0);
|
|
5666
5702
|
}
|
|
5667
5703
|
function On(e, t) {
|
|
5668
5704
|
if (typeof e != "string" || !e) return "";
|
|
5669
5705
|
let n = e.length;
|
|
5670
|
-
for (const s of
|
|
5706
|
+
for (const s of Hs) {
|
|
5671
5707
|
const a = e.search(s);
|
|
5672
5708
|
a >= 0 && a < n && (n = a);
|
|
5673
5709
|
}
|
|
5674
5710
|
const r = e.slice(0, n);
|
|
5675
5711
|
let o = Bt(jt(Ut(r, t)));
|
|
5676
|
-
return o || (o = Bt(jt(Ut(e, t)))),
|
|
5712
|
+
return o || (o = Bt(jt(Ut(e, t)))), Ws(o) || o;
|
|
5677
5713
|
}
|
|
5678
5714
|
export {
|
|
5679
|
-
|
|
5715
|
+
dc as ACTIVE_ASSIGNMENT_STATUSES,
|
|
5680
5716
|
D as ACTIVITY_CATALOG,
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5717
|
+
ts as AI_ATTACHMENT_LIMITS,
|
|
5718
|
+
ff as AI_ATTACHMENT_MAX_PER_TURN,
|
|
5719
|
+
df as AI_ATTACHMENT_TURN_BUDGET,
|
|
5684
5720
|
Ue as AI_CAPABILITIES,
|
|
5685
|
-
|
|
5721
|
+
mf as AI_TOOL_PROVIDER_GROUP,
|
|
5686
5722
|
Wt as AI_VENDORS,
|
|
5687
5723
|
Zn as ALLOWED_LINK_SCHEMES,
|
|
5688
|
-
|
|
5689
|
-
|
|
5724
|
+
Jf as APP_PERMISSIONS,
|
|
5725
|
+
ol as ARTICLE_SCOPE_KIND,
|
|
5690
5726
|
at as ARTIFACT_MAX_BLOCKS,
|
|
5691
|
-
|
|
5727
|
+
oc as ARTIFACT_MAX_BODY_BYTES,
|
|
5692
5728
|
Z as ARTIFACT_MAX_CELL_LEN,
|
|
5693
5729
|
dt as ARTIFACT_MAX_KPI_ITEMS,
|
|
5694
5730
|
ct as ARTIFACT_MAX_LIST_ITEMS,
|
|
@@ -5696,41 +5732,41 @@ export {
|
|
|
5696
5732
|
lt as ARTIFACT_MAX_TABLE_ROWS,
|
|
5697
5733
|
zt as ARTIFACT_MAX_TEXT_LEN,
|
|
5698
5734
|
lr as ASSIGNMENT_SCOPE_KIND,
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5735
|
+
bf as ASSIST_BANDS,
|
|
5736
|
+
yf as ASSIST_SOURCE_PROVIDER_GROUP,
|
|
5737
|
+
Ur as ATTENTION_STATUSES,
|
|
5738
|
+
Ai as AT_RISK_GAP,
|
|
5703
5739
|
vn as AUTH_APP_NAME,
|
|
5704
|
-
|
|
5705
|
-
|
|
5740
|
+
jo as AUTO_READY_MIN_PROPOSALS,
|
|
5741
|
+
Bo as AUTO_READY_RATE,
|
|
5706
5742
|
Fn as ActivityTypeRegistry,
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5743
|
+
ka as BUILT_IN_ONLY,
|
|
5744
|
+
Fr as BULK_PENALTY,
|
|
5745
|
+
Ac as BUSINESS_ENTITY_LIST_SERVICE,
|
|
5746
|
+
ks as CADENCE_FLOOR_MS,
|
|
5747
|
+
ws as CADENCE_MIN_NEW_SEGMENTS,
|
|
5748
|
+
Ms as CADENCE_MIN_NOVELTY,
|
|
5749
|
+
vs as CADENCE_WINDOW_MS,
|
|
5750
|
+
eu as CLASSIFY_VARS,
|
|
5751
|
+
fd as CLEARABLE_FIELDS,
|
|
5752
|
+
Kf as CONNECTOR_PROVIDER_GROUP,
|
|
5753
|
+
Uf as CONTEXT_COLLECT_SERVICE,
|
|
5754
|
+
za as CORE_DIMENSIONS,
|
|
5755
|
+
as as CommunicationScheme,
|
|
5756
|
+
Cr as DAY_MS,
|
|
5757
|
+
gi as DEFAULT_CHECK_IN_DAYS,
|
|
5758
|
+
bo as DEFAULT_FORECAST_WEEKS,
|
|
5759
|
+
yl as DEFAULT_MEMORY_BUDGET,
|
|
5760
|
+
Id as DEFAULT_NUMBER_PADDING,
|
|
5761
|
+
Rs as DEFAULT_PHONE_REGION,
|
|
5762
|
+
bd as DEFAULT_QUOTE_TEMPLATE_BLOCKS,
|
|
5763
|
+
yd as DEFAULT_TEMPLATE_CONDITIONS,
|
|
5764
|
+
Ml as DEMAND_SOURCE_PROVIDER_GROUP,
|
|
5765
|
+
Vf as DOCUMENT_APPLY_SERVICE,
|
|
5766
|
+
Gf as DOCUMENT_DESCRIBE_SERVICE,
|
|
5767
|
+
Wf as DOCUMENT_INSPECT_SERVICE,
|
|
5732
5768
|
at as DOCUMENT_MAX_BLOCKS,
|
|
5733
|
-
|
|
5769
|
+
oc as DOCUMENT_MAX_BODY_BYTES,
|
|
5734
5770
|
Z as DOCUMENT_MAX_CELL_LEN,
|
|
5735
5771
|
dt as DOCUMENT_MAX_KPI_ITEMS,
|
|
5736
5772
|
ft as DOCUMENT_MAX_LETTERHEAD_FIELDS,
|
|
@@ -5741,517 +5777,527 @@ export {
|
|
|
5741
5777
|
zt as DOCUMENT_MAX_TEXT_LEN,
|
|
5742
5778
|
pt as DOCUMENT_MAX_TOTALS_ROWS,
|
|
5743
5779
|
Sn as DOCUMENT_OPERATIONS,
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5780
|
+
dd as DRAFT_FIELDS,
|
|
5781
|
+
Ni as DUTCH_SLOT_LABELS,
|
|
5782
|
+
ru as EMPTY_WORKFLOW,
|
|
5747
5783
|
bn as ENABLED_TRANSACTION_KINDS,
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5784
|
+
Df as FEATURE_FOLDER_MANAGEMENT,
|
|
5785
|
+
Lf as FEATURE_MESSAGE_REACTIONS,
|
|
5786
|
+
Rf as FEATURE_REMOTE_SEARCH,
|
|
5751
5787
|
Be as FIXED_KINDS,
|
|
5752
5788
|
ie as FIXED_LEVELS,
|
|
5753
5789
|
Ve as FIXED_TYPES,
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5790
|
+
wc as FIXED_UNITS,
|
|
5791
|
+
jr as FOLLOW_UP_HOURS,
|
|
5792
|
+
ud as FROZEN_WRITABLE_FIELDS,
|
|
5793
|
+
Or as HOUR_MS,
|
|
5794
|
+
ca as HTML_BODY_RE,
|
|
5759
5795
|
P as INELIGIBLE,
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5796
|
+
Yf as INSTALLATION_HEADER,
|
|
5797
|
+
Lo as INTERACTION_KIND,
|
|
5798
|
+
xf as InteractionParticipantRole,
|
|
5799
|
+
Xr as KB_FALLBACK_LOCALE,
|
|
5764
5800
|
gt as KB_LOCALES,
|
|
5801
|
+
xc as LEAD_STATUSES,
|
|
5802
|
+
Nc as LIFECYCLE_STAGES,
|
|
5765
5803
|
gt as LOCALES,
|
|
5766
5804
|
ze as LOOSE_STATUSES,
|
|
5767
|
-
|
|
5805
|
+
Rr as MAIL_HINT_HEADERS,
|
|
5768
5806
|
Ar as MANUAL_PRICE_SOURCE,
|
|
5769
|
-
|
|
5807
|
+
fa as MAX_ACTIONS,
|
|
5770
5808
|
ur as MAX_ASSIGNMENT_TURNS,
|
|
5771
|
-
|
|
5809
|
+
la as MAX_BLOCKS,
|
|
5772
5810
|
rt as MAX_CHOICE_OPTIONS,
|
|
5773
5811
|
tn as MAX_COLLECTION_DEPTH,
|
|
5774
5812
|
dr as MAX_DELEGATION_DEPTH,
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5813
|
+
hp as MAX_EDITABLE_FILE_BYTES,
|
|
5814
|
+
ua as MAX_FIELDS,
|
|
5815
|
+
da as MAX_LIST_ITEMS,
|
|
5816
|
+
pl as MAX_MEMORY_BROWSE,
|
|
5817
|
+
gl as MAX_MEMORY_BUDGET,
|
|
5818
|
+
ml as MAX_MEMORY_CHARS,
|
|
5781
5819
|
Tt as MAX_RULE_DEPTH,
|
|
5782
5820
|
it as MAX_SCORE_LEVELS,
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5821
|
+
Ds as MAX_SHOWN_KEYS,
|
|
5822
|
+
Ii as MAX_TOPIC_CANDIDATES,
|
|
5823
|
+
Ti as MAX_TOPIC_EXAMPLES,
|
|
5786
5824
|
ye as MAX_TOPIC_EXAMPLE_CHARS,
|
|
5787
|
-
|
|
5788
|
-
|
|
5825
|
+
gp as MAX_VIEWABLE_FILE_BYTES,
|
|
5826
|
+
hl as MIN_MEMORY_BUDGET,
|
|
5789
5827
|
ot as MIN_SCORE_LEVELS,
|
|
5790
5828
|
H as MODEL_TIERS,
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5829
|
+
Tp as NAV_NOTICE_SLOT,
|
|
5830
|
+
Cd as NL_PAYMENT_TERMS,
|
|
5831
|
+
Al as NL_TAX_RATES,
|
|
5832
|
+
qf as NOTIFICATION_SOURCE_PROVIDER_GROUP,
|
|
5833
|
+
_i as OFF_TRACK_GAP,
|
|
5834
|
+
El as ONBOARDING_SOURCE_PROVIDER_GROUP,
|
|
5797
5835
|
Re as PAUSE_HOLD,
|
|
5798
5836
|
$e as PAUSE_SNOOZED,
|
|
5799
5837
|
De as PAUSE_WAITING_FOR_CUSTOMER,
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5838
|
+
wd as PAYMENT_TERM_METHODS,
|
|
5839
|
+
Ye as PHONE_REGIONS,
|
|
5840
|
+
jl as PLAYBOOK_RUN_APPROVAL_ACT,
|
|
5841
|
+
No as PLAYBOOK_RUN_SCOPE_KIND,
|
|
5804
5842
|
Tn as PRESENCE_ONLINE_WINDOW_MS,
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5843
|
+
ms as PRESENCE_SURVIVES_OFFLINE,
|
|
5844
|
+
Ki as PRODUCT_SCOPE_KIND,
|
|
5845
|
+
Tl as PROFILE_TOOL_DISPOSITIONS,
|
|
5846
|
+
Nf as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
|
|
5847
|
+
Cf as PROVIDER_FEATURE_MESSAGE_WINDOW,
|
|
5848
|
+
Bs as PUBLIC_EMAIL_DOMAINS,
|
|
5811
5849
|
yt as READ_STEP_TYPES,
|
|
5812
|
-
|
|
5850
|
+
Jr as RELATED_SUBJECT_KINDS,
|
|
5813
5851
|
_n as RESERVED_STATUS_KEYS,
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5852
|
+
Pd as RESERVED_TYPE_KEYS,
|
|
5853
|
+
sp as RESOURCE_ATTACHED_SERVICE,
|
|
5854
|
+
rp as RESOURCE_DESCRIBE_SERVICE,
|
|
5855
|
+
ip as RESOURCE_RESOLVE_SERVICE,
|
|
5856
|
+
op as RESOURCE_SEARCH_SERVICE,
|
|
5857
|
+
Io as SCHEDULE_ENTRY_SCOPE_KIND,
|
|
5858
|
+
ti as SCHEDULE_EVENT,
|
|
5859
|
+
up as SCOPE_ACTS_ROUTE,
|
|
5860
|
+
lp as SCOPE_READ_ROUTE,
|
|
5861
|
+
cp as SCOPE_RELATED_ROUTE,
|
|
5862
|
+
Dc as SEGMENT_FILTER_KEYS,
|
|
5863
|
+
Lc as SEGMENT_LAYOUTS,
|
|
5864
|
+
Er as SEGMENT_LIST_FILTERS,
|
|
5865
|
+
Sr as SEGMENT_PRESENCE_FILTERS,
|
|
5866
|
+
Rc as SEGMENT_SORT_FIELDS,
|
|
5867
|
+
Sp as SETTINGS_CATEGORIES,
|
|
5868
|
+
Mc as SIGNATURE_INTENTS,
|
|
5869
|
+
Mu as SLA_METRICS,
|
|
5870
|
+
Ou as SLA_PAUSE_REASONS,
|
|
5871
|
+
cd as STATUS_NAMES,
|
|
5872
|
+
Uo as STEP_MAX_TOKENS_MAX,
|
|
5873
|
+
Ko as STEP_MAX_TOKENS_MIN,
|
|
5874
|
+
nu as STEP_TYPES,
|
|
5875
|
+
mi as STRATEGY_ITEM_SCOPE_KIND,
|
|
5876
|
+
Dr as SUMMARY_MIN_LAST_CHARS,
|
|
5877
|
+
$r as SUMMARY_MIN_MESSAGES,
|
|
5878
|
+
bp as SYNC_RUN_MAX_ERRORS,
|
|
5879
|
+
yp as SYNC_TARGET_PROVIDER_GROUP,
|
|
5880
|
+
Pa as SYSTEM_ONE_NON_GOALS,
|
|
5838
5881
|
cr as TERMINAL_ASSIGNMENT_STATUSES,
|
|
5839
|
-
|
|
5882
|
+
Ho as TERMINAL_RUN_STATUSES,
|
|
5840
5883
|
We as TRANSACTION_KINDS,
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5884
|
+
Pi as TRANSACTION_SCOPE_KINDS,
|
|
5885
|
+
Jl as TRIGGER_VARS,
|
|
5886
|
+
hu as UNARY_OPS,
|
|
5887
|
+
to as UNKNOWN_KIND,
|
|
5888
|
+
hi as UNKNOWN_LEVEL_ORDER,
|
|
5889
|
+
Pf as UNSUPPORTED,
|
|
5890
|
+
Yn as USAGE_DIMENSIONS,
|
|
5891
|
+
Xn as USAGE_DIMENSION_IDS,
|
|
5849
5892
|
un as UnresolvedRefError,
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5893
|
+
Fi as WEBHOOK_EVENTS,
|
|
5894
|
+
vo as WORKSTREAM_SCOPE_KIND,
|
|
5895
|
+
Gi as WORK_ACTIVITY_SCOPE_KIND,
|
|
5896
|
+
Sl as WORK_AREAS,
|
|
5897
|
+
$d as WORK_COMMENT_ADDED,
|
|
5898
|
+
Bd as WORK_CYCLE_SYNC_KIND,
|
|
5899
|
+
Dd as WORK_ITEM_ASSIGNED,
|
|
5900
|
+
Bi as WORK_ITEM_SCOPE_KIND,
|
|
5901
|
+
Rd as WORK_ITEM_STATUS_CHANGED,
|
|
5902
|
+
Hi as WORK_PROJECT_SCOPE_KIND,
|
|
5903
|
+
af as WORK_SORT_FIELDS,
|
|
5904
|
+
sf as WORK_VIEW_FLAGS,
|
|
5905
|
+
cf as WORK_VIEW_LAYOUTS,
|
|
5906
|
+
of as WORK_VIEW_LIST_FILTERS,
|
|
5864
5907
|
ne as W_PRIORITY,
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5908
|
+
id as acceptExampleCandidate,
|
|
5909
|
+
Oo as actingIdentityKey,
|
|
5910
|
+
rd as activeWorkTypes,
|
|
5911
|
+
ma as activityIconOf,
|
|
5912
|
+
Ia as activityJoinUrl,
|
|
5870
5913
|
Ln as activitySnippet,
|
|
5871
5914
|
Pn as activityTextParams,
|
|
5872
|
-
|
|
5915
|
+
Ta as activityTimelineText,
|
|
5873
5916
|
jn as activityTimestamp,
|
|
5874
5917
|
v as activityTypeInfo,
|
|
5875
|
-
|
|
5876
|
-
|
|
5918
|
+
Fl as actorKey,
|
|
5919
|
+
od as addExampleCandidate,
|
|
5877
5920
|
He as addWorkingMs,
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5921
|
+
ep as agePresenceEntry,
|
|
5922
|
+
es as aiAttachmentKind,
|
|
5923
|
+
pf as aiAttachmentRejection,
|
|
5881
5924
|
st as aiBudgetLimit,
|
|
5882
|
-
|
|
5925
|
+
Ga as aiBudgetPeriodKey,
|
|
5883
5926
|
Gn as aiBudgetPeriodStart,
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5927
|
+
Ha as aiBudgetState,
|
|
5928
|
+
Ba as aiVendorAcceptsAttachment,
|
|
5929
|
+
Ua as aiVendorDefaultModel,
|
|
5930
|
+
Ka as aiVendorLabel,
|
|
5931
|
+
ja as aiVendorNeedsBaseUrl,
|
|
5932
|
+
Fa as aiVendorsWith,
|
|
5890
5933
|
mr as allocate,
|
|
5891
5934
|
kn as appNameFromPath,
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5935
|
+
rc as applyApprovalDecision,
|
|
5936
|
+
Ju as applyRounding,
|
|
5937
|
+
Oc as applySignature,
|
|
5938
|
+
Fo as approvalRate,
|
|
5939
|
+
sc as artifactBodyBytes,
|
|
5940
|
+
ac as artifactOutline,
|
|
5898
5941
|
ar as artifactToMarkdown,
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5942
|
+
Vl as assignmentMismatch,
|
|
5943
|
+
pc as assignmentScopeKey,
|
|
5944
|
+
gc as assignmentSubject,
|
|
5945
|
+
wl as availabilityByPerson,
|
|
5946
|
+
Il as belongsOnCalendar,
|
|
5947
|
+
_c as belongsToEntity,
|
|
5948
|
+
qu as billableTimeGroups,
|
|
5949
|
+
mu as bindParams,
|
|
5906
5950
|
Me as bindValue,
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5951
|
+
va as buildActivityPreview,
|
|
5952
|
+
vf as buildChannelIntents,
|
|
5953
|
+
cc as buildShareKeys,
|
|
5954
|
+
$s as buildWindow,
|
|
5955
|
+
wr as businessEntitySender,
|
|
5956
|
+
ro as calendarDaysBetween,
|
|
5913
5957
|
Ge as calendarOf,
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5958
|
+
pd as canConvert,
|
|
5959
|
+
al as canNestUnder,
|
|
5960
|
+
Ku as canParent,
|
|
5961
|
+
ld as canTransition,
|
|
5962
|
+
Ca as capabilityDefaultFlag,
|
|
5963
|
+
vl as capacityTotal,
|
|
5964
|
+
Ll as capacityWeights,
|
|
5965
|
+
Aa as carriesText,
|
|
5966
|
+
ll as categoryLabel,
|
|
5967
|
+
zi as categoryOf,
|
|
5968
|
+
Au as causedBy,
|
|
5969
|
+
Of as channelKindForScheme,
|
|
5970
|
+
ha as channelKindOf,
|
|
5971
|
+
Yu as checkInOverdueMs,
|
|
5972
|
+
tu as clampStepMaxTokens,
|
|
5973
|
+
Yc as classifyMail,
|
|
5974
|
+
xp as cleanMessageMarkdown,
|
|
5975
|
+
Np as cleanMessageText,
|
|
5976
|
+
Tc as codeQuery,
|
|
5977
|
+
_f as compareAssistRank,
|
|
5978
|
+
Si as compareWorkTypes,
|
|
5979
|
+
kr as conditionHolds,
|
|
5980
|
+
$c as contactName,
|
|
5981
|
+
Ci as copyFrom,
|
|
5982
|
+
Y as countsAsPlanned,
|
|
5983
|
+
kl as coverageByPerson,
|
|
5984
|
+
Cl as coverageFor,
|
|
5940
5985
|
rn as coversWorkstream,
|
|
5941
|
-
|
|
5942
|
-
|
|
5986
|
+
ei as cronMatches,
|
|
5987
|
+
kd as currentPeriod,
|
|
5943
5988
|
on as cycleDayIndex,
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5989
|
+
nf as cycleOrder,
|
|
5990
|
+
rf as cycleState,
|
|
5991
|
+
yc as decideAssignmentState,
|
|
5992
|
+
Ep as decideCadence,
|
|
5993
|
+
Za as decideEach,
|
|
5994
|
+
Tf as decideIncomingCall,
|
|
5995
|
+
La as decisionBand,
|
|
5996
|
+
qr as defaultLocaleOf,
|
|
5997
|
+
qd as defaultStatusKey,
|
|
5998
|
+
Ri as defaultTemplateBlocks,
|
|
5999
|
+
$f as defineIntent,
|
|
6000
|
+
bc as delegationRefusal,
|
|
6001
|
+
zr as depthOf,
|
|
6002
|
+
Zf as derivePresence,
|
|
6003
|
+
qa as describeClause,
|
|
6004
|
+
yu as describeExpression,
|
|
6005
|
+
If as disabledIntentsFromCapabilities,
|
|
6006
|
+
sc as documentBodyBytes,
|
|
6007
|
+
zf as documentKindOf,
|
|
6008
|
+
ac as documentOutline,
|
|
5964
6009
|
ar as documentToMarkdown,
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
6010
|
+
Hf as documentToText,
|
|
6011
|
+
oi as driftedFields,
|
|
6012
|
+
xu as dueAtOf,
|
|
6013
|
+
Md as dueDateFrom,
|
|
6014
|
+
Qu as elapsedSeconds,
|
|
6015
|
+
kp as emailDomain,
|
|
6016
|
+
gu as emptyConditionLeaf,
|
|
6017
|
+
Op as endpointKey,
|
|
6018
|
+
Ec as entityOwnerIds,
|
|
6019
|
+
ao as erlangC,
|
|
6020
|
+
ys as extractParams,
|
|
6021
|
+
Ns as extractTerms,
|
|
6022
|
+
Bc as failureLines,
|
|
6023
|
+
Tu as fieldVarPath,
|
|
6024
|
+
Fc as fillDocument,
|
|
6025
|
+
vr as fillText,
|
|
6026
|
+
wf as filterByEndpoint,
|
|
6027
|
+
kf as filterByIntent,
|
|
6028
|
+
ss as filterByTargetScheme,
|
|
6029
|
+
Xa as filterableDimensions,
|
|
5985
6030
|
oe as findAiVendor,
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
6031
|
+
Iu as findEvent,
|
|
6032
|
+
Fu as fixedLevelForName,
|
|
6033
|
+
Fd as fixedTypeForName,
|
|
6034
|
+
jd as fixedTypes,
|
|
6035
|
+
Xf as flattenLocales,
|
|
5991
6036
|
V as floorToPeriod,
|
|
5992
|
-
|
|
5993
|
-
|
|
6037
|
+
$l as forecastIntervals,
|
|
6038
|
+
Mo as formatActingIdentity,
|
|
5994
6039
|
R as formatCents,
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
6040
|
+
ed as formatClock,
|
|
6041
|
+
Zu as formatHm,
|
|
6042
|
+
Gd as formatItemKey,
|
|
5998
6043
|
W as formatPeriod,
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6044
|
+
vd as formatSeriesNumber,
|
|
6045
|
+
Ru as formatSlaDuration,
|
|
6046
|
+
gf as freshSources,
|
|
6047
|
+
wa as getActivitySeenUserIds,
|
|
6048
|
+
Cc as getContactEndpoints,
|
|
6049
|
+
tl as getShortTitle,
|
|
6050
|
+
el as getUrgencyScore,
|
|
6051
|
+
pu as hasReacted,
|
|
6052
|
+
ju as healthCategory,
|
|
6053
|
+
Bu as healthsInCategory,
|
|
6009
6054
|
nn as heightOf,
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6055
|
+
rl as helpCenterText,
|
|
6056
|
+
ql as humanizeAction,
|
|
6057
|
+
Po as interactionIdOf,
|
|
6058
|
+
Nd as isAgentUser,
|
|
6059
|
+
Jc as isAssigned,
|
|
6060
|
+
fc as isAssignmentTerminal,
|
|
6061
|
+
$o as isAssignmentTrigger,
|
|
6062
|
+
Wa as isAssistantMode,
|
|
6063
|
+
au as isAutoReady,
|
|
6064
|
+
zl as isAutonomy,
|
|
6065
|
+
Vr as isAwaitingThem,
|
|
6066
|
+
Oa as isChatMessageActivity,
|
|
6067
|
+
Zc as isClosed,
|
|
6068
|
+
Ea as isConnectedType,
|
|
6069
|
+
dp as isDeepLink,
|
|
6070
|
+
Yr as isDescendant,
|
|
6071
|
+
Gc as isEligible,
|
|
6072
|
+
Ma as isEmailActivity,
|
|
6073
|
+
Oi as isFrozen,
|
|
6074
|
+
Nu as isHeldClock,
|
|
6075
|
+
Cp as isHtmlBody,
|
|
6076
|
+
lu as isInFlight,
|
|
6077
|
+
Kr as isInteractionUnseen,
|
|
6078
|
+
fp as isLandingPath,
|
|
6079
|
+
xr as isLikelyBulk,
|
|
6035
6080
|
Ht as isMessageShape,
|
|
6036
|
-
|
|
6037
|
-
|
|
6081
|
+
ga as isMessageType,
|
|
6082
|
+
As as isMoreSpecificPattern,
|
|
6038
6083
|
Gt as isNoteShape,
|
|
6039
|
-
|
|
6084
|
+
pi as isOpenClock,
|
|
6040
6085
|
En as isOutwardTool,
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6086
|
+
Hr as isParked,
|
|
6087
|
+
Go as isPaused,
|
|
6088
|
+
_a as isPlaybookAuthoredType,
|
|
6089
|
+
wp as isPublicEmailDomain,
|
|
6090
|
+
mp as isPublicPath,
|
|
6091
|
+
Gr as isReminderActive,
|
|
6092
|
+
ba as isReplyableType,
|
|
6093
|
+
qc as isSlaAtRisk,
|
|
6094
|
+
bu as isSupportedCron,
|
|
6095
|
+
cu as isTerminal,
|
|
6096
|
+
Vc as isThreadLongEnough,
|
|
6097
|
+
Sa as isTranscriptType,
|
|
6098
|
+
xd as isWebhookEvent,
|
|
6099
|
+
Qd as isWorkClosed,
|
|
6100
|
+
nd as isWorkTypeVisible,
|
|
6056
6101
|
wn as isWriteTool,
|
|
6057
|
-
|
|
6058
|
-
|
|
6102
|
+
zd as itemDossierKeys,
|
|
6103
|
+
_u as judgeRuleCase,
|
|
6059
6104
|
$ as kindFor,
|
|
6060
|
-
|
|
6061
|
-
|
|
6105
|
+
Vi as ladderFor,
|
|
6106
|
+
yi as levelIn,
|
|
6062
6107
|
Pe as levelOrder,
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6108
|
+
eo as lineNet,
|
|
6109
|
+
nl as linkLabel,
|
|
6110
|
+
ad as listedTransactionKinds,
|
|
6111
|
+
Va as listeningAllowed,
|
|
6112
|
+
sl as localeInstruction,
|
|
6113
|
+
il as localeName,
|
|
6114
|
+
cl as localesOf,
|
|
6115
|
+
Ip as looksLikeEmail,
|
|
6071
6116
|
qt as lookup,
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6117
|
+
vc as marginCents,
|
|
6118
|
+
Bf as markdownToDocument,
|
|
6119
|
+
tc as matchApprovalPolicy,
|
|
6120
|
+
Mf as matchContactToIntents,
|
|
6121
|
+
_s as matchPublicRoute,
|
|
6122
|
+
ni as matchRules,
|
|
6123
|
+
dl as mcpCredentialScope,
|
|
6124
|
+
fl as mcpToolPrefix,
|
|
6125
|
+
Hu as measureRatio,
|
|
6126
|
+
xa as mergeDefaultFlags,
|
|
6127
|
+
_p as mergeShownKeys,
|
|
6083
6128
|
Rn as messageCountsAs,
|
|
6084
|
-
|
|
6129
|
+
Qa as metricOption,
|
|
6085
6130
|
sn as minutesOn,
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6131
|
+
vu as missingFieldPaths,
|
|
6132
|
+
$a as modelAcceptsAttachment,
|
|
6133
|
+
Es as mustAsk,
|
|
6134
|
+
Xl as narrowAutonomy,
|
|
6135
|
+
Mp as needsPhoneRegion,
|
|
6136
|
+
ya as nestsUnderParent,
|
|
6137
|
+
Uu as nextLevelBelow,
|
|
6138
|
+
uf as nextOccurrenceDates,
|
|
6139
|
+
$u as nextSlaClock,
|
|
6140
|
+
Mi as nextStatuses,
|
|
6141
|
+
md as nextVersion,
|
|
6142
|
+
ic as normalizeArtifactBlocks,
|
|
6143
|
+
pa as normalizeBlocks,
|
|
6144
|
+
ic as normalizeDocumentBlocks,
|
|
6100
6145
|
Mn as normalizeEmail,
|
|
6101
6146
|
K as normalizeExample,
|
|
6102
6147
|
fr as normalizeGtin,
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6148
|
+
Qf as notificationPrefKey,
|
|
6149
|
+
xs as novelty,
|
|
6150
|
+
jf as operationDescriptor,
|
|
6151
|
+
Ff as operationsForKind,
|
|
6152
|
+
Su as opsForFieldType,
|
|
6153
|
+
jc as organizationSender,
|
|
6154
|
+
tf as outcomeOf,
|
|
6110
6155
|
fe as overlapSeconds,
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6156
|
+
Ol as overlaps,
|
|
6157
|
+
Gu as paceRatio,
|
|
6158
|
+
Wc as parkMarksById,
|
|
6159
|
+
Jo as parse,
|
|
6160
|
+
Kl as parseActingIdentity,
|
|
6161
|
+
Ic as parseAmount,
|
|
6162
|
+
ku as parseClockMinutes,
|
|
6118
6163
|
dn as parseCron,
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6164
|
+
Wd as parseItemKey,
|
|
6165
|
+
lf as parseRecurrence,
|
|
6166
|
+
gs as pathToRegex,
|
|
6122
6167
|
cn as patternFor,
|
|
6123
6168
|
an as patternStartTime,
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6169
|
+
wu as pauseBitFor,
|
|
6170
|
+
nc as pendingApprovers,
|
|
6171
|
+
Ya as periodsInRange,
|
|
6172
|
+
vp as phoneSuffix,
|
|
6173
|
+
zc as pickMailHeaders,
|
|
6174
|
+
Uc as pickTemplate,
|
|
6175
|
+
Pl as placeLumps,
|
|
6131
6176
|
$n as plainTextFromMarkdown,
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6177
|
+
Cu as planSlaEvent,
|
|
6178
|
+
Nl as plannedBillable,
|
|
6179
|
+
go as plannedWorkTypeKey,
|
|
6180
|
+
iu as procedureOf,
|
|
6181
|
+
Ed as productHref,
|
|
6182
|
+
Ad as productScopeKey,
|
|
6183
|
+
Yd as projectDossierKeys,
|
|
6184
|
+
ec as proposalRequestIds,
|
|
6185
|
+
bs as publicBasePathFor,
|
|
6186
|
+
pp as publicRoutePatterns,
|
|
6187
|
+
hc as reactionWakesAssignment,
|
|
6188
|
+
Na as readDefaultFlags,
|
|
6144
6189
|
_e as readPath,
|
|
6145
6190
|
de as readStepError,
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6191
|
+
Br as recencyOf,
|
|
6192
|
+
Kc as recipientLocale,
|
|
6193
|
+
Ro as refKey,
|
|
6194
|
+
js as registrableDomain,
|
|
6195
|
+
ki as rejectExampleCandidate,
|
|
6196
|
+
bl as relatedByDefault,
|
|
6152
6197
|
Le as remainingMsOf,
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6198
|
+
kc as repriceLines,
|
|
6199
|
+
uo as requiredAgents,
|
|
6200
|
+
ho as requirementFor,
|
|
6201
|
+
os as resolveAccountCapabilities,
|
|
6157
6202
|
Ee as resolveActivityText,
|
|
6158
|
-
|
|
6159
|
-
|
|
6203
|
+
Yl as resolveAutonomy,
|
|
6204
|
+
rs as resolveChannelIntents,
|
|
6160
6205
|
yr as resolvePrice,
|
|
6161
|
-
|
|
6206
|
+
Da as resolveRoute,
|
|
6162
6207
|
_r as resolveSignature,
|
|
6163
6208
|
Hn as resolveTier,
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6209
|
+
tp as resolveWorkMode,
|
|
6210
|
+
ap as resourceKindOf,
|
|
6211
|
+
zu as rollupChildren,
|
|
6167
6212
|
z as roundHalfUp,
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6213
|
+
Ul as runActor,
|
|
6214
|
+
Bl as runApprovalKey,
|
|
6215
|
+
Hc as runEvalSuite,
|
|
6216
|
+
Hl as runIdOfApprovalRef,
|
|
6217
|
+
du as runInteractionId,
|
|
6218
|
+
su as runKind,
|
|
6219
|
+
Eu as runOutcome,
|
|
6175
6220
|
rr as sanitizeInline,
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6221
|
+
Is as sanitizeTranscript,
|
|
6222
|
+
Dl as scheduleEntryScopeKey,
|
|
6223
|
+
Qc as scoreInteraction,
|
|
6224
|
+
Ld as scoreWorkItem,
|
|
6225
|
+
Pc as segmentIsEmpty,
|
|
6226
|
+
ul as selectLenses,
|
|
6181
6227
|
he as serialize,
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6228
|
+
co as serviceLevel,
|
|
6229
|
+
Sf as sessionsHoldCannotReach,
|
|
6230
|
+
Ef as sessionsToHold,
|
|
6231
|
+
Sc as shadowByKey,
|
|
6232
|
+
Xt as shareKeyForTeam,
|
|
6233
|
+
Yt as shareKeyForUser,
|
|
6234
|
+
lc as shareKeysForViewer,
|
|
6235
|
+
xl as shortfalls,
|
|
6236
|
+
np as shouldRunAudioPipeline,
|
|
6237
|
+
Du as slaBadgeTone,
|
|
6238
|
+
Xc as slaHoursByInbox,
|
|
6239
|
+
Wr as slaHoursFor,
|
|
6240
|
+
Yi as sortStatuses,
|
|
6241
|
+
ns as sourceKey,
|
|
6242
|
+
wo as spreadOverWeights,
|
|
6243
|
+
Xd as statusIn,
|
|
6244
|
+
ef as statusRequiresApproval,
|
|
6245
|
+
Qi as stepDate,
|
|
6246
|
+
ou as stepsOf,
|
|
6247
|
+
Pu as strategyAncestorKeysFor,
|
|
6248
|
+
Lu as strategyDossierKeys,
|
|
6203
6249
|
yn as strategyItemScopeKey,
|
|
6204
6250
|
Dn as stripHtml,
|
|
6205
|
-
|
|
6251
|
+
uu as subjectKeyOf,
|
|
6206
6252
|
ln as subjectOf,
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6253
|
+
Af as subjectRef,
|
|
6254
|
+
Vd as suggestProjectKey,
|
|
6255
|
+
Wu as suggestedHealth,
|
|
6256
|
+
Mr as summariseEval,
|
|
6257
|
+
fu as summarizeReactions,
|
|
6258
|
+
Wl as targetById,
|
|
6259
|
+
Gl as targetForActivityType,
|
|
6260
|
+
Xu as targetOrder,
|
|
6261
|
+
Zr as taxRateFor,
|
|
6262
|
+
oo as termsFor,
|
|
6263
|
+
Co as toActingIdentity,
|
|
6218
6264
|
Lt as toE164,
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6265
|
+
Od as toTransactionTerm,
|
|
6266
|
+
Do as toolBareName,
|
|
6267
|
+
Ql as toolDisplayName,
|
|
6268
|
+
hf as toolReversible,
|
|
6269
|
+
uc as toolSourceKinds,
|
|
6270
|
+
Ap as toolVerdict,
|
|
6271
|
+
wi as topicOfferedForTeam,
|
|
6272
|
+
sd as topicsForTeam,
|
|
6273
|
+
lo as trafficIntensity,
|
|
6274
|
+
hd as transactionContext,
|
|
6275
|
+
Td as transactionDossierKeys,
|
|
6276
|
+
_d as transactionHref,
|
|
6277
|
+
Sd as transactionIdFromScope,
|
|
6232
6278
|
O as transactionKind,
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6279
|
+
Ui as transactionScopeKey,
|
|
6280
|
+
gd as transactionSlots,
|
|
6281
|
+
_l as transactionTotals,
|
|
6282
|
+
Zl as triggerFillsVar,
|
|
6283
|
+
vi as truncateExample,
|
|
6284
|
+
Ud as typeIn,
|
|
6285
|
+
Kd as typesFor,
|
|
6286
|
+
Jd as uniqueWorkStatusKey,
|
|
6287
|
+
td as uniqueWorkTypeKey,
|
|
6242
6288
|
qn as usageMetricId,
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6289
|
+
Ja as usageMetrics,
|
|
6290
|
+
Ra as validateQuestions,
|
|
6291
|
+
Zd as validateStatuses,
|
|
6292
|
+
xo as valueAtPath,
|
|
6247
6293
|
je as waitHoursOf,
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6294
|
+
mc as wakesAssignment,
|
|
6295
|
+
Hd as workActivityScopeKey,
|
|
6296
|
+
Wi as workItemScopeKey,
|
|
6251
6297
|
An as workProjectScopeKey,
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6298
|
+
Vu as workRatio,
|
|
6299
|
+
Xi as workStatusKey,
|
|
6300
|
+
Ei as workTypeKey,
|
|
6255
6301
|
xe as workingMsBetween,
|
|
6256
|
-
|
|
6302
|
+
Rl as workstreamScopeKey
|
|
6257
6303
|
};
|