@nylas/react 2.0.6 → 2.1.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/add-circle-icon_2.entry-8c3bb0bb.cjs +1 -0
- package/dist/{add-circle-icon_2.entry-f6f8b5e5.js → add-circle-icon_2.entry-a3daf6c4.js} +6 -4
- package/dist/archive-icon.entry-46ad0ff3.cjs +1 -0
- package/dist/{archive-icon.entry-b3a76711.js → archive-icon.entry-d5141486.js} +6 -4
- package/dist/{arrow-icon.entry-9b3441aa.js → arrow-icon.entry-1b89ce78.js} +6 -4
- package/dist/arrow-icon.entry-f696de4f.cjs +1 -0
- package/dist/bold-icon.entry-7827cd4e.cjs +1 -0
- package/dist/{bold-icon.entry-0749a116.js → bold-icon.entry-c117b4cf.js} +6 -4
- package/dist/button-component_2.entry-8cd4c5f3.cjs +1 -0
- package/dist/{button-component_2.entry-6eb55e97.js → button-component_2.entry-e68caa9b.js} +5 -3
- package/dist/{calendar-agenda-fill-icon_37.entry-4adf73a2.js → calendar-agenda-fill-icon_37.entry-52bdc8b3.js} +201 -198
- package/dist/calendar-agenda-fill-icon_37.entry-8c592cfa.cjs +6 -0
- package/dist/calendar-cancel-icon.entry-7facfa05.cjs +1 -0
- package/dist/{calendar-cancel-icon.entry-2a29cb3f.js → calendar-cancel-icon.entry-f5f1d499.js} +8 -6
- package/dist/{calendar-check-icon.entry-c12b63ea.js → calendar-check-icon.entry-55320137.js} +6 -4
- package/dist/calendar-check-icon.entry-72108702.cjs +1 -0
- package/dist/{calendar-icon.entry-e82a5169.js → calendar-icon.entry-afea361e.js} +9 -7
- package/dist/calendar-icon.entry-f5c6730f.cjs +1 -0
- package/dist/checkbox-component.entry-5722d263.cjs +1 -0
- package/dist/{checkbox-component.entry-59612a67.js → checkbox-component.entry-89fa6edd.js} +3 -1
- package/dist/checkbox-group_4.entry-30e8af17.cjs +28 -0
- package/dist/{checkbox-group_4.entry-7df47ad4.js → checkbox-group_4.entry-51f03009.js} +6 -3
- package/dist/checkmark-circle-icon.entry-ae11049d.cjs +1 -0
- package/dist/{checkmark-circle-icon.entry-677b0def.js → checkmark-circle-icon.entry-dfe67e22.js} +8 -6
- package/dist/{checkmark-icon_15.entry-9fd0ec58.js → checkmark-icon_15.entry-4c3979db.js} +21 -18
- package/dist/checkmark-icon_15.entry-e59c0f53.cjs +5 -0
- package/dist/{chevron-icon_3.entry-f0ad71d9.js → chevron-icon_3.entry-1f3c3ca6.js} +3 -1
- package/dist/chevron-icon_3.entry-ea791750.cjs +1 -0
- package/dist/clock-icon_4.entry-172fed74.cjs +1 -0
- package/dist/{clock-icon_4.entry-e7472d5f.js → clock-icon_4.entry-78878cb8.js} +3 -1
- package/dist/customParseFormat-b5d95b34-a6b6fcba.cjs +1 -0
- package/dist/{customParseFormat-eeec04f5-3ad26beb.js → customParseFormat-b5d95b34-ce80820c.js} +1 -1
- package/dist/delete-icon.entry-a8c0bf03.cjs +1 -0
- package/dist/{delete-icon.entry-813429d7.js → delete-icon.entry-cebdc90f.js} +7 -5
- package/dist/document-refresh-icon.entry-2d9a529d.cjs +1 -0
- package/dist/{document-refresh-icon.entry-c224c778.js → document-refresh-icon.entry-8780a2b8.js} +3 -1
- package/dist/{feedbackSync-0ebd0eda-e12b00d5.cjs → feedbackSync-92220b42-fbebe1f9.cjs} +1 -1
- package/dist/{feedbackSync-0ebd0eda-803c3ebe.js → feedbackSync-92220b42-fd5f5610.js} +1 -1
- package/dist/folder-icon.entry-3e61ccca.cjs +1 -0
- package/dist/{folder-icon.entry-9c1f7c41.js → folder-icon.entry-6ffd5191.js} +6 -4
- package/dist/forward-icon.entry-c7d88db8.cjs +1 -0
- package/dist/{forward-icon.entry-4ac22c16.js → forward-icon.entry-c9c4bf5b.js} +5 -3
- package/dist/globe-icon.entry-0b93cab8.cjs +1 -0
- package/dist/{globe-icon.entry-7798c93b.js → globe-icon.entry-7c0dca7b.js} +5 -3
- package/dist/{google-logo-icon_6.entry-b198c90a.js → google-logo-icon_6.entry-deef91ee.js} +177 -174
- package/dist/google-logo-icon_6.entry-e25ce3e7.cjs +2 -0
- package/dist/google-meet-icon_5.entry-214347f0.cjs +1 -0
- package/dist/{google-meet-icon_5.entry-fa6dc1dc.js → google-meet-icon_5.entry-f8b5a92a.js} +3 -1
- package/dist/{inbox-icon.entry-1b123e64.js → inbox-icon.entry-873062c3.js} +7 -5
- package/dist/inbox-icon.entry-f08f2fd5.cjs +1 -0
- package/dist/index-025be398.js +7187 -0
- package/dist/index-c510313d-1318f67a.js +289 -0
- package/dist/index-c510313d-b0508eee.cjs +1 -0
- package/dist/index-f42fe591.cjs +65 -0
- package/dist/{index.es-57d4a08f-b0a2ca19.cjs → index.es-488bc919-d02dd50a.cjs} +1 -1
- package/dist/{index.es-57d4a08f-184cbc01.js → index.es-488bc919-ea63a7e9.js} +1 -1
- package/dist/info-icon_2.entry-442b9097.cjs +1 -0
- package/dist/{info-icon_2.entry-f8b72d08.js → info-icon_2.entry-60fb8648.js} +3 -1
- package/dist/{input-component.entry-44607977.js → input-component.entry-5898a52e.js} +19 -16
- package/dist/input-component.entry-7274fd28.cjs +1 -0
- package/dist/{input-dropdown_2.entry-6898b420.js → input-dropdown_2.entry-4534436c.js} +4 -1
- package/dist/input-dropdown_2.entry-9b72f637.cjs +1 -0
- package/dist/{italic-icon.entry-16aa1ada.js → italic-icon.entry-62052cd8.js} +6 -4
- package/dist/italic-icon.entry-9bdbbd37.cjs +1 -0
- package/dist/lib/connect/index.d.ts +6 -0
- package/dist/lib/connect/types.d.ts +2 -0
- package/dist/lib/connect/useNylasConnect.d.ts +28 -0
- package/dist/lib/connect/useNylasConnect.test.d.ts +1 -0
- package/dist/lib/elements/index.d.ts +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/multi-select-dropdown.entry-77752d46.cjs +1 -0
- package/dist/{multi-select-dropdown.entry-50133d29.js → multi-select-dropdown.entry-9c9d05c1.js} +4 -1
- package/dist/{nylas-booked-event-card_11.entry-56768a09.js → nylas-booked-event-card_11.entry-32b2e9f1.js} +139 -136
- package/dist/nylas-booked-event-card_11.entry-4aba5146.cjs +1 -0
- package/dist/nylas-date-component_2.entry-6b058796.cjs +1 -0
- package/dist/{nylas-date-component_2.entry-df957150.js → nylas-date-component_2.entry-a869519f.js} +10 -7
- package/dist/{nylas-form-card.entry-7724e61f.js → nylas-form-card.entry-5390459f.js} +9 -6
- package/dist/nylas-form-card.entry-c2f34d73.cjs +1 -0
- package/dist/nylas-notification_2.entry-054392cf.cjs +1 -0
- package/dist/{nylas-notification_2.entry-af763b6c.js → nylas-notification_2.entry-f46e88e5.js} +4 -1
- package/dist/{nylas-scheduler-editor.entry-0e4ba46d.js → nylas-scheduler-editor.entry-40a48f47.js} +93 -35
- package/dist/nylas-scheduler-editor.entry-e29fdf07.cjs +2 -0
- package/dist/{nylas-scheduling.entry-1b207e91.js → nylas-scheduling.entry-115b1752.js} +17 -14
- package/dist/nylas-scheduling.entry-79cb1d9c.cjs +1 -0
- package/dist/person-icon.entry-2cae306c.cjs +1 -0
- package/dist/{person-icon.entry-f2979577.js → person-icon.entry-fd668b89.js} +6 -4
- package/dist/{play-icon.entry-d387df5d.js → play-icon.entry-7fc3c0fd.js} +5 -3
- package/dist/play-icon.entry-9989a520.cjs +1 -0
- package/dist/radio-button-group.entry-03385b5f.cjs +1 -0
- package/dist/{radio-button-group.entry-45dbd2df.js → radio-button-group.entry-9df82cd0.js} +7 -5
- package/dist/react.cjs +1 -1
- package/dist/react.js +142 -127
- package/dist/refresh-icon.entry-310954ba.cjs +1 -0
- package/dist/{refresh-icon.entry-777cff27.js → refresh-icon.entry-c56e5623.js} +8 -6
- package/dist/register-component-3acd57e7-5a79a90a.cjs +1 -0
- package/dist/{register-component-0aad9e3d-b395364a.js → register-component-3acd57e7-cb09c05e.js} +15 -14
- package/dist/{reply-all-icon.entry-e2dd6da9.js → reply-all-icon.entry-32e0e000.js} +7 -5
- package/dist/reply-all-icon.entry-68388f97.cjs +1 -0
- package/dist/{reply-icon.entry-00a97d9f.js → reply-icon.entry-3ac2e736.js} +6 -4
- package/dist/reply-icon.entry-e616a9a4.cjs +1 -0
- package/dist/{sent-icon.entry-949cf214.js → sent-icon.entry-0622ed04.js} +6 -4
- package/dist/sent-icon.entry-543eb3c4.cjs +1 -0
- package/dist/{spam-icon.entry-3baf9e79.js → spam-icon.entry-74bcfd4f.js} +3 -1
- package/dist/spam-icon.entry-e341ee3e.cjs +1 -0
- package/dist/{star-icon.entry-9fdb278b.js → star-icon.entry-864d2bf9.js} +5 -3
- package/dist/star-icon.entry-c90d40f6.cjs +1 -0
- package/dist/{stop-icon.entry-efa1ea66.js → stop-icon.entry-835908c5.js} +3 -1
- package/dist/stop-icon.entry-ffc46b42.cjs +1 -0
- package/dist/{textarea-component.entry-7c6fc4d8.js → textarea-component.entry-6adcf6a6.js} +12 -9
- package/dist/textarea-component.entry-dae8eb5c.cjs +1 -0
- package/dist/toggle-switch.entry-5ee29867.cjs +1 -0
- package/dist/{toggle-switch.entry-a0295d17.js → toggle-switch.entry-ff2ccb75.js} +7 -5
- package/dist/{translate-icon.entry-219cab17.js → translate-icon.entry-372dd808.js} +3 -1
- package/dist/translate-icon.entry-5606067d.cjs +1 -0
- package/dist/{trash-fill-icon.entry-03c90559.js → trash-fill-icon.entry-01b4379e.js} +3 -1
- package/dist/trash-fill-icon.entry-daed6c0a.cjs +1 -0
- package/dist/underline-icon.entry-2020ee64.cjs +1 -0
- package/dist/{underline-icon.entry-58fa18b5.js → underline-icon.entry-464b900d.js} +5 -3
- package/dist/utils-31933f5d-15041585.js +17878 -0
- package/dist/utils-31933f5d-1d4c81ab.cjs +54 -0
- package/package.json +4 -3
- package/dist/abstract-provider-45ada3b4-31e3ed72.cjs +0 -1
- package/dist/abstract-provider-45ada3b4-abd3105d.js +0 -187
- package/dist/add-circle-icon_2.entry-48953f9c.cjs +0 -1
- package/dist/archive-icon.entry-e2880dc7.cjs +0 -1
- package/dist/arrow-icon.entry-84d1e26c.cjs +0 -1
- package/dist/bold-icon.entry-e1d8ab5e.cjs +0 -1
- package/dist/button-component_2.entry-1a817230.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_37.entry-0ca8b9f4.cjs +0 -6
- package/dist/calendar-cancel-icon.entry-e0dee585.cjs +0 -1
- package/dist/calendar-check-icon.entry-7f96d456.cjs +0 -1
- package/dist/calendar-icon.entry-a2d19ff2.cjs +0 -1
- package/dist/checkbox-component.entry-ddce70bc.cjs +0 -1
- package/dist/checkbox-group_4.entry-3311da64.cjs +0 -28
- package/dist/checkmark-circle-icon.entry-67df713b.cjs +0 -1
- package/dist/checkmark-icon_15.entry-2121e1b7.cjs +0 -5
- package/dist/chevron-icon_3.entry-1a42235c.cjs +0 -1
- package/dist/clock-icon_4.entry-88822a84.cjs +0 -1
- package/dist/customParseFormat-eeec04f5-d5957784.cjs +0 -1
- package/dist/delete-icon.entry-3cb58910.cjs +0 -1
- package/dist/document-refresh-icon.entry-ae361b0b.cjs +0 -1
- package/dist/folder-icon.entry-107841af.cjs +0 -1
- package/dist/forward-icon.entry-6cec1f94.cjs +0 -1
- package/dist/globe-icon.entry-909c1382.cjs +0 -1
- package/dist/google-logo-icon_6.entry-1f4ad364.cjs +0 -2
- package/dist/google-meet-icon_5.entry-82d87e77.cjs +0 -1
- package/dist/inbox-icon.entry-84f96d31.cjs +0 -1
- package/dist/index-140eb219.js +0 -24953
- package/dist/index-d8a42c15.cjs +0 -118
- package/dist/info-icon_2.entry-f09e7dae.cjs +0 -1
- package/dist/input-component.entry-fd38953d.cjs +0 -1
- package/dist/input-dropdown_2.entry-4c2e5e1a.cjs +0 -1
- package/dist/italic-icon.entry-beef2254.cjs +0 -1
- package/dist/multi-select-dropdown.entry-c82cd6d4.cjs +0 -1
- package/dist/nylas-booked-event-card_11.entry-eb4b3c5c.cjs +0 -1
- package/dist/nylas-date-component_2.entry-93f2f352.cjs +0 -1
- package/dist/nylas-form-card.entry-4d95a4ad.cjs +0 -1
- package/dist/nylas-notification_2.entry-448c2cb8.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-e36cdd9d.cjs +0 -2
- package/dist/nylas-scheduling.entry-904dd10e.cjs +0 -1
- package/dist/person-icon.entry-70d46ca6.cjs +0 -1
- package/dist/play-icon.entry-c2cf0b12.cjs +0 -1
- package/dist/radio-button-group.entry-94e06176.cjs +0 -1
- package/dist/refresh-icon.entry-5ab20f26.cjs +0 -1
- package/dist/register-component-0aad9e3d-d2f2e543.cjs +0 -1
- package/dist/reply-all-icon.entry-3c90510e.cjs +0 -1
- package/dist/reply-icon.entry-d96478be.cjs +0 -1
- package/dist/sent-icon.entry-2d16da4e.cjs +0 -1
- package/dist/spam-icon.entry-7ee61730.cjs +0 -1
- package/dist/star-icon.entry-dc702d73.cjs +0 -1
- package/dist/stop-icon.entry-b5ae7e55.cjs +0 -1
- package/dist/textarea-component.entry-247aca42.cjs +0 -1
- package/dist/toggle-switch.entry-d52b0338.cjs +0 -1
- package/dist/translate-icon.entry-985b3b29.cjs +0 -1
- package/dist/trash-fill-icon.entry-4dfd7d24.cjs +0 -1
- package/dist/underline-icon.entry-c60b77a6.cjs +0 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { r as w, h as o,
|
|
2
|
-
import { R as
|
|
1
|
+
import { r as w, h as o, c as S, H as T, g as H } from "./index-025be398.js";
|
|
2
|
+
import { R as O } from "./register-component-3acd57e7-cb09c05e.js";
|
|
3
|
+
import { b as d, i as c, D as re, E as Q, F as Xe, G as Xn, q as Un, H as ya, I as ge } from "./utils-31933f5d-15041585.js";
|
|
3
4
|
import { D as pa, T as Kn, d as Qn, F as Vn, L as tt, a as ea } from "./constants-f51538ef-e0a5f026.js";
|
|
5
|
+
import "@nylas/web-elements";
|
|
4
6
|
import "react";
|
|
7
|
+
import "@nylas/connect";
|
|
5
8
|
import "react/jsx-runtime";
|
|
6
9
|
import "react-dom";
|
|
7
10
|
const it = ".sc-calendar-agenda-fill-icon-h{display:flex}", lt = it, ot = class {
|
|
@@ -68,7 +71,7 @@ const kt = ".sc-flow-icon-h{display:flex}", wt = kt, xt = class {
|
|
|
68
71
|
};
|
|
69
72
|
xt.style = wt;
|
|
70
73
|
const Et = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family);border-top:1px solid var(--nylas-base-200);background:var(--nylas-base-25)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .error-message{width:100%;padding:4px 8px;background:var(--nylas-error-50);color:var(--nylas-error);font-size:12px;border-radius:4px;border:1px solid var(--nylas-error-200);margin-top:8px}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){justify-content:initial}', St = Et;
|
|
71
|
-
var
|
|
74
|
+
var Tt = function(e, n, a, t) {
|
|
72
75
|
var l = arguments.length, i = l < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
73
76
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
74
77
|
i = Reflect.decorate(e, n, a, t);
|
|
@@ -317,7 +320,7 @@ const ma = class {
|
|
|
317
320
|
label: Kn[a],
|
|
318
321
|
value: a
|
|
319
322
|
})), n = e.find((a) => a.value === this.timezone);
|
|
320
|
-
return o(
|
|
323
|
+
return o(T, { key: "90adff2ff234844de316241a9660d6c90f0d5d05" }, o("div", { key: "03de2f93ab3031baf8c4a657e1e38a2900a161de", class: "nylas-availability-picker", part: "nap" }, !this.hideHeader && o("div", { class: "header", part: "nap__header" }, o("h3", null, c.t("nylasAvailabilityPicker.headerTitle")), o("p", null, c.t("nylasAvailabilityPicker.headerSubTitle"), o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasAvailabilityPicker.tooltip.desc"))))), o("div", { key: "2bb4658207aad3713b6803f6f2dbae4e7d40d389", class: "content" }, o("div", { key: "82f461ed88afc908338d1dc193de8306765d0fdd", class: "select-timezone", part: "nap__select-timezone" }, o("h4", { key: "9d487e1cee10b99a7a8dc6ed9dee515413842485", class: "sub-header" }, c.t("nylasAvailabilityPicker.selectTimezone")), (n == null ? void 0 : n.label) && o("select-dropdown", { name: "timezone", searchPlaceholder: c.t("search"), exportparts: "sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content", options: e, defaultSelectedOption: n, themeConfig: this.themeConfig }, o("span", { slot: "select-icon" }, o("globe-icon", { width: "20", height: "20" })))), o("div", { key: "e44efee4ca6356e7b119619bdfaf0723164372ca", class: "availability", part: "nap__availability" }, Object.keys(this.schedule).map((a) => {
|
|
321
324
|
const t = a, l = this.schedule[a];
|
|
322
325
|
return o("div", { class: "availability-day" }, o("div", { class: "day", part: "nap__day" }, o("input", { type: "checkbox", name: t, id: t, checked: l.length > 0, onClick: () => {
|
|
323
326
|
if (l.length > 0) {
|
|
@@ -339,7 +342,7 @@ const ma = class {
|
|
|
339
342
|
return !0;
|
|
340
343
|
}
|
|
341
344
|
get host() {
|
|
342
|
-
return
|
|
345
|
+
return H(this);
|
|
343
346
|
}
|
|
344
347
|
static get watchers() {
|
|
345
348
|
return {
|
|
@@ -351,8 +354,8 @@ const ma = class {
|
|
|
351
354
|
};
|
|
352
355
|
}
|
|
353
356
|
};
|
|
354
|
-
|
|
355
|
-
|
|
357
|
+
Tt([
|
|
358
|
+
O({
|
|
356
359
|
name: "nylas-availability-picker",
|
|
357
360
|
stateToProps: /* @__PURE__ */ new Map([
|
|
358
361
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -366,8 +369,8 @@ Ht([
|
|
|
366
369
|
tn("design:returntype", void 0)
|
|
367
370
|
], ma.prototype, "render", null);
|
|
368
371
|
ma.style = St;
|
|
369
|
-
const
|
|
370
|
-
var
|
|
372
|
+
const Ht = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left;display:flex;align-items:center;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:var(--nylas-base-900);font-size:16px;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Ot = Ht;
|
|
373
|
+
var Dt = function(e, n, a, t) {
|
|
371
374
|
var l = arguments.length, i = l < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
372
375
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
373
376
|
i = Reflect.decorate(e, n, a, t);
|
|
@@ -447,13 +450,13 @@ const ua = class {
|
|
|
447
450
|
value: r.id,
|
|
448
451
|
label: r.name
|
|
449
452
|
}))) ?? [], a = (n == null ? void 0 : n.length) > 0 ? n : e || [], t = a.find((r) => r.value == this.defaultBookingCalendar);
|
|
450
|
-
return o(
|
|
453
|
+
return o(T, null, o("div", { class: "nylas-booking-calendar-picker", part: "nbcp" }, !this.hideHeader && o("div", { class: "header", part: "nbcp__header" }, o("h3", null, c.t("nylasBookingCalendarPicker.headerTitle")), o("p", null, c.t("nylasBookingCalendarPicker.headerSubTitle"), o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasBookingCalendarPicker.tooltip.desc"))))), a.length > 0 ? o("div", { class: "nylas-booking-calendar-picker__dropdown" }, o("select-dropdown", { name: "booking-calendar", options: [{ value: "", label: c.t("nylasBookingCalendarPicker.selectOptionLabel") }, ...a], withSearch: !1, required: this.expressFlow, emptyValue: c.t("nylasBookingCalendarPicker.selectOptionLabel"), errorMessage: c.t("nylasBookingCalendarPicker.selectCalendarErrorMessage"), exportparts: "sd_dropdown: nbcp__dropdown, sd_dropdown-button: nbcp__dropdown-button, sd_dropdown-content: nbcp__dropdown-content", defaultSelectedOption: t || null, themeConfig: this.themeConfig })) : o("div", { class: "nylas-booking-calendar-picker__loading" }, o("span", { class: "label" }, c.t("nylasBookingCalendarPicker.tooltip.desc"), " ", o("info-icon", null)), o("div", { class: "loading-button" }, o("span", null, c.t("loading"), "...")))));
|
|
451
454
|
}
|
|
452
455
|
static get formAssociated() {
|
|
453
456
|
return !0;
|
|
454
457
|
}
|
|
455
458
|
get host() {
|
|
456
|
-
return
|
|
459
|
+
return H(this);
|
|
457
460
|
}
|
|
458
461
|
static get watchers() {
|
|
459
462
|
return {
|
|
@@ -464,8 +467,8 @@ const ua = class {
|
|
|
464
467
|
};
|
|
465
468
|
}
|
|
466
469
|
};
|
|
467
|
-
|
|
468
|
-
|
|
470
|
+
Dt([
|
|
471
|
+
O({
|
|
469
472
|
name: "nylas-booking-calendar-picker",
|
|
470
473
|
stateToProps: /* @__PURE__ */ new Map([
|
|
471
474
|
["schedulerConfig.calendars", "currentUserCalendars"],
|
|
@@ -485,7 +488,7 @@ Tt([
|
|
|
485
488
|
ln("design:paramtypes", []),
|
|
486
489
|
ln("design:returntype", void 0)
|
|
487
490
|
], ua.prototype, "render", null);
|
|
488
|
-
ua.style =
|
|
491
|
+
ua.style = Ot;
|
|
489
492
|
const $t = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-booking-confirmation-redirect{width:inherit;display:flex;flex-direction:column}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label{display:flex;align-items:center;gap:4px;margin-bottom:4px;color:var(--nylas-base-800)}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.label tooltip-component{display:flex}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown input-component::part(ic__input_wrapper){margin-top:1rem}.nylas-booking-confirmation-redirect .nylas-booking-confirmation-redirect__dropdown span.error-message{color:var(--nylas-error)}', Lt = $t;
|
|
490
493
|
var Ft = function(e, n, a, t) {
|
|
491
494
|
var l = arguments.length, i = l < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
@@ -579,13 +582,13 @@ const ha = class {
|
|
|
579
582
|
value: "custom"
|
|
580
583
|
}
|
|
581
584
|
];
|
|
582
|
-
return o(
|
|
585
|
+
return o(T, { key: "725985b90b29087507fe1b9dd842e3d3a9f32268" }, o("div", { key: "c6974b9f1aeccd2e6a4276846b8eaf8684d2b026", class: "nylas-booking-confirmation-redirect", part: "nbcr" }, e.length > 0 && o("div", { class: "nylas-booking-confirmation-redirect__dropdown" }, o("span", { class: "label" }, c.t("nylasBookingConfirmationRedirect.dropdownLabel"), o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasBookingConfirmationRedirect.tooltip.desc")))), this.componentLoaded && o("select-dropdown", { name: "confirmation-redirect-dropdown", options: e, withSearch: !1, defaultSelectedOption: e.find((n) => n.value === (this.acceptUrl ? "custom" : "default")), exportparts: "sd_dropdown: nbcr__dropdown, sd_dropdown-button: nbcr__dropdown-button, sd_dropdown-content: nbcr__dropdown-content", themeConfig: this.themeConfig }), this.acceptUrl && o("div", null, o("input-component", { name: "confirmation-redirect", id: "confirmation-redirect", type: "text", placeholder: c.t("nylasBookingConfirmationRedirect.customRedirectUrlPlaceholder"), required: !1, part: "ic__input_wrapper: nbcr__input-textfield", requiredError: this.requiredError, patternError: this.patternError, defaultValue: this.currentRedirectUrl, themeConfig: this.themeConfig }), this.redirectUrlErrorMessage && o("span", { class: "error-message" }, this.redirectUrlErrorMessage)))));
|
|
583
586
|
}
|
|
584
587
|
static get formAssociated() {
|
|
585
588
|
return !0;
|
|
586
589
|
}
|
|
587
590
|
get host() {
|
|
588
|
-
return
|
|
591
|
+
return H(this);
|
|
589
592
|
}
|
|
590
593
|
static get watchers() {
|
|
591
594
|
return {
|
|
@@ -597,7 +600,7 @@ const ha = class {
|
|
|
597
600
|
}
|
|
598
601
|
};
|
|
599
602
|
Ft([
|
|
600
|
-
|
|
603
|
+
O({
|
|
601
604
|
name: "nylas-booking-confirmation-redirect",
|
|
602
605
|
stateToProps: /* @__PURE__ */ new Map([
|
|
603
606
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -699,13 +702,13 @@ const ga = class {
|
|
|
699
702
|
value: "organizer-confirmation"
|
|
700
703
|
}
|
|
701
704
|
];
|
|
702
|
-
return o(
|
|
705
|
+
return o(T, { key: "bd1734fdb031d76cc87090596eec09000aa7b99b" }, this.showDropdown && o("div", { class: "nylas-booking-confirmation-type", part: "nbct" }, e.length > 0 && o("div", { class: "nylas-booking-confirmation-type__dropdown" }, o("span", { class: "label" }, c.t("nylasBookingConfirmationType.dropdownLabel"), o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasBookingConfirmationType.tooltip.desc")))), this.selectedBookingType && o("select-dropdown", { name: "booking-type", options: e, withSearch: !1, exportparts: "sd_dropdown: nbct__dropdown, sd_dropdown-button: nbct__dropdown-button, sd_dropdown-content: nbct__dropdown-content", defaultSelectedOption: e.find((n) => n.value == this.selectedBookingType), themeConfig: this.themeConfig }))));
|
|
703
706
|
}
|
|
704
707
|
static get formAssociated() {
|
|
705
708
|
return !0;
|
|
706
709
|
}
|
|
707
710
|
get host() {
|
|
708
|
-
return
|
|
711
|
+
return H(this);
|
|
709
712
|
}
|
|
710
713
|
static get watchers() {
|
|
711
714
|
return {
|
|
@@ -717,7 +720,7 @@ const ga = class {
|
|
|
717
720
|
}
|
|
718
721
|
};
|
|
719
722
|
Nt([
|
|
720
|
-
|
|
723
|
+
O({
|
|
721
724
|
name: "nylas-booking-confirmation-type",
|
|
722
725
|
stateToProps: /* @__PURE__ */ new Map([
|
|
723
726
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -1172,12 +1175,12 @@ var Zt = ["evt"], j = function(n, a) {
|
|
|
1172
1175
|
dragEl: u,
|
|
1173
1176
|
parentEl: L,
|
|
1174
1177
|
ghostEl: C,
|
|
1175
|
-
rootEl:
|
|
1178
|
+
rootEl: D,
|
|
1176
1179
|
nextEl: he,
|
|
1177
1180
|
lastDownEl: Je,
|
|
1178
1181
|
cloneEl: $,
|
|
1179
1182
|
cloneHidden: ce,
|
|
1180
|
-
dragStarted:
|
|
1183
|
+
dragStarted: Oe,
|
|
1181
1184
|
putSortable: R,
|
|
1182
1185
|
activeSortable: b.active,
|
|
1183
1186
|
originalEvent: l,
|
|
@@ -1185,8 +1188,8 @@ var Zt = ["evt"], j = function(n, a) {
|
|
|
1185
1188
|
oldDraggableIndex: Ie,
|
|
1186
1189
|
newIndex: G,
|
|
1187
1190
|
newDraggableIndex: se,
|
|
1188
|
-
hideGhostForTarget:
|
|
1189
|
-
unhideGhostForTarget:
|
|
1191
|
+
hideGhostForTarget: Oa,
|
|
1192
|
+
unhideGhostForTarget: Da,
|
|
1190
1193
|
cloneNowHidden: function() {
|
|
1191
1194
|
ce = !0;
|
|
1192
1195
|
},
|
|
@@ -1207,21 +1210,21 @@ function z(e) {
|
|
|
1207
1210
|
putSortable: R,
|
|
1208
1211
|
cloneEl: $,
|
|
1209
1212
|
targetEl: u,
|
|
1210
|
-
rootEl:
|
|
1213
|
+
rootEl: D,
|
|
1211
1214
|
oldIndex: Ce,
|
|
1212
1215
|
oldDraggableIndex: Ie,
|
|
1213
1216
|
newIndex: G,
|
|
1214
1217
|
newDraggableIndex: se
|
|
1215
1218
|
}, e));
|
|
1216
1219
|
}
|
|
1217
|
-
var u, L, C,
|
|
1220
|
+
var u, L, C, D, he, Je, $, ce, Ce, G, Ie, se, ze, R, _e = !1, Qe = !1, Ve = [], me, Y, dn, fn, oa, ra, Oe, ve, Pe, Ne = !1, je = !1, Ge, M, yn = [], zn = !1, en = [], an = typeof document < "u", Be = qn, sa = Ae || ie ? "cssFloat" : "float", Yt = an && !ba && !qn && "draggable" in document.createElement("div"), Sa = function() {
|
|
1218
1221
|
if (an) {
|
|
1219
1222
|
if (ie)
|
|
1220
1223
|
return !1;
|
|
1221
1224
|
var e = document.createElement("x");
|
|
1222
1225
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
1223
1226
|
}
|
|
1224
|
-
}(),
|
|
1227
|
+
}(), Ta = function(n, a) {
|
|
1225
1228
|
var t = g(n), l = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), i = we(n, 0, a), r = we(n, 1, a), s = i && g(i), f = r && g(r), y = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + P(i).width, m = f && parseInt(f.marginLeft) + parseInt(f.marginRight) + P(r).width;
|
|
1226
1229
|
if (t.display === "flex")
|
|
1227
1230
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -1245,7 +1248,7 @@ var u, L, C, T, he, Je, $, ce, Ce, G, Ie, se, ze, R, _e = !1, Qe = !1, Ve = [],
|
|
|
1245
1248
|
return t = l;
|
|
1246
1249
|
}
|
|
1247
1250
|
}), t;
|
|
1248
|
-
},
|
|
1251
|
+
}, Ha = function(n) {
|
|
1249
1252
|
function a(i, r) {
|
|
1250
1253
|
return function(s, f, y, m) {
|
|
1251
1254
|
var p = s.options.group.name && f.options.group.name && s.options.group.name === f.options.group.name;
|
|
@@ -1265,9 +1268,9 @@ var u, L, C, T, he, Je, $, ce, Ce, G, Ie, se, ze, R, _e = !1, Qe = !1, Ve = [],
|
|
|
1265
1268
|
(!l || qe(l) != "object") && (l = {
|
|
1266
1269
|
name: l
|
|
1267
1270
|
}), t.name = l.name, t.checkPull = a(l.pull, !0), t.checkPut = a(l.put), t.revertClone = l.revertClone, n.group = t;
|
|
1268
|
-
},
|
|
1271
|
+
}, Oa = function() {
|
|
1269
1272
|
!Sa && C && g(C, "display", "none");
|
|
1270
|
-
},
|
|
1273
|
+
}, Da = function() {
|
|
1271
1274
|
!Sa && C && g(C, "display", "");
|
|
1272
1275
|
};
|
|
1273
1276
|
an && !ba && document.addEventListener("click", function(e) {
|
|
@@ -1307,7 +1310,7 @@ function b(e, n) {
|
|
|
1307
1310
|
// will be set to same as swapThreshold if default
|
|
1308
1311
|
removeCloneOnHide: !0,
|
|
1309
1312
|
direction: function() {
|
|
1310
|
-
return
|
|
1313
|
+
return Ta(e, this.options);
|
|
1311
1314
|
},
|
|
1312
1315
|
ghostClass: "sortable-ghost",
|
|
1313
1316
|
chosenClass: "sortable-chosen",
|
|
@@ -1341,7 +1344,7 @@ function b(e, n) {
|
|
|
1341
1344
|
Re.initializePlugins(this, e, a);
|
|
1342
1345
|
for (var t in a)
|
|
1343
1346
|
!(t in n) && (n[t] = a[t]);
|
|
1344
|
-
|
|
1347
|
+
Ha(n);
|
|
1345
1348
|
for (var l in this)
|
|
1346
1349
|
l.charAt(0) === "_" && typeof this[l] == "function" && (this[l] = this[l].bind(this));
|
|
1347
1350
|
this.nativeDraggable = n.forceFallback ? !1 : Yt, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? E(e, "pointerdown", this._onTapStart) : (E(e, "mousedown", this._onTapStart), E(e, "touchstart", this._onTapStart)), this.nativeDraggable && (E(e, "dragover", this), E(e, "dragenter", this)), Ve.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), te(this, Ut());
|
|
@@ -1397,7 +1400,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1397
1400
|
var l = this, i = l.el, r = l.options, s = i.ownerDocument, f;
|
|
1398
1401
|
if (t && !u && t.parentNode === i) {
|
|
1399
1402
|
var y = P(t);
|
|
1400
|
-
if (
|
|
1403
|
+
if (D = i, u = t, L = u.parentNode, he = u.nextSibling, Je = t, ze = r.group, b.dragged = u, me = {
|
|
1401
1404
|
target: u,
|
|
1402
1405
|
clientX: (a || n).clientX,
|
|
1403
1406
|
clientY: (a || n).clientY
|
|
@@ -1439,7 +1442,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1439
1442
|
x(n, "mouseup", this._disableDelayedDrag), x(n, "touchend", this._disableDelayedDrag), x(n, "touchcancel", this._disableDelayedDrag), x(n, "pointerup", this._disableDelayedDrag), x(n, "pointercancel", this._disableDelayedDrag), x(n, "mousemove", this._delayedDragTouchMoveHandler), x(n, "touchmove", this._delayedDragTouchMoveHandler), x(n, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1440
1443
|
},
|
|
1441
1444
|
_triggerDragStart: function(n, a) {
|
|
1442
|
-
a = a || n.pointerType == "touch" && n, !this.nativeDraggable || a ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : a ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(u, "dragend", this), E(
|
|
1445
|
+
a = a || n.pointerType == "touch" && n, !this.nativeDraggable || a ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : a ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(u, "dragend", this), E(D, "dragstart", this._onDragStart));
|
|
1443
1446
|
try {
|
|
1444
1447
|
document.selection ? Ze(function() {
|
|
1445
1448
|
document.selection.empty();
|
|
@@ -1448,7 +1451,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1448
1451
|
}
|
|
1449
1452
|
},
|
|
1450
1453
|
_dragStarted: function(n, a) {
|
|
1451
|
-
if (_e = !1,
|
|
1454
|
+
if (_e = !1, D && u) {
|
|
1452
1455
|
j("dragStarted", this, {
|
|
1453
1456
|
evt: a
|
|
1454
1457
|
}), this.nativeDraggable && E(document, "dragover", Qt);
|
|
@@ -1463,7 +1466,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1463
1466
|
},
|
|
1464
1467
|
_emulateDragOver: function() {
|
|
1465
1468
|
if (Y) {
|
|
1466
|
-
this._lastX = Y.clientX, this._lastY = Y.clientY,
|
|
1469
|
+
this._lastX = Y.clientX, this._lastY = Y.clientY, Oa();
|
|
1467
1470
|
for (var n = document.elementFromPoint(Y.clientX, Y.clientY), a = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(Y.clientX, Y.clientY), n !== a); )
|
|
1468
1471
|
a = n;
|
|
1469
1472
|
if (u.parentNode[B]._isOutsideThisEl(n), a)
|
|
@@ -1480,7 +1483,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1480
1483
|
}
|
|
1481
1484
|
n = a;
|
|
1482
1485
|
} while (a = _a(a));
|
|
1483
|
-
|
|
1486
|
+
Da();
|
|
1484
1487
|
}
|
|
1485
1488
|
},
|
|
1486
1489
|
_onTouchMove: function(n) {
|
|
@@ -1508,7 +1511,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1508
1511
|
},
|
|
1509
1512
|
_appendGhost: function() {
|
|
1510
1513
|
if (!C) {
|
|
1511
|
-
var n = this.options.fallbackOnBody ? document.body :
|
|
1514
|
+
var n = this.options.fallbackOnBody ? document.body : D, a = P(u, !0, Be, !0, n), t = this.options;
|
|
1512
1515
|
if (Be) {
|
|
1513
1516
|
for (M = n; g(M, "position") === "static" && g(M, "transform") === "none" && M !== document; )
|
|
1514
1517
|
M = M.parentNode;
|
|
@@ -1526,19 +1529,19 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1526
1529
|
return;
|
|
1527
1530
|
}
|
|
1528
1531
|
j("setupClone", this), b.eventCanceled || ($ = xa(u), $.removeAttribute("id"), $.draggable = !1, $.style["will-change"] = "", this._hideClone(), J($, this.options.chosenClass, !1), b.clone = $), t.cloneId = Ze(function() {
|
|
1529
|
-
j("clone", t), !b.eventCanceled && (t.options.removeCloneOnHide ||
|
|
1532
|
+
j("clone", t), !b.eventCanceled && (t.options.removeCloneOnHide || D.insertBefore($, u), t._hideClone(), z({
|
|
1530
1533
|
sortable: t,
|
|
1531
1534
|
name: "clone"
|
|
1532
1535
|
}));
|
|
1533
|
-
}), !a && J(u, i.dragClass, !0), a ? (Qe = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (x(document, "mouseup", t._onDrop), x(document, "touchend", t._onDrop), x(document, "touchcancel", t._onDrop), l && (l.effectAllowed = "move", i.setData && i.setData.call(t, l, u)), E(document, "drop", t), g(u, "transform", "translateZ(0)")), _e = !0, t._dragStartId = Ze(t._dragStarted.bind(t, a, n)), E(document, "selectstart", t),
|
|
1536
|
+
}), !a && J(u, i.dragClass, !0), a ? (Qe = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (x(document, "mouseup", t._onDrop), x(document, "touchend", t._onDrop), x(document, "touchcancel", t._onDrop), l && (l.effectAllowed = "move", i.setData && i.setData.call(t, l, u)), E(document, "drop", t), g(u, "transform", "translateZ(0)")), _e = !0, t._dragStartId = Ze(t._dragStarted.bind(t, a, n)), E(document, "selectstart", t), Oe = !0, window.getSelection().removeAllRanges(), Le && g(document.body, "user-select", "none");
|
|
1534
1537
|
},
|
|
1535
1538
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1536
1539
|
_onDragOver: function(n) {
|
|
1537
1540
|
var a = this.el, t = n.target, l, i, r, s = this.options, f = s.group, y = b.active, m = ze === f, p = s.sort, h = R || y, v, _ = this, k = !1;
|
|
1538
1541
|
if (zn)
|
|
1539
1542
|
return;
|
|
1540
|
-
function A(
|
|
1541
|
-
j(
|
|
1543
|
+
function A(He, nt) {
|
|
1544
|
+
j(He, _, ee({
|
|
1542
1545
|
evt: n,
|
|
1543
1546
|
isOwner: m,
|
|
1544
1547
|
axis: v ? "vertical" : "horizontal",
|
|
@@ -1550,7 +1553,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1550
1553
|
target: t,
|
|
1551
1554
|
completed: F,
|
|
1552
1555
|
onMove: function(Yn, at) {
|
|
1553
|
-
return We(
|
|
1556
|
+
return We(D, a, u, l, Yn, P(Yn), n, at);
|
|
1554
1557
|
},
|
|
1555
1558
|
changed: W
|
|
1556
1559
|
}, nt));
|
|
@@ -1558,12 +1561,12 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1558
1561
|
function N() {
|
|
1559
1562
|
A("dragOverAnimationCapture"), _.captureAnimationState(), _ !== h && h.captureAnimationState();
|
|
1560
1563
|
}
|
|
1561
|
-
function F(
|
|
1564
|
+
function F(He) {
|
|
1562
1565
|
return A("dragOverCompleted", {
|
|
1563
|
-
insertion:
|
|
1564
|
-
}),
|
|
1566
|
+
insertion: He
|
|
1567
|
+
}), He && (m ? y._hideClone() : y._showClone(_), _ !== h && (J(u, R ? R.options.ghostClass : y.options.ghostClass, !1), J(u, s.ghostClass, !0)), R !== _ && _ !== b.active ? R = _ : _ === b.active && R && (R = null), h === _ && (_._ignoreWhileAnimating = t), _.animateAll(function() {
|
|
1565
1568
|
A("dragOverAnimationComplete"), _._ignoreWhileAnimating = null;
|
|
1566
|
-
}), _ !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (t === u && !u.animated || t === a && !t.animated) && (ve = null), !s.dragoverBubble && !n.rootEl && t !== document && (u.parentNode[B]._isOutsideThisEl(n.target), !
|
|
1569
|
+
}), _ !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (t === u && !u.animated || t === a && !t.animated) && (ve = null), !s.dragoverBubble && !n.rootEl && t !== document && (u.parentNode[B]._isOutsideThisEl(n.target), !He && ue(n)), !s.dragoverBubble && n.stopPropagation && n.stopPropagation(), k = !0;
|
|
1567
1570
|
}
|
|
1568
1571
|
function W() {
|
|
1569
1572
|
G = Z(u), se = Z(u, s.draggable), z({
|
|
@@ -1579,22 +1582,22 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1579
1582
|
return k;
|
|
1580
1583
|
if (u.contains(n.target) || t.animated && t.animatingX && t.animatingY || _._ignoreWhileAnimating === t)
|
|
1581
1584
|
return F(!1);
|
|
1582
|
-
if (Qe = !1, y && !s.disabled && (m ? p || (r = L !==
|
|
1585
|
+
if (Qe = !1, y && !s.disabled && (m ? p || (r = L !== D) : R === this || (this.lastPutMode = ze.checkPull(this, y, u, n)) && f.checkPut(this, y, u, n))) {
|
|
1583
1586
|
if (v = this._getDirection(n, t) === "vertical", l = P(u), A("dragOverValid"), b.eventCanceled)
|
|
1584
1587
|
return k;
|
|
1585
1588
|
if (r)
|
|
1586
|
-
return L =
|
|
1589
|
+
return L = D, N(), this._hideClone(), A("revert"), b.eventCanceled || (he ? D.insertBefore(u, he) : D.appendChild(u)), F(!0);
|
|
1587
1590
|
var U = Jn(a, s.draggable);
|
|
1588
1591
|
if (!U || ai(n, v, this) && !U.animated) {
|
|
1589
1592
|
if (U === u)
|
|
1590
1593
|
return F(!1);
|
|
1591
|
-
if (U && a === n.target && (t = U), t && (i = P(t)), We(
|
|
1594
|
+
if (U && a === n.target && (t = U), t && (i = P(t)), We(D, a, u, l, t, i, n, !!t) !== !1)
|
|
1592
1595
|
return N(), U && U.nextSibling ? a.insertBefore(u, U.nextSibling) : a.appendChild(u), L = a, W(), F(!0);
|
|
1593
1596
|
} else if (U && ni(n, v, this)) {
|
|
1594
1597
|
var fe = we(a, 0, s, !0);
|
|
1595
1598
|
if (fe === u)
|
|
1596
1599
|
return F(!1);
|
|
1597
|
-
if (t = fe, i = P(t), We(
|
|
1600
|
+
if (t = fe, i = P(t), We(D, a, u, l, t, i, n, !1) !== !1)
|
|
1598
1601
|
return N(), a.insertBefore(u, fe), L = a, W(), F(!0);
|
|
1599
1602
|
} else if (t.parentNode === a) {
|
|
1600
1603
|
i = P(t);
|
|
@@ -1610,11 +1613,11 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1610
1613
|
if (K === 0 || ne === t)
|
|
1611
1614
|
return F(!1);
|
|
1612
1615
|
ve = t, Pe = K;
|
|
1613
|
-
var
|
|
1616
|
+
var Te = t.nextElementSibling, oe = !1;
|
|
1614
1617
|
oe = K === 1;
|
|
1615
|
-
var Me = We(
|
|
1618
|
+
var Me = We(D, a, u, l, t, i, n, oe);
|
|
1616
1619
|
if (Me !== !1)
|
|
1617
|
-
return (Me === 1 || Me === -1) && (oe = Me === 1), zn = !0, setTimeout(ei, 30), N(), oe && !
|
|
1620
|
+
return (Me === 1 || Me === -1) && (oe = Me === 1), zn = !0, setTimeout(ei, 30), N(), oe && !Te ? a.appendChild(u) : t.parentNode.insertBefore(u, oe ? Te : t), le && wa(le, 0, Se - le.scrollTop), L = u.parentNode, ye !== void 0 && !je && (Ge = Math.abs(ye - P(t)[Ee])), W(), F(!0);
|
|
1618
1621
|
}
|
|
1619
1622
|
if (a.contains(u))
|
|
1620
1623
|
return F(!1);
|
|
@@ -1637,18 +1640,18 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1637
1640
|
this._nulling();
|
|
1638
1641
|
return;
|
|
1639
1642
|
}
|
|
1640
|
-
_e = !1, je = !1, Ne = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), jn(this.cloneId), jn(this._dragStartId), this.nativeDraggable && (x(document, "drop", this), x(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Le && g(document.body, "user-select", ""), g(u, "transform", ""), n && (
|
|
1643
|
+
_e = !1, je = !1, Ne = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), jn(this.cloneId), jn(this._dragStartId), this.nativeDraggable && (x(document, "drop", this), x(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Le && g(document.body, "user-select", ""), g(u, "transform", ""), n && (Oe && (n.cancelable && n.preventDefault(), !t.dropBubble && n.stopPropagation()), C && C.parentNode && C.parentNode.removeChild(C), (D === L || R && R.lastPutMode !== "clone") && $ && $.parentNode && $.parentNode.removeChild($), u && (this.nativeDraggable && x(u, "dragend", this), pn(u), u.style["will-change"] = "", Oe && !_e && J(u, R ? R.options.ghostClass : this.options.ghostClass, !1), J(u, this.options.chosenClass, !1), z({
|
|
1641
1644
|
sortable: this,
|
|
1642
1645
|
name: "unchoose",
|
|
1643
1646
|
toEl: L,
|
|
1644
1647
|
newIndex: null,
|
|
1645
1648
|
newDraggableIndex: null,
|
|
1646
1649
|
originalEvent: n
|
|
1647
|
-
}),
|
|
1650
|
+
}), D !== L ? (G >= 0 && (z({
|
|
1648
1651
|
rootEl: L,
|
|
1649
1652
|
name: "add",
|
|
1650
1653
|
toEl: L,
|
|
1651
|
-
fromEl:
|
|
1654
|
+
fromEl: D,
|
|
1652
1655
|
originalEvent: n
|
|
1653
1656
|
}), z({
|
|
1654
1657
|
sortable: this,
|
|
@@ -1659,7 +1662,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1659
1662
|
rootEl: L,
|
|
1660
1663
|
name: "sort",
|
|
1661
1664
|
toEl: L,
|
|
1662
|
-
fromEl:
|
|
1665
|
+
fromEl: D,
|
|
1663
1666
|
originalEvent: n
|
|
1664
1667
|
}), z({
|
|
1665
1668
|
sortable: this,
|
|
@@ -1684,7 +1687,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1684
1687
|
}), this.save()))), this._nulling();
|
|
1685
1688
|
},
|
|
1686
1689
|
_nulling: function() {
|
|
1687
|
-
j("nulling", this),
|
|
1690
|
+
j("nulling", this), D = u = L = C = he = $ = Je = ce = me = Y = Oe = G = se = Ce = Ie = ve = Pe = R = ze = b.dragged = b.ghost = b.clone = b.active = null, en.forEach(function(n) {
|
|
1688
1691
|
n.checked = !0;
|
|
1689
1692
|
}), en.length = dn = fn = 0;
|
|
1690
1693
|
},
|
|
@@ -1752,7 +1755,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1752
1755
|
if (a === void 0)
|
|
1753
1756
|
return t[n];
|
|
1754
1757
|
var l = Re.modifyOption(this, n, a);
|
|
1755
|
-
typeof l < "u" ? t[n] = l : t[n] = a, n === "group" &&
|
|
1758
|
+
typeof l < "u" ? t[n] = l : t[n] = a, n === "group" && Ha(t);
|
|
1756
1759
|
},
|
|
1757
1760
|
/**
|
|
1758
1761
|
* Destroy
|
|
@@ -1779,7 +1782,7 @@ b.prototype = /** @lends Sortable.prototype */
|
|
|
1779
1782
|
if (ce) {
|
|
1780
1783
|
if (j("showClone", this), b.eventCanceled)
|
|
1781
1784
|
return;
|
|
1782
|
-
u.parentNode ==
|
|
1785
|
+
u.parentNode == D && !this.options.group.revertClone ? D.insertBefore($, u) : he ? D.insertBefore($, he) : D.appendChild($), this.options.group.revertClone && this.animate(u, $), g($, "display", ""), ce = !1;
|
|
1783
1786
|
}
|
|
1784
1787
|
}
|
|
1785
1788
|
};
|
|
@@ -1860,7 +1863,7 @@ b.utils = {
|
|
|
1860
1863
|
index: Z,
|
|
1861
1864
|
nextTick: Ze,
|
|
1862
1865
|
cancelNextTick: jn,
|
|
1863
|
-
detectDirection:
|
|
1866
|
+
detectDirection: Ta,
|
|
1864
1867
|
getChild: we,
|
|
1865
1868
|
expando: B
|
|
1866
1869
|
};
|
|
@@ -1880,7 +1883,7 @@ b.create = function(e, n) {
|
|
|
1880
1883
|
return new b(e, n);
|
|
1881
1884
|
};
|
|
1882
1885
|
b.version = zt;
|
|
1883
|
-
var I = [],
|
|
1886
|
+
var I = [], De, Bn, Wn = !1, mn, un, nn, $e;
|
|
1884
1887
|
function ri() {
|
|
1885
1888
|
function e() {
|
|
1886
1889
|
this.defaults = {
|
|
@@ -1906,7 +1909,7 @@ function ri() {
|
|
|
1906
1909
|
this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), ca(), Ye(), Wt();
|
|
1907
1910
|
},
|
|
1908
1911
|
nulling: function() {
|
|
1909
|
-
nn = Bn =
|
|
1912
|
+
nn = Bn = De = Wn = $e = mn = un = null, I.length = 0;
|
|
1910
1913
|
},
|
|
1911
1914
|
_handleFallbackAutoScroll: function(a) {
|
|
1912
1915
|
this._handleAutoScroll(a, !0);
|
|
@@ -1944,8 +1947,8 @@ function ca() {
|
|
|
1944
1947
|
var hn = ka(function(e, n, a, t) {
|
|
1945
1948
|
if (n.scroll) {
|
|
1946
1949
|
var l = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, r = n.scrollSensitivity, s = n.scrollSpeed, f = V(), y = !1, m;
|
|
1947
|
-
Bn !== a && (Bn = a, Ye(),
|
|
1948
|
-
var p = 0, h =
|
|
1950
|
+
Bn !== a && (Bn = a, Ye(), De = n.scroll, m = n.scrollFn, De === !0 && (De = de(a, !0)));
|
|
1951
|
+
var p = 0, h = De;
|
|
1949
1952
|
do {
|
|
1950
1953
|
var v = h, _ = P(v), k = _.top, A = _.bottom, N = _.left, F = _.right, W = _.width, U = _.height, fe = void 0, K = void 0, ye = v.scrollWidth, xe = v.scrollHeight, q = g(v), Ee = v.scrollLeft, le = v.scrollTop;
|
|
1951
1954
|
v === f ? (fe = W < ye && (q.overflowX === "auto" || q.overflowX === "scroll" || q.overflowX === "visible"), K = U < xe && (q.overflowY === "auto" || q.overflowY === "scroll" || q.overflowY === "visible")) : (fe = W < ye && (q.overflowX === "auto" || q.overflowX === "scroll"), K = U < xe && (q.overflowY === "auto" || q.overflowY === "scroll"));
|
|
@@ -1955,8 +1958,8 @@ var hn = ka(function(e, n, a, t) {
|
|
|
1955
1958
|
I[pe] || (I[pe] = {});
|
|
1956
1959
|
(I[p].vx != Se || I[p].vy != ne || I[p].el !== v) && (I[p].el = v, I[p].vx = Se, I[p].vy = ne, clearInterval(I[p].pid), (Se != 0 || ne != 0) && (y = !0, I[p].pid = setInterval((function() {
|
|
1957
1960
|
t && this.layer === 0 && b.active._onTouchMove(nn);
|
|
1958
|
-
var
|
|
1959
|
-
typeof m == "function" && m.call(b.dragged.parentNode[B], oe,
|
|
1961
|
+
var Te = I[this.layer].vy ? I[this.layer].vy * s : 0, oe = I[this.layer].vx ? I[this.layer].vx * s : 0;
|
|
1962
|
+
typeof m == "function" && m.call(b.dragged.parentNode[B], oe, Te, e, nn, I[this.layer].el) !== "continue" || wa(I[this.layer].el, oe, Te);
|
|
1960
1963
|
}).bind({
|
|
1961
1964
|
layer: p
|
|
1962
1965
|
}), 24))), p++;
|
|
@@ -2226,7 +2229,7 @@ const da = ["dropdown", "radio_button"], fa = ["multi_select"], La = class {
|
|
|
2226
2229
|
}
|
|
2227
2230
|
render() {
|
|
2228
2231
|
var e;
|
|
2229
|
-
return o(
|
|
2232
|
+
return o(T, { key: "934b3e673982e8ebd67d4ccff640e750c4dbf2ed" }, o("div", { key: "c3d5ecb29da8ee6eaaa96386cfba02efb78b7663", class: "nylas-booking-form-config", part: "nbfc" }, o("div", { key: "0f22fd69392c7f4ea630e02714193c6df7f70a62", class: "header", part: "nbfc__header" }, o("div", { key: "42e78df67b8ea07058a72559b65dc3d4d1f8ab71", class: "header_text" }, o("h3", { key: "14b3699188aae5398722d60f4f933a4df1d2e008" }, c.t("nylasBookingFormConfig.headerTitle")), o("p", { key: "5668c75b6d5d5fa96b87dec70c8a619029fe77d7" }, c.t("nylasBookingFormConfig.headerSubTitle"))), o("div", { key: "0af8c62517dc26ef3e301dd11b0ddfadd4dce6b3", class: "header_action" }, o("select-dropdown", { key: "aa2ab13e43aa758d83957712ff77be17d1887134", name: "add-field", exportparts: "sd_dropdown: nbfc__add_field, sd_dropdown-button: nbfc__add_field-button, sd_dropdown-content: nbfc__add_field-dropdown-content", options: this.fieldTypes, withSearch: !1, withChevron: !1, dropdownButtonText: c.t("nylasBookingFormConfig.dropdownButtonText"), themeConfig: this.themeConfig }, o("span", { key: "87b18aa1efd55081375cf6be1aa435266c4df509", slot: "select-icon" }, o("plus-icon", { key: "bcebda8d6a2c8b1c46280e031c2e2a79a58d301a", width: "15", height: "15" }))))), o("div", { key: "8b0ab27445542b0f06931f56520f2ea26f8d272f", class: "content" }, o("div", { key: "a8cfca585c479c49bc756937330e8b8846d9b198", class: "additional_fields static_fields", part: "nbfc__static_fields" }, this.staticFields.map((n, a) => o("div", { class: `form-field draggable ${n.readonly && "fixed"}`, part: "nbfc__form_field", key: a }, o("div", { class: "form-field_header", part: "nbfc__form_field-header" }, o("span", { class: "dragable" }, o("dragable-icon", { width: "24", height: "25" })), o("div", { class: "form-field_header_text" }, o("h4", null, c.t(`nylasBookingFormConfig.fieldLabel.${n.fieldLabelKey}`)), o("p", null, c.t(`nylasBookingFormConfig.fieldType.${n.type}`))), o("div", { class: "form-field_header_actions" }, o("span", { class: "is-required" }, n.required ? c.t("required") : c.t("optional")), o("span", { class: `chevron ${n.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
2230
2233
|
this.staticFieldToggle(a);
|
|
2231
2234
|
} }, o("chevron-icon", { width: "24", height: "24" })))), o("div", { class: `form-field_content ${!n.isOpen && "hidden"}`, part: "nbfc__form_field-content" }, o("div", { class: "inputs" }, o("input-component", { class: "label-input", name: `${a}`, key: a, label: c.t("nylasBookingFormConfig.label"), required: !1, readOnly: n.readonly, defaultValue: n.label, themeConfig: this.themeConfig }, o("div", { class: "required-input", slot: "additional-input" }, o("input", { type: "checkbox", name: `required_${n.order}`, id: `required_${n.order}`, onClick: () => {
|
|
2232
2235
|
this.fieldRequired(a);
|
|
@@ -2268,7 +2271,7 @@ const da = ["dropdown", "radio_button"], fa = ["multi_select"], La = class {
|
|
|
2268
2271
|
return !0;
|
|
2269
2272
|
}
|
|
2270
2273
|
get host() {
|
|
2271
|
-
return
|
|
2274
|
+
return H(this);
|
|
2272
2275
|
}
|
|
2273
2276
|
static get watchers() {
|
|
2274
2277
|
return {
|
|
@@ -2280,7 +2283,7 @@ const da = ["dropdown", "radio_button"], fa = ["multi_select"], La = class {
|
|
|
2280
2283
|
}
|
|
2281
2284
|
};
|
|
2282
2285
|
di([
|
|
2283
|
-
|
|
2286
|
+
O({
|
|
2284
2287
|
name: "nylas-booking-form-config",
|
|
2285
2288
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2286
2289
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2407,13 +2410,13 @@ const Fa = class {
|
|
|
2407
2410
|
value: t.toString()
|
|
2408
2411
|
};
|
|
2409
2412
|
});
|
|
2410
|
-
return o(
|
|
2413
|
+
return o(T, null, o("div", { class: "nylas-buffer-time", part: "nbt" }, o("div", { class: "header", part: "nbt__header" }, o("h3", null, c.t("nylasBufferTime.headerTitle")), o("p", null, c.t("nylasBufferTime.headerSubTitle"), o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasBufferTime.tooltip.desc"))))), o("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, o("div", { class: "nylas-buffer-time__dropdown" }, o("div", { class: "nylas-buffer-time__row" }, o("label", null, c.t("nylasBufferTime.beforeBufferLabel")), o("div", { class: "dropdown-container" }, this.componentLoaded && o("select-dropdown", { id: "before-buffer-time", withSearch: !1, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: e, defaultSelectedOption: e.find((n) => n.value === this.selectedBeforeBufferTime.toString()), themeConfig: this.themeConfig }), o("span", null, c.t("nylasBufferTime.minutesShort")))), o("div", { class: "nylas-buffer-time__row" }, o("label", null, c.t("nylasBufferTime.afterBufferLabel")), o("div", { class: "dropdown-container" }, this.componentLoaded && o("select-dropdown", { id: "after-buffer-time", withSearch: !1, name: "after-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after", options: e, defaultSelectedOption: e.find((n) => n.value === this.selectedAfterBufferTime.toString()), themeConfig: this.themeConfig }), o("span", null, c.t("nylasBufferTime.minutesShort"))))), o("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, o("h4", null, c.t("nylasBufferTime.previewHeader")), this.renderPreview()))));
|
|
2411
2414
|
}
|
|
2412
2415
|
static get formAssociated() {
|
|
2413
2416
|
return !0;
|
|
2414
2417
|
}
|
|
2415
2418
|
get host() {
|
|
2416
|
-
return
|
|
2419
|
+
return H(this);
|
|
2417
2420
|
}
|
|
2418
2421
|
static get watchers() {
|
|
2419
2422
|
return {
|
|
@@ -2425,7 +2428,7 @@ const Fa = class {
|
|
|
2425
2428
|
}
|
|
2426
2429
|
};
|
|
2427
2430
|
pi([
|
|
2428
|
-
|
|
2431
|
+
O({
|
|
2429
2432
|
name: "nylas-buffer-time",
|
|
2430
2433
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2431
2434
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2518,13 +2521,13 @@ const Ia = class {
|
|
|
2518
2521
|
selected: ((t = this.defaultSelectedCalendars) == null ? void 0 : t.includes(a.id)) || ((l = this.defaultSelectedCalendars) != null && l.includes("primary") || ((i = this.defaultSelectedCalendars) == null ? void 0 : i.length) === 0 ? a.id === ((r = this.currentUser) == null ? void 0 : r.email) || a.id === this.name.split("participant-")[1] : !1)
|
|
2519
2522
|
};
|
|
2520
2523
|
})) ?? [];
|
|
2521
|
-
return o(
|
|
2524
|
+
return o(T, null, o("div", { class: "nylas-calendar-picker", part: "ncp" }, e.length > 0 ? o("div", { class: "nylas-calendar-picker__dropdown" }, o("multi-select-dropdown", { name: this.name, options: e, selectAtLeastOneOptionLabel: c.t("selectOneOrMoreOptions"), multipleOptionsSelectedLabel: c.t("multipleOptionsSelected"), error: this.error, exportparts: "msd_dropdown: ncp__dropdown, msd_dropdown-button: ncp__dropdown-button, msd_dropdown-content: ncp__dropdown-content", themeConfig: this.themeConfig })) : o("div", { class: "nylas-calendar-picker__loading" }, o("span", { class: "label" }, c.t("nylasCalendarPicker.calendarPickerLabel"), " ", o("info-icon", null)), o("div", { class: "loading-button" }, o("span", null, c.t("loading"), "...")))));
|
|
2522
2525
|
}
|
|
2523
2526
|
static get formAssociated() {
|
|
2524
2527
|
return !0;
|
|
2525
2528
|
}
|
|
2526
2529
|
get host() {
|
|
2527
|
-
return
|
|
2530
|
+
return H(this);
|
|
2528
2531
|
}
|
|
2529
2532
|
static get watchers() {
|
|
2530
2533
|
return {
|
|
@@ -2535,7 +2538,7 @@ const Ia = class {
|
|
|
2535
2538
|
}
|
|
2536
2539
|
};
|
|
2537
2540
|
hi([
|
|
2538
|
-
|
|
2541
|
+
O({
|
|
2539
2542
|
name: "nylas-calendar-picker",
|
|
2540
2543
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2541
2544
|
["schedulerConfig.currentUser", "currentUser"],
|
|
@@ -2607,13 +2610,13 @@ const Pa = class {
|
|
|
2607
2610
|
this.host.style.setProperty(`${n}`, a);
|
|
2608
2611
|
}
|
|
2609
2612
|
render() {
|
|
2610
|
-
return o(
|
|
2613
|
+
return o(T, { key: "135c34f2d3bf306c662d811facb60bb519034066" }, o("div", { key: "3130ffa93dac8b1bf961968307e0b8e491234762", class: "nylas-cancellation-policy", part: "ncpolicy" }, o("label", { key: "7f9d9f9c897ba37276f27357bf2cccaa507e6589", htmlFor: this.name }, c.t("nylasCancellationPolicy.cancellationPolicyLabel"), o("span", { key: "e2961d2a3c075849d6d66067fe0e7220fe74c61d", class: "label-icon" }, o("tooltip-component", { key: "9894a41281b96046bcf2cd152feab7d17e94bbf8" }, o("info-icon", { key: "38e71494669420a31995809a53782a8c8e517c35", slot: "tooltip-icon" }), o("span", { key: "9e96f42be522bb34e81f9e8089abaec66aef7157", slot: "tooltip-content" }, c.t("nylasCancellationPolicy.tooltip.desc"))))), o("textarea", { key: "c38281791654d49627ea0ffcf822853c23d42aad", id: this.name, part: "ncpolicy__textarea", name: this.name, value: this.message, maxlength: "250", onInput: (e) => this.handleChange(e) })));
|
|
2611
2614
|
}
|
|
2612
2615
|
static get formAssociated() {
|
|
2613
2616
|
return !0;
|
|
2614
2617
|
}
|
|
2615
2618
|
get host() {
|
|
2616
|
-
return
|
|
2619
|
+
return H(this);
|
|
2617
2620
|
}
|
|
2618
2621
|
static get watchers() {
|
|
2619
2622
|
return {
|
|
@@ -2625,7 +2628,7 @@ const Pa = class {
|
|
|
2625
2628
|
}
|
|
2626
2629
|
};
|
|
2627
2630
|
vi([
|
|
2628
|
-
|
|
2631
|
+
O({
|
|
2629
2632
|
name: "nylas-cancellation-policy",
|
|
2630
2633
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2631
2634
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2723,7 +2726,7 @@ const Na = class {
|
|
|
2723
2726
|
render() {
|
|
2724
2727
|
var a, t, l, i, r, s, f, y;
|
|
2725
2728
|
const e = this.participantsState.find((m) => m.is_organizer), n = (e == null ? void 0 : e.name) || (e == null ? void 0 : e.email);
|
|
2726
|
-
return o(
|
|
2729
|
+
return o(T, { key: "72419c5bcc6a59a04b0139986f37999c16ee0321" }, o("div", { key: "12be526936b2d0140ca8650bdc7719447ad4b832", class: "nylas-confirmation-email", part: "nce" }, o("div", { key: "5d99da81e4381aa459287f8e27395dd08667443b", class: "header", part: "nce__header" }, o("div", { key: "86e779ab695ea46dfe77070e4a6f1423c8b83214" }, o("h3", { key: "ffd65b55bade3bdd646fb71cf2c72bf0f11b1255" }, (t = (a = this.confirmationEmail) == null ? void 0 : a.booking_confirmed) != null && t.title || n ? c.t("nylasConfirmationEmail.headerTitle_withOrganizer", { organizerName: n }) : c.t("nylasConfirmationEmail.headerTitle")), o("p", { key: "9181be7b2c90dd1a0e5c45e288e9bde02903daf3" }, c.t("nylasConfirmationEmail.headerSubTitle"))), this.isConfirmationEmailOpen ? o("div", { class: "confirmation-email-toggle", part: "nce__confirmation-email-toggle--container" }, o("span", { class: `chevron ${this.isConfirmationEmailOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, o("chevron-icon", { width: "24", height: "24" }))) : o("button-component", { variant: "basic", clickHandler: (m) => {
|
|
2727
2730
|
m.preventDefault(), this.toggleConfirmationEmail();
|
|
2728
2731
|
} }, o("edit-icon", { width: "16", height: "16" }), c.t("nylasConfirmationEmail.editButtonText"))), this.isConfirmationEmailOpen ? o("div", { class: "nylas-confirmation-email__body", part: "nce__body" }, o("div", { class: "nylas-confirmation-email__section" }, this.nylasBranding && o("div", { class: "nylas-confirmation-email__row" }, o("label", null, c.t("nylasConfirmationEmail.nylasBranding.label"), o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasConfirmationEmail.nylasBranding.tooltip.desc"))))), o("toggle-switch", { exportparts: "ts_label: nce__toggle-label, ts_input: nce_toggle-input, ts_slider: nce_toggle-slider", name: "confirmation-email-show-branding", checked: (l = this.confirmationEmail) == null ? void 0 : l.show_nylas_branding, themeConfig: this.themeConfig })), o("div", { class: "nylas-confirmation-email__row" }, o("div", { class: "subsection" }, o("div", { class: "input-container" }, o("label", null, c.t("nylasConfirmationEmail.companyLogoUrl.label"), o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasConfirmationEmail.companyLogoUrl.tooltip.desc"))))), this.confirmationEmail && o("input-image-url", { name: "confirmation-email-logo", exportparts: "iiu__logo-input-textfield: nce__input-image-url", errorMessage: this.invalidImageErrorMessage, imageUrl: ((i = this.confirmationEmail) == null ? void 0 : i.logo) ?? "", themeConfig: this.themeConfig })))), o("div", { class: "nylas-confirmation-email__row full-width-col" }, o("div", { class: "subsection" }, o("h3", null, c.t("nylasConfirmationEmail.emailMessage.header")), o("div", { class: "input-container" }, o("label", { htmlFor: "title" }, c.t("nylasConfirmationEmail.emailMessage.label"), o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasConfirmationEmail.emailMessage.tooltip.desc"))))), o("input-component", { name: "confirmation-email-title", maxLength: 60, placeholder: n ? c.t("nylasConfirmationEmail.headerTitle_withOrganizer", { organizerName: n }) : c.t("nylasConfirmationEmail.headerTitle"), themeConfig: this.themeConfig, defaultValue: ((s = (r = this.confirmationEmail) == null ? void 0 : r.booking_confirmed) == null ? void 0 : s.title) ?? "" })), o("div", { class: "input-container" }, o("textarea-component", { label: c.t("nylasConfirmationEmail.emailMessage.additionalInfoLabel"), name: "confirmation-email-body", id: "confirmation-email-body", placeholder: c.t("nylasConfirmationEmail.emailMessage.additionalInfoPlaceholder"), tooltip: c.t("nylasConfirmationEmail.emailMessage.additionalInfoTooltip"), maxLength: 500, defaultValue: ((y = (f = this.confirmationEmail) == null ? void 0 : f.booking_confirmed) == null ? void 0 : y.body) ?? "", themeConfig: this.themeConfig })))))) : o("div", { class: "nylas-confirmation-email__summary", part: "nce__summary" }, o("p", null, o("span", { class: "summary-icon" }, o("person-clipboard-icon", null)), c.t("nylasConfirmationEmail.allHosts")), o("p", null, o("span", { class: "summary-icon" }, o("clock-icon", null)), c.t("nylasConfirmationEmail.immediatelyUponBooking")))));
|
|
2729
2732
|
}
|
|
@@ -2731,7 +2734,7 @@ const Na = class {
|
|
|
2731
2734
|
return !0;
|
|
2732
2735
|
}
|
|
2733
2736
|
get host() {
|
|
2734
|
-
return
|
|
2737
|
+
return H(this);
|
|
2735
2738
|
}
|
|
2736
2739
|
static get watchers() {
|
|
2737
2740
|
return {
|
|
@@ -2744,7 +2747,7 @@ const Na = class {
|
|
|
2744
2747
|
}
|
|
2745
2748
|
};
|
|
2746
2749
|
ki([
|
|
2747
|
-
|
|
2750
|
+
O({
|
|
2748
2751
|
name: "nylas-confirmation-email",
|
|
2749
2752
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2750
2753
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -2881,7 +2884,7 @@ const Aa = class {
|
|
|
2881
2884
|
this.host.style.setProperty(`${n}`, a);
|
|
2882
2885
|
}
|
|
2883
2886
|
render() {
|
|
2884
|
-
return o(
|
|
2887
|
+
return o(T, { key: "dcc41c59dd1d05ac4076f0524afdf2a480fdaa4f" }, o("div", { key: "69df9d397d2a164b7efacb18f7528eb20ab6600e", class: "nylas-connected-calendars", part: "nccals" }, o("div", { key: "8b78adfe8c171226216ea6d438fbd309070286d8", class: "header", part: "nccals__header" }, o("h3", { key: "3befc466e24cb3e5e1e35f42c458ccf7091b3f34" }, c.t("nylasConnectedCalendars.headerTitle")), o("p", { key: "4ff5cdc88931a47303256b6f1b45a9510de7db45" }, c.t("nylasConnectedCalendars.headerSubTitle"), o("tooltip-component", { key: "50d06d825e0e8d7df5ba2ad1cafd4d14065cd246" }, o("info-icon", { key: "5395f203eb13bed5acf8c5bcb85ab91f2584b12c", slot: "tooltip-icon" }), o("span", { key: "26437acaac098363867e51b8a0cd856576c507bd", slot: "tooltip-content" }, c.t("nylasConnectedCalendars.tooltip.desc"))))), o("div", { key: "ec447485afd6dff1b761492f691b1719ae8660a1", class: "content", part: "nccals__content" }, o("form", { key: "a7c8a0689581d1bb03c2adef72d7543dc20439f5", ref: (e) => this.connectedCalendarsFormRef = e }, Object.keys(this.participantCalendars).map((e, n) => {
|
|
2885
2888
|
const a = this.selectedCalendars[e], t = this.participantCalendars[e];
|
|
2886
2889
|
if (!(!a || !a.name))
|
|
2887
2890
|
return o("div", { class: "participant-container", part: "nccals__container", key: `participant-conatiner-${n}` }, o("div", { class: "participant-title", part: "nccals__title" }, o("p", null, c.t("nylasConnectedCalendars.participantCalendarTitle", { participantName: a.name })), o("div", { class: "participant-toggle", part: "nccals__toggle-container" }, o("span", { class: `chevron ${a.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
@@ -2893,7 +2896,7 @@ const Aa = class {
|
|
|
2893
2896
|
return !0;
|
|
2894
2897
|
}
|
|
2895
2898
|
get host() {
|
|
2896
|
-
return
|
|
2899
|
+
return H(this);
|
|
2897
2900
|
}
|
|
2898
2901
|
static get watchers() {
|
|
2899
2902
|
return {
|
|
@@ -2908,7 +2911,7 @@ const Aa = class {
|
|
|
2908
2911
|
}
|
|
2909
2912
|
};
|
|
2910
2913
|
Ei([
|
|
2911
|
-
|
|
2914
|
+
O({
|
|
2912
2915
|
name: "nylas-connected-calendars",
|
|
2913
2916
|
stateToProps: /* @__PURE__ */ new Map([
|
|
2914
2917
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -2925,8 +2928,8 @@ Ei([
|
|
|
2925
2928
|
kn("design:returntype", void 0)
|
|
2926
2929
|
], Aa.prototype, "render", null);
|
|
2927
2930
|
Aa.style = xi;
|
|
2928
|
-
const Si = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-custom-booking-flow__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-custom-booking-flow__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-custom-booking-flow__content{padding:1rem;display:flex;flex-direction:column;gap:1rem;background-color:var(--nylas-base-25)}.nylas-custom-booking-flow__block{display:flex;justify-content:space-between;gap:0.5rem}',
|
|
2929
|
-
var
|
|
2931
|
+
const Si = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-custom-booking-flow__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-custom-booking-flow__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-custom-booking-flow__content{padding:1rem;display:flex;flex-direction:column;gap:1rem;background-color:var(--nylas-base-25)}.nylas-custom-booking-flow__block{display:flex;justify-content:space-between;gap:0.5rem}', Ti = Si;
|
|
2932
|
+
var Hi = function(e, n, a, t) {
|
|
2930
2933
|
var l = arguments.length, i = l < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
2931
2934
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2932
2935
|
i = Reflect.decorate(e, n, a, t);
|
|
@@ -2966,13 +2969,13 @@ const Ra = class {
|
|
|
2966
2969
|
this.el.style.setProperty(`${n}`, a);
|
|
2967
2970
|
}
|
|
2968
2971
|
render() {
|
|
2969
|
-
return o(
|
|
2972
|
+
return o(T, { key: "562aba849635b178c2d6bda0a246b8b0b333c648", part: "ncbflow" }, o("nylas-form-card", { key: "7c825d704589c2c9826f271e62a2277fc936b01d", exportparts: "nfc__header: ncbflow__header" }, o("h1", { key: "0d34bac13cdda2200ef26879364a35cd5b54259e", slot: "header-title", class: "nylas-custom-booking-flow__title", part: "ncbflow__title" }, c.t("nylasCustomBookingFlow.headerTitle")), o("div", { key: "7f6deb94a64cd6c8c64918e6910df760c4b9e5cd", slot: "content", class: "nylas-custom-booking-flow__content", part: "ncbflow__content" }, o("slot", { key: "87f9b4de0271dee73316618e910ebbe254751e9e", name: "inputs" }))));
|
|
2970
2973
|
}
|
|
2971
2974
|
static get formAssociated() {
|
|
2972
2975
|
return !0;
|
|
2973
2976
|
}
|
|
2974
2977
|
get el() {
|
|
2975
|
-
return
|
|
2978
|
+
return H(this);
|
|
2976
2979
|
}
|
|
2977
2980
|
static get watchers() {
|
|
2978
2981
|
return {
|
|
@@ -2981,8 +2984,8 @@ const Ra = class {
|
|
|
2981
2984
|
};
|
|
2982
2985
|
}
|
|
2983
2986
|
};
|
|
2984
|
-
|
|
2985
|
-
|
|
2987
|
+
Hi([
|
|
2988
|
+
O({
|
|
2986
2989
|
name: "nylas-custom-booking-flow",
|
|
2987
2990
|
eventToProps: {},
|
|
2988
2991
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -2995,8 +2998,8 @@ Oi([
|
|
|
2995
2998
|
wn("design:paramtypes", []),
|
|
2996
2999
|
wn("design:returntype", void 0)
|
|
2997
3000
|
], Ra.prototype, "render", null);
|
|
2998
|
-
Ra.style =
|
|
2999
|
-
const
|
|
3001
|
+
Ra.style = Ti;
|
|
3002
|
+
const Oi = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-custom-event-slug{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left;background-color:var(--nylas-base-0);color:var(--nylas-base-900)}.nylas-custom-event-slug .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-custom-event-slug .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-custom-event-slug .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-custom-event-slug .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-custom-event-slug .header .drawer-toggle .chevron:hover,.nylas-custom-event-slug .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-custom-event-slug .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-custom-event-slug .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__body{display:grid;grid-template-columns:1fr;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x) var(--nylas-border-radius-2x);border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body{grid-template-columns:1fr}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section{border:none}}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row{display:flex;align-items:center;gap:1rem}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label{display:flex;align-items:center}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon{margin-left:4px}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row label span.label-icon tooltip-component{display:flex}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row p{margin:0.25rem 0 0 0;font-size:16px;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-custom-event-slug .nylas-custom-event-slug__body .nylas-custom-event-slug__section .nylas-custom-event-slug__row .input-container{width:100%}.nylas-custom-event-slug .nylas-custom-event-slug__body span.error-message{color:var(--nylas-error)}.nylas-custom-event-slug .nylas-custom-event-slug__body span.help-text{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:-moz-available;width:-webkit-fill-available;display:flex;flex-direction:row;gap:0.125rem;border-radius:var(--nylas-border-radius-2x);z-index:1}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error::placeholder{font-weight:400}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.focus{outline:2px solid var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper.error{border-color:var(--nylas-error);outline:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:16px;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:0;margin-top:1px;color:var(--nylas-base-400);font-weight:500;font-size:24px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon{margin-right:0.25rem;padding:0 0.75rem;height:100%;display:flex;align-items:center;right:0;cursor:pointer;user-select:none}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon.disabled{cursor:not-allowed}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:hover svg path{fill:var(--nylas-primary)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon:active svg path{fill:var(--nylas-base-500)}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .icon .copied{display:flex;align-items:center;font-size:0.875rem;gap:0.125rem}', Di = Oi;
|
|
3000
3003
|
var $i = function(e, n, a, t) {
|
|
3001
3004
|
var l = arguments.length, i = l < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
3002
3005
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -3087,13 +3090,13 @@ const Ma = class {
|
|
|
3087
3090
|
if (!this.requiresSlug)
|
|
3088
3091
|
return null;
|
|
3089
3092
|
const e = typeof this.urlSlug < "u";
|
|
3090
|
-
return o(
|
|
3093
|
+
return o(T, null, o("div", { class: "nylas-custom-event-slug", part: "nces" }, o("div", { class: "header", part: "nces__header" }, o("div", null, o("h3", null, c.t("nylasCustomEventSlug.headerTitle")), o("p", null, c.t("nylasCustomEventSlug.headerSubTitle"))), o("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, o("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, o("chevron-icon", { width: "24", height: "24" })))), this.isOpen && o("div", { class: "nylas-custom-event-slug__body", part: "nces__body" }, o("div", { class: "nylas-custom-event-slug__section" }, o("div", { class: "nylas-custom-event-slug__row" }, o("div", { class: "input-container" }, o("label", null, c.t("nylasCustomEventSlug.eventSlugLabel"), o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasCustomEventSlug.tooltip.desc"))))), o("div", { class: { "nylas-custom-event-slug__input-wrapper": !0, focus: this.focus, error: !!this.slugErrorMessage } }, o("div", { slot: "prefix", class: "prefix" }, "/"), e && o("input-component", { name: "event-slug", id: "event-slug", type: "text", required: !1, placeholder: "my-link-name", exportparts: "ic_input: nces__input-textfield", defaultValue: this.urlSlug, requiredError: this.requiredError, patternError: this.patternError, themeConfig: this.themeConfig }), o("div", { slot: "icon", class: { icon: !0, disabled: !this.urlSlug }, onClick: () => !this.copied && !!this.urlSlug && this.copyToClipboard() }, this.copied ? o("div", { class: "copied" }, o("checkmark-icon", { width: "12", height: "18" }), " ", c.t("nylasCustomEventSlug.copied")) : o("copy-icon", { width: "12", height: "18" }))), this.slugErrorMessage && o("span", { class: "error-message" }, this.slugErrorMessage)))))));
|
|
3091
3094
|
}
|
|
3092
3095
|
static get formAssociated() {
|
|
3093
3096
|
return !0;
|
|
3094
3097
|
}
|
|
3095
3098
|
get host() {
|
|
3096
|
-
return
|
|
3099
|
+
return H(this);
|
|
3097
3100
|
}
|
|
3098
3101
|
static get watchers() {
|
|
3099
3102
|
return {
|
|
@@ -3105,7 +3108,7 @@ const Ma = class {
|
|
|
3105
3108
|
}
|
|
3106
3109
|
};
|
|
3107
3110
|
$i([
|
|
3108
|
-
|
|
3111
|
+
O({
|
|
3109
3112
|
name: "nylas-custom-event-slug",
|
|
3110
3113
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3111
3114
|
["schedulerConfig.requiresSlug", "requiresSlug"],
|
|
@@ -3125,7 +3128,7 @@ $i([
|
|
|
3125
3128
|
xn("design:paramtypes", []),
|
|
3126
3129
|
xn("design:returntype", void 0)
|
|
3127
3130
|
], Ma.prototype, "render", null);
|
|
3128
|
-
Ma.style =
|
|
3131
|
+
Ma.style = Di;
|
|
3129
3132
|
const Li = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:inherit}.nylas-customize-booking-settings{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-customize-booking-settings .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-customize-booking-settings .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;margin:1rem 0;background-color:var(--nylas-base-25)}.nylas-customize-booking-settings .nylas-customize-booking-settings__settings .nylas-customize-booking-settings__settings-div{display:flex;align-items:center;gap:4px}.label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}.label .label-contents{margin:0;display:inline-block;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.label .label-contents{display:block}}.label tooltip-component{display:inline-block}@media screen and (max-width: 768px){tooltip-component#guests::part(tc__content){left:58px}}tooltip-component#reschedule::part(tc__content){left:58px}@media screen and (max-width: 768px){tooltip-component#reschedule::part(tc__content){left:58px}}tooltip-component#cancel::part(tc__content){left:-58px}@media screen and (max-width: 768px){tooltip-component#cancel::part(tc__content){left:58px}}', Fi = Li;
|
|
3130
3133
|
var Ii = function(e, n, a, t) {
|
|
3131
3134
|
var l = arguments.length, i = l < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
@@ -3210,13 +3213,13 @@ const za = class {
|
|
|
3210
3213
|
}
|
|
3211
3214
|
render() {
|
|
3212
3215
|
const e = typeof this.hideCancellationOptions == "boolean" && typeof this.hideReschedulingOptions == "boolean" && typeof this.allowGuestsToInvite == "boolean", n = this.showSettings.includes("allowGuestsToInvite");
|
|
3213
|
-
return o(
|
|
3216
|
+
return o(T, { key: "ae9f081f51b8e13eceaaeb9fdf34eb23814e5dc6" }, e && o("div", { class: "nylas-customize-booking-settings", part: "ncbs" }, o("div", { class: "header", part: "ncbs__header" }, o("h3", null, c.t("nylasCustomizeBookingSettings.headerTitle")), o("p", null, c.t("nylasCustomizeBookingSettings.headerSubTitle"))), o("div", { class: "nylas-customize-booking-settings__settings", part: "ncbs__settings" }, n && o("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__additional_guests" }, o("checkbox-component", { name: "hide_additional_guests", label: c.t("nylasCustomizeBookingSettings.allowGuests.label"), checked: this.allowGuestsToInvite, themeConfig: this.themeConfig }, o("span", { slot: "label", class: "label" }, o("p", { class: "label-contents" }, c.t("nylasCustomizeBookingSettings.allowGuests.label", { interpolation: { escapeValue: !1, escape: (a) => `${a}`, useRawValueToEscape: !0 } }))))), o("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__rescheduling_options" }, o("checkbox-component", { name: "hide_rescheduling_options", label: "Hide 'Reschedule' option on booking page and emails.", checked: this.hideReschedulingOptions, themeConfig: this.themeConfig }, o("span", { slot: "label", class: "label" }, o("p", { class: "label-contents" }, c.t("nylasCustomizeBookingSettings.hideReschedule.label")), o("tooltip-component", { id: "reschedule" }, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasCustomizeBookingSettings.hideReschedule.tooltip.desc")))))), o("div", { class: "nylas-customize-booking-settings__settings-div", part: "ncbs__settings-div , ncbs__cancellation_options" }, o("checkbox-component", { name: "hide_cancellation_options", label: "Hide 'Cancel' option on booking page and emails.", checked: this.hideCancellationOptions, themeConfig: this.themeConfig }, o("span", { slot: "label", class: "label" }, o("p", { class: "label-contents" }, c.t("nylasCustomizeBookingSettings.hideCancel.label")), o("tooltip-component", { id: "cancel" }, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, c.t("nylasCustomizeBookingSettings.hideCancel.tooltip.desc")))))))));
|
|
3214
3217
|
}
|
|
3215
3218
|
static get formAssociated() {
|
|
3216
3219
|
return !0;
|
|
3217
3220
|
}
|
|
3218
3221
|
get host() {
|
|
3219
|
-
return
|
|
3222
|
+
return H(this);
|
|
3220
3223
|
}
|
|
3221
3224
|
static get watchers() {
|
|
3222
3225
|
return {
|
|
@@ -3228,7 +3231,7 @@ const za = class {
|
|
|
3228
3231
|
}
|
|
3229
3232
|
};
|
|
3230
3233
|
Ii([
|
|
3231
|
-
|
|
3234
|
+
O({
|
|
3232
3235
|
name: "nylas-customize-booking-settings",
|
|
3233
3236
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3234
3237
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3328,13 +3331,13 @@ const ja = class {
|
|
|
3328
3331
|
label: ea[f],
|
|
3329
3332
|
value: f
|
|
3330
3333
|
})), a = ((t = this.selectedConfiguration) == null ? void 0 : t.group_booking) !== void 0 ? (i = (l = this.selectedConfiguration) == null ? void 0 : l.group_booking) == null ? void 0 : i.disable_emails : (s = (r = this.selectedConfiguration) == null ? void 0 : r.event_booking) == null ? void 0 : s.disable_emails;
|
|
3331
|
-
return o(
|
|
3334
|
+
return o(T, { key: "111f07cb4c8eb39dd782d5e945fdfba2c5d2d39a" }, o("div", { key: "67df22c8c61597cde804d6eacf59ab96dcfb60f8", class: "nylas-disable-emails", part: "nde" }, o("div", { key: "4689e1ccd1514bd266dbc13cd7523eb05770a1ac", class: "header", part: "nde__header" }, o("div", { key: "8910f6bd8dcaab263cc75df002733ed45406ef4c" }, o("h3", { key: "0274aa2963fc90aa29b0462f61ebe69b98b2e6b8" }, c.t("eventCommunicationsTitle")), o("p", { key: "25ef7bfddf06b29b48ac56ae7f713d7d12d79bc8" }, c.t("eventCommunicationsDescription")))), o("div", { key: "ad63d4efc81c2955f7ae7c76d9a475c2ff6bdeeb", class: "content", part: "nde__content" }, o("div", { key: "a7b287d56c5168cd662f9183028e8afafb2fadf0", class: "toggle", part: "nde__toggle" }, o("label", { key: "4fb770089bc875d731d19d0a9435f1b37e63cf5a" }, c.t("nylasConfirmationEmail.confirmationEmail.label"), o("span", { key: "8d18e484e34e3bf8d4ffcb5e59613daf822b7310", class: "label-icon" }, o("tooltip-component", { key: "1c05ee11680dac947352b0984e11334df7ec275e" }, o("info-icon", { key: "beb1a833708c09b829ffb84af451e734a9fa0318", slot: "tooltip-icon" }), o("span", { key: "e4743fa2e563e2a41694e76c29c5ede8a5ce5f8b", slot: "tooltip-content" }, " ", c.t("nylasConfirmationEmail.confirmationEmail.tooltip.desc"))))), o("toggle-switch", { key: "ab8763ef7871be510dc435729d18db995bd0b9ea", exportparts: "ts_label: nde__toggle-label, ts_input: nde_toggle-input, ts_slider: nde_toggle-slider", name: "disable-emails", checked: !a, themeConfig: this.themeConfig })), o("div", { key: "e3337ebe5447827307f90e11ba786653ba8542b6", class: "toggle", part: "nde__toggle" }, o("label", { key: "53127b097daf7f650c80013bcb5e28eff8cdc11b" }, c.t("nylasConfirmationEmail.confirmationEmail.language"), o("span", { key: "5a152e174aa8493db6661305fb00ce1fad078c0f", class: "label-icon" }, o("tooltip-component", { key: "d7969ec0a402047c85f5a7277be3501f0e09720f" }, o("info-icon", { key: "88e9dd371dc8ed9a71140c3479a6720b0d7fbb7d", slot: "tooltip-icon" }), o("span", { key: "021e377559b6c26acdaaaa5f4dd2f079273db8c6", slot: "tooltip-content" }, " ", c.t("nylasConfirmationEmail.confirmationEmail.tooltip.language"))))), o("select-dropdown", { key: "0a8fd521a618e19c91c47319d71b7a3b6d38e3b5", name: "organizer-locale", options: e, searchPlaceholder: c.t("search"), withChevron: !1, defaultSelectedOption: e.find((f) => f.value == this.organizerLocale), themeConfig: this.themeConfig, exportparts: "sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label" }, o("span", { key: "bab599ea18f086ed163d6fbeb5812ae747e074ed", slot: "select-icon" }, o("translate-icon", { key: "b7cead6c17ac94adb37804704dc4e7b0b376e616", width: "20", height: "20" })))))));
|
|
3332
3335
|
}
|
|
3333
3336
|
static get formAssociated() {
|
|
3334
3337
|
return !0;
|
|
3335
3338
|
}
|
|
3336
3339
|
get host() {
|
|
3337
|
-
return
|
|
3340
|
+
return H(this);
|
|
3338
3341
|
}
|
|
3339
3342
|
static get watchers() {
|
|
3340
3343
|
return {
|
|
@@ -3346,7 +3349,7 @@ const ja = class {
|
|
|
3346
3349
|
}
|
|
3347
3350
|
};
|
|
3348
3351
|
Ai([
|
|
3349
|
-
|
|
3352
|
+
O({
|
|
3350
3353
|
name: "nylas-disable-emails",
|
|
3351
3354
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3352
3355
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3375,7 +3378,7 @@ var zi = function(e, n, a, t) {
|
|
|
3375
3378
|
for (var s = e.length - 1; s >= 0; s--)
|
|
3376
3379
|
(r = e[s]) && (i = (l < 3 ? r(i) : l > 3 ? r(n, a, i) : r(n, a)) || i);
|
|
3377
3380
|
return l > 3 && i && Object.defineProperty(n, a, i), i;
|
|
3378
|
-
},
|
|
3381
|
+
}, Tn = function(e, n) {
|
|
3379
3382
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3380
3383
|
return Reflect.metadata(e, n);
|
|
3381
3384
|
};
|
|
@@ -3448,13 +3451,13 @@ const Ba = class {
|
|
|
3448
3451
|
{ value: 1 .toString(), label: c.t("timeDuration", { context: "minute" }) },
|
|
3449
3452
|
{ value: 60 .toString(), label: c.t("timeDuration", { context: "hour" }) }
|
|
3450
3453
|
];
|
|
3451
|
-
return o(
|
|
3454
|
+
return o(T, { key: "972db115996b44edaa3fe862f6866bbe8c95c8fe" }, o("div", { key: "444d15fb9db84d10cd8e266825d701db9dc5c699", class: "nylas-event-duration", part: "ned" }, o("label", { key: "a1a5f86d336f73e7d6055adb6048d6c59457eb0c", htmlFor: "duration" }, c.t("nylasEventDuration.headerTitle"), o("span", { key: "446b5d19b500039775e434c087596538d5cba10b", class: "required" }, "*")), o("div", { key: "c2e5b85739b9fa5ae3da9ea6e8faf2a4d7ebf49a", class: "nylas-event-duration__wrapper" }, o("input-dropdown", { key: "66f8763efe92b4d5dcad8448958c40ac82e5938d", class: this.error ? "error" : "", 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((n) => n.value === this.duration.toString()), themeConfig: this.themeConfig }), this.durationIncrement && o("select-dropdown", { name: "event-duration", options: e, pluralizedLabel: this.duration > 1 ? c.t(`time.${this.durationIncrement === 60 ? "hours" : "minutes"}`) : c.t(`time.${this.durationIncrement === 60 ? "hour" : "minute"}`), themeConfig: this.themeConfig, exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: e.find((n) => n.value === this.durationIncrement.toString()), withSearch: !1 })), o("div", { key: "f0347b2c03090422999cebbb873475e37c373dd9", class: `nylas-event-duration__error-container ${this.error ? "visible" : ""}`, part: "ned__error-container" }, o("div", { key: "bc1d57d6eb1bfc91b8ffbaa26822bfc815b93cb7", class: "nylas-event-duration__error", part: "ned__error" }, this.error))));
|
|
3452
3455
|
}
|
|
3453
3456
|
static get formAssociated() {
|
|
3454
3457
|
return !0;
|
|
3455
3458
|
}
|
|
3456
3459
|
get host() {
|
|
3457
|
-
return
|
|
3460
|
+
return H(this);
|
|
3458
3461
|
}
|
|
3459
3462
|
static get watchers() {
|
|
3460
3463
|
return {
|
|
@@ -3466,7 +3469,7 @@ const Ba = class {
|
|
|
3466
3469
|
}
|
|
3467
3470
|
};
|
|
3468
3471
|
zi([
|
|
3469
|
-
|
|
3472
|
+
O({
|
|
3470
3473
|
name: "nylas-event-duration",
|
|
3471
3474
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3472
3475
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3476,9 +3479,9 @@ zi([
|
|
|
3476
3479
|
eventToProps: {},
|
|
3477
3480
|
fireRegisterEvent: !0
|
|
3478
3481
|
}),
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
+
Tn("design:type", Function),
|
|
3483
|
+
Tn("design:paramtypes", []),
|
|
3484
|
+
Tn("design:returntype", void 0)
|
|
3482
3485
|
], Ba.prototype, "render", null);
|
|
3483
3486
|
Ba.style = Mi;
|
|
3484
3487
|
const ji = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem;background-color:var(--nylas-base-25)}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}', Bi = ji;
|
|
@@ -3490,7 +3493,7 @@ var Wi = function(e, n, a, t) {
|
|
|
3490
3493
|
for (var s = e.length - 1; s >= 0; s--)
|
|
3491
3494
|
(r = e[s]) && (i = (l < 3 ? r(i) : l > 3 ? r(n, a, i) : r(n, a)) || i);
|
|
3492
3495
|
return l > 3 && i && Object.defineProperty(n, a, i), i;
|
|
3493
|
-
},
|
|
3496
|
+
}, Hn = function(e, n) {
|
|
3494
3497
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3495
3498
|
return Reflect.metadata(e, n);
|
|
3496
3499
|
};
|
|
@@ -3522,13 +3525,13 @@ const Wa = class {
|
|
|
3522
3525
|
d("nylas-event-limits", "disconnectedCallback");
|
|
3523
3526
|
}
|
|
3524
3527
|
render() {
|
|
3525
|
-
return o(
|
|
3528
|
+
return o(T, { key: "e6335ec8e26e22b2d764385d2403b13d63da7b49" }, o("nylas-form-card", { key: "ebd048048696804ce7d7346f603efa2257d21455", exportparts: "nfc__header: nel__header", themeConfig: this.themeConfig }, o("h1", { key: "07c0b91013b37cbe1fdf6bc41e7ffaeb20599931", slot: "header-title", class: "nylas-event-limits__title" }, c.t("nylasEventLimits.headerTitle")), o("div", { key: "e2d7234493eebffb02537f758f6c176d0b5e001e", slot: "content", class: "nylas-event-limits__content" }, o("slot", { key: "a68c144dfa72e1a59d9c516ca7a1706cc55dcdc4", name: "inputs" }))));
|
|
3526
3529
|
}
|
|
3527
3530
|
static get formAssociated() {
|
|
3528
3531
|
return !0;
|
|
3529
3532
|
}
|
|
3530
3533
|
get el() {
|
|
3531
|
-
return
|
|
3534
|
+
return H(this);
|
|
3532
3535
|
}
|
|
3533
3536
|
static get watchers() {
|
|
3534
3537
|
return {
|
|
@@ -3538,7 +3541,7 @@ const Wa = class {
|
|
|
3538
3541
|
}
|
|
3539
3542
|
};
|
|
3540
3543
|
Wi([
|
|
3541
|
-
|
|
3544
|
+
O({
|
|
3542
3545
|
name: "nylas-event-limits",
|
|
3543
3546
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3544
3547
|
["schedulerConfig.selectedLanguage", "selectedLanguage"],
|
|
@@ -3547,9 +3550,9 @@ Wi([
|
|
|
3547
3550
|
eventToProps: {},
|
|
3548
3551
|
fireRegisterEvent: !0
|
|
3549
3552
|
}),
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
+
Hn("design:type", Function),
|
|
3554
|
+
Hn("design:paramtypes", []),
|
|
3555
|
+
Hn("design:returntype", void 0)
|
|
3553
3556
|
], Wa.prototype, "render", null);
|
|
3554
3557
|
Wa.style = Bi;
|
|
3555
3558
|
const Ui = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', qi = Ui;
|
|
@@ -3561,7 +3564,7 @@ var Ji = function(e, n, a, t) {
|
|
|
3561
3564
|
for (var s = e.length - 1; s >= 0; s--)
|
|
3562
3565
|
(r = e[s]) && (i = (l < 3 ? r(i) : l > 3 ? r(n, a, i) : r(n, a)) || i);
|
|
3563
3566
|
return l > 3 && i && Object.defineProperty(n, a, i), i;
|
|
3564
|
-
},
|
|
3567
|
+
}, On = function(e, n) {
|
|
3565
3568
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3566
3569
|
return Reflect.metadata(e, n);
|
|
3567
3570
|
};
|
|
@@ -3611,7 +3614,7 @@ const Ua = class {
|
|
|
3611
3614
|
}
|
|
3612
3615
|
render() {
|
|
3613
3616
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
3614
|
-
return o(
|
|
3617
|
+
return o(T, { key: "3ecc0be0065de7cf3487ce8061d1a039df3d295e" }, o("div", { key: "78733c8cee9dceb1229127dde249ce9a6ea78472", class: "nylas-limit-future-bookings", part: "nlfb" }, o("label", { key: "9ec03cf08531e017e4ddf8313c4d377f357cb7bb" }, c.t("nylasLimitFutureBookings.headerTitle"), o("span", { key: "d3a7e1e6a643b6a2aacb060e57fab94771040641", class: "label-icon" }, o("tooltip-component", { key: "6516dd0780ac59c5c5eb2ca200c320e647ed9da6" }, o("info-icon", { key: "a1fbf37b4f0c08d2b045326fdc5e370daa5884b9", slot: "tooltip-icon" }), o("span", { key: "0d0ff6f2c2f85956f1222f1a5a5ae085e895e3b6", slot: "tooltip-content" }, c.t("nylasLimitFutureBookings.tooltip.desc"))))), e && o("time-period-selector", { id: "limit-future-bookings", timePeriods: [
|
|
3615
3618
|
{ value: "day", label: c.t("timePeriod", { context: "day" }) },
|
|
3616
3619
|
{ value: "week", label: c.t("timePeriod", { context: "week" }) },
|
|
3617
3620
|
{ value: "month", label: c.t("timePeriod", { context: "month" }) }
|
|
@@ -3621,7 +3624,7 @@ const Ua = class {
|
|
|
3621
3624
|
return !0;
|
|
3622
3625
|
}
|
|
3623
3626
|
get host() {
|
|
3624
|
-
return
|
|
3627
|
+
return H(this);
|
|
3625
3628
|
}
|
|
3626
3629
|
static get watchers() {
|
|
3627
3630
|
return {
|
|
@@ -3633,7 +3636,7 @@ const Ua = class {
|
|
|
3633
3636
|
}
|
|
3634
3637
|
};
|
|
3635
3638
|
Ji([
|
|
3636
|
-
|
|
3639
|
+
O({
|
|
3637
3640
|
name: "nylas-limit-future-bookings",
|
|
3638
3641
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3639
3642
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3643,9 +3646,9 @@ Ji([
|
|
|
3643
3646
|
eventToProps: {},
|
|
3644
3647
|
fireRegisterEvent: !0
|
|
3645
3648
|
}),
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
+
On("design:type", Function),
|
|
3650
|
+
On("design:paramtypes", []),
|
|
3651
|
+
On("design:returntype", void 0)
|
|
3649
3652
|
], Ua.prototype, "render", null);
|
|
3650
3653
|
Ua.style = qi;
|
|
3651
3654
|
const Gi = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-min-booking-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-booking-notice{flex-direction:column;gap:0.5rem}}.nylas-min-booking-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-booking-notice label span.label-icon{margin-left:4px}.nylas-min-booking-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', Zi = Gi;
|
|
@@ -3657,7 +3660,7 @@ var Yi = function(e, n, a, t) {
|
|
|
3657
3660
|
for (var s = e.length - 1; s >= 0; s--)
|
|
3658
3661
|
(r = e[s]) && (i = (l < 3 ? r(i) : l > 3 ? r(n, a, i) : r(n, a)) || i);
|
|
3659
3662
|
return l > 3 && i && Object.defineProperty(n, a, i), i;
|
|
3660
|
-
},
|
|
3663
|
+
}, Dn = function(e, n) {
|
|
3661
3664
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3662
3665
|
return Reflect.metadata(e, n);
|
|
3663
3666
|
};
|
|
@@ -3708,7 +3711,7 @@ const qa = class {
|
|
|
3708
3711
|
}
|
|
3709
3712
|
render() {
|
|
3710
3713
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
3711
|
-
return o(
|
|
3714
|
+
return o(T, { key: "88a88f1b7b2e4b9013834395125fecab5b4cd375" }, o("div", { key: "edcd3534a8ec82547803a4fae589ff40be70087a", class: "nylas-min-booking-notice", part: "nmbn" }, o("label", { key: "feda4e935f9a78e9d736a775d4e9238f05181750" }, c.t("nylasMinBookingNotice.headerTitle"), o("span", { key: "1f611610cee5f3a8b4ab519647f03dabe0c000f1", class: "label-icon" }, o("tooltip-component", { key: "56555cef60d9f3c321b76576f4bd7250b2051e82" }, o("info-icon", { key: "5f682db7563206aa5f710672caa8beb1a3361cb1", slot: "tooltip-icon" }), o("span", { key: "684b3ec30955fd203e9d9c7ab98b1ab1341ba62f", slot: "tooltip-content" }, c.t("nylasMinBookingNotice.tooltip.desc"))))), e && o("time-period-selector", { id: "min-booking-notice", exportparts: "tps__number-dropdown: nmbn__number-dropdown, tps__number-dropdown-button: nmbn__number-dropdown-button, tps__number-dropdown-content: nmbn__number-dropdown-content, tps__period-dropdown: nmbn__period-dropdown, tps__period-dropdown-button: nmbn__period-dropdown-button, tps__period-dropdown-content: nmbn__period-dropdown-content", timePeriods: [
|
|
3712
3715
|
{ value: "minute", label: c.t("timeDuration", { context: "minute" }) },
|
|
3713
3716
|
{ value: "hour", label: c.t("timeDuration", { context: "hour" }) },
|
|
3714
3717
|
{ value: "day", label: c.t("timePeriod", { context: "day" }) },
|
|
@@ -3719,7 +3722,7 @@ const qa = class {
|
|
|
3719
3722
|
return !0;
|
|
3720
3723
|
}
|
|
3721
3724
|
get host() {
|
|
3722
|
-
return
|
|
3725
|
+
return H(this);
|
|
3723
3726
|
}
|
|
3724
3727
|
static get watchers() {
|
|
3725
3728
|
return {
|
|
@@ -3731,7 +3734,7 @@ const qa = class {
|
|
|
3731
3734
|
}
|
|
3732
3735
|
};
|
|
3733
3736
|
Yi([
|
|
3734
|
-
|
|
3737
|
+
O({
|
|
3735
3738
|
name: "nylas-min-booking-notice",
|
|
3736
3739
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3737
3740
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3741,9 +3744,9 @@ Yi([
|
|
|
3741
3744
|
eventToProps: {},
|
|
3742
3745
|
fireRegisterEvent: !0
|
|
3743
3746
|
}),
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
+
Dn("design:type", Function),
|
|
3748
|
+
Dn("design:paramtypes", []),
|
|
3749
|
+
Dn("design:returntype", void 0)
|
|
3747
3750
|
], qa.prototype, "render", null);
|
|
3748
3751
|
qa.style = Zi;
|
|
3749
3752
|
const Xi = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}select-dropdown::part(sd_dropdown-button){border:none}', Ki = Xi;
|
|
@@ -3806,7 +3809,7 @@ const Ja = class {
|
|
|
3806
3809
|
}
|
|
3807
3810
|
render() {
|
|
3808
3811
|
const e = typeof this.selectedNumber == "number" && typeof this.selectedPeriod == "string";
|
|
3809
|
-
return o(
|
|
3812
|
+
return o(T, { key: "e542c6ac0a0d2b6994e2ab80f3aa8800569e4677" }, o("div", { key: "b0575cc8bf4fc3eeba403922fbe2fd1cdf71dbbc", class: "nylas-min-cancellation-notice", part: "nmcn" }, o("label", { key: "7cd583803774a2da35c3338e20eef0ddea1e9033" }, c.t("nylasMinCancellationNotice.headerTitle"), o("span", { key: "ab77555903d8b8093f9d850fe7c620300bc9d522", class: "label-icon" }, o("tooltip-component", { key: "900080a757b13a0be59938260ab676c13bf14be9" }, o("info-icon", { key: "1b43f907b4c64547640f8f1e469609efd460b02f", slot: "tooltip-icon" }), o("span", { key: "85b9cd73d5ea9942180370242fa0bbba12670ecc", slot: "tooltip-content" }, c.t("nylasMinCancellationNotice.tooltip.desc"))))), e && o("time-period-selector", { id: "min-cancellation-notice", exportparts: "tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content", timePeriods: [
|
|
3810
3813
|
{ value: "minute", label: c.t("timeDuration", { context: "minute" }) },
|
|
3811
3814
|
{ value: "hour", label: c.t("timeDuration", { context: "hour" }) },
|
|
3812
3815
|
{ value: "day", label: c.t("timePeriod", { context: "day" }) },
|
|
@@ -3817,7 +3820,7 @@ const Ja = class {
|
|
|
3817
3820
|
return !0;
|
|
3818
3821
|
}
|
|
3819
3822
|
get host() {
|
|
3820
|
-
return
|
|
3823
|
+
return H(this);
|
|
3821
3824
|
}
|
|
3822
3825
|
static get watchers() {
|
|
3823
3826
|
return {
|
|
@@ -3829,7 +3832,7 @@ const Ja = class {
|
|
|
3829
3832
|
}
|
|
3830
3833
|
};
|
|
3831
3834
|
Qi([
|
|
3832
|
-
|
|
3835
|
+
O({
|
|
3833
3836
|
name: "nylas-min-cancellation-notice",
|
|
3834
3837
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3835
3838
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -3919,13 +3922,13 @@ const Ga = class {
|
|
|
3919
3922
|
}
|
|
3920
3923
|
render() {
|
|
3921
3924
|
const e = typeof this.currentPageName < "u";
|
|
3922
|
-
return o(
|
|
3925
|
+
return o(T, { key: "e1bc391d3f0038551455d5b81802c18e3984f146" }, o("div", { key: "b52fb44cca8aad79393bc1a2cc301e49409861c6", class: "nylas-page-name", part: "nces" }, o("div", { key: "a8776ee0b2bddfdcb520b3917dab4b707f2aff5d", class: "header", part: "nces__header" }, o("div", { key: "c602351270cf031bb4aefca69545f2b901d46cad" }, o("h3", { key: "9621a835385c0d5afea13bc2664101267128bc90" }, c.t("nylasPageName.headerTitle")), o("p", { key: "9451e0b6646d25587057f1b34af81aae73437eee" }, c.t("nylasPageName.headerSubTitle"), o("tooltip-component", { key: "dbc02f8e7ab359708d90ef40ab4f23572a1e1e43" }, o("info-icon", { key: "c3d9daf0c3114e353c7c68485644fc26202f8a98", slot: "tooltip-icon" }), o("span", { key: "28d1244cf61a48b53ba928cdcc28bcf5daf51d87", slot: "tooltip-content" }, c.t("nylasPageName.tooltip.desc"))), this.requirePageName && o("span", { class: "required-asterisk" }, "*"))), this.showToggle && o("div", { class: "drawer-toggle", part: "nces__drawer-toggle--container" }, o("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleDrawer() }, o("chevron-icon", { width: "24", height: "24" })))), this.isOpen && o("div", { class: "nylas-page-name__body", part: "nces__body" }, o("div", { class: "nylas-page-name__section" }, o("div", { class: "nylas-page-name__row" }, o("div", { class: "input-container" }, o("div", { class: { "nylas-page-name__input-wrapper": !0, error: !!this.pageNameErrorMessage } }, e && o("input-component", { name: "page-name", id: "page-name", type: "text", required: !1, exportparts: "ic_input: npn__input-textfield", defaultValue: this.currentPageName ?? "", themeConfig: this.themeConfig })), this.pageNameErrorMessage && o("span", { class: "error-message" }, this.pageNameErrorMessage)))))));
|
|
3923
3926
|
}
|
|
3924
3927
|
static get formAssociated() {
|
|
3925
3928
|
return !0;
|
|
3926
3929
|
}
|
|
3927
3930
|
get host() {
|
|
3928
|
-
return
|
|
3931
|
+
return H(this);
|
|
3929
3932
|
}
|
|
3930
3933
|
static get watchers() {
|
|
3931
3934
|
return {
|
|
@@ -3937,7 +3940,7 @@ const Ga = class {
|
|
|
3937
3940
|
}
|
|
3938
3941
|
};
|
|
3939
3942
|
nl([
|
|
3940
|
-
|
|
3943
|
+
O({
|
|
3941
3944
|
name: "nylas-page-name",
|
|
3942
3945
|
stateToProps: /* @__PURE__ */ new Map([
|
|
3943
3946
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4129,13 +4132,13 @@ const Za = class {
|
|
|
4129
4132
|
this.isOpen = !this.isOpen;
|
|
4130
4133
|
}
|
|
4131
4134
|
render() {
|
|
4132
|
-
return o(
|
|
4135
|
+
return o(T, { key: "3c2e00bee632c738d4c263bcbf25f381727f0dfc" }, o("div", { key: "9c292eeee8ae4af99b168e1792587e3467486001", part: "nps", class: { "nylas-page-styling": !0, "no-border": !this.customInputsSlot } }, this.customInputsSlot ? o("div", { class: "header", part: "nps__header" }, o("div", null, o("h3", null, c.t("nylasPageStyling.headerTitle"))), o("div", { class: "drawer-toggle", part: "nps__drawer-toggle--container" }, o("span", { class: `chevron ${this.isOpen ? "open" : "closed"} `, onClick: () => this.toggleConfirmationEmail() }, o("chevron-icon", { width: "24", height: "24" })))) : null, o("div", { key: "5d2805b3b22b2d4871096dfe020cae65f595f949", class: "hidden" }, o("input-color-picker", { key: "c211d800019ccd55a94f78f8b72e9df261eeee7a", name: "color-picker" })), o("div", { key: "f6cb080c7c9b021708308f065e472e06ad3cc02d", id: "nylas-page-styling__body", class: "nylas-page-styling__body", part: "nps__body" }, o("div", { key: "7d82342da6ec9952496fb1943f8f56187877abd2", class: { "nylas-page-styling__section": !0, "no-padding": !this.customInputsSlot } }, o("div", { key: "5447dffa204fb3ab94e9a716918add60ff2629dc", class: "nylas-page-styling__row" }, o("div", { key: "84618c43c216832302f3580eeeb5f83a681c21eb", class: { subsection: !0, hide: !this.isOpen } }))))));
|
|
4133
4136
|
}
|
|
4134
4137
|
static get formAssociated() {
|
|
4135
4138
|
return !0;
|
|
4136
4139
|
}
|
|
4137
4140
|
get host() {
|
|
4138
|
-
return
|
|
4141
|
+
return H(this);
|
|
4139
4142
|
}
|
|
4140
4143
|
static get watchers() {
|
|
4141
4144
|
return {
|
|
@@ -4147,7 +4150,7 @@ const Za = class {
|
|
|
4147
4150
|
}
|
|
4148
4151
|
};
|
|
4149
4152
|
il([
|
|
4150
|
-
|
|
4153
|
+
O({
|
|
4151
4154
|
name: "nylas-page-styling",
|
|
4152
4155
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4153
4156
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4282,7 +4285,7 @@ const Ya = class {
|
|
|
4282
4285
|
}), n;
|
|
4283
4286
|
}
|
|
4284
4287
|
render() {
|
|
4285
|
-
return o(
|
|
4288
|
+
return o(T, { key: "a338685bcc24d96929d4b2bab73121954eb1472a" }, o("div", { key: "f128f921db1b77223a97cfb53995a461898f21ba", class: "nylas-participant-booking-calendars", part: "npbc" }, o("div", { key: "da56996d01cb58529b85412bb5b731a815ff7569", class: "header", part: "npbc__header" }, o("h3", { key: "d953a3e589f4e1bec8b30884e499b023abbad1d5" }, c.t("nylasParticipantBookingCalendars.headerTitle")), o("p", { key: "6294c6566d0746f16f79d823068fa31919d43fa0" }, c.t("nylasParticipantBookingCalendars.headerSubTitle"))), o("div", { key: "0d10503e75bc47aa731d5bf5178c2beb26ae6a77", class: "content", part: "npbc__content" }, o("form", { key: "b87025034473d8af88c4b671c40db5fa33c97e6c", ref: (e) => this.bookingCalendarsFormRef = e }, this.participantCalendars && Object.keys(this.participantCalendars).map((e, n) => {
|
|
4286
4289
|
const a = this.selectedCalendars[e], t = this.participantCalendars[e];
|
|
4287
4290
|
if (!(!a || !a.name))
|
|
4288
4291
|
return o("div", { class: "participant-container", part: "npbc__participant-container", key: `participant-conatiner-${n}` }, o("div", { class: "participant-title", part: "npbc__participant-title" }, o("p", null, c.t("nylasParticipantBookingCalendars.participantBookingCalendarTitle", { participantName: a.name })), o("div", { class: "participant-toggle", part: "npbc__participant-toggle-container" }, o("span", { class: `chevron ${a.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
@@ -4294,7 +4297,7 @@ const Ya = class {
|
|
|
4294
4297
|
return !0;
|
|
4295
4298
|
}
|
|
4296
4299
|
get host() {
|
|
4297
|
-
return
|
|
4300
|
+
return H(this);
|
|
4298
4301
|
}
|
|
4299
4302
|
static get watchers() {
|
|
4300
4303
|
return {
|
|
@@ -4309,7 +4312,7 @@ const Ya = class {
|
|
|
4309
4312
|
}
|
|
4310
4313
|
};
|
|
4311
4314
|
rl([
|
|
4312
|
-
|
|
4315
|
+
O({
|
|
4313
4316
|
name: "nylas-participant-booking-calendars",
|
|
4314
4317
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4315
4318
|
["schedulerConfig.additionalParticipants", "participantOptions"],
|
|
@@ -4380,14 +4383,14 @@ const Xa = class {
|
|
|
4380
4383
|
nylasFormSwitchToggledHandler(e) {
|
|
4381
4384
|
var s, f, y, m, p, h, v, _, k, A, N, F;
|
|
4382
4385
|
d("nylas-participants-custom-availability", "nylasFormSwitchToggledHandler", e.detail);
|
|
4383
|
-
const n = (s = this.selectedConfiguration) == null ? void 0 : s.participants.find((W) => W.email === e.detail.name), a = ((f = n == null ? void 0 : n.availability) == null ? void 0 : f.open_hours) || [], t = (a == null ? void 0 : a.length) > 0 ? a : ((p = (m = (y = this.selectedConfiguration) == null ? void 0 : y.availability) == null ? void 0 : m.availability_rules) == null ? void 0 : p.default_open_hours) || [], l = a && a.length > 0 ? n == null ? void 0 : n.timezone : ((A = (k = (_ = (v = (h = this.selectedConfiguration) == null ? void 0 : h.availability) == null ? void 0 : v.availability_rules) == null ? void 0 : _.default_open_hours) == null ? void 0 : k.at(0)) == null ? void 0 : A.timezone) || ((F = (N = this.selectedConfiguration) == null ? void 0 : N.event_booking) == null ? void 0 : F.timezone) || window.Intl.DateTimeFormat().resolvedOptions().timeZone, i = (n == null ? void 0 : n.
|
|
4384
|
-
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].tab = "availability", this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (t == null ? void 0 : t.length) > 0 ? t : pa : [], this.selectedParticipants[e.detail.name].timezone = e.detail.checked ? l : void 0, this.selectedParticipants[e.detail.name].
|
|
4386
|
+
const n = (s = this.selectedConfiguration) == null ? void 0 : s.participants.find((W) => W.email === e.detail.name), a = ((f = n == null ? void 0 : n.availability) == null ? void 0 : f.open_hours) || [], t = (a == null ? void 0 : a.length) > 0 ? a : ((p = (m = (y = this.selectedConfiguration) == null ? void 0 : y.availability) == null ? void 0 : m.availability_rules) == null ? void 0 : p.default_open_hours) || [], l = a && a.length > 0 ? n == null ? void 0 : n.timezone : ((A = (k = (_ = (v = (h = this.selectedConfiguration) == null ? void 0 : h.availability) == null ? void 0 : v.availability_rules) == null ? void 0 : _.default_open_hours) == null ? void 0 : k.at(0)) == null ? void 0 : A.timezone) || ((F = (N = this.selectedConfiguration) == null ? void 0 : N.event_booking) == null ? void 0 : F.timezone) || window.Intl.DateTimeFormat().resolvedOptions().timeZone, i = (n == null ? void 0 : n.specific_time_availability) || [], r = (i == null ? void 0 : i.length) > 0 ? i : [];
|
|
4387
|
+
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, this.selectedParticipants[e.detail.name].tab = "availability", this.selectedParticipants[e.detail.name].setCustom = e.detail.checked, this.selectedParticipants[e.detail.name].openHours = e.detail.checked ? (t == null ? void 0 : t.length) > 0 ? t : pa : [], this.selectedParticipants[e.detail.name].timezone = e.detail.checked ? l : void 0, this.selectedParticipants[e.detail.name].specificTimesAvailability = e.detail.checked ? r : [], this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
4385
4388
|
}
|
|
4386
4389
|
handleValueChanged(e) {
|
|
4387
4390
|
var l, i, r;
|
|
4388
4391
|
d("[nylas-editor-tabs]", "handleValueChanged", e);
|
|
4389
4392
|
const { name: n, value: a } = e.detail;
|
|
4390
|
-
if (!n.startsWith("participant-availability-") && !n.startsWith("participant-specific-
|
|
4393
|
+
if (!n.startsWith("participant-availability-") && !n.startsWith("participant-specific-time-availability-"))
|
|
4391
4394
|
return;
|
|
4392
4395
|
let t;
|
|
4393
4396
|
try {
|
|
@@ -4414,25 +4417,25 @@ const Xa = class {
|
|
|
4414
4417
|
return;
|
|
4415
4418
|
const y = t.openHours || [], m = (y == null ? void 0 : y.length) > 0 ? y : ((r = (i = (l = this.selectedConfiguration) == null ? void 0 : l.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : r.default_open_hours) || [];
|
|
4416
4419
|
this.selectedParticipants[f].openHours = m, this.selectedParticipants[f].tab = "availability";
|
|
4417
|
-
} else if (n.startsWith("participant-specific-
|
|
4420
|
+
} else if (n.startsWith("participant-specific-time-availability")) {
|
|
4418
4421
|
const s = n.split("-");
|
|
4419
4422
|
if (s.length < 6) {
|
|
4420
|
-
console.warn(`Malformed participant specific date name format: ${n}. Expected format: "participant-specific-
|
|
4423
|
+
console.warn(`Malformed participant specific date name format: ${n}. Expected format: "participant-specific-time-availability-{index}-{uniqueKey}"`);
|
|
4421
4424
|
return;
|
|
4422
4425
|
}
|
|
4423
4426
|
const f = s[5];
|
|
4424
4427
|
if (!this.selectedParticipants[f])
|
|
4425
4428
|
return;
|
|
4426
4429
|
const y = t || [];
|
|
4427
|
-
this.selectedParticipants[f].
|
|
4430
|
+
this.selectedParticipants[f].specificTimesAvailability = y, this.selectedParticipants[f].tab = "specific-time-availability";
|
|
4428
4431
|
}
|
|
4429
4432
|
this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
4430
4433
|
}
|
|
4431
4434
|
updateFormValue() {
|
|
4432
4435
|
const e = {}, n = {};
|
|
4433
4436
|
Object.keys(this.selectedParticipants).forEach((a) => {
|
|
4434
|
-
e[a] = this.selectedParticipants[a].openHours, n[a] = this.selectedParticipants[a].
|
|
4435
|
-
}), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(e), this.name), this.valueChanged.emit({ value: JSON.stringify(e), name: this.name }), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(n), `${this.name}-specific-
|
|
4437
|
+
e[a] = this.selectedParticipants[a].openHours, n[a] = this.selectedParticipants[a].specificTimesAvailability || [];
|
|
4438
|
+
}), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(e), this.name), this.valueChanged.emit({ value: JSON.stringify(e), name: this.name }), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(n), `${this.name}-specific-time`), this.valueChanged.emit({ value: JSON.stringify(n), name: `${this.name}-specific-time` });
|
|
4436
4439
|
}
|
|
4437
4440
|
setParticipants(e) {
|
|
4438
4441
|
const n = {};
|
|
@@ -4445,7 +4448,7 @@ const Xa = class {
|
|
|
4445
4448
|
name: a.name || a.email,
|
|
4446
4449
|
availability: a.availability,
|
|
4447
4450
|
timezone: a.timezone,
|
|
4448
|
-
|
|
4451
|
+
specificTimesAvailability: a.specific_time_availability || []
|
|
4449
4452
|
};
|
|
4450
4453
|
}), n;
|
|
4451
4454
|
}
|
|
@@ -4453,7 +4456,7 @@ const Xa = class {
|
|
|
4453
4456
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function" && typeof this.internals.setValidity == "function";
|
|
4454
4457
|
}
|
|
4455
4458
|
render() {
|
|
4456
|
-
return o(
|
|
4459
|
+
return o(T, { key: "72278a40aca8e3e3868b2c04abf9ec7ecb5cac10" }, o("div", { key: "82a8ddedcd2a16598f5a3cf8b8ac50e082a8303b", class: "nylas-participants-custom-availability", part: "npca" }, o("div", { key: "e2881fe998d498b865420faf97f0355fd571b702", class: "header", part: "npca__header" }, o("h3", { key: "3ca8980d00abe8001eb4ff0168c8ce249977c8da" }, c.t("nylasParticipantCustomAvailability.headerTitle")), o("p", { key: "5fed5465662b20ce3339f95c1fda1ce6c8b72a32" }, c.t("nylasParticipantCustomAvailability.headerSubTitle"))), o("div", { key: "1a3bd4ebcfc8e420674dcbbe39e7c77900bceb8e", class: "content", part: "npca__content" }, o("form", { key: "7dc0f391a4c56336bea907f2c2e78b6c17d06f0f", ref: (e) => this.participantFormRef = e }, Object.keys(this.selectedParticipants).map((e, n) => {
|
|
4457
4460
|
var l;
|
|
4458
4461
|
const a = this.selectedParticipants[e], t = ((l = a.availability) == null ? void 0 : l.open_hours) || [];
|
|
4459
4462
|
if (!(!a || !a.name || !a.availability))
|
|
@@ -4461,16 +4464,16 @@ const Xa = class {
|
|
|
4461
4464
|
a.setCustom && (this.selectedParticipants[e].isOpen = !a.isOpen, this.selectedParticipants[e].tab = "availability", this.selectedParticipants = { ...this.selectedParticipants });
|
|
4462
4465
|
} }, o("chevron-icon", { width: "24", height: "24" })))), a.isOpen && o("div", { class: "participant-tabs", part: "npca__participant-tabs" }, o("div", { class: `participant-tab ${a.tab === "availability" ? "active" : ""}`, part: "npca__participant-tab", onClick: () => {
|
|
4463
4466
|
this.selectedParticipants[e].tab = "availability", this.selectedParticipants = { ...this.selectedParticipants };
|
|
4464
|
-
} }, o("span", null, c.t("nylasParticipantCustomAvailability.participantAvailabilityTab"))), o("div", { class: `participant-tab ${a.tab === "specific-
|
|
4465
|
-
this.selectedParticipants[e].tab = "specific-
|
|
4466
|
-
} }, o("span", null, c.t("nylasParticipantCustomAvailability.
|
|
4467
|
+
} }, o("span", null, c.t("nylasParticipantCustomAvailability.participantAvailabilityTab"))), o("div", { class: `participant-tab ${a.tab === "specific-time-availability" ? "active" : ""}`, part: "npca__participant-tab", onClick: () => {
|
|
4468
|
+
this.selectedParticipants[e].tab = "specific-time-availability", this.selectedParticipants = { ...this.selectedParticipants };
|
|
4469
|
+
} }, o("span", null, c.t("nylasParticipantCustomAvailability.participantSpecificTimeAvailabilityTab")))), a.tab === "availability" && a.isOpen && o("nylas-availability-picker", { key: n, name: `participant-availability-${n}-${e}`, openHours: t, defaultTimezone: a.timezone, hideHeader: !0 }), a.tab === "specific-time-availability" && a.isOpen && o("nylas-specific-time-availability-picker", { key: n, name: `participant-specific-time-availability-${n}-${e}`, specificTimesAvailability: a.specificTimesAvailability }));
|
|
4467
4470
|
})))));
|
|
4468
4471
|
}
|
|
4469
4472
|
static get formAssociated() {
|
|
4470
4473
|
return !0;
|
|
4471
4474
|
}
|
|
4472
4475
|
get host() {
|
|
4473
|
-
return
|
|
4476
|
+
return H(this);
|
|
4474
4477
|
}
|
|
4475
4478
|
static get watchers() {
|
|
4476
4479
|
return {
|
|
@@ -4483,7 +4486,7 @@ const Xa = class {
|
|
|
4483
4486
|
}
|
|
4484
4487
|
};
|
|
4485
4488
|
dl([
|
|
4486
|
-
|
|
4489
|
+
O({
|
|
4487
4490
|
name: "nylas-participants-custom-availability",
|
|
4488
4491
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4489
4492
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4653,7 +4656,7 @@ const Ka = class {
|
|
|
4653
4656
|
value: "host"
|
|
4654
4657
|
}
|
|
4655
4658
|
];
|
|
4656
|
-
return ((t = this.selectedConfiguration) == null ? void 0 : t.type) === "group" && (n = n.filter((l) => l.value !== "all")), o(
|
|
4659
|
+
return ((t = this.selectedConfiguration) == null ? void 0 : t.type) === "group" && (n = n.filter((l) => l.value !== "all")), o(T, { key: "dc13b0b11d7de76285dc5fa2f588bfb668da03ba" }, o("div", { key: "bd317acf4f46309bbeb1a4129a3677256291b3ec", class: "cards-container" }, this.reminders.map((l, i) => {
|
|
4657
4660
|
var r, s, f, y;
|
|
4658
4661
|
return l.type !== "webhook" ? o("div", { class: "nylas-reminder-email", part: "nre" }, o("div", { class: "header", part: "nre__header" }, o("div", null, o("h3", null, e ? c.t("nylasReminderEmails.headerTitle_withOrganizer", { organizerName: ` ${e}` }) : c.t("nylasReminderEmails.headerTitle")), o("p", null, c.t("nylasReminderEmails.headerSubTitle"))), l.editing ? o("div", { class: "reminder-open-close-toggle" }, o("button-component", { variant: "basic", class: "delete-btn", tooltip: "Delete reminder", key: `delete -${i} `, clickHandler: (m) => {
|
|
4659
4662
|
m.preventDefault(), this.deleteReminder(i);
|
|
@@ -4673,7 +4676,7 @@ const Ka = class {
|
|
|
4673
4676
|
return !0;
|
|
4674
4677
|
}
|
|
4675
4678
|
get host() {
|
|
4676
|
-
return
|
|
4679
|
+
return H(this);
|
|
4677
4680
|
}
|
|
4678
4681
|
static get watchers() {
|
|
4679
4682
|
return {
|
|
@@ -4685,7 +4688,7 @@ const Ka = class {
|
|
|
4685
4688
|
}
|
|
4686
4689
|
};
|
|
4687
4690
|
pl([
|
|
4688
|
-
|
|
4691
|
+
O({
|
|
4689
4692
|
name: "nylas-reminder-emails",
|
|
4690
4693
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4691
4694
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4783,13 +4786,13 @@ const Qa = class {
|
|
|
4783
4786
|
{ label: c.t("nylasSchedulingMethod.schedulingMethodOptions", { context: "maxFairness" }), value: "max-fairness" },
|
|
4784
4787
|
{ label: c.t("nylasSchedulingMethod.schedulingMethodOptions", { context: "maxAvailability" }), value: "max-availability" }
|
|
4785
4788
|
], n = (r = (i = (l = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : l.availability_rules) == null ? void 0 : i.availability_method) == null ? void 0 : r.toString(), a = this.participantOptions && ((s = this.participantOptions) == null ? void 0 : s.length) > 0 && !!this.participantOptions[0].email && !!this.participantOptions[0].name && !!this.participantOptions[0].calendars && this.participantOptions[0].calendars.length > 0;
|
|
4786
|
-
return (n || !a) && !this.readOnly ? null : o(
|
|
4789
|
+
return (n || !a) && !this.readOnly ? null : o(T, null, o("div", { class: "nylas-scheduling-method", part: "nsm" }, o("div", { class: "header", part: "nsm__header" }, o("h3", null, c.t("nylasSchedulingMethod.headerTitle"))), o("div", { class: "nylas-scheduling-method__dropdown" }, this.showSubTitle && o("span", { class: "nylas-scheduling-method__dropdown-label" }, c.t("nylasSchedulingMethod.headerSubTitle"), o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, o("strong", null, c.t("nylasSchedulingMethod.tooltip.standard.label")), o("br", null), "- ", c.t("nylasSchedulingMethod.tooltip.standard.desc"), o("br", null), o("br", null), o("strong", null, c.t("nylasSchedulingMethod.tooltip.maxFairness.label")), o("br", null), "- ", c.t("nylasSchedulingMethod.tooltip.maxFairness.desc"), o("br", null), o("br", null), o("strong", null, c.t("nylasSchedulingMethod.tooltip.maxAvailability.label")), o("br", null), "- ", c.t("nylasSchedulingMethod.tooltip.maxAvailability.desc"), o("br", null)))), this.readOnly ? o("input-component", { name: "availability-method-read-only", type: "text", exportparts: "ic__label: nsm__input-label, ic__input: nsm__input, ic__input_wrapper: nsm__input_wrapper", readOnly: !0, defaultValue: ((f = e.find((y) => y.value == n)) == null ? void 0 : f.label) ?? e[0].label, themeConfig: this.themeConfig }) : o("select-dropdown", { name: this.name, options: e, withSearch: !1, exportparts: "sd_dropdown: nsm__dropdown, sd_dropdown-button: nsm__dropdown-button, sd_dropdown-content: nsm__dropdown-content", defaultSelectedOption: e.find((y) => y.value == n) ?? e[0], themeConfig: this.themeConfig }))));
|
|
4787
4790
|
}
|
|
4788
4791
|
static get formAssociated() {
|
|
4789
4792
|
return !0;
|
|
4790
4793
|
}
|
|
4791
4794
|
get host() {
|
|
4792
|
-
return
|
|
4795
|
+
return H(this);
|
|
4793
4796
|
}
|
|
4794
4797
|
static get watchers() {
|
|
4795
4798
|
return {
|
|
@@ -4801,7 +4804,7 @@ const Qa = class {
|
|
|
4801
4804
|
}
|
|
4802
4805
|
};
|
|
4803
4806
|
hl([
|
|
4804
|
-
|
|
4807
|
+
O({
|
|
4805
4808
|
name: "nylas-scheduling-method",
|
|
4806
4809
|
stateToProps: /* @__PURE__ */ new Map([
|
|
4807
4810
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -4822,7 +4825,7 @@ hl([
|
|
|
4822
4825
|
An("design:returntype", void 0)
|
|
4823
4826
|
], Qa.prototype, "render", null);
|
|
4824
4827
|
Qa.style = ul;
|
|
4825
|
-
const gl = ':host{display:block;width:100%}.nylas-specific-
|
|
4828
|
+
const gl = ':host{display:block;width:100%}.nylas-specific-time-availability-picker{display:flex;flex-direction:column;gap:1rem;border-top:1px solid var(--nylas-base-200)}.nylas-specific-time-availability-picker .content{display:flex;flex-direction:column;gap:1.5rem;padding:16px}.nylas-specific-time-availability-picker .header{display:flex;flex-direction:column;gap:0.5rem}.nylas-specific-time-availability-picker .header .header-description{margin:0;font-size:0.875rem;color:var(--nylas-base-600);line-height:1.5}.nylas-specific-time-availability-picker .specific-times{display:flex;flex-direction:column;gap:1rem}.nylas-specific-time-availability-picker .empty-state{display:flex;flex-direction:column;align-items:center;padding:2rem 1rem;text-align:center}.nylas-specific-time-availability-picker .empty-state .empty-icon{margin-bottom:1.5rem;opacity:0.4;color:var(--nylas-base-400)}.nylas-specific-time-availability-picker .empty-state .empty-title{margin:0 0 0.5rem 0;font-size:1.125rem;font-weight:600;color:var(--nylas-base-700);line-height:1.5}.nylas-specific-time-availability-picker .empty-state .empty-subtitle{margin:0;font-size:0.875rem;color:var(--nylas-base-500);line-height:1.5;max-width:300px}.nylas-specific-time-availability-picker .specific-time-entry{display:flex;flex-direction:column;gap:0;padding:12px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius);background:var(--nylas-base-0)}.nylas-specific-time-availability-picker .specific-time-entry .entry-content{display:grid;grid-template-columns:160px auto 30px 30px;gap:12px}@media (max-width: 768px){.nylas-specific-time-availability-picker .specific-time-entry .entry-content{grid-template-areas:"date calendar_toggle remove" "time_or_unavailable time_or_unavailable time_or_unavailable";grid-template-columns:1fr auto auto;grid-template-rows:1fr 1fr}}.nylas-specific-time-availability-picker .specific-time-entry .date-input-container{flex:0 0 auto;width:160px}@media (max-width: 768px){.nylas-specific-time-availability-picker .specific-time-entry .date-input-container{grid-area:date}}.nylas-specific-time-availability-picker .specific-time-entry .date-input-container .date-input{width:100%}.nylas-specific-time-availability-picker .specific-time-entry .date-input-container nylas-date-component::part(ic__date){border:1px solid var(--nylas-base-200);height:50px;display:flex;align-items:center}.nylas-specific-time-availability-picker .specific-time-entry .time-pickers{display:grid;grid-template-columns:auto 10px 1fr;width:342px;gap:14px;flex:1;min-width:0}@media (max-width: 768px){.nylas-specific-time-availability-picker .specific-time-entry .time-pickers{flex:1;width:auto;grid-area:time_or_unavailable}}.nylas-specific-time-availability-picker .specific-time-entry .time-pickers .time-separator{font-size:0.875rem;color:var(--nylas-base-600);font-weight:500;flex-shrink:0;line-height:1;padding:0 0px 0px 6px;margin-top:18px}.nylas-specific-time-availability-picker .specific-time-entry .unavailable-text{flex:1;display:flex;align-items:center;padding:0 15px;border-radius:var(--nylas-border-radius);background:var(--nylas-base-50);min-height:50px}@media (max-width: 768px){.nylas-specific-time-availability-picker .specific-time-entry .unavailable-text{grid-area:time_or_unavailable}}.nylas-specific-time-availability-picker .specific-time-entry .unavailable-text .unavailable-label{font-size:0.875rem;color:var(--nylas-base-500);font-style:italic}.nylas-specific-time-availability-picker .specific-time-entry .toggle-button{display:flex;align-items:center;justify-content:center;width:40px;height:48px;padding-left:8px;border:none;border-radius:4px;background:transparent;color:var(--nylas-base-400);cursor:pointer;transition:all 0.2s ease;flex-shrink:0}@media (max-width: 768px){.nylas-specific-time-availability-picker .specific-time-entry .toggle-button{grid-area:calendar_toggle}}.nylas-specific-time-availability-picker .specific-time-entry .toggle-button:hover{color:var(--nylas-primary)}.nylas-specific-time-availability-picker .specific-time-entry .toggle-button:focus{outline:none}.nylas-specific-time-availability-picker .specific-time-entry .toggle-button.unavailable{color:var(--nylas-error)}.nylas-specific-time-availability-picker .specific-time-entry .toggle-button.unavailable:hover{color:var(--nylas-error)}.nylas-specific-time-availability-picker .specific-time-entry .remove-button{display:flex;align-items:center;justify-content:center;width:40px;height:48px;padding:0;border:none;border-radius:4px;background:transparent;color:var(--nylas-base-400);cursor:pointer;transition:all 0.2s ease;flex-shrink:0}@media (max-width: 768px){.nylas-specific-time-availability-picker .specific-time-entry .remove-button{grid-area:remove}}.nylas-specific-time-availability-picker .specific-time-entry .remove-button:hover{color:var(--nylas-error)}.nylas-specific-time-availability-picker .specific-time-entry .remove-button:focus{outline:none;background:var(--nylas-base-100);box-shadow:0 0 0 2px var(--nylas-primary)}.nylas-specific-time-availability-picker .specific-time-entry .remove-button:active{background:var(--nylas-base-200)}.nylas-specific-time-availability-picker .specific-time-entry .error-message{width:-webkit-fill-available;padding:4px 8px;background:var(--nylas-error-50);color:var(--nylas-error);font-size:12px;border-radius:4px;border:1px solid var(--nylas-error-200);margin-top:8px}.nylas-specific-time-availability-picker .add-button-container{display:flex;justify-content:flex-start}.nylas-specific-time-availability-picker .add-button-container button-component{width:100%}::part(nstap__add-button){border:1px dashed var(--nylas-base-200);background:var(--nylas-base-0);color:var(--nylas-base-700)}::part(nstap__add-button):hover{border-color:var(--nylas-primary);background:var(--nylas-base-50);color:var(--nylas-primary)}::part(nstap__time-picker-container){flex:1;min-width:0}::part(nstap__time-picker-input){width:100%;font-size:0.875rem;min-height:50px;display:flex;align-items:center}::part(nstap__date-input){width:100%}::part(nstap__date-field){width:100%;font-size:0.875rem;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:0.5rem 0.75rem}::part(nstap__date-field):focus{border-color:var(--nylas-primary);box-shadow:0 0 0 3px rgba(59, 130, 246, 0.1)}::part(nstap__date-wrapper){margin:0}::part(nstap__date-label){margin:0;padding:0}::part(nstap__date-label) p{display:none}', bl = gl;
|
|
4826
4829
|
var vl = function(e, n, a, t) {
|
|
4827
4830
|
var l = arguments.length, i = l < 3 ? n : t === null ? t = Object.getOwnPropertyDescriptor(n, a) : t, r;
|
|
4828
4831
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -4837,28 +4840,28 @@ var vl = function(e, n, a, t) {
|
|
|
4837
4840
|
};
|
|
4838
4841
|
const Va = class {
|
|
4839
4842
|
constructor(e) {
|
|
4840
|
-
w(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "specific-
|
|
4843
|
+
w(this, e), this.valueChanged = S(this, "valueChanged", 7), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.name = "specific-time-availability", this.selectedConfiguration = void 0, this.selectedLanguage = void 0, this.specificTimesAvailability = void 0, this.themeConfig = void 0, this.specificDateEntries = [], this.validationErrors = {};
|
|
4841
4844
|
}
|
|
4842
4845
|
connectedCallback() {
|
|
4843
|
-
d("nylas-specific-
|
|
4846
|
+
d("nylas-specific-time-availability-picker", "connectedCallback");
|
|
4844
4847
|
}
|
|
4845
4848
|
disconnectedCallback() {
|
|
4846
|
-
d("nylas-specific-
|
|
4849
|
+
d("nylas-specific-time-availability-picker", "disconnectedCallback");
|
|
4847
4850
|
}
|
|
4848
4851
|
componentWillLoad() {
|
|
4849
|
-
d("nylas-specific-
|
|
4852
|
+
d("nylas-specific-time-availability-picker", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
4850
4853
|
}
|
|
4851
4854
|
componentDidLoad() {
|
|
4852
|
-
d("nylas-specific-
|
|
4855
|
+
d("nylas-specific-time-availability-picker", "componentDidLoad"), this.selectedConfiguration ? this.configChangedHandler(this.selectedConfiguration) : this.specificTimesAvailability && this.specificTimesAvailability.length > 0 && this.loadSpecificTimeAvailability(), this.applyThemeConfig(this.themeConfig);
|
|
4853
4856
|
}
|
|
4854
4857
|
get isInternalsAvailable() {
|
|
4855
4858
|
return typeof this.internals.setFormValue == "function";
|
|
4856
4859
|
}
|
|
4857
4860
|
elementNameChangedHandler(e) {
|
|
4858
|
-
d("nylas-specific-
|
|
4861
|
+
d("nylas-specific-time-availability-picker", "elementNameChangedHandler", e), this.host.setAttribute("name", e);
|
|
4859
4862
|
}
|
|
4860
4863
|
configChangedHandler(e) {
|
|
4861
|
-
d("nylas-specific-
|
|
4864
|
+
d("nylas-specific-time-availability-picker", "configChangedHandler", e), this.loadSpecificTimeAvailability();
|
|
4862
4865
|
}
|
|
4863
4866
|
selectedLanguageChangedHandler(e, n) {
|
|
4864
4867
|
e !== n && c.changeLanguage(e);
|
|
@@ -4871,13 +4874,13 @@ const Va = class {
|
|
|
4871
4874
|
for (const [n, a] of Object.entries(e))
|
|
4872
4875
|
this.host.style.setProperty(`${n}`, a);
|
|
4873
4876
|
}
|
|
4874
|
-
|
|
4875
|
-
if (!this.
|
|
4877
|
+
loadSpecificTimeAvailability() {
|
|
4878
|
+
if (!this.specificTimesAvailability || this.specificTimesAvailability.length === 0)
|
|
4876
4879
|
return;
|
|
4877
|
-
const e = this.
|
|
4880
|
+
const e = this.specificTimesAvailability.map((n, a) => {
|
|
4878
4881
|
const t = n.start === "00:00" && n.end === "00:00";
|
|
4879
4882
|
return {
|
|
4880
|
-
id: `specific-
|
|
4883
|
+
id: `specific-time-${a}`,
|
|
4881
4884
|
date: n.date,
|
|
4882
4885
|
startTime: t ? "09:00am" : Q(n.start),
|
|
4883
4886
|
endTime: t ? "05:00pm" : Q(n.end),
|
|
@@ -4886,11 +4889,11 @@ const Va = class {
|
|
|
4886
4889
|
});
|
|
4887
4890
|
this.specificDateEntries = e, this.emitValueChanged();
|
|
4888
4891
|
}
|
|
4889
|
-
|
|
4892
|
+
addSpecificTimeAvailability() {
|
|
4890
4893
|
const e = /* @__PURE__ */ new Date(), n = new Date(e);
|
|
4891
4894
|
n.setDate(e.getDate() + this.specificDateEntries.length);
|
|
4892
4895
|
const a = n.toISOString().split("T")[0], t = {
|
|
4893
|
-
id: `specific-
|
|
4896
|
+
id: `specific-time-${Date.now()}`,
|
|
4894
4897
|
date: a,
|
|
4895
4898
|
startTime: "09:00am",
|
|
4896
4899
|
endTime: "05:00pm",
|
|
@@ -4898,7 +4901,7 @@ const Va = class {
|
|
|
4898
4901
|
};
|
|
4899
4902
|
this.specificDateEntries = [...this.specificDateEntries, t], this.isInternalsAvailable && this.internals.setValidity({ customError: !1 }), this.emitValueChanged();
|
|
4900
4903
|
}
|
|
4901
|
-
|
|
4904
|
+
removeSpecificTimeAvailability(e) {
|
|
4902
4905
|
if (this.specificDateEntries = this.specificDateEntries.filter((n) => n.id !== e), this.validationErrors[e]) {
|
|
4903
4906
|
const n = { ...this.validationErrors };
|
|
4904
4907
|
delete n[e], this.validationErrors = n;
|
|
@@ -4914,16 +4917,16 @@ const Va = class {
|
|
|
4914
4917
|
}
|
|
4915
4918
|
validateEntry(e) {
|
|
4916
4919
|
if (!e.date)
|
|
4917
|
-
return c.t("
|
|
4920
|
+
return c.t("nylasSpecificTimeAvailabilityPicker.errors.dateRequired");
|
|
4918
4921
|
const n = new Date(e.date);
|
|
4919
4922
|
if (isNaN(n.getTime()))
|
|
4920
|
-
return c.t("
|
|
4923
|
+
return c.t("nylasSpecificTimeAvailabilityPicker.errors.invalidDateFormat");
|
|
4921
4924
|
if (e.isUnavailable)
|
|
4922
4925
|
return null;
|
|
4923
4926
|
if (!e.startTime || !e.endTime)
|
|
4924
|
-
return c.t("
|
|
4927
|
+
return c.t("nylasSpecificTimeAvailabilityPicker.errors.timesRequired");
|
|
4925
4928
|
const a = re(e.startTime), t = re(e.endTime);
|
|
4926
|
-
return a >= t ? c.t("
|
|
4929
|
+
return a >= t ? c.t("nylasSpecificTimeAvailabilityPicker.errors.startTimeBeforeEndTime") : null;
|
|
4927
4930
|
}
|
|
4928
4931
|
validateAllEntries() {
|
|
4929
4932
|
var a;
|
|
@@ -4967,7 +4970,7 @@ const Va = class {
|
|
|
4967
4970
|
}
|
|
4968
4971
|
handleFormInputChange(e) {
|
|
4969
4972
|
const { name: n, value: a } = e.detail;
|
|
4970
|
-
if (n.startsWith("date-") && n.includes("specific-
|
|
4973
|
+
if (n.startsWith("date-") && n.includes("specific-time-")) {
|
|
4971
4974
|
const t = n.replace("date-", "");
|
|
4972
4975
|
if (this.specificDateEntries = this.specificDateEntries.map((l) => l.id === t ? { ...l, date: a } : l), this.validationErrors[t]) {
|
|
4973
4976
|
const l = { ...this.validationErrors };
|
|
@@ -4988,13 +4991,13 @@ const Va = class {
|
|
|
4988
4991
|
});
|
|
4989
4992
|
}
|
|
4990
4993
|
render() {
|
|
4991
|
-
return o(
|
|
4994
|
+
return o(T, { key: "01f075a3cded0b05cce5098dee0fe221bc13ec24" }, o("div", { key: "f008de5cd95468e1cb0b820dabc2d38bca8a6d99", class: "nylas-specific-time-availability-picker", part: "nstap" }, o("div", { key: "c2ec42ad544a1c10b3d5cbfa5adcf04a7e716377", class: "content", part: "nstap__content" }, o("div", { key: "c58f880616610957181857a84ab053fa9f811f5d", class: "header", part: "nstap__header" }, o("p", { key: "671a584b2f92d1ee3d8abf50a80c60052e97510a", class: "header-description", part: "nstap__header-description" }, c.t("nylasSpecificTimeAvailabilityPicker.headerDescription"))), o("div", { key: "9b341aa468e6fdb749cddf7bf8fdc66c110ce25f", class: "specific-times", part: "nstap__specific-times" }, this.specificDateEntries.length === 0 ? o("div", { class: "empty-state", part: "nstap__empty-state" }, o("div", { class: "empty-icon", part: "nstap__empty-icon" }, o("calendar-icon", { width: "32", height: "32" })), o("h3", { class: "empty-title", part: "nstap__empty-title" }, c.t("nylasSpecificTimeAvailabilityPicker.emptyState.title")), o("p", { class: "empty-subtitle", part: "nstap__empty-subtitle" }, c.t("nylasSpecificTimeAvailabilityPicker.emptyState.subtitle"))) : this.specificDateEntries.map((e) => o("div", { class: "specific-time-entry", part: "nstap__specific-time-entry", key: e.id, "data-entry-id": e.id }, o("div", { class: "entry-content", part: "nstap__entry-content" }, o("div", { class: "date-input-container", part: "nstap__date-input-container" }, o("nylas-date-component", { name: `date-${e.id}`, defaultValue: e.date, placeholder: "yyyy-mm-dd", part: "nstap__date-input", class: "date-input", themeConfig: this.themeConfig, exportparts: "ic__date: nstap__date-field, ic__input_wrapper: nstap__date-wrapper, ic__label: nstap__date-label" })), e.isUnavailable ? o("div", { class: "unavailable-text", part: "nstap__unavailable-text" }, o("span", { class: "unavailable-label" }, c.t("nylasSpecificTimeAvailabilityPicker.entireDayUnavailable"))) : o("div", { class: "time-pickers", part: "nstap__time-pickers" }, o("nylas-time-window-picker", { id: `${e.id}_start`, time: e.startTime, name: `${e.id}_start`, key: `${e.id}_start`, language: this.selectedLanguage, hasError: !!this.validationErrors[e.id], themeConfig: this.themeConfig, exportparts: "time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times" }), o("span", { class: "time-separator" }, "-"), o("nylas-time-window-picker", { id: `${e.id}_end`, time: e.endTime, name: `${e.id}_end`, key: `${e.id}_end`, minimumStartTime: e.startTime, language: this.selectedLanguage, hasError: !!this.validationErrors[e.id], themeConfig: this.themeConfig, exportparts: "time-picker: nstap__time-picker-container, time-input: nstap__time-picker-input, times: nstap__time-picker-times" })), o("button", { type: "button", class: { "toggle-button": !0, unavailable: e.isUnavailable }, part: "nstap__toggle-button", onClick: () => this.toggleAvailability(e.id), title: e.isUnavailable ? c.t("nylasSpecificTimeAvailabilityPicker.markAsAvailable") : c.t("nylasSpecificTimeAvailabilityPicker.markAsUnavailable") }, o("calendar-icon", { width: "20", height: "20" })), o("button", { type: "button", class: "remove-button", part: "nstap__remove-button", onClick: () => this.removeSpecificTimeAvailability(e.id), "aria-label": "Remove specific date" }, o("close-icon", { width: "16", height: "16" }))), this.validationErrors[e.id] && o("div", { class: "error-message", part: "nstap__error-message" }, this.validationErrors[e.id])))), o("div", { key: "3a326486bb489af6c036527434c6c6a8a7736cf1", class: "add-button-container", part: "nstap__add-button-container" }, o("button-component", { key: "156a5fff11a4dedc272327cdf2322118e9fef6fc", id: "add-specific-time-open-hour", onClick: () => this.addSpecificTimeAvailability(), part: "nstap__add-button", variant: "basic" }, o("add-circle-icon", { key: "0d12a577afac1d24a4c259997d71e0f182f1e5c8", width: "24", height: "24" }), c.t("nylasSpecificTimeAvailabilityPicker.addSpecificTimeAvailability"))))));
|
|
4992
4995
|
}
|
|
4993
4996
|
static get formAssociated() {
|
|
4994
4997
|
return !0;
|
|
4995
4998
|
}
|
|
4996
4999
|
get host() {
|
|
4997
|
-
return
|
|
5000
|
+
return H(this);
|
|
4998
5001
|
}
|
|
4999
5002
|
static get watchers() {
|
|
5000
5003
|
return {
|
|
@@ -5006,8 +5009,8 @@ const Va = class {
|
|
|
5006
5009
|
}
|
|
5007
5010
|
};
|
|
5008
5011
|
vl([
|
|
5009
|
-
|
|
5010
|
-
name: "nylas-specific-
|
|
5012
|
+
O({
|
|
5013
|
+
name: "nylas-specific-time-availability-picker",
|
|
5011
5014
|
stateToProps: /* @__PURE__ */ new Map([
|
|
5012
5015
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
5013
5016
|
["schedulerConfig.selectedLanguage", "selectedLanguage"],
|
|
@@ -5120,7 +5123,7 @@ const Ue = 15, et = class {
|
|
|
5120
5123
|
{ value: "45", label: `45 ${c.t("nylasTimeslotInterval.minutesShort")}` },
|
|
5121
5124
|
{ value: "60", label: `60 ${c.t("nylasTimeslotInterval.minutesShort")}` }
|
|
5122
5125
|
], n = typeof this.selectedInterval < "u" ? this.selectedInterval == this.internalEventDurationMinutes ? e[0] : e.find((a) => a.value == this.selectedInterval.toString()) ?? e[0] : void 0;
|
|
5123
|
-
return o(
|
|
5126
|
+
return o(T, { key: "c8ff2f32437f4962e365379f003f1efb4732fd0c" }, o("div", { key: "5f214f86f8c6d68883601ce4c14b26ab822a374c", class: "nylas-timeslot-interval", part: "nti" }, o("div", { key: "8e04bb045c59668b0b425c413184d8a5564ce160", class: "header", part: "nti__header" }, o("h3", { key: "6c3d133b2e527e78be205a0fea7ff9a3109ce02a" }, c.t("nylasTimeslotInterval.headerTitle"))), o("div", { key: "84eca62461b990675549656dfab262fc3f9b4246", class: "nylas-timeslot-interval__dropdown" }, o("span", { key: "88b4297d4721e8572ea43885e754b1c31a3c95b6", class: "label", part: "nti__input-label" }, c.t("nylasTimeslotInterval.timeslotInterval.label")), (n == null ? void 0 : n.label) && o("select-dropdown", { name: "interval-minutes", options: e, withSearch: !1, exportparts: "sd_dropdown: nti__dropdown, sd_dropdown-button: nti__dropdown-button, sd_dropdown-content: nti__dropdown-content", defaultSelectedOption: n, themeConfig: this.themeConfig }), o("span", { key: "961a0154154def869ce1bbcf687916d60f913e7c", slot: "label", class: "label", part: "nti__input-label" }, c.t("nylasTimeslotInterval.timeslotRounding.label"), o("tooltip-component", { key: "0ff449df6fbbd6de0c828f5c679613d072c0f929" }, o("info-icon", { key: "4b29ee0378ae51610ba50cdefa58121b97e04638", slot: "tooltip-icon" }), o("span", { key: "f7bdcd58e3c151f940664aa27774b2f690bbee6f", slot: "tooltip-content" }, c.t("nylasTimeslotInterval.timeslotRounding.tooltip.desc")))), this.componentLoaded && o("radio-button-group", { name: "interval-preference", defaultSelectedValue: this.selectedRoundTo ? "rounding" : "no-rounding", options: [
|
|
5124
5127
|
{
|
|
5125
5128
|
value: "no-rounding",
|
|
5126
5129
|
label: c.t("nylasTimeslotInterval.timeslotRoundingOptions.noRounding.label"),
|
|
@@ -5137,7 +5140,7 @@ const Ue = 15, et = class {
|
|
|
5137
5140
|
return !0;
|
|
5138
5141
|
}
|
|
5139
5142
|
get host() {
|
|
5140
|
-
return
|
|
5143
|
+
return H(this);
|
|
5141
5144
|
}
|
|
5142
5145
|
static get watchers() {
|
|
5143
5146
|
return {
|
|
@@ -5149,7 +5152,7 @@ const Ue = 15, et = class {
|
|
|
5149
5152
|
}
|
|
5150
5153
|
};
|
|
5151
5154
|
kl([
|
|
5152
|
-
|
|
5155
|
+
O({
|
|
5153
5156
|
name: "nylas-timeslot-interval",
|
|
5154
5157
|
stateToProps: /* @__PURE__ */ new Map([
|
|
5155
5158
|
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
@@ -5172,7 +5175,7 @@ const wl = ".sc-paintbrush-fill-icon-h{display:flex}", xl = wl, El = class {
|
|
|
5172
5175
|
}
|
|
5173
5176
|
};
|
|
5174
5177
|
El.style = xl;
|
|
5175
|
-
const Sl = ".sc-paintbrush-icon-h{display:flex}",
|
|
5178
|
+
const Sl = ".sc-paintbrush-icon-h{display:flex}", Tl = Sl, Hl = class {
|
|
5176
5179
|
constructor(e) {
|
|
5177
5180
|
w(this, e), this.width = "16", this.height = "13";
|
|
5178
5181
|
}
|
|
@@ -5180,8 +5183,8 @@ const Sl = ".sc-paintbrush-icon-h{display:flex}", Hl = Sl, Ol = class {
|
|
|
5180
5183
|
return o("svg", { key: "23eb7f769f731828e21c4109fb5247452454913f", width: "16", height: "16", viewBox: "-3 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "abc09fde66aea5f6db9f0907ab327a33f0db3c28", d: "M0.5 -0.000976562C0.223858 -0.000976562 0 0.222881 0 0.499023L1.90735e-05 9.00337C1.90735e-05 10.1079 0.89545 11.0034 2.00002 11.0034H3.00411V14.0007C3.00411 15.1053 3.89954 16.0007 5.00411 16.0007C6.10868 16.0007 7.00411 15.1053 7.00411 14.0007V11.0034H8.00002C9.10459 11.0034 10 10.1079 10 9.00337V7.50339L10 7.49897V0.499023C10 0.222881 9.77614 -0.000976562 9.5 -0.000976562H0.5ZM1.00002 8.00342H9.00002V9.00337C9.00002 9.55566 8.5523 10.0034 8.00002 10.0034H6.50411C6.22797 10.0034 6.00411 10.2272 6.00411 10.5034V14.0007C6.00411 14.553 5.5564 15.0007 5.00411 15.0007C4.45183 15.0007 4.00411 14.553 4.00411 14.0007V10.5034C4.00411 10.2272 3.78026 10.0034 3.50411 10.0034H2.00002C1.44773 10.0034 1.00002 9.55566 1.00002 9.00337V8.00342ZM9 7.00339H1V0.999023H5V2.49902C5 2.77517 5.22386 2.99902 5.5 2.99902C5.77614 2.99902 6 2.77517 6 2.49902V0.999023H7V3.50122C7 3.77736 7.22386 4.00122 7.5 4.00122C7.77614 4.00122 8 3.77736 8 3.50122V0.999023H9V7.00339Z", fill: "currentColor" }));
|
|
5181
5184
|
}
|
|
5182
5185
|
};
|
|
5183
|
-
|
|
5184
|
-
const
|
|
5186
|
+
Hl.style = Tl;
|
|
5187
|
+
const Ol = ".sc-people-icon-h{display:flex}", Dl = Ol, $l = class {
|
|
5185
5188
|
constructor(e) {
|
|
5186
5189
|
w(this, e), this.width = "20", this.height = "20";
|
|
5187
5190
|
}
|
|
@@ -5189,7 +5192,7 @@ const Dl = ".sc-people-icon-h{display:flex}", Tl = Dl, $l = class {
|
|
|
5189
5192
|
return o("svg", { key: "c161770203c006b56420f8b779729d7f190563b9", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, o("path", { key: "1eee2b029f0d619c89432831d3392402fc5df7e8", fill: "currentColor", d: "M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" }));
|
|
5190
5193
|
}
|
|
5191
5194
|
};
|
|
5192
|
-
$l.style =
|
|
5195
|
+
$l.style = Dl;
|
|
5193
5196
|
export {
|
|
5194
5197
|
ot as calendar_agenda_fill_icon,
|
|
5195
5198
|
ct as calendar_agenda_icon,
|
|
@@ -5223,9 +5226,9 @@ export {
|
|
|
5223
5226
|
Xa as nylas_participants_custom_availability,
|
|
5224
5227
|
Ka as nylas_reminder_emails,
|
|
5225
5228
|
Qa as nylas_scheduling_method,
|
|
5226
|
-
Va as
|
|
5229
|
+
Va as nylas_specific_time_availability_picker,
|
|
5227
5230
|
et as nylas_timeslot_interval,
|
|
5228
5231
|
El as paintbrush_fill_icon,
|
|
5229
|
-
|
|
5232
|
+
Hl as paintbrush_icon,
|
|
5230
5233
|
$l as people_icon
|
|
5231
5234
|
};
|