@qtalo/qt-ui-library 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +63 -1
- package/dist/index.js +544 -306
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/styles.css +39 -0
package/dist/index.js
CHANGED
|
@@ -391,43 +391,43 @@ function createDOMPurify() {
|
|
|
391
391
|
e.DocumentFragment;
|
|
392
392
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
393
393
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
394
|
-
let l = e.DOMParser, u = e.trustedTypes, f = s.prototype, p = lookupGetter(f, "cloneNode"), h = lookupGetter(f, "remove"),
|
|
394
|
+
let l = e.DOMParser, u = e.trustedTypes, f = s.prototype, p = lookupGetter(f, "cloneNode"), h = lookupGetter(f, "remove"), Ac = lookupGetter(f, "nextSibling"), g = lookupGetter(f, "childNodes"), O = lookupGetter(f, "parentNode"), jc = lookupGetter(f, "shadowRoot"), Mc = lookupGetter(f, "attributes"), A = o && o.prototype ? lookupGetter(o.prototype, "nodeType") : null, Nc = o && o.prototype ? lookupGetter(o.prototype, "nodeName") : null, R = o && o.prototype ? lookupGetter(o.prototype, "ownerDocument") : null;
|
|
395
395
|
if (typeof a == "function") {
|
|
396
396
|
let e = n.createElement("template");
|
|
397
397
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
398
398
|
}
|
|
399
|
-
let B,
|
|
400
|
-
if (
|
|
401
|
-
},
|
|
402
|
-
|
|
399
|
+
let B, Pc = "", Fc, Ic = !1, Lc = 0, Rc = function() {
|
|
400
|
+
if (Lc > 0) throw typeErrorCreate("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
401
|
+
}, zc = function(e) {
|
|
402
|
+
Rc(), Lc++;
|
|
403
403
|
try {
|
|
404
404
|
return B.createHTML(e);
|
|
405
405
|
} finally {
|
|
406
|
-
|
|
406
|
+
Lc--;
|
|
407
407
|
}
|
|
408
|
-
},
|
|
409
|
-
|
|
408
|
+
}, Bc = function(e) {
|
|
409
|
+
Rc(), Lc++;
|
|
410
410
|
try {
|
|
411
411
|
return B.createScriptURL(e);
|
|
412
412
|
} finally {
|
|
413
|
-
|
|
413
|
+
Lc--;
|
|
414
414
|
}
|
|
415
|
-
},
|
|
416
|
-
return
|
|
417
|
-
},
|
|
418
|
-
t.isSupported = typeof entries == "function" && typeof O == "function" &&
|
|
419
|
-
let
|
|
415
|
+
}, Vc = function() {
|
|
416
|
+
return Ic ||= (Fc = _createTrustedTypesPolicy(u, i), !0), Fc;
|
|
417
|
+
}, Hc = n, Uc = Hc.implementation, Wc = Hc.createNodeIterator, Gc = Hc.createDocumentFragment, Kc = Hc.getElementsByTagName, qc = r.importNode, V = _createHooksMap();
|
|
418
|
+
t.isSupported = typeof entries == "function" && typeof O == "function" && Uc && Uc.createHTMLDocument !== void 0;
|
|
419
|
+
let Jc = MUSTACHE_EXPR, Yc = ERB_EXPR, Xc = TMPLIT_EXPR, Zc = DATA_ATTR, Qc = ARIA_ATTR, $c = IS_SCRIPT_OR_DATA, el = ATTR_WHITESPACE, tl = CUSTOM_ELEMENT, nl = IS_ALLOWED_URI, H = null, rl = addToSet({}, [
|
|
420
420
|
...html$1,
|
|
421
421
|
...svg$1,
|
|
422
422
|
...svgFilters,
|
|
423
423
|
...mathMl$1,
|
|
424
424
|
...text
|
|
425
|
-
]), Y = null,
|
|
425
|
+
]), Y = null, il = addToSet({}, [
|
|
426
426
|
...html,
|
|
427
427
|
...svg,
|
|
428
428
|
...mathMl,
|
|
429
429
|
...xml
|
|
430
|
-
]),
|
|
430
|
+
]), al = Object.seal(create(null, {
|
|
431
431
|
tagNameCheck: {
|
|
432
432
|
writable: !0,
|
|
433
433
|
configurable: !1,
|
|
@@ -446,7 +446,7 @@ function createDOMPurify() {
|
|
|
446
446
|
enumerable: !0,
|
|
447
447
|
value: !1
|
|
448
448
|
}
|
|
449
|
-
})),
|
|
449
|
+
})), ol = null, sl = null, cl = Object.seal(create(null, {
|
|
450
450
|
tagCheck: {
|
|
451
451
|
writable: !0,
|
|
452
452
|
configurable: !1,
|
|
@@ -459,14 +459,14 @@ function createDOMPurify() {
|
|
|
459
459
|
enumerable: !0,
|
|
460
460
|
value: null
|
|
461
461
|
}
|
|
462
|
-
})),
|
|
462
|
+
})), ll = !0, ul = !0, dl = !1, fl = !0, pl = !1, ml = !0, hl = !1, gl = !1, _l = null, vl = null, yl = !1, bl = !1, xl = !1, Sl = !1, Cl = !0, wl = !1, Tl = "user-content-", El = !0, Dl = !1, Ol = {}, kl = null, Al = addToSet({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), jl = null, Ml = addToSet({}, [
|
|
463
463
|
"audio",
|
|
464
464
|
"video",
|
|
465
465
|
"img",
|
|
466
466
|
"source",
|
|
467
467
|
"image",
|
|
468
468
|
"track"
|
|
469
|
-
]),
|
|
469
|
+
]), Nl = null, Pl = addToSet({}, [
|
|
470
470
|
"alt",
|
|
471
471
|
"class",
|
|
472
472
|
"for",
|
|
@@ -481,78 +481,78 @@ function createDOMPurify() {
|
|
|
481
481
|
"value",
|
|
482
482
|
"style",
|
|
483
483
|
"xmlns"
|
|
484
|
-
]),
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
], stringToString),
|
|
484
|
+
]), Fl = "http://www.w3.org/1998/Math/MathML", Il = "http://www.w3.org/2000/svg", Ll = "http://www.w3.org/1999/xhtml", Rl = Ll, zl = !1, Bl = null, Vl = addToSet({}, [
|
|
485
|
+
Fl,
|
|
486
|
+
Il,
|
|
487
|
+
Ll
|
|
488
|
+
], stringToString), Hl = freeze([
|
|
489
489
|
"mi",
|
|
490
490
|
"mo",
|
|
491
491
|
"mn",
|
|
492
492
|
"ms",
|
|
493
493
|
"mtext"
|
|
494
|
-
]),
|
|
494
|
+
]), Ul = addToSet({}, Hl), Wl = freeze(["annotation-xml"]), Gl = addToSet({}, Wl), Kl = addToSet({}, [
|
|
495
495
|
"title",
|
|
496
496
|
"style",
|
|
497
497
|
"font",
|
|
498
498
|
"a",
|
|
499
499
|
"script"
|
|
500
|
-
]),
|
|
500
|
+
]), ql = null, Jl = ["application/xhtml+xml", "text/html"], Yl = null, Xl = null, Zl = n.createElement("form"), Ql = function(e) {
|
|
501
501
|
return e instanceof RegExp || e instanceof Function;
|
|
502
|
-
},
|
|
502
|
+
}, $l = function() {
|
|
503
503
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
504
|
-
if (
|
|
505
|
-
(!e || typeof e != "object") && (e = {}), e = clone(e),
|
|
506
|
-
transform:
|
|
507
|
-
base:
|
|
508
|
-
}),
|
|
509
|
-
transform:
|
|
510
|
-
base:
|
|
511
|
-
}),
|
|
504
|
+
if (Xl && Xl === e) return;
|
|
505
|
+
(!e || typeof e != "object") && (e = {}), e = clone(e), ql = Jl.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Yl = ql === "application/xhtml+xml" ? stringToString : stringToLowerCase, H = _resolveSetOption(e, "ALLOWED_TAGS", rl, { transform: Yl }), Y = _resolveSetOption(e, "ALLOWED_ATTR", il, { transform: Yl }), Bl = _resolveSetOption(e, "ALLOWED_NAMESPACES", Vl, { transform: stringToString }), Nl = _resolveSetOption(e, "ADD_URI_SAFE_ATTR", Pl, {
|
|
506
|
+
transform: Yl,
|
|
507
|
+
base: Pl
|
|
508
|
+
}), jl = _resolveSetOption(e, "ADD_DATA_URI_TAGS", Ml, {
|
|
509
|
+
transform: Yl,
|
|
510
|
+
base: Ml
|
|
511
|
+
}), kl = _resolveSetOption(e, "FORBID_CONTENTS", Al, { transform: Yl }), ol = _resolveSetOption(e, "FORBID_TAGS", clone({}), { transform: Yl }), sl = _resolveSetOption(e, "FORBID_ATTR", clone({}), { transform: Yl }), Ol = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, ll = e.ALLOW_ARIA_ATTR !== !1, ul = e.ALLOW_DATA_ATTR !== !1, dl = e.ALLOW_UNKNOWN_PROTOCOLS || !1, fl = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, pl = e.SAFE_FOR_TEMPLATES || !1, ml = e.SAFE_FOR_XML !== !1, hl = e.WHOLE_DOCUMENT || !1, bl = e.RETURN_DOM || !1, xl = e.RETURN_DOM_FRAGMENT || !1, Sl = e.RETURN_TRUSTED_TYPE || !1, yl = e.FORCE_BODY || !1, Cl = e.SANITIZE_DOM !== !1, wl = e.SANITIZE_NAMED_PROPS || !1, El = e.KEEP_CONTENT !== !1, Dl = e.IN_PLACE || !1, nl = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : IS_ALLOWED_URI, Rl = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Ll, Ul = objectHasOwnProperty(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? clone(e.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, Hl), Gl = objectHasOwnProperty(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, Wl);
|
|
512
512
|
let t = objectHasOwnProperty(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? clone(e.CUSTOM_ELEMENT_HANDLING) : create(null);
|
|
513
|
-
if (
|
|
513
|
+
if (al = create(null), objectHasOwnProperty(t, "tagNameCheck") && Ql(t.tagNameCheck) && (al.tagNameCheck = t.tagNameCheck), objectHasOwnProperty(t, "attributeNameCheck") && Ql(t.attributeNameCheck) && (al.attributeNameCheck = t.attributeNameCheck), objectHasOwnProperty(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (al.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), seal(al), pl && (ul = !1), xl && (bl = !0), Ol && (H = addToSet({}, text), Y = create(null), Ol.html === !0 && (addToSet(H, html$1), addToSet(Y, html)), Ol.svg === !0 && (addToSet(H, svg$1), addToSet(Y, svg), addToSet(Y, xml)), Ol.svgFilters === !0 && (addToSet(H, svgFilters), addToSet(Y, svg), addToSet(Y, xml)), Ol.mathMl === !0 && (addToSet(H, mathMl$1), addToSet(Y, mathMl), addToSet(Y, xml))), cl.tagCheck = null, cl.attributeCheck = null, objectHasOwnProperty(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? cl.tagCheck = e.ADD_TAGS : arrayIsArray(e.ADD_TAGS) && (H === rl && (H = clone(H)), addToSet(H, e.ADD_TAGS, Yl))), objectHasOwnProperty(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? cl.attributeCheck = e.ADD_ATTR : arrayIsArray(e.ADD_ATTR) && (Y === il && (Y = clone(Y)), addToSet(Y, e.ADD_ATTR, Yl))), objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") && arrayIsArray(e.ADD_URI_SAFE_ATTR) && addToSet(Nl, e.ADD_URI_SAFE_ATTR, Yl), objectHasOwnProperty(e, "FORBID_CONTENTS") && arrayIsArray(e.FORBID_CONTENTS) && (kl === Al && (kl = clone(kl)), addToSet(kl, e.FORBID_CONTENTS, Yl)), objectHasOwnProperty(e, "ADD_FORBID_CONTENTS") && arrayIsArray(e.ADD_FORBID_CONTENTS) && (kl === Al && (kl = clone(kl)), addToSet(kl, e.ADD_FORBID_CONTENTS, Yl)), El && (H["#text"] = !0), hl && addToSet(H, [
|
|
514
514
|
"html",
|
|
515
515
|
"head",
|
|
516
516
|
"body"
|
|
517
|
-
]), H.table && (addToSet(H, ["tbody"]), delete
|
|
517
|
+
]), H.table && (addToSet(H, ["tbody"]), delete ol.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
518
518
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
519
519
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
520
520
|
let t = B;
|
|
521
521
|
B = e.TRUSTED_TYPES_POLICY;
|
|
522
522
|
try {
|
|
523
|
-
|
|
523
|
+
Pc = zc("");
|
|
524
524
|
} catch (e) {
|
|
525
525
|
throw B = t, e;
|
|
526
526
|
}
|
|
527
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (B = void 0,
|
|
528
|
-
freeze && freeze(e),
|
|
529
|
-
},
|
|
527
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (B = void 0, Pc = "") : (B === void 0 && (B = Vc()), B && typeof Pc == "string" && (Pc = zc("")));
|
|
528
|
+
freeze && freeze(e), Xl = e;
|
|
529
|
+
}, eu = addToSet({}, [
|
|
530
530
|
...svg$1,
|
|
531
531
|
...svgFilters,
|
|
532
532
|
...svgDisallowed
|
|
533
|
-
]),
|
|
534
|
-
return t.namespaceURI ===
|
|
535
|
-
},
|
|
536
|
-
return t.namespaceURI ===
|
|
537
|
-
},
|
|
538
|
-
return t.namespaceURI ===
|
|
539
|
-
},
|
|
533
|
+
]), tu = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), nu = function(e, t, n) {
|
|
534
|
+
return t.namespaceURI === Ll ? e === "svg" : t.namespaceURI === Fl ? e === "svg" && (n === "annotation-xml" || Ul[n]) : !!eu[e];
|
|
535
|
+
}, ru = function(e, t, n) {
|
|
536
|
+
return t.namespaceURI === Ll ? e === "math" : t.namespaceURI === Il ? e === "math" && Gl[n] : !!tu[e];
|
|
537
|
+
}, iu = function(e, t, n) {
|
|
538
|
+
return t.namespaceURI === Il && !Gl[n] || t.namespaceURI === Fl && !Ul[n] ? !1 : !tu[e] && (Kl[e] || !eu[e]);
|
|
539
|
+
}, au = function(e) {
|
|
540
540
|
let t = O(e);
|
|
541
541
|
(!t || !t.tagName) && (t = {
|
|
542
|
-
namespaceURI:
|
|
542
|
+
namespaceURI: Rl,
|
|
543
543
|
tagName: "template"
|
|
544
544
|
});
|
|
545
545
|
let n = stringToLowerCase(e.tagName), r = stringToLowerCase(t.tagName);
|
|
546
|
-
return
|
|
547
|
-
},
|
|
546
|
+
return Bl[e.namespaceURI] ? e.namespaceURI === Il ? nu(n, t, r) : e.namespaceURI === Fl ? ru(n, t, r) : e.namespaceURI === Ll ? iu(n, t, r) : !!(ql === "application/xhtml+xml" && Bl[e.namespaceURI]) : !1;
|
|
547
|
+
}, ou = function(e) {
|
|
548
548
|
arrayPush(t.removed, { element: e });
|
|
549
549
|
try {
|
|
550
550
|
O(e).removeChild(e);
|
|
551
551
|
} catch {
|
|
552
552
|
if (h(e), !O(e)) throw typeErrorCreate("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
553
553
|
}
|
|
554
|
-
},
|
|
555
|
-
|
|
554
|
+
}, su = function(e) {
|
|
555
|
+
uu(e);
|
|
556
556
|
let t = g(e);
|
|
557
557
|
if (t) {
|
|
558
558
|
let e = [];
|
|
@@ -564,14 +564,14 @@ function createDOMPurify() {
|
|
|
564
564
|
} catch {}
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
let n =
|
|
567
|
+
let n = Mc(e);
|
|
568
568
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
569
569
|
let r = n[t], i = r && r.name;
|
|
570
570
|
if (typeof i == "string") try {
|
|
571
571
|
e.removeAttribute(i);
|
|
572
572
|
} catch {}
|
|
573
573
|
}
|
|
574
|
-
},
|
|
574
|
+
}, cu = function(e, n) {
|
|
575
575
|
try {
|
|
576
576
|
arrayPush(t.removed, {
|
|
577
577
|
attribute: n.getAttributeNode(e),
|
|
@@ -583,30 +583,30 @@ function createDOMPurify() {
|
|
|
583
583
|
from: n
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
if (n.removeAttribute(e), e === "is") if (
|
|
587
|
-
|
|
586
|
+
if (n.removeAttribute(e), e === "is") if (bl || xl) try {
|
|
587
|
+
ou(n);
|
|
588
588
|
} catch {}
|
|
589
589
|
else try {
|
|
590
590
|
n.setAttribute(e, "");
|
|
591
591
|
} catch {}
|
|
592
|
-
},
|
|
593
|
-
let t =
|
|
592
|
+
}, lu = function(e) {
|
|
593
|
+
let t = Mc(e);
|
|
594
594
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
595
595
|
let r = t[n], i = r && r.name;
|
|
596
|
-
if (!(typeof i != "string" || Y[
|
|
596
|
+
if (!(typeof i != "string" || Y[Yl(i)])) try {
|
|
597
597
|
e.removeAttribute(i);
|
|
598
598
|
} catch {}
|
|
599
599
|
}
|
|
600
|
-
},
|
|
600
|
+
}, uu = function(e) {
|
|
601
601
|
let t = [e];
|
|
602
602
|
for (; t.length > 0;) {
|
|
603
603
|
let e = t.pop();
|
|
604
|
-
(A ? A(e) : e.nodeType) === NODE_TYPE.element &&
|
|
604
|
+
(A ? A(e) : e.nodeType) === NODE_TYPE.element && lu(e);
|
|
605
605
|
let n = g(e);
|
|
606
606
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
607
607
|
}
|
|
608
|
-
},
|
|
609
|
-
if (!
|
|
608
|
+
}, du = function(e) {
|
|
609
|
+
if (!ml) return;
|
|
610
610
|
let t = [e];
|
|
611
611
|
for (; t.length > 0;) {
|
|
612
612
|
let e = t.pop(), n = A ? A(e) : e.nodeType;
|
|
@@ -617,7 +617,7 @@ function createDOMPurify() {
|
|
|
617
617
|
continue;
|
|
618
618
|
}
|
|
619
619
|
if (n === NODE_TYPE.element) {
|
|
620
|
-
let t = e, n =
|
|
620
|
+
let t = e, n = Yl(Nc ? Nc(e) : e.nodeName);
|
|
621
621
|
try {
|
|
622
622
|
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
|
|
623
623
|
} catch {}
|
|
@@ -625,50 +625,50 @@ function createDOMPurify() {
|
|
|
625
625
|
let r = g(e);
|
|
626
626
|
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
627
627
|
}
|
|
628
|
-
},
|
|
628
|
+
}, fu = function(e) {
|
|
629
629
|
let t = null, r = null;
|
|
630
|
-
if (
|
|
630
|
+
if (yl) e = "<remove></remove>" + e;
|
|
631
631
|
else {
|
|
632
632
|
let t = stringMatch(e, /^[\r\n\t ]+/);
|
|
633
633
|
r = t && t[0];
|
|
634
634
|
}
|
|
635
|
-
|
|
636
|
-
let i = B ?
|
|
637
|
-
if (
|
|
638
|
-
t = new l().parseFromString(i,
|
|
635
|
+
ql === "application/xhtml+xml" && Rl === Ll && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
636
|
+
let i = B ? zc(e) : e;
|
|
637
|
+
if (Rl === Ll) try {
|
|
638
|
+
t = new l().parseFromString(i, ql);
|
|
639
639
|
} catch {}
|
|
640
640
|
if (!t || !t.documentElement) {
|
|
641
|
-
t =
|
|
641
|
+
t = Uc.createDocument(Rl, "template", null);
|
|
642
642
|
try {
|
|
643
|
-
t.documentElement.innerHTML =
|
|
643
|
+
t.documentElement.innerHTML = zl ? Pc : i;
|
|
644
644
|
} catch {}
|
|
645
645
|
}
|
|
646
646
|
let a = t.body || t.documentElement;
|
|
647
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
648
|
-
},
|
|
647
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Rl === Ll ? Kc.call(t, hl ? "html" : "body")[0] : hl ? t.documentElement : a;
|
|
648
|
+
}, pu = function(e) {
|
|
649
649
|
let t = R ? R(e) : e.ownerDocument;
|
|
650
|
-
return
|
|
651
|
-
},
|
|
652
|
-
return e = stringReplace(e,
|
|
653
|
-
},
|
|
650
|
+
return Wc.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
651
|
+
}, mu = function(e) {
|
|
652
|
+
return e = stringReplace(e, Jc, " "), e = stringReplace(e, Yc, " "), e = stringReplace(e, Xc, " "), e;
|
|
653
|
+
}, hu = function(e) {
|
|
654
654
|
e.normalize();
|
|
655
|
-
let t = R ? R(e) : e.ownerDocument, n =
|
|
656
|
-
for (; r;) r.data =
|
|
655
|
+
let t = R ? R(e) : e.ownerDocument, n = Wc.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
656
|
+
for (; r;) r.data = mu(r.data), r = n.nextNode();
|
|
657
657
|
let i = e.querySelectorAll?.call(e, "template");
|
|
658
658
|
i && arrayForEach(i, (e) => {
|
|
659
|
-
|
|
659
|
+
_u(e.content) && hu(e.content);
|
|
660
660
|
});
|
|
661
|
-
},
|
|
662
|
-
let t =
|
|
663
|
-
return typeof t != "string" ||
|
|
664
|
-
},
|
|
661
|
+
}, gu = function(e) {
|
|
662
|
+
let t = Nc ? Nc(e) : null;
|
|
663
|
+
return typeof t != "string" || Yl(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== Mc(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== A(e) || e.childNodes !== g(e);
|
|
664
|
+
}, _u = function(e) {
|
|
665
665
|
if (!A || typeof e != "object" || !e) return !1;
|
|
666
666
|
try {
|
|
667
667
|
return A(e) === NODE_TYPE.documentFragment;
|
|
668
668
|
} catch {
|
|
669
669
|
return !1;
|
|
670
670
|
}
|
|
671
|
-
},
|
|
671
|
+
}, vu = function(e) {
|
|
672
672
|
if (!A || typeof e != "object" || !e) return !1;
|
|
673
673
|
try {
|
|
674
674
|
return typeof A(e) == "number";
|
|
@@ -676,57 +676,57 @@ function createDOMPurify() {
|
|
|
676
676
|
return !1;
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
|
-
function
|
|
679
|
+
function yu(e, n, r) {
|
|
680
680
|
e.length !== 0 && arrayForEach(e, (e) => {
|
|
681
|
-
e.call(t, n, r,
|
|
681
|
+
e.call(t, n, r, Xl);
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
let
|
|
685
|
-
return !!(
|
|
686
|
-
},
|
|
687
|
-
if (!
|
|
688
|
-
if (
|
|
684
|
+
let bu = function(e, t) {
|
|
685
|
+
return !!(ml && e.hasChildNodes() && !vu(e.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, e.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, e.innerHTML) || ml && e.namespaceURI === Ll && t === "style" && vu(e.firstElementChild) || e.nodeType === NODE_TYPE.processingInstruction || ml && e.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, e.data));
|
|
686
|
+
}, xu = function(e, t, n) {
|
|
687
|
+
if (!ol[t] && Eu(t) && (al.tagNameCheck instanceof RegExp && regExpTest(al.tagNameCheck, t) || al.tagNameCheck instanceof Function && al.tagNameCheck(t))) return !1;
|
|
688
|
+
if (El && !kl[t]) {
|
|
689
689
|
let t = O(e), r = g(e);
|
|
690
690
|
if (r && t) {
|
|
691
691
|
let i = r.length;
|
|
692
692
|
for (let a = i - 1; a >= 0; --a) {
|
|
693
693
|
let i = e === n ? p(r[a], !0) : r[a];
|
|
694
|
-
t.insertBefore(i,
|
|
694
|
+
t.insertBefore(i, Ac(e));
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
return
|
|
699
|
-
},
|
|
698
|
+
return ou(e), !0;
|
|
699
|
+
}, Su = function(e, t, n, r) {
|
|
700
700
|
return e.length === 0 ? t : t === n || t === r ? clone(t) : t;
|
|
701
|
-
},
|
|
702
|
-
if (
|
|
703
|
-
if (
|
|
704
|
-
let r =
|
|
705
|
-
if (H =
|
|
701
|
+
}, Cu = function(e, n) {
|
|
702
|
+
if (yu(V.beforeSanitizeElements, e, null), e !== n && O(e) === null) return Dl && uu(e), !0;
|
|
703
|
+
if (gu(e)) return ou(e), !0;
|
|
704
|
+
let r = Yl(Nc ? Nc(e) : e.nodeName);
|
|
705
|
+
if (H = Su(V.uponSanitizeElement, H, rl, _l), yu(V.uponSanitizeElement, e, {
|
|
706
706
|
tagName: r,
|
|
707
707
|
allowedTags: H
|
|
708
|
-
}), e !== n && O(e) === null) return
|
|
709
|
-
if (
|
|
710
|
-
if (
|
|
711
|
-
let t =
|
|
712
|
-
return t === !1 &&
|
|
708
|
+
}), e !== n && O(e) === null) return Dl && uu(e), !0;
|
|
709
|
+
if (bu(e, r)) return ou(e), !0;
|
|
710
|
+
if (ol[r] || !(cl.tagCheck instanceof Function && cl.tagCheck(r)) && !H[r]) {
|
|
711
|
+
let t = xu(e, r, n);
|
|
712
|
+
return t === !1 && yu(V.afterSanitizeElements, e, null), t;
|
|
713
713
|
}
|
|
714
|
-
if ((A ? A(e) : e.nodeType) === NODE_TYPE.element && !
|
|
715
|
-
if (
|
|
716
|
-
let n =
|
|
714
|
+
if ((A ? A(e) : e.nodeType) === NODE_TYPE.element && !au(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(FALLBACK_TAG_CLOSE, e.innerHTML)) return ou(e), !0;
|
|
715
|
+
if (pl && e.nodeType === NODE_TYPE.text) {
|
|
716
|
+
let n = mu(e.textContent);
|
|
717
717
|
e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
718
718
|
}
|
|
719
|
-
return
|
|
720
|
-
},
|
|
721
|
-
if (
|
|
722
|
-
let i = Y[t] ||
|
|
723
|
-
if (!(
|
|
719
|
+
return yu(V.afterSanitizeElements, e, null), !1;
|
|
720
|
+
}, wu = function(e, t, r) {
|
|
721
|
+
if (sl[t] || ml && t === "patchsrc" || ml && t === "for" && e !== "label" && e !== "output" || Cl && (t === "id" || t === "name") && (r in n || r in Zl)) return !1;
|
|
722
|
+
let i = Y[t] || cl.attributeCheck instanceof Function && cl.attributeCheck(t, e);
|
|
723
|
+
if (!(ul && regExpTest(Zc, t)) && !(ll && regExpTest(Qc, t))) {
|
|
724
724
|
if (i) {
|
|
725
|
-
if (!
|
|
726
|
-
} else if (!(
|
|
725
|
+
if (!Nl[t] && !regExpTest(nl, stringReplace(r, el, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && jl[e]) && !(dl && !regExpTest($c, stringReplace(r, el, ""))) && r) return !1;
|
|
726
|
+
} else if (!(Eu(e) && (al.tagNameCheck instanceof RegExp && regExpTest(al.tagNameCheck, e) || al.tagNameCheck instanceof Function && al.tagNameCheck(e)) && (al.attributeNameCheck instanceof RegExp && regExpTest(al.attributeNameCheck, t) || al.attributeNameCheck instanceof Function && al.attributeNameCheck(t, e)) || t === "is" && al.allowCustomizedBuiltInElements && (al.tagNameCheck instanceof RegExp && regExpTest(al.tagNameCheck, r) || al.tagNameCheck instanceof Function && al.tagNameCheck(r)))) return !1;
|
|
727
727
|
}
|
|
728
728
|
return !0;
|
|
729
|
-
},
|
|
729
|
+
}, Tu = addToSet({}, [
|
|
730
730
|
"annotation-xml",
|
|
731
731
|
"color-profile",
|
|
732
732
|
"font-face",
|
|
@@ -735,67 +735,67 @@ function createDOMPurify() {
|
|
|
735
735
|
"font-face-src",
|
|
736
736
|
"font-face-uri",
|
|
737
737
|
"missing-glyph"
|
|
738
|
-
]),
|
|
739
|
-
return !
|
|
740
|
-
},
|
|
738
|
+
]), Eu = function(e) {
|
|
739
|
+
return !Tu[stringToLowerCase(e)] && regExpTest(tl, e);
|
|
740
|
+
}, Du = function(e, t, n, r) {
|
|
741
741
|
if (B && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
742
|
-
case "TrustedHTML": return
|
|
743
|
-
case "TrustedScriptURL": return
|
|
742
|
+
case "TrustedHTML": return zc(r);
|
|
743
|
+
case "TrustedScriptURL": return Bc(r);
|
|
744
744
|
}
|
|
745
745
|
return r;
|
|
746
|
-
},
|
|
746
|
+
}, Ou = function(e, n, r, i) {
|
|
747
747
|
try {
|
|
748
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i),
|
|
748
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), gu(e) ? ou(e) : arrayPop(t.removed);
|
|
749
749
|
} catch {
|
|
750
|
-
|
|
750
|
+
cu(n, e);
|
|
751
751
|
}
|
|
752
|
-
},
|
|
753
|
-
|
|
752
|
+
}, ku = function(e) {
|
|
753
|
+
yu(V.beforeSanitizeAttributes, e, null);
|
|
754
754
|
let t = e.attributes;
|
|
755
|
-
if (!t ||
|
|
756
|
-
Y =
|
|
755
|
+
if (!t || gu(e)) return;
|
|
756
|
+
Y = Su(V.uponSanitizeAttribute, Y, il, vl);
|
|
757
757
|
let n = {
|
|
758
758
|
attrName: "",
|
|
759
759
|
attrValue: "",
|
|
760
760
|
keepAttr: !0,
|
|
761
761
|
allowedAttributes: Y,
|
|
762
762
|
forceKeepAttr: void 0
|
|
763
|
-
}, r = t.length, i =
|
|
763
|
+
}, r = t.length, i = Yl(e.nodeName);
|
|
764
764
|
for (; r--;) {
|
|
765
|
-
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l =
|
|
766
|
-
if (n.attrName = l, n.attrValue = f, n.keepAttr = !0, n.forceKeepAttr = void 0,
|
|
767
|
-
|
|
765
|
+
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Yl(o), u = c, f = o === "value" ? u : stringTrim(u);
|
|
766
|
+
if (n.attrName = l, n.attrValue = f, n.keepAttr = !0, n.forceKeepAttr = void 0, yu(V.uponSanitizeAttribute, e, n), f = n.attrValue, wl && (l === "id" || l === "name") && stringIndexOf(f, Tl) !== 0 && (cu(o, e), f = Tl + f), ml && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
|
|
767
|
+
cu(o, e);
|
|
768
768
|
continue;
|
|
769
769
|
}
|
|
770
770
|
if (l === "attributename" && stringMatch(f, "href")) {
|
|
771
|
-
|
|
771
|
+
cu(o, e);
|
|
772
772
|
continue;
|
|
773
773
|
}
|
|
774
774
|
if (!n.forceKeepAttr) {
|
|
775
775
|
if (!n.keepAttr) {
|
|
776
|
-
|
|
776
|
+
cu(o, e);
|
|
777
777
|
continue;
|
|
778
778
|
}
|
|
779
|
-
if (!
|
|
780
|
-
|
|
779
|
+
if (!fl && regExpTest(SELF_CLOSING_TAG, f)) {
|
|
780
|
+
cu(o, e);
|
|
781
781
|
continue;
|
|
782
782
|
}
|
|
783
|
-
if (
|
|
784
|
-
|
|
783
|
+
if (pl && (f = mu(f)), !wu(i, l, f)) {
|
|
784
|
+
cu(o, e);
|
|
785
785
|
continue;
|
|
786
786
|
}
|
|
787
|
-
f =
|
|
787
|
+
f = Du(i, l, s, f), f !== u && Ou(e, o, s, f);
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
|
|
791
|
-
},
|
|
792
|
-
let t = null, n =
|
|
793
|
-
for (
|
|
794
|
-
let e =
|
|
795
|
-
|
|
790
|
+
yu(V.afterSanitizeAttributes, e, null);
|
|
791
|
+
}, Au = function(e) {
|
|
792
|
+
let t = null, n = pu(e);
|
|
793
|
+
for (yu(V.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (yu(V.uponSanitizeShadowNode, t, null), Cu(t, e), ku(t), _u(t.content) && Au(t.content), (A ? A(t) : t.nodeType) === NODE_TYPE.element) {
|
|
794
|
+
let e = jc(t);
|
|
795
|
+
_u(e) && (ju(e), Au(e));
|
|
796
796
|
}
|
|
797
|
-
|
|
798
|
-
},
|
|
797
|
+
yu(V.afterSanitizeShadowDOM, e, null);
|
|
798
|
+
}, ju = function(e) {
|
|
799
799
|
let t = [{
|
|
800
800
|
node: e,
|
|
801
801
|
shadow: null
|
|
@@ -803,7 +803,7 @@ function createDOMPurify() {
|
|
|
803
803
|
for (; t.length > 0;) {
|
|
804
804
|
let e = t.pop();
|
|
805
805
|
if (e.shadow) {
|
|
806
|
-
|
|
806
|
+
Au(e.shadow);
|
|
807
807
|
continue;
|
|
808
808
|
}
|
|
809
809
|
let n = e.node, r = (A ? A(n) : n.nodeType) === NODE_TYPE.element, i = g(n);
|
|
@@ -812,18 +812,18 @@ function createDOMPurify() {
|
|
|
812
812
|
shadow: null
|
|
813
813
|
});
|
|
814
814
|
if (r) {
|
|
815
|
-
let e =
|
|
816
|
-
if (typeof e == "string" &&
|
|
815
|
+
let e = Nc ? Nc(n) : null;
|
|
816
|
+
if (typeof e == "string" && Yl(e) === "template") {
|
|
817
817
|
let e = n.content;
|
|
818
|
-
|
|
818
|
+
_u(e) && t.push({
|
|
819
819
|
node: e,
|
|
820
820
|
shadow: null
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
if (r) {
|
|
825
|
-
let e =
|
|
826
|
-
|
|
825
|
+
let e = jc(n);
|
|
826
|
+
_u(e) && t.push({
|
|
827
827
|
node: null,
|
|
828
828
|
shadow: e
|
|
829
829
|
}, {
|
|
@@ -835,54 +835,54 @@ function createDOMPurify() {
|
|
|
835
835
|
};
|
|
836
836
|
return t.sanitize = function(e) {
|
|
837
837
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
838
|
-
if (
|
|
838
|
+
if (zl = !e, zl && (e = "<!-->"), typeof e != "string" && !vu(e) && (e = stringifyValue(e), typeof e != "string")) throw typeErrorCreate("dirty is not a string, aborting");
|
|
839
839
|
if (!t.isSupported) return e;
|
|
840
|
-
|
|
841
|
-
let c =
|
|
840
|
+
gl ? (H = _l, Y = vl) : $l(n), (V.uponSanitizeElement.length > 0 || V.uponSanitizeAttribute.length > 0) && (H = clone(H)), V.uponSanitizeAttribute.length > 0 && (Y = clone(Y)), t.removed = [];
|
|
841
|
+
let c = Dl && typeof e != "string" && vu(e);
|
|
842
842
|
if (c) {
|
|
843
|
-
|
|
844
|
-
let t =
|
|
843
|
+
du(e);
|
|
844
|
+
let t = Nc ? Nc(e) : e.nodeName;
|
|
845
845
|
if (typeof t == "string") {
|
|
846
|
-
let n =
|
|
847
|
-
if (!H[n] ||
|
|
846
|
+
let n = Yl(t);
|
|
847
|
+
if (!H[n] || ol[n]) throw su(e), typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
848
848
|
}
|
|
849
|
-
if (
|
|
849
|
+
if (gu(e)) throw su(e), typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
|
|
850
850
|
try {
|
|
851
|
-
|
|
851
|
+
ju(e);
|
|
852
852
|
} catch (t) {
|
|
853
|
-
throw
|
|
853
|
+
throw su(e), t;
|
|
854
854
|
}
|
|
855
|
-
} else if (
|
|
855
|
+
} else if (vu(e)) i = fu("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === NODE_TYPE.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), ju(a);
|
|
856
856
|
else {
|
|
857
|
-
if (!
|
|
858
|
-
if (i =
|
|
857
|
+
if (!bl && !pl && !hl && e.indexOf("<") === -1) return B && Sl ? zc(e) : e;
|
|
858
|
+
if (i = fu(e), !i) return bl ? null : Sl ? Pc : "";
|
|
859
859
|
}
|
|
860
|
-
i &&
|
|
860
|
+
i && yl && ou(i.firstChild);
|
|
861
861
|
let l = c ? e : i;
|
|
862
862
|
try {
|
|
863
|
-
let e =
|
|
864
|
-
for (; o = e.nextNode();)
|
|
863
|
+
let e = pu(l);
|
|
864
|
+
for (; o = e.nextNode();) Cu(o, l), ku(o), _u(o.content) && Au(o.content);
|
|
865
865
|
} catch (n) {
|
|
866
|
-
throw c && (
|
|
867
|
-
e.element &&
|
|
866
|
+
throw c && (su(e), arrayForEach(t.removed, (e) => {
|
|
867
|
+
e.element && uu(e.element);
|
|
868
868
|
})), n;
|
|
869
869
|
}
|
|
870
870
|
if (c) return arrayForEach(t.removed, (e) => {
|
|
871
|
-
e.element &&
|
|
872
|
-
}),
|
|
873
|
-
if (
|
|
874
|
-
if (
|
|
871
|
+
e.element && uu(e.element);
|
|
872
|
+
}), pl && hu(e), e;
|
|
873
|
+
if (bl) {
|
|
874
|
+
if (pl && hu(i), xl) for (s = Gc.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
875
875
|
else s = i;
|
|
876
|
-
return (Y.shadowroot || Y.shadowrootmode) && (s =
|
|
876
|
+
return (Y.shadowroot || Y.shadowrootmode) && (s = qc.call(r, s, !0)), s;
|
|
877
877
|
}
|
|
878
|
-
let u =
|
|
879
|
-
return
|
|
878
|
+
let u = hl ? i.outerHTML : i.innerHTML;
|
|
879
|
+
return hl && H["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), pl && (u = mu(u)), B && Sl ? zc(u) : u;
|
|
880
880
|
}, t.setConfig = function() {
|
|
881
|
-
|
|
881
|
+
$l(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), gl = !0, _l = H, vl = Y;
|
|
882
882
|
}, t.clearConfig = function() {
|
|
883
|
-
|
|
883
|
+
Xl = null, gl = !1, _l = null, vl = null, B = Fc, Pc = "";
|
|
884
884
|
}, t.isValidAttribute = function(e, t, n) {
|
|
885
|
-
return
|
|
885
|
+
return Xl || $l({}), wu(Yl(e), Yl(t), n);
|
|
886
886
|
}, t.addHook = function(e, t) {
|
|
887
887
|
typeof t == "function" && objectHasOwnProperty(V, e) && arrayPush(V[e], t);
|
|
888
888
|
}, t.removeHook = function(e, t) {
|
|
@@ -21592,18 +21592,18 @@ function useDropdown() {
|
|
|
21592
21592
|
return e;
|
|
21593
21593
|
}
|
|
21594
21594
|
function Dropdown({ trigger: e, children: t, align: n = "start", side: r = "bottom", offsetX: i = 0, offsetY: a = 0, disabled: o = !1, openOnHover: c = !0, open: u, onOpenChange: p }) {
|
|
21595
|
-
let g = u !== void 0, [O,
|
|
21596
|
-
e !== R && (g ||
|
|
21595
|
+
let g = u !== void 0, [O, Nc] = useState(!1), R = g ? u : O, B = useCallback((e) => {
|
|
21596
|
+
e !== R && (g || Nc(e), p?.(e));
|
|
21597
21597
|
}, [
|
|
21598
21598
|
R,
|
|
21599
21599
|
g,
|
|
21600
21600
|
p
|
|
21601
|
-
]),
|
|
21602
|
-
if (!
|
|
21603
|
-
let e =
|
|
21601
|
+
]), Pc = useRef(null), Fc = useRef(null), Ic = useRef(null), [Lc, Rc] = useState(null), zc = useCallback(() => {
|
|
21602
|
+
if (!Pc.current || !Fc.current) return;
|
|
21603
|
+
let e = Pc.current.getBoundingClientRect(), t = Fc.current.getBoundingClientRect(), o = e.left;
|
|
21604
21604
|
n === "end" ? o = e.right - t.width : n === "center" && (o = e.left + (e.width - t.width) / 2), o += i;
|
|
21605
21605
|
let s;
|
|
21606
|
-
s = r === "bottom" ? e.bottom + a : e.top - t.height + a, queueMicrotask(() =>
|
|
21606
|
+
s = r === "bottom" ? e.bottom + a : e.top - t.height + a, queueMicrotask(() => Rc({
|
|
21607
21607
|
top: s,
|
|
21608
21608
|
left: o
|
|
21609
21609
|
}));
|
|
@@ -21614,52 +21614,52 @@ function Dropdown({ trigger: e, children: t, align: n = "start", side: r = "bott
|
|
|
21614
21614
|
a
|
|
21615
21615
|
]);
|
|
21616
21616
|
useLayoutEffect(() => {
|
|
21617
|
-
R &&
|
|
21618
|
-
}, [R,
|
|
21617
|
+
R && zc();
|
|
21618
|
+
}, [R, zc]), useEffect(() => {
|
|
21619
21619
|
if (!R) return;
|
|
21620
|
-
let e = () =>
|
|
21620
|
+
let e = () => zc();
|
|
21621
21621
|
return window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
|
|
21622
21622
|
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
|
|
21623
21623
|
};
|
|
21624
|
-
}, [R,
|
|
21625
|
-
let
|
|
21626
|
-
|
|
21627
|
-
}, [B]),
|
|
21628
|
-
|
|
21624
|
+
}, [R, zc]);
|
|
21625
|
+
let Bc = useCallback(() => {
|
|
21626
|
+
Ic.current &&= (clearTimeout(Ic.current), null), B(!0);
|
|
21627
|
+
}, [B]), Vc = useCallback(() => {
|
|
21628
|
+
Ic.current = window.setTimeout(() => {
|
|
21629
21629
|
B(!1);
|
|
21630
21630
|
}, 120);
|
|
21631
21631
|
}, [B]);
|
|
21632
21632
|
return useEffect(() => {
|
|
21633
21633
|
function e(e) {
|
|
21634
21634
|
let t = e.target;
|
|
21635
|
-
|
|
21635
|
+
Pc.current?.contains(t) || Fc.current?.contains(t) || B(!1);
|
|
21636
21636
|
}
|
|
21637
21637
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
21638
21638
|
}, [B]), useEffect(() => () => {
|
|
21639
|
-
|
|
21639
|
+
Ic.current && clearTimeout(Ic.current);
|
|
21640
21640
|
}, []), /* @__PURE__ */ jsxs(DropdownContext.Provider, {
|
|
21641
21641
|
value: {
|
|
21642
21642
|
close: () => B(!1),
|
|
21643
|
-
open:
|
|
21643
|
+
open: Bc
|
|
21644
21644
|
},
|
|
21645
21645
|
children: [/* @__PURE__ */ jsx("div", {
|
|
21646
|
-
ref:
|
|
21646
|
+
ref: Pc,
|
|
21647
21647
|
className: "inline-flex",
|
|
21648
|
-
onMouseEnter: c ?
|
|
21649
|
-
onMouseLeave: c ?
|
|
21648
|
+
onMouseEnter: c ? Bc : void 0,
|
|
21649
|
+
onMouseLeave: c ? Vc : void 0,
|
|
21650
21650
|
onClick: () => B(!R),
|
|
21651
21651
|
"aria-haspopup": "menu",
|
|
21652
21652
|
"aria-expanded": R,
|
|
21653
21653
|
children: e
|
|
21654
21654
|
}), R && !o && createPortal(/* @__PURE__ */ jsx("div", {
|
|
21655
|
-
ref:
|
|
21656
|
-
onMouseEnter: c ?
|
|
21657
|
-
onMouseLeave: c ?
|
|
21655
|
+
ref: Fc,
|
|
21656
|
+
onMouseEnter: c ? Bc : void 0,
|
|
21657
|
+
onMouseLeave: c ? Vc : void 0,
|
|
21658
21658
|
style: {
|
|
21659
21659
|
position: "fixed",
|
|
21660
|
-
top:
|
|
21661
|
-
left:
|
|
21662
|
-
visibility:
|
|
21660
|
+
top: Lc?.top ?? 0,
|
|
21661
|
+
left: Lc?.left ?? 0,
|
|
21662
|
+
visibility: Lc ? "visible" : "hidden",
|
|
21663
21663
|
zIndex: 1e3
|
|
21664
21664
|
},
|
|
21665
21665
|
children: t
|
|
@@ -21740,7 +21740,7 @@ function getVerticalAlign(e, t, n) {
|
|
|
21740
21740
|
return n === "start" ? e.top : n === "end" ? e.bottom - t.height : e.top + e.height / 2 - t.height / 2;
|
|
21741
21741
|
}
|
|
21742
21742
|
function Tooltip({ children: e, content: t, position: n = "top", delay: r = 120, className: i }) {
|
|
21743
|
-
let a = useRef(null), o = useRef(null), s = useRef(null), [c, u] = useState(!1), [p, g] = useState(null),
|
|
21743
|
+
let a = useRef(null), o = useRef(null), s = useRef(null), [c, u] = useState(!1), [p, g] = useState(null), Nc = () => {
|
|
21744
21744
|
s.current &&= (clearTimeout(s.current), null), s.current = window.setTimeout(() => {
|
|
21745
21745
|
u(!0);
|
|
21746
21746
|
}, r);
|
|
@@ -21759,9 +21759,9 @@ function Tooltip({ children: e, content: t, position: n = "top", delay: r = 120,
|
|
|
21759
21759
|
}, []), /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
21760
21760
|
ref: a,
|
|
21761
21761
|
className: "inline-flex",
|
|
21762
|
-
onMouseEnter:
|
|
21762
|
+
onMouseEnter: Nc,
|
|
21763
21763
|
onMouseLeave: R,
|
|
21764
|
-
onFocus:
|
|
21764
|
+
onFocus: Nc,
|
|
21765
21765
|
onBlur: R,
|
|
21766
21766
|
children: e
|
|
21767
21767
|
}), c && createPortal(/* @__PURE__ */ jsx("div", {
|
|
@@ -23647,13 +23647,13 @@ function OnboardingEngine({ steps: e, context: t, storageKey: n, isEnabled: r =
|
|
|
23647
23647
|
e,
|
|
23648
23648
|
o,
|
|
23649
23649
|
t
|
|
23650
|
-
]), g = h?.step ?? null,
|
|
23650
|
+
]), g = h?.step ?? null, Mc = h?.index ?? null, A = useCallback((e) => {
|
|
23651
23651
|
c((t) => {
|
|
23652
23652
|
if (t.has(e)) return t;
|
|
23653
23653
|
let n = new Set(t);
|
|
23654
23654
|
return n.add(e), n;
|
|
23655
23655
|
});
|
|
23656
|
-
}, []),
|
|
23656
|
+
}, []), Nc = useCallback(() => {
|
|
23657
23657
|
c((n) => {
|
|
23658
23658
|
let r = findActiveStep(e, n, t);
|
|
23659
23659
|
if (r == null || n.has(r.step.id)) return n;
|
|
@@ -23666,15 +23666,15 @@ function OnboardingEngine({ steps: e, context: t, storageKey: n, isEnabled: r =
|
|
|
23666
23666
|
return /* @__PURE__ */ jsx(Fragment$1, { children: i({
|
|
23667
23667
|
context: t,
|
|
23668
23668
|
currentStep: g,
|
|
23669
|
-
currentStepIndex:
|
|
23669
|
+
currentStepIndex: Mc,
|
|
23670
23670
|
dismissedStepIds: o,
|
|
23671
23671
|
actions: useMemo(() => ({
|
|
23672
|
-
dismissCurrentStep:
|
|
23672
|
+
dismissCurrentStep: Nc,
|
|
23673
23673
|
dismissStep: A,
|
|
23674
23674
|
skipAll: R,
|
|
23675
23675
|
close: R
|
|
23676
23676
|
}), [
|
|
23677
|
-
|
|
23677
|
+
Nc,
|
|
23678
23678
|
A,
|
|
23679
23679
|
R
|
|
23680
23680
|
])
|
|
@@ -23887,7 +23887,7 @@ function useToastTimers(e, t) {
|
|
|
23887
23887
|
function Toaster() {
|
|
23888
23888
|
let [e, t] = useState([]), [n, r] = useState([]), i = useRef(/* @__PURE__ */ new Set()), a = useRef(/* @__PURE__ */ new Map()), o = useRef([]), { remainingTimes: c, pauseAll: u, resumeAll: f, cleanupTimer: p } = useToastTimers(e, a);
|
|
23889
23889
|
useEffect(() => toastStore.subscribe(t), []);
|
|
23890
|
-
let
|
|
23890
|
+
let Nc = useSyncExternalStore(subscribeNoop$1, getClientSnapshot$1, getServerSnapshot$1), R = useCallback((e) => {
|
|
23891
23891
|
e.callbacks?.onOpen?.();
|
|
23892
23892
|
}, []), B = useCallback((e, t) => {
|
|
23893
23893
|
t === "manual" ? e.callbacks?.onClose?.() : (t === "timeout" || t === "replaced") && e.callbacks?.onAutoClose?.(), e.callbacks?.onDismiss?.(t);
|
|
@@ -23915,17 +23915,17 @@ function Toaster() {
|
|
|
23915
23915
|
R,
|
|
23916
23916
|
B
|
|
23917
23917
|
]);
|
|
23918
|
-
let
|
|
23918
|
+
let Pc = useCallback((e) => {
|
|
23919
23919
|
r((t) => {
|
|
23920
23920
|
let n = t.filter((t) => t.id !== e);
|
|
23921
23921
|
return o.current = n, n;
|
|
23922
23922
|
}), p(e), toastStore.cleanup(e);
|
|
23923
|
-
}, [p]),
|
|
23923
|
+
}, [p]), Fc = useCallback((e) => {
|
|
23924
23924
|
a.current.set(e, "manual"), toastStore.remove(e);
|
|
23925
23925
|
}, []);
|
|
23926
|
-
if (!
|
|
23927
|
-
let
|
|
23928
|
-
return createPortal(/* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(
|
|
23926
|
+
if (!Nc) return null;
|
|
23927
|
+
let Ic = groupByPosition(n);
|
|
23928
|
+
return createPortal(/* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(Ic).map(([e, t]) => {
|
|
23929
23929
|
let n = t.filter((e) => e.singleSlot), r = t.filter((e) => !e.singleSlot), i = n.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
23930
23930
|
className: cn("isolate inline-grid max-w-[min(100vw,100%)] grid-cols-1 grid-rows-1", SINGLE_SLOT_PLACE[e]),
|
|
23931
23931
|
children: n.map((e, t) => /* @__PURE__ */ jsx("div", {
|
|
@@ -23934,8 +23934,8 @@ function Toaster() {
|
|
|
23934
23934
|
children: /* @__PURE__ */ jsx(ToastWrapper, {
|
|
23935
23935
|
toast: e,
|
|
23936
23936
|
remainingTime: c.get(e.id) ?? e.duration,
|
|
23937
|
-
onExitComplete:
|
|
23938
|
-
onClose:
|
|
23937
|
+
onExitComplete: Pc,
|
|
23938
|
+
onClose: Fc,
|
|
23939
23939
|
onHoverStart: u,
|
|
23940
23940
|
onHoverEnd: f
|
|
23941
23941
|
})
|
|
@@ -23943,8 +23943,8 @@ function Toaster() {
|
|
|
23943
23943
|
}) : null, a = r.map((e) => /* @__PURE__ */ jsx(ToastWrapper, {
|
|
23944
23944
|
toast: e,
|
|
23945
23945
|
remainingTime: c.get(e.id) ?? e.duration,
|
|
23946
|
-
onExitComplete:
|
|
23947
|
-
onClose:
|
|
23946
|
+
onExitComplete: Pc,
|
|
23947
|
+
onClose: Fc,
|
|
23948
23948
|
onHoverStart: u,
|
|
23949
23949
|
onHoverEnd: f
|
|
23950
23950
|
}, e.id));
|
|
@@ -24240,7 +24240,7 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
|
|
|
24240
24240
|
}),
|
|
24241
24241
|
onClick: r.read.off
|
|
24242
24242
|
}]
|
|
24243
|
-
},
|
|
24243
|
+
}, Nc = [{
|
|
24244
24244
|
value: "normal",
|
|
24245
24245
|
tooltip: "Normal density",
|
|
24246
24246
|
icon: /* @__PURE__ */ jsx(NormalDensityIcon, { size: 20 })
|
|
@@ -24284,7 +24284,7 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
|
|
|
24284
24284
|
}),
|
|
24285
24285
|
/* @__PURE__ */ jsx("div", {
|
|
24286
24286
|
className: "gap-2 flex items-center",
|
|
24287
|
-
children:
|
|
24287
|
+
children: Nc.map(({ value: e, tooltip: t, icon: n }) => {
|
|
24288
24288
|
let r = f === e;
|
|
24289
24289
|
return /* @__PURE__ */ jsx(InfoTooltip, {
|
|
24290
24290
|
content: t,
|
|
@@ -24546,15 +24546,15 @@ function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary",
|
|
|
24546
24546
|
variant: r,
|
|
24547
24547
|
orientation: i,
|
|
24548
24548
|
status: a
|
|
24549
|
-
}), A = useRef(null), [
|
|
24550
|
-
function
|
|
24551
|
-
c === void 0 &&
|
|
24549
|
+
}), A = useRef(null), [Nc, R] = useState(!1), [B, Pc] = useState(!1), [Fc, Ic] = useState(l), [Lc, Rc] = useState(null), zc = c ?? Fc, Bc = s && (Nc || B || zc), Vc = typeof n == "number" && n > 0 && (o || a === "active");
|
|
24550
|
+
function Hc(e) {
|
|
24551
|
+
c === void 0 && Ic(e), u?.(e);
|
|
24552
24552
|
}
|
|
24553
24553
|
return useLayoutEffect(() => {
|
|
24554
|
-
if (!
|
|
24554
|
+
if (!Bc || !A.current) return;
|
|
24555
24555
|
function e() {
|
|
24556
24556
|
let e = A.current?.getBoundingClientRect();
|
|
24557
|
-
e &&
|
|
24557
|
+
e && Rc({
|
|
24558
24558
|
top: e.top - 8,
|
|
24559
24559
|
left: e.right - 12
|
|
24560
24560
|
});
|
|
@@ -24562,7 +24562,7 @@ function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary",
|
|
|
24562
24562
|
return e(), window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
|
|
24563
24563
|
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
|
|
24564
24564
|
};
|
|
24565
|
-
}, [
|
|
24565
|
+
}, [Bc]), /* @__PURE__ */ jsxs(Button, {
|
|
24566
24566
|
...g,
|
|
24567
24567
|
className: cn(O.root(), p?.root),
|
|
24568
24568
|
onMouseEnter: () => R(!0),
|
|
@@ -24573,17 +24573,17 @@ function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary",
|
|
|
24573
24573
|
ref: A,
|
|
24574
24574
|
className: cn(O.bubble(), p?.bubble),
|
|
24575
24575
|
children: renderIcon(e, O.icon())
|
|
24576
|
-
}),
|
|
24577
|
-
isPressed:
|
|
24576
|
+
}), Bc && Lc && typeof document < "u" && ToggleControlPortal({
|
|
24577
|
+
isPressed: zc,
|
|
24578
24578
|
isPortalHovered: B,
|
|
24579
|
-
portalPosition:
|
|
24580
|
-
onMouseEnter: () =>
|
|
24581
|
-
onMouseLeave: () =>
|
|
24582
|
-
onToggle: () =>
|
|
24579
|
+
portalPosition: Lc,
|
|
24580
|
+
onMouseEnter: () => Pc(!0),
|
|
24581
|
+
onMouseLeave: () => Pc(!1),
|
|
24582
|
+
onToggle: () => Hc(!zc)
|
|
24583
24583
|
})]
|
|
24584
24584
|
}), /* @__PURE__ */ jsxs("div", {
|
|
24585
24585
|
className: cn(O.label(), p?.label),
|
|
24586
|
-
children: [/* @__PURE__ */ jsx("span", { children: t }),
|
|
24586
|
+
children: [/* @__PURE__ */ jsx("span", { children: t }), Vc && /* @__PURE__ */ jsxs("span", {
|
|
24587
24587
|
"aria-label": `${n} items`,
|
|
24588
24588
|
className: cn(O.count(), p?.count),
|
|
24589
24589
|
children: [
|
|
@@ -24595,6 +24595,24 @@ function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary",
|
|
|
24595
24595
|
})]
|
|
24596
24596
|
});
|
|
24597
24597
|
}
|
|
24598
|
+
function CustomerGroupHeaderSkeleton({ labelWidthClassName: e = "w-32", className: t }) {
|
|
24599
|
+
return /* @__PURE__ */ jsx("div", {
|
|
24600
|
+
"aria-hidden": "true",
|
|
24601
|
+
className: cn("flex items-center", t),
|
|
24602
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
24603
|
+
className: "min-w-0 gap-2 py-3 pr-2 pl-5 flex flex-1 items-center",
|
|
24604
|
+
children: [
|
|
24605
|
+
/* @__PURE__ */ jsx("span", { className: "rounded-sm size-3 shrink-0 bg-neutral-300-variant-3" }),
|
|
24606
|
+
/* @__PURE__ */ jsx("span", { className: "h-5 w-5 shrink-0 rounded-full bg-neutral-300-variant-3" }),
|
|
24607
|
+
/* @__PURE__ */ jsx("div", {
|
|
24608
|
+
className: "text-[13px]",
|
|
24609
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: cn("h-3 inline-block align-middle", e) })
|
|
24610
|
+
}),
|
|
24611
|
+
/* @__PURE__ */ jsx("span", { className: "h-4 w-5 rounded bg-neutral-300-variant-3" })
|
|
24612
|
+
]
|
|
24613
|
+
})
|
|
24614
|
+
});
|
|
24615
|
+
}
|
|
24598
24616
|
function CustomerGroupHeader({ label: e, count: t, open: n, onToggle: r, allOpen: i = !0, onToggleAll: a, className: o }) {
|
|
24599
24617
|
return /* @__PURE__ */ jsxs("div", {
|
|
24600
24618
|
className: cn("group/header flex items-center transition-colors hover:bg-group-header-hover-bg", o),
|
|
@@ -24692,7 +24710,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24692
24710
|
n
|
|
24693
24711
|
]);
|
|
24694
24712
|
let A = useMemo(() => generateCalendarDays(g.year, g.month), [g.year, g.month]);
|
|
24695
|
-
function
|
|
24713
|
+
function Nc(t) {
|
|
24696
24714
|
let o = t.getMonth(), s = t.getFullYear();
|
|
24697
24715
|
if ((o !== g.month || s !== g.year) && O({
|
|
24698
24716
|
year: s,
|
|
@@ -24727,7 +24745,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24727
24745
|
month: e.month + 1
|
|
24728
24746
|
});
|
|
24729
24747
|
}
|
|
24730
|
-
let
|
|
24748
|
+
let Pc = getWeekdays();
|
|
24731
24749
|
return /* @__PURE__ */ jsxs("div", {
|
|
24732
24750
|
className: "mt-1 rounded-lg p-2 shadow-lg w-fit border border-neutral-400 bg-white",
|
|
24733
24751
|
children: [
|
|
@@ -24764,7 +24782,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24764
24782
|
}),
|
|
24765
24783
|
/* @__PURE__ */ jsx("div", {
|
|
24766
24784
|
className: "mb-2 grid grid-cols-7",
|
|
24767
|
-
children:
|
|
24785
|
+
children: Pc.map((e) => /* @__PURE__ */ jsx("div", {
|
|
24768
24786
|
className: "p-0.5 font-bold flex items-center justify-center text-[9px] text-neutral-900",
|
|
24769
24787
|
children: e
|
|
24770
24788
|
}, e))
|
|
@@ -24772,12 +24790,12 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24772
24790
|
/* @__PURE__ */ jsx("div", {
|
|
24773
24791
|
className: "grid grid-cols-7",
|
|
24774
24792
|
children: A.map(({ day: r, date: i, isCurrentMonth: a }) => {
|
|
24775
|
-
let o = isToday(i), l = e === "single" && t && isSameDay(i, t), { startDate: u, endDate: f } = n, p = u && isSameDay(i, u), h = f && isSameDay(i, f),
|
|
24776
|
-
e === "range" && u && !f && s && !isDateBefore(s, u) ? (
|
|
24777
|
-
let O = e === "range" && (isDateInRange(i, u, f) || isDateInRange(i,
|
|
24793
|
+
let o = isToday(i), l = e === "single" && t && isSameDay(i, t), { startDate: u, endDate: f } = n, p = u && isSameDay(i, u), h = f && isSameDay(i, f), Ac = u, g = s;
|
|
24794
|
+
e === "range" && u && !f && s && !isDateBefore(s, u) ? (Ac = u, g = s) : (Ac = null, g = null);
|
|
24795
|
+
let O = e === "range" && (isDateInRange(i, u, f) || isDateInRange(i, Ac, g)), Mc = l || p || h;
|
|
24778
24796
|
return /* @__PURE__ */ jsx(Button, {
|
|
24779
24797
|
type: "button",
|
|
24780
|
-
onClick: () =>
|
|
24798
|
+
onClick: () => Nc(i),
|
|
24781
24799
|
onMouseEnter: () => {
|
|
24782
24800
|
e === "range" && u && !f && !isDateBefore(i, u) && c(i);
|
|
24783
24801
|
},
|
|
@@ -24786,9 +24804,9 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24786
24804
|
},
|
|
24787
24805
|
className: "p-0.5",
|
|
24788
24806
|
"aria-label": `Select ${formatDate(i)}`,
|
|
24789
|
-
"aria-selected":
|
|
24807
|
+
"aria-selected": Mc || void 0,
|
|
24790
24808
|
children: /* @__PURE__ */ jsx("div", {
|
|
24791
|
-
className: cn("rounded flex h-[26px] w-[26px] items-center justify-center text-[9px] transition-colors",
|
|
24809
|
+
className: cn("rounded flex h-[26px] w-[26px] items-center justify-center text-[9px] transition-colors", Mc && "font-semibold bg-primary-500 text-white-variant-1 hover:bg-primary-500", O && !Mc && "font-normal bg-primary-500/20 text-neutral-900 hover:bg-primary-500/30", o && !Mc && !O && "font-bold border border-primary-500 bg-primary-500/15 hover:bg-primary-500 hover:text-white", !Mc && !O && (a ? "text-neutral-900 hover:bg-neutral-300" : "text-neutral-600 hover:bg-neutral-200")),
|
|
24792
24810
|
children: r
|
|
24793
24811
|
})
|
|
24794
24812
|
}, `${i.getFullYear()}-${i.getMonth()}-${r}`);
|
|
@@ -24856,7 +24874,7 @@ function DatePicker({ mode: e = "single", value: t, defaultValue: n, onChange: r
|
|
|
24856
24874
|
function g(t) {
|
|
24857
24875
|
e === "range" && (u || l(t), r?.(t));
|
|
24858
24876
|
}
|
|
24859
|
-
function
|
|
24877
|
+
function Mc() {
|
|
24860
24878
|
e === "single" ? h(null) : g({
|
|
24861
24879
|
startDate: null,
|
|
24862
24880
|
endDate: null
|
|
@@ -24867,7 +24885,7 @@ function DatePicker({ mode: e = "single", value: t, defaultValue: n, onChange: r
|
|
|
24867
24885
|
displayText: e === "single" ? formatDate(f) : formatDateRange(p.startDate, p.endDate),
|
|
24868
24886
|
disabled: i,
|
|
24869
24887
|
className: a,
|
|
24870
|
-
onClear:
|
|
24888
|
+
onClear: Mc
|
|
24871
24889
|
}),
|
|
24872
24890
|
disabled: i,
|
|
24873
24891
|
children: /* @__PURE__ */ jsx(CalendarPanel, {
|
|
@@ -25081,12 +25099,12 @@ function EventActionsList({ actions: e, className: t }) {
|
|
|
25081
25099
|
}) })
|
|
25082
25100
|
});
|
|
25083
25101
|
}
|
|
25084
|
-
function EventCard({ icon: e, service: t, sender: n, title: r, content: i, timestamp: a, timestampTooltip: o, workspace: s, read: c = !1, selected: l = !1, onSelect: u, checked: f = !1, onCheckedChange: p, statusBadges: h = {}, actions:
|
|
25102
|
+
function EventCard({ icon: e, service: t, sender: n, title: r, content: i, timestamp: a, timestampTooltip: o, workspace: s, read: c = !1, selected: l = !1, onSelect: u, checked: f = !1, onCheckedChange: p, statusBadges: h = {}, actions: Ac = {}, density: g = "normal", className: O, style: A, isPriority: Nc, isDone: R }) {
|
|
25085
25103
|
return /* @__PURE__ */ jsx(Card, {
|
|
25086
25104
|
as: Pressable,
|
|
25087
25105
|
onPress: u,
|
|
25088
25106
|
className: cn(eventCardStyles({
|
|
25089
|
-
tone:
|
|
25107
|
+
tone: Nc ? "priority" : R ? "done" : "default",
|
|
25090
25108
|
state: l ? "selected" : c ? "read" : "unread",
|
|
25091
25109
|
density: g
|
|
25092
25110
|
}), O),
|
|
@@ -25128,7 +25146,7 @@ function EventCard({ icon: e, service: t, sender: n, title: r, content: i, times
|
|
|
25128
25146
|
/* @__PURE__ */ jsxs(CardFooter, {
|
|
25129
25147
|
className: "mt-3 gap-1 grid grid-cols-[minmax(0,1fr)_auto] items-center",
|
|
25130
25148
|
children: [/* @__PURE__ */ jsx(EventStatusesList, { statusBadges: h }), /* @__PURE__ */ jsx(EventActionsList, {
|
|
25131
|
-
actions:
|
|
25149
|
+
actions: Ac,
|
|
25132
25150
|
className: "col-start-2 justify-self-end"
|
|
25133
25151
|
})]
|
|
25134
25152
|
})
|
|
@@ -25167,7 +25185,7 @@ function EventCard({ icon: e, service: t, sender: n, title: r, content: i, times
|
|
|
25167
25185
|
]
|
|
25168
25186
|
}),
|
|
25169
25187
|
/* @__PURE__ */ jsx("div", { className: "flex-1" }),
|
|
25170
|
-
/* @__PURE__ */ jsx(EventActionsList, { actions:
|
|
25188
|
+
/* @__PURE__ */ jsx(EventActionsList, { actions: Ac }),
|
|
25171
25189
|
/* @__PURE__ */ jsx(InfoTooltip, {
|
|
25172
25190
|
content: o,
|
|
25173
25191
|
children: /* @__PURE__ */ jsx("span", {
|
|
@@ -25412,11 +25430,11 @@ function EventSummaryFireButton({ active: e, onClick: t }) {
|
|
|
25412
25430
|
}) });
|
|
25413
25431
|
}
|
|
25414
25432
|
function EventSummaryCard({ icon: e, service: t, sender: n, title: r, content: i, timestamp: a, workspace: o, selected: s = !1, onSelect: c, actions: l, className: u }) {
|
|
25415
|
-
let { fire: f, insight: p, link: h } = l,
|
|
25433
|
+
let { fire: f, insight: p, link: h } = l, Ac = p?.label ?? null;
|
|
25416
25434
|
return /* @__PURE__ */ jsxs(Pressable, {
|
|
25417
25435
|
onPress: c,
|
|
25418
25436
|
className: cn(eventSummaryCardStyles({
|
|
25419
|
-
tone: f.active ? "priority" : insightLabelVisible(
|
|
25437
|
+
tone: f.active ? "priority" : insightLabelVisible(Ac) ? "insight" : "default",
|
|
25420
25438
|
state: s ? "selected" : "normal"
|
|
25421
25439
|
}), EVENT_SUMMARY_CARD_HEIGHT_SIZE.style, u),
|
|
25422
25440
|
"data-service": t,
|
|
@@ -25440,7 +25458,7 @@ function EventSummaryCard({ icon: e, service: t, sender: n, title: r, content: i
|
|
|
25440
25458
|
className: "text-xs leading-tight font-semibold tracking-wide flex-1 text-right whitespace-nowrap text-neutral-800",
|
|
25441
25459
|
children: a
|
|
25442
25460
|
}),
|
|
25443
|
-
insightLabelVisible(
|
|
25461
|
+
insightLabelVisible(Ac) && /* @__PURE__ */ jsx(EventSummaryInsightChip, { label: Ac }),
|
|
25444
25462
|
f.onClick && /* @__PURE__ */ jsx(EventSummaryFireButton, {
|
|
25445
25463
|
active: f.active,
|
|
25446
25464
|
onClick: f.onClick
|
|
@@ -25712,13 +25730,13 @@ function EventDetailContentMessage({ detail: { groups: e, summary: t, priorityTe
|
|
|
25712
25730
|
}, []), f = u.length, p = new Map(c.map((e) => {
|
|
25713
25731
|
let t = e.insightBadgeId ?? e.id, n = u.indexOf(t);
|
|
25714
25732
|
return [e.id, f - n];
|
|
25715
|
-
})),
|
|
25733
|
+
})), Ac = /* @__PURE__ */ new Set(), g = new Set(c.reduce((e, t) => {
|
|
25716
25734
|
let n = t.insightBadgeId ?? t.id;
|
|
25717
|
-
return
|
|
25718
|
-
}, [])), O = useRef(null), A = useRef(null),
|
|
25735
|
+
return Ac.has(n) || (Ac.add(n), e.push(t.id)), e;
|
|
25736
|
+
}, [])), O = useRef(null), A = useRef(null), Nc = useRef(!1);
|
|
25719
25737
|
useEffect(() => {
|
|
25720
|
-
if (e.length === 0 ||
|
|
25721
|
-
|
|
25738
|
+
if (e.length === 0 || Nc.current) return;
|
|
25739
|
+
Nc.current = !0;
|
|
25722
25740
|
let t = [...e].reverse().find((e) => e.isPriority), n = [...e].reverse().find((e) => !e.isPriority && e.isInsight), r = t ?? n;
|
|
25723
25741
|
if (r && O.current) {
|
|
25724
25742
|
let e = O.current.querySelector(`[data-group-id="${r.id}"]`);
|
|
@@ -25836,7 +25854,7 @@ function EventDetailContentTicketDetails({ issue: e, notification: t, project: n
|
|
|
25836
25854
|
]
|
|
25837
25855
|
})] });
|
|
25838
25856
|
}
|
|
25839
|
-
function EventDetailContentTicket({ detail: { summary: e, body: t, priorityText: n, followUpTitle: r, followUpSubtitle: i, issue: a, notification: o, project: s, task: c, dueDate: l, startDate: u, assignees: f, reporter: p, team: h, location:
|
|
25857
|
+
function EventDetailContentTicket({ detail: { summary: e, body: t, priorityText: n, followUpTitle: r, followUpSubtitle: i, issue: a, notification: o, project: s, task: c, dueDate: l, startDate: u, assignees: f, reporter: p, team: h, location: Ac, related: g }, className: O }) {
|
|
25840
25858
|
return /* @__PURE__ */ jsxs(EventDetailContentHeader, {
|
|
25841
25859
|
summary: e,
|
|
25842
25860
|
priorityText: n,
|
|
@@ -25854,7 +25872,7 @@ function EventDetailContentTicket({ detail: { summary: e, body: t, priorityText:
|
|
|
25854
25872
|
assignees: f,
|
|
25855
25873
|
reporter: p,
|
|
25856
25874
|
team: h,
|
|
25857
|
-
location:
|
|
25875
|
+
location: Ac,
|
|
25858
25876
|
related: g
|
|
25859
25877
|
}),
|
|
25860
25878
|
/* @__PURE__ */ jsx("h2", {
|
|
@@ -26650,10 +26668,10 @@ function OnboardingCard({ stepLabel: e, title: t, description: n, titleAccessory
|
|
|
26650
26668
|
children: [i, a]
|
|
26651
26669
|
})
|
|
26652
26670
|
]
|
|
26653
|
-
}),
|
|
26671
|
+
}), Ac = wrapArrow(/* @__PURE__ */ jsx(OnboardingCardArrow, {
|
|
26654
26672
|
layout: o,
|
|
26655
26673
|
placement: s
|
|
26656
|
-
}), c, l), g = s === "before" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
26674
|
+
}), c, l), g = s === "before" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [Ac, h] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [h, Ac] });
|
|
26657
26675
|
return o === "horizontal" ? /* @__PURE__ */ jsx("div", {
|
|
26658
26676
|
className: cn("flex items-center", u),
|
|
26659
26677
|
children: g
|
|
@@ -26896,6 +26914,41 @@ function PulseFilterChipSkeleton({ labelWidthClassName: e = "w-16", className: t
|
|
|
26896
26914
|
children: [/* @__PURE__ */ jsx("div", { className: "size-3 shrink-0 rounded-full bg-neutral-300-variant-3" }), /* @__PURE__ */ jsx(Skeleton, { className: cn("h-3", e) })]
|
|
26897
26915
|
});
|
|
26898
26916
|
}
|
|
26917
|
+
function PulseSignalCardSkeleton({ className: e }) {
|
|
26918
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
26919
|
+
"aria-hidden": "true",
|
|
26920
|
+
className: cn("min-h-24 p-4 relative w-full rounded-[4px] border border-pulse-card-border bg-white-variant-5", e),
|
|
26921
|
+
children: [
|
|
26922
|
+
/* @__PURE__ */ jsxs("span", {
|
|
26923
|
+
className: "right-3 gap-1.5 absolute top-[10px] flex items-center",
|
|
26924
|
+
children: [/* @__PURE__ */ jsx("span", { className: "rounded-sm size-[13px] bg-neutral-300-variant-3" }), /* @__PURE__ */ jsx("span", {
|
|
26925
|
+
className: "h-6 w-6 flex items-center justify-center",
|
|
26926
|
+
children: /* @__PURE__ */ jsx("span", { className: "rounded-sm size-3 bg-neutral-300-variant-3" })
|
|
26927
|
+
})]
|
|
26928
|
+
}),
|
|
26929
|
+
/* @__PURE__ */ jsxs("div", {
|
|
26930
|
+
className: "mb-1 pr-10 text-[13px]",
|
|
26931
|
+
children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-16 inline-block align-middle" }), /* @__PURE__ */ jsx(Skeleton, { className: "ml-1.5 h-2.5 w-20 inline-block align-middle" })]
|
|
26932
|
+
}),
|
|
26933
|
+
/* @__PURE__ */ jsx("div", {
|
|
26934
|
+
className: "mb-1 pr-10 leading-snug text-[13px]",
|
|
26935
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 inline-block w-3/5 align-middle" })
|
|
26936
|
+
}),
|
|
26937
|
+
/* @__PURE__ */ jsx("div", {
|
|
26938
|
+
className: "pr-10 leading-snug text-[12px]",
|
|
26939
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 inline-block w-11/12 align-middle" })
|
|
26940
|
+
}),
|
|
26941
|
+
/* @__PURE__ */ jsx("div", {
|
|
26942
|
+
className: "mt-1.5 pr-10 leading-snug text-[12px]",
|
|
26943
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 inline-block w-4/5 align-middle" })
|
|
26944
|
+
}),
|
|
26945
|
+
/* @__PURE__ */ jsx("div", {
|
|
26946
|
+
className: "mt-1 pr-10 text-[11px]",
|
|
26947
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-24 inline-block align-middle" })
|
|
26948
|
+
})
|
|
26949
|
+
]
|
|
26950
|
+
});
|
|
26951
|
+
}
|
|
26899
26952
|
var SEVERITY = {
|
|
26900
26953
|
fire: {
|
|
26901
26954
|
icon: FireFillIcon,
|
|
@@ -26992,7 +27045,7 @@ var pulseSignalCardStyles = tv({
|
|
|
26992
27045
|
}
|
|
26993
27046
|
]
|
|
26994
27047
|
});
|
|
26995
|
-
function PulseSignalCard({ timeText: e, severity: t, slaLabel: n, move: r, subject: i, askAuthor: a, askText: o, nextLabel: s, nextText: c, owner: l, sources: u, tone: f, selected: p = !1, onClick: h, onOpenThread:
|
|
27048
|
+
function PulseSignalCard({ timeText: e, severity: t, slaLabel: n, move: r, subject: i, askAuthor: a, askText: o, nextLabel: s, nextText: c, owner: l, sources: u, tone: f, selected: p = !1, onClick: h, onOpenThread: Ac, className: g }) {
|
|
26996
27049
|
return /* @__PURE__ */ jsxs(Pressable, {
|
|
26997
27050
|
onPress: h,
|
|
26998
27051
|
className: cn(pulseSignalCardStyles({
|
|
@@ -27005,14 +27058,14 @@ function PulseSignalCard({ timeText: e, severity: t, slaLabel: n, move: r, subje
|
|
|
27005
27058
|
children: [/* @__PURE__ */ jsx("span", {
|
|
27006
27059
|
className: "gap-1 flex items-center",
|
|
27007
27060
|
children: u
|
|
27008
|
-
}),
|
|
27061
|
+
}), Ac && /* @__PURE__ */ jsx(InfoTooltip, {
|
|
27009
27062
|
content: "Open thread",
|
|
27010
27063
|
position: "top",
|
|
27011
27064
|
children: /* @__PURE__ */ jsx("button", {
|
|
27012
27065
|
type: "button",
|
|
27013
27066
|
"aria-label": "Open thread",
|
|
27014
27067
|
onClick: (e) => {
|
|
27015
|
-
e.stopPropagation(),
|
|
27068
|
+
e.stopPropagation(), Ac();
|
|
27016
27069
|
},
|
|
27017
27070
|
onKeyDown: (e) => e.stopPropagation(),
|
|
27018
27071
|
className: "h-6 w-6 rounded-md flex items-center justify-center text-neutral-700 transition-colors hover:bg-pulse-card-action-hover-bg hover:text-pulse-card-action-hover-text",
|
|
@@ -27370,14 +27423,14 @@ function SourceIcons({ sourceTypes: e, sourceLink: t, onOpenSource: n, sourceToo
|
|
|
27370
27423
|
})]
|
|
27371
27424
|
});
|
|
27372
27425
|
}
|
|
27373
|
-
function SignalCard({ title: e, clientName: t, requesterName: n, explanation: r, severity: i, status: a, slaLabel: o, slaStatusLabel: s, sourceTypes: c, sourceLink: l, onOpenSource: u, sourceTooltip: f, patternContext: p, variant: h = "home", selected:
|
|
27426
|
+
function SignalCard({ title: e, clientName: t, requesterName: n, explanation: r, severity: i, status: a, slaLabel: o, slaStatusLabel: s, sourceTypes: c, sourceLink: l, onOpenSource: u, sourceTooltip: f, patternContext: p, variant: h = "home", selected: Ac = !1, onClick: g, className: O }) {
|
|
27374
27427
|
let A = SEVERITY_CONFIG$1[i];
|
|
27375
27428
|
return /* @__PURE__ */ jsxs(Pressable, {
|
|
27376
27429
|
onPress: g,
|
|
27377
27430
|
className: cn(signalCardStyles({
|
|
27378
27431
|
layout: h,
|
|
27379
27432
|
status: a,
|
|
27380
|
-
selected:
|
|
27433
|
+
selected: Ac
|
|
27381
27434
|
}), O),
|
|
27382
27435
|
children: [
|
|
27383
27436
|
/* @__PURE__ */ jsx(SourceIcons, {
|
|
@@ -27686,8 +27739,8 @@ function GuardrailTooltip({ text: e }) {
|
|
|
27686
27739
|
})
|
|
27687
27740
|
});
|
|
27688
27741
|
}
|
|
27689
|
-
function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStatusLabel: r, statusLabel: i, statusTone: a, sourceType: o, sourceLink: s, onOpenSource: c, sourceTooltip: l, clientCompany: u, contactName: f, teamCompanyName: p, recipientLabel: h, sla: g, claim: O, sameThreadGuardrail: A, evidenceItems:
|
|
27690
|
-
let
|
|
27742
|
+
function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStatusLabel: r, statusLabel: i, statusTone: a, sourceType: o, sourceLink: s, onOpenSource: c, sourceTooltip: l, clientCompany: u, contactName: f, teamCompanyName: p, recipientLabel: h, sla: g, claim: O, sameThreadGuardrail: A, evidenceItems: Nc, nextStep: R, actionRationale: B, rankingRationale: Pc, attentionRationale: Fc, dismissOptions: Ic, onClose: Lc, onResolve: Rc, onDismiss: zc, className: Bc, ...Vc }) {
|
|
27743
|
+
let Hc = SEVERITY_CONFIG[t], [Uc, Wc] = useState(!1), [Gc, Kc] = useState(null), [qc, V] = useState(!1), [Yc, Xc] = useState(!1), Zc = () => {
|
|
27691
27744
|
let t = [r, n].filter(Boolean).join(" · "), i = [
|
|
27692
27745
|
e,
|
|
27693
27746
|
"",
|
|
@@ -27697,12 +27750,12 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
|
|
|
27697
27750
|
...t ? ["", t] : []
|
|
27698
27751
|
];
|
|
27699
27752
|
navigator.clipboard.writeText(i.join("\n")).catch(() => {}), V(!0), setTimeout(() => V(!1), 2e3);
|
|
27700
|
-
},
|
|
27701
|
-
|
|
27753
|
+
}, Qc = () => {
|
|
27754
|
+
zc?.(Gc ?? void 0), Wc(!1), Kc(null);
|
|
27702
27755
|
};
|
|
27703
27756
|
return /* @__PURE__ */ jsxs("div", {
|
|
27704
|
-
className: cn("flex h-full flex-col overflow-y-auto bg-white-variant-8", STATUS_BADGE_STYLES[a].accentBar,
|
|
27705
|
-
...
|
|
27757
|
+
className: cn("flex h-full flex-col overflow-y-auto bg-white-variant-8", STATUS_BADGE_STYLES[a].accentBar, Bc),
|
|
27758
|
+
...Vc,
|
|
27706
27759
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
27707
27760
|
className: "sticky top-0 z-20 shrink-0 border-b border-neutral-200-variant-1 bg-white-variant-8 px-4 pt-5 pb-4",
|
|
27708
27761
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -27715,12 +27768,12 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
|
|
|
27715
27768
|
children: e
|
|
27716
27769
|
}),
|
|
27717
27770
|
n && /* @__PURE__ */ jsx("span", {
|
|
27718
|
-
className: cn("text-[13px] font-bold shrink-0",
|
|
27771
|
+
className: cn("text-[13px] font-bold shrink-0", Hc.text),
|
|
27719
27772
|
children: n
|
|
27720
27773
|
}),
|
|
27721
27774
|
r && /* @__PURE__ */ jsxs("span", {
|
|
27722
27775
|
className: "inline-flex shrink-0 items-center gap-1 text-[10px] font-medium text-neutral-500",
|
|
27723
|
-
children: [
|
|
27776
|
+
children: [Hc.icon && /* @__PURE__ */ jsx(Hc.icon, {
|
|
27724
27777
|
size: 11,
|
|
27725
27778
|
className: "text-neutral-500"
|
|
27726
27779
|
}), r]
|
|
@@ -27730,9 +27783,9 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
|
|
|
27730
27783
|
children: [/* @__PURE__ */ jsx("span", { className: cn("h-1.5 w-1.5 shrink-0 rounded-full", STATUS_BADGE_STYLES[a].dot) }), i]
|
|
27731
27784
|
})
|
|
27732
27785
|
]
|
|
27733
|
-
}),
|
|
27786
|
+
}), Lc && /* @__PURE__ */ jsx(Button, {
|
|
27734
27787
|
type: "button",
|
|
27735
|
-
onClick:
|
|
27788
|
+
onClick: Lc,
|
|
27736
27789
|
"aria-label": "Close",
|
|
27737
27790
|
className: "h-7 w-7 shrink-0 rounded-lg hover:bg-neutral-100",
|
|
27738
27791
|
children: /* @__PURE__ */ jsx("svg", {
|
|
@@ -27828,28 +27881,28 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
|
|
|
27828
27881
|
children: B
|
|
27829
27882
|
})]
|
|
27830
27883
|
}),
|
|
27831
|
-
|
|
27884
|
+
Pc ? /* @__PURE__ */ jsxs("div", {
|
|
27832
27885
|
className: "rounded-xl border border-neutral-200-variant-1 bg-neutral-50 px-4 py-3.5",
|
|
27833
27886
|
children: [/* @__PURE__ */ jsx("p", {
|
|
27834
27887
|
className: "mb-2 text-[10px] font-bold tracking-widest text-neutral-900 uppercase",
|
|
27835
27888
|
children: "Why ranked first"
|
|
27836
27889
|
}), /* @__PURE__ */ jsx("p", {
|
|
27837
27890
|
className: "text-sm text-neutral-800",
|
|
27838
|
-
children:
|
|
27891
|
+
children: Pc
|
|
27839
27892
|
})]
|
|
27840
|
-
}) :
|
|
27893
|
+
}) : Fc ? /* @__PURE__ */ jsxs("div", {
|
|
27841
27894
|
className: "rounded-xl border border-neutral-200-variant-1 bg-neutral-50 px-4 py-3.5",
|
|
27842
27895
|
children: [/* @__PURE__ */ jsx("p", {
|
|
27843
27896
|
className: "mb-2 text-[10px] font-bold tracking-widest text-neutral-900 uppercase",
|
|
27844
27897
|
children: "Why this needs attention"
|
|
27845
27898
|
}), /* @__PURE__ */ jsx("p", {
|
|
27846
27899
|
className: "text-sm text-neutral-800",
|
|
27847
|
-
children:
|
|
27900
|
+
children: Fc
|
|
27848
27901
|
})]
|
|
27849
27902
|
}) : null,
|
|
27850
27903
|
/* @__PURE__ */ jsx(SectionCard, {
|
|
27851
27904
|
title: "What do you want to do?",
|
|
27852
|
-
children:
|
|
27905
|
+
children: Uc ? /* @__PURE__ */ jsxs("div", {
|
|
27853
27906
|
className: "flex flex-col gap-2",
|
|
27854
27907
|
children: [
|
|
27855
27908
|
/* @__PURE__ */ jsx("p", {
|
|
@@ -27858,10 +27911,10 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
|
|
|
27858
27911
|
}),
|
|
27859
27912
|
/* @__PURE__ */ jsx("div", {
|
|
27860
27913
|
className: "flex flex-wrap gap-1.5",
|
|
27861
|
-
children:
|
|
27914
|
+
children: Ic.map((e) => /* @__PURE__ */ jsx(Button, {
|
|
27862
27915
|
type: "button",
|
|
27863
|
-
onClick: () =>
|
|
27864
|
-
className:
|
|
27916
|
+
onClick: () => Kc((t) => t === e.id ? null : e.id),
|
|
27917
|
+
className: Gc === e.id ? "rounded-full bg-neutral-800 px-2.5 py-1 text-[11px] font-medium text-white" : "rounded-full border border-neutral-300 bg-white px-2.5 py-1 text-[11px] font-medium text-neutral-700 hover:border-neutral-500",
|
|
27865
27918
|
children: e.label
|
|
27866
27919
|
}, e.id))
|
|
27867
27920
|
}),
|
|
@@ -27870,21 +27923,21 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
|
|
|
27870
27923
|
children: [
|
|
27871
27924
|
/* @__PURE__ */ jsx(Button, {
|
|
27872
27925
|
type: "button",
|
|
27873
|
-
onClick:
|
|
27926
|
+
onClick: Qc,
|
|
27874
27927
|
className: "rounded-lg bg-neutral-800 px-3 py-1.5 text-xs font-semibold text-white",
|
|
27875
27928
|
children: "Confirm"
|
|
27876
27929
|
}),
|
|
27877
27930
|
/* @__PURE__ */ jsx(Button, {
|
|
27878
27931
|
type: "button",
|
|
27879
27932
|
onClick: () => {
|
|
27880
|
-
|
|
27933
|
+
Wc(!1), Kc(null);
|
|
27881
27934
|
},
|
|
27882
27935
|
className: "text-xs font-medium text-neutral-700-variant-1 hover:underline",
|
|
27883
27936
|
children: "Cancel"
|
|
27884
27937
|
}),
|
|
27885
27938
|
/* @__PURE__ */ jsx(Button, {
|
|
27886
27939
|
type: "button",
|
|
27887
|
-
onClick:
|
|
27940
|
+
onClick: Rc,
|
|
27888
27941
|
className: "ml-auto text-xs font-medium text-primary-500 hover:underline",
|
|
27889
27942
|
children: "Mark handled instead"
|
|
27890
27943
|
})
|
|
@@ -27912,21 +27965,21 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
|
|
|
27912
27965
|
})(),
|
|
27913
27966
|
/* @__PURE__ */ jsxs(Button, {
|
|
27914
27967
|
type: "button",
|
|
27915
|
-
onClick:
|
|
27968
|
+
onClick: Rc,
|
|
27916
27969
|
className: "gap-1.5 rounded-lg border border-neutral-300 bg-neutral-100 px-3 py-1.5 text-xs font-semibold text-neutral-700 transition-colors hover:bg-neutral-200",
|
|
27917
27970
|
children: [/* @__PURE__ */ jsx(CheckActionIcon, {}), "Mark handled"]
|
|
27918
27971
|
}),
|
|
27919
27972
|
/* @__PURE__ */ jsxs(Button, {
|
|
27920
27973
|
type: "button",
|
|
27921
|
-
onClick: () =>
|
|
27974
|
+
onClick: () => Wc(!0),
|
|
27922
27975
|
className: "gap-1.5 rounded-lg border border-neutral-300 bg-neutral-100 px-3 py-1.5 text-xs font-semibold text-neutral-700 transition-colors hover:bg-neutral-200",
|
|
27923
27976
|
children: [/* @__PURE__ */ jsx(DismissActionIcon, {}), "Mark not useful"]
|
|
27924
27977
|
}),
|
|
27925
27978
|
/* @__PURE__ */ jsxs(Button, {
|
|
27926
27979
|
type: "button",
|
|
27927
|
-
onClick:
|
|
27928
|
-
className:
|
|
27929
|
-
children: [jsx(
|
|
27980
|
+
onClick: Zc,
|
|
27981
|
+
className: qc ? "gap-1.5 rounded-lg border border-green-400 bg-green-50 px-3 py-1.5 text-xs font-semibold text-green-800 transition-colors" : "gap-1.5 rounded-lg border border-neutral-300 bg-neutral-100 px-3 py-1.5 text-xs font-semibold text-neutral-700 transition-colors hover:bg-neutral-200",
|
|
27982
|
+
children: [jsx(qc ? CheckActionIcon : CopyActionIcon, {}), qc ? "Copied" : "Copy evidence"]
|
|
27930
27983
|
})
|
|
27931
27984
|
]
|
|
27932
27985
|
})
|
|
@@ -27935,20 +27988,20 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
|
|
|
27935
27988
|
className: "rounded-xl border border-neutral-200-variant-1 bg-white-variant-8 px-4 py-3.5",
|
|
27936
27989
|
children: [/* @__PURE__ */ jsxs(Button, {
|
|
27937
27990
|
type: "button",
|
|
27938
|
-
onClick: () =>
|
|
27991
|
+
onClick: () => Xc((e) => !e),
|
|
27939
27992
|
className: "w-full justify-between text-left",
|
|
27940
|
-
"aria-expanded":
|
|
27993
|
+
"aria-expanded": Yc,
|
|
27941
27994
|
children: [/* @__PURE__ */ jsx("span", {
|
|
27942
27995
|
className: "text-[10px] font-bold tracking-widest text-neutral-900 uppercase",
|
|
27943
27996
|
children: "Evidence analysis"
|
|
27944
27997
|
}), /* @__PURE__ */ jsxs("span", {
|
|
27945
27998
|
className: "inline-flex items-center gap-1 text-xs font-medium text-neutral-700-variant-1",
|
|
27946
|
-
children: [
|
|
27999
|
+
children: [Yc ? "Hide proof" : "Show proof", /* @__PURE__ */ jsx(ChevronIcon, { expanded: Yc })]
|
|
27947
28000
|
})]
|
|
27948
|
-
}),
|
|
28001
|
+
}), Yc && /* @__PURE__ */ jsx("div", {
|
|
27949
28002
|
className: "mt-3 border-t border-neutral-200-variant-1 pt-3",
|
|
27950
28003
|
children: /* @__PURE__ */ jsx(EvidenceTimeline, {
|
|
27951
|
-
items:
|
|
28004
|
+
items: Nc,
|
|
27952
28005
|
canExpandThread: !0,
|
|
27953
28006
|
tone: a,
|
|
27954
28007
|
threadTitle: e,
|
|
@@ -28050,6 +28103,19 @@ function SignalSummaryActionButton({ icon: e, label: t, className: n, ...r }) {
|
|
|
28050
28103
|
children: [e, t]
|
|
28051
28104
|
});
|
|
28052
28105
|
}
|
|
28106
|
+
function SignalSummaryActionsSectionSkeleton({ className: e }) {
|
|
28107
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
28108
|
+
"aria-hidden": "true",
|
|
28109
|
+
className: cn("px-4 py-4", e),
|
|
28110
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
28111
|
+
className: "mb-3 text-[10px]",
|
|
28112
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-32 inline-block align-middle" })
|
|
28113
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
28114
|
+
className: "gap-2 flex flex-wrap items-center",
|
|
28115
|
+
children: [/* @__PURE__ */ jsx("span", { className: "w-28 rounded-lg h-[31px] bg-neutral-300-variant-3" }), /* @__PURE__ */ jsx("span", { className: "w-32 rounded-lg h-[31px] bg-neutral-300-variant-3" })]
|
|
28116
|
+
})]
|
|
28117
|
+
});
|
|
28118
|
+
}
|
|
28053
28119
|
function SignalSummaryActionsSection({ title: e, children: t, className: n }) {
|
|
28054
28120
|
return /* @__PURE__ */ jsxs("section", {
|
|
28055
28121
|
className: cn("px-4 py-4", n),
|
|
@@ -28059,6 +28125,26 @@ function SignalSummaryActionsSection({ title: e, children: t, className: n }) {
|
|
|
28059
28125
|
}), t]
|
|
28060
28126
|
});
|
|
28061
28127
|
}
|
|
28128
|
+
function SignalSummaryClaimSectionSkeleton({ className: e }) {
|
|
28129
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
28130
|
+
"aria-hidden": "true",
|
|
28131
|
+
className: cn("px-4 py-4", e),
|
|
28132
|
+
children: [
|
|
28133
|
+
/* @__PURE__ */ jsx("div", {
|
|
28134
|
+
className: "mb-2 text-[10px]",
|
|
28135
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-28 inline-block align-middle" })
|
|
28136
|
+
}),
|
|
28137
|
+
/* @__PURE__ */ jsx("div", {
|
|
28138
|
+
className: "text-sm leading-snug",
|
|
28139
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 inline-block w-full align-middle" })
|
|
28140
|
+
}),
|
|
28141
|
+
/* @__PURE__ */ jsx("div", {
|
|
28142
|
+
className: "text-sm leading-snug",
|
|
28143
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 inline-block w-2/3 align-middle" })
|
|
28144
|
+
})
|
|
28145
|
+
]
|
|
28146
|
+
});
|
|
28147
|
+
}
|
|
28062
28148
|
function CursorTooltip({ content: e, children: t, position: n = "top-right", multiline: r = !1, className: i }) {
|
|
28063
28149
|
let [a, o] = useState(null), s = (e) => o({
|
|
28064
28150
|
x: e.clientX,
|
|
@@ -28153,6 +28239,45 @@ function SignalSummaryDismissReasons({ prompt: e, options: t, selectedId: n, onS
|
|
|
28153
28239
|
]
|
|
28154
28240
|
});
|
|
28155
28241
|
}
|
|
28242
|
+
function SignalSummaryHeaderSkeleton({ className: e }) {
|
|
28243
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
28244
|
+
"aria-hidden": "true",
|
|
28245
|
+
className: cn("shrink-0 border-b border-signal-summary-border bg-white-variant-8", e),
|
|
28246
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
28247
|
+
className: "h-12 gap-2.5 px-4 flex items-center border-b border-signal-summary-border",
|
|
28248
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
28249
|
+
className: "text-[13px]",
|
|
28250
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-20 inline-block align-middle" })
|
|
28251
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
28252
|
+
className: "text-[11px]",
|
|
28253
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-24 inline-block align-middle" })
|
|
28254
|
+
})]
|
|
28255
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
28256
|
+
className: "gap-0.5 px-4 py-2.5 flex flex-col",
|
|
28257
|
+
children: [{
|
|
28258
|
+
nameWidth: "w-24",
|
|
28259
|
+
lineHeight: "text-sm"
|
|
28260
|
+
}, {
|
|
28261
|
+
nameWidth: "w-28",
|
|
28262
|
+
lineHeight: "text-xs"
|
|
28263
|
+
}].map(({ nameWidth: e, lineHeight: t }) => /* @__PURE__ */ jsxs("div", {
|
|
28264
|
+
className: "min-w-0 gap-2 flex items-center",
|
|
28265
|
+
children: [
|
|
28266
|
+
/* @__PURE__ */ jsx("span", {
|
|
28267
|
+
className: "w-9 shrink-0 text-[10px]",
|
|
28268
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-7 inline-block align-middle" })
|
|
28269
|
+
}),
|
|
28270
|
+
/* @__PURE__ */ jsx("span", { className: "h-[18px] w-[18px] shrink-0 rounded-full bg-neutral-300-variant-3" }),
|
|
28271
|
+
/* @__PURE__ */ jsx("span", {
|
|
28272
|
+
className: t,
|
|
28273
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: cn("h-2.5 inline-block align-middle", e) })
|
|
28274
|
+
}),
|
|
28275
|
+
/* @__PURE__ */ jsx("span", { className: "w-36 h-[19px] rounded-full bg-neutral-300-variant-3" })
|
|
28276
|
+
]
|
|
28277
|
+
}, e))
|
|
28278
|
+
})]
|
|
28279
|
+
});
|
|
28280
|
+
}
|
|
28156
28281
|
function Label$1({ children: e }) {
|
|
28157
28282
|
return /* @__PURE__ */ jsx("span", {
|
|
28158
28283
|
className: "w-9 font-bold tracking-wider shrink-0 text-[10px] text-neutral-700-variant-1 uppercase",
|
|
@@ -28254,6 +28379,32 @@ function SignalSummaryReviewSection({ title: e, decision: t, reasons: n = [], cl
|
|
|
28254
28379
|
]
|
|
28255
28380
|
});
|
|
28256
28381
|
}
|
|
28382
|
+
function SignalSummarySlaSectionSkeleton({ className: e }) {
|
|
28383
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
28384
|
+
"aria-hidden": "true",
|
|
28385
|
+
className: cn("px-4 py-4", e),
|
|
28386
|
+
children: [
|
|
28387
|
+
/* @__PURE__ */ jsxs("div", {
|
|
28388
|
+
className: "mb-2.5 flex items-center justify-between",
|
|
28389
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
28390
|
+
className: "text-[10px]",
|
|
28391
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-36 inline-block align-middle" })
|
|
28392
|
+
}), /* @__PURE__ */ jsx("span", { className: "w-20 h-[19px] rounded-full bg-neutral-300-variant-3" })]
|
|
28393
|
+
}),
|
|
28394
|
+
/* @__PURE__ */ jsx("div", { className: "mb-2.5 h-1.5 rounded-full bg-neutral-300-variant-3" }),
|
|
28395
|
+
/* @__PURE__ */ jsxs("div", {
|
|
28396
|
+
className: "flex items-center justify-between",
|
|
28397
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
28398
|
+
className: "text-[11px]",
|
|
28399
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-20 inline-block align-middle" })
|
|
28400
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
28401
|
+
className: "text-[11px]",
|
|
28402
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-16 inline-block align-middle" })
|
|
28403
|
+
})]
|
|
28404
|
+
})
|
|
28405
|
+
]
|
|
28406
|
+
});
|
|
28407
|
+
}
|
|
28257
28408
|
var badgeStyles = tv({
|
|
28258
28409
|
base: "px-2 py-0.5 font-semibold rounded-full text-[10px]",
|
|
28259
28410
|
variants: { status: {
|
|
@@ -28321,6 +28472,22 @@ function SignalSummarySlaSection({ title: e, statusLabel: t, status: n, percentU
|
|
|
28321
28472
|
]
|
|
28322
28473
|
});
|
|
28323
28474
|
}
|
|
28475
|
+
function EvidenceHeaderSkeleton({ className: e }) {
|
|
28476
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
28477
|
+
"aria-hidden": "true",
|
|
28478
|
+
className: cn("h-12 gap-2 px-4 flex shrink-0 items-center justify-between border-b border-evidence-border bg-white-variant-8", e),
|
|
28479
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
28480
|
+
className: "min-w-0 gap-1.5 flex items-center",
|
|
28481
|
+
children: [/* @__PURE__ */ jsx("span", { className: "rounded-sm size-3.5 shrink-0 bg-neutral-300-variant-3" }), /* @__PURE__ */ jsx("span", {
|
|
28482
|
+
className: "text-[13px]",
|
|
28483
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-48 inline-block align-middle" })
|
|
28484
|
+
})]
|
|
28485
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
28486
|
+
className: "shrink-0 text-[11px]",
|
|
28487
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-16 inline-block align-middle" })
|
|
28488
|
+
})]
|
|
28489
|
+
});
|
|
28490
|
+
}
|
|
28324
28491
|
function EvidenceHeader({ icon: e, title: t, muted: n = !1, meta: r, className: i }) {
|
|
28325
28492
|
return /* @__PURE__ */ jsxs("div", {
|
|
28326
28493
|
className: cn("top-0 h-12 gap-2 px-4 sticky z-10 flex shrink-0 items-center justify-between border-b border-evidence-border bg-white-variant-8", i),
|
|
@@ -28339,6 +28506,13 @@ function EvidenceHeader({ icon: e, title: t, muted: n = !1, meta: r, className:
|
|
|
28339
28506
|
})]
|
|
28340
28507
|
});
|
|
28341
28508
|
}
|
|
28509
|
+
function ThreadDateDividerSkeleton({ className: e }) {
|
|
28510
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
28511
|
+
"aria-hidden": "true",
|
|
28512
|
+
className: cn("px-4 py-3 relative flex items-center justify-center", e),
|
|
28513
|
+
children: [/* @__PURE__ */ jsx("div", { className: "inset-x-4 absolute top-1/2 h-px bg-evidence-border" }), /* @__PURE__ */ jsx("span", { className: "h-7 w-16 relative z-10 rounded-full bg-neutral-300-variant-3" })]
|
|
28514
|
+
});
|
|
28515
|
+
}
|
|
28342
28516
|
function ThreadDateDivider({ label: e, className: t }) {
|
|
28343
28517
|
return /* @__PURE__ */ jsxs("div", {
|
|
28344
28518
|
className: cn("px-4 py-3 relative flex items-center justify-center", t),
|
|
@@ -28348,6 +28522,48 @@ function ThreadDateDivider({ label: e, className: t }) {
|
|
|
28348
28522
|
})]
|
|
28349
28523
|
});
|
|
28350
28524
|
}
|
|
28525
|
+
function ThreadEmailMessageSkeleton({ className: e }) {
|
|
28526
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
28527
|
+
"aria-hidden": "true",
|
|
28528
|
+
className: cn("gap-2.5 px-4 pt-5 pb-4 flex border-b border-evidence-border last:border-b-0", e),
|
|
28529
|
+
children: [/* @__PURE__ */ jsx("span", { className: "h-9 w-9 shrink-0 rounded-full bg-neutral-300-variant-3" }), /* @__PURE__ */ jsxs("div", {
|
|
28530
|
+
className: "min-w-0 flex-1",
|
|
28531
|
+
children: [
|
|
28532
|
+
/* @__PURE__ */ jsxs("div", {
|
|
28533
|
+
className: "gap-2 flex items-start justify-between",
|
|
28534
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
28535
|
+
className: "min-w-0 gap-0.5 flex flex-1 flex-col",
|
|
28536
|
+
children: ["w-24", "w-28"].map((e) => /* @__PURE__ */ jsxs("div", {
|
|
28537
|
+
className: "gap-1.5 flex items-center",
|
|
28538
|
+
children: [
|
|
28539
|
+
/* @__PURE__ */ jsx("span", {
|
|
28540
|
+
className: "w-9 shrink-0 text-[10px]",
|
|
28541
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-7 inline-block align-middle" })
|
|
28542
|
+
}),
|
|
28543
|
+
/* @__PURE__ */ jsx("span", {
|
|
28544
|
+
className: "text-[13px]",
|
|
28545
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: cn("h-3 inline-block align-middle", e) })
|
|
28546
|
+
}),
|
|
28547
|
+
/* @__PURE__ */ jsx("span", { className: "w-32 h-[19px] rounded-full bg-neutral-300-variant-3" })
|
|
28548
|
+
]
|
|
28549
|
+
}, e))
|
|
28550
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
28551
|
+
className: "shrink-0 text-[11px]",
|
|
28552
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-20 inline-block align-middle" })
|
|
28553
|
+
})]
|
|
28554
|
+
}),
|
|
28555
|
+
/* @__PURE__ */ jsx("div", {
|
|
28556
|
+
className: "mt-2 text-sm leading-relaxed",
|
|
28557
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 inline-block w-full align-middle" })
|
|
28558
|
+
}),
|
|
28559
|
+
/* @__PURE__ */ jsx("div", {
|
|
28560
|
+
className: "text-sm leading-relaxed",
|
|
28561
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 inline-block w-3/4 align-middle" })
|
|
28562
|
+
})
|
|
28563
|
+
]
|
|
28564
|
+
})]
|
|
28565
|
+
});
|
|
28566
|
+
}
|
|
28351
28567
|
function Name({ name: e, company: t }) {
|
|
28352
28568
|
let n = /* @__PURE__ */ jsx("span", {
|
|
28353
28569
|
className: cn("min-w-0 font-bold truncate text-[13px] text-neutral-900", t && "cursor-default underline decoration-neutral-400-variant-2 decoration-dotted underline-offset-2"),
|
|
@@ -28427,6 +28643,28 @@ function ThreadEmailMessage({ icon: e, sourceLabel: t, onOpenSource: n, senderNa
|
|
|
28427
28643
|
})]
|
|
28428
28644
|
});
|
|
28429
28645
|
}
|
|
28646
|
+
function ThreadSlackMessageSkeleton({ bodyWidthClassName: e = "w-4/5", className: t }) {
|
|
28647
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
28648
|
+
"aria-hidden": "true",
|
|
28649
|
+
className: cn("gap-2.5 px-4 pt-3 pb-0.5 flex", t),
|
|
28650
|
+
children: [/* @__PURE__ */ jsx("span", { className: "h-9 w-9 rounded-lg shrink-0 bg-neutral-300-variant-3" }), /* @__PURE__ */ jsxs("div", {
|
|
28651
|
+
className: "min-w-0 flex-1",
|
|
28652
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
28653
|
+
className: "gap-2 flex items-center",
|
|
28654
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
28655
|
+
className: "text-[14px]",
|
|
28656
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-24 inline-block align-middle" })
|
|
28657
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
28658
|
+
className: "text-[11px]",
|
|
28659
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-14 inline-block align-middle" })
|
|
28660
|
+
})]
|
|
28661
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
28662
|
+
className: "text-sm leading-relaxed",
|
|
28663
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: cn("h-3 inline-block align-middle", e) })
|
|
28664
|
+
})]
|
|
28665
|
+
})]
|
|
28666
|
+
});
|
|
28667
|
+
}
|
|
28430
28668
|
function ThreadSlackMessage({ sourceLabel: e, onOpenSource: t, senderName: n, timestamp: r, body: i, className: a }) {
|
|
28431
28669
|
return /* @__PURE__ */ jsxs("div", {
|
|
28432
28670
|
className: cn("gap-2.5 px-4 pt-3 pb-0.5 flex", a),
|
|
@@ -28710,6 +28948,6 @@ function QtaloBlueImage({ size: e = 40, className: t, ...n }) {
|
|
|
28710
28948
|
}) })]
|
|
28711
28949
|
});
|
|
28712
28950
|
}
|
|
28713
|
-
export { AVATAR_COLOR, AVATAR_COLOR_KEYS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountIcon, AccountInfo, AccountOutlineIcon, ActionMenu, ActionMenuItem, AddCircleIcon, AddIcon, ArrowIcon, AsanaIcon, Avatar, Badge, BetaResizeHandle, BriefcaseOutlineIcon, BuildingIcon, BuildingOutlineIcon, BulkActions, BulkActionsSkeleton, Button, CalendarIcon, Card, CardContent, CardFooter, CardHeader, CardLayout, CardSidebar, CardTitle, CheckBoldIcon, CheckCircleEmptyIcon, CheckCircleIcon, CheckIcon, CheckOutlineIcon, CheckSquareIcon, Checkbox, CheckboxIcon, ChevronRightIcon, ClickUpIcon, CloseBoldIcon, CloseIcon, CloseOutlineIcon, CompactDensityIcon, CopyIcon, CursorTooltip, CustomerGroupHeader, DarkIcon, DatePicker, Divider, Dropdown, DropdownContext, DropdownMenu, DropdownMenuItem, EVENT_CARD_HEIGHT_SIZE, EVENT_SUMMARY_CARD_HEIGHT_SIZE, EmptyBoxIcon, EventCard, EventCardSkeleton, EventDetail, EventDetailContentCalendar, EventDetailContentEmail, EventDetailContentHeader, EventDetailContentMessage, EventDetailContentTicket, EventDetailFollowUp, EventDetailHeader, EventDetailPriority, EventDetailSkeleton, EventDetailSummary, EventEmptyState, EventSummaryCard, EventSummaryCardSkeleton, EventSummaryFireButton, EvidenceHeader, EvidenceTimeline, ExternalLinkIcon, ExternalLinkOutlineIcon, EyeFillIcon, EyeIcon, FilterBar, FilterBarSkeleton, FilterButton, FireFillIcon, FireIcon, GmailIcon, GoogleCalendarIcon, HelpPanel, HelpPanelEngine, HomeFillIcon, HomeIcon, Icon, IconButton, IconCountButton, IconCountButtonSkeleton, InboxIcon, InfoFillIcon, InfoTooltip, Input, InsightFillIcon, InsightIcon, IntegrationBar, IntegrationBarSkeleton, IntegrationItem, IntegrationItemSkeleton, IntegrationsCard, JiraIcon, LightIcon, LogoIcon, MailIcon, MinusIcon, MoreIcon, MsIcon, NoEyeIcon, NormalDensityIcon, NotFireIcon, ONBOARDING_DISMISSED_STORAGE_KEY, Onboarding, OnboardingCard, OnboardingEngine, OutlookCalendarIcon, OutlookIcon, PatternIcon, Pressable, PulseFilterChip, PulseFilterChipSkeleton, PulseGmailIcon, PulseSignalCard, PulseSignalStatus, PulseSlackIcon, QtaloBlueImage, QtaloImage, ReadIcon, ReplyIoIcon, ResizeDivider, RichContent, RoleBadge, SearchIcon, SearchInput, SearchWithSuggestions, SignOutIcon, SignalCard, SignalCardSkeleton, SignalClusterCard, SignalClusterCardSkeleton, SignalDetailPanel, SignalDetailPanelSkeleton, SignalSummaryActionButton, SignalSummaryActionsSection, SignalSummaryClaimSection, SignalSummaryDismissReasons, SignalSummaryHeader, SignalSummaryReviewSection, SignalSummarySlaSection, Skeleton, SlaProgressBar, SlackIcon, StatusBadge, StopPropagation, SummaryIcon, SystemIcon, TeamsIcon, ThreadDateDivider, ThreadEmailMessage, ThreadSlackMessage, Toaster, ToolbarButton, Tooltip, UnreadIcon, UserOutlineIcon, WarningIcon, capitalize, cn, colors, formatDate, formatDateRange, formatTimestamp, generateCalendarDays, getDaysInMonth, getFirstDayOfMonth, getInitials, getMonthName, getWeekdays, isDateBefore, isDateInRange, isSameDay, isToday, normalizeContent, parseDate, pickColorFromPalette, stringHash, toMondayBased, toast, toastStore, useAccordion, useDropdown, useLongPress };
|
|
28951
|
+
export { AVATAR_COLOR, AVATAR_COLOR_KEYS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountIcon, AccountInfo, AccountOutlineIcon, ActionMenu, ActionMenuItem, AddCircleIcon, AddIcon, ArrowIcon, AsanaIcon, Avatar, Badge, BetaResizeHandle, BriefcaseOutlineIcon, BuildingIcon, BuildingOutlineIcon, BulkActions, BulkActionsSkeleton, Button, CalendarIcon, Card, CardContent, CardFooter, CardHeader, CardLayout, CardSidebar, CardTitle, CheckBoldIcon, CheckCircleEmptyIcon, CheckCircleIcon, CheckIcon, CheckOutlineIcon, CheckSquareIcon, Checkbox, CheckboxIcon, ChevronRightIcon, ClickUpIcon, CloseBoldIcon, CloseIcon, CloseOutlineIcon, CompactDensityIcon, CopyIcon, CursorTooltip, CustomerGroupHeader, CustomerGroupHeaderSkeleton, DarkIcon, DatePicker, Divider, Dropdown, DropdownContext, DropdownMenu, DropdownMenuItem, EVENT_CARD_HEIGHT_SIZE, EVENT_SUMMARY_CARD_HEIGHT_SIZE, EmptyBoxIcon, EventCard, EventCardSkeleton, EventDetail, EventDetailContentCalendar, EventDetailContentEmail, EventDetailContentHeader, EventDetailContentMessage, EventDetailContentTicket, EventDetailFollowUp, EventDetailHeader, EventDetailPriority, EventDetailSkeleton, EventDetailSummary, EventEmptyState, EventSummaryCard, EventSummaryCardSkeleton, EventSummaryFireButton, EvidenceHeader, EvidenceHeaderSkeleton, EvidenceTimeline, ExternalLinkIcon, ExternalLinkOutlineIcon, EyeFillIcon, EyeIcon, FilterBar, FilterBarSkeleton, FilterButton, FireFillIcon, FireIcon, GmailIcon, GoogleCalendarIcon, HelpPanel, HelpPanelEngine, HomeFillIcon, HomeIcon, Icon, IconButton, IconCountButton, IconCountButtonSkeleton, InboxIcon, InfoFillIcon, InfoTooltip, Input, InsightFillIcon, InsightIcon, IntegrationBar, IntegrationBarSkeleton, IntegrationItem, IntegrationItemSkeleton, IntegrationsCard, JiraIcon, LightIcon, LogoIcon, MailIcon, MinusIcon, MoreIcon, MsIcon, NoEyeIcon, NormalDensityIcon, NotFireIcon, ONBOARDING_DISMISSED_STORAGE_KEY, Onboarding, OnboardingCard, OnboardingEngine, OutlookCalendarIcon, OutlookIcon, PatternIcon, Pressable, PulseFilterChip, PulseFilterChipSkeleton, PulseGmailIcon, PulseSignalCard, PulseSignalCardSkeleton, PulseSignalStatus, PulseSlackIcon, QtaloBlueImage, QtaloImage, ReadIcon, ReplyIoIcon, ResizeDivider, RichContent, RoleBadge, SearchIcon, SearchInput, SearchWithSuggestions, SignOutIcon, SignalCard, SignalCardSkeleton, SignalClusterCard, SignalClusterCardSkeleton, SignalDetailPanel, SignalDetailPanelSkeleton, SignalSummaryActionButton, SignalSummaryActionsSection, SignalSummaryActionsSectionSkeleton, SignalSummaryClaimSection, SignalSummaryClaimSectionSkeleton, SignalSummaryDismissReasons, SignalSummaryHeader, SignalSummaryHeaderSkeleton, SignalSummaryReviewSection, SignalSummarySlaSection, SignalSummarySlaSectionSkeleton, Skeleton, SlaProgressBar, SlackIcon, StatusBadge, StopPropagation, SummaryIcon, SystemIcon, TeamsIcon, ThreadDateDivider, ThreadDateDividerSkeleton, ThreadEmailMessage, ThreadEmailMessageSkeleton, ThreadSlackMessage, ThreadSlackMessageSkeleton, Toaster, ToolbarButton, Tooltip, UnreadIcon, UserOutlineIcon, WarningIcon, capitalize, cn, colors, formatDate, formatDateRange, formatTimestamp, generateCalendarDays, getDaysInMonth, getFirstDayOfMonth, getInitials, getMonthName, getWeekdays, isDateBefore, isDateInRange, isSameDay, isToday, normalizeContent, parseDate, pickColorFromPalette, stringHash, toMondayBased, toast, toastStore, useAccordion, useDropdown, useLongPress };
|
|
28714
28952
|
|
|
28715
28953
|
//# sourceMappingURL=index.js.map
|