@nylas/react 1.1.6 → 1.1.7
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-c9aa21bb.cjs → add-circle-icon_2.entry-5814b516.cjs} +1 -1
- package/dist/{add-circle-icon_2.entry-40ff1ddc.js → add-circle-icon_2.entry-5db67b5b.js} +1 -1
- package/dist/add-circle-icon_2.entry-95b23b9d.js +25 -0
- package/dist/add-circle-icon_2.entry-ae11c837.cjs +1 -0
- package/dist/{archive-icon.entry-f27eb10c.cjs → archive-icon.entry-10ebbf9a.cjs} +1 -1
- package/dist/archive-icon.entry-2ead8ef0.cjs +1 -0
- package/dist/{archive-icon.entry-253f4253.js → archive-icon.entry-769e863b.js} +1 -1
- package/dist/archive-icon.entry-b28d195c.js +15 -0
- package/dist/{arrow-icon.entry-b1ca875a.cjs → arrow-icon.entry-024d613a.cjs} +1 -1
- package/dist/{arrow-icon.entry-ac939154.js → arrow-icon.entry-1ebd553a.js} +1 -1
- package/dist/arrow-icon.entry-8de38831.cjs +1 -0
- package/dist/arrow-icon.entry-e29d7a6c.js +15 -0
- package/dist/{bold-icon.entry-3594774b.js → bold-icon.entry-17c78a12.js} +1 -1
- package/dist/bold-icon.entry-316f5e61.js +15 -0
- package/dist/{bold-icon.entry-e815017f.cjs → bold-icon.entry-8bc27b72.cjs} +1 -1
- package/dist/bold-icon.entry-caf96585.cjs +1 -0
- package/dist/{button-component_2.entry-fdca89a8.js → button-component_2.entry-1095ad9f.js} +1 -1
- package/dist/button-component_2.entry-531a725d.js +26 -0
- package/dist/{button-component_2.entry-a2d998c4.cjs → button-component_2.entry-5cd0adf0.cjs} +1 -1
- package/dist/button-component_2.entry-64a41161.cjs +1 -0
- package/dist/{calendar-agenda-fill-icon_54.entry-40b74a1d.js → calendar-agenda-fill-icon_54.entry-6b2114d5.js} +311 -302
- package/dist/calendar-agenda-fill-icon_54.entry-84e72636.js +5656 -0
- package/dist/{calendar-agenda-fill-icon_54.entry-d47f77af.cjs → calendar-agenda-fill-icon_54.entry-abb96e20.cjs} +4 -4
- package/dist/calendar-agenda-fill-icon_54.entry-f5577fdb.cjs +10 -0
- package/dist/{calendar-cancel-icon.entry-98e56632.cjs → calendar-cancel-icon.entry-4c58ea10.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-90a529f9.js → calendar-cancel-icon.entry-d27593a5.js} +1 -1
- package/dist/calendar-cancel-icon.entry-f11e5aaa.cjs +1 -0
- package/dist/calendar-cancel-icon.entry-f1a6f9bc.js +15 -0
- package/dist/{calendar-check-icon_2.entry-09e247b0.js → calendar-check-icon_2.entry-38e1140b.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-305d0f9f.cjs → calendar-check-icon_2.entry-4a35f416.cjs} +1 -1
- package/dist/calendar-check-icon_2.entry-52187599.cjs +1 -0
- package/dist/calendar-check-icon_2.entry-7f17a3a6.js +25 -0
- package/dist/{calendar-icon.entry-7570a82f.cjs → calendar-icon.entry-002ee369.cjs} +1 -1
- package/dist/calendar-icon.entry-3c5c97d4.cjs +1 -0
- package/dist/{calendar-icon.entry-ff7dfc9b.js → calendar-icon.entry-4543de86.js} +1 -1
- package/dist/calendar-icon.entry-b76e26e6.js +15 -0
- package/dist/{checkbox-component_2.entry-2b5a2721.cjs → checkbox-component_2.entry-ad4ab088.cjs} +1 -1
- package/dist/checkbox-component_2.entry-b24885e9.cjs +1 -0
- package/dist/{checkbox-component_2.entry-2d8bf66e.js → checkbox-component_2.entry-cf15106d.js} +1 -1
- package/dist/checkbox-component_2.entry-e4a3dd2d.js +79 -0
- package/dist/{chevron-icon_3.entry-35130198.cjs → chevron-icon_3.entry-582df6f7.cjs} +1 -1
- package/dist/chevron-icon_3.entry-59d8b408.cjs +1 -0
- package/dist/{chevron-icon_3.entry-e6539933.js → chevron-icon_3.entry-5e60a853.js} +1 -1
- package/dist/chevron-icon_3.entry-cab72db3.js +143 -0
- package/dist/{clock-icon_4.entry-623c482d.cjs → clock-icon_4.entry-8348282a.cjs} +1 -1
- package/dist/{clock-icon_4.entry-797aa1f7.js → clock-icon_4.entry-d03310ae.js} +1 -1
- package/dist/clock-icon_4.entry-f6b9f85d.js +45 -0
- package/dist/clock-icon_4.entry-fcbc39b0.cjs +1 -0
- package/dist/{copy-icon.entry-9b8eb24d.js → copy-icon.entry-3ea78e28.js} +1 -1
- package/dist/copy-icon.entry-430beab4.js +15 -0
- package/dist/{copy-icon.entry-7dd1cd70.cjs → copy-icon.entry-5337f980.cjs} +1 -1
- package/dist/copy-icon.entry-74a59fc5.cjs +1 -0
- package/dist/{delete-icon.entry-3d05884f.js → delete-icon.entry-480ac215.js} +1 -1
- package/dist/{delete-icon.entry-506ee04f.cjs → delete-icon.entry-87b2daaa.cjs} +1 -1
- package/dist/delete-icon.entry-9c1af040.js +15 -0
- package/dist/delete-icon.entry-e320cde1.cjs +1 -0
- package/dist/{document-refresh-icon.entry-09b959f4.js → document-refresh-icon.entry-665a7947.js} +1 -1
- package/dist/{document-refresh-icon.entry-1ff1f7ca.cjs → document-refresh-icon.entry-6be2b468.cjs} +1 -1
- package/dist/document-refresh-icon.entry-930ee2b7.js +15 -0
- package/dist/document-refresh-icon.entry-fcde4ff6.cjs +1 -0
- package/dist/{feedbackSync-b56b29ed-6a2388f3.js → feedbackSync-b56b29ed-36483932.js} +1 -1
- package/dist/{feedbackSync-b56b29ed-cf8c7876.cjs → feedbackSync-b56b29ed-599103b9.cjs} +1 -1
- package/dist/feedbackSync-b56b29ed-7a7c650e.cjs +448 -0
- package/dist/feedbackSync-b56b29ed-9e38fdb6.js +6035 -0
- package/dist/{folder-icon.entry-2788257d.cjs → folder-icon.entry-89f0974f.cjs} +1 -1
- package/dist/folder-icon.entry-977e50eb.cjs +1 -0
- package/dist/{folder-icon.entry-6f9875f7.js → folder-icon.entry-9bf864d7.js} +1 -1
- package/dist/folder-icon.entry-b80d8fd7.js +15 -0
- package/dist/{forward-icon.entry-a0de0be0.js → forward-icon.entry-2b0167a7.js} +1 -1
- package/dist/{forward-icon.entry-49f6a480.cjs → forward-icon.entry-699c55d9.cjs} +1 -1
- package/dist/forward-icon.entry-c4c20f31.cjs +1 -0
- package/dist/forward-icon.entry-eb64aa16.js +15 -0
- package/dist/{globe-icon.entry-04c890dd.cjs → globe-icon.entry-3d08a9c4.cjs} +1 -1
- package/dist/{globe-icon.entry-b7f1e5b8.js → globe-icon.entry-5d962e7a.js} +1 -1
- package/dist/globe-icon.entry-5ef1dc42.cjs +1 -0
- package/dist/globe-icon.entry-667987bd.js +15 -0
- package/dist/{google-logo-icon_4.entry-66d8a50d.cjs → google-logo-icon_4.entry-12f1492f.cjs} +1 -1
- package/dist/google-logo-icon_4.entry-bd4d2237.cjs +1 -0
- package/dist/{google-logo-icon_4.entry-b2463218.js → google-logo-icon_4.entry-ec724f2e.js} +3 -3
- package/dist/google-logo-icon_4.entry-fc38681e.js +729 -0
- package/dist/{inbox-icon.entry-c5cb64d8.js → inbox-icon.entry-2020fa96.js} +1 -1
- package/dist/{inbox-icon.entry-11813535.cjs → inbox-icon.entry-45414f66.cjs} +1 -1
- package/dist/inbox-icon.entry-49353988.js +15 -0
- package/dist/inbox-icon.entry-b556231f.cjs +1 -0
- package/dist/{index-8755dd64.cjs → index-290b2932.cjs} +2 -2
- package/dist/{index-600718a1.js → index-2b208d5d.js} +50 -50
- package/dist/index-bf124f70.cjs +81 -0
- package/dist/index-fb096a02.js +13011 -0
- package/dist/{index.es-c7ca1bad-1c8a9213.cjs → index.es-c7ca1bad-67a99f41.cjs} +1 -1
- package/dist/{index.es-c7ca1bad-73894e2f.js → index.es-c7ca1bad-70899f2a.js} +1 -1
- package/dist/index.es-c7ca1bad-b7a3e6bd.cjs +7 -0
- package/dist/index.es-c7ca1bad-cb3a99a7.js +3129 -0
- package/dist/{info-icon_2.entry-08125285.cjs → info-icon_2.entry-237205a0.cjs} +1 -1
- package/dist/{info-icon_2.entry-e48e3cda.js → info-icon_2.entry-b98a2882.js} +1 -1
- package/dist/info-icon_2.entry-caf64c28.cjs +1 -0
- package/dist/info-icon_2.entry-d935e5c2.js +34 -0
- package/dist/{input-color-picker.entry-54e61165.js → input-color-picker.entry-684413c1.js} +1 -1
- package/dist/input-color-picker.entry-752534de.js +48 -0
- package/dist/{input-color-picker.entry-acfa5da8.cjs → input-color-picker.entry-8fe3482d.cjs} +1 -1
- package/dist/input-color-picker.entry-f856fce3.cjs +1 -0
- package/dist/{input-component.entry-54df3f66.js → input-component.entry-00b97287.js} +1 -1
- package/dist/input-component.entry-4400f98e.js +70 -0
- package/dist/{input-component.entry-e2fbcde0.cjs → input-component.entry-bcd13373.cjs} +1 -1
- package/dist/input-component.entry-d486907a.cjs +1 -0
- package/dist/{input-dropdown.entry-8dec00e3.js → input-dropdown.entry-3c39e23a.js} +1 -1
- package/dist/{input-dropdown.entry-1509d5c4.cjs → input-dropdown.entry-b26475c4.cjs} +1 -1
- package/dist/input-dropdown.entry-bea3c690.js +134 -0
- package/dist/input-dropdown.entry-d3d4e50e.cjs +1 -0
- package/dist/{italic-icon.entry-79eafb05.cjs → italic-icon.entry-14081a02.cjs} +1 -1
- package/dist/{italic-icon.entry-c9028583.js → italic-icon.entry-2199bb17.js} +1 -1
- package/dist/italic-icon.entry-63726952.cjs +1 -0
- package/dist/italic-icon.entry-a3c87e5e.js +15 -0
- package/dist/{multi-select-dropdown.entry-2ed02a88.js → multi-select-dropdown.entry-2141b848.js} +1 -1
- package/dist/{multi-select-dropdown.entry-221212e3.cjs → multi-select-dropdown.entry-7b66d2ae.cjs} +1 -1
- package/dist/multi-select-dropdown.entry-8a2c4b42.cjs +1 -0
- package/dist/multi-select-dropdown.entry-cdd97d65.js +95 -0
- package/dist/{nylas-booked-event-card_12.entry-5125b535.cjs → nylas-booked-event-card_12.entry-20c254bb.cjs} +1 -1
- package/dist/{nylas-booked-event-card_12.entry-fa2b2630.js → nylas-booked-event-card_12.entry-2d88375a.js} +2 -2
- package/dist/nylas-booked-event-card_12.entry-90a0b6c7.cjs +1 -0
- package/dist/nylas-booked-event-card_12.entry-bbd7cfb0.js +1237 -0
- package/dist/{nylas-form-card.entry-2019c383.cjs → nylas-form-card.entry-1e9225b0.cjs} +1 -1
- package/dist/{nylas-form-card.entry-a114052f.js → nylas-form-card.entry-a8a44a3b.js} +2 -2
- package/dist/nylas-form-card.entry-d6287d76.cjs +1 -0
- package/dist/nylas-form-card.entry-fadd7718.js +57 -0
- package/dist/{nylas-if-state.entry-de891ced.js → nylas-if-state.entry-32b11afa.js} +2 -2
- package/dist/{nylas-if-state.entry-480c45d1.cjs → nylas-if-state.entry-473230a6.cjs} +1 -1
- package/dist/nylas-if-state.entry-8be8107e.js +94 -0
- package/dist/nylas-if-state.entry-9c341f13.cjs +1 -0
- package/dist/{nylas-login.entry-c99a7b37.cjs → nylas-login.entry-995b6f99.cjs} +1 -1
- package/dist/nylas-login.entry-b9c2fb27.cjs +1 -0
- package/dist/{nylas-login.entry-9ad74f40.js → nylas-login.entry-d663205c.js} +2 -2
- package/dist/nylas-login.entry-e3a9c5c1.js +73 -0
- package/dist/{nylas-provider.entry-d9c4e3d2.cjs → nylas-provider.entry-050f20bd.cjs} +1 -1
- package/dist/nylas-provider.entry-5b54f2cc.cjs +1 -0
- package/dist/{nylas-provider.entry-faf7ef23.js → nylas-provider.entry-c24474c3.js} +4 -4
- package/dist/nylas-provider.entry-ca3e06ce.js +264 -0
- package/dist/{nylas-scheduler-editor.entry-8c5543bd.cjs → nylas-scheduler-editor.entry-3b834bb1.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-9af09bc2.js → nylas-scheduler-editor.entry-5c0a5fb4.js} +3 -3
- package/dist/nylas-scheduler-editor.entry-b86f49a1.js +1447 -0
- package/dist/nylas-scheduler-editor.entry-d52db29e.cjs +2 -0
- package/dist/{nylas-scheduling.entry-8f5718ac.js → nylas-scheduling.entry-04c3951e.js} +4 -4
- package/dist/nylas-scheduling.entry-a5c4b050.js +412 -0
- package/dist/{nylas-scheduling.entry-e778f5f6.cjs → nylas-scheduling.entry-d549c5c3.cjs} +1 -1
- package/dist/nylas-scheduling.entry-ed12a4f6.cjs +1 -0
- package/dist/{nylas-time-window-picker.entry-0f396304.cjs → nylas-time-window-picker.entry-337d03c1.cjs} +1 -1
- package/dist/nylas-time-window-picker.entry-4aefade8.cjs +1 -0
- package/dist/{nylas-time-window-picker.entry-690e753e.js → nylas-time-window-picker.entry-678a7dbf.js} +1 -1
- package/dist/nylas-time-window-picker.entry-ecc3ee10.js +316 -0
- package/dist/{person-icon.entry-049ebaaa.cjs → person-icon.entry-3fee5bc4.cjs} +1 -1
- package/dist/{person-icon.entry-9c82640f.js → person-icon.entry-902b2c0d.js} +1 -1
- package/dist/person-icon.entry-9680bc2b.js +15 -0
- package/dist/person-icon.entry-dede7140.cjs +1 -0
- package/dist/{play-icon.entry-5e77c87c.js → play-icon.entry-1078da37.js} +1 -1
- package/dist/{play-icon.entry-4b931766.cjs → play-icon.entry-a7f648f7.cjs} +1 -1
- package/dist/play-icon.entry-c8f3a5d8.cjs +1 -0
- package/dist/play-icon.entry-dacc3aa6.js +15 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-1c42e8df.cjs → refresh-icon.entry-06f9d181.cjs} +1 -1
- package/dist/{refresh-icon.entry-f9d37dda.js → refresh-icon.entry-5399f64b.js} +1 -1
- package/dist/refresh-icon.entry-555a38ec.cjs +1 -0
- package/dist/refresh-icon.entry-d4dcfc3a.js +15 -0
- package/dist/{register-component-3444af44-a9df7506.js → register-component-3444af44-3d6e535a.js} +1 -1
- package/dist/register-component-3444af44-4a273c0a.js +109 -0
- package/dist/{register-component-3444af44-38748cf2.cjs → register-component-3444af44-6d269634.cjs} +1 -1
- package/dist/register-component-3444af44-d3e7252a.cjs +1 -0
- package/dist/{reply-all-icon.entry-d090c34a.cjs → reply-all-icon.entry-70ffe5be.cjs} +1 -1
- package/dist/{reply-all-icon.entry-c4c94341.js → reply-all-icon.entry-a3a20f76.js} +1 -1
- package/dist/reply-all-icon.entry-bb2a88ad.js +15 -0
- package/dist/reply-all-icon.entry-f8a32be1.cjs +1 -0
- package/dist/{reply-icon.entry-69438565.js → reply-icon.entry-302ed745.js} +1 -1
- package/dist/reply-icon.entry-423fb307.js +15 -0
- package/dist/{reply-icon.entry-6a5377ae.cjs → reply-icon.entry-a08c0e57.cjs} +1 -1
- package/dist/reply-icon.entry-d2da8972.cjs +1 -0
- package/dist/{scheduler-config-store-ed4a8dfd-82b439de.cjs → scheduler-config-store-ed4a8dfd-34c4c119.cjs} +1 -1
- package/dist/scheduler-config-store-ed4a8dfd-474f6252.cjs +1 -0
- package/dist/{scheduler-config-store-ed4a8dfd-9126610f.js → scheduler-config-store-ed4a8dfd-81687f55.js} +1 -1
- package/dist/scheduler-config-store-ed4a8dfd-fe2b9d18.js +26 -0
- package/dist/{scheduler-store-d4784b24-4558c7eb.js → scheduler-store-2e7db190-c648278f.js} +27 -25
- package/dist/scheduler-store-2e7db190-fb6a20a1.cjs +1 -0
- package/dist/scheduler-store-5fbba021-09da63cf.cjs +1 -0
- package/dist/scheduler-store-5fbba021-6298edf3.js +484 -0
- package/dist/{sent-icon.entry-eae2a5f1.js → sent-icon.entry-4d7b65ba.js} +1 -1
- package/dist/{sent-icon.entry-36964458.cjs → sent-icon.entry-6396b793.cjs} +1 -1
- package/dist/sent-icon.entry-6ed4170a.js +15 -0
- package/dist/sent-icon.entry-db89fd38.cjs +1 -0
- package/dist/{spam-icon.entry-1f47e1cf.js → spam-icon.entry-45e7b83b.js} +1 -1
- package/dist/spam-icon.entry-81073952.js +15 -0
- package/dist/{spam-icon.entry-ec0b7f17.cjs → spam-icon.entry-8648a315.cjs} +1 -1
- package/dist/spam-icon.entry-cf05a2a7.cjs +1 -0
- package/dist/{star-icon.entry-5fb1fdfe.cjs → star-icon.entry-1c416cef.cjs} +1 -1
- package/dist/{star-icon.entry-f2ba5cf7.js → star-icon.entry-61c36332.js} +1 -1
- package/dist/star-icon.entry-8279e6a9.cjs +1 -0
- package/dist/star-icon.entry-bb26cc4e.js +15 -0
- package/dist/{stop-icon.entry-e9c53f8f.js → stop-icon.entry-089ac3ba.js} +1 -1
- package/dist/{stop-icon.entry-c9b1f0a1.cjs → stop-icon.entry-d68aa652.cjs} +1 -1
- package/dist/stop-icon.entry-f62d063b.js +15 -0
- package/dist/stop-icon.entry-f88a5a2a.cjs +1 -0
- package/dist/{textarea-component.entry-f7a089d4.cjs → textarea-component.entry-502c8659.cjs} +1 -1
- package/dist/{textarea-component.entry-43938bc5.js → textarea-component.entry-8f5d835f.js} +1 -1
- package/dist/textarea-component.entry-d4a682fa.js +37 -0
- package/dist/textarea-component.entry-e06ee834.cjs +1 -0
- package/dist/{time-period-selector.entry-9151a673.cjs → time-period-selector.entry-001a1c59.cjs} +1 -1
- package/dist/{time-period-selector.entry-dcef9d6a.js → time-period-selector.entry-7da7d316.js} +1 -1
- package/dist/time-period-selector.entry-837b9be3.js +80 -0
- package/dist/time-period-selector.entry-c5b6d0c9.cjs +1 -0
- package/dist/{translate-icon.entry-d563b357.cjs → translate-icon.entry-4ee80d22.cjs} +1 -1
- package/dist/{translate-icon.entry-5b47ef85.js → translate-icon.entry-5166d376.js} +1 -1
- package/dist/translate-icon.entry-c1a623d8.cjs +1 -0
- package/dist/translate-icon.entry-e5cfae44.js +15 -0
- package/dist/{trash-fill-icon.entry-7d201791.cjs → trash-fill-icon.entry-2f814465.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-e316b456.js → trash-fill-icon.entry-49844a82.js} +1 -1
- package/dist/trash-fill-icon.entry-85e0e841.js +15 -0
- package/dist/trash-fill-icon.entry-def90241.cjs +1 -0
- package/dist/{underline-icon.entry-03cae3b3.js → underline-icon.entry-181f1d7e.js} +1 -1
- package/dist/{underline-icon.entry-a6751a31.cjs → underline-icon.entry-4ba93e7b.cjs} +1 -1
- package/dist/underline-icon.entry-72dadbdf.cjs +1 -0
- package/dist/underline-icon.entry-f7a75755.js +15 -0
- package/dist/{warning-icon.entry-b3c9b687.js → warning-icon.entry-2406b765.js} +1 -1
- package/dist/{warning-icon.entry-f4936405.cjs → warning-icon.entry-44ac5566.cjs} +1 -1
- package/dist/warning-icon.entry-5b6aeb2b.cjs +1 -0
- package/dist/warning-icon.entry-ef601856.js +15 -0
- package/package.json +2 -2
- package/dist/scheduler-store-d4784b24-32e6da1e.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as v, h as o, c as S, d, D as $a, H as O, g as D, E as we, G as fe, I as _n, J as Cn, t as Ne, K as
|
|
2
|
-
import { R as H } from "./register-component-3444af44-
|
|
3
|
-
import { D as
|
|
1
|
+
import { r as v, h as o, c as S, d, D as $a, H as O, g as D, E as we, G as fe, I as _n, J as Cn, t as Ne, K as hn, L as Na, i as xe, M as ke, O as Aa } from "./index-fb096a02.js";
|
|
2
|
+
import { R as H } from "./register-component-3444af44-4a273c0a.js";
|
|
3
|
+
import { D as Rn, T as wn, F as xn, c as Pa, P as gt, C as Ma, E as kn, R as En, d as Ra, e as Fa } from "./constants-c549b12b-7ea4c7f5.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
const
|
|
6
|
+
const La = ".sc-calendar-agenda-fill-icon-h{display:flex}", za = La, ja = class {
|
|
7
7
|
constructor(e) {
|
|
8
8
|
v(this, e), this.width = "20", this.height = "20";
|
|
9
9
|
}
|
|
@@ -84,7 +84,7 @@ const di = ".sc-eye-icon-h{display:flex}", ci = di, pi = class {
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
pi.style = ci;
|
|
87
|
-
const fi = ".sc-feedback-icon-h{display:flex}", mi = fi,
|
|
87
|
+
const fi = ".sc-feedback-icon-h{display:flex}", mi = fi, hi = class {
|
|
88
88
|
constructor(e) {
|
|
89
89
|
v(this, e), this.width = "11", this.height = "14";
|
|
90
90
|
}
|
|
@@ -92,8 +92,8 @@ const fi = ".sc-feedback-icon-h{display:flex}", mi = fi, ui = class {
|
|
|
92
92
|
return o("svg", { key: "fc5d4aa6d299768c11f13c54218eaf28a45c97df", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, o("path", { key: "457d0f4155d6da655950e8fb1d3c74374b053782", d: "M0.5 8.875C0.5 8.875 1.125 8.25 3 8.25C4.875 8.25 6.125 9.5 8 9.5C9.875 9.5 10.5 8.875 10.5 8.875V1.375C10.5 1.375 9.875 2 8 2C6.125 2 4.875 0.75 3 0.75C1.125 0.75 0.5 1.375 0.5 1.375V8.875ZM0.5 8.875V13.25", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
|
|
96
|
-
const
|
|
95
|
+
hi.style = mi;
|
|
96
|
+
const ui = ".sc-flow-icon-h{display:flex}", yi = ui, bi = class {
|
|
97
97
|
constructor(e) {
|
|
98
98
|
v(this, e), this.width = "16", this.height = "12";
|
|
99
99
|
}
|
|
@@ -124,7 +124,7 @@ var xi = function(e, t, n, a) {
|
|
|
124
124
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
125
125
|
return Reflect.metadata(e, t);
|
|
126
126
|
};
|
|
127
|
-
const
|
|
127
|
+
const Fn = class {
|
|
128
128
|
constructor(e) {
|
|
129
129
|
v(this, e), this.nylasFormInputImageUrlInvalid = S(this, "nylasFormInputImageUrlInvalid", 7), 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.componentType = "image-url", this.imageUrl = "", this.errorMessage = "", this.name = "input-image-url", this.currentImageUrl = this.imageUrl;
|
|
130
130
|
}
|
|
@@ -198,8 +198,8 @@ xi([
|
|
|
198
198
|
vt("design:type", Function),
|
|
199
199
|
vt("design:paramtypes", []),
|
|
200
200
|
vt("design:returntype", void 0)
|
|
201
|
-
],
|
|
202
|
-
|
|
201
|
+
], Fn.prototype, "render", null);
|
|
202
|
+
Fn.style = wi;
|
|
203
203
|
const ki = ".sc-location-icon-h{display:flex}", Ei = ki, Si = class {
|
|
204
204
|
constructor(e) {
|
|
205
205
|
v(this, e), this.width = "16", this.height = "18";
|
|
@@ -227,8 +227,8 @@ const Ti = ".sc-microsoft-teams-icon-h{display:flex}", Ii = Ti, $i = class {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
$i.style = Ii;
|
|
230
|
-
const Ni = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-additional-participants__title{color:var(--nylas-base-nylas-base-900-aaa, #101323);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__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-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__error{color:var(--nylas-error);font-size:14px;font-family:var(--nylas-font-family);font-weight:400;line-height:16px;margin:0;text-align:left}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper.error{border-color:var(--nylas-error)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{border:none}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__input input-component::part(ic__input){background:var(--nylas-base-50)}.nylas-additional-participants__input input-component::part(ic__label){font-size:14px}.nylas-additional-participants__input input-component div.required-input{display:flex;gap:4px}.nylas-additional-participants__input input-component div.required-input label{display:flex;gap:4px;align-items:center}.nylas-additional-participants__input input-component div.required-input label tooltip-component#organizer_participant_tooltip::part(tc__content){left:-84px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}',
|
|
231
|
-
var
|
|
230
|
+
const Ni = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-additional-participants__title{color:var(--nylas-base-nylas-base-900-aaa, #101323);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-additional-participants__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-additional-participants__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-additional-participants__input_group{padding-top:8px;display:flex;flex-direction:column;gap:4px}.nylas-additional-participants__input_group label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:150%}.nylas-additional-participants__error{color:var(--nylas-error);font-size:14px;font-family:var(--nylas-font-family);font-weight:400;line-height:16px;margin:0;text-align:left}.nylas-additional-participants__input_wrapper{display:flex;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-300)}.nylas-additional-participants__input_wrapper.error{border-color:var(--nylas-error)}.nylas-additional-participants__input_wrapper button{padding:12px;border:none;border-left:1px solid var(--nylas-base-300);background:none;cursor:pointer}.nylas-additional-participants__input_wrapper button:hover,.nylas-additional-participants__input_wrapper button:active{color:var(--nylas-primary)}.nylas-additional-participants__input_wrapper_organizer{border:none}.nylas-additional-participants__input{flex:1;display:flex;justify-content:space-between}.nylas-additional-participants__input input{border:none;outline:none;background:none;width:100%}.nylas-additional-participants__input input-dropdown{width:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown){width:100%;height:100%}.nylas-additional-participants__input input-dropdown::part(id_dropdown-input){height:100%;border-radius:var(--nylas-border-radius-2x);border:none;border-top-right-radius:initial;border-bottom-right-radius:initial;padding-left:16px}.nylas-additional-participants__input input-component::part(ic__input){background:var(--nylas-base-50)}.nylas-additional-participants__input input-component::part(ic__label){font-size:14px}.nylas-additional-participants__input input-component div.required-input{display:flex;gap:4px}.nylas-additional-participants__input input-component div.required-input label{display:flex;gap:4px;align-items:center}.nylas-additional-participants__input input-component div.required-input label tooltip-component#organizer_participant_tooltip::part(tc__content){left:-84px}.nylas-additional-participants__add{padding:12px;display:flex;align-items:center;border:none;background:none;cursor:pointer}.nylas-additional-participants__add span{padding:0 8px;font-size:16px;font-style:normal;font-weight:500}.nylas-additional-participants__add:hover,.nylas-additional-participants__add:active{color:var(--nylas-primary)}', Ai = Ni;
|
|
231
|
+
var Pi = function(e, t, n, a) {
|
|
232
232
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
233
233
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
234
234
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -240,7 +240,7 @@ var Mi = function(e, t, n, a) {
|
|
|
240
240
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
241
241
|
return Reflect.metadata(e, t);
|
|
242
242
|
};
|
|
243
|
-
const
|
|
243
|
+
const Ln = class {
|
|
244
244
|
constructor(e) {
|
|
245
245
|
var t, n, a;
|
|
246
246
|
v(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 = "participants", this.selectedConfiguration = void 0, this.currentUser = void 0, this.participantOptions = void 0, this.eventParticipants = void 0, this.participants = this.eventParticipants ?? [], this.participantErrors = {}, this.includeOrganizerAsParticipant = !0, this.isRoundRobinConfig = ((a = (n = (t = this.selectedConfiguration) == null ? void 0 : t.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : a.availability_method) !== "collective", this.error = "";
|
|
@@ -343,7 +343,7 @@ const Fn = class {
|
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
|
-
|
|
346
|
+
Pi([
|
|
347
347
|
H({
|
|
348
348
|
name: "nylas-additional-participants",
|
|
349
349
|
stateToProps: /* @__PURE__ */ new Map([
|
|
@@ -357,10 +357,10 @@ Mi([
|
|
|
357
357
|
_t("design:type", Function),
|
|
358
358
|
_t("design:paramtypes", []),
|
|
359
359
|
_t("design:returntype", void 0)
|
|
360
|
-
],
|
|
361
|
-
|
|
362
|
-
const
|
|
363
|
-
var
|
|
360
|
+
], Ln.prototype, "render", null);
|
|
361
|
+
Ln.style = Ai;
|
|
362
|
+
const Mi = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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)}@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 p.error{color:var(--nylas-error)}.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}', Ri = Mi;
|
|
363
|
+
var Fi = function(e, t, n, a) {
|
|
364
364
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
365
365
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
366
366
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -389,7 +389,7 @@ const zn = class {
|
|
|
389
389
|
}
|
|
390
390
|
configChangedHandler(e) {
|
|
391
391
|
var a, s, i;
|
|
392
|
-
const t = ((s = (a = e == null ? void 0 : e.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : s.default_open_hours) ??
|
|
392
|
+
const t = ((s = (a = e == null ? void 0 : e.availability) == null ? void 0 : a.availability_rules) == null ? void 0 : s.default_open_hours) ?? Rn, n = ((i = e == null ? void 0 : e.event_booking) == null ? void 0 : i.timezone) ?? this.defaultTimezone;
|
|
393
393
|
this.timezone = this.name === "availability" ? n : this.defaultTimezone, this.openHours ? this.openHoursToSchedule(this.openHours) : t && this.openHoursToSchedule(t);
|
|
394
394
|
}
|
|
395
395
|
scheduleChanged(e, t) {
|
|
@@ -590,7 +590,7 @@ const zn = class {
|
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
|
-
|
|
593
|
+
Fi([
|
|
594
594
|
H({
|
|
595
595
|
name: "nylas-availability-picker",
|
|
596
596
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -600,8 +600,8 @@ Li([
|
|
|
600
600
|
Ct("design:paramtypes", []),
|
|
601
601
|
Ct("design:returntype", void 0)
|
|
602
602
|
], zn.prototype, "render", null);
|
|
603
|
-
zn.style =
|
|
604
|
-
const
|
|
603
|
+
zn.style = Ri;
|
|
604
|
+
const Li = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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:1rem;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:black;font-size:1rem;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}', zi = Li;
|
|
605
605
|
var ji = function(e, t, n, a) {
|
|
606
606
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
607
607
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -1066,7 +1066,7 @@ function Q(e, t, n, a) {
|
|
|
1066
1066
|
return null;
|
|
1067
1067
|
}
|
|
1068
1068
|
var Dn = /\s+/g;
|
|
1069
|
-
function
|
|
1069
|
+
function M(e, t, n) {
|
|
1070
1070
|
if (e && t)
|
|
1071
1071
|
if (e.classList)
|
|
1072
1072
|
e.classList[n ? "add" : "remove"](t);
|
|
@@ -1115,8 +1115,8 @@ function N(e, t, n, a, s) {
|
|
|
1115
1115
|
if (e !== window && e.parentNode && e !== se() ? (i = e.getBoundingClientRect(), r = i.top, l = i.left, c = i.bottom, p = i.right, m = i.height, f = i.width) : (r = 0, l = 0, c = window.innerHeight, p = window.innerWidth, m = window.innerHeight, f = window.innerWidth), (t || n) && e !== window && (s = s || e.parentNode, !de))
|
|
1116
1116
|
do
|
|
1117
1117
|
if (s && s.getBoundingClientRect && (b(s, "transform") !== "none" || n && b(s, "position") !== "static")) {
|
|
1118
|
-
var
|
|
1119
|
-
r -=
|
|
1118
|
+
var h = s.getBoundingClientRect();
|
|
1119
|
+
r -= h.top + parseInt(b(s, "border-top-width")), l -= h.left + parseInt(b(s, "border-left-width")), c = r + i.height, p = l + i.width;
|
|
1120
1120
|
break;
|
|
1121
1121
|
}
|
|
1122
1122
|
while (s = s.parentNode);
|
|
@@ -1135,13 +1135,13 @@ function N(e, t, n, a, s) {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
function Hn(e, t, n) {
|
|
1138
|
-
for (var a =
|
|
1138
|
+
for (var a = ue(e, !0), s = N(e)[t]; a; ) {
|
|
1139
1139
|
var i = N(a)[n], r = void 0;
|
|
1140
1140
|
if (n === "top" || n === "left" ? r = s >= i : r = s <= i, !r)
|
|
1141
1141
|
return a;
|
|
1142
1142
|
if (a === se())
|
|
1143
1143
|
break;
|
|
1144
|
-
a =
|
|
1144
|
+
a = ue(a, !1);
|
|
1145
1145
|
}
|
|
1146
1146
|
return !1;
|
|
1147
1147
|
}
|
|
@@ -1156,12 +1156,12 @@ function $e(e, t, n, a) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
return null;
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function un(e, t) {
|
|
1160
1160
|
for (var n = e.lastElementChild; n && (n === _.ghost || b(n, "display") === "none" || t && !ft(n, t)); )
|
|
1161
1161
|
n = n.previousElementSibling;
|
|
1162
1162
|
return n || null;
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function F(e, t) {
|
|
1165
1165
|
var n = 0;
|
|
1166
1166
|
if (!e || !e.parentNode)
|
|
1167
1167
|
return -1;
|
|
@@ -1187,7 +1187,7 @@ function is(e, t) {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
return -1;
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function ue(e, t) {
|
|
1191
1191
|
if (!e || !e.getBoundingClientRect)
|
|
1192
1192
|
return se();
|
|
1193
1193
|
var n = e, a = !1;
|
|
@@ -1290,9 +1290,9 @@ function rs() {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
var i = !1, r = 0;
|
|
1292
1292
|
e.forEach(function(l) {
|
|
1293
|
-
var c = 0, p = l.target, m = p.fromRect, f = N(p),
|
|
1294
|
-
C && (f.top -= C.f, f.left -= C.e), p.toRect = f, p.thisAnimationDuration && Et(
|
|
1295
|
-
(y.top - f.top) / (y.left - f.left) === (m.top - f.top) / (m.left - f.left) && (c = ds(y,
|
|
1293
|
+
var c = 0, p = l.target, m = p.fromRect, f = N(p), h = p.prevFromRect, g = p.prevToRect, y = l.rect, C = Ce(p, !0);
|
|
1294
|
+
C && (f.top -= C.f, f.left -= C.e), p.toRect = f, p.thisAnimationDuration && Et(h, f) && !Et(m, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
1295
|
+
(y.top - f.top) / (y.left - f.left) === (m.top - f.top) / (m.left - f.left) && (c = ds(y, h, g, s.options)), Et(f, m) || (p.prevFromRect = m, p.prevToRect = f, c || (c = s.options.animation), s.animate(p, y, f, c)), c && (i = !0, r = Math.max(r, c), clearTimeout(p.animationResetTimer), p.animationResetTimer = setTimeout(function() {
|
|
1296
1296
|
p.animationTime = 0, p.prevFromRect = null, p.fromRect = null, p.prevToRect = null, p.thisAnimationDuration = null;
|
|
1297
1297
|
}, c), p.thisAnimationDuration = c);
|
|
1298
1298
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -1369,30 +1369,30 @@ var Ee = [], Ot = {
|
|
|
1369
1369
|
}
|
|
1370
1370
|
};
|
|
1371
1371
|
function Ue(e) {
|
|
1372
|
-
var t = e.sortable, n = e.rootEl, a = e.name, s = e.targetEl, i = e.cloneEl, r = e.toEl, l = e.fromEl, c = e.oldIndex, p = e.newIndex, m = e.oldDraggableIndex, f = e.newDraggableIndex,
|
|
1372
|
+
var t = e.sortable, n = e.rootEl, a = e.name, s = e.targetEl, i = e.cloneEl, r = e.toEl, l = e.fromEl, c = e.oldIndex, p = e.newIndex, m = e.oldDraggableIndex, f = e.newDraggableIndex, h = e.originalEvent, g = e.putSortable, y = e.extraEventProperties;
|
|
1373
1373
|
if (t = t || n && n[W], !!t) {
|
|
1374
|
-
var C, I = t.options,
|
|
1374
|
+
var C, I = t.options, L = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
1375
1375
|
window.CustomEvent && !de && !Xe ? C = new CustomEvent(a, {
|
|
1376
1376
|
bubbles: !0,
|
|
1377
1377
|
cancelable: !0
|
|
1378
|
-
}) : (C = document.createEvent("Event"), C.initEvent(a, !0, !0)), C.to = r || n, C.from = l || n, C.item = s || n, C.clone = i, C.oldIndex = c, C.newIndex = p, C.oldDraggableIndex = m, C.newDraggableIndex = f, C.originalEvent =
|
|
1378
|
+
}) : (C = document.createEvent("Event"), C.initEvent(a, !0, !0)), C.to = r || n, C.from = l || n, C.item = s || n, C.clone = i, C.oldIndex = c, C.newIndex = p, C.oldDraggableIndex = m, C.newDraggableIndex = f, C.originalEvent = h, C.pullMode = g ? g.lastPutMode : void 0;
|
|
1379
1379
|
var z = oe(oe({}, y), Ke.getEventProperties(a, t));
|
|
1380
1380
|
for (var q in z)
|
|
1381
1381
|
C[q] = z[q];
|
|
1382
|
-
n && n.dispatchEvent(C), I[
|
|
1382
|
+
n && n.dispatchEvent(C), I[L] && I[L].call(t, C);
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
1385
|
var cs = ["evt"], G = function(t, n) {
|
|
1386
1386
|
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = a.evt, i = Yi(a, cs);
|
|
1387
1387
|
Ke.pluginEvent.bind(_)(t, n, oe({
|
|
1388
|
-
dragEl:
|
|
1389
|
-
parentEl:
|
|
1388
|
+
dragEl: u,
|
|
1389
|
+
parentEl: R,
|
|
1390
1390
|
ghostEl: x,
|
|
1391
|
-
rootEl:
|
|
1391
|
+
rootEl: A,
|
|
1392
1392
|
nextEl: _e,
|
|
1393
1393
|
lastDownEl: lt,
|
|
1394
|
-
cloneEl:
|
|
1395
|
-
cloneHidden:
|
|
1394
|
+
cloneEl: P,
|
|
1395
|
+
cloneHidden: he,
|
|
1396
1396
|
dragStarted: Be,
|
|
1397
1397
|
putSortable: U,
|
|
1398
1398
|
activeSortable: _.active,
|
|
@@ -1404,10 +1404,10 @@ var cs = ["evt"], G = function(t, n) {
|
|
|
1404
1404
|
hideGhostForTarget: ea,
|
|
1405
1405
|
unhideGhostForTarget: ta,
|
|
1406
1406
|
cloneNowHidden: function() {
|
|
1407
|
-
|
|
1407
|
+
he = !0;
|
|
1408
1408
|
},
|
|
1409
1409
|
cloneNowShown: function() {
|
|
1410
|
-
|
|
1410
|
+
he = !1;
|
|
1411
1411
|
},
|
|
1412
1412
|
dispatchSortableEvent: function(l) {
|
|
1413
1413
|
Z({
|
|
@@ -1421,16 +1421,16 @@ var cs = ["evt"], G = function(t, n) {
|
|
|
1421
1421
|
function Z(e) {
|
|
1422
1422
|
Ue(oe({
|
|
1423
1423
|
putSortable: U,
|
|
1424
|
-
cloneEl:
|
|
1425
|
-
targetEl:
|
|
1426
|
-
rootEl:
|
|
1424
|
+
cloneEl: P,
|
|
1425
|
+
targetEl: u,
|
|
1426
|
+
rootEl: A,
|
|
1427
1427
|
oldIndex: Te,
|
|
1428
1428
|
oldDraggableIndex: Ve,
|
|
1429
1429
|
newIndex: X,
|
|
1430
1430
|
newDraggableIndex: me
|
|
1431
1431
|
}, e));
|
|
1432
1432
|
}
|
|
1433
|
-
var
|
|
1433
|
+
var u, R, x, A, _e, lt, P, he, Te, X, Ve, me, et, U, He = !1, mt = !1, ht = [], ge, te, Dt, Ht, $n, Nn, Be, Se, Je, Ye = !1, tt = !1, dt, B, Tt = [], cn = !1, ut = [], bt = typeof document < "u", nt = Wn, An = Xe || de ? "cssFloat" : "float", ps = bt && !Zn && !Wn && "draggable" in document.createElement("div"), Xn = function() {
|
|
1434
1434
|
if (bt) {
|
|
1435
1435
|
if (de)
|
|
1436
1436
|
return !1;
|
|
@@ -1447,15 +1447,15 @@ var h, A, x, P, _e, lt, M, ue, Te, X, Ve, me, et, U, He = !1, mt = !1, ut = [],
|
|
|
1447
1447
|
var f = l.float === "left" ? "left" : "right";
|
|
1448
1448
|
return r && (c.clear === "both" || c.clear === f) ? "vertical" : "horizontal";
|
|
1449
1449
|
}
|
|
1450
|
-
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || p >= s && a[
|
|
1450
|
+
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || p >= s && a[An] === "none" || r && a[An] === "none" && p + m > s) ? "vertical" : "horizontal";
|
|
1451
1451
|
}, fs = function(t, n, a) {
|
|
1452
1452
|
var s = a ? t.left : t.top, i = a ? t.right : t.bottom, r = a ? t.width : t.height, l = a ? n.left : n.top, c = a ? n.right : n.bottom, p = a ? n.width : n.height;
|
|
1453
1453
|
return s === l || i === c || s + r / 2 === l + p / 2;
|
|
1454
1454
|
}, ms = function(t, n) {
|
|
1455
1455
|
var a;
|
|
1456
|
-
return
|
|
1456
|
+
return ht.some(function(s) {
|
|
1457
1457
|
var i = s[W].options.emptyInsertThreshold;
|
|
1458
|
-
if (!(!i ||
|
|
1458
|
+
if (!(!i || un(s))) {
|
|
1459
1459
|
var r = N(s), l = t >= r.left - i && t <= r.right + i, c = n >= r.top - i && n <= r.bottom + i;
|
|
1460
1460
|
if (l && c)
|
|
1461
1461
|
return a = s;
|
|
@@ -1473,8 +1473,8 @@ var h, A, x, P, _e, lt, M, ue, Te, X, Ve, me, et, U, He = !1, mt = !1, ut = [],
|
|
|
1473
1473
|
return i;
|
|
1474
1474
|
if (typeof i == "function")
|
|
1475
1475
|
return n(i(l, c, p, m), r)(l, c, p, m);
|
|
1476
|
-
var
|
|
1477
|
-
return i === !0 || typeof i == "string" && i ===
|
|
1476
|
+
var h = (r ? l : c).options.group.name;
|
|
1477
|
+
return i === !0 || typeof i == "string" && i === h || i.join && i.indexOf(h) > -1;
|
|
1478
1478
|
};
|
|
1479
1479
|
}
|
|
1480
1480
|
var a = {}, s = t.group;
|
|
@@ -1491,7 +1491,7 @@ bt && !Zn && document.addEventListener("click", function(e) {
|
|
|
1491
1491
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), mt = !1, !1;
|
|
1492
1492
|
}, !0);
|
|
1493
1493
|
var ve = function(t) {
|
|
1494
|
-
if (
|
|
1494
|
+
if (u) {
|
|
1495
1495
|
t = t.touches ? t.touches[0] : t;
|
|
1496
1496
|
var n = ms(t.clientX, t.clientY);
|
|
1497
1497
|
if (n) {
|
|
@@ -1501,8 +1501,8 @@ var ve = function(t) {
|
|
|
1501
1501
|
a.target = a.rootEl = n, a.preventDefault = void 0, a.stopPropagation = void 0, n[W]._onDragOver(a);
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
},
|
|
1505
|
-
|
|
1504
|
+
}, hs = function(t) {
|
|
1505
|
+
u && u.parentNode[W]._isOutsideThisEl(t.target);
|
|
1506
1506
|
};
|
|
1507
1507
|
function _(e, t) {
|
|
1508
1508
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
@@ -1559,7 +1559,7 @@ function _(e, t) {
|
|
|
1559
1559
|
Qn(t);
|
|
1560
1560
|
for (var s in this)
|
|
1561
1561
|
s.charAt(0) === "_" && typeof this[s] == "function" && (this[s] = this[s].bind(this));
|
|
1562
|
-
this.nativeDraggable = t.forceFallback ? !1 : ps, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.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)),
|
|
1562
|
+
this.nativeDraggable = t.forceFallback ? !1 : ps, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.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)), ht.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ee(this, rs());
|
|
1563
1563
|
}
|
|
1564
1564
|
_.prototype = /** @lends Sortable.prototype */
|
|
1565
1565
|
{
|
|
@@ -1568,13 +1568,13 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1568
1568
|
!this.el.contains(t) && t !== this.el && (Se = null);
|
|
1569
1569
|
},
|
|
1570
1570
|
_getDirection: function(t, n) {
|
|
1571
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n,
|
|
1571
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, u) : this.options.direction;
|
|
1572
1572
|
},
|
|
1573
1573
|
_onTapStart: function(t) {
|
|
1574
1574
|
if (t.cancelable) {
|
|
1575
1575
|
var n = this, a = this.el, s = this.options, i = s.preventOnFilter, r = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, c = (l || t).target, p = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || c, m = s.filter;
|
|
1576
|
-
if (ws(a), !
|
|
1577
|
-
if (Te =
|
|
1576
|
+
if (ws(a), !u && !(/mousedown|pointerdown/.test(r) && t.button !== 0 || s.disabled) && !p.isContentEditable && !(!this.nativeDraggable && qe && c && c.tagName.toUpperCase() === "SELECT") && (c = Q(c, s.draggable, a, !1), !(c && c.animated) && lt !== c)) {
|
|
1577
|
+
if (Te = F(c), Ve = F(c, s.draggable), typeof m == "function") {
|
|
1578
1578
|
if (m.call(this, t, c, this)) {
|
|
1579
1579
|
Z({
|
|
1580
1580
|
sortable: n,
|
|
@@ -1610,27 +1610,27 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1610
1610
|
},
|
|
1611
1611
|
_prepareDragStart: function(t, n, a) {
|
|
1612
1612
|
var s = this, i = s.el, r = s.options, l = i.ownerDocument, c;
|
|
1613
|
-
if (a && !
|
|
1613
|
+
if (a && !u && a.parentNode === i) {
|
|
1614
1614
|
var p = N(a);
|
|
1615
|
-
if (
|
|
1616
|
-
target:
|
|
1615
|
+
if (A = i, u = a, R = u.parentNode, _e = u.nextSibling, lt = a, et = r.group, _.dragged = u, ge = {
|
|
1616
|
+
target: u,
|
|
1617
1617
|
clientX: (n || t).clientX,
|
|
1618
1618
|
clientY: (n || t).clientY
|
|
1619
|
-
}, $n = ge.clientX - p.left, Nn = ge.clientY - p.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY,
|
|
1619
|
+
}, $n = ge.clientX - p.left, Nn = ge.clientY - p.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, u.style["will-change"] = "all", c = function() {
|
|
1620
1620
|
if (G("delayEnded", s, {
|
|
1621
1621
|
evt: t
|
|
1622
1622
|
}), _.eventCanceled) {
|
|
1623
1623
|
s._onDrop();
|
|
1624
1624
|
return;
|
|
1625
1625
|
}
|
|
1626
|
-
s._disableDelayedDragEvents(), !On && s.nativeDraggable && (
|
|
1626
|
+
s._disableDelayedDragEvents(), !On && s.nativeDraggable && (u.draggable = !0), s._triggerDragStart(t, n), Z({
|
|
1627
1627
|
sortable: s,
|
|
1628
1628
|
name: "choose",
|
|
1629
1629
|
originalEvent: t
|
|
1630
|
-
}),
|
|
1630
|
+
}), M(u, r.chosenClass, !0);
|
|
1631
1631
|
}, r.ignore.split(",").forEach(function(m) {
|
|
1632
|
-
Gn(
|
|
1633
|
-
}), E(l, "dragover", ve), E(l, "mousemove", ve), E(l, "touchmove", ve), E(l, "mouseup", s._onDrop), E(l, "touchend", s._onDrop), E(l, "touchcancel", s._onDrop), On && this.nativeDraggable && (this.options.touchStartThreshold = 4,
|
|
1632
|
+
Gn(u, m.trim(), It);
|
|
1633
|
+
}), E(l, "dragover", ve), E(l, "mousemove", ve), E(l, "touchmove", ve), E(l, "mouseup", s._onDrop), E(l, "touchend", s._onDrop), E(l, "touchcancel", s._onDrop), On && this.nativeDraggable && (this.options.touchStartThreshold = 4, u.draggable = !0), G("delayStart", this, {
|
|
1634
1634
|
evt: t
|
|
1635
1635
|
}), r.delay && (!r.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Xe || de))) {
|
|
1636
1636
|
if (_.eventCanceled) {
|
|
@@ -1647,14 +1647,14 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1647
1647
|
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
1648
1648
|
},
|
|
1649
1649
|
_disableDelayedDrag: function() {
|
|
1650
|
-
|
|
1650
|
+
u && It(u), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
1651
1651
|
},
|
|
1652
1652
|
_disableDelayedDragEvents: function() {
|
|
1653
1653
|
var t = this.el.ownerDocument;
|
|
1654
1654
|
k(t, "mouseup", this._disableDelayedDrag), k(t, "touchend", this._disableDelayedDrag), k(t, "touchcancel", this._disableDelayedDrag), k(t, "mousemove", this._delayedDragTouchMoveHandler), k(t, "touchmove", this._delayedDragTouchMoveHandler), k(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
1655
1655
|
},
|
|
1656
1656
|
_triggerDragStart: function(t, n) {
|
|
1657
|
-
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : n ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(
|
|
1657
|
+
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? E(document, "pointermove", this._onTouchMove) : n ? E(document, "touchmove", this._onTouchMove) : E(document, "mousemove", this._onTouchMove) : (E(u, "dragend", this), E(A, "dragstart", this._onDragStart));
|
|
1658
1658
|
try {
|
|
1659
1659
|
document.selection ? ct(function() {
|
|
1660
1660
|
document.selection.empty();
|
|
@@ -1663,12 +1663,12 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1663
1663
|
}
|
|
1664
1664
|
},
|
|
1665
1665
|
_dragStarted: function(t, n) {
|
|
1666
|
-
if (He = !1,
|
|
1666
|
+
if (He = !1, A && u) {
|
|
1667
1667
|
G("dragStarted", this, {
|
|
1668
1668
|
evt: n
|
|
1669
|
-
}), this.nativeDraggable && E(document, "dragover",
|
|
1669
|
+
}), this.nativeDraggable && E(document, "dragover", hs);
|
|
1670
1670
|
var a = this.options;
|
|
1671
|
-
!t &&
|
|
1671
|
+
!t && M(u, a.dragClass, !1), M(u, a.ghostClass, !0), _.active = this, t && this._appendGhost(), Z({
|
|
1672
1672
|
sortable: this,
|
|
1673
1673
|
name: "start",
|
|
1674
1674
|
originalEvent: n
|
|
@@ -1681,7 +1681,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1681
1681
|
this._lastX = te.clientX, this._lastY = te.clientY, ea();
|
|
1682
1682
|
for (var t = document.elementFromPoint(te.clientX, te.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(te.clientX, te.clientY), t !== n); )
|
|
1683
1683
|
n = t;
|
|
1684
|
-
if (
|
|
1684
|
+
if (u.parentNode[W]._isOutsideThisEl(t), n)
|
|
1685
1685
|
do {
|
|
1686
1686
|
if (n[W]) {
|
|
1687
1687
|
var a = void 0;
|
|
@@ -1715,21 +1715,21 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1715
1715
|
e: m,
|
|
1716
1716
|
f
|
|
1717
1717
|
};
|
|
1718
|
-
var
|
|
1719
|
-
b(x, "webkitTransform",
|
|
1718
|
+
var h = "matrix(".concat(r.a, ",").concat(r.b, ",").concat(r.c, ",").concat(r.d, ",").concat(r.e, ",").concat(r.f, ")");
|
|
1719
|
+
b(x, "webkitTransform", h), b(x, "mozTransform", h), b(x, "msTransform", h), b(x, "transform", h), Dt = m, Ht = f, te = i;
|
|
1720
1720
|
}
|
|
1721
1721
|
t.cancelable && t.preventDefault();
|
|
1722
1722
|
}
|
|
1723
1723
|
},
|
|
1724
1724
|
_appendGhost: function() {
|
|
1725
1725
|
if (!x) {
|
|
1726
|
-
var t = this.options.fallbackOnBody ? document.body :
|
|
1726
|
+
var t = this.options.fallbackOnBody ? document.body : A, n = N(u, !0, nt, !0, t), a = this.options;
|
|
1727
1727
|
if (nt) {
|
|
1728
1728
|
for (B = t; b(B, "position") === "static" && b(B, "transform") === "none" && B !== document; )
|
|
1729
1729
|
B = B.parentNode;
|
|
1730
1730
|
B !== document.body && B !== document.documentElement ? (B === document && (B = se()), n.top += B.scrollTop, n.left += B.scrollLeft) : B = se(), Tt = Tn(B);
|
|
1731
1731
|
}
|
|
1732
|
-
x =
|
|
1732
|
+
x = u.cloneNode(!0), M(x, a.ghostClass, !1), M(x, a.fallbackClass, !0), M(x, a.dragClass, !0), b(x, "transition", ""), b(x, "transform", ""), b(x, "box-sizing", "border-box"), b(x, "margin", 0), b(x, "top", n.top), b(x, "left", n.left), b(x, "width", n.width), b(x, "height", n.height), b(x, "opacity", "0.8"), b(x, "position", nt ? "absolute" : "fixed"), b(x, "zIndex", "100000"), b(x, "pointerEvents", "none"), _.ghost = x, t.appendChild(x), b(x, "transform-origin", $n / parseInt(x.style.width) * 100 + "% " + Nn / parseInt(x.style.height) * 100 + "%");
|
|
1733
1733
|
}
|
|
1734
1734
|
},
|
|
1735
1735
|
_onDragStart: function(t, n) {
|
|
@@ -1740,20 +1740,20 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1740
1740
|
this._onDrop();
|
|
1741
1741
|
return;
|
|
1742
1742
|
}
|
|
1743
|
-
G("setupClone", this), _.eventCanceled || (
|
|
1744
|
-
G("clone", a), !_.eventCanceled && (a.options.removeCloneOnHide ||
|
|
1743
|
+
G("setupClone", this), _.eventCanceled || (P = yn(u), P.removeAttribute("id"), P.draggable = !1, P.style["will-change"] = "", this._hideClone(), M(P, this.options.chosenClass, !1), _.clone = P), a.cloneId = ct(function() {
|
|
1744
|
+
G("clone", a), !_.eventCanceled && (a.options.removeCloneOnHide || A.insertBefore(P, u), a._hideClone(), Z({
|
|
1745
1745
|
sortable: a,
|
|
1746
1746
|
name: "clone"
|
|
1747
1747
|
}));
|
|
1748
|
-
}), !n &&
|
|
1748
|
+
}), !n && M(u, i.dragClass, !0), n ? (mt = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (k(document, "mouseup", a._onDrop), k(document, "touchend", a._onDrop), k(document, "touchcancel", a._onDrop), s && (s.effectAllowed = "move", i.setData && i.setData.call(a, s, u)), E(document, "drop", a), b(u, "transform", "translateZ(0)")), He = !0, a._dragStartId = ct(a._dragStarted.bind(a, n, t)), E(document, "selectstart", a), Be = !0, qe && b(document.body, "user-select", "none");
|
|
1749
1749
|
},
|
|
1750
1750
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1751
1751
|
_onDragOver: function(t) {
|
|
1752
|
-
var n = this.el, a = t.target, s, i, r, l = this.options, c = l.group, p = _.active, m = et === c, f = l.sort,
|
|
1752
|
+
var n = this.el, a = t.target, s, i, r, l = this.options, c = l.group, p = _.active, m = et === c, f = l.sort, h = U || p, g, y = this, C = !1;
|
|
1753
1753
|
if (cn)
|
|
1754
1754
|
return;
|
|
1755
|
-
function I(
|
|
1756
|
-
G(
|
|
1755
|
+
function I(Fe, Ta) {
|
|
1756
|
+
G(Fe, y, oe({
|
|
1757
1757
|
evt: t,
|
|
1758
1758
|
isOwner: m,
|
|
1759
1759
|
axis: g ? "vertical" : "horizontal",
|
|
@@ -1761,27 +1761,27 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1761
1761
|
dragRect: s,
|
|
1762
1762
|
targetRect: i,
|
|
1763
1763
|
canSort: f,
|
|
1764
|
-
fromSortable:
|
|
1764
|
+
fromSortable: h,
|
|
1765
1765
|
target: a,
|
|
1766
1766
|
completed: z,
|
|
1767
1767
|
onMove: function(vn, Ia) {
|
|
1768
|
-
return at(
|
|
1768
|
+
return at(A, n, u, s, vn, N(vn), t, Ia);
|
|
1769
1769
|
},
|
|
1770
1770
|
changed: q
|
|
1771
1771
|
}, Ta));
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1774
|
-
I("dragOverAnimationCapture"), y.captureAnimationState(), y !==
|
|
1773
|
+
function L() {
|
|
1774
|
+
I("dragOverAnimationCapture"), y.captureAnimationState(), y !== h && h.captureAnimationState();
|
|
1775
1775
|
}
|
|
1776
|
-
function z(
|
|
1776
|
+
function z(Fe) {
|
|
1777
1777
|
return I("dragOverCompleted", {
|
|
1778
|
-
insertion:
|
|
1779
|
-
}),
|
|
1778
|
+
insertion: Fe
|
|
1779
|
+
}), Fe && (m ? p._hideClone() : p._showClone(y), y !== h && (M(u, U ? U.options.ghostClass : p.options.ghostClass, !1), M(u, l.ghostClass, !0)), U !== y && y !== _.active ? U = y : y === _.active && U && (U = null), h === y && (y._ignoreWhileAnimating = a), y.animateAll(function() {
|
|
1780
1780
|
I("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
|
|
1781
|
-
}), y !==
|
|
1781
|
+
}), y !== h && (h.animateAll(), h._ignoreWhileAnimating = null)), (a === u && !u.animated || a === n && !a.animated) && (Se = null), !l.dragoverBubble && !t.rootEl && a !== document && (u.parentNode[W]._isOutsideThisEl(t.target), !Fe && ve(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), C = !0;
|
|
1782
1782
|
}
|
|
1783
1783
|
function q() {
|
|
1784
|
-
X =
|
|
1784
|
+
X = F(u), me = F(u, l.draggable), Z({
|
|
1785
1785
|
sortable: y,
|
|
1786
1786
|
name: "change",
|
|
1787
1787
|
toEl: n,
|
|
@@ -1792,46 +1792,46 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1792
1792
|
}
|
|
1793
1793
|
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), a = Q(a, l.draggable, n, !0), I("dragOver"), _.eventCanceled)
|
|
1794
1794
|
return C;
|
|
1795
|
-
if (
|
|
1795
|
+
if (u.contains(t.target) || a.animated && a.animatingX && a.animatingY || y._ignoreWhileAnimating === a)
|
|
1796
1796
|
return z(!1);
|
|
1797
|
-
if (mt = !1, p && !l.disabled && (m ? f || (r =
|
|
1798
|
-
if (g = this._getDirection(t, a) === "vertical", s = N(
|
|
1797
|
+
if (mt = !1, p && !l.disabled && (m ? f || (r = R !== A) : U === this || (this.lastPutMode = et.checkPull(this, p, u, t)) && c.checkPut(this, p, u, t))) {
|
|
1798
|
+
if (g = this._getDirection(t, a) === "vertical", s = N(u), I("dragOverValid"), _.eventCanceled)
|
|
1799
1799
|
return C;
|
|
1800
1800
|
if (r)
|
|
1801
|
-
return
|
|
1802
|
-
var T =
|
|
1801
|
+
return R = A, L(), this._hideClone(), I("revert"), _.eventCanceled || (_e ? A.insertBefore(u, _e) : A.appendChild(u)), z(!0);
|
|
1802
|
+
var T = un(n, l.draggable);
|
|
1803
1803
|
if (!T || gs(t, g, this) && !T.animated) {
|
|
1804
|
-
if (T ===
|
|
1804
|
+
if (T === u)
|
|
1805
1805
|
return z(!1);
|
|
1806
|
-
if (T && n === t.target && (a = T), a && (i = N(a)), at(
|
|
1807
|
-
return
|
|
1806
|
+
if (T && n === t.target && (a = T), a && (i = N(a)), at(A, n, u, s, a, i, t, !!a) !== !1)
|
|
1807
|
+
return L(), T && T.nextSibling ? n.insertBefore(u, T.nextSibling) : n.appendChild(u), R = n, q(), z(!0);
|
|
1808
1808
|
} else if (T && bs(t, g, this)) {
|
|
1809
1809
|
var ae = $e(n, 0, l, !0);
|
|
1810
|
-
if (ae ===
|
|
1810
|
+
if (ae === u)
|
|
1811
1811
|
return z(!1);
|
|
1812
|
-
if (a = ae, i = N(a), at(
|
|
1813
|
-
return
|
|
1812
|
+
if (a = ae, i = N(a), at(A, n, u, s, a, i, t, !1) !== !1)
|
|
1813
|
+
return L(), n.insertBefore(u, ae), R = n, q(), z(!0);
|
|
1814
1814
|
} else if (a.parentNode === n) {
|
|
1815
1815
|
i = N(a);
|
|
1816
|
-
var ie = 0, ye,
|
|
1817
|
-
Se !== a && (ye = i[
|
|
1816
|
+
var ie = 0, ye, Ae = u.parentNode !== n, J = !fs(u.animated && u.toRect || s, a.animated && a.toRect || i, g), Pe = g ? "top" : "left", ce = Hn(a, "top", "top") || Hn(u, "top", "top"), Me = ce ? ce.scrollTop : void 0;
|
|
1817
|
+
Se !== a && (ye = i[Pe], Ye = !1, tt = !J && l.invertSwap || Ae), ie = vs(t, a, i, g, J ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, tt, Se === a);
|
|
1818
1818
|
var re;
|
|
1819
1819
|
if (ie !== 0) {
|
|
1820
|
-
var be =
|
|
1820
|
+
var be = F(u);
|
|
1821
1821
|
do
|
|
1822
|
-
be -= ie, re =
|
|
1822
|
+
be -= ie, re = R.children[be];
|
|
1823
1823
|
while (re && (b(re, "display") === "none" || re === x));
|
|
1824
1824
|
}
|
|
1825
1825
|
if (ie === 0 || re === a)
|
|
1826
1826
|
return z(!1);
|
|
1827
1827
|
Se = a, Je = ie;
|
|
1828
|
-
var
|
|
1828
|
+
var Re = a.nextElementSibling, pe = !1;
|
|
1829
1829
|
pe = ie === 1;
|
|
1830
|
-
var Qe = at(
|
|
1830
|
+
var Qe = at(A, n, u, s, a, i, t, pe);
|
|
1831
1831
|
if (Qe !== !1)
|
|
1832
|
-
return (Qe === 1 || Qe === -1) && (pe = Qe === 1), cn = !0, setTimeout(ys, 30),
|
|
1832
|
+
return (Qe === 1 || Qe === -1) && (pe = Qe === 1), cn = !0, setTimeout(ys, 30), L(), pe && !Re ? n.appendChild(u) : a.parentNode.insertBefore(u, pe ? Re : a), ce && Jn(ce, 0, Me - ce.scrollTop), R = u.parentNode, ye !== void 0 && !tt && (dt = Math.abs(ye - N(a)[Pe])), q(), z(!0);
|
|
1833
1833
|
}
|
|
1834
|
-
if (n.contains(
|
|
1834
|
+
if (n.contains(u))
|
|
1835
1835
|
return z(!1);
|
|
1836
1836
|
}
|
|
1837
1837
|
return !1;
|
|
@@ -1846,62 +1846,62 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1846
1846
|
},
|
|
1847
1847
|
_onDrop: function(t) {
|
|
1848
1848
|
var n = this.el, a = this.options;
|
|
1849
|
-
if (X =
|
|
1849
|
+
if (X = F(u), me = F(u, a.draggable), G("drop", this, {
|
|
1850
1850
|
evt: t
|
|
1851
|
-
}),
|
|
1851
|
+
}), R = u && u.parentNode, X = F(u), me = F(u, a.draggable), _.eventCanceled) {
|
|
1852
1852
|
this._nulling();
|
|
1853
1853
|
return;
|
|
1854
1854
|
}
|
|
1855
|
-
He = !1, tt = !1, Ye = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), pn(this.cloneId), pn(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), qe && b(document.body, "user-select", ""), b(
|
|
1855
|
+
He = !1, tt = !1, Ye = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), pn(this.cloneId), pn(this._dragStartId), this.nativeDraggable && (k(document, "drop", this), k(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), qe && b(document.body, "user-select", ""), b(u, "transform", ""), t && (Be && (t.cancelable && t.preventDefault(), !a.dropBubble && t.stopPropagation()), x && x.parentNode && x.parentNode.removeChild(x), (A === R || U && U.lastPutMode !== "clone") && P && P.parentNode && P.parentNode.removeChild(P), u && (this.nativeDraggable && k(u, "dragend", this), It(u), u.style["will-change"] = "", Be && !He && M(u, U ? U.options.ghostClass : this.options.ghostClass, !1), M(u, this.options.chosenClass, !1), Z({
|
|
1856
1856
|
sortable: this,
|
|
1857
1857
|
name: "unchoose",
|
|
1858
|
-
toEl:
|
|
1858
|
+
toEl: R,
|
|
1859
1859
|
newIndex: null,
|
|
1860
1860
|
newDraggableIndex: null,
|
|
1861
1861
|
originalEvent: t
|
|
1862
|
-
}),
|
|
1863
|
-
rootEl:
|
|
1862
|
+
}), A !== R ? (X >= 0 && (Z({
|
|
1863
|
+
rootEl: R,
|
|
1864
1864
|
name: "add",
|
|
1865
|
-
toEl:
|
|
1866
|
-
fromEl:
|
|
1865
|
+
toEl: R,
|
|
1866
|
+
fromEl: A,
|
|
1867
1867
|
originalEvent: t
|
|
1868
1868
|
}), Z({
|
|
1869
1869
|
sortable: this,
|
|
1870
1870
|
name: "remove",
|
|
1871
|
-
toEl:
|
|
1871
|
+
toEl: R,
|
|
1872
1872
|
originalEvent: t
|
|
1873
1873
|
}), Z({
|
|
1874
|
-
rootEl:
|
|
1874
|
+
rootEl: R,
|
|
1875
1875
|
name: "sort",
|
|
1876
|
-
toEl:
|
|
1877
|
-
fromEl:
|
|
1876
|
+
toEl: R,
|
|
1877
|
+
fromEl: A,
|
|
1878
1878
|
originalEvent: t
|
|
1879
1879
|
}), Z({
|
|
1880
1880
|
sortable: this,
|
|
1881
1881
|
name: "sort",
|
|
1882
|
-
toEl:
|
|
1882
|
+
toEl: R,
|
|
1883
1883
|
originalEvent: t
|
|
1884
1884
|
})), U && U.save()) : X !== Te && X >= 0 && (Z({
|
|
1885
1885
|
sortable: this,
|
|
1886
1886
|
name: "update",
|
|
1887
|
-
toEl:
|
|
1887
|
+
toEl: R,
|
|
1888
1888
|
originalEvent: t
|
|
1889
1889
|
}), Z({
|
|
1890
1890
|
sortable: this,
|
|
1891
1891
|
name: "sort",
|
|
1892
|
-
toEl:
|
|
1892
|
+
toEl: R,
|
|
1893
1893
|
originalEvent: t
|
|
1894
1894
|
})), _.active && ((X == null || X === -1) && (X = Te, me = Ve), Z({
|
|
1895
1895
|
sortable: this,
|
|
1896
1896
|
name: "end",
|
|
1897
|
-
toEl:
|
|
1897
|
+
toEl: R,
|
|
1898
1898
|
originalEvent: t
|
|
1899
1899
|
}), this.save()))), this._nulling();
|
|
1900
1900
|
},
|
|
1901
1901
|
_nulling: function() {
|
|
1902
|
-
G("nulling", this),
|
|
1902
|
+
G("nulling", this), A = u = R = x = _e = P = lt = he = ge = te = Be = X = me = Te = Ve = Se = Je = U = et = _.dragged = _.ghost = _.clone = _.active = null, ut.forEach(function(t) {
|
|
1903
1903
|
t.checked = !0;
|
|
1904
|
-
}),
|
|
1904
|
+
}), ut.length = Dt = Ht = 0;
|
|
1905
1905
|
},
|
|
1906
1906
|
handleEvent: function(t) {
|
|
1907
1907
|
switch (t.type) {
|
|
@@ -1911,7 +1911,7 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1911
1911
|
break;
|
|
1912
1912
|
case "dragenter":
|
|
1913
1913
|
case "dragover":
|
|
1914
|
-
|
|
1914
|
+
u && (this._onDragOver(t), us(t));
|
|
1915
1915
|
break;
|
|
1916
1916
|
case "selectstart":
|
|
1917
1917
|
t.preventDefault();
|
|
@@ -1977,13 +1977,13 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1977
1977
|
var t = this.el;
|
|
1978
1978
|
t[W] = null, k(t, "mousedown", this._onTapStart), k(t, "touchstart", this._onTapStart), k(t, "pointerdown", this._onTapStart), this.nativeDraggable && (k(t, "dragover", this), k(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
|
|
1979
1979
|
n.removeAttribute("draggable");
|
|
1980
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1980
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ht.splice(ht.indexOf(this.el), 1), this.el = t = null;
|
|
1981
1981
|
},
|
|
1982
1982
|
_hideClone: function() {
|
|
1983
|
-
if (!
|
|
1983
|
+
if (!he) {
|
|
1984
1984
|
if (G("hideClone", this), _.eventCanceled)
|
|
1985
1985
|
return;
|
|
1986
|
-
b(
|
|
1986
|
+
b(P, "display", "none"), this.options.removeCloneOnHide && P.parentNode && P.parentNode.removeChild(P), he = !0;
|
|
1987
1987
|
}
|
|
1988
1988
|
},
|
|
1989
1989
|
_showClone: function(t) {
|
|
@@ -1991,14 +1991,14 @@ _.prototype = /** @lends Sortable.prototype */
|
|
|
1991
1991
|
this._hideClone();
|
|
1992
1992
|
return;
|
|
1993
1993
|
}
|
|
1994
|
-
if (
|
|
1994
|
+
if (he) {
|
|
1995
1995
|
if (G("showClone", this), _.eventCanceled)
|
|
1996
1996
|
return;
|
|
1997
|
-
|
|
1997
|
+
u.parentNode == A && !this.options.group.revertClone ? A.insertBefore(P, u) : _e ? A.insertBefore(P, _e) : A.appendChild(P), this.options.group.revertClone && this.animate(u, P), b(P, "display", ""), he = !1;
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
};
|
|
2001
|
-
function
|
|
2001
|
+
function us(e) {
|
|
2002
2002
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
2003
2003
|
}
|
|
2004
2004
|
function at(e, t, n, a, s, i, r, l) {
|
|
@@ -2019,24 +2019,24 @@ function bs(e, t, n) {
|
|
|
2019
2019
|
return t ? e.clientX < s.left - i || e.clientY < a.top && e.clientX < a.right : e.clientY < s.top - i || e.clientY < a.bottom && e.clientX < a.left;
|
|
2020
2020
|
}
|
|
2021
2021
|
function gs(e, t, n) {
|
|
2022
|
-
var a = N(
|
|
2022
|
+
var a = N(un(n.el, n.options.draggable)), s = Yn(n.el, n.options, x), i = 10;
|
|
2023
2023
|
return t ? e.clientX > s.right + i || e.clientY > a.bottom && e.clientX > a.left : e.clientY > s.bottom + i || e.clientX > a.right && e.clientY > a.top;
|
|
2024
2024
|
}
|
|
2025
2025
|
function vs(e, t, n, a, s, i, r, l) {
|
|
2026
|
-
var c = a ? e.clientY : e.clientX, p = a ? n.height : n.width, m = a ? n.top : n.left, f = a ? n.bottom : n.right,
|
|
2026
|
+
var c = a ? e.clientY : e.clientX, p = a ? n.height : n.width, m = a ? n.top : n.left, f = a ? n.bottom : n.right, h = !1;
|
|
2027
2027
|
if (!r) {
|
|
2028
2028
|
if (l && dt < p * s) {
|
|
2029
2029
|
if (!Ye && (Je === 1 ? c > m + p * i / 2 : c < f - p * i / 2) && (Ye = !0), Ye)
|
|
2030
|
-
|
|
2030
|
+
h = !0;
|
|
2031
2031
|
else if (Je === 1 ? c < m + dt : c > f - dt)
|
|
2032
2032
|
return -Je;
|
|
2033
2033
|
} else if (c > m + p * (1 - s) / 2 && c < f - p * (1 - s) / 2)
|
|
2034
2034
|
return _s(t);
|
|
2035
2035
|
}
|
|
2036
|
-
return
|
|
2036
|
+
return h = h || r, h && (c < m + p * i / 2 || c > f - p * i / 2) ? c > m + p / 2 ? 1 : -1 : 0;
|
|
2037
2037
|
}
|
|
2038
2038
|
function _s(e) {
|
|
2039
|
-
return
|
|
2039
|
+
return F(u) < F(e) ? 1 : -1;
|
|
2040
2040
|
}
|
|
2041
2041
|
function Cs(e) {
|
|
2042
2042
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, a = 0; n--; )
|
|
@@ -2044,10 +2044,10 @@ function Cs(e) {
|
|
|
2044
2044
|
return a.toString(36);
|
|
2045
2045
|
}
|
|
2046
2046
|
function ws(e) {
|
|
2047
|
-
|
|
2047
|
+
ut.length = 0;
|
|
2048
2048
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
2049
2049
|
var a = t[n];
|
|
2050
|
-
a.checked &&
|
|
2050
|
+
a.checked && ut.push(a);
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
2053
|
function ct(e) {
|
|
@@ -2070,9 +2070,9 @@ _.utils = {
|
|
|
2070
2070
|
extend: ss,
|
|
2071
2071
|
throttle: Vn,
|
|
2072
2072
|
closest: Q,
|
|
2073
|
-
toggleClass:
|
|
2073
|
+
toggleClass: M,
|
|
2074
2074
|
clone: yn,
|
|
2075
|
-
index:
|
|
2075
|
+
index: F,
|
|
2076
2076
|
nextTick: ct,
|
|
2077
2077
|
cancelNextTick: pn,
|
|
2078
2078
|
detectDirection: Kn,
|
|
@@ -2117,7 +2117,7 @@ function xs() {
|
|
|
2117
2117
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
|
2118
2118
|
},
|
|
2119
2119
|
drop: function() {
|
|
2120
|
-
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
2120
|
+
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), Pn(), pt(), os();
|
|
2121
2121
|
},
|
|
2122
2122
|
nulling: function() {
|
|
2123
2123
|
yt = fn = We = mn = Ze = $t = Nt = null, j.length = 0;
|
|
@@ -2128,18 +2128,18 @@ function xs() {
|
|
|
2128
2128
|
_handleAutoScroll: function(n, a) {
|
|
2129
2129
|
var s = this, i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(i, r);
|
|
2130
2130
|
if (yt = n, a || this.options.forceAutoScrollFallback || Xe || de || qe) {
|
|
2131
|
-
|
|
2132
|
-
var c =
|
|
2133
|
-
mn && (!Ze || i !== $t || r !== Nt) && (Ze &&
|
|
2134
|
-
var p =
|
|
2135
|
-
p !== c && (c = p, pt()),
|
|
2131
|
+
At(n, this.options, l, a);
|
|
2132
|
+
var c = ue(l, !0);
|
|
2133
|
+
mn && (!Ze || i !== $t || r !== Nt) && (Ze && Pn(), Ze = setInterval(function() {
|
|
2134
|
+
var p = ue(document.elementFromPoint(i, r), !0);
|
|
2135
|
+
p !== c && (c = p, pt()), At(n, s.options, p, a);
|
|
2136
2136
|
}, 10), $t = i, Nt = r);
|
|
2137
2137
|
} else {
|
|
2138
|
-
if (!this.options.bubbleScroll ||
|
|
2138
|
+
if (!this.options.bubbleScroll || ue(l, !0) === se()) {
|
|
2139
2139
|
pt();
|
|
2140
2140
|
return;
|
|
2141
2141
|
}
|
|
2142
|
-
|
|
2142
|
+
At(n, this.options, ue(l, !1), !1);
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
2145
|
}, ee(e, {
|
|
@@ -2152,29 +2152,29 @@ function pt() {
|
|
|
2152
2152
|
clearInterval(e.pid);
|
|
2153
2153
|
}), j = [];
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2155
|
+
function Pn() {
|
|
2156
2156
|
clearInterval(Ze);
|
|
2157
2157
|
}
|
|
2158
|
-
var
|
|
2158
|
+
var At = Vn(function(e, t, n, a) {
|
|
2159
2159
|
if (t.scroll) {
|
|
2160
2160
|
var s = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, r = t.scrollSensitivity, l = t.scrollSpeed, c = se(), p = !1, m;
|
|
2161
|
-
fn !== n && (fn = n, pt(), We = t.scroll, m = t.scrollFn, We === !0 && (We =
|
|
2162
|
-
var f = 0,
|
|
2161
|
+
fn !== n && (fn = n, pt(), We = t.scroll, m = t.scrollFn, We === !0 && (We = ue(n, !0)));
|
|
2162
|
+
var f = 0, h = We;
|
|
2163
2163
|
do {
|
|
2164
|
-
var g =
|
|
2165
|
-
g === c ? (ae = q < ye && (J.overflowX === "auto" || J.overflowX === "scroll" || J.overflowX === "visible"), ie = T <
|
|
2166
|
-
var
|
|
2164
|
+
var g = h, y = N(g), C = y.top, I = y.bottom, L = y.left, z = y.right, q = y.width, T = y.height, ae = void 0, ie = void 0, ye = g.scrollWidth, Ae = g.scrollHeight, J = b(g), Pe = g.scrollLeft, ce = g.scrollTop;
|
|
2165
|
+
g === c ? (ae = q < ye && (J.overflowX === "auto" || J.overflowX === "scroll" || J.overflowX === "visible"), ie = T < Ae && (J.overflowY === "auto" || J.overflowY === "scroll" || J.overflowY === "visible")) : (ae = q < ye && (J.overflowX === "auto" || J.overflowX === "scroll"), ie = T < Ae && (J.overflowY === "auto" || J.overflowY === "scroll"));
|
|
2166
|
+
var Me = ae && (Math.abs(z - s) <= r && Pe + q < ye) - (Math.abs(L - s) <= r && !!Pe), re = ie && (Math.abs(I - i) <= r && ce + T < Ae) - (Math.abs(C - i) <= r && !!ce);
|
|
2167
2167
|
if (!j[f])
|
|
2168
2168
|
for (var be = 0; be <= f; be++)
|
|
2169
2169
|
j[be] || (j[be] = {});
|
|
2170
|
-
(j[f].vx !=
|
|
2170
|
+
(j[f].vx != Me || j[f].vy != re || j[f].el !== g) && (j[f].el = g, j[f].vx = Me, j[f].vy = re, clearInterval(j[f].pid), (Me != 0 || re != 0) && (p = !0, j[f].pid = setInterval((function() {
|
|
2171
2171
|
a && this.layer === 0 && _.active._onTouchMove(yt);
|
|
2172
|
-
var
|
|
2173
|
-
typeof m == "function" && m.call(_.dragged.parentNode[W], pe,
|
|
2172
|
+
var Re = j[this.layer].vy ? j[this.layer].vy * l : 0, pe = j[this.layer].vx ? j[this.layer].vx * l : 0;
|
|
2173
|
+
typeof m == "function" && m.call(_.dragged.parentNode[W], pe, Re, e, yt, j[this.layer].el) !== "continue" || Jn(j[this.layer].el, pe, Re);
|
|
2174
2174
|
}).bind({
|
|
2175
2175
|
layer: f
|
|
2176
2176
|
}), 24))), f++;
|
|
2177
|
-
} while (t.bubbleScroll &&
|
|
2177
|
+
} while (t.bubbleScroll && h !== c && (h = ue(h, !1)));
|
|
2178
2178
|
mn = p;
|
|
2179
2179
|
}
|
|
2180
2180
|
}, 30), na = function(t) {
|
|
@@ -2238,14 +2238,14 @@ function ks() {
|
|
|
2238
2238
|
var p = this.sortable.el, m = this.options;
|
|
2239
2239
|
if (s && s !== p) {
|
|
2240
2240
|
var f = K;
|
|
2241
|
-
i(s) !== !1 ? (
|
|
2241
|
+
i(s) !== !1 ? (M(s, m.swapClass, !0), K = s) : K = null, f && f !== K && M(f, m.swapClass, !1);
|
|
2242
2242
|
}
|
|
2243
2243
|
l(), a(!0), c();
|
|
2244
2244
|
}
|
|
2245
2245
|
},
|
|
2246
2246
|
drop: function(n) {
|
|
2247
2247
|
var a = n.activeSortable, s = n.putSortable, i = n.dragEl, r = s || this.sortable, l = this.options;
|
|
2248
|
-
K &&
|
|
2248
|
+
K && M(K, l.swapClass, !1), K && (l.swap || s && s.options.swap) && i !== K && (r.captureAnimationState(), r !== a && a.captureAnimationState(), Es(i, K), r.animateAll(), r !== a && a.animateAll());
|
|
2249
2249
|
},
|
|
2250
2250
|
nulling: function() {
|
|
2251
2251
|
K = null;
|
|
@@ -2261,9 +2261,9 @@ function ks() {
|
|
|
2261
2261
|
}
|
|
2262
2262
|
function Es(e, t) {
|
|
2263
2263
|
var n = e.parentNode, a = t.parentNode, s, i;
|
|
2264
|
-
!n || !a || n.isEqualNode(t) || a.isEqualNode(e) || (s =
|
|
2264
|
+
!n || !a || n.isEqualNode(t) || a.isEqualNode(e) || (s = F(e), i = F(t), n.isEqualNode(a) && s < i && i++, n.insertBefore(t, n.children[s]), a.insertBefore(e, a.children[i]));
|
|
2265
2265
|
}
|
|
2266
|
-
var w = [], Y = [],
|
|
2266
|
+
var w = [], Y = [], Le, ne, ze = !1, V = !1, Oe = !1, $, je, it;
|
|
2267
2267
|
function Ss() {
|
|
2268
2268
|
function e(t) {
|
|
2269
2269
|
for (var n in this)
|
|
@@ -2294,17 +2294,17 @@ function Ss() {
|
|
|
2294
2294
|
var a = n.sortable, s = n.cancel;
|
|
2295
2295
|
if (this.isMultiDrag) {
|
|
2296
2296
|
for (var i = 0; i < w.length; i++)
|
|
2297
|
-
Y.push(yn(w[i])), Y[i].sortableIndex = w[i].sortableIndex, Y[i].draggable = !1, Y[i].style["will-change"] = "",
|
|
2297
|
+
Y.push(yn(w[i])), Y[i].sortableIndex = w[i].sortableIndex, Y[i].draggable = !1, Y[i].style["will-change"] = "", M(Y[i], this.options.selectedClass, !1), w[i] === $ && M(Y[i], this.options.chosenClass, !1);
|
|
2298
2298
|
a._hideClone(), s();
|
|
2299
2299
|
}
|
|
2300
2300
|
},
|
|
2301
2301
|
clone: function(n) {
|
|
2302
2302
|
var a = n.sortable, s = n.rootEl, i = n.dispatchSortableEvent, r = n.cancel;
|
|
2303
|
-
this.isMultiDrag && (this.options.removeCloneOnHide || w.length && ne === a && (
|
|
2303
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || w.length && ne === a && (Mn(!0, s), i("clone"), r()));
|
|
2304
2304
|
},
|
|
2305
2305
|
showClone: function(n) {
|
|
2306
2306
|
var a = n.cloneNowShown, s = n.rootEl, i = n.cancel;
|
|
2307
|
-
this.isMultiDrag && (
|
|
2307
|
+
this.isMultiDrag && (Mn(!1, s), Y.forEach(function(r) {
|
|
2308
2308
|
b(r, "display", "");
|
|
2309
2309
|
}), a(), it = !1, i());
|
|
2310
2310
|
},
|
|
@@ -2316,7 +2316,7 @@ function Ss() {
|
|
|
2316
2316
|
},
|
|
2317
2317
|
dragStartGlobal: function(n) {
|
|
2318
2318
|
!this.isMultiDrag && ne && ne.multiDrag._deselectMultiDrag(), w.forEach(function(a) {
|
|
2319
|
-
a.sortableIndex =
|
|
2319
|
+
a.sortableIndex = F(a);
|
|
2320
2320
|
}), w = w.sort(function(a, s) {
|
|
2321
2321
|
return a.sortableIndex - s.sortableIndex;
|
|
2322
2322
|
}), Oe = !0;
|
|
@@ -2358,18 +2358,18 @@ function Ss() {
|
|
|
2358
2358
|
if (i) {
|
|
2359
2359
|
if (s && r._hideClone(), ze = !1, p.animation && w.length > 1 && (V || !s && !r.options.sort && !c)) {
|
|
2360
2360
|
var m = N($, !1, !0, !0);
|
|
2361
|
-
w.forEach(function(
|
|
2362
|
-
|
|
2361
|
+
w.forEach(function(h) {
|
|
2362
|
+
h !== $ && (In(h, m), l.appendChild(h));
|
|
2363
2363
|
}), V = !0;
|
|
2364
2364
|
}
|
|
2365
2365
|
if (!s)
|
|
2366
2366
|
if (V || st(), w.length > 1) {
|
|
2367
2367
|
var f = it;
|
|
2368
|
-
r._showClone(a), r.options.animation && !it && f && Y.forEach(function(
|
|
2368
|
+
r._showClone(a), r.options.animation && !it && f && Y.forEach(function(h) {
|
|
2369
2369
|
r.addAnimationState({
|
|
2370
|
-
target:
|
|
2370
|
+
target: h,
|
|
2371
2371
|
rect: je
|
|
2372
|
-
}),
|
|
2372
|
+
}), h.fromRect = je, h.thisAnimationDuration = null;
|
|
2373
2373
|
});
|
|
2374
2374
|
} else
|
|
2375
2375
|
r._showClone(a);
|
|
@@ -2391,10 +2391,10 @@ function Ss() {
|
|
|
2391
2391
|
drop: function(n) {
|
|
2392
2392
|
var a = n.originalEvent, s = n.rootEl, i = n.parentEl, r = n.sortable, l = n.dispatchSortableEvent, c = n.oldIndex, p = n.putSortable, m = p || this.sortable;
|
|
2393
2393
|
if (a) {
|
|
2394
|
-
var f = this.options,
|
|
2394
|
+
var f = this.options, h = i.children;
|
|
2395
2395
|
if (!Oe)
|
|
2396
|
-
if (f.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(),
|
|
2397
|
-
w.splice(w.indexOf($), 1),
|
|
2396
|
+
if (f.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), M($, f.selectedClass, !~w.indexOf($)), ~w.indexOf($))
|
|
2397
|
+
w.splice(w.indexOf($), 1), Le = null, Ue({
|
|
2398
2398
|
sortable: r,
|
|
2399
2399
|
rootEl: s,
|
|
2400
2400
|
name: "deselect",
|
|
@@ -2408,40 +2408,40 @@ function Ss() {
|
|
|
2408
2408
|
name: "select",
|
|
2409
2409
|
targetEl: $,
|
|
2410
2410
|
originalEvent: a
|
|
2411
|
-
}), a.shiftKey &&
|
|
2412
|
-
var g =
|
|
2411
|
+
}), a.shiftKey && Le && r.el.contains(Le)) {
|
|
2412
|
+
var g = F(Le), y = F($);
|
|
2413
2413
|
if (~g && ~y && g !== y) {
|
|
2414
2414
|
var C, I;
|
|
2415
2415
|
for (y > g ? (I = g, C = y) : (I = y, C = g + 1); I < C; I++)
|
|
2416
|
-
~w.indexOf(
|
|
2416
|
+
~w.indexOf(h[I]) || (M(h[I], f.selectedClass, !0), w.push(h[I]), Ue({
|
|
2417
2417
|
sortable: r,
|
|
2418
2418
|
rootEl: s,
|
|
2419
2419
|
name: "select",
|
|
2420
|
-
targetEl:
|
|
2420
|
+
targetEl: h[I],
|
|
2421
2421
|
originalEvent: a
|
|
2422
2422
|
}));
|
|
2423
2423
|
}
|
|
2424
2424
|
} else
|
|
2425
|
-
|
|
2425
|
+
Le = $;
|
|
2426
2426
|
ne = m;
|
|
2427
2427
|
}
|
|
2428
2428
|
if (Oe && this.isMultiDrag) {
|
|
2429
2429
|
if (V = !1, (i[W].options.sort || i !== s) && w.length > 1) {
|
|
2430
|
-
var
|
|
2431
|
-
if (!ze && f.animation && ($.thisAnimationDuration = null), m.captureAnimationState(), !ze && (f.animation && ($.fromRect =
|
|
2430
|
+
var L = N($), z = F($, ":not(." + this.options.selectedClass + ")");
|
|
2431
|
+
if (!ze && f.animation && ($.thisAnimationDuration = null), m.captureAnimationState(), !ze && (f.animation && ($.fromRect = L, w.forEach(function(T) {
|
|
2432
2432
|
if (T.thisAnimationDuration = null, T !== $) {
|
|
2433
|
-
var ae = V ? N(T) :
|
|
2433
|
+
var ae = V ? N(T) : L;
|
|
2434
2434
|
T.fromRect = ae, m.addAnimationState({
|
|
2435
2435
|
target: T,
|
|
2436
2436
|
rect: ae
|
|
2437
2437
|
});
|
|
2438
2438
|
}
|
|
2439
2439
|
})), st(), w.forEach(function(T) {
|
|
2440
|
-
|
|
2441
|
-
}), c ===
|
|
2440
|
+
h[z] ? i.insertBefore(T, h[z]) : i.appendChild(T), z++;
|
|
2441
|
+
}), c === F($))) {
|
|
2442
2442
|
var q = !1;
|
|
2443
2443
|
w.forEach(function(T) {
|
|
2444
|
-
if (T.sortableIndex !==
|
|
2444
|
+
if (T.sortableIndex !== F(T)) {
|
|
2445
2445
|
q = !0;
|
|
2446
2446
|
return;
|
|
2447
2447
|
}
|
|
@@ -2468,7 +2468,7 @@ function Ss() {
|
|
|
2468
2468
|
if (!(typeof Oe < "u" && Oe) && ne === this.sortable && !(n && Q(n.target, this.options.draggable, this.sortable.el, !1)) && !(n && n.button !== 0))
|
|
2469
2469
|
for (; w.length; ) {
|
|
2470
2470
|
var a = w[0];
|
|
2471
|
-
|
|
2471
|
+
M(a, this.options.selectedClass, !1), w.shift(), Ue({
|
|
2472
2472
|
sortable: this.sortable,
|
|
2473
2473
|
rootEl: this.sortable.el,
|
|
2474
2474
|
name: "deselect",
|
|
@@ -2493,7 +2493,7 @@ function Ss() {
|
|
|
2493
2493
|
*/
|
|
2494
2494
|
select: function(n) {
|
|
2495
2495
|
var a = n.parentNode[W];
|
|
2496
|
-
!a || !a.options.multiDrag || ~w.indexOf(n) || (ne && ne !== a && (ne.multiDrag._deselectMultiDrag(), ne = a),
|
|
2496
|
+
!a || !a.options.multiDrag || ~w.indexOf(n) || (ne && ne !== a && (ne.multiDrag._deselectMultiDrag(), ne = a), M(n, a.options.selectedClass, !0), w.push(n));
|
|
2497
2497
|
},
|
|
2498
2498
|
/**
|
|
2499
2499
|
* Deselects the provided multi-drag item
|
|
@@ -2501,7 +2501,7 @@ function Ss() {
|
|
|
2501
2501
|
*/
|
|
2502
2502
|
deselect: function(n) {
|
|
2503
2503
|
var a = n.parentNode[W], s = w.indexOf(n);
|
|
2504
|
-
!a || !a.options.multiDrag || !~s || (
|
|
2504
|
+
!a || !a.options.multiDrag || !~s || (M(n, a.options.selectedClass, !1), w.splice(s, 1));
|
|
2505
2505
|
}
|
|
2506
2506
|
},
|
|
2507
2507
|
eventProperties: function() {
|
|
@@ -2512,7 +2512,7 @@ function Ss() {
|
|
|
2512
2512
|
index: i.sortableIndex
|
|
2513
2513
|
});
|
|
2514
2514
|
var r;
|
|
2515
|
-
V && i !== $ ? r = -1 : V ? r =
|
|
2515
|
+
V && i !== $ ? r = -1 : V ? r = F(i, ":not(." + n.options.selectedClass + ")") : r = F(i), s.push({
|
|
2516
2516
|
multiDragElement: i,
|
|
2517
2517
|
index: r
|
|
2518
2518
|
});
|
|
@@ -2536,7 +2536,7 @@ function Os(e, t) {
|
|
|
2536
2536
|
s ? t.insertBefore(n, s) : t.appendChild(n);
|
|
2537
2537
|
});
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2539
|
+
function Mn(e, t) {
|
|
2540
2540
|
Y.forEach(function(n, a) {
|
|
2541
2541
|
var s = t.children[n.sortableIndex + (e ? Number(a) : 0)];
|
|
2542
2542
|
s ? t.insertBefore(n, s) : t.appendChild(n);
|
|
@@ -2560,7 +2560,7 @@ var Ts = function(e, t, n, a) {
|
|
|
2560
2560
|
for (var l = e.length - 1; l >= 0; l--)
|
|
2561
2561
|
(r = e[l]) && (i = (s < 3 ? r(i) : s > 3 ? r(t, n, i) : r(t, n)) || i);
|
|
2562
2562
|
return s > 3 && i && Object.defineProperty(t, n, i), i;
|
|
2563
|
-
},
|
|
2563
|
+
}, Pt = function(e, t) {
|
|
2564
2564
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2565
2565
|
return Reflect.metadata(e, t);
|
|
2566
2566
|
};
|
|
@@ -2697,7 +2697,7 @@ const aa = class {
|
|
|
2697
2697
|
this.formFields = this.formFields.map((a, s) => (s === e && (a.options || (a.options = []), a.options = a.options.map((i, r) => (r === t && (i = n.detail.value), i))), a));
|
|
2698
2698
|
}
|
|
2699
2699
|
render() {
|
|
2700
|
-
return o(O, { key: "890a8dc51e6aee455ce2eec3b1b9e534122e87e1" }, o("div", { key: "a6d477428eb9851402cadbe384fd5dc7a0a7788b", class: "nylas-booking-form-config", part: "nbfc" }, o("div", { key: "4fa905aa07838ab99c01d20f2e8f809a24328059", class: "header", part: "nbfc__header" }, o("div", { key: "33b8980d3927d1aa717aade3f6e1e3f3b099feab", class: "header_text" }, o("h3", { key: "2381bd7f07124b653aac4542946585357d1eecd5" }, "Booking form"), o("p", { key: "a57f318250af040f150df4fe6cf02f299250da74" }, "Add custom fields to the booking form.")), o("div", { key: "7297904e841d80bdc38a22605427234bf69c15b3", class: "header_action" }, o("select-dropdown", { key: "fed774ace8a8d000a51228c32100597035c01cb0", 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:
|
|
2700
|
+
return o(O, { key: "890a8dc51e6aee455ce2eec3b1b9e534122e87e1" }, o("div", { key: "a6d477428eb9851402cadbe384fd5dc7a0a7788b", class: "nylas-booking-form-config", part: "nbfc" }, o("div", { key: "4fa905aa07838ab99c01d20f2e8f809a24328059", class: "header", part: "nbfc__header" }, o("div", { key: "33b8980d3927d1aa717aade3f6e1e3f3b099feab", class: "header_text" }, o("h3", { key: "2381bd7f07124b653aac4542946585357d1eecd5" }, "Booking form"), o("p", { key: "a57f318250af040f150df4fe6cf02f299250da74" }, "Add custom fields to the booking form.")), o("div", { key: "7297904e841d80bdc38a22605427234bf69c15b3", class: "header_action" }, o("select-dropdown", { key: "fed774ace8a8d000a51228c32100597035c01cb0", 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: Pa, withSearch: !1, withChevron: !1, dropdownButtonText: "Add new field" }, o("span", { key: "4a445ec9df4d27d455e5936a83469df6850ee24f", slot: "select-icon" }, o("plus-icon", { key: "1f5fa764396d7f0ecc212ed7e2145dee1250eb4c", width: "15", height: "15" }))))), o("div", { key: "f2384ca1eef8e9b50176ca6a23ed018dba95190e", class: "content" }, o("div", { key: "6ce505f1753086e43ac25e188a63b4319282f33d", id: "fields", class: "additional_fields", part: "nbfc__additional_fields" }, this.formFields.map((e, t) => o("div", { class: `form-field draggable ${e.readonly && "fixed"}`, part: "nbfc__form_field", key: t }, 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, e.label), o("p", null, e.typeLabel)), o("div", { class: "form-field_header_actions" }, o("span", { class: "is-required" }, e.required ? "Required" : "Optional"), !e.readonly && o("button", { onClick: () => {
|
|
2701
2701
|
this.fieldRemove(t);
|
|
2702
2702
|
} }, o("close-icon", null)), o("span", { class: `chevron ${e.isOpen ? "open" : "closed"}`, onClick: () => {
|
|
2703
2703
|
this.fieldToggle(t);
|
|
@@ -2728,9 +2728,9 @@ Ts([
|
|
|
2728
2728
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
2729
2729
|
fireRegisterEvent: !0
|
|
2730
2730
|
}),
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2731
|
+
Pt("design:type", Function),
|
|
2732
|
+
Pt("design:paramtypes", []),
|
|
2733
|
+
Pt("design:returntype", void 0)
|
|
2734
2734
|
], aa.prototype, "render", null);
|
|
2735
2735
|
aa.style = Hs;
|
|
2736
2736
|
const Is = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{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}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{display:flex;gap:4px;align-items:center;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-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;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-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__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}', $s = Is;
|
|
@@ -2742,7 +2742,7 @@ var Ns = function(e, t, n, a) {
|
|
|
2742
2742
|
for (var l = e.length - 1; l >= 0; l--)
|
|
2743
2743
|
(r = e[l]) && (i = (s < 3 ? r(i) : s > 3 ? r(t, n, i) : r(t, n)) || i);
|
|
2744
2744
|
return s > 3 && i && Object.defineProperty(t, n, i), i;
|
|
2745
|
-
},
|
|
2745
|
+
}, Mt = function(e, t) {
|
|
2746
2746
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2747
2747
|
return Reflect.metadata(e, t);
|
|
2748
2748
|
};
|
|
@@ -2814,20 +2814,20 @@ const ia = class {
|
|
|
2814
2814
|
const { fullSlots: r, partialFillHeight: l } = a(this.selectedBeforeBufferTime);
|
|
2815
2815
|
return Array.from({ length: 4 }, (c, p) => {
|
|
2816
2816
|
const m = this.selectedBeforeBufferTime > 0 && p > 4 - r - 1, f = this.selectedBeforeBufferTime > 0 && p === 4 - r - 1 && l > 0;
|
|
2817
|
-
let
|
|
2818
|
-
return m && !f ?
|
|
2817
|
+
let h = {};
|
|
2818
|
+
return m && !f ? h.backgroundColor = "var(--nylas-base-100)" : f && (h.background = `linear-gradient(to top, var(--nylas-base-100) ${l}px, transparent 0)`), o("div", { key: p, class: `slot ${m ? "active" : ""}`, style: {
|
|
2819
2819
|
height: "10px",
|
|
2820
|
-
...
|
|
2820
|
+
...h
|
|
2821
2821
|
} });
|
|
2822
2822
|
});
|
|
2823
2823
|
}, i = () => {
|
|
2824
2824
|
const { fullSlots: r, partialFillHeight: l } = a(this.selectedAfterBufferTime);
|
|
2825
2825
|
return Array.from({ length: 4 }, (c, p) => {
|
|
2826
2826
|
const m = this.selectedAfterBufferTime > 0 && p < r, f = p === r && l > 0;
|
|
2827
|
-
let
|
|
2828
|
-
return m && !f ?
|
|
2827
|
+
let h = {};
|
|
2828
|
+
return m && !f ? h.backgroundColor = "var(--nylas-base-100)" : f && (h.background = `linear-gradient(to bottom, var(--nylas-base-100) ${l}px, transparent 0)`), o("div", { key: p, class: `slot ${m ? "active" : ""}`, style: {
|
|
2829
2829
|
height: "10px",
|
|
2830
|
-
...
|
|
2830
|
+
...h
|
|
2831
2831
|
} });
|
|
2832
2832
|
});
|
|
2833
2833
|
};
|
|
@@ -2868,13 +2868,13 @@ Ns([
|
|
|
2868
2868
|
},
|
|
2869
2869
|
fireRegisterEvent: !0
|
|
2870
2870
|
}),
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2871
|
+
Mt("design:type", Function),
|
|
2872
|
+
Mt("design:paramtypes", []),
|
|
2873
|
+
Mt("design:returntype", void 0)
|
|
2874
2874
|
], ia.prototype, "render", null);
|
|
2875
2875
|
ia.style = $s;
|
|
2876
|
-
const
|
|
2877
|
-
var
|
|
2876
|
+
const As = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-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-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;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-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_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-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button--error){border:1px solid var(--nylas-error)}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', Ps = As;
|
|
2877
|
+
var Ms = function(e, t, n, a) {
|
|
2878
2878
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
2879
2879
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2880
2880
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -2882,7 +2882,7 @@ var Rs = function(e, t, n, a) {
|
|
|
2882
2882
|
for (var l = e.length - 1; l >= 0; l--)
|
|
2883
2883
|
(r = e[l]) && (i = (s < 3 ? r(i) : s > 3 ? r(t, n, i) : r(t, n)) || i);
|
|
2884
2884
|
return s > 3 && i && Object.defineProperty(t, n, i), i;
|
|
2885
|
-
},
|
|
2885
|
+
}, Rt = function(e, t) {
|
|
2886
2886
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2887
2887
|
return Reflect.metadata(e, t);
|
|
2888
2888
|
};
|
|
@@ -2949,7 +2949,7 @@ const sa = class {
|
|
|
2949
2949
|
};
|
|
2950
2950
|
}
|
|
2951
2951
|
};
|
|
2952
|
-
|
|
2952
|
+
Ms([
|
|
2953
2953
|
H({
|
|
2954
2954
|
name: "nylas-calendar-picker",
|
|
2955
2955
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.currentUser", "currentUser"]]),
|
|
@@ -2961,13 +2961,13 @@ Rs([
|
|
|
2961
2961
|
},
|
|
2962
2962
|
fireRegisterEvent: !0
|
|
2963
2963
|
}),
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2964
|
+
Rt("design:type", Function),
|
|
2965
|
+
Rt("design:paramtypes", []),
|
|
2966
|
+
Rt("design:returntype", void 0)
|
|
2967
2967
|
], sa.prototype, "render", null);
|
|
2968
|
-
sa.style =
|
|
2969
|
-
const
|
|
2970
|
-
var
|
|
2968
|
+
sa.style = Ps;
|
|
2969
|
+
const Rs = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-cancellation-policy{display:flex;flex-direction:column;gap:4px}.nylas-cancellation-policy label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-cancellation-policy label span.label-icon{margin-left:4px}.nylas-cancellation-policy label span.label-icon tooltip-component{display:flex}.nylas-cancellation-policy textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-cancellation-policy textarea::-webkit-resizer{display:none}', Fs = Rs;
|
|
2970
|
+
var Ls = function(e, t, n, a) {
|
|
2971
2971
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
2972
2972
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
2973
2973
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -2975,7 +2975,7 @@ var Fs = function(e, t, n, a) {
|
|
|
2975
2975
|
for (var l = e.length - 1; l >= 0; l--)
|
|
2976
2976
|
(r = e[l]) && (i = (s < 3 ? r(i) : s > 3 ? r(t, n, i) : r(t, n)) || i);
|
|
2977
2977
|
return s > 3 && i && Object.defineProperty(t, n, i), i;
|
|
2978
|
-
},
|
|
2978
|
+
}, Ft = function(e, t) {
|
|
2979
2979
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
2980
2980
|
return Reflect.metadata(e, t);
|
|
2981
2981
|
};
|
|
@@ -3022,18 +3022,18 @@ const oa = class {
|
|
|
3022
3022
|
};
|
|
3023
3023
|
}
|
|
3024
3024
|
};
|
|
3025
|
-
|
|
3025
|
+
Ls([
|
|
3026
3026
|
H({
|
|
3027
3027
|
name: "nylas-cancellation-policy",
|
|
3028
3028
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
3029
3029
|
eventToProps: {},
|
|
3030
3030
|
fireRegisterEvent: !0
|
|
3031
3031
|
}),
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3032
|
+
Ft("design:type", Function),
|
|
3033
|
+
Ft("design:paramtypes", []),
|
|
3034
|
+
Ft("design:returntype", void 0)
|
|
3035
3035
|
], oa.prototype, "render", null);
|
|
3036
|
-
oa.style =
|
|
3036
|
+
oa.style = Fs;
|
|
3037
3037
|
const zs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-confirmation-email{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}.nylas-confirmation-email .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-confirmation-email .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .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-confirmation-email .header .confirmation-email-toggle{display:flex;gap:24px;align-items:center}.nylas-confirmation-email .header .confirmation-email-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-confirmation-email .header .confirmation-email-toggle .chevron:hover,.nylas-confirmation-email .header .confirmation-email-toggle .chevron:active{color:var(--nylas-primary)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.open{transform:rotate(90deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.closed{transform:rotate(270deg)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-confirmation-email .header .confirmation-email-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body{grid-template-columns:1fr}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section{border:none}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row.full-width-col{grid-template-columns:1fr;border-top:1px solid var(--nylas-base-200);padding-top:1.25rem;margin:0.25rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label{display:flex;align-items:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon{margin-left:4px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row label span.label-icon tooltip-component{display:flex}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container{display:flex;gap:32px;width:100%}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .input-container{display:flex;flex-direction:column;flex:1}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo{display:flex;justify-content:center;align-items:center;width:200px;height:100px;border:var(--nylas-base-200) solid 1px;border-radius:var(--nylas-border-radius-2x);overflow:hidden;padding:10px}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row .company-logo-container .company-logo img{max-height:100%;max-width:100%;object-fit:contain;object-position:center}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .nylas-confirmation-email__row span.selected-value{font-weight:500}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container{display:flex;flex-direction:column;gap:0.25rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__section .subsection .input-container textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container{padding:0 2rem 1rem}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body .nylas-confirmation-email__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-confirmation-email .nylas-confirmation-email__body span.error-message{color:var(--nylas-error)}.nylas-confirmation-email .nylas-confirmation-email__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-confirmation-email .nylas-confirmation-email__summary{padding:0.75rem 1rem;display:grid;grid-template-columns:auto 1fr;column-gap:1rem}.nylas-confirmation-email .nylas-confirmation-email__summary p{margin:0;display:flex;align-items:center;column-gap:4px;font-size:0.875rem;font-weight:400;line-height:21px;color:var(--nylas-base-600);text-align:left}.nylas-confirmation-email .nylas-confirmation-email__summary p span.summary-icon{display:flex;justify-content:center;min-width:20px}sp-divider{background-color:var(--nylas-base-200);height:1px;margin:0.25rem 0}', js = zs;
|
|
3038
3038
|
var Us = function(e, t, n, a) {
|
|
3039
3039
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
@@ -3043,7 +3043,7 @@ var Us = function(e, t, n, a) {
|
|
|
3043
3043
|
for (var l = e.length - 1; l >= 0; l--)
|
|
3044
3044
|
(r = e[l]) && (i = (s < 3 ? r(i) : s > 3 ? r(t, n, i) : r(t, n)) || i);
|
|
3045
3045
|
return s > 3 && i && Object.defineProperty(t, n, i), i;
|
|
3046
|
-
},
|
|
3046
|
+
}, Lt = function(e, t) {
|
|
3047
3047
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3048
3048
|
return Reflect.metadata(e, t);
|
|
3049
3049
|
};
|
|
@@ -3127,9 +3127,9 @@ Us([
|
|
|
3127
3127
|
},
|
|
3128
3128
|
fireRegisterEvent: !0
|
|
3129
3129
|
}),
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3130
|
+
Lt("design:type", Function),
|
|
3131
|
+
Lt("design:paramtypes", []),
|
|
3132
|
+
Lt("design:returntype", void 0)
|
|
3133
3133
|
], ra.prototype, "render", null);
|
|
3134
3134
|
ra.style = js;
|
|
3135
3135
|
const Bs = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-connected-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-connected-calendars .header{padding:1rem}.nylas-connected-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-connected-calendars .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-connected-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-connected-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-connected-calendars .content .participant-container .participant-title p{margin:0}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-connected-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-calendar-picker::part(ncp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', Ws = Bs;
|
|
@@ -3171,20 +3171,20 @@ const la = class {
|
|
|
3171
3171
|
var i, r, l, c;
|
|
3172
3172
|
const n = e == null ? void 0 : e.find((p) => p.is_organizer), a = ((l = (r = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : l.availability_method) !== "collective", s = {};
|
|
3173
3173
|
if (t) {
|
|
3174
|
-
const p = e == null ? void 0 : e.filter((f) => t.some((
|
|
3174
|
+
const p = e == null ? void 0 : e.filter((f) => t.some((h) => h.email === f.email)), m = e == null ? void 0 : e.filter((f) => !t.some((h) => h.email === f.email));
|
|
3175
3175
|
p == null || p.forEach((f) => {
|
|
3176
3176
|
var y, C, I;
|
|
3177
|
-
const
|
|
3178
|
-
if (!
|
|
3177
|
+
const h = t == null ? void 0 : t.find((L) => L.email === f.email);
|
|
3178
|
+
if (!h)
|
|
3179
3179
|
return;
|
|
3180
3180
|
this.participantDefaultSelectedCalendars[f.email] = ((y = f.availability) == null ? void 0 : y.calendar_ids) || [];
|
|
3181
|
-
const g =
|
|
3182
|
-
(I = (C = f.availability) == null ? void 0 : C.calendar_ids) == null || I.forEach((
|
|
3183
|
-
!(g != null && g.some((z) => z.id ===
|
|
3181
|
+
const g = h.calendars ?? [];
|
|
3182
|
+
(I = (C = f.availability) == null ? void 0 : C.calendar_ids) == null || I.forEach((L) => {
|
|
3183
|
+
!(g != null && g.some((z) => z.id === L)) && L !== "primary" && g.push({ id: L, name: L });
|
|
3184
3184
|
}), s[f.email] = g;
|
|
3185
3185
|
}), a && (m == null || m.forEach((f) => {
|
|
3186
|
-
var
|
|
3187
|
-
(
|
|
3186
|
+
var h, g, y, C;
|
|
3187
|
+
(h = f == null ? void 0 : f.availability) != null && h.calendar_ids && ((y = (g = f == null ? void 0 : f.availability) == null ? void 0 : g.calendar_ids) == null ? void 0 : y.length) > 0 && !f.is_organizer && (s[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendars[f.email] = ((C = f.availability) == null ? void 0 : C.calendar_ids) || []);
|
|
3188
3188
|
}));
|
|
3189
3189
|
}
|
|
3190
3190
|
return n && (s[n.email] = this.calendars ?? [{ id: "primary", name: n.email }], this.participantDefaultSelectedCalendars[n.email] = ((c = n.availability) == null ? void 0 : c.calendar_ids) || []), s;
|
|
@@ -3304,7 +3304,7 @@ const da = class {
|
|
|
3304
3304
|
d("nylas-custom-booking-flow", "componentWillLoad");
|
|
3305
3305
|
}
|
|
3306
3306
|
componentDidLoad() {
|
|
3307
|
-
d("nylas-custom-booking-flow", "componentDidLoad"),
|
|
3307
|
+
d("nylas-custom-booking-flow", "componentDidLoad"), hn(["inputs"], this.el);
|
|
3308
3308
|
}
|
|
3309
3309
|
render() {
|
|
3310
3310
|
return o(O, { key: "d9e4b13338b50f21575a7c7f0fba18a5b2828fe8", part: "ncbflow" }, o("nylas-form-card", { key: "1f53c24698354fbf45ecd67ac24f690e36133cca", exportparts: "nfc__header: ncbflow__header" }, o("h1", { key: "680813d1aaf33014732e8cf3038a27f4ab4bd607", slot: "header-title", class: "nylas-custom-booking-flow__title", part: "ncbflow__title" }, "Custom booking flow"), o("div", { key: "2da6f6587e05e65cd1e2b35718168f665c3348c1", slot: "content", class: "nylas-custom-booking-flow__content", part: "ncbflow__content" }, o("slot", { key: "73937227f3a398779b0d1c97e525ca0bec593d85", name: "inputs" }))));
|
|
@@ -3327,7 +3327,7 @@ Vs([
|
|
|
3327
3327
|
jt("design:returntype", void 0)
|
|
3328
3328
|
], da.prototype, "render", null);
|
|
3329
3329
|
da.style = Gs;
|
|
3330
|
-
const Js = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}.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:1rem;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:1rem;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:1rem;height:auto;padding-left:0px}.nylas-custom-event-slug .nylas-custom-event-slug__input-wrapper .prefix{z-index:
|
|
3330
|
+
const Js = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;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}.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:1rem;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:1rem;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:1rem;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}', Ys = Js;
|
|
3331
3331
|
var Xs = function(e, t, n, a) {
|
|
3332
3332
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
3333
3333
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -3654,11 +3654,14 @@ const ma = class {
|
|
|
3654
3654
|
d("nylas-event-duration", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
3655
3655
|
}
|
|
3656
3656
|
componentDidLoad() {
|
|
3657
|
-
d("nylas-event-duration", "componentDidLoad"), this.selectedConfiguration && this.selectedConfigurationChangedHandler(this.selectedConfiguration), this.duration = this.duration ? this.duration : this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = this.durationMinutes ? this.durationMinutes : this.duration ? this.duration : 30, this.durationIncrement = this.durationIncrement ? this.durationIncrement : this.duration >= 60 ? 60 : 1, this.setDurationMintueOptions(),
|
|
3657
|
+
d("nylas-event-duration", "componentDidLoad"), this.selectedConfiguration && this.selectedConfigurationChangedHandler(this.selectedConfiguration), this.duration = this.duration ? this.duration : this.eventDurationMinutes ? this.eventDurationMinutes >= 60 ? this.eventDurationMinutes / 60 : this.eventDurationMinutes : 30, this.durationMinutes = this.durationMinutes ? this.durationMinutes : this.duration ? this.duration : 30, this.durationIncrement = this.durationIncrement ? this.durationIncrement : this.duration >= 60 ? 60 : 1, this.setDurationMintueOptions(), this.isInternalsAvailable && this.internals.setFormValue(this.durationMinutes.toString(), "duration");
|
|
3658
3658
|
}
|
|
3659
3659
|
disconnectedCallback() {
|
|
3660
3660
|
d("nylas-event-duration", "disconnectedCallback");
|
|
3661
3661
|
}
|
|
3662
|
+
get isInternalsAvailable() {
|
|
3663
|
+
return typeof this.internals < "u" && typeof this.internals.setFormValue == "function";
|
|
3664
|
+
}
|
|
3662
3665
|
setDurationMintueOptions() {
|
|
3663
3666
|
return this.durationIncrement === 1 ? this.durationMinutesOptions = [
|
|
3664
3667
|
{ value: 15, label: "15" },
|
|
@@ -3668,24 +3671,24 @@ const ma = class {
|
|
|
3668
3671
|
] : this.durationMinutesOptions = Array.from({ length: 23 }, (e, t) => ({ value: t + 1, label: (t + 1).toString() })), this.durationMinutesOptions;
|
|
3669
3672
|
}
|
|
3670
3673
|
handleChange(e) {
|
|
3671
|
-
this.duration = e.target.value, this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), this.name);
|
|
3674
|
+
this.duration = e.target.value, this.durationMinutes = this.duration * this.durationIncrement, this.isInternalsAvailable && this.internals.setFormValue(this.durationMinutes.toString(), this.name);
|
|
3672
3675
|
}
|
|
3673
3676
|
nylasFormDropdownChangedHandler(e) {
|
|
3674
3677
|
d("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
|
|
3675
3678
|
const { value: t } = e.detail;
|
|
3676
|
-
this.durationIncrement = parseInt(t), this.durationIncrement === 1 ? this.duration = 60 : this.duration = 1, this.setDurationMintueOptions(), this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), "duration");
|
|
3679
|
+
this.durationIncrement = parseInt(t), this.durationIncrement === 1 ? this.duration = 60 : this.duration = 1, this.setDurationMintueOptions(), this.durationMinutes = this.duration * this.durationIncrement, this.isInternalsAvailable && this.internals.setFormValue(this.durationMinutes.toString(), "duration");
|
|
3677
3680
|
}
|
|
3678
3681
|
inputOptionChangedHandler(e) {
|
|
3679
3682
|
d("nylas-calendar-picker", "inputOptionChangedHandler", e.detail);
|
|
3680
3683
|
const { value: t } = e.detail;
|
|
3681
|
-
this.duration = t, this.durationMinutes = this.duration * this.durationIncrement, this.internals.setFormValue(this.durationMinutes.toString(), this.name);
|
|
3684
|
+
this.duration = t, this.durationMinutes = this.duration * this.durationIncrement, this.isInternalsAvailable && this.internals.setFormValue(this.durationMinutes.toString(), this.name);
|
|
3682
3685
|
}
|
|
3683
3686
|
render() {
|
|
3684
3687
|
const e = [
|
|
3685
3688
|
{ value: 1, label: "minute" },
|
|
3686
3689
|
{ value: 60, label: "hour" }
|
|
3687
3690
|
];
|
|
3688
|
-
return o(O, { key: "
|
|
3691
|
+
return o(O, { key: "1adc90cea268f59367799f9b78b5992ab95b386d" }, o("div", { key: "07ca38db472af195562d3f4b723c7d00edb56fd7", class: "nylas-event-duration", part: "ned" }, o("label", { key: "abc1a70c4eb9a1eba85d19927e1dacb09d087d87", htmlFor: "duration" }, "Event duration", o("span", { key: "33db05770130ded9699b2375d81f18242c154ad7", class: "required" }, "*")), o("div", { key: "1c421a1b266abbc23ecab61173e67f9c5ad31d67", class: "nylas-event-duration__wrapper" }, o("input-dropdown", { key: "d2bc9227dd93a6ab334d653fabaefdb8b1655c44", 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((t) => t.value == this.duration) }), this.durationIncrement && o("select-dropdown", { name: "event-duration", options: e, pluralizedLabel: this.duration > 1 ? "s" : "", exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: e.find((t) => t.value == this.durationIncrement), withSearch: !1 }))));
|
|
3689
3692
|
}
|
|
3690
3693
|
static get formAssociated() {
|
|
3691
3694
|
return !0;
|
|
@@ -3726,7 +3729,7 @@ var co = function(e, t, n, a) {
|
|
|
3726
3729
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3727
3730
|
return Reflect.metadata(e, t);
|
|
3728
3731
|
};
|
|
3729
|
-
const
|
|
3732
|
+
const ha = class {
|
|
3730
3733
|
constructor(e) {
|
|
3731
3734
|
v(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
3732
3735
|
}
|
|
@@ -3737,7 +3740,7 @@ const ua = class {
|
|
|
3737
3740
|
d("nylas-event-info", "componentWillLoad");
|
|
3738
3741
|
}
|
|
3739
3742
|
componentDidLoad() {
|
|
3740
|
-
d("nylas-event-info", "componentDidLoad"),
|
|
3743
|
+
d("nylas-event-info", "componentDidLoad"), hn(["inputs"], this.el);
|
|
3741
3744
|
}
|
|
3742
3745
|
disconnectedCallback() {
|
|
3743
3746
|
d("nylas-event-info", "disconnectedCallback");
|
|
@@ -3761,8 +3764,8 @@ co([
|
|
|
3761
3764
|
qt("design:type", Function),
|
|
3762
3765
|
qt("design:paramtypes", []),
|
|
3763
3766
|
qt("design:returntype", void 0)
|
|
3764
|
-
],
|
|
3765
|
-
|
|
3767
|
+
], ha.prototype, "render", null);
|
|
3768
|
+
ha.style = lo;
|
|
3766
3769
|
const po = ':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.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}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}', fo = po;
|
|
3767
3770
|
var mo = function(e, t, n, a) {
|
|
3768
3771
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
@@ -3776,7 +3779,7 @@ var mo = function(e, t, n, a) {
|
|
|
3776
3779
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
3777
3780
|
return Reflect.metadata(e, t);
|
|
3778
3781
|
};
|
|
3779
|
-
const
|
|
3782
|
+
const ua = class {
|
|
3780
3783
|
constructor(e) {
|
|
3781
3784
|
v(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals);
|
|
3782
3785
|
}
|
|
@@ -3787,7 +3790,7 @@ const ha = class {
|
|
|
3787
3790
|
d("nylas-event-limits", "componentWillLoad");
|
|
3788
3791
|
}
|
|
3789
3792
|
componentDidLoad() {
|
|
3790
|
-
d("nylas-event-limits", "componentDidLoad"),
|
|
3793
|
+
d("nylas-event-limits", "componentDidLoad"), hn(["inputs"], this.el);
|
|
3791
3794
|
}
|
|
3792
3795
|
disconnectedCallback() {
|
|
3793
3796
|
d("nylas-event-limits", "disconnectedCallback");
|
|
@@ -3811,9 +3814,9 @@ mo([
|
|
|
3811
3814
|
Gt("design:type", Function),
|
|
3812
3815
|
Gt("design:paramtypes", []),
|
|
3813
3816
|
Gt("design:returntype", void 0)
|
|
3814
|
-
],
|
|
3815
|
-
|
|
3816
|
-
const
|
|
3817
|
+
], ua.prototype, "render", null);
|
|
3818
|
+
ua.style = fo;
|
|
3819
|
+
const ho = ':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}', uo = ho;
|
|
3817
3820
|
var yo = function(e, t, n, a) {
|
|
3818
3821
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
3819
3822
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -3902,7 +3905,7 @@ const De = {
|
|
|
3902
3905
|
}
|
|
3903
3906
|
}
|
|
3904
3907
|
setDefaultLocationOption(e, t) {
|
|
3905
|
-
return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ?
|
|
3908
|
+
return e != null && (e == null ? void 0 : e.provider) != null && (e == null ? void 0 : e.autocreate) != null ? Ma[e == null ? void 0 : e.provider] : t ? "custom" : "none";
|
|
3906
3909
|
}
|
|
3907
3910
|
setDefaultGrantID(e) {
|
|
3908
3911
|
var t;
|
|
@@ -3986,7 +3989,7 @@ yo([
|
|
|
3986
3989
|
Vt("design:paramtypes", []),
|
|
3987
3990
|
Vt("design:returntype", void 0)
|
|
3988
3991
|
], ya.prototype, "render", null);
|
|
3989
|
-
ya.style =
|
|
3992
|
+
ya.style = uo;
|
|
3990
3993
|
const bo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);border-width:2px;outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{display:flex;gap:4px;align-items:center;color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}', go = bo;
|
|
3991
3994
|
var vo = function(e, t, n, a) {
|
|
3992
3995
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
@@ -4060,11 +4063,11 @@ const ba = class {
|
|
|
4060
4063
|
getCurrentSelectionForBrowser() {
|
|
4061
4064
|
var a, s, i;
|
|
4062
4065
|
const e = (r, l, c, p) => {
|
|
4063
|
-
const m = r.replace(/[\u200B-\u200D\uFEFF]/g, ""), f = m.lastIndexOf("$"),
|
|
4066
|
+
const m = r.replace(/[\u200B-\u200D\uFEFF]/g, ""), f = m.lastIndexOf("$"), h = m.substring(f).split(" ")[0];
|
|
4064
4067
|
return {
|
|
4065
4068
|
focusOffset: l,
|
|
4066
4069
|
dollarIndex: f,
|
|
4067
|
-
lastWord:
|
|
4070
|
+
lastWord: h,
|
|
4068
4071
|
currentText: m,
|
|
4069
4072
|
node: c,
|
|
4070
4073
|
allSelected: p
|
|
@@ -4073,13 +4076,13 @@ const ba = class {
|
|
|
4073
4076
|
var l, c;
|
|
4074
4077
|
return r.anchorOffset === 0 && r.focusOffset === ((c = (l = r.focusNode) == null ? void 0 : l.nodeValue) == null ? void 0 : c.length);
|
|
4075
4078
|
};
|
|
4076
|
-
switch (
|
|
4079
|
+
switch (Aa()) {
|
|
4077
4080
|
case "Chrome":
|
|
4078
4081
|
const r = (a = this.host.shadowRoot) == null ? void 0 : a.getSelection(), l = r == null ? void 0 : r.focusNode, c = (l == null ? void 0 : l.nodeValue) || "", p = r && t(r);
|
|
4079
4082
|
return e(c, (r == null ? void 0 : r.focusOffset) || -1, l, p);
|
|
4080
4083
|
case "Firefox":
|
|
4081
|
-
const m = document.getSelection(), f = ((s = m == null ? void 0 : m.anchorNode) == null ? void 0 : s.nodeValue) || "",
|
|
4082
|
-
return e(f, (m == null ? void 0 : m.focusOffset) || -1, m == null ? void 0 : m.anchorNode,
|
|
4084
|
+
const m = document.getSelection(), f = ((s = m == null ? void 0 : m.anchorNode) == null ? void 0 : s.nodeValue) || "", h = m && t(m);
|
|
4085
|
+
return e(f, (m == null ? void 0 : m.focusOffset) || -1, m == null ? void 0 : m.anchorNode, h);
|
|
4083
4086
|
case "Safari":
|
|
4084
4087
|
const g = window.getSelection(), y = g == null ? void 0 : g.getComposedRanges(this.host.shadowRoot)[0], C = ((i = y == null ? void 0 : y.startContainer) == null ? void 0 : i.nodeValue) || "", I = g && t(g);
|
|
4085
4088
|
return e(C, (y == null ? void 0 : y.endOffset) || -1, y == null ? void 0 : y.startContainer, I);
|
|
@@ -4144,8 +4147,8 @@ const ba = class {
|
|
|
4144
4147
|
let s = this.titleRef.firstChild, i = null;
|
|
4145
4148
|
for (; s; ) {
|
|
4146
4149
|
if (s.nodeType === 3) {
|
|
4147
|
-
const I = ((C = s.textContent) == null ? void 0 : C.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "",
|
|
4148
|
-
if (I.includes(
|
|
4150
|
+
const I = ((C = s.textContent) == null ? void 0 : C.replace(/[\u200B-\u200D\uFEFF]/g, "")) || "", L = n.replace(/[\u200B-\u200D\uFEFF]/g, "");
|
|
4151
|
+
if (I.includes(L)) {
|
|
4149
4152
|
i = s;
|
|
4150
4153
|
break;
|
|
4151
4154
|
}
|
|
@@ -4154,14 +4157,14 @@ const ba = class {
|
|
|
4154
4157
|
}
|
|
4155
4158
|
if (!i)
|
|
4156
4159
|
return;
|
|
4157
|
-
const r = i.textContent || "", l = r.indexOf(a), c = r.substring(0, l), p = r.substring(l + a.length), m = document.createTextNode(c), f = document.createRange(),
|
|
4158
|
-
|
|
4160
|
+
const r = i.textContent || "", l = r.indexOf(a), c = r.substring(0, l), p = r.substring(l + a.length), m = document.createTextNode(c), f = document.createRange(), h = document.createElement("span");
|
|
4161
|
+
h.classList.add("highlighted-tag"), h.textContent = `${t.value}`;
|
|
4159
4162
|
const g = document.createTextNode(p);
|
|
4160
4163
|
if (p !== "")
|
|
4161
|
-
i.replaceWith(m,
|
|
4164
|
+
i.replaceWith(m, h, g), f.setStart(g, 1);
|
|
4162
4165
|
else {
|
|
4163
4166
|
const I = document.createTextNode("");
|
|
4164
|
-
i.replaceWith(m,
|
|
4167
|
+
i.replaceWith(m, h, I), f.setStart(I, 1);
|
|
4165
4168
|
}
|
|
4166
4169
|
this.resetDropdown(), this.titleRef.focus();
|
|
4167
4170
|
const y = window.getSelection();
|
|
@@ -4510,7 +4513,7 @@ Io([
|
|
|
4510
4513
|
], Ca.prototype, "render", null);
|
|
4511
4514
|
Ca.style = To;
|
|
4512
4515
|
const $o = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-page-name{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}.nylas-page-name .header{padding:1rem;display:grid;grid-template-columns:1fr auto}.nylas-page-name .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-name .header p{display:flex;gap:4px;align-items:center;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-page-name .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-name .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-name .header .drawer-toggle .chevron:hover,.nylas-page-name .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-name .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-name .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-name .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-name .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__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-page-name .nylas-page-name__body{grid-template-columns:1fr}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-page-name .nylas-page-name__body .nylas-page-name__section{border:none}}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row{display:flex;align-items:center;gap:1rem}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label{display:flex;align-items:center}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-name .nylas-page-name__body .nylas-page-name__section .nylas-page-name__row .input-container{width:100%}.nylas-page-name .nylas-page-name__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-page-name .nylas-page-name__input-wrapper:focus{outline-color:var(--nylas-primary)}.nylas-page-name .nylas-page-name__input-wrapper.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}.nylas-page-name .nylas-page-name__input-wrapper.error::placeholder{font-weight:400}.nylas-page-name .nylas-page-name__input-wrapper::placeholder{color:var(--nylas-base-300)}.nylas-page-name .nylas-page-name__input-wrapper input-component::part(ic__input){outline:none;border:none;width:100%;font-size:1rem;height:auto;padding-left:0px}', No = $o;
|
|
4513
|
-
var
|
|
4516
|
+
var Ao = function(e, t, n, a) {
|
|
4514
4517
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
4515
4518
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4516
4519
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4580,7 +4583,7 @@ const wa = class {
|
|
|
4580
4583
|
};
|
|
4581
4584
|
}
|
|
4582
4585
|
};
|
|
4583
|
-
|
|
4586
|
+
Ao([
|
|
4584
4587
|
H({
|
|
4585
4588
|
name: "nylas-page-name",
|
|
4586
4589
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -4597,8 +4600,8 @@ Po([
|
|
|
4597
4600
|
en("design:returntype", void 0)
|
|
4598
4601
|
], wa.prototype, "render", null);
|
|
4599
4602
|
wa.style = No;
|
|
4600
|
-
const
|
|
4601
|
-
var
|
|
4603
|
+
const Po = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-page-styling{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}.nylas-page-styling.no-border{border:none}.nylas-page-styling .header{padding:1rem;display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--nylas-base-200)}.nylas-page-styling .header h3{border-radius:var(--nylas-border-radius-2x);margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .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-page-styling .header .drawer-toggle{display:flex;gap:24px;align-items:center}.nylas-page-styling .header .drawer-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-page-styling .header .drawer-toggle .chevron:hover,.nylas-page-styling .header .drawer-toggle .chevron:active{color:var(--nylas-primary)}.nylas-page-styling .header .drawer-toggle .chevron.open{transform:rotate(90deg)}.nylas-page-styling .header .drawer-toggle .chevron.closed{transform:rotate(270deg)}.nylas-page-styling .header .drawer-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-page-styling .header .drawer-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-page-styling .nylas-page-styling__body{display:grid;grid-template-columns:1fr auto;background-color:var(--nylas-base-25);border-radius:0 0 var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body{grid-template-columns:1fr}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{padding:1rem;display:flex;flex-direction:column;gap:1rem;color:var(--nylas-base-800)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section.no-padding{padding:0}@media screen and (max-width: 768px){.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section{border:none}}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row{display:grid;grid-template-columns:1fr;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label{display:flex;align-items:center}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.required{color:var(--nylas-error, #cc4841)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon{margin-left:4px}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row label span.label-icon tooltip-component{display:flex}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row p{margin:0.25rem 0 0 0;font-size:1rem;font-weight:500;line-height:24px;color:var(--nylas-base-900)}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection{display:flex;flex-direction:column;gap:1rem}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection.hide{display:none}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>*{display:flex;flex-direction:column;column-gap:2rem;row-gap:0.25rem;width:100%;flex:1}.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection .input-container textarea,.nylas-page-styling .nylas-page-styling__body .nylas-page-styling__section .nylas-page-styling__row .subsection>* textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-page-styling .nylas-page-styling__body span.error-message{color:var(--nylas-error)}.nylas-page-styling .nylas-page-styling__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}', Mo = Po;
|
|
4604
|
+
var Ro = function(e, t, n, a) {
|
|
4602
4605
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
4603
4606
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
4604
4607
|
i = Reflect.decorate(e, t, n, a);
|
|
@@ -4772,7 +4775,7 @@ const xa = class {
|
|
|
4772
4775
|
};
|
|
4773
4776
|
}
|
|
4774
4777
|
};
|
|
4775
|
-
|
|
4778
|
+
Ro([
|
|
4776
4779
|
H({
|
|
4777
4780
|
name: "nylas-page-styling",
|
|
4778
4781
|
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.selectedConfiguration", "selectedConfiguration"]]),
|
|
@@ -4788,8 +4791,8 @@ Ao([
|
|
|
4788
4791
|
tn("design:paramtypes", []),
|
|
4789
4792
|
tn("design:returntype", void 0)
|
|
4790
4793
|
], xa.prototype, "render", null);
|
|
4791
|
-
xa.style =
|
|
4792
|
-
const
|
|
4794
|
+
xa.style = Mo;
|
|
4795
|
+
const Fo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-participant-booking-calendars{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .header{padding:1rem}.nylas-participant-booking-calendars .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participant-booking-calendars .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-participant-booking-calendars .content .participant-container{padding-top:12px;border-top:1px solid var(--nylas-base-200)}.nylas-participant-booking-calendars .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 16px}.nylas-participant-booking-calendars .content .participant-container .participant-title p{margin:0}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participant-booking-calendars .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}nylas-booking-calendar-picker::part(nbcp){margin:0;border:none;border-top:1px solid var(--nylas-base-200);border-top-right-radius:0;border-top-left-radius:0}', Lo = Fo;
|
|
4793
4796
|
var zo = function(e, t, n, a) {
|
|
4794
4797
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
4795
4798
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
@@ -4828,18 +4831,18 @@ const ka = class {
|
|
|
4828
4831
|
var i, r, l, c;
|
|
4829
4832
|
const n = e == null ? void 0 : e.find((p) => p.is_organizer), a = {}, s = ((l = (r = (i = this.selectedConfiguration) == null ? void 0 : i.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : l.availability_method) !== "collective";
|
|
4830
4833
|
if (t && s) {
|
|
4831
|
-
const p = e == null ? void 0 : e.filter((f) => t.some((
|
|
4834
|
+
const p = e == null ? void 0 : e.filter((f) => t.some((h) => h.email === f.email)), m = e == null ? void 0 : e.filter((f) => !t.some((h) => h.email === f.email));
|
|
4832
4835
|
p == null || p.forEach((f) => {
|
|
4833
4836
|
var y;
|
|
4834
|
-
const
|
|
4835
|
-
if (!
|
|
4837
|
+
const h = t == null ? void 0 : t.find((C) => C.email === f.email);
|
|
4838
|
+
if (!h)
|
|
4836
4839
|
return;
|
|
4837
4840
|
this.participantDefaultSelectedCalendar[f.email] = ((y = f.booking) == null ? void 0 : y.calendar_id) ?? "primary";
|
|
4838
|
-
const g =
|
|
4841
|
+
const g = h.calendars ?? [];
|
|
4839
4842
|
a[f.email] = g;
|
|
4840
4843
|
}), m == null || m.forEach((f) => {
|
|
4841
|
-
var
|
|
4842
|
-
(
|
|
4844
|
+
var h, g;
|
|
4845
|
+
(h = f == null ? void 0 : f.booking) != null && h.calendar_id && (a[f.email] = this.calendars ?? [{ id: "primary", name: f.email }], this.participantDefaultSelectedCalendar[f.email] = ((g = f == null ? void 0 : f.booking) == null ? void 0 : g.calendar_id) ?? "primary");
|
|
4843
4846
|
});
|
|
4844
4847
|
}
|
|
4845
4848
|
return n && (a[n.email] = this.calendars ?? [{ id: "primary", name: n.email }], this.participantDefaultSelectedCalendar[n.email] = ((c = n == null ? void 0 : n.booking) == null ? void 0 : c.calendar_id) ?? "primary"), a;
|
|
@@ -4932,7 +4935,7 @@ zo([
|
|
|
4932
4935
|
nn("design:paramtypes", []),
|
|
4933
4936
|
nn("design:returntype", void 0)
|
|
4934
4937
|
], ka.prototype, "render", null);
|
|
4935
|
-
ka.style =
|
|
4938
|
+
ka.style = Lo;
|
|
4936
4939
|
const jo = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-participants-custom-availability{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .header{padding:1rem}.nylas-participants-custom-availability .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-participants-custom-availability .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-participants-custom-availability .content .participant-container{padding-top:8px;border-top:1px solid var(--nylas-base-200)}.nylas-participants-custom-availability .content .participant-container .participant-title{display:flex;justify-content:space-between;align-items:center;padding:4px 16px 12px}.nylas-participants-custom-availability .content .participant-container .participant-title p{margin:0}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle{display:flex;gap:24px;align-items:center}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron{display:flex;align-self:center;cursor:pointer}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:hover,.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron:active{color:var(--nylas-primary)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.open{transform:rotate(90deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.closed{transform:rotate(270deg)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled{cursor:not-allowed;color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container .participant-title .participant-toggle .chevron.disabled:hover{color:var(--nylas-base-300)}.nylas-participants-custom-availability .content .participant-container nylas-availability-picker::part(nap){margin:0;border:none}', Uo = jo;
|
|
4937
4940
|
var Bo = function(e, t, n, a) {
|
|
4938
4941
|
var s = arguments.length, i = s < 3 ? t : a === null ? a = Object.getOwnPropertyDescriptor(t, n) : a, r;
|
|
@@ -4977,7 +4980,7 @@ const Ea = class {
|
|
|
4977
4980
|
var n, a, s;
|
|
4978
4981
|
d("nylas-participants-custom-availability", "nylasFormSwitchToggledHandler", e.detail);
|
|
4979
4982
|
const t = ((s = (a = (n = this.selectedConfiguration) == null ? void 0 : n.participants.find((i) => i.email === e.detail.name)) == null ? void 0 : a.availability) == null ? void 0 : s.open_hours) || [];
|
|
4980
|
-
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, 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 :
|
|
4983
|
+
this.selectedParticipants[e.detail.name].isOpen = e.detail.checked, 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 : Rn : [], this.selectedParticipants = { ...this.selectedParticipants }, this.updateFormValue();
|
|
4981
4984
|
}
|
|
4982
4985
|
handleValueChanged(e) {
|
|
4983
4986
|
d("[nylas-editor-tabs]", "handleValueChanged", e);
|
|
@@ -5065,7 +5068,7 @@ var qo = function(e, t, n, a) {
|
|
|
5065
5068
|
const Sa = class {
|
|
5066
5069
|
constructor(e) {
|
|
5067
5070
|
var t, n, a;
|
|
5068
|
-
v(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.selectedConfiguration = void 0, this.name = "reminder-overrides", this.reminders = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.reminders) ?? [], this.reminderErrors = {}, this.participants = ((a = this.selectedConfiguration) == null ? void 0 : a.participants) ?? [];
|
|
5071
|
+
v(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.selectedConfiguration = void 0, this.eventReminders = void 0, this.name = "reminder-overrides", this.reminders = ((n = (t = this.selectedConfiguration) == null ? void 0 : t.event_booking) == null ? void 0 : n.reminders) ?? this.eventReminders ?? [], this.reminderErrors = {}, this.participants = ((a = this.selectedConfiguration) == null ? void 0 : a.participants) ?? [];
|
|
5069
5072
|
}
|
|
5070
5073
|
connectedCallback() {
|
|
5071
5074
|
d("nylas-reminder-emails", "connectedCallback");
|
|
@@ -5077,7 +5080,7 @@ const Sa = class {
|
|
|
5077
5080
|
d("nylas-reminder-emails", "componentWillLoad"), this.host.setAttribute("name", this.name);
|
|
5078
5081
|
}
|
|
5079
5082
|
componentDidLoad() {
|
|
5080
|
-
d("nylas-reminder-emails", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : this.updateRemindersFormValue();
|
|
5083
|
+
d("nylas-reminder-emails", "componentDidLoad"), this.selectedConfiguration ? this.selectedConfigurationChangedHandler(this.selectedConfiguration) : (this.reminders = this.eventReminders ?? [], this.updateRemindersFormValue());
|
|
5081
5084
|
}
|
|
5082
5085
|
componentWillUpdate() {
|
|
5083
5086
|
d("nylas-reminder-emails", "componentWillUpdate");
|
|
@@ -5128,13 +5131,19 @@ const Sa = class {
|
|
|
5128
5131
|
deleteReminder(e) {
|
|
5129
5132
|
this.reminders = this.reminders.filter((t, n) => n !== e).map((t) => ({ ...t })), this.updateRemindersFormValue();
|
|
5130
5133
|
}
|
|
5134
|
+
get isInternalsAvailable() {
|
|
5135
|
+
return this.internals !== void 0 && typeof this.internals.setFormValue == "function";
|
|
5136
|
+
}
|
|
5131
5137
|
updateRemindersFormValue() {
|
|
5132
5138
|
d("nylas-reminder-emails", "updateRemindersFormValue");
|
|
5133
5139
|
const e = this.reminders.map((t) => {
|
|
5134
5140
|
const n = { ...t };
|
|
5135
|
-
return delete n.editing, n;
|
|
5141
|
+
return n != null && n.editing && delete n.editing, n;
|
|
5136
5142
|
});
|
|
5137
|
-
this.
|
|
5143
|
+
this.valueChanged.emit({
|
|
5144
|
+
value: JSON.stringify(e),
|
|
5145
|
+
name: "reminder-overrides"
|
|
5146
|
+
}), this.isInternalsAvailable && this.internals.setFormValue(JSON.stringify(e), "reminder-overrides");
|
|
5138
5147
|
}
|
|
5139
5148
|
formatReminderTime(e) {
|
|
5140
5149
|
switch (!0) {
|
|
@@ -5164,9 +5173,9 @@ const Sa = class {
|
|
|
5164
5173
|
value: "host"
|
|
5165
5174
|
}
|
|
5166
5175
|
];
|
|
5167
|
-
return o(O, { key: "
|
|
5176
|
+
return o(O, { key: "282a08f880244d8886376500957d8fe049e1d66b" }, o("div", { key: "142b2cad1a8b2022d28c38219707dd4a25a3a143", class: "cards-container" }, this.reminders.map((a, s) => {
|
|
5168
5177
|
var i;
|
|
5169
|
-
return o("div", { class: "nylas-reminder-email", part: "nre" }, o("div", { class: "header", part: "nre__header" }, o("div", null, o("h3", null, "Upcoming meeting", e ? ` with ${e} ` : ""), o("p", null, "Reminder before event")), a.editing ? o("div", { class: "reminder-open-close-toggle" }, o("button-component", { variant: "basic", class: "delete-btn", tooltip: "Delete reminder", key: `delete -${s} `, clickHandler: (r) => {
|
|
5178
|
+
return a.type !== "webhook" ? o("div", { class: "nylas-reminder-email", part: "nre" }, o("div", { class: "header", part: "nre__header" }, o("div", null, o("h3", null, "Upcoming meeting", e ? ` with ${e} ` : ""), o("p", null, "Reminder before event")), a.editing ? o("div", { class: "reminder-open-close-toggle" }, o("button-component", { variant: "basic", class: "delete-btn", tooltip: "Delete reminder", key: `delete -${s} `, clickHandler: (r) => {
|
|
5170
5179
|
r.preventDefault(), this.deleteReminder(s);
|
|
5171
5180
|
} }, o("trash-icon", { width: "16", height: "16" })), o("span", { class: `chevron ${a.editing ? "open" : "closed"}`, onClick: () => {
|
|
5172
5181
|
a.editing = !a.editing, this.reminders = [...this.reminders];
|
|
@@ -5175,10 +5184,10 @@ const Sa = class {
|
|
|
5175
5184
|
} }, o("edit-icon", { width: "16", height: "16" }), "Edit")), a.editing ? o("div", { class: "nylas-reminder-email__body", part: "nre__body" }, o("div", { class: "nylas-reminder-email__section" }, o("div", { class: "nylas-reminder-email__row" }, o("label", null, "Email recipients"), o("select-dropdown", { name: `recipient-${s}`, options: t, defaultSelectedOption: t.find((r) => r.value === a.recipient) ?? t[0], withSearch: !1 })), o("div", { class: "nylas-reminder-email__row" }, o("label", null, "Send confirmation email when", o("span", { class: "label-icon" }, o("tooltip-component", null, o("info-icon", { slot: "tooltip-icon" }), o("span", { slot: "tooltip-content" }, "The recipients will receive a reminder email at the specified time before the event.")))), o("nylas-reminder-time", { name: `reminder-time-${s}`, eventReminderTimeMinutes: a.minutes_before_event, exportparts: `nrt, nrt__input_dropdown: nre__reminder-input_dropdown,
|
|
5176
5185
|
nrt__input_dropdown-input: nre__reminder-input_dropdown-input,
|
|
5177
5186
|
nrt__input_dropdown-content: nre__reminder-input_dropdown-content,
|
|
5178
|
-
` })))) : o("div", { class: "nylas-reminder-email__summary", part: "nre__summary" }, o("p", null, o("span", { class: "summary-icon" }, o("person-clipboard-icon", null)), (i = t.find((r) => r.value === a.recipient)) == null ? void 0 : i.label), o("p", null, o("span", { class: "summary-icon" }, o("clock-icon", null)), this.formatReminderTime(a.minutes_before_event), " before the event")));
|
|
5179
|
-
})), o("button-component", { key: "
|
|
5187
|
+
` })))) : o("div", { class: "nylas-reminder-email__summary", part: "nre__summary" }, o("p", null, o("span", { class: "summary-icon" }, o("person-clipboard-icon", null)), (i = t.find((r) => r.value === a.recipient)) == null ? void 0 : i.label), o("p", null, o("span", { class: "summary-icon" }, o("clock-icon", null)), this.formatReminderTime(a.minutes_before_event), " before the event"))) : null;
|
|
5188
|
+
})), o("button-component", { key: "a71a1c65130de360715a97c5b63eff1db16f6a6d", class: "create-reminder", variant: "basic", clickHandler: (a) => {
|
|
5180
5189
|
a.preventDefault(), this.addReminder();
|
|
5181
|
-
} }, o("plus-icon", { key: "
|
|
5190
|
+
} }, o("plus-icon", { key: "8f4cfb1110548bda9d6be2f7043381c70666d278", width: "16", height: "16" }), "New reminder"));
|
|
5182
5191
|
}
|
|
5183
5192
|
static get formAssociated() {
|
|
5184
5193
|
return !0;
|
|
@@ -5270,7 +5279,7 @@ const Oa = class {
|
|
|
5270
5279
|
return this.internals !== void 0 && typeof this.internals.setFormValue == "function";
|
|
5271
5280
|
}
|
|
5272
5281
|
setReminderTimeMinuteOptions() {
|
|
5273
|
-
return this.reminderTimeincrement === 1 ? this.reminderTimeMinutesOptions = En : this.reminderTimeincrement === 60 ? this.reminderTimeMinutesOptions =
|
|
5282
|
+
return this.reminderTimeincrement === 1 ? this.reminderTimeMinutesOptions = En : this.reminderTimeincrement === 60 ? this.reminderTimeMinutesOptions = Ra : this.reminderTimeMinutesOptions = Fa, this.reminderTimeMinutesOptions;
|
|
5274
5283
|
}
|
|
5275
5284
|
nylasFormDropdownChangedHandler(e) {
|
|
5276
5285
|
d("nylas-calendar-picker", "nylasFormDropdownChangedHandler", e.detail);
|
|
@@ -5552,7 +5561,7 @@ const cr = ".sc-people-icon-h{display:flex}", pr = cr, fr = class {
|
|
|
5552
5561
|
}
|
|
5553
5562
|
};
|
|
5554
5563
|
fr.style = pr;
|
|
5555
|
-
const mr = '.switch{--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;display:inline-block;height:34px;position:relative;width:60px}.switch input{display:none}.slider{background-color:var(--nylas-base-300);bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{background-color:var(--nylas-base-0);bottom:4px;content:"";height:32px;left:4px;position:absolute;transition:0.4s;width:32px}input:checked+.slider{background-color:var(--nylas-success)}input:checked+.slider:before{transform:translateX(32px)}.slider.round{border-radius:35px;width:72px;height:40px}.slider.round:before{border-radius:50%}',
|
|
5564
|
+
const mr = '.switch{--nylas-primary:#2563eb;--nylas-error:#cc4841;--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-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;display:inline-block;height:34px;position:relative;width:60px}.switch input{display:none}.slider{background-color:var(--nylas-base-300);bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:0.4s}.slider:before{background-color:var(--nylas-base-0);bottom:4px;content:"";height:32px;left:4px;position:absolute;transition:0.4s;width:32px}input:checked+.slider{background-color:var(--nylas-success)}input:checked+.slider:before{transform:translateX(32px)}.slider.round{border-radius:35px;width:72px;height:40px}.slider.round:before{border-radius:50%}', hr = mr, ur = class {
|
|
5556
5565
|
constructor(e) {
|
|
5557
5566
|
v(this, e), this.nylasFormSwitchToggled = S(this, "nylasFormSwitchToggled", 7), this.name = "toggle-switch", this.checked = !1, this.label = "", this.isChecked = this.checked;
|
|
5558
5567
|
}
|
|
@@ -5570,7 +5579,7 @@ const mr = '.switch{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-
|
|
|
5570
5579
|
return o("label", { key: "7d74c0f5a452c3261e1cdd897a5092697a6782bb", class: "switch", part: "ts_label" }, o("input", { key: "80f5740b7e4a7af96b95648dd556b50c0537b505", type: "checkbox", part: "ts_input", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), o("div", { key: "5176ee85b2fd72586ae6faf41e84c2ef60598f32", class: "slider round", part: "ts_slider" }));
|
|
5571
5580
|
}
|
|
5572
5581
|
};
|
|
5573
|
-
|
|
5582
|
+
ur.style = hr;
|
|
5574
5583
|
const yr = ".sc-trash-icon-h{display:flex}", br = yr, gr = class {
|
|
5575
5584
|
constructor(e) {
|
|
5576
5585
|
v(this, e), this.width = "20", this.height = "21";
|
|
@@ -5599,14 +5608,14 @@ export {
|
|
|
5599
5608
|
si as envelope_fill_icon,
|
|
5600
5609
|
li as envelope_icon,
|
|
5601
5610
|
pi as eye_icon,
|
|
5602
|
-
|
|
5611
|
+
hi as feedback_icon,
|
|
5603
5612
|
bi as flow_icon,
|
|
5604
5613
|
_i as google_meet_icon,
|
|
5605
|
-
|
|
5614
|
+
Fn as input_image_url,
|
|
5606
5615
|
Si as location_icon,
|
|
5607
5616
|
Hi as location_off_icon,
|
|
5608
5617
|
$i as microsoft_teams_icon,
|
|
5609
|
-
|
|
5618
|
+
Ln as nylas_additional_participants,
|
|
5610
5619
|
zn as nylas_availability_picker,
|
|
5611
5620
|
jn as nylas_booking_calendar_picker,
|
|
5612
5621
|
Un as nylas_booking_confirmation_redirect,
|
|
@@ -5622,8 +5631,8 @@ export {
|
|
|
5622
5631
|
pa as nylas_customize_booking_settings,
|
|
5623
5632
|
fa as nylas_event_description,
|
|
5624
5633
|
ma as nylas_event_duration,
|
|
5625
|
-
|
|
5626
|
-
|
|
5634
|
+
ha as nylas_event_info,
|
|
5635
|
+
ua as nylas_event_limits,
|
|
5627
5636
|
ya as nylas_event_location,
|
|
5628
5637
|
ba as nylas_event_title,
|
|
5629
5638
|
ga as nylas_feedback_form,
|
|
@@ -5641,7 +5650,7 @@ export {
|
|
|
5641
5650
|
or as paintbrush_fill_icon,
|
|
5642
5651
|
dr as paintbrush_icon,
|
|
5643
5652
|
fr as people_icon,
|
|
5644
|
-
|
|
5653
|
+
ur as toggle_switch,
|
|
5645
5654
|
gr as trash_icon,
|
|
5646
5655
|
Cr as zoom_icon
|
|
5647
5656
|
};
|