@opencxh/domain 1.253.0 → 1.254.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/playbook/labels.d.ts +18 -0
- package/dist/entities/playbook/labels.test.d.ts +1 -0
- package/dist/index.cjs +19 -19
- package/dist/index.js +1380 -1366
- package/dist/platform/ai-tools.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const hs = 10, gs = 10, ys = 10, bs = 5, ln = /* @__PURE__ */ new Set([
|
|
2
2
|
"header",
|
|
3
3
|
"section",
|
|
4
4
|
"context",
|
|
@@ -8,13 +8,13 @@ const fs = 10, ms = 10, hs = 10, gs = 5, cn = /* @__PURE__ */ new Set([
|
|
|
8
8
|
"actions",
|
|
9
9
|
"attachments"
|
|
10
10
|
]);
|
|
11
|
-
function
|
|
11
|
+
function ae(e) {
|
|
12
12
|
if (typeof e == "string") return e.length > 0;
|
|
13
13
|
if (!e || typeof e != "object") return !1;
|
|
14
14
|
const t = e;
|
|
15
15
|
return typeof t.key == "string" || typeof t.value == "string";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function _s(e, t = () => {
|
|
18
18
|
}) {
|
|
19
19
|
if (!Array.isArray(e)) return [];
|
|
20
20
|
const n = [];
|
|
@@ -25,19 +25,19 @@ function ys(e, t = () => {
|
|
|
25
25
|
}
|
|
26
26
|
if (!r || typeof r != "object") continue;
|
|
27
27
|
const o = r;
|
|
28
|
-
if (!
|
|
28
|
+
if (!ln.has(o.type)) {
|
|
29
29
|
t(`unknown block type ${String(o.type)}`);
|
|
30
30
|
continue;
|
|
31
31
|
}
|
|
32
32
|
switch (o.type) {
|
|
33
33
|
case "header":
|
|
34
|
-
if (!
|
|
34
|
+
if (!ae(o.text)) {
|
|
35
35
|
t("a header without text");
|
|
36
36
|
continue;
|
|
37
37
|
}
|
|
38
38
|
break;
|
|
39
39
|
case "context":
|
|
40
|
-
if (!
|
|
40
|
+
if (!ae(o.text)) {
|
|
41
41
|
t("a context block without text");
|
|
42
42
|
continue;
|
|
43
43
|
}
|
|
@@ -59,7 +59,7 @@ function ys(e, t = () => {
|
|
|
59
59
|
o.items.length > 10 && (t("more than 10 list items"), o.items = o.items.slice(0, 10));
|
|
60
60
|
break;
|
|
61
61
|
case "actions": {
|
|
62
|
-
const i = Array.isArray(o.elements) ? o.elements : [], s = i.filter((a) => a?.action_id && a.invoke &&
|
|
62
|
+
const i = Array.isArray(o.elements) ? o.elements : [], s = i.filter((a) => a?.action_id && a.invoke && ae(a.text));
|
|
63
63
|
if (s.length !== i.length && t("an action without action_id, invoke or text"), s.length === 0) continue;
|
|
64
64
|
s.length > 5 && t("more than 5 actions"), o.elements = s.slice(0, 5);
|
|
65
65
|
break;
|
|
@@ -69,17 +69,17 @@ function ys(e, t = () => {
|
|
|
69
69
|
}
|
|
70
70
|
return n;
|
|
71
71
|
}
|
|
72
|
-
const
|
|
73
|
-
function
|
|
72
|
+
const un = /(\*\*|__)(?=\S)([\s\S]*?\S)\1/g, dn = /(\*|_)(?=\S)([^*_\n]*?\S)\1/g;
|
|
73
|
+
function pn(e) {
|
|
74
74
|
if (typeof e != "string" || !e) return "";
|
|
75
75
|
let t = e;
|
|
76
76
|
return t = t.replace(/```[a-z]*\n?/gi, "").replace(/~~~[a-z]*\n?/gi, ""), t = t.replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\([^)]*\)/g, "$1"), t = t.replace(/\[([^\]]*)\]\[[^\]]*\]/g, "$1"), t = t.replace(/<((?:https?|mailto):[^>\s]+)>/gi, "$1"), t = t.split(`
|
|
77
77
|
`).map(
|
|
78
78
|
(n) => n.replace(/^\s{0,3}#{1,6}\s+/, "").replace(/^\s{0,3}>\s?/, "").replace(/^\s*[-*+]\s+/, "").replace(/^\s*\d+[.)]\s+/, "").replace(/^\s*(?:[-*_]\s*){3,}$/, "")
|
|
79
79
|
).join(`
|
|
80
|
-
`), t = t.replace(
|
|
80
|
+
`), t = t.replace(un, "$2"), t = t.replace(dn, "$2"), t = t.replace(/~~(?=\S)([\s\S]*?\S)~~/g, "$1"), t = t.replace(/`([^`\n]+)`/g, "$1"), t.replace(/\s+/g, " ").trim();
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function fn(e) {
|
|
83
83
|
return e.replace(/<style[\s\S]*?<\/style>/gi, " ").replace(/<script[\s\S]*?<\/script>/gi, " ").replace(/<[^>]+>/g, " ").replace(/ /g, " ").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'").replace(/\s+/g, " ").trim();
|
|
84
84
|
}
|
|
85
85
|
function q(e) {
|
|
@@ -87,16 +87,16 @@ function q(e) {
|
|
|
87
87
|
const t = Math.floor(e / 60), n = Math.floor(e % 60);
|
|
88
88
|
return `${t}:${n.toString().padStart(2, "0")}`;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Be(e) {
|
|
91
91
|
return e ? ` — ${Math.floor(e / 60)}m ${e % 60}s` : "";
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ce(e) {
|
|
94
94
|
return e?.split("@")?.[0] || e || "";
|
|
95
95
|
}
|
|
96
96
|
function Q(e) {
|
|
97
97
|
return e.map((t) => t.name).join(", ");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function je(e) {
|
|
100
100
|
return e === "meeting" ? "Meeting" : e === "video" ? "Video call" : "Audio call";
|
|
101
101
|
}
|
|
102
102
|
const R = {
|
|
@@ -106,7 +106,7 @@ const R = {
|
|
|
106
106
|
channelKind: "voice",
|
|
107
107
|
icon: "phone",
|
|
108
108
|
snippet: () => "Gesprek gestart",
|
|
109
|
-
timeline: (e) => e.direction === "inbound" ? `Inbound call started — ${
|
|
109
|
+
timeline: (e) => e.direction === "inbound" ? `Inbound call started — ${ce(e.payload.from)}` : `Outbound call started — ${ce(e.payload.to)}`
|
|
110
110
|
},
|
|
111
111
|
VOICE_CALL_ANSWERED: {
|
|
112
112
|
shape: "event",
|
|
@@ -134,14 +134,14 @@ const R = {
|
|
|
134
134
|
channelKind: "voice",
|
|
135
135
|
icon: "phone",
|
|
136
136
|
snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${q(e.payload.duration)})` : ""}`,
|
|
137
|
-
timeline: (e) => `Call ended${
|
|
137
|
+
timeline: (e) => `Call ended${Be(e.payload.duration)}`
|
|
138
138
|
},
|
|
139
139
|
VOICE_CALL_MISSED: {
|
|
140
140
|
shape: "event",
|
|
141
141
|
channelKind: "voice",
|
|
142
142
|
icon: "phone",
|
|
143
143
|
snippet: () => "Gemiste oproep",
|
|
144
|
-
timeline: (e) => `Missed call — ${
|
|
144
|
+
timeline: (e) => `Missed call — ${ce(e.payload.from)}`
|
|
145
145
|
},
|
|
146
146
|
VOICE_CALL_FAILED: {
|
|
147
147
|
shape: "event",
|
|
@@ -216,7 +216,7 @@ const R = {
|
|
|
216
216
|
replyable: !0,
|
|
217
217
|
carriesText: !0,
|
|
218
218
|
countsAs: "inbound_message",
|
|
219
|
-
snippet:
|
|
219
|
+
snippet: He
|
|
220
220
|
},
|
|
221
221
|
EMAIL_SENT: {
|
|
222
222
|
shape: "message",
|
|
@@ -226,7 +226,7 @@ const R = {
|
|
|
226
226
|
replyable: !0,
|
|
227
227
|
carriesText: !0,
|
|
228
228
|
countsAs: "outbound_message",
|
|
229
|
-
snippet:
|
|
229
|
+
snippet: He
|
|
230
230
|
},
|
|
231
231
|
/* ---- chat ---- */
|
|
232
232
|
CHAT_MESSAGE_SENT: {
|
|
@@ -283,7 +283,7 @@ const R = {
|
|
|
283
283
|
channelKind: "chat",
|
|
284
284
|
icon: "message-circle",
|
|
285
285
|
snippet: () => "Gesprek gestart",
|
|
286
|
-
timeline: (e) => `${
|
|
286
|
+
timeline: (e) => `${je(e.payload.callType)} started${e.payload.initiator ? ` by ${e.payload.initiator.name}` : ""}`,
|
|
287
287
|
joinUrl: (e) => e.payload.joinUrl
|
|
288
288
|
},
|
|
289
289
|
CHAT_CALL_ENDED: {
|
|
@@ -291,7 +291,7 @@ const R = {
|
|
|
291
291
|
channelKind: "chat",
|
|
292
292
|
icon: "message-circle",
|
|
293
293
|
snippet: (e) => `Gesprek beëindigd${e.payload.duration ? ` (${q(e.payload.duration)})` : ""}`,
|
|
294
|
-
timeline: (e) => `${
|
|
294
|
+
timeline: (e) => `${je(e.payload.callType)} ended${Be(e.payload.duration)}`,
|
|
295
295
|
joinUrl: (e) => e.payload.joinUrl
|
|
296
296
|
},
|
|
297
297
|
CHAT_EVENT: {
|
|
@@ -460,63 +460,63 @@ const R = {
|
|
|
460
460
|
timeline: (e, t) => `Status changed by ${t}`
|
|
461
461
|
}
|
|
462
462
|
};
|
|
463
|
-
function
|
|
464
|
-
const t = e.payload, n =
|
|
463
|
+
function He(e) {
|
|
464
|
+
const t = e.payload, n = pn(t.bodyText).trim() || t.bodySnippet?.trim() || fn(t.body ?? "");
|
|
465
465
|
return t.subject ? `${t.subject} — ${n}` : n;
|
|
466
466
|
}
|
|
467
467
|
function k(e) {
|
|
468
468
|
return R[e];
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function As(e) {
|
|
471
471
|
return k(e)?.icon ?? "circle";
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ss(e) {
|
|
474
474
|
return k(e)?.channelKind;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function vt(e) {
|
|
477
477
|
return e === "message" || e === "note";
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function Es(e) {
|
|
480
|
+
return vt(k(e)?.shape);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Mt(e) {
|
|
483
483
|
return e === "note";
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
return
|
|
485
|
+
function Ts(e) {
|
|
486
|
+
return Mt(k(e)?.shape);
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Is(e) {
|
|
489
489
|
return k(e)?.replyable === !0;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function ks(e) {
|
|
492
492
|
return k(e)?.carriesText === !0;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function mn(e) {
|
|
495
495
|
return k(e)?.countsAs;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function ws(e) {
|
|
498
498
|
return k(e)?.playbookAuthored === !0;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function vs(e) {
|
|
501
501
|
return k(e)?.connected === !0;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Ms(e) {
|
|
504
504
|
const t = k(e);
|
|
505
505
|
return t?.shape === "artifact" && t?.carriesText === !0;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function hn(e) {
|
|
508
508
|
const t = k(e.type)?.snippet;
|
|
509
509
|
return t ? t(e) : "";
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Cs(e, t) {
|
|
512
512
|
const n = k(e.type)?.timeline;
|
|
513
513
|
return n ? n(e, t) : e.type.replace(/_/g, " ").toLowerCase();
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Os(e) {
|
|
516
516
|
const t = k(e.type)?.joinUrl;
|
|
517
517
|
return t ? t(e) : void 0;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function ye(e, t) {
|
|
520
520
|
let n = e;
|
|
521
521
|
for (const r of t.split(".")) {
|
|
522
522
|
if (n == null || typeof n != "object") return "";
|
|
@@ -524,43 +524,43 @@ function ge(e, t) {
|
|
|
524
524
|
}
|
|
525
525
|
return n == null ? "" : typeof n == "string" ? n : typeof n == "number" || typeof n == "boolean" ? String(n) : "";
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function be(e, t, n) {
|
|
528
528
|
if (e === void 0) return null;
|
|
529
529
|
if (typeof e == "string") return e || null;
|
|
530
530
|
if ("value" in e)
|
|
531
|
-
return
|
|
531
|
+
return ye(t, e.value) || null;
|
|
532
532
|
const r = {};
|
|
533
533
|
for (const [i, s] of Object.entries(e.params ?? {}))
|
|
534
|
-
r[i] =
|
|
534
|
+
r[i] = ye(t, s);
|
|
535
535
|
const o = n(e.key, r);
|
|
536
536
|
return o === e.key ? null : o;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function gn(e, t) {
|
|
539
539
|
if (!e || typeof e == "string" || "value" in e) return null;
|
|
540
540
|
const n = {};
|
|
541
541
|
for (const [r, o] of Object.entries(e.params ?? {}))
|
|
542
|
-
n[r] =
|
|
542
|
+
n[r] = ye(t, o);
|
|
543
543
|
return { key: e.key, params: n };
|
|
544
544
|
}
|
|
545
|
-
const
|
|
546
|
-
function
|
|
545
|
+
const Ge = 140;
|
|
546
|
+
function yn(e) {
|
|
547
547
|
const t = e.trim();
|
|
548
|
-
return t.length <=
|
|
548
|
+
return t.length <= Ge ? t : `${t.slice(0, Ge - 1).trimEnd()}…`;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
const n =
|
|
550
|
+
function xs(e, t) {
|
|
551
|
+
const n = gn(t?.text, e), r = t ? be(t.text, e, (o) => o) : null;
|
|
552
552
|
return {
|
|
553
553
|
activityId: e.id,
|
|
554
554
|
type: e.type,
|
|
555
|
-
snippet:
|
|
555
|
+
snippet: yn(r ?? hn(e)),
|
|
556
556
|
authorName: e.author?.name ?? "",
|
|
557
557
|
direction: e.direction,
|
|
558
558
|
createdAt: e.createdAt ?? Date.now(),
|
|
559
559
|
...n ? { snippetKey: n.key, snippetParams: n.params } : {}
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
const
|
|
563
|
-
function
|
|
562
|
+
const bn = (e) => e;
|
|
563
|
+
function We(e) {
|
|
564
564
|
const t = R[e];
|
|
565
565
|
return {
|
|
566
566
|
type: e,
|
|
@@ -576,7 +576,7 @@ function Ge(e) {
|
|
|
576
576
|
displayNameKey: t.displayNameKey
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Ve(e) {
|
|
580
580
|
return {
|
|
581
581
|
type: e.type,
|
|
582
582
|
shape: e.shape,
|
|
@@ -591,21 +591,21 @@ function We(e) {
|
|
|
591
591
|
displayNameKey: e.displayNameKey
|
|
592
592
|
};
|
|
593
593
|
}
|
|
594
|
-
class
|
|
595
|
-
constructor(t = [], n =
|
|
594
|
+
class _n {
|
|
595
|
+
constructor(t = [], n = bn) {
|
|
596
596
|
this.translate = n;
|
|
597
597
|
for (const r of t)
|
|
598
598
|
r?.type && (r.type in R || this.declared.has(r.type) || this.declared.set(r.type, r));
|
|
599
599
|
}
|
|
600
600
|
declared = /* @__PURE__ */ new Map();
|
|
601
601
|
get(t) {
|
|
602
|
-
if (t in R) return
|
|
602
|
+
if (t in R) return We(t);
|
|
603
603
|
const n = this.declared.get(t);
|
|
604
|
-
return n ?
|
|
604
|
+
return n ? Ve(n) : void 0;
|
|
605
605
|
}
|
|
606
606
|
/** Everything that may be offered as a trigger, built-in and declared. */
|
|
607
607
|
triggerable() {
|
|
608
|
-
const t = Object.keys(R).filter((r) => R[r].triggerable).map(
|
|
608
|
+
const t = Object.keys(R).filter((r) => R[r].triggerable).map(We), n = [...this.declared.values()].map(Ve).filter((r) => r.triggerable);
|
|
609
609
|
return [...t, ...n];
|
|
610
610
|
}
|
|
611
611
|
/**
|
|
@@ -617,14 +617,14 @@ class bn {
|
|
|
617
617
|
const r = R[t.type];
|
|
618
618
|
if (r?.timeline) return r.timeline(t, n);
|
|
619
619
|
const o = this.declared.get(t.type);
|
|
620
|
-
return
|
|
620
|
+
return be(o?.text, t, this.translate) ?? t.type.replace(/_/g, " ").toLowerCase();
|
|
621
621
|
}
|
|
622
622
|
/** The line for the inbox list. Empty when the type has nothing to show. */
|
|
623
623
|
snippet(t) {
|
|
624
624
|
const n = R[t.type];
|
|
625
625
|
if (n?.snippet) return n.snippet(t);
|
|
626
626
|
const r = this.declared.get(t.type);
|
|
627
|
-
return
|
|
627
|
+
return be(r?.text, t, this.translate) ?? "";
|
|
628
628
|
}
|
|
629
629
|
/** The descriptor as it arrived; needed to store `text` as a key. */
|
|
630
630
|
descriptor(t) {
|
|
@@ -649,11 +649,11 @@ class bn {
|
|
|
649
649
|
* {@link ResolvedActivityType}.
|
|
650
650
|
*/
|
|
651
651
|
isMessage(t) {
|
|
652
|
-
return
|
|
652
|
+
return vt(this.get(t)?.shape);
|
|
653
653
|
}
|
|
654
654
|
/** Folds into the list under the message it answers. See {@link isNoteShape}. */
|
|
655
655
|
nestsUnderParent(t) {
|
|
656
|
-
return
|
|
656
|
+
return Mt(this.get(t)?.shape);
|
|
657
657
|
}
|
|
658
658
|
/** Can a person reply to this? Notes cannot — those go nowhere. */
|
|
659
659
|
isReplyable(t) {
|
|
@@ -681,23 +681,23 @@ class bn {
|
|
|
681
681
|
return this.translate;
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
const
|
|
685
|
-
function
|
|
684
|
+
const Ns = new _n();
|
|
685
|
+
function Rs(e, t, n = []) {
|
|
686
686
|
const r = e.createdAt;
|
|
687
687
|
if (!r) return [];
|
|
688
688
|
const o = new Set(n);
|
|
689
689
|
return e.author.type === "user" && e.author.id && o.add(e.author.id), Object.entries(t).filter(([i, s]) => s >= r && !o.has(i)).map(([i]) => i);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function An(e) {
|
|
692
692
|
return e.createdAt ?? 0;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function Ds(e) {
|
|
695
695
|
return e.type === "EMAIL_RECEIVED" || e.type === "EMAIL_SENT";
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function $s(e) {
|
|
698
698
|
return e.type === "CHAT_MESSAGE_SENT" || e.type === "CHAT_MESSAGE_RECEIVED";
|
|
699
699
|
}
|
|
700
|
-
const
|
|
700
|
+
const Ct = [
|
|
701
701
|
{
|
|
702
702
|
id: "openai",
|
|
703
703
|
attachmentKinds: ["image", "pdf"],
|
|
@@ -787,45 +787,45 @@ const Mt = [
|
|
|
787
787
|
defaultModel: "default"
|
|
788
788
|
}
|
|
789
789
|
];
|
|
790
|
-
function
|
|
791
|
-
return
|
|
790
|
+
function oe(e) {
|
|
791
|
+
return Ct.find((t) => t.id === e);
|
|
792
792
|
}
|
|
793
|
-
function
|
|
794
|
-
return
|
|
793
|
+
function Ls(e) {
|
|
794
|
+
return oe(e)?.label ?? e;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
797
|
-
return
|
|
796
|
+
function Ps(e, t = "gpt-5-mini") {
|
|
797
|
+
return oe(e)?.defaultModel ?? t;
|
|
798
798
|
}
|
|
799
|
-
function
|
|
800
|
-
return
|
|
799
|
+
function Ks(e) {
|
|
800
|
+
return Ct.filter((t) => t.capabilities.includes(e));
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
const t =
|
|
802
|
+
function Us(e) {
|
|
803
|
+
const t = oe(e);
|
|
804
804
|
return !!t && !t.baseUrl;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
return t === "text" ? !0 :
|
|
806
|
+
function Fs(e, t) {
|
|
807
|
+
return t === "text" ? !0 : oe(e)?.attachmentKinds?.includes(t) === !0;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Bs(e, t) {
|
|
810
810
|
if (!e.enabled) return "ok";
|
|
811
|
-
const n =
|
|
811
|
+
const n = ze(e.hardLimitNanos), r = ze(e.softLimitNanos);
|
|
812
812
|
return n !== void 0 && t >= n ? "hard" : r !== void 0 && t >= r ? "soft" : "ok";
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function ze(e) {
|
|
815
815
|
return typeof e == "number" ? e : void 0;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Sn(e, t = "month") {
|
|
818
818
|
const n = new Date(e);
|
|
819
819
|
return Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), 1);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
822
|
-
const n = new Date(
|
|
821
|
+
function js(e, t = "month") {
|
|
822
|
+
const n = new Date(Sn(e, t));
|
|
823
823
|
return `${n.getUTCFullYear()}-${String(n.getUTCMonth() + 1).padStart(2, "0")}`;
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function Hs(e) {
|
|
826
826
|
return e?.listeningEnabled !== !1;
|
|
827
827
|
}
|
|
828
|
-
const
|
|
828
|
+
const Gs = [
|
|
829
829
|
{ id: "agent", label: "Agent", labelSource: "user" },
|
|
830
830
|
{ id: "team", label: "Team", labelSource: "team" },
|
|
831
831
|
{ id: "inbox", label: "Inbox", labelSource: "inbox" },
|
|
@@ -835,64 +835,64 @@ const js = [
|
|
|
835
835
|
{ id: "handledBy", label: "Afhandelaar", labelSource: "raw" },
|
|
836
836
|
{ id: "time", label: "Tijd", labelSource: "raw" }
|
|
837
837
|
];
|
|
838
|
-
function
|
|
838
|
+
function le(e) {
|
|
839
839
|
return e < 10 ? `0${e}` : `${e}`;
|
|
840
840
|
}
|
|
841
841
|
function G(e, t) {
|
|
842
|
-
const n = new Date(e), r = `${n.getUTCFullYear()}-${
|
|
843
|
-
return t === "day" ? r : `${r}T${
|
|
842
|
+
const n = new Date(e), r = `${n.getUTCFullYear()}-${le(n.getUTCMonth() + 1)}-${le(n.getUTCDate())}`;
|
|
843
|
+
return t === "day" ? r : `${r}T${le(n.getUTCHours())}`;
|
|
844
844
|
}
|
|
845
845
|
function W(e, t) {
|
|
846
846
|
const n = new Date(e);
|
|
847
847
|
return n.setUTCMinutes(0, 0, 0), t === "day" && n.setUTCHours(0), n.getTime();
|
|
848
848
|
}
|
|
849
|
-
const
|
|
850
|
-
function
|
|
851
|
-
const r = n === "hour" ?
|
|
849
|
+
const En = 36e5, Tn = 864e5;
|
|
850
|
+
function Ws(e, t, n) {
|
|
851
|
+
const r = n === "hour" ? En : Tn, o = [];
|
|
852
852
|
for (let i = W(e, n); i <= t; i += r)
|
|
853
853
|
o.push(G(i, n));
|
|
854
854
|
return o;
|
|
855
855
|
}
|
|
856
|
-
const
|
|
857
|
-
function
|
|
856
|
+
const In = /* @__PURE__ */ new Set(["time"]);
|
|
857
|
+
function Vs(e, t, n) {
|
|
858
858
|
if (!e) return [];
|
|
859
859
|
const r = new Set(e.supportedDimensions ?? []);
|
|
860
|
-
return t.filter((o) => r.has(o.id) && !
|
|
860
|
+
return t.filter((o) => r.has(o.id) && !In.has(o.id)).map((o) => ({
|
|
861
861
|
id: o.id,
|
|
862
862
|
label: o.label,
|
|
863
863
|
options: o.options?.length ? o.options : n[o.id] ?? []
|
|
864
864
|
})).filter((o) => o.options.length > 0);
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function zs(e, t) {
|
|
867
867
|
const n = t.find((o) => o.id === e.dimensionId), r = n?.options.find((o) => o.value === e.value);
|
|
868
868
|
return `${n?.label ?? e.dimensionId} · ${r?.label ?? e.value}`;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Xs(e) {
|
|
871
871
|
return { value: e.id, label: `${e.category} · ${e.label}` };
|
|
872
872
|
}
|
|
873
|
-
const
|
|
873
|
+
const kn = [
|
|
874
874
|
{ id: "resource", label: "Resource", labelSource: "raw" },
|
|
875
875
|
{ id: "origin", label: "Herkomst", labelSource: "raw" }
|
|
876
|
-
],
|
|
877
|
-
function
|
|
876
|
+
], wn = kn.map((e) => e.id);
|
|
877
|
+
function vn(e, t) {
|
|
878
878
|
return `${e}.usage.${t}`;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Ys(e, t) {
|
|
881
881
|
return t.map((n) => ({
|
|
882
|
-
id:
|
|
882
|
+
id: vn(e, n.unit),
|
|
883
883
|
label: n.label,
|
|
884
884
|
category: "Verbruik",
|
|
885
885
|
valueType: n.valueType ?? "count",
|
|
886
886
|
aggregation: "sum",
|
|
887
887
|
supportedDimensions: [
|
|
888
888
|
"provider",
|
|
889
|
-
...
|
|
889
|
+
...wn,
|
|
890
890
|
...n.extraDimensions ?? [],
|
|
891
891
|
"time"
|
|
892
892
|
]
|
|
893
893
|
}));
|
|
894
894
|
}
|
|
895
|
-
const
|
|
895
|
+
const Ot = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]), Xe = 200, Ye = 100, qe = 200, Qe = 12, Ze = 4, Je = 10, Mn = 8, et = 12, xt = 4e3, Z = 500, qs = 1024 * 1024, Cn = /* @__PURE__ */ new Set([
|
|
896
896
|
"heading",
|
|
897
897
|
"paragraph",
|
|
898
898
|
"list",
|
|
@@ -906,15 +906,15 @@ const Ct = /* @__PURE__ */ new Set(["info", "success", "warning", "destructive"]
|
|
|
906
906
|
"letterhead",
|
|
907
907
|
"totals",
|
|
908
908
|
"pagebreak"
|
|
909
|
-
]),
|
|
910
|
-
function
|
|
909
|
+
]), On = ["http:", "https:", "mailto:", "tel:"], xn = /^[a-z][a-z0-9+.-]*:/i;
|
|
910
|
+
function xe(e) {
|
|
911
911
|
const t = e.trim().replace(/^<|>$/g, "");
|
|
912
912
|
if (!t) return !1;
|
|
913
|
-
const n =
|
|
914
|
-
return n ?
|
|
913
|
+
const n = xn.exec(t)?.[0];
|
|
914
|
+
return n ? On.includes(n.toLowerCase()) : !t.startsWith("//");
|
|
915
915
|
}
|
|
916
|
-
const
|
|
917
|
-
function
|
|
916
|
+
const Nn = /^[ \t]{0,3}\[([^\]]+)\]:[ \t]*(\S+).*$/gm;
|
|
917
|
+
function Rn(e) {
|
|
918
918
|
let t = "", n = 0;
|
|
919
919
|
for (; n < e.length; ) {
|
|
920
920
|
const r = e[n] === "!" && e[n + 1] === "[";
|
|
@@ -922,22 +922,22 @@ function Nn(e) {
|
|
|
922
922
|
t += e[n], n += 1;
|
|
923
923
|
continue;
|
|
924
924
|
}
|
|
925
|
-
const o = n + (r ? 2 : 1), i =
|
|
925
|
+
const o = n + (r ? 2 : 1), i = tt(e, o, "[", "]");
|
|
926
926
|
if (i < 0 || e[i + 1] !== "(") {
|
|
927
927
|
t += e[n], n += 1;
|
|
928
928
|
continue;
|
|
929
929
|
}
|
|
930
|
-
const s =
|
|
930
|
+
const s = tt(e, i + 2, "(", ")");
|
|
931
931
|
if (s < 0) {
|
|
932
932
|
t += e[n], n += 1;
|
|
933
933
|
continue;
|
|
934
934
|
}
|
|
935
935
|
const a = e.slice(o, i), u = e.slice(i + 2, s).trim().split(/\s+/)[0] ?? "";
|
|
936
|
-
t += r || !
|
|
936
|
+
t += r || !xe(u) ? a : e.slice(n, s + 1), n = s + 1;
|
|
937
937
|
}
|
|
938
938
|
return t;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function tt(e, t, n, r) {
|
|
941
941
|
let o = 1;
|
|
942
942
|
for (let i = t; i < e.length; i += 1) {
|
|
943
943
|
if (e[i] === "\\") {
|
|
@@ -950,36 +950,36 @@ function et(e, t, n, r) {
|
|
|
950
950
|
}
|
|
951
951
|
return -1;
|
|
952
952
|
}
|
|
953
|
-
function
|
|
954
|
-
return
|
|
955
|
-
|
|
956
|
-
(t, n, r) =>
|
|
953
|
+
function Dn(e) {
|
|
954
|
+
return Rn(e).replace(
|
|
955
|
+
Nn,
|
|
956
|
+
(t, n, r) => xe(r) ? t : ""
|
|
957
957
|
);
|
|
958
958
|
}
|
|
959
|
-
function I(e, t =
|
|
960
|
-
return typeof e == "string" ?
|
|
959
|
+
function I(e, t = xt) {
|
|
960
|
+
return typeof e == "string" ? Dn(e).slice(0, t) : "";
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function $n(e, t = xt) {
|
|
963
963
|
return typeof e == "string" ? e.slice(0, t) : "";
|
|
964
964
|
}
|
|
965
965
|
function B(e, t = 200) {
|
|
966
966
|
return I(e, t);
|
|
967
967
|
}
|
|
968
|
-
function
|
|
969
|
-
return typeof e == "string" &&
|
|
968
|
+
function Ln(e, t = "info") {
|
|
969
|
+
return typeof e == "string" && Ot.has(e) ? e : t;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function Qs(e, t = () => {
|
|
972
972
|
}) {
|
|
973
973
|
if (!Array.isArray(e)) return [];
|
|
974
974
|
const n = [];
|
|
975
975
|
for (const r of e) {
|
|
976
|
-
if (n.length >=
|
|
977
|
-
t(`more than ${
|
|
976
|
+
if (n.length >= Xe) {
|
|
977
|
+
t(`more than ${Xe} blocks; the rest was dropped`);
|
|
978
978
|
break;
|
|
979
979
|
}
|
|
980
980
|
if (!r || typeof r != "object") continue;
|
|
981
981
|
const o = r;
|
|
982
|
-
if (!
|
|
982
|
+
if (!Cn.has(o.type)) {
|
|
983
983
|
t(`unknown block type ${String(o.type)}`);
|
|
984
984
|
continue;
|
|
985
985
|
}
|
|
@@ -1014,7 +1014,7 @@ function Ys(e, t = () => {
|
|
|
1014
1014
|
break;
|
|
1015
1015
|
}
|
|
1016
1016
|
case "code": {
|
|
1017
|
-
const s =
|
|
1017
|
+
const s = $n(o.text);
|
|
1018
1018
|
if (!s) {
|
|
1019
1019
|
t("a code block without text");
|
|
1020
1020
|
continue;
|
|
@@ -1029,8 +1029,8 @@ function Ys(e, t = () => {
|
|
|
1029
1029
|
case "list": {
|
|
1030
1030
|
const s = Array.isArray(o.items) ? o.items : [], a = [];
|
|
1031
1031
|
for (const l of s) {
|
|
1032
|
-
if (a.length >=
|
|
1033
|
-
t(`more than ${
|
|
1032
|
+
if (a.length >= Ye) {
|
|
1033
|
+
t(`more than ${Ye} list items`);
|
|
1034
1034
|
break;
|
|
1035
1035
|
}
|
|
1036
1036
|
const d = I(l?.text);
|
|
@@ -1049,8 +1049,8 @@ function Ys(e, t = () => {
|
|
|
1049
1049
|
case "table": {
|
|
1050
1050
|
const s = Array.isArray(o.columns) ? o.columns : [], a = [];
|
|
1051
1051
|
for (const c of s) {
|
|
1052
|
-
if (a.length >=
|
|
1053
|
-
t(`more than ${
|
|
1052
|
+
if (a.length >= Qe) {
|
|
1053
|
+
t(`more than ${Qe} table columns`);
|
|
1054
1054
|
break;
|
|
1055
1055
|
}
|
|
1056
1056
|
const p = I(c?.label, Z), f = c?.align === "right" ? "right" : void 0;
|
|
@@ -1062,8 +1062,8 @@ function Ys(e, t = () => {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
const u = Array.isArray(o.rows) ? o.rows : [], l = [];
|
|
1064
1064
|
for (const c of u) {
|
|
1065
|
-
if (l.length >=
|
|
1066
|
-
t(`more than ${
|
|
1065
|
+
if (l.length >= qe) {
|
|
1066
|
+
t(`more than ${qe} table rows`);
|
|
1067
1067
|
break;
|
|
1068
1068
|
}
|
|
1069
1069
|
const p = Array.isArray(c) ? c : [];
|
|
@@ -1082,15 +1082,15 @@ function Ys(e, t = () => {
|
|
|
1082
1082
|
case "kpi": {
|
|
1083
1083
|
const s = Array.isArray(o.items) ? o.items : [], a = [];
|
|
1084
1084
|
for (const u of s) {
|
|
1085
|
-
if (a.length >=
|
|
1086
|
-
t(`more than ${
|
|
1085
|
+
if (a.length >= Ze) {
|
|
1086
|
+
t(`more than ${Ze} kpi items`);
|
|
1087
1087
|
break;
|
|
1088
1088
|
}
|
|
1089
1089
|
const l = I(u?.value, 40), d = I(u?.label, 80);
|
|
1090
1090
|
if (!l || !d) continue;
|
|
1091
1091
|
const c = u?.tone;
|
|
1092
1092
|
a.push(
|
|
1093
|
-
typeof c == "string" &&
|
|
1093
|
+
typeof c == "string" && Ot.has(c) ? { value: l, label: d, tone: c } : { value: l, label: d }
|
|
1094
1094
|
);
|
|
1095
1095
|
}
|
|
1096
1096
|
if (a.length === 0) {
|
|
@@ -1102,7 +1102,7 @@ function Ys(e, t = () => {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
case "image": {
|
|
1104
1104
|
const s = typeof o.url == "string" ? o.url.trim() : "";
|
|
1105
|
-
if (!s || !
|
|
1105
|
+
if (!s || !xe(s)) {
|
|
1106
1106
|
t("an image without a usable url");
|
|
1107
1107
|
continue;
|
|
1108
1108
|
}
|
|
@@ -1119,8 +1119,8 @@ function Ys(e, t = () => {
|
|
|
1119
1119
|
case "letterhead": {
|
|
1120
1120
|
const s = Array.isArray(o.fields) ? o.fields : [], a = [];
|
|
1121
1121
|
for (const d of s) {
|
|
1122
|
-
if (a.length >=
|
|
1123
|
-
t(`more than ${
|
|
1122
|
+
if (a.length >= Je) {
|
|
1123
|
+
t(`more than ${Je} letterhead fields`);
|
|
1124
1124
|
break;
|
|
1125
1125
|
}
|
|
1126
1126
|
const c = d, p = typeof c?.key == "string" ? c.key.slice(0, 48) : "", f = B(c?.value);
|
|
@@ -1128,7 +1128,7 @@ function Ys(e, t = () => {
|
|
|
1128
1128
|
const y = B(c?.label, 80);
|
|
1129
1129
|
a.push(y ? { key: p, label: y, value: f } : { key: p, value: f });
|
|
1130
1130
|
}
|
|
1131
|
-
const l = (Array.isArray(o.recipient) ? o.recipient : []).slice(0,
|
|
1131
|
+
const l = (Array.isArray(o.recipient) ? o.recipient : []).slice(0, Mn).map((d) => B(d)).filter(Boolean);
|
|
1132
1132
|
if (a.length === 0 && l.length === 0) {
|
|
1133
1133
|
t("a letterhead without fields or recipient");
|
|
1134
1134
|
continue;
|
|
@@ -1145,8 +1145,8 @@ function Ys(e, t = () => {
|
|
|
1145
1145
|
const s = (l) => {
|
|
1146
1146
|
const d = Array.isArray(l) ? l : [], c = [];
|
|
1147
1147
|
for (const p of d) {
|
|
1148
|
-
if (c.length >=
|
|
1149
|
-
t(`more than ${
|
|
1148
|
+
if (c.length >= et) {
|
|
1149
|
+
t(`more than ${et} totals rows`);
|
|
1150
1150
|
break;
|
|
1151
1151
|
}
|
|
1152
1152
|
const f = p, y = B(f?.label), m = B(f?.amount, 40);
|
|
@@ -1177,7 +1177,7 @@ function Ys(e, t = () => {
|
|
|
1177
1177
|
n.push({
|
|
1178
1178
|
...i,
|
|
1179
1179
|
type: "callout",
|
|
1180
|
-
tone:
|
|
1180
|
+
tone: Ln(o.tone),
|
|
1181
1181
|
...a ? { title: a } : {},
|
|
1182
1182
|
text: s
|
|
1183
1183
|
});
|
|
@@ -1187,28 +1187,28 @@ function Ys(e, t = () => {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
return n;
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function Zs(e) {
|
|
1191
1191
|
return JSON.stringify(e).length;
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function Js(e) {
|
|
1194
1194
|
return {
|
|
1195
1195
|
blocks: e.length,
|
|
1196
1196
|
types: e.map((t) => t.type),
|
|
1197
1197
|
headings: e.flatMap((t) => t.type === "heading" ? [t.text] : [])
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function nt(e) {
|
|
1201
1201
|
return e.replace(/\|/g, "\\|").replace(/\r?\n/g, " ").trim();
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function ue(e, t, n) {
|
|
1204
1204
|
const r = e.map((o, i) => n?.[i] === "right" ? "---:" : "---");
|
|
1205
1205
|
return [
|
|
1206
|
-
`| ${e.map(
|
|
1206
|
+
`| ${e.map(nt).join(" | ")} |`,
|
|
1207
1207
|
`| ${r.join(" | ")} |`,
|
|
1208
|
-
...t.map((o) => `| ${o.map(
|
|
1208
|
+
...t.map((o) => `| ${o.map(nt).join(" | ")} |`)
|
|
1209
1209
|
];
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Pn(e) {
|
|
1212
1212
|
switch (e.type) {
|
|
1213
1213
|
case "heading":
|
|
1214
1214
|
return [`${"#".repeat(e.level)} ${e.text}`];
|
|
@@ -1226,7 +1226,7 @@ function Ln(e) {
|
|
|
1226
1226
|
return t.lead ? `${r} **${t.lead}** ${t.text}` : `${r} ${t.text}`;
|
|
1227
1227
|
});
|
|
1228
1228
|
case "table": {
|
|
1229
|
-
const t =
|
|
1229
|
+
const t = ue(
|
|
1230
1230
|
e.columns.map((n) => n.label),
|
|
1231
1231
|
e.rows,
|
|
1232
1232
|
e.columns.map((n) => n.align ?? "left")
|
|
@@ -1234,7 +1234,7 @@ function Ln(e) {
|
|
|
1234
1234
|
return e.caption ? [...t, "", `*${e.caption}*`] : t;
|
|
1235
1235
|
}
|
|
1236
1236
|
case "kpi":
|
|
1237
|
-
return
|
|
1237
|
+
return ue(
|
|
1238
1238
|
e.items.map((t) => t.value),
|
|
1239
1239
|
[e.items.map((t) => t.label)]
|
|
1240
1240
|
);
|
|
@@ -1252,7 +1252,7 @@ function Ln(e) {
|
|
|
1252
1252
|
return t.map((n, r) => r < t.length - 1 ? `${n} ` : n);
|
|
1253
1253
|
}
|
|
1254
1254
|
case "totals":
|
|
1255
|
-
return
|
|
1255
|
+
return ue(
|
|
1256
1256
|
["", ""],
|
|
1257
1257
|
[...e.rows, ...e.taxRows ?? []].map((t) => [
|
|
1258
1258
|
t.emphasis ? `**${t.label}**` : t.label,
|
|
@@ -1264,11 +1264,11 @@ function Ln(e) {
|
|
|
1264
1264
|
return ["---"];
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Kn(e, t) {
|
|
1268
1268
|
const n = [], r = e.some((o) => o.type === "heading" && o.level === 1);
|
|
1269
1269
|
t && !r && n.push(`# ${t}`);
|
|
1270
1270
|
for (const o of e) {
|
|
1271
|
-
const i =
|
|
1271
|
+
const i = Pn(o);
|
|
1272
1272
|
i.length > 0 && n.push(i.join(`
|
|
1273
1273
|
`));
|
|
1274
1274
|
}
|
|
@@ -1277,45 +1277,45 @@ function Pn(e, t) {
|
|
|
1277
1277
|
`)}
|
|
1278
1278
|
`;
|
|
1279
1279
|
}
|
|
1280
|
-
const
|
|
1281
|
-
function
|
|
1280
|
+
const Nt = (e) => `user:${e}`, Rt = (e) => `team:${e}`;
|
|
1281
|
+
function ea(e) {
|
|
1282
1282
|
const t = /* @__PURE__ */ new Set();
|
|
1283
1283
|
for (const n of e ?? [])
|
|
1284
|
-
n?.id && (n.kind === "user" && t.add(
|
|
1284
|
+
n?.id && (n.kind === "user" && t.add(Nt(n.id)), n.kind === "team" && t.add(Rt(n.id)));
|
|
1285
1285
|
return [...t].sort();
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1288
|
-
return [
|
|
1287
|
+
function ta(e, t) {
|
|
1288
|
+
return [Nt(e), ...t.map(Rt)];
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function na(e) {
|
|
1291
1291
|
const t = /* @__PURE__ */ new Set();
|
|
1292
1292
|
for (const n of e ?? [])
|
|
1293
1293
|
n?.kind && t.add(n.kind);
|
|
1294
1294
|
return [...t];
|
|
1295
1295
|
}
|
|
1296
|
-
const
|
|
1297
|
-
function
|
|
1298
|
-
return
|
|
1296
|
+
const Un = ["done", "escalated"], ra = ["open", "waiting"];
|
|
1297
|
+
function oa(e) {
|
|
1298
|
+
return Un.includes(e);
|
|
1299
1299
|
}
|
|
1300
|
-
const
|
|
1301
|
-
function
|
|
1302
|
-
return `${
|
|
1300
|
+
const Fn = "assignment";
|
|
1301
|
+
function ia(e) {
|
|
1302
|
+
return `${Fn}:${e}`;
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function sa(e, t, n, r) {
|
|
1305
1305
|
if (e.direction === "inbound") return !0;
|
|
1306
1306
|
if (e.author?.type === "user" && e.author.id === t) return !1;
|
|
1307
1307
|
const o = e.payload?.mentions;
|
|
1308
1308
|
return Array.isArray(o) && o.includes(t) || r && r === t ? !0 : n === "reply";
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function aa(e) {
|
|
1311
1311
|
const { targetAuthorId: t, reactorId: n, agentId: r, on: o } = e;
|
|
1312
1312
|
return !o || !t || t !== r ? !1 : n !== r;
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function ca(e) {
|
|
1315
1315
|
return e.subjectKind && e.subjectId ? { type: e.subjectKind, id: e.subjectId } : void 0;
|
|
1316
1316
|
}
|
|
1317
|
-
const
|
|
1318
|
-
function
|
|
1317
|
+
const Bn = 12;
|
|
1318
|
+
function la(e, t, n = Bn) {
|
|
1319
1319
|
const r = t + 1;
|
|
1320
1320
|
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 ? {
|
|
1321
1321
|
status: "escalated",
|
|
@@ -1329,30 +1329,30 @@ function aa(e, t, n = Fn) {
|
|
|
1329
1329
|
reason: "de agent rondde zijn beurt af zonder te zeggen wat er moet gebeuren (wachten, afronden of overdragen)"
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
|
-
const
|
|
1333
|
-
function
|
|
1332
|
+
const ua = "organization.business-entities.list";
|
|
1333
|
+
function da(e, t, n) {
|
|
1334
1334
|
return e ? e === t : n;
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function jn(e) {
|
|
1337
1337
|
const t = e.trim().replace(/[\s-]/g, "");
|
|
1338
1338
|
if (!/^\d+$/.test(t) || ![8, 12, 13, 14].includes(t.length)) return;
|
|
1339
1339
|
const n = t.padStart(14, "0");
|
|
1340
|
-
return
|
|
1340
|
+
return Hn(n.slice(0, 13)) === Number(n[13]) ? n : void 0;
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Hn(e) {
|
|
1343
1343
|
let t = 0;
|
|
1344
1344
|
for (let n = 0; n < e.length; n++)
|
|
1345
1345
|
t += Number(e[n]) * (n % 2 === 0 ? 3 : 1);
|
|
1346
1346
|
return (10 - t % 10) % 10;
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1349
|
-
const n = t.trim(), r =
|
|
1348
|
+
function pa(e, t) {
|
|
1349
|
+
const n = t.trim(), r = jn(n), o = [{ sku: n }, { barcodes: { $in: [n] } }];
|
|
1350
1350
|
return r && o.push({ gtin: r }), { organizationId: e, $or: o };
|
|
1351
1351
|
}
|
|
1352
1352
|
function V(e) {
|
|
1353
1353
|
return e < 0 ? -Math.round(-e) : Math.round(e);
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function Gn(e, t) {
|
|
1356
1356
|
if (t.length === 0) return [];
|
|
1357
1357
|
const n = t.reduce((u, l) => u + l, 0);
|
|
1358
1358
|
if (n === 0) return t.map((u, l) => l === 0 ? e : 0);
|
|
@@ -1370,25 +1370,25 @@ function D(e, t = {}) {
|
|
|
1370
1370
|
l > 0 && (s.length - l) % 3 === 0 && (u += r), u += s[l];
|
|
1371
1371
|
return `${o ? "-" : ""}${u}${n}${a}`;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function fa(e) {
|
|
1374
1374
|
const t = e.trim().replace(/[\s ]/g, "");
|
|
1375
1375
|
if (!t) return;
|
|
1376
1376
|
const n = t.replace(/^[-+]?[^\d.,-]*/, "").replace(/[^\d.,-]+$/, ""), r = /^-/.test(t) || /-$/.test(t), o = n.replace(/-/g, "");
|
|
1377
1377
|
if (!o || !/^[\d.,]+$/.test(o)) return;
|
|
1378
1378
|
const i = o.lastIndexOf(","), s = o.lastIndexOf("."), a = Math.max(i, s), u = a === -1 ? "" : o.slice(a + 1), l = a !== -1 && u.length >= 1 && u.length <= 2, d = l ? o.slice(0, a) : o;
|
|
1379
|
-
if (!
|
|
1379
|
+
if (!Wn(d)) return;
|
|
1380
1380
|
const c = d.replace(/[.,]/g, ""), p = l ? u.padEnd(2, "0") : "00";
|
|
1381
1381
|
if (c === "") return;
|
|
1382
1382
|
const f = Number(c) * 100 + Number(p);
|
|
1383
1383
|
return r ? -f : f;
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function Wn(e) {
|
|
1386
1386
|
return /^\d+$/.test(e) ? !0 : e.includes(".") && e.includes(",") ? !1 : /^\d{1,3}([.,]\d{3})*$/.test(e);
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function ma(e) {
|
|
1389
1389
|
return e.costPriceCents == null ? e.netCents : e.netCents - V(e.costPriceCents * e.quantity);
|
|
1390
1390
|
}
|
|
1391
|
-
const
|
|
1391
|
+
const Vn = [
|
|
1392
1392
|
{
|
|
1393
1393
|
key: "contract",
|
|
1394
1394
|
matches: (e, t) => !!e.contractId && e.contractId === t.contractId && !!e.productId
|
|
@@ -1410,40 +1410,40 @@ const Wn = [
|
|
|
1410
1410
|
matches: (e, t) => !e.contractId && !e.companyId && !!e.segmentKey && e.segmentKey === t.segmentKey && !!e.categoryKey
|
|
1411
1411
|
}
|
|
1412
1412
|
];
|
|
1413
|
-
function
|
|
1413
|
+
function ha(e, t, n) {
|
|
1414
1414
|
const r = n.filter(
|
|
1415
1415
|
(o) => o.currency === e.currency && (o.validFrom == null || o.validFrom <= t.at) && (o.validTo == null || o.validTo >= t.at) && (o.minQuantity == null || t.quantity >= o.minQuantity) && (o.productId == null || o.productId === e.id) && (o.categoryKey == null || o.categoryKey === e.categoryKey) && (o.productId != null || o.categoryKey != null)
|
|
1416
1416
|
);
|
|
1417
|
-
for (const o of
|
|
1417
|
+
for (const o of Vn) {
|
|
1418
1418
|
const i = r.filter((a) => o.matches(a, t));
|
|
1419
1419
|
if (i.length === 0) continue;
|
|
1420
1420
|
const s = i.reduce(
|
|
1421
1421
|
(a, u) => (u.minQuantity ?? 0) >= (a.minQuantity ?? 0) ? u : a
|
|
1422
1422
|
);
|
|
1423
1423
|
return {
|
|
1424
|
-
unitPriceCents:
|
|
1424
|
+
unitPriceCents: zn(s, e.listPriceCents),
|
|
1425
1425
|
sourceKey: (s.minQuantity ?? 0) > 1 ? "tier" : o.key,
|
|
1426
1426
|
ruleId: s.id
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
1429
|
return { unitPriceCents: e.listPriceCents, sourceKey: "list" };
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function zn(e, t) {
|
|
1432
1432
|
return e.unitPriceCents != null ? e.unitPriceCents : e.discountPercent != null ? V(t * (1 - e.discountPercent / 100)) : t;
|
|
1433
1433
|
}
|
|
1434
|
-
const
|
|
1435
|
-
function
|
|
1434
|
+
const ga = ["piece", "hour", "day", "month", "km", "license"], ya = /* @__PURE__ */ new Set(["mail", "message"]);
|
|
1435
|
+
function Xn(e, t) {
|
|
1436
1436
|
const n = e.settings?.signatures?.[t];
|
|
1437
1437
|
return !n?.enabled || !n.body || n.body.trim() === "" ? null : n;
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function ba(e, t, n, r = "html") {
|
|
1440
1440
|
if (!e) return n;
|
|
1441
|
-
const o =
|
|
1441
|
+
const o = Xn(e, t);
|
|
1442
1442
|
return o ? `${n}${r === "text" ? `
|
|
1443
1443
|
|
|
1444
1444
|
` : t === "mail" ? "<br><br>-- <br>" : "<br><br>"}${o.body}` : n;
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function _a(e) {
|
|
1447
1447
|
return e.endpoints ?? [];
|
|
1448
1448
|
}
|
|
1449
1449
|
function $(e) {
|
|
@@ -1451,18 +1451,18 @@ function $(e) {
|
|
|
1451
1451
|
if (t)
|
|
1452
1452
|
return t.split(/[-_]/)[0] || void 0;
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Aa(e) {
|
|
1455
1455
|
return $(e.contactLocale) ?? $(e.companyLocale) ?? $(e.organizationLocale);
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Sa(e, t, n, r) {
|
|
1458
1458
|
const o = e.filter((a) => a.key === t && !a.archived);
|
|
1459
1459
|
if (o.length === 0) return;
|
|
1460
1460
|
const i = $(n), s = $(r);
|
|
1461
1461
|
return o.find((a) => $(a.locale) === i) ?? o.find((a) => $(a.locale) === s) ?? // A row with no language at all is the single-language case: it is for everybody.
|
|
1462
1462
|
o.find((a) => !a.locale) ?? o[0];
|
|
1463
1463
|
}
|
|
1464
|
-
const
|
|
1465
|
-
function
|
|
1464
|
+
const Yn = /\{([a-zA-Z0-9_.]+)\}/g;
|
|
1465
|
+
function Dt(e, t) {
|
|
1466
1466
|
let n = e;
|
|
1467
1467
|
for (const r of t.split(".")) {
|
|
1468
1468
|
if (n == null || typeof n != "object") return;
|
|
@@ -1470,33 +1470,33 @@ function Rt(e, t) {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
return n;
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function qn(e) {
|
|
1474
1474
|
return typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Qn(e, t, n) {
|
|
1477
1477
|
const r = [];
|
|
1478
|
-
return { text: e.replace(
|
|
1479
|
-
const a =
|
|
1480
|
-
return a == null || a === "" ? (r.includes(s) || r.push(s), n ?? `{${s}}`) :
|
|
1478
|
+
return { text: e.replace(Yn, (i, s) => {
|
|
1479
|
+
const a = Dt(t, s);
|
|
1480
|
+
return a == null || a === "" ? (r.includes(s) || r.push(s), n ?? `{${s}}`) : qn(a);
|
|
1481
1481
|
}), unresolved: r };
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function Zn(e, t) {
|
|
1484
1484
|
if (!e) return !0;
|
|
1485
|
-
const n =
|
|
1485
|
+
const n = Dt(t, e.key);
|
|
1486
1486
|
if (e.exists !== void 0) {
|
|
1487
1487
|
const r = n != null && n !== "" && n !== !1;
|
|
1488
1488
|
return e.exists ? r : !r;
|
|
1489
1489
|
}
|
|
1490
1490
|
return e.equals !== void 0 ? n === e.equals : !0;
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function Ea(e, t, n, r, o) {
|
|
1493
1493
|
const i = [], s = [], a = /* @__PURE__ */ new Set(), u = (l) => {
|
|
1494
|
-
const d =
|
|
1494
|
+
const d = Qn(l, t, o);
|
|
1495
1495
|
for (const c of d.unresolved) i.includes(c) || i.push(c);
|
|
1496
1496
|
return d.text;
|
|
1497
1497
|
};
|
|
1498
1498
|
for (const l of e) {
|
|
1499
|
-
if (l.block_id && !
|
|
1499
|
+
if (l.block_id && !Zn(n?.[l.block_id], t)) continue;
|
|
1500
1500
|
const d = l.block_id ? r?.[l.block_id] : void 0;
|
|
1501
1501
|
if (d && l.block_id) {
|
|
1502
1502
|
a.add(l.block_id), s.push(...d);
|
|
@@ -1586,7 +1586,7 @@ function Aa(e, t, n, r, o) {
|
|
|
1586
1586
|
unusedSlots: Object.keys(r ?? {}).filter((l) => !a.has(l))
|
|
1587
1587
|
};
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function Jn(e) {
|
|
1590
1590
|
const t = e?.address, n = [t?.street, t?.houseNumber].filter(Boolean).join(" "), r = [t?.postalCode, t?.city].filter(Boolean).join(" ");
|
|
1591
1591
|
return {
|
|
1592
1592
|
name: e?.name ?? "",
|
|
@@ -1600,8 +1600,8 @@ function Zn(e) {
|
|
|
1600
1600
|
...e?.logo ? { logo: e.logo } : {}
|
|
1601
1601
|
};
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1604
|
-
return
|
|
1603
|
+
function Ta(e) {
|
|
1604
|
+
return Jn({
|
|
1605
1605
|
name: e?.billing?.companyName || e?.name || e?.displayName || "",
|
|
1606
1606
|
address: e?.address,
|
|
1607
1607
|
kvkNumber: e?.billing?.kvkNumber,
|
|
@@ -1611,24 +1611,24 @@ function Sa(e) {
|
|
|
1611
1611
|
logo: e?.logo
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
1614
|
-
const
|
|
1614
|
+
const er = 36e5, tr = 864e5, L = -1 / 0, Ia = (e) => e.score > L, te = {
|
|
1615
1615
|
urgent: 40,
|
|
1616
1616
|
high: 25,
|
|
1617
1617
|
normal: 10,
|
|
1618
1618
|
low: 0
|
|
1619
1619
|
};
|
|
1620
|
-
function
|
|
1620
|
+
function ka(e) {
|
|
1621
1621
|
return Object.fromEntries(e.map((t) => [t.resourceId, t]));
|
|
1622
1622
|
}
|
|
1623
|
-
const
|
|
1624
|
-
function
|
|
1625
|
-
return !!(e &&
|
|
1623
|
+
const nr = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|newsletter|nieuwsbrief|mailer|mailing|notifications?|bounce|postmaster|marketing)@/i, $t = /\b(unsubscribe|afmelden|uitschrijven|opt[\s-]?out|manage (your )?preferences|geen (e-?mails?|nieuwsbrief|berichten) meer)\b/i;
|
|
1624
|
+
function rr(e, t) {
|
|
1625
|
+
return !!(e && nr.test(e) || t && $t.test(t));
|
|
1626
1626
|
}
|
|
1627
|
-
const
|
|
1628
|
-
function
|
|
1629
|
-
return e >=
|
|
1627
|
+
const or = 3, ir = 600;
|
|
1628
|
+
function wa(e, t) {
|
|
1629
|
+
return e >= or || t >= ir;
|
|
1630
1630
|
}
|
|
1631
|
-
const
|
|
1631
|
+
const sr = [
|
|
1632
1632
|
"list-unsubscribe",
|
|
1633
1633
|
"list-unsubscribe-post",
|
|
1634
1634
|
"list-id",
|
|
@@ -1638,93 +1638,93 @@ const ir = [
|
|
|
1638
1638
|
"feedback-id",
|
|
1639
1639
|
"x-mailer"
|
|
1640
1640
|
];
|
|
1641
|
-
function
|
|
1641
|
+
function va(e) {
|
|
1642
1642
|
const t = {};
|
|
1643
1643
|
for (const n of e) {
|
|
1644
1644
|
const r = n.name?.toLowerCase();
|
|
1645
|
-
r && n.value !== void 0 &&
|
|
1645
|
+
r && n.value !== void 0 && sr.includes(r) && (t[r] = n.value);
|
|
1646
1646
|
}
|
|
1647
1647
|
return t;
|
|
1648
1648
|
}
|
|
1649
|
-
const
|
|
1650
|
-
function
|
|
1649
|
+
const ar = /(^|[._+-])(no-?reply|noreply|donotreply|do-not-reply|notifications?|bounce|postmaster|mailer)@/i, cr = /(^|[._+-])(newsletter|nieuwsbrief|marketing|mailing)@/i;
|
|
1650
|
+
function Ma(e) {
|
|
1651
1651
|
const t = e.headers ?? {}, n = e.from?.email, r = t["auto-submitted"]?.toLowerCase();
|
|
1652
|
-
if (r && r !== "no" || t["x-auto-response-suppress"] || n &&
|
|
1652
|
+
if (r && r !== "no" || t["x-auto-response-suppress"] || n && ar.test(n))
|
|
1653
1653
|
return "automated";
|
|
1654
1654
|
const o = t.precedence?.toLowerCase();
|
|
1655
|
-
if (t["list-unsubscribe"] || t["list-unsubscribe-post"] || t["list-id"] || o === "bulk" || o === "list" || e.body &&
|
|
1655
|
+
if (t["list-unsubscribe"] || t["list-unsubscribe-post"] || t["list-id"] || o === "bulk" || o === "list" || e.body && $t.test(e.body) || n && cr.test(n))
|
|
1656
1656
|
return "marketing";
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function lr(e, t) {
|
|
1659
1659
|
return e.lastActivityAt ? !(e.seenBy ?? []).includes(t) : !1;
|
|
1660
1660
|
}
|
|
1661
|
-
const
|
|
1661
|
+
const ur = ["open"], dr = 1e3, pr = {
|
|
1662
1662
|
urgent: 1,
|
|
1663
1663
|
high: 4,
|
|
1664
1664
|
normal: 8,
|
|
1665
1665
|
low: 24
|
|
1666
|
-
},
|
|
1667
|
-
function
|
|
1668
|
-
return e.lastActivityAt ?? (e.createdAt ? new Date(
|
|
1666
|
+
}, fr = 72;
|
|
1667
|
+
function mr(e) {
|
|
1668
|
+
return e.lastActivityAt ?? (e.createdAt ? new Date(An(e)).getTime() : 0);
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1671
|
-
return
|
|
1670
|
+
function hr(e, t) {
|
|
1671
|
+
return gr(t.remindersById?.[e.id], e, t.now);
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function gr(e, t, n) {
|
|
1674
1674
|
return !e || e.remindAt <= n ? !1 : !((t.lastActivityAt ?? 0) > e.parkedAt && t.lastActivityPreview?.direction === "inbound");
|
|
1675
1675
|
}
|
|
1676
|
-
const
|
|
1677
|
-
function
|
|
1678
|
-
return Math.max(0, (t -
|
|
1676
|
+
const Lt = (e) => mn(e) === "outbound_message", Pt = (e) => ur.includes(e);
|
|
1677
|
+
function Ne(e, t) {
|
|
1678
|
+
return Math.max(0, (t - mr(e)) / er);
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function yr(e, t) {
|
|
1681
1681
|
const n = e.assignedInboxId ? t?.[e.assignedInboxId] : void 0;
|
|
1682
|
-
return typeof n == "number" && n > 0 ? n :
|
|
1682
|
+
return typeof n == "number" && n > 0 ? n : pr[e.priority ?? "normal"];
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function Ca(e) {
|
|
1685
1685
|
const t = {};
|
|
1686
1686
|
for (const n of e)
|
|
1687
1687
|
typeof n.slaHours == "number" && n.slaHours > 0 && (t[n.id] = n.slaHours);
|
|
1688
1688
|
return t;
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
return !
|
|
1690
|
+
function Oa(e, t, n) {
|
|
1691
|
+
return !Pt(e.status) || e.firstResponseAt ? !1 : Ne(e, t) > yr(e, n);
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function br(e, t) {
|
|
1694
1694
|
const n = e.lastActivityPreview;
|
|
1695
|
-
return n?.direction !== "outbound" ||
|
|
1695
|
+
return n?.direction !== "outbound" || !Lt(n.type) ? !1 : Ne(e, t) < fr;
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1698
|
-
if (!
|
|
1697
|
+
function xa(e, t) {
|
|
1698
|
+
if (!Pt(e.status)) return { score: L, reasons: [] };
|
|
1699
1699
|
if (e.snoozedTill && e.snoozedTill > t.now) return { score: L, reasons: [] };
|
|
1700
|
-
if (
|
|
1701
|
-
if (
|
|
1700
|
+
if (br(e, t.now)) return { score: L, reasons: [] };
|
|
1701
|
+
if (hr(e, t)) return { score: L, reasons: [] };
|
|
1702
1702
|
let n = 0;
|
|
1703
1703
|
const r = [], o = e.priority ?? "normal";
|
|
1704
|
-
te[o] > 0 && (n += te[o], r.push(`priority:${o}`)),
|
|
1705
|
-
const i =
|
|
1704
|
+
te[o] > 0 && (n += te[o], r.push(`priority:${o}`)), lr(e, t.userId) && (n += 20, r.push("unseen")), e.assignedUserId && e.assignedUserId === t.userId && (n += 15, r.push("assigned-to-you"));
|
|
1705
|
+
const i = Ne(e, t.now);
|
|
1706
1706
|
if (i > 0) {
|
|
1707
1707
|
const u = Math.min(i * 2, 30);
|
|
1708
1708
|
n += u, i >= 1 && r.push(`waiting:${Math.round(i)}h`);
|
|
1709
1709
|
}
|
|
1710
1710
|
const s = e.lastActivityPreview;
|
|
1711
|
-
return s?.type === "AI_ACTION_PROPOSED" && (n += 30, r.push("awaiting-approval")), s?.direction === "outbound" &&
|
|
1711
|
+
return s?.type === "AI_ACTION_PROPOSED" && (n += 30, r.push("awaiting-approval")), s?.direction === "outbound" && Lt(s.type) && (n += 10, r.push("no-reply")), !e.firstResponseAt && e.lastActivityPreview?.direction === "inbound" && (n += 10, r.push("awaiting-reply")), (e.tags?.some((u) => u === "marketing" || u === "automated") || rr(e.remoteParty?.resource, e.lastActivityPreview?.snippet)) && (n -= dr, r.push("bulk")), { score: n, reasons: r };
|
|
1712
1712
|
}
|
|
1713
|
-
const
|
|
1713
|
+
const Na = (e) => !!e.assignedUserId || !!e.assignedInboxId, Ra = (e) => e.status === "closed", Da = (e) => ({
|
|
1714
1714
|
urgent: 10,
|
|
1715
1715
|
high: 5,
|
|
1716
1716
|
normal: 2,
|
|
1717
1717
|
low: 1
|
|
1718
|
-
})[e.priority] || 0,
|
|
1719
|
-
function
|
|
1718
|
+
})[e.priority] || 0, $a = (e, t = 30) => e.title?.length <= t ? e.title : `${e.title.substring(0, t)}...`;
|
|
1719
|
+
function La(e, t) {
|
|
1720
1720
|
const n = e.labels ?? [];
|
|
1721
1721
|
return n.find((r) => r.locale === t)?.label ?? n[0]?.label ?? e.url;
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function Pa(e, t, n) {
|
|
1724
1724
|
const r = e.translations ?? [];
|
|
1725
1725
|
return r.find((o) => o.locale === t) ?? (n ? r.find((o) => o.locale === n) : void 0) ?? { locale: t };
|
|
1726
1726
|
}
|
|
1727
|
-
const
|
|
1727
|
+
const rt = [
|
|
1728
1728
|
{ code: "nl", label: "Nederlands", english: "Dutch" },
|
|
1729
1729
|
{ code: "en", label: "English", english: "English" },
|
|
1730
1730
|
{ code: "de", label: "Deutsch", english: "German" },
|
|
@@ -1739,36 +1739,36 @@ const nt = [
|
|
|
1739
1739
|
{ code: "fi", label: "Suomi", english: "Finnish" },
|
|
1740
1740
|
{ code: "tr", label: "Türkçe", english: "Turkish" }
|
|
1741
1741
|
];
|
|
1742
|
-
function
|
|
1742
|
+
function Kt(e) {
|
|
1743
1743
|
const t = (e ?? "").toLowerCase();
|
|
1744
|
-
return
|
|
1744
|
+
return rt.find((n) => n.code === t) ?? rt.find((n) => n.code === t.split("-")[0]);
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1747
|
-
return
|
|
1746
|
+
function Ka(e) {
|
|
1747
|
+
return Kt(e)?.label ?? e;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1750
|
-
const t =
|
|
1749
|
+
function Ua(e) {
|
|
1750
|
+
const t = Kt(e);
|
|
1751
1751
|
return t ? t.english === t.label ? `${t.english} (${t.code})` : `${t.english} — ${t.label} (${t.code})` : e;
|
|
1752
1752
|
}
|
|
1753
|
-
const
|
|
1754
|
-
function
|
|
1753
|
+
const Ut = 3;
|
|
1754
|
+
function _r(e, t) {
|
|
1755
1755
|
const n = /* @__PURE__ */ new Set();
|
|
1756
1756
|
let r = 1, o = t.get(e)?.parentId;
|
|
1757
1757
|
for (; o; ) {
|
|
1758
|
-
if (n.has(o) || (n.add(o), r++, r >
|
|
1758
|
+
if (n.has(o) || (n.add(o), r++, r > Ut + 1)) return 1 / 0;
|
|
1759
1759
|
o = t.get(o)?.parentId;
|
|
1760
1760
|
}
|
|
1761
1761
|
return r;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function Fa(e, t, n) {
|
|
1764
1764
|
if (!e) return !0;
|
|
1765
1765
|
if (e === t) return !1;
|
|
1766
1766
|
const r = new Map(n.map((s) => [s.id, s]));
|
|
1767
|
-
if (!r.has(e) || t &&
|
|
1768
|
-
const o =
|
|
1769
|
-
return o + i <=
|
|
1767
|
+
if (!r.has(e) || t && Ar(e, t, r)) return !1;
|
|
1768
|
+
const o = _r(e, r), i = t ? Ft(t, n) : 1;
|
|
1769
|
+
return o + i <= Ut;
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function Ar(e, t, n) {
|
|
1772
1772
|
const r = /* @__PURE__ */ new Set();
|
|
1773
1773
|
let o = n.get(e)?.parentId;
|
|
1774
1774
|
for (; o; ) {
|
|
@@ -1778,48 +1778,48 @@ function _r(e, t, n) {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
return !1;
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Ft(e, t, n = /* @__PURE__ */ new Set()) {
|
|
1782
1782
|
if (n.has(e)) return 1;
|
|
1783
1783
|
n.add(e);
|
|
1784
1784
|
const r = t.filter((o) => o.parentId === e);
|
|
1785
|
-
return r.length ? 1 + Math.max(...r.map((o) =>
|
|
1785
|
+
return r.length ? 1 + Math.max(...r.map((o) => Ft(o.id, t, n))) : 1;
|
|
1786
1786
|
}
|
|
1787
|
-
const
|
|
1788
|
-
function
|
|
1789
|
-
return e.defaultLocale || e.locale ||
|
|
1787
|
+
const Sr = "en";
|
|
1788
|
+
function Er(e) {
|
|
1789
|
+
return e.defaultLocale || e.locale || Sr;
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function Ba(e) {
|
|
1792
1792
|
const t = /* @__PURE__ */ new Set(), n = [];
|
|
1793
|
-
for (const r of [
|
|
1793
|
+
for (const r of [Er(e), ...e.locales ?? []])
|
|
1794
1794
|
!r || t.has(r) || (t.add(r), n.push(r));
|
|
1795
1795
|
return n;
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function ja(e, t, n) {
|
|
1798
1798
|
const r = e.translations ?? [];
|
|
1799
1799
|
return r.find((o) => o.locale === t)?.name ?? (n ? r.find((o) => o.locale === n)?.name : void 0) ?? e.name;
|
|
1800
1800
|
}
|
|
1801
|
-
const
|
|
1802
|
-
function
|
|
1801
|
+
const ot = ["lookup", "condition", "parallel", "for-each"];
|
|
1802
|
+
function de(e) {
|
|
1803
1803
|
for (const t of e) {
|
|
1804
|
-
if (!
|
|
1805
|
-
return `staptype "${t.type}" mag niet meelezen (alleen ${
|
|
1804
|
+
if (!ot.includes(t.type))
|
|
1805
|
+
return `staptype "${t.type}" mag niet meelezen (alleen ${ot.join(", ")})`;
|
|
1806
1806
|
if (t.type === "parallel")
|
|
1807
1807
|
for (const n of t.branches ?? []) {
|
|
1808
|
-
const r =
|
|
1808
|
+
const r = de(n);
|
|
1809
1809
|
if (r) return r;
|
|
1810
1810
|
}
|
|
1811
1811
|
if (t.type === "for-each") {
|
|
1812
|
-
const n =
|
|
1812
|
+
const n = de(t.body ?? []);
|
|
1813
1813
|
if (n) return n;
|
|
1814
1814
|
}
|
|
1815
1815
|
if (t.type === "condition") {
|
|
1816
|
-
const n =
|
|
1816
|
+
const n = de(t.else ?? []);
|
|
1817
1817
|
if (n) return n;
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
1820
|
return null;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function Tr(e, t) {
|
|
1823
1823
|
switch (e.kind) {
|
|
1824
1824
|
case "org":
|
|
1825
1825
|
return !0;
|
|
@@ -1829,29 +1829,29 @@ function Er(e, t) {
|
|
|
1829
1829
|
return e.userId === t.userId;
|
|
1830
1830
|
}
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1833
|
-
return e.filter((n) => n.enabled &&
|
|
1832
|
+
function Ha(e, t) {
|
|
1833
|
+
return e.filter((n) => n.enabled && Tr(n.ownerScope, t));
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Ga(e) {
|
|
1836
1836
|
return e.credentialScope ? e.credentialScope : (e.authMode ?? "header") === "header" || e.oauth?.scope === "org" ? "shared" : "per-user";
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function Wa(e) {
|
|
1839
1839
|
return `mcp__${e}__`;
|
|
1840
1840
|
}
|
|
1841
|
-
const
|
|
1842
|
-
function
|
|
1841
|
+
const Va = 1e3, za = 2e3, Xa = 500, Ya = 12e3, qa = 4e3, Ir = ["contact", "company", "work_item"];
|
|
1842
|
+
function Qa(e) {
|
|
1843
1843
|
if (!e) return !1;
|
|
1844
1844
|
const t = e.slice(0, e.indexOf(":"));
|
|
1845
|
-
return
|
|
1845
|
+
return Ir.includes(t);
|
|
1846
1846
|
}
|
|
1847
|
-
const
|
|
1847
|
+
const Za = [
|
|
1848
1848
|
{ key: "high", label: "tax_high", percent: 21, kind: "standard" },
|
|
1849
1849
|
{ key: "low", label: "tax_low", percent: 9, kind: "reduced" },
|
|
1850
1850
|
{ key: "zero", label: "tax_zero", percent: 0, kind: "zero" },
|
|
1851
1851
|
{ key: "reverse_charge", label: "tax_reverse_charge", percent: 0, kind: "reverse_charge" },
|
|
1852
1852
|
{ key: "exempt", label: "tax_exempt", percent: 0, kind: "exempt" }
|
|
1853
1853
|
];
|
|
1854
|
-
function
|
|
1854
|
+
function kr(e, t) {
|
|
1855
1855
|
return t.find((n) => n.key === e) ?? {
|
|
1856
1856
|
key: e,
|
|
1857
1857
|
label: e,
|
|
@@ -1859,13 +1859,13 @@ function Ir(e, t) {
|
|
|
1859
1859
|
kind: "zero"
|
|
1860
1860
|
};
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function wr(e) {
|
|
1863
1863
|
if (e.kind !== "product") return 0;
|
|
1864
1864
|
const t = 1 - (e.discountPercent ?? 0) / 100;
|
|
1865
1865
|
return V(e.quantity * e.unitPriceCents * t);
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1868
|
-
const r = e.map((l) => ({ ...l, netCents:
|
|
1867
|
+
function Ja(e, t, n) {
|
|
1868
|
+
const r = e.map((l) => ({ ...l, netCents: wr(l), taxCents: 0 })), o = /* @__PURE__ */ new Map();
|
|
1869
1869
|
for (let l = 0; l < r.length; l++) {
|
|
1870
1870
|
if (r[l].kind !== "product" || r[l].optional) continue;
|
|
1871
1871
|
const d = n ?? r[l].taxRateKey, c = o.get(d);
|
|
@@ -1874,7 +1874,7 @@ function Qa(e, t, n) {
|
|
|
1874
1874
|
const i = [];
|
|
1875
1875
|
let s = 0, a = 0;
|
|
1876
1876
|
for (const [l, d] of o) {
|
|
1877
|
-
const c =
|
|
1877
|
+
const c = kr(l, t), p = d.reduce((m, E) => m + r[E].netCents, 0), f = V(p * c.percent / 100), y = Gn(
|
|
1878
1878
|
f,
|
|
1879
1879
|
d.map((m) => r[m].netCents)
|
|
1880
1880
|
);
|
|
@@ -1896,7 +1896,7 @@ function Qa(e, t, n) {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
};
|
|
1898
1898
|
}
|
|
1899
|
-
const
|
|
1899
|
+
const ec = "onboarding-source", tc = ["support", "billing", "availability", "sales", "onboarding"], nc = ["keep", "replace"], Re = [
|
|
1900
1900
|
{
|
|
1901
1901
|
key: "shift",
|
|
1902
1902
|
label: "kind_shift",
|
|
@@ -1970,44 +1970,44 @@ const Za = "onboarding-source", Ja = ["support", "billing", "availability", "sal
|
|
|
1970
1970
|
absent: !0,
|
|
1971
1971
|
icon: "party-popper"
|
|
1972
1972
|
}
|
|
1973
|
-
],
|
|
1973
|
+
], vr = {
|
|
1974
1974
|
key: "unknown",
|
|
1975
1975
|
label: "kind_unknown",
|
|
1976
1976
|
capacity: !1,
|
|
1977
1977
|
productive: !1,
|
|
1978
1978
|
absent: !1
|
|
1979
1979
|
};
|
|
1980
|
-
function N(e, t =
|
|
1981
|
-
return t.find((n) => n.key === e) ?? { ...
|
|
1980
|
+
function N(e, t = Re) {
|
|
1981
|
+
return t.find((n) => n.key === e) ?? { ...vr, key: e };
|
|
1982
1982
|
}
|
|
1983
1983
|
function z(e) {
|
|
1984
1984
|
return e === "published" || e === "approved";
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1986
|
+
function Bt(e, t, n = Re) {
|
|
1987
1987
|
if (e.workstreamId !== t) return !1;
|
|
1988
1988
|
const r = N(e.kindKey, n);
|
|
1989
1989
|
return r.absent ? !1 : r.productive || r.capacity;
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function rc(e, t = Re) {
|
|
1992
1992
|
if (!e.userId || !z(e.status)) return !1;
|
|
1993
1993
|
const n = N(e.kindKey, t);
|
|
1994
1994
|
return n.capacity || n.productive || n.absent;
|
|
1995
1995
|
}
|
|
1996
|
-
const
|
|
1997
|
-
function
|
|
1998
|
-
return Math.round((t - e) /
|
|
1999
|
-
}
|
|
2000
|
-
function Bt(e, t) {
|
|
2001
|
-
const n = e.cycleMinutes.length;
|
|
2002
|
-
return n === 0 ? 0 : (Mr(e.anchor, t) % n + n) % n;
|
|
1996
|
+
const Mr = 864e5;
|
|
1997
|
+
function Cr(e, t) {
|
|
1998
|
+
return Math.round((t - e) / Mr);
|
|
2003
1999
|
}
|
|
2004
2000
|
function jt(e, t) {
|
|
2005
|
-
|
|
2001
|
+
const n = e.cycleMinutes.length;
|
|
2002
|
+
return n === 0 ? 0 : (Cr(e.anchor, t) % n + n) % n;
|
|
2006
2003
|
}
|
|
2007
2004
|
function Ht(e, t) {
|
|
2008
|
-
return e.
|
|
2005
|
+
return e.effectiveFrom !== void 0 && t < e.effectiveFrom ? 0 : e.cycleMinutes[jt(e, t)] ?? 0;
|
|
2009
2006
|
}
|
|
2010
|
-
function Gt(e, t
|
|
2007
|
+
function Gt(e, t) {
|
|
2008
|
+
return e.startTimes?.[jt(e, t)];
|
|
2009
|
+
}
|
|
2010
|
+
function Wt(e, t, n, r) {
|
|
2011
2011
|
const o = e.filter(
|
|
2012
2012
|
(a) => a.effectiveFrom === void 0 || a.effectiveFrom <= r
|
|
2013
2013
|
), i = (a) => a.sort((u, l) => (l.effectiveFrom ?? 0) - (u.effectiveFrom ?? 0))[0], s = i(o.filter((a) => a.userId === t));
|
|
@@ -2015,22 +2015,22 @@ function Gt(e, t, n, r) {
|
|
|
2015
2015
|
o.filter((a) => !a.userId && a.teamId && n.includes(a.teamId))
|
|
2016
2016
|
);
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function Or(e, t, n) {
|
|
2019
2019
|
return e.filter(
|
|
2020
2020
|
(r) => r.userId === t && (r.effectiveFrom === void 0 || r.effectiveFrom <= n)
|
|
2021
2021
|
).sort((r, o) => (o.effectiveFrom ?? 0) - (r.effectiveFrom ?? 0))[0];
|
|
2022
2022
|
}
|
|
2023
|
-
const
|
|
2024
|
-
function
|
|
2025
|
-
const t = Math.max(1, Math.round((e.to - e.from) /
|
|
2026
|
-
return Array.from({ length: t }, (n, r) => e.from + r *
|
|
2023
|
+
const _e = 864e5;
|
|
2024
|
+
function xr(e) {
|
|
2025
|
+
const t = Math.max(1, Math.round((e.to - e.from) / _e));
|
|
2026
|
+
return Array.from({ length: t }, (n, r) => e.from + r * _e);
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2028
|
+
function Ae(e, t, n, r) {
|
|
2029
2029
|
const o = Math.min(t, r) - Math.max(e, n);
|
|
2030
2030
|
return o > 0 ? o / 1e3 : 0;
|
|
2031
2031
|
}
|
|
2032
|
-
const
|
|
2033
|
-
function
|
|
2032
|
+
const it = { interval: 0, day: 1, week: 2 };
|
|
2033
|
+
function oc(e, t) {
|
|
2034
2034
|
const { entries: n, patterns: r = [], terms: o = [] } = t, i = n.filter(
|
|
2035
2035
|
(c) => c.userId && z(c.status) && N(c.kindKey).capacity
|
|
2036
2036
|
), s = n.filter(
|
|
@@ -2044,32 +2044,32 @@ function nc(e, t) {
|
|
|
2044
2044
|
].filter((c) => !!c), u = {};
|
|
2045
2045
|
let l = "interval";
|
|
2046
2046
|
const d = (c) => {
|
|
2047
|
-
|
|
2047
|
+
it[c] > it[l] && (l = c);
|
|
2048
2048
|
};
|
|
2049
2049
|
for (const c of a) {
|
|
2050
2050
|
const p = t.teamIdsOf?.(c) ?? [];
|
|
2051
2051
|
let f = 0, y = 0, m = 0;
|
|
2052
|
-
for (const h of
|
|
2053
|
-
const S = Math.max(h, e.from), x = Math.min(h +
|
|
2052
|
+
for (const h of xr(e)) {
|
|
2053
|
+
const S = Math.max(h, e.from), x = Math.min(h + _e, e.to);
|
|
2054
2054
|
m++;
|
|
2055
|
-
const C = i.filter((w) => w.userId === c).reduce((w,
|
|
2055
|
+
const C = i.filter((w) => w.userId === c).reduce((w, Fe) => w + Ae(Fe.start, Fe.end, S, x), 0);
|
|
2056
2056
|
if (C > 0) {
|
|
2057
2057
|
f += C;
|
|
2058
2058
|
continue;
|
|
2059
2059
|
}
|
|
2060
|
-
const v =
|
|
2060
|
+
const v = Wt(r, c, p, h), O = v ? Ht(v, h) : 0;
|
|
2061
2061
|
if (v && O > 0) {
|
|
2062
|
-
f += O * 60, d(
|
|
2062
|
+
f += O * 60, d(Gt(v, h) ? "interval" : "day");
|
|
2063
2063
|
continue;
|
|
2064
2064
|
}
|
|
2065
2065
|
v || y++;
|
|
2066
2066
|
}
|
|
2067
2067
|
if (y > 0) {
|
|
2068
|
-
const h =
|
|
2068
|
+
const h = Or(o, c, e.from);
|
|
2069
2069
|
h && (f += h.weeklyMinutes * 60 * (y / 7), d("week"));
|
|
2070
2070
|
}
|
|
2071
2071
|
const E = s.filter((h) => h.userId === c).reduce(
|
|
2072
|
-
(h, S) => h +
|
|
2072
|
+
(h, S) => h + Ae(S.start, S.end, e.from, e.to),
|
|
2073
2073
|
0
|
|
2074
2074
|
), g = Math.max(0, f - E);
|
|
2075
2075
|
(g > 0 || m > 0) && (u[c] = g);
|
|
@@ -2080,7 +2080,7 @@ function nc(e, t) {
|
|
|
2080
2080
|
byUser: u
|
|
2081
2081
|
};
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function ic(e, t) {
|
|
2084
2084
|
if (!e.some((a) => a.userId)) return [];
|
|
2085
2085
|
const n = "", r = /* @__PURE__ */ new Map();
|
|
2086
2086
|
for (const a of e) {
|
|
@@ -2103,7 +2103,7 @@ function rc(e, t) {
|
|
|
2103
2103
|
const s = r.get(n) ?? 0;
|
|
2104
2104
|
return s > 0 && i.push({ requiredSeconds: s, capacitySeconds: 0, netSeconds: -s }), i;
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function sc(e, t, n, r) {
|
|
2107
2107
|
const o = e.filter(
|
|
2108
2108
|
(s) => s.userId && z(s.status) && !N(s.kindKey).absent
|
|
2109
2109
|
), i = Object.entries(r.byUser).map(
|
|
@@ -2111,8 +2111,8 @@ function oc(e, t, n, r) {
|
|
|
2111
2111
|
let u = 0, l = 0;
|
|
2112
2112
|
for (const d of o) {
|
|
2113
2113
|
if (d.userId !== s || N(d.kindKey).capacity && !d.workstreamId) continue;
|
|
2114
|
-
const c =
|
|
2115
|
-
c <= 0 || (
|
|
2114
|
+
const c = Ae(d.start, d.end, n.from, n.to);
|
|
2115
|
+
c <= 0 || (Bt(d, t) ? u += c : l += c);
|
|
2116
2116
|
}
|
|
2117
2117
|
return {
|
|
2118
2118
|
userId: s,
|
|
@@ -2125,68 +2125,68 @@ function oc(e, t, n, r) {
|
|
|
2125
2125
|
);
|
|
2126
2126
|
return i.sort((s, a) => a.freeSeconds - s.freeSeconds), i;
|
|
2127
2127
|
}
|
|
2128
|
-
const
|
|
2129
|
-
function
|
|
2128
|
+
const ac = "demand-source", st = 1e3;
|
|
2129
|
+
function Nr(e, t) {
|
|
2130
2130
|
let n = 1;
|
|
2131
2131
|
for (let r = 1; r <= e; r++)
|
|
2132
2132
|
n = t * n / (r + t * n);
|
|
2133
2133
|
return n;
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function Rr(e, t) {
|
|
2136
2136
|
if (e <= 0) return 1;
|
|
2137
2137
|
if (t <= 0) return 0;
|
|
2138
2138
|
if (e <= t) return 1;
|
|
2139
|
-
const n =
|
|
2139
|
+
const n = Nr(e, t), r = t / e;
|
|
2140
2140
|
return n / (1 - r * (1 - n));
|
|
2141
2141
|
}
|
|
2142
|
-
function
|
|
2143
|
-
return r <= 0 ? 1 : e <= t ? 0 : 1 -
|
|
2142
|
+
function Dr(e, t, n, r) {
|
|
2143
|
+
return r <= 0 ? 1 : e <= t ? 0 : 1 - Rr(e, t) * Math.exp(-(e - t) * n / r);
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2145
|
+
function $r(e, t, n) {
|
|
2146
2146
|
return n <= 0 ? 0 : e * t / n;
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2148
|
+
function Lr(e, t, n, r) {
|
|
2149
2149
|
if (e <= 0 || t <= 0) return 0;
|
|
2150
|
-
const o =
|
|
2150
|
+
const o = $r(e, t, n);
|
|
2151
2151
|
if (o <= 0) return 0;
|
|
2152
2152
|
const i = r.serviceLevelPercent / 100, s = r.maxOccupancyPercent ? r.maxOccupancyPercent / 100 : void 0;
|
|
2153
|
-
for (let a = Math.max(1, Math.ceil(o)); a <=
|
|
2154
|
-
if (!(a <= o) && !(
|
|
2153
|
+
for (let a = Math.max(1, Math.ceil(o)); a <= st; a++)
|
|
2154
|
+
if (!(a <= o) && !(Dr(a, o, r.targetSeconds, t) < i) && !(s && o / a > s))
|
|
2155
2155
|
return a;
|
|
2156
|
-
return
|
|
2156
|
+
return st;
|
|
2157
2157
|
}
|
|
2158
|
-
const
|
|
2159
|
-
function
|
|
2160
|
-
return e === "day" ?
|
|
2158
|
+
const Pr = 36e5, Kr = 864e5;
|
|
2159
|
+
function Ur(e) {
|
|
2160
|
+
return e === "day" ? Kr : Pr;
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2162
|
+
function cc(e, t) {
|
|
2163
2163
|
return e.start < t.end && t.start < e.end;
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2165
|
+
function pe(e, t, n) {
|
|
2166
2166
|
const r = Math.min(e.end, n) - Math.max(e.start, t);
|
|
2167
2167
|
return r > 0 ? r / 1e3 : 0;
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function Fr(e, t, n) {
|
|
2170
2170
|
const r = e.handleSeconds ?? 0, o = e.seconds ?? (e.volume !== void 0 ? e.volume * r : 0);
|
|
2171
2171
|
if (o <= 0 && !e.volume) return { seconds: 0, headcount: 0 };
|
|
2172
2172
|
const i = (t.unplannedLossPercent ?? 0) / 100, s = i > 0 && i < 1 ? 1 / (1 - i) : 1;
|
|
2173
2173
|
if (t.model === "queue" && e.volume !== void 0 && r > 0) {
|
|
2174
|
-
const a =
|
|
2174
|
+
const a = Lr(e.volume, r, n, t);
|
|
2175
2175
|
return { seconds: o, headcount: a * s };
|
|
2176
2176
|
}
|
|
2177
2177
|
return { seconds: o, headcount: o / n * s };
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
const { entries: t, workstreamId: n, staffing: r, demand: o, range: i } = e, s = e.grain ?? "hour", a =
|
|
2179
|
+
function lc(e) {
|
|
2180
|
+
const { entries: t, workstreamId: n, staffing: r, demand: o, range: i } = e, s = e.grain ?? "hour", a = Ur(s), u = a / 1e3, l = e.kinds, d = t.filter((m) => z(m.status)), c = d.filter((m) => Bt(m, n, l)), p = d.filter((m) => N(m.kindKey, l).capacity), f = d.filter((m) => N(m.kindKey, l).absent), y = [];
|
|
2181
2181
|
for (let m = W(i.from, s); m < i.to; m += a) {
|
|
2182
2182
|
const E = m + a, g = G(m, s);
|
|
2183
2183
|
let h = 0;
|
|
2184
|
-
for (const w of c) h +=
|
|
2184
|
+
for (const w of c) h += pe(w, m, E);
|
|
2185
2185
|
let S = 0;
|
|
2186
|
-
for (const w of p) S +=
|
|
2186
|
+
for (const w of p) S += pe(w, m, E);
|
|
2187
2187
|
let x = 0;
|
|
2188
|
-
for (const w of f) x +=
|
|
2189
|
-
const C = o?.[g] ?? {}, v =
|
|
2188
|
+
for (const w of f) x += pe(w, m, E);
|
|
2189
|
+
const C = o?.[g] ?? {}, v = Fr(C, r, u), O = h / u;
|
|
2190
2190
|
y.push({
|
|
2191
2191
|
period: g,
|
|
2192
2192
|
forecastVolume: C.volume,
|
|
@@ -2201,27 +2201,27 @@ function ac(e) {
|
|
|
2201
2201
|
}
|
|
2202
2202
|
return y;
|
|
2203
2203
|
}
|
|
2204
|
-
function
|
|
2204
|
+
function Br(e, t) {
|
|
2205
2205
|
return e.workTypeKey ?? t?.defaultWorkTypeKey;
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2208
|
-
const r =
|
|
2207
|
+
function uc(e, t, n) {
|
|
2208
|
+
const r = Br(e, t);
|
|
2209
2209
|
return r ? n.find((o) => o.key === r)?.defaultBillable ?? !1 : !1;
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function dc(e) {
|
|
2212
2212
|
return e.filter(
|
|
2213
2213
|
(t) => t.netHeadcount < 0 && t.requiredHeadcount > 0
|
|
2214
2214
|
);
|
|
2215
2215
|
}
|
|
2216
|
-
const
|
|
2217
|
-
function
|
|
2216
|
+
const jr = 36e5, Se = 6048e5, Hr = 8, Gr = 0.5, Wr = 2;
|
|
2217
|
+
function Vr(e) {
|
|
2218
2218
|
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;
|
|
2219
2219
|
return Date.UTC(t, n - 1, r, o);
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2221
|
+
function zr(e, t, n) {
|
|
2222
2222
|
const r = [];
|
|
2223
2223
|
for (let i = 0; i < n; i++) {
|
|
2224
|
-
const s = t - i *
|
|
2224
|
+
const s = t - i * Se, a = s - Se;
|
|
2225
2225
|
let u = 0, l = !1;
|
|
2226
2226
|
for (const [d, c] of e)
|
|
2227
2227
|
d >= a && d < s && (u += c, l = !0);
|
|
@@ -2229,65 +2229,65 @@ function Vr(e, t, n) {
|
|
|
2229
2229
|
}
|
|
2230
2230
|
if (r.length < 2) return 1;
|
|
2231
2231
|
const o = r.reduce((i, s) => i + s, 0) / r.length;
|
|
2232
|
-
return o <= 0 ? 1 : Math.min(
|
|
2232
|
+
return o <= 0 ? 1 : Math.min(Wr, Math.max(Gr, r[0] / o));
|
|
2233
2233
|
}
|
|
2234
|
-
function
|
|
2234
|
+
function Xr(e, t) {
|
|
2235
2235
|
if (!e?.length) return;
|
|
2236
2236
|
let n;
|
|
2237
2237
|
for (const r of e)
|
|
2238
2238
|
t >= r.from && t < r.to && (n = r);
|
|
2239
2239
|
return n;
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2242
|
-
const r = Math.max(1, n?.weeks ??
|
|
2241
|
+
function pc(e, t, n) {
|
|
2242
|
+
const r = Math.max(1, n?.weeks ?? Hr), o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
|
|
2243
2243
|
for (const u of e)
|
|
2244
|
-
o.set(
|
|
2245
|
-
const s =
|
|
2246
|
-
for (let u = W(t.from, "hour"); u < t.to; u +=
|
|
2244
|
+
o.set(Vr(u.period), u.value), i.add(u.period.slice(0, 10));
|
|
2245
|
+
const s = zr(o, W(t.from, "hour"), r), a = [];
|
|
2246
|
+
for (let u = W(t.from, "hour"); u < t.to; u += jr) {
|
|
2247
2247
|
let l = 0, d = 0;
|
|
2248
2248
|
for (let f = 1; f <= r; f++) {
|
|
2249
|
-
const y = u - f *
|
|
2249
|
+
const y = u - f * Se, E = o.get(y) ?? (i.has(G(y, "day")) ? 0 : void 0);
|
|
2250
2250
|
if (E === void 0) continue;
|
|
2251
2251
|
const g = r - f + 1;
|
|
2252
2252
|
l += E * g, d += g;
|
|
2253
2253
|
}
|
|
2254
2254
|
let c = d > 0 ? l / d * s : 0;
|
|
2255
|
-
const p =
|
|
2255
|
+
const p = Xr(n?.adjustments, u);
|
|
2256
2256
|
p?.absoluteVolume !== void 0 ? c = p.absoluteVolume : p?.factor !== void 0 && (c *= p.factor), a.push({ period: G(u, "hour"), volume: c });
|
|
2257
2257
|
}
|
|
2258
2258
|
return a;
|
|
2259
2259
|
}
|
|
2260
|
-
const
|
|
2261
|
-
function
|
|
2262
|
-
return `${Xr}:${e}`;
|
|
2263
|
-
}
|
|
2264
|
-
function pc(e) {
|
|
2260
|
+
const Yr = "schedule_entry", qr = "workstream";
|
|
2261
|
+
function fc(e) {
|
|
2265
2262
|
return `${Yr}:${e}`;
|
|
2266
2263
|
}
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2264
|
+
function mc(e) {
|
|
2265
|
+
return `${qr}:${e}`;
|
|
2266
|
+
}
|
|
2267
|
+
const Ee = 36e5, U = 864e5;
|
|
2268
|
+
function Qr(e, t) {
|
|
2269
|
+
const n = t === "day" ? U : Ee, r = [];
|
|
2270
2270
|
for (let o = W(e.from, t); o < e.to; o += n) r.push(o);
|
|
2271
2271
|
return r;
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function at(e) {
|
|
2274
2274
|
const t = Math.max(1, Math.round((e.to - e.from) / U));
|
|
2275
2275
|
return Array.from({ length: t }, (n, r) => e.from + r * U);
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function fe(e, t, n, r) {
|
|
2278
2278
|
const o = Math.min(t, r) - Math.max(e, n);
|
|
2279
2279
|
return o > 0 ? o / 1e3 : 0;
|
|
2280
2280
|
}
|
|
2281
|
-
function
|
|
2282
|
-
const r = n.grain ?? "hour", o =
|
|
2281
|
+
function hc(e, t, n = {}) {
|
|
2282
|
+
const r = n.grain ?? "hour", o = Qr(t, r), i = r === "day" ? U : Ee, s = new Map(o.map((c) => [c, 0])), a = e.filter((c) => c.userId && N(c.kindKey).capacity), u = n.userIds?.length ? new Set(n.userIds) : null, l = /* @__PURE__ */ new Set();
|
|
2283
2283
|
for (const c of a)
|
|
2284
2284
|
if (!(u && c.userId && !u.has(c.userId))) {
|
|
2285
2285
|
for (const p of o) {
|
|
2286
|
-
const f =
|
|
2286
|
+
const f = fe(c.start, c.end, p, p + i);
|
|
2287
2287
|
f > 0 && s.set(p, (s.get(p) ?? 0) + f);
|
|
2288
2288
|
}
|
|
2289
|
-
for (const p of
|
|
2290
|
-
|
|
2289
|
+
for (const p of at(t))
|
|
2290
|
+
fe(c.start, c.end, p, p + U) > 0 && l.add(`${c.userId}:${p}`);
|
|
2291
2291
|
}
|
|
2292
2292
|
const d = n.userIds ?? [
|
|
2293
2293
|
.../* @__PURE__ */ new Set([
|
|
@@ -2298,17 +2298,17 @@ function fc(e, t, n = {}) {
|
|
|
2298
2298
|
if (n.patterns?.length)
|
|
2299
2299
|
for (const c of d) {
|
|
2300
2300
|
const p = n.teamIdsOf?.(c) ?? [];
|
|
2301
|
-
for (const f of
|
|
2301
|
+
for (const f of at(t)) {
|
|
2302
2302
|
if (l.has(`${c}:${f}`)) continue;
|
|
2303
|
-
const y =
|
|
2303
|
+
const y = Wt(n.patterns, c, p, f);
|
|
2304
2304
|
if (!y) continue;
|
|
2305
|
-
const m =
|
|
2305
|
+
const m = Ht(y, f);
|
|
2306
2306
|
if (m <= 0) continue;
|
|
2307
|
-
const E =
|
|
2307
|
+
const E = Gt(y, f);
|
|
2308
2308
|
if (E) {
|
|
2309
|
-
const [S, x] = E.split(":").map(Number), C = f + S *
|
|
2309
|
+
const [S, x] = E.split(":").map(Number), C = f + S * Ee + (x ?? 0) * 6e4, v = C + m * 6e4;
|
|
2310
2310
|
for (const O of o) {
|
|
2311
|
-
const w =
|
|
2311
|
+
const w = fe(C, v, O, O + i);
|
|
2312
2312
|
w > 0 && s.set(O, (s.get(O) ?? 0) + w);
|
|
2313
2313
|
}
|
|
2314
2314
|
continue;
|
|
@@ -2321,7 +2321,7 @@ function fc(e, t, n = {}) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
return o.map((c) => ({ period: G(c, r), weight: s.get(c) ?? 0 }));
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function Zr(e, t) {
|
|
2325
2325
|
if (e <= 0 || !t.length) return [];
|
|
2326
2326
|
const n = t.reduce((r, o) => r + Math.max(0, o.weight), 0);
|
|
2327
2327
|
if (n <= 0) {
|
|
@@ -2330,11 +2330,11 @@ function Qr(e, t) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
return t.filter((r) => r.weight > 0).map((r) => ({ period: r.period, seconds: e * r.weight / n }));
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function gc(e, t, n) {
|
|
2334
2334
|
const r = /* @__PURE__ */ new Map();
|
|
2335
2335
|
for (const o of e) {
|
|
2336
2336
|
const i = o.by ? t.filter((a) => n(a.period) < o.by) : t, s = i.length ? i : t;
|
|
2337
|
-
for (const a of
|
|
2337
|
+
for (const a of Zr(o.seconds, s)) {
|
|
2338
2338
|
const u = `${a.period}|${o.userId ?? ""}`, l = r.get(u);
|
|
2339
2339
|
l ? l.seconds += a.seconds : r.set(u, { ...a, userId: o.userId });
|
|
2340
2340
|
}
|
|
@@ -2343,7 +2343,7 @@ function mc(e, t, n) {
|
|
|
2343
2343
|
(o, i) => o.period.localeCompare(i.period) || (o.userId ?? "").localeCompare(i.userId ?? "")
|
|
2344
2344
|
);
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2346
|
+
function Jr(e) {
|
|
2347
2347
|
switch (e.kind) {
|
|
2348
2348
|
case "user":
|
|
2349
2349
|
return `user:${e.userId}`;
|
|
@@ -2353,7 +2353,7 @@ function Zr(e) {
|
|
|
2353
2353
|
return "org";
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function yc(e) {
|
|
2357
2357
|
if (typeof e != "string") return;
|
|
2358
2358
|
const t = e.trim();
|
|
2359
2359
|
if (t === "org") return { kind: "org" };
|
|
@@ -2365,10 +2365,10 @@ function hc(e) {
|
|
|
2365
2365
|
if (r === "team") return { kind: "team", teamId: o };
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
|
-
function Jr(e) {
|
|
2369
|
-
return Zr(e);
|
|
2370
|
-
}
|
|
2371
2368
|
function eo(e) {
|
|
2369
|
+
return Jr(e);
|
|
2370
|
+
}
|
|
2371
|
+
function to(e) {
|
|
2372
2372
|
switch (e.kind) {
|
|
2373
2373
|
case "personal":
|
|
2374
2374
|
return { kind: "user", userId: e.userId };
|
|
@@ -2378,14 +2378,14 @@ function eo(e) {
|
|
|
2378
2378
|
return { kind: "org" };
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
|
-
const
|
|
2382
|
-
function
|
|
2383
|
-
return e.agentId ? { kind: "user", userId: e.agentId } :
|
|
2381
|
+
const no = to;
|
|
2382
|
+
function bc(e) {
|
|
2383
|
+
return e.agentId ? { kind: "user", userId: e.agentId } : no(e.ownerScope);
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2386
|
-
return
|
|
2385
|
+
function _c(e) {
|
|
2386
|
+
return eo(e);
|
|
2387
2387
|
}
|
|
2388
|
-
function
|
|
2388
|
+
function Ac(e, t) {
|
|
2389
2389
|
if (!t) return;
|
|
2390
2390
|
let n = e;
|
|
2391
2391
|
for (const r of t.split(".")) {
|
|
@@ -2394,24 +2394,35 @@ function bc(e, t) {
|
|
|
2394
2394
|
}
|
|
2395
2395
|
return n;
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function Sc(e, t) {
|
|
2398
2398
|
return e.targets.find((n) => n.activityTypes.includes(t));
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function Ec(e, t) {
|
|
2401
2401
|
if (t)
|
|
2402
2402
|
return e.targets.find((n) => n.id === t);
|
|
2403
2403
|
}
|
|
2404
|
-
function
|
|
2404
|
+
function ro(e) {
|
|
2405
2405
|
return e?.kind === "assignment";
|
|
2406
2406
|
}
|
|
2407
|
-
function
|
|
2407
|
+
function Tc(e) {
|
|
2408
2408
|
const { trigger: t, agentId: n, target: r, activityType: o, assigneeUserId: i, authorUserId: s } = e;
|
|
2409
|
-
return
|
|
2409
|
+
return ro(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";
|
|
2410
|
+
}
|
|
2411
|
+
function Ic(e) {
|
|
2412
|
+
return ne(e).replace(/__/g, " · ").replace(/\./g, " · ").replace(/_/g, " ");
|
|
2413
|
+
}
|
|
2414
|
+
function ne(e) {
|
|
2415
|
+
return e.startsWith("tool:") ? e.slice(5) : e;
|
|
2416
|
+
}
|
|
2417
|
+
function oo(e) {
|
|
2418
|
+
const t = ne(e).split("__");
|
|
2419
|
+
return t[t.length - 1] || ne(e);
|
|
2410
2420
|
}
|
|
2411
|
-
function
|
|
2412
|
-
|
|
2421
|
+
function kc(e) {
|
|
2422
|
+
const t = oo(e).replace(/[_.]+/g, " ").trim();
|
|
2423
|
+
return t ? t.charAt(0).toUpperCase() + t.slice(1) : ne(e);
|
|
2413
2424
|
}
|
|
2414
|
-
const
|
|
2425
|
+
const wc = [
|
|
2415
2426
|
{ name: "text", type: "string" },
|
|
2416
2427
|
{ name: "subject", type: "string" },
|
|
2417
2428
|
{ name: "from", type: "string" },
|
|
@@ -2451,7 +2462,7 @@ const Tc = [
|
|
|
2451
2462
|
// `buildTriggerVars` cannot fill it itself: the job does that with the catalog in hand, before
|
|
2452
2463
|
// the trigger filter runs — like contactId/companyId above.
|
|
2453
2464
|
{ name: "assigneeUserId", type: "string" }
|
|
2454
|
-
],
|
|
2465
|
+
], vc = {
|
|
2455
2466
|
topics: [
|
|
2456
2467
|
{ name: "topicId", type: "string" },
|
|
2457
2468
|
{ name: "topic", type: "string" },
|
|
@@ -2465,58 +2476,58 @@ const Tc = [
|
|
|
2465
2476
|
// Deliberately empty: the fields come from `ClassifyStep.fields` and so differ per step.
|
|
2466
2477
|
extract: []
|
|
2467
2478
|
};
|
|
2468
|
-
function
|
|
2479
|
+
function io(e) {
|
|
2469
2480
|
return `${e.type}:${e.id}`;
|
|
2470
2481
|
}
|
|
2471
|
-
const
|
|
2472
|
-
function
|
|
2473
|
-
return e?.type ===
|
|
2482
|
+
const so = "interaction";
|
|
2483
|
+
function ao(e) {
|
|
2484
|
+
return e?.type === so ? e.id : void 0;
|
|
2474
2485
|
}
|
|
2475
|
-
const
|
|
2476
|
-
function
|
|
2486
|
+
const co = 64, lo = 8e3;
|
|
2487
|
+
function Mc(e) {
|
|
2477
2488
|
const t = typeof e == "number" ? e : Number(String(e ?? "").trim());
|
|
2478
2489
|
if (!(!Number.isFinite(t) || t <= 0))
|
|
2479
|
-
return Math.min(Math.max(Math.round(t),
|
|
2490
|
+
return Math.min(Math.max(Math.round(t), co), lo);
|
|
2480
2491
|
}
|
|
2481
|
-
const
|
|
2482
|
-
function
|
|
2492
|
+
const Cc = { kind: "workflow", steps: [] };
|
|
2493
|
+
function Oc(e) {
|
|
2483
2494
|
return e?.kind === "workflow" ? e.steps : [];
|
|
2484
2495
|
}
|
|
2485
|
-
function
|
|
2496
|
+
function xc(e) {
|
|
2486
2497
|
return e?.kind === "procedure" ? e.procedure : void 0;
|
|
2487
2498
|
}
|
|
2488
|
-
function
|
|
2499
|
+
function uo(e) {
|
|
2489
2500
|
const t = e?.approved ?? 0, n = t + (e?.rejected ?? 0);
|
|
2490
2501
|
return { total: n, rate: n ? t / n : 0 };
|
|
2491
2502
|
}
|
|
2492
|
-
const
|
|
2493
|
-
function
|
|
2494
|
-
const { total: t, rate: n } =
|
|
2495
|
-
return t >=
|
|
2503
|
+
const po = 10, fo = 0.9;
|
|
2504
|
+
function Nc(e) {
|
|
2505
|
+
const { total: t, rate: n } = uo(e);
|
|
2506
|
+
return t >= po && n >= fo;
|
|
2496
2507
|
}
|
|
2497
|
-
const
|
|
2498
|
-
function
|
|
2499
|
-
return
|
|
2508
|
+
const mo = ["done", "escalated", "failed", "stopped"];
|
|
2509
|
+
function Rc(e) {
|
|
2510
|
+
return mo.includes(e);
|
|
2500
2511
|
}
|
|
2501
|
-
function
|
|
2512
|
+
function ho(e) {
|
|
2502
2513
|
return e === "waiting";
|
|
2503
2514
|
}
|
|
2504
|
-
function
|
|
2505
|
-
return e === "running" ||
|
|
2515
|
+
function Dc(e) {
|
|
2516
|
+
return e === "running" || ho(e);
|
|
2506
2517
|
}
|
|
2507
|
-
function
|
|
2518
|
+
function Vt(e) {
|
|
2508
2519
|
return e.subjectKind && e.subjectId ? { type: e.subjectKind, id: e.subjectId } : void 0;
|
|
2509
2520
|
}
|
|
2510
|
-
function
|
|
2511
|
-
const t =
|
|
2512
|
-
return t ?
|
|
2521
|
+
function $c(e) {
|
|
2522
|
+
const t = Vt(e);
|
|
2523
|
+
return t ? io(t) : void 0;
|
|
2513
2524
|
}
|
|
2514
|
-
function
|
|
2515
|
-
return
|
|
2525
|
+
function Lc(e) {
|
|
2526
|
+
return ao(Vt(e));
|
|
2516
2527
|
}
|
|
2517
|
-
function
|
|
2528
|
+
function Pc(e) {
|
|
2518
2529
|
const t = [], n = /* @__PURE__ */ new Map();
|
|
2519
|
-
for (const r of [...e].sort(
|
|
2530
|
+
for (const r of [...e].sort(go)) {
|
|
2520
2531
|
const o = n.get(r.emoji);
|
|
2521
2532
|
if (o) {
|
|
2522
2533
|
o.push(r.actor);
|
|
@@ -2529,58 +2540,58 @@ function Dc(e) {
|
|
|
2529
2540
|
return { emoji: r, count: o.length, actors: o };
|
|
2530
2541
|
}).sort((r, o) => o.count - r.count || t.indexOf(r.emoji) - t.indexOf(o.emoji));
|
|
2531
2542
|
}
|
|
2532
|
-
const
|
|
2533
|
-
function
|
|
2543
|
+
const go = (e, t) => (e.createdAt ?? 0) - (t.createdAt ?? 0);
|
|
2544
|
+
function Kc(e, t) {
|
|
2534
2545
|
return t ? e.actors.some((n) => n.type === "user" && n.id === t) : !1;
|
|
2535
2546
|
}
|
|
2536
|
-
const
|
|
2537
|
-
function
|
|
2547
|
+
const Te = 6e4, yo = 36e5, X = 864e5, zt = 800;
|
|
2548
|
+
function ct(e, t) {
|
|
2538
2549
|
const n = Date.UTC(e, t + 1, 0);
|
|
2539
|
-
return n - new Date(n).getUTCDay() * X +
|
|
2550
|
+
return n - new Date(n).getUTCDay() * X + yo;
|
|
2540
2551
|
}
|
|
2541
|
-
function
|
|
2552
|
+
function bo(e) {
|
|
2542
2553
|
const t = new Date(e).getUTCFullYear();
|
|
2543
|
-
return e >=
|
|
2554
|
+
return e >= ct(t, 2) && e < ct(t, 9);
|
|
2544
2555
|
}
|
|
2545
|
-
function
|
|
2546
|
-
const n = t.dst === "eu" &&
|
|
2547
|
-
return (t.utcOffsetMinutes + n) *
|
|
2556
|
+
function Xt(e, t) {
|
|
2557
|
+
const n = t.dst === "eu" && bo(e) ? 60 : 0;
|
|
2558
|
+
return (t.utcOffsetMinutes + n) * Te;
|
|
2548
2559
|
}
|
|
2549
|
-
function
|
|
2560
|
+
function _o(e) {
|
|
2550
2561
|
return (e + 3) % 7 + 1;
|
|
2551
2562
|
}
|
|
2552
|
-
function
|
|
2553
|
-
const n =
|
|
2554
|
-
if (!t.days.includes(
|
|
2563
|
+
function Yt(e, t) {
|
|
2564
|
+
const n = Xt(e, t), r = e + n, o = Math.floor(r / X);
|
|
2565
|
+
if (!t.days.includes(_o(o))) return null;
|
|
2555
2566
|
const i = o * X;
|
|
2556
2567
|
return {
|
|
2557
|
-
open: i + t.fromMinutes *
|
|
2558
|
-
close: i + t.toMinutes *
|
|
2568
|
+
open: i + t.fromMinutes * Te - n,
|
|
2569
|
+
close: i + t.toMinutes * Te - n
|
|
2559
2570
|
};
|
|
2560
2571
|
}
|
|
2561
|
-
function
|
|
2562
|
-
const n =
|
|
2572
|
+
function qt(e, t) {
|
|
2573
|
+
const n = Xt(e, t), r = e + n;
|
|
2563
2574
|
return (Math.floor(r / X) + 1) * X - n;
|
|
2564
2575
|
}
|
|
2565
|
-
function
|
|
2576
|
+
function Ie(e, t, n) {
|
|
2566
2577
|
if (t <= e) return 0;
|
|
2567
2578
|
if (!n) return t - e;
|
|
2568
2579
|
let r = 0, o = e;
|
|
2569
|
-
for (let i = 0; i <
|
|
2570
|
-
const s =
|
|
2580
|
+
for (let i = 0; i < zt && o < t; i++) {
|
|
2581
|
+
const s = Yt(o, n);
|
|
2571
2582
|
if (s) {
|
|
2572
2583
|
const a = Math.max(o, s.open), u = Math.min(t, s.close);
|
|
2573
2584
|
u > a && (r += u - a);
|
|
2574
2585
|
}
|
|
2575
|
-
o =
|
|
2586
|
+
o = qt(o, n);
|
|
2576
2587
|
}
|
|
2577
2588
|
return r;
|
|
2578
2589
|
}
|
|
2579
|
-
function
|
|
2590
|
+
function De(e, t, n) {
|
|
2580
2591
|
if (!n) return e + t;
|
|
2581
2592
|
let r = t, o = e;
|
|
2582
|
-
for (let i = 0; i <
|
|
2583
|
-
const s =
|
|
2593
|
+
for (let i = 0; i < zt; i++) {
|
|
2594
|
+
const s = Yt(o, n);
|
|
2584
2595
|
if (s) {
|
|
2585
2596
|
const a = Math.max(o, s.open);
|
|
2586
2597
|
if (s.close > a) {
|
|
@@ -2589,78 +2600,78 @@ function Re(e, t, n) {
|
|
|
2589
2600
|
r -= u;
|
|
2590
2601
|
}
|
|
2591
2602
|
}
|
|
2592
|
-
o =
|
|
2603
|
+
o = qt(o, n);
|
|
2593
2604
|
}
|
|
2594
2605
|
return e + t;
|
|
2595
2606
|
}
|
|
2596
|
-
function
|
|
2607
|
+
function Uc(e) {
|
|
2597
2608
|
const t = /^([01]\d|2[0-3]):([0-5]\d)$/.exec(e);
|
|
2598
2609
|
return t ? Number(t[1]) * 60 + Number(t[2]) : null;
|
|
2599
2610
|
}
|
|
2600
|
-
const
|
|
2601
|
-
function
|
|
2602
|
-
return e === "snoozed" ?
|
|
2611
|
+
const ke = 1, we = 2, ve = 4;
|
|
2612
|
+
function Fc(e) {
|
|
2613
|
+
return e === "snoozed" ? ke : we;
|
|
2603
2614
|
}
|
|
2604
|
-
function
|
|
2615
|
+
function $e(e) {
|
|
2605
2616
|
const t = e.calendar;
|
|
2606
2617
|
return t && Array.isArray(t.days) ? t : null;
|
|
2607
2618
|
}
|
|
2608
|
-
const
|
|
2619
|
+
const Bc = [
|
|
2609
2620
|
"speed_of_answer",
|
|
2610
2621
|
"first_response",
|
|
2611
2622
|
"next_response",
|
|
2612
2623
|
"resolution",
|
|
2613
2624
|
"close"
|
|
2614
|
-
],
|
|
2625
|
+
], jc = ["snoozed", "waiting_for_customer"], Ao = 6e4, Qt = ["speed_of_answer", "first_response", "next_response"], So = [...Qt, "resolution", "close"];
|
|
2615
2626
|
function Y(e) {
|
|
2616
2627
|
return e.state === "running" || e.state === "paused";
|
|
2617
2628
|
}
|
|
2618
|
-
function
|
|
2629
|
+
function Eo(e, t) {
|
|
2619
2630
|
return Y(e) ? { state: (e.state === "paused" ? e.remainingMs > 0 : t <= e.dueAt) ? "hit" : "missed", settledAt: Math.max(t, e.startedAt) } : null;
|
|
2620
2631
|
}
|
|
2621
|
-
function
|
|
2632
|
+
function lt(e) {
|
|
2622
2633
|
return Y(e) ? { state: "void" } : null;
|
|
2623
2634
|
}
|
|
2624
|
-
function
|
|
2635
|
+
function To(e, t, n, r) {
|
|
2625
2636
|
if (!Y(e) || (e.pauseBits & t) !== 0) return null;
|
|
2626
2637
|
const o = e.pauseBits | t;
|
|
2627
|
-
return e.state === "paused" ? { pauseBits: o } : { pauseBits: o, state: "paused", remainingMs:
|
|
2638
|
+
return e.state === "paused" ? { pauseBits: o } : { pauseBits: o, state: "paused", remainingMs: Ie(n, e.dueAt, r) };
|
|
2628
2639
|
}
|
|
2629
|
-
function
|
|
2640
|
+
function Io(e, t, n, r) {
|
|
2630
2641
|
if (!Y(e) || (e.pauseBits & t) === 0) return null;
|
|
2631
2642
|
const o = e.pauseBits & ~t;
|
|
2632
|
-
return o !== 0 ? { pauseBits: o } : { pauseBits: o, state: "running", dueAt:
|
|
2643
|
+
return o !== 0 ? { pauseBits: o } : { pauseBits: o, state: "running", dueAt: De(n, e.remainingMs, r) };
|
|
2633
2644
|
}
|
|
2634
|
-
function
|
|
2635
|
-
const i =
|
|
2645
|
+
function Hc({ event: e, at: t, now: n, clocks: r, profile: o }) {
|
|
2646
|
+
const i = $e(o), s = Math.min(t, n), a = r.map((g) => ({ ...g })), u = [], l = (g, h) => {
|
|
2636
2647
|
h && (u.push({ op: "patch", clockId: g.id, patch: h }), Object.assign(g, h));
|
|
2637
2648
|
}, d = (g) => {
|
|
2638
2649
|
for (const h of a)
|
|
2639
|
-
h.metric === g && l(h,
|
|
2650
|
+
h.metric === g && l(h, Eo(h, s));
|
|
2640
2651
|
}, c = (g) => {
|
|
2641
2652
|
for (const h of a)
|
|
2642
|
-
g.includes(h.metric) && l(h,
|
|
2653
|
+
g.includes(h.metric) && l(h, lt(h));
|
|
2643
2654
|
}, p = (g) => {
|
|
2644
|
-
for (const h of a) l(h,
|
|
2655
|
+
for (const h of a) l(h, To(h, g, s, i));
|
|
2645
2656
|
}, f = (g) => {
|
|
2646
|
-
for (const h of a) l(h,
|
|
2657
|
+
for (const h of a) l(h, Io(h, g, s, i));
|
|
2647
2658
|
}, y = (g) => a.reduce((h, S) => S.metric === g ? Math.max(h, S.attempt) : h, 0) + 1, m = (g) => a.some((h) => h.metric === g && Y(h)), E = (g, h) => {
|
|
2648
2659
|
const S = o.targets.find((C) => C.metric === g);
|
|
2649
2660
|
if (!S) return;
|
|
2650
|
-
const x = S.minutes *
|
|
2661
|
+
const x = S.minutes * Ao;
|
|
2651
2662
|
u.push({
|
|
2652
2663
|
op: "start",
|
|
2653
2664
|
metric: g,
|
|
2654
2665
|
attempt: y(g),
|
|
2655
2666
|
startedAt: h,
|
|
2656
2667
|
targetMs: x,
|
|
2657
|
-
dueAt:
|
|
2668
|
+
dueAt: De(h, x, i)
|
|
2658
2669
|
});
|
|
2659
2670
|
};
|
|
2660
2671
|
switch (e) {
|
|
2661
2672
|
case "apply": {
|
|
2662
2673
|
for (const g of a)
|
|
2663
|
-
g.profileId !== o.id && l(g,
|
|
2674
|
+
g.profileId !== o.id && l(g, lt(g));
|
|
2664
2675
|
for (const g of o.targets) {
|
|
2665
2676
|
if (g.metric === "next_response") continue;
|
|
2666
2677
|
a.some(
|
|
@@ -2673,111 +2684,111 @@ function Fc({ event: e, at: t, now: n, clocks: r, profile: o }) {
|
|
|
2673
2684
|
d("speed_of_answer");
|
|
2674
2685
|
break;
|
|
2675
2686
|
case "outbound": {
|
|
2676
|
-
d("first_response"), d("next_response"), o.pauseOn.includes("waiting_for_customer") && p(
|
|
2687
|
+
d("first_response"), d("next_response"), o.pauseOn.includes("waiting_for_customer") && p(we);
|
|
2677
2688
|
break;
|
|
2678
2689
|
}
|
|
2679
2690
|
case "inbound": {
|
|
2680
|
-
f(
|
|
2691
|
+
f(we), !m("first_response") && !m("next_response") && E("next_response", s);
|
|
2681
2692
|
break;
|
|
2682
2693
|
}
|
|
2683
2694
|
case "resolved":
|
|
2684
2695
|
d("resolution");
|
|
2685
2696
|
break;
|
|
2686
2697
|
case "closed":
|
|
2687
|
-
d("close"), d("resolution"), c(
|
|
2698
|
+
d("close"), d("resolution"), c(Qt);
|
|
2688
2699
|
break;
|
|
2689
2700
|
case "reopened":
|
|
2690
2701
|
m("resolution") || E("resolution", s), m("close") || E("close", s);
|
|
2691
2702
|
break;
|
|
2692
2703
|
case "snoozed":
|
|
2693
|
-
o.pauseOn.includes("snoozed") && p(
|
|
2704
|
+
o.pauseOn.includes("snoozed") && p(ke);
|
|
2694
2705
|
break;
|
|
2695
2706
|
case "unsnoozed":
|
|
2696
|
-
f(
|
|
2707
|
+
f(ke);
|
|
2697
2708
|
break;
|
|
2698
2709
|
// Not gated on `profile.pauseOn`, unlike the two above: this is a person deciding about
|
|
2699
2710
|
// one conversation, not a profile setting. `resumeAll` only lifts the bit it is given, so
|
|
2700
2711
|
// an `inbound` arriving meanwhile clears `waiting_for_customer` and the clock stays held.
|
|
2701
2712
|
case "hold":
|
|
2702
|
-
p(
|
|
2713
|
+
p(ve);
|
|
2703
2714
|
break;
|
|
2704
2715
|
case "unhold":
|
|
2705
|
-
f(
|
|
2716
|
+
f(ve);
|
|
2706
2717
|
break;
|
|
2707
2718
|
case "discarded":
|
|
2708
|
-
c(
|
|
2719
|
+
c(So);
|
|
2709
2720
|
break;
|
|
2710
2721
|
}
|
|
2711
2722
|
return u;
|
|
2712
2723
|
}
|
|
2713
|
-
function
|
|
2724
|
+
function ko(e) {
|
|
2714
2725
|
return e.state === "running" || e.state === "paused";
|
|
2715
2726
|
}
|
|
2716
|
-
function
|
|
2717
|
-
return (e.pauseBits &
|
|
2727
|
+
function Gc(e) {
|
|
2728
|
+
return (e.pauseBits & ve) !== 0;
|
|
2718
2729
|
}
|
|
2719
|
-
function
|
|
2720
|
-
const n =
|
|
2721
|
-
return e.state === "paused" ? e.remainingMs : t >= e.dueAt ? -
|
|
2730
|
+
function Me(e, t) {
|
|
2731
|
+
const n = $e(e);
|
|
2732
|
+
return e.state === "paused" ? e.remainingMs : t >= e.dueAt ? -Ie(e.dueAt, t, n) : Ie(t, e.dueAt, n);
|
|
2722
2733
|
}
|
|
2723
|
-
function
|
|
2724
|
-
return e.state === "paused" ?
|
|
2734
|
+
function Wc(e, t) {
|
|
2735
|
+
return e.state === "paused" ? De(t, e.remainingMs, $e(e)) : e.dueAt;
|
|
2725
2736
|
}
|
|
2726
|
-
function
|
|
2727
|
-
const n = e.filter(
|
|
2737
|
+
function Vc(e, t) {
|
|
2738
|
+
const n = e.filter(ko);
|
|
2728
2739
|
if (!n.length) return;
|
|
2729
2740
|
const r = n.filter((i) => i.state === "running");
|
|
2730
2741
|
return (r.length ? r : n).reduce(
|
|
2731
|
-
(i, s) =>
|
|
2742
|
+
(i, s) => Me(s, t) < Me(i, t) ? s : i
|
|
2732
2743
|
);
|
|
2733
2744
|
}
|
|
2734
|
-
function
|
|
2745
|
+
function zc(e, t) {
|
|
2735
2746
|
if (e.state === "missed") return "breached";
|
|
2736
2747
|
if (e.state === "hit") return "met";
|
|
2737
2748
|
if (e.state === "paused") return "paused";
|
|
2738
2749
|
if (e.state === "void") return "met";
|
|
2739
|
-
const n =
|
|
2750
|
+
const n = Me(e, t);
|
|
2740
2751
|
return n <= 0 ? "breached" : n <= e.targetMs / 5 ? "urgent" : "running";
|
|
2741
2752
|
}
|
|
2742
|
-
function
|
|
2753
|
+
function Xc(e) {
|
|
2743
2754
|
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);
|
|
2744
2755
|
return n ? r ? `${n}d ${r}u` : `${n}d` : r ? o ? `${r}u ${o}m` : `${r}u` : o ? `${o}m` : `${t % 60}s`;
|
|
2745
2756
|
}
|
|
2746
|
-
const
|
|
2747
|
-
function
|
|
2748
|
-
return `${
|
|
2757
|
+
const wo = "strategy_item";
|
|
2758
|
+
function Zt(e) {
|
|
2759
|
+
return `${wo}:${e}`;
|
|
2749
2760
|
}
|
|
2750
|
-
function
|
|
2751
|
-
const n = /* @__PURE__ */ new Set([
|
|
2761
|
+
function Yc(e, t = 25) {
|
|
2762
|
+
const n = /* @__PURE__ */ new Set([Zt(e.id)]);
|
|
2752
2763
|
for (const r of e.ancestorKeys ?? []) n.add(r);
|
|
2753
2764
|
return Array.from(n).slice(0, t);
|
|
2754
2765
|
}
|
|
2755
|
-
function
|
|
2756
|
-
return e ? [...e.ancestorKeys ?? [],
|
|
2766
|
+
function qc(e) {
|
|
2767
|
+
return e ? [...e.ancestorKeys ?? [], Zt(e.id)] : [];
|
|
2757
2768
|
}
|
|
2758
|
-
const
|
|
2769
|
+
const ie = [
|
|
2759
2770
|
{ key: "area", label: "level_area", order: 10, measurable: !1, icon: "compass" },
|
|
2760
2771
|
{ key: "objective", label: "level_objective", order: 20, measurable: !0, icon: "target" },
|
|
2761
2772
|
{ key: "key_result", label: "level_key_result", order: 30, measurable: !0, icon: "gauge" }
|
|
2762
|
-
],
|
|
2763
|
-
function
|
|
2773
|
+
], vo = 999, Mo = 7;
|
|
2774
|
+
function Co(e, t = ie) {
|
|
2764
2775
|
return t.find((n) => n.key === e);
|
|
2765
2776
|
}
|
|
2766
|
-
function
|
|
2767
|
-
return
|
|
2777
|
+
function Ce(e, t = ie) {
|
|
2778
|
+
return Co(e, t)?.order ?? vo;
|
|
2768
2779
|
}
|
|
2769
|
-
function
|
|
2770
|
-
return
|
|
2780
|
+
function Qc(e, t, n = ie) {
|
|
2781
|
+
return Ce(t, n) <= Ce(e, n);
|
|
2771
2782
|
}
|
|
2772
|
-
function
|
|
2773
|
-
const n =
|
|
2783
|
+
function Zc(e, t = ie) {
|
|
2784
|
+
const n = Ce(e, t);
|
|
2774
2785
|
return t.filter((o) => o.order > n).sort((o, i) => o.order - i.order)[0]?.key ?? e;
|
|
2775
2786
|
}
|
|
2776
|
-
function
|
|
2787
|
+
function Jc(e) {
|
|
2777
2788
|
const t = e.trim().toLowerCase();
|
|
2778
2789
|
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;
|
|
2779
2790
|
}
|
|
2780
|
-
const
|
|
2791
|
+
const Oe = {
|
|
2781
2792
|
pending: "open",
|
|
2782
2793
|
on_track: "open",
|
|
2783
2794
|
at_risk: "open",
|
|
@@ -2786,74 +2797,74 @@ const Ce = {
|
|
|
2786
2797
|
achieved: "closed",
|
|
2787
2798
|
missed: "closed"
|
|
2788
2799
|
};
|
|
2789
|
-
function
|
|
2790
|
-
return
|
|
2800
|
+
function el(e) {
|
|
2801
|
+
return Oe[e] ?? "open";
|
|
2791
2802
|
}
|
|
2792
|
-
function
|
|
2793
|
-
return Object.keys(
|
|
2794
|
-
(t) => e.includes(
|
|
2803
|
+
function tl(e) {
|
|
2804
|
+
return Object.keys(Oe).filter(
|
|
2805
|
+
(t) => e.includes(Oe[t])
|
|
2795
2806
|
);
|
|
2796
2807
|
}
|
|
2797
|
-
const
|
|
2798
|
-
function
|
|
2808
|
+
const Oo = 864e5, se = (e) => e <= 0 ? 0 : e > 1 ? 1 : e;
|
|
2809
|
+
function nl(e, t) {
|
|
2799
2810
|
const { direction: n } = e, r = e.startValue ?? 0, o = e.targetValue ?? 0;
|
|
2800
2811
|
if (!Number.isFinite(t)) return 0;
|
|
2801
2812
|
const i = n === "down" ? t <= o : t >= o, s = o - r;
|
|
2802
|
-
return (n === "down" ? s < 0 : s > 0) ?
|
|
2813
|
+
return (n === "down" ? s < 0 : s > 0) ? se((t - r) / s) : i ? 1 : 0;
|
|
2803
2814
|
}
|
|
2804
|
-
function
|
|
2815
|
+
function rl(e, t) {
|
|
2805
2816
|
const { startDate: n, targetDate: r } = e;
|
|
2806
2817
|
if (!(typeof n != "number" || typeof r != "number") && !(r <= n))
|
|
2807
|
-
return
|
|
2818
|
+
return se((t - n) / (r - n));
|
|
2808
2819
|
}
|
|
2809
|
-
const
|
|
2810
|
-
function
|
|
2820
|
+
const xo = 0.1, No = 0.25;
|
|
2821
|
+
function ol(e, t) {
|
|
2811
2822
|
if (typeof e != "number" || typeof t != "number") return;
|
|
2812
2823
|
if (e >= 1) return "achieved";
|
|
2813
2824
|
const n = t - e;
|
|
2814
|
-
return n >=
|
|
2825
|
+
return n >= No ? "off_track" : n >= xo ? "at_risk" : "on_track";
|
|
2815
2826
|
}
|
|
2816
|
-
function
|
|
2827
|
+
function il(e, t) {
|
|
2817
2828
|
if (t)
|
|
2818
|
-
return
|
|
2829
|
+
return se(e / t);
|
|
2819
2830
|
}
|
|
2820
|
-
function
|
|
2831
|
+
function sl(e) {
|
|
2821
2832
|
const t = e.map((n) => n.progress?.ratio).filter((n) => typeof n == "number" && Number.isFinite(n));
|
|
2822
2833
|
if (t.length)
|
|
2823
|
-
return
|
|
2834
|
+
return se(t.reduce((n, r) => n + r, 0) / t.length);
|
|
2824
2835
|
}
|
|
2825
|
-
function
|
|
2836
|
+
function al(e, t) {
|
|
2826
2837
|
const n = e.lastCheckInAt ?? e.createdAt;
|
|
2827
2838
|
if (typeof n != "number") return 0;
|
|
2828
|
-
const r = (e.checkInEveryDays ??
|
|
2839
|
+
const r = (e.checkInEveryDays ?? Mo) * Oo, o = t - n - r;
|
|
2829
2840
|
return o > 0 ? o : 0;
|
|
2830
2841
|
}
|
|
2831
|
-
function
|
|
2842
|
+
function cl(e) {
|
|
2832
2843
|
return e.targetDate ?? Number.MAX_SAFE_INTEGER;
|
|
2833
2844
|
}
|
|
2834
|
-
function
|
|
2845
|
+
function ll(e, t) {
|
|
2835
2846
|
const n = e.accumulatedSeconds || 0;
|
|
2836
2847
|
return e.runningSince ? n + Math.max(0, Math.floor((t - e.runningSince) / 1e3)) : n;
|
|
2837
2848
|
}
|
|
2838
|
-
function
|
|
2849
|
+
function ul(e, t) {
|
|
2839
2850
|
const n = Math.max(1, Math.ceil(Math.max(0, e) / 60));
|
|
2840
2851
|
if (!t || t === "exact") return n * 60;
|
|
2841
2852
|
const r = Number(t);
|
|
2842
2853
|
return !Number.isFinite(r) || r <= 0 ? n * 60 : Math.ceil(n / r) * r * 60;
|
|
2843
2854
|
}
|
|
2844
|
-
function
|
|
2855
|
+
function dl(e) {
|
|
2845
2856
|
const t = Math.max(0, Math.round(e / 60));
|
|
2846
2857
|
return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
|
|
2847
2858
|
}
|
|
2848
|
-
function
|
|
2859
|
+
function pl(e) {
|
|
2849
2860
|
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);
|
|
2850
2861
|
return o > 0 ? `${o}:${n(r)}:${n(t % 60)}` : `${n(r)}:${n(t % 60)}`;
|
|
2851
2862
|
}
|
|
2852
|
-
function
|
|
2863
|
+
function Ro(e) {
|
|
2853
2864
|
return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
|
|
2854
2865
|
}
|
|
2855
|
-
function
|
|
2856
|
-
const n =
|
|
2866
|
+
function fl(e, t) {
|
|
2867
|
+
const n = Ro(e) || "werksoort", r = new Set(t);
|
|
2857
2868
|
if (!r.has(n)) return n;
|
|
2858
2869
|
for (let o = 2; o < 500; o++) {
|
|
2859
2870
|
const i = `${n}-${o}`;
|
|
@@ -2861,59 +2872,59 @@ function ul(e, t) {
|
|
|
2861
2872
|
}
|
|
2862
2873
|
return `${n}-${r.size + 1}`;
|
|
2863
2874
|
}
|
|
2864
|
-
function
|
|
2875
|
+
function ml(e, t) {
|
|
2865
2876
|
const n = e.ownerScope;
|
|
2866
2877
|
return !n || n.kind === "org" ? !0 : t.includes(n.teamId);
|
|
2867
2878
|
}
|
|
2868
|
-
function
|
|
2869
|
-
return e.filter((t) => !t.archived).sort(
|
|
2879
|
+
function hl(e) {
|
|
2880
|
+
return e.filter((t) => !t.archived).sort(Do);
|
|
2870
2881
|
}
|
|
2871
|
-
function
|
|
2882
|
+
function Do(e, t) {
|
|
2872
2883
|
const n = (e.order ?? 0) - (t.order ?? 0);
|
|
2873
2884
|
return n !== 0 ? n : (e.label || "").localeCompare(t.label || "");
|
|
2874
2885
|
}
|
|
2875
|
-
const
|
|
2886
|
+
const $o = 20, Lo = 20, me = 300;
|
|
2876
2887
|
function P(e) {
|
|
2877
2888
|
return e.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, " ").replace(/\s+/g, " ").trim();
|
|
2878
2889
|
}
|
|
2879
|
-
function
|
|
2890
|
+
function Po(e) {
|
|
2880
2891
|
const t = e.replace(/\s+/g, " ").trim();
|
|
2881
|
-
if (t.length <=
|
|
2882
|
-
const n = t.slice(0,
|
|
2883
|
-
return r >
|
|
2892
|
+
if (t.length <= me) return t;
|
|
2893
|
+
const n = t.slice(0, me), r = Math.max(n.lastIndexOf(". "), n.lastIndexOf("! "), n.lastIndexOf("? "));
|
|
2894
|
+
return r > me * 0.6 ? n.slice(0, r + 1) : `${n.trimEnd()}…`;
|
|
2884
2895
|
}
|
|
2885
|
-
function
|
|
2886
|
-
const n =
|
|
2896
|
+
function gl(e, t) {
|
|
2897
|
+
const n = Po(t.text), r = P(n);
|
|
2887
2898
|
if (!r || (e.examples ?? []).some((s) => P(s) === r)) return null;
|
|
2888
2899
|
const o = e.exampleCandidates ?? [], i = o.findIndex((s) => P(s.text) === r);
|
|
2889
2900
|
if (i >= 0) {
|
|
2890
2901
|
if (o[i].corrected || !t.corrected) return null;
|
|
2891
2902
|
const s = [...o];
|
|
2892
|
-
return s[i] = { ...s[i], corrected: !0, addedAt: t.addedAt },
|
|
2903
|
+
return s[i] = { ...s[i], corrected: !0, addedAt: t.addedAt }, ut(s);
|
|
2893
2904
|
}
|
|
2894
|
-
return
|
|
2905
|
+
return ut([{ ...t, text: n }, ...o]).slice(0, Lo);
|
|
2895
2906
|
}
|
|
2896
|
-
function
|
|
2907
|
+
function ut(e) {
|
|
2897
2908
|
return [...e].sort(
|
|
2898
2909
|
(t, n) => Number(n.corrected) - Number(t.corrected) || n.addedAt - t.addedAt
|
|
2899
2910
|
);
|
|
2900
2911
|
}
|
|
2901
|
-
function
|
|
2912
|
+
function yl(e, t) {
|
|
2902
2913
|
const n = P(t), r = (e.examples ?? []).filter((i) => i.trim());
|
|
2903
|
-
return { examples: r.some((i) => P(i) === n) ? r : [...r, t].slice(
|
|
2914
|
+
return { examples: r.some((i) => P(i) === n) ? r : [...r, t].slice(-$o), exampleCandidates: Ko(e, t) };
|
|
2904
2915
|
}
|
|
2905
|
-
function
|
|
2916
|
+
function Ko(e, t) {
|
|
2906
2917
|
const n = P(t);
|
|
2907
2918
|
return (e.exampleCandidates ?? []).filter((r) => P(r.text) !== n);
|
|
2908
2919
|
}
|
|
2909
|
-
function
|
|
2920
|
+
function Uo(e, t) {
|
|
2910
2921
|
const n = e.ownerScope;
|
|
2911
2922
|
return n ? n.kind === "org" ? !0 : n.kind === "team" ? !!t && n.teamId === t : !1 : !1;
|
|
2912
2923
|
}
|
|
2913
|
-
function
|
|
2914
|
-
return e.filter((n) =>
|
|
2924
|
+
function bl(e, t) {
|
|
2925
|
+
return e.filter((n) => Uo(n, t));
|
|
2915
2926
|
}
|
|
2916
|
-
const
|
|
2927
|
+
const Le = [
|
|
2917
2928
|
{
|
|
2918
2929
|
key: "quote",
|
|
2919
2930
|
label: "kind_quote",
|
|
@@ -2952,15 +2963,15 @@ const $e = [
|
|
|
2952
2963
|
path: "invoices",
|
|
2953
2964
|
issuedStatus: "open"
|
|
2954
2965
|
}
|
|
2955
|
-
],
|
|
2956
|
-
function
|
|
2966
|
+
], Fo = ["quote", "order", "invoice"];
|
|
2967
|
+
function _l() {
|
|
2957
2968
|
const e = /* @__PURE__ */ new Map();
|
|
2958
|
-
for (const t of
|
|
2959
|
-
|
|
2969
|
+
for (const t of Le)
|
|
2970
|
+
Fo.includes(t.key) && (e.has(t.path) || e.set(t.path, t));
|
|
2960
2971
|
return [...e.values()];
|
|
2961
2972
|
}
|
|
2962
2973
|
function F(e) {
|
|
2963
|
-
return
|
|
2974
|
+
return Le.find((t) => t.key === e) ?? {
|
|
2964
2975
|
key: e,
|
|
2965
2976
|
label: e,
|
|
2966
2977
|
numbered: !1,
|
|
@@ -2970,10 +2981,10 @@ function F(e) {
|
|
|
2970
2981
|
issuedStatus: "draft"
|
|
2971
2982
|
};
|
|
2972
2983
|
}
|
|
2973
|
-
function
|
|
2984
|
+
function Al(e) {
|
|
2974
2985
|
return e.issuedAt != null;
|
|
2975
2986
|
}
|
|
2976
|
-
const
|
|
2987
|
+
const Sl = [
|
|
2977
2988
|
"status",
|
|
2978
2989
|
"fileRef",
|
|
2979
2990
|
"number",
|
|
@@ -2982,7 +2993,7 @@ const bl = [
|
|
|
2982
2993
|
"dunning",
|
|
2983
2994
|
"updatedAt"
|
|
2984
2995
|
];
|
|
2985
|
-
function
|
|
2996
|
+
function Bo(e, t) {
|
|
2986
2997
|
const n = F(t).signFlip !== F(e.kindKey).signFlip, r = e.lines.map((o) => ({
|
|
2987
2998
|
...o,
|
|
2988
2999
|
quantity: n ? -o.quantity : o.quantity,
|
|
@@ -3021,9 +3032,9 @@ function Uo(e, t) {
|
|
|
3021
3032
|
source: e.source
|
|
3022
3033
|
};
|
|
3023
3034
|
}
|
|
3024
|
-
function
|
|
3035
|
+
function El(e) {
|
|
3025
3036
|
return {
|
|
3026
|
-
...
|
|
3037
|
+
...Bo(e, e.kindKey),
|
|
3027
3038
|
sourceTransactionId: e.sourceTransactionId,
|
|
3028
3039
|
previousVersionId: e.id,
|
|
3029
3040
|
version: e.version + 1,
|
|
@@ -3031,7 +3042,7 @@ function _l(e) {
|
|
|
3031
3042
|
totals: e.totals
|
|
3032
3043
|
};
|
|
3033
3044
|
}
|
|
3034
|
-
function
|
|
3045
|
+
function Tl(e, t = {}) {
|
|
3035
3046
|
const n = F(e.kindKey), r = e.totals ?? { netCents: 0, taxCents: 0, grossCents: 0 };
|
|
3036
3047
|
return {
|
|
3037
3048
|
customer: {
|
|
@@ -3040,7 +3051,7 @@ function Al(e, t = {}) {
|
|
|
3040
3051
|
// One token per line of the address, plus `street` on its own for a template that wants
|
|
3041
3052
|
// the house number elsewhere. Empty stays empty: `fillText` reports it as a hole, and a
|
|
3042
3053
|
// recipient block missing its street is exactly what the issue gate has to refuse.
|
|
3043
|
-
address:
|
|
3054
|
+
address: Go(t.companyAddress),
|
|
3044
3055
|
street: t.companyAddress?.street ?? "",
|
|
3045
3056
|
house_number: t.companyAddress?.houseNumber ?? "",
|
|
3046
3057
|
postal_code: t.companyAddress?.postalCode ?? "",
|
|
@@ -3077,7 +3088,7 @@ function Al(e, t = {}) {
|
|
|
3077
3088
|
}
|
|
3078
3089
|
};
|
|
3079
3090
|
}
|
|
3080
|
-
function
|
|
3091
|
+
function Il(e, t = [], n = jo) {
|
|
3081
3092
|
const r = e.totals ?? { netCents: 0, grossCents: 0, byRate: [] }, o = (a) => t.find((u) => u.key === a)?.percent ?? 0, i = {
|
|
3082
3093
|
block_id: "lines",
|
|
3083
3094
|
type: "table",
|
|
@@ -3092,8 +3103,8 @@ function Sl(e, t = [], n = Fo) {
|
|
|
3092
3103
|
// A text line spans as a heading: empty money cells would read as "free".
|
|
3093
3104
|
[a.name, "", "", ""]
|
|
3094
3105
|
) : [
|
|
3095
|
-
|
|
3096
|
-
|
|
3106
|
+
Ho(a.name, a.description, a.optional, n.optional),
|
|
3107
|
+
Wo(a.quantity),
|
|
3097
3108
|
D(a.unitPriceCents),
|
|
3098
3109
|
D(a.netCents)
|
|
3099
3110
|
]
|
|
@@ -3112,7 +3123,7 @@ function Sl(e, t = [], n = Fo) {
|
|
|
3112
3123
|
};
|
|
3113
3124
|
return { lines: [i], totals: [s] };
|
|
3114
3125
|
}
|
|
3115
|
-
const
|
|
3126
|
+
const jo = {
|
|
3116
3127
|
description: "Omschrijving",
|
|
3117
3128
|
optional: "optioneel",
|
|
3118
3129
|
quantity: "Aantal",
|
|
@@ -3121,14 +3132,14 @@ const Fo = {
|
|
|
3121
3132
|
tax: "Btw",
|
|
3122
3133
|
gross: "Totaal"
|
|
3123
3134
|
};
|
|
3124
|
-
function
|
|
3135
|
+
function Ho(e, t, n, r) {
|
|
3125
3136
|
const o = t ? `${e} — ${t}` : e;
|
|
3126
3137
|
return n ? `${o} (${r})` : o;
|
|
3127
3138
|
}
|
|
3128
|
-
function
|
|
3139
|
+
function Go(e) {
|
|
3129
3140
|
return e?.street ? [e.street, e.houseNumber].filter(Boolean).join(" ") : "";
|
|
3130
3141
|
}
|
|
3131
|
-
function
|
|
3142
|
+
function Wo(e) {
|
|
3132
3143
|
return Number.isInteger(e) ? String(e) : String(e).replace(".", ",");
|
|
3133
3144
|
}
|
|
3134
3145
|
function K(e) {
|
|
@@ -3136,14 +3147,14 @@ function K(e) {
|
|
|
3136
3147
|
const t = new Date(e), n = (r) => String(r).padStart(2, "0");
|
|
3137
3148
|
return `${n(t.getDate())}-${n(t.getMonth() + 1)}-${t.getFullYear()}`;
|
|
3138
3149
|
}
|
|
3139
|
-
function
|
|
3150
|
+
function Vo(e) {
|
|
3140
3151
|
const t = F(e), n = t.key, r = t.numbered;
|
|
3141
3152
|
return [
|
|
3142
3153
|
{
|
|
3143
3154
|
block_id: "head",
|
|
3144
3155
|
type: "letterhead",
|
|
3145
3156
|
fields: [
|
|
3146
|
-
...r ? [{ key: "number", label:
|
|
3157
|
+
...r ? [{ key: "number", label: zo[n]?.number ?? "Nummer", value: `{${n}.number}` }] : [],
|
|
3147
3158
|
{ key: "date", label: "Datum", value: `{${n}.date}` },
|
|
3148
3159
|
...r ? [{ key: "due_date", label: "Vervaldatum", value: `{${n}.due_date}` }] : [{ key: "valid_until", label: "Geldig tot", value: `{${n}.valid_until}` }],
|
|
3149
3160
|
{ key: "reference", label: "Referentie", value: `{${n}.reference}` }
|
|
@@ -3156,7 +3167,7 @@ function Go(e) {
|
|
|
3156
3167
|
]
|
|
3157
3168
|
},
|
|
3158
3169
|
{ block_id: "title", type: "heading", level: 1, text: `{${n}.title}` },
|
|
3159
|
-
{ block_id: "intro", type: "paragraph", text:
|
|
3170
|
+
{ block_id: "intro", type: "paragraph", text: dt[n] ?? dt.quote },
|
|
3160
3171
|
/**
|
|
3161
3172
|
* The service period, when there is one — a subscription invoice says which quarter it bills.
|
|
3162
3173
|
*
|
|
@@ -3181,17 +3192,17 @@ function Go(e) {
|
|
|
3181
3192
|
text: `Betaling: {${n}.payment_term}. Wij verzoeken u het bedrag vóór {${n}.due_date} over te maken onder vermelding van {${n}.number}.`
|
|
3182
3193
|
}
|
|
3183
3194
|
] : [],
|
|
3184
|
-
{ block_id: "terms", type: "paragraph", text:
|
|
3195
|
+
{ block_id: "terms", type: "paragraph", text: pt[n] ?? pt.quote }
|
|
3185
3196
|
];
|
|
3186
3197
|
}
|
|
3187
|
-
const
|
|
3198
|
+
const kl = (e) => ({
|
|
3188
3199
|
note: { key: `${F(e).key}.note`, exists: !0 },
|
|
3189
3200
|
// Keyed on the start: a range without one is not a range, and `period_to` alone says nothing.
|
|
3190
3201
|
period: { key: `${F(e).key}.period_from`, exists: !0 }
|
|
3191
|
-
}),
|
|
3202
|
+
}), zo = {
|
|
3192
3203
|
invoice: { number: "Factuurnummer" },
|
|
3193
3204
|
credit_note: { number: "Creditnotanummer" }
|
|
3194
|
-
},
|
|
3205
|
+
}, dt = {
|
|
3195
3206
|
quote: `Beste {customer.contact},
|
|
3196
3207
|
|
|
3197
3208
|
Hierbij onze offerte. Hieronder vindt u de specificatie.`,
|
|
@@ -3204,47 +3215,47 @@ Hierbij onze factuur. Hieronder vindt u de specificatie.`,
|
|
|
3204
3215
|
credit_note: `Beste {customer.contact},
|
|
3205
3216
|
|
|
3206
3217
|
Hierbij onze creditnota. De onderstaande bedragen worden met u verrekend.`
|
|
3207
|
-
},
|
|
3218
|
+
}, pt = {
|
|
3208
3219
|
quote: "Genoemde bedragen zijn exclusief btw tenzij anders vermeld. Deze offerte is geldig tot {quote.valid_until}.",
|
|
3209
3220
|
order: "Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",
|
|
3210
3221
|
invoice: "Genoemde bedragen zijn exclusief btw tenzij anders vermeld.",
|
|
3211
3222
|
credit_note: "Genoemde bedragen zijn exclusief btw tenzij anders vermeld."
|
|
3212
|
-
},
|
|
3213
|
-
function
|
|
3223
|
+
}, wl = Vo("quote"), Xo = Le.map((e) => e.key), Yo = "product";
|
|
3224
|
+
function qo(e, t) {
|
|
3214
3225
|
return `${e}:${t}`;
|
|
3215
3226
|
}
|
|
3216
|
-
function
|
|
3217
|
-
return `${
|
|
3227
|
+
function vl(e) {
|
|
3228
|
+
return `${Yo}:${e}`;
|
|
3218
3229
|
}
|
|
3219
|
-
function
|
|
3230
|
+
function Ml(e) {
|
|
3220
3231
|
const t = e.indexOf(":");
|
|
3221
3232
|
if (t < 0) return;
|
|
3222
3233
|
const n = e.slice(0, t);
|
|
3223
|
-
return
|
|
3234
|
+
return Xo.includes(n) ? e.slice(t + 1) : void 0;
|
|
3224
3235
|
}
|
|
3225
|
-
function
|
|
3226
|
-
const t = /* @__PURE__ */ new Set([
|
|
3236
|
+
function Cl(e) {
|
|
3237
|
+
const t = /* @__PURE__ */ new Set([qo(e.kindKey, e.id)]);
|
|
3227
3238
|
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);
|
|
3228
3239
|
}
|
|
3229
|
-
const
|
|
3230
|
-
function
|
|
3240
|
+
const Ol = 4;
|
|
3241
|
+
function xl(e, t) {
|
|
3231
3242
|
const n = String(t).padStart(Math.max(1, e.padding), "0");
|
|
3232
3243
|
return `${e.prefix}${e.period ? `${e.period}-` : ""}${n}`;
|
|
3233
3244
|
}
|
|
3234
|
-
function
|
|
3245
|
+
function Nl(e, t = Date.now()) {
|
|
3235
3246
|
return e === "year" ? String(new Date(t).getFullYear()) : "";
|
|
3236
3247
|
}
|
|
3237
|
-
const
|
|
3248
|
+
const Rl = [
|
|
3238
3249
|
"cash",
|
|
3239
3250
|
"credit",
|
|
3240
3251
|
"direct_debit",
|
|
3241
3252
|
"card",
|
|
3242
3253
|
"other"
|
|
3243
3254
|
];
|
|
3244
|
-
function
|
|
3255
|
+
function Dl(e, t) {
|
|
3245
3256
|
return e + Math.max(0, Math.round(t)) * 24 * 60 * 60 * 1e3;
|
|
3246
3257
|
}
|
|
3247
|
-
function
|
|
3258
|
+
function $l(e, t) {
|
|
3248
3259
|
const n = /* @__PURE__ */ new Map();
|
|
3249
3260
|
for (const r of e) r.businessEntityId || n.set(r.code, r);
|
|
3250
3261
|
if (t)
|
|
@@ -3252,10 +3263,10 @@ function Nl(e, t) {
|
|
|
3252
3263
|
r.businessEntityId === t && n.set(r.code, r);
|
|
3253
3264
|
return [...n.values()];
|
|
3254
3265
|
}
|
|
3255
|
-
function
|
|
3266
|
+
function Ll(e) {
|
|
3256
3267
|
return { code: e.code, label: e.label, method: e.method, dueDays: e.dueDays };
|
|
3257
3268
|
}
|
|
3258
|
-
const
|
|
3269
|
+
const Pl = [
|
|
3259
3270
|
{
|
|
3260
3271
|
code: "14D",
|
|
3261
3272
|
label: "Binnen 14 dagen",
|
|
@@ -3267,30 +3278,30 @@ const Dl = [
|
|
|
3267
3278
|
{ code: "30D", label: "Binnen 30 dagen", method: "credit", dueDays: 30, order: 1 },
|
|
3268
3279
|
{ code: "CONTANT", label: "Contant", method: "cash", dueDays: 0, order: 2 }
|
|
3269
3280
|
];
|
|
3270
|
-
function
|
|
3281
|
+
function Kl(e) {
|
|
3271
3282
|
return e.type === "agent";
|
|
3272
3283
|
}
|
|
3273
|
-
const
|
|
3274
|
-
function
|
|
3284
|
+
const Ul = "WORK_COMMENT_ADDED", Fl = "WORK_ITEM_ASSIGNED", Bl = "WORK_ITEM_STATUS_CHANGED";
|
|
3285
|
+
function Qo(e, t) {
|
|
3275
3286
|
const n = (r) => {
|
|
3276
3287
|
const o = new Date(r);
|
|
3277
3288
|
return o.setHours(0, 0, 0, 0), o.getTime();
|
|
3278
3289
|
};
|
|
3279
|
-
return Math.round((n(e) - n(t)) /
|
|
3290
|
+
return Math.round((n(e) - n(t)) / tr);
|
|
3280
3291
|
}
|
|
3281
|
-
function
|
|
3292
|
+
function jl(e, t) {
|
|
3282
3293
|
if (e.closedAt != null) return { score: L, reasons: [] };
|
|
3283
3294
|
const n = t.remindersById?.[e.id];
|
|
3284
3295
|
if (n && n.remindAt > t.now) return { score: L, reasons: [] };
|
|
3285
3296
|
let r = 0;
|
|
3286
3297
|
const o = [], i = e.priority ?? "normal";
|
|
3287
3298
|
if (te[i] > 0 && (r += te[i], o.push(`priority:${i}`)), typeof e.dueDate == "number") {
|
|
3288
|
-
const s =
|
|
3299
|
+
const s = Qo(e.dueDate, t.now);
|
|
3289
3300
|
s < 0 ? (r += 35, o.push("overdue")) : s === 0 && (r += 20, o.push("due-today"));
|
|
3290
3301
|
}
|
|
3291
3302
|
return e.source?.initiator === "system" && e.source.systemReason && (r += 15, o.push(`auto:${e.source.systemReason}`)), { score: r, reasons: o };
|
|
3292
3303
|
}
|
|
3293
|
-
const
|
|
3304
|
+
const Pe = [
|
|
3294
3305
|
{ key: "task", label: "type_task" },
|
|
3295
3306
|
{ key: "bug", label: "type_bug" },
|
|
3296
3307
|
{ key: "story", label: "type_story" },
|
|
@@ -3298,35 +3309,35 @@ const Le = [
|
|
|
3298
3309
|
{ key: "subtask", label: "type_subtask" },
|
|
3299
3310
|
{ key: "case", label: "type_case" },
|
|
3300
3311
|
{ key: "deal", label: "type_deal" }
|
|
3301
|
-
],
|
|
3302
|
-
function
|
|
3303
|
-
return e?.types?.length ? e.types :
|
|
3312
|
+
], Hl = Pe.map((e) => e.key);
|
|
3313
|
+
function Gl(e) {
|
|
3314
|
+
return e?.types?.length ? e.types : Pe;
|
|
3304
3315
|
}
|
|
3305
|
-
function
|
|
3316
|
+
function Wl(e, t) {
|
|
3306
3317
|
return t.find((n) => n.key === e);
|
|
3307
3318
|
}
|
|
3308
|
-
function
|
|
3319
|
+
function Vl(e) {
|
|
3309
3320
|
const t = e.trim().toLowerCase();
|
|
3310
3321
|
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("task") ? "task" : null : null;
|
|
3311
3322
|
}
|
|
3312
|
-
function
|
|
3313
|
-
return e.map((t) =>
|
|
3323
|
+
function zl(...e) {
|
|
3324
|
+
return e.map((t) => Pe.find((n) => n.key === t)).filter((t) => !!t);
|
|
3314
3325
|
}
|
|
3315
|
-
const
|
|
3316
|
-
function
|
|
3317
|
-
return `${
|
|
3326
|
+
const Zo = "work_item", Jo = "work_project", ei = "work_activity", Xl = "work_cycle";
|
|
3327
|
+
function ti(e) {
|
|
3328
|
+
return `${Zo}:${e}`;
|
|
3318
3329
|
}
|
|
3319
|
-
function
|
|
3320
|
-
return `${
|
|
3330
|
+
function Jt(e) {
|
|
3331
|
+
return `${Jo}:${e}`;
|
|
3321
3332
|
}
|
|
3322
|
-
function
|
|
3323
|
-
return `${
|
|
3333
|
+
function Yl(e) {
|
|
3334
|
+
return `${ei}:${e}`;
|
|
3324
3335
|
}
|
|
3325
|
-
function
|
|
3336
|
+
function ql(e, t, n) {
|
|
3326
3337
|
const r = `${e}-${t}`;
|
|
3327
3338
|
return n ? `${r}-${n}` : r;
|
|
3328
3339
|
}
|
|
3329
|
-
function
|
|
3340
|
+
function Ql(e) {
|
|
3330
3341
|
const t = /^([A-Za-z0-9]{2,8})-(\d+)(?:-(\d+))?$/.exec((e || "").trim());
|
|
3331
3342
|
return t ? {
|
|
3332
3343
|
projectKey: t[1].toUpperCase(),
|
|
@@ -3334,52 +3345,52 @@ function Xl(e) {
|
|
|
3334
3345
|
...t[3] ? { subSequence: Number(t[3]) } : {}
|
|
3335
3346
|
} : null;
|
|
3336
3347
|
}
|
|
3337
|
-
function
|
|
3348
|
+
function Zl(e) {
|
|
3338
3349
|
return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toUpperCase().replace(/[^A-Z0-9]/g, "").slice(0, 3) || "PRJ";
|
|
3339
3350
|
}
|
|
3340
|
-
function
|
|
3341
|
-
const n = /* @__PURE__ */ new Set([
|
|
3342
|
-
e.projectId && n.add(
|
|
3351
|
+
function Jl(e, t = 25) {
|
|
3352
|
+
const n = /* @__PURE__ */ new Set([ti(e.id)]);
|
|
3353
|
+
e.projectId && n.add(Jt(e.projectId));
|
|
3343
3354
|
for (const r of e.ancestorKeys ?? []) n.add(r);
|
|
3344
3355
|
for (const r of e.partyKeys ?? []) n.add(r);
|
|
3345
3356
|
return Array.from(n).slice(0, t);
|
|
3346
3357
|
}
|
|
3347
|
-
function
|
|
3348
|
-
return [
|
|
3358
|
+
function eu(e) {
|
|
3359
|
+
return [Jt(e.id)];
|
|
3349
3360
|
}
|
|
3350
|
-
const
|
|
3361
|
+
const Ke = [
|
|
3351
3362
|
{ key: "open", label: "status_open", category: "todo", order: 0 },
|
|
3352
3363
|
{ key: "in_progress", label: "status_in_progress", category: "in_progress", order: 1 },
|
|
3353
3364
|
{ key: "done", label: "status_done", category: "done", order: 2 },
|
|
3354
3365
|
{ key: "cancelled", label: "status_cancelled", category: "done", order: 3 }
|
|
3355
|
-
],
|
|
3356
|
-
function
|
|
3357
|
-
return e?.statuses?.length ? e.statuses :
|
|
3366
|
+
], en = Ke.map((e) => e.key);
|
|
3367
|
+
function ni(e) {
|
|
3368
|
+
return e?.statuses?.length ? e.statuses : Ke;
|
|
3358
3369
|
}
|
|
3359
|
-
function
|
|
3370
|
+
function ri(e, t) {
|
|
3360
3371
|
return t.find((n) => n.key === e)?.category ?? "todo";
|
|
3361
3372
|
}
|
|
3362
|
-
function
|
|
3373
|
+
function tu(e, t) {
|
|
3363
3374
|
return t.find((n) => n.key === e);
|
|
3364
3375
|
}
|
|
3365
|
-
function
|
|
3366
|
-
const t =
|
|
3367
|
-
return n && t.some((r) => r.key === n) ? n :
|
|
3376
|
+
function nu(e) {
|
|
3377
|
+
const t = ni(e), n = e?.defaultStatusKey;
|
|
3378
|
+
return n && t.some((r) => r.key === n) ? n : oi(t)[0]?.key ?? Ke[0].key;
|
|
3368
3379
|
}
|
|
3369
|
-
function
|
|
3380
|
+
function oi(e) {
|
|
3370
3381
|
return [...e].sort((t, n) => {
|
|
3371
3382
|
const r = (t.order ?? 0) - (n.order ?? 0);
|
|
3372
3383
|
return r !== 0 ? r : (t.label || "").localeCompare(n.label || "");
|
|
3373
3384
|
});
|
|
3374
3385
|
}
|
|
3375
|
-
function
|
|
3376
|
-
return
|
|
3386
|
+
function ru(e, t) {
|
|
3387
|
+
return ri(e, t) === "done";
|
|
3377
3388
|
}
|
|
3378
|
-
function
|
|
3389
|
+
function ii(e) {
|
|
3379
3390
|
return (e || "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").slice(0, 48).replace(/^-+|-+$/g, "");
|
|
3380
3391
|
}
|
|
3381
|
-
function
|
|
3382
|
-
const n =
|
|
3392
|
+
function ou(e, t) {
|
|
3393
|
+
const n = ii(e) || "status", r = /* @__PURE__ */ new Set([...t, ...en]);
|
|
3383
3394
|
if (!r.has(n)) return n;
|
|
3384
3395
|
for (let o = 2; o < 500; o++) {
|
|
3385
3396
|
const i = `${n}-${o}`;
|
|
@@ -3387,7 +3398,7 @@ function tu(e, t) {
|
|
|
3387
3398
|
}
|
|
3388
3399
|
return `${n}-${r.size + 1}`;
|
|
3389
3400
|
}
|
|
3390
|
-
function
|
|
3401
|
+
function iu(e) {
|
|
3391
3402
|
const t = [];
|
|
3392
3403
|
if (!e.length) return [{ index: -1, reason: "empty" }];
|
|
3393
3404
|
const n = /* @__PURE__ */ new Set();
|
|
@@ -3396,16 +3407,16 @@ function nu(e) {
|
|
|
3396
3407
|
t.push({ index: o, reason: "missing_key" });
|
|
3397
3408
|
return;
|
|
3398
3409
|
}
|
|
3399
|
-
|
|
3410
|
+
en.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);
|
|
3400
3411
|
}), 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;
|
|
3401
3412
|
}
|
|
3402
|
-
function
|
|
3413
|
+
function su(e) {
|
|
3403
3414
|
return e.startDate ?? Number.MAX_SAFE_INTEGER;
|
|
3404
3415
|
}
|
|
3405
|
-
function
|
|
3416
|
+
function au(e) {
|
|
3406
3417
|
return e.completedAt ? "completed" : e.startedAt ? "active" : "planned";
|
|
3407
3418
|
}
|
|
3408
|
-
const
|
|
3419
|
+
const si = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/gif", "image/webp"]), ai = /* @__PURE__ */ new Set([
|
|
3409
3420
|
"text/plain",
|
|
3410
3421
|
"text/markdown",
|
|
3411
3422
|
"text/csv",
|
|
@@ -3414,67 +3425,67 @@ const oi = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "ima
|
|
|
3414
3425
|
"application/xml",
|
|
3415
3426
|
"text/xml"
|
|
3416
3427
|
]);
|
|
3417
|
-
function
|
|
3428
|
+
function ci(e) {
|
|
3418
3429
|
const t = (e ?? "").trim().toLowerCase().split(";")[0];
|
|
3419
|
-
return t ?
|
|
3430
|
+
return t ? si.has(t) ? "image" : t === "application/pdf" ? "pdf" : ai.has(t) ? "text" : t.startsWith("audio/") ? "audio" : "unsupported" : "unsupported";
|
|
3420
3431
|
}
|
|
3421
|
-
const j = 1024 * 1024,
|
|
3432
|
+
const j = 1024 * 1024, li = {
|
|
3422
3433
|
image: 5 * j,
|
|
3423
3434
|
pdf: 20 * j,
|
|
3424
3435
|
text: 1 * j,
|
|
3425
3436
|
audio: 20 * j
|
|
3426
|
-
},
|
|
3427
|
-
function
|
|
3428
|
-
const n =
|
|
3429
|
-
return n === "unsupported" ? "unsupported" : t >
|
|
3437
|
+
}, cu = 25 * j, lu = 5;
|
|
3438
|
+
function uu(e, t) {
|
|
3439
|
+
const n = ci(e);
|
|
3440
|
+
return n === "unsupported" ? "unsupported" : t > li[n] ? "too-large" : null;
|
|
3430
3441
|
}
|
|
3431
|
-
function
|
|
3442
|
+
function du(e) {
|
|
3432
3443
|
return e.access !== "read" && e.effect !== "internal";
|
|
3433
3444
|
}
|
|
3434
|
-
function
|
|
3445
|
+
function ui(e) {
|
|
3435
3446
|
return `${e.kind}:${e.id || e.url || e.title}`;
|
|
3436
3447
|
}
|
|
3437
|
-
function
|
|
3448
|
+
function pu(e, t = []) {
|
|
3438
3449
|
const n = new Set(t), r = [], o = [];
|
|
3439
3450
|
for (const i of e) {
|
|
3440
|
-
const s =
|
|
3451
|
+
const s = ui(i);
|
|
3441
3452
|
n.has(s) || (n.add(s), r.push(i), o.push(s));
|
|
3442
3453
|
}
|
|
3443
3454
|
return { sources: r, keys: o };
|
|
3444
3455
|
}
|
|
3445
|
-
const
|
|
3446
|
-
function
|
|
3456
|
+
const fu = "assist-source", mu = ["blocking", "due", "open"];
|
|
3457
|
+
function hu(e, t) {
|
|
3447
3458
|
const [n, r] = (e.subjectKey ?? "").split(":");
|
|
3448
3459
|
return n === t && r ? r : void 0;
|
|
3449
3460
|
}
|
|
3450
|
-
const
|
|
3451
|
-
function
|
|
3452
|
-
return
|
|
3461
|
+
const ft = { blocking: 0, due: 1, open: 2 };
|
|
3462
|
+
function gu(e, t) {
|
|
3463
|
+
return ft[e.band ?? "open"] - ft[t.band ?? "open"] || (t.priority ?? 0) - (e.priority ?? 0) || e.id.localeCompare(t.id);
|
|
3453
3464
|
}
|
|
3454
|
-
function
|
|
3465
|
+
function yu(e) {
|
|
3455
3466
|
return e.sessions.filter(
|
|
3456
3467
|
(t) => t.id !== e.exceptSessionId && t.state === "connected" && e.canHold(t.providerId)
|
|
3457
3468
|
);
|
|
3458
3469
|
}
|
|
3459
|
-
function
|
|
3470
|
+
function bu(e) {
|
|
3460
3471
|
return e.sessions.filter(
|
|
3461
3472
|
(t) => t.id !== e.exceptSessionId && t.state === "connected" && !e.canHold(t.providerId)
|
|
3462
3473
|
);
|
|
3463
3474
|
}
|
|
3464
|
-
function
|
|
3475
|
+
function _u(e) {
|
|
3465
3476
|
return e.sessions.some(
|
|
3466
3477
|
(n) => n.id !== e.exceptSessionId && (n.state === "connected" || n.state === "on_hold")
|
|
3467
3478
|
) ? { admit: !1, reason: "busy" } : { admit: !0 };
|
|
3468
3479
|
}
|
|
3469
|
-
function
|
|
3470
|
-
const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, o = t.intents.filter((s) => !n.has(s.intent)).map((s) =>
|
|
3480
|
+
function di(e, t) {
|
|
3481
|
+
const n = new Set(e.disabledIntents ?? []), r = e.intentOverrides ?? {}, o = t.intents.filter((s) => !n.has(s.intent)).map((s) => fi(s, r[s.intent]));
|
|
3471
3482
|
if (!e.extraIntents || e.extraIntents.length === 0) return o;
|
|
3472
3483
|
const i = new Set(o.map((s) => s.intent));
|
|
3473
3484
|
for (const s of e.extraIntents)
|
|
3474
3485
|
i.has(s.intent) || (o.push(s), i.add(s.intent));
|
|
3475
3486
|
return o;
|
|
3476
3487
|
}
|
|
3477
|
-
function
|
|
3488
|
+
function pi(e, t) {
|
|
3478
3489
|
const n = {};
|
|
3479
3490
|
for (const r of e.intents) {
|
|
3480
3491
|
if (!r.togglable) continue;
|
|
@@ -3483,46 +3494,46 @@ function ui(e, t) {
|
|
|
3483
3494
|
}
|
|
3484
3495
|
return n;
|
|
3485
3496
|
}
|
|
3486
|
-
function
|
|
3487
|
-
const n =
|
|
3497
|
+
function Au(e, t) {
|
|
3498
|
+
const n = pi(e, t);
|
|
3488
3499
|
return Object.entries(n).filter(([, r]) => !r).map(([r]) => r);
|
|
3489
3500
|
}
|
|
3490
|
-
function
|
|
3501
|
+
function fi(e, t) {
|
|
3491
3502
|
return t ? {
|
|
3492
3503
|
intent: t.intent ?? e.intent,
|
|
3493
3504
|
targetSchemes: t.targetSchemes ?? e.targetSchemes,
|
|
3494
3505
|
transport: t.transport ?? e.transport
|
|
3495
3506
|
} : e;
|
|
3496
3507
|
}
|
|
3497
|
-
function
|
|
3508
|
+
function Su(e, t) {
|
|
3498
3509
|
const n = [];
|
|
3499
3510
|
for (const r of e) {
|
|
3500
3511
|
if (!r.enabled) continue;
|
|
3501
3512
|
const o = t[r.providerId];
|
|
3502
3513
|
if (o)
|
|
3503
|
-
for (const i of
|
|
3514
|
+
for (const i of di(r, o))
|
|
3504
3515
|
n.push({ channel: r, description: o, capability: i });
|
|
3505
3516
|
}
|
|
3506
3517
|
return n;
|
|
3507
3518
|
}
|
|
3508
|
-
function
|
|
3519
|
+
function Eu(e, t) {
|
|
3509
3520
|
return t.filter((n) => n.capability.intent === e);
|
|
3510
3521
|
}
|
|
3511
|
-
function
|
|
3522
|
+
function mi(e, t) {
|
|
3512
3523
|
return t.filter((n) => n.capability.targetSchemes.includes(e));
|
|
3513
3524
|
}
|
|
3514
|
-
function
|
|
3515
|
-
return
|
|
3525
|
+
function Tu(e, t) {
|
|
3526
|
+
return mi(e.scheme, t);
|
|
3516
3527
|
}
|
|
3517
|
-
function
|
|
3528
|
+
function Iu(e, t, n) {
|
|
3518
3529
|
const r = [];
|
|
3519
3530
|
for (const o of e)
|
|
3520
3531
|
for (const i of n)
|
|
3521
3532
|
i.capability.intent === t && i.capability.targetSchemes.includes(o.scheme) && r.push({ channelIntent: i, endpoint: o });
|
|
3522
3533
|
return r;
|
|
3523
3534
|
}
|
|
3524
|
-
var
|
|
3525
|
-
const
|
|
3535
|
+
var hi = /* @__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))(hi || {});
|
|
3536
|
+
const gi = {
|
|
3526
3537
|
mailto: "mail",
|
|
3527
3538
|
sip: "tel",
|
|
3528
3539
|
tel: "tel",
|
|
@@ -3543,10 +3554,10 @@ const mi = {
|
|
|
3543
3554
|
id: "note",
|
|
3544
3555
|
custom: "note"
|
|
3545
3556
|
};
|
|
3546
|
-
function
|
|
3547
|
-
return e ?
|
|
3557
|
+
function ku(e) {
|
|
3558
|
+
return e ? gi[e] ?? "note" : "note";
|
|
3548
3559
|
}
|
|
3549
|
-
const
|
|
3560
|
+
const wu = "message_window", vu = "message_templates", Mu = {
|
|
3550
3561
|
// E-mail
|
|
3551
3562
|
FROM: "from",
|
|
3552
3563
|
TO: "to",
|
|
@@ -3563,11 +3574,11 @@ const Tu = "message_window", Iu = "message_templates", ku = {
|
|
|
3563
3574
|
// Voice/conference
|
|
3564
3575
|
HOST: "host",
|
|
3565
3576
|
PARTICIPANT: "participant"
|
|
3566
|
-
},
|
|
3577
|
+
}, Cu = (e, t) => ({ intent: e, ...t }), Ou = "folder_management", xu = "remote_search", Nu = "message_reactions", Ru = {
|
|
3567
3578
|
ok: !1,
|
|
3568
3579
|
code: "UNSUPPORTED",
|
|
3569
3580
|
message: "Provider does not support this op"
|
|
3570
|
-
},
|
|
3581
|
+
}, Du = "connector", $u = "context.collect", A = (e) => ({ type: "string", description: e }), _ = (e) => ({ type: "number", description: e }), J = (e) => ({ type: "boolean", description: e }), M = A("Sheet name. Omit for the sheet the user is looking at."), mt = A("Slide id, as `inspect` reports it.");
|
|
3571
3582
|
function b(e, t, n, r, o, i) {
|
|
3572
3583
|
return {
|
|
3573
3584
|
op: e,
|
|
@@ -3578,7 +3589,7 @@ function b(e, t, n, r, o, i) {
|
|
|
3578
3589
|
visible: i.visible
|
|
3579
3590
|
};
|
|
3580
3591
|
}
|
|
3581
|
-
const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 },
|
|
3592
|
+
const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, ht = { undoable: !1, visible: !0 }, re = { undoable: !1, visible: !1 }, yi = [
|
|
3582
3593
|
b(
|
|
3583
3594
|
"pdf.goToPage",
|
|
3584
3595
|
["pdf"],
|
|
@@ -3635,7 +3646,7 @@ const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, mt =
|
|
|
3635
3646
|
}
|
|
3636
3647
|
},
|
|
3637
3648
|
["order"],
|
|
3638
|
-
|
|
3649
|
+
ht
|
|
3639
3650
|
),
|
|
3640
3651
|
b(
|
|
3641
3652
|
"pdf.deletePages",
|
|
@@ -3643,7 +3654,7 @@ const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, mt =
|
|
|
3643
3654
|
"Remove pages, keeping the rest in order.",
|
|
3644
3655
|
{ pages: { type: "array", items: { type: "number" }, description: "1-based page numbers." } },
|
|
3645
3656
|
["pages"],
|
|
3646
|
-
|
|
3657
|
+
ht
|
|
3647
3658
|
),
|
|
3648
3659
|
b(
|
|
3649
3660
|
"pdf.addNote",
|
|
@@ -3659,7 +3670,7 @@ const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, mt =
|
|
|
3659
3670
|
fontSize: _("Font size in points. Omit for 12.")
|
|
3660
3671
|
},
|
|
3661
3672
|
["page", "text", "left", "top"],
|
|
3662
|
-
|
|
3673
|
+
re
|
|
3663
3674
|
),
|
|
3664
3675
|
b(
|
|
3665
3676
|
"pdf.highlightText",
|
|
@@ -3671,9 +3682,9 @@ const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, mt =
|
|
|
3671
3682
|
occurrence: _("Which occurrence on that page, 1-based. Omit for the first.")
|
|
3672
3683
|
},
|
|
3673
3684
|
["page", "text"],
|
|
3674
|
-
|
|
3685
|
+
re
|
|
3675
3686
|
)
|
|
3676
|
-
],
|
|
3687
|
+
], bi = [
|
|
3677
3688
|
b(
|
|
3678
3689
|
"sheet.setValues",
|
|
3679
3690
|
["sheet"],
|
|
@@ -3825,7 +3836,7 @@ const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, mt =
|
|
|
3825
3836
|
[],
|
|
3826
3837
|
H
|
|
3827
3838
|
)
|
|
3828
|
-
],
|
|
3839
|
+
], _i = [
|
|
3829
3840
|
b(
|
|
3830
3841
|
"word.replaceParagraph",
|
|
3831
3842
|
["word"],
|
|
@@ -3887,25 +3898,25 @@ const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, mt =
|
|
|
3887
3898
|
["start"],
|
|
3888
3899
|
H
|
|
3889
3900
|
)
|
|
3890
|
-
],
|
|
3901
|
+
], Ai = [
|
|
3891
3902
|
b(
|
|
3892
3903
|
"slides.setText",
|
|
3893
3904
|
["slides"],
|
|
3894
3905
|
"Replace the text of one shape. Written on save; not visible before that, and not undoable.",
|
|
3895
3906
|
{
|
|
3896
|
-
slide:
|
|
3907
|
+
slide: mt,
|
|
3897
3908
|
element: A("Element id, as `inspect` reports it."),
|
|
3898
3909
|
text: A("The new text.")
|
|
3899
3910
|
},
|
|
3900
3911
|
["slide", "element", "text"],
|
|
3901
|
-
|
|
3912
|
+
re
|
|
3902
3913
|
),
|
|
3903
3914
|
b(
|
|
3904
3915
|
"slides.setTransform",
|
|
3905
3916
|
["slides"],
|
|
3906
3917
|
"Move or resize one shape. Only the values you pass change. Written on save; not visible before that, and not undoable.",
|
|
3907
3918
|
{
|
|
3908
|
-
slide:
|
|
3919
|
+
slide: mt,
|
|
3909
3920
|
element: A("Element id."),
|
|
3910
3921
|
left: _("Distance from the left edge, in pixels."),
|
|
3911
3922
|
top: _("Distance from the top edge, in pixels."),
|
|
@@ -3913,26 +3924,26 @@ const H = { undoable: !1, visible: !0 }, T = { undoable: !0, visible: !0 }, mt =
|
|
|
3913
3924
|
height: _("Height in pixels.")
|
|
3914
3925
|
},
|
|
3915
3926
|
["slide", "element"],
|
|
3916
|
-
|
|
3927
|
+
re
|
|
3917
3928
|
)
|
|
3918
|
-
],
|
|
3919
|
-
...hi,
|
|
3920
|
-
...gi,
|
|
3929
|
+
], tn = [
|
|
3921
3930
|
...yi,
|
|
3922
|
-
...bi
|
|
3931
|
+
...bi,
|
|
3932
|
+
..._i,
|
|
3933
|
+
...Ai
|
|
3923
3934
|
];
|
|
3924
|
-
function
|
|
3925
|
-
return
|
|
3935
|
+
function Lu(e) {
|
|
3936
|
+
return tn.filter((t) => t.kinds.includes(e));
|
|
3926
3937
|
}
|
|
3927
|
-
function
|
|
3928
|
-
return
|
|
3938
|
+
function Pu(e) {
|
|
3939
|
+
return tn.find((t) => t.op === e);
|
|
3929
3940
|
}
|
|
3930
|
-
const
|
|
3931
|
-
function
|
|
3932
|
-
const t =
|
|
3941
|
+
const gt = /(?: {2,}|\\)$/, Si = /^\*\*([^*]+)\*\*\s+(.*)$/;
|
|
3942
|
+
function yt(e) {
|
|
3943
|
+
const t = Si.exec(e);
|
|
3933
3944
|
return t ? { lead: t[1], text: t[2] } : { text: e };
|
|
3934
3945
|
}
|
|
3935
|
-
function
|
|
3946
|
+
function Ku(e) {
|
|
3936
3947
|
const t = (e ?? "").replace(/\r\n/g, `
|
|
3937
3948
|
`).split(`
|
|
3938
3949
|
`), n = [];
|
|
@@ -3940,7 +3951,7 @@ function $u(e) {
|
|
|
3940
3951
|
const o = () => {
|
|
3941
3952
|
r && n.push({ type: "list", style: r.style, items: r.items }), r = null;
|
|
3942
3953
|
}, i = (p, f) => {
|
|
3943
|
-
r && r.style !== p && o(), r ? r.items.push(
|
|
3954
|
+
r && r.style !== p && o(), r ? r.items.push(yt(f)) : r = { style: p, items: [yt(f)] };
|
|
3944
3955
|
};
|
|
3945
3956
|
let s = [], a = [];
|
|
3946
3957
|
const u = () => {
|
|
@@ -4005,33 +4016,33 @@ function $u(e) {
|
|
|
4005
4016
|
continue;
|
|
4006
4017
|
}
|
|
4007
4018
|
l(), o();
|
|
4008
|
-
const E =
|
|
4009
|
-
s.push(p.replace(
|
|
4019
|
+
const E = gt.test(p);
|
|
4020
|
+
s.push(p.replace(gt, "").trim() + (E ? `
|
|
4010
4021
|
` : " ")), c++;
|
|
4011
4022
|
}
|
|
4012
4023
|
return d(), n;
|
|
4013
4024
|
}
|
|
4014
|
-
function
|
|
4015
|
-
return
|
|
4025
|
+
function Uu(e, t) {
|
|
4026
|
+
return Kn(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, `
|
|
4016
4027
|
|
|
4017
4028
|
`).trim();
|
|
4018
4029
|
}
|
|
4019
|
-
const
|
|
4020
|
-
function
|
|
4030
|
+
const Fu = "documents.describe", Bu = "documents.inspect", ju = "documents.apply";
|
|
4031
|
+
function Hu(e) {
|
|
4021
4032
|
const t = e.indexOf(":");
|
|
4022
4033
|
if (t !== -1) return e.slice(0, t);
|
|
4023
4034
|
const n = e.indexOf(".");
|
|
4024
4035
|
return n === -1 ? e : e.slice(0, n);
|
|
4025
4036
|
}
|
|
4026
|
-
const
|
|
4027
|
-
function
|
|
4037
|
+
const Gu = "installation-id";
|
|
4038
|
+
function Wu(e) {
|
|
4028
4039
|
const t = [];
|
|
4029
4040
|
for (const n of Object.keys(e))
|
|
4030
4041
|
for (const r of Object.keys(e[n]))
|
|
4031
4042
|
t.push({ lang: n, key: r, value: e[n][r] });
|
|
4032
4043
|
return t;
|
|
4033
4044
|
}
|
|
4034
|
-
const
|
|
4045
|
+
const Vu = "notification-source", zu = (e, t) => `${e}.pref.${t}`, Xu = {
|
|
4035
4046
|
ai: [
|
|
4036
4047
|
"account.read",
|
|
4037
4048
|
"account.write",
|
|
@@ -4166,48 +4177,48 @@ const Hu = "notification-source", Gu = (e, t) => `${e}.pref.${t}`, Wu = {
|
|
|
4166
4177
|
time: ["entry.read", "entry.write", "work-type.read", "work-type.write"],
|
|
4167
4178
|
user: ["user.read", "user.write"],
|
|
4168
4179
|
work: ["item.read", "item.write", "project.read", "project.write"]
|
|
4169
|
-
},
|
|
4170
|
-
function
|
|
4171
|
-
const r = n - e <
|
|
4180
|
+
}, nn = 9e4, Ei = ["out_of_office"], rn = (e) => Ei.includes(e);
|
|
4181
|
+
function Yu(e, t, n) {
|
|
4182
|
+
const r = n - e < nn, o = t?.status && (!t.expiresAt || t.expiresAt > n) ? t : void 0;
|
|
4172
4183
|
if (!o?.status) return { online: r, status: r ? "available" : "offline" };
|
|
4173
4184
|
const i = o.status;
|
|
4174
|
-
return !r && !
|
|
4185
|
+
return !r && !rn(i) ? { online: !1, status: "offline" } : { online: r, status: i, message: o.message };
|
|
4175
4186
|
}
|
|
4176
|
-
function
|
|
4177
|
-
const n = t - e.lastSeenAt <
|
|
4187
|
+
function qu(e, t) {
|
|
4188
|
+
const n = t - e.lastSeenAt < nn, r = n || rn(e.status) ? e.status : "offline";
|
|
4178
4189
|
return n === e.online && r === e.status ? e : { ...e, online: n, status: r };
|
|
4179
4190
|
}
|
|
4180
|
-
function
|
|
4191
|
+
function Qu(e, t) {
|
|
4181
4192
|
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 };
|
|
4182
4193
|
}
|
|
4183
|
-
function
|
|
4194
|
+
function Zu(e) {
|
|
4184
4195
|
return e.providerAvailable && e.allowed;
|
|
4185
4196
|
}
|
|
4186
|
-
const
|
|
4187
|
-
function
|
|
4197
|
+
const Ju = "resources.describe", ed = "resources.search", td = "resources.resolve", nd = "resources.attached";
|
|
4198
|
+
function rd(e) {
|
|
4188
4199
|
const t = e.indexOf(":");
|
|
4189
4200
|
return t === -1 ? e : e.slice(0, t);
|
|
4190
4201
|
}
|
|
4191
|
-
const
|
|
4192
|
-
function
|
|
4202
|
+
const od = "/provider/scope/related", id = "/provider/scope/read", on = "auth";
|
|
4203
|
+
function sn(e) {
|
|
4193
4204
|
const t = typeof e == "string" ? e.match(/apps\/([^/?#]+)/) : null;
|
|
4194
4205
|
return t ? t[1] : null;
|
|
4195
4206
|
}
|
|
4196
|
-
function
|
|
4197
|
-
const t =
|
|
4198
|
-
return t ? t !==
|
|
4207
|
+
function sd(e) {
|
|
4208
|
+
const t = sn(e);
|
|
4209
|
+
return t ? t !== on : typeof e == "string" && e.startsWith("/wake");
|
|
4199
4210
|
}
|
|
4200
|
-
function
|
|
4201
|
-
return typeof e != "string" || e === "" || e === "/" ? !0 :
|
|
4211
|
+
function ad(e) {
|
|
4212
|
+
return typeof e != "string" || e === "" || e === "/" ? !0 : sn(e) === on;
|
|
4202
4213
|
}
|
|
4203
|
-
function
|
|
4214
|
+
function Ti(e) {
|
|
4204
4215
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4205
4216
|
}
|
|
4206
|
-
function
|
|
4207
|
-
const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : `/${
|
|
4217
|
+
function Ii(e) {
|
|
4218
|
+
const n = e.split("/").filter(Boolean).map((r) => r.startsWith(":") ? r.endsWith("?") ? "(?:/[^/]+)?" : "/[^/]+" : `/${Ti(r)}`).join("");
|
|
4208
4219
|
return new RegExp(`^${n}\\/?$`);
|
|
4209
4220
|
}
|
|
4210
|
-
function
|
|
4221
|
+
function ki(e, t) {
|
|
4211
4222
|
const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean), o = {};
|
|
4212
4223
|
return n.forEach((i, s) => {
|
|
4213
4224
|
if (i.startsWith(":")) {
|
|
@@ -4216,14 +4227,14 @@ function Ti(e, t) {
|
|
|
4216
4227
|
}
|
|
4217
4228
|
}), o;
|
|
4218
4229
|
}
|
|
4219
|
-
function
|
|
4230
|
+
function wi(e) {
|
|
4220
4231
|
return e.publicBasePath ?? `/apps/${e.name}`;
|
|
4221
4232
|
}
|
|
4222
|
-
function
|
|
4233
|
+
function cd(e) {
|
|
4223
4234
|
const t = [];
|
|
4224
4235
|
for (const n of e) {
|
|
4225
4236
|
if (!n?.name) continue;
|
|
4226
|
-
const r =
|
|
4237
|
+
const r = wi(n);
|
|
4227
4238
|
for (const o of n.routes ?? []) {
|
|
4228
4239
|
if (!o.public) continue;
|
|
4229
4240
|
const i = o.path === "/" ? "" : o.path;
|
|
@@ -4237,7 +4248,7 @@ function id(e) {
|
|
|
4237
4248
|
}
|
|
4238
4249
|
return t;
|
|
4239
4250
|
}
|
|
4240
|
-
function
|
|
4251
|
+
function vi(e, t) {
|
|
4241
4252
|
const n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
|
|
4242
4253
|
for (let o = 0; o < Math.min(n.length, r.length); o++) {
|
|
4243
4254
|
const i = n[o].startsWith(":"), s = r[o].startsWith(":");
|
|
@@ -4245,17 +4256,17 @@ function ki(e, t) {
|
|
|
4245
4256
|
}
|
|
4246
4257
|
return n.length > r.length;
|
|
4247
4258
|
}
|
|
4248
|
-
function
|
|
4259
|
+
function Mi(e, t) {
|
|
4249
4260
|
if (typeof e != "string") return null;
|
|
4250
4261
|
let n = null;
|
|
4251
4262
|
for (const r of t)
|
|
4252
|
-
|
|
4253
|
-
return n ? { ...n, params: { ...n.props, ...
|
|
4263
|
+
Ii(r.pattern).test(e) && (!n || vi(r.pattern, n.pattern)) && (n = r);
|
|
4264
|
+
return n ? { ...n, params: { ...n.props, ...ki(n.pattern, e) } } : null;
|
|
4254
4265
|
}
|
|
4255
|
-
function
|
|
4256
|
-
return
|
|
4266
|
+
function ld(e, t) {
|
|
4267
|
+
return Mi(e, t) !== null;
|
|
4257
4268
|
}
|
|
4258
|
-
const
|
|
4269
|
+
const ud = 10 * 1024 * 1024, dd = 25 * 1024 * 1024, pd = "sync-target", fd = 20, Ci = {
|
|
4259
4270
|
afrikaans: [
|
|
4260
4271
|
"[Muziek]",
|
|
4261
4272
|
"(C) TV GELDERLAND 2021",
|
|
@@ -4405,14 +4416,14 @@ const ad = 10 * 1024 * 1024, cd = 25 * 1024 * 1024, ld = "sync-target", ud = 20,
|
|
|
4405
4416
|
"[MÚSICA]",
|
|
4406
4417
|
"[Music cuts in British]"
|
|
4407
4418
|
]
|
|
4408
|
-
},
|
|
4419
|
+
}, Oi = (e) => {
|
|
4409
4420
|
let t = e;
|
|
4410
|
-
return Object.values(
|
|
4421
|
+
return Object.values(Ci).forEach((n) => {
|
|
4411
4422
|
n.forEach((r) => {
|
|
4412
4423
|
t = t.replaceAll(r, "");
|
|
4413
4424
|
});
|
|
4414
4425
|
}), t = t.replace(/\(.*?\)/g, ""), t = t.replace(/\[.*?\]/g, ""), t;
|
|
4415
|
-
},
|
|
4426
|
+
}, xi = 6e4, Ni = 8e3, Ri = 2, Di = 0.4, $i = 3, Li = /* @__PURE__ */ new Set([
|
|
4416
4427
|
"aan",
|
|
4417
4428
|
"als",
|
|
4418
4429
|
"ben",
|
|
@@ -4525,13 +4536,13 @@ const ad = 10 * 1024 * 1024, cd = 25 * 1024 * 1024, ld = "sync-target", ud = 20,
|
|
|
4525
4536
|
"you",
|
|
4526
4537
|
"your"
|
|
4527
4538
|
]);
|
|
4528
|
-
function
|
|
4539
|
+
function Pi(e) {
|
|
4529
4540
|
const t = /* @__PURE__ */ new Set();
|
|
4530
4541
|
for (const n of e.toLowerCase().split(/[^a-z0-9À-ɏ]+/))
|
|
4531
|
-
n.length <
|
|
4542
|
+
n.length < $i || Li.has(n) || t.add(n);
|
|
4532
4543
|
return [...t];
|
|
4533
4544
|
}
|
|
4534
|
-
function
|
|
4545
|
+
function Ki(e, t) {
|
|
4535
4546
|
if (!e.length) return 0;
|
|
4536
4547
|
if (!t.length) return 1;
|
|
4537
4548
|
const n = new Set(t), r = new Set(e);
|
|
@@ -4539,32 +4550,32 @@ function Li(e, t) {
|
|
|
4539
4550
|
for (const i of r) n.has(i) || (o += 1);
|
|
4540
4551
|
return o / r.size;
|
|
4541
4552
|
}
|
|
4542
|
-
function
|
|
4553
|
+
function Ui(e, t = xi) {
|
|
4543
4554
|
const n = e.filter((s) => !s.partial && typeof s.text == "string");
|
|
4544
4555
|
if (!n.length) return { text: "", segmentCount: 0 };
|
|
4545
4556
|
const o = n.reduce((s, a) => Math.max(s, a.endedAt ?? 0), 0) - t;
|
|
4546
|
-
return { text: n.filter((s) => (s.endedAt ?? 0) >= o).map((s) =>
|
|
4557
|
+
return { text: n.filter((s) => (s.endedAt ?? 0) >= o).map((s) => Oi(s.text).trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), segmentCount: n.length };
|
|
4547
4558
|
}
|
|
4548
|
-
const
|
|
4549
|
-
function
|
|
4559
|
+
const Fi = 60;
|
|
4560
|
+
function md(e, t, n = Fi) {
|
|
4550
4561
|
const r = new Set(e), o = [...e];
|
|
4551
4562
|
for (const i of t)
|
|
4552
4563
|
!i || r.has(i) || (r.add(i), o.push(i));
|
|
4553
4564
|
return o.slice(-n);
|
|
4554
4565
|
}
|
|
4555
|
-
function
|
|
4566
|
+
function hd(e) {
|
|
4556
4567
|
const { segments: t, now: n, state: r } = e;
|
|
4557
|
-
if (r.lastTriggerAt && n - r.lastTriggerAt <
|
|
4568
|
+
if (r.lastTriggerAt && n - r.lastTriggerAt < Ni)
|
|
4558
4569
|
return { trigger: !1, reason: "too_soon" };
|
|
4559
|
-
const o =
|
|
4570
|
+
const o = Ui(t, e.windowMs);
|
|
4560
4571
|
if (!o.text) return { trigger: !1, reason: "no_speech" };
|
|
4561
4572
|
const i = o.segmentCount - (r.lastSegmentCount ?? 0);
|
|
4562
|
-
if (r.lastQueryTerms && i <
|
|
4573
|
+
if (r.lastQueryTerms && i < Ri)
|
|
4563
4574
|
return { trigger: !1, reason: "too_few_new" };
|
|
4564
|
-
const s =
|
|
4565
|
-
return s.length ? r.lastQueryTerms?.length &&
|
|
4575
|
+
const s = Pi(o.text);
|
|
4576
|
+
return s.length ? r.lastQueryTerms?.length && Ki(s, r.lastQueryTerms) < Di ? { trigger: !1, reason: "same_topic" } : { trigger: !0, text: o.text, terms: s, segmentCount: o.segmentCount } : { trigger: !1, reason: "no_speech" };
|
|
4566
4577
|
}
|
|
4567
|
-
const
|
|
4578
|
+
const gd = [
|
|
4568
4579
|
"personal",
|
|
4569
4580
|
"organization",
|
|
4570
4581
|
"connections",
|
|
@@ -4572,7 +4583,7 @@ const fd = [
|
|
|
4572
4583
|
"work",
|
|
4573
4584
|
"administration",
|
|
4574
4585
|
"ai"
|
|
4575
|
-
],
|
|
4586
|
+
], yd = "navNotice", Ue = {
|
|
4576
4587
|
// The lower bounds are deliberately generous: service ranges (0800/0900) are
|
|
4577
4588
|
// shorter than geographic numbers, and a too-strict minimum silently drops them.
|
|
4578
4589
|
// An over-permissive key is harmless — it simply matches nothing.
|
|
@@ -4595,53 +4606,53 @@ const fd = [
|
|
|
4595
4606
|
PL: { callingCode: "48", nsnMin: 9, nsnMax: 9 },
|
|
4596
4607
|
US: { callingCode: "1", nsnMin: 10, nsnMax: 10 },
|
|
4597
4608
|
CA: { callingCode: "1", nsnMin: 10, nsnMax: 10 }
|
|
4598
|
-
},
|
|
4599
|
-
new Set(Object.values(
|
|
4609
|
+
}, Bi = "NL", ji = 15, Hi = 8, Gi = Array.from(
|
|
4610
|
+
new Set(Object.values(Ue).map((e) => e.callingCode))
|
|
4600
4611
|
).sort((e, t) => t.length - e.length);
|
|
4601
|
-
function
|
|
4612
|
+
function bt(e) {
|
|
4602
4613
|
if (e)
|
|
4603
|
-
return
|
|
4614
|
+
return Ue[e.trim().toUpperCase()];
|
|
4604
4615
|
}
|
|
4605
4616
|
function ee(e, t) {
|
|
4606
4617
|
return e.length >= t.nsnMin && e.length <= t.nsnMax;
|
|
4607
4618
|
}
|
|
4608
|
-
function
|
|
4609
|
-
if (e.length >
|
|
4610
|
-
for (const t of
|
|
4619
|
+
function _t(e) {
|
|
4620
|
+
if (e.length > ji) return null;
|
|
4621
|
+
for (const t of Gi) {
|
|
4611
4622
|
if (!e.startsWith(t)) continue;
|
|
4612
4623
|
const n = e.slice(t.length);
|
|
4613
|
-
for (const r of Object.values(
|
|
4624
|
+
for (const r of Object.values(Ue)) {
|
|
4614
4625
|
if (r.callingCode !== t) continue;
|
|
4615
4626
|
const o = r.trunkPrefix, i = o && n.startsWith(o) ? n.slice(o.length) : n;
|
|
4616
4627
|
if (ee(i, r)) return `+${t}${i}`;
|
|
4617
4628
|
}
|
|
4618
4629
|
return null;
|
|
4619
4630
|
}
|
|
4620
|
-
return e.length <
|
|
4631
|
+
return e.length < Hi ? null : `+${e}`;
|
|
4621
4632
|
}
|
|
4622
|
-
function
|
|
4633
|
+
function Wi(e) {
|
|
4623
4634
|
let t = e.trim();
|
|
4624
4635
|
const n = t.match(/^(sips?|tel|whatsapp):/i);
|
|
4625
4636
|
n && (t = t.slice(n[0].length));
|
|
4626
4637
|
const r = t.indexOf("@");
|
|
4627
4638
|
return r >= 0 && (t = t.slice(0, r)), t.trim();
|
|
4628
4639
|
}
|
|
4629
|
-
function
|
|
4640
|
+
function bd(e) {
|
|
4630
4641
|
if (!e) return !1;
|
|
4631
4642
|
const t = e.indexOf("@");
|
|
4632
4643
|
if (t <= 0) return !1;
|
|
4633
4644
|
const n = e.slice(0, t).trim();
|
|
4634
4645
|
return !/^[+\d\s().-]+$/.test(n);
|
|
4635
4646
|
}
|
|
4636
|
-
function
|
|
4647
|
+
function At(e, t) {
|
|
4637
4648
|
if (!e) return null;
|
|
4638
|
-
const n =
|
|
4649
|
+
const n = Wi(e);
|
|
4639
4650
|
if (!n) return null;
|
|
4640
4651
|
const r = n.startsWith("+"), o = n.replace(/\D/g, "");
|
|
4641
4652
|
if (!o) return null;
|
|
4642
|
-
if (r) return
|
|
4643
|
-
if (o.startsWith("00")) return
|
|
4644
|
-
const i =
|
|
4653
|
+
if (r) return _t(o);
|
|
4654
|
+
if (o.startsWith("00")) return _t(o.slice(2));
|
|
4655
|
+
const i = bt(t) ?? bt(Bi);
|
|
4645
4656
|
if (!i) return null;
|
|
4646
4657
|
const s = i.trunkPrefix;
|
|
4647
4658
|
if (s && o.startsWith(s)) {
|
|
@@ -4654,22 +4665,22 @@ function _t(e, t) {
|
|
|
4654
4665
|
}
|
|
4655
4666
|
return !s && ee(o, i) ? `+${i.callingCode}${o}` : null;
|
|
4656
4667
|
}
|
|
4657
|
-
function
|
|
4668
|
+
function _d(e, t = 9) {
|
|
4658
4669
|
const n = (e ?? "").replace(/\D/g, "");
|
|
4659
4670
|
return n.length < t ? null : n.slice(-t);
|
|
4660
4671
|
}
|
|
4661
|
-
function
|
|
4672
|
+
function an(e) {
|
|
4662
4673
|
if (!e) return null;
|
|
4663
4674
|
const t = e.trim().toLowerCase(), n = t.lastIndexOf("@");
|
|
4664
4675
|
if (n <= 0 || n === t.length - 1) return null;
|
|
4665
4676
|
const r = t.slice(0, n).split("+")[0], o = t.slice(n + 1);
|
|
4666
4677
|
return !r || !o.includes(".") ? null : `${r}@${o}`;
|
|
4667
4678
|
}
|
|
4668
|
-
function
|
|
4669
|
-
const t =
|
|
4679
|
+
function Ad(e) {
|
|
4680
|
+
const t = an(e);
|
|
4670
4681
|
return t ? t.slice(t.lastIndexOf("@") + 1) : null;
|
|
4671
4682
|
}
|
|
4672
|
-
const
|
|
4683
|
+
const Vi = /* @__PURE__ */ new Set([
|
|
4673
4684
|
"co.uk",
|
|
4674
4685
|
"org.uk",
|
|
4675
4686
|
"gov.uk",
|
|
@@ -4679,14 +4690,14 @@ const Gi = /* @__PURE__ */ new Set([
|
|
|
4679
4690
|
"com.br",
|
|
4680
4691
|
"co.za"
|
|
4681
4692
|
]);
|
|
4682
|
-
function
|
|
4693
|
+
function zi(e) {
|
|
4683
4694
|
if (!e) return null;
|
|
4684
4695
|
const t = e.trim().toLowerCase().replace(/\.$/, "").split(".").filter(Boolean);
|
|
4685
4696
|
if (t.length < 2) return null;
|
|
4686
4697
|
const n = t.slice(-2).join(".");
|
|
4687
|
-
return
|
|
4698
|
+
return Vi.has(n) && t.length >= 3 ? t.slice(-3).join(".") : n;
|
|
4688
4699
|
}
|
|
4689
|
-
const
|
|
4700
|
+
const Xi = /* @__PURE__ */ new Set([
|
|
4690
4701
|
"gmail.com",
|
|
4691
4702
|
"googlemail.com",
|
|
4692
4703
|
"outlook.com",
|
|
@@ -4731,34 +4742,34 @@ const Vi = /* @__PURE__ */ new Set([
|
|
|
4731
4742
|
"proximus.be",
|
|
4732
4743
|
"scarlet.be"
|
|
4733
4744
|
]);
|
|
4734
|
-
function
|
|
4735
|
-
const t =
|
|
4736
|
-
return t ?
|
|
4745
|
+
function Sd(e) {
|
|
4746
|
+
const t = zi(e);
|
|
4747
|
+
return t ? Xi.has(t) : !1;
|
|
4737
4748
|
}
|
|
4738
|
-
function
|
|
4749
|
+
function Ed(e) {
|
|
4739
4750
|
if (!e) return !1;
|
|
4740
4751
|
const t = e.trim().toLowerCase();
|
|
4741
4752
|
return t === "tel" || t === "sms" || t === "whatsapp" || t === "fax";
|
|
4742
4753
|
}
|
|
4743
|
-
function
|
|
4754
|
+
function Td(e, t, n) {
|
|
4744
4755
|
if (!e || !t) return null;
|
|
4745
4756
|
const r = e.trim().toLowerCase();
|
|
4746
4757
|
if (r === "tel" || r === "sms" || r === "whatsapp") {
|
|
4747
|
-
const i =
|
|
4758
|
+
const i = At(t, n);
|
|
4748
4759
|
return i ? `tel:${i}` : null;
|
|
4749
4760
|
}
|
|
4750
4761
|
if (r === "fax") {
|
|
4751
|
-
const i =
|
|
4762
|
+
const i = At(t, n);
|
|
4752
4763
|
return i ? `fax:${i}` : null;
|
|
4753
4764
|
}
|
|
4754
4765
|
if (r === "mailto" || r === "email") {
|
|
4755
|
-
const i =
|
|
4766
|
+
const i = an(t);
|
|
4756
4767
|
return i ? `mailto:${i}` : null;
|
|
4757
4768
|
}
|
|
4758
4769
|
const o = t.trim().toLowerCase();
|
|
4759
4770
|
return o ? `${r}:${o}` : null;
|
|
4760
4771
|
}
|
|
4761
|
-
const
|
|
4772
|
+
const Yi = [
|
|
4762
4773
|
/<blockquote/i,
|
|
4763
4774
|
/class="?gmail_quote/i,
|
|
4764
4775
|
// Gmail quote container
|
|
@@ -4771,72 +4782,72 @@ const zi = [
|
|
|
4771
4782
|
// Outlook underscore separator before "From:"
|
|
4772
4783
|
/\bOn\b[\s\S]{0,200}?\bwrote:/i
|
|
4773
4784
|
// Gmail "On <date> <name> wrote:"
|
|
4774
|
-
],
|
|
4775
|
-
function
|
|
4785
|
+
], St = /^\s*(?:>+\s*)?(?:from|van|sent|verzonden|to|aan|cc|subject|onderwerp|date|datum)\s*:/i, qi = /^\s*(?:on|op)\b.{0,200}?\b(?:wrote|schreef|geschreven)\s*:?\s*$/i;
|
|
4786
|
+
function Qi(e) {
|
|
4776
4787
|
const t = e.split(`
|
|
4777
4788
|
`);
|
|
4778
4789
|
for (let n = 0; n < t.length; n++)
|
|
4779
|
-
if (
|
|
4790
|
+
if (qi.test(t[n]) || St.test(t[n]) && t.slice(n + 1, n + 4).some((r) => St.test(r)))
|
|
4780
4791
|
return t.slice(0, n).join(`
|
|
4781
4792
|
`).trim();
|
|
4782
4793
|
return e;
|
|
4783
4794
|
}
|
|
4784
|
-
const
|
|
4785
|
-
function
|
|
4795
|
+
const Zi = /^(?:https?:|mailto:|tel:)/i, Ji = /^(?:https?:|cid:|data:image\/)/i;
|
|
4796
|
+
function he(e, t) {
|
|
4786
4797
|
const n = e.match(new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s">]+))`, "i"));
|
|
4787
4798
|
return (n?.[1] ?? n?.[2] ?? n?.[3] ?? "").trim();
|
|
4788
4799
|
}
|
|
4789
|
-
const
|
|
4790
|
-
function
|
|
4791
|
-
return e.replace(/\s+/g, " ").trim().split(
|
|
4800
|
+
const es = /(!\[[^\]]*\]\([^)]*\))/;
|
|
4801
|
+
function Et(e) {
|
|
4802
|
+
return e.replace(/\s+/g, " ").trim().split(es).map((t, n) => n % 2 === 1 ? t : t.replace(/[[\]]/g, "\\$&")).join("");
|
|
4792
4803
|
}
|
|
4793
|
-
function
|
|
4804
|
+
function ge(e) {
|
|
4794
4805
|
return e.replace(
|
|
4795
4806
|
/[()\s<>"]/g,
|
|
4796
4807
|
(t) => `%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0")}`
|
|
4797
4808
|
);
|
|
4798
4809
|
}
|
|
4799
|
-
function
|
|
4810
|
+
function ts(e) {
|
|
4800
4811
|
return e.replace(/<img\b([^>]*?)\/?>/gi, (n, r) => {
|
|
4801
|
-
const o =
|
|
4802
|
-
return
|
|
4812
|
+
const o = he(r, "src");
|
|
4813
|
+
return Ji.test(o) ? `})` : "";
|
|
4803
4814
|
}).replace(
|
|
4804
4815
|
/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/gi,
|
|
4805
4816
|
(n, r, o) => {
|
|
4806
|
-
const i =
|
|
4807
|
-
return
|
|
4817
|
+
const i = Et(o.replace(/<[^>]*>/g, "")), s = he(r, "href");
|
|
4818
|
+
return Zi.test(s) ? `[${i || ge(s)}](${ge(s)})` : i;
|
|
4808
4819
|
}
|
|
4809
4820
|
);
|
|
4810
4821
|
}
|
|
4811
|
-
const
|
|
4812
|
-
function
|
|
4822
|
+
const ns = /<table\b[^>]*>((?:(?!<table\b)[\s\S])*?)<\/table\s*>/i, rs = /<tr\b[^>]*>([\s\S]*?)<\/tr\s*>/gi, os = /<(t[dh])\b([^>]*)>([\s\S]*?)<\/\1\s*>/gi;
|
|
4823
|
+
function is(e, t) {
|
|
4813
4824
|
return /<table\b/i.test(e) || e.includes(`
|
|
4814
4825
|
|
|
4815
4826
|
|`) || t.includes("![") || t.length > 200;
|
|
4816
4827
|
}
|
|
4817
|
-
const
|
|
4818
|
-
function
|
|
4828
|
+
const ss = 40, as = { left: "---", center: ":---:", right: "---:" };
|
|
4829
|
+
function cs(e) {
|
|
4819
4830
|
const t = e.match(/align\s*[=:]\s*["']?\s*(right|center)/i);
|
|
4820
4831
|
return t ? t[1].toLowerCase() : "left";
|
|
4821
4832
|
}
|
|
4822
|
-
function
|
|
4833
|
+
function ls(e) {
|
|
4823
4834
|
return e.replace(/<[^>]*>/g, "").replace(/\s+/g, " ").trim().replace(/\|/g, "\\|");
|
|
4824
4835
|
}
|
|
4825
|
-
function
|
|
4836
|
+
function us(e) {
|
|
4826
4837
|
const t = [];
|
|
4827
|
-
for (const s of e.matchAll(
|
|
4838
|
+
for (const s of e.matchAll(rs)) {
|
|
4828
4839
|
const a = [];
|
|
4829
|
-
for (const u of s[1].matchAll(
|
|
4830
|
-
const l =
|
|
4831
|
-
if (
|
|
4832
|
-
a.push({ text: l, align:
|
|
4840
|
+
for (const u of s[1].matchAll(os)) {
|
|
4841
|
+
const l = ls(u[3]);
|
|
4842
|
+
if (is(u[3], l)) return null;
|
|
4843
|
+
a.push({ text: l, align: cs(u[2]) });
|
|
4833
4844
|
}
|
|
4834
4845
|
if (a.length === 0) return null;
|
|
4835
4846
|
a.some((u) => u.text !== "") && t.push(a);
|
|
4836
4847
|
}
|
|
4837
4848
|
const n = t[0]?.length ?? 0;
|
|
4838
4849
|
if (t.length < 2 || n < 2 || t.some((s) => s.length !== n)) return null;
|
|
4839
|
-
const r = (s) => `| ${s.map((a) => a.text).join(" | ")} |`, o = t[1].map((s) =>
|
|
4850
|
+
const r = (s) => `| ${s.map((a) => a.text).join(" | ")} |`, o = t[1].map((s) => as[s.align]).join(" | "), i = t.slice(1).map(r).join(`
|
|
4840
4851
|
`);
|
|
4841
4852
|
return `
|
|
4842
4853
|
|
|
@@ -4846,36 +4857,36 @@ ${i}
|
|
|
4846
4857
|
|
|
4847
4858
|
`;
|
|
4848
4859
|
}
|
|
4849
|
-
function
|
|
4860
|
+
function ds(e) {
|
|
4850
4861
|
return e.replace(/<\/(t[dh])\s*>/gi, " ").replace(/<\/tr\s*>/gi, `
|
|
4851
4862
|
`).replace(/<(?:tbody|thead|tfoot|caption|colgroup|col|tr|t[dh])\b[^>]*>/gi, "").replace(/<\/(?:tbody|thead|tfoot|caption|colgroup)\s*>/gi, "");
|
|
4852
4863
|
}
|
|
4853
|
-
function
|
|
4864
|
+
function ps(e) {
|
|
4854
4865
|
let t = e;
|
|
4855
|
-
for (let n = 0; n <
|
|
4856
|
-
const r =
|
|
4866
|
+
for (let n = 0; n < ss; n++) {
|
|
4867
|
+
const r = ns.exec(t);
|
|
4857
4868
|
if (!r || r.index === void 0) break;
|
|
4858
|
-
const i =
|
|
4869
|
+
const i = us(r[1]) ?? `
|
|
4859
4870
|
|
|
4860
|
-
${
|
|
4871
|
+
${ds(r[1])}
|
|
4861
4872
|
|
|
4862
4873
|
`;
|
|
4863
4874
|
t = t.slice(0, r.index) + i + t.slice(r.index + r[0].length);
|
|
4864
4875
|
}
|
|
4865
4876
|
return t;
|
|
4866
4877
|
}
|
|
4867
|
-
function
|
|
4878
|
+
function Tt(e, t) {
|
|
4868
4879
|
let n = e;
|
|
4869
4880
|
return n = n.replace(/<(script|style)[\s\S]*?<\/\1>/gi, ""), n = n.replace(/<!--[\s\S]*?-->/g, ""), n = n.replace(/<br\s*\/?>/gi, `
|
|
4870
|
-
`), t && (n =
|
|
4881
|
+
`), t && (n = ps(ts(n))), n = n.replace(/<\/(p|h[1-6]|ul|ol|table|blockquote)>/gi, `
|
|
4871
4882
|
|
|
4872
4883
|
`), n = n.replace(/<\/(div|li|tr)>/gi, `
|
|
4873
4884
|
`), n = n.replace(/<\/(td|th)>/gi, " "), n = n.replace(/<[^>]+>/g, ""), n = n.replace(/<[^>]*$/, ""), n;
|
|
4874
4885
|
}
|
|
4875
|
-
function
|
|
4886
|
+
function It(e) {
|
|
4876
4887
|
return !Number.isInteger(e) || e < 0 || e > 1114111 ? null : String.fromCodePoint(e);
|
|
4877
4888
|
}
|
|
4878
|
-
const
|
|
4889
|
+
const fs = {
|
|
4879
4890
|
euro: "€",
|
|
4880
4891
|
pound: "£",
|
|
4881
4892
|
yen: "¥",
|
|
@@ -4897,527 +4908,530 @@ const ds = {
|
|
|
4897
4908
|
rdquo: "”",
|
|
4898
4909
|
apos: "'"
|
|
4899
4910
|
};
|
|
4900
|
-
function It(e) {
|
|
4901
|
-
return e.replace(/ /gi, " ").replace(/&([a-z]+);/gi, (t, n) => ds[n.toLowerCase()] ?? t).replace(/</gi, "<").replace(/>/gi, ">").replace(/"/gi, '"').replace(/&#(\d+);/g, (t, n) => Tt(Number(n)) ?? t).replace(/&#x([0-9a-f]+);/gi, (t, n) => Tt(parseInt(n, 16)) ?? t).replace(/&/gi, "&");
|
|
4902
|
-
}
|
|
4903
4911
|
function kt(e) {
|
|
4912
|
+
return e.replace(/ /gi, " ").replace(/&([a-z]+);/gi, (t, n) => fs[n.toLowerCase()] ?? t).replace(/</gi, "<").replace(/>/gi, ">").replace(/"/gi, '"').replace(/&#(\d+);/g, (t, n) => It(Number(n)) ?? t).replace(/&#x([0-9a-f]+);/gi, (t, n) => It(parseInt(n, 16)) ?? t).replace(/&/gi, "&");
|
|
4913
|
+
}
|
|
4914
|
+
function wt(e) {
|
|
4904
4915
|
return e.replace(/\r/g, "").replace(/[ \t]+/g, " ").replace(/ *\n */g, `
|
|
4905
4916
|
`).replace(/\n{3,}/g, `
|
|
4906
4917
|
|
|
4907
4918
|
`).trim();
|
|
4908
4919
|
}
|
|
4909
|
-
const
|
|
4910
|
-
function
|
|
4911
|
-
return
|
|
4920
|
+
const ms = /<\s*(html|body|div|p|table|br|span)\b/i;
|
|
4921
|
+
function Id(e) {
|
|
4922
|
+
return ms.test(e);
|
|
4912
4923
|
}
|
|
4913
|
-
function
|
|
4914
|
-
return
|
|
4924
|
+
function kd(e) {
|
|
4925
|
+
return cn(e, !1);
|
|
4915
4926
|
}
|
|
4916
|
-
function
|
|
4917
|
-
return
|
|
4927
|
+
function wd(e) {
|
|
4928
|
+
return cn(e, !0);
|
|
4918
4929
|
}
|
|
4919
|
-
function
|
|
4930
|
+
function cn(e, t) {
|
|
4920
4931
|
if (typeof e != "string" || !e) return "";
|
|
4921
4932
|
let n = e.length;
|
|
4922
|
-
for (const s of
|
|
4933
|
+
for (const s of Yi) {
|
|
4923
4934
|
const a = e.search(s);
|
|
4924
4935
|
a >= 0 && a < n && (n = a);
|
|
4925
4936
|
}
|
|
4926
4937
|
const r = e.slice(0, n);
|
|
4927
|
-
let o = kt(
|
|
4928
|
-
return o || (o = kt(
|
|
4938
|
+
let o = wt(kt(Tt(r, t)));
|
|
4939
|
+
return o || (o = wt(kt(Tt(e, t)))), Qi(o) || o;
|
|
4929
4940
|
}
|
|
4930
4941
|
export {
|
|
4931
|
-
|
|
4942
|
+
ra as ACTIVE_ASSIGNMENT_STATUSES,
|
|
4932
4943
|
R as ACTIVITY_CATALOG,
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4944
|
+
li as AI_ATTACHMENT_LIMITS,
|
|
4945
|
+
lu as AI_ATTACHMENT_MAX_PER_TURN,
|
|
4946
|
+
cu as AI_ATTACHMENT_TURN_BUDGET,
|
|
4947
|
+
Ct as AI_VENDORS,
|
|
4948
|
+
On as ALLOWED_LINK_SCHEMES,
|
|
4949
|
+
Xu as APP_PERMISSIONS,
|
|
4950
|
+
Xe as ARTIFACT_MAX_BLOCKS,
|
|
4951
|
+
qs as ARTIFACT_MAX_BODY_BYTES,
|
|
4941
4952
|
Z as ARTIFACT_MAX_CELL_LEN,
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4953
|
+
Ze as ARTIFACT_MAX_KPI_ITEMS,
|
|
4954
|
+
Ye as ARTIFACT_MAX_LIST_ITEMS,
|
|
4955
|
+
Qe as ARTIFACT_MAX_TABLE_COLUMNS,
|
|
4956
|
+
qe as ARTIFACT_MAX_TABLE_ROWS,
|
|
4957
|
+
xt as ARTIFACT_MAX_TEXT_LEN,
|
|
4958
|
+
Fn as ASSIGNMENT_SCOPE_KIND,
|
|
4959
|
+
mu as ASSIST_BANDS,
|
|
4960
|
+
fu as ASSIST_SOURCE_PROVIDER_GROUP,
|
|
4961
|
+
ur as ATTENTION_STATUSES,
|
|
4962
|
+
xo as AT_RISK_GAP,
|
|
4963
|
+
on as AUTH_APP_NAME,
|
|
4964
|
+
po as AUTO_READY_MIN_PROPOSALS,
|
|
4965
|
+
fo as AUTO_READY_RATE,
|
|
4966
|
+
_n as ActivityTypeRegistry,
|
|
4967
|
+
Ns as BUILT_IN_ONLY,
|
|
4968
|
+
dr as BULK_PENALTY,
|
|
4969
|
+
ua as BUSINESS_ENTITY_LIST_SERVICE,
|
|
4970
|
+
Ni as CADENCE_FLOOR_MS,
|
|
4971
|
+
Ri as CADENCE_MIN_NEW_SEGMENTS,
|
|
4972
|
+
Di as CADENCE_MIN_NOVELTY,
|
|
4973
|
+
xi as CADENCE_WINDOW_MS,
|
|
4974
|
+
vc as CLASSIFY_VARS,
|
|
4975
|
+
Du as CONNECTOR_PROVIDER_GROUP,
|
|
4976
|
+
$u as CONTEXT_COLLECT_SERVICE,
|
|
4977
|
+
Gs as CORE_DIMENSIONS,
|
|
4978
|
+
hi as CommunicationScheme,
|
|
4979
|
+
tr as DAY_MS,
|
|
4980
|
+
Mo as DEFAULT_CHECK_IN_DAYS,
|
|
4981
|
+
Hr as DEFAULT_FORECAST_WEEKS,
|
|
4982
|
+
qa as DEFAULT_MEMORY_BUDGET,
|
|
4983
|
+
Ol as DEFAULT_NUMBER_PADDING,
|
|
4984
|
+
Bi as DEFAULT_PHONE_REGION,
|
|
4985
|
+
wl as DEFAULT_QUOTE_TEMPLATE_BLOCKS,
|
|
4986
|
+
kl as DEFAULT_TEMPLATE_CONDITIONS,
|
|
4987
|
+
ac as DEMAND_SOURCE_PROVIDER_GROUP,
|
|
4988
|
+
ju as DOCUMENT_APPLY_SERVICE,
|
|
4989
|
+
Fu as DOCUMENT_DESCRIBE_SERVICE,
|
|
4990
|
+
Bu as DOCUMENT_INSPECT_SERVICE,
|
|
4991
|
+
Xe as DOCUMENT_MAX_BLOCKS,
|
|
4992
|
+
qs as DOCUMENT_MAX_BODY_BYTES,
|
|
4982
4993
|
Z as DOCUMENT_MAX_CELL_LEN,
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
4994
|
+
Ze as DOCUMENT_MAX_KPI_ITEMS,
|
|
4995
|
+
Je as DOCUMENT_MAX_LETTERHEAD_FIELDS,
|
|
4996
|
+
Ye as DOCUMENT_MAX_LIST_ITEMS,
|
|
4997
|
+
Mn as DOCUMENT_MAX_RECIPIENT_LINES,
|
|
4998
|
+
Qe as DOCUMENT_MAX_TABLE_COLUMNS,
|
|
4999
|
+
qe as DOCUMENT_MAX_TABLE_ROWS,
|
|
5000
|
+
xt as DOCUMENT_MAX_TEXT_LEN,
|
|
5001
|
+
et as DOCUMENT_MAX_TOTALS_ROWS,
|
|
5002
|
+
tn as DOCUMENT_OPERATIONS,
|
|
5003
|
+
jo as DUTCH_SLOT_LABELS,
|
|
5004
|
+
Cc as EMPTY_WORKFLOW,
|
|
5005
|
+
Fo as ENABLED_TRANSACTION_KINDS,
|
|
5006
|
+
Ou as FEATURE_FOLDER_MANAGEMENT,
|
|
5007
|
+
Nu as FEATURE_MESSAGE_REACTIONS,
|
|
5008
|
+
xu as FEATURE_REMOTE_SEARCH,
|
|
5009
|
+
Re as FIXED_KINDS,
|
|
5010
|
+
ie as FIXED_LEVELS,
|
|
5011
|
+
Pe as FIXED_TYPES,
|
|
5012
|
+
ga as FIXED_UNITS,
|
|
5013
|
+
fr as FOLLOW_UP_HOURS,
|
|
5014
|
+
Sl as FROZEN_WRITABLE_FIELDS,
|
|
5015
|
+
er as HOUR_MS,
|
|
5016
|
+
ms as HTML_BODY_RE,
|
|
5006
5017
|
L as INELIGIBLE,
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5018
|
+
Gu as INSTALLATION_HEADER,
|
|
5019
|
+
so as INTERACTION_KIND,
|
|
5020
|
+
Mu as InteractionParticipantRole,
|
|
5021
|
+
Sr as KB_FALLBACK_LOCALE,
|
|
5022
|
+
rt as KB_LOCALES,
|
|
5023
|
+
rt as LOCALES,
|
|
5024
|
+
Ke as LOOSE_STATUSES,
|
|
5025
|
+
sr as MAIL_HINT_HEADERS,
|
|
5026
|
+
bs as MAX_ACTIONS,
|
|
5027
|
+
Bn as MAX_ASSIGNMENT_TURNS,
|
|
5028
|
+
hs as MAX_BLOCKS,
|
|
5029
|
+
Ut as MAX_COLLECTION_DEPTH,
|
|
5030
|
+
ud as MAX_EDITABLE_FILE_BYTES,
|
|
5031
|
+
gs as MAX_FIELDS,
|
|
5032
|
+
ys as MAX_LIST_ITEMS,
|
|
5033
|
+
Va as MAX_MEMORY_BROWSE,
|
|
5034
|
+
Ya as MAX_MEMORY_BUDGET,
|
|
5035
|
+
za as MAX_MEMORY_CHARS,
|
|
5036
|
+
Fi as MAX_SHOWN_KEYS,
|
|
5037
|
+
Lo as MAX_TOPIC_CANDIDATES,
|
|
5038
|
+
$o as MAX_TOPIC_EXAMPLES,
|
|
5039
|
+
me as MAX_TOPIC_EXAMPLE_CHARS,
|
|
5040
|
+
dd as MAX_VIEWABLE_FILE_BYTES,
|
|
5041
|
+
Xa as MIN_MEMORY_BUDGET,
|
|
5042
|
+
yd as NAV_NOTICE_SLOT,
|
|
5043
|
+
Pl as NL_PAYMENT_TERMS,
|
|
5044
|
+
Za as NL_TAX_RATES,
|
|
5045
|
+
Vu as NOTIFICATION_SOURCE_PROVIDER_GROUP,
|
|
5046
|
+
No as OFF_TRACK_GAP,
|
|
5047
|
+
ec as ONBOARDING_SOURCE_PROVIDER_GROUP,
|
|
5048
|
+
ve as PAUSE_HOLD,
|
|
5049
|
+
ke as PAUSE_SNOOZED,
|
|
5050
|
+
we as PAUSE_WAITING_FOR_CUSTOMER,
|
|
5051
|
+
Rl as PAYMENT_TERM_METHODS,
|
|
5052
|
+
Ue as PHONE_REGIONS,
|
|
5053
|
+
nn as PRESENCE_ONLINE_WINDOW_MS,
|
|
5054
|
+
Ei as PRESENCE_SURVIVES_OFFLINE,
|
|
5055
|
+
Yo as PRODUCT_SCOPE_KIND,
|
|
5056
|
+
nc as PROFILE_TOOL_DISPOSITIONS,
|
|
5057
|
+
vu as PROVIDER_FEATURE_MESSAGE_TEMPLATES,
|
|
5058
|
+
wu as PROVIDER_FEATURE_MESSAGE_WINDOW,
|
|
5059
|
+
Xi as PUBLIC_EMAIL_DOMAINS,
|
|
5060
|
+
ot as READ_STEP_TYPES,
|
|
5061
|
+
Ir as RELATED_SUBJECT_KINDS,
|
|
5062
|
+
en as RESERVED_STATUS_KEYS,
|
|
5063
|
+
Hl as RESERVED_TYPE_KEYS,
|
|
5064
|
+
nd as RESOURCE_ATTACHED_SERVICE,
|
|
5065
|
+
Ju as RESOURCE_DESCRIBE_SERVICE,
|
|
5066
|
+
td as RESOURCE_RESOLVE_SERVICE,
|
|
5067
|
+
ed as RESOURCE_SEARCH_SERVICE,
|
|
5068
|
+
Yr as SCHEDULE_ENTRY_SCOPE_KIND,
|
|
5069
|
+
id as SCOPE_READ_ROUTE,
|
|
5070
|
+
od as SCOPE_RELATED_ROUTE,
|
|
5071
|
+
gd as SETTINGS_CATEGORIES,
|
|
5072
|
+
ya as SIGNATURE_INTENTS,
|
|
5073
|
+
pr as SLA_HOURS_BY_PRIORITY,
|
|
5074
|
+
Bc as SLA_METRICS,
|
|
5075
|
+
jc as SLA_PAUSE_REASONS,
|
|
5076
|
+
lo as STEP_MAX_TOKENS_MAX,
|
|
5077
|
+
co as STEP_MAX_TOKENS_MIN,
|
|
5078
|
+
wo as STRATEGY_ITEM_SCOPE_KIND,
|
|
5079
|
+
ir as SUMMARY_MIN_LAST_CHARS,
|
|
5080
|
+
or as SUMMARY_MIN_MESSAGES,
|
|
5081
|
+
fd as SYNC_RUN_MAX_ERRORS,
|
|
5082
|
+
pd as SYNC_TARGET_PROVIDER_GROUP,
|
|
5083
|
+
Un as TERMINAL_ASSIGNMENT_STATUSES,
|
|
5084
|
+
mo as TERMINAL_RUN_STATUSES,
|
|
5085
|
+
Le as TRANSACTION_KINDS,
|
|
5086
|
+
Xo as TRANSACTION_SCOPE_KINDS,
|
|
5087
|
+
wc as TRIGGER_VARS,
|
|
5088
|
+
vr as UNKNOWN_KIND,
|
|
5089
|
+
vo as UNKNOWN_LEVEL_ORDER,
|
|
5090
|
+
Ru as UNSUPPORTED,
|
|
5091
|
+
kn as USAGE_DIMENSIONS,
|
|
5092
|
+
wn as USAGE_DIMENSION_IDS,
|
|
5093
|
+
qr as WORKSTREAM_SCOPE_KIND,
|
|
5094
|
+
ei as WORK_ACTIVITY_SCOPE_KIND,
|
|
5095
|
+
tc as WORK_AREAS,
|
|
5096
|
+
Ul as WORK_COMMENT_ADDED,
|
|
5097
|
+
Xl as WORK_CYCLE_SYNC_KIND,
|
|
5098
|
+
Fl as WORK_ITEM_ASSIGNED,
|
|
5099
|
+
Zo as WORK_ITEM_SCOPE_KIND,
|
|
5100
|
+
Bl as WORK_ITEM_STATUS_CHANGED,
|
|
5101
|
+
Jo as WORK_PROJECT_SCOPE_KIND,
|
|
5091
5102
|
te as W_PRIORITY,
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5103
|
+
yl as acceptExampleCandidate,
|
|
5104
|
+
eo as actingIdentityKey,
|
|
5105
|
+
hl as activeWorkTypes,
|
|
5106
|
+
As as activityIconOf,
|
|
5107
|
+
Os as activityJoinUrl,
|
|
5108
|
+
hn as activitySnippet,
|
|
5109
|
+
gn as activityTextParams,
|
|
5110
|
+
Cs as activityTimelineText,
|
|
5111
|
+
An as activityTimestamp,
|
|
5101
5112
|
k as activityTypeInfo,
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5113
|
+
_c as actorKey,
|
|
5114
|
+
gl as addExampleCandidate,
|
|
5115
|
+
De as addWorkingMs,
|
|
5116
|
+
qu as agePresenceEntry,
|
|
5117
|
+
ci as aiAttachmentKind,
|
|
5118
|
+
uu as aiAttachmentRejection,
|
|
5119
|
+
ze as aiBudgetLimit,
|
|
5120
|
+
js as aiBudgetPeriodKey,
|
|
5121
|
+
Sn as aiBudgetPeriodStart,
|
|
5122
|
+
Bs as aiBudgetState,
|
|
5123
|
+
Fs as aiVendorAcceptsAttachment,
|
|
5124
|
+
Ps as aiVendorDefaultModel,
|
|
5125
|
+
Ls as aiVendorLabel,
|
|
5126
|
+
Us as aiVendorNeedsBaseUrl,
|
|
5127
|
+
Ks as aiVendorsWith,
|
|
5128
|
+
Gn as allocate,
|
|
5129
|
+
sn as appNameFromPath,
|
|
5130
|
+
ul as applyRounding,
|
|
5131
|
+
ba as applySignature,
|
|
5132
|
+
uo as approvalRate,
|
|
5133
|
+
Zs as artifactBodyBytes,
|
|
5134
|
+
Js as artifactOutline,
|
|
5135
|
+
Kn as artifactToMarkdown,
|
|
5136
|
+
Tc as assignmentMismatch,
|
|
5137
|
+
ia as assignmentScopeKey,
|
|
5138
|
+
ca as assignmentSubject,
|
|
5139
|
+
sc as availabilityByPerson,
|
|
5140
|
+
rc as belongsOnCalendar,
|
|
5141
|
+
da as belongsToEntity,
|
|
5142
|
+
xs as buildActivityPreview,
|
|
5143
|
+
Su as buildChannelIntents,
|
|
5144
|
+
ea as buildShareKeys,
|
|
5145
|
+
Ui as buildWindow,
|
|
5146
|
+
Jn as businessEntitySender,
|
|
5147
|
+
Cr as calendarDaysBetween,
|
|
5148
|
+
$e as calendarOf,
|
|
5149
|
+
Fa as canNestUnder,
|
|
5150
|
+
Qc as canParent,
|
|
5151
|
+
oc as capacityTotal,
|
|
5152
|
+
hc as capacityWeights,
|
|
5153
|
+
ks as carriesText,
|
|
5154
|
+
ja as categoryLabel,
|
|
5155
|
+
ri as categoryOf,
|
|
5156
|
+
ku as channelKindForScheme,
|
|
5157
|
+
Ss as channelKindOf,
|
|
5158
|
+
al as checkInOverdueMs,
|
|
5159
|
+
Mc as clampStepMaxTokens,
|
|
5160
|
+
Ma as classifyMail,
|
|
5161
|
+
wd as cleanMessageMarkdown,
|
|
5162
|
+
kd as cleanMessageText,
|
|
5163
|
+
pa as codeQuery,
|
|
5164
|
+
gu as compareAssistRank,
|
|
5165
|
+
Do as compareWorkTypes,
|
|
5166
|
+
Zn as conditionHolds,
|
|
5167
|
+
Bo as copyFrom,
|
|
5157
5168
|
z as countsAsPlanned,
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5169
|
+
ic as coverageByPerson,
|
|
5170
|
+
lc as coverageFor,
|
|
5171
|
+
Bt as coversWorkstream,
|
|
5172
|
+
Nl as currentPeriod,
|
|
5173
|
+
jt as cycleDayIndex,
|
|
5174
|
+
su as cycleOrder,
|
|
5175
|
+
au as cycleState,
|
|
5176
|
+
la as decideAssignmentState,
|
|
5177
|
+
hd as decideCadence,
|
|
5178
|
+
_u as decideIncomingCall,
|
|
5179
|
+
Er as defaultLocaleOf,
|
|
5180
|
+
nu as defaultStatusKey,
|
|
5181
|
+
Vo as defaultTemplateBlocks,
|
|
5182
|
+
Cu as defineIntent,
|
|
5183
|
+
_r as depthOf,
|
|
5184
|
+
Yu as derivePresence,
|
|
5185
|
+
zs as describeClause,
|
|
5186
|
+
Au as disabledIntentsFromCapabilities,
|
|
5187
|
+
Zs as documentBodyBytes,
|
|
5188
|
+
Hu as documentKindOf,
|
|
5189
|
+
Js as documentOutline,
|
|
5190
|
+
Kn as documentToMarkdown,
|
|
5191
|
+
Uu as documentToText,
|
|
5192
|
+
Wc as dueAtOf,
|
|
5193
|
+
Dl as dueDateFrom,
|
|
5194
|
+
ll as elapsedSeconds,
|
|
5195
|
+
Ad as emailDomain,
|
|
5196
|
+
Td as endpointKey,
|
|
5197
|
+
Rr as erlangC,
|
|
5198
|
+
ki as extractParams,
|
|
5199
|
+
Pi as extractTerms,
|
|
5200
|
+
Ea as fillDocument,
|
|
5201
|
+
Qn as fillText,
|
|
5202
|
+
Tu as filterByEndpoint,
|
|
5203
|
+
Eu as filterByIntent,
|
|
5204
|
+
mi as filterByTargetScheme,
|
|
5205
|
+
Vs as filterableDimensions,
|
|
5206
|
+
oe as findAiVendor,
|
|
5207
|
+
Jc as fixedLevelForName,
|
|
5208
|
+
Vl as fixedTypeForName,
|
|
5209
|
+
zl as fixedTypes,
|
|
5210
|
+
Wu as flattenLocales,
|
|
5200
5211
|
W as floorToPeriod,
|
|
5201
|
-
|
|
5202
|
-
|
|
5212
|
+
pc as forecastIntervals,
|
|
5213
|
+
Jr as formatActingIdentity,
|
|
5203
5214
|
D as formatCents,
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5215
|
+
pl as formatClock,
|
|
5216
|
+
dl as formatHm,
|
|
5217
|
+
ql as formatItemKey,
|
|
5207
5218
|
G as formatPeriod,
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5219
|
+
xl as formatSeriesNumber,
|
|
5220
|
+
Xc as formatSlaDuration,
|
|
5221
|
+
pu as freshSources,
|
|
5222
|
+
Rs as getActivitySeenUserIds,
|
|
5223
|
+
_a as getContactEndpoints,
|
|
5224
|
+
$a as getShortTitle,
|
|
5225
|
+
Da as getUrgencyScore,
|
|
5226
|
+
Kc as hasReacted,
|
|
5227
|
+
el as healthCategory,
|
|
5228
|
+
tl as healthsInCategory,
|
|
5229
|
+
Ft as heightOf,
|
|
5230
|
+
Pa as helpCenterText,
|
|
5231
|
+
Ic as humanizeAction,
|
|
5232
|
+
ao as interactionIdOf,
|
|
5233
|
+
Kl as isAgentUser,
|
|
5234
|
+
Na as isAssigned,
|
|
5235
|
+
oa as isAssignmentTerminal,
|
|
5236
|
+
ro as isAssignmentTrigger,
|
|
5237
|
+
Nc as isAutoReady,
|
|
5238
|
+
br as isAwaitingThem,
|
|
5239
|
+
$s as isChatMessageActivity,
|
|
5240
|
+
Ra as isClosed,
|
|
5241
|
+
vs as isConnectedType,
|
|
5242
|
+
sd as isDeepLink,
|
|
5243
|
+
Ar as isDescendant,
|
|
5244
|
+
Ia as isEligible,
|
|
5245
|
+
Ds as isEmailActivity,
|
|
5246
|
+
Al as isFrozen,
|
|
5247
|
+
Gc as isHeldClock,
|
|
5248
|
+
Id as isHtmlBody,
|
|
5249
|
+
Dc as isInFlight,
|
|
5250
|
+
lr as isInteractionUnseen,
|
|
5251
|
+
ad as isLandingPath,
|
|
5252
|
+
rr as isLikelyBulk,
|
|
5253
|
+
vt as isMessageShape,
|
|
5254
|
+
Es as isMessageType,
|
|
5255
|
+
vi as isMoreSpecificPattern,
|
|
5256
|
+
Mt as isNoteShape,
|
|
5257
|
+
ko as isOpenClock,
|
|
5258
|
+
du as isOutwardTool,
|
|
5259
|
+
hr as isParked,
|
|
5260
|
+
ho as isPaused,
|
|
5261
|
+
ws as isPlaybookAuthoredType,
|
|
5262
|
+
Sd as isPublicEmailDomain,
|
|
5263
|
+
ld as isPublicPath,
|
|
5264
|
+
gr as isReminderActive,
|
|
5265
|
+
Is as isReplyableType,
|
|
5266
|
+
Oa as isSlaAtRisk,
|
|
5267
|
+
Rc as isTerminal,
|
|
5268
|
+
wa as isThreadLongEnough,
|
|
5269
|
+
Ms as isTranscriptType,
|
|
5270
|
+
ru as isWorkClosed,
|
|
5271
|
+
ml as isWorkTypeVisible,
|
|
5272
|
+
Jl as itemDossierKeys,
|
|
5262
5273
|
N as kindFor,
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5274
|
+
ni as ladderFor,
|
|
5275
|
+
Co as levelIn,
|
|
5276
|
+
Ce as levelOrder,
|
|
5277
|
+
wr as lineNet,
|
|
5278
|
+
La as linkLabel,
|
|
5279
|
+
_l as listedTransactionKinds,
|
|
5280
|
+
Hs as listeningAllowed,
|
|
5281
|
+
Ua as localeInstruction,
|
|
5282
|
+
Ka as localeName,
|
|
5283
|
+
Ba as localesOf,
|
|
5284
|
+
bd as looksLikeEmail,
|
|
5285
|
+
Dt as lookup,
|
|
5286
|
+
ma as marginCents,
|
|
5287
|
+
Ku as markdownToDocument,
|
|
5288
|
+
Iu as matchContactToIntents,
|
|
5289
|
+
Mi as matchPublicRoute,
|
|
5290
|
+
Ga as mcpCredentialScope,
|
|
5291
|
+
Wa as mcpToolPrefix,
|
|
5292
|
+
nl as measureRatio,
|
|
5293
|
+
md as mergeShownKeys,
|
|
5294
|
+
mn as messageCountsAs,
|
|
5295
|
+
Xs as metricOption,
|
|
5296
|
+
Ht as minutesOn,
|
|
5297
|
+
Ed as needsPhoneRegion,
|
|
5298
|
+
Ts as nestsUnderParent,
|
|
5299
|
+
Zc as nextLevelBelow,
|
|
5300
|
+
Vc as nextSlaClock,
|
|
5301
|
+
El as nextVersion,
|
|
5302
|
+
Qs as normalizeArtifactBlocks,
|
|
5303
|
+
_s as normalizeBlocks,
|
|
5304
|
+
Qs as normalizeDocumentBlocks,
|
|
5305
|
+
an as normalizeEmail,
|
|
5295
5306
|
P as normalizeExample,
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5307
|
+
jn as normalizeGtin,
|
|
5308
|
+
zu as notificationPrefKey,
|
|
5309
|
+
Ki as novelty,
|
|
5310
|
+
Pu as operationDescriptor,
|
|
5311
|
+
Lu as operationsForKind,
|
|
5312
|
+
Ta as organizationSender,
|
|
5313
|
+
pe as overlapSeconds,
|
|
5314
|
+
cc as overlaps,
|
|
5315
|
+
rl as paceRatio,
|
|
5316
|
+
ka as parkMarksById,
|
|
5317
|
+
yc as parseActingIdentity,
|
|
5318
|
+
fa as parseAmount,
|
|
5319
|
+
Uc as parseClockMinutes,
|
|
5320
|
+
Ql as parseItemKey,
|
|
5321
|
+
Ii as pathToRegex,
|
|
5322
|
+
Wt as patternFor,
|
|
5323
|
+
Gt as patternStartTime,
|
|
5324
|
+
Fc as pauseBitFor,
|
|
5325
|
+
Ws as periodsInRange,
|
|
5326
|
+
_d as phoneSuffix,
|
|
5327
|
+
va as pickMailHeaders,
|
|
5328
|
+
Sa as pickTemplate,
|
|
5329
|
+
gc as placeLumps,
|
|
5330
|
+
pn as plainTextFromMarkdown,
|
|
5331
|
+
Hc as planSlaEvent,
|
|
5332
|
+
uc as plannedBillable,
|
|
5333
|
+
Br as plannedWorkTypeKey,
|
|
5334
|
+
no as playbookActor,
|
|
5335
|
+
xc as procedureOf,
|
|
5336
|
+
vl as productScopeKey,
|
|
5337
|
+
eu as projectDossierKeys,
|
|
5338
|
+
wi as publicBasePathFor,
|
|
5339
|
+
cd as publicRoutePatterns,
|
|
5340
|
+
aa as reactionWakesAssignment,
|
|
5341
|
+
ye as readPath,
|
|
5342
|
+
de as readStepError,
|
|
5343
|
+
mr as recencyOf,
|
|
5344
|
+
Aa as recipientLocale,
|
|
5345
|
+
io as refKey,
|
|
5346
|
+
zi as registrableDomain,
|
|
5347
|
+
Ko as rejectExampleCandidate,
|
|
5348
|
+
Qa as relatedByDefault,
|
|
5349
|
+
Me as remainingMsOf,
|
|
5350
|
+
Lr as requiredAgents,
|
|
5351
|
+
Fr as requirementFor,
|
|
5352
|
+
pi as resolveAccountCapabilities,
|
|
5353
|
+
be as resolveActivityText,
|
|
5354
|
+
di as resolveChannelIntents,
|
|
5355
|
+
ha as resolvePrice,
|
|
5356
|
+
Xn as resolveSignature,
|
|
5357
|
+
Qu as resolveWorkMode,
|
|
5358
|
+
rd as resourceKindOf,
|
|
5359
|
+
sl as rollupChildren,
|
|
5349
5360
|
V as roundHalfUp,
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5361
|
+
bc as runActor,
|
|
5362
|
+
Lc as runInteractionId,
|
|
5363
|
+
Dn as sanitizeInline,
|
|
5364
|
+
Oi as sanitizeTranscript,
|
|
5365
|
+
fc as scheduleEntryScopeKey,
|
|
5366
|
+
xa as scoreInteraction,
|
|
5367
|
+
jl as scoreWorkItem,
|
|
5368
|
+
Ha as selectLenses,
|
|
5369
|
+
Dr as serviceLevel,
|
|
5370
|
+
bu as sessionsHoldCannotReach,
|
|
5371
|
+
yu as sessionsToHold,
|
|
5372
|
+
$l as shadowTermsByCode,
|
|
5373
|
+
Rt as shareKeyForTeam,
|
|
5374
|
+
Nt as shareKeyForUser,
|
|
5375
|
+
ta as shareKeysForViewer,
|
|
5376
|
+
dc as shortfalls,
|
|
5377
|
+
Zu as shouldRunAudioPipeline,
|
|
5378
|
+
zc as slaBadgeTone,
|
|
5379
|
+
Ca as slaHoursByInbox,
|
|
5380
|
+
yr as slaHoursFor,
|
|
5381
|
+
oi as sortStatuses,
|
|
5382
|
+
ui as sourceKey,
|
|
5383
|
+
Zr as spreadOverWeights,
|
|
5384
|
+
tu as statusIn,
|
|
5385
|
+
Oc as stepsOf,
|
|
5386
|
+
qc as strategyAncestorKeysFor,
|
|
5387
|
+
Yc as strategyDossierKeys,
|
|
5388
|
+
Zt as strategyItemScopeKey,
|
|
5389
|
+
fn as stripHtml,
|
|
5390
|
+
$c as subjectKeyOf,
|
|
5391
|
+
Vt as subjectOf,
|
|
5392
|
+
hu as subjectRef,
|
|
5393
|
+
Zl as suggestProjectKey,
|
|
5394
|
+
ol as suggestedHealth,
|
|
5395
|
+
Pc as summarizeReactions,
|
|
5396
|
+
Ec as targetById,
|
|
5397
|
+
Sc as targetForActivityType,
|
|
5398
|
+
cl as targetOrder,
|
|
5399
|
+
kr as taxRateFor,
|
|
5400
|
+
Or as termsFor,
|
|
5401
|
+
to as toActingIdentity,
|
|
5402
|
+
At as toE164,
|
|
5403
|
+
Ll as toTransactionTerm,
|
|
5404
|
+
oo as toolBareName,
|
|
5405
|
+
kc as toolDisplayName,
|
|
5406
|
+
ne as toolName,
|
|
5407
|
+
na as toolSourceKinds,
|
|
5408
|
+
Uo as topicOfferedForTeam,
|
|
5409
|
+
bl as topicsForTeam,
|
|
5410
|
+
$r as trafficIntensity,
|
|
5411
|
+
Tl as transactionContext,
|
|
5412
|
+
Cl as transactionDossierKeys,
|
|
5413
|
+
Ml as transactionIdFromScope,
|
|
5400
5414
|
F as transactionKind,
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5415
|
+
qo as transactionScopeKey,
|
|
5416
|
+
Il as transactionSlots,
|
|
5417
|
+
Ja as transactionTotals,
|
|
5418
|
+
Po as truncateExample,
|
|
5419
|
+
Wl as typeIn,
|
|
5420
|
+
Gl as typesFor,
|
|
5421
|
+
ou as uniqueWorkStatusKey,
|
|
5422
|
+
fl as uniqueWorkTypeKey,
|
|
5423
|
+
vn as usageMetricId,
|
|
5424
|
+
Ys as usageMetrics,
|
|
5425
|
+
iu as validateStatuses,
|
|
5426
|
+
Ac as valueAtPath,
|
|
5427
|
+
Ne as waitHoursOf,
|
|
5428
|
+
sa as wakesAssignment,
|
|
5429
|
+
Yl as workActivityScopeKey,
|
|
5430
|
+
ti as workItemScopeKey,
|
|
5431
|
+
Jt as workProjectScopeKey,
|
|
5432
|
+
il as workRatio,
|
|
5433
|
+
ii as workStatusKey,
|
|
5434
|
+
Ro as workTypeKey,
|
|
5435
|
+
Ie as workingMsBetween,
|
|
5436
|
+
mc as workstreamScopeKey
|
|
5423
5437
|
};
|