@qtalo/qt-ui-library 0.4.0 → 0.4.2

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.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"), bc = lookupGetter(f, "nextSibling"), g = lookupGetter(f, "childNodes"), O = lookupGetter(f, "parentNode"), xc = lookupGetter(f, "shadowRoot"), Sc = lookupGetter(f, "attributes"), A = o && o.prototype ? lookupGetter(o.prototype, "nodeType") : null, Cc = o && o.prototype ? lookupGetter(o.prototype, "nodeName") : null, R = o && o.prototype ? lookupGetter(o.prototype, "ownerDocument") : null;
394
+ let l = e.DOMParser, u = e.trustedTypes, f = s.prototype, p = lookupGetter(f, "cloneNode"), h = lookupGetter(f, "remove"), Fc = lookupGetter(f, "nextSibling"), g = lookupGetter(f, "childNodes"), O = lookupGetter(f, "parentNode"), Ic = lookupGetter(f, "shadowRoot"), Lc = lookupGetter(f, "attributes"), A = o && o.prototype ? lookupGetter(o.prototype, "nodeType") : null, Rc = 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, wc = "", Tc, Ec = !1, Dc = 0, Oc = function() {
400
- if (Dc > 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
- }, kc = function(e) {
402
- Oc(), Dc++;
399
+ let B, zc = "", Bc, Vc = !1, Hc = 0, Uc = function() {
400
+ if (Hc > 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
+ }, Wc = function(e) {
402
+ Uc(), Hc++;
403
403
  try {
404
404
  return B.createHTML(e);
405
405
  } finally {
406
- Dc--;
406
+ Hc--;
407
407
  }
408
- }, Ac = function(e) {
409
- Oc(), Dc++;
408
+ }, Gc = function(e) {
409
+ Uc(), Hc++;
410
410
  try {
411
411
  return B.createScriptURL(e);
412
412
  } finally {
413
- Dc--;
413
+ Hc--;
414
414
  }
415
- }, jc = function() {
416
- return Ec ||= (Tc = _createTrustedTypesPolicy(u, i), !0), Tc;
417
- }, Mc = n, Nc = Mc.implementation, Pc = Mc.createNodeIterator, Fc = Mc.createDocumentFragment, Ic = Mc.getElementsByTagName, Lc = r.importNode, V = _createHooksMap();
418
- t.isSupported = typeof entries == "function" && typeof O == "function" && Nc && Nc.createHTMLDocument !== void 0;
419
- let Rc = MUSTACHE_EXPR, zc = ERB_EXPR, Bc = TMPLIT_EXPR, Vc = DATA_ATTR, Hc = ARIA_ATTR, Uc = IS_SCRIPT_OR_DATA, Wc = ATTR_WHITESPACE, Gc = CUSTOM_ELEMENT, Kc = IS_ALLOWED_URI, H = null, qc = addToSet({}, [
415
+ }, Kc = function() {
416
+ return Vc ||= (Bc = _createTrustedTypesPolicy(u, i), !0), Bc;
417
+ }, qc = n, Jc = qc.implementation, Yc = qc.createNodeIterator, Xc = qc.createDocumentFragment, Zc = qc.getElementsByTagName, Qc = r.importNode, V = _createHooksMap();
418
+ t.isSupported = typeof entries == "function" && typeof O == "function" && Jc && Jc.createHTMLDocument !== void 0;
419
+ let $c = MUSTACHE_EXPR, el = ERB_EXPR, tl = TMPLIT_EXPR, nl = DATA_ATTR, rl = ARIA_ATTR, il = IS_SCRIPT_OR_DATA, al = ATTR_WHITESPACE, ol = CUSTOM_ELEMENT, sl = IS_ALLOWED_URI, H = null, cl = addToSet({}, [
420
420
  ...html$1,
421
421
  ...svg$1,
422
422
  ...svgFilters,
423
423
  ...mathMl$1,
424
424
  ...text
425
- ]), Y = null, Jc = addToSet({}, [
425
+ ]), Y = null, ll = addToSet({}, [
426
426
  ...html,
427
427
  ...svg,
428
428
  ...mathMl,
429
429
  ...xml
430
- ]), Yc = Object.seal(create(null, {
430
+ ]), ul = 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
- })), Xc = null, Zc = null, Qc = Object.seal(create(null, {
449
+ })), dl = null, fl = null, pl = 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
- })), $c = !0, el = !0, tl = !1, nl = !0, rl = !1, il = !0, al = !1, ol = !1, sl = null, cl = null, ll = !1, ul = !1, dl = !1, fl = !1, pl = !0, ml = !1, hl = "user-content-", gl = !0, _l = !1, vl = {}, yl = null, bl = 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(".")), xl = null, Sl = addToSet({}, [
462
+ })), ml = !0, hl = !0, gl = !1, _l = !0, vl = !1, yl = !0, bl = !1, xl = !1, Sl = null, Cl = null, wl = !1, Tl = !1, El = !1, Dl = !1, Ol = !0, kl = !1, Al = "user-content-", jl = !0, Ml = !1, Nl = {}, Pl = null, Fl = 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(".")), Il = null, Ll = addToSet({}, [
463
463
  "audio",
464
464
  "video",
465
465
  "img",
466
466
  "source",
467
467
  "image",
468
468
  "track"
469
- ]), Cl = null, wl = addToSet({}, [
469
+ ]), Rl = null, zl = 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
- ]), Tl = "http://www.w3.org/1998/Math/MathML", El = "http://www.w3.org/2000/svg", Dl = "http://www.w3.org/1999/xhtml", Ol = Dl, kl = !1, Al = null, jl = addToSet({}, [
485
- Tl,
486
- El,
487
- Dl
488
- ], stringToString), Ml = freeze([
484
+ ]), Bl = "http://www.w3.org/1998/Math/MathML", Vl = "http://www.w3.org/2000/svg", Hl = "http://www.w3.org/1999/xhtml", Ul = Hl, Wl = !1, Gl = null, Kl = addToSet({}, [
485
+ Bl,
486
+ Vl,
487
+ Hl
488
+ ], stringToString), ql = freeze([
489
489
  "mi",
490
490
  "mo",
491
491
  "mn",
492
492
  "ms",
493
493
  "mtext"
494
- ]), Nl = addToSet({}, Ml), Pl = freeze(["annotation-xml"]), Fl = addToSet({}, Pl), Il = addToSet({}, [
494
+ ]), Jl = addToSet({}, ql), Yl = freeze(["annotation-xml"]), Xl = addToSet({}, Yl), Zl = addToSet({}, [
495
495
  "title",
496
496
  "style",
497
497
  "font",
498
498
  "a",
499
499
  "script"
500
- ]), Ll = null, Rl = ["application/xhtml+xml", "text/html"], zl = null, Bl = null, Vl = n.createElement("form"), Hl = function(e) {
500
+ ]), Ql = null, $l = ["application/xhtml+xml", "text/html"], eu = null, tu = null, nu = n.createElement("form"), ru = function(e) {
501
501
  return e instanceof RegExp || e instanceof Function;
502
- }, Ul = function() {
502
+ }, iu = function() {
503
503
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
504
- if (Bl && Bl === e) return;
505
- (!e || typeof e != "object") && (e = {}), e = clone(e), Ll = Rl.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, zl = Ll === "application/xhtml+xml" ? stringToString : stringToLowerCase, H = _resolveSetOption(e, "ALLOWED_TAGS", qc, { transform: zl }), Y = _resolveSetOption(e, "ALLOWED_ATTR", Jc, { transform: zl }), Al = _resolveSetOption(e, "ALLOWED_NAMESPACES", jl, { transform: stringToString }), Cl = _resolveSetOption(e, "ADD_URI_SAFE_ATTR", wl, {
506
- transform: zl,
507
- base: wl
508
- }), xl = _resolveSetOption(e, "ADD_DATA_URI_TAGS", Sl, {
509
- transform: zl,
510
- base: Sl
511
- }), yl = _resolveSetOption(e, "FORBID_CONTENTS", bl, { transform: zl }), Xc = _resolveSetOption(e, "FORBID_TAGS", clone({}), { transform: zl }), Zc = _resolveSetOption(e, "FORBID_ATTR", clone({}), { transform: zl }), vl = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, $c = e.ALLOW_ARIA_ATTR !== !1, el = e.ALLOW_DATA_ATTR !== !1, tl = e.ALLOW_UNKNOWN_PROTOCOLS || !1, nl = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, rl = e.SAFE_FOR_TEMPLATES || !1, il = e.SAFE_FOR_XML !== !1, al = e.WHOLE_DOCUMENT || !1, ul = e.RETURN_DOM || !1, dl = e.RETURN_DOM_FRAGMENT || !1, fl = e.RETURN_TRUSTED_TYPE || !1, ll = e.FORCE_BODY || !1, pl = e.SANITIZE_DOM !== !1, ml = e.SANITIZE_NAMED_PROPS || !1, gl = e.KEEP_CONTENT !== !1, _l = e.IN_PLACE || !1, Kc = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : IS_ALLOWED_URI, Ol = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Dl, Nl = 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({}, Ml), Fl = objectHasOwnProperty(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, Pl);
504
+ if (tu && tu === e) return;
505
+ (!e || typeof e != "object") && (e = {}), e = clone(e), Ql = $l.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, eu = Ql === "application/xhtml+xml" ? stringToString : stringToLowerCase, H = _resolveSetOption(e, "ALLOWED_TAGS", cl, { transform: eu }), Y = _resolveSetOption(e, "ALLOWED_ATTR", ll, { transform: eu }), Gl = _resolveSetOption(e, "ALLOWED_NAMESPACES", Kl, { transform: stringToString }), Rl = _resolveSetOption(e, "ADD_URI_SAFE_ATTR", zl, {
506
+ transform: eu,
507
+ base: zl
508
+ }), Il = _resolveSetOption(e, "ADD_DATA_URI_TAGS", Ll, {
509
+ transform: eu,
510
+ base: Ll
511
+ }), Pl = _resolveSetOption(e, "FORBID_CONTENTS", Fl, { transform: eu }), dl = _resolveSetOption(e, "FORBID_TAGS", clone({}), { transform: eu }), fl = _resolveSetOption(e, "FORBID_ATTR", clone({}), { transform: eu }), Nl = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? clone(e.USE_PROFILES) : e.USE_PROFILES : !1, ml = e.ALLOW_ARIA_ATTR !== !1, hl = e.ALLOW_DATA_ATTR !== !1, gl = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _l = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, vl = e.SAFE_FOR_TEMPLATES || !1, yl = e.SAFE_FOR_XML !== !1, bl = e.WHOLE_DOCUMENT || !1, Tl = e.RETURN_DOM || !1, El = e.RETURN_DOM_FRAGMENT || !1, Dl = e.RETURN_TRUSTED_TYPE || !1, wl = e.FORCE_BODY || !1, Ol = e.SANITIZE_DOM !== !1, kl = e.SANITIZE_NAMED_PROPS || !1, jl = e.KEEP_CONTENT !== !1, Ml = e.IN_PLACE || !1, sl = isRegex(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : IS_ALLOWED_URI, Ul = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Hl, Jl = 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({}, ql), Xl = objectHasOwnProperty(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? clone(e.HTML_INTEGRATION_POINTS) : addToSet({}, Yl);
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 (Yc = create(null), objectHasOwnProperty(t, "tagNameCheck") && Hl(t.tagNameCheck) && (Yc.tagNameCheck = t.tagNameCheck), objectHasOwnProperty(t, "attributeNameCheck") && Hl(t.attributeNameCheck) && (Yc.attributeNameCheck = t.attributeNameCheck), objectHasOwnProperty(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (Yc.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), seal(Yc), rl && (el = !1), dl && (ul = !0), vl && (H = addToSet({}, text), Y = create(null), vl.html === !0 && (addToSet(H, html$1), addToSet(Y, html)), vl.svg === !0 && (addToSet(H, svg$1), addToSet(Y, svg), addToSet(Y, xml)), vl.svgFilters === !0 && (addToSet(H, svgFilters), addToSet(Y, svg), addToSet(Y, xml)), vl.mathMl === !0 && (addToSet(H, mathMl$1), addToSet(Y, mathMl), addToSet(Y, xml))), Qc.tagCheck = null, Qc.attributeCheck = null, objectHasOwnProperty(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Qc.tagCheck = e.ADD_TAGS : arrayIsArray(e.ADD_TAGS) && (H === qc && (H = clone(H)), addToSet(H, e.ADD_TAGS, zl))), objectHasOwnProperty(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Qc.attributeCheck = e.ADD_ATTR : arrayIsArray(e.ADD_ATTR) && (Y === Jc && (Y = clone(Y)), addToSet(Y, e.ADD_ATTR, zl))), objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") && arrayIsArray(e.ADD_URI_SAFE_ATTR) && addToSet(Cl, e.ADD_URI_SAFE_ATTR, zl), objectHasOwnProperty(e, "FORBID_CONTENTS") && arrayIsArray(e.FORBID_CONTENTS) && (yl === bl && (yl = clone(yl)), addToSet(yl, e.FORBID_CONTENTS, zl)), objectHasOwnProperty(e, "ADD_FORBID_CONTENTS") && arrayIsArray(e.ADD_FORBID_CONTENTS) && (yl === bl && (yl = clone(yl)), addToSet(yl, e.ADD_FORBID_CONTENTS, zl)), gl && (H["#text"] = !0), al && addToSet(H, [
513
+ if (ul = create(null), objectHasOwnProperty(t, "tagNameCheck") && ru(t.tagNameCheck) && (ul.tagNameCheck = t.tagNameCheck), objectHasOwnProperty(t, "attributeNameCheck") && ru(t.attributeNameCheck) && (ul.attributeNameCheck = t.attributeNameCheck), objectHasOwnProperty(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (ul.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), seal(ul), vl && (hl = !1), El && (Tl = !0), Nl && (H = addToSet({}, text), Y = create(null), Nl.html === !0 && (addToSet(H, html$1), addToSet(Y, html)), Nl.svg === !0 && (addToSet(H, svg$1), addToSet(Y, svg), addToSet(Y, xml)), Nl.svgFilters === !0 && (addToSet(H, svgFilters), addToSet(Y, svg), addToSet(Y, xml)), Nl.mathMl === !0 && (addToSet(H, mathMl$1), addToSet(Y, mathMl), addToSet(Y, xml))), pl.tagCheck = null, pl.attributeCheck = null, objectHasOwnProperty(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? pl.tagCheck = e.ADD_TAGS : arrayIsArray(e.ADD_TAGS) && (H === cl && (H = clone(H)), addToSet(H, e.ADD_TAGS, eu))), objectHasOwnProperty(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? pl.attributeCheck = e.ADD_ATTR : arrayIsArray(e.ADD_ATTR) && (Y === ll && (Y = clone(Y)), addToSet(Y, e.ADD_ATTR, eu))), objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") && arrayIsArray(e.ADD_URI_SAFE_ATTR) && addToSet(Rl, e.ADD_URI_SAFE_ATTR, eu), objectHasOwnProperty(e, "FORBID_CONTENTS") && arrayIsArray(e.FORBID_CONTENTS) && (Pl === Fl && (Pl = clone(Pl)), addToSet(Pl, e.FORBID_CONTENTS, eu)), objectHasOwnProperty(e, "ADD_FORBID_CONTENTS") && arrayIsArray(e.ADD_FORBID_CONTENTS) && (Pl === Fl && (Pl = clone(Pl)), addToSet(Pl, e.ADD_FORBID_CONTENTS, eu)), jl && (H["#text"] = !0), bl && addToSet(H, [
514
514
  "html",
515
515
  "head",
516
516
  "body"
517
- ]), H.table && (addToSet(H, ["tbody"]), delete Xc.tbody), e.TRUSTED_TYPES_POLICY) {
517
+ ]), H.table && (addToSet(H, ["tbody"]), delete dl.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
- wc = kc("");
523
+ zc = Wc("");
524
524
  } catch (e) {
525
525
  throw B = t, e;
526
526
  }
527
- } else e.TRUSTED_TYPES_POLICY === null ? (B = void 0, wc = "") : (B === void 0 && (B = jc()), B && typeof wc == "string" && (wc = kc("")));
528
- freeze && freeze(e), Bl = e;
529
- }, Wl = addToSet({}, [
527
+ } else e.TRUSTED_TYPES_POLICY === null ? (B = void 0, zc = "") : (B === void 0 && (B = Kc()), B && typeof zc == "string" && (zc = Wc("")));
528
+ freeze && freeze(e), tu = e;
529
+ }, au = addToSet({}, [
530
530
  ...svg$1,
531
531
  ...svgFilters,
532
532
  ...svgDisallowed
533
- ]), Gl = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), Kl = function(e, t, n) {
534
- return t.namespaceURI === Dl ? e === "svg" : t.namespaceURI === Tl ? e === "svg" && (n === "annotation-xml" || Nl[n]) : !!Wl[e];
535
- }, ql = function(e, t, n) {
536
- return t.namespaceURI === Dl ? e === "math" : t.namespaceURI === El ? e === "math" && Fl[n] : !!Gl[e];
537
- }, Jl = function(e, t, n) {
538
- return t.namespaceURI === El && !Fl[n] || t.namespaceURI === Tl && !Nl[n] ? !1 : !Gl[e] && (Il[e] || !Wl[e]);
539
- }, Yl = function(e) {
533
+ ]), ou = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), su = function(e, t, n) {
534
+ return t.namespaceURI === Hl ? e === "svg" : t.namespaceURI === Bl ? e === "svg" && (n === "annotation-xml" || Jl[n]) : !!au[e];
535
+ }, cu = function(e, t, n) {
536
+ return t.namespaceURI === Hl ? e === "math" : t.namespaceURI === Vl ? e === "math" && Xl[n] : !!ou[e];
537
+ }, lu = function(e, t, n) {
538
+ return t.namespaceURI === Vl && !Xl[n] || t.namespaceURI === Bl && !Jl[n] ? !1 : !ou[e] && (Zl[e] || !au[e]);
539
+ }, uu = function(e) {
540
540
  let t = O(e);
541
541
  (!t || !t.tagName) && (t = {
542
- namespaceURI: Ol,
542
+ namespaceURI: Ul,
543
543
  tagName: "template"
544
544
  });
545
545
  let n = stringToLowerCase(e.tagName), r = stringToLowerCase(t.tagName);
546
- return Al[e.namespaceURI] ? e.namespaceURI === El ? Kl(n, t, r) : e.namespaceURI === Tl ? ql(n, t, r) : e.namespaceURI === Dl ? Jl(n, t, r) : !!(Ll === "application/xhtml+xml" && Al[e.namespaceURI]) : !1;
547
- }, Xl = function(e) {
546
+ return Gl[e.namespaceURI] ? e.namespaceURI === Vl ? su(n, t, r) : e.namespaceURI === Bl ? cu(n, t, r) : e.namespaceURI === Hl ? lu(n, t, r) : !!(Ql === "application/xhtml+xml" && Gl[e.namespaceURI]) : !1;
547
+ }, du = 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
- }, Zl = function(e) {
555
- eu(e);
554
+ }, fu = function(e) {
555
+ hu(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 = Sc(e);
567
+ let n = Lc(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
- }, Ql = function(e, n) {
574
+ }, pu = 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 (ul || dl) try {
587
- Xl(n);
586
+ if (n.removeAttribute(e), e === "is") if (Tl || El) try {
587
+ du(n);
588
588
  } catch {}
589
589
  else try {
590
590
  n.setAttribute(e, "");
591
591
  } catch {}
592
- }, $l = function(e) {
593
- let t = Sc(e);
592
+ }, mu = function(e) {
593
+ let t = Lc(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[zl(i)])) try {
596
+ if (!(typeof i != "string" || Y[eu(i)])) try {
597
597
  e.removeAttribute(i);
598
598
  } catch {}
599
599
  }
600
- }, eu = function(e) {
600
+ }, hu = 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 && $l(e);
604
+ (A ? A(e) : e.nodeType) === NODE_TYPE.element && mu(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
- }, tu = function(e) {
609
- if (!il) return;
608
+ }, gu = function(e) {
609
+ if (!yl) 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 = zl(Cc ? Cc(e) : e.nodeName);
620
+ let t = e, n = eu(Rc ? Rc(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
- }, nu = function(e) {
628
+ }, _u = function(e) {
629
629
  let t = null, r = null;
630
- if (ll) e = "<remove></remove>" + e;
630
+ if (wl) 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
- Ll === "application/xhtml+xml" && Ol === Dl && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
636
- let i = B ? kc(e) : e;
637
- if (Ol === Dl) try {
638
- t = new l().parseFromString(i, Ll);
635
+ Ql === "application/xhtml+xml" && Ul === Hl && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
636
+ let i = B ? Wc(e) : e;
637
+ if (Ul === Hl) try {
638
+ t = new l().parseFromString(i, Ql);
639
639
  } catch {}
640
640
  if (!t || !t.documentElement) {
641
- t = Nc.createDocument(Ol, "template", null);
641
+ t = Jc.createDocument(Ul, "template", null);
642
642
  try {
643
- t.documentElement.innerHTML = kl ? wc : i;
643
+ t.documentElement.innerHTML = Wl ? zc : 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), Ol === Dl ? Ic.call(t, al ? "html" : "body")[0] : al ? t.documentElement : a;
648
- }, ru = function(e) {
647
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Ul === Hl ? Zc.call(t, bl ? "html" : "body")[0] : bl ? t.documentElement : a;
648
+ }, vu = function(e) {
649
649
  let t = R ? R(e) : e.ownerDocument;
650
- return Pc.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
651
- }, iu = function(e) {
652
- return e = stringReplace(e, Rc, " "), e = stringReplace(e, zc, " "), e = stringReplace(e, Bc, " "), e;
653
- }, au = function(e) {
650
+ return Yc.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
651
+ }, yu = function(e) {
652
+ return e = stringReplace(e, $c, " "), e = stringReplace(e, el, " "), e = stringReplace(e, tl, " "), e;
653
+ }, bu = function(e) {
654
654
  e.normalize();
655
- let t = R ? R(e) : e.ownerDocument, n = Pc.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 = iu(r.data), r = n.nextNode();
655
+ let t = R ? R(e) : e.ownerDocument, n = Yc.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 = yu(r.data), r = n.nextNode();
657
657
  let i = e.querySelectorAll?.call(e, "template");
658
658
  i && arrayForEach(i, (e) => {
659
- su(e.content) && au(e.content);
659
+ Su(e.content) && bu(e.content);
660
660
  });
661
- }, ou = function(e) {
662
- let t = Cc ? Cc(e) : null;
663
- return typeof t != "string" || zl(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== Sc(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
- }, su = function(e) {
661
+ }, xu = function(e) {
662
+ let t = Rc ? Rc(e) : null;
663
+ return typeof t != "string" || eu(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== Lc(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
+ }, Su = 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
- }, cu = function(e) {
671
+ }, Cu = 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 lu(e, n, r) {
679
+ function wu(e, n, r) {
680
680
  e.length !== 0 && arrayForEach(e, (e) => {
681
- e.call(t, n, r, Bl);
681
+ e.call(t, n, r, tu);
682
682
  });
683
683
  }
684
- let uu = function(e, t) {
685
- return !!(il && e.hasChildNodes() && !cu(e.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, e.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, e.innerHTML) || il && e.namespaceURI === Dl && t === "style" && cu(e.firstElementChild) || e.nodeType === NODE_TYPE.processingInstruction || il && e.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, e.data));
686
- }, du = function(e, t, n) {
687
- if (!Xc[t] && gu(t) && (Yc.tagNameCheck instanceof RegExp && regExpTest(Yc.tagNameCheck, t) || Yc.tagNameCheck instanceof Function && Yc.tagNameCheck(t))) return !1;
688
- if (gl && !yl[t]) {
684
+ let Tu = function(e, t) {
685
+ return !!(yl && e.hasChildNodes() && !Cu(e.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, e.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, e.innerHTML) || yl && e.namespaceURI === Hl && t === "style" && Cu(e.firstElementChild) || e.nodeType === NODE_TYPE.processingInstruction || yl && e.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, e.data));
686
+ }, Eu = function(e, t, n) {
687
+ if (!dl[t] && ju(t) && (ul.tagNameCheck instanceof RegExp && regExpTest(ul.tagNameCheck, t) || ul.tagNameCheck instanceof Function && ul.tagNameCheck(t))) return !1;
688
+ if (jl && !Pl[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, bc(e));
694
+ t.insertBefore(i, Fc(e));
695
695
  }
696
696
  }
697
697
  }
698
- return Xl(e), !0;
699
- }, fu = function(e, t, n, r) {
698
+ return du(e), !0;
699
+ }, Du = function(e, t, n, r) {
700
700
  return e.length === 0 ? t : t === n || t === r ? clone(t) : t;
701
- }, pu = function(e, n) {
702
- if (lu(V.beforeSanitizeElements, e, null), e !== n && O(e) === null) return _l && eu(e), !0;
703
- if (ou(e)) return Xl(e), !0;
704
- let r = zl(Cc ? Cc(e) : e.nodeName);
705
- if (H = fu(V.uponSanitizeElement, H, qc, sl), lu(V.uponSanitizeElement, e, {
701
+ }, Ou = function(e, n) {
702
+ if (wu(V.beforeSanitizeElements, e, null), e !== n && O(e) === null) return Ml && hu(e), !0;
703
+ if (xu(e)) return du(e), !0;
704
+ let r = eu(Rc ? Rc(e) : e.nodeName);
705
+ if (H = Du(V.uponSanitizeElement, H, cl, Sl), wu(V.uponSanitizeElement, e, {
706
706
  tagName: r,
707
707
  allowedTags: H
708
- }), e !== n && O(e) === null) return _l && eu(e), !0;
709
- if (uu(e, r)) return Xl(e), !0;
710
- if (Xc[r] || !(Qc.tagCheck instanceof Function && Qc.tagCheck(r)) && !H[r]) {
711
- let t = du(e, r, n);
712
- return t === !1 && lu(V.afterSanitizeElements, e, null), t;
708
+ }), e !== n && O(e) === null) return Ml && hu(e), !0;
709
+ if (Tu(e, r)) return du(e), !0;
710
+ if (dl[r] || !(pl.tagCheck instanceof Function && pl.tagCheck(r)) && !H[r]) {
711
+ let t = Eu(e, r, n);
712
+ return t === !1 && wu(V.afterSanitizeElements, e, null), t;
713
713
  }
714
- if ((A ? A(e) : e.nodeType) === NODE_TYPE.element && !Yl(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(FALLBACK_TAG_CLOSE, e.innerHTML)) return Xl(e), !0;
715
- if (rl && e.nodeType === NODE_TYPE.text) {
716
- let n = iu(e.textContent);
714
+ if ((A ? A(e) : e.nodeType) === NODE_TYPE.element && !uu(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(FALLBACK_TAG_CLOSE, e.innerHTML)) return du(e), !0;
715
+ if (vl && e.nodeType === NODE_TYPE.text) {
716
+ let n = yu(e.textContent);
717
717
  e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n);
718
718
  }
719
- return lu(V.afterSanitizeElements, e, null), !1;
720
- }, mu = function(e, t, r) {
721
- if (Zc[t] || il && t === "patchsrc" || il && t === "for" && e !== "label" && e !== "output" || pl && (t === "id" || t === "name") && (r in n || r in Vl)) return !1;
722
- let i = Y[t] || Qc.attributeCheck instanceof Function && Qc.attributeCheck(t, e);
723
- if (!(el && regExpTest(Vc, t)) && !($c && regExpTest(Hc, t))) {
719
+ return wu(V.afterSanitizeElements, e, null), !1;
720
+ }, ku = function(e, t, r) {
721
+ if (fl[t] || yl && t === "patchsrc" || yl && t === "for" && e !== "label" && e !== "output" || Ol && (t === "id" || t === "name") && (r in n || r in nu)) return !1;
722
+ let i = Y[t] || pl.attributeCheck instanceof Function && pl.attributeCheck(t, e);
723
+ if (!(hl && regExpTest(nl, t)) && !(ml && regExpTest(rl, t))) {
724
724
  if (i) {
725
- if (!Cl[t] && !regExpTest(Kc, stringReplace(r, Wc, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && xl[e]) && !(tl && !regExpTest(Uc, stringReplace(r, Wc, ""))) && r) return !1;
726
- } else if (!(gu(e) && (Yc.tagNameCheck instanceof RegExp && regExpTest(Yc.tagNameCheck, e) || Yc.tagNameCheck instanceof Function && Yc.tagNameCheck(e)) && (Yc.attributeNameCheck instanceof RegExp && regExpTest(Yc.attributeNameCheck, t) || Yc.attributeNameCheck instanceof Function && Yc.attributeNameCheck(t, e)) || t === "is" && Yc.allowCustomizedBuiltInElements && (Yc.tagNameCheck instanceof RegExp && regExpTest(Yc.tagNameCheck, r) || Yc.tagNameCheck instanceof Function && Yc.tagNameCheck(r)))) return !1;
725
+ if (!Rl[t] && !regExpTest(sl, stringReplace(r, al, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && Il[e]) && !(gl && !regExpTest(il, stringReplace(r, al, ""))) && r) return !1;
726
+ } else if (!(ju(e) && (ul.tagNameCheck instanceof RegExp && regExpTest(ul.tagNameCheck, e) || ul.tagNameCheck instanceof Function && ul.tagNameCheck(e)) && (ul.attributeNameCheck instanceof RegExp && regExpTest(ul.attributeNameCheck, t) || ul.attributeNameCheck instanceof Function && ul.attributeNameCheck(t, e)) || t === "is" && ul.allowCustomizedBuiltInElements && (ul.tagNameCheck instanceof RegExp && regExpTest(ul.tagNameCheck, r) || ul.tagNameCheck instanceof Function && ul.tagNameCheck(r)))) return !1;
727
727
  }
728
728
  return !0;
729
- }, hu = addToSet({}, [
729
+ }, Au = 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
- ]), gu = function(e) {
739
- return !hu[stringToLowerCase(e)] && regExpTest(Gc, e);
740
- }, _u = function(e, t, n, r) {
738
+ ]), ju = function(e) {
739
+ return !Au[stringToLowerCase(e)] && regExpTest(ol, e);
740
+ }, Mu = 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 kc(r);
743
- case "TrustedScriptURL": return Ac(r);
742
+ case "TrustedHTML": return Wc(r);
743
+ case "TrustedScriptURL": return Gc(r);
744
744
  }
745
745
  return r;
746
- }, vu = function(e, n, r, i) {
746
+ }, Nu = function(e, n, r, i) {
747
747
  try {
748
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), ou(e) ? Xl(e) : arrayPop(t.removed);
748
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), xu(e) ? du(e) : arrayPop(t.removed);
749
749
  } catch {
750
- Ql(n, e);
750
+ pu(n, e);
751
751
  }
752
- }, yu = function(e) {
753
- lu(V.beforeSanitizeAttributes, e, null);
752
+ }, Pu = function(e) {
753
+ wu(V.beforeSanitizeAttributes, e, null);
754
754
  let t = e.attributes;
755
- if (!t || ou(e)) return;
756
- Y = fu(V.uponSanitizeAttribute, Y, Jc, cl);
755
+ if (!t || xu(e)) return;
756
+ Y = Du(V.uponSanitizeAttribute, Y, ll, Cl);
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 = zl(e.nodeName);
763
+ }, r = t.length, i = eu(e.nodeName);
764
764
  for (; r--;) {
765
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = zl(o), u = c, f = o === "value" ? u : stringTrim(u);
766
- if (n.attrName = l, n.attrValue = f, n.keepAttr = !0, n.forceKeepAttr = void 0, lu(V.uponSanitizeAttribute, e, n), f = n.attrValue, ml && (l === "id" || l === "name") && stringIndexOf(f, hl) !== 0 && (Ql(o, e), f = hl + f), il && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
767
- Ql(o, e);
765
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = eu(o), u = c, f = o === "value" ? u : stringTrim(u);
766
+ if (n.attrName = l, n.attrValue = f, n.keepAttr = !0, n.forceKeepAttr = void 0, wu(V.uponSanitizeAttribute, e, n), f = n.attrValue, kl && (l === "id" || l === "name") && stringIndexOf(f, Al) !== 0 && (pu(o, e), f = Al + f), yl && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
767
+ pu(o, e);
768
768
  continue;
769
769
  }
770
770
  if (l === "attributename" && stringMatch(f, "href")) {
771
- Ql(o, e);
771
+ pu(o, e);
772
772
  continue;
773
773
  }
774
774
  if (!n.forceKeepAttr) {
775
775
  if (!n.keepAttr) {
776
- Ql(o, e);
776
+ pu(o, e);
777
777
  continue;
778
778
  }
779
- if (!nl && regExpTest(SELF_CLOSING_TAG, f)) {
780
- Ql(o, e);
779
+ if (!_l && regExpTest(SELF_CLOSING_TAG, f)) {
780
+ pu(o, e);
781
781
  continue;
782
782
  }
783
- if (rl && (f = iu(f)), !mu(i, l, f)) {
784
- Ql(o, e);
783
+ if (vl && (f = yu(f)), !ku(i, l, f)) {
784
+ pu(o, e);
785
785
  continue;
786
786
  }
787
- f = _u(i, l, s, f), f !== u && vu(e, o, s, f);
787
+ f = Mu(i, l, s, f), f !== u && Nu(e, o, s, f);
788
788
  }
789
789
  }
790
- lu(V.afterSanitizeAttributes, e, null);
791
- }, bu = function(e) {
792
- let t = null, n = ru(e);
793
- for (lu(V.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (lu(V.uponSanitizeShadowNode, t, null), pu(t, e), yu(t), su(t.content) && bu(t.content), (A ? A(t) : t.nodeType) === NODE_TYPE.element) {
794
- let e = xc(t);
795
- su(e) && (xu(e), bu(e));
790
+ wu(V.afterSanitizeAttributes, e, null);
791
+ }, Fu = function(e) {
792
+ let t = null, n = vu(e);
793
+ for (wu(V.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (wu(V.uponSanitizeShadowNode, t, null), Ou(t, e), Pu(t), Su(t.content) && Fu(t.content), (A ? A(t) : t.nodeType) === NODE_TYPE.element) {
794
+ let e = Ic(t);
795
+ Su(e) && (Iu(e), Fu(e));
796
796
  }
797
- lu(V.afterSanitizeShadowDOM, e, null);
798
- }, xu = function(e) {
797
+ wu(V.afterSanitizeShadowDOM, e, null);
798
+ }, Iu = 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
- bu(e.shadow);
806
+ Fu(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 = Cc ? Cc(n) : null;
816
- if (typeof e == "string" && zl(e) === "template") {
815
+ let e = Rc ? Rc(n) : null;
816
+ if (typeof e == "string" && eu(e) === "template") {
817
817
  let e = n.content;
818
- su(e) && t.push({
818
+ Su(e) && t.push({
819
819
  node: e,
820
820
  shadow: null
821
821
  });
822
822
  }
823
823
  }
824
824
  if (r) {
825
- let e = xc(n);
826
- su(e) && t.push({
825
+ let e = Ic(n);
826
+ Su(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 (kl = !e, kl && (e = "<!-->"), typeof e != "string" && !cu(e) && (e = stringifyValue(e), typeof e != "string")) throw typeErrorCreate("dirty is not a string, aborting");
838
+ if (Wl = !e, Wl && (e = "<!-->"), typeof e != "string" && !Cu(e) && (e = stringifyValue(e), typeof e != "string")) throw typeErrorCreate("dirty is not a string, aborting");
839
839
  if (!t.isSupported) return e;
840
- ol ? (H = sl, Y = cl) : Ul(n), (V.uponSanitizeElement.length > 0 || V.uponSanitizeAttribute.length > 0) && (H = clone(H)), V.uponSanitizeAttribute.length > 0 && (Y = clone(Y)), t.removed = [];
841
- let c = _l && typeof e != "string" && cu(e);
840
+ xl ? (H = Sl, Y = Cl) : iu(n), (V.uponSanitizeElement.length > 0 || V.uponSanitizeAttribute.length > 0) && (H = clone(H)), V.uponSanitizeAttribute.length > 0 && (Y = clone(Y)), t.removed = [];
841
+ let c = Ml && typeof e != "string" && Cu(e);
842
842
  if (c) {
843
- tu(e);
844
- let t = Cc ? Cc(e) : e.nodeName;
843
+ gu(e);
844
+ let t = Rc ? Rc(e) : e.nodeName;
845
845
  if (typeof t == "string") {
846
- let n = zl(t);
847
- if (!H[n] || Xc[n]) throw Zl(e), typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
846
+ let n = eu(t);
847
+ if (!H[n] || dl[n]) throw fu(e), typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
848
848
  }
849
- if (ou(e)) throw Zl(e), typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
849
+ if (xu(e)) throw fu(e), typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
850
850
  try {
851
- xu(e);
851
+ Iu(e);
852
852
  } catch (t) {
853
- throw Zl(e), t;
853
+ throw fu(e), t;
854
854
  }
855
- } else if (cu(e)) i = nu("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === NODE_TYPE.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), xu(a);
855
+ } else if (Cu(e)) i = _u("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === NODE_TYPE.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Iu(a);
856
856
  else {
857
- if (!ul && !rl && !al && e.indexOf("<") === -1) return B && fl ? kc(e) : e;
858
- if (i = nu(e), !i) return ul ? null : fl ? wc : "";
857
+ if (!Tl && !vl && !bl && e.indexOf("<") === -1) return B && Dl ? Wc(e) : e;
858
+ if (i = _u(e), !i) return Tl ? null : Dl ? zc : "";
859
859
  }
860
- i && ll && Xl(i.firstChild);
860
+ i && wl && du(i.firstChild);
861
861
  let l = c ? e : i;
862
862
  try {
863
- let e = ru(l);
864
- for (; o = e.nextNode();) pu(o, l), yu(o), su(o.content) && bu(o.content);
863
+ let e = vu(l);
864
+ for (; o = e.nextNode();) Ou(o, l), Pu(o), Su(o.content) && Fu(o.content);
865
865
  } catch (n) {
866
- throw c && (Zl(e), arrayForEach(t.removed, (e) => {
867
- e.element && eu(e.element);
866
+ throw c && (fu(e), arrayForEach(t.removed, (e) => {
867
+ e.element && hu(e.element);
868
868
  })), n;
869
869
  }
870
870
  if (c) return arrayForEach(t.removed, (e) => {
871
- e.element && eu(e.element);
872
- }), rl && au(e), e;
873
- if (ul) {
874
- if (rl && au(i), dl) for (s = Fc.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
871
+ e.element && hu(e.element);
872
+ }), vl && bu(e), e;
873
+ if (Tl) {
874
+ if (vl && bu(i), El) for (s = Xc.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
875
875
  else s = i;
876
- return (Y.shadowroot || Y.shadowrootmode) && (s = Lc.call(r, s, !0)), s;
876
+ return (Y.shadowroot || Y.shadowrootmode) && (s = Qc.call(r, s, !0)), s;
877
877
  }
878
- let u = al ? i.outerHTML : i.innerHTML;
879
- return al && 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), rl && (u = iu(u)), B && fl ? kc(u) : u;
878
+ let u = bl ? i.outerHTML : i.innerHTML;
879
+ return bl && 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), vl && (u = yu(u)), B && Dl ? Wc(u) : u;
880
880
  }, t.setConfig = function() {
881
- Ul(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), ol = !0, sl = H, cl = Y;
881
+ iu(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), xl = !0, Sl = H, Cl = Y;
882
882
  }, t.clearConfig = function() {
883
- Bl = null, ol = !1, sl = null, cl = null, B = Tc, wc = "";
883
+ tu = null, xl = !1, Sl = null, Cl = null, B = Bc, zc = "";
884
884
  }, t.isValidAttribute = function(e, t, n) {
885
- return Bl || Ul({}), mu(zl(e), zl(t), n);
885
+ return tu || iu({}), ku(eu(e), eu(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, Cc] = useState(!1), R = g ? u : O, B = useCallback((e) => {
21596
- e !== R && (g || Cc(e), p?.(e));
21595
+ let g = u !== void 0, [O, Rc] = useState(!1), R = g ? u : O, B = useCallback((e) => {
21596
+ e !== R && (g || Rc(e), p?.(e));
21597
21597
  }, [
21598
21598
  R,
21599
21599
  g,
21600
21600
  p
21601
- ]), wc = useRef(null), Tc = useRef(null), Ec = useRef(null), [Dc, Oc] = useState(null), kc = useCallback(() => {
21602
- if (!wc.current || !Tc.current) return;
21603
- let e = wc.current.getBoundingClientRect(), t = Tc.current.getBoundingClientRect(), o = e.left;
21601
+ ]), zc = useRef(null), Bc = useRef(null), Vc = useRef(null), [Hc, Uc] = useState(null), Wc = useCallback(() => {
21602
+ if (!zc.current || !Bc.current) return;
21603
+ let e = zc.current.getBoundingClientRect(), t = Bc.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(() => Oc({
21606
+ s = r === "bottom" ? e.bottom + a : e.top - t.height + a, queueMicrotask(() => Uc({
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 && kc();
21618
- }, [R, kc]), useEffect(() => {
21617
+ R && Wc();
21618
+ }, [R, Wc]), useEffect(() => {
21619
21619
  if (!R) return;
21620
- let e = () => kc();
21620
+ let e = () => Wc();
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, kc]);
21625
- let Ac = useCallback(() => {
21626
- Ec.current &&= (clearTimeout(Ec.current), null), B(!0);
21627
- }, [B]), jc = useCallback(() => {
21628
- Ec.current = window.setTimeout(() => {
21624
+ }, [R, Wc]);
21625
+ let Gc = useCallback(() => {
21626
+ Vc.current &&= (clearTimeout(Vc.current), null), B(!0);
21627
+ }, [B]), Kc = useCallback(() => {
21628
+ Vc.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
- wc.current?.contains(t) || Tc.current?.contains(t) || B(!1);
21635
+ zc.current?.contains(t) || Bc.current?.contains(t) || B(!1);
21636
21636
  }
21637
21637
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
21638
21638
  }, [B]), useEffect(() => () => {
21639
- Ec.current && clearTimeout(Ec.current);
21639
+ Vc.current && clearTimeout(Vc.current);
21640
21640
  }, []), /* @__PURE__ */ jsxs(DropdownContext.Provider, {
21641
21641
  value: {
21642
21642
  close: () => B(!1),
21643
- open: Ac
21643
+ open: Gc
21644
21644
  },
21645
21645
  children: [/* @__PURE__ */ jsx("div", {
21646
- ref: wc,
21646
+ ref: zc,
21647
21647
  className: "inline-flex",
21648
- onMouseEnter: c ? Ac : void 0,
21649
- onMouseLeave: c ? jc : void 0,
21648
+ onMouseEnter: c ? Gc : void 0,
21649
+ onMouseLeave: c ? Kc : 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: Tc,
21656
- onMouseEnter: c ? Ac : void 0,
21657
- onMouseLeave: c ? jc : void 0,
21655
+ ref: Bc,
21656
+ onMouseEnter: c ? Gc : void 0,
21657
+ onMouseLeave: c ? Kc : void 0,
21658
21658
  style: {
21659
21659
  position: "fixed",
21660
- top: Dc?.top ?? 0,
21661
- left: Dc?.left ?? 0,
21662
- visibility: Dc ? "visible" : "hidden",
21660
+ top: Hc?.top ?? 0,
21661
+ left: Hc?.left ?? 0,
21662
+ visibility: Hc ? "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), Cc = () => {
21743
+ let a = useRef(null), o = useRef(null), s = useRef(null), [c, u] = useState(!1), [p, g] = useState(null), Rc = () => {
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: Cc,
21762
+ onMouseEnter: Rc,
21763
21763
  onMouseLeave: R,
21764
- onFocus: Cc,
21764
+ onFocus: Rc,
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, Sc = h?.index ?? null, A = useCallback((e) => {
23650
+ ]), g = h?.step ?? null, Lc = 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
- }, []), Cc = useCallback(() => {
23656
+ }, []), Rc = 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: Sc,
23669
+ currentStepIndex: Lc,
23670
23670
  dismissedStepIds: o,
23671
23671
  actions: useMemo(() => ({
23672
- dismissCurrentStep: Cc,
23672
+ dismissCurrentStep: Rc,
23673
23673
  dismissStep: A,
23674
23674
  skipAll: R,
23675
23675
  close: R
23676
23676
  }), [
23677
- Cc,
23677
+ Rc,
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 Cc = useSyncExternalStore(subscribeNoop$1, getClientSnapshot$1, getServerSnapshot$1), R = useCallback((e) => {
23890
+ let Rc = 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 wc = useCallback((e) => {
23918
+ let zc = 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]), Tc = useCallback((e) => {
23923
+ }, [p]), Bc = useCallback((e) => {
23924
23924
  a.current.set(e, "manual"), toastStore.remove(e);
23925
23925
  }, []);
23926
- if (!Cc) return null;
23927
- let Ec = groupByPosition(n);
23928
- return createPortal(/* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(Ec).map(([e, t]) => {
23926
+ if (!Rc) return null;
23927
+ let Vc = groupByPosition(n);
23928
+ return createPortal(/* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(Vc).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: wc,
23938
- onClose: Tc,
23937
+ onExitComplete: zc,
23938
+ onClose: Bc,
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: wc,
23947
- onClose: Tc,
23946
+ onExitComplete: zc,
23947
+ onClose: Bc,
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
- }, Cc = [{
24243
+ }, Rc = [{
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: Cc.map(({ value: e, tooltip: t, icon: n }) => {
24287
+ children: Rc.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), [Cc, R] = useState(!1), [B, wc] = useState(!1), [Tc, Ec] = useState(l), [Dc, Oc] = useState(null), kc = c ?? Tc, Ac = s && (Cc || B || kc), jc = typeof n == "number" && n > 0 && (o || a === "active");
24550
- function Mc(e) {
24551
- c === void 0 && Ec(e), u?.(e);
24549
+ }), A = useRef(null), [Rc, R] = useState(!1), [B, zc] = useState(!1), [Bc, Vc] = useState(l), [Hc, Uc] = useState(null), Wc = c ?? Bc, Gc = s && (Rc || B || Wc), Kc = typeof n == "number" && n > 0 && (o || a === "active");
24550
+ function qc(e) {
24551
+ c === void 0 && Vc(e), u?.(e);
24552
24552
  }
24553
24553
  return useLayoutEffect(() => {
24554
- if (!Ac || !A.current) return;
24554
+ if (!Gc || !A.current) return;
24555
24555
  function e() {
24556
24556
  let e = A.current?.getBoundingClientRect();
24557
- e && Oc({
24557
+ e && Uc({
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
- }, [Ac]), /* @__PURE__ */ jsxs(Button, {
24565
+ }, [Gc]), /* @__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
- }), Ac && Dc && typeof document < "u" && ToggleControlPortal({
24577
- isPressed: kc,
24576
+ }), Gc && Hc && typeof document < "u" && ToggleControlPortal({
24577
+ isPressed: Wc,
24578
24578
  isPortalHovered: B,
24579
- portalPosition: Dc,
24580
- onMouseEnter: () => wc(!0),
24581
- onMouseLeave: () => wc(!1),
24582
- onToggle: () => Mc(!kc)
24579
+ portalPosition: Hc,
24580
+ onMouseEnter: () => zc(!0),
24581
+ onMouseLeave: () => zc(!1),
24582
+ onToggle: () => qc(!Wc)
24583
24583
  })]
24584
24584
  }), /* @__PURE__ */ jsxs("div", {
24585
24585
  className: cn(O.label(), p?.label),
24586
- children: [/* @__PURE__ */ jsx("span", { children: t }), jc && /* @__PURE__ */ jsxs("span", {
24586
+ children: [/* @__PURE__ */ jsx("span", { children: t }), Kc && /* @__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 Cc(t) {
24713
+ function Rc(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 wc = getWeekdays();
24748
+ let zc = 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: wc.map((e) => /* @__PURE__ */ jsx("div", {
24785
+ children: zc.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), bc = u, g = s;
24776
- e === "range" && u && !f && s && !isDateBefore(s, u) ? (bc = u, g = s) : (bc = null, g = null);
24777
- let O = e === "range" && (isDateInRange(i, u, f) || isDateInRange(i, bc, g)), Sc = l || p || h;
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), Fc = u, g = s;
24794
+ e === "range" && u && !f && s && !isDateBefore(s, u) ? (Fc = u, g = s) : (Fc = null, g = null);
24795
+ let O = e === "range" && (isDateInRange(i, u, f) || isDateInRange(i, Fc, g)), Lc = l || p || h;
24778
24796
  return /* @__PURE__ */ jsx(Button, {
24779
24797
  type: "button",
24780
- onClick: () => Cc(i),
24798
+ onClick: () => Rc(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": Sc || void 0,
24807
+ "aria-selected": Lc || 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", Sc && "font-semibold bg-primary-500 text-white-variant-1 hover:bg-primary-500", O && !Sc && "font-normal bg-primary-500/20 text-neutral-900 hover:bg-primary-500/30", o && !Sc && !O && "font-bold border border-primary-500 bg-primary-500/15 hover:bg-primary-500 hover:text-white", !Sc && !O && (a ? "text-neutral-900 hover:bg-neutral-300" : "text-neutral-600 hover:bg-neutral-200")),
24809
+ className: cn("rounded flex h-[26px] w-[26px] items-center justify-center text-[9px] transition-colors", Lc && "font-semibold bg-primary-500 text-white-variant-1 hover:bg-primary-500", O && !Lc && "font-normal bg-primary-500/20 text-neutral-900 hover:bg-primary-500/30", o && !Lc && !O && "font-bold border border-primary-500 bg-primary-500/15 hover:bg-primary-500 hover:text-white", !Lc && !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 Sc() {
24877
+ function Lc() {
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: Sc
24888
+ onClear: Lc
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: bc = {}, density: g = "normal", className: O, style: A, isPriority: Cc, isDone: R }) {
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: Fc = {}, density: g = "normal", className: O, style: A, isPriority: Rc, isDone: R }) {
25085
25103
  return /* @__PURE__ */ jsx(Card, {
25086
25104
  as: Pressable,
25087
25105
  onPress: u,
25088
25106
  className: cn(eventCardStyles({
25089
- tone: Cc ? "priority" : R ? "done" : "default",
25107
+ tone: Rc ? "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: bc,
25149
+ actions: Fc,
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: bc }),
25188
+ /* @__PURE__ */ jsx(EventActionsList, { actions: Fc }),
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, bc = p?.label ?? null;
25433
+ let { fire: f, insight: p, link: h } = l, Fc = p?.label ?? null;
25416
25434
  return /* @__PURE__ */ jsxs(Pressable, {
25417
25435
  onPress: c,
25418
25436
  className: cn(eventSummaryCardStyles({
25419
- tone: f.active ? "priority" : insightLabelVisible(bc) ? "insight" : "default",
25437
+ tone: f.active ? "priority" : insightLabelVisible(Fc) ? "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(bc) && /* @__PURE__ */ jsx(EventSummaryInsightChip, { label: bc }),
25461
+ insightLabelVisible(Fc) && /* @__PURE__ */ jsx(EventSummaryInsightChip, { label: Fc }),
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
- })), bc = /* @__PURE__ */ new Set(), g = new Set(c.reduce((e, t) => {
25733
+ })), Fc = /* @__PURE__ */ new Set(), g = new Set(c.reduce((e, t) => {
25716
25734
  let n = t.insightBadgeId ?? t.id;
25717
- return bc.has(n) || (bc.add(n), e.push(t.id)), e;
25718
- }, [])), O = useRef(null), A = useRef(null), Cc = useRef(!1);
25735
+ return Fc.has(n) || (Fc.add(n), e.push(t.id)), e;
25736
+ }, [])), O = useRef(null), A = useRef(null), Rc = useRef(!1);
25719
25737
  useEffect(() => {
25720
- if (e.length === 0 || Cc.current) return;
25721
- Cc.current = !0;
25738
+ if (e.length === 0 || Rc.current) return;
25739
+ Rc.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: bc, related: g }, className: O }) {
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: Fc, 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: bc,
25875
+ location: Fc,
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
- }), bc = wrapArrow(/* @__PURE__ */ jsx(OnboardingCardArrow, {
26671
+ }), Fc = wrapArrow(/* @__PURE__ */ jsx(OnboardingCardArrow, {
26654
26672
  layout: o,
26655
26673
  placement: s
26656
- }), c, l), g = s === "before" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [bc, h] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [h, bc] });
26674
+ }), c, l), g = s === "before" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [Fc, h] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [h, Fc] });
26657
26675
  return o === "horizontal" ? /* @__PURE__ */ jsx("div", {
26658
26676
  className: cn("flex items-center", u),
26659
26677
  children: g
@@ -26896,6 +26914,53 @@ 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
+ }
26952
+ var RESPOND_STYLE = "text-pulse-card-tag-respond-text border-pulse-card-tag-respond-border", DECIDE_STYLE = "text-pulse-card-tag-decide-text border-pulse-card-tag-decide-border", NEUTRAL_STYLE = "border-neutral-400 text-neutral-700", ACTION_STYLES = new Map([["respond", RESPOND_STYLE], ["decide", DECIDE_STYLE]]), LEGACY_LABELS = new Map([
26953
+ ["respond", "Respond"],
26954
+ ["decide", "Decide"],
26955
+ ["observe", "Observe"]
26956
+ ]);
26957
+ function getPulseSignalMove(e) {
26958
+ let t = e.lastIndexOf(": "), n = (t === -1 ? e : e.slice(t + 2)).trim().toLowerCase();
26959
+ return {
26960
+ label: LEGACY_LABELS.get(e) ?? e,
26961
+ style: ACTION_STYLES.get(n) ?? NEUTRAL_STYLE
26962
+ };
26963
+ }
26899
26964
  var SEVERITY = {
26900
26965
  fire: {
26901
26966
  icon: FireFillIcon,
@@ -26909,22 +26974,9 @@ var SEVERITY = {
26909
26974
  icon: EyeFillIcon,
26910
26975
  text: "text-neutral-700-variant-1"
26911
26976
  }
26912
- }, MOVE = {
26913
- respond: {
26914
- label: "Respond",
26915
- style: "text-pulse-card-tag-respond-text border-pulse-card-tag-respond-border"
26916
- },
26917
- decide: {
26918
- label: "Decide",
26919
- style: "text-pulse-card-tag-decide-text border-pulse-card-tag-decide-border"
26920
- },
26921
- observe: {
26922
- label: "Observe",
26923
- style: "border-neutral-400 text-neutral-700"
26924
- }
26925
26977
  };
26926
26978
  function PulseSignalStatus({ timeText: e, severity: t, slaLabel: n, move: r, keepSize: i = !1, className: a }) {
26927
- let { icon: o, text: s } = SEVERITY[t];
26979
+ let { icon: o, text: s } = SEVERITY[t], c = r ? getPulseSignalMove(r) : void 0;
26928
26980
  return /* @__PURE__ */ jsxs("div", {
26929
26981
  className: cn("gap-1.5 flex items-center", a),
26930
26982
  children: [
@@ -26939,9 +26991,9 @@ function PulseSignalStatus({ timeText: e, severity: t, slaLabel: n, move: r, kee
26939
26991
  className: s
26940
26992
  }), n]
26941
26993
  }),
26942
- r && /* @__PURE__ */ jsx("span", {
26943
- className: cn("h-4 rounded px-1.5 font-semibold inline-flex items-center border text-[10px]", i && "shrink-0", MOVE[r].style),
26944
- children: MOVE[r].label
26994
+ c && /* @__PURE__ */ jsx("span", {
26995
+ className: cn("h-4 rounded px-1.5 font-semibold inline-flex items-center border text-[10px]", i && "shrink-0", c.style),
26996
+ children: c.label
26945
26997
  })
26946
26998
  ]
26947
26999
  });
@@ -26992,7 +27044,7 @@ var pulseSignalCardStyles = tv({
26992
27044
  }
26993
27045
  ]
26994
27046
  });
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: bc, className: g }) {
27047
+ 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: Fc, className: g }) {
26996
27048
  return /* @__PURE__ */ jsxs(Pressable, {
26997
27049
  onPress: h,
26998
27050
  className: cn(pulseSignalCardStyles({
@@ -27005,14 +27057,14 @@ function PulseSignalCard({ timeText: e, severity: t, slaLabel: n, move: r, subje
27005
27057
  children: [/* @__PURE__ */ jsx("span", {
27006
27058
  className: "gap-1 flex items-center",
27007
27059
  children: u
27008
- }), bc && /* @__PURE__ */ jsx(InfoTooltip, {
27060
+ }), Fc && /* @__PURE__ */ jsx(InfoTooltip, {
27009
27061
  content: "Open thread",
27010
27062
  position: "top",
27011
27063
  children: /* @__PURE__ */ jsx("button", {
27012
27064
  type: "button",
27013
27065
  "aria-label": "Open thread",
27014
27066
  onClick: (e) => {
27015
- e.stopPropagation(), bc();
27067
+ e.stopPropagation(), Fc();
27016
27068
  },
27017
27069
  onKeyDown: (e) => e.stopPropagation(),
27018
27070
  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 +27422,14 @@ function SourceIcons({ sourceTypes: e, sourceLink: t, onOpenSource: n, sourceToo
27370
27422
  })]
27371
27423
  });
27372
27424
  }
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: bc = !1, onClick: g, className: O }) {
27425
+ 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: Fc = !1, onClick: g, className: O }) {
27374
27426
  let A = SEVERITY_CONFIG$1[i];
27375
27427
  return /* @__PURE__ */ jsxs(Pressable, {
27376
27428
  onPress: g,
27377
27429
  className: cn(signalCardStyles({
27378
27430
  layout: h,
27379
27431
  status: a,
27380
- selected: bc
27432
+ selected: Fc
27381
27433
  }), O),
27382
27434
  children: [
27383
27435
  /* @__PURE__ */ jsx(SourceIcons, {
@@ -27686,8 +27738,8 @@ function GuardrailTooltip({ text: e }) {
27686
27738
  })
27687
27739
  });
27688
27740
  }
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: Cc, nextStep: R, actionRationale: B, rankingRationale: wc, attentionRationale: Tc, dismissOptions: Ec, onClose: Dc, onResolve: Oc, onDismiss: kc, className: Ac, ...jc }) {
27690
- let Mc = SEVERITY_CONFIG[t], [Nc, Pc] = useState(!1), [Fc, Ic] = useState(null), [Lc, V] = useState(!1), [zc, Bc] = useState(!1), Vc = () => {
27741
+ 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: Rc, nextStep: R, actionRationale: B, rankingRationale: zc, attentionRationale: Bc, dismissOptions: Vc, onClose: Hc, onResolve: Uc, onDismiss: Wc, className: Gc, ...Kc }) {
27742
+ let qc = SEVERITY_CONFIG[t], [Jc, Yc] = useState(!1), [Xc, Zc] = useState(null), [Qc, V] = useState(!1), [el, tl] = useState(!1), nl = () => {
27691
27743
  let t = [r, n].filter(Boolean).join(" · "), i = [
27692
27744
  e,
27693
27745
  "",
@@ -27697,12 +27749,12 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27697
27749
  ...t ? ["", t] : []
27698
27750
  ];
27699
27751
  navigator.clipboard.writeText(i.join("\n")).catch(() => {}), V(!0), setTimeout(() => V(!1), 2e3);
27700
- }, Hc = () => {
27701
- kc?.(Fc ?? void 0), Pc(!1), Ic(null);
27752
+ }, rl = () => {
27753
+ Wc?.(Xc ?? void 0), Yc(!1), Zc(null);
27702
27754
  };
27703
27755
  return /* @__PURE__ */ jsxs("div", {
27704
- className: cn("flex h-full flex-col overflow-y-auto bg-white-variant-8", STATUS_BADGE_STYLES[a].accentBar, Ac),
27705
- ...jc,
27756
+ className: cn("flex h-full flex-col overflow-y-auto bg-white-variant-8", STATUS_BADGE_STYLES[a].accentBar, Gc),
27757
+ ...Kc,
27706
27758
  children: [/* @__PURE__ */ jsxs("div", {
27707
27759
  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
27760
  children: [/* @__PURE__ */ jsxs("div", {
@@ -27715,12 +27767,12 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27715
27767
  children: e
27716
27768
  }),
27717
27769
  n && /* @__PURE__ */ jsx("span", {
27718
- className: cn("text-[13px] font-bold shrink-0", Mc.text),
27770
+ className: cn("text-[13px] font-bold shrink-0", qc.text),
27719
27771
  children: n
27720
27772
  }),
27721
27773
  r && /* @__PURE__ */ jsxs("span", {
27722
27774
  className: "inline-flex shrink-0 items-center gap-1 text-[10px] font-medium text-neutral-500",
27723
- children: [Mc.icon && /* @__PURE__ */ jsx(Mc.icon, {
27775
+ children: [qc.icon && /* @__PURE__ */ jsx(qc.icon, {
27724
27776
  size: 11,
27725
27777
  className: "text-neutral-500"
27726
27778
  }), r]
@@ -27730,9 +27782,9 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27730
27782
  children: [/* @__PURE__ */ jsx("span", { className: cn("h-1.5 w-1.5 shrink-0 rounded-full", STATUS_BADGE_STYLES[a].dot) }), i]
27731
27783
  })
27732
27784
  ]
27733
- }), Dc && /* @__PURE__ */ jsx(Button, {
27785
+ }), Hc && /* @__PURE__ */ jsx(Button, {
27734
27786
  type: "button",
27735
- onClick: Dc,
27787
+ onClick: Hc,
27736
27788
  "aria-label": "Close",
27737
27789
  className: "h-7 w-7 shrink-0 rounded-lg hover:bg-neutral-100",
27738
27790
  children: /* @__PURE__ */ jsx("svg", {
@@ -27828,28 +27880,28 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27828
27880
  children: B
27829
27881
  })]
27830
27882
  }),
27831
- wc ? /* @__PURE__ */ jsxs("div", {
27883
+ zc ? /* @__PURE__ */ jsxs("div", {
27832
27884
  className: "rounded-xl border border-neutral-200-variant-1 bg-neutral-50 px-4 py-3.5",
27833
27885
  children: [/* @__PURE__ */ jsx("p", {
27834
27886
  className: "mb-2 text-[10px] font-bold tracking-widest text-neutral-900 uppercase",
27835
27887
  children: "Why ranked first"
27836
27888
  }), /* @__PURE__ */ jsx("p", {
27837
27889
  className: "text-sm text-neutral-800",
27838
- children: wc
27890
+ children: zc
27839
27891
  })]
27840
- }) : Tc ? /* @__PURE__ */ jsxs("div", {
27892
+ }) : Bc ? /* @__PURE__ */ jsxs("div", {
27841
27893
  className: "rounded-xl border border-neutral-200-variant-1 bg-neutral-50 px-4 py-3.5",
27842
27894
  children: [/* @__PURE__ */ jsx("p", {
27843
27895
  className: "mb-2 text-[10px] font-bold tracking-widest text-neutral-900 uppercase",
27844
27896
  children: "Why this needs attention"
27845
27897
  }), /* @__PURE__ */ jsx("p", {
27846
27898
  className: "text-sm text-neutral-800",
27847
- children: Tc
27899
+ children: Bc
27848
27900
  })]
27849
27901
  }) : null,
27850
27902
  /* @__PURE__ */ jsx(SectionCard, {
27851
27903
  title: "What do you want to do?",
27852
- children: Nc ? /* @__PURE__ */ jsxs("div", {
27904
+ children: Jc ? /* @__PURE__ */ jsxs("div", {
27853
27905
  className: "flex flex-col gap-2",
27854
27906
  children: [
27855
27907
  /* @__PURE__ */ jsx("p", {
@@ -27858,10 +27910,10 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27858
27910
  }),
27859
27911
  /* @__PURE__ */ jsx("div", {
27860
27912
  className: "flex flex-wrap gap-1.5",
27861
- children: Ec.map((e) => /* @__PURE__ */ jsx(Button, {
27913
+ children: Vc.map((e) => /* @__PURE__ */ jsx(Button, {
27862
27914
  type: "button",
27863
- onClick: () => Ic((t) => t === e.id ? null : e.id),
27864
- className: Fc === 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",
27915
+ onClick: () => Zc((t) => t === e.id ? null : e.id),
27916
+ className: Xc === 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
27917
  children: e.label
27866
27918
  }, e.id))
27867
27919
  }),
@@ -27870,21 +27922,21 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27870
27922
  children: [
27871
27923
  /* @__PURE__ */ jsx(Button, {
27872
27924
  type: "button",
27873
- onClick: Hc,
27925
+ onClick: rl,
27874
27926
  className: "rounded-lg bg-neutral-800 px-3 py-1.5 text-xs font-semibold text-white",
27875
27927
  children: "Confirm"
27876
27928
  }),
27877
27929
  /* @__PURE__ */ jsx(Button, {
27878
27930
  type: "button",
27879
27931
  onClick: () => {
27880
- Pc(!1), Ic(null);
27932
+ Yc(!1), Zc(null);
27881
27933
  },
27882
27934
  className: "text-xs font-medium text-neutral-700-variant-1 hover:underline",
27883
27935
  children: "Cancel"
27884
27936
  }),
27885
27937
  /* @__PURE__ */ jsx(Button, {
27886
27938
  type: "button",
27887
- onClick: Oc,
27939
+ onClick: Uc,
27888
27940
  className: "ml-auto text-xs font-medium text-primary-500 hover:underline",
27889
27941
  children: "Mark handled instead"
27890
27942
  })
@@ -27912,21 +27964,21 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27912
27964
  })(),
27913
27965
  /* @__PURE__ */ jsxs(Button, {
27914
27966
  type: "button",
27915
- onClick: Oc,
27967
+ onClick: Uc,
27916
27968
  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
27969
  children: [/* @__PURE__ */ jsx(CheckActionIcon, {}), "Mark handled"]
27918
27970
  }),
27919
27971
  /* @__PURE__ */ jsxs(Button, {
27920
27972
  type: "button",
27921
- onClick: () => Pc(!0),
27973
+ onClick: () => Yc(!0),
27922
27974
  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
27975
  children: [/* @__PURE__ */ jsx(DismissActionIcon, {}), "Mark not useful"]
27924
27976
  }),
27925
27977
  /* @__PURE__ */ jsxs(Button, {
27926
27978
  type: "button",
27927
- onClick: Vc,
27928
- className: Lc ? "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",
27929
- children: [jsx(Lc ? CheckActionIcon : CopyActionIcon, {}), Lc ? "Copied" : "Copy evidence"]
27979
+ onClick: nl,
27980
+ 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",
27981
+ children: [jsx(Qc ? CheckActionIcon : CopyActionIcon, {}), Qc ? "Copied" : "Copy evidence"]
27930
27982
  })
27931
27983
  ]
27932
27984
  })
@@ -27935,20 +27987,20 @@ function SignalDetailPanel({ title: e, severity: t, slaDurationLabel: n, slaStat
27935
27987
  className: "rounded-xl border border-neutral-200-variant-1 bg-white-variant-8 px-4 py-3.5",
27936
27988
  children: [/* @__PURE__ */ jsxs(Button, {
27937
27989
  type: "button",
27938
- onClick: () => Bc((e) => !e),
27990
+ onClick: () => tl((e) => !e),
27939
27991
  className: "w-full justify-between text-left",
27940
- "aria-expanded": zc,
27992
+ "aria-expanded": el,
27941
27993
  children: [/* @__PURE__ */ jsx("span", {
27942
27994
  className: "text-[10px] font-bold tracking-widest text-neutral-900 uppercase",
27943
27995
  children: "Evidence analysis"
27944
27996
  }), /* @__PURE__ */ jsxs("span", {
27945
27997
  className: "inline-flex items-center gap-1 text-xs font-medium text-neutral-700-variant-1",
27946
- children: [zc ? "Hide proof" : "Show proof", /* @__PURE__ */ jsx(ChevronIcon, { expanded: zc })]
27998
+ children: [el ? "Hide proof" : "Show proof", /* @__PURE__ */ jsx(ChevronIcon, { expanded: el })]
27947
27999
  })]
27948
- }), zc && /* @__PURE__ */ jsx("div", {
28000
+ }), el && /* @__PURE__ */ jsx("div", {
27949
28001
  className: "mt-3 border-t border-neutral-200-variant-1 pt-3",
27950
28002
  children: /* @__PURE__ */ jsx(EvidenceTimeline, {
27951
- items: Cc,
28003
+ items: Rc,
27952
28004
  canExpandThread: !0,
27953
28005
  tone: a,
27954
28006
  threadTitle: e,
@@ -28050,6 +28102,19 @@ function SignalSummaryActionButton({ icon: e, label: t, className: n, ...r }) {
28050
28102
  children: [e, t]
28051
28103
  });
28052
28104
  }
28105
+ function SignalSummaryActionsSectionSkeleton({ className: e }) {
28106
+ return /* @__PURE__ */ jsxs("section", {
28107
+ "aria-hidden": "true",
28108
+ className: cn("px-4 py-4", e),
28109
+ children: [/* @__PURE__ */ jsx("div", {
28110
+ className: "mb-3 text-[10px]",
28111
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-32 inline-block align-middle" })
28112
+ }), /* @__PURE__ */ jsxs("div", {
28113
+ className: "gap-2 flex flex-wrap items-center",
28114
+ 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" })]
28115
+ })]
28116
+ });
28117
+ }
28053
28118
  function SignalSummaryActionsSection({ title: e, children: t, className: n }) {
28054
28119
  return /* @__PURE__ */ jsxs("section", {
28055
28120
  className: cn("px-4 py-4", n),
@@ -28059,6 +28124,26 @@ function SignalSummaryActionsSection({ title: e, children: t, className: n }) {
28059
28124
  }), t]
28060
28125
  });
28061
28126
  }
28127
+ function SignalSummaryClaimSectionSkeleton({ className: e }) {
28128
+ return /* @__PURE__ */ jsxs("section", {
28129
+ "aria-hidden": "true",
28130
+ className: cn("px-4 py-4", e),
28131
+ children: [
28132
+ /* @__PURE__ */ jsx("div", {
28133
+ className: "mb-2 text-[10px]",
28134
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-28 inline-block align-middle" })
28135
+ }),
28136
+ /* @__PURE__ */ jsx("div", {
28137
+ className: "text-sm leading-snug",
28138
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 inline-block w-full align-middle" })
28139
+ }),
28140
+ /* @__PURE__ */ jsx("div", {
28141
+ className: "text-sm leading-snug",
28142
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 inline-block w-2/3 align-middle" })
28143
+ })
28144
+ ]
28145
+ });
28146
+ }
28062
28147
  function CursorTooltip({ content: e, children: t, position: n = "top-right", multiline: r = !1, className: i }) {
28063
28148
  let [a, o] = useState(null), s = (e) => o({
28064
28149
  x: e.clientX,
@@ -28153,6 +28238,45 @@ function SignalSummaryDismissReasons({ prompt: e, options: t, selectedId: n, onS
28153
28238
  ]
28154
28239
  });
28155
28240
  }
28241
+ function SignalSummaryHeaderSkeleton({ className: e }) {
28242
+ return /* @__PURE__ */ jsxs("div", {
28243
+ "aria-hidden": "true",
28244
+ className: cn("shrink-0 border-b border-signal-summary-border bg-white-variant-8", e),
28245
+ children: [/* @__PURE__ */ jsxs("div", {
28246
+ className: "h-12 gap-2.5 px-4 flex items-center border-b border-signal-summary-border",
28247
+ children: [/* @__PURE__ */ jsx("span", {
28248
+ className: "text-[13px]",
28249
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-20 inline-block align-middle" })
28250
+ }), /* @__PURE__ */ jsx("span", {
28251
+ className: "text-[11px]",
28252
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-24 inline-block align-middle" })
28253
+ })]
28254
+ }), /* @__PURE__ */ jsx("div", {
28255
+ className: "gap-0.5 px-4 py-2.5 flex flex-col",
28256
+ children: [{
28257
+ nameWidth: "w-24",
28258
+ lineHeight: "text-sm"
28259
+ }, {
28260
+ nameWidth: "w-28",
28261
+ lineHeight: "text-xs"
28262
+ }].map(({ nameWidth: e, lineHeight: t }) => /* @__PURE__ */ jsxs("div", {
28263
+ className: "min-w-0 gap-2 flex items-center",
28264
+ children: [
28265
+ /* @__PURE__ */ jsx("span", {
28266
+ className: "w-9 shrink-0 text-[10px]",
28267
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-7 inline-block align-middle" })
28268
+ }),
28269
+ /* @__PURE__ */ jsx("span", { className: "h-[18px] w-[18px] shrink-0 rounded-full bg-neutral-300-variant-3" }),
28270
+ /* @__PURE__ */ jsx("span", {
28271
+ className: t,
28272
+ children: /* @__PURE__ */ jsx(Skeleton, { className: cn("h-2.5 inline-block align-middle", e) })
28273
+ }),
28274
+ /* @__PURE__ */ jsx("span", { className: "w-36 h-[19px] rounded-full bg-neutral-300-variant-3" })
28275
+ ]
28276
+ }, e))
28277
+ })]
28278
+ });
28279
+ }
28156
28280
  function Label$1({ children: e }) {
28157
28281
  return /* @__PURE__ */ jsx("span", {
28158
28282
  className: "w-9 font-bold tracking-wider shrink-0 text-[10px] text-neutral-700-variant-1 uppercase",
@@ -28254,6 +28378,32 @@ function SignalSummaryReviewSection({ title: e, decision: t, reasons: n = [], cl
28254
28378
  ]
28255
28379
  });
28256
28380
  }
28381
+ function SignalSummarySlaSectionSkeleton({ className: e }) {
28382
+ return /* @__PURE__ */ jsxs("section", {
28383
+ "aria-hidden": "true",
28384
+ className: cn("px-4 py-4", e),
28385
+ children: [
28386
+ /* @__PURE__ */ jsxs("div", {
28387
+ className: "mb-2.5 flex items-center justify-between",
28388
+ children: [/* @__PURE__ */ jsx("span", {
28389
+ className: "text-[10px]",
28390
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-36 inline-block align-middle" })
28391
+ }), /* @__PURE__ */ jsx("span", { className: "w-20 h-[19px] rounded-full bg-neutral-300-variant-3" })]
28392
+ }),
28393
+ /* @__PURE__ */ jsx("div", { className: "mb-2.5 h-1.5 rounded-full bg-neutral-300-variant-3" }),
28394
+ /* @__PURE__ */ jsxs("div", {
28395
+ className: "flex items-center justify-between",
28396
+ children: [/* @__PURE__ */ jsx("span", {
28397
+ className: "text-[11px]",
28398
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-20 inline-block align-middle" })
28399
+ }), /* @__PURE__ */ jsx("span", {
28400
+ className: "text-[11px]",
28401
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-16 inline-block align-middle" })
28402
+ })]
28403
+ })
28404
+ ]
28405
+ });
28406
+ }
28257
28407
  var badgeStyles = tv({
28258
28408
  base: "px-2 py-0.5 font-semibold rounded-full text-[10px]",
28259
28409
  variants: { status: {
@@ -28321,6 +28471,22 @@ function SignalSummarySlaSection({ title: e, statusLabel: t, status: n, percentU
28321
28471
  ]
28322
28472
  });
28323
28473
  }
28474
+ function EvidenceHeaderSkeleton({ className: e }) {
28475
+ return /* @__PURE__ */ jsxs("div", {
28476
+ "aria-hidden": "true",
28477
+ 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),
28478
+ children: [/* @__PURE__ */ jsxs("div", {
28479
+ className: "min-w-0 gap-1.5 flex items-center",
28480
+ children: [/* @__PURE__ */ jsx("span", { className: "rounded-sm size-3.5 shrink-0 bg-neutral-300-variant-3" }), /* @__PURE__ */ jsx("span", {
28481
+ className: "text-[13px]",
28482
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-48 inline-block align-middle" })
28483
+ })]
28484
+ }), /* @__PURE__ */ jsx("span", {
28485
+ className: "shrink-0 text-[11px]",
28486
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-16 inline-block align-middle" })
28487
+ })]
28488
+ });
28489
+ }
28324
28490
  function EvidenceHeader({ icon: e, title: t, muted: n = !1, meta: r, className: i }) {
28325
28491
  return /* @__PURE__ */ jsxs("div", {
28326
28492
  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 +28505,13 @@ function EvidenceHeader({ icon: e, title: t, muted: n = !1, meta: r, className:
28339
28505
  })]
28340
28506
  });
28341
28507
  }
28508
+ function ThreadDateDividerSkeleton({ className: e }) {
28509
+ return /* @__PURE__ */ jsxs("div", {
28510
+ "aria-hidden": "true",
28511
+ className: cn("px-4 py-3 relative flex items-center justify-center", e),
28512
+ 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" })]
28513
+ });
28514
+ }
28342
28515
  function ThreadDateDivider({ label: e, className: t }) {
28343
28516
  return /* @__PURE__ */ jsxs("div", {
28344
28517
  className: cn("px-4 py-3 relative flex items-center justify-center", t),
@@ -28348,6 +28521,48 @@ function ThreadDateDivider({ label: e, className: t }) {
28348
28521
  })]
28349
28522
  });
28350
28523
  }
28524
+ function ThreadEmailMessageSkeleton({ className: e }) {
28525
+ return /* @__PURE__ */ jsxs("div", {
28526
+ "aria-hidden": "true",
28527
+ className: cn("gap-2.5 px-4 pt-5 pb-4 flex border-b border-evidence-border last:border-b-0", e),
28528
+ children: [/* @__PURE__ */ jsx("span", { className: "h-9 w-9 shrink-0 rounded-full bg-neutral-300-variant-3" }), /* @__PURE__ */ jsxs("div", {
28529
+ className: "min-w-0 flex-1",
28530
+ children: [
28531
+ /* @__PURE__ */ jsxs("div", {
28532
+ className: "gap-2 flex items-start justify-between",
28533
+ children: [/* @__PURE__ */ jsx("div", {
28534
+ className: "min-w-0 gap-0.5 flex flex-1 flex-col",
28535
+ children: ["w-24", "w-28"].map((e) => /* @__PURE__ */ jsxs("div", {
28536
+ className: "gap-1.5 flex items-center",
28537
+ children: [
28538
+ /* @__PURE__ */ jsx("span", {
28539
+ className: "w-9 shrink-0 text-[10px]",
28540
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2 w-7 inline-block align-middle" })
28541
+ }),
28542
+ /* @__PURE__ */ jsx("span", {
28543
+ className: "text-[13px]",
28544
+ children: /* @__PURE__ */ jsx(Skeleton, { className: cn("h-3 inline-block align-middle", e) })
28545
+ }),
28546
+ /* @__PURE__ */ jsx("span", { className: "w-32 h-[19px] rounded-full bg-neutral-300-variant-3" })
28547
+ ]
28548
+ }, e))
28549
+ }), /* @__PURE__ */ jsx("span", {
28550
+ className: "shrink-0 text-[11px]",
28551
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-20 inline-block align-middle" })
28552
+ })]
28553
+ }),
28554
+ /* @__PURE__ */ jsx("div", {
28555
+ className: "mt-2 text-sm leading-relaxed",
28556
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 inline-block w-full align-middle" })
28557
+ }),
28558
+ /* @__PURE__ */ jsx("div", {
28559
+ className: "text-sm leading-relaxed",
28560
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 inline-block w-3/4 align-middle" })
28561
+ })
28562
+ ]
28563
+ })]
28564
+ });
28565
+ }
28351
28566
  function Name({ name: e, company: t }) {
28352
28567
  let n = /* @__PURE__ */ jsx("span", {
28353
28568
  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 +28642,28 @@ function ThreadEmailMessage({ icon: e, sourceLabel: t, onOpenSource: n, senderNa
28427
28642
  })]
28428
28643
  });
28429
28644
  }
28645
+ function ThreadSlackMessageSkeleton({ bodyWidthClassName: e = "w-4/5", className: t }) {
28646
+ return /* @__PURE__ */ jsxs("div", {
28647
+ "aria-hidden": "true",
28648
+ className: cn("gap-2.5 px-4 pt-3 pb-0.5 flex", t),
28649
+ children: [/* @__PURE__ */ jsx("span", { className: "h-9 w-9 rounded-lg shrink-0 bg-neutral-300-variant-3" }), /* @__PURE__ */ jsxs("div", {
28650
+ className: "min-w-0 flex-1",
28651
+ children: [/* @__PURE__ */ jsxs("div", {
28652
+ className: "gap-2 flex items-center",
28653
+ children: [/* @__PURE__ */ jsx("span", {
28654
+ className: "text-[14px]",
28655
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-24 inline-block align-middle" })
28656
+ }), /* @__PURE__ */ jsx("span", {
28657
+ className: "text-[11px]",
28658
+ children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-14 inline-block align-middle" })
28659
+ })]
28660
+ }), /* @__PURE__ */ jsx("div", {
28661
+ className: "text-sm leading-relaxed",
28662
+ children: /* @__PURE__ */ jsx(Skeleton, { className: cn("h-3 inline-block align-middle", e) })
28663
+ })]
28664
+ })]
28665
+ });
28666
+ }
28430
28667
  function ThreadSlackMessage({ sourceLabel: e, onOpenSource: t, senderName: n, timestamp: r, body: i, className: a }) {
28431
28668
  return /* @__PURE__ */ jsxs("div", {
28432
28669
  className: cn("gap-2.5 px-4 pt-3 pb-0.5 flex", a),
@@ -28710,6 +28947,6 @@ function QtaloBlueImage({ size: e = 40, className: t, ...n }) {
28710
28947
  }) })]
28711
28948
  });
28712
28949
  }
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 };
28950
+ 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
28951
 
28715
28952
  //# sourceMappingURL=index.js.map