@nylas/react 1.1.7 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-circle-icon_2.entry-5814b516.cjs → add-circle-icon_2.entry-52cc3933.cjs} +1 -1
- package/dist/{add-circle-icon_2.entry-5db67b5b.js → add-circle-icon_2.entry-5ea903bf.js} +1 -1
- package/dist/{archive-icon.entry-769e863b.js → archive-icon.entry-50c4b134.js} +1 -1
- package/dist/{archive-icon.entry-10ebbf9a.cjs → archive-icon.entry-718a1225.cjs} +1 -1
- package/dist/{arrow-icon.entry-1ebd553a.js → arrow-icon.entry-53337688.js} +1 -1
- package/dist/{arrow-icon.entry-024d613a.cjs → arrow-icon.entry-ca9625d3.cjs} +1 -1
- package/dist/{bold-icon.entry-8bc27b72.cjs → bold-icon.entry-36e679f1.cjs} +1 -1
- package/dist/{bold-icon.entry-17c78a12.js → bold-icon.entry-c6109b88.js} +1 -1
- package/dist/{button-component_2.entry-1095ad9f.js → button-component_2.entry-0a06b0c4.js} +1 -1
- package/dist/{button-component_2.entry-5cd0adf0.cjs → button-component_2.entry-a1b8cd03.cjs} +1 -1
- package/dist/calendar-agenda-fill-icon_54.entry-5b185e75.cjs +9 -0
- package/dist/{calendar-agenda-fill-icon_54.entry-6b2114d5.js → calendar-agenda-fill-icon_54.entry-e4d8ab10.js} +2146 -2478
- package/dist/{calendar-cancel-icon.entry-4c58ea10.cjs → calendar-cancel-icon.entry-22862d8c.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-d27593a5.js → calendar-cancel-icon.entry-813a8330.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-4a35f416.cjs → calendar-check-icon_2.entry-2ca25094.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-38e1140b.js → calendar-check-icon_2.entry-79d381ce.js} +1 -1
- package/dist/{calendar-icon.entry-002ee369.cjs → calendar-icon.entry-78bb4f9b.cjs} +1 -1
- package/dist/{calendar-icon.entry-4543de86.js → calendar-icon.entry-d52951b0.js} +1 -1
- package/dist/{checkbox-component_2.entry-cf15106d.js → checkbox-component_2.entry-1219f0cf.js} +1 -1
- package/dist/{checkbox-component_2.entry-ad4ab088.cjs → checkbox-component_2.entry-a6114846.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-5e60a853.js → chevron-icon_3.entry-82878ccf.js} +26 -22
- package/dist/chevron-icon_3.entry-d8f195dc.cjs +1 -0
- package/dist/{clock-icon_4.entry-d03310ae.js → clock-icon_4.entry-9ab4bc41.js} +1 -1
- package/dist/{clock-icon_4.entry-8348282a.cjs → clock-icon_4.entry-e081ccca.cjs} +1 -1
- package/dist/{constants-c549b12b-7ea4c7f5.js → constants-35df11e7-b37e3406.js} +1 -1
- package/dist/{constants-c549b12b-c85413b1.cjs → constants-35df11e7-d87ad6d9.cjs} +1 -1
- package/dist/{copy-icon.entry-5337f980.cjs → copy-icon.entry-9c6f38c2.cjs} +1 -1
- package/dist/{copy-icon.entry-3ea78e28.js → copy-icon.entry-9d6e0f48.js} +1 -1
- package/dist/{delete-icon.entry-87b2daaa.cjs → delete-icon.entry-6ec9c80d.cjs} +1 -1
- package/dist/{delete-icon.entry-480ac215.js → delete-icon.entry-fd8dc119.js} +1 -1
- package/dist/{document-refresh-icon.entry-665a7947.js → document-refresh-icon.entry-2b531e97.js} +1 -1
- package/dist/{document-refresh-icon.entry-6be2b468.cjs → document-refresh-icon.entry-bea78baf.cjs} +1 -1
- package/dist/{feedbackSync-b56b29ed-36483932.js → feedbackSync-b56b29ed-a7e9f258.js} +1 -1
- package/dist/{feedbackSync-b56b29ed-599103b9.cjs → feedbackSync-b56b29ed-cdcec5be.cjs} +1 -1
- package/dist/{folder-icon.entry-89f0974f.cjs → folder-icon.entry-485465be.cjs} +1 -1
- package/dist/{folder-icon.entry-9bf864d7.js → folder-icon.entry-6a43630e.js} +1 -1
- package/dist/{forward-icon.entry-2b0167a7.js → forward-icon.entry-514ea4a8.js} +1 -1
- package/dist/{forward-icon.entry-699c55d9.cjs → forward-icon.entry-a1af9122.cjs} +1 -1
- package/dist/{globe-icon.entry-3d08a9c4.cjs → globe-icon.entry-970082a4.cjs} +1 -1
- package/dist/{globe-icon.entry-5d962e7a.js → globe-icon.entry-adcff451.js} +1 -1
- package/dist/google-logo-icon_4.entry-21cb4b95.cjs +1 -0
- package/dist/{google-logo-icon_4.entry-ec724f2e.js → google-logo-icon_4.entry-2b68fe81.js} +309 -302
- package/dist/{inbox-icon.entry-45414f66.cjs → inbox-icon.entry-94507d27.cjs} +1 -1
- package/dist/{inbox-icon.entry-2020fa96.js → inbox-icon.entry-d3e42f82.js} +1 -1
- package/dist/{index-2b208d5d.js → index-9dc1bd32.js} +511 -511
- package/dist/{index-bf124f70.cjs → index-bec58f1d.cjs} +16 -16
- package/dist/{index.es-c7ca1bad-70899f2a.js → index.es-c7ca1bad-38475209.js} +1 -1
- package/dist/{index.es-c7ca1bad-67a99f41.cjs → index.es-c7ca1bad-5652d50c.cjs} +1 -1
- package/dist/{info-icon_2.entry-b98a2882.js → info-icon_2.entry-3b5a2c7f.js} +1 -1
- package/dist/{info-icon_2.entry-237205a0.cjs → info-icon_2.entry-e23f3ffd.cjs} +1 -1
- package/dist/{input-color-picker.entry-684413c1.js → input-color-picker.entry-9bc48bd3.js} +1 -1
- package/dist/{input-color-picker.entry-8fe3482d.cjs → input-color-picker.entry-b4ea90c5.cjs} +1 -1
- package/dist/{input-component.entry-bcd13373.cjs → input-component.entry-e567ec08.cjs} +1 -1
- package/dist/{input-component.entry-00b97287.js → input-component.entry-ebae3a8a.js} +1 -1
- package/dist/{input-dropdown.entry-3c39e23a.js → input-dropdown.entry-1f704009.js} +1 -1
- package/dist/{input-dropdown.entry-b26475c4.cjs → input-dropdown.entry-597cd5a8.cjs} +1 -1
- package/dist/{italic-icon.entry-2199bb17.js → italic-icon.entry-08593dd0.js} +1 -1
- package/dist/{italic-icon.entry-14081a02.cjs → italic-icon.entry-8f614353.cjs} +1 -1
- package/dist/{multi-select-dropdown.entry-2141b848.js → multi-select-dropdown.entry-5f1c73f3.js} +1 -1
- package/dist/{multi-select-dropdown.entry-7b66d2ae.cjs → multi-select-dropdown.entry-eb978e22.cjs} +1 -1
- package/dist/nylas-booked-event-card_12.entry-73785c5c.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-2d88375a.js → nylas-booked-event-card_12.entry-c4043d8f.js} +322 -253
- package/dist/{nylas-form-card.entry-1e9225b0.cjs → nylas-form-card.entry-1540207c.cjs} +1 -1
- package/dist/{nylas-form-card.entry-a8a44a3b.js → nylas-form-card.entry-80688e35.js} +2 -2
- package/dist/{nylas-if-state.entry-32b11afa.js → nylas-if-state.entry-037d0454.js} +2 -2
- package/dist/{nylas-if-state.entry-473230a6.cjs → nylas-if-state.entry-e5155b5b.cjs} +1 -1
- package/dist/{nylas-login.entry-995b6f99.cjs → nylas-login.entry-b3d73ab9.cjs} +1 -1
- package/dist/{nylas-login.entry-d663205c.js → nylas-login.entry-d157a6ed.js} +2 -2
- package/dist/{nylas-provider.entry-050f20bd.cjs → nylas-provider.entry-884ba204.cjs} +1 -1
- package/dist/{nylas-provider.entry-c24474c3.js → nylas-provider.entry-cf4b8b57.js} +4 -4
- package/dist/{nylas-scheduler-editor.entry-3b834bb1.cjs → nylas-scheduler-editor.entry-6f76d0d5.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-5c0a5fb4.js → nylas-scheduler-editor.entry-e731ca4a.js} +8 -9
- package/dist/{nylas-scheduling.entry-04c3951e.js → nylas-scheduling.entry-86b18d85.js} +18 -16
- package/dist/nylas-scheduling.entry-c8ee9a2a.cjs +1 -0
- package/dist/{nylas-time-window-picker.entry-678a7dbf.js → nylas-time-window-picker.entry-393e855b.js} +1 -1
- package/dist/{nylas-time-window-picker.entry-337d03c1.cjs → nylas-time-window-picker.entry-f9687046.cjs} +1 -1
- package/dist/{person-icon.entry-3fee5bc4.cjs → person-icon.entry-1b5dcd2e.cjs} +1 -1
- package/dist/{person-icon.entry-902b2c0d.js → person-icon.entry-b5ccb1f4.js} +1 -1
- package/dist/{play-icon.entry-a7f648f7.cjs → play-icon.entry-3f2e7e31.cjs} +1 -1
- package/dist/{play-icon.entry-1078da37.js → play-icon.entry-5e51d961.js} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-06f9d181.cjs → refresh-icon.entry-3d241ffd.cjs} +1 -1
- package/dist/{refresh-icon.entry-5399f64b.js → refresh-icon.entry-9beaa8e1.js} +1 -1
- package/dist/{register-component-3444af44-6d269634.cjs → register-component-3444af44-890ac950.cjs} +1 -1
- package/dist/{register-component-3444af44-3d6e535a.js → register-component-3444af44-94783766.js} +1 -1
- package/dist/{reply-all-icon.entry-a3a20f76.js → reply-all-icon.entry-6b55d3b3.js} +1 -1
- package/dist/{reply-all-icon.entry-70ffe5be.cjs → reply-all-icon.entry-a0fcbf30.cjs} +1 -1
- package/dist/{reply-icon.entry-302ed745.js → reply-icon.entry-c709b46f.js} +1 -1
- package/dist/{reply-icon.entry-a08c0e57.cjs → reply-icon.entry-c7d0d967.cjs} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-81687f55.js → scheduler-config-store-ed4a8dfd-13c1c187.js} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-34c4c119.cjs → scheduler-config-store-ed4a8dfd-ba68cc09.cjs} +1 -1
- package/dist/{scheduler-store-2e7db190-fb6a20a1.cjs → scheduler-store-ecd15be2-8f7d171f.cjs} +1 -1
- package/dist/{scheduler-store-2e7db190-c648278f.js → scheduler-store-ecd15be2-d2ef4ac2.js} +2 -2
- package/dist/{sent-icon.entry-6396b793.cjs → sent-icon.entry-9083bca9.cjs} +1 -1
- package/dist/{sent-icon.entry-4d7b65ba.js → sent-icon.entry-b65083f4.js} +1 -1
- package/dist/{spam-icon.entry-45e7b83b.js → spam-icon.entry-120eca46.js} +1 -1
- package/dist/{spam-icon.entry-8648a315.cjs → spam-icon.entry-e6c1a82a.cjs} +1 -1
- package/dist/{star-icon.entry-61c36332.js → star-icon.entry-e3563c0b.js} +1 -1
- package/dist/{star-icon.entry-1c416cef.cjs → star-icon.entry-efbc2679.cjs} +1 -1
- package/dist/{stop-icon.entry-d68aa652.cjs → stop-icon.entry-8d07d719.cjs} +1 -1
- package/dist/{stop-icon.entry-089ac3ba.js → stop-icon.entry-ab5cf663.js} +1 -1
- package/dist/{textarea-component.entry-502c8659.cjs → textarea-component.entry-93be4a65.cjs} +1 -1
- package/dist/{textarea-component.entry-8f5d835f.js → textarea-component.entry-a0ef9f03.js} +1 -1
- package/dist/{time-period-selector.entry-001a1c59.cjs → time-period-selector.entry-16f96af9.cjs} +1 -1
- package/dist/{time-period-selector.entry-7da7d316.js → time-period-selector.entry-2a86f48f.js} +1 -1
- package/dist/{translate-icon.entry-4ee80d22.cjs → translate-icon.entry-868948d3.cjs} +1 -1
- package/dist/{translate-icon.entry-5166d376.js → translate-icon.entry-d632b37b.js} +1 -1
- package/dist/{trash-fill-icon.entry-2f814465.cjs → trash-fill-icon.entry-88dfffbc.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-49844a82.js → trash-fill-icon.entry-eeab235e.js} +1 -1
- package/dist/{underline-icon.entry-4ba93e7b.cjs → underline-icon.entry-35430c19.cjs} +1 -1
- package/dist/{underline-icon.entry-181f1d7e.js → underline-icon.entry-65e42dcf.js} +1 -1
- package/dist/{warning-icon.entry-2406b765.js → warning-icon.entry-bab6d190.js} +1 -1
- package/dist/{warning-icon.entry-44ac5566.cjs → warning-icon.entry-e7714a43.cjs} +1 -1
- package/package.json +3 -3
- package/dist/add-circle-icon_2.entry-95b23b9d.js +0 -25
- package/dist/add-circle-icon_2.entry-ae11c837.cjs +0 -1
- package/dist/archive-icon.entry-2ead8ef0.cjs +0 -1
- package/dist/archive-icon.entry-b28d195c.js +0 -15
- package/dist/arrow-icon.entry-8de38831.cjs +0 -1
- package/dist/arrow-icon.entry-e29d7a6c.js +0 -15
- package/dist/bold-icon.entry-316f5e61.js +0 -15
- package/dist/bold-icon.entry-caf96585.cjs +0 -1
- package/dist/button-component_2.entry-531a725d.js +0 -26
- package/dist/button-component_2.entry-64a41161.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_54.entry-84e72636.js +0 -5656
- package/dist/calendar-agenda-fill-icon_54.entry-abb96e20.cjs +0 -10
- package/dist/calendar-agenda-fill-icon_54.entry-f5577fdb.cjs +0 -10
- package/dist/calendar-cancel-icon.entry-f11e5aaa.cjs +0 -1
- package/dist/calendar-cancel-icon.entry-f1a6f9bc.js +0 -15
- package/dist/calendar-check-icon_2.entry-52187599.cjs +0 -1
- package/dist/calendar-check-icon_2.entry-7f17a3a6.js +0 -25
- package/dist/calendar-icon.entry-3c5c97d4.cjs +0 -1
- package/dist/calendar-icon.entry-b76e26e6.js +0 -15
- package/dist/checkbox-component_2.entry-b24885e9.cjs +0 -1
- package/dist/checkbox-component_2.entry-e4a3dd2d.js +0 -79
- package/dist/chevron-icon_3.entry-582df6f7.cjs +0 -1
- package/dist/chevron-icon_3.entry-59d8b408.cjs +0 -1
- package/dist/chevron-icon_3.entry-cab72db3.js +0 -143
- package/dist/clock-icon_4.entry-f6b9f85d.js +0 -45
- package/dist/clock-icon_4.entry-fcbc39b0.cjs +0 -1
- package/dist/copy-icon.entry-430beab4.js +0 -15
- package/dist/copy-icon.entry-74a59fc5.cjs +0 -1
- package/dist/delete-icon.entry-9c1af040.js +0 -15
- package/dist/delete-icon.entry-e320cde1.cjs +0 -1
- package/dist/document-refresh-icon.entry-930ee2b7.js +0 -15
- package/dist/document-refresh-icon.entry-fcde4ff6.cjs +0 -1
- package/dist/feedbackSync-b56b29ed-7a7c650e.cjs +0 -448
- package/dist/feedbackSync-b56b29ed-9e38fdb6.js +0 -6035
- package/dist/folder-icon.entry-977e50eb.cjs +0 -1
- package/dist/folder-icon.entry-b80d8fd7.js +0 -15
- package/dist/forward-icon.entry-c4c20f31.cjs +0 -1
- package/dist/forward-icon.entry-eb64aa16.js +0 -15
- package/dist/globe-icon.entry-5ef1dc42.cjs +0 -1
- package/dist/globe-icon.entry-667987bd.js +0 -15
- package/dist/google-logo-icon_4.entry-12f1492f.cjs +0 -1
- package/dist/google-logo-icon_4.entry-bd4d2237.cjs +0 -1
- package/dist/google-logo-icon_4.entry-fc38681e.js +0 -729
- package/dist/inbox-icon.entry-49353988.js +0 -15
- package/dist/inbox-icon.entry-b556231f.cjs +0 -1
- package/dist/index-290b2932.cjs +0 -81
- package/dist/index-fb096a02.js +0 -13011
- package/dist/index.es-c7ca1bad-b7a3e6bd.cjs +0 -7
- package/dist/index.es-c7ca1bad-cb3a99a7.js +0 -3129
- package/dist/info-icon_2.entry-caf64c28.cjs +0 -1
- package/dist/info-icon_2.entry-d935e5c2.js +0 -34
- package/dist/input-color-picker.entry-752534de.js +0 -48
- package/dist/input-color-picker.entry-f856fce3.cjs +0 -1
- package/dist/input-component.entry-4400f98e.js +0 -70
- package/dist/input-component.entry-d486907a.cjs +0 -1
- package/dist/input-dropdown.entry-bea3c690.js +0 -134
- package/dist/input-dropdown.entry-d3d4e50e.cjs +0 -1
- package/dist/italic-icon.entry-63726952.cjs +0 -1
- package/dist/italic-icon.entry-a3c87e5e.js +0 -15
- package/dist/multi-select-dropdown.entry-8a2c4b42.cjs +0 -1
- package/dist/multi-select-dropdown.entry-cdd97d65.js +0 -95
- package/dist/nylas-booked-event-card_12.entry-20c254bb.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-90a0b6c7.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-bbd7cfb0.js +0 -1237
- package/dist/nylas-form-card.entry-d6287d76.cjs +0 -1
- package/dist/nylas-form-card.entry-fadd7718.js +0 -57
- package/dist/nylas-if-state.entry-8be8107e.js +0 -94
- package/dist/nylas-if-state.entry-9c341f13.cjs +0 -1
- package/dist/nylas-login.entry-b9c2fb27.cjs +0 -1
- package/dist/nylas-login.entry-e3a9c5c1.js +0 -73
- package/dist/nylas-provider.entry-5b54f2cc.cjs +0 -1
- package/dist/nylas-provider.entry-ca3e06ce.js +0 -264
- package/dist/nylas-scheduler-editor.entry-b86f49a1.js +0 -1447
- package/dist/nylas-scheduler-editor.entry-d52db29e.cjs +0 -2
- package/dist/nylas-scheduling.entry-a5c4b050.js +0 -412
- package/dist/nylas-scheduling.entry-d549c5c3.cjs +0 -1
- package/dist/nylas-scheduling.entry-ed12a4f6.cjs +0 -1
- package/dist/nylas-time-window-picker.entry-4aefade8.cjs +0 -1
- package/dist/nylas-time-window-picker.entry-ecc3ee10.js +0 -316
- package/dist/person-icon.entry-9680bc2b.js +0 -15
- package/dist/person-icon.entry-dede7140.cjs +0 -1
- package/dist/play-icon.entry-c8f3a5d8.cjs +0 -1
- package/dist/play-icon.entry-dacc3aa6.js +0 -15
- package/dist/refresh-icon.entry-555a38ec.cjs +0 -1
- package/dist/refresh-icon.entry-d4dcfc3a.js +0 -15
- package/dist/register-component-3444af44-4a273c0a.js +0 -109
- package/dist/register-component-3444af44-d3e7252a.cjs +0 -1
- package/dist/reply-all-icon.entry-bb2a88ad.js +0 -15
- package/dist/reply-all-icon.entry-f8a32be1.cjs +0 -1
- package/dist/reply-icon.entry-423fb307.js +0 -15
- package/dist/reply-icon.entry-d2da8972.cjs +0 -1
- package/dist/scheduler-config-store-ed4a8dfd-474f6252.cjs +0 -1
- package/dist/scheduler-config-store-ed4a8dfd-fe2b9d18.js +0 -26
- package/dist/scheduler-store-5fbba021-09da63cf.cjs +0 -1
- package/dist/scheduler-store-5fbba021-6298edf3.js +0 -484
- package/dist/sent-icon.entry-6ed4170a.js +0 -15
- package/dist/sent-icon.entry-db89fd38.cjs +0 -1
- package/dist/spam-icon.entry-81073952.js +0 -15
- package/dist/spam-icon.entry-cf05a2a7.cjs +0 -1
- package/dist/star-icon.entry-8279e6a9.cjs +0 -1
- package/dist/star-icon.entry-bb26cc4e.js +0 -15
- package/dist/stop-icon.entry-f62d063b.js +0 -15
- package/dist/stop-icon.entry-f88a5a2a.cjs +0 -1
- package/dist/textarea-component.entry-d4a682fa.js +0 -37
- package/dist/textarea-component.entry-e06ee834.cjs +0 -1
- package/dist/time-period-selector.entry-837b9be3.js +0 -80
- package/dist/time-period-selector.entry-c5b6d0c9.cjs +0 -1
- package/dist/translate-icon.entry-c1a623d8.cjs +0 -1
- package/dist/translate-icon.entry-e5cfae44.js +0 -15
- package/dist/trash-fill-icon.entry-85e0e841.js +0 -15
- package/dist/trash-fill-icon.entry-def90241.cjs +0 -1
- package/dist/underline-icon.entry-72dadbdf.cjs +0 -1
- package/dist/underline-icon.entry-f7a75755.js +0 -15
- package/dist/warning-icon.entry-5b6aeb2b.cjs +0 -1
- package/dist/warning-icon.entry-ef601856.js +0 -15
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
import { r as G, h as
|
|
2
|
-
import { R as
|
|
3
|
-
import { D as
|
|
4
|
-
import { i as
|
|
1
|
+
import { r as G, h as e, c as k, d as h, n as Et, o as X, H as Ot, g as Ht, F as Jt } from "./index-9dc1bd32.js";
|
|
2
|
+
import { R as Nt } from "./register-component-3444af44-94783766.js";
|
|
3
|
+
import { D as Bt } from "./constants-35df11e7-b37e3406.js";
|
|
4
|
+
import { i as Vt, a as Zt, c as Gt, b as Wt, f as qt } from "./feedbackSync-b56b29ed-a7e9f258.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
const
|
|
8
|
-
constructor(
|
|
9
|
-
G(this,
|
|
7
|
+
const Kt = ".sc-google-logo-icon-h{display:flex}", Qt = Kt, Xt = class {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
G(this, t), this.width = "24", this.height = "24";
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return
|
|
12
|
+
return e("svg", { key: "a92099ec8ac0962d66c891c164e335ef3d047d22", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "67f404193a491c7599cb0ff6eb2eba5322d05e12", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "3c61ed99570e6093cad10d510093e172828eff40", d: "M23.745 12.27C23.745 11.48 23.675 10.73 23.555 10H12.255V14.51H18.725C18.435 15.99 17.585 17.24 16.325 18.09V21.09H20.185C22.445 19 23.745 15.92 23.745 12.27Z", fill: "#4285F4" }), e("path", { key: "c02254455f486c14330e39e76240c1cf4f4597a4", d: "M12.255 24C15.495 24 18.205 22.92 20.185 21.09L16.325 18.09C15.245 18.81 13.875 19.25 12.255 19.25C9.12504 19.25 6.47505 17.14 5.52505 14.29H1.54504V17.38C3.51504 21.3 7.56504 24 12.255 24Z", fill: "#34A853" }), e("path", { key: "8db3f9f9c1587778afe57689afc1a72db582d5ec", d: "M5.52501 14.2901C5.27501 13.5701 5.145 12.8001 5.145 12.0001C5.145 11.2001 5.28501 10.4301 5.52501 9.71012V6.62012H1.545C0.725004 8.24012 0.255005 10.0601 0.255005 12.0001C0.255005 13.9401 0.725004 15.7601 1.545 17.3801L5.52501 14.2901Z", fill: "#FBBC05" }), e("path", { key: "45b05683bc9c6bf46c6aef5858604016460df3e2", d: "M12.255 4.75C14.025 4.75 15.605 5.36 16.855 6.55L20.275 3.13C18.205 1.19 15.495 0 12.255 0C7.56504 0 3.51504 2.7 1.54504 6.62L5.52505 9.71C6.47505 6.86 9.12504 4.75 12.255 4.75Z", fill: "#EA4335" })), e("defs", { key: "4c047174ca3453f959e5e81b31e79abae98a1e09" }, e("clipPath", { key: "0e8a1d30c69e4ff0d43a99342b111a0ced46b894", id: "clip0_959_12452" }, e("rect", { key: "e653c135430f8fd0e33dea31c2d26a75ac6301a0", width: 24, height: 24, fill: "white" }))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
constructor(
|
|
18
|
-
G(this,
|
|
15
|
+
Xt.style = Qt;
|
|
16
|
+
const Yt = ".sc-microsoft-logo-icon-h{display:flex}", te = Yt, ee = class {
|
|
17
|
+
constructor(t) {
|
|
18
|
+
G(this, t), this.width = "22", this.height = "22";
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return
|
|
21
|
+
return e("svg", { key: "0426f3e50fb256a3a5f5c2c221da187daddf01ab", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "7613831c4bd6ec132acc5e89859acdfd6035f0c1", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "db04c966af57fe29013c799d7a38192d121beb44", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "fe59fe563aede56518af70627d0ece3b83ded0fc", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "07e3f81f79863f2e87827b163a2e9a9f9804cbf0", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
ee.style = te;
|
|
25
25
|
var o;
|
|
26
|
-
(function(
|
|
27
|
-
|
|
26
|
+
(function(t) {
|
|
27
|
+
t.EventInfo = "eventInfo", t.Availability = "availability", t.BookingOptions = "bookingOptions", t.Communications = "communications", t.Participants = "participants", t.BookingForm = "bookingForm", t.PageStyles = "pageStyles";
|
|
28
28
|
})(o || (o = {}));
|
|
29
|
-
function
|
|
30
|
-
return
|
|
31
|
-
|
|
29
|
+
function ae({ id: t, formState: a, activeTab: n }, i) {
|
|
30
|
+
return e(
|
|
31
|
+
Jt,
|
|
32
32
|
null,
|
|
33
|
-
|
|
33
|
+
e(
|
|
34
34
|
"div",
|
|
35
|
-
{ key: `event-info-${
|
|
36
|
-
|
|
35
|
+
{ key: `event-info-${t}`, class: { hide: n !== o.EventInfo } },
|
|
36
|
+
e(
|
|
37
37
|
"nylas-event-info",
|
|
38
38
|
null,
|
|
39
|
-
|
|
39
|
+
e(
|
|
40
40
|
"div",
|
|
41
41
|
{ slot: "inputs" },
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
e("nylas-event-title", { name: "title", exportparts: "net, net__title, net__dropdown-content" }),
|
|
43
|
+
e("nylas-event-duration", { name: "duration", exportparts: "ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content" }),
|
|
44
|
+
e("nylas-event-location", { name: "location", exportparts: "nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content" }),
|
|
45
|
+
e("nylas-event-description", { name: "description", exportparts: "nedesc, nedesc__textarea" })
|
|
46
46
|
)
|
|
47
47
|
)
|
|
48
48
|
),
|
|
49
|
-
|
|
49
|
+
e(
|
|
50
50
|
"div",
|
|
51
|
-
{ key: `availability-${
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
{ key: `availability-${t}`, class: { hide: n !== o.Availability } },
|
|
52
|
+
e("nylas-participant-booking-calendars", { participants: a.participants, name: "participant-booking-calendars", exportparts: "npbc, npbc__header, npbc__content, npbc__participant-container, npbc__participant-title" }),
|
|
53
|
+
e("nylas-connected-calendars", { participants: a.participants, name: "connected-calendars", exportparts: "nccals, nccals__header, nccals__content, nccals__container, nccals__title, nccals__toggle-container, npbc__participant-toggle-container" }),
|
|
54
|
+
e("nylas-availability-picker", { name: "availability", exportparts: "nap, nap__header, nap__select-timezone, nap__select-timezone-button, nap__select-timezone-dropdown-content, nap__availability, nap__day, nap__time-ranges, nap__time-range, nap__add-time-range, nap__time-picker-container, nap__time-picker-input, nap__time-picker-times" })
|
|
55
55
|
),
|
|
56
|
-
|
|
56
|
+
e(
|
|
57
57
|
"div",
|
|
58
|
-
{ key: `booking-options-${
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
{ key: `booking-options-${t}`, class: { hide: n !== o.BookingOptions } },
|
|
59
|
+
e("nylas-scheduling-method", { name: "availability-method", readOnly: !0, exportparts: "nsm, nsm__header, nsm__input-label, nsm__dropdown, nsm__dropdown-button, nsm__dropdown-content" }),
|
|
60
|
+
e(
|
|
61
61
|
"nylas-custom-booking-flow",
|
|
62
62
|
{ exportparts: "ncbflow, ncbflow__header, ncbflow__title, ncbflow__content" },
|
|
63
|
-
|
|
63
|
+
e(
|
|
64
64
|
"div",
|
|
65
65
|
{ slot: "inputs" },
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
e("nylas-booking-confirmation-type", { name: "confirmation-type", exportparts: "nbct, nbct__header, nbct__dropdown, nbct__dropdown-button, nbct__dropdown-content" }),
|
|
67
|
+
e("nylas-booking-confirmation-redirect", { name: "confirmation-redirect", exportparts: "nbcr, nbcr__header, nbcr__dropdown, nbcr__dropdown-button, nbcr__dropdown-content, nbcr__input-textfield" })
|
|
68
68
|
)
|
|
69
69
|
),
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
e("nylas-buffer-time", { name: "buffer-time", exportparts: "nbt, nbt__header, nbt__body, nbt__dropdown-before, nbt__dropdown-button-before, nbt__dropdown-content-before, nbt__dropdown-after, nbt__dropdown-button-after, nbt__dropdown-content-after, nbt__preview" }),
|
|
71
|
+
e(
|
|
72
72
|
"nylas-event-limits",
|
|
73
73
|
null,
|
|
74
|
-
|
|
74
|
+
e(
|
|
75
75
|
"div",
|
|
76
76
|
{ slot: "inputs" },
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
e("nylas-min-booking-notice", { name: "min-booking-notice", exportparts: "nmbn, nmbn__number-dropdown, nmbn__number-dropdown-button, nmbn__number-dropdown-content, nmbn__period-dropdown, nmbn__period-dropdown-button, nmbn__period-dropdown-content" }),
|
|
78
|
+
e("nylas-limit-future-bookings", { name: "limit-future-bookings", exportparts: "nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content" }),
|
|
79
|
+
e("nylas-min-cancellation-notice", { name: "min-cancellation-notice", exportparts: "nmcn, nmcn__number-dropdown, nmcn__number-dropdown-button, nmcn__number-dropdown-content, nmcn__period-dropdown, nmcn__period-dropdown-button, nmcn__period-dropdown-content" }),
|
|
80
|
+
e("nylas-cancellation-policy", { name: "cancellation-policy", exportparts: "ncpolicy, ncpolicy__textarea" })
|
|
81
81
|
)
|
|
82
82
|
),
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
e("nylas-timeslot-interval", { name: "timeslot-interval", exportparts: "nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content" }),
|
|
84
|
+
e("nylas-customize-booking-settings", { name: "customize-booking-settings", exportparts: "ncbs, ncbs__header, ncbs__settings, ncbs__settings-div, ncbs__additional_guests, ncbs__cancellation_options, ncbs__rescheduling_options" })
|
|
85
85
|
),
|
|
86
|
-
|
|
86
|
+
e(
|
|
87
87
|
"div",
|
|
88
|
-
{ key: `communications-${
|
|
89
|
-
|
|
88
|
+
{ key: `communications-${t}`, class: { hide: n !== o.Communications } },
|
|
89
|
+
e(
|
|
90
90
|
"div",
|
|
91
91
|
{ class: "tab-header" },
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
e("h3", null, "Event communications"),
|
|
93
|
+
e("p", null, "Set up automatic confirmation emails.")
|
|
94
94
|
),
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
e("nylas-confirmation-email", { name: "confirmation-email-template", exportparts: "nce, nce__tab-heading, nce__header, nce__body, nce__confirmation-email-toggle--container, nce__summary, nce__reminder-input_dropdown, nce__reminder-input_dropdown-input, nce__reminder-input_dropdown-content" }),
|
|
96
|
+
e("nylas-reminder-emails", { name: "reminder-emails", exportparts: "nre, nre__tab-heading, nre__header, nre__body, nre__confirmation-email-toggle--container, nre__summary, nre__reminder-input_dropdown, nre__reminder-input_dropdown-input, nre__reminder-input_dropdown-content" })
|
|
97
97
|
),
|
|
98
|
-
|
|
98
|
+
e(
|
|
99
99
|
"div",
|
|
100
|
-
{ key: `participants-${
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
{ key: `participants-${t}`, class: { hide: n !== o.Participants } },
|
|
101
|
+
e("nylas-additional-participants", { name: "participants", exportparts: "nap, nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant" }),
|
|
102
|
+
e("nylas-participants-custom-availability", { participants: a.participants, name: "participant-custom-availability", exportparts: "npca, npca__header, npca__content, npca__participant-container, npca__participant-title, npca__participant-toggle--container, npca__toggle-label, npca__toggle-input, npca__toggle-slider" })
|
|
103
103
|
),
|
|
104
|
-
|
|
104
|
+
e(
|
|
105
105
|
"div",
|
|
106
|
-
{ key: `page-styles-${
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
{ key: `page-styles-${t}`, class: { hide: n !== o.PageStyles } },
|
|
107
|
+
e("nylas-custom-event-slug", { name: "custom-event-slug", exportparts: "nces, nces__body, nces__header, nces__drawer-toggle--container, nces__input-textfield" }),
|
|
108
|
+
e("nylas-page-name", { name: "page-name", exportparts: "npn, npn__body, npn__header, npn__drawer-toggle--container, npn__input-textfield" }),
|
|
109
|
+
e("nylas-page-styling", { name: "page-styling", exportparts: "nps, nps__header, nps__drawer-toggle--container, nps__body, nps__title-input-textfield, nps__company-logo-input-textfield, nps__color-picker, nps__color-picker-button, nps__color-picker-button-label, nps__color-picker-selected-label, nps__submit-button-label-input-textfield, nps__message-textarea" }, i)
|
|
110
110
|
),
|
|
111
|
-
|
|
111
|
+
e(
|
|
112
112
|
"div",
|
|
113
|
-
{ key: `booking-form-${
|
|
114
|
-
|
|
113
|
+
{ key: `booking-form-${t}`, class: { hide: n !== o.BookingForm } },
|
|
114
|
+
e("nylas-booking-form-config", { name: "additional-fields", exportparts: "nbfc, nbfc__header, nbfc__add_field, nbfc__add_field-button, nbfc__add_field-content, nbfc__additional_fields, nbfc__form-field, nbfc__form-field-header, nbfc__form-field-content" })
|
|
115
115
|
)
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
var
|
|
118
|
+
const ne = '.sc-nylas-editor-tabs-h{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}.scheduler-editor.sc-nylas-editor-tabs{display:flex;flex-direction:column;height:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:calc(100% - 80px);display:grid;grid-template-columns:minmax(224px, 25%) 1fr}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{display:table-column-group;height:auto}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{display:flex;flex-direction:column;border-right:1px solid var(--nylas-base-200);background-color:var(--nylas-base-25)}@media screen and (max-width: 768px){.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs{border-right:none}}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 1rem;color:var(--nylas-base-900);background:var(--nylas-base-0);border:none;height:56px;font-family:var(--nylas-font-family);font-size:16px;font-weight:500;line-height:24px;cursor:pointer}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:not(:first-of-type){margin-top:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.sc-nylas-editor-tabs:last-of-type{margin-bottom:0.25rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.active.sc-nylas-editor-tabs{font-weight:600;background:var(--nylas-base-0);color:var(--nylas-primary);border-left:4px solid var(--nylas-primary);box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.0588235294);box-shadow:0px 1px 3px 0px rgba(0, 0, 0, 0.1019607843)}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tabs.sc-nylas-editor-tabs .tab.hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto;overflow-x:hidden}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .hide.sc-nylas-editor-tabs{display:none}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs{width:inherit}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-info.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs,.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs nylas-event-limits.sc-nylas-editor-tabs div[slot=inputs].sc-nylas-editor-tabs{display:flex;flex-direction:column;gap:1rem}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs{display:flex;flex-direction:column;margin:1rem 1rem 0.5rem;row-gap:4px}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs h3.sc-nylas-editor-tabs{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs .tab-content.sc-nylas-editor-tabs .tab-header.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{margin:0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.footer.sc-nylas-editor-tabs{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:80px;padding:0 1rem;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs{flex-direction:column;height:auto}}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .preview.sc-nylas-editor-tabs{margin-top:1rem;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{display:flex;justify-content:flex-end;align-items:center;justify-self:flex-end;gap:1rem}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs{flex-direction:column-reverse;width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.sc-nylas-editor-tabs{max-width:524px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.unsaved-changes.sc-nylas-editor-tabs{color:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.saved-changes.sc-nylas-editor-tabs{color:var(--nylas-success)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error.sc-nylas-editor-tabs{color:var(--nylas-error)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs p.error-full-width.sc-nylas-editor-tabs{max-width:660px}@media screen and (max-width: 768px){.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button-component.sc-nylas-editor-tabs{width:100%}}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;width:148px}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:hover{background:var(--nylas-base-600)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:active{background:var(--nylas-base-800)}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs:disabled{background:var(--nylas-base-300);cursor:not-allowed}.footer.sc-nylas-editor-tabs .buttons.sc-nylas-editor-tabs button.sc-nylas-editor-tabs span.sc-nylas-editor-tabs{display:flex;align-items:center;justify-content:center;gap:0.5rem}button-component#report-issue.sc-nylas-editor-tabs{width:auto}nylas-feedback-form.sc-nylas-editor-tabs{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', ie = ne;
|
|
119
|
+
var se = function(t, a, n, i) {
|
|
120
120
|
var r = arguments.length, s = r < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
|
|
121
121
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
122
|
-
s = Reflect.decorate(
|
|
122
|
+
s = Reflect.decorate(t, a, n, i);
|
|
123
123
|
else
|
|
124
|
-
for (var d =
|
|
125
|
-
(c =
|
|
124
|
+
for (var d = t.length - 1; d >= 0; d--)
|
|
125
|
+
(c = t[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, n, s) : c(a, n)) || s);
|
|
126
126
|
return r > 3 && s && Object.defineProperty(a, n, s), s;
|
|
127
|
-
},
|
|
127
|
+
}, K = function(t, a) {
|
|
128
128
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
129
|
-
return Reflect.metadata(
|
|
129
|
+
return Reflect.metadata(t, a);
|
|
130
130
|
};
|
|
131
|
-
const
|
|
132
|
-
constructor(
|
|
133
|
-
G(this,
|
|
131
|
+
const Dt = class {
|
|
132
|
+
constructor(t) {
|
|
133
|
+
G(this, t), this.schedulerConfigChanged = k(this, "schedulerConfigChanged", 7), this.cancelButtonClick = k(this, "cancelButtonClick", 7), this.formSubmitted = k(this, "formSubmitted", 7), this.previewButtonClicked = k(this, "previewButtonClicked", 7), this.schedulerEditorFormUpdated = k(this, "schedulerEditorFormUpdated", 7), this.setError = (a) => {
|
|
134
134
|
this.error = a.message;
|
|
135
135
|
}, this.formSubmissionHandler = async (a) => {
|
|
136
|
-
var
|
|
136
|
+
var Y, tt, et, at, nt, it, st, ot, rt, lt, dt, ct, bt, ht, ut, pt, mt;
|
|
137
137
|
a.preventDefault();
|
|
138
138
|
const n = await this.formSubmitted.emit();
|
|
139
139
|
if (h("[nylas-editor-tabs]", "formSubmissionHandler", n), !this.formRef.checkValidity() || n.defaultPrevented) {
|
|
@@ -141,75 +141,80 @@ const Be = class {
|
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
143
|
this.isLoading = !0, this.hasUnsavedChanges = !1;
|
|
144
|
-
const r = this.updateFormState(), { title: s, description: c, duration: d, availability: u, bookingCalendar:
|
|
144
|
+
const r = this.updateFormState(), { title: s, description: c, duration: d, availability: u, bookingCalendar: y, location: F, bookingType: L, buffer: B, availableDaysInFuture: O, minCancellationNotice: H, minBookingNotice: N, cancellationPolicy: D, timeslotInterval: w, additionalGuestsHidden: I, hideCancellationOptions: M, hideReschedulingOptions: z, participants: v, participantOpenHours: p, additionalFields: U, participantCalendars: f, conferencing: R, participantBookingCalendars: m, reminders: A, emailTemplate: j, redirectUrl: $, availabilityMethod: T, slug: J, appearance: V, name: Z } = r, b = ((tt = (Y = this.selectedConfiguration) == null ? void 0 : Y.participants) == null ? void 0 : tt.find((l) => l.is_organizer)) || (v == null ? void 0 : v.find((l) => l.is_organizer)), S = f && (b != null && b.email) ? f[b == null ? void 0 : b.email] : [], _ = ((et = b == null ? void 0 : b.booking) == null ? void 0 : et.calendar_id) || y, g = d ? parseInt(d) : 30, C = v && (v == null ? void 0 : v.length) > 0 ? v : [
|
|
145
145
|
{
|
|
146
|
-
name: (b == null ? void 0 : b.name) ?? ((
|
|
147
|
-
email: (b == null ? void 0 : b.email) ?? ((
|
|
146
|
+
name: (b == null ? void 0 : b.name) ?? ((at = this.currentUser) == null ? void 0 : at.name) ?? "",
|
|
147
|
+
email: (b == null ? void 0 : b.email) ?? ((nt = this.currentUser) == null ? void 0 : nt.email) ?? "",
|
|
148
148
|
is_organizer: !0,
|
|
149
149
|
timezone: (u == null ? void 0 : u.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
150
150
|
availability: {
|
|
151
|
-
calendar_ids:
|
|
151
|
+
calendar_ids: y && y !== "" ? [y] : ["primary"],
|
|
152
152
|
open_hours: []
|
|
153
153
|
},
|
|
154
154
|
booking: {
|
|
155
|
-
calendar_id:
|
|
155
|
+
calendar_id: y && y !== "" ? y : "primary"
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
], E = {
|
|
159
|
-
...((
|
|
160
|
-
version: ((
|
|
159
|
+
...((it = this.selectedConfiguration) == null ? void 0 : it.id) && { id: this.selectedConfiguration.id },
|
|
160
|
+
version: ((st = this.selectedConfiguration) == null ? void 0 : st.version) ?? "1.0.0",
|
|
161
161
|
slug: J,
|
|
162
162
|
name: Z,
|
|
163
163
|
availability: {
|
|
164
|
-
duration_minutes:
|
|
165
|
-
interval_minutes: (w == null ? void 0 : w.interval) ??
|
|
164
|
+
duration_minutes: g,
|
|
165
|
+
interval_minutes: (w == null ? void 0 : w.interval) ?? g,
|
|
166
166
|
round_to: w == null ? void 0 : w.roundTo,
|
|
167
167
|
availability_rules: {
|
|
168
|
-
availability_method: T || (((
|
|
168
|
+
availability_method: T || (((lt = (rt = (ot = this.selectedConfiguration) == null ? void 0 : ot.availability) == null ? void 0 : rt.availability_rules) == null ? void 0 : lt.availability_method) ?? "collective"),
|
|
169
169
|
buffer: B || { before: 0, after: 0 },
|
|
170
|
-
default_open_hours: (u == null ? void 0 : u.openHours) ?? ((
|
|
171
|
-
round_robin_group_id: ((
|
|
170
|
+
default_open_hours: (u == null ? void 0 : u.openHours) ?? ((bt = (ct = (dt = this.selectedConfiguration) == null ? void 0 : dt.availability) == null ? void 0 : ct.availability_rules) == null ? void 0 : bt.default_open_hours) ?? Bt,
|
|
171
|
+
round_robin_group_id: ((pt = (ut = (ht = this.selectedConfiguration) == null ? void 0 : ht.availability) == null ? void 0 : ut.availability_rules) == null ? void 0 : pt.round_robin_group_id) ?? ""
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
participants: [
|
|
175
|
-
...C
|
|
176
|
-
var
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
175
|
+
...C ? C.map((l) => {
|
|
176
|
+
var ft, yt, _t, gt, vt, wt, kt, Ct, xt, St, Ft, Lt, Pt;
|
|
177
|
+
if (l.is_organizer) {
|
|
178
|
+
const Tt = m != null && m[l.email] ? m == null ? void 0 : m[l.email] : _ || "primary", q = f != null && f[l.email] ? f == null ? void 0 : f[l.email] : S != null && S.length ? S : ["primary"], $t = q.length === 1 && q[0] === "primary";
|
|
179
|
+
return {
|
|
180
|
+
name: l.name ?? "",
|
|
181
|
+
email: l.email,
|
|
182
|
+
is_organizer: !0,
|
|
183
|
+
timezone: ((yt = (ft = p == null ? void 0 : p[l.email]) == null ? void 0 : ft[0]) == null ? void 0 : yt.timezone) ?? ((vt = (gt = (_t = l.availability) == null ? void 0 : _t.open_hours) == null ? void 0 : gt[0]) == null ? void 0 : vt.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
184
|
+
availability: {
|
|
185
|
+
calendar_ids: $t ? [Tt] : q,
|
|
186
|
+
open_hours: (p == null ? void 0 : p[l.email]) ?? ((wt = l.availability) == null ? void 0 : wt.open_hours) ?? []
|
|
187
|
+
},
|
|
188
|
+
booking: {
|
|
189
|
+
calendar_id: Tt
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
const x = m != null && m[l.email] ? { calendar_id: m == null ? void 0 : m[l.email] } : (l == null ? void 0 : l.booking) ?? void 0, W = (f == null ? void 0 : f[l.email]) ?? ((kt = l.availability) == null ? void 0 : kt.calendar_ids) ?? ["primary"], jt = W.length === 1 && W[0] === "primary";
|
|
194
|
+
return {
|
|
190
195
|
...l,
|
|
191
|
-
timezone: ((
|
|
196
|
+
timezone: ((xt = (Ct = p == null ? void 0 : p[l.email]) == null ? void 0 : Ct[0]) == null ? void 0 : xt.timezone) ?? ((Lt = (Ft = (St = l.availability) == null ? void 0 : St.open_hours) == null ? void 0 : Ft[0]) == null ? void 0 : Lt.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
192
197
|
availability: l.availability ? {
|
|
193
|
-
calendar_ids:
|
|
194
|
-
open_hours: (p == null ? void 0 : p[l.email]) ?? ((
|
|
198
|
+
calendar_ids: jt && typeof x < "u" ? [x == null ? void 0 : x.calendar_id] : W,
|
|
199
|
+
open_hours: (p == null ? void 0 : p[l.email]) ?? ((Pt = l.availability) == null ? void 0 : Pt.open_hours) ?? []
|
|
195
200
|
} : void 0,
|
|
196
|
-
booking:
|
|
201
|
+
booking: x
|
|
197
202
|
};
|
|
198
|
-
})
|
|
203
|
+
}) : []
|
|
199
204
|
],
|
|
200
205
|
event_booking: {
|
|
201
206
|
title: (s == null ? void 0 : s.toString()) ?? "",
|
|
202
207
|
description: (c == null ? void 0 : c.toString()) ?? "",
|
|
203
|
-
location: (
|
|
204
|
-
booking_type: (
|
|
208
|
+
location: (F == null ? void 0 : F.toString()) ?? "",
|
|
209
|
+
booking_type: (L == null ? void 0 : L.toString()) ?? "booking",
|
|
205
210
|
timezone: (u == null ? void 0 : u.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
206
211
|
conferencing: R,
|
|
207
212
|
reminders: A
|
|
208
213
|
},
|
|
209
214
|
scheduler: {
|
|
210
215
|
cancellation_policy: D ?? "",
|
|
211
|
-
available_days_in_future:
|
|
212
|
-
min_cancellation_notice:
|
|
216
|
+
available_days_in_future: O ?? 30,
|
|
217
|
+
min_cancellation_notice: H ?? 0,
|
|
213
218
|
min_booking_notice: N ?? 60,
|
|
214
219
|
hide_additional_guests: I ?? !1,
|
|
215
220
|
hide_cancellation_options: M ?? !1,
|
|
@@ -219,17 +224,17 @@ const Be = class {
|
|
|
219
224
|
confirmation_redirect_url: $
|
|
220
225
|
},
|
|
221
226
|
appearance: V
|
|
222
|
-
},
|
|
223
|
-
this.isConfigRoundRobin(
|
|
224
|
-
const
|
|
227
|
+
}, Mt = Et(E, this.selectedConfiguration || {}), P = this.action === "create" ? Mt : E;
|
|
228
|
+
this.isConfigRoundRobin(P) && (P.participants = P.participants.map((l) => ({ ...l, is_organizer: void 0 })));
|
|
229
|
+
const zt = (l) => {
|
|
225
230
|
this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
|
|
226
231
|
this.changesSaved = !1;
|
|
227
232
|
}, 5e3);
|
|
228
|
-
},
|
|
229
|
-
var
|
|
230
|
-
return l.id === ((
|
|
231
|
-
})) || {},
|
|
232
|
-
|
|
233
|
+
}, Ut = this.checkForBookingFormErrors(P), Rt = ((mt = this.configurations) == null ? void 0 : mt.find((l) => {
|
|
234
|
+
var x;
|
|
235
|
+
return l.id === ((x = this.selectedConfiguration) == null ? void 0 : x.id);
|
|
236
|
+
})) || {}, At = this.checkForOrganizerConfirmationError(Et(P, Rt));
|
|
237
|
+
Ut || At || this.schedulerConfigChanged.emit({ config: P, resetLoadingState: zt, setError: this.setError, action: this.action });
|
|
233
238
|
}, this.isConfigRoundRobin = (a) => {
|
|
234
239
|
var n, i, r, s;
|
|
235
240
|
return ((i = (n = a == null ? void 0 : a.availability) == null ? void 0 : n.availability_rules) == null ? void 0 : i.availability_method) === "max-availability" || ((s = (r = a.availability) == null ? void 0 : r.availability_rules) == null ? void 0 : s.availability_method) === "max-fairness";
|
|
@@ -258,13 +263,13 @@ const Be = class {
|
|
|
258
263
|
})), n && (this.isLoading = !1, this.setError(new Error(i))), n;
|
|
259
264
|
}, this.calendars = void 0, this.selectedConfiguration = void 0, this.configurations = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.hideEditorTabs = [], this.enableUserFeedback = !0, this.action = "create", this.showFeedbackModal = !1, this.activeTab = o.EventInfo, this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
|
|
260
265
|
}
|
|
261
|
-
configChangedHandler(
|
|
262
|
-
h("[nylas-editor-tabs]", "configChangedHandler",
|
|
263
|
-
...this.getFormStateFromConfig(
|
|
264
|
-
},
|
|
266
|
+
configChangedHandler(t) {
|
|
267
|
+
h("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
|
|
268
|
+
...this.getFormStateFromConfig(t)
|
|
269
|
+
}, t != null && t.id ? this.action = "edit" : this.action = "create";
|
|
265
270
|
}
|
|
266
|
-
userChangedHandler(
|
|
267
|
-
h("[nylas-editor-tabs]", "userChangedHandler",
|
|
271
|
+
userChangedHandler(t) {
|
|
272
|
+
h("[nylas-editor-tabs]", "userChangedHandler", t), t && (this.formState = {
|
|
268
273
|
...this.getFormStateFromConfig(this.selectedConfiguration)
|
|
269
274
|
});
|
|
270
275
|
}
|
|
@@ -276,12 +281,12 @@ const Be = class {
|
|
|
276
281
|
}
|
|
277
282
|
componentDidLoad() {
|
|
278
283
|
var a, n;
|
|
279
|
-
h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !
|
|
284
|
+
h("[nylas-editor-tabs]", "componentDidLoad"), this.enableUserFeedback && !Vt() && Zt({
|
|
280
285
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
281
|
-
release: "1.
|
|
286
|
+
release: "1.2.0",
|
|
282
287
|
integrations: (i) => [
|
|
283
288
|
...i.filter((r) => !1),
|
|
284
|
-
|
|
289
|
+
qt({
|
|
285
290
|
colorScheme: "system",
|
|
286
291
|
autoInject: !1
|
|
287
292
|
})
|
|
@@ -289,35 +294,35 @@ const Be = class {
|
|
|
289
294
|
autoSessionTracking: !1,
|
|
290
295
|
beforeSend: () => null
|
|
291
296
|
}), (a = this.selectedConfiguration) != null && a.id && this.configChangedHandler(this.selectedConfiguration);
|
|
292
|
-
const
|
|
293
|
-
|
|
297
|
+
const t = (n = this.host.querySelector("button.tab:not(.hide)")) == null ? void 0 : n.name;
|
|
298
|
+
t && (this.activeTab = t);
|
|
294
299
|
}
|
|
295
300
|
disconnectedCallback() {
|
|
296
301
|
h("[nylas-editor-tabs]", "disconnectedCallback");
|
|
297
302
|
}
|
|
298
|
-
handleValueChanged(
|
|
299
|
-
h("[nylas-editor-tabs]", "handleValueChanged",
|
|
300
|
-
const { name: a, value: n } =
|
|
303
|
+
handleValueChanged(t) {
|
|
304
|
+
h("[nylas-editor-tabs]", "handleValueChanged", t);
|
|
305
|
+
const { name: a, value: n } = t.detail;
|
|
301
306
|
this.setFormState(n, a), this.formState = { ...this.formState }, this.hasUnsavedChanges = !0, this.error = "", this.schedulerEditorFormUpdated.emit({
|
|
302
|
-
value:
|
|
303
|
-
name:
|
|
307
|
+
value: t.detail.value,
|
|
308
|
+
name: t.detail.name
|
|
304
309
|
});
|
|
305
310
|
}
|
|
306
311
|
feedbackModalClosedHandler() {
|
|
307
312
|
this.showFeedbackModal = !1;
|
|
308
313
|
}
|
|
309
|
-
feedbackSubmittedHandler(
|
|
314
|
+
feedbackSubmittedHandler(t) {
|
|
310
315
|
var i, r;
|
|
311
316
|
const n = {
|
|
312
|
-
eventId:
|
|
313
|
-
message:
|
|
317
|
+
eventId: Gt("Scheduler Editor User Feedback"),
|
|
318
|
+
message: t.detail.feedback
|
|
314
319
|
};
|
|
315
|
-
|
|
320
|
+
Wt(n, {
|
|
316
321
|
includeReplay: !0,
|
|
317
322
|
captureContext: {
|
|
318
323
|
tags: {
|
|
319
324
|
"nylas-web-element": "nylas-scheduler-editor",
|
|
320
|
-
"nylas-web-element-version": "1.
|
|
325
|
+
"nylas-web-element-version": "1.2.0"
|
|
321
326
|
},
|
|
322
327
|
extra: {
|
|
323
328
|
configId: (i = this.selectedConfiguration) == null ? void 0 : i.id,
|
|
@@ -326,143 +331,145 @@ const Be = class {
|
|
|
326
331
|
}
|
|
327
332
|
}), this.showFeedbackModal = !1;
|
|
328
333
|
}
|
|
329
|
-
getFormStateFromConfig(
|
|
330
|
-
var n, i, r, s, c, d, u,
|
|
331
|
-
let a = (n =
|
|
332
|
-
return !a && ((r = (i =
|
|
333
|
-
var
|
|
334
|
-
return
|
|
335
|
-
}), a && (a.is_organizer = !0)),
|
|
336
|
-
title: ((c =
|
|
337
|
-
description: ((d =
|
|
338
|
-
duration: ((
|
|
334
|
+
getFormStateFromConfig(t) {
|
|
335
|
+
var n, i, r, s, c, d, u, y, F, L, B, O, H, N, D, w, I, M, z, v, p, U, f, R, m, A, j, $, T, J, V, Z, b, S;
|
|
336
|
+
let a = (n = t == null ? void 0 : t.participants) == null ? void 0 : n.find((_) => _.is_organizer);
|
|
337
|
+
return !a && ((r = (i = t == null ? void 0 : t.availability) == null ? void 0 : i.availability_rules) == null ? void 0 : r.availability_method) !== "collective" && (a = (s = t == null ? void 0 : t.participants) == null ? void 0 : s.find((_) => {
|
|
338
|
+
var g;
|
|
339
|
+
return _.email === ((g = this.currentUser) == null ? void 0 : g.email);
|
|
340
|
+
}), a && (a.is_organizer = !0)), t != null && t.appearance && console.info("Appearance settings have been returned from the given configuration; please remember to grab them from the configSettingsLoaded event and apply them as desired."), {
|
|
341
|
+
title: ((c = t == null ? void 0 : t.event_booking) == null ? void 0 : c.title) ?? "",
|
|
342
|
+
description: ((d = t == null ? void 0 : t.event_booking) == null ? void 0 : d.description) ?? "",
|
|
343
|
+
duration: ((y = (u = t == null ? void 0 : t.availability) == null ? void 0 : u.duration_minutes) == null ? void 0 : y.toString()) ?? "30",
|
|
339
344
|
availability: {
|
|
340
|
-
timezone: ((
|
|
341
|
-
openHours: ((B = (
|
|
345
|
+
timezone: ((F = t == null ? void 0 : t.event_booking) == null ? void 0 : F.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
346
|
+
openHours: ((B = (L = t == null ? void 0 : t.availability) == null ? void 0 : L.availability_rules) == null ? void 0 : B.default_open_hours) ?? Bt
|
|
342
347
|
},
|
|
343
|
-
additionalFields: ((
|
|
344
|
-
conferencing: ((
|
|
348
|
+
additionalFields: ((O = t == null ? void 0 : t.scheduler) == null ? void 0 : O.additional_fields) ?? {},
|
|
349
|
+
conferencing: ((H = t == null ? void 0 : t.event_booking) == null ? void 0 : H.conferencing) ?? {},
|
|
345
350
|
calendarIds: ((N = a == null ? void 0 : a.availability) == null ? void 0 : N.calendar_ids) ?? [],
|
|
346
|
-
participants: (
|
|
351
|
+
participants: (t == null ? void 0 : t.participants) ?? [],
|
|
347
352
|
bookingCalendar: ((D = a == null ? void 0 : a.booking) == null ? void 0 : D.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
|
|
348
|
-
location: ((w =
|
|
349
|
-
bookingType: ((I =
|
|
350
|
-
buffer: ((z = (M =
|
|
351
|
-
cancellationPolicy: ((
|
|
352
|
-
availableDaysInFuture: ((p =
|
|
353
|
-
minCancellationNotice: ((U =
|
|
354
|
-
minBookingNotice: ((f =
|
|
353
|
+
location: ((w = t == null ? void 0 : t.event_booking) == null ? void 0 : w.location) ?? "",
|
|
354
|
+
bookingType: ((I = t == null ? void 0 : t.event_booking) == null ? void 0 : I.booking_type) ?? "booking",
|
|
355
|
+
buffer: ((z = (M = t == null ? void 0 : t.availability) == null ? void 0 : M.availability_rules) == null ? void 0 : z.buffer) ?? { before: 0, after: 0 },
|
|
356
|
+
cancellationPolicy: ((v = t == null ? void 0 : t.scheduler) == null ? void 0 : v.cancellation_policy) ?? "",
|
|
357
|
+
availableDaysInFuture: ((p = t == null ? void 0 : t.scheduler) == null ? void 0 : p.available_days_in_future) ?? 30,
|
|
358
|
+
minCancellationNotice: ((U = t == null ? void 0 : t.scheduler) == null ? void 0 : U.min_cancellation_notice) ?? 0,
|
|
359
|
+
minBookingNotice: ((f = t == null ? void 0 : t.scheduler) == null ? void 0 : f.min_booking_notice) ?? 60,
|
|
355
360
|
timeslotInterval: {
|
|
356
|
-
interval: ((R =
|
|
357
|
-
roundTo: (A =
|
|
361
|
+
interval: ((R = t == null ? void 0 : t.availability) == null ? void 0 : R.interval_minutes) ?? ((m = t == null ? void 0 : t.availability) == null ? void 0 : m.duration_minutes),
|
|
362
|
+
roundTo: (A = t == null ? void 0 : t.availability) == null ? void 0 : A.round_to
|
|
358
363
|
},
|
|
359
|
-
additionalGuestsHidden: ((j =
|
|
360
|
-
hideCancellationOptions: (($ =
|
|
361
|
-
hideReschedulingOptions: ((T =
|
|
362
|
-
participantBookingCalendars: ((J =
|
|
364
|
+
additionalGuestsHidden: ((j = t == null ? void 0 : t.scheduler) == null ? void 0 : j.hide_additional_guests) ?? !1,
|
|
365
|
+
hideCancellationOptions: (($ = t == null ? void 0 : t.scheduler) == null ? void 0 : $.hide_cancellation_options) ?? !1,
|
|
366
|
+
hideReschedulingOptions: ((T = t == null ? void 0 : t.scheduler) == null ? void 0 : T.hide_rescheduling_options) ?? !1,
|
|
367
|
+
participantBookingCalendars: ((J = t == null ? void 0 : t.participants) == null ? void 0 : J.reduce((_, g) => {
|
|
363
368
|
var C, E;
|
|
364
|
-
return (C =
|
|
369
|
+
return (C = g.booking) != null && C.calendar_id && (_[g.email] = (E = g.booking) == null ? void 0 : E.calendar_id), _;
|
|
365
370
|
})) ?? {},
|
|
366
|
-
participantCalendars: ((V =
|
|
371
|
+
participantCalendars: ((V = t == null ? void 0 : t.participants) == null ? void 0 : V.reduce((_, g) => {
|
|
367
372
|
var C;
|
|
368
|
-
return
|
|
373
|
+
return _[g.email] = (C = g.availability) == null ? void 0 : C.calendar_ids, _;
|
|
369
374
|
}, {})) ?? {},
|
|
370
|
-
reminders: (Z =
|
|
371
|
-
emailTemplate: (b =
|
|
372
|
-
redirectUrl: (
|
|
373
|
-
slug:
|
|
374
|
-
appearance:
|
|
375
|
-
name:
|
|
375
|
+
reminders: (Z = t == null ? void 0 : t.event_booking) == null ? void 0 : Z.reminders,
|
|
376
|
+
emailTemplate: (b = t == null ? void 0 : t.scheduler) == null ? void 0 : b.email_template,
|
|
377
|
+
redirectUrl: (S = t == null ? void 0 : t.scheduler) == null ? void 0 : S.confirmation_redirect_url,
|
|
378
|
+
slug: t == null ? void 0 : t.slug,
|
|
379
|
+
appearance: t == null ? void 0 : t.appearance,
|
|
380
|
+
name: t == null ? void 0 : t.name
|
|
376
381
|
};
|
|
377
382
|
}
|
|
378
|
-
setFormState(
|
|
383
|
+
setFormState(t, a) {
|
|
379
384
|
switch (a) {
|
|
380
385
|
case "title":
|
|
381
|
-
this.formState.title =
|
|
386
|
+
this.formState.title = t.toString();
|
|
382
387
|
break;
|
|
383
388
|
case "description":
|
|
384
|
-
this.formState.description =
|
|
389
|
+
this.formState.description = t.toString();
|
|
385
390
|
break;
|
|
386
391
|
case "duration":
|
|
387
|
-
this.formState.duration =
|
|
392
|
+
this.formState.duration = t.toString();
|
|
388
393
|
break;
|
|
389
394
|
case "availability":
|
|
390
|
-
this.formState.availability = JSON.parse(
|
|
395
|
+
this.formState.availability = JSON.parse(t.toString());
|
|
391
396
|
break;
|
|
392
397
|
case "participants":
|
|
393
|
-
this.formState.participants = JSON.parse(
|
|
398
|
+
this.formState.participants = JSON.parse(t.toString());
|
|
394
399
|
break;
|
|
395
400
|
case "booking-calendar":
|
|
396
|
-
this.formState.bookingCalendar =
|
|
401
|
+
this.formState.bookingCalendar = t.toString();
|
|
397
402
|
break;
|
|
398
403
|
case "participant-booking-calendars":
|
|
399
|
-
this.formState.participantBookingCalendars = JSON.parse(
|
|
404
|
+
this.formState.participantBookingCalendars = JSON.parse(t.toString());
|
|
400
405
|
break;
|
|
401
406
|
case "location":
|
|
402
|
-
this.formState.location =
|
|
407
|
+
this.formState.location = t.toString();
|
|
403
408
|
break;
|
|
404
409
|
case "conference":
|
|
405
|
-
this.formState.conferencing = JSON.parse(
|
|
410
|
+
this.formState.conferencing = JSON.parse(t.toString());
|
|
406
411
|
break;
|
|
407
412
|
case "confirmation-type":
|
|
408
|
-
this.formState.bookingType =
|
|
413
|
+
this.formState.bookingType = t.toString();
|
|
409
414
|
break;
|
|
410
415
|
case "buffer-time":
|
|
411
|
-
this.formState.buffer = JSON.parse(
|
|
416
|
+
this.formState.buffer = JSON.parse(t.toString());
|
|
412
417
|
break;
|
|
413
418
|
case "limit-future-bookings":
|
|
414
|
-
this.formState.availableDaysInFuture = parseInt(
|
|
419
|
+
this.formState.availableDaysInFuture = parseInt(t.toString());
|
|
415
420
|
break;
|
|
416
421
|
case "min-cancellation-notice":
|
|
417
|
-
this.formState.minCancellationNotice = parseInt(
|
|
422
|
+
this.formState.minCancellationNotice = parseInt(t.toString());
|
|
418
423
|
break;
|
|
419
424
|
case "min-booking-notice":
|
|
420
|
-
this.formState.minBookingNotice = parseInt(
|
|
425
|
+
this.formState.minBookingNotice = parseInt(t.toString());
|
|
421
426
|
break;
|
|
422
427
|
case "cancellation-policy":
|
|
423
|
-
this.formState.cancellationPolicy =
|
|
428
|
+
this.formState.cancellationPolicy = t.toString();
|
|
424
429
|
break;
|
|
425
430
|
case "timeslot-interval":
|
|
426
|
-
this.formState.timeslotInterval = JSON.parse(
|
|
431
|
+
this.formState.timeslotInterval = JSON.parse(t.toString());
|
|
427
432
|
break;
|
|
428
|
-
case "customize-booking-settings":
|
|
429
|
-
const n = JSON.parse(
|
|
433
|
+
case "customize-booking-settings": {
|
|
434
|
+
const n = JSON.parse(t.toString());
|
|
430
435
|
this.formState.additionalGuestsHidden = n.additionalGuestsHidden, this.formState.hideCancellationOptions = n.hideCancellationOptions, this.formState.hideReschedulingOptions = n.hideReschedulingOptions;
|
|
431
436
|
break;
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
437
|
+
}
|
|
438
|
+
case "participant-custom-availability": {
|
|
439
|
+
const n = JSON.parse(t.toString());
|
|
440
|
+
this.formState.participantOpenHours = n;
|
|
435
441
|
break;
|
|
442
|
+
}
|
|
436
443
|
case "additional-fields":
|
|
437
|
-
this.formState.additionalFields =
|
|
444
|
+
this.formState.additionalFields = t;
|
|
438
445
|
break;
|
|
439
446
|
case "connected-calendars":
|
|
440
|
-
this.formState.participantCalendars = JSON.parse(
|
|
447
|
+
this.formState.participantCalendars = JSON.parse(t.toString());
|
|
441
448
|
break;
|
|
442
449
|
case "confirmation-email-template":
|
|
443
|
-
this.formState.emailTemplate = JSON.parse(
|
|
450
|
+
this.formState.emailTemplate = JSON.parse(t.toString());
|
|
444
451
|
break;
|
|
445
452
|
case "reminder-overrides":
|
|
446
|
-
this.formState.reminders = JSON.parse(
|
|
453
|
+
this.formState.reminders = JSON.parse(t.toString());
|
|
447
454
|
break;
|
|
448
455
|
case "confirmation-redirect":
|
|
449
|
-
this.formState.redirectUrl =
|
|
456
|
+
this.formState.redirectUrl = t.toString();
|
|
450
457
|
break;
|
|
451
458
|
case "availability-method":
|
|
452
|
-
this.formState.availabilityMethod =
|
|
459
|
+
this.formState.availabilityMethod = t.toString();
|
|
453
460
|
break;
|
|
454
461
|
case "custom-event-slug":
|
|
455
|
-
this.formState.slug = JSON.parse(
|
|
462
|
+
this.formState.slug = JSON.parse(t.toString());
|
|
456
463
|
break;
|
|
457
464
|
case "page-styling":
|
|
458
|
-
this.formState.appearance = JSON.parse(
|
|
465
|
+
this.formState.appearance = JSON.parse(t.toString());
|
|
459
466
|
break;
|
|
460
467
|
case "page-name":
|
|
461
|
-
this.formState.name = JSON.parse(
|
|
468
|
+
this.formState.name = JSON.parse(t.toString());
|
|
462
469
|
break;
|
|
463
470
|
}
|
|
464
471
|
this.schedulerEditorFormUpdated.emit({
|
|
465
|
-
value:
|
|
472
|
+
value: t,
|
|
466
473
|
name: a
|
|
467
474
|
});
|
|
468
475
|
}
|
|
@@ -471,31 +478,31 @@ const Be = class {
|
|
|
471
478
|
this.setFormState(a, n);
|
|
472
479
|
}), this.formState = { ...this.formState }, this.formState;
|
|
473
480
|
}
|
|
474
|
-
setActiveTab(
|
|
475
|
-
|
|
481
|
+
setActiveTab(t, a) {
|
|
482
|
+
t.preventDefault(), this.updateFormState(), this.activeTab = a;
|
|
476
483
|
}
|
|
477
|
-
hideTab(
|
|
484
|
+
hideTab(t) {
|
|
478
485
|
var a;
|
|
479
|
-
return ((a = this.hideEditorTabs) == null ? void 0 : a.includes(
|
|
486
|
+
return ((a = this.hideEditorTabs) == null ? void 0 : a.includes(t)) || !1;
|
|
480
487
|
}
|
|
481
|
-
onFeedbackClick(
|
|
482
|
-
|
|
488
|
+
onFeedbackClick(t) {
|
|
489
|
+
t.preventDefault(), this.showFeedbackModal = !0;
|
|
483
490
|
}
|
|
484
491
|
render() {
|
|
485
|
-
var
|
|
486
|
-
return h("[nylas-editor-tabs]", "render", this.formState),
|
|
492
|
+
var t, a;
|
|
493
|
+
return h("[nylas-editor-tabs]", "render", this.formState), e(Ot, { key: "8cbf8365afc709571094e6a51cf527c6abe70936" }, e("form", { key: "58041aa03811eab4edc4b27c758f4118778ecd4c", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents", part: "editor__form-contents net__form-contents" }, e("div", { class: "tabs", part: "editor__tabs net__tabs" }, e("button", { name: o.EventInfo, class: { tab: !0, active: this.activeTab == o.EventInfo, hide: this.hideTab(o.EventInfo) }, part: "editortab__event-info net__tab-event-info", onClick: (n) => this.setActiveTab(n, o.EventInfo) }, e("calendar-info-icon", { width: "16", height: "16" }), "Event info"), e("button", { name: o.Availability, class: { tab: !0, active: this.activeTab == o.Availability, hide: this.hideTab(o.Availability) }, part: "editortab__availability net__tab-availability", onClick: (n) => this.setActiveTab(n, o.Availability) }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { name: o.Participants, class: { tab: !0, active: this.activeTab == o.Participants, hide: this.hideTab(o.Participants) }, part: "editortab__participants net__tab-participants", onClick: (n) => this.setActiveTab(n, o.Participants) }, e("people-icon", { width: "16", height: "16" }), "Participants"), e("button", { name: o.BookingOptions, class: { tab: !0, active: this.activeTab == o.BookingOptions, hide: this.hideTab(o.BookingOptions) }, part: "editortab__booking-options net__tab-booking-options", onClick: (n) => this.setActiveTab(n, o.BookingOptions) }, e("flow-icon", { width: "16", height: "16" }), "Booking options"), e("button", { name: o.BookingForm, class: { tab: !0, active: this.activeTab == "bookingForm", hide: this.hideTab(o.BookingForm) }, part: "editortab__booking-form net__tab-booking-form", onClick: (n) => this.setActiveTab(n, o.BookingForm) }, this.activeTab == o.BookingForm ? e("calendar-agenda-fill-icon", { width: "16", height: "16" }) : e("calendar-agenda-icon", { width: "16", height: "16" }), "Booking form"), e("button", { name: o.Communications, class: { tab: !0, active: this.activeTab == "communications", hide: this.hideTab(o.Communications) }, onClick: (n) => this.setActiveTab(n, o.Communications), part: "editortab__communications net__tab-communications" }, this.activeTab == o.Communications ? e("envelope-fill-icon", { width: "16", height: "16" }) : e("envelope-icon", { width: "16", height: "16" }), "Communications"), e("button", { name: o.PageStyles, class: { tab: !0, active: this.activeTab == "pageStyles", hide: this.hideTab(o.PageStyles) }, onClick: (n) => this.setActiveTab(n, o.PageStyles), part: "editortab__page-styles net__tab-page-styles" }, this.activeTab == o.PageStyles ? e("paintbrush-fill-icon", { width: "16", height: "16" }) : e("paintbrush-icon", { width: "16", height: "16" }), "Page styles")), e("div", { class: "tab-content", part: "editor__tab-content net__tab-content" }, e(ae, { formState: this.formState, activeTab: this.activeTab, currentUser: this.currentUser, calendars: this.calendars, id: ((t = this.selectedConfiguration) == null ? void 0 : t.id) ?? "new" }))) : e("div", { class: "composable", key: (a = this.selectedConfiguration) == null ? void 0 : a.id }, e("slot", null)), e("div", { key: "7f23084e92f45c6654728665366513eb6c72ea2b", class: "footer", part: "editor__footer net__footer" }, e("div", { key: "cd40dd405909fa29828200cb45a8ab9d4acfb120", class: "preview", part: "editor__footer-preview net__footer-preview" }, this.enableUserFeedback && e("button-component", { title: "Share your feedback", id: "report-issue", variant: "basic", onClick: (n) => this.onFeedbackClick(n) }, e("feedback-icon", null))), e("div", { key: "ff34829d21f8728ef7b5c8f3493591ff0645df9b", class: "buttons", part: "editor__footer-buttons net__footer-buttons" }, e("p", { key: "2e3ab65ac01c28cb54dd9410f6c709d89ee86e42", class: {
|
|
487
494
|
"unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
|
|
488
495
|
"saved-changes": this.changesSaved,
|
|
489
496
|
error: this.error !== "",
|
|
490
497
|
"error-full-width": this.error !== "" && this.action === "create"
|
|
491
|
-
} }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), this.schedulerPreviewLink !== "" && this.action === "edit" &&
|
|
492
|
-
n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(
|
|
493
|
-
}, variant: "basic" },
|
|
498
|
+
} }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), this.schedulerPreviewLink !== "" && this.action === "edit" && e("button-component", { title: "Preview", type: "button", disabled: this.isLoading, clickHandler: (n) => {
|
|
499
|
+
n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(X(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
|
|
500
|
+
}, variant: "basic" }, e("eye-icon", null)), e("button-component", { key: "cf9be4337b438cbb3b4e02c9afab2068278d81a7", type: "button", disabled: this.isLoading, clickHandler: (n) => {
|
|
494
501
|
n.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
|
|
495
|
-
}, variant: "basic", part: "editor__footer-cancel" }, "Back"),
|
|
502
|
+
}, variant: "basic", part: "editor__footer-cancel net__footer-cancel" }, "Back"), e("button-component", { key: "c573a8aefbe700a9340a3a79bbb9bb2059ba2a8d", type: "submit", disabled: this.isLoading, part: "editor__footer-cta net__footer-cta" }, this.isLoading ? e("span", null, "Saving", e("loading-icon", null), " ") : this.action === "create" ? "Create" : "Save changes")))), this.showFeedbackModal && e("nylas-feedback-form", null));
|
|
496
503
|
}
|
|
497
504
|
get host() {
|
|
498
|
-
return
|
|
505
|
+
return Ht(this);
|
|
499
506
|
}
|
|
500
507
|
static get watchers() {
|
|
501
508
|
return {
|
|
@@ -504,8 +511,8 @@ const Be = class {
|
|
|
504
511
|
};
|
|
505
512
|
}
|
|
506
513
|
};
|
|
507
|
-
|
|
508
|
-
|
|
514
|
+
se([
|
|
515
|
+
Nt({
|
|
509
516
|
name: "nylas-editor-tabs",
|
|
510
517
|
stateToProps: /* @__PURE__ */ new Map([
|
|
511
518
|
["schedulerConfig.calendars", "calendars"],
|
|
@@ -514,10 +521,10 @@ Ye([
|
|
|
514
521
|
["schedulerConfig.configurations", "configurations"]
|
|
515
522
|
]),
|
|
516
523
|
eventToProps: {
|
|
517
|
-
schedulerConfigChanged: async (
|
|
518
|
-
const { resetLoadingState: n, setError: i, action: r, config: s } =
|
|
519
|
-
const [u,
|
|
520
|
-
!u &&
|
|
524
|
+
schedulerConfigChanged: async (t, a) => {
|
|
525
|
+
const { resetLoadingState: n, setError: i, action: r, config: s } = t.detail, c = (d) => {
|
|
526
|
+
const [u, y] = d;
|
|
527
|
+
!u && y && i && i(y), n && n(t);
|
|
521
528
|
};
|
|
522
529
|
if (r === "edit") {
|
|
523
530
|
const d = await a.schedulerConfig.updateConfiguration(s);
|
|
@@ -527,17 +534,17 @@ Ye([
|
|
|
527
534
|
c(d);
|
|
528
535
|
}
|
|
529
536
|
},
|
|
530
|
-
cancelButtonClick: async (
|
|
537
|
+
cancelButtonClick: async (t, a) => {
|
|
531
538
|
a.schedulerConfigStore.state.action = null;
|
|
532
539
|
},
|
|
533
|
-
previewButtonClicked: async (
|
|
540
|
+
previewButtonClicked: async (t, a) => {
|
|
534
541
|
h("[nylas-editor-tabs]", "previewButtonClicked", a);
|
|
535
542
|
},
|
|
536
|
-
formSubmitted: async (
|
|
543
|
+
formSubmitted: async (t, a) => {
|
|
537
544
|
h("[nylas-editor-tabs]", "formSubmitted", a);
|
|
538
545
|
},
|
|
539
|
-
schedulerEditorFormUpdated: async (
|
|
540
|
-
h("[nylas-editor-tabs]", "schedulerEditorFormUpdated",
|
|
546
|
+
schedulerEditorFormUpdated: async (t, a) => {
|
|
547
|
+
h("[nylas-editor-tabs]", "schedulerEditorFormUpdated", t);
|
|
541
548
|
}
|
|
542
549
|
},
|
|
543
550
|
localPropsToProp: /* @__PURE__ */ new Map([
|
|
@@ -547,34 +554,34 @@ Ye([
|
|
|
547
554
|
]),
|
|
548
555
|
fireRegisterEvent: !0
|
|
549
556
|
}),
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
],
|
|
554
|
-
|
|
555
|
-
const
|
|
556
|
-
var
|
|
557
|
+
K("design:type", Function),
|
|
558
|
+
K("design:paramtypes", []),
|
|
559
|
+
K("design:returntype", void 0)
|
|
560
|
+
], Dt.prototype, "render", null);
|
|
561
|
+
Dt.style = ie;
|
|
562
|
+
const oe = ':host{display:grid;grid-auto-flow:row;width:100%;font-family:inherit;font-optical-sizing:auto;--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}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}@media screen and (max-width: 768px){.header{flex-direction:column;gap:0.5rem;align-items:unset}}.header h2{margin:0;font-size:1.25rem;color:var(--nylas-base-900);font-weight:600}.header p{margin:0;font-size:1rem;color:var(--nylas-base-700)}.header .actions{justify-self:end}@media screen and (max-width: 768px){.header .actions{width:100%}}.configurations{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-0);height:100%;display:flex;flex-direction:column;position:relative;overflow-y:hidden}.configurations .table-container{overflow-y:auto;flex:1}.configurations .table-container table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations .table-container table.no-configurations{height:100%}.configurations .table-container table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations .table-container table tr.hide{display:none}.configurations .table-container table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations .table-container table tr.no-configurations td>div{display:flex;height:100%;justify-content:center;align-items:center;flex-direction:column;padding:var(--nylas-border-radius-3x)}.configurations .table-container table tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations .table-container table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations .table-container table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations .table-container table th,.configurations .table-container table td{text-align:left;padding:1rem;font-family:inherit}.configurations .table-container table .actions{text-align:right}.configurations .table-container table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations .table-container table .actions{flex-direction:column;gap:0.5rem}}.configurations .table-container table .title{width:100%;max-width:300px}@media screen and (max-width: 768px){.configurations .table-container table .title{max-width:96px}}.configurations .table-container table .title div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configurations .table-container table .title div.config-event-title{font-weight:600}.configurations .table-container table .title div.config-event-description{font-size:0.75rem}.configurations .pagination{padding:1rem;position:sticky;top:100%;display:flex;justify-content:flex-end;gap:0.5rem;background:white;width:calc(100% - 2rem);z-index:2}.configurations .pagination td.arrows{display:flex;justify-content:flex-end;gap:0.5rem}.configurations .pagination button{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3vh;width:3vh;min-width:3em;min-height:3em;cursor:pointer;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background-color:transparent;color:var(--nylas-base-800);cursor:pointer}.configurations .pagination button:hover:not(:disabled){border:1px solid var(--nylas-primary)}.configurations .pagination button:active{border:1px solid var(--nylas-base-800)}.configurations .pagination button:disabled{border:1px solid var(--nylas-base-100);background-color:transparent;color:var(--nylas-base-300);cursor:not-allowed}.configurations .pagination button.right{transform:rotate(180deg)}.error-container{margin-top:1.5rem}.error-container .error{color:var(--nylas-error);padding:0.5rem 0;margin:1rem 0 0}button-component#copy button{width:108px}select-dropdown{width:auto}select-dropdown::part(sd_dropdown-button){display:block;height:48px;padding:0px 16px 8px}@media screen and (max-width: 768px){select-dropdown::part(sd_dropdown-button){width:92px}}select-dropdown::part(sd_dropdown-content){width:120px;right:0}select-dropdown::part(sd_dropdown-labelhtml){display:flex;gap:0.5rem;align-items:center;color:var(--nylas-base-900)}select-dropdown::part(sd_dropdown-labelhtml):hover{color:var(--nylas-primary)}', re = oe;
|
|
563
|
+
var le = function(t, a, n, i) {
|
|
557
564
|
var r = arguments.length, s = r < 3 ? a : i === null ? i = Object.getOwnPropertyDescriptor(a, n) : i, c;
|
|
558
565
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
559
|
-
s = Reflect.decorate(
|
|
566
|
+
s = Reflect.decorate(t, a, n, i);
|
|
560
567
|
else
|
|
561
|
-
for (var d =
|
|
562
|
-
(c =
|
|
568
|
+
for (var d = t.length - 1; d >= 0; d--)
|
|
569
|
+
(c = t[d]) && (s = (r < 3 ? c(s) : r > 3 ? c(a, n, s) : c(a, n)) || s);
|
|
563
570
|
return r > 3 && s && Object.defineProperty(a, n, s), s;
|
|
564
|
-
},
|
|
571
|
+
}, Q = function(t, a) {
|
|
565
572
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
566
|
-
return Reflect.metadata(
|
|
573
|
+
return Reflect.metadata(t, a);
|
|
567
574
|
};
|
|
568
|
-
const
|
|
569
|
-
constructor(
|
|
570
|
-
G(this,
|
|
575
|
+
const It = class {
|
|
576
|
+
constructor(t) {
|
|
577
|
+
G(this, t), this.initListConfigurations = k(this, "initListConfigurations", 7), this.createButtonClick = k(this, "createButtonClick", 7), this.editButtonClick = k(this, "editButtonClick", 7), this.deleteButtonClick = k(this, "deleteButtonClick", 7), this.configurations = [], this.schedulerPreviewLink = "", this.listConfigurationsNextCursor = void 0, this.state = "loading", this.error = "", this.currentCursor = null, this.previousCursors = [], this.disableNextPageButton = !1;
|
|
571
578
|
}
|
|
572
|
-
listConfigurationsNextCursorChangedHandler(
|
|
573
|
-
if (!
|
|
574
|
-
|
|
579
|
+
listConfigurationsNextCursorChangedHandler(t, a) {
|
|
580
|
+
if (!t || t === a) {
|
|
581
|
+
t === null && (this.disableNextPageButton = !0);
|
|
575
582
|
return;
|
|
576
583
|
}
|
|
577
|
-
this.disableNextPageButton = !1, this.currentCursor =
|
|
584
|
+
this.disableNextPageButton = !1, this.currentCursor = t;
|
|
578
585
|
}
|
|
579
586
|
connectedCallback() {
|
|
580
587
|
h("[nylas-list-configurations]", "connectedCallback");
|
|
@@ -590,35 +597,35 @@ const He = class {
|
|
|
590
597
|
disconnectedCallback() {
|
|
591
598
|
h("[nylas-list-configurations]", "disconnectedCallback");
|
|
592
599
|
}
|
|
593
|
-
async handleNylasFormDropdownChanged(
|
|
594
|
-
h("[nylas-list-configurations]", "handleNylasFormDropdownChanged",
|
|
595
|
-
const { value: a } =
|
|
596
|
-
switch (
|
|
600
|
+
async handleNylasFormDropdownChanged(t) {
|
|
601
|
+
h("[nylas-list-configurations]", "handleNylasFormDropdownChanged", t.detail);
|
|
602
|
+
const { value: a } = t.detail, [n, i] = a.split("-");
|
|
603
|
+
switch (t.preventDefault(), n) {
|
|
597
604
|
case "delete":
|
|
598
605
|
this.deleteButtonClick.emit({ host: this.host, configuration: this.configurations[i] });
|
|
599
606
|
break;
|
|
600
607
|
case "preview":
|
|
601
|
-
window.open(
|
|
608
|
+
window.open(X(this.schedulerPreviewLink, this.configurations[i]), "_blank");
|
|
602
609
|
break;
|
|
603
610
|
case "copy":
|
|
604
|
-
await navigator.clipboard.writeText(
|
|
611
|
+
await navigator.clipboard.writeText(X(this.schedulerPreviewLink, this.configurations[i]));
|
|
605
612
|
break;
|
|
606
613
|
}
|
|
607
614
|
}
|
|
608
615
|
async getState() {
|
|
609
616
|
return this.state;
|
|
610
617
|
}
|
|
611
|
-
async setState(
|
|
612
|
-
this.state =
|
|
618
|
+
async setState(t) {
|
|
619
|
+
this.state = t;
|
|
613
620
|
}
|
|
614
|
-
async setError(
|
|
615
|
-
this.error =
|
|
621
|
+
async setError(t) {
|
|
622
|
+
this.error = t;
|
|
616
623
|
}
|
|
617
|
-
getDurationString(
|
|
618
|
-
const a = Math.floor(
|
|
624
|
+
getDurationString(t) {
|
|
625
|
+
const a = Math.floor(t / 60), n = t % 60;
|
|
619
626
|
return `${a || ""} ${a ? `${a > 1 ? "hours" : "hour"}` : ""} ${n || ""} ${n ? `${n > 1 ? "mins" : "min"}` : ""}`;
|
|
620
627
|
}
|
|
621
|
-
getActionLabelHTML(
|
|
628
|
+
getActionLabelHTML(t) {
|
|
622
629
|
const a = {
|
|
623
630
|
display: "inline-flex",
|
|
624
631
|
alignItems: "center",
|
|
@@ -626,13 +633,13 @@ const He = class {
|
|
|
626
633
|
}, n = {
|
|
627
634
|
color: "var(--nylas-error)"
|
|
628
635
|
};
|
|
629
|
-
switch (
|
|
636
|
+
switch (t) {
|
|
630
637
|
case "preview":
|
|
631
|
-
return
|
|
638
|
+
return e("span", { style: a }, e("eye-icon", { width: "16", height: "16" }), "Preview");
|
|
632
639
|
case "copy":
|
|
633
|
-
return
|
|
640
|
+
return e("span", { style: a }, e("copy-icon", { width: "16", height: "16" }), "Copy");
|
|
634
641
|
case "delete":
|
|
635
|
-
return
|
|
642
|
+
return e("span", { style: { ...a, ...n } }, e("delete-icon", { width: "15", height: "17" }), "Delete");
|
|
636
643
|
default:
|
|
637
644
|
return "";
|
|
638
645
|
}
|
|
@@ -641,10 +648,10 @@ const He = class {
|
|
|
641
648
|
if (this.previousCursors.length === 0)
|
|
642
649
|
return;
|
|
643
650
|
this.currentCursor = this.previousCursors.pop() || null;
|
|
644
|
-
const
|
|
651
|
+
const t = this.previousCursors[this.previousCursors.length - 1] || void 0;
|
|
645
652
|
this.initListConfigurations.emit({
|
|
646
653
|
host: this.host,
|
|
647
|
-
cursor:
|
|
654
|
+
cursor: t
|
|
648
655
|
});
|
|
649
656
|
}
|
|
650
657
|
nextPageClickedHandler() {
|
|
@@ -654,28 +661,28 @@ const He = class {
|
|
|
654
661
|
}));
|
|
655
662
|
}
|
|
656
663
|
render() {
|
|
657
|
-
var
|
|
658
|
-
return
|
|
664
|
+
var t;
|
|
665
|
+
return e(Ot, null, e("div", { class: "header" }, e("div", { class: "description" }, e("h2", null, "All Scheduling Pages"), e("p", null, "Create and manage your Scheduling Pages.")), this.configurations && this.configurations.length > 0 && e("div", { class: "actions" }, e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
|
|
659
666
|
this.createButtonClick.emit(this.host);
|
|
660
|
-
} }, "Create new"))),
|
|
667
|
+
} }, "Create new"))), e("div", { class: "configurations" }, e("div", { class: "table-container" }, e("table", { class: {
|
|
661
668
|
"no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
|
|
662
|
-
} },
|
|
669
|
+
} }, e("tr", { class: {
|
|
663
670
|
hide: this.state === "loading" || this.configurations && this.configurations.length === 0
|
|
664
|
-
} },
|
|
671
|
+
} }, e("th", null, "Page title"), e("th", null, "Duration"), e("th", null)), this.state === "loading" && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("h3", null, "Loading..."), e("p", null, "Please wait while we fetch the scheduling pages")))), this.state !== "loading" && (!this.configurations || this.configurations.length === 0) && e("tr", { class: "no-configurations" }, e("td", { colSpan: 3 }, e("div", null, e("calendar-icon", { width: "48", height: "48" }), e("h3", null, "No scheduling pages found"), e("p", null, "Get started with creating your first scheduling page"), e("button-component", { part: "nlc__create-new-cta", clickHandler: () => {
|
|
665
672
|
this.createButtonClick.emit(this.host);
|
|
666
|
-
} }, "Create new")))), this.state !== "loading" && ((
|
|
673
|
+
} }, "Create new")))), this.state !== "loading" && ((t = this.configurations) == null ? void 0 : t.map((a, n) => {
|
|
667
674
|
var i, r, s, c;
|
|
668
|
-
return
|
|
675
|
+
return e("tr", { key: a == null ? void 0 : a.id }, e("td", null, e("div", { class: "title" }, e("div", { class: "config-event-title", title: (i = a == null ? void 0 : a.event_booking) == null ? void 0 : i.title }, (r = a == null ? void 0 : a.event_booking) == null ? void 0 : r.title), e("div", { class: "config-event-description" }, (s = a == null ? void 0 : a.event_booking) == null ? void 0 : s.description))), e("td", null, e("div", { class: "duration" }, this.getDurationString((c = a == null ? void 0 : a.availability) == null ? void 0 : c.duration_minutes))), e("td", null, e("div", { class: "actions" }, e("button-component", { variant: "basic", key: `edit-${n}`, clickHandler: (d) => {
|
|
669
676
|
d.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: a });
|
|
670
|
-
} },
|
|
677
|
+
} }, e("edit-icon", { width: "16", height: "16" }), "Edit"), e("select-dropdown", { name: "actions", options: [
|
|
671
678
|
{ value: `preview-${n}`, label: "Preview", labelHTML: this.getActionLabelHTML("preview") },
|
|
672
679
|
{ value: `copy-${n}`, label: "Copy link", labelHTML: this.getActionLabelHTML("copy") },
|
|
673
680
|
{ value: `delete-${n}`, label: "Delete", labelHTML: this.getActionLabelHTML("delete") }
|
|
674
681
|
], defaultSelectedOption: { value: "", label: "" }, dropdownButtonText: "...", withSearch: !1, withChevron: !1, exportparts: "sd_dropdown: actions__dropdown, sd_dropdown-button: actions__dropdown-button, sd_dropdown-content: actions__dropdown-content" }))));
|
|
675
|
-
})))),
|
|
682
|
+
})))), e("div", { class: "pagination" }, e("button", { class: "arrow left", onClick: () => this.previousPageClickedHandler(), disabled: this.previousCursors.length <= 0 }, e("chevron-icon", null)), e("button", { class: "arrow right", onClick: () => this.nextPageClickedHandler(), disabled: this.disableNextPageButton }, e("chevron-icon", null)))), this.state === "error" && e("div", { class: "error-container" }, e("p", { class: "error" }, this.error)));
|
|
676
683
|
}
|
|
677
684
|
get host() {
|
|
678
|
-
return
|
|
685
|
+
return Ht(this);
|
|
679
686
|
}
|
|
680
687
|
static get watchers() {
|
|
681
688
|
return {
|
|
@@ -683,8 +690,8 @@ const He = class {
|
|
|
683
690
|
};
|
|
684
691
|
}
|
|
685
692
|
};
|
|
686
|
-
|
|
687
|
-
|
|
693
|
+
le([
|
|
694
|
+
Nt({
|
|
688
695
|
name: "nylas-list-configurations",
|
|
689
696
|
stateToProps: /* @__PURE__ */ new Map([
|
|
690
697
|
["schedulerConfig.configurations", "configurations"],
|
|
@@ -692,8 +699,8 @@ at([
|
|
|
692
699
|
]),
|
|
693
700
|
localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
|
|
694
701
|
eventToProps: {
|
|
695
|
-
initListConfigurations: async (
|
|
696
|
-
const { host: n, cursor: i } =
|
|
702
|
+
initListConfigurations: async (t, a) => {
|
|
703
|
+
const { host: n, cursor: i } = t.detail;
|
|
697
704
|
await n.setState("loading");
|
|
698
705
|
const [r, s] = await a.schedulerConfig.getConfigurations(i);
|
|
699
706
|
if (!r && s && s.message) {
|
|
@@ -702,28 +709,28 @@ at([
|
|
|
702
709
|
}
|
|
703
710
|
await n.setState("loaded");
|
|
704
711
|
},
|
|
705
|
-
createButtonClick: async (
|
|
712
|
+
createButtonClick: async (t, a) => {
|
|
706
713
|
a.schedulerConfigStore.resetSelectedConfiguration(), a.schedulerConfigStore.state.action = "create";
|
|
707
714
|
},
|
|
708
|
-
deleteButtonClick: async (
|
|
709
|
-
const { host: n, configuration: i } =
|
|
715
|
+
deleteButtonClick: async (t, a) => {
|
|
716
|
+
const { host: n, configuration: i } = t.detail, [r, s] = await a.schedulerConfig.deleteConfiguration(i.id);
|
|
710
717
|
!r && s && s.message && (await n.setState("error"), await n.setError(s.message));
|
|
711
718
|
},
|
|
712
|
-
editButtonClick: async (
|
|
713
|
-
const { configuration: n } =
|
|
719
|
+
editButtonClick: async (t, a) => {
|
|
720
|
+
const { configuration: n } = t.detail;
|
|
714
721
|
a.schedulerConfigStore.state.selectedConfiguration = n, a.schedulerConfigStore.state.action = "edit";
|
|
715
722
|
}
|
|
716
723
|
},
|
|
717
724
|
fireRegisterEvent: !0
|
|
718
725
|
}),
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
],
|
|
723
|
-
|
|
726
|
+
Q("design:type", Function),
|
|
727
|
+
Q("design:paramtypes", []),
|
|
728
|
+
Q("design:returntype", void 0)
|
|
729
|
+
], It.prototype, "render", null);
|
|
730
|
+
It.style = re;
|
|
724
731
|
export {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
732
|
+
Xt as google_logo_icon,
|
|
733
|
+
ee as microsoft_logo_icon,
|
|
734
|
+
Dt as nylas_editor_tabs,
|
|
735
|
+
It as nylas_list_configurations
|
|
729
736
|
};
|