@spscommerce/ds-web-components 8.26.1 → 8.26.3

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/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { noI18nI18n as Je, SpsIcon as be, SpsInsightCardKind as Ye, SpsInsightCardIcons as Me } from "@spscommerce/ds-shared";
1
+ import { noI18nI18n as Ye, SpsIcon as be, SpsInsightCardKind as Je, SpsInsightCardIcons as Me } from "@spscommerce/ds-shared";
2
2
  import { parseFileSize as et, code as l } from "@spscommerce/utils";
3
3
  const ds = {
4
4
  /*
@@ -62,7 +62,7 @@ Se.prototype = /* @__PURE__ */ Object.create(null);
62
62
  function st(e, t) {
63
63
  return tt.call(e, t);
64
64
  }
65
- function Oe() {
65
+ function Ae() {
66
66
  return new Se();
67
67
  }
68
68
  function le(e, t) {
@@ -91,7 +91,7 @@ function nt(e) {
91
91
  if (e.lastIndexOf("xlink:", 0) === 0)
92
92
  return "http://www.w3.org/1999/xlink";
93
93
  }
94
- function Ae(e, t, s) {
94
+ function Oe(e, t, s) {
95
95
  if (s == null)
96
96
  e.removeAttribute(t);
97
97
  else {
@@ -117,13 +117,13 @@ function rt(e, t, s) {
117
117
  }
118
118
  function at(e, t, s) {
119
119
  var n = typeof s;
120
- n === "object" || n === "function" ? De(e, t, s) : Ae(e, t, s);
120
+ n === "object" || n === "function" ? De(e, t, s) : Oe(e, t, s);
121
121
  }
122
- var W = Oe();
123
- W[oe.default] = at;
124
- W.style = rt;
122
+ var V = Ae();
123
+ V[oe.default] = at;
124
+ V.style = rt;
125
125
  function z(e, t, s) {
126
- var n = W[t] || W[oe.default];
126
+ var n = V[t] || V[oe.default];
127
127
  n(e, t, s);
128
128
  }
129
129
  /**
@@ -142,7 +142,7 @@ function z(e, t, s) {
142
142
  * See the License for the specific language governing permissions and
143
143
  * limitations under the License.
144
144
  */
145
- var V = !1, te = !1;
145
+ var W = !1, te = !1;
146
146
  function Pe(e, t) {
147
147
  if (!t)
148
148
  throw new Error("Cannot call " + e + "() unless in patch.");
@@ -159,8 +159,8 @@ function ot(e, t) {
159
159
  function lt(e) {
160
160
  e || console.warn("patchOuter requires the node have a parent if there is a key.");
161
161
  }
162
- function B(e) {
163
- if (V)
162
+ function $(e) {
163
+ if (W)
164
164
  throw new Error(e + "() can not be called between elementOpenStart() and elementOpenEnd().");
165
165
  }
166
166
  function Ee(e) {
@@ -168,11 +168,11 @@ function Ee(e) {
168
168
  throw new Error(e + "() may not be called inside an element that has called skip().");
169
169
  }
170
170
  function ce(e) {
171
- if (!V)
171
+ if (!W)
172
172
  throw new Error(e + "() can only be called after calling elementOpenStart().");
173
173
  }
174
174
  function ct() {
175
- if (V)
175
+ if (W)
176
176
  throw new Error("elementOpenEnd() must be called after calling elementOpenStart().");
177
177
  }
178
178
  function pt(e, t) {
@@ -183,15 +183,15 @@ function dt(e, t) {
183
183
  if (t !== null)
184
184
  throw new Error(e + "() must come before any child declarations inside the current element.");
185
185
  }
186
- function ht(e, t, s, n) {
186
+ function ut(e, t, s, n) {
187
187
  Z(e);
188
188
  var i = e, r = t, o = r.nextSibling === s && r.previousSibling === n, p = r.nextSibling === i.nextSibling && r.previousSibling === n, b = r === i;
189
189
  if (!o && !p && !b)
190
190
  throw new Error("There must be exactly one top level call corresponding to the patched element.");
191
191
  }
192
192
  function K(e) {
193
- var t = V;
194
- return V = e, t;
193
+ var t = W;
194
+ return W = e, t;
195
195
  }
196
196
  function Q(e) {
197
197
  var t = te;
@@ -238,7 +238,7 @@ var U = {
238
238
  * See the License for the specific language governing permissions and
239
239
  * limitations under the License.
240
240
  */
241
- var ut = (
241
+ var ht = (
242
242
  /** @class */
243
243
  function() {
244
244
  function e() {
@@ -341,14 +341,14 @@ function pe(e, t, s, n) {
341
341
  var i = new _t(t, s, n);
342
342
  return e.__incrementalDOMData = i, i;
343
343
  }
344
- function $(e, t) {
344
+ function B(e, t) {
345
345
  return ke(e, t);
346
346
  }
347
347
  function Nt(e) {
348
348
  return !!e.__incrementalDOMData;
349
349
  }
350
350
  function xt(e) {
351
- return Z(e.__incrementalDOMData), $(e).key;
351
+ return Z(e.__incrementalDOMData), B(e).key;
352
352
  }
353
353
  function ke(e, t) {
354
354
  if (e.__incrementalDOMData)
@@ -391,9 +391,9 @@ function yt(e, t) {
391
391
  * limitations under the License.
392
392
  */
393
393
  function St(e, t) {
394
- return e === "svg" ? "http://www.w3.org/2000/svg" : e === "math" ? "http://www.w3.org/1998/Math/MathML" : t == null || $(t).nameOrCtor === "foreignObject" ? null : t.namespaceURI;
394
+ return e === "svg" ? "http://www.w3.org/2000/svg" : e === "math" ? "http://www.w3.org/1998/Math/MathML" : t == null || B(t).nameOrCtor === "foreignObject" ? null : t.namespaceURI;
395
395
  }
396
- function Ot(e, t, s, n) {
396
+ function At(e, t, s, n) {
397
397
  var i;
398
398
  if (typeof s == "function")
399
399
  i = new s();
@@ -403,7 +403,7 @@ function Ot(e, t, s, n) {
403
403
  }
404
404
  return pe(i, s, n), i;
405
405
  }
406
- function At(e) {
406
+ function Ot(e) {
407
407
  var t = e.createTextNode("");
408
408
  return pe(t, "#text", null), t;
409
409
  }
@@ -423,31 +423,31 @@ function At(e) {
423
423
  * See the License for the specific language governing permissions and
424
424
  * limitations under the License.
425
425
  */
426
- var L = null, h = null, v = null, k = null, G = [], X = [];
427
- function J() {
426
+ var L = null, u = null, v = null, k = null, G = [], X = [];
427
+ function Y() {
428
428
  return X;
429
429
  }
430
430
  function Fe(e) {
431
431
  var t = function(s, n, i) {
432
- var r = L, o = k, p = G, b = X, f = h, C = v, S = !1, q = !1;
433
- L = new ut(), k = s.ownerDocument, X = [], v = s.parentNode, G = Ct(s, v), process.env.NODE_ENV !== "production" && (S = K(!1), q = Q(!1));
432
+ var r = L, o = k, p = G, b = X, f = u, C = v, S = !1, q = !1;
433
+ L = new ht(), k = s.ownerDocument, X = [], v = s.parentNode, G = Ct(s, v), process.env.NODE_ENV !== "production" && (S = K(!1), q = Q(!1));
434
434
  try {
435
435
  var Ze = e(s, n, i);
436
436
  return process.env.NODE_ENV !== "production" && ct(), Ze;
437
437
  } finally {
438
- k = o, X = b, h = f, v = C, G = p, L.notifyChanges(), K(S), Q(q), L = r;
438
+ k = o, X = b, u = f, v = C, G = p, L.notifyChanges(), K(S), Q(q), L = r;
439
439
  }
440
440
  };
441
441
  return t;
442
442
  }
443
443
  var Re = Fe(function(e, t, s) {
444
- return h = e, je(), t(s), Te(), process.env.NODE_ENV !== "production" && ot(h, e), e;
444
+ return u = e, je(), t(s), Te(), process.env.NODE_ENV !== "production" && ot(u, e), e;
445
445
  }), Dt = Fe(function(e, t, s) {
446
446
  var n = { nextSibling: e }, i = null, r = null;
447
- return process.env.NODE_ENV !== "production" && (i = e.nextSibling, r = e.previousSibling), h = n, t(s), process.env.NODE_ENV !== "production" && (lt(v), ht(n, h, i, r)), v && $e(v, Y(), e.nextSibling), n === h ? null : h;
447
+ return process.env.NODE_ENV !== "production" && (i = e.nextSibling, r = e.previousSibling), u = n, t(s), process.env.NODE_ENV !== "production" && (lt(v), ut(n, u, i, r)), v && Be(v, J(), e.nextSibling), n === u ? null : u;
448
448
  });
449
449
  function Ce(e, t, s) {
450
- var n = $(e, s);
450
+ var n = B(e, s);
451
451
  return t == n.nameOrCtor && s == n.key;
452
452
  }
453
453
  function Pt(e, t, s) {
@@ -464,47 +464,47 @@ function Pt(e, t, s) {
464
464
  }
465
465
  function Et(e, t) {
466
466
  var s;
467
- return e === "#text" ? s = At(k) : s = Ot(k, v, e, t), L.markCreated(s), s;
467
+ return e === "#text" ? s = Ot(k) : s = At(k, v, e, t), L.markCreated(s), s;
468
468
  }
469
- function Be(e, t) {
470
- var s = Pt(h, e, t), n = s || Et(e, t);
471
- n !== h && (G.indexOf(n) >= 0 ? wt(v, n, h) : v.insertBefore(n, h), h = n);
469
+ function $e(e, t) {
470
+ var s = Pt(u, e, t), n = s || Et(e, t);
471
+ n !== u && (G.indexOf(n) >= 0 ? wt(v, n, u) : v.insertBefore(n, u), u = n);
472
472
  }
473
- function $e(e, t, s) {
473
+ function Be(e, t, s) {
474
474
  for (var n = e, i = t; i !== s; ) {
475
475
  var r = i.nextSibling;
476
476
  n.removeChild(i), L.markDeleted(i), i = r;
477
477
  }
478
478
  }
479
479
  function je() {
480
- v = h, h = null;
480
+ v = u, u = null;
481
481
  }
482
- function Y() {
483
- return h ? h.nextSibling : v.firstChild;
482
+ function J() {
483
+ return u ? u.nextSibling : v.firstChild;
484
484
  }
485
485
  function de() {
486
- h = Y();
486
+ u = J();
487
487
  }
488
488
  function Te() {
489
- $e(v, Y(), null), h = v, v = v.parentNode;
489
+ Be(v, J(), null), u = v, v = v.parentNode;
490
490
  }
491
491
  function Ue(e, t) {
492
- return de(), Be(e, t), je(), v;
492
+ return de(), $e(e, t), je(), v;
493
493
  }
494
494
  function ze() {
495
- return process.env.NODE_ENV !== "production" && Q(!1), Te(), h;
495
+ return process.env.NODE_ENV !== "production" && Q(!1), Te(), u;
496
496
  }
497
497
  function kt() {
498
- return de(), Be("#text", null), h;
498
+ return de(), $e("#text", null), u;
499
499
  }
500
500
  function It() {
501
- return process.env.NODE_ENV !== "production" && (Pe("currentElement", k), B("currentElement")), v;
501
+ return process.env.NODE_ENV !== "production" && (Pe("currentElement", k), $("currentElement")), v;
502
502
  }
503
503
  function Lt() {
504
- return process.env.NODE_ENV !== "production" && (Pe("currentPointer", k), B("currentPointer")), Y();
504
+ return process.env.NODE_ENV !== "production" && (Pe("currentPointer", k), $("currentPointer")), J();
505
505
  }
506
506
  function Ft() {
507
- process.env.NODE_ENV !== "production" && (dt("skip", h), Q(!0)), h = v.lastChild;
507
+ process.env.NODE_ENV !== "production" && (dt("skip", u), Q(!0)), u = v.lastChild;
508
508
  }
509
509
  /**
510
510
  * @license
@@ -522,7 +522,7 @@ function Ft() {
522
522
  * See the License for the specific language governing permissions and
523
523
  * limitations under the License.
524
524
  */
525
- var we = 3, x = Oe();
525
+ var we = 3, x = Ae();
526
526
  function Rt(e, t, s) {
527
527
  if (t.staticsApplied = !0, !(!s || !s.length)) {
528
528
  if (t.hasEmptyAttrsArr()) {
@@ -545,9 +545,9 @@ function Rt(e, t, s) {
545
545
  z(e, o, s[x[o]]), delete x[o];
546
546
  }
547
547
  }
548
- function he(e, t, s) {
549
- process.env.NODE_ENV !== "production" && (B("elementOpen"), Ee("elementOpen"));
550
- var n = Ue(e, t), i = $(n);
548
+ function ue(e, t, s) {
549
+ process.env.NODE_ENV !== "production" && ($("elementOpen"), Ee("elementOpen"));
550
+ var n = Ue(e, t), i = B(n);
551
551
  i.staticsApplied || Rt(n, i, s);
552
552
  var r = Math.max(0, arguments.length - we), o = i.hasEmptyAttrsArr();
553
553
  if (!r && o)
@@ -574,35 +574,35 @@ function he(e, t, s) {
574
574
  }
575
575
  return n;
576
576
  }
577
- function Bt(e, t, s) {
578
- var n = J();
579
- process.env.NODE_ENV !== "production" && (B("elementOpenStart"), K(!0)), n[0] = e, n[1] = t, n[2] = s;
577
+ function $t(e, t, s) {
578
+ var n = Y();
579
+ process.env.NODE_ENV !== "production" && ($("elementOpenStart"), K(!0)), n[0] = e, n[1] = t, n[2] = s;
580
580
  }
581
- function $t(e) {
582
- var t = J();
581
+ function Bt(e) {
582
+ var t = Y();
583
583
  process.env.NODE_ENV !== "production" && (ce("key"), Z(t)), t[1] = e;
584
584
  }
585
585
  function jt(e, t) {
586
- var s = J();
586
+ var s = Y();
587
587
  process.env.NODE_ENV !== "production" && ce("attr"), s.push(e), s.push(t);
588
588
  }
589
589
  function Tt() {
590
- var e = J();
590
+ var e = Y();
591
591
  process.env.NODE_ENV !== "production" && (ce("elementOpenEnd"), K(!1)), Z(e);
592
- var t = he.apply(null, e);
592
+ var t = ue.apply(null, e);
593
593
  return le(e, 0), t;
594
594
  }
595
- function We(e) {
596
- process.env.NODE_ENV !== "production" && B("elementClose");
595
+ function Ve(e) {
596
+ process.env.NODE_ENV !== "production" && $("elementClose");
597
597
  var t = ze();
598
- return process.env.NODE_ENV !== "production" && pt($(t).nameOrCtor, e), t;
598
+ return process.env.NODE_ENV !== "production" && pt(B(t).nameOrCtor, e), t;
599
599
  }
600
600
  function Ut(e, t, s) {
601
- return he.apply(null, arguments), We(e);
601
+ return ue.apply(null, arguments), Ve(e);
602
602
  }
603
603
  function zt(e) {
604
- process.env.NODE_ENV !== "production" && (B("text"), Ee("text"));
605
- var t = kt(), s = $(t);
604
+ process.env.NODE_ENV !== "production" && ($("text"), Ee("text"));
605
+ var t = kt(), s = B(t);
606
606
  if (s.text !== e) {
607
607
  s.text = e;
608
608
  for (var n = e, i = 1; i < arguments.length; i += 1) {
@@ -629,13 +629,13 @@ function zt(e) {
629
629
  * See the License for the specific language governing permissions and
630
630
  * limitations under the License.
631
631
  */
632
- d.applyAttr = Ae;
632
+ d.applyAttr = Oe;
633
633
  d.applyProp = De;
634
- d.attributes = W;
634
+ d.attributes = V;
635
635
  d.close = ze;
636
- var ue = d.currentElement = It, se = d.currentPointer = Lt;
636
+ var he = d.currentElement = It, se = d.currentPointer = Lt;
637
637
  d.open = Ue;
638
- var Wt = d.patch = Re;
638
+ var Vt = d.patch = Re;
639
639
  d.patchInner = Re;
640
640
  d.patchOuter = Dt;
641
641
  d.skip = Ft;
@@ -646,22 +646,22 @@ d.importNode = Ie;
646
646
  d.isDataInitialized = Nt;
647
647
  d.notifications = U;
648
648
  d.symbols = oe;
649
- var _e = d.attr = jt, Vt = d.elementClose = We;
650
- d.elementOpen = he;
651
- var Ht = d.elementOpenEnd = Tt, qt = d.elementOpenStart = Bt;
649
+ var _e = d.attr = jt, Wt = d.elementClose = Ve;
650
+ d.elementOpen = ue;
651
+ var Ht = d.elementOpenEnd = Tt, qt = d.elementOpenStart = $t;
652
652
  d.elementVoid = Ut;
653
653
  var Gt = d.text = zt;
654
- d.key = $t;
654
+ d.key = Bt;
655
655
  function Ne(e) {
656
656
  let t = se();
657
- return t instanceof Comment && t.data !== e ? t.data = e : (t = document.createComment(e), ue().appendChild(t)), ne(), t;
657
+ return t instanceof Comment && t.data !== e ? t.data = e : (t = document.createComment(e), he().appendChild(t)), ne(), t;
658
658
  }
659
- let Ve = Je;
660
- function hs(e) {
661
- Ve = e;
659
+ let We = Ye;
660
+ function us(e) {
661
+ We = e;
662
662
  }
663
663
  function Xt() {
664
- return Ve;
664
+ return We;
665
665
  }
666
666
  const E = Symbol("ComponentMetadata"), _ = Object.freeze({
667
667
  has(e, t) {
@@ -685,7 +685,7 @@ function re(e) {
685
685
  else if (Array.isArray(t) && t.length > 0) {
686
686
  let s = se();
687
687
  if (Ne(He), s === null) {
688
- const n = ue();
688
+ const n = he();
689
689
  for (let i = 0; i < t.length; i += 1)
690
690
  n.contains(t[i]) || n.appendChild(t[i]), ne();
691
691
  }
@@ -707,19 +707,19 @@ function a(e, t, ...s) {
707
707
  for (const r of Object.keys(t))
708
708
  r.toUpperCase() === "CLASSNAME" ? _e("class", t[r]) : /^on[A-Z]/.test(r) ? n.push(r) : _e(r, t[r]);
709
709
  Ht(e);
710
- const i = ue();
710
+ const i = he();
711
711
  if (!i[xe]) {
712
712
  for (const r of n)
713
713
  i.addEventListener(r.substr(2).toLowerCase(), t[r]);
714
714
  i[xe] = !0;
715
715
  }
716
- re(s), Vt(e);
716
+ re(s), Wt(e);
717
717
  };
718
718
  }
719
719
  function qe(e, t) {
720
720
  customElements.get(e) || customElements.define(e, t);
721
721
  }
722
- function us(...e) {
722
+ function hs(...e) {
723
723
  for (const t of e)
724
724
  qe(_.get(t, "tag"), t);
725
725
  }
@@ -783,7 +783,7 @@ const ye = Symbol("Component Attribute Bindings"), j = Symbol("Component Class B
783
783
  },
784
784
  __doRender() {
785
785
  const e = this;
786
- e.__stopMutObs(), Wt(e, e.render(Xt())), e.__startMutObs();
786
+ e.__stopMutObs(), Vt(e, e.render(Xt())), e.__startMutObs();
787
787
  },
788
788
  update() {
789
789
  const e = this;
@@ -926,13 +926,13 @@ function Xe() {
926
926
  });
927
927
  };
928
928
  }
929
- var Ke = /* @__PURE__ */ ((e) => (e["7Z"] = "application/x-7z-compressed", e.AAC = "audio/aac", e.ABW = "application/x-abiword", e.ARC = "application/octet-stream", e.AVI = "video/x-msvideo", e.AZW = "application/vnd.amazon.ebook", e.BIN = "application/octet-stream", e.BMP = "image/bmp", e.BZ = "application/x-bzip", e.BZ2 = "application/x-bzip2", e.CER = "application/pkix-cert", e.CSH = "application/x-csh", e.CSS = "text/css", e.CSV = "text/csv,application/vnd.ms-excel", e.DOC = "application/msword", e.DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", e.EOT = "application/vnd.ms-fontobject", e.EPUB = "application/epub+zip", e.ES = "application/ecmascript", e.FLV = "video/x-flv", e.GIF = "image/gif", e.GZ = "application/x-gzip", e.HTM = "text/html", e.HTML = "text/html", e.ICO = "image/x-icon", e.ICS = "text/calendar", e.JAR = "application/java-archive", e.JPEG = "image/jpeg", e.JPG = "image/jpeg", e.JS = "application/javascript", e.JSON = "application/json", e.M3U = "audio/x-mpequrl", e.MID = "audio/midi", e.MIDI = "audio/midi", e.MOV = "video/quicktime", e.MP3 = "audio/mpeg3", e.MP4 = "video/mp4", e.MPEG = "video/mpeg", e.MPKG = "application/vnd.apple.installer+xml", e.ODP = "application/vnd.oasis.opendocument.presentation", e.ODS = "application/vnd.oasis.opendocument.spreadsheet", e.ODT = "application/vnd.oasis.opendocument.text", e.OGA = "audio/ogg", e.OGV = "video/ogg", e.OGX = "application/ogg", e.OTF = "font/otf", e.PNG = "image/png", e.PDF = "application/pdf", e.PPT = "application/vnd.ms-powerpoint", e.PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation", e.RAR = "application/x-rar-compressed", e.RTF = "application/rtf", e.SH = "application/x-sh", e.SVG = "image/svg+xml", e.SWF = "application/x-shockwave-flash", e.TAR = "application/x-tar", e.TIF = "image/tiff", e.TIFF = "image/tiff", e.TS = "application/typescript", e.TTF = "font/ttf", e.TXT = "text/plain", e.VSD = "application/vnd.visio", e.WAV = "audio/wav", e.WEBA = "audio/webm", e.WEBM = "video/webm", e.WEBP = "image/webp", e.WOFF = "font/woff", e.WOFF2 = "font/woff2", e.XHTML = "application/xhtml+xml", e.XLS = "application/vnd.ms-excel", e.XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", e.XML = "application/xml", e.XUL = "application/vnd.mozilla.xul+xml", e.ZIP = "application/zip", e))(Ke || {}), Zt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, m = (e, t, s, n) => {
930
- for (var i = n > 1 ? void 0 : n ? Jt(t, s) : t, r = e.length - 1, o; r >= 0; r--)
929
+ var Ke = /* @__PURE__ */ ((e) => (e["7Z"] = "application/x-7z-compressed", e.AAC = "audio/aac", e.ABW = "application/x-abiword", e.ARC = "application/octet-stream", e.AVI = "video/x-msvideo", e.AZW = "application/vnd.amazon.ebook", e.BIN = "application/octet-stream", e.BMP = "image/bmp", e.BZ = "application/x-bzip", e.BZ2 = "application/x-bzip2", e.CER = "application/pkix-cert", e.CSH = "application/x-csh", e.CSS = "text/css", e.CSV = "text/csv,application/vnd.ms-excel", e.DOC = "application/msword", e.DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", e.EOT = "application/vnd.ms-fontobject", e.EPUB = "application/epub+zip", e.ES = "application/ecmascript", e.FLV = "video/x-flv", e.GIF = "image/gif", e.GZ = "application/x-gzip", e.HTM = "text/html", e.HTML = "text/html", e.ICO = "image/x-icon", e.ICS = "text/calendar", e.JAR = "application/java-archive", e.JPEG = "image/jpeg", e.JPG = "image/jpeg", e.JS = "application/javascript", e.JSON = "application/json", e.M3U = "audio/x-mpequrl", e.MID = "audio/midi", e.MIDI = "audio/midi", e.MOV = "video/quicktime", e.MP3 = "audio/mpeg3", e.MP4 = "video/mp4", e.MPEG = "video/mpeg", e.MPKG = "application/vnd.apple.installer+xml", e.ODP = "application/vnd.oasis.opendocument.presentation", e.ODS = "application/vnd.oasis.opendocument.spreadsheet", e.ODT = "application/vnd.oasis.opendocument.text", e.OGA = "audio/ogg", e.OGV = "video/ogg", e.OGX = "application/ogg", e.OTF = "font/otf", e.PNG = "image/png", e.PDF = "application/pdf", e.PPT = "application/vnd.ms-powerpoint", e.PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation", e.RAR = "application/x-rar-compressed", e.RTF = "application/rtf", e.SH = "application/x-sh", e.SVG = "image/svg+xml", e.SWF = "application/x-shockwave-flash", e.TAR = "application/x-tar", e.TIF = "image/tiff", e.TIFF = "image/tiff", e.TS = "application/typescript", e.TTF = "font/ttf", e.TXT = "text/plain", e.VSD = "application/vnd.visio", e.WAV = "audio/wav", e.WEBA = "audio/webm", e.WEBM = "video/webm", e.WEBP = "image/webp", e.WOFF = "font/woff", e.WOFF2 = "font/woff2", e.XHTML = "application/xhtml+xml", e.XLS = "application/vnd.ms-excel", e.XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", e.XML = "application/xml", e.XUL = "application/vnd.mozilla.xul+xml", e.ZIP = "application/zip", e))(Ke || {}), Zt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, m = (e, t, s, n) => {
930
+ for (var i = n > 1 ? void 0 : n ? Yt(t, s) : t, r = e.length - 1, o; r >= 0; r--)
931
931
  (o = e[r]) && (i = (n ? o(t, s, i) : o(i)) || i);
932
932
  return n && i && Zt(t, s, i), i;
933
933
  };
934
934
  const g = "sps-file-upload";
935
- let u = class extends HTMLElement {
935
+ let h = class extends HTMLElement {
936
936
  constructor() {
937
937
  super(), this.shown = !0, this.files = [], this.acceptMIMETypes = /* @__PURE__ */ new Set(), this.active = !1, this.error = !1, this.namesOfUnsupportedFiles = [], this.handleBrowseLinkClick = this.handleBrowseLinkClick.bind(this), this.handleDownloadButtonClick = this.handleDownloadButtonClick.bind(this), this.handleFileInputChange = this.handleFileInputChange.bind(this), this.dismiss = this.dismiss.bind(this);
938
938
  }
@@ -964,13 +964,14 @@ let u = class extends HTMLElement {
964
964
  this.dismissable && (this.shown = !0, this.update());
965
965
  }
966
966
  render({ t: e }) {
967
- const t = this.error ? be.EXCLAMATION_CIRCLE : be.UPLOAD_CLOUD, s = (this.multiple ? e("design-system:fileUpload.instructions_plural") : e("design-system:fileUpload.instructions")).split("|");
968
- return /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("div", { className: `${g}__content` }, this.processing ? /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("i", { className: "sps-spinner sps-spinner--medium", "aria-hidden": "true" }), /* @__PURE__ */ a("div", { className: `${g}__instructions` }, e("design-system:fileUpload.processing"))) : /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("i", { className: `sps-icon sps-icon-${t} ${g}__icon-primary`, "aria-hidden": "true" }), /* @__PURE__ */ a("div", { className: `${g}__title` }, this.error ? /* @__PURE__ */ a("div", { "data-fragment": !0 }, e(
969
- this.namesOfUnsupportedFiles.length > 1 ? "design-system:fileUpload.cancelled_plural" : "design-system:fileUpload.cancelled"
970
- )) : /* @__PURE__ */ a("div", { "data-fragment": !0 }, e("design-system:fileUpload.title", { description: this.description }))), this.error ? /* @__PURE__ */ a("div", { className: `${g}__errored-files` }, new Set(this.namesOfUnsupportedFiles.map((n, i) => {
967
+ const t = this.error ? be.EXCLAMATION_CIRCLE : be.UPLOAD_CLOUD, s = (this.multiple ? e("design-system:fileUpload.instructions_plural", { defaultValue: "Drag and drop your files here or |browse for files| on your desktop." }) : e("design-system:fileUpload.instructions", { defaultValue: "Drag and drop your file here or |browse for a file| on your desktop." })).split("|");
968
+ return /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("div", { className: `${g}__content` }, this.processing ? /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("i", { className: "sps-spinner sps-spinner--medium", "aria-hidden": "true" }), /* @__PURE__ */ a("div", { className: `${g}__instructions` }, e("design-system:fileUpload.processing", { defaultValue: "Processing Upload..." }))) : /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("i", { className: `sps-icon sps-icon-${t} ${g}__icon-primary`, "aria-hidden": "true" }), /* @__PURE__ */ a("div", { className: `${g}__title` }, this.error ? /* @__PURE__ */ a("div", { "data-fragment": !0 }, e(
969
+ this.namesOfUnsupportedFiles.length > 1 ? "design-system:fileUpload.cancelled_plural" : "design-system:fileUpload.cancelled",
970
+ { defaultValue: this.namesOfUnsupportedFiles.length > 1 ? "File Upload(s) Failed" : "File Upload Failed" }
971
+ )) : /* @__PURE__ */ a("div", { "data-fragment": !0 }, e("design-system:fileUpload.title", { description: this.description, defaultValue: `Upload Your ${this.description}` }))), this.error ? /* @__PURE__ */ a("div", { className: `${g}__errored-files` }, new Set(this.namesOfUnsupportedFiles.map((n, i) => {
971
972
  const r = Math.floor(n.length / 2);
972
973
  return /* @__PURE__ */ a("div", { className: `${g}__errored-filename`, key: n }, /* @__PURE__ */ a("span", { className: `${g}__errored-filename-segment` }, n.substr(0, r)), /* @__PURE__ */ a("div", { className: `${g}__errored-filename-segment` }, /* @__PURE__ */ a("span", null, n.substr(r))), i < this.namesOfUnsupportedFiles.length - 1 ? "," : "");
973
- }))) : /* @__PURE__ */ a("span", null), /* @__PURE__ */ a("div", { className: `${g}__instructions` }, /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("span", null, s[0]), /* @__PURE__ */ a("a", { href: "", onClick: this.handleBrowseLinkClick }, s[1]), /* @__PURE__ */ a("span", null, s[2]))), /* @__PURE__ */ a("div", { className: `${g}__requirements` }, this.acceptExtensions ? /* @__PURE__ */ a("span", null, "(", " ", e("design-system:fileUpload.acceptedTypes", { fileTypes: this.acceptExtensionsDescription }), " ", ")") : "", this.maxSize ? /* @__PURE__ */ a("span", null, "(", " ", e("design-system:fileUpload.maximumSize", { size: this.maxSize }), " ", ")") : "", this.customRequirement ? /* @__PURE__ */ a("span", null, " ", this.customRequirement, " ") : ""), this.downloadLabel && /* @__PURE__ */ a(
974
+ }))) : /* @__PURE__ */ a("span", null), /* @__PURE__ */ a("div", { className: `${g}__instructions` }, /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("span", null, s[0]), /* @__PURE__ */ a("a", { href: "", onClick: this.handleBrowseLinkClick }, s[1]), /* @__PURE__ */ a("span", null, s[2]))), /* @__PURE__ */ a("div", { className: `${g}__requirements` }, this.acceptExtensions ? /* @__PURE__ */ a("span", null, "(", " ", e("design-system:fileUpload.acceptedTypes", { fileTypes: this.acceptExtensionsDescription, defaultValue: `${this.acceptExtensionsDescription} format accepted` }), " ", ")") : "", this.maxSize ? /* @__PURE__ */ a("span", null, "(", " ", e("design-system:fileUpload.maximumSize", { size: this.maxSize, defaultValue: `${this.maxSize} maximum` }), " ", ")") : "", this.customRequirement ? /* @__PURE__ */ a("span", null, " ", this.customRequirement, " ") : ""), this.downloadLabel && /* @__PURE__ */ a(
974
975
  "div",
975
976
  {
976
977
  className: `sps-button sps-button--link ${g}__download-button`,
@@ -983,7 +984,7 @@ let u = class extends HTMLElement {
983
984
  className: `sps-button sps-button--icon ${g}__close-button`,
984
985
  onClick: this.dismiss
985
986
  },
986
- /* @__PURE__ */ a("button", { type: "button", title: e("design-system:fileUpload.close") }, /* @__PURE__ */ a("i", { className: "sps-icon sps-icon-x", "aria-hidden": "true" }))
987
+ /* @__PURE__ */ a("button", { type: "button", title: e("design-system:fileUpload.close", { defaultValue: "Close" }) }, /* @__PURE__ */ a("i", { className: "sps-icon sps-icon-x", "aria-hidden": "true" }))
987
988
  ), /* @__PURE__ */ a("form", null, /* @__PURE__ */ a(
988
989
  "input",
989
990
  {
@@ -1041,8 +1042,8 @@ let u = class extends HTMLElement {
1041
1042
  e.stopPropagation(), this.selectFiles(e.target.files);
1042
1043
  }
1043
1044
  };
1044
- u.displayName = g;
1045
- u.props = {
1045
+ h.displayName = g;
1046
+ h.props = {
1046
1047
  description: "string",
1047
1048
  multiple: "boolean",
1048
1049
  dismissable: "boolean",
@@ -1058,64 +1059,64 @@ u.props = {
1058
1059
  };
1059
1060
  m([
1060
1061
  c()
1061
- ], u.prototype, "description", 2);
1062
+ ], h.prototype, "description", 2);
1062
1063
  m([
1063
1064
  c(Boolean)
1064
- ], u.prototype, "multiple", 2);
1065
+ ], h.prototype, "multiple", 2);
1065
1066
  m([
1066
1067
  c(Boolean)
1067
- ], u.prototype, "shown", 2);
1068
+ ], h.prototype, "shown", 2);
1068
1069
  m([
1069
1070
  c(Boolean)
1070
- ], u.prototype, "dismissable", 2);
1071
+ ], h.prototype, "dismissable", 2);
1071
1072
  m([
1072
1073
  c(Boolean)
1073
- ], u.prototype, "processing", 2);
1074
+ ], h.prototype, "processing", 2);
1074
1075
  m([
1075
1076
  c(Boolean)
1076
- ], u.prototype, "mini", 2);
1077
+ ], h.prototype, "mini", 2);
1077
1078
  m([
1078
1079
  c(Boolean)
1079
- ], u.prototype, "constrainContentWidth", 2);
1080
+ ], h.prototype, "constrainContentWidth", 2);
1080
1081
  m([
1081
1082
  c()
1082
- ], u.prototype, "downloadLabel", 2);
1083
+ ], h.prototype, "downloadLabel", 2);
1083
1084
  m([
1084
1085
  c()
1085
- ], u.prototype, "acceptExtensions", 2);
1086
+ ], h.prototype, "acceptExtensions", 2);
1086
1087
  m([
1087
1088
  c()
1088
- ], u.prototype, "maxSize", 2);
1089
+ ], h.prototype, "maxSize", 2);
1089
1090
  m([
1090
1091
  c()
1091
- ], u.prototype, "customRequirement", 2);
1092
+ ], h.prototype, "customRequirement", 2);
1092
1093
  m([
1093
1094
  ge()
1094
- ], u.prototype, "selection", 2);
1095
+ ], h.prototype, "selection", 2);
1095
1096
  m([
1096
1097
  ge()
1097
- ], u.prototype, "dismissal", 2);
1098
+ ], h.prototype, "dismissal", 2);
1098
1099
  m([
1099
1100
  ge()
1100
- ], u.prototype, "download", 2);
1101
+ ], h.prototype, "download", 2);
1101
1102
  m([
1102
1103
  me("input[type='file']")
1103
- ], u.prototype, "fileInput", 2);
1104
+ ], h.prototype, "fileInput", 2);
1104
1105
  m([
1105
1106
  M("dragover")
1106
- ], u.prototype, "handleDragOver", 1);
1107
+ ], h.prototype, "handleDragOver", 1);
1107
1108
  m([
1108
1109
  M("dragenter")
1109
- ], u.prototype, "handleDragEnter", 1);
1110
+ ], h.prototype, "handleDragEnter", 1);
1110
1111
  m([
1111
1112
  M("dragleave")
1112
- ], u.prototype, "handleDragLeave", 1);
1113
+ ], h.prototype, "handleDragLeave", 1);
1113
1114
  m([
1114
1115
  M("drop")
1115
- ], u.prototype, "handleDrop", 1);
1116
- u = m([
1116
+ ], h.prototype, "handleDrop", 1);
1117
+ h = m([
1117
1118
  T({ tag: g })
1118
- ], u);
1119
+ ], h);
1119
1120
  const gs = {
1120
1121
  basic: {
1121
1122
  label: "Basic File Upload",
@@ -1436,15 +1437,15 @@ const gs = {
1436
1437
  }
1437
1438
  }
1438
1439
  };
1439
- var Yt = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, A = (e, t, s, n) => {
1440
+ var Jt = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, O = (e, t, s, n) => {
1440
1441
  for (var i = n > 1 ? void 0 : n ? Mt(t, s) : t, r = e.length - 1, o; r >= 0; r--)
1441
1442
  (o = e[r]) && (i = (n ? o(t, s, i) : o(i)) || i);
1442
- return n && i && Yt(t, s, i), i;
1443
+ return n && i && Jt(t, s, i), i;
1443
1444
  };
1444
1445
  const w = "sps-insight-card";
1445
1446
  let N = class extends HTMLElement {
1446
1447
  constructor() {
1447
- super(...arguments), this.kind = Ye.GENERAL;
1448
+ super(...arguments), this.kind = Je.GENERAL;
1448
1449
  }
1449
1450
  get [j]() {
1450
1451
  return [
@@ -1465,8 +1466,8 @@ let N = class extends HTMLElement {
1465
1466
  r,
1466
1467
  o,
1467
1468
  p
1468
- ] = (n ? e("design-system:insightCard.partnerCount", { count: n, total: i }) : "").split("|");
1469
- return /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("div", { className: `${w}__body` }, this.icon ? /* @__PURE__ */ a("i", { className: `sps-icon sps-icon-${this.icon}` }) : /* @__PURE__ */ a("i", { className: `sps-icon sps-icon-${Me[this.kind]}` }), t, s), n && /* @__PURE__ */ a("div", { className: `${w}__partner-count` }, n === i ? /* @__PURE__ */ a("div", null, e("design-system:insightCard.all")) : /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("div", null, r), /* @__PURE__ */ a("div", null, o), /* @__PURE__ */ a("div", null, p)), /* @__PURE__ */ a("div", { className: `${w}__partners-text` }, e("design-system:insightCard.partners"))));
1469
+ ] = (n ? e("design-system:insightCard.partnerCount", { count: n, total: i, defaultValue: `${n} |of| ${i}` }) : "").split("|");
1470
+ return /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("div", { className: `${w}__body` }, this.icon ? /* @__PURE__ */ a("i", { className: `sps-icon sps-icon-${this.icon}` }) : /* @__PURE__ */ a("i", { className: `sps-icon sps-icon-${Me[this.kind]}` }), t, s), n && /* @__PURE__ */ a("div", { className: `${w}__partner-count` }, n === i ? /* @__PURE__ */ a("div", null, e("design-system:insightCard.all", { defaultValue: "ALL" })) : /* @__PURE__ */ a("div", { "data-fragment": !0 }, /* @__PURE__ */ a("div", null, r), /* @__PURE__ */ a("div", null, o), /* @__PURE__ */ a("div", null, p)), /* @__PURE__ */ a("div", { className: `${w}__partners-text` }, e("design-system:insightCard.partners", { defaultValue: "PARTNERS" }))));
1470
1471
  }
1471
1472
  };
1472
1473
  N.displayName = w;
@@ -1479,34 +1480,34 @@ N.props = {
1479
1480
  totalPartners: "number",
1480
1481
  secondary: "boolean"
1481
1482
  };
1482
- A([
1483
+ O([
1483
1484
  c()
1484
1485
  ], N.prototype, "icon", 2);
1485
- A([
1486
+ O([
1486
1487
  c()
1487
1488
  ], N.prototype, "kind", 2);
1488
- A([
1489
+ O([
1489
1490
  c()
1490
1491
  ], N.prototype, "title", 2);
1491
- A([
1492
+ O([
1492
1493
  c()
1493
1494
  ], N.prototype, "metric", 2);
1494
- A([
1495
+ O([
1495
1496
  c()
1496
1497
  ], N.prototype, "partnerCount", 2);
1497
- A([
1498
+ O([
1498
1499
  c()
1499
1500
  ], N.prototype, "totalPartners", 2);
1500
- A([
1501
+ O([
1501
1502
  c()
1502
1503
  ], N.prototype, "secondary", 2);
1503
- A([
1504
+ O([
1504
1505
  fe()
1505
1506
  ], N.prototype, "content", 2);
1506
- A([
1507
+ O([
1507
1508
  me(`.${w}__detail`)
1508
1509
  ], N.prototype, "detail", 2);
1509
- N = A([
1510
+ N = O([
1510
1511
  T({ tag: w })
1511
1512
  ], N);
1512
1513
  var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, ve = (e, t, s, n) => {
@@ -1890,7 +1891,7 @@ var ss = Object.defineProperty, ns = Object.getOwnPropertyDescriptor, I = (e, t,
1890
1891
  (o = e[r]) && (i = (n ? o(t, s, i) : o(i)) || i);
1891
1892
  return n && i && ss(t, s, i), i;
1892
1893
  };
1893
- let O = class extends HTMLElement {
1894
+ let A = class extends HTMLElement {
1894
1895
  constructor() {
1895
1896
  super(...arguments), this.active = !1, this.label = "", this.tag = "";
1896
1897
  }
@@ -1904,8 +1905,8 @@ let O = class extends HTMLElement {
1904
1905
  return /* @__PURE__ */ a("a", { href: this.href, target: this.target, className: "sps-tabbed-nav__nav-item-link", tabIndex: 0 }, this.icon && /* @__PURE__ */ a("i", { className: `sps-icon sps-icon-${this.icon}` }), this.label && /* @__PURE__ */ a("span", null, this.label), this.tag && /* @__PURE__ */ a("span", { className: "sps-tag sps-tag--default" }, this.tag));
1905
1906
  }
1906
1907
  };
1907
- O.displayName = "sps-nav-tab";
1908
- O.props = {
1908
+ A.displayName = "sps-nav-tab";
1909
+ A.props = {
1909
1910
  active: "boolean",
1910
1911
  label: "string",
1911
1912
  icon: "SpsIcon",
@@ -1915,25 +1916,25 @@ O.props = {
1915
1916
  };
1916
1917
  I([
1917
1918
  c()
1918
- ], O.prototype, "active", 2);
1919
+ ], A.prototype, "active", 2);
1919
1920
  I([
1920
1921
  c()
1921
- ], O.prototype, "label", 2);
1922
+ ], A.prototype, "label", 2);
1922
1923
  I([
1923
1924
  c()
1924
- ], O.prototype, "icon", 2);
1925
+ ], A.prototype, "icon", 2);
1925
1926
  I([
1926
1927
  c()
1927
- ], O.prototype, "tag", 2);
1928
+ ], A.prototype, "tag", 2);
1928
1929
  I([
1929
1930
  c()
1930
- ], O.prototype, "href", 2);
1931
+ ], A.prototype, "href", 2);
1931
1932
  I([
1932
1933
  c()
1933
- ], O.prototype, "target", 2);
1934
- O = I([
1934
+ ], A.prototype, "target", 2);
1935
+ A = I([
1935
1936
  T({ tag: "sps-nav-tab" })
1936
- ], O);
1937
+ ], A);
1937
1938
  var is = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, Qe = (e, t, s, n) => {
1938
1939
  for (var i = n > 1 ? void 0 : n ? rs(t, s) : t, r = e.length - 1, o; r >= 0; r--)
1939
1940
  (o = e[r]) && (i = (n ? o(t, s, i) : o(i)) || i);
@@ -2232,12 +2233,12 @@ export {
2232
2233
  c as Prop,
2233
2234
  me as QuerySelector,
2234
2235
  Qt as QuerySelectorAll,
2235
- u as SpsFileUploadComponent,
2236
+ h as SpsFileUploadComponent,
2236
2237
  gs as SpsFileUploadExamples,
2237
2238
  N as SpsInsightCardComponent,
2238
2239
  ms as SpsInsightCardExamples,
2239
2240
  R as SpsInsightsComponent,
2240
- O as SpsNavTabComponent,
2241
+ A as SpsNavTabComponent,
2241
2242
  H as SpsNavTabSetComponent,
2242
2243
  vs as SpsNavTabsExamples,
2243
2244
  y as SpsPhotoComponent,
@@ -2247,6 +2248,6 @@ export {
2247
2248
  Xe as Watch,
2248
2249
  a as h,
2249
2250
  fs as namespaceOverrideRegistrar,
2250
- us as register,
2251
- hs as webComponentsUseI18n
2251
+ hs as register,
2252
+ us as webComponentsUseI18n
2252
2253
  };