@nylas/web-elements 0.0.0-canary-20241015194719 → 0.0.0-canary-20241017103834

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.
Files changed (75) hide show
  1. package/dist/cdn/input-image-url/input-image-url.es.js +365 -365
  2. package/dist/cdn/nylas-additional-participants/nylas-additional-participants.es.js +46 -48
  3. package/dist/cdn/nylas-confirmation-email/nylas-confirmation-email.es.js +86 -82
  4. package/dist/cdn/nylas-custom-booking-flow/nylas-custom-booking-flow.es.js +1 -1
  5. package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +676 -674
  6. package/dist/cdn/nylas-event-duration/nylas-event-duration.es.js +228 -228
  7. package/dist/cdn/nylas-event-info/nylas-event-info.es.js +2 -2
  8. package/dist/cdn/nylas-event-limits/nylas-event-limits.es.js +2 -2
  9. package/dist/cdn/nylas-form-card/nylas-form-card.es.js +1 -1
  10. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +93 -91
  11. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +4 -3
  12. package/dist/cdn/nylas-timeslot-picker/nylas-timeslot-picker.es.js +4 -3
  13. package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js +37 -26
  14. package/dist/cjs/calendar-agenda-fill-icon_54.cjs.entry.js.map +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +2 -2
  17. package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
  18. package/dist/cjs/nylas-form-card.cjs.entry.js +1 -1
  19. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  20. package/dist/collection/collection-manifest.json +1 -1
  21. package/dist/collection/components/design-system/input-image-url/input-image-url.js +20 -2
  22. package/dist/collection/components/design-system/input-image-url/input-image-url.js.map +1 -1
  23. package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js +2 -2
  24. package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js.map +1 -1
  25. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +12 -16
  26. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
  27. package/dist/collection/components/scheduler-editor/nylas-additional-participants/test/nylas-additional-participants.spec.js +106 -0
  28. package/dist/collection/components/scheduler-editor/nylas-additional-participants/test/nylas-additional-participants.spec.js.map +1 -0
  29. package/dist/collection/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.js +52 -28
  30. package/dist/collection/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.js.map +1 -1
  31. package/dist/collection/components/scheduler-editor/nylas-confirmation-email/test/nylas-confirmation-email.spec.js +33 -0
  32. package/dist/collection/components/scheduler-editor/nylas-confirmation-email/test/nylas-confirmation-email.spec.js.map +1 -0
  33. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +5 -3
  34. package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
  35. package/dist/collection/components/scheduler-editor/nylas-event-duration/test/nylas-event-duration.spec.js +55 -0
  36. package/dist/collection/components/scheduler-editor/nylas-event-duration/test/nylas-event-duration.spec.js.map +1 -0
  37. package/dist/collection/components/scheduler-editor/nylas-event-info/nylas-event-info.js +1 -1
  38. package/dist/collection/components/scheduler-editor/nylas-event-limits/nylas-event-limits.js +1 -1
  39. package/dist/collection/components/scheduler-editor/nylas-form-card/nylas-form-card.js +1 -1
  40. package/dist/components/input-image-url2.js +6 -2
  41. package/dist/components/input-image-url2.js.map +1 -1
  42. package/dist/components/nylas-additional-participants2.js +12 -16
  43. package/dist/components/nylas-additional-participants2.js.map +1 -1
  44. package/dist/components/nylas-confirmation-email2.js +14 -5
  45. package/dist/components/nylas-confirmation-email2.js.map +1 -1
  46. package/dist/components/nylas-event-duration2.js +5 -3
  47. package/dist/components/nylas-event-duration2.js.map +1 -1
  48. package/dist/components/nylas-event-info2.js +1 -1
  49. package/dist/components/nylas-event-limits2.js +1 -1
  50. package/dist/components/nylas-form-card2.js +1 -1
  51. package/dist/components/nylas-timeslot-picker2.js +2 -2
  52. package/dist/components/nylas-timeslot-picker2.js.map +1 -1
  53. package/dist/esm/calendar-agenda-fill-icon_54.entry.js +37 -26
  54. package/dist/esm/calendar-agenda-fill-icon_54.entry.js.map +1 -1
  55. package/dist/esm/loader.js +1 -1
  56. package/dist/esm/nylas-booked-event-card_12.entry.js +2 -2
  57. package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
  58. package/dist/esm/nylas-form-card.entry.js +1 -1
  59. package/dist/esm/nylas-web-elements.js +1 -1
  60. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  61. package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
  62. package/dist/nylas-web-elements/{p-698d229c.entry.js → p-7a1d51ab.entry.js} +2 -2
  63. package/dist/nylas-web-elements/{p-698d229c.entry.js.map → p-7a1d51ab.entry.js.map} +1 -1
  64. package/dist/nylas-web-elements/p-bbf86b8c.entry.js +2 -0
  65. package/dist/nylas-web-elements/p-df131a08.entry.js +8 -0
  66. package/dist/nylas-web-elements/p-df131a08.entry.js.map +1 -0
  67. package/dist/types/components/design-system/input-image-url/input-image-url.d.ts +4 -0
  68. package/dist/types/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.d.ts +1 -1
  69. package/dist/types/components/scheduler-editor/nylas-confirmation-email/nylas-confirmation-email.d.ts +5 -1
  70. package/dist/types/components.d.ts +18 -6
  71. package/package.json +3 -3
  72. package/dist/nylas-web-elements/p-b9a8d404.entry.js +0 -8
  73. package/dist/nylas-web-elements/p-b9a8d404.entry.js.map +0 -1
  74. package/dist/nylas-web-elements/p-f4334e3a.entry.js +0 -2
  75. /package/dist/nylas-web-elements/{p-f4334e3a.entry.js.map → p-bbf86b8c.entry.js.map} +0 -0
@@ -1583,7 +1583,7 @@ var dayjs_min = { exports: {} };
1583
1583
  return ki ? qi : qi.endOf(ni);
1584
1584
  }, Ii = function(Fi, Ni) {
1585
1585
  return wi.w(gi.toDate()[Fi].apply(gi.toDate("s"), (ki ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ni)), gi);
1586
- }, Di = this.$W, Mi = this.$M, Ri = this.$D, Oi = "set" + (this.$u ? "UTC" : "");
1586
+ }, Di = this.$W, Mi = this.$M, Oi = this.$D, Ri = "set" + (this.$u ? "UTC" : "");
1587
1587
  switch (Ti) {
1588
1588
  case oi:
1589
1589
  return ki ? Ai(1, 0) : Ai(31, 11);
@@ -1591,16 +1591,16 @@ var dayjs_min = { exports: {} };
1591
1591
  return ki ? Ai(1, Mi) : Ai(0, Mi + 1);
1592
1592
  case ri:
1593
1593
  var Ui = this.$locale().weekStart || 0, ji = (Di < Ui ? Di + 7 : Di) - Ui;
1594
- return Ai(ki ? Ri - ji : Ri + (6 - ji), Mi);
1594
+ return Ai(ki ? Oi - ji : Oi + (6 - ji), Mi);
1595
1595
  case ni:
1596
1596
  case si:
1597
- return Ii(Oi + "Hours", 0);
1597
+ return Ii(Ri + "Hours", 0);
1598
1598
  case ti:
1599
- return Ii(Oi + "Minutes", 1);
1599
+ return Ii(Ri + "Minutes", 1);
1600
1600
  case ei:
1601
- return Ii(Oi + "Seconds", 2);
1601
+ return Ii(Ri + "Seconds", 2);
1602
1602
  case ln:
1603
- return Ii(Oi + "Milliseconds", 3);
1603
+ return Ii(Ri + "Milliseconds", 3);
1604
1604
  default:
1605
1605
  return this.clone();
1606
1606
  }
@@ -1621,8 +1621,8 @@ var dayjs_min = { exports: {} };
1621
1621
  var gi, ki = this;
1622
1622
  fi = Number(fi);
1623
1623
  var Ti = wi.p(Ei), Ai = function(Mi) {
1624
- var Ri = mi(ki);
1625
- return wi.w(Ri.date(Ri.date() + Math.round(Mi * fi)), ki);
1624
+ var Oi = mi(ki);
1625
+ return wi.w(Oi.date(Oi.date() + Math.round(Mi * fi)), ki);
1626
1626
  };
1627
1627
  if (Ti === ii) return this.set(ii, this.$M + fi);
1628
1628
  if (Ti === oi) return this.set(oi, this.$y + fi);
@@ -1635,14 +1635,14 @@ var dayjs_min = { exports: {} };
1635
1635
  }, vi.format = function(fi) {
1636
1636
  var Ei = this, gi = this.$locale();
1637
1637
  if (!this.isValid()) return gi.invalidDate || li;
1638
- var ki = fi || "YYYY-MM-DDTHH:mm:ssZ", Ti = wi.z(this), Ai = this.$H, Ii = this.$m, Di = this.$M, Mi = gi.weekdays, Ri = gi.months, Oi = function(Ni, qi, Gi, Bi) {
1638
+ var ki = fi || "YYYY-MM-DDTHH:mm:ssZ", Ti = wi.z(this), Ai = this.$H, Ii = this.$m, Di = this.$M, Mi = gi.weekdays, Oi = gi.months, Ri = function(Ni, qi, Gi, Bi) {
1639
1639
  return Ni && (Ni[qi] || Ni(Ei, ki)) || Gi[qi].slice(0, Bi);
1640
1640
  }, Ui = function(Ni) {
1641
1641
  return wi.s(Ai % 12 || 12, Ni, "0");
1642
1642
  }, ji = gi.meridiem || function(Ni, qi, Gi) {
1643
1643
  var Bi = Ni < 12 ? "AM" : "PM";
1644
1644
  return Gi ? Bi.toLowerCase() : Bi;
1645
- }, Fi = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Di + 1, MM: wi.s(Di + 1, 2, "0"), MMM: Oi(gi.monthsShort, Di, Ri, 3), MMMM: Oi(Ri, Di), D: this.$D, DD: wi.s(this.$D, 2, "0"), d: String(this.$W), dd: Oi(gi.weekdaysMin, this.$W, Mi, 2), ddd: Oi(gi.weekdaysShort, this.$W, Mi, 3), dddd: Mi[this.$W], H: String(Ai), HH: wi.s(Ai, 2, "0"), h: Ui(1), hh: Ui(2), a: ji(Ai, Ii, !0), A: ji(Ai, Ii, !1), m: String(Ii), mm: wi.s(Ii, 2, "0"), s: String(this.$s), ss: wi.s(this.$s, 2, "0"), SSS: wi.s(this.$ms, 3, "0"), Z: Ti };
1645
+ }, Fi = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Di + 1, MM: wi.s(Di + 1, 2, "0"), MMM: Ri(gi.monthsShort, Di, Oi, 3), MMMM: Ri(Oi, Di), D: this.$D, DD: wi.s(this.$D, 2, "0"), d: String(this.$W), dd: Ri(gi.weekdaysMin, this.$W, Mi, 2), ddd: Ri(gi.weekdaysShort, this.$W, Mi, 3), dddd: Mi[this.$W], H: String(Ai), HH: wi.s(Ai, 2, "0"), h: Ui(1), hh: Ui(2), a: ji(Ai, Ii, !0), A: ji(Ai, Ii, !1), m: String(Ii), mm: wi.s(Ii, 2, "0"), s: String(this.$s), ss: wi.s(this.$s, 2, "0"), SSS: wi.s(this.$ms, 3, "0"), Z: Ti };
1646
1646
  return ki.replace(ui, function(Ni, qi) {
1647
1647
  return qi || Fi[Ni] || Ti.replace(":", "");
1648
1648
  });
@@ -10639,16 +10639,16 @@ and ensure you are accounting for this risk.
10639
10639
  if (!ti || has(ti, fi) && ti[fi].indexOf(Di) !== -1 || ti["*"] && ti["*"].indexOf(Di) !== -1 || has(ni, fi) && ni[fi].test(Di) || ni["*"] && ni["*"].test(Di))
10640
10640
  Mi = !0;
10641
10641
  else if (ti && ti[fi]) {
10642
- for (const Ri of ti[fi])
10643
- if (isPlainObject$3(Ri) && Ri.name && Ri.name === Di) {
10642
+ for (const Oi of ti[fi])
10643
+ if (isPlainObject$3(Oi) && Oi.name && Oi.name === Di) {
10644
10644
  Mi = !0;
10645
- let Oi = "";
10646
- if (Ri.multiple === !0) {
10645
+ let Ri = "";
10646
+ if (Oi.multiple === !0) {
10647
10647
  const Ui = Ii.split(" ");
10648
10648
  for (const ji of Ui)
10649
- Ri.values.indexOf(ji) !== -1 && (Oi === "" ? Oi = ji : Oi += " " + ji);
10650
- } else Ri.values.indexOf(Ii) >= 0 && (Oi = Ii);
10651
- Ii = Oi;
10649
+ Oi.values.indexOf(ji) !== -1 && (Ri === "" ? Ri = ji : Ri += " " + ji);
10650
+ } else Oi.values.indexOf(Ii) >= 0 && (Ri = Ii);
10651
+ Ii = Ri;
10652
10652
  }
10653
10653
  }
10654
10654
  if (Mi) {
@@ -10657,57 +10657,57 @@ and ensure you are accounting for this risk.
10657
10657
  return;
10658
10658
  }
10659
10659
  if (fi === "script" && Di === "src") {
10660
- let Ri = !0;
10660
+ let Oi = !0;
10661
10661
  try {
10662
- const Oi = wi(Ii);
10662
+ const Ri = wi(Ii);
10663
10663
  if (ue.allowedScriptHostnames || ue.allowedScriptDomains) {
10664
10664
  const Ui = (ue.allowedScriptHostnames || []).find(function(Fi) {
10665
- return Fi === Oi.url.hostname;
10665
+ return Fi === Ri.url.hostname;
10666
10666
  }), ji = (ue.allowedScriptDomains || []).find(function(Fi) {
10667
- return Oi.url.hostname === Fi || Oi.url.hostname.endsWith(`.${Fi}`);
10667
+ return Ri.url.hostname === Fi || Ri.url.hostname.endsWith(`.${Fi}`);
10668
10668
  });
10669
- Ri = Ui || ji;
10669
+ Oi = Ui || ji;
10670
10670
  }
10671
10671
  } catch {
10672
- Ri = !1;
10672
+ Oi = !1;
10673
10673
  }
10674
- if (!Ri) {
10674
+ if (!Oi) {
10675
10675
  delete gi.attribs[Di];
10676
10676
  return;
10677
10677
  }
10678
10678
  }
10679
10679
  if (fi === "iframe" && Di === "src") {
10680
- let Ri = !0;
10680
+ let Oi = !0;
10681
10681
  try {
10682
- const Oi = wi(Ii);
10683
- if (Oi.isRelativeUrl)
10684
- Ri = has(ue, "allowIframeRelativeUrls") ? ue.allowIframeRelativeUrls : !ue.allowedIframeHostnames && !ue.allowedIframeDomains;
10682
+ const Ri = wi(Ii);
10683
+ if (Ri.isRelativeUrl)
10684
+ Oi = has(ue, "allowIframeRelativeUrls") ? ue.allowIframeRelativeUrls : !ue.allowedIframeHostnames && !ue.allowedIframeDomains;
10685
10685
  else if (ue.allowedIframeHostnames || ue.allowedIframeDomains) {
10686
10686
  const Ui = (ue.allowedIframeHostnames || []).find(function(Fi) {
10687
- return Fi === Oi.url.hostname;
10687
+ return Fi === Ri.url.hostname;
10688
10688
  }), ji = (ue.allowedIframeDomains || []).find(function(Fi) {
10689
- return Oi.url.hostname === Fi || Oi.url.hostname.endsWith(`.${Fi}`);
10689
+ return Ri.url.hostname === Fi || Ri.url.hostname.endsWith(`.${Fi}`);
10690
10690
  });
10691
- Ri = Ui || ji;
10691
+ Oi = Ui || ji;
10692
10692
  }
10693
10693
  } catch {
10694
- Ri = !1;
10694
+ Oi = !1;
10695
10695
  }
10696
- if (!Ri) {
10696
+ if (!Oi) {
10697
10697
  delete gi.attribs[Di];
10698
10698
  return;
10699
10699
  }
10700
10700
  }
10701
10701
  if (Di === "srcset")
10702
10702
  try {
10703
- let Ri = parseSrcset(Ii);
10704
- if (Ri.forEach(function(Oi) {
10705
- mi("srcset", Oi.url) && (Oi.evil = !0);
10706
- }), Ri = filter(Ri, function(Oi) {
10707
- return !Oi.evil;
10708
- }), Ri.length)
10709
- Ii = stringifySrcset(filter(Ri, function(Oi) {
10710
- return !Oi.evil;
10703
+ let Oi = parseSrcset(Ii);
10704
+ if (Oi.forEach(function(Ri) {
10705
+ mi("srcset", Ri.url) && (Ri.evil = !0);
10706
+ }), Oi = filter(Oi, function(Ri) {
10707
+ return !Ri.evil;
10708
+ }), Oi.length)
10709
+ Ii = stringifySrcset(filter(Oi, function(Ri) {
10710
+ return !Ri.evil;
10711
10711
  })), gi.attribs[Di] = Ii;
10712
10712
  else {
10713
10713
  delete gi.attribs[Di];
@@ -10718,13 +10718,13 @@ and ensure you are accounting for this risk.
10718
10718
  return;
10719
10719
  }
10720
10720
  if (Di === "class") {
10721
- const Ri = ri[fi], Oi = ri["*"], Ui = ii[fi], ji = ai[fi], Fi = ii["*"], Ni = [
10721
+ const Oi = ri[fi], Ri = ri["*"], Ui = ii[fi], ji = ai[fi], Fi = ii["*"], Ni = [
10722
10722
  Ui,
10723
10723
  Fi
10724
10724
  ].concat(ji).filter(function(qi) {
10725
10725
  return qi;
10726
10726
  });
10727
- if (Ri && Oi ? Ii = vi(Ii, deepmerge(Ri, Oi), Ni) : Ii = vi(Ii, Ri || Oi, Ni), !Ii.length) {
10727
+ if (Oi && Ri ? Ii = vi(Ii, deepmerge(Oi, Ri), Ni) : Ii = vi(Ii, Oi || Ri, Ni), !Ii.length) {
10728
10728
  delete gi.attribs[Di];
10729
10729
  return;
10730
10730
  }
@@ -10732,8 +10732,8 @@ and ensure you are accounting for this risk.
10732
10732
  if (Di === "style") {
10733
10733
  if (ue.parseStyleAttributes)
10734
10734
  try {
10735
- const Ri = postcssParse(fi + " {" + Ii + "}", { map: !1 }), Oi = hi(Ri, ue.allowedStyles);
10736
- if (Ii = xi(Oi), Ii.length === 0) {
10735
+ const Oi = postcssParse(fi + " {" + Ii + "}", { map: !1 }), Ri = hi(Oi, ue.allowedStyles);
10736
+ if (Ii = xi(Ri), Ii.length === 0) {
10737
10737
  delete gi.attribs[Di];
10738
10738
  return;
10739
10739
  }
@@ -15574,7 +15574,7 @@ var __decorate$z = function(ve, ue, ge, Oe) {
15574
15574
  };
15575
15575
  const InputImageUrl = proxyCustomElement(class extends H$2 {
15576
15576
  constructor() {
15577
- super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = createEvent(this, "valueChanged", 7), this.internals = this.attachInternals(), this.componentType = "image-url", this.imageUrl = "", this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl;
15577
+ super(), this.__registerHost(), this.__attachShadow(), this.nylasFormInputImageUrlInvalid = createEvent(this, "nylasFormInputImageUrlInvalid", 7), this.valueChanged = createEvent(this, "valueChanged", 7), this.internals = this.attachInternals(), this.componentType = "image-url", this.imageUrl = "", this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl;
15578
15578
  }
15579
15579
  connectedCallback() {
15580
15580
  debug("nylas-image-input", "connectedCallback");
@@ -15615,11 +15615,11 @@ const InputImageUrl = proxyCustomElement(class extends H$2 {
15615
15615
  this.errorMessage = "", isValidImage(ue).then(() => {
15616
15616
  this.currentImageUrl = ue, this.internals.setValidity({}), this.internals.setFormValue(this.currentImageUrl, this.name), this.valueChanged.emit({ value: this.currentImageUrl, name: this.name });
15617
15617
  }).catch(() => {
15618
- this.internals.setValidity({ customError: !0 }, "Invalid image URL."), this.errorMessage = "Invalid image URL.";
15618
+ this.errorMessage = "Invalid image URL.", this.nylasFormInputImageUrlInvalid.emit({ value: "Invalid image URL.", name: this.name }), typeof this.internals.setValidity == "function" && this.internals.setValidity({ customError: !0 }, "Invalid image URL.");
15619
15619
  });
15620
15620
  }
15621
15621
  render() {
15622
- return h$2(Host, { key: "37ae40e1bc1eadb1d66f68b26e66b9b0046752b0" }, h$2("div", { key: "fe6024927698ba0d41e4875d0f190cf610afe7d7", class: "logo-container" }, h$2("div", { key: "b61b97fb4a518e68773304eaa55833104bc246c8", class: "input-container" }, h$2("input-component", { key: "f918ef5a13ec93e71635ca205534894c97243fe4", name: this.name, id: this.name, type: "text", required: !1, exportparts: "ic_input: iiu__logo-input-textfield", defaultValue: this.imageUrl ?? "" }), this.errorMessage && h$2("span", { class: "error-message" }, this.errorMessage)), this.currentImageUrl && !this.errorMessage && h$2("div", { class: "logo" }, h$2("img", { src: this.currentImageUrl, alt: "Logo" }))));
15622
+ return h$2(Host, { key: "27db94b782ae96518852a8486821a7f6544492a2" }, h$2("div", { key: "3923ce12503dd454e716e002b693b8e5f7e7e991", class: "logo-container" }, h$2("div", { key: "004c0dfb0e5ec721e356b4915fbdd75f84a67301", class: "input-container" }, h$2("input-component", { key: "f06812996be4fd6384fffc2c095e62ba7067881d", name: this.name, id: this.name, type: "text", required: !1, exportparts: "ic_input: iiu__logo-input-textfield", defaultValue: this.imageUrl ?? "" }), this.errorMessage && h$2("span", { class: "error-message" }, this.errorMessage)), this.currentImageUrl && !this.errorMessage && h$2("div", { class: "logo" }, h$2("img", { src: this.currentImageUrl, alt: "Logo" }))));
15623
15623
  }
15624
15624
  static get formAssociated() {
15625
15625
  return !0;
@@ -15918,7 +15918,7 @@ const NylasFormCard = proxyCustomElement(class extends H$2 {
15918
15918
  debug("nylas-event-card", "disconnectedCallback"), checkForMissingSlots(["header-title", "header-subtitle", "content"], this.host);
15919
15919
  }
15920
15920
  render() {
15921
- return h$2(Host, { key: "e79321333887319f48356c64cb2e04539edf1d79" }, h$2("div", { key: "9a33c42c38012c5277ecc0d60523211671866378", class: "nylas-form-card", part: "nfc" }, h$2("div", { key: "905eed6cd8c79bda19fb3c5ab49802ae697a0ab9", class: "nylas-form-card__header", part: "nfc__header" }, h$2("slot", { key: "db749b7eb575845c2b8d8e4a12ea0c3ffea4842a", name: "header-title" }), h$2("slot", { key: "5b9ac54446f1b1b49a9f0f2e2b45e3785acb9686", name: "header-subtitle" })), h$2("div", { key: "6893e68e48f990c6dfc3d3c3052dfba988b21807", class: "nylas-form-card__content" }, h$2("slot", { key: "fac98a2a1a6b162bc3f4aed735b584c4d5e509a3", name: "content" }))));
15921
+ return h$2(Host, { key: "5ccd047d1a8bb515dea8aa7b9d7d39265afc31c9" }, h$2("div", { key: "c40f52eaa4d099d92d65b0df662cd2de1b5f35c7", class: "nylas-form-card", part: "nfc" }, h$2("div", { key: "545dabd81dce9b4f6f5f1d129071e1136f62e609", class: "nylas-form-card__header", part: "nfc__header" }, h$2("slot", { key: "2be9b24f91316235be7132a6466cd16b9dfe813c", name: "header-title" }), h$2("slot", { key: "3414a084465efc50a3856291dff61d8ef3b3c617", name: "header-subtitle" })), h$2("div", { key: "cc07650a55afd7fc5d2429ff3611168977775bc8", class: "nylas-form-card__content" }, h$2("slot", { key: "d50dd8dfbfea1ad84876495e72dd03102e2bc0dc", name: "content" }))));
15922
15922
  }
15923
15923
  static get formAssociated() {
15924
15924
  return !0;
@@ -16025,18 +16025,21 @@ const NylasAdditionalParticipants = proxyCustomElement(class extends H$2 {
16025
16025
  disconnectedCallback() {
16026
16026
  debug("nylas-additional-participants", "disconnectedCallback");
16027
16027
  }
16028
+ isInternalsAvailable() {
16029
+ return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
16030
+ }
16028
16031
  onInputOptionChanged(ue) {
16029
16032
  var vt;
16030
16033
  debug("nylas-additional-participants", "onInputOptionChanged");
16031
- const ge = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/, Oe = ue.detail.name, Ke = (vt = this.participantOptions) == null ? void 0 : vt.find((ln) => ln.email === ue.detail.value);
16034
+ const ge = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, Oe = ue.detail.name, Ke = (vt = this.participantOptions) == null ? void 0 : vt.find((ln) => ln.email === ue.detail.value);
16032
16035
  if (!Ke && this.isRoundRobinConfig) {
16033
- this.internals.setValidity({ customError: !0 }, "For round robin configuration, participant should be selected from the dropdown."), this.participantErrors[Oe] = "For round robin page, participant should be selected from the dropdown.", this.participants[Oe].is_valid = !1, this.participants = [...this.participants];
16036
+ this.isInternalsAvailable() && this.internals.setValidity({ customError: !0 }, "For round robin configuration, participant should be selected from the dropdown."), this.participantErrors[Oe] = "For round robin page, participant should be selected from the dropdown.", this.participants[Oe].is_valid = !1, this.participants = [...this.participants];
16034
16037
  return;
16035
16038
  } else if (!Ke && !ge.test(ue.detail.value)) {
16036
- this.internals.setValidity({ customError: !0 }, "Please enter a valid email address"), this.participantErrors[Oe] = "Please enter a valid email address", this.participants[Oe].is_valid = !1, this.participants = [...this.participants];
16039
+ this.isInternalsAvailable() && this.internals.setValidity({ customError: !0 }, "Please enter a valid email address"), this.participantErrors[Oe] = "Please enter a valid email address", this.participants[Oe].is_valid = !1, this.participants = [...this.participants];
16037
16040
  return;
16038
16041
  } else
16039
- this.participantErrors[Oe] = "", this.participants[Oe].is_valid = !0, this.internals.setValidity({});
16042
+ this.participantErrors[Oe] = "", this.participants[Oe].is_valid = !0, this.isInternalsAvailable() && this.internals.setValidity({});
16040
16043
  this.participants[Oe].email = ue.detail.value, this.participants[Oe].availability = Ke ? { calendar_ids: ["primary"] } : void 0, this.participants[Oe].booking = Ke && this.isRoundRobinConfig ? { calendar_id: "primary" } : void 0, this.participants[Oe].name = (Ke == null ? void 0 : Ke.name) || ue.detail.value, this.participants = [...this.participants], this.updateFormValue();
16041
16044
  }
16042
16045
  updateOrganizerAsParticipant() {
@@ -16066,28 +16069,23 @@ const NylasAdditionalParticipants = proxyCustomElement(class extends H$2 {
16066
16069
  removeParticipant(ue) {
16067
16070
  debug("nylas-additional-participants", "removeParticipant"), this.participants = this.participants.filter((ge, Oe) => Oe !== ue), this.updateFormValue();
16068
16071
  }
16069
- validate(ue, ge) {
16070
- debug("nylas-additional-participants", "validate");
16071
- const Ke = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(ue).toLowerCase());
16072
- this.participants[ge].is_valid = Ke, this.updateFormValue();
16073
- }
16074
16072
  updateFormValue() {
16075
16073
  debug("nylas-additional-participants", "updateFormValue");
16076
16074
  const ue = this.isRoundRobinConfig ? this.includeOrganizerAsParticipant ? this.participants : this.participants.filter((ge) => !ge.is_organizer) : this.participants;
16077
- ue.length === 0 ? (this.internals.setValidity({ customError: !0 }, "Please add at least one participant"), this.error = "Please add at least one participant") : (this.internals.setValidity({}), this.error = "", this.internals.setFormValue(JSON.stringify(ue), this.name), this.valueChanged.emit({ value: JSON.stringify(ue), name: this.name }));
16075
+ ue.length === 0 ? (this.isInternalsAvailable() && this.internals.setValidity({ customError: !0 }, "Please add at least one participant"), this.error = "Please add at least one participant") : (this.isInternalsAvailable() && this.internals.setValidity({}), this.error = "", this.isInternalsAvailable() && this.internals.setFormValue(JSON.stringify(ue), this.name), this.valueChanged.emit({ value: JSON.stringify(ue), name: this.name }));
16078
16076
  }
16079
16077
  getArrayDifference(ue, ge) {
16080
16078
  return ue.filter((Ke) => !ge.some((vt) => Ke.email === vt.email)).map((Ke) => ({ value: Ke.email, label: Ke.email }));
16081
16079
  }
16082
16080
  render() {
16083
- return h$2(Host, { key: "a090033dc7d7915ca65100fd1803d2430052b18a", part: "nap" }, h$2("nylas-form-card", { key: "19203e4c99690200b679943672f89e9d20bc62b5" }, h$2("h3", { key: "33fbde2341b42cb0529b95a06f80d6dea08ffc52", slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Participants"), h$2("p", { key: "a8c73ed714ab74309f1a417215b9e56da99a2731", slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add people in your team or organization to join the event."), h$2("div", { key: "bce67b77333c2db513463acaa952b51d933d43d9", slot: "content", class: "nylas-additional-participants__content" }, h$2("div", { key: "35e0bf36996f3daec1d41e1d8c74c636fb72307f" }, this.participants.map((ue, ge) => h$2("div", { class: "nylas-additional-participants__input_group", part: "nap__input_group" }, !ue.is_organizer && h$2("label", null, `Participant ${ge}`), h$2("div", { part: "nap__input_wrapper", class: {
16081
+ return h$2(Host, { key: "b17facebc66435c9e405b442500163b47836914e", part: "nap" }, h$2("nylas-form-card", { key: "bce92f93c9f0ec0c04c000582505ea1adb1a3e22" }, h$2("h3", { key: "07cd5fd66a38dadfd67f67607fe81fb235cbb1f3", slot: "header-title", class: "nylas-additional-participants__title", part: "nap__title" }, "Participants"), h$2("p", { key: "3e9f5348444a81731228d4ce5f355b3cd6ead03f", slot: "header-subtitle", class: "nylas-additional-participants__subtitle", part: "nap__subtitle" }, "Add people in your team or organization to join the event."), h$2("div", { key: "b6921a32886aaedbf9ecaa942912c2991881b380", slot: "content", class: "nylas-additional-participants__content" }, h$2("div", { key: "780531379643ee4764122906f144d302e0bc32e5" }, this.participants.map((ue, ge) => h$2("div", { class: "nylas-additional-participants__input_group", part: "nap__input_group" }, !ue.is_organizer && h$2("label", null, `Participant ${ge}`), h$2("div", { part: "nap__input_wrapper", class: {
16084
16082
  "nylas-additional-participants__input_wrapper": !0,
16085
16083
  "nylas-additional-participants__input_wrapper_organizer": (ue == null ? void 0 : ue.is_organizer) === !0,
16086
16084
  "nylas-additional-participants__input_wrapper_invalid": ue.is_valid === !1,
16087
16085
  error: ue.is_valid === !1
16088
16086
  } }, h$2("div", { class: { "nylas-additional-participants__input": !0, organizer: (ue == null ? void 0 : ue.is_organizer) === !0 }, part: "nap__input" }, ue.is_organizer ? h$2("input-component", { class: "label-input", name: `${ge}`, key: ge, label: "Organizer", required: !1, readOnly: ue.is_organizer, defaultValue: ue.email }, this.isRoundRobinConfig && h$2("div", { class: "required-input", slot: "additional-input" }, h$2("input", { type: "checkbox", name: "organizer_participant", id: "organizer_participant", onClick: () => {
16089
16087
  this.includeOrganizerAsParticipant = !this.includeOrganizerAsParticipant, this.updateFormValue();
16090
- }, checked: this.includeOrganizerAsParticipant }), h$2("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, "Participant", h$2("tooltip-component", { id: "organizer_participant_tooltip" }, h$2("info-icon", { slot: "tooltip-icon" }), h$2("span", { slot: "tooltip-content" }, h$2("strong", null, "Include Organizer:"), " The organizer (you) will be included in the round-robin rotation. ", h$2("br", null), h$2("strong", null, "Exclude Organizer:"), " The organizer (you) will not be included in the round-robin rotation."))))) : h$2("input-dropdown", { id: `${ge}`, name: `${ge}`, filterable: !0, inputValue: ue.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) }), !ue.is_organizer && h$2("button", { onClick: () => this.removeParticipant(ge), part: "nap__remove-participant" }, h$2("close-icon", null)))), !ue.is_valid && h$2("p", { class: "nylas-additional-participants__error", part: "nap__error" }, this.participantErrors[ge]))), h$2("p", { key: "51f51ef0614cd93592fae8a32f501d0249b12c5a", class: "nylas-additional-participants__error", part: "nap__error" }, this.error)), h$2("button", { key: "93605c6ce8fb6b77451ea0f8c06fb23134727c3f", class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, h$2("add-circle-icon", { key: "8e6ac25f43f06ad3ee24047a1a7469b13c5a56c7" }), " ", h$2("span", { key: "511068fb28c498edba86706bef49dcad6633d249" }, "Add ", this.participants.length > 1 ? "another" : "a", " participant")))));
16088
+ }, checked: this.includeOrganizerAsParticipant }), h$2("label", { htmlFor: "organizer_participant", "aria-label": "Include as participant" }, "Participant", h$2("tooltip-component", { id: "organizer_participant_tooltip" }, h$2("info-icon", { slot: "tooltip-icon" }), h$2("span", { slot: "tooltip-content" }, h$2("strong", null, "Include Organizer:"), " The organizer (you) will be included in the round-robin rotation. ", h$2("br", null), h$2("strong", null, "Exclude Organizer:"), " The organizer (you) will not be included in the round-robin rotation."))))) : h$2("input-dropdown", { id: `${ge}`, name: `${ge}`, filterable: !0, inputValue: ue.email, options: this.getArrayDifference(this.participantOptions || [], this.participants) }), !ue.is_organizer && h$2("button", { onClick: () => this.removeParticipant(ge), part: "nap__remove-participant" }, h$2("close-icon", null)))), !ue.is_valid && h$2("p", { class: "nylas-additional-participants__error", part: "nap__error" }, this.participantErrors[ge]))), h$2("p", { key: "9921cf9eb77303da37e64bb4b2555fe662bcb299", class: "nylas-additional-participants__error", part: "nap__error" }, this.error)), h$2("button", { key: "0fdc9f4d4ee5b221aaaa01de39e0fe5ad29675f1", class: "nylas-additional-participants__add", part: "nap__add-participant", onClick: () => this.addParticipant() }, h$2("add-circle-icon", { key: "c1c405144661b246731d48907246b3bc9e252410" }), " ", h$2("span", { key: "2ccd09a3a9c148dd4e895f7c3b2ac52cce86b76b" }, "Add ", this.participants.length > 1 ? "another" : "a", " participant")))));
16091
16089
  }
16092
16090
  static get formAssociated() {
16093
16091
  return !0;
@@ -16993,9 +16991,9 @@ var customParseFormat$1 = { exports: {} };
16993
16991
  wi && (xi = $i[2]), ei = this.$locale(), !mi && xi && (ei = ui.Ls[xi]), this.$d = function(Ei, gi, ki) {
16994
16992
  try {
16995
16993
  if (["x", "X"].indexOf(gi) > -1) return new Date((gi === "X" ? 1e3 : 1) * Ei);
16996
- var Ti = si(gi)(Ei), Ai = Ti.year, Ii = Ti.month, Di = Ti.day, Mi = Ti.hours, Ri = Ti.minutes, Oi = Ti.seconds, Ui = Ti.milliseconds, ji = Ti.zone, Fi = /* @__PURE__ */ new Date(), Ni = Di || (Ai || Ii ? 1 : Fi.getDate()), qi = Ai || Fi.getFullYear(), Gi = 0;
16994
+ var Ti = si(gi)(Ei), Ai = Ti.year, Ii = Ti.month, Di = Ti.day, Mi = Ti.hours, Oi = Ti.minutes, Ri = Ti.seconds, Ui = Ti.milliseconds, ji = Ti.zone, Fi = /* @__PURE__ */ new Date(), Ni = Di || (Ai || Ii ? 1 : Fi.getDate()), qi = Ai || Fi.getFullYear(), Gi = 0;
16997
16995
  Ai && !Ii || (Gi = Ii > 0 ? Ii - 1 : Fi.getMonth());
16998
- var Bi = Mi || 0, Li = Ri || 0, Wi = Oi || 0, Hi = Ui || 0;
16996
+ var Bi = Mi || 0, Li = Oi || 0, Wi = Ri || 0, Hi = Ui || 0;
16999
16997
  return ji ? new Date(Date.UTC(qi, Gi, Ni, Bi, Li, Wi, Hi + 60 * ji.offset * 1e3)) : ki ? new Date(Date.UTC(qi, Gi, Ni, Bi, Li, Wi, Hi)) : new Date(qi, Gi, Ni, Bi, Li, Wi, Hi);
17000
16998
  } catch {
17001
16999
  return /* @__PURE__ */ new Date("");
@@ -20497,7 +20495,7 @@ var __decorate$o = function(ve, ue, ge, Oe) {
20497
20495
  };
20498
20496
  const NylasConfirmationEmail = proxyCustomElement(class extends H$2 {
20499
20497
  constructor() {
20500
- super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = createEvent(this, "valueChanged", 7), this.internals = this.attachInternals(), this.selectedConfiguration = void 0, this.confirmationEmailTemplate = {}, this.isOpen = !1, this.participants = [], this.name = "confirmation-email-template", this.confirmationEmail = void 0, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants;
20498
+ super(), this.__registerHost(), this.__attachShadow(), this.valueChanged = createEvent(this, "valueChanged", 7), this.internals = this.attachInternals(), this.selectedConfiguration = void 0, this.confirmationEmailTemplate = {}, this.participants = [], this.name = "confirmation-email-template", this.isOpen = !1, this.confirmationEmail = void 0, this.isConfirmationEmailOpen = this.isOpen, this.participantsState = this.participants;
20501
20499
  }
20502
20500
  connectedCallback() {
20503
20501
  debug("nylas-confirmation-email", "connectedCallback");
@@ -20526,7 +20524,11 @@ const NylasConfirmationEmail = proxyCustomElement(class extends H$2 {
20526
20524
  valueChangedHandler(ue) {
20527
20525
  debug("nylas-confirmation-email", "valueChangedHandler", ue.detail);
20528
20526
  const { value: ge, name: Oe } = ue.detail;
20529
- Oe === "confirmation-email-logo" && (this.confirmationEmail = { ...this.confirmationEmail, logo: ge }, this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name), this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name }));
20527
+ Oe === "confirmation-email-logo" && (this.confirmationEmail = { ...this.confirmationEmail, logo: ge }, this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name }), typeof this.internals.setValidity == "function" && typeof this.internals.setFormValue == "function" && (this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name), this.internals.setValidity({})));
20528
+ }
20529
+ async nylasFormInputImageUrlInvalidHandler(ue) {
20530
+ const { value: ge, name: Oe } = ue.detail;
20531
+ Oe === "confirmation-email-logo" && typeof this.internals.setValidity == "function" && this.internals.setValidity({ customError: !0 }, ge || "Invalid image URL.");
20530
20532
  }
20531
20533
  updateConfirmationFormValue() {
20532
20534
  debug("nylas-confirmation-email", "updateConfirmationFormValue"), this.internals.setFormValue(JSON.stringify(this.confirmationEmail), this.name), this.valueChanged.emit({ value: JSON.stringify(this.confirmationEmail), name: this.name });
@@ -20542,7 +20544,7 @@ const NylasConfirmationEmail = proxyCustomElement(class extends H$2 {
20542
20544
  render() {
20543
20545
  var Oe, Ke, vt, ln, ei, ti, ni;
20544
20546
  const ue = this.participantsState.find((ri) => ri.is_organizer), ge = (ue == null ? void 0 : ue.name) || (ue == null ? void 0 : ue.email);
20545
- return h$2(Host, { key: "0cd4c1886c65ead0e525ea96fe26a1316c61db7f" }, h$2("div", { key: "1901775f8a1364fe16485eeaf27d44862e74a642", class: "nylas-confirmation-email", part: "nce" }, h$2("div", { key: "241cf1a885d4d97d53c158e5691e350aa14b549f", class: "header", part: "nce__header" }, h$2("div", { key: "e37c36a4d8f1f82669f3a397969202d3a2612b0e" }, h$2("h3", { key: "ae34b848907720867cb014000e5b7367bcabedb3" }, ((Ke = (Oe = this.confirmationEmail) == null ? void 0 : Oe.booking_confirmed) == null ? void 0 : Ke.title) ?? `Booking confirmed with ${ge ? ` ${ge}` : ""}`), h$2("p", { key: "97d7c78a88b20be8c5b0a27485f917628f1c6edc" }, "Booking confirmation email")), this.isConfirmationEmailOpen ? h$2("div", { class: "confirmation-email-toggle", part: "nce__confirmation-email-toggle--container" }, h$2("span", { class: `chevron ${this.isConfirmationEmailOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, h$2("chevron-icon", { width: "24", height: "24" }))) : h$2("button-component", { variant: "basic", clickHandler: (ri) => {
20547
+ return h$2(Host, { key: "bc4803b94f914d083bd33cf4cecd0cac70b0658c" }, h$2("div", { key: "6445d38b903bffd19b4db004e850f6488ed4c27f", class: "nylas-confirmation-email", part: "nce" }, h$2("div", { key: "7ce1ccd72ef83717aec42fe0b533902e3a254796", class: "header", part: "nce__header" }, h$2("div", { key: "cbceb816c30deebc4e053a7abd1da1c82c171ebe" }, h$2("h3", { key: "36f5b00d5a98d325341ff06b2bb3ba3cf951e94f" }, ((Ke = (Oe = this.confirmationEmail) == null ? void 0 : Oe.booking_confirmed) == null ? void 0 : Ke.title) ?? `Booking confirmed with ${ge ? ` ${ge}` : ""}`), h$2("p", { key: "6f72022d71e5f4e3c03d0f6d07d7f0f5bc0f9686" }, "Booking confirmation email")), this.isConfirmationEmailOpen ? h$2("div", { class: "confirmation-email-toggle", part: "nce__confirmation-email-toggle--container" }, h$2("span", { class: `chevron ${this.isConfirmationEmailOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, h$2("chevron-icon", { width: "24", height: "24" }))) : h$2("button-component", { variant: "basic", clickHandler: (ri) => {
20546
20548
  ri.preventDefault(), this.toggleConfirmationEmail();
20547
20549
  } }, h$2("edit-icon", { width: "16", height: "16" }), "Edit")), this.isConfirmationEmailOpen ? h$2("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, h$2("div", { class: "nylas-confirmation-email__section" }, h$2("div", { class: "nylas-confirmation-email__row" }, h$2("label", null, "Send confirmation email", h$2("span", { class: "label-icon" }, h$2("tooltip-component", null, h$2("info-icon", { slot: "tooltip-icon" }), h$2("span", { slot: "tooltip-content" }, "You and your guests will receive a confirmation email immediately upon booking.")))), h$2("span", { class: "selected-value" }, "Immediately upon booking")), h$2("div", { class: "nylas-confirmation-email__row" }, h$2("div", { class: "subsection" }, h$2("div", { class: "input-container" }, h$2("label", null, "Company logo URL", h$2("span", { class: "label-icon" }, h$2("tooltip-component", null, h$2("info-icon", { slot: "tooltip-icon" }), h$2("span", { slot: "tooltip-content" }, "This logo appears in the booking confirmation email. The URL must be publicly accessible. The image will be scaled down to a max size of 200px x 100px.")))), this.confirmationEmail && h$2("input-image-url", { name: "confirmation-email-logo", exportparts: "iiu__logo-input-textfield: nce__input-image-url", imageUrl: ((vt = this.confirmationEmail) == null ? void 0 : vt.logo) ?? "" })))), h$2("div", { class: "nylas-confirmation-email__row full-width-col" }, h$2("div", { class: "subsection" }, h$2("h3", null, "Email message"), h$2("div", { class: "input-container" }, h$2("label", { htmlFor: "title" }, "Custom email title", h$2("span", { class: "label-icon" }, h$2("tooltip-component", null, h$2("info-icon", { slot: "tooltip-icon" }), h$2("span", { slot: "tooltip-content" }, "An email title is a headline within the body of the email. This doesn't change the subject line.")))), h$2("input-component", { name: "confirmation-email-title", maxLength: 60, placeholder: `Booking confirmed ${ge ? `with ${ge}` : ""}`, defaultValue: ((ei = (ln = this.confirmationEmail) == null ? void 0 : ln.booking_confirmed) == null ? void 0 : ei.title) ?? "" })), h$2("div", { class: "input-container" }, h$2("textarea-component", { label: "Additional info", name: "confirmation-email-body", id: "confirmation-email-body", placeholder: "Default body", tooltip: "Scheduler adds the content of the box to the email body.", maxLength: 500, defaultValue: ((ni = (ti = this.confirmationEmail) == null ? void 0 : ti.booking_confirmed) == null ? void 0 : ni.body) ?? "" })))))) : h$2("div", { class: "nylas-confirmation-email__summary", part: "nce__summary" }, h$2("p", null, h$2("span", { class: "summary-icon" }, h$2("person-clipboard-icon", null)), "All host & guests"), h$2("p", null, h$2("span", { class: "summary-icon" }, h$2("clock-icon", null)), "Immediately on booking"))));
20548
20550
  }
@@ -20564,13 +20566,13 @@ const NylasConfirmationEmail = proxyCustomElement(class extends H$2 {
20564
20566
  }, [65, "nylas-confirmation-email", {
20565
20567
  selectedConfiguration: [16],
20566
20568
  confirmationEmailTemplate: [16],
20567
- isOpen: [4, "is-open"],
20568
20569
  participants: [16],
20569
20570
  name: [1],
20571
+ isOpen: [4, "is-open"],
20570
20572
  confirmationEmail: [32],
20571
20573
  isConfirmationEmailOpen: [32],
20572
20574
  participantsState: [32]
20573
- }, [[0, "nylasFormInputChanged", "nylasFormInputChangeHandler"], [0, "valueChanged", "valueChangedHandler"]], {
20575
+ }, [[0, "nylasFormInputChanged", "nylasFormInputChangeHandler"], [0, "valueChanged", "valueChangedHandler"], [0, "nylasFormInputImageUrlInvalid", "nylasFormInputImageUrlInvalidHandler"]], {
20574
20576
  name: ["elementNameChangedHandler"],
20575
20577
  selectedConfiguration: ["selectedConfigurationChangedHandler"]
20576
20578
  }]);
@@ -21320,10 +21322,10 @@ const NylasEventDuration = proxyCustomElement(class extends H$2 {
21320
21322
  debug("nylas-event-duration", "connectedCallback");
21321
21323
  }
21322
21324
  componentWillLoad() {
21323
- debug("nylas-event-duration", "componentWillLoad"), this.host.setAttribute("name", this.name), this.setDurationMintueOptions();
21325
+ debug("nylas-event-duration", "componentWillLoad"), this.host.setAttribute("name", this.name);
21324
21326
  }
21325
21327
  componentDidLoad() {
21326
- debug("nylas-event-duration", "componentDidLoad"), this.selectedConfiguration && this.selectedConfigurationChangedHandler(this.selectedConfiguration), this.duration = this.duration ? this.duration : this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = this.durationMinutes ? this.durationMinutes : this.duration ? this.duration : 30, this.durationIncrement = this.durationIncrement ? this.durationIncrement : this.duration >= 60 ? 60 : 1, this.internals.setFormValue(this.durationMinutes.toString(), "duration");
21328
+ debug("nylas-event-duration", "componentDidLoad"), this.selectedConfiguration && this.selectedConfigurationChangedHandler(this.selectedConfiguration), this.duration = this.duration ? this.duration : this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = this.durationMinutes ? this.durationMinutes : this.duration ? this.duration : 30, this.durationIncrement = this.durationIncrement ? this.durationIncrement : this.duration >= 60 ? 60 : 1, this.setDurationMintueOptions(), typeof this.internals.setFormValue == "function" && this.internals.setFormValue(this.durationMinutes.toString(), "duration");
21327
21329
  }
21328
21330
  disconnectedCallback() {
21329
21331
  debug("nylas-event-duration", "disconnectedCallback");
@@ -21354,7 +21356,7 @@ const NylasEventDuration = proxyCustomElement(class extends H$2 {
21354
21356
  { value: 1, label: "minute" },
21355
21357
  { value: 60, label: "hour" }
21356
21358
  ];
21357
- return h$2(Host, { key: "e63530398b7b2231436947da8c9e63c3c7bd696a" }, h$2("div", { key: "9ccca25a4322edaedafa53a2bd8ae2baf48b4f1e", class: "nylas-event-duration", part: "ned" }, h$2("label", { key: "cd5562d2516c1f37eeb0b3e074493c671628ef4b", htmlFor: "duration" }, "Event duration", h$2("span", { key: "ef36340fb220f380a9913ad5025e6600ce6e8f17", class: "required" }, "*")), h$2("div", { key: "eddeda40d89ac770f20226605f3fedce00afe060", class: "nylas-event-duration__wrapper" }, h$2("input-dropdown", { key: "b087fff0f15cfcaf5c89c0566941aa45c8e89d54", name: "event-duration", options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find((ge) => ge.value == this.duration) }), this.durationIncrement && h$2("select-dropdown", { name: "event-duration", options: ue, pluralizedLabel: this.duration > 1 ? "s" : "", exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: ue.find((ge) => ge.value == this.durationIncrement), withSearch: !1 }))));
21359
+ return h$2(Host, { key: "f6b60528b9c3f2978ac12beae9bf049a9b90fec5" }, h$2("div", { key: "f7c778d981fa1d33ceed820d500e6820a4f1223c", class: "nylas-event-duration", part: "ned" }, h$2("label", { key: "f461dcfeda616f50820d6cdacb5dfded22ec7aff", htmlFor: "duration" }, "Event duration", h$2("span", { key: "086d2458ad14f00f718fb9106c45d63576c9f734", class: "required" }, "*")), h$2("div", { key: "cf27800dec77fbe74c9428de92fa042a419ddb25", class: "nylas-event-duration__wrapper" }, h$2("input-dropdown", { key: "06ed64927a69ca96bb9f9cc5cfede6d55c310598", name: "event-duration", options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find((ge) => ge.value == this.duration) }), this.durationIncrement && h$2("select-dropdown", { name: "event-duration", options: ue, pluralizedLabel: this.duration > 1 ? "s" : "", exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: ue.find((ge) => ge.value == this.durationIncrement), withSearch: !1 }))));
21358
21360
  }
21359
21361
  static get formAssociated() {
21360
21362
  return !0;
@@ -21449,7 +21451,7 @@ const NylasEventInfo = proxyCustomElement(class extends H$2 {
21449
21451
  debug("nylas-event-info", "disconnectedCallback");
21450
21452
  }
21451
21453
  render() {
21452
- return h$2(Host, { key: "fb4a8dd875696bc6a4e951f2649a2ab650558489" }, h$2("nylas-form-card", { key: "193b25acb1374842946ff938755fe8fed7a6d4b9", exportparts: "nfc__header: nei__header" }, h$2("h1", { key: "c405c5de0b2eafa15136d10f10de13a158595298", slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, "Event information"), h$2("div", { key: "a49993db49876dfdebd6dbe412d759ce1d38028e", slot: "content", class: "nylas-event-info__content" }, h$2("slot", { key: "dc4595988a0b6824f328896c1ea507b96e61e4a8", name: "inputs" }))));
21454
+ return h$2(Host, { key: "be80a4e687ce223a8e52bbabc2e8acadcb194b11" }, h$2("nylas-form-card", { key: "c96b77795ec2516889acf0f78c5eb723b26dd89c", exportparts: "nfc__header: nei__header" }, h$2("h1", { key: "890113187adcd6be1ab1d1beb489fe3a80124617", slot: "header-title", class: "nylas-event-info__title", part: "nei__title" }, "Event information"), h$2("div", { key: "44eaaae3833654530706dc93077b43a7597acc2c", slot: "content", class: "nylas-event-info__content" }, h$2("slot", { key: "7af737a67cb007c0ede7db5aa075828311d98da3", name: "inputs" }))));
21453
21455
  }
21454
21456
  static get formAssociated() {
21455
21457
  return !0;
@@ -21515,7 +21517,7 @@ const NylasEventLimits = proxyCustomElement(class extends H$2 {
21515
21517
  debug("nylas-event-limits", "disconnectedCallback");
21516
21518
  }
21517
21519
  render() {
21518
- return h$2(Host, { key: "8715c9aeba26e6f4c151b0ab58333cc13d3500d3" }, h$2("nylas-form-card", { key: "2e2bf90762d35ac9fc4a995808b9aa3e4481d6c0", exportparts: "nfc__header: nel__header" }, h$2("h1", { key: "b3689912282e3215d862ca06c75fae95b67e501f", slot: "header-title", class: "nylas-event-limits__title" }, "Event limits"), h$2("div", { key: "bd5513f8c0cc573f14afeadfafe591b64b904920", slot: "content", class: "nylas-event-limits__content" }, h$2("slot", { key: "86ebfd856f0c93d3ad98d800d4ce9e1a8daf2516", name: "inputs" }))));
21520
+ return h$2(Host, { key: "6a28113e3b403869e77cc3a2c9c3a1bea217dc52" }, h$2("nylas-form-card", { key: "cf9004d044222d796ae59df58737ad9719a20576", exportparts: "nfc__header: nel__header" }, h$2("h1", { key: "ffeeb7a5741c9f07fb4f9bd84016b1707e2b55b7", slot: "header-title", class: "nylas-event-limits__title" }, "Event limits"), h$2("div", { key: "7b51592d95736f860ec805950275a18e9d914c32", slot: "content", class: "nylas-event-limits__content" }, h$2("slot", { key: "53e9098d736eedf5b22e1b8ae712ec22c8ca865e", name: "inputs" }))));
21519
21521
  }
21520
21522
  static get formAssociated() {
21521
21523
  return !0;
@@ -28468,7 +28470,7 @@ const buildFeedbackIntegration = ({
28468
28470
  onSubmitError: Di,
28469
28471
  onFormSubmitted: Mi
28470
28472
  } = {}) => {
28471
- const Ri = {
28473
+ const Oi = {
28472
28474
  id: Ke,
28473
28475
  autoInject: vt,
28474
28476
  showBranding: ln,
@@ -28506,13 +28508,13 @@ const buildFeedbackIntegration = ({
28506
28508
  onSubmitSuccess: Ii,
28507
28509
  onFormSubmitted: Mi
28508
28510
  };
28509
- let Oi = null, Ui = [];
28511
+ let Ri = null, Ui = [];
28510
28512
  const ji = (Bi) => {
28511
- if (!Oi) {
28513
+ if (!Ri) {
28512
28514
  const Li = DOCUMENT.createElement("div");
28513
- Li.id = String(Bi.id), DOCUMENT.body.appendChild(Li), Oi = Li.attachShadow({ mode: "open" }), Oi.appendChild(createMainStyles(Bi));
28515
+ Li.id = String(Bi.id), DOCUMENT.body.appendChild(Li), Ri = Li.attachShadow({ mode: "open" }), Ri.appendChild(createMainStyles(Bi));
28514
28516
  }
28515
- return Oi;
28517
+ return Ri;
28516
28518
  }, Fi = async (Bi, Li, Wi) => {
28517
28519
  const Hi = getClient(), zi = Hi && Hi.getIntegrationByName(Bi);
28518
28520
  if (zi)
@@ -28549,7 +28551,7 @@ const buildFeedbackIntegration = ({
28549
28551
  });
28550
28552
  return zi;
28551
28553
  }, qi = (Bi, Li = {}) => {
28552
- const Wi = mergeOptions(Ri, Li), Hi = typeof Bi == "string" ? DOCUMENT.querySelector(Bi) : typeof Bi.addEventListener == "function" ? Bi : null;
28554
+ const Wi = mergeOptions(Oi, Li), Hi = typeof Bi == "string" ? DOCUMENT.querySelector(Bi) : typeof Bi.addEventListener == "function" ? Bi : null;
28553
28555
  if (!Hi)
28554
28556
  throw DEBUG_BUILD && logger.error("[Feedback] Unable to attach to target element"), new Error("Unable to attach to target element");
28555
28557
  let zi = null;
@@ -28567,7 +28569,7 @@ const buildFeedbackIntegration = ({
28567
28569
  };
28568
28570
  return Ui.push(Ki), Ki;
28569
28571
  }, Gi = (Bi = {}) => {
28570
- const Li = mergeOptions(Ri, Bi), Wi = ji(Li), Hi = Actor({
28572
+ const Li = mergeOptions(Oi, Bi), Wi = ji(Li), Hi = Actor({
28571
28573
  triggerLabel: Li.triggerLabel,
28572
28574
  triggerAriaLabel: Li.triggerAriaLabel,
28573
28575
  shadow: Wi,
@@ -28589,7 +28591,7 @@ const buildFeedbackIntegration = ({
28589
28591
  return {
28590
28592
  name: "Feedback",
28591
28593
  setupOnce() {
28592
- !isBrowser() || !Ri.autoInject || (DOCUMENT.readyState === "loading" ? DOCUMENT.addEventListener("DOMContentLoaded", () => Gi().appendToDom()) : Gi().appendToDom());
28594
+ !isBrowser() || !Oi.autoInject || (DOCUMENT.readyState === "loading" ? DOCUMENT.addEventListener("DOMContentLoaded", () => Gi().appendToDom()) : Gi().appendToDom());
28593
28595
  },
28594
28596
  /**
28595
28597
  * Adds click listener to the element to open a feedback dialog
@@ -28602,7 +28604,7 @@ const buildFeedbackIntegration = ({
28602
28604
  * Accepts partial options to override any options passed to constructor.
28603
28605
  */
28604
28606
  createWidget(Bi = {}) {
28605
- const Li = Gi(mergeOptions(Ri, Bi));
28607
+ const Li = Gi(mergeOptions(Oi, Bi));
28606
28608
  return Li.appendToDom(), Li;
28607
28609
  },
28608
28610
  /**
@@ -28610,13 +28612,13 @@ const buildFeedbackIntegration = ({
28610
28612
  * Accepts partial options to override any options passed to constructor.
28611
28613
  */
28612
28614
  async createForm(Bi = {}) {
28613
- return Ni(mergeOptions(Ri, Bi));
28615
+ return Ni(mergeOptions(Oi, Bi));
28614
28616
  },
28615
28617
  /**
28616
28618
  * Removes the Feedback integration (including host, shadow DOM, and all widgets)
28617
28619
  */
28618
28620
  remove() {
28619
- Oi && (Oi.parentElement && Oi.parentElement.remove(), Oi = null), Ui.forEach((Bi) => Bi()), Ui = [];
28621
+ Ri && (Ri.parentElement && Ri.parentElement.remove(), Ri = null), Ui.forEach((Bi) => Bi()), Ui = [];
28620
28622
  }
28621
28623
  };
28622
28624
  };
@@ -30310,17 +30312,17 @@ const NylasEditorTabs = proxyCustomElement(class extends H$2 {
30310
30312
  confirmation_redirect_url: _i
30311
30313
  },
30312
30314
  appearance: Ei
30313
- }, Ri = mergeDeep(Mi, this.selectedConfiguration || {}), Oi = this.action === "create" ? Ri : Mi;
30314
- this.isConfigRoundRobin(Oi) && (Oi.participants = Oi.participants.map((Pi) => ({ ...Pi, is_organizer: void 0 })));
30315
+ }, Oi = mergeDeep(Mi, this.selectedConfiguration || {}), Ri = this.action === "create" ? Oi : Mi;
30316
+ this.isConfigRoundRobin(Ri) && (Ri.participants = Ri.participants.map((Pi) => ({ ...Pi, is_organizer: void 0 })));
30315
30317
  const Ui = (Pi) => {
30316
30318
  this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
30317
30319
  this.changesSaved = !1;
30318
30320
  }, 5e3);
30319
- }, ji = this.checkForBookingFormErrors(Oi), Fi = ((Yr = this.configurations) == null ? void 0 : Yr.find((Pi) => {
30321
+ }, ji = this.checkForBookingFormErrors(Ri), Fi = ((Yr = this.configurations) == null ? void 0 : Yr.find((Pi) => {
30320
30322
  var Zi;
30321
30323
  return Pi.id === ((Zi = this.selectedConfiguration) == null ? void 0 : Zi.id);
30322
- })) || {}, Ni = this.checkForOrganizerConfirmationError(mergeDeep(Oi, Fi));
30323
- ji || Ni || this.schedulerConfigChanged.emit({ config: Oi, resetLoadingState: Ui, setError: this.setError, action: this.action });
30324
+ })) || {}, Ni = this.checkForOrganizerConfirmationError(mergeDeep(Ri, Fi));
30325
+ ji || Ni || this.schedulerConfigChanged.emit({ config: Ri, resetLoadingState: Ui, setError: this.setError, action: this.action });
30324
30326
  }, this.isConfigRoundRobin = (ue) => {
30325
30327
  var ge, Oe, Ke, vt;
30326
30328
  return ((Oe = (ge = ue == null ? void 0 : ue.availability) == null ? void 0 : ge.availability_rules) == null ? void 0 : Oe.availability_method) === "max-availability" || ((vt = (Ke = ue.availability) == null ? void 0 : Ke.availability_rules) == null ? void 0 : vt.availability_method) === "max-fairness";
@@ -30451,8 +30453,8 @@ const NylasEditorTabs = proxyCustomElement(class extends H$2 {
30451
30453
  hideCancellationOptions: ((vi = ue == null ? void 0 : ue.scheduler) == null ? void 0 : vi.hide_cancellation_options) ?? !1,
30452
30454
  hideReschedulingOptions: ((fi = ue == null ? void 0 : ue.scheduler) == null ? void 0 : fi.hide_rescheduling_options) ?? !1,
30453
30455
  participantBookingCalendars: ((Ei = ue == null ? void 0 : ue.participants) == null ? void 0 : Ei.reduce((Ii, Di) => {
30454
- var Mi, Ri;
30455
- return (Mi = Di.booking) != null && Mi.calendar_id && (Ii[Di.email] = (Ri = Di.booking) == null ? void 0 : Ri.calendar_id), Ii;
30456
+ var Mi, Oi;
30457
+ return (Mi = Di.booking) != null && Mi.calendar_id && (Ii[Di.email] = (Oi = Di.booking) == null ? void 0 : Oi.calendar_id), Ii;
30456
30458
  })) ?? {},
30457
30459
  participantCalendars: ((gi = ue == null ? void 0 : ue.participants) == null ? void 0 : gi.reduce((Ii, Di) => {
30458
30460
  var Mi;
@@ -17974,12 +17974,13 @@ const P5 = te(class extends ne {
17974
17974
  disconnectedCallback() {
17975
17975
  }
17976
17976
  async componentWillLoad() {
17977
- var n;
17978
- const e = (n = this.availability) == null ? void 0 : n.filter((r) => this.selectedDate && cn(r.start_time, this.selectedDate)).map((r) => r);
17979
- this.times = e || [], N("[nylas-timeslot-picker] Component will load", { selectedDate: this.selectedDate, availability: this.availability, times: this.times });
17977
+ N("[nylas-timeslot-picker] Component will load", { selectedDate: this.selectedDate, availability: this.availability, times: this.times });
17980
17978
  }
17981
17979
  async componentDidLoad() {
17980
+ var n;
17982
17981
  N("[nylas-timeslot-picker] Component did load");
17982
+ const e = (n = this.availability) == null ? void 0 : n.filter((r) => this.selectedDate && cn(r.start_time, this.selectedDate)).map((r) => r);
17983
+ this.times = e || [];
17983
17984
  }
17984
17985
  getTimeslotId(e, n) {
17985
17986
  return `${e.toLocaleDateString()}-${n}`;
@@ -9215,12 +9215,13 @@ const yn = Jr(class extends Vr {
9215
9215
  disconnectedCallback() {
9216
9216
  }
9217
9217
  async componentWillLoad() {
9218
- var t;
9219
- const e = (t = this.availability) == null ? void 0 : t.filter((r) => this.selectedDate && br(r.start_time, this.selectedDate)).map((r) => r);
9220
- this.times = e || [], ce("[nylas-timeslot-picker] Component will load", { selectedDate: this.selectedDate, availability: this.availability, times: this.times });
9218
+ ce("[nylas-timeslot-picker] Component will load", { selectedDate: this.selectedDate, availability: this.availability, times: this.times });
9221
9219
  }
9222
9220
  async componentDidLoad() {
9221
+ var t;
9223
9222
  ce("[nylas-timeslot-picker] Component did load");
9223
+ const e = (t = this.availability) == null ? void 0 : t.filter((r) => this.selectedDate && br(r.start_time, this.selectedDate)).map((r) => r);
9224
+ this.times = e || [];
9224
9225
  }
9225
9226
  getTimeslotId(e, t) {
9226
9227
  return `${e.toLocaleDateString()}-${t}`;