randmarcomps 1.486.0 → 1.487.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5721,15 +5721,18 @@ function RemoveScrollSideCar(e) {
5721
5721
  var V = getTouchXY(M), q = n.current, Q = "deltaX" in M ? M.deltaX : q[0] - V[0], te = "deltaY" in M ? M.deltaY : q[1] - V[1], j, F = M.target, ne = Math.abs(Q) > Math.abs(te) ? "h" : "v";
5722
5722
  if ("touches" in M && ne === "h" && F.type === "range")
5723
5723
  return !1;
5724
- var ae = locationCouldBeScrolled(ne, F);
5725
- if (!ae)
5724
+ var ae = window.getSelection(), se = ae && ae.anchorNode, Ve = se ? se === F || se.contains(F) : !1;
5725
+ if (Ve)
5726
+ return !1;
5727
+ var Ne = locationCouldBeScrolled(ne, F);
5728
+ if (!Ne)
5726
5729
  return !0;
5727
- if (ae ? j = ne : (j = ne === "v" ? "h" : "v", ae = locationCouldBeScrolled(ne, F)), !ae)
5730
+ if (Ne ? j = ne : (j = ne === "v" ? "h" : "v", Ne = locationCouldBeScrolled(ne, F)), !Ne)
5728
5731
  return !1;
5729
5732
  if (!o.current && "changedTouches" in M && (Q || te) && (o.current = j), !j)
5730
5733
  return !0;
5731
- var se = o.current || j;
5732
- return handleScroll(se, I, M, se === "h" ? Q : te);
5734
+ var oe = o.current || j;
5735
+ return handleScroll(oe, I, M, oe === "h" ? Q : te);
5733
5736
  }, []), b = React.useCallback(function(M) {
5734
5737
  var I = M;
5735
5738
  if (!(!lockStack.length || lockStack[lockStack.length - 1] !== d)) {
@@ -60512,7 +60515,7 @@ function createDOMPurify() {
60512
60515
  const Er = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), gr = "http://www.w3.org/1998/Math/MathML", Sr = "http://www.w3.org/2000/svg", mr = "http://www.w3.org/1999/xhtml";
60513
60516
  let _r = mr, Ir = !1, Mr = null;
60514
60517
  const Vr = addToSet({}, [gr, Sr, mr], stringToString);
60515
- let Jt = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), Zt = addToSet({}, ["annotation-xml"]);
60518
+ let Jt = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), Qt = addToSet({}, ["annotation-xml"]);
60516
60519
  const Ut = addToSet({}, ["title", "style", "font", "a", "script"]);
60517
60520
  let tr = null;
60518
60521
  const Yt = ["application/xhtml+xml", "text/html"], nr = "text/html";
@@ -60523,7 +60526,7 @@ function createDOMPurify() {
60523
60526
  let it = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
60524
60527
  if (!($r && $r === it)) {
60525
60528
  if ((!it || typeof it != "object") && (it = {}), it = clone(it), tr = // eslint-disable-next-line unicorn/prefer-includes
60526
- Yt.indexOf(it.PARSER_MEDIA_TYPE) === -1 ? nr : it.PARSER_MEDIA_TYPE, ur = tr === "application/xhtml+xml" ? stringToString : stringToLowerCase, We = objectHasOwnProperty(it, "ALLOWED_TAGS") ? addToSet({}, it.ALLOWED_TAGS, ur) : ze, Xe = objectHasOwnProperty(it, "ALLOWED_ATTR") ? addToSet({}, it.ALLOWED_ATTR, ur) : rt, Mr = objectHasOwnProperty(it, "ALLOWED_NAMESPACES") ? addToSet({}, it.ALLOWED_NAMESPACES, stringToString) : Vr, qt = objectHasOwnProperty(it, "ADD_URI_SAFE_ATTR") ? addToSet(clone(Er), it.ADD_URI_SAFE_ATTR, ur) : Er, sr = objectHasOwnProperty(it, "ADD_DATA_URI_TAGS") ? addToSet(clone(cr), it.ADD_DATA_URI_TAGS, ur) : cr, Ht = objectHasOwnProperty(it, "FORBID_CONTENTS") ? addToSet({}, it.FORBID_CONTENTS, ur) : Kt, st = objectHasOwnProperty(it, "FORBID_TAGS") ? addToSet({}, it.FORBID_TAGS, ur) : clone({}), et = objectHasOwnProperty(it, "FORBID_ATTR") ? addToSet({}, it.FORBID_ATTR, ur) : clone({}), yt = objectHasOwnProperty(it, "USE_PROFILES") ? it.USE_PROFILES : !1, tt = it.ALLOW_ARIA_ATTR !== !1, ot = it.ALLOW_DATA_ATTR !== !1, lt = it.ALLOW_UNKNOWN_PROTOCOLS || !1, Ge = it.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $t = it.SAFE_FOR_TEMPLATES || !1, nt = it.SAFE_FOR_XML !== !1, Ct = it.WHOLE_DOCUMENT || !1, Mt = it.RETURN_DOM || !1, Rt = it.RETURN_DOM_FRAGMENT || !1, Ke = it.RETURN_TRUSTED_TYPE || !1, It = it.FORCE_BODY || !1, Ye = it.SANITIZE_DOM !== !1, Ze = it.SANITIZE_NAMED_PROPS || !1, mt = it.KEEP_CONTENT !== !1, ft = it.IN_PLACE || !1, He = it.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, _r = it.NAMESPACE || mr, Jt = it.MATHML_TEXT_INTEGRATION_POINTS || Jt, Zt = it.HTML_INTEGRATION_POINTS || Zt, Je = it.CUSTOM_ELEMENT_HANDLING || {}, it.CUSTOM_ELEMENT_HANDLING && Pr(it.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Je.tagNameCheck = it.CUSTOM_ELEMENT_HANDLING.tagNameCheck), it.CUSTOM_ELEMENT_HANDLING && Pr(it.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Je.attributeNameCheck = it.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), it.CUSTOM_ELEMENT_HANDLING && typeof it.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Je.allowCustomizedBuiltInElements = it.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $t && (ot = !1), Rt && (Mt = !0), yt && (We = addToSet({}, text$1), Xe = [], yt.html === !0 && (addToSet(We, html$1), addToSet(Xe, html)), yt.svg === !0 && (addToSet(We, svg$1), addToSet(Xe, svg), addToSet(Xe, xml)), yt.svgFilters === !0 && (addToSet(We, svgFilters), addToSet(Xe, svg), addToSet(Xe, xml)), yt.mathMl === !0 && (addToSet(We, mathMl$1), addToSet(Xe, mathMl), addToSet(Xe, xml))), it.ADD_TAGS && (typeof it.ADD_TAGS == "function" ? at.tagCheck = it.ADD_TAGS : (We === ze && (We = clone(We)), addToSet(We, it.ADD_TAGS, ur))), it.ADD_ATTR && (typeof it.ADD_ATTR == "function" ? at.attributeCheck = it.ADD_ATTR : (Xe === rt && (Xe = clone(Xe)), addToSet(Xe, it.ADD_ATTR, ur))), it.ADD_URI_SAFE_ATTR && addToSet(qt, it.ADD_URI_SAFE_ATTR, ur), it.FORBID_CONTENTS && (Ht === Kt && (Ht = clone(Ht)), addToSet(Ht, it.FORBID_CONTENTS, ur)), mt && (We["#text"] = !0), Ct && addToSet(We, ["html", "head", "body"]), We.table && (addToSet(We, ["tbody"]), delete st.tbody), it.TRUSTED_TYPES_POLICY) {
60529
+ Yt.indexOf(it.PARSER_MEDIA_TYPE) === -1 ? nr : it.PARSER_MEDIA_TYPE, ur = tr === "application/xhtml+xml" ? stringToString : stringToLowerCase, We = objectHasOwnProperty(it, "ALLOWED_TAGS") ? addToSet({}, it.ALLOWED_TAGS, ur) : ze, Xe = objectHasOwnProperty(it, "ALLOWED_ATTR") ? addToSet({}, it.ALLOWED_ATTR, ur) : rt, Mr = objectHasOwnProperty(it, "ALLOWED_NAMESPACES") ? addToSet({}, it.ALLOWED_NAMESPACES, stringToString) : Vr, qt = objectHasOwnProperty(it, "ADD_URI_SAFE_ATTR") ? addToSet(clone(Er), it.ADD_URI_SAFE_ATTR, ur) : Er, sr = objectHasOwnProperty(it, "ADD_DATA_URI_TAGS") ? addToSet(clone(cr), it.ADD_DATA_URI_TAGS, ur) : cr, Ht = objectHasOwnProperty(it, "FORBID_CONTENTS") ? addToSet({}, it.FORBID_CONTENTS, ur) : Kt, st = objectHasOwnProperty(it, "FORBID_TAGS") ? addToSet({}, it.FORBID_TAGS, ur) : clone({}), et = objectHasOwnProperty(it, "FORBID_ATTR") ? addToSet({}, it.FORBID_ATTR, ur) : clone({}), yt = objectHasOwnProperty(it, "USE_PROFILES") ? it.USE_PROFILES : !1, tt = it.ALLOW_ARIA_ATTR !== !1, ot = it.ALLOW_DATA_ATTR !== !1, lt = it.ALLOW_UNKNOWN_PROTOCOLS || !1, Ge = it.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $t = it.SAFE_FOR_TEMPLATES || !1, nt = it.SAFE_FOR_XML !== !1, Ct = it.WHOLE_DOCUMENT || !1, Mt = it.RETURN_DOM || !1, Rt = it.RETURN_DOM_FRAGMENT || !1, Ke = it.RETURN_TRUSTED_TYPE || !1, It = it.FORCE_BODY || !1, Ye = it.SANITIZE_DOM !== !1, Ze = it.SANITIZE_NAMED_PROPS || !1, mt = it.KEEP_CONTENT !== !1, ft = it.IN_PLACE || !1, He = it.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, _r = it.NAMESPACE || mr, Jt = it.MATHML_TEXT_INTEGRATION_POINTS || Jt, Qt = it.HTML_INTEGRATION_POINTS || Qt, Je = it.CUSTOM_ELEMENT_HANDLING || {}, it.CUSTOM_ELEMENT_HANDLING && Pr(it.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Je.tagNameCheck = it.CUSTOM_ELEMENT_HANDLING.tagNameCheck), it.CUSTOM_ELEMENT_HANDLING && Pr(it.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Je.attributeNameCheck = it.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), it.CUSTOM_ELEMENT_HANDLING && typeof it.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Je.allowCustomizedBuiltInElements = it.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $t && (ot = !1), Rt && (Mt = !0), yt && (We = addToSet({}, text$1), Xe = [], yt.html === !0 && (addToSet(We, html$1), addToSet(Xe, html)), yt.svg === !0 && (addToSet(We, svg$1), addToSet(Xe, svg), addToSet(Xe, xml)), yt.svgFilters === !0 && (addToSet(We, svgFilters), addToSet(Xe, svg), addToSet(Xe, xml)), yt.mathMl === !0 && (addToSet(We, mathMl$1), addToSet(Xe, mathMl), addToSet(Xe, xml))), it.ADD_TAGS && (typeof it.ADD_TAGS == "function" ? at.tagCheck = it.ADD_TAGS : (We === ze && (We = clone(We)), addToSet(We, it.ADD_TAGS, ur))), it.ADD_ATTR && (typeof it.ADD_ATTR == "function" ? at.attributeCheck = it.ADD_ATTR : (Xe === rt && (Xe = clone(Xe)), addToSet(Xe, it.ADD_ATTR, ur))), it.ADD_URI_SAFE_ATTR && addToSet(qt, it.ADD_URI_SAFE_ATTR, ur), it.FORBID_CONTENTS && (Ht === Kt && (Ht = clone(Ht)), addToSet(Ht, it.FORBID_CONTENTS, ur)), mt && (We["#text"] = !0), Ct && addToSet(We, ["html", "head", "body"]), We.table && (addToSet(We, ["tbody"]), delete st.tbody), it.TRUSTED_TYPES_POLICY) {
60527
60530
  if (typeof it.TRUSTED_TYPES_POLICY.createHTML != "function")
60528
60531
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
60529
60532
  if (typeof it.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -60540,7 +60543,7 @@ function createDOMPurify() {
60540
60543
  tagName: "template"
60541
60544
  });
60542
60545
  const Wt = stringToLowerCase(it.tagName), lr = stringToLowerCase(Dt.tagName);
60543
- return Mr[it.namespaceURI] ? it.namespaceURI === Sr ? Dt.namespaceURI === mr ? Wt === "svg" : Dt.namespaceURI === gr ? Wt === "svg" && (lr === "annotation-xml" || Jt[lr]) : !!jr[Wt] : it.namespaceURI === gr ? Dt.namespaceURI === mr ? Wt === "math" : Dt.namespaceURI === Sr ? Wt === "math" && Zt[lr] : !!qr[Wt] : it.namespaceURI === mr ? Dt.namespaceURI === Sr && !Zt[lr] || Dt.namespaceURI === gr && !Jt[lr] ? !1 : !qr[Wt] && (Ut[Wt] || !jr[Wt]) : !!(tr === "application/xhtml+xml" && Mr[it.namespaceURI]) : !1;
60546
+ return Mr[it.namespaceURI] ? it.namespaceURI === Sr ? Dt.namespaceURI === mr ? Wt === "svg" : Dt.namespaceURI === gr ? Wt === "svg" && (lr === "annotation-xml" || Jt[lr]) : !!jr[Wt] : it.namespaceURI === gr ? Dt.namespaceURI === mr ? Wt === "math" : Dt.namespaceURI === Sr ? Wt === "math" && Qt[lr] : !!qr[Wt] : it.namespaceURI === mr ? Dt.namespaceURI === Sr && !Qt[lr] || Dt.namespaceURI === gr && !Jt[lr] ? !1 : !qr[Wt] && (Ut[Wt] || !jr[Wt]) : !!(tr === "application/xhtml+xml" && Mr[it.namespaceURI]) : !1;
60544
60547
  }, Cr = function(it) {
60545
60548
  arrayPush(t.removed, {
60546
60549
  element: it
@@ -71136,8 +71139,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71136
71139
  default:
71137
71140
  if (this.isAsyncFunction())
71138
71141
  return z && this.unexpected(), this.next(), this.parseFunctionStatement(Qe, !0, !z);
71139
- var rr = this.value, Qt = this.parseExpression();
71140
- return Ue === F.name && Qt.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(Qe, rr, Qt, z) : this.parseExpressionStatement(Qe, Qt);
71142
+ var rr = this.value, Zt = this.parseExpression();
71143
+ return Ue === F.name && Zt.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(Qe, rr, Zt, z) : this.parseExpressionStatement(Qe, Zt);
71141
71144
  }
71142
71145
  }, qt.parseBreakContinueStatement = function(z, ge) {
71143
71146
  var je = ge === "break";
@@ -71162,8 +71165,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71162
71165
  var Ue = this.startNode(), Qe = je ? "let" : this.value;
71163
71166
  return this.next(), this.parseVar(Ue, !0, Qe), this.finishNode(Ue, "VariableDeclaration"), (this.type === F._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && Ue.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === F._in ? ge > -1 && this.unexpected(ge) : z.await = ge > -1), this.parseForIn(z, Ue)) : (ge > -1 && this.unexpected(ge), this.parseFor(z, Ue));
71164
71167
  }
71165
- var ut = this.isContextual("let"), pt = !1, Vt = this.containsEsc, Ft = new cr(), rr = this.start, Qt = ge > -1 ? this.parseExprSubscripts(Ft, "await") : this.parseExpression(!0, Ft);
71166
- return this.type === F._in || (pt = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (ge > -1 ? (this.type === F._in && this.unexpected(ge), z.await = !0) : pt && this.options.ecmaVersion >= 8 && (Qt.start === rr && !Vt && Qt.type === "Identifier" && Qt.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (z.await = !1)), ut && pt && this.raise(Qt.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Qt, !1, Ft), this.checkLValPattern(Qt), this.parseForIn(z, Qt)) : (this.checkExpressionErrors(Ft, !0), ge > -1 && this.unexpected(ge), this.parseFor(z, Qt));
71168
+ var ut = this.isContextual("let"), pt = !1, Vt = this.containsEsc, Ft = new cr(), rr = this.start, Zt = ge > -1 ? this.parseExprSubscripts(Ft, "await") : this.parseExpression(!0, Ft);
71169
+ return this.type === F._in || (pt = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (ge > -1 ? (this.type === F._in && this.unexpected(ge), z.await = !0) : pt && this.options.ecmaVersion >= 8 && (Zt.start === rr && !Vt && Zt.type === "Identifier" && Zt.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (z.await = !1)), ut && pt && this.raise(Zt.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Zt, !1, Ft), this.checkLValPattern(Zt), this.parseForIn(z, Zt)) : (this.checkExpressionErrors(Ft, !0), ge > -1 && this.unexpected(ge), this.parseFor(z, Zt));
71167
71170
  }, qt.parseFunctionStatement = function(z, ge, je) {
71168
71171
  return this.next(), this.parseFunction(z, mr | (je ? 0 : _r), !1, ge);
71169
71172
  }, qt.parseIfStatement = function(z) {
@@ -71267,8 +71270,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71267
71270
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? pt = Ft : Ue = Ft);
71268
71271
  }
71269
71272
  if (Ue ? (je.computed = !1, je.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), je.key.name = Ue, this.finishNode(je.key, "Identifier")) : this.parseClassElementName(je), ge < 13 || this.type === F.parenL || pt !== "method" || Qe || ut) {
71270
- var rr = !je.static && Vr(je, "constructor"), Qt = rr && z;
71271
- rr && pt !== "method" && this.raise(je.key.start, "Constructor can't have get/set modifier"), je.kind = rr ? "constructor" : pt, this.parseClassMethod(je, Qe, ut, Qt);
71273
+ var rr = !je.static && Vr(je, "constructor"), Zt = rr && z;
71274
+ rr && pt !== "method" && this.raise(je.key.start, "Constructor can't have get/set modifier"), je.kind = rr ? "constructor" : pt, this.parseClassMethod(je, Qe, ut, Zt);
71272
71275
  } else
71273
71276
  this.parseClassField(je);
71274
71277
  return je;
@@ -71576,21 +71579,21 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71576
71579
  this.checkLValPattern(z, ge, je);
71577
71580
  }
71578
71581
  };
71579
- var Zt = function(ge, je, Ue, Qe, ut) {
71582
+ var Qt = function(ge, je, Ue, Qe, ut) {
71580
71583
  this.token = ge, this.isExpr = !!je, this.preserveSpace = !!Ue, this.override = Qe, this.generator = !!ut;
71581
71584
  }, Ut = {
71582
- b_stat: new Zt("{", !1),
71583
- b_expr: new Zt("{", !0),
71584
- b_tmpl: new Zt("${", !1),
71585
- p_stat: new Zt("(", !1),
71586
- p_expr: new Zt("(", !0),
71587
- q_tmpl: new Zt("`", !0, !0, function(z) {
71585
+ b_stat: new Qt("{", !1),
71586
+ b_expr: new Qt("{", !0),
71587
+ b_tmpl: new Qt("${", !1),
71588
+ p_stat: new Qt("(", !1),
71589
+ p_expr: new Qt("(", !0),
71590
+ q_tmpl: new Qt("`", !0, !0, function(z) {
71588
71591
  return z.tryReadTemplateToken();
71589
71592
  }),
71590
- f_stat: new Zt("function", !1),
71591
- f_expr: new Zt("function", !0),
71592
- f_expr_gen: new Zt("function", !0, !1, null, !0),
71593
- f_gen: new Zt("function", !1, !1, null, !0)
71593
+ f_stat: new Qt("function", !1),
71594
+ f_expr: new Qt("function", !0),
71595
+ f_expr_gen: new Qt("function", !0, !1, null, !0),
71596
+ f_gen: new Qt("function", !1, !1, null, !0)
71594
71597
  }, tr = yt.prototype;
71595
71598
  tr.initialContext = function() {
71596
71599
  return [Ut.b_stat];
@@ -71695,8 +71698,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71695
71698
  (this.type === F.parenL || this.type === F.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = z === "await");
71696
71699
  var rr = this.parseMaybeConditional(z, ge);
71697
71700
  if (je && (rr = je.call(this, rr, Vt, Ft)), this.type.isAssign) {
71698
- var Qt = this.startNodeAt(Vt, Ft);
71699
- return Qt.operator = this.value, this.type === F.eq && (rr = this.toAssignable(rr, !1, ge)), Ue || (ge.parenthesizedAssign = ge.trailingComma = ge.doubleProto = -1), ge.shorthandAssign >= rr.start && (ge.shorthandAssign = -1), this.type === F.eq ? this.checkLValPattern(rr) : this.checkLValSimple(rr), Qt.left = rr, this.next(), Qt.right = this.parseMaybeAssign(z), pt > -1 && (ge.doubleProto = pt), this.finishNode(Qt, "AssignmentExpression");
71701
+ var Zt = this.startNodeAt(Vt, Ft);
71702
+ return Zt.operator = this.value, this.type === F.eq && (rr = this.toAssignable(rr, !1, ge)), Ue || (ge.parenthesizedAssign = ge.trailingComma = ge.doubleProto = -1), ge.shorthandAssign >= rr.start && (ge.shorthandAssign = -1), this.type === F.eq ? this.checkLValPattern(rr) : this.checkLValSimple(rr), Zt.left = rr, this.next(), Zt.right = this.parseMaybeAssign(z), pt > -1 && (ge.doubleProto = pt), this.finishNode(Zt, "AssignmentExpression");
71700
71703
  } else
71701
71704
  Ue && this.checkExpressionErrors(ge, !0);
71702
71705
  return Qe > -1 && (ge.parenthesizedAssign = Qe), ut > -1 && (ge.trailingComma = ut), rr;
@@ -71719,7 +71722,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71719
71722
  Vt && (ut = F.logicalAND.binop);
71720
71723
  var Ft = this.value;
71721
71724
  this.next();
71722
- var rr = this.start, Qt = this.startLoc, vr = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, Qe), rr, Qt, ut, Qe), Hr = this.buildBinary(ge, je, z, vr, Ft, pt || Vt);
71725
+ var rr = this.start, Zt = this.startLoc, vr = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, Qe), rr, Zt, ut, Qe), Hr = this.buildBinary(ge, je, z, vr, Ft, pt || Vt);
71723
71726
  return (pt && this.type === F.coalesce || Vt && (this.type === F.logicalOR || this.type === F.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(Hr, ge, je, Ue, Qe);
71724
71727
  }
71725
71728
  return z;
@@ -71785,8 +71788,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71785
71788
  Ue && Ft && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
71786
71789
  var rr = this.eat(F.bracketL);
71787
71790
  if (rr || Ft && this.type !== F.parenL && this.type !== F.backQuote || this.eat(F.dot)) {
71788
- var Qt = this.startNodeAt(ge, je);
71789
- Qt.object = z, rr ? (Qt.property = this.parseExpression(), this.expect(F.bracketR)) : this.type === F.privateId && z.type !== "Super" ? Qt.property = this.parsePrivateIdent() : Qt.property = this.parseIdent(this.options.allowReserved !== "never"), Qt.computed = !!rr, Vt && (Qt.optional = Ft), z = this.finishNode(Qt, "MemberExpression");
71791
+ var Zt = this.startNodeAt(ge, je);
71792
+ Zt.object = z, rr ? (Zt.property = this.parseExpression(), this.expect(F.bracketR)) : this.type === F.privateId && z.type !== "Super" ? Zt.property = this.parsePrivateIdent() : Zt.property = this.parseIdent(this.options.allowReserved !== "never"), Zt.computed = !!rr, Vt && (Zt.optional = Ft), z = this.finishNode(Zt, "MemberExpression");
71790
71793
  } else if (!Ue && this.eat(F.parenL)) {
71791
71794
  var vr = new cr(), Hr = this.yieldPos, tn = this.awaitPos, Wr = this.awaitIdentPos;
71792
71795
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
@@ -71832,8 +71835,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71832
71835
  case F._false:
71833
71836
  return Ue = this.startNode(), Ue.value = this.type === F._null ? null : this.type === F._true, Ue.raw = this.type.keyword, this.next(), this.finishNode(Ue, "Literal");
71834
71837
  case F.parenL:
71835
- var Qt = this.start, vr = this.parseParenAndDistinguishExpression(Qe, ge);
71836
- return z && (z.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(vr) && (z.parenthesizedAssign = Qt), z.parenthesizedBind < 0 && (z.parenthesizedBind = Qt)), vr;
71838
+ var Zt = this.start, vr = this.parseParenAndDistinguishExpression(Qe, ge);
71839
+ return z && (z.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(vr) && (z.parenthesizedAssign = Zt), z.parenthesizedBind < 0 && (z.parenthesizedBind = Zt)), vr;
71837
71840
  case F.bracketL:
71838
71841
  return Ue = this.startNode(), this.next(), Ue.elements = this.parseExprList(F.bracketR, !0, !0, z), this.finishNode(Ue, "ArrayExpression");
71839
71842
  case F.braceL:
@@ -71885,10 +71888,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71885
71888
  var je = this.start, Ue = this.startLoc, Qe, ut = this.options.ecmaVersion >= 8;
71886
71889
  if (this.options.ecmaVersion >= 6) {
71887
71890
  this.next();
71888
- var pt = this.start, Vt = this.startLoc, Ft = [], rr = !0, Qt = !1, vr = new cr(), Hr = this.yieldPos, tn = this.awaitPos, Wr;
71891
+ var pt = this.start, Vt = this.startLoc, Ft = [], rr = !0, Zt = !1, vr = new cr(), Hr = this.yieldPos, tn = this.awaitPos, Wr;
71889
71892
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== F.parenR; )
71890
71893
  if (rr ? rr = !1 : this.expect(F.comma), ut && this.afterTrailingComma(F.parenR, !0)) {
71891
- Qt = !0;
71894
+ Zt = !0;
71892
71895
  break;
71893
71896
  } else if (this.type === F.ellipsis) {
71894
71897
  Wr = this.start, Ft.push(this.parseParenItem(this.parseRestBinding())), this.type === F.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
@@ -71898,7 +71901,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
71898
71901
  var pn = this.lastTokEnd, Kr = this.lastTokEndLoc;
71899
71902
  if (this.expect(F.parenR), z && this.shouldParseArrow(Ft) && this.eat(F.arrow))
71900
71903
  return this.checkPatternErrors(vr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = Hr, this.awaitPos = tn, this.parseParenArrowList(je, Ue, Ft, ge);
71901
- (!Ft.length || Qt) && this.unexpected(this.lastTokStart), Wr && this.unexpected(Wr), this.checkExpressionErrors(vr, !0), this.yieldPos = Hr || this.yieldPos, this.awaitPos = tn || this.awaitPos, Ft.length > 1 ? (Qe = this.startNodeAt(pt, Vt), Qe.expressions = Ft, this.finishNodeAt(Qe, "SequenceExpression", pn, Kr)) : Qe = Ft[0];
71904
+ (!Ft.length || Zt) && this.unexpected(this.lastTokStart), Wr && this.unexpected(Wr), this.checkExpressionErrors(vr, !0), this.yieldPos = Hr || this.yieldPos, this.awaitPos = tn || this.awaitPos, Ft.length > 1 ? (Qe = this.startNodeAt(pt, Vt), Qe.expressions = Ft, this.finishNodeAt(Qe, "SequenceExpression", pn, Kr)) : Qe = Ft[0];
71902
71905
  } else
71903
71906
  Qe = this.parseParenExpression();
71904
71907
  if (this.options.preserveParens) {
@@ -72953,14 +72956,14 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
72953
72956
  return this.finishToken(F.regexp, { pattern: Qe, flags: pt, value: Ft });
72954
72957
  }, ir.readInt = function(z, ge, je) {
72955
72958
  for (var Ue = this.options.ecmaVersion >= 12 && ge === void 0, Qe = je && this.input.charCodeAt(this.pos) === 48, ut = this.pos, pt = 0, Vt = 0, Ft = 0, rr = ge ?? 1 / 0; Ft < rr; ++Ft, ++this.pos) {
72956
- var Qt = this.input.charCodeAt(this.pos), vr = void 0;
72957
- if (Ue && Qt === 95) {
72958
- Qe && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), Vt === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), Ft === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), Vt = Qt;
72959
+ var Zt = this.input.charCodeAt(this.pos), vr = void 0;
72960
+ if (Ue && Zt === 95) {
72961
+ Qe && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), Vt === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), Ft === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), Vt = Zt;
72959
72962
  continue;
72960
72963
  }
72961
- if (Qt >= 97 ? vr = Qt - 97 + 10 : Qt >= 65 ? vr = Qt - 65 + 10 : Qt >= 48 && Qt <= 57 ? vr = Qt - 48 : vr = 1 / 0, vr >= z)
72964
+ if (Zt >= 97 ? vr = Zt - 97 + 10 : Zt >= 65 ? vr = Zt - 65 + 10 : Zt >= 48 && Zt <= 57 ? vr = Zt - 48 : vr = 1 / 0, vr >= z)
72962
72965
  break;
72963
- Vt = Qt, pt = pt * z + vr;
72966
+ Vt = Zt, pt = pt * z + vr;
72964
72967
  }
72965
72968
  return Ue && Vt === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === ut || ge != null && this.pos - ut !== ge ? null : pt;
72966
72969
  };
@@ -73142,7 +73145,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
73142
73145
  TokenType: I,
73143
73146
  tokTypes: F,
73144
73147
  keywordTypes: te,
73145
- TokContext: Zt,
73148
+ TokContext: Qt,
73146
73149
  tokContexts: Ut,
73147
73150
  isIdentifierChar: M,
73148
73151
  isIdentifierStart: A,
@@ -73161,7 +73164,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ge.ecmaVersion
73161
73164
  function Kn(z, ge) {
73162
73165
  return yt.tokenizer(z, ge);
73163
73166
  }
73164
- n.Node = jr, n.Parser = yt, n.Position = ze, n.SourceLocation = Xe, n.TokContext = Zt, n.Token = hn, n.TokenType = I, n.defaultOptions = Je, n.getLineInfo = rt, n.isIdentifierChar = M, n.isIdentifierStart = A, n.isNewLine = se, n.keywordTypes = te, n.lineBreak = ne, n.lineBreakG = ae, n.nonASCIIwhitespace = Ne, n.parse = zn, n.parseExpressionAt = Wn, n.tokContexts = Ut, n.tokTypes = F, n.tokenizer = Kn, n.version = Mn;
73167
+ n.Node = jr, n.Parser = yt, n.Position = ze, n.SourceLocation = Xe, n.TokContext = Qt, n.Token = hn, n.TokenType = I, n.defaultOptions = Je, n.getLineInfo = rt, n.isIdentifierChar = M, n.isIdentifierStart = A, n.isNewLine = se, n.keywordTypes = te, n.lineBreak = ne, n.lineBreakG = ae, n.nonASCIIwhitespace = Ne, n.parse = zn, n.parseExpressionAt = Wn, n.tokContexts = Ut, n.tokTypes = F, n.tokenizer = Kn, n.version = Mn;
73165
73168
  });
73166
73169
  }), require_acorn_jsx = __commonJS((e, t) => {
73167
73170
  var n = require_xhtml(), o = /^[\da-fA-F]+$/, l = /^\d+$/, d = /* @__PURE__ */ new WeakMap();
@@ -76534,7 +76537,7 @@ function ProductCard({
76534
76537
  return !(Ze.EndDate && Ze.EndDate.split("T")[0] < ct || Ze.StartDate && Ze.StartDate.split("T")[0] > ct);
76535
76538
  }, qe = (Ze) => Ze >= 90 ? { label: "Top 10% Bestseller", color: "text-purple-950", bgColor: "bg-purple-200" } : Ze >= 75 ? { label: "Bestseller", color: "text-blue-700", bgColor: "bg-blue-50" } : Ze >= 33 ? { label: "Popular", color: "text-green-700", bgColor: "bg-green-50" } : { label: "Rising", color: "text-gray-700", bgColor: "bg-white" }, Be = ne !== "complete" && ne !== "error", Fe = ne === "summary" ? 40 : ne === "detailed" ? 80 : 10, He = (j == null ? void 0 : j.SalesStatistics) ?? [], We = Be ? [] : He, ze = (j == null ? void 0 : j.RandmarTitle) ?? (t == null ? void 0 : t.RandmarTitle) ?? (t == null ? void 0 : t.RandmarSKU) ?? "this product", Xe = (j == null ? void 0 : j.RandmarSKU) ?? (t == null ? void 0 : t.RandmarSKU);
76536
76539
  if (!t)
76537
- return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
76540
+ return /* @__PURE__ */ jsx(Card, { className: "flex h-full w-full flex-col", children: /* @__PURE__ */ jsxs(CardContent, { className: "flex h-full flex-col p-6", children: [
76538
76541
  /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start mb-3", children: [
76539
76542
  /* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-3/4" }),
76540
76543
  /* @__PURE__ */ jsx("div", { className: "h-10 w-24 flex items-center justify-end ml-4", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-24 rounded-md" }) })
@@ -76645,217 +76648,195 @@ function ProductCard({
76645
76648
  }));
76646
76649
  };
76647
76650
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
76648
- /* @__PURE__ */ jsx(Card, { className: "w-full hover:shadow-lg transition-shadow @container", children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
76649
- /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start mb-3", children: [
76650
- /* @__PURE__ */ jsx("h3", { className: "font-semibold text-xl", children: t.Title || t.RandmarTitle }),
76651
- /* @__PURE__ */ jsx("div", { className: "w-24 h-10 flex items-center justify-end ml-4 flex-shrink-0", children: /* @__PURE__ */ jsx(
76652
- PartnerLogo,
76653
- {
76654
- id: t.ManufacturerId,
76655
- name: t.ManufacturerName,
76656
- width: 96,
76657
- height: 40
76658
- },
76659
- `partner_logo_${t.ManufacturerId}`
76660
- ) })
76661
- ] }),
76662
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col @[36rem]:flex-row gap-6", children: [
76663
- /* @__PURE__ */ jsxs("div", { className: "flex-1 @[36rem]:order-1 order-2 flex flex-col gap-4", children: [
76664
- /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 items-center justify-center @[36rem]:items-start @[36rem]:justify-start", children: [
76665
- t.State && /* @__PURE__ */ jsxs(
76666
- Badge,
76667
- {
76668
- variant: "outline",
76669
- className: `rounded-full px-3 ${t.State === "Active" ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
76670
- children: [
76671
- /* @__PURE__ */ jsx(Check, { size: "12", className: "mr-1.5" }),
76672
- " ",
76673
- t.State
76674
- ]
76675
- }
76676
- ),
76677
- /* @__PURE__ */ jsxs(
76678
- Badge,
76679
- {
76680
- variant: "outline",
76681
- className: `rounded-full px-3 ${t.SerialNumber ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-yellow-50 text-yellow-700 hover:bg-yellow-50"}`,
76682
- children: [
76683
- /* @__PURE__ */ jsx(QrCode, { size: "12", className: "mr-1.5" }),
76684
- " ",
76685
- t.SerialNumber ? "Serialized" : "Unserialized"
76686
- ]
76687
- }
76688
- ),
76689
- t.TransparencyCode && /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
76690
- /* @__PURE__ */ jsx(CircleDashed, { size: "12", className: "mr-1.5" }),
76691
- " Transparency Code"
76692
- ] }),
76693
- t.AvailableToBuy !== void 0 && /* @__PURE__ */ jsxs(
76694
- Badge,
76695
- {
76696
- variant: "outline",
76697
- className: `rounded-full px-3 ${t.AvailableToBuy ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
76698
- children: [
76699
- /* @__PURE__ */ jsx(ShoppingCart, { size: "12", className: "mr-1.5" }),
76700
- " ",
76701
- t.AvailableToBuy ? "Available" : "Unavailable"
76702
- ]
76703
- }
76704
- ),
76705
- t.ManufacturerCategory !== void 0 && /* @__PURE__ */ jsxs(
76706
- Badge,
76707
- {
76708
- variant: "outline",
76709
- className: `rounded-full px-3 ${(dt = t.ManufacturerCategory) != null && dt.QualificationRequired ? "bg-blue-50 text-blue-700 hover:bg-blue-50" : "bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,
76710
- children: [
76711
- /* @__PURE__ */ jsx(ShieldCheck, { size: "12", className: "mr-1.5" }),
76712
- " ",
76713
- (It = t.ManufacturerCategory) != null && It.QualificationRequired ? "Qualified Only" : "Available to all"
76714
- ]
76715
- }
76716
- ),
76717
- t.ManufacturerId && /* @__PURE__ */ jsxs(
76718
- Badge,
76719
- {
76720
- variant: "outline",
76721
- className: `rounded-full px-3 ${t.AutoUpdate ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
76722
- children: [
76723
- /* @__PURE__ */ jsx(RefreshCw, { size: "12", className: "mr-1.5" }),
76724
- " ",
76725
- t.AutoUpdate ? `Automatic Reorder (${t.MasterCarton})` : "Manually Reorders"
76726
- ]
76727
- }
76728
- ),
76729
- /* @__PURE__ */ jsxs(
76730
- Badge,
76731
- {
76732
- variant: "outline",
76733
- className: `rounded-full px-3 ${t.BodyHTML && t.Title && t.MAP ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
76734
- children: [
76735
- /* @__PURE__ */ jsx(Store, { size: "12", className: "mr-1.5" }),
76736
- " ",
76737
- t.BodyHTML && t.Title && t.MAP ? "Shopify Ready" : "Not Shopify Ready"
76738
- ]
76739
- }
76740
- )
76741
- ] }),
76742
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-4 flex-1", children: [
76743
- /* @__PURE__ */ jsxs("div", { children: [
76744
- /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "MPN" }),
76745
- /* @__PURE__ */ jsx("div", { className: "font-medium", children: t.MPN || "N/A" })
76746
- ] }),
76747
- /* @__PURE__ */ jsxs("div", { children: [
76748
- /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "UPC" }),
76749
- /* @__PURE__ */ jsx("div", { className: "font-medium", children: t.UPC || "N/A" })
76750
- ] }),
76751
- /* @__PURE__ */ jsxs("div", { children: [
76752
- /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Unit Weight" }),
76753
- /* @__PURE__ */ jsx("div", { className: "font-medium", children: t.UnitWeight ? `${formatNumber(t.UnitWeight)} lbs` : "N/A" })
76754
- ] }),
76755
- /* @__PURE__ */ jsxs("div", { children: [
76756
- /* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
76757
- "MAP",
76758
- /* @__PURE__ */ jsx("span", { className: "text-primary", children: " / " }),
76759
- "MSRP"
76651
+ /* @__PURE__ */ jsx(Card, { className: "flex h-full w-full flex-col hover:shadow-lg transition-shadow @container", children: /* @__PURE__ */ jsxs(CardContent, { className: "flex h-full flex-col p-6", children: [
76652
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-4", children: [
76653
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start mb-3", children: [
76654
+ /* @__PURE__ */ jsx("h3", { className: "font-semibold text-xl", children: t.Title || t.RandmarTitle }),
76655
+ /* @__PURE__ */ jsx("div", { className: "w-24 h-10 flex items-center justify-end ml-4 flex-shrink-0", children: /* @__PURE__ */ jsx(
76656
+ PartnerLogo,
76657
+ {
76658
+ id: t.ManufacturerId,
76659
+ name: t.ManufacturerName,
76660
+ width: 96,
76661
+ height: 40
76662
+ },
76663
+ `partner_logo_${t.ManufacturerId}`
76664
+ ) })
76665
+ ] }),
76666
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col @[36rem]:flex-row gap-6", children: [
76667
+ /* @__PURE__ */ jsxs("div", { className: "flex-1 @[36rem]:order-1 order-2 flex flex-col gap-4", children: [
76668
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 items-center justify-center @[36rem]:items-start @[36rem]:justify-start", children: [
76669
+ t.State && /* @__PURE__ */ jsxs(
76670
+ Badge,
76671
+ {
76672
+ variant: "outline",
76673
+ className: `rounded-full px-3 ${t.State === "Active" ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
76674
+ children: [
76675
+ /* @__PURE__ */ jsx(Check, { size: "12", className: "mr-1.5" }),
76676
+ " ",
76677
+ t.State
76678
+ ]
76679
+ }
76680
+ ),
76681
+ /* @__PURE__ */ jsxs(
76682
+ Badge,
76683
+ {
76684
+ variant: "outline",
76685
+ className: `rounded-full px-3 ${t.SerialNumber ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-yellow-50 text-yellow-700 hover:bg-yellow-50"}`,
76686
+ children: [
76687
+ /* @__PURE__ */ jsx(QrCode, { size: "12", className: "mr-1.5" }),
76688
+ " ",
76689
+ t.SerialNumber ? "Serialized" : "Unserialized"
76690
+ ]
76691
+ }
76692
+ ),
76693
+ t.TransparencyCode && /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
76694
+ /* @__PURE__ */ jsx(CircleDashed, { size: "12", className: "mr-1.5" }),
76695
+ " Transparency Code"
76760
76696
  ] }),
76761
- /* @__PURE__ */ jsxs("div", { className: "font-medium", children: [
76762
- t.MAP ? formatMoney(t.MAP) : "N/A",
76763
- /* @__PURE__ */ jsx("span", { className: "text-primary", children: " / " }),
76764
- t.MSRP ? formatMoney(t.MSRP) : "N/A"
76765
- ] })
76697
+ t.AvailableToBuy !== void 0 && /* @__PURE__ */ jsxs(
76698
+ Badge,
76699
+ {
76700
+ variant: "outline",
76701
+ className: `rounded-full px-3 ${t.AvailableToBuy ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
76702
+ children: [
76703
+ /* @__PURE__ */ jsx(ShoppingCart, { size: "12", className: "mr-1.5" }),
76704
+ " ",
76705
+ t.AvailableToBuy ? "Available" : "Unavailable"
76706
+ ]
76707
+ }
76708
+ ),
76709
+ t.ManufacturerCategory !== void 0 && /* @__PURE__ */ jsxs(
76710
+ Badge,
76711
+ {
76712
+ variant: "outline",
76713
+ className: `rounded-full px-3 ${(dt = t.ManufacturerCategory) != null && dt.QualificationRequired ? "bg-blue-50 text-blue-700 hover:bg-blue-50" : "bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,
76714
+ children: [
76715
+ /* @__PURE__ */ jsx(ShieldCheck, { size: "12", className: "mr-1.5" }),
76716
+ " ",
76717
+ (It = t.ManufacturerCategory) != null && It.QualificationRequired ? "Qualified Only" : "Available to all"
76718
+ ]
76719
+ }
76720
+ ),
76721
+ t.ManufacturerId && /* @__PURE__ */ jsxs(
76722
+ Badge,
76723
+ {
76724
+ variant: "outline",
76725
+ className: `rounded-full px-3 ${t.AutoUpdate ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
76726
+ children: [
76727
+ /* @__PURE__ */ jsx(RefreshCw, { size: "12", className: "mr-1.5" }),
76728
+ " ",
76729
+ t.AutoUpdate ? `Automatic Reorder (${t.MasterCarton})` : "Manually Reorders"
76730
+ ]
76731
+ }
76732
+ ),
76733
+ /* @__PURE__ */ jsxs(
76734
+ Badge,
76735
+ {
76736
+ variant: "outline",
76737
+ className: `rounded-full px-3 ${t.BodyHTML && t.Title && t.MAP ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
76738
+ children: [
76739
+ /* @__PURE__ */ jsx(Store, { size: "12", className: "mr-1.5" }),
76740
+ " ",
76741
+ t.BodyHTML && t.Title && t.MAP ? "Shopify Ready" : "Not Shopify Ready"
76742
+ ]
76743
+ }
76744
+ )
76766
76745
  ] }),
76767
- !!t.OverallPercentileRank && !!t.ManufacturerPercentileRank && /* @__PURE__ */ jsxs("div", { children: [
76768
- /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground mb-2", children: "Bestseller Status" }),
76769
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
76770
- /* @__PURE__ */ jsxs("div", { children: [
76771
- /* @__PURE__ */ jsx("span", { children: "Global: " }),
76772
- /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
76773
- /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
76774
- Badge,
76775
- {
76776
- variant: "outline",
76777
- className: `rounded-full px-3 w-fit ${qe(t.OverallPercentileRank).bgColor} ${qe(t.OverallPercentileRank).color} hover:${qe(t.OverallPercentileRank).bgColor}`,
76778
- children: qe(t.OverallPercentileRank).label
76779
- }
76780
- ) }),
76781
- /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
76782
- "Percentile Rank: ",
76783
- t.OverallPercentileRank
76784
- ] }) })
76785
- ] }) })
76746
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-4 flex-1", children: [
76747
+ /* @__PURE__ */ jsxs("div", { children: [
76748
+ /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "MPN" }),
76749
+ /* @__PURE__ */ jsx("div", { className: "font-medium", children: t.MPN || "N/A" })
76750
+ ] }),
76751
+ /* @__PURE__ */ jsxs("div", { children: [
76752
+ /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "UPC" }),
76753
+ /* @__PURE__ */ jsx("div", { className: "font-medium", children: t.UPC || "N/A" })
76754
+ ] }),
76755
+ /* @__PURE__ */ jsxs("div", { children: [
76756
+ /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Unit Weight" }),
76757
+ /* @__PURE__ */ jsx("div", { className: "font-medium", children: t.UnitWeight ? `${formatNumber(t.UnitWeight)} lbs` : "N/A" })
76758
+ ] }),
76759
+ /* @__PURE__ */ jsxs("div", { children: [
76760
+ /* @__PURE__ */ jsxs("div", { className: "text-sm text-muted-foreground", children: [
76761
+ "MAP",
76762
+ /* @__PURE__ */ jsx("span", { className: "text-primary", children: " / " }),
76763
+ "MSRP"
76786
76764
  ] }),
76787
- /* @__PURE__ */ jsxs("div", { children: [
76788
- /* @__PURE__ */ jsxs("span", { children: [
76789
- t.ManufacturerName,
76790
- ": "
76765
+ /* @__PURE__ */ jsxs("div", { className: "font-medium", children: [
76766
+ t.MAP ? formatMoney(t.MAP) : "N/A",
76767
+ /* @__PURE__ */ jsx("span", { className: "text-primary", children: " / " }),
76768
+ t.MSRP ? formatMoney(t.MSRP) : "N/A"
76769
+ ] })
76770
+ ] }),
76771
+ !!t.OverallPercentileRank && !!t.ManufacturerPercentileRank && /* @__PURE__ */ jsxs("div", { children: [
76772
+ /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground mb-2", children: "Bestseller Status" }),
76773
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
76774
+ /* @__PURE__ */ jsxs("div", { children: [
76775
+ /* @__PURE__ */ jsx("span", { children: "Global: " }),
76776
+ /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
76777
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
76778
+ Badge,
76779
+ {
76780
+ variant: "outline",
76781
+ className: `rounded-full px-3 w-fit ${qe(t.OverallPercentileRank).bgColor} ${qe(t.OverallPercentileRank).color} hover:${qe(t.OverallPercentileRank).bgColor}`,
76782
+ children: qe(t.OverallPercentileRank).label
76783
+ }
76784
+ ) }),
76785
+ /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
76786
+ "Percentile Rank: ",
76787
+ t.OverallPercentileRank
76788
+ ] }) })
76789
+ ] }) })
76791
76790
  ] }),
76792
- /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
76793
- /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
76794
- Badge,
76795
- {
76796
- variant: "outline",
76797
- className: `rounded-full px-3 w-fit ${qe(t.ManufacturerPercentileRank).bgColor} ${qe(t.ManufacturerPercentileRank).color} hover:${qe(t.ManufacturerPercentileRank).bgColor}`,
76798
- children: qe(t.ManufacturerPercentileRank).label
76799
- }
76800
- ) }),
76801
- /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
76802
- "Percentile Rank: ",
76803
- t.ManufacturerPercentileRank
76791
+ /* @__PURE__ */ jsxs("div", { children: [
76792
+ /* @__PURE__ */ jsxs("span", { children: [
76793
+ t.ManufacturerName,
76794
+ ": "
76795
+ ] }),
76796
+ /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
76797
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
76798
+ Badge,
76799
+ {
76800
+ variant: "outline",
76801
+ className: `rounded-full px-3 w-fit ${qe(t.ManufacturerPercentileRank).bgColor} ${qe(t.ManufacturerPercentileRank).color} hover:${qe(t.ManufacturerPercentileRank).bgColor}`,
76802
+ children: qe(t.ManufacturerPercentileRank).label
76803
+ }
76804
+ ) }),
76805
+ /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
76806
+ "Percentile Rank: ",
76807
+ t.ManufacturerPercentileRank
76808
+ ] }) })
76804
76809
  ] }) })
76805
- ] }) })
76810
+ ] })
76806
76811
  ] })
76807
- ] })
76808
- ] }),
76809
- t.CountryCodeOfOrigin && /* @__PURE__ */ jsxs("div", { children: [
76810
- /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Origin" }),
76811
- /* @__PURE__ */ jsxs("div", { className: "font-medium flex items-center", children: [
76812
- /* @__PURE__ */ jsx(CountryFlag, { countryCode: t.CountryCodeOfOrigin, className: "mr-2" }),
76813
- t.CountryCodeOfOrigin
76814
- ] })
76815
- ] })
76816
- ] })
76817
- ] }),
76818
- /* @__PURE__ */ jsx("div", { className: "flex flex-col @[36rem]:order-2 order-1 items-center", children: /* @__PURE__ */ jsx(
76819
- ProductImage,
76820
- {
76821
- randmarSKU: t.RandmarSKU || "",
76822
- alt: t.RandmarTitle || ""
76823
- },
76824
- `product_image_${t.RandmarSKU}`
76825
- ) })
76826
- ] }),
76827
- /* @__PURE__ */ jsx("div", { className: "flex flex-col @[36rem]:flex-row gap-6 mt-4", children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 @[36rem]:order-1 order-2", children: Je && t.Distribution && /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
76828
- /* @__PURE__ */ jsx("div", { className: "flex items-center", children: "You have " + rt.length + (rt.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
76829
- /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: rt.map(
76830
- (Ze, ct) => Le(Ze) ? /* @__PURE__ */ jsxs("div", { className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 border border-muted cursor-pointer ${Ze.BidNumber == (E == null ? void 0 : E.BidNumber) ? "bg-purple-100 border-2 border-purple-900" : "bg-white border-1 border-purple-600 hover:bg-purple-200"}`, onClick: () => {
76831
- R(Ze.BidNumber !== (E == null ? void 0 : E.BidNumber) ? Ze : null);
76832
- }, children: [
76833
- /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
76834
- /* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: Ze.Opportunity }),
76835
- /* @__PURE__ */ jsx("span", { className: "text-xs text-neutral-900", children: Ze.BidNumber })
76836
- ] }) }),
76837
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
76838
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: formatMoney(Ze.Price ?? 0) }),
76839
- Ze.Rebate && Ze.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-green-600", children: [
76840
- "Rebate: ",
76841
- formatMoney(Ze.Rebate)
76842
76812
  ] }),
76843
- Ze.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-600", children: [
76844
- "Ends: ",
76845
- ot(Ze.EndDate)
76813
+ t.CountryCodeOfOrigin && /* @__PURE__ */ jsxs("div", { children: [
76814
+ /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Origin" }),
76815
+ /* @__PURE__ */ jsxs("div", { className: "font-medium flex items-center", children: [
76816
+ /* @__PURE__ */ jsx(CountryFlag, { countryCode: t.CountryCodeOfOrigin, className: "mr-2" }),
76817
+ t.CountryCodeOfOrigin
76818
+ ] })
76846
76819
  ] })
76847
76820
  ] })
76848
- ] }, ct) : /* @__PURE__ */ jsxs(Tooltip$1, { children: [
76849
- /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted cursor-pointer !bg-neutral-50 hover:bg-neutral-100", onClick: () => {
76850
- Ze.BidNumber && b(`/${e}/Opportunity/${Ze.ManufacturerId}/${Ze.BidNumber}`);
76821
+ ] }),
76822
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col @[36rem]:order-2 order-1 items-center", children: /* @__PURE__ */ jsx(
76823
+ ProductImage,
76824
+ {
76825
+ randmarSKU: t.RandmarSKU || "",
76826
+ alt: t.RandmarTitle || ""
76827
+ },
76828
+ `product_image_${t.RandmarSKU}`
76829
+ ) })
76830
+ ] }),
76831
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col @[36rem]:flex-row gap-6 mt-4", children: /* @__PURE__ */ jsx("div", { className: "flex flex-1 @[36rem]:order-1 order-2", children: Je && t.Distribution && /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
76832
+ /* @__PURE__ */ jsx("div", { className: "flex items-center", children: "You have " + rt.length + (rt.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
76833
+ /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: rt.map(
76834
+ (Ze, ct) => Le(Ze) ? /* @__PURE__ */ jsxs("div", { className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 border border-muted cursor-pointer ${Ze.BidNumber == (E == null ? void 0 : E.BidNumber) ? "bg-purple-100 border-2 border-purple-900" : "bg-white border-1 border-purple-600 hover:bg-purple-200"}`, onClick: () => {
76835
+ R(Ze.BidNumber !== (E == null ? void 0 : E.BidNumber) ? Ze : null);
76851
76836
  }, children: [
76852
76837
  /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
76853
76838
  /* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: Ze.Opportunity }),
76854
- /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-900", children: [
76855
- Ze.BidNumber,
76856
- " ",
76857
- /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
76858
- ] })
76839
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-neutral-900", children: Ze.BidNumber })
76859
76840
  ] }) }),
76860
76841
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
76861
76842
  /* @__PURE__ */ jsx("span", { className: "font-semibold", children: formatMoney(Ze.Price ?? 0) }),
@@ -76868,11 +76849,35 @@ function ProductCard({
76868
76849
  ot(Ze.EndDate)
76869
76850
  ] })
76870
76851
  ] })
76871
- ] }) }),
76872
- /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "View Opportunity" }) })
76873
- ] }, ct)
76874
- ) }) })
76875
- ] }) }) }),
76852
+ ] }, ct) : /* @__PURE__ */ jsxs(Tooltip$1, { children: [
76853
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted cursor-pointer !bg-neutral-50 hover:bg-neutral-100", onClick: () => {
76854
+ Ze.BidNumber && b(`/${e}/Opportunity/${Ze.ManufacturerId}/${Ze.BidNumber}`);
76855
+ }, children: [
76856
+ /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
76857
+ /* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: Ze.Opportunity }),
76858
+ /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-900", children: [
76859
+ Ze.BidNumber,
76860
+ " ",
76861
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
76862
+ ] })
76863
+ ] }) }),
76864
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
76865
+ /* @__PURE__ */ jsx("span", { className: "font-semibold", children: formatMoney(Ze.Price ?? 0) }),
76866
+ Ze.Rebate && Ze.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-green-600", children: [
76867
+ "Rebate: ",
76868
+ formatMoney(Ze.Rebate)
76869
+ ] }),
76870
+ Ze.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-neutral-600", children: [
76871
+ "Ends: ",
76872
+ ot(Ze.EndDate)
76873
+ ] })
76874
+ ] })
76875
+ ] }) }),
76876
+ /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "View Opportunity" }) })
76877
+ ] }, ct)
76878
+ ) }) })
76879
+ ] }) }) })
76880
+ ] }),
76876
76881
  /* @__PURE__ */ jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
76877
76882
  /* @__PURE__ */ jsxs("div", { className: "flex flex-row flex-wrap justify-between items-end gap-4", children: [
76878
76883
  /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 flex-1", children: t.Distribution && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1", children: oe > 0 ? /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
@@ -96763,22 +96768,20 @@ function useAnimation(e, t, { classNames: n, months: o, focused: l, dateLib: d }
96763
96768
  });
96764
96769
  }
96765
96770
  function getDates(e, t, n, o) {
96766
- const l = e[0], d = e[e.length - 1], { ISOWeek: f, fixedWeeks: g, broadcastCalendar: b } = n ?? {}, { addDays: S, differenceInCalendarDays: _, differenceInCalendarMonths: C, endOfBroadcastWeek: E, endOfISOWeek: R, endOfMonth: A, endOfWeek: M, isAfter: I, startOfBroadcastWeek: V, startOfISOWeek: q, startOfWeek: Q } = o, te = b ? V(l, o) : f ? q(l) : Q(l), j = b ? E(d) : f ? R(A(d)) : M(A(d)), F = _(j, te), ne = C(d, l) + 1, ae = [];
96767
- for (let Ne = 0; Ne <= F; Ne++) {
96768
- const oe = S(te, Ne);
96769
- if (t && I(oe, t))
96770
- break;
96771
- ae.push(oe);
96771
+ const l = e[0], d = e[e.length - 1], { ISOWeek: f, fixedWeeks: g, broadcastCalendar: b } = n ?? {}, { addDays: S, differenceInCalendarDays: _, differenceInCalendarMonths: C, endOfBroadcastWeek: E, endOfISOWeek: R, endOfMonth: A, endOfWeek: M, isAfter: I, startOfBroadcastWeek: V, startOfISOWeek: q, startOfWeek: Q } = o, te = b ? V(l, o) : f ? q(l) : Q(l), j = b ? E(d) : f ? R(A(d)) : M(A(d)), F = t && (b ? E(t) : f ? R(t) : M(t)), ne = F && I(j, F) ? F : j, ae = _(ne, te), se = C(d, l) + 1, Ve = [];
96772
+ for (let Oe = 0; Oe <= ae; Oe++) {
96773
+ const Ae = S(te, Oe);
96774
+ Ve.push(Ae);
96772
96775
  }
96773
- const Ve = (b ? 35 : 42) * ne;
96774
- if (g && ae.length < Ve) {
96775
- const Ne = Ve - ae.length;
96776
- for (let oe = 0; oe < Ne; oe++) {
96777
- const Oe = S(ae[ae.length - 1], 1);
96778
- ae.push(Oe);
96776
+ const oe = (b ? 35 : 42) * se;
96777
+ if (g && Ve.length < oe) {
96778
+ const Oe = oe - Ve.length;
96779
+ for (let Ae = 0; Ae < Oe; Ae++) {
96780
+ const $e = S(Ve[Ve.length - 1], 1);
96781
+ Ve.push($e);
96779
96782
  }
96780
96783
  }
96781
- return ae;
96784
+ return Ve;
96782
96785
  }
96783
96786
  function getDays(e) {
96784
96787
  const t = [];
@@ -97118,9 +97121,9 @@ function DayPicker(e) {
97118
97121
  to: t.selected.to ? toTimeZone(t.selected.to, n) : t.selected.to
97119
97122
  }), t.disabled !== void 0 && (t.disabled = convertMatchersToTimeZone(t.disabled, n)), t.hidden !== void 0 && (t.hidden = convertMatchersToTimeZone(t.hidden, n)), t.modifiers)) {
97120
97123
  const Jt = {};
97121
- Object.keys(t.modifiers).forEach((Zt) => {
97124
+ Object.keys(t.modifiers).forEach((Qt) => {
97122
97125
  var Ut;
97123
- Jt[Zt] = convertMatchersToTimeZone((Ut = t.modifiers) == null ? void 0 : Ut[Zt], n);
97126
+ Jt[Qt] = convertMatchersToTimeZone((Ut = t.modifiers) == null ? void 0 : Ut[Qt], n);
97124
97127
  }), t.modifiers = Jt;
97125
97128
  }
97126
97129
  const { components: o, formatters: l, labels: d, dateLib: f, locale: g, classNames: b } = useMemo(() => {
@@ -97161,13 +97164,13 @@ function DayPicker(e) {
97161
97164
  Fe && (We(Fe), te == null || te(Fe));
97162
97165
  }, [Fe, We, te]), ft = useCallback(() => {
97163
97166
  He && (We(He), Q == null || Q(He));
97164
- }, [We, He, Q]), yt = useCallback((Jt, Zt) => (Ut) => {
97165
- Ut.preventDefault(), Ut.stopPropagation(), ot(Jt), rt == null || rt(Jt.date, Zt, Ut), A == null || A(Jt.date, Zt, Ut);
97166
- }, [rt, A, ot]), Ht = useCallback((Jt, Zt) => (Ut) => {
97167
- ot(Jt), M == null || M(Jt.date, Zt, Ut);
97168
- }, [M, ot]), Kt = useCallback((Jt, Zt) => (Ut) => {
97169
- st(), R == null || R(Jt.date, Zt, Ut);
97170
- }, [st, R]), sr = useCallback((Jt, Zt) => (Ut) => {
97167
+ }, [We, He, Q]), yt = useCallback((Jt, Qt) => (Ut) => {
97168
+ Ut.preventDefault(), Ut.stopPropagation(), ot(Jt), !Qt.disabled && (rt == null || rt(Jt.date, Qt, Ut), A == null || A(Jt.date, Qt, Ut));
97169
+ }, [rt, A, ot]), Ht = useCallback((Jt, Qt) => (Ut) => {
97170
+ ot(Jt), M == null || M(Jt.date, Qt, Ut);
97171
+ }, [M, ot]), Kt = useCallback((Jt, Qt) => (Ut) => {
97172
+ st(), R == null || R(Jt.date, Qt, Ut);
97173
+ }, [st, R]), sr = useCallback((Jt, Qt) => (Ut) => {
97171
97174
  const tr = {
97172
97175
  ArrowLeft: [
97173
97176
  Ut.shiftKey ? "month" : "day",
@@ -97189,16 +97192,16 @@ function DayPicker(e) {
97189
97192
  const [Yt, nr] = tr[Ut.key];
97190
97193
  tt(Yt, nr);
97191
97194
  }
97192
- I == null || I(Jt.date, Zt, Ut);
97193
- }, [tt, I, t.dir]), cr = useCallback((Jt, Zt) => (Ut) => {
97194
- V == null || V(Jt.date, Zt, Ut);
97195
- }, [V]), qt = useCallback((Jt, Zt) => (Ut) => {
97196
- q == null || q(Jt.date, Zt, Ut);
97197
- }, [q]), Er = useCallback((Jt) => (Zt) => {
97198
- const Ut = Number(Zt.target.value), tr = f.setMonth(f.startOfMonth(Jt), Ut);
97195
+ I == null || I(Jt.date, Qt, Ut);
97196
+ }, [tt, I, t.dir]), cr = useCallback((Jt, Qt) => (Ut) => {
97197
+ V == null || V(Jt.date, Qt, Ut);
97198
+ }, [V]), qt = useCallback((Jt, Qt) => (Ut) => {
97199
+ q == null || q(Jt.date, Qt, Ut);
97200
+ }, [q]), Er = useCallback((Jt) => (Qt) => {
97201
+ const Ut = Number(Qt.target.value), tr = f.setMonth(f.startOfMonth(Jt), Ut);
97199
97202
  We(tr);
97200
- }, [f, We]), gr = useCallback((Jt) => (Zt) => {
97201
- const Ut = Number(Zt.target.value), tr = f.setYear(f.startOfMonth(Jt), Ut);
97203
+ }, [f, We]), gr = useCallback((Jt) => (Qt) => {
97204
+ const Ut = Number(Qt.target.value), tr = f.setYear(f.startOfMonth(Jt), Ut);
97202
97205
  We(tr);
97203
97206
  }, [f, We]), { className: Sr, style: mr } = useMemo(() => ({
97204
97207
  className: [b[UI.Root], t.className].filter(Boolean).join(" "),
@@ -97236,23 +97239,23 @@ function DayPicker(e) {
97236
97239
  o.Months,
97237
97240
  { className: b[UI.Months], style: F == null ? void 0 : F[UI.Months] },
97238
97241
  !t.hideNavigation && !C && React__default.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: b[UI.Nav], style: F == null ? void 0 : F[UI.Nav], "aria-label": Ct(), onPreviousClick: mt, onNextClick: ft, previousMonth: Fe, nextMonth: He }),
97239
- Le.map((Jt, Zt) => React__default.createElement(
97242
+ Le.map((Jt, Qt) => React__default.createElement(
97240
97243
  o.Month,
97241
97244
  {
97242
97245
  "data-animated-month": t.animate ? "true" : void 0,
97243
97246
  className: b[UI.Month],
97244
97247
  style: F == null ? void 0 : F[UI.Month],
97245
97248
  // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
97246
- key: Zt,
97247
- displayIndex: Zt,
97249
+ key: Qt,
97250
+ displayIndex: Qt,
97248
97251
  calendarMonth: Jt
97249
97252
  },
97250
- C === "around" && !t.hideNavigation && Zt === 0 && React__default.createElement(
97253
+ C === "around" && !t.hideNavigation && Qt === 0 && React__default.createElement(
97251
97254
  o.PreviousMonthButton,
97252
97255
  { type: "button", className: b[UI.PreviousMonthButton], tabIndex: Fe ? void 0 : -1, "aria-disabled": Fe ? void 0 : !0, "aria-label": dt(Fe), onClick: mt, "data-animated-button": t.animate ? "true" : void 0 },
97253
97256
  React__default.createElement(o.Chevron, { disabled: Fe ? void 0 : !0, className: b[UI.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
97254
97257
  ),
97255
- React__default.createElement(o.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: b[UI.MonthCaption], style: F == null ? void 0 : F[UI.MonthCaption], calendarMonth: Jt, displayIndex: Zt }, S != null && S.startsWith("dropdown") ? React__default.createElement(
97258
+ React__default.createElement(o.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: b[UI.MonthCaption], style: F == null ? void 0 : F[UI.MonthCaption], calendarMonth: Jt, displayIndex: Qt }, S != null && S.startsWith("dropdown") ? React__default.createElement(
97256
97259
  o.DropdownNav,
97257
97260
  { className: b[UI.Dropdowns], style: F == null ? void 0 : F[UI.Dropdowns] },
97258
97261
  (() => {
@@ -97271,16 +97274,13 @@ function DayPicker(e) {
97271
97274
  whiteSpace: "nowrap",
97272
97275
  wordWrap: "normal"
97273
97276
  } }, ne(Jt.date, f.options, f))
97274
- ) : (
97275
- // biome-ignore lint/a11y/useSemanticElements: breaking change
97276
- React__default.createElement(o.CaptionLabel, { className: b[UI.CaptionLabel], role: "status", "aria-live": "polite" }, ne(Jt.date, f.options, f))
97277
- )),
97278
- C === "around" && !t.hideNavigation && Zt === E - 1 && React__default.createElement(
97277
+ ) : React__default.createElement(o.CaptionLabel, { className: b[UI.CaptionLabel], role: "status", "aria-live": "polite" }, ne(Jt.date, f.options, f))),
97278
+ C === "around" && !t.hideNavigation && Qt === E - 1 && React__default.createElement(
97279
97279
  o.NextMonthButton,
97280
97280
  { type: "button", className: b[UI.NextMonthButton], tabIndex: He ? void 0 : -1, "aria-disabled": He ? void 0 : !0, "aria-label": It(He), onClick: ft, "data-animated-button": t.animate ? "true" : void 0 },
97281
97281
  React__default.createElement(o.Chevron, { disabled: He ? void 0 : !0, className: b[UI.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
97282
97282
  ),
97283
- Zt === E - 1 && C === "after" && !t.hideNavigation && React__default.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: b[UI.Nav], style: F == null ? void 0 : F[UI.Nav], "aria-label": Ct(), onPreviousClick: mt, onNextClick: ft, previousMonth: Fe, nextMonth: He }),
97283
+ Qt === E - 1 && C === "after" && !t.hideNavigation && React__default.createElement(o.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: b[UI.Nav], style: F == null ? void 0 : F[UI.Nav], "aria-label": Ct(), onPreviousClick: mt, onNextClick: ft, previousMonth: Fe, nextMonth: He }),
97284
97284
  React__default.createElement(
97285
97285
  o.MonthGrid,
97286
97286
  { role: "grid", "aria-multiselectable": _ === "multiple" || _ === "range", "aria-label": $t(Jt.date, f.options, f) || void 0, className: b[UI.MonthGrid], style: F == null ? void 0 : F[UI.MonthGrid] },
@@ -97293,8 +97293,7 @@ function DayPicker(e) {
97293
97293
  React__default.createElement(o.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: b[UI.Weeks], style: F == null ? void 0 : F[UI.Weeks] }, Jt.weeks.map((Ut) => React__default.createElement(
97294
97294
  o.Week,
97295
97295
  { className: b[UI.Week], key: Ut.weekNumber, style: F == null ? void 0 : F[UI.Week], week: Ut },
97296
- j && // biome-ignore lint/a11y/useSemanticElements: react component
97297
- React__default.createElement(o.WeekNumber, { week: Ut, style: F == null ? void 0 : F[UI.WeekNumber], "aria-label": Rt(Ut.weekNumber, {
97296
+ j && React__default.createElement(o.WeekNumber, { week: Ut, style: F == null ? void 0 : F[UI.WeekNumber], "aria-label": Rt(Ut.weekNumber, {
97298
97297
  locale: g
97299
97298
  }), className: b[UI.WeekNumber], scope: "row", role: "rowheader" }, Ve(Ut.weekNumber, f)),
97300
97299
  Ut.days.map((tr) => {
@@ -97304,17 +97303,13 @@ function DayPicker(e) {
97304
97303
  nr[SelectionState.range_start] = !!(Pr && Br && f.isSameDay(Yt, Pr)), nr[SelectionState.range_end] = !!(Pr && Br && f.isSameDay(Yt, Br)), nr[SelectionState.range_middle] = rangeIncludesDate(Je, Yt, !0, f);
97305
97304
  }
97306
97305
  const ur = getStyleForModifiers(nr, F, t.modifiersStyles), $r = getClassNamesForModifiers(nr, b, t.modifiersClassNames), Fr = !ct && !nr.hidden ? Ge(Yt, nr, f.options, f) : void 0;
97307
- return (
97308
- // biome-ignore lint/a11y/useSemanticElements: react component
97309
- React__default.createElement(o.Day, { key: `${tr.isoDate}_${tr.displayMonthId}`, day: tr, modifiers: nr, className: $r.join(" "), style: ur, role: "gridcell", "aria-selected": nr.selected || void 0, "aria-label": Fr, "data-day": tr.isoDate, "data-month": tr.outside ? tr.dateMonthId : void 0, "data-selected": nr.selected || void 0, "data-disabled": nr.disabled || void 0, "data-hidden": nr.hidden || void 0, "data-outside": tr.outside || void 0, "data-focused": nr.focused || void 0, "data-today": nr.today || void 0 }, !nr.hidden && ct ? React__default.createElement(o.DayButton, { className: b[UI.DayButton], style: F == null ? void 0 : F[UI.DayButton], type: "button", day: tr, modifiers: nr, disabled: !nr.focused && nr.disabled || void 0, "aria-disabled": nr.focused && nr.disabled || void 0, tabIndex: at(tr) ? 0 : -1, "aria-label": lt(Yt, nr, f.options, f), onClick: yt(tr, nr), onBlur: Kt(tr, nr), onFocus: Ht(tr, nr), onKeyDown: sr(tr, nr), onMouseEnter: cr(tr, nr), onMouseLeave: qt(tr, nr) }, ae(Yt, f.options, f)) : !nr.hidden && ae(tr.date, f.options, f))
97310
- );
97306
+ return React__default.createElement(o.Day, { key: `${tr.isoDate}_${tr.displayMonthId}`, day: tr, modifiers: nr, className: $r.join(" "), style: ur, role: "gridcell", "aria-selected": nr.selected || void 0, "aria-label": Fr, "data-day": tr.isoDate, "data-month": tr.outside ? tr.dateMonthId : void 0, "data-selected": nr.selected || void 0, "data-disabled": nr.disabled || void 0, "data-hidden": nr.hidden || void 0, "data-outside": tr.outside || void 0, "data-focused": nr.focused || void 0, "data-today": nr.today || void 0 }, !nr.hidden && ct ? React__default.createElement(o.DayButton, { className: b[UI.DayButton], style: F == null ? void 0 : F[UI.DayButton], type: "button", day: tr, modifiers: nr, disabled: !nr.focused && nr.disabled || void 0, "aria-disabled": nr.focused && nr.disabled || void 0, tabIndex: at(tr) ? 0 : -1, "aria-label": lt(Yt, nr, f.options, f), onClick: yt(tr, nr), onBlur: Kt(tr, nr), onFocus: Ht(tr, nr), onKeyDown: sr(tr, nr), onMouseEnter: cr(tr, nr), onMouseLeave: qt(tr, nr) }, ae(Yt, f.options, f)) : !nr.hidden && ae(tr.date, f.options, f));
97311
97307
  })
97312
97308
  )))
97313
97309
  )
97314
97310
  ))
97315
97311
  ),
97316
- t.footer && // biome-ignore lint/a11y/useSemanticElements: react component
97317
- React__default.createElement(o.Footer, { className: b[UI.Footer], style: F == null ? void 0 : F[UI.Footer], role: "status", "aria-live": "polite" }, t.footer)
97312
+ t.footer && React__default.createElement(o.Footer, { className: b[UI.Footer], style: F == null ? void 0 : F[UI.Footer], role: "status", "aria-live": "polite" }, t.footer)
97318
97313
  )
97319
97314
  );
97320
97315
  }