@pontive/pontkit-core 1.3.3 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -981,8 +981,8 @@ const Ml = "-", _g = (t) => {
981
981
  i.push(q);
982
982
  const B = r(E, S);
983
983
  for (let M = 0; M < B.length; ++M) {
984
- const dt = B[M];
985
- i.push(R + dt);
984
+ const pt = B[M];
985
+ i.push(R + pt);
986
986
  }
987
987
  c = g + (c.length > 0 ? " " + c : c);
988
988
  }
@@ -1019,7 +1019,7 @@ function Tg(t, ...e) {
1019
1019
  return i(Ag.apply(null, arguments));
1020
1020
  };
1021
1021
  }
1022
- const pt = (t) => {
1022
+ const ht = (t) => {
1023
1023
  const e = (n) => n[t] || [];
1024
1024
  return e.isThemeGetter = !0, e;
1025
1025
  }, Ch = /^\[(?:([a-z-]+):)?(.+)\]$/i, Dg = /^\d+\/\d+$/, Lg = /* @__PURE__ */ new Set(["px", "full", "screen"]), kg = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ng = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, jg = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ug = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, fr = (t) => Wn(t) || Lg.has(t) || Dg.test(t), Tr = (t) => ao(t, "length", Kg), Wn = (t) => !!t && !Number.isNaN(Number(t)), Js = (t) => ao(t, "number", Wn), Io = (t) => !!t && Number.isInteger(Number(t)), qg = (t) => t.endsWith("%") && Wn(t.slice(0, -1)), W = (t) => Ch.test(t), Dr = (t) => kg.test(t), Bg = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Fg = (t) => ao(t, Bg, Eh), zg = (t) => ao(t, "position", Eh), Vg = /* @__PURE__ */ new Set(["image", "url"]), Hg = (t) => ao(t, Vg, Yg), Gg = (t) => ao(t, "", Wg), Ao = () => !0, ao = (t, e, n) => {
@@ -1031,7 +1031,7 @@ const pt = (t) => {
1031
1031
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1032
1032
  Mg.test(t) && !Ng.test(t)
1033
1033
  ), Eh = () => !1, Wg = (t) => jg.test(t), Yg = (t) => Ug.test(t), Zg = () => {
1034
- const t = pt("colors"), e = pt("spacing"), n = pt("blur"), o = pt("brightness"), r = pt("borderColor"), i = pt("borderRadius"), s = pt("borderSpacing"), c = pt("borderWidth"), d = pt("contrast"), g = pt("grayscale"), v = pt("hueRotate"), y = pt("invert"), w = pt("gap"), _ = pt("gradientColorStops"), S = pt("gradientColorStopPositions"), E = pt("inset"), L = pt("margin"), R = pt("opacity"), q = pt("padding"), B = pt("saturate"), M = pt("scale"), dt = pt("sepia"), k = pt("skew"), j = pt("space"), U = pt("translate"), I = () => ["auto", "contain", "none"], V = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", W, e], C = () => [W, e], z = () => ["", fr, Tr], K = () => ["auto", Wn, W], Ee = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], qe = () => ["solid", "dashed", "dotted", "double", "none"], xi = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Mn = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], en = () => ["", "0", W], Nn = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Jt = () => [Wn, W];
1034
+ const t = ht("colors"), e = ht("spacing"), n = ht("blur"), o = ht("brightness"), r = ht("borderColor"), i = ht("borderRadius"), s = ht("borderSpacing"), c = ht("borderWidth"), d = ht("contrast"), g = ht("grayscale"), v = ht("hueRotate"), y = ht("invert"), w = ht("gap"), _ = ht("gradientColorStops"), S = ht("gradientColorStopPositions"), E = ht("inset"), L = ht("margin"), R = ht("opacity"), q = ht("padding"), B = ht("saturate"), M = ht("scale"), pt = ht("sepia"), k = ht("skew"), j = ht("space"), U = ht("translate"), I = () => ["auto", "contain", "none"], V = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", W, e], C = () => [W, e], z = () => ["", fr, Tr], K = () => ["auto", Wn, W], Ee = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], qe = () => ["solid", "dashed", "dotted", "double", "none"], xi = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Mn = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], en = () => ["", "0", W], Nn = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Qt = () => [Wn, W];
1035
1035
  return {
1036
1036
  cacheSize: 500,
1037
1037
  separator: ":",
@@ -1039,26 +1039,26 @@ const pt = (t) => {
1039
1039
  colors: [Ao],
1040
1040
  spacing: [fr, Tr],
1041
1041
  blur: ["none", "", Dr, W],
1042
- brightness: Jt(),
1042
+ brightness: Qt(),
1043
1043
  borderColor: [t],
1044
1044
  borderRadius: ["none", "", "full", Dr, W],
1045
1045
  borderSpacing: C(),
1046
1046
  borderWidth: z(),
1047
- contrast: Jt(),
1047
+ contrast: Qt(),
1048
1048
  grayscale: en(),
1049
- hueRotate: Jt(),
1049
+ hueRotate: Qt(),
1050
1050
  invert: en(),
1051
1051
  gap: C(),
1052
1052
  gradientColorStops: [t],
1053
1053
  gradientColorStopPositions: [qg, Tr],
1054
1054
  inset: F(),
1055
1055
  margin: F(),
1056
- opacity: Jt(),
1056
+ opacity: Qt(),
1057
1057
  padding: C(),
1058
- saturate: Jt(),
1059
- scale: Jt(),
1058
+ saturate: Qt(),
1059
+ scale: Qt(),
1060
1060
  sepia: en(),
1061
- skew: Jt(),
1061
+ skew: Qt(),
1062
1062
  space: C(),
1063
1063
  translate: C()
1064
1064
  },
@@ -2504,7 +2504,7 @@ const pt = (t) => {
2504
2504
  * @see https://tailwindcss.com/docs/sepia
2505
2505
  */
2506
2506
  sepia: [{
2507
- sepia: [dt]
2507
+ sepia: [pt]
2508
2508
  }],
2509
2509
  /**
2510
2510
  * Backdrop Filter
@@ -2575,7 +2575,7 @@ const pt = (t) => {
2575
2575
  * @see https://tailwindcss.com/docs/backdrop-sepia
2576
2576
  */
2577
2577
  "backdrop-sepia": [{
2578
- "backdrop-sepia": [dt]
2578
+ "backdrop-sepia": [pt]
2579
2579
  }],
2580
2580
  // Tables
2581
2581
  /**
@@ -2633,7 +2633,7 @@ const pt = (t) => {
2633
2633
  * @see https://tailwindcss.com/docs/transition-duration
2634
2634
  */
2635
2635
  duration: [{
2636
- duration: Jt()
2636
+ duration: Qt()
2637
2637
  }],
2638
2638
  /**
2639
2639
  * Transition Timing Function
@@ -2647,7 +2647,7 @@ const pt = (t) => {
2647
2647
  * @see https://tailwindcss.com/docs/transition-delay
2648
2648
  */
2649
2649
  delay: [{
2650
- delay: Jt()
2650
+ delay: Qt()
2651
2651
  }],
2652
2652
  /**
2653
2653
  * Animation
@@ -4955,7 +4955,7 @@ let Qn = class extends f {
4955
4955
  this.currentDate.getFullYear(),
4956
4956
  y.month,
4957
4957
  Number(y.day)
4958
- ), S = !1, E = _.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), L = this.mode === "range" && _.toDateString() === ((U = this.selectedStartDate) == null ? void 0 : U.toDateString()), R = this.mode === "range" && this.isDayInRange(_, !0), q = this.mode === "range" && _.toDateString() === ((I = this.selectedEndDate) == null ? void 0 : I.toDateString()), B = this.mode === "single" && _.toDateString() === ((V = this.selectedStartDate) == null ? void 0 : V.toDateString()), M = B || L || R || q, dt = w === 0, k = w === 6;
4958
+ ), S = !1, E = _.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), L = this.mode === "range" && _.toDateString() === ((U = this.selectedStartDate) == null ? void 0 : U.toDateString()), R = this.mode === "range" && this.isDayInRange(_, !0), q = this.mode === "range" && _.toDateString() === ((I = this.selectedEndDate) == null ? void 0 : I.toDateString()), B = this.mode === "single" && _.toDateString() === ((V = this.selectedStartDate) == null ? void 0 : V.toDateString()), M = B || L || R || q, pt = w === 0, k = w === 6;
4959
4959
  let j = E ? "Today, " : "";
4960
4960
  return j += rf(_), j += M ? ", selected" : "", l`
4961
4961
  <td
@@ -4968,7 +4968,7 @@ let Qn = class extends f {
4968
4968
  L && rt.day.selected.range.start,
4969
4969
  R && rt.day.selected.range.middle,
4970
4970
  q && rt.day.selected.range.end,
4971
- dt && rt.day.index.first,
4971
+ pt && rt.day.index.first,
4972
4972
  k && rt.day.index.last,
4973
4973
  S
4974
4974
  )}
@@ -5446,7 +5446,7 @@ function Pf() {
5446
5446
  </svg>
5447
5447
  `;
5448
5448
  }
5449
- const ie = {
5449
+ const se = {
5450
5450
  root: [
5451
5451
  "pont-relative pont-mx-carousel-space-mx pont-h-carousel-space-h pont-w-carousel-space-w"
5452
5452
  ],
@@ -5530,8 +5530,8 @@ let pn = class extends f {
5530
5530
  }
5531
5531
  getSlideClasses() {
5532
5532
  return u(
5533
- ie.slide.base,
5534
- this.size ? ie.slide.size.true : ie.slide.size.false
5533
+ se.slide.base,
5534
+ this.size ? se.slide.size.true : se.slide.size.false
5535
5535
  );
5536
5536
  }
5537
5537
  nextSlide() {
@@ -5554,26 +5554,26 @@ let pn = class extends f {
5554
5554
  }
5555
5555
  render() {
5556
5556
  const t = this.currentIndex === 0, e = this.size ? window.innerWidth >= 1024 ? 3 : window.innerWidth >= 768 ? 2 : 1 : 1, n = this.currentIndex >= this.items.length - e, o = u(
5557
- ie.slidesWrapper.base,
5558
- ie.slidesWrapper.orientation[this.orientation]
5557
+ se.slidesWrapper.base,
5558
+ se.slidesWrapper.orientation[this.orientation]
5559
5559
  ), r = u(
5560
- ie.controls.base,
5561
- ie.controls.orientation[this.orientation]
5560
+ se.controls.base,
5561
+ se.controls.orientation[this.orientation]
5562
5562
  ), i = u(
5563
- ie.controlButton.base,
5564
- this.orientation === "vertical" && ie.controlButton.orientation.verticalPrev
5563
+ se.controlButton.base,
5564
+ this.orientation === "vertical" && se.controlButton.orientation.verticalPrev
5565
5565
  ), s = u(
5566
- ie.controlButton.base,
5567
- this.orientation === "vertical" && ie.controlButton.orientation.verticalNext
5566
+ se.controlButton.base,
5567
+ this.orientation === "vertical" && se.controlButton.orientation.verticalNext
5568
5568
  );
5569
5569
  return l`
5570
5570
  <div
5571
5571
  part="pont-carousel"
5572
- class="${u(ie.root, this.className)}"
5572
+ class="${u(se.root, this.className)}"
5573
5573
  size="${this.size}"
5574
5574
  orientation="${this.orientation}"
5575
5575
  >
5576
- <div class="${u(ie.viewport, this.className)}">
5576
+ <div class="${u(se.viewport, this.className)}">
5577
5577
  <div class="slides ${o}"></div>
5578
5578
 
5579
5579
  <div class="${r}">
@@ -6010,7 +6010,7 @@ let Ua = class extends b {
6010
6010
  }
6011
6011
  get _comboBox() {
6012
6012
  let t = this.parentElement;
6013
- for (; t && !(t instanceof te); )
6013
+ for (; t && !(t instanceof ee); )
6014
6014
  t = t.parentElement;
6015
6015
  return t;
6016
6016
  }
@@ -6064,7 +6064,7 @@ let qa = class extends f {
6064
6064
  }
6065
6065
  get _comboBox() {
6066
6066
  let t = this.parentElement;
6067
- for (; t && !(t instanceof te); )
6067
+ for (; t && !(t instanceof ee); )
6068
6068
  t = t.parentElement;
6069
6069
  return t;
6070
6070
  }
@@ -6208,7 +6208,7 @@ let hn = class extends b {
6208
6208
  }
6209
6209
  get _comboBox() {
6210
6210
  let t = this.parentElement;
6211
- for (; t && !(t instanceof te); )
6211
+ for (; t && !(t instanceof ee); )
6212
6212
  t = t.parentElement;
6213
6213
  return t;
6214
6214
  }
@@ -6508,7 +6508,7 @@ var Xf = Object.defineProperty, tv = Object.getOwnPropertyDescriptor, nr = (t, e
6508
6508
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
6509
6509
  return o && r && Xf(e, n, r), r;
6510
6510
  };
6511
- let te = class extends b {
6511
+ let ee = class extends b {
6512
6512
  constructor() {
6513
6513
  super(), this.isOpen = !1, this.selectedValue = "", this.searchTerm = "", this.focusedIndex = -1, this.filteredItems = [], this.uuid = Ll(), this.label = "Select an item", this.items = [], this.handleClickOutside = (t) => {
6514
6514
  var o;
@@ -6574,34 +6574,34 @@ let te = class extends b {
6574
6574
  };
6575
6575
  nr([
6576
6576
  a({ type: Boolean })
6577
- ], te.prototype, "isOpen", 2);
6577
+ ], ee.prototype, "isOpen", 2);
6578
6578
  nr([
6579
6579
  m()
6580
- ], te.prototype, "selectedValue", 2);
6580
+ ], ee.prototype, "selectedValue", 2);
6581
6581
  nr([
6582
6582
  m()
6583
- ], te.prototype, "searchTerm", 2);
6583
+ ], ee.prototype, "searchTerm", 2);
6584
6584
  nr([
6585
6585
  m()
6586
- ], te.prototype, "focusedIndex", 2);
6586
+ ], ee.prototype, "focusedIndex", 2);
6587
6587
  nr([
6588
6588
  m()
6589
- ], te.prototype, "filteredItems", 2);
6589
+ ], ee.prototype, "filteredItems", 2);
6590
6590
  nr([
6591
6591
  m()
6592
- ], te.prototype, "uuid", 2);
6592
+ ], ee.prototype, "uuid", 2);
6593
6593
  nr([
6594
6594
  a({ type: String })
6595
- ], te.prototype, "label", 2);
6595
+ ], ee.prototype, "label", 2);
6596
6596
  nr([
6597
6597
  a({ type: Array })
6598
- ], te.prototype, "items", 2);
6598
+ ], ee.prototype, "items", 2);
6599
6599
  nr([
6600
6600
  ci('[part="combo-box"]')
6601
- ], te.prototype, "parentDiveElement", 2);
6602
- te = nr([
6601
+ ], ee.prototype, "parentDiveElement", 2);
6602
+ ee = nr([
6603
6603
  p("pont-combo-box")
6604
- ], te);
6604
+ ], ee);
6605
6605
  const We = {
6606
6606
  root: [
6607
6607
  "pont-flex pont-overflow-hidden",
@@ -7095,7 +7095,7 @@ let hd = class extends b {
7095
7095
  hd = gv([
7096
7096
  p("pont-command")
7097
7097
  ], hd);
7098
- const Qt = {
7098
+ const Xt = {
7099
7099
  root: [""],
7100
7100
  content: [
7101
7101
  "pont-overflow-x-hidden pont-overflow-y-auto pont-z-50",
@@ -7233,9 +7233,9 @@ let mn = class extends b {
7233
7233
  @mouseover="${this.handleMouseEvent}"
7234
7234
  @mouseleave="${this.handleMouseEvent}"
7235
7235
  @focus="${this.handleMouseEvent}"
7236
- class=${u(Qt.checkboxItem.base, this.className)}
7236
+ class=${u(Xt.checkboxItem.base, this.className)}
7237
7237
  >
7238
- <span class=${u(Qt.checkboxItem.span)}>
7238
+ <span class=${u(Xt.checkboxItem.span)}>
7239
7239
  ${this.checked ? l`
7240
7240
  <svg
7241
7241
  xmlns="http://www.w3.org/2000/svg"
@@ -7248,7 +7248,7 @@ let mn = class extends b {
7248
7248
  stroke-linecap="round"
7249
7249
  stroke-linejoin="round"
7250
7250
  class=${u(
7251
- Qt.checkboxItem.icon,
7251
+ Xt.checkboxItem.icon,
7252
7252
  "lucide lucide-check-icon lucide-check"
7253
7253
  )}
7254
7254
  >
@@ -7316,7 +7316,7 @@ let Ba = class extends b {
7316
7316
  return l`
7317
7317
  <div
7318
7318
  part="context-menu-content"
7319
- class=${u(Qt.content, this.className)}
7319
+ class=${u(Xt.content, this.className)}
7320
7320
  ></div>
7321
7321
  `;
7322
7322
  }
@@ -7354,9 +7354,9 @@ let Fa = class extends b {
7354
7354
  rtgcmd-group
7355
7355
  part="context-menu-group"
7356
7356
  role="presentation"
7357
- class=${u(Qt.group, this.className)}
7357
+ class=${u(Xt.group, this.className)}
7358
7358
  >
7359
- <div rtgcmd-group-heading class=${u(Qt.label)}>
7359
+ <div rtgcmd-group-heading class=${u(Xt.label)}>
7360
7360
  ${this.heading}
7361
7361
  </div>
7362
7362
 
@@ -7423,7 +7423,7 @@ let Ki = class extends b {
7423
7423
  role="option"
7424
7424
  data-value="${this.value}"
7425
7425
  ?data-disabled=${this.disabled}
7426
- class=${u(Qt.item, this.className)}
7426
+ class=${u(Xt.item, this.className)}
7427
7427
  ></div>
7428
7428
  `;
7429
7429
  }
@@ -7484,9 +7484,9 @@ let fn = class extends b {
7484
7484
  @mouseover="${this.handleMouseEvent}"
7485
7485
  @mouseleave="${this.handleMouseEvent}"
7486
7486
  @focus="${this.handleMouseEvent}"
7487
- class=${u(Qt.radioItem.base, this.className)}
7487
+ class=${u(Xt.radioItem.base, this.className)}
7488
7488
  >
7489
- <span class=${u(Qt.radioItem.span)}>
7489
+ <span class=${u(Xt.radioItem.span)}>
7490
7490
  ${this.checked ? l`<svg
7491
7491
  xmlns="http://www.w3.org/2000/svg"
7492
7492
  width="24"
@@ -7498,7 +7498,7 @@ let fn = class extends b {
7498
7498
  stroke-linecap="round"
7499
7499
  stroke-linejoin="round"
7500
7500
  class=${u(
7501
- Qt.radioItem.icon,
7501
+ Xt.radioItem.icon,
7502
7502
  "lucide lucide-circle-icon lucide-circle"
7503
7503
  )}
7504
7504
  >
@@ -7546,7 +7546,7 @@ let za = class extends f {
7546
7546
  rtgcmd-separator
7547
7547
  part="context-menu-separator"
7548
7548
  role="separator"
7549
- class=${u(Qt.separator, this.className)}
7549
+ class=${u(Xt.separator, this.className)}
7550
7550
  ></div>
7551
7551
  `;
7552
7552
  }
@@ -7570,7 +7570,7 @@ let ud = class extends b {
7570
7570
  return [];
7571
7571
  }
7572
7572
  createRenderRoot() {
7573
- return this.classList = u(Qt.shortcut), this;
7573
+ return this.classList = u(Xt.shortcut), this;
7574
7574
  }
7575
7575
  firstUpdated(t) {
7576
7576
  this.moveLightDomChildrenInto(this._containerElement);
@@ -7579,7 +7579,7 @@ let ud = class extends b {
7579
7579
  return l`
7580
7580
  <span
7581
7581
  part="context-menu-shortcut"
7582
- class=${u(Qt.shortcut, this.className)}
7582
+ class=${u(Xt.shortcut, this.className)}
7583
7583
  >
7584
7584
  </span>
7585
7585
  `;
@@ -7672,7 +7672,7 @@ let Va = class extends b {
7672
7672
  return l`
7673
7673
  <div
7674
7674
  part="context-menu"
7675
- class=${u(Qt.root, this.className)}
7675
+ class=${u(Xt.root, this.className)}
7676
7676
  ></div>
7677
7677
  `;
7678
7678
  }
@@ -8742,7 +8742,7 @@ Kh([
8742
8742
  Wo = Kh([
8743
8743
  p("pont-drawer")
8744
8744
  ], Wo);
8745
- const Xt = {
8745
+ const te = {
8746
8746
  root: ["pont-relative"],
8747
8747
  content: [
8748
8748
  "pont-overflow-x-hidden pont-overflow-y-auto pont-z-50 pont-absolute",
@@ -8887,9 +8887,9 @@ let vn = class extends b {
8887
8887
  @mouseover="${this.handleMouseEvent}"
8888
8888
  @mouseleave="${this.handleMouseEvent}"
8889
8889
  @focus="${this.handleMouseEvent}"
8890
- class=${u(Xt.checkboxItem.base, this.className)}
8890
+ class=${u(te.checkboxItem.base, this.className)}
8891
8891
  >
8892
- <span class=${u(Xt.checkboxItem.span)}>
8892
+ <span class=${u(te.checkboxItem.span)}>
8893
8893
  ${this.checked ? l`
8894
8894
  <svg
8895
8895
  xmlns="http://www.w3.org/2000/svg"
@@ -8902,7 +8902,7 @@ let vn = class extends b {
8902
8902
  stroke-linecap="round"
8903
8903
  stroke-linejoin="round"
8904
8904
  class=${u(
8905
- Xt.checkboxItem.icon,
8905
+ te.checkboxItem.icon,
8906
8906
  "lucide lucide-check-icon lucide-check"
8907
8907
  )}
8908
8908
  >
@@ -9004,7 +9004,7 @@ let Zi = class extends b {
9004
9004
  data-slot="dropdown-menu-content"
9005
9005
  part="dropdown-menu-content"
9006
9006
  style="display: ${this.isOpen ? "block" : "none"};"
9007
- class=${u(Xt.content, this.className)}
9007
+ class=${u(te.content, this.className)}
9008
9008
  ></div>
9009
9009
  `;
9010
9010
  }
@@ -9042,9 +9042,9 @@ let Yo = class extends b {
9042
9042
  rtgcmd-group
9043
9043
  part="dropdown-menu-group"
9044
9044
  role="presentation"
9045
- class=${u(Xt.group, this.className)}
9045
+ class=${u(te.group, this.className)}
9046
9046
  >
9047
- <div rtgcmd-group-heading class=${u(Xt.label)}>
9047
+ <div rtgcmd-group-heading class=${u(te.label)}>
9048
9048
  ${this.heading}
9049
9049
  </div>
9050
9050
 
@@ -9114,7 +9114,7 @@ let bn = class extends b {
9114
9114
  @mouseleave="${this.handleMouseEvent}"
9115
9115
  @focus="${this.handleMouseEvent}"
9116
9116
  @click="${this.handleClickDefault}"
9117
- class=${u(Xt.item, this.className)}
9117
+ class=${u(te.item, this.className)}
9118
9118
  ></div>
9119
9119
  `}`;
9120
9120
  }
@@ -9183,9 +9183,9 @@ let Br = class extends b {
9183
9183
  @mouseover="${this.handleMouseEvent}"
9184
9184
  @mouseleave="${this.handleMouseEvent}"
9185
9185
  @focus="${this.handleMouseEvent}"
9186
- class=${u(Xt.radioItem.base, this.className)}
9186
+ class=${u(te.radioItem.base, this.className)}
9187
9187
  >
9188
- <span class=${u(Xt.radioItem.span)}>
9188
+ <span class=${u(te.radioItem.span)}>
9189
9189
  ${this.checked ? l`<svg
9190
9190
  xmlns="http://www.w3.org/2000/svg"
9191
9191
  width="24"
@@ -9197,7 +9197,7 @@ let Br = class extends b {
9197
9197
  stroke-linecap="round"
9198
9198
  stroke-linejoin="round"
9199
9199
  class=${u(
9200
- Xt.radioItem.icon,
9200
+ te.radioItem.icon,
9201
9201
  "lucide lucide-circle-icon lucide-circle"
9202
9202
  )}
9203
9203
  >
@@ -9250,7 +9250,7 @@ let Od = class extends b {
9250
9250
  rtgcmd-separator
9251
9251
  part="dropdown-menu-seperator"
9252
9252
  role="separator"
9253
- class=${u(Xt.separator, this.className)}
9253
+ class=${u(te.separator, this.className)}
9254
9254
  ></div>`;
9255
9255
  }
9256
9256
  };
@@ -9270,13 +9270,13 @@ let Pd = class extends b {
9270
9270
  this.moveLightDomChildrenInto(this._containerElement);
9271
9271
  }
9272
9272
  createRenderRoot() {
9273
- return this.classList = u(Xt.shortcut), this;
9273
+ return this.classList = u(te.shortcut), this;
9274
9274
  }
9275
9275
  render() {
9276
9276
  return l`
9277
9277
  <span
9278
9278
  part="dropdown-menu-shortcut"
9279
- class=${u(Xt.shortcut, this.className)}
9279
+ class=${u(te.shortcut, this.className)}
9280
9280
  >
9281
9281
  </span>
9282
9282
  `;
@@ -9358,7 +9358,7 @@ let zt = class extends b {
9358
9358
  return l`
9359
9359
  <div
9360
9360
  part="dropdown-menu"
9361
- class=${u(Xt.root, this.className)}
9361
+ class=${u(te.root, this.className)}
9362
9362
  ></div>
9363
9363
  `;
9364
9364
  }
@@ -10924,12 +10924,12 @@ Pr([
10924
10924
  Xe = Pr([
10925
10925
  p("pont-input-group-button")
10926
10926
  ], Xe);
10927
- var o_ = Object.defineProperty, i_ = Object.getOwnPropertyDescriptor, gt = (t, e, n, o) => {
10927
+ var o_ = Object.defineProperty, i_ = Object.getOwnPropertyDescriptor, mt = (t, e, n, o) => {
10928
10928
  for (var r = o > 1 ? void 0 : o ? i_(e, n) : e, i = t.length - 1, s; i >= 0; i--)
10929
10929
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
10930
10930
  return o && r && o_(e, n, r), r;
10931
10931
  };
10932
- let lt = class extends f {
10932
+ let ct = class extends f {
10933
10933
  constructor() {
10934
10934
  super(...arguments), this.id = "", this.type = "text", this._onClick = (t) => {
10935
10935
  this.onClick && this.onClick(t);
@@ -11011,87 +11011,87 @@ let lt = class extends f {
11011
11011
  `;
11012
11012
  }
11013
11013
  };
11014
- gt([
11014
+ mt([
11015
11015
  a({ type: String })
11016
- ], lt.prototype, "accept", 2);
11017
- gt([
11016
+ ], ct.prototype, "accept", 2);
11017
+ mt([
11018
11018
  a({ type: String })
11019
- ], lt.prototype, "autocomplete", 2);
11020
- gt([
11019
+ ], ct.prototype, "autocomplete", 2);
11020
+ mt([
11021
11021
  a({ type: Boolean })
11022
- ], lt.prototype, "disabled", 2);
11023
- gt([
11022
+ ], ct.prototype, "disabled", 2);
11023
+ mt([
11024
11024
  a({ type: String })
11025
- ], lt.prototype, "form", 2);
11026
- gt([
11025
+ ], ct.prototype, "form", 2);
11026
+ mt([
11027
11027
  a({ type: String })
11028
- ], lt.prototype, "id", 2);
11029
- gt([
11028
+ ], ct.prototype, "id", 2);
11029
+ mt([
11030
11030
  a({ type: Boolean })
11031
- ], lt.prototype, "invalid", 2);
11032
- gt([
11031
+ ], ct.prototype, "invalid", 2);
11032
+ mt([
11033
11033
  a({ type: Number })
11034
- ], lt.prototype, "max", 2);
11035
- gt([
11034
+ ], ct.prototype, "max", 2);
11035
+ mt([
11036
11036
  a({ type: Number })
11037
- ], lt.prototype, "maxlength", 2);
11038
- gt([
11037
+ ], ct.prototype, "maxlength", 2);
11038
+ mt([
11039
11039
  a({ type: Number })
11040
- ], lt.prototype, "min", 2);
11041
- gt([
11040
+ ], ct.prototype, "min", 2);
11041
+ mt([
11042
11042
  a({ type: Number })
11043
- ], lt.prototype, "minlength", 2);
11044
- gt([
11043
+ ], ct.prototype, "minlength", 2);
11044
+ mt([
11045
11045
  a({ type: Boolean })
11046
- ], lt.prototype, "multiple", 2);
11047
- gt([
11046
+ ], ct.prototype, "multiple", 2);
11047
+ mt([
11048
11048
  a({ type: String })
11049
- ], lt.prototype, "name", 2);
11050
- gt([
11049
+ ], ct.prototype, "name", 2);
11050
+ mt([
11051
11051
  a({ type: String })
11052
- ], lt.prototype, "pattern", 2);
11053
- gt([
11052
+ ], ct.prototype, "pattern", 2);
11053
+ mt([
11054
11054
  a({ type: String })
11055
- ], lt.prototype, "placeholder", 2);
11056
- gt([
11055
+ ], ct.prototype, "placeholder", 2);
11056
+ mt([
11057
11057
  a({ type: Boolean })
11058
- ], lt.prototype, "readonly", 2);
11059
- gt([
11058
+ ], ct.prototype, "readonly", 2);
11059
+ mt([
11060
11060
  a({ type: Boolean })
11061
- ], lt.prototype, "required", 2);
11062
- gt([
11061
+ ], ct.prototype, "required", 2);
11062
+ mt([
11063
11063
  a({ type: Number })
11064
- ], lt.prototype, "step", 2);
11065
- gt([
11064
+ ], ct.prototype, "step", 2);
11065
+ mt([
11066
11066
  a({ type: String })
11067
- ], lt.prototype, "type", 2);
11068
- gt([
11067
+ ], ct.prototype, "type", 2);
11068
+ mt([
11069
11069
  a({ type: String })
11070
- ], lt.prototype, "value", 2);
11071
- gt([
11070
+ ], ct.prototype, "value", 2);
11071
+ mt([
11072
11072
  a({ attribute: !1 })
11073
- ], lt.prototype, "onClick", 2);
11074
- gt([
11073
+ ], ct.prototype, "onClick", 2);
11074
+ mt([
11075
11075
  a({ attribute: !1 })
11076
- ], lt.prototype, "onInput", 2);
11077
- gt([
11076
+ ], ct.prototype, "onInput", 2);
11077
+ mt([
11078
11078
  a({ attribute: !1 })
11079
- ], lt.prototype, "onChange", 2);
11080
- gt([
11079
+ ], ct.prototype, "onChange", 2);
11080
+ mt([
11081
11081
  a({ attribute: !1 })
11082
- ], lt.prototype, "onFocus", 2);
11083
- gt([
11082
+ ], ct.prototype, "onFocus", 2);
11083
+ mt([
11084
11084
  a({ attribute: !1 })
11085
- ], lt.prototype, "onBlur", 2);
11086
- lt = gt([
11085
+ ], ct.prototype, "onBlur", 2);
11086
+ ct = mt([
11087
11087
  p("pont-input")
11088
- ], lt);
11089
- var s_ = Object.defineProperty, a_ = Object.getOwnPropertyDescriptor, mt = (t, e, n, o) => {
11088
+ ], ct);
11089
+ var s_ = Object.defineProperty, a_ = Object.getOwnPropertyDescriptor, ft = (t, e, n, o) => {
11090
11090
  for (var r = o > 1 ? void 0 : o ? a_(e, n) : e, i = t.length - 1, s; i >= 0; i--)
11091
11091
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
11092
11092
  return o && r && s_(e, n, r), r;
11093
11093
  };
11094
- let ct = class extends f {
11094
+ let dt = class extends f {
11095
11095
  constructor() {
11096
11096
  super(...arguments), this.id = "", this.type = "text";
11097
11097
  }
@@ -11147,81 +11147,81 @@ let ct = class extends f {
11147
11147
  `;
11148
11148
  }
11149
11149
  };
11150
- mt([
11150
+ ft([
11151
11151
  a({ type: String })
11152
- ], ct.prototype, "accept", 2);
11153
- mt([
11152
+ ], dt.prototype, "accept", 2);
11153
+ ft([
11154
11154
  a({ type: String })
11155
- ], ct.prototype, "autocomplete", 2);
11156
- mt([
11155
+ ], dt.prototype, "autocomplete", 2);
11156
+ ft([
11157
11157
  a({ type: Boolean })
11158
- ], ct.prototype, "disabled", 2);
11159
- mt([
11158
+ ], dt.prototype, "disabled", 2);
11159
+ ft([
11160
11160
  a({ type: String })
11161
- ], ct.prototype, "form", 2);
11162
- mt([
11161
+ ], dt.prototype, "form", 2);
11162
+ ft([
11163
11163
  a({ type: String })
11164
- ], ct.prototype, "id", 2);
11165
- mt([
11164
+ ], dt.prototype, "id", 2);
11165
+ ft([
11166
11166
  a({ type: Boolean })
11167
- ], ct.prototype, "invalid", 2);
11168
- mt([
11167
+ ], dt.prototype, "invalid", 2);
11168
+ ft([
11169
11169
  a({ type: Number })
11170
- ], ct.prototype, "max", 2);
11171
- mt([
11170
+ ], dt.prototype, "max", 2);
11171
+ ft([
11172
11172
  a({ type: Number })
11173
- ], ct.prototype, "maxlength", 2);
11174
- mt([
11173
+ ], dt.prototype, "maxlength", 2);
11174
+ ft([
11175
11175
  a({ type: Number })
11176
- ], ct.prototype, "min", 2);
11177
- mt([
11176
+ ], dt.prototype, "min", 2);
11177
+ ft([
11178
11178
  a({ type: Number })
11179
- ], ct.prototype, "minlength", 2);
11180
- mt([
11179
+ ], dt.prototype, "minlength", 2);
11180
+ ft([
11181
11181
  a({ type: Boolean })
11182
- ], ct.prototype, "multiple", 2);
11183
- mt([
11182
+ ], dt.prototype, "multiple", 2);
11183
+ ft([
11184
11184
  a({ type: String })
11185
- ], ct.prototype, "name", 2);
11186
- mt([
11185
+ ], dt.prototype, "name", 2);
11186
+ ft([
11187
11187
  a({ type: String })
11188
- ], ct.prototype, "pattern", 2);
11189
- mt([
11188
+ ], dt.prototype, "pattern", 2);
11189
+ ft([
11190
11190
  a({ type: String })
11191
- ], ct.prototype, "placeholder", 2);
11192
- mt([
11191
+ ], dt.prototype, "placeholder", 2);
11192
+ ft([
11193
11193
  a({ type: Boolean })
11194
- ], ct.prototype, "readonly", 2);
11195
- mt([
11194
+ ], dt.prototype, "readonly", 2);
11195
+ ft([
11196
11196
  a({ type: Boolean })
11197
- ], ct.prototype, "required", 2);
11198
- mt([
11197
+ ], dt.prototype, "required", 2);
11198
+ ft([
11199
11199
  a({ type: Number })
11200
- ], ct.prototype, "step", 2);
11201
- mt([
11200
+ ], dt.prototype, "step", 2);
11201
+ ft([
11202
11202
  a({ type: String })
11203
- ], ct.prototype, "type", 2);
11204
- mt([
11203
+ ], dt.prototype, "type", 2);
11204
+ ft([
11205
11205
  a({ type: String })
11206
- ], ct.prototype, "value", 2);
11207
- mt([
11206
+ ], dt.prototype, "value", 2);
11207
+ ft([
11208
11208
  a({ attribute: !1 })
11209
- ], ct.prototype, "onClick", 2);
11210
- mt([
11209
+ ], dt.prototype, "onClick", 2);
11210
+ ft([
11211
11211
  a({ attribute: !1 })
11212
- ], ct.prototype, "onInput", 2);
11213
- mt([
11212
+ ], dt.prototype, "onInput", 2);
11213
+ ft([
11214
11214
  a({ attribute: !1 })
11215
- ], ct.prototype, "onChange", 2);
11216
- mt([
11215
+ ], dt.prototype, "onChange", 2);
11216
+ ft([
11217
11217
  a({ attribute: !1 })
11218
- ], ct.prototype, "onFocus", 2);
11219
- mt([
11218
+ ], dt.prototype, "onFocus", 2);
11219
+ ft([
11220
11220
  a({ attribute: !1 })
11221
- ], ct.prototype, "onBlur", 2);
11222
- ct = mt([
11221
+ ], dt.prototype, "onBlur", 2);
11222
+ dt = ft([
11223
11223
  p("pont-input-group-input")
11224
- ], ct);
11224
+ ], dt);
11225
11225
  var l_ = Object.getOwnPropertyDescriptor, c_ = (t, e, n, o) => {
11226
11226
  for (var r = o > 1 ? void 0 : o ? l_(e, n) : e, i = t.length - 1, s; i >= 0; i--)
11227
11227
  (s = t[i]) && (r = s(r) || r);
@@ -17221,7 +17221,7 @@ Nt([
17221
17221
  It = Nt([
17222
17222
  p("pont-data-table")
17223
17223
  ], It);
17224
- var bt = class extends Error {
17224
+ var st = class extends Error {
17225
17225
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
17226
17226
  constructor(e, n, o, r) {
17227
17227
  super(n);
@@ -17243,10 +17243,10 @@ var bt = class extends Error {
17243
17243
  function Su(t) {
17244
17244
  const e = (t ?? "").trim();
17245
17245
  if (!e)
17246
- throw new bt("CONFIG_ERROR", "domain is required");
17246
+ throw new st("CONFIG_ERROR", "domain is required");
17247
17247
  if (e.startsWith("/")) {
17248
17248
  if (typeof location > "u")
17249
- throw new bt(
17249
+ throw new st(
17250
17250
  "CONFIG_ERROR",
17251
17251
  `domain "${e}" is relative to the page origin, and there is no page here`
17252
17252
  );
@@ -17256,7 +17256,7 @@ function Su(t) {
17256
17256
  try {
17257
17257
  return Pp(new URL(`${n}${e}`));
17258
17258
  } catch {
17259
- throw new bt(
17259
+ throw new st(
17260
17260
  "CONFIG_ERROR",
17261
17261
  `domain "${e}" is not a hostname, an origin, or a path`
17262
17262
  );
@@ -17342,7 +17342,7 @@ var He, A1 = (He = class {
17342
17342
  });
17343
17343
  if (clearTimeout(c), !d.ok) {
17344
17344
  const g = await d.json().catch(() => ({}));
17345
- throw new bt(
17345
+ throw new st(
17346
17346
  g.code || g.error || "API_ERROR",
17347
17347
  g.message || g.error_description || `HTTP ${d.status}: ${d.statusText}`,
17348
17348
  g.details,
@@ -17353,7 +17353,7 @@ var He, A1 = (He = class {
17353
17353
  }
17354
17354
  return await d.json();
17355
17355
  } catch (d) {
17356
- throw clearTimeout(c), d instanceof bt ? d : d instanceof Error ? d.name === "AbortError" ? new bt("TIMEOUT", "Request timeout") : new bt("NETWORK_ERROR", d.message) : new bt("UNKNOWN_ERROR", "An unknown error occurred");
17356
+ throw clearTimeout(c), d instanceof st ? d : d instanceof Error ? d.name === "AbortError" ? new st("TIMEOUT", "Request timeout") : new st("NETWORK_ERROR", d.message) : new st("UNKNOWN_ERROR", "An unknown error occurred");
17357
17357
  }
17358
17358
  }
17359
17359
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -17384,7 +17384,7 @@ var He, A1 = (He = class {
17384
17384
  if (o.status === 204)
17385
17385
  return null;
17386
17386
  if (!o.ok)
17387
- throw new bt(
17387
+ throw new st(
17388
17388
  "API_ERROR",
17389
17389
  `HTTP ${o.status}: ${o.statusText}`,
17390
17390
  void 0,
@@ -17479,7 +17479,7 @@ function Ou(t) {
17479
17479
  }
17480
17480
  return null;
17481
17481
  }
17482
- var Vt, se = (Vt = class {
17482
+ var Vt, Yt = (Vt = class {
17483
17483
  constructor() {
17484
17484
  N(this, "AUTH_SESSION_STORAGE_KEY", "pontive_auth_session");
17485
17485
  /**
@@ -17704,6 +17704,46 @@ var Vt, se = (Vt = class {
17704
17704
  * below cleared the session. That is what signed users out partway through a
17705
17705
  * token lifetime, for no reason they could see.
17706
17706
  */
17707
+ /**
17708
+ * Moves the session to another organization.
17709
+ *
17710
+ * A refresh that names the organization: the authorization server checks
17711
+ * the user can act there, and the tokens that come back carry it (org_id)
17712
+ * with the user's roles and permissions there. Later refreshes stay in it,
17713
+ * and the other tabs pick the new session up the way they pick up any
17714
+ * refresh.
17715
+ *
17716
+ * Throws when the switch is refused, most often because the user is not a
17717
+ * member of that organization. The current session is left exactly as it
17718
+ * was: a refused switch is not a sign-out.
17719
+ */
17720
+ async switchOrganization(e) {
17721
+ if (!e)
17722
+ throw new st("INVALID_REQUEST", "organizationId is required");
17723
+ return this.withRefreshLock(async () => {
17724
+ const n = this.sessionGeneration, o = this.getCurrentSession(), r = await this.requestTokens(o, { organization_id: e });
17725
+ if (!this.isCurrentGeneration(n))
17726
+ throw new st("SESSION_CHANGED", "the session changed while switching organization");
17727
+ return this.setCurrentSession(r), this.scheduleTokenRefresh(), r;
17728
+ });
17729
+ }
17730
+ /**
17731
+ * The organization the current session acts in, read from its access
17732
+ * token, or null when it acts in none (every B2C session, and a B2B session
17733
+ * whose app has not picked one).
17734
+ */
17735
+ getOrganization() {
17736
+ const e = this.getCurrentSession(), n = e != null && e.access_token ? this.decodeJWT(e.access_token) : null, o = n == null ? void 0 : n.org_id;
17737
+ if (typeof o != "string" || o === "")
17738
+ return null;
17739
+ const r = (i) => Array.isArray(i) ? i.filter((s) => typeof s == "string") : [];
17740
+ return {
17741
+ id: o,
17742
+ role: typeof (n == null ? void 0 : n.role) == "string" ? n.role : void 0,
17743
+ roles: r(n == null ? void 0 : n.roles),
17744
+ permissions: r(n == null ? void 0 : n.permissions)
17745
+ };
17746
+ }
17707
17747
  async refreshTokens(e) {
17708
17748
  const n = this.sessionGeneration;
17709
17749
  try {
@@ -17746,27 +17786,28 @@ var Vt, se = (Vt = class {
17746
17786
  * `session` is what to fall back on for fields the response omits, and null
17747
17787
  * when there is nothing to fall back on.
17748
17788
  */
17749
- async requestTokens(e) {
17750
- var r;
17751
- const n = {
17789
+ async requestTokens(e, n = {}) {
17790
+ var i;
17791
+ const o = {
17792
+ ...n,
17752
17793
  grant_type: "refresh_token",
17753
- client_id: (r = yt.getConfig()) == null ? void 0 : r.appId
17794
+ client_id: (i = yt.getConfig()) == null ? void 0 : i.appId
17754
17795
  };
17755
- e != null && e.refresh_token && (n.refresh_token = e.refresh_token);
17756
- const o = await Bo.Instance.postForm("/oauth2/token", n);
17796
+ e != null && e.refresh_token && (o.refresh_token = e.refresh_token);
17797
+ const r = await Bo.Instance.postForm("/oauth2/token", o);
17757
17798
  return {
17758
17799
  // An id_token comes back only when the openid scope is in play.
17759
17800
  // Keeping the previous one is what stops getAuthenticatedUser()
17760
17801
  // going blank across an otherwise successful refresh.
17761
- id_token: o.id_token ?? (e == null ? void 0 : e.id_token) ?? "",
17762
- access_token: o.access_token,
17802
+ id_token: r.id_token ?? (e == null ? void 0 : e.id_token) ?? "",
17803
+ access_token: r.access_token,
17763
17804
  // Rotation mints a new one every time. A response carrying none
17764
17805
  // means either rotation is off — the token in hand is still current
17765
17806
  // — or the server put it in a cookie and deliberately kept it out of
17766
17807
  // the body.
17767
- refresh_token: o.refresh_token ?? (e == null ? void 0 : e.refresh_token),
17768
- expires_in: o.expires_in,
17769
- expires_at: Date.now() + o.expires_in * 1e3
17808
+ refresh_token: r.refresh_token ?? (e == null ? void 0 : e.refresh_token),
17809
+ expires_in: r.expires_in,
17810
+ expires_at: Date.now() + r.expires_in * 1e3
17770
17811
  };
17771
17812
  }
17772
17813
  /**
@@ -17863,14 +17904,14 @@ var Vt, se = (Vt = class {
17863
17904
  }
17864
17905
  }, N(Vt, "MAX_REFRESH_RETRIES", 5), N(Vt, "REFRESH_RETRY_BASE_MS", 5e3), N(Vt, "MAX_REFRESH_RETRY_DELAY_MS", 6e4), N(Vt, "instance"), Vt);
17865
17906
  function j1(t) {
17866
- return !(t instanceof bt) || t.status === void 0 ? !1 : t.status === 401 ? !0 : t.status === 400 && U1.has(t.code);
17907
+ return !(t instanceof st) || t.status === void 0 ? !1 : t.status === 401 ? !0 : t.status === 400 && U1.has(t.code);
17867
17908
  }
17868
17909
  var U1 = /* @__PURE__ */ new Set(["invalid_grant", "invalid_client"]);
17869
17910
  function q1(t) {
17870
- return t instanceof bt && t.status !== void 0 && t.status >= 400 && t.status < 500;
17911
+ return t instanceof st && t.status !== void 0 && t.status >= 400 && t.status < 500;
17871
17912
  }
17872
17913
  function To(t) {
17873
- return t instanceof bt ? `${t.code} (status ${t.status ?? "none"}): ${t.message}` : String(t);
17914
+ return t instanceof st ? `${t.code} (status ${t.status ?? "none"}): ${t.message}` : String(t);
17874
17915
  }
17875
17916
  var Pu = class {
17876
17917
  // 9 minutes
@@ -18027,10 +18068,10 @@ var Pu = class {
18027
18068
  ]));
18028
18069
  const s = yt.getConfig();
18029
18070
  if (!s.domain)
18030
- throw new bt("CONFIG_ERROR", "Domain is required");
18071
+ throw new st("CONFIG_ERROR", "Domain is required");
18031
18072
  if (!s.appId)
18032
- throw new bt("CONFIG_ERROR", "App ID is required");
18033
- this.flowId = e, this.location = o, this.flowStateManager = r || new Pu(), this.flowEventBus = n || new Ru(), this.navigationTypeDetector = i || new B1(), se.Instance.cleanExpiredSession(), se.Instance.scheduleTokenRefresh();
18073
+ throw new st("CONFIG_ERROR", "App ID is required");
18074
+ this.flowId = e, this.location = o, this.flowStateManager = r || new Pu(), this.flowEventBus = n || new Ru(), this.navigationTypeDetector = i || new B1(), Yt.Instance.cleanExpiredSession(), Yt.Instance.scheduleTokenRefresh();
18034
18075
  }
18035
18076
  static async init(e, n, o, r, i) {
18036
18077
  const s = new Iu(
@@ -18054,7 +18095,7 @@ var Pu = class {
18054
18095
  */
18055
18096
  async startFlow(e, n) {
18056
18097
  if (!n.app_id)
18057
- throw new bt("VALIDATION_ERROR", "Client ID is required");
18098
+ throw new st("VALIDATION_ERROR", "Client ID is required");
18058
18099
  const o = `/auth/v1/authflows/${e}/start`;
18059
18100
  return this.executeFlowRequest(
18060
18101
  () => this.httpClient.post(o, n),
@@ -18078,7 +18119,7 @@ var Pu = class {
18078
18119
  */
18079
18120
  async processEvent(e, n) {
18080
18121
  if (!e.event)
18081
- throw new bt("VALIDATION_ERROR", "Event type is required");
18122
+ throw new st("VALIDATION_ERROR", "Event type is required");
18082
18123
  const o = this.eventHandlers.get(e.event);
18083
18124
  return o ? await o() : await this.processServerEvent(e, n);
18084
18125
  }
@@ -18090,7 +18131,7 @@ var Pu = class {
18090
18131
  const i = await e();
18091
18132
  return r && await r(i), this.processAuthResult(i.auth_result), i.redirection && this.redirect(i.redirection), i;
18092
18133
  } catch (i) {
18093
- throw i instanceof bt ? i : new bt(
18134
+ throw i instanceof st ? i : new st(
18094
18135
  n,
18095
18136
  o,
18096
18137
  i instanceof Error ? { originalError: i.message, stack: i.stack } : i
@@ -18105,7 +18146,7 @@ var Pu = class {
18105
18146
  if (!o && (console.warn(
18106
18147
  "Flow state expired, restarting flow before processing event"
18107
18148
  ), await this.initializeFlowInternal(), o = this.flowStateManager.getFlowState(), !o))
18108
- throw new bt(
18149
+ throw new st(
18109
18150
  "FLOW_RESTART_ERROR",
18110
18151
  "Failed to restart flow - no flow state after initialization"
18111
18152
  );
@@ -18144,7 +18185,7 @@ var Pu = class {
18144
18185
  expires_in: e.expires_in,
18145
18186
  expires_at: Date.now() + e.expires_in * 1e3
18146
18187
  };
18147
- se.Instance.setCurrentSession(n), se.Instance.scheduleTokenRefresh(), this.flowStateManager.clearFlowState();
18188
+ Yt.Instance.setCurrentSession(n), Yt.Instance.scheduleTokenRefresh(), this.flowStateManager.clearFlowState();
18148
18189
  const { onAuthenticated: o } = yt.getConfig();
18149
18190
  if (o) {
18150
18191
  o(n);
@@ -18169,7 +18210,7 @@ var Pu = class {
18169
18210
  */
18170
18211
  validateFlowType(e) {
18171
18212
  if (e === "custom" && !this.flowId)
18172
- throw new bt(
18213
+ throw new st(
18173
18214
  "FLOW_ID_ERROR",
18174
18215
  "Flow ID is required for custom flows"
18175
18216
  );
@@ -18229,7 +18270,7 @@ var Pu = class {
18229
18270
  const n = yt.getConfig(), o = new URLSearchParams(this.location.search), r = {};
18230
18271
  o.forEach((d, g) => {
18231
18272
  r[g] = d;
18232
- }), console.log("metadata", r);
18273
+ }), n.organizationId && !r.organization_id && (r.organization_id = n.organizationId), console.log("metadata", r);
18233
18274
  const i = o.get("locales") || n.locales || void 0, s = {
18234
18275
  app_id: n.appId,
18235
18276
  origin_url: this.location.href,
@@ -18269,7 +18310,7 @@ var Pu = class {
18269
18310
  return this.flowId || "invitation-flow";
18270
18311
  case "custom":
18271
18312
  if (!this.flowId)
18272
- throw new bt(
18313
+ throw new st(
18273
18314
  "FLOW_ID_ERROR",
18274
18315
  "Flow ID is required for custom flows"
18275
18316
  );
@@ -18932,14 +18973,14 @@ var Ke, W1 = (Ke = class {
18932
18973
  }
18933
18974
  ensureConfigured() {
18934
18975
  if (!this.configured)
18935
- throw new bt(
18976
+ throw new st(
18936
18977
  "NOT_CONFIGURED",
18937
18978
  "Auth.configure() must be called before using Auth methods"
18938
18979
  );
18939
18980
  }
18940
18981
  ensureLoginflowInitialized() {
18941
18982
  if (!this.loginflow)
18942
- throw new bt(
18983
+ throw new st(
18943
18984
  "LOGINFLOW_NOT_INITIALIZED",
18944
18985
  "Call Auth.startLoginflow() first"
18945
18986
  );
@@ -18976,7 +19017,7 @@ var Ke, W1 = (Ke = class {
18976
19017
  }
18977
19018
  configure(e) {
18978
19019
  if (!e.domain || !e.appId)
18979
- throw new bt(
19020
+ throw new st(
18980
19021
  "CONFIG_ERROR",
18981
19022
  "domain and appId are required"
18982
19023
  );
@@ -18996,10 +19037,10 @@ var Ke, W1 = (Ke = class {
18996
19037
  return this.configuredPromise;
18997
19038
  }
18998
19039
  isAuthenticated() {
18999
- return this.ensureConfigured(), se.Instance.isAuthenticated();
19040
+ return this.ensureConfigured(), Yt.Instance.isAuthenticated();
19000
19041
  }
19001
19042
  getCurrentSession() {
19002
- return this.ensureConfigured(), se.Instance.getCurrentSession();
19043
+ return this.ensureConfigured(), Yt.Instance.getCurrentSession();
19003
19044
  }
19004
19045
  /**
19005
19046
  * Rebuilds the session from a refresh token the browser is holding, if there
@@ -19015,10 +19056,26 @@ var Ke, W1 = (Ke = class {
19015
19056
  * case for a visitor who is not signed in.
19016
19057
  */
19017
19058
  async restoreSession() {
19018
- return this.ensureConfigured(), se.Instance.restoreSession();
19059
+ return this.ensureConfigured(), Yt.Instance.restoreSession();
19019
19060
  }
19020
19061
  getAuthenticatedUser() {
19021
- return this.ensureConfigured(), se.Instance.getAuthenticatedUser();
19062
+ return this.ensureConfigured(), Yt.Instance.getAuthenticatedUser();
19063
+ }
19064
+ /**
19065
+ * The organization the current session acts in, or null for none. See
19066
+ * {@link Organization}.
19067
+ */
19068
+ getOrganization() {
19069
+ return this.ensureConfigured(), Yt.Instance.getOrganization();
19070
+ }
19071
+ /**
19072
+ * Moves the session to another organization the user belongs to. The new
19073
+ * access token carries it with the user's roles and permissions there; the
19074
+ * user is not asked to sign in again. Rejects, leaving the session as it
19075
+ * was, when the user cannot act in that organization.
19076
+ */
19077
+ async switchOrganization(e) {
19078
+ return this.ensureConfigured(), Yt.Instance.switchOrganization(e);
19022
19079
  }
19023
19080
  async startLoginflow(e) {
19024
19081
  return this.startLoginflowInternal(e, !1);
@@ -19160,7 +19217,7 @@ var Ke, W1 = (Ke = class {
19160
19217
  * away the page it is being called from.
19161
19218
  */
19162
19219
  invalidateSession() {
19163
- se.Instance.clearSession();
19220
+ Yt.Instance.clearSession();
19164
19221
  }
19165
19222
  /**
19166
19223
  * Ends the session — here AND at the authorization server.
@@ -19196,8 +19253,8 @@ var Ke, W1 = (Ke = class {
19196
19253
  async signOut(e) {
19197
19254
  var r;
19198
19255
  this.ensureConfigured();
19199
- const n = Y1(se.Instance.peekSession()), o = ((r = yt.getConfig()) == null ? void 0 : r.appId) ?? "";
19200
- if (vl(), se.Instance.clearSession(), se.Instance.cleanup(), this.loginflow && (this.loginflow.cleanup(), this.loginflow = null), this.navigationManager && (this.navigationManager.destroy(), this.navigationManager = null), this.flowEventBus && (this.flowEventBus.clear(), this.flowEventBus = null), !yt.apiIsSameOrigin()) {
19256
+ const n = Y1(Yt.Instance.peekSession()), o = ((r = yt.getConfig()) == null ? void 0 : r.appId) ?? "";
19257
+ if (vl(), Yt.Instance.clearSession(), Yt.Instance.cleanup(), this.loginflow && (this.loginflow.cleanup(), this.loginflow = null), this.navigationManager && (this.navigationManager.destroy(), this.navigationManager = null), this.flowEventBus && (this.flowEventBus.clear(), this.flowEventBus = null), !yt.apiIsSameOrigin()) {
19201
19258
  window.location.assign(this.logoutUrl(n, o, e == null ? void 0 : e.returnTo));
19202
19259
  return;
19203
19260
  }
@@ -19246,12 +19303,12 @@ var Ke, W1 = (Ke = class {
19246
19303
  function Y1(t) {
19247
19304
  for (const e of [t == null ? void 0 : t.id_token, t == null ? void 0 : t.access_token]) {
19248
19305
  if (!e) continue;
19249
- const n = se.Instance.decodeJWT(e);
19306
+ const n = Yt.Instance.decodeJWT(e);
19250
19307
  if (typeof (n == null ? void 0 : n.sid) == "string" && n.sid)
19251
19308
  return n.sid;
19252
19309
  }
19253
19310
  }
19254
- var ht = W1.Instance, Z1 = Object.defineProperty, J1 = (t, e, n, o) => {
19311
+ var ut = W1.Instance, Z1 = Object.defineProperty, J1 = (t, e, n, o) => {
19255
19312
  for (var r = void 0, i = t.length - 1, s; i >= 0; i--)
19256
19313
  (s = t[i]) && (r = s(e, n, r) || r);
19257
19314
  return r && Z1(e, n, r), r;
@@ -19553,7 +19610,7 @@ function p0(t) {
19553
19610
  }
19554
19611
  function or() {
19555
19612
  var t;
19556
- return (t = ht.getCurrentSession()) == null ? void 0 : t.access_token;
19613
+ return (t = ut.getCurrentSession()) == null ? void 0 : t.access_token;
19557
19614
  }
19558
19615
  function wl(t, e = !1) {
19559
19616
  if (!t && t !== 0) return "N/A";
@@ -19663,7 +19720,7 @@ let Sr = class extends f {
19663
19720
  }, document.head.appendChild(n);
19664
19721
  }
19665
19722
  configureAuth(t) {
19666
- ht.configure({
19723
+ ut.configure({
19667
19724
  domain: t.domain,
19668
19725
  appId: t.appId,
19669
19726
  // Two different things that both read as "locale": the first is the
@@ -19711,7 +19768,7 @@ let Sr = class extends f {
19711
19768
  });
19712
19769
  if (t) {
19713
19770
  if (this.wasBouncedBackFrom(t)) {
19714
- this.clearRedirectAttempt(), ht.invalidateSession(), this.refreshAuthState();
19771
+ this.clearRedirectAttempt(), ut.invalidateSession(), this.refreshAuthState();
19715
19772
  return;
19716
19773
  }
19717
19774
  this.recordRedirectAttempt(t), window.location.href = t;
@@ -19783,7 +19840,7 @@ let Sr = class extends f {
19783
19840
  }
19784
19841
  }
19785
19842
  refreshAuthState() {
19786
- this.auth = { isAuthenticated: ht.isAuthenticated(), resolved: !0 }, this.dispatchAuthChangedEvent(this.auth);
19843
+ this.auth = { isAuthenticated: ut.isAuthenticated(), resolved: !0 }, this.dispatchAuthChangedEvent(this.auth);
19787
19844
  }
19788
19845
  /**
19789
19846
  * Publishes the auth state to anything that is not a Lit context consumer.
@@ -19830,7 +19887,7 @@ let Sr = class extends f {
19830
19887
  */
19831
19888
  async restoreThenRefreshAuthState() {
19832
19889
  try {
19833
- await ht.restoreSession();
19890
+ await ut.restoreSession();
19834
19891
  } catch {
19835
19892
  }
19836
19893
  this.refreshAuthState();
@@ -20319,7 +20376,7 @@ async function fc(t) {
20319
20376
  token: or()
20320
20377
  });
20321
20378
  }
20322
- var z0 = Object.defineProperty, V0 = Object.getOwnPropertyDescriptor, Yt = (t, e, n, o) => {
20379
+ var z0 = Object.defineProperty, V0 = Object.getOwnPropertyDescriptor, Zt = (t, e, n, o) => {
20323
20380
  for (var r = o > 1 ? void 0 : o ? V0(e, n) : e, i = t.length - 1, s; i >= 0; i--)
20324
20381
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
20325
20382
  return o && r && z0(e, n, r), r;
@@ -20654,49 +20711,49 @@ let Gt = class extends f {
20654
20711
  return this;
20655
20712
  }
20656
20713
  };
20657
- Yt([
20714
+ Zt([
20658
20715
  a({ type: Object })
20659
20716
  ], Gt.prototype, "account", 2);
20660
- Yt([
20717
+ Zt([
20661
20718
  a({ type: Boolean })
20662
20719
  ], Gt.prototype, "showAvatarMenu", 2);
20663
- Yt([
20720
+ Zt([
20664
20721
  a({ attribute: !1 })
20665
20722
  ], Gt.prototype, "toggleAvatarMenu", 2);
20666
- Yt([
20723
+ Zt([
20667
20724
  a({ attribute: !1 })
20668
20725
  ], Gt.prototype, "onAvatarChange", 2);
20669
- Yt([
20726
+ Zt([
20670
20727
  a({ attribute: !1 })
20671
20728
  ], Gt.prototype, "onAvatarRemove", 2);
20672
- Yt([
20729
+ Zt([
20673
20730
  a({ type: Boolean })
20674
20731
  ], Gt.prototype, "showIcons", 2);
20675
- Yt([
20732
+ Zt([
20676
20733
  a({ type: Object })
20677
20734
  ], Gt.prototype, "content", 2);
20678
- Yt([
20735
+ Zt([
20679
20736
  a({ type: String })
20680
20737
  ], Gt.prototype, "layout", 2);
20681
- Yt([
20738
+ Zt([
20682
20739
  m()
20683
20740
  ], Gt.prototype, "isUploadingImage", 2);
20684
- Yt([
20741
+ Zt([
20685
20742
  m()
20686
20743
  ], Gt.prototype, "isEditingAvatarMobile", 2);
20687
- Yt([
20744
+ Zt([
20688
20745
  m()
20689
20746
  ], Gt.prototype, "isMobile", 2);
20690
- Yt([
20747
+ Zt([
20691
20748
  m()
20692
20749
  ], Gt.prototype, "_isAvatarEditorOpen", 2);
20693
- Yt([
20750
+ Zt([
20694
20751
  m()
20695
20752
  ], Gt.prototype, "avatarDraft", 2);
20696
- Yt([
20753
+ Zt([
20697
20754
  wt({ context: wi, subscribe: !0 })
20698
20755
  ], Gt.prototype, "userContextValue", 2);
20699
- Gt = Yt([
20756
+ Gt = Zt([
20700
20757
  p("pont-account-info")
20701
20758
  ], Gt);
20702
20759
  var H0 = Object.defineProperty, G0 = Object.getOwnPropertyDescriptor, sr = (t, e, n, o) => {
@@ -21540,7 +21597,7 @@ lr([
21540
21597
  De = lr([
21541
21598
  p("pont-urls-info")
21542
21599
  ], De);
21543
- var J0 = Object.defineProperty, Q0 = Object.getOwnPropertyDescriptor, Zt = (t, e, n, o) => {
21600
+ var J0 = Object.defineProperty, Q0 = Object.getOwnPropertyDescriptor, Jt = (t, e, n, o) => {
21544
21601
  for (var r = o > 1 ? void 0 : o ? Q0(e, n) : e, i = t.length - 1, s; i >= 0; i--)
21545
21602
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
21546
21603
  return o && r && J0(e, n, r), r;
@@ -21583,50 +21640,50 @@ let Kt = class extends f {
21583
21640
  `;
21584
21641
  }
21585
21642
  };
21586
- Zt([
21643
+ Jt([
21587
21644
  a({ type: Object })
21588
21645
  ], Kt.prototype, "account", 2);
21589
- Zt([
21646
+ Jt([
21590
21647
  a({ type: Object })
21591
21648
  ], Kt.prototype, "personal", 2);
21592
- Zt([
21649
+ Jt([
21593
21650
  a({ type: Object })
21594
21651
  ], Kt.prototype, "location", 2);
21595
- Zt([
21652
+ Jt([
21596
21653
  a({ type: Object })
21597
21654
  ], Kt.prototype, "urls", 2);
21598
- Zt([
21655
+ Jt([
21599
21656
  a({ type: Boolean })
21600
21657
  ], Kt.prototype, "showAvatarMenu", 2);
21601
- Zt([
21658
+ Jt([
21602
21659
  a({ type: Object }),
21603
21660
  a({ attribute: !1 })
21604
21661
  ], Kt.prototype, "modalIcon", 2);
21605
- Zt([
21662
+ Jt([
21606
21663
  a({ type: String })
21607
21664
  ], Kt.prototype, "orientation", 2);
21608
- Zt([
21665
+ Jt([
21609
21666
  a({ type: String })
21610
21667
  ], Kt.prototype, "sidebarDisplayType", 2);
21611
- Zt([
21668
+ Jt([
21612
21669
  a({ type: String })
21613
21670
  ], Kt.prototype, "mode", 2);
21614
- Zt([
21671
+ Jt([
21615
21672
  a({ type: String })
21616
21673
  ], Kt.prototype, "widgetsLayout", 2);
21617
- Zt([
21674
+ Jt([
21618
21675
  a({ type: Function })
21619
21676
  ], Kt.prototype, "toggleAvatarMenu", 2);
21620
- Zt([
21677
+ Jt([
21621
21678
  a({ type: Function })
21622
21679
  ], Kt.prototype, "onAvatarChange", 2);
21623
- Zt([
21680
+ Jt([
21624
21681
  a({ type: Function })
21625
21682
  ], Kt.prototype, "onAvatarRemove", 2);
21626
- Zt([
21683
+ Jt([
21627
21684
  a({ type: Object })
21628
21685
  ], Kt.prototype, "content", 2);
21629
- Kt = Zt([
21686
+ Kt = Jt([
21630
21687
  p("pont-profile")
21631
21688
  ], Kt);
21632
21689
  const Pi = {
@@ -21857,7 +21914,7 @@ var a2 = Object.defineProperty, pe = (t, e, n, o) => {
21857
21914
  (s = t[i]) && (r = s(e, n, r) || r);
21858
21915
  return r && a2(e, n, r), r;
21859
21916
  };
21860
- class ee extends f {
21917
+ class re extends f {
21861
21918
  constructor() {
21862
21919
  super(), this.showAvatarMenu = !1, this.orientation = cn.HORIZONTAL, this.mobileDisplay = yr.REGULAR, this.mode = jr.PAGE, this.widgetsLayout = Et.ROW, this.content = null, this.isOpen = !1, this.currentBreakpoint = "md", this.activeTab = ze.PROFILE, this._userLoaded = !1, this._userLoading = !1, this.userContextValue = {
21863
21920
  user: null,
@@ -21980,7 +22037,7 @@ class ee extends f {
21980
22037
  }
21981
22038
  async loadUser() {
21982
22039
  var e, n;
21983
- if (!(!((e = this.auth) != null && e.resolved) || !this.auth.isAuthenticated) && !(this._userLoaded || this._userLoading) && (this.userContextValue.identifier = ((n = ht.getAuthenticatedUser()) == null ? void 0 : n.email) ?? "", !!this.userContextValue.identifier)) {
22040
+ if (!(!((e = this.auth) != null && e.resolved) || !this.auth.isAuthenticated) && !(this._userLoaded || this._userLoading) && (this.userContextValue.identifier = ((n = ut.getAuthenticatedUser()) == null ? void 0 : n.email) ?? "", !!this.userContextValue.identifier)) {
21984
22041
  this._userLoading = !0;
21985
22042
  try {
21986
22043
  this.userContextValue.user = await k0(), this.tryRemoveFallback(), this.fillProfileData(this.userContextValue.user), this._userLoaded = !0;
@@ -22128,46 +22185,46 @@ class ee extends f {
22128
22185
  }
22129
22186
  pe([
22130
22187
  a({ type: Boolean })
22131
- ], ee.prototype, "showAvatarMenu");
22188
+ ], re.prototype, "showAvatarMenu");
22132
22189
  pe([
22133
22190
  a({ type: String })
22134
- ], ee.prototype, "orientation");
22191
+ ], re.prototype, "orientation");
22135
22192
  pe([
22136
22193
  a({ type: String })
22137
- ], ee.prototype, "mobileDisplay");
22194
+ ], re.prototype, "mobileDisplay");
22138
22195
  pe([
22139
22196
  a({ type: String, reflect: !0 })
22140
- ], ee.prototype, "mode");
22197
+ ], re.prototype, "mode");
22141
22198
  pe([
22142
22199
  a({ type: String })
22143
- ], ee.prototype, "widgetsLayout");
22200
+ ], re.prototype, "widgetsLayout");
22144
22201
  pe([
22145
22202
  a({ type: Object })
22146
- ], ee.prototype, "content");
22203
+ ], re.prototype, "content");
22147
22204
  pe([
22148
22205
  m()
22149
- ], ee.prototype, "isOpen");
22206
+ ], re.prototype, "isOpen");
22150
22207
  pe([
22151
22208
  m()
22152
- ], ee.prototype, "currentBreakpoint");
22209
+ ], re.prototype, "currentBreakpoint");
22153
22210
  pe([
22154
22211
  m()
22155
- ], ee.prototype, "activeTab");
22212
+ ], re.prototype, "activeTab");
22156
22213
  pe([
22157
22214
  wt({ context: In, subscribe: !0 }),
22158
22215
  a({ attribute: !1 })
22159
- ], ee.prototype, "auth");
22216
+ ], re.prototype, "auth");
22160
22217
  pe([
22161
22218
  m()
22162
- ], ee.prototype, "_userLoaded");
22219
+ ], re.prototype, "_userLoaded");
22163
22220
  pe([
22164
22221
  m()
22165
- ], ee.prototype, "_userLoading");
22222
+ ], re.prototype, "_userLoading");
22166
22223
  pe([
22167
22224
  be({ context: wi }),
22168
22225
  m()
22169
- ], ee.prototype, "userContextValue");
22170
- customElements.define("pont-account-settings", ee);
22226
+ ], re.prototype, "userContextValue");
22227
+ customElements.define("pont-account-settings", re);
22171
22228
  var l2 = Object.defineProperty, c2 = Object.getOwnPropertyDescriptor, Bu = (t, e, n, o) => {
22172
22229
  for (var r = o > 1 ? void 0 : o ? c2(e, n) : e, i = t.length - 1, s; i >= 0; i--)
22173
22230
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
@@ -22542,7 +22599,7 @@ let le = class extends f {
22542
22599
  const e = {
22543
22600
  emails: this.emails,
22544
22601
  roles: this.roles,
22545
- invited_by: (n = ht.getAuthenticatedUser()) == null ? void 0 : n.sub,
22602
+ invited_by: (n = ut.getAuthenticatedUser()) == null ? void 0 : n.sub,
22546
22603
  // invited_by: "usr_06fgveyxgdtff295nb0se579cc",
22547
22604
  message: this.customMessage || void 0
22548
22605
  };
@@ -25046,9 +25103,9 @@ let ni = class extends f {
25046
25103
  }
25047
25104
  async startAuthFlow() {
25048
25105
  if (!this.__flowStarted) {
25049
- this.__flowStarted = !0, await gc(ht);
25106
+ this.__flowStarted = !0, await gc(ut);
25050
25107
  try {
25051
- await ht.startLoginflow(), this.tryRemoveFallback();
25108
+ await ut.startLoginflow(), this.tryRemoveFallback();
25052
25109
  } catch (t) {
25053
25110
  console.error("[pont-invitation] Accepting the invitation failed:", t), this.__flowStarted = !1;
25054
25111
  }
@@ -25103,9 +25160,9 @@ let oi = class extends f {
25103
25160
  }
25104
25161
  async startAuthFlow() {
25105
25162
  if (!this.__flowStarted) {
25106
- this.__flowStarted = !0, await gc(ht);
25163
+ this.__flowStarted = !0, await gc(ut);
25107
25164
  try {
25108
- await ht.startLoginflow("sys_signin-flow-passkey"), this.tryRemoveFallback();
25165
+ await ut.startLoginflow("sys_signin-flow-passkey"), this.tryRemoveFallback();
25109
25166
  } catch (t) {
25110
25167
  console.error("[pont-signin] Auth failed:", t), this.__flowStarted = !1;
25111
25168
  }
@@ -25160,9 +25217,9 @@ let ii = class extends f {
25160
25217
  }
25161
25218
  async startAuthFlow() {
25162
25219
  if (!this.__flowStarted) {
25163
- this.__flowStarted = !0, await gc(ht);
25220
+ this.__flowStarted = !0, await gc(ut);
25164
25221
  try {
25165
- await ht.startLoginflow("sys_signup-flow"), this.tryRemoveFallback();
25222
+ await ut.startLoginflow("sys_signup-flow"), this.tryRemoveFallback();
25166
25223
  } catch (t) {
25167
25224
  console.error("[pont-signup] Auth failed:", t), this.__flowStarted = !1;
25168
25225
  }
@@ -25261,7 +25318,7 @@ class Rr extends f {
25261
25318
  }, this._handleLogout = () => {
25262
25319
  this.dispatchEvent(
25263
25320
  new CustomEvent("logout", { bubbles: !0, composed: !0 })
25264
- ), ht.signOut();
25321
+ ), ut.signOut();
25265
25322
  };
25266
25323
  }
25267
25324
  createRenderRoot() {
@@ -25297,7 +25354,7 @@ class Rr extends f {
25297
25354
  try {
25298
25355
  const n = this.auth.isAuthenticated;
25299
25356
  if (this.signedIn = n, n) {
25300
- const o = ht.getAuthenticatedUser();
25357
+ const o = ut.getAuthenticatedUser();
25301
25358
  this.user = {
25302
25359
  email: o == null ? void 0 : o.email,
25303
25360
  name: (o == null ? void 0 : o.name) || `${(o == null ? void 0 : o.given_name) || ""} ${(o == null ? void 0 : o.family_name) || ""}`.trim(),
@@ -26150,7 +26207,7 @@ let J = class extends f {
26150
26207
  );
26151
26208
  try {
26152
26209
  if (this.event) {
26153
- const t = await ht.processLoginflowEvent({
26210
+ const t = await ut.processLoginflowEvent({
26154
26211
  event: this.event
26155
26212
  });
26156
26213
  this.dispatchEvent(
@@ -26304,7 +26361,7 @@ Ce([
26304
26361
  J = Ce([
26305
26362
  p("pont-passkey-button")
26306
26363
  ], J);
26307
- var tC = Object.defineProperty, eC = Object.getOwnPropertyDescriptor, re = (t, e, n, o) => {
26364
+ var tC = Object.defineProperty, eC = Object.getOwnPropertyDescriptor, ne = (t, e, n, o) => {
26308
26365
  for (var r = o > 1 ? void 0 : o ? eC(e, n) : e, i = t.length - 1, s; i >= 0; i--)
26309
26366
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
26310
26367
  return o && r && tC(e, n, r), r;
@@ -26322,7 +26379,7 @@ let Z = class extends f {
26322
26379
  );
26323
26380
  try {
26324
26381
  if (this.event) {
26325
- const t = await ht.processLoginflowEvent({
26382
+ const t = await ut.processLoginflowEvent({
26326
26383
  event: this.event
26327
26384
  });
26328
26385
  this.dispatchEvent(
@@ -26455,46 +26512,46 @@ Z.PARTS = {
26455
26512
  root: Z.ROOT,
26456
26513
  icon: `${Z.ROOT}-${Z.ICON}`
26457
26514
  };
26458
- re([
26515
+ ne([
26459
26516
  a({ type: String })
26460
26517
  ], Z.prototype, "seed", 2);
26461
- re([
26518
+ ne([
26462
26519
  a({ type: String, attribute: "custom-id" })
26463
26520
  ], Z.prototype, "customId", 2);
26464
- re([
26521
+ ne([
26465
26522
  a({ type: String })
26466
26523
  ], Z.prototype, "provider", 2);
26467
- re([
26524
+ ne([
26468
26525
  a({ type: String })
26469
26526
  ], Z.prototype, "variant", 2);
26470
- re([
26527
+ ne([
26471
26528
  a({ type: String })
26472
26529
  ], Z.prototype, "size", 2);
26473
- re([
26530
+ ne([
26474
26531
  a({ type: String })
26475
26532
  ], Z.prototype, "content", 2);
26476
- re([
26533
+ ne([
26477
26534
  a({ type: String, attribute: "icon-align" })
26478
26535
  ], Z.prototype, "iconAlign", 2);
26479
- re([
26536
+ ne([
26480
26537
  a({ type: String })
26481
26538
  ], Z.prototype, "prompt", 1);
26482
- re([
26539
+ ne([
26483
26540
  a({ type: String })
26484
26541
  ], Z.prototype, "label", 2);
26485
- re([
26542
+ ne([
26486
26543
  a({ type: String })
26487
26544
  ], Z.prototype, "event", 2);
26488
- re([
26545
+ ne([
26489
26546
  a({ type: Boolean })
26490
26547
  ], Z.prototype, "disabled", 2);
26491
- re([
26548
+ ne([
26492
26549
  a({ type: Boolean })
26493
26550
  ], Z.prototype, "loading", 2);
26494
- re([
26551
+ ne([
26495
26552
  m()
26496
26553
  ], Z.prototype, "_loading", 2);
26497
- Z = re([
26554
+ Z = ne([
26498
26555
  p("pont-provider-button")
26499
26556
  ], Z);
26500
26557
  var rC = Object.defineProperty, nC = Object.getOwnPropertyDescriptor, Ue = (t, e, n, o) => {
@@ -26661,7 +26718,7 @@ let $ = class extends f {
26661
26718
  );
26662
26719
  try {
26663
26720
  if (n) {
26664
- const o = await ht.processLoginflowEvent({
26721
+ const o = await ut.processLoginflowEvent({
26665
26722
  event: n
26666
26723
  });
26667
26724
  this.dispatchEvent(
@@ -26731,7 +26788,7 @@ let $ = class extends f {
26731
26788
  this.requestUpdate("maxlength", e);
26732
26789
  }
26733
26790
  get _defaultRequiredError() {
26734
- return ne(this.label);
26791
+ return oe(this.label);
26735
26792
  }
26736
26793
  get requiredError() {
26737
26794
  return this._requiredError ?? this._defaultRequiredError;
@@ -27081,26 +27138,26 @@ ot([
27081
27138
  $ = ot([
27082
27139
  p("pont-password-field")
27083
27140
  ], $);
27084
- const ne = (t) => `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} is a required field.`, hr = (t) => `Please enter a valid ${t.toLowerCase()}.`, Eo = (t, e) => e ? `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} must be at least ${e} characters.` : `Please enter a longer ${t.toLowerCase()}.`, So = (t, e) => e ? `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} can have at most ${e} characters.` : `Please enter a shorter ${t.toLowerCase()}.`, Fn = {
27141
+ const oe = (t) => `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} is a required field.`, hr = (t) => `Please enter a valid ${t.toLowerCase()}.`, Eo = (t, e) => e ? `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} must be at least ${e} characters.` : `Please enter a longer ${t.toLowerCase()}.`, So = (t, e) => e ? `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} can have at most ${e} characters.` : `Please enter a shorter ${t.toLowerCase()}.`, Fn = {
27085
27142
  name: "email",
27086
27143
  label: "Email",
27087
27144
  pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/.source,
27088
27145
  validation: "default",
27089
- requiredError: ne("Email"),
27146
+ requiredError: oe("Email"),
27090
27147
  formatError: hr("Email")
27091
27148
  }, zn = {
27092
27149
  name: "phone",
27093
27150
  label: "Phone",
27094
27151
  pattern: /^\+?(\d[\d-.() ]+)?(\([\d-.() ]+\))?[\d-.() ]+\d$/.source,
27095
27152
  validation: "default",
27096
- requiredError: ne("Phone"),
27153
+ requiredError: oe("Phone"),
27097
27154
  formatError: hr("Phone")
27098
27155
  }, Vn = {
27099
27156
  name: "username",
27100
27157
  label: "Username",
27101
27158
  pattern: /^[a-z0-9_]*$/.source,
27102
27159
  validation: "default",
27103
- requiredError: ne("Username"),
27160
+ requiredError: oe("Username"),
27104
27161
  minlengthError: Eo("Username"),
27105
27162
  maxlengthError: So("Username"),
27106
27163
  formatError: hr("Username")
@@ -27109,7 +27166,7 @@ const ne = (t) => `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} is a
27109
27166
  label: "Name",
27110
27167
  pattern: /^[\p{L} .'-]*$/u.source,
27111
27168
  validation: "default",
27112
- requiredError: ne("Name"),
27169
+ requiredError: oe("Name"),
27113
27170
  minlengthError: Eo("Name"),
27114
27171
  maxlengthError: So("Name"),
27115
27172
  formatError: hr("Name")
@@ -27121,7 +27178,7 @@ const ne = (t) => `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} is a
27121
27178
  identifiers: [],
27122
27179
  label: "Identifier",
27123
27180
  validation: "default",
27124
- requiredError: ne("Identifier")
27181
+ requiredError: oe("Identifier")
27125
27182
  }, vr = {
27126
27183
  name: "password",
27127
27184
  label: "Password",
@@ -27133,7 +27190,7 @@ const ne = (t) => `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} is a
27133
27190
  { name: "special", error: "Must contain a special character." }
27134
27191
  ],
27135
27192
  validation: "default",
27136
- requiredError: ne("Password"),
27193
+ requiredError: oe("Password"),
27137
27194
  minlengthError: Eo("Password"),
27138
27195
  maxlengthError: So("Password"),
27139
27196
  formatError: hr("Password"),
@@ -27144,7 +27201,7 @@ const ne = (t) => `${t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()} is a
27144
27201
  variant: "toggle",
27145
27202
  pair: $.TAG,
27146
27203
  validation: "default",
27147
- requiredError: ne("Confirm Password"),
27204
+ requiredError: oe("Confirm Password"),
27148
27205
  matchError: "Passwords do not match."
27149
27206
  };
27150
27207
  var sC = Object.defineProperty, aC = Object.getOwnPropertyDescriptor, xt = (t, e, n, o) => {
@@ -27189,7 +27246,7 @@ let P = class extends f {
27189
27246
  this._label = t.length ? t : br.label, this.requestUpdate("label", e);
27190
27247
  }
27191
27248
  get _defaultRequiredError() {
27192
- return ne(this.label);
27249
+ return oe(this.label);
27193
27250
  }
27194
27251
  get requiredError() {
27195
27252
  return this._requiredError ?? this._defaultRequiredError;
@@ -27484,7 +27541,7 @@ let A = class extends f {
27484
27541
  this._label = t.length ? t : Fn.label, this.requestUpdate("label", e);
27485
27542
  }
27486
27543
  get _defaultRequiredError() {
27487
- return ne(this.label);
27544
+ return oe(this.label);
27488
27545
  }
27489
27546
  get requiredError() {
27490
27547
  return this._requiredError ?? this._defaultRequiredError;
@@ -27783,7 +27840,7 @@ let D = class extends f {
27783
27840
  this._label = t || void 0, this.requestUpdate("label", e);
27784
27841
  }
27785
27842
  get _defaultRequiredError() {
27786
- return ne(this.label);
27843
+ return oe(this.label);
27787
27844
  }
27788
27845
  get requiredError() {
27789
27846
  return this._requiredError ?? this._defaultRequiredError;
@@ -28011,7 +28068,7 @@ jt([
28011
28068
  D = jt([
28012
28069
  p("pont-identifier-field")
28013
28070
  ], D);
28014
- var hC = Object.defineProperty, uC = Object.getOwnPropertyDescriptor, ft = (t, e, n, o) => {
28071
+ var hC = Object.defineProperty, uC = Object.getOwnPropertyDescriptor, vt = (t, e, n, o) => {
28015
28072
  for (var r = o > 1 ? void 0 : o ? uC(e, n) : e, i = t.length - 1, s; i >= 0; i--)
28016
28073
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
28017
28074
  return o && r && hC(e, n, r), r;
@@ -28073,7 +28130,7 @@ let x = class extends f {
28073
28130
  this.requestUpdate("maxlength", e);
28074
28131
  }
28075
28132
  get _defaultRequiredError() {
28076
- return ne(this.label);
28133
+ return oe(this.label);
28077
28134
  }
28078
28135
  get requiredError() {
28079
28136
  return this._requiredError ?? this._defaultRequiredError;
@@ -28272,79 +28329,79 @@ x.PARTS = {
28272
28329
  error: `${x.ROOT}-${x.ERROR}`
28273
28330
  };
28274
28331
  x.INPUT_SELECTORS = `pont-input[part="${x.PARTS.input}"]`;
28275
- ft([
28332
+ vt([
28276
28333
  a({ type: String })
28277
28334
  ], x.prototype, "seed", 2);
28278
- ft([
28335
+ vt([
28279
28336
  a({ type: String, attribute: "custom-id" })
28280
28337
  ], x.prototype, "customId", 2);
28281
- ft([
28338
+ vt([
28282
28339
  a({ type: String, attribute: "input-id" })
28283
28340
  ], x.prototype, "inputId", 1);
28284
- ft([
28341
+ vt([
28285
28342
  a({ type: String })
28286
28343
  ], x.prototype, "name", 1);
28287
- ft([
28344
+ vt([
28288
28345
  a({ type: String, attribute: "default-value" })
28289
28346
  ], x.prototype, "defaultValue", 2);
28290
- ft([
28347
+ vt([
28291
28348
  a({ type: String })
28292
28349
  ], x.prototype, "label", 1);
28293
- ft([
28350
+ vt([
28294
28351
  a({ type: String })
28295
28352
  ], x.prototype, "placeholder", 2);
28296
- ft([
28353
+ vt([
28297
28354
  a({ type: String })
28298
28355
  ], x.prototype, "description", 2);
28299
- ft([
28356
+ vt([
28300
28357
  a({ type: String })
28301
28358
  ], x.prototype, "mark", 2);
28302
- ft([
28359
+ vt([
28303
28360
  a({ type: Boolean })
28304
28361
  ], x.prototype, "caret", 2);
28305
- ft([
28362
+ vt([
28306
28363
  a({ type: String })
28307
28364
  ], x.prototype, "autocomplete", 2);
28308
- ft([
28365
+ vt([
28309
28366
  a({ type: Boolean })
28310
28367
  ], x.prototype, "disabled", 2);
28311
- ft([
28368
+ vt([
28312
28369
  a({ type: Boolean })
28313
28370
  ], x.prototype, "required", 2);
28314
- ft([
28371
+ vt([
28315
28372
  a({ type: Number })
28316
28373
  ], x.prototype, "minlength", 1);
28317
- ft([
28374
+ vt([
28318
28375
  a({ type: Number })
28319
28376
  ], x.prototype, "maxlength", 1);
28320
- ft([
28377
+ vt([
28321
28378
  a({ type: String })
28322
28379
  ], x.prototype, "pattern", 2);
28323
- ft([
28380
+ vt([
28324
28381
  a({ type: String })
28325
28382
  ], x.prototype, "validation", 2);
28326
- ft([
28383
+ vt([
28327
28384
  a({ type: String, attribute: "required-error" })
28328
28385
  ], x.prototype, "requiredError", 1);
28329
- ft([
28386
+ vt([
28330
28387
  a({ type: String, attribute: "minlength-error" })
28331
28388
  ], x.prototype, "minlengthError", 1);
28332
- ft([
28389
+ vt([
28333
28390
  a({ type: String, attribute: "maxlength-error" })
28334
28391
  ], x.prototype, "maxlengthError", 1);
28335
- ft([
28392
+ vt([
28336
28393
  a({ type: String, attribute: "format-error" })
28337
28394
  ], x.prototype, "formatError", 1);
28338
- ft([
28395
+ vt([
28339
28396
  m()
28340
28397
  ], x.prototype, "_invalid", 2);
28341
- ft([
28398
+ vt([
28342
28399
  m()
28343
28400
  ], x.prototype, "_error", 2);
28344
- ft([
28401
+ vt([
28345
28402
  m()
28346
28403
  ], x.prototype, "_value", 2);
28347
- x = ft([
28404
+ x = vt([
28348
28405
  p("pont-name-field")
28349
28406
  ], x);
28350
28407
  var gC = Object.defineProperty, mC = Object.getOwnPropertyDescriptor, Dt = (t, e, n, o) => {
@@ -28389,7 +28446,7 @@ let T = class extends f {
28389
28446
  this._label = t.length ? t : zn.label, this.requestUpdate("label", e);
28390
28447
  }
28391
28448
  get _defaultRequiredError() {
28392
- return ne(this.label);
28449
+ return oe(this.label);
28393
28450
  }
28394
28451
  get requiredError() {
28395
28452
  return this._requiredError ?? this._defaultRequiredError;
@@ -28623,7 +28680,7 @@ Dt([
28623
28680
  T = Dt([
28624
28681
  p("pont-phone-field")
28625
28682
  ], T);
28626
- var fC = Object.defineProperty, vC = Object.getOwnPropertyDescriptor, vt = (t, e, n, o) => {
28683
+ var fC = Object.defineProperty, vC = Object.getOwnPropertyDescriptor, bt = (t, e, n, o) => {
28627
28684
  for (var r = o > 1 ? void 0 : o ? vC(e, n) : e, i = t.length - 1, s; i >= 0; i--)
28628
28685
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
28629
28686
  return o && r && fC(e, n, r), r;
@@ -28685,7 +28742,7 @@ let O = class extends f {
28685
28742
  this.requestUpdate("maxlength", e);
28686
28743
  }
28687
28744
  get _defaultRequiredError() {
28688
- return ne(this.label);
28745
+ return oe(this.label);
28689
28746
  }
28690
28747
  get requiredError() {
28691
28748
  return this._requiredError ?? this._defaultRequiredError;
@@ -28884,79 +28941,79 @@ O.PARTS = {
28884
28941
  error: `${O.ROOT}-${O.ERROR}`
28885
28942
  };
28886
28943
  O.INPUT_SELECTORS = `pont-input[part="${O.PARTS.input}"]`;
28887
- vt([
28944
+ bt([
28888
28945
  a({ type: String })
28889
28946
  ], O.prototype, "seed", 2);
28890
- vt([
28947
+ bt([
28891
28948
  a({ type: String, attribute: "custom-id" })
28892
28949
  ], O.prototype, "customId", 2);
28893
- vt([
28950
+ bt([
28894
28951
  a({ type: String, attribute: "input-id" })
28895
28952
  ], O.prototype, "inputId", 1);
28896
- vt([
28953
+ bt([
28897
28954
  a({ type: String })
28898
28955
  ], O.prototype, "name", 1);
28899
- vt([
28956
+ bt([
28900
28957
  a({ type: String, attribute: "default-value" })
28901
28958
  ], O.prototype, "defaultValue", 2);
28902
- vt([
28959
+ bt([
28903
28960
  a({ type: String })
28904
28961
  ], O.prototype, "label", 1);
28905
- vt([
28962
+ bt([
28906
28963
  a({ type: String })
28907
28964
  ], O.prototype, "placeholder", 2);
28908
- vt([
28965
+ bt([
28909
28966
  a({ type: String })
28910
28967
  ], O.prototype, "description", 2);
28911
- vt([
28968
+ bt([
28912
28969
  a({ type: String })
28913
28970
  ], O.prototype, "mark", 2);
28914
- vt([
28971
+ bt([
28915
28972
  a({ type: Boolean })
28916
28973
  ], O.prototype, "caret", 2);
28917
- vt([
28974
+ bt([
28918
28975
  a({ type: String })
28919
28976
  ], O.prototype, "autocomplete", 2);
28920
- vt([
28977
+ bt([
28921
28978
  a({ type: Boolean })
28922
28979
  ], O.prototype, "disabled", 2);
28923
- vt([
28980
+ bt([
28924
28981
  a({ type: Boolean })
28925
28982
  ], O.prototype, "required", 2);
28926
- vt([
28983
+ bt([
28927
28984
  a({ type: Number })
28928
28985
  ], O.prototype, "minlength", 1);
28929
- vt([
28986
+ bt([
28930
28987
  a({ type: Number })
28931
28988
  ], O.prototype, "maxlength", 1);
28932
- vt([
28989
+ bt([
28933
28990
  a({ type: String })
28934
28991
  ], O.prototype, "pattern", 2);
28935
- vt([
28992
+ bt([
28936
28993
  a({ type: String })
28937
28994
  ], O.prototype, "validation", 2);
28938
- vt([
28995
+ bt([
28939
28996
  a({ type: String, attribute: "required-error" })
28940
28997
  ], O.prototype, "requiredError", 1);
28941
- vt([
28998
+ bt([
28942
28999
  a({ type: String, attribute: "minlength-error" })
28943
29000
  ], O.prototype, "minlengthError", 1);
28944
- vt([
29001
+ bt([
28945
29002
  a({ type: String, attribute: "maxlength-error" })
28946
29003
  ], O.prototype, "maxlengthError", 1);
28947
- vt([
29004
+ bt([
28948
29005
  a({ type: String, attribute: "format-error" })
28949
29006
  ], O.prototype, "formatError", 1);
28950
- vt([
29007
+ bt([
28951
29008
  m()
28952
29009
  ], O.prototype, "_invalid", 2);
28953
- vt([
29010
+ bt([
28954
29011
  m()
28955
29012
  ], O.prototype, "_error", 2);
28956
- vt([
29013
+ bt([
28957
29014
  m()
28958
29015
  ], O.prototype, "_value", 2);
28959
- O = vt([
29016
+ O = bt([
28960
29017
  p("pont-username-field")
28961
29018
  ], O);
28962
29019
  const ra = {
@@ -28983,7 +29040,7 @@ let Y = class extends f {
28983
29040
  );
28984
29041
  try {
28985
29042
  if (o && n === "auth") {
28986
- const r = await ht.processLoginflowEvent({
29043
+ const r = await ut.processLoginflowEvent({
28987
29044
  event: o
28988
29045
  });
28989
29046
  this.dispatchEvent(
@@ -29137,14 +29194,14 @@ var CC = Object.defineProperty, EC = Object.getOwnPropertyDescriptor, Ut = (t, e
29137
29194
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
29138
29195
  return o && r && CC(e, n, r), r;
29139
29196
  };
29140
- let ut = class extends ye {
29197
+ let gt = class extends ye {
29141
29198
  constructor() {
29142
29199
  super(...arguments), this.excludeFromForm = !1, this.required = !1, this.requiredError = "Code is required.", this.incompleteError = "Please enter the complete verification code.", this.variant = "with_separator", this.length = 6, this.timeout = 300, this.dataKey = "code", this.name = "", this.disabled = !1, this.autoSubmit = !1, this.event = "", this.resendText = "", this.resendButtonText = "", this.resendEvent = "", this.id = "otp", this._invalid = !1, this._error = "", this._value = "", this.handleComplete = async (t) => {
29143
29200
  if (this._value = t, this.autoSubmit && this.event) {
29144
29201
  const e = {};
29145
29202
  e[this.dataKey] = t;
29146
29203
  try {
29147
- await ht.processLoginflowEvent({
29204
+ await ut.processLoginflowEvent({
29148
29205
  event: this.event,
29149
29206
  data: e
29150
29207
  });
@@ -29177,7 +29234,7 @@ let ut = class extends ye {
29177
29234
  }, this.handleResend = async () => {
29178
29235
  if (this.resendEvent)
29179
29236
  try {
29180
- await ht.processLoginflowEvent({
29237
+ await ut.processLoginflowEvent({
29181
29238
  event: this.resendEvent
29182
29239
  });
29183
29240
  } finally {
@@ -29286,8 +29343,8 @@ let ut = class extends ye {
29286
29343
  `;
29287
29344
  }
29288
29345
  };
29289
- ut.ROOT = "otp";
29290
- ut.TAG = `${Ct}-${ut.ROOT}`;
29346
+ gt.ROOT = "otp";
29347
+ gt.TAG = `${Ct}-${gt.ROOT}`;
29291
29348
  Ut([
29292
29349
  a({
29293
29350
  type: Boolean,
@@ -29297,34 +29354,34 @@ Ut([
29297
29354
  toAttribute: (t) => t ? "" : null
29298
29355
  }
29299
29356
  })
29300
- ], ut.prototype, "excludeFromForm", 2);
29357
+ ], gt.prototype, "excludeFromForm", 2);
29301
29358
  Ut([
29302
29359
  a({ type: Boolean })
29303
- ], ut.prototype, "required", 2);
29360
+ ], gt.prototype, "required", 2);
29304
29361
  Ut([
29305
29362
  a({ attribute: "required-error" })
29306
- ], ut.prototype, "requiredError", 2);
29363
+ ], gt.prototype, "requiredError", 2);
29307
29364
  Ut([
29308
29365
  a({ attribute: "incomplete-error" })
29309
- ], ut.prototype, "incompleteError", 2);
29366
+ ], gt.prototype, "incompleteError", 2);
29310
29367
  Ut([
29311
29368
  a()
29312
- ], ut.prototype, "variant", 2);
29369
+ ], gt.prototype, "variant", 2);
29313
29370
  Ut([
29314
29371
  a({ type: Number })
29315
- ], ut.prototype, "length", 2);
29372
+ ], gt.prototype, "length", 2);
29316
29373
  Ut([
29317
29374
  a({ type: Number })
29318
- ], ut.prototype, "timeout", 2);
29375
+ ], gt.prototype, "timeout", 2);
29319
29376
  Ut([
29320
29377
  a({ attribute: "data-key" })
29321
- ], ut.prototype, "dataKey", 2);
29378
+ ], gt.prototype, "dataKey", 2);
29322
29379
  Ut([
29323
29380
  a()
29324
- ], ut.prototype, "name", 2);
29381
+ ], gt.prototype, "name", 2);
29325
29382
  Ut([
29326
29383
  a({ type: Boolean })
29327
- ], ut.prototype, "disabled", 2);
29384
+ ], gt.prototype, "disabled", 2);
29328
29385
  Ut([
29329
29386
  a({
29330
29387
  type: Boolean,
@@ -29334,34 +29391,34 @@ Ut([
29334
29391
  toAttribute: (t) => t ? "" : null
29335
29392
  }
29336
29393
  })
29337
- ], ut.prototype, "autoSubmit", 2);
29394
+ ], gt.prototype, "autoSubmit", 2);
29338
29395
  Ut([
29339
29396
  a()
29340
- ], ut.prototype, "event", 2);
29397
+ ], gt.prototype, "event", 2);
29341
29398
  Ut([
29342
29399
  a({ attribute: "resend-text" })
29343
- ], ut.prototype, "resendText", 2);
29400
+ ], gt.prototype, "resendText", 2);
29344
29401
  Ut([
29345
29402
  a({ attribute: "resend-button-text" })
29346
- ], ut.prototype, "resendButtonText", 2);
29403
+ ], gt.prototype, "resendButtonText", 2);
29347
29404
  Ut([
29348
29405
  a({ attribute: "resend-event" })
29349
- ], ut.prototype, "resendEvent", 2);
29406
+ ], gt.prototype, "resendEvent", 2);
29350
29407
  Ut([
29351
29408
  a()
29352
- ], ut.prototype, "id", 2);
29409
+ ], gt.prototype, "id", 2);
29353
29410
  Ut([
29354
29411
  m()
29355
- ], ut.prototype, "_invalid", 2);
29412
+ ], gt.prototype, "_invalid", 2);
29356
29413
  Ut([
29357
29414
  m()
29358
- ], ut.prototype, "_error", 2);
29415
+ ], gt.prototype, "_error", 2);
29359
29416
  Ut([
29360
29417
  m()
29361
- ], ut.prototype, "_value", 2);
29362
- ut = Ut([
29418
+ ], gt.prototype, "_value", 2);
29419
+ gt = Ut([
29363
29420
  p("pont-otp")
29364
- ], ut);
29421
+ ], gt);
29365
29422
  const Ai = {
29366
29423
  duration: 60,
29367
29424
  resend_event: "",
@@ -29373,10 +29430,10 @@ var SC = Object.defineProperty, xC = Object.getOwnPropertyDescriptor, Qr = (t, e
29373
29430
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
29374
29431
  return o && r && SC(e, n, r), r;
29375
29432
  };
29376
- let at = class extends f {
29433
+ let lt = class extends f {
29377
29434
  constructor() {
29378
29435
  super(...arguments), this.seed = qt(), this.duration = Ai.duration, this.resend_event = Ai.resend_event, this.resend_button_label = Ai.resend_button_label, this.count_down_text = Ai.count_down_text, this._remaining = 0, this._handleResendClick = () => {
29379
- ht.processLoginflowEvent({ event: this.resend_event }), this._startCountdown();
29436
+ ut.processLoginflowEvent({ event: this.resend_event }), this._startCountdown();
29380
29437
  };
29381
29438
  }
29382
29439
  /* ------------------------------------------------------------ */
@@ -29385,13 +29442,13 @@ let at = class extends f {
29385
29442
  }
29386
29443
  /* ------------------------------------------------------------ */
29387
29444
  get rootId() {
29388
- return this.customId ?? `${at.TAG}-${this.seed}`;
29445
+ return this.customId ?? `${lt.TAG}-${this.seed}`;
29389
29446
  }
29390
29447
  get countdownId() {
29391
- return `${this.rootId}-${at.COUNTDOWN}`;
29448
+ return `${this.rootId}-${lt.COUNTDOWN}`;
29392
29449
  }
29393
29450
  get resendButtonId() {
29394
- return `${this.rootId}-${at.RESEND_BUTTON}`;
29451
+ return `${this.rootId}-${lt.RESEND_BUTTON}`;
29395
29452
  }
29396
29453
  /* ------------------------------------------------------------ */
29397
29454
  connectedCallback() {
@@ -29422,17 +29479,17 @@ let at = class extends f {
29422
29479
  render() {
29423
29480
  const t = this._remaining > 0;
29424
29481
  return l`
29425
- <div part=${at.PARTS.root} id=${this.rootId}>
29482
+ <div part=${lt.PARTS.root} id=${this.rootId}>
29426
29483
  ${t ? l`
29427
29484
  <pont-typography-muted
29428
- part=${at.PARTS.countdown}
29485
+ part=${lt.PARTS.countdown}
29429
29486
  id=${this.countdownId}
29430
29487
  >
29431
29488
  ${this.count_down_text}${this._remaining}s
29432
29489
  </pont-typography-muted>
29433
29490
  ` : l`
29434
29491
  <pont-button
29435
- part=${at.PARTS.resendButton}
29492
+ part=${lt.PARTS.resendButton}
29436
29493
  id=${this.resendButtonId}
29437
29494
  variant="link"
29438
29495
  @click=${this._handleResendClick}
@@ -29444,39 +29501,39 @@ let at = class extends f {
29444
29501
  `;
29445
29502
  }
29446
29503
  };
29447
- at.ROOT = "otp-resend";
29448
- at.COUNTDOWN = "countdown";
29449
- at.RESEND_BUTTON = "resend-button";
29450
- at.TAG = `${Ct}-${at.ROOT}`;
29451
- at.PARTS = {
29452
- root: at.ROOT,
29453
- countdown: `${at.ROOT}-${at.COUNTDOWN}`,
29454
- resendButton: `${at.ROOT}-${at.RESEND_BUTTON}`
29504
+ lt.ROOT = "otp-resend";
29505
+ lt.COUNTDOWN = "countdown";
29506
+ lt.RESEND_BUTTON = "resend-button";
29507
+ lt.TAG = `${Ct}-${lt.ROOT}`;
29508
+ lt.PARTS = {
29509
+ root: lt.ROOT,
29510
+ countdown: `${lt.ROOT}-${lt.COUNTDOWN}`,
29511
+ resendButton: `${lt.ROOT}-${lt.RESEND_BUTTON}`
29455
29512
  };
29456
29513
  Qr([
29457
29514
  a({ type: String })
29458
- ], at.prototype, "seed", 2);
29515
+ ], lt.prototype, "seed", 2);
29459
29516
  Qr([
29460
29517
  a({ type: String, attribute: "custom-id" })
29461
- ], at.prototype, "customId", 2);
29518
+ ], lt.prototype, "customId", 2);
29462
29519
  Qr([
29463
29520
  a({ type: Number })
29464
- ], at.prototype, "duration", 2);
29521
+ ], lt.prototype, "duration", 2);
29465
29522
  Qr([
29466
29523
  a({ type: String, attribute: "resend-event" })
29467
- ], at.prototype, "resend_event", 2);
29524
+ ], lt.prototype, "resend_event", 2);
29468
29525
  Qr([
29469
29526
  a({ type: String, attribute: "resend-button-label" })
29470
- ], at.prototype, "resend_button_label", 2);
29527
+ ], lt.prototype, "resend_button_label", 2);
29471
29528
  Qr([
29472
29529
  a({ type: String, attribute: "count-down-text" })
29473
- ], at.prototype, "count_down_text", 2);
29530
+ ], lt.prototype, "count_down_text", 2);
29474
29531
  Qr([
29475
29532
  m()
29476
- ], at.prototype, "_remaining", 2);
29477
- at = Qr([
29533
+ ], lt.prototype, "_remaining", 2);
29534
+ lt = Qr([
29478
29535
  p("pont-otp-resend")
29479
- ], at);
29536
+ ], lt);
29480
29537
  const OC = [
29481
29538
  A,
29482
29539
  T,
@@ -29485,14 +29542,14 @@ const OC = [
29485
29542
  x,
29486
29543
  $,
29487
29544
  P,
29488
- ut
29545
+ gt
29489
29546
  ], PC = [J, Z, Y];
29490
29547
  var RC = Object.defineProperty, IC = Object.getOwnPropertyDescriptor, Ei = (t, e, n, o) => {
29491
29548
  for (var r = o > 1 ? void 0 : o ? IC(e, n) : e, i = t.length - 1, s; i >= 0; i--)
29492
29549
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
29493
29550
  return o && r && RC(e, n, r), r;
29494
29551
  };
29495
- let st = class extends f {
29552
+ let at = class extends f {
29496
29553
  constructor() {
29497
29554
  super(...arguments), this.seed = qt(), this._loading = !1, this._handleSubmitClick = (t) => {
29498
29555
  var e;
@@ -29511,7 +29568,7 @@ let st = class extends f {
29511
29568
  return;
29512
29569
  }
29513
29570
  if (!i) return;
29514
- const s = new CustomEvent(st.SUBMIT_EVENT, {
29571
+ const s = new CustomEvent(at.SUBMIT_EVENT, {
29515
29572
  detail: { id: this.rootId, data: r, event: i },
29516
29573
  bubbles: !0,
29517
29574
  composed: !0,
@@ -29527,11 +29584,11 @@ let st = class extends f {
29527
29584
  g
29528
29585
  );
29529
29586
  try {
29530
- const v = await ht.processLoginflowEvent({
29587
+ const v = await ut.processLoginflowEvent({
29531
29588
  event: i,
29532
29589
  ...Object.keys(r).length ? { data: r } : {}
29533
29590
  });
29534
- this._dispatch(st.SUCCESS_EVENT, {
29591
+ this._dispatch(at.SUCCESS_EVENT, {
29535
29592
  id: this.rootId,
29536
29593
  data: r,
29537
29594
  event: i,
@@ -29539,7 +29596,7 @@ let st = class extends f {
29539
29596
  });
29540
29597
  } catch (v) {
29541
29598
  const y = v instanceof Error ? v.message : String(v);
29542
- this._dispatch(st.ERROR_EVENT, {
29599
+ this._dispatch(at.ERROR_EVENT, {
29543
29600
  id: this.rootId,
29544
29601
  data: r,
29545
29602
  event: i,
@@ -29555,7 +29612,7 @@ let st = class extends f {
29555
29612
  ), this._pendingEvent = void 0;
29556
29613
  }
29557
29614
  }, this._handleReset = (t) => {
29558
- this._pendingEvent = void 0, this.onReset && this.onReset(t), this._dispatch(st.RESET_EVENT, { id: this.rootId });
29615
+ this._pendingEvent = void 0, this.onReset && this.onReset(t), this._dispatch(at.RESET_EVENT, { id: this.rootId });
29559
29616
  };
29560
29617
  }
29561
29618
  /* ------------------------------------------------------------ */
@@ -29564,11 +29621,11 @@ let st = class extends f {
29564
29621
  }
29565
29622
  /* ------------------------------------------------------------ */
29566
29623
  get rootId() {
29567
- return this.customId ?? `${st.TAG}-${this.seed}`;
29624
+ return this.customId ?? `${at.TAG}-${this.seed}`;
29568
29625
  }
29569
29626
  /* ---------------------------------------- */
29570
29627
  get _form() {
29571
- const t = `form[part="${st.PARTS.root}"]`;
29628
+ const t = `form[part="${at.PARTS.root}"]`;
29572
29629
  return this.querySelector(t);
29573
29630
  }
29574
29631
  get _fields() {
@@ -29625,36 +29682,36 @@ let st = class extends f {
29625
29682
  return l`
29626
29683
  <form
29627
29684
  id="${this.rootId}"
29628
- part="${st.PARTS.root}"
29685
+ part="${at.PARTS.root}"
29629
29686
  @submit=${this._handleSubmit}
29630
29687
  @reset=${this._handleReset}
29631
29688
  ></form>
29632
29689
  `;
29633
29690
  }
29634
29691
  };
29635
- st.ROOT = "form";
29636
- st.TAG = `${Ct}-${st.ROOT}`;
29637
- st.SUBMIT_EVENT = `${st.TAG}:submit`;
29638
- st.SUCCESS_EVENT = `${st.TAG}:success`;
29639
- st.ERROR_EVENT = `${st.TAG}:error`;
29640
- st.RESET_EVENT = `${st.TAG}:reset`;
29641
- st.PARTS = { root: st.ROOT };
29692
+ at.ROOT = "form";
29693
+ at.TAG = `${Ct}-${at.ROOT}`;
29694
+ at.SUBMIT_EVENT = `${at.TAG}:submit`;
29695
+ at.SUCCESS_EVENT = `${at.TAG}:success`;
29696
+ at.ERROR_EVENT = `${at.TAG}:error`;
29697
+ at.RESET_EVENT = `${at.TAG}:reset`;
29698
+ at.PARTS = { root: at.ROOT };
29642
29699
  Ei([
29643
29700
  a({ type: String })
29644
- ], st.prototype, "seed", 2);
29701
+ ], at.prototype, "seed", 2);
29645
29702
  Ei([
29646
29703
  a({ type: String, attribute: "custom-id" })
29647
- ], st.prototype, "customId", 2);
29704
+ ], at.prototype, "customId", 2);
29648
29705
  Ei([
29649
29706
  a({ attribute: !1 })
29650
- ], st.prototype, "onSubmit", 2);
29707
+ ], at.prototype, "onSubmit", 2);
29651
29708
  Ei([
29652
29709
  a({ attribute: !1 })
29653
- ], st.prototype, "onReset", 2);
29654
- st = Ei([
29710
+ ], at.prototype, "onReset", 2);
29711
+ at = Ei([
29655
29712
  p("pont-form")
29656
- ], st);
29657
- var AC = Object.defineProperty, TC = Object.getOwnPropertyDescriptor, oe = (t, e, n, o) => {
29713
+ ], at);
29714
+ var AC = Object.defineProperty, TC = Object.getOwnPropertyDescriptor, ie = (t, e, n, o) => {
29658
29715
  for (var r = o > 1 ? void 0 : o ? TC(e, n) : e, i = t.length - 1, s; i >= 0; i--)
29659
29716
  (s = t[i]) && (r = (o ? s(e, n, r) : s(r)) || r);
29660
29717
  return o && r && AC(e, n, r), r;
@@ -29765,46 +29822,46 @@ $t.DESIGN_PROVIDERS = [
29765
29822
  "apple",
29766
29823
  "github"
29767
29824
  ];
29768
- oe([
29825
+ ie([
29769
29826
  a({ type: String })
29770
29827
  ], $t.prototype, "seed", 2);
29771
- oe([
29828
+ ie([
29772
29829
  a({ attribute: "custom-id", type: String })
29773
29830
  ], $t.prototype, "customId", 2);
29774
- oe([
29831
+ ie([
29775
29832
  a({ type: Array })
29776
29833
  ], $t.prototype, "providers", 2);
29777
- oe([
29834
+ ie([
29778
29835
  a({ type: String })
29779
29836
  ], $t.prototype, "content", 2);
29780
- oe([
29837
+ ie([
29781
29838
  a({ type: String })
29782
29839
  ], $t.prototype, "variant", 2);
29783
- oe([
29840
+ ie([
29784
29841
  a({ type: String })
29785
29842
  ], $t.prototype, "size", 2);
29786
- oe([
29843
+ ie([
29787
29844
  a({ type: String })
29788
29845
  ], $t.prototype, "prompt", 2);
29789
- oe([
29846
+ ie([
29790
29847
  a({ attribute: "icon-align", type: String })
29791
29848
  ], $t.prototype, "iconAlign", 2);
29792
- oe([
29849
+ ie([
29793
29850
  a({ type: String })
29794
29851
  ], $t.prototype, "label", 2);
29795
- oe([
29852
+ ie([
29796
29853
  a({ type: Boolean })
29797
29854
  ], $t.prototype, "disabled", 2);
29798
- oe([
29855
+ ie([
29799
29856
  a({ type: Boolean })
29800
29857
  ], $t.prototype, "loading", 2);
29801
- oe([
29858
+ ie([
29802
29859
  a({ type: String })
29803
29860
  ], $t.prototype, "event", 2);
29804
- oe([
29861
+ ie([
29805
29862
  a({ type: Array })
29806
29863
  ], $t.prototype, "overrides", 2);
29807
- $t = oe([
29864
+ $t = ie([
29808
29865
  p("pont-provider-field")
29809
29866
  ], $t);
29810
29867
  const DC = {
@@ -29818,7 +29875,7 @@ var LC = Object.defineProperty, kC = Object.getOwnPropertyDescriptor, Si = (t, e
29818
29875
  let Bt = class extends f {
29819
29876
  constructor() {
29820
29877
  super(...arguments), this.seed = qt(), this.identifier = DC.identifier, this.event = "", this._handleClick = () => {
29821
- ht.processLoginflowEvent({ event: this.event });
29878
+ ut.processLoginflowEvent({ event: this.event });
29822
29879
  };
29823
29880
  }
29824
29881
  /* ---------------------------------------- */
@@ -30987,20 +31044,20 @@ function XC() {
30987
31044
  }
30988
31045
  function v(R, q, B) {
30989
31046
  const M = [];
30990
- let dt;
30991
- for (; (dt = R.exec(B)) !== null; )
31047
+ let pt;
31048
+ for (; (pt = R.exec(B)) !== null; )
30992
31049
  M.push({
30993
- data: dt[0],
30994
- index: dt.index,
31050
+ data: pt[0],
31051
+ index: pt.index,
30995
31052
  mode: q,
30996
- length: dt[0].length
31053
+ length: pt[0].length
30997
31054
  });
30998
31055
  return M;
30999
31056
  }
31000
31057
  function y(R) {
31001
31058
  const q = v(s.NUMERIC, e.NUMERIC, R), B = v(s.ALPHANUMERIC, e.ALPHANUMERIC, R);
31002
- let M, dt;
31003
- return c.isKanjiModeEnabled() ? (M = v(s.BYTE, e.BYTE, R), dt = v(s.KANJI, e.KANJI, R)) : (M = v(s.BYTE_KANJI, e.BYTE, R), dt = []), q.concat(B, M, dt).sort(function(j, U) {
31059
+ let M, pt;
31060
+ return c.isKanjiModeEnabled() ? (M = v(s.BYTE, e.BYTE, R), pt = v(s.KANJI, e.KANJI, R)) : (M = v(s.BYTE_KANJI, e.BYTE, R), pt = []), q.concat(B, M, pt).sort(function(j, U) {
31004
31061
  return j.index - U.index;
31005
31062
  }).map(function(j) {
31006
31063
  return {
@@ -31062,21 +31119,21 @@ function XC() {
31062
31119
  }
31063
31120
  function E(R, q) {
31064
31121
  const B = {}, M = { start: {} };
31065
- let dt = ["start"];
31122
+ let pt = ["start"];
31066
31123
  for (let k = 0; k < R.length; k++) {
31067
31124
  const j = R[k], U = [];
31068
31125
  for (let I = 0; I < j.length; I++) {
31069
31126
  const V = j[I], F = "" + k + I;
31070
31127
  U.push(F), B[F] = { node: V, lastCount: 0 }, M[F] = {};
31071
- for (let C = 0; C < dt.length; C++) {
31072
- const z = dt[C];
31128
+ for (let C = 0; C < pt.length; C++) {
31129
+ const z = pt[C];
31073
31130
  B[z] && B[z].node.mode === V.mode ? (M[z][F] = w(B[z].lastCount + V.length, V.mode) - w(B[z].lastCount, V.mode), B[z].lastCount += V.length) : (B[z] && (B[z].lastCount = V.length), M[z][F] = w(V.length, V.mode) + 4 + e.getCharCountIndicator(V.mode, q));
31074
31131
  }
31075
31132
  }
31076
- dt = U;
31133
+ pt = U;
31077
31134
  }
31078
- for (let k = 0; k < dt.length; k++)
31079
- M[dt[k]].end = 0;
31135
+ for (let k = 0; k < pt.length; k++)
31136
+ M[pt[k]].end = 0;
31080
31137
  return { map: M, table: B };
31081
31138
  }
31082
31139
  function L(R, q) {
@@ -31101,7 +31158,7 @@ function XC() {
31101
31158
  return typeof M == "string" ? B.push(L(M, null)) : M.data && B.push(L(M.data, M.mode)), B;
31102
31159
  }, []);
31103
31160
  }, t.fromString = function(q, B) {
31104
- const M = y(q, c.isKanjiModeEnabled()), dt = S(M), k = E(dt, B), j = d.find_path(k.map, "start", "end"), U = [];
31161
+ const M = y(q, c.isKanjiModeEnabled()), pt = S(M), k = E(pt, B), j = d.find_path(k.map, "start", "end"), U = [];
31105
31162
  for (let I = 1; I < j.length - 1; I++)
31106
31163
  U.push(k.table[j[I]].node);
31107
31164
  return t.fromArray(_(U));
@@ -31188,24 +31245,24 @@ function tE() {
31188
31245
  function M(k, j, U) {
31189
31246
  const I = t.getSymbolTotalCodewords(j), V = c.getTotalCodewordsCount(j, U), F = I - V, C = c.getBlocksCount(j, U), z = I % C, K = C - z, Ee = Math.floor(I / C), qe = Math.floor(F / C), xi = qe + 1, Mn = Ee - qe, en = new d(Mn);
31190
31247
  let Nn = 0;
31191
- const Jt = new Array(C), xc = new Array(C);
31248
+ const Qt = new Array(C), xc = new Array(C);
31192
31249
  let Vs = 0;
31193
31250
  const Wu = new Uint8Array(k.buffer);
31194
31251
  for (let jn = 0; jn < C; jn++) {
31195
31252
  const Gs = jn < K ? qe : xi;
31196
- Jt[jn] = Wu.slice(Nn, Nn + Gs), xc[jn] = en.encode(Jt[jn]), Nn += Gs, Vs = Math.max(Vs, Gs);
31253
+ Qt[jn] = Wu.slice(Nn, Nn + Gs), xc[jn] = en.encode(Qt[jn]), Nn += Gs, Vs = Math.max(Vs, Gs);
31197
31254
  }
31198
31255
  const Hs = new Uint8Array(I);
31199
31256
  let Oc = 0, gr, mr;
31200
31257
  for (gr = 0; gr < Vs; gr++)
31201
31258
  for (mr = 0; mr < C; mr++)
31202
- gr < Jt[mr].length && (Hs[Oc++] = Jt[mr][gr]);
31259
+ gr < Qt[mr].length && (Hs[Oc++] = Qt[mr][gr]);
31203
31260
  for (gr = 0; gr < Mn; gr++)
31204
31261
  for (mr = 0; mr < C; mr++)
31205
31262
  Hs[Oc++] = xc[mr][gr];
31206
31263
  return Hs;
31207
31264
  }
31208
- function dt(k, j, U, I) {
31265
+ function pt(k, j, U, I) {
31209
31266
  let V;
31210
31267
  if (Array.isArray(k))
31211
31268
  V = w.fromArray(k);
@@ -31246,7 +31303,7 @@ Minimum version required to store current data is: ` + F + `.
31246
31303
  if (typeof j > "u" || j === "")
31247
31304
  throw new Error("No input text");
31248
31305
  let I = e.M, V, F;
31249
- return typeof U < "u" && (I = e.from(U.errorCorrectionLevel, e.M), V = g.from(U.version), F = s.from(U.maskPattern), U.toSJISFunc && t.setToSJISFunction(U.toSJISFunc)), dt(j, V, I, F);
31306
+ return typeof U < "u" && (I = e.from(U.errorCorrectionLevel, e.M), V = g.from(U.version), F = s.from(U.maskPattern), U.toSJISFunc && t.setToSJISFunction(U.toSJISFunc)), pt(j, V, I, F);
31250
31307
  }, ia;
31251
31308
  }
31252
31309
  var Ea = {}, Sa = {}, ih;
@@ -32619,7 +32676,7 @@ _t = Po([
32619
32676
  p("pont-watermark")
32620
32677
  ], _t);
32621
32678
  function JE() {
32622
- return ht;
32679
+ return ut;
32623
32680
  }
32624
32681
  export {
32625
32682
  Sl as AuthStateElement,
@@ -32628,7 +32685,7 @@ export {
32628
32685
  ke as MultiEmailInput,
32629
32686
  Gt as PontAccountInfo,
32630
32687
  Rr as PontAccountMenu,
32631
- ee as PontAccountSettings,
32688
+ re as PontAccountSettings,
32632
32689
  tt as PontAlert,
32633
32690
  Qo as PontAuthenticated,
32634
32691
  si as PontBlock,
@@ -32638,7 +32695,7 @@ export {
32638
32695
  me as PontDivider,
32639
32696
  Bt as PontEditIdentifier,
32640
32697
  A as PontEmailField,
32641
- st as PontForm,
32698
+ at as PontForm,
32642
32699
  ai as PontGap,
32643
32700
  fs as PontHeader,
32644
32701
  Pl as PontHint,
@@ -32652,8 +32709,8 @@ export {
32652
32709
  Xo as PontModal,
32653
32710
  so as PontMultiSelectFilter,
32654
32711
  x as PontNameField,
32655
- ut as PontOtp,
32656
- at as PontOtpResend,
32712
+ gt as PontOtp,
32713
+ lt as PontOtpResend,
32657
32714
  io as PontPaginator,
32658
32715
  J as PontPasskeyButton,
32659
32716
  $ as PontPasswordField,