@nylas/react 1.1.0-canary.18 → 1.1.0-canary.20
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-3b13ee64.js → add-circle-icon_2.entry-5cefae99.js} +5 -5
- package/dist/{add-circle-icon_2.entry-3091976b.cjs → add-circle-icon_2.entry-85523420.cjs} +1 -1
- package/dist/{archive-icon_7.entry-8932618a.js → archive-icon_7.entry-2f418a3e.js} +13 -13
- package/dist/{archive-icon_7.entry-c2b6d860.cjs → archive-icon_7.entry-eb90a353.cjs} +1 -1
- package/dist/arrow-icon.entry-753eb942.js +15 -0
- package/dist/{arrow-icon.entry-a159bee8.cjs → arrow-icon.entry-ac5e1a47.cjs} +1 -1
- package/dist/{bold-icon_3.entry-447d0537.js → bold-icon_3.entry-18507c82.js} +4 -4
- package/dist/{bold-icon_3.entry-c51e1af3.cjs → bold-icon_3.entry-4fff7400.cjs} +1 -1
- package/dist/button-component_4.entry-3c508e3b.js +115 -0
- package/dist/button-component_4.entry-f8ab53dc.cjs +1 -0
- package/dist/calendar-agenda-fill-icon_35.entry-b56841a0.cjs +7 -0
- package/dist/calendar-agenda-fill-icon_35.entry-db989ce0.js +4182 -0
- package/dist/{calendar-cancel-icon.entry-a78f27bc.js → calendar-cancel-icon.entry-31caeae1.js} +1 -1
- package/dist/{calendar-cancel-icon.entry-805febcc.cjs → calendar-cancel-icon.entry-d2e10dfc.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-7c8b6c92.js → calendar-check-icon_2.entry-7f67c003.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-4a0fd7bd.cjs → calendar-check-icon_2.entry-d32551e9.cjs} +1 -1
- package/dist/{calendar-icon.entry-96f9727f.js → calendar-icon.entry-6e89816b.js} +1 -1
- package/dist/{calendar-icon.entry-1fc018b4.cjs → calendar-icon.entry-f3f1c623.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-25d90239.js → chevron-icon_3.entry-2e20a83e.js} +37 -34
- package/dist/chevron-icon_3.entry-3be68846.cjs +1 -0
- package/dist/{clock-icon_2.entry-2406c3d0.cjs → clock-icon_2.entry-074eb053.cjs} +1 -1
- package/dist/{clock-icon_2.entry-c1b22ed4.js → clock-icon_2.entry-bc938936.js} +5 -5
- package/dist/{constants-f34b9c6e-f1c4dd0d.js → constants-7ce66b44-3952e81c.js} +484 -383
- package/dist/{constants-f34b9c6e-b774916c.cjs → constants-7ce66b44-a6b777d4.cjs} +5 -5
- package/dist/copy-icon_4.entry-187edab9.js +45 -0
- package/dist/copy-icon_4.entry-f704b2f1.cjs +1 -0
- package/dist/{document-refresh-icon.entry-570f9c9d.js → document-refresh-icon.entry-9d7900d7.js} +5 -5
- package/dist/document-refresh-icon.entry-ea0e1ab9.cjs +1 -0
- package/dist/elements/index.d.ts +14 -0
- package/dist/{elements-dc5b338e-cafa7a55.js → elements-dc5b338e-e6271e48.js} +1 -1
- package/dist/{elements-dc5b338e-550a6cb1.cjs → elements-dc5b338e-edf63aa6.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-022799ce.js → focus-visible-e8093c16-4c45967c.js} +1 -1
- package/dist/{focus-visible-e8093c16-c14162e8.cjs → focus-visible-e8093c16-84e41b3b.cjs} +1 -1
- package/dist/{forward-icon_6.entry-55752b23.cjs → forward-icon_6.entry-4cb6eb63.cjs} +3 -3
- package/dist/{forward-icon_6.entry-9b832146.js → forward-icon_6.entry-949d0cfb.js} +9 -9
- package/dist/{globe-icon.entry-2b61820e.js → globe-icon.entry-04b35395.js} +2 -2
- package/dist/{globe-icon.entry-dabe7b8b.cjs → globe-icon.entry-741f8ad4.cjs} +1 -1
- package/dist/google-logo-icon_4.entry-8e87cf66.cjs +1 -0
- package/dist/google-logo-icon_4.entry-f50de25f.js +598 -0
- package/dist/index-53420959-507f0a27.js +5 -0
- package/dist/index-53420959-e6c2e510.cjs +1 -0
- package/dist/{index-6d9eeb53-3049fc04.cjs → index-6d9eeb53-8b16e3b5.cjs} +1 -1
- package/dist/{index-6d9eeb53-3edef246.js → index-6d9eeb53-b15263de.js} +2 -2
- package/dist/index-a4831dfe.cjs +42 -0
- package/dist/{index-812162da.js → index-a68236be.js} +874 -854
- package/dist/{index.es-9cc0eb3c-0c99c055.cjs → index.es-9cc0eb3c-2e0f7d11.cjs} +1 -1
- package/dist/{index.es-9cc0eb3c-52226859.js → index.es-9cc0eb3c-e6c5dd2d.js} +1 -1
- package/dist/{info-icon_2.entry-5f6b9af8.cjs → info-icon_2.entry-c3468951.cjs} +1 -1
- package/dist/{info-icon_2.entry-2fe6c16c.js → info-icon_2.entry-d0270899.js} +8 -8
- package/dist/{input-dropdown_2.entry-dbdb5aa3.cjs → input-dropdown_2.entry-2485dcc3.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-dbd0d6f4.js → input-dropdown_2.entry-2cd6cfc7.js} +3 -3
- package/dist/{loading-icon.entry-e179f122.cjs → loading-icon.entry-5ed52afe.cjs} +1 -1
- package/dist/loading-icon.entry-96d9d1be.js +15 -0
- package/dist/{mailbox-store-64b4ef7c-22a6c565.js → mailbox-store-64b4ef7c-7c793d9a.js} +2 -2
- package/dist/{mailbox-store-64b4ef7c-0eac526c.cjs → mailbox-store-64b4ef7c-c609ac6d.cjs} +1 -1
- package/dist/multi-select-dropdown.entry-2ca73c71.js +91 -0
- package/dist/multi-select-dropdown.entry-f298ca2c.cjs +1 -0
- package/dist/{nylas-booked-event-card_10.entry-e0990f5b.js → nylas-booked-event-card_10.entry-2b01df7e.js} +267 -235
- package/dist/nylas-booked-event-card_10.entry-97977ac7.cjs +1 -0
- package/dist/{nylas-custom-booking-flow.entry-898c8cc9.cjs → nylas-custom-booking-flow.entry-05b9522a.cjs} +1 -1
- package/dist/{nylas-custom-booking-flow.entry-bc64af5f.js → nylas-custom-booking-flow.entry-66beff43.js} +3 -3
- package/dist/{nylas-form-card.entry-c564b52e.js → nylas-form-card.entry-3de9f477.js} +11 -11
- package/dist/{nylas-form-card.entry-0c71f4fc.cjs → nylas-form-card.entry-3e1331c9.cjs} +1 -1
- package/dist/{nylas-if-state.entry-e9486e12.js → nylas-if-state.entry-a0689083.js} +3 -3
- package/dist/{nylas-if-state.entry-ff6a2046.cjs → nylas-if-state.entry-a734df46.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-0258af1e.js → nylas-list-folders.entry-4fb9d4c2.js} +7 -7
- package/dist/{nylas-list-folders.entry-90716d2b.cjs → nylas-list-folders.entry-74a56187.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-21edf012.cjs → nylas-list-threads.entry-0addc621.cjs} +1 -1
- package/dist/{nylas-list-threads.entry-1abcdd30.js → nylas-list-threads.entry-9a6d4c33.js} +3 -3
- package/dist/{nylas-login.entry-2e0ce95e.cjs → nylas-login.entry-bdac29c0.cjs} +1 -1
- package/dist/{nylas-login.entry-ba7383ac.js → nylas-login.entry-beb6e0d9.js} +3 -3
- package/dist/{nylas-mailbox-pagination.entry-f6186560.js → nylas-mailbox-pagination.entry-1d71850a.js} +2 -2
- package/dist/{nylas-mailbox-pagination.entry-ba6beb08.cjs → nylas-mailbox-pagination.entry-c5d07bbe.cjs} +1 -1
- package/dist/{nylas-mailbox-toolbar-button.entry-0875aadb.cjs → nylas-mailbox-toolbar-button.entry-7d9d6293.cjs} +1 -1
- package/dist/{nylas-mailbox-toolbar-button.entry-e18059b0.js → nylas-mailbox-toolbar-button.entry-882c97a0.js} +10 -10
- package/dist/{nylas-mailbox.entry-bb2905bf.cjs → nylas-mailbox.entry-94eb97ec.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-2e3815ed.js → nylas-mailbox.entry-d810adba.js} +4 -4
- package/dist/{nylas-provider.entry-51c5cdbf.cjs → nylas-provider.entry-5a4bb86e.cjs} +1 -1
- package/dist/{nylas-provider.entry-69ee5061.js → nylas-provider.entry-fcaf9e1c.js} +39 -39
- package/dist/{nylas-scheduler-editor.entry-d4a9afb1.js → nylas-scheduler-editor.entry-1ca566d3.js} +138 -119
- package/dist/nylas-scheduler-editor.entry-30597812.cjs +2 -0
- package/dist/nylas-scheduling.entry-00c418c8.cjs +1 -0
- package/dist/{nylas-scheduling.entry-f82a2822.js → nylas-scheduling.entry-aefefe3d.js} +52 -52
- package/dist/{nylas-threads-refresh.entry-72482d2f.js → nylas-threads-refresh.entry-a85222e2.js} +10 -10
- package/dist/{nylas-threads-refresh.entry-99001756.cjs → nylas-threads-refresh.entry-f3b9fdf2.cjs} +1 -1
- package/dist/nylas-threads-search.entry-2c8ac7dc.cjs +1 -0
- package/dist/{nylas-threads-search.entry-c5fe50e5.js → nylas-threads-search.entry-b1bf455b.js} +17 -17
- package/dist/{nylas-time-window-picker.entry-ccffcf2b.cjs → nylas-time-window-picker.entry-3a34b29b.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-0d93e7cc.js → nylas-time-window-picker.entry-6d664a05.js} +2 -2
- package/dist/{nylas-view-thread.entry-58432a52.cjs → nylas-view-thread.entry-bf6cab2a.cjs} +1 -1
- package/dist/{nylas-view-thread.entry-2d34b41c.js → nylas-view-thread.entry-ddcb042f.js} +6 -6
- package/dist/play-icon_2.entry-4f316c3d.cjs +1 -0
- package/dist/play-icon_2.entry-d55a018a.js +25 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +115 -101
- package/dist/{refresh-icon.entry-a041136d.js → refresh-icon.entry-0fdcb7af.js} +4 -4
- package/dist/{refresh-icon.entry-1e670732.cjs → refresh-icon.entry-99761cb6.cjs} +1 -1
- package/dist/{register-component-a5a9ca5d-b68b6039.cjs → register-component-a5a9ca5d-4439e573.cjs} +1 -1
- package/dist/{register-component-a5a9ca5d-a5c01c35.js → register-component-a5a9ca5d-ddae10b3.js} +1 -1
- package/dist/{scheduler-config-store-4a50a03d-ee42ff96.js → scheduler-config-store-9ccfba4d-84025740.js} +8 -6
- package/dist/scheduler-config-store-9ccfba4d-b774bfee.cjs +1 -0
- package/dist/{scheduler-store-f02ce045-23a14e3f.js → scheduler-store-8a400448-8ab7b63e.js} +125 -96
- package/dist/scheduler-store-8a400448-eaa566fa.cjs +1 -0
- package/dist/{textarea-component.entry-1b4c771b.js → textarea-component.entry-193d29fd.js} +7 -6
- package/dist/{textarea-component.entry-24a830c1.cjs → textarea-component.entry-359e4665.cjs} +1 -1
- package/dist/{translate-icon.entry-44bde57b.js → translate-icon.entry-22a3e72e.js} +2 -2
- package/dist/{translate-icon.entry-0c0add25.cjs → translate-icon.entry-32ec36de.cjs} +1 -1
- package/dist/{warning-icon.entry-8956cba2.js → warning-icon.entry-8d9b59c0.js} +5 -5
- package/dist/{warning-icon.entry-9a77ab01.cjs → warning-icon.entry-b8d483e1.cjs} +1 -1
- package/package.json +3 -3
- package/dist/arrow-icon.entry-1f54c377.js +0 -15
- package/dist/button-component.entry-52ccb6d9.js +0 -16
- package/dist/button-component.entry-e79b2d08.cjs +0 -1
- package/dist/calendar-info-icon_28.entry-2054703c.cjs +0 -1
- package/dist/calendar-info-icon_28.entry-e7bebd13.js +0 -2083
- package/dist/chevron-icon_3.entry-7bd4a4b5.cjs +0 -1
- package/dist/document-refresh-icon.entry-a0293858.cjs +0 -1
- package/dist/google-logo-icon_4.entry-60c0d39a.cjs +0 -1
- package/dist/google-logo-icon_4.entry-a0dc33da.js +0 -467
- package/dist/index-53420959-67beefed.js +0 -5
- package/dist/index-53420959-d3254a34.cjs +0 -1
- package/dist/index-e3e9b594.cjs +0 -42
- package/dist/input-component.entry-1195d579.js +0 -45
- package/dist/input-component.entry-2b6e44c4.cjs +0 -1
- package/dist/loading-icon.entry-027a2ad1.js +0 -15
- package/dist/nylas-booked-event-card_10.entry-84f64ba5.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-923b8566.cjs +0 -2
- package/dist/nylas-scheduling.entry-54f1a5e9.cjs +0 -1
- package/dist/nylas-threads-search.entry-462527fd.cjs +0 -1
- package/dist/play-icon_2.entry-1ea3fd6b.cjs +0 -1
- package/dist/play-icon_2.entry-d08adf17.js +0 -25
- package/dist/scheduler-config-store-4a50a03d-884e6df8.cjs +0 -1
- package/dist/scheduler-store-f02ce045-42e3647c.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-e3e9b594.cjs");require("react");require("react-dom");const h=".sc-chevron-icon-h{display:flex}",c=h,r=class{constructor(e){i.registerInstance(this,e),this.width="24",this.height="24"}render(){return i.h("svg",{key:"a2ba18045e1a3068427898b7b9d9755c80f0f53e",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},i.h("path",{key:"0715fdfa6bb874fef9aee368d457e9dce64a6dea",fill:"currentColor",d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z"}))}};r.style=c;const p=".sc-search-icon-h{display:flex}",f=p,l=class{constructor(e){i.registerInstance(this,e),this.width="15",this.height="15"}render(){return i.h("svg",{key:"dcf22b14b42ef62b0a4e33b4985712c2f0aac88e",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.h("path",{key:"1048ab3533bef7bdb57dbdccf489ce6240722cf1",fill:"currentColor",d:"M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z"}))}};l.style=f;const b=':host{display:block;position:relative;--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:100%}@media screen and (max-width: 768px){:host{position:unset}}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error)}.dropdown{display:inline-block;width:inherit}.dropbtn{color:var(--nylas-base-800);padding:14px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;justify-content:space-between;gap:0.5rem;background:transparent;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x)}.dropbtn.error{border:1px solid var(--nylas-error)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content 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}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}',u=b,d=class{constructor(e){i.registerInstance(this,e),this.nylasFormDropdownChanged=i.createEvent(this,"nylasFormDropdownChanged",7),this.name=void 0,this.options=[],this.defaultSelectedOption=void 0,this.withSearch=!0,this.label=void 0,this.required=!1,this.pluralizedLabel="",this.selectedOption=this.defaultSelectedOption||null,this.isOpen=!1,this.searchValue="",this.filteredOptions=[...this.options],this.ariaActivedescendant="",this.errorMessage=""}optionsChangedHandler(e,s){e!==s&&(this.filteredOptions=e)}defaultSelectedOptionChangedHandler(e,s){typeof e>"u"||(e==null?void 0:e.label)===(s==null?void 0:s.label)||(this.selectedOption=e)}componentWillLoad(){this.filteredOptions=this.options,!this.selectedOption&&this.defaultSelectedOption&&(this.selectedOption=this.defaultSelectedOption),!this.selectedOption&&this.options.length>0&&(this.selectedOption=this.options[0])}handleBookingFormSubmitted(e){var s;this.validate(((s=this.selectedOption)==null?void 0:s.value)||""),this.errorMessage&&e.preventDefault()}validate(e){this.required&&!e?this.errorMessage=`${this.label} is required.`:this.errorMessage=""}toggleDropdown(){this.isOpen=!this.isOpen}filterOptions(e){const s=e.target.value;this.searchValue=s,this.filteredOptions=this.options.filter(t=>t.label.toLowerCase().includes(s.toLowerCase()))}selectOption(e){this.errorMessage="",this.selectedOption=e,this.toggleDropdown(),this.nylasFormDropdownChanged.emit({value:e.value,name:this.name,error:this.errorMessage,label:this.label})}handleSelectButtonKeyDown(e){var s;switch(e.key){case"ArrowDown":case"Enter":e.preventDefault(),this.isOpen||this.toggleDropdown(),(s=this.inputRef)==null||s.focus();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(e){var a,o;const s=this.filteredOptions,t=s.findIndex(n=>n.value===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){if(e.preventDefault(),t===s.length-1){this.ariaActivedescendant="",(a=this.inputRef)==null||a.focus();return}const n=t+1<s.length?t+1:0;this.ariaActivedescendant=s[n].value,this.focusOption(n)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){if(e.preventDefault(),t===0){this.ariaActivedescendant="",(o=this.inputRef)==null||o.focus();return}const n=t-1>=0?t-1:s.length-1;this.ariaActivedescendant=s[n].value,this.focusOption(n)}else e.key==="Enter"?(e.preventDefault(),this.ariaActivedescendant&&this.selectOption(s[t])):e.key==="Escape"&&(this.isOpen=!1)}focusOption(e){var o;const s=this.filteredOptions[e];if(!s)return;const t=s.value,a=(o=this.el.shadowRoot)==null?void 0:o.getElementById(t);a&&(a.focus(),a.scrollIntoView({behavior:"smooth",block:"nearest"}))}handleComboboxKeyDown(e){e.key==="ArrowDown"||e.key=="Tab"&&!e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[0].value,this.focusOption(0)):e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[this.filteredOptions.length-1].value,this.focusOption(this.filteredOptions.length-1)):e.key==="Escape"&&(this.isOpen=!1)}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}render(){var e,s;return i.h("div",{key:"8c4d201f5fa71b9707a1cb50adc62399f32e5aba",class:"dropdown",part:"sd_dropdown"},i.h("label",{key:"b2e4851e2925d7e44c36a538a28001a838124cba",part:"sd_dropdown_label",class:{error:!!this.errorMessage}},this.label&&i.h("p",null,i.h("span",{class:"label"},this.label),this.required&&i.h("span",{class:"required"},"*")),i.h("button",{key:"66559916660643e8ed8ed67bf821fa2eb122ea6c",part:"sd_dropdown-button",class:{dropbtn:!0,open:this.isOpen,error:!!this.errorMessage},onClick:()=>this.toggleDropdown(),"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-label":this.name,onKeyDown:t=>this.handleSelectButtonKeyDown(t)},i.h("slot",{key:"2916f44530f59d218171c54dfe7a6949b3f773c4",name:"select-icon","aria-hidden":"true"}),i.h("span",{key:"21653fb2f1225a0f9d64b6939da10b66eeeb8fcc",class:"selected-option",part:"sd_dropdown-button-selected-label"},(e=this.selectedOption)!=null&&e.label?`${((s=this.selectedOption)==null?void 0:s.label)+this.pluralizedLabel}`:""),i.h("span",{key:"900f31e8a1ca22a3be2f4ca965bdaa9099ef3fca",class:{open:this.isOpen,closed:!this.isOpen,chevron:!0},"aria-hidden":"true"},i.h("chevron-icon",{key:"d0a08c205df0a9258b699618cad25eff5085fe84",width:"16",height:"16"}))),this.errorMessage&&i.h("span",{class:"error help-text"},this.errorMessage)),this.isOpen?i.h("div",{class:"dropdown-content",part:"sd_dropdown-content"},this.withSearch&&i.h("div",{class:{"search-box":!0,open:this.isOpen}},i.h("search-icon",{width:"15",height:"15",class:"icon"}),i.h("input",{type:"text",role:"combobox",placeholder:"Search",value:this.searchValue,ref:t=>this.inputRef=t,onInput:t=>this.filterOptions(t),onKeyDown:t=>this.handleComboboxKeyDown(t)})),i.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:t=>this.handleListboxKeydown(t)},this.filteredOptions.map(t=>t.value&&i.h("li",{tabindex:"0",key:t.value,id:t.value,onClick:()=>this.selectOption(t),role:"option"},t.labelHTML?t.labelHTML:t.label)))):null)}get el(){return i.getElement(this)}static get watchers(){return{options:["optionsChangedHandler"],defaultSelectedOption:["defaultSelectedOptionChangedHandler"]}}};d.style=u;exports.chevron_icon=r;exports.search_icon=l;exports.select_dropdown=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e3e9b594.cjs");require("react");require("react-dom");const a=".sc-document-refresh-icon-h{display:flex}",d=a,c=class{constructor(t){e.registerInstance(this,t),this.width="18",this.height="18"}render(){return e.h("svg",{key:"d009d5dbbc4e4d6e8976a1eed54706f435b4687c",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:this.width,height:this.height},e.h("rect",{key:"140131d02e90be3c696414d63edbc29ae92ac81f",id:"Canvas",fill:"#ff13dc",opacity:"0"}),e.h("path",{key:"2653e8c638fd2ca4e9783a18e3dd70e91754fa5b",d:"M9.19763,12.26283A4.44131,4.44131,0,0,1,16.948,10.71741l.62524-.62524a.24433.24433,0,0,1,.1748-.07373.25035.25035,0,0,1,.252.24875v2.50143a.25.25,0,0,1-.25.25l-2.4995-.00016A.25088.25088,0,0,1,15,12.76721v-.00054a.24436.24436,0,0,1,.07373-.175l.86988-.86987a3.02827,3.02827,0,0,0-5.29847.71808.48835.48835,0,0,1-.46081.30981H9.55908a.37949.37949,0,0,1-.36145-.48686Z"}),e.h("path",{key:"0cf63c79c83425a5c39b8e6f48f36cbedd4fde2e",d:"M17.80237,14.77441A4.4413,4.4413,0,0,1,10.052,16.31982l-.62524.62524a.24429.24429,0,0,1-.1748.07373A.25036.25036,0,0,1,9,16.77V14.26863a.25.25,0,0,1,.25-.25l2.4995.00016A.25087.25087,0,0,1,12,14.27v.00052a.24434.24434,0,0,1-.07373.175l-.86988.86988a3.02828,3.02828,0,0,0,5.29847-.71808.48836.48836,0,0,1,.46081-.30982h.62525a.3795.3795,0,0,1,.36145.48687Z"}),e.h("path",{key:"460ebc7770b4a665283eebad127640d75e08ac76",d:"M7,13.5A6.5,6.5,0,0,1,13.5,7c.16883,0,.33447.01264.5.02527V5H9.5A.5.5,0,0,1,9,4.5V0H2.5A.5.5,0,0,0,2,.5v15a.5.5,0,0,0,.5.5H7.49981A6.4779,6.4779,0,0,1,7,13.5Z"}),e.h("path",{key:"a64bb4310cc4350dd2671ca412753f28c9061973",d:"M10,0h.043a.5.5,0,0,1,.353.146L13.854,3.6A.5.5,0,0,1,14,3.957V4H10Z"}))}};c.style=d;exports.document_refresh_icon=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e3e9b594.cjs"),Y=require("./register-component-a5a9ca5d-b68b6039.cjs"),X=require("./constants-f34b9c6e-b774916c.cjs");require("react");require("react-dom");const st=".sc-google-logo-icon-h{display:flex}",ot=st,tt=class{constructor(t){e.registerInstance(this,t),this.width="24",this.height="24"}render(){return e.h("svg",{key:"0e9d7d49a7c9b6cd2087805b88f0e5a2067dfaed",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"e97ac24bfe96bdba16a9709dde3ebc675e942d56","clip-path":"url(#clip0_959_12452)"},e.h("path",{key:"231167532157853cb95fddc85fa8cffcf1134ef4",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.h("path",{key:"4f964a28a6b0894940c9d762a91db0c099f6c2c7",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.h("path",{key:"9ada4b2f2625f18538ff4455b1160efcfccbd646",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.h("path",{key:"6a260b3024a69fa930820a80a917152dc7ef52a7",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.h("defs",{key:"56bc051b67a1bfa29ecaf64bac03ee1017836365"},e.h("clipPath",{key:"8057800f9035048497e8198789e1e0b4dba1c64a",id:"clip0_959_12452"},e.h("rect",{key:"6c0299822390d3433158d87c607fe9546e878eb0",width:24,height:24,fill:"white"}))))}};tt.style=ot;const rt=".sc-microsoft-logo-icon-h{display:flex}",lt=rt,et=class{constructor(t){e.registerInstance(this,t),this.width="22",this.height="22"}render(){return e.h("svg",{key:"3dd5e1a94ca5889c14f7695c9077f9be0cbc4d00",width:this.width,height:this.height,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"381068331f74d7f1a06c0ca0cd9dfc2b58f72a10",d:"M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z",fill:"#F35325"}),e.h("path",{key:"62c7be7371433602169a19fe2657e0a1635f516e",d:"M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z",fill:"#81BC06"}),e.h("path",{key:"72464e489d4cfd78f016282a743a1000fb732368",d:"M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z",fill:"#05A6F0"}),e.h("path",{key:"d766c4d950ee3122cf4916b53ce5f630b52a30bb",d:"M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z",fill:"#FFBA08"}))}};et.style=lt;function ct({id:t,formState:n,activeTab:a,calendars:s}){var o;switch(a){case"eventInfo":const i=n.title,l=n.description,r=parseInt(n.duration),c=n.location;return e.h("div",{key:t},e.h("nylas-event-info",null,e.h("div",{slot:"inputs"},e.h("nylas-event-title",{name:"title",eventTitle:i,exportparts:"net, net__title, net__dropdown-content"}),e.h("nylas-event-duration",{name:"duration",eventDurationMinutes:r,exportparts:"ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content"}),e.h("nylas-event-location",{name:"location",eventLocation:c,exportparts:"nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content"}),e.h("nylas-event-description",{name:"description",eventDescription:l,exportparts:"nedesc, nedesc__textarea"}))));case"availability":const d=n.availability.openHours,f=n.availability.timezone?n.availability.timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,u=(o=n.participants)==null?void 0:o.find(w=>w.is_organizer),g=(u==null?void 0:u.email)??"primary",_=n.calendarIds.length>0?n.calendarIds:[g],v=n.bookingCalendar=="primary"?g:n.bookingCalendar;return e.h("div",{key:t},e.h("nylas-booking-calendar-picker",{name:"booking-calendar",calendars:s??[],defaultBookingCalendar:v,exportparts:"nbcp, nbcp__header, nbcp__input-label, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content"}),e.h("nylas-calendar-picker",{name:"calendars",calendars:s??[],defaultSelectedCalendars:_,exportparts:"ncp ncp__header, ncp__dropdown, ncp__dropdown-button, ncp__dropdown-content"}),e.h("nylas-availability-picker",{name:"availability",openHours:d,defaultTimezone:f,exportparts:"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"}));case"bookingOptions":return e.h("div",{key:t},e.h("nylas-buffer-time",{name:"buffer-time",buffer:n.buffer,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"}),e.h("nylas-event-limits",null,e.h("div",{slot:"inputs"},e.h("nylas-min-booking-notice",{name:"min-booking-notice",minBookingNotice:n.minBookingNotice,exportparts:"nmbn, nmbn__number-dropdown, nmbn__number-dropdown-button, nmbn__number-dropdown-content, nmbn__period-dropdown, nmbn__period-dropdown-button, nmbn__period-dropdown-content"}),e.h("nylas-limit-future-bookings",{name:"limit-future-bookings",availableDaysInFuture:n.availableDaysInFuture,exportparts:"nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content"}),e.h("nylas-min-cancellation-notice",{name:"min-cancellation-notice",minCancellationNotice:n.minCancellationNotice,exportparts:"nmcn, nmcn__number-dropdown, nmcn__number-dropdown-button, nmcn__number-dropdown-content, nmcn__period-dropdown, nmcn__period-dropdown-button, nmcn__period-dropdown-content"}),e.h("nylas-cancellation-policy",{name:"cancellation-policy",cancellationPolicy:n.cancellationPolicy,exportparts:"ncpolicy, ncpolicy__textarea"}))),e.h("nylas-timeslot-interval",{name:"timeslot-interval",eventDurationMinutes:parseInt(n.duration),exportparts:"nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content"}),e.h("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"}));case"participants":return e.h("div",{key:t},e.h("nylas-additional-participants",{name:"participants",eventParticipants:n.participants,exportparts:"nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant"}),e.h("nylas-participants-custom-availability",{name:"participant-custom-availability",participants:n.participants,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"}))}}const dt='.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}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:554px;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)}.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.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 .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto}.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}.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}',ht=dt;var bt=function(t,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,n,a,s);else for(var r=t.length-1;r>=0;r--)(l=t[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},D=function(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)};const E=class{constructor(t){e.registerInstance(this,t),this.schedulerConfigChanged=e.createEvent(this,"schedulerConfigChanged",7),this.cancelButtonClick=e.createEvent(this,"cancelButtonClick",7),this.formSubmitted=e.createEvent(this,"formSubmitted",7),this.previewButtonClicked=e.createEvent(this,"previewButtonClicked",7),this.setError=n=>{this.error=n.message},this.formSubmissionHandler=async n=>{var F,O,P,R,N,j,M,z,U,V,A,$,Z,G,J,q;if(n.preventDefault(),this.formSubmitted.emit(),!this.formRef.checkValidity())return;this.isLoading=!0,this.hasUnsavedChanges=!1;const s=this.updateFormState(),{title:o,description:i,duration:l,availability:r,calendarIds:c,bookingCalendar:d,location:f,bookingType:u,buffer:g,availableDaysInFuture:_,minCancellationNotice:v,minBookingNotice:w,cancellationPolicy:x,timeslotInterval:p,additionalGuestsHidden:S,hideCancellationOptions:L,hideReschedulingOptions:B,participants:m,participantOpenHours:y}=s,b=(O=(F=this.selectedConfiguration)==null?void 0:F.participants)==null?void 0:O.find(h=>h.is_organizer),C=l?parseInt(l):30,k=m&&(m==null?void 0:m.length)>0?m:[{name:(b==null?void 0:b.name)??((P=this.currentUser)==null?void 0:P.name)??(b==null?void 0:b.email)??((R=this.currentUser)==null?void 0:R.email)??"",email:(b==null?void 0:b.email)??((N=this.currentUser)==null?void 0:N.email)??"",is_organizer:!0,availability:{calendar_ids:c!=null&&c.length?c:["primary"],open_hours:[]},booking:{calendar_id:d&&d!==""?d:"primary"}}],T={...((j=this.selectedConfiguration)==null?void 0:j.id)&&{id:this.selectedConfiguration.id},version:((M=this.selectedConfiguration)==null?void 0:M.version)??"1.0.0",availability:{duration_minutes:C,interval_minutes:(p==null?void 0:p.interval)??C,round_to:p==null?void 0:p.roundTo,availability_rules:{availability_method:((V=(U=(z=this.selectedConfiguration)==null?void 0:z.availability)==null?void 0:U.availability_rules)==null?void 0:V.availability_method)??"collective",buffer:g||{before:0,after:0},default_open_hours:(r==null?void 0:r.openHours)??((Z=($=(A=this.selectedConfiguration)==null?void 0:A.availability)==null?void 0:$.availability_rules)==null?void 0:Z.default_open_hours)??X.DEFAULT_OPEN_HOURS,round_robin_group_id:((q=(J=(G=this.selectedConfiguration)==null?void 0:G.availability)==null?void 0:J.availability_rules)==null?void 0:q.round_robin_group_id)??""}},participants:[...k==null?void 0:k.map(h=>{var W,K,Q;return h.is_organizer?{name:h.name??h.email,email:h.email,is_organizer:!0,availability:{calendar_ids:c!=null&&c.length?c:["primary"],open_hours:(y==null?void 0:y[h.email])??((W=h.availability)==null?void 0:W.open_hours)??[]},booking:{calendar_id:d&&d!==""?d:"primary"}}:{...h,availability:{calendar_ids:((K=h.availability)==null?void 0:K.calendar_ids)??["primary"],open_hours:(y==null?void 0:y[h.email])??((Q=h.availability)==null?void 0:Q.open_hours)??[]}}})],event_booking:{title:(o==null?void 0:o.toString())??"",description:(i==null?void 0:i.toString())??"",location:(f==null?void 0:f.toString())??"",booking_type:(u==null?void 0:u.toString())??"booking",timezone:(r==null?void 0:r.timezone)??Intl.DateTimeFormat().resolvedOptions().timeZone},scheduler:{cancellation_policy:x??"",available_days_in_future:_??30,min_cancellation_notice:v??0,min_booking_notice:w??60,hide_additional_guests:S??!1,hide_cancellation_options:L??!1,hide_rescheduling_options:B??!1}},nt=e.mergeDeep(T,this.selectedConfiguration),at=this.action==="create"?nt:T,it=h=>{this.isLoading=!1,this.changesSaved=!0,setTimeout(()=>{this.changesSaved=!1},5e3)};this.schedulerConfigChanged.emit({config:at,resetLoadingState:it,setError:this.setError,action:this.action})},this.calendars=void 0,this.selectedConfiguration=void 0,this.currentUser=void 0,this.schedulerPreviewLink="",this.mode="app",this.action="create",this.activeTab="eventInfo",this.isLoading=!1,this.hasUnsavedChanges=!1,this.changesSaved=!1,this.formState={},this.error=""}configChangedHandler(t){e.debug("[nylas-editor-tabs]","configChangedHandler",t,this.selectedConfiguration),this.formState={...this.getFormStateFromConfig(t)},t.id?this.action="edit":this.action="create"}connectedCallback(){e.debug("[nylas-editor-tabs]","connectedCallback")}componentWillLoad(){e.debug("[nylas-editor-tabs]","componentWillLoad"),this.formState=this.getFormStateFromConfig(this.selectedConfiguration)}componentDidLoad(){e.debug("[nylas-editor-tabs]","componentDidLoad")}disconnectedCallback(){e.debug("[nylas-editor-tabs]","disconnectedCallback")}handleValueChanged(t){e.debug("[nylas-editor-tabs]","handleValueChanged",t);const{name:n,value:a}=t.detail;this.setFormState(a,n),this.formState={...this.formState},this.hasUnsavedChanges=!0,this.error=""}getFormStateFromConfig(t){var a,s,o,i,l,r,c,d,f,u,g,_,v,w,x,p,S,L,B,m,y,b,C,k;const n=(a=t==null?void 0:t.participants)==null?void 0:a.find(T=>T.is_organizer);return{title:((s=t==null?void 0:t.event_booking)==null?void 0:s.title)??"",description:((o=t==null?void 0:t.event_booking)==null?void 0:o.description)??"",duration:((l=(i=t==null?void 0:t.availability)==null?void 0:i.duration_minutes)==null?void 0:l.toString())??"30",availability:{timezone:((r=t==null?void 0:t.event_booking)==null?void 0:r.timezone)??Intl.DateTimeFormat().resolvedOptions().timeZone,openHours:((d=(c=t==null?void 0:t.availability)==null?void 0:c.availability_rules)==null?void 0:d.default_open_hours)??X.DEFAULT_OPEN_HOURS},calendarIds:((f=n==null?void 0:n.availability)==null?void 0:f.calendar_ids)??[],participants:(t==null?void 0:t.participants)??[],bookingCalendar:((u=n==null?void 0:n.booking)==null?void 0:u.calendar_id)??(n==null?void 0:n.email)??"",location:((g=t==null?void 0:t.event_booking)==null?void 0:g.location)??"",bookingType:((_=t==null?void 0:t.event_booking)==null?void 0:_.booking_type)??"booking",buffer:((w=(v=t==null?void 0:t.availability)==null?void 0:v.availability_rules)==null?void 0:w.buffer)??{before:0,after:0},cancellationPolicy:((x=t==null?void 0:t.scheduler)==null?void 0:x.cancellation_policy)??"",availableDaysInFuture:((p=t==null?void 0:t.scheduler)==null?void 0:p.available_days_in_future)??30,minCancellationNotice:((S=t==null?void 0:t.scheduler)==null?void 0:S.min_cancellation_notice)??0,minBookingNotice:((L=t==null?void 0:t.scheduler)==null?void 0:L.min_booking_notice)??60,timeslotInterval:{interval:((B=t==null?void 0:t.availability)==null?void 0:B.interval_minutes)??((m=t==null?void 0:t.availability)==null?void 0:m.duration_minutes)??10,roundTo:(y=t==null?void 0:t.availability)==null?void 0:y.round_to},additionalGuestsHidden:((b=t==null?void 0:t.scheduler)==null?void 0:b.hide_additional_guests)??!1,hideCancellationOptions:((C=t==null?void 0:t.scheduler)==null?void 0:C.hide_cancellation_options)??!1,hideReschedulingOptions:((k=t==null?void 0:t.scheduler)==null?void 0:k.hide_rescheduling_options)??!1}}setFormState(t,n){switch(n){case"title":this.formState.title=t.toString();break;case"description":this.formState.description=t.toString();break;case"duration":this.formState.duration=t.toString();break;case"availability":this.formState.availability=JSON.parse(t.toString());break;case"participants":this.formState.participants=JSON.parse(t.toString());break;case"calendars":this.formState.calendarIds=t.toString().split(",");break;case"booking-calendar":this.formState.bookingCalendar=t.toString();break;case"location":this.formState.location=t.toString();break;case"booking-type":this.formState.bookingType=t.toString();break;case"buffer-time":this.formState.buffer=JSON.parse(t.toString());break;case"limit-future-bookings":this.formState.availableDaysInFuture=parseInt(t.toString());break;case"min-cancellation-notice":this.formState.minCancellationNotice=parseInt(t.toString());break;case"min-booking-notice":this.formState.minBookingNotice=parseInt(t.toString());break;case"cancellation-policy":this.formState.cancellationPolicy=t.toString();break;case"timeslot-interval":this.formState.timeslotInterval=JSON.parse(t.toString());break;case"customize-booking-settings":const a=JSON.parse(t.toString());this.formState.additionalGuestsHidden=a.additionalGuestsHidden,this.formState.hideCancellationOptions=a.hideCancellationOptions,this.formState.hideReschedulingOptions=a.hideReschedulingOptions;break;case"participant-custom-availability":const s=JSON.parse(t.toString());this.formState.participantOpenHours=s;break}}updateFormState(){return new FormData(this.formRef).forEach((n,a)=>{this.setFormState(n,a)}),this.formState={...this.formState},this.formState}setActiveTab(t,n){t.preventDefault(),this.updateFormState(),this.activeTab=n}render(){var n;e.debug("[nylas-editor-tabs]","render",this.formState);const t=localStorage.getItem("nylas")==="Nylas Developer";return e.h(e.Host,{key:"13aad28cba8de3b30e60d7a26849d30ef2578bb5"},e.h("form",{key:"31e835f74ca7728d597148a18c840e0791c34c89",onSubmit:this.formSubmissionHandler,class:"scheduler-editor",ref:a=>this.formRef=a,noValidate:!0},this.mode==="app"?e.h("div",{class:"form-contents"},e.h("div",{class:"tabs"},e.h("button",{class:{tab:!0,active:this.activeTab=="eventInfo"},onClick:a=>this.setActiveTab(a,"eventInfo")},e.h("calendar-info-icon",{width:"16",height:"16"}),"Event Info"),e.h("button",{class:{tab:!0,active:this.activeTab=="availability"},onClick:a=>this.setActiveTab(a,"availability")},e.h("calendar-patterns-icon",{width:"16",height:"16"}),"Availability"),e.h("button",{class:{tab:!0,active:this.activeTab=="bookingOptions"},onClick:a=>this.setActiveTab(a,"bookingOptions")},e.h("flow-icon",{width:"16",height:"16"}),"Booking Options"),t&&e.h("button",{class:{tab:!0,active:this.activeTab=="participants"},onClick:a=>this.setActiveTab(a,"participants")},e.h("people-icon",{width:"16",height:"16"}),"Participants")),e.h("div",{class:"tab-content"},e.h(ct,{formState:this.formState,activeTab:this.activeTab,calendars:this.calendars,id:((n=this.selectedConfiguration)==null?void 0:n.id)??"new"}))):e.h("slot",null),e.h("div",{key:"e83274ed2d92f179c90564a21f80ba869d1033a2",class:"footer"},e.h("div",{key:"c661b7a0c024f7b8f1c916b55bc5784a10ee9958",class:"preview"},this.schedulerPreviewLink!==""&&this.action==="edit"&&e.h("button-component",{type:"button",disabled:this.isLoading,clickHandler:a=>{a.preventDefault(),this.previewButtonClicked.emit(this.host).defaultPrevented||window.open(e.parsePreviewLink(this.schedulerPreviewLink,this.selectedConfiguration),"_blank")},variant:"basic"},"Preview")),e.h("div",{key:"78cb89dbbb6e124aaddf9b486834e81ab10ea70a",class:"buttons"},e.h("p",{key:"e07f651a081607471d067aa05a3858446725a6db",class:{"unsaved-changes":this.hasUnsavedChanges&&!this.changesSaved,"saved-changes":this.changesSaved,error:this.error!=="","error-full-width":this.error!==""&&this.action==="create"}},this.error!==""?this.error:"",this.error==""&&this.hasUnsavedChanges&&!this.changesSaved?"Unsaved changes":this.error==""&&this.changesSaved?"Changes saved!":""),e.h("button-component",{key:"66500ec7f10c2a5ecb6d98647766e2f31f030fe4",type:"button",disabled:this.isLoading,clickHandler:a=>{a.preventDefault(),this.cancelButtonClick.emit(),this.error=""},variant:"basic"},"Cancel"),e.h("button-component",{key:"a816e4c9d7d1f53e09edf635f06c9a177bdcb15a",type:"submit",disabled:this.isLoading},this.isLoading?e.h("span",null,"Saving",e.h("loading-icon",null)," "):this.action=="create"?"Create":"Save changes")))))}get host(){return e.getElement(this)}static get watchers(){return{selectedConfiguration:["configChangedHandler"]}}};bt([Y.RegisterComponent({name:"nylas-editor-tabs",stateToProps:new Map([["schedulerConfig.calendars","calendars"],["schedulerConfig.selectedConfiguration","selectedConfiguration"],["schedulerConfig.currentUser","currentUser"]]),eventToProps:{schedulerConfigChanged:async(t,n)=>{const{resetLoadingState:a,setError:s,action:o,config:i}=t.detail,l=r=>{const[c,d]=r;!c&&d&&s&&s(d),a&&a(t)};if(o==="edit"){const r=await n.schedulerConfig.updateConfiguration(i);l(r)}else{const r=await n.schedulerConfig.createConfiguration(i);l(r)}},cancelButtonClick:async(t,n)=>{n.schedulerConfigStore.state.action=null},previewButtonClicked:async(t,n)=>{e.debug("[nylas-editor-tabs]","previewButtonClicked",n)},formSubmitted:async(t,n)=>{e.debug("[nylas-editor-tabs]","formSubmitted",n)}},localPropsToProp:new Map([["schedulerPreviewLink","schedulerPreviewLink"]]),fireRegisterEvent:!0}),D("design:type",Function),D("design:paramtypes",[]),D("design:returntype",void 0)],E.prototype,"render",null);E.style=ht;const ut=':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;overflow-y:auto}.configurations table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations table.no-configurations{height:100%}.configurations table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations table tr:last-of-type{border-bottom:0}.configurations table tr.hide{display:none}.configurations table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations table th.actions-header{text-align:right}.configurations 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 tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations table th,.configurations table td{text-align:left;padding:1rem;font-family:inherit}.configurations table .actions{text-align:right}.configurations table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations table .actions{flex-direction:column;gap:0.5rem}}.configurations table .title{display:flex;flex-direction:column}.configurations table .title .config-event-title{font-weight:600}.configurations table .title .config-event-description{font-size:0.75rem}.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}',pt=ut;var yt=function(t,n,a,s){var o=arguments.length,i=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,a):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,n,a,s);else for(var r=t.length-1;r>=0;r--)(l=t[r])&&(i=(o<3?l(i):o>3?l(n,a,i):l(n,a))||i);return o>3&&i&&Object.defineProperty(n,a,i),i},H=function(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)};const I=class{constructor(t){e.registerInstance(this,t),this.initListConfigurations=e.createEvent(this,"initListConfigurations",7),this.createButtonClick=e.createEvent(this,"createButtonClick",7),this.editButtonClick=e.createEvent(this,"editButtonClick",7),this.deleteButtonClick=e.createEvent(this,"deleteButtonClick",7),this.configurations=[],this.schedulerPreviewLink="",this.state="loading",this.error="",this.copiedButtonIndex=-1}connectedCallback(){e.debug("[nylas-list-configurations]","connectedCallback")}componentWillLoad(){e.debug("[nylas-list-configurations]","componentWillLoad"),this.configurations&&this.configurations.length>0&&(this.state="loaded")}componentDidLoad(){e.debug("[nylas-list-configurations]","componentDidLoad"),this.initListConfigurations.emit(this.host)}disconnectedCallback(){e.debug("[nylas-list-configurations]","disconnectedCallback")}async getState(){return this.state}async setState(t){this.state=t}async setError(t){this.error=t}getDurationString(t){const n=Math.floor(t/60),a=t%60;return`${n||""} ${n?`${n>1?"hours":"hour"}`:""} ${a||""} ${a?`${a>1?"mins":"min"}`:""}`}render(){return e.h(e.Host,null,e.h("div",{class:"header"},e.h("div",{class:"description"},e.h("h2",null,"All scheduling pages"),e.h("p",null,"Create, edit and manage all your scheduling pages.")),this.configurations&&this.configurations.length>0&&e.h("div",{class:"actions"},e.h("button-component",{clickHandler:()=>{this.createButtonClick.emit(this.host)}},"Create new"))),e.h("div",{class:"configurations"},e.h("table",{class:{"no-configurations":this.state!=="loading"&&(!this.configurations||this.configurations.length===0)}},e.h("tr",{class:{hide:this.state==="loading"||this.configurations&&this.configurations.length===0}},e.h("th",null,"Scheduling page title"),e.h("th",null,"Duration"),e.h("th",{class:"actions-header"},"Actions")),this.state==="loading"&&e.h("tr",{class:"no-configurations"},e.h("td",{colSpan:3},e.h("div",null,e.h("h3",null,"Loading..."),e.h("p",null,"Please wait while we fetch the scheduling pages")))),this.state!=="loading"&&(!this.configurations||this.configurations.length===0)&&e.h("tr",{class:"no-configurations"},e.h("td",{colSpan:3},e.h("div",null,e.h("calendar-icon",{width:"48",height:"48"}),e.h("h3",null,"No scheduling pages found"),e.h("p",null,"Get started with creating your first scheduling page"),e.h("button-component",{clickHandler:()=>{this.createButtonClick.emit(this.host)}},"Create new")))),this.state!=="loading"&&this.configurations.map((t,n)=>e.h("tr",{key:t.id},e.h("td",null,e.h("div",{class:"title"},e.h("span",{class:"config-event-title"},t.event_booking.title),e.h("span",{class:"config-event-description"},t.event_booking.description))),e.h("td",null,e.h("div",null,this.getDurationString(t.availability.duration_minutes))),e.h("td",null,e.h("div",{class:"actions"},e.h("button-component",{variant:"basic",id:"copy",key:`copy-${n}`,clickHandler:async a=>{a.preventDefault();const s=e.parsePreviewLink(this.schedulerPreviewLink,t);await navigator.clipboard.writeText(s),this.copiedButtonIndex=n,setTimeout(()=>{this.copiedButtonIndex=-1},3e3)}},this.copiedButtonIndex===n?"Copied!":"Copy link"),e.h("button-component",{variant:"basic",key:`edit-${n}`,clickHandler:a=>{a.preventDefault(),this.editButtonClick.emit({host:this.host,configuration:t})}},"Edit"),e.h("button-component",{variant:"basic",key:`delete-${n}`,clickHandler:a=>{a.preventDefault(),this.deleteButtonClick.emit({host:this.host,configuration:t})}},"Delete"))))))),this.state==="error"&&e.h("div",{class:"error-container"},e.h("p",{class:"error"},this.error)))}get host(){return e.getElement(this)}};yt([Y.RegisterComponent({name:"nylas-list-configurations",stateToProps:new Map([["schedulerConfig.configurations","configurations"]]),localPropsToProp:new Map([["schedulerPreviewLink","schedulerPreviewLink"]]),eventToProps:{initListConfigurations:async(t,n)=>{const a=t.detail;await a.setState("loading");const[s,o]=await n.schedulerConfig.getConfigurations();if(!s&&o&&o.message){await a.setState("error"),await a.setError(o.message);return}await a.setState("loaded")},createButtonClick:async(t,n)=>{n.schedulerConfigStore.resetSelectedConfiguration(),n.schedulerConfigStore.state.action="create"},deleteButtonClick:async(t,n)=>{const{host:a,configuration:s}=t.detail,[o,i]=await n.schedulerConfig.deleteConfiguration(s.id);!o&&i&&i.message&&(await a.setState("error"),await a.setError(i.message))},editButtonClick:async(t,n)=>{const{configuration:a}=t.detail;n.schedulerConfigStore.state.selectedConfiguration=a,n.schedulerConfigStore.state.action="edit"}},fireRegisterEvent:!0}),H("design:type",Function),H("design:paramtypes",[]),H("design:returntype",void 0)],I.prototype,"render",null);I.style=pt;exports.google_logo_icon=tt;exports.microsoft_logo_icon=et;exports.nylas_editor_tabs=E;exports.nylas_list_configurations=I;
|
|
@@ -1,467 +0,0 @@
|
|
|
1
|
-
import { r as F, h as e, c as _, x as ct, d as u, y as tt, H as et, g as at } from "./index-812162da.js";
|
|
2
|
-
import { R as nt } from "./register-component-a5a9ca5d-a5c01c35.js";
|
|
3
|
-
import { D as Y } from "./constants-f34b9c6e-f1c4dd0d.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
const dt = ".sc-google-logo-icon-h{display:flex}", bt = dt, ut = class {
|
|
7
|
-
constructor(t) {
|
|
8
|
-
F(this, t), this.width = "24", this.height = "24";
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
return e("svg", { key: "0e9d7d49a7c9b6cd2087805b88f0e5a2067dfaed", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "e97ac24bfe96bdba16a9709dde3ebc675e942d56", "clip-path": "url(#clip0_959_12452)" }, e("path", { key: "231167532157853cb95fddc85fa8cffcf1134ef4", 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: "4f964a28a6b0894940c9d762a91db0c099f6c2c7", 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: "9ada4b2f2625f18538ff4455b1160efcfccbd646", 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: "6a260b3024a69fa930820a80a917152dc7ef52a7", 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: "56bc051b67a1bfa29ecaf64bac03ee1017836365" }, e("clipPath", { key: "8057800f9035048497e8198789e1e0b4dba1c64a", id: "clip0_959_12452" }, e("rect", { key: "6c0299822390d3433158d87c607fe9546e878eb0", width: 24, height: 24, fill: "white" }))));
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
ut.style = bt;
|
|
15
|
-
const pt = ".sc-microsoft-logo-icon-h{display:flex}", ht = pt, yt = class {
|
|
16
|
-
constructor(t) {
|
|
17
|
-
F(this, t), this.width = "22", this.height = "22";
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return e("svg", { key: "3dd5e1a94ca5889c14f7695c9077f9be0cbc4d00", width: this.width, height: this.height, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "381068331f74d7f1a06c0ca0cd9dfc2b58f72a10", d: "M0.043457 0.043457H10.4782V10.4782H0.043457V0.043457Z", fill: "#F35325" }), e("path", { key: "62c7be7371433602169a19fe2657e0a1635f516e", d: "M11.5217 0.043457H21.9565V10.4782H11.5217V0.043457Z", fill: "#81BC06" }), e("path", { key: "72464e489d4cfd78f016282a743a1000fb732368", d: "M0.043457 11.5217H10.4782V21.9565H0.043457V11.5217Z", fill: "#05A6F0" }), e("path", { key: "d766c4d950ee3122cf4916b53ce5f630b52a30bb", d: "M11.5217 11.5217H21.9565V21.9565H11.5217V11.5217Z", fill: "#FFBA08" }));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
yt.style = ht;
|
|
24
|
-
function ft({ id: t, formState: a, activeTab: n, calendars: s }) {
|
|
25
|
-
var o;
|
|
26
|
-
switch (n) {
|
|
27
|
-
case "eventInfo":
|
|
28
|
-
const i = a.title, l = a.description, r = parseInt(a.duration), c = a.location;
|
|
29
|
-
return e(
|
|
30
|
-
"div",
|
|
31
|
-
{ key: t },
|
|
32
|
-
e(
|
|
33
|
-
"nylas-event-info",
|
|
34
|
-
null,
|
|
35
|
-
e(
|
|
36
|
-
"div",
|
|
37
|
-
{ slot: "inputs" },
|
|
38
|
-
e("nylas-event-title", { name: "title", eventTitle: i, exportparts: "net, net__title, net__dropdown-content" }),
|
|
39
|
-
e("nylas-event-duration", { name: "duration", eventDurationMinutes: r, exportparts: "ned, ned__dropdown, ned__dropdown-button, ned__dropdown-content, ned__input_dropdown, ned__input_dropdown-input, ned__input_dropdown-content" }),
|
|
40
|
-
e("nylas-event-location", { name: "location", eventLocation: c, exportparts: "nel, nel__location, nel__dropdown, nel__dropdown-button, nel__dropdown-content" }),
|
|
41
|
-
e("nylas-event-description", { name: "description", eventDescription: l, exportparts: "nedesc, nedesc__textarea" })
|
|
42
|
-
)
|
|
43
|
-
)
|
|
44
|
-
);
|
|
45
|
-
case "availability":
|
|
46
|
-
const d = a.availability.openHours, m = a.availability.timezone ? a.availability.timezone : Intl.DateTimeFormat().resolvedOptions().timeZone, h = (o = a.participants) == null ? void 0 : o.find((C) => C.is_organizer), v = (h == null ? void 0 : h.email) ?? "primary", w = a.calendarIds.length > 0 ? a.calendarIds : [v], k = a.bookingCalendar == "primary" ? v : a.bookingCalendar;
|
|
47
|
-
return e(
|
|
48
|
-
"div",
|
|
49
|
-
{ key: t },
|
|
50
|
-
e("nylas-booking-calendar-picker", { name: "booking-calendar", calendars: s ?? [], defaultBookingCalendar: k, exportparts: "nbcp, nbcp__header, nbcp__input-label, nbcp__dropdown, nbcp__dropdown-button, nbcp__dropdown-content" }),
|
|
51
|
-
e("nylas-calendar-picker", { name: "calendars", calendars: s ?? [], defaultSelectedCalendars: w, exportparts: "ncp ncp__header, ncp__dropdown, ncp__dropdown-button, ncp__dropdown-content" }),
|
|
52
|
-
e("nylas-availability-picker", { name: "availability", openHours: d, defaultTimezone: m, exportparts: "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" })
|
|
53
|
-
);
|
|
54
|
-
case "bookingOptions":
|
|
55
|
-
return e(
|
|
56
|
-
"div",
|
|
57
|
-
{ key: t },
|
|
58
|
-
e("nylas-buffer-time", { name: "buffer-time", buffer: a.buffer, 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" }),
|
|
59
|
-
e(
|
|
60
|
-
"nylas-event-limits",
|
|
61
|
-
null,
|
|
62
|
-
e(
|
|
63
|
-
"div",
|
|
64
|
-
{ slot: "inputs" },
|
|
65
|
-
e("nylas-min-booking-notice", { name: "min-booking-notice", minBookingNotice: a.minBookingNotice, exportparts: "nmbn, nmbn__number-dropdown, nmbn__number-dropdown-button, nmbn__number-dropdown-content, nmbn__period-dropdown, nmbn__period-dropdown-button, nmbn__period-dropdown-content" }),
|
|
66
|
-
e("nylas-limit-future-bookings", { name: "limit-future-bookings", availableDaysInFuture: a.availableDaysInFuture, exportparts: "nlfb, nlfb__number-dropdown, nlfb__number-dropdown-button, nlfb__number-dropdown-content, nlfb__period-dropdown, nlfb__period-dropdown-button, nlfb__period-dropdown-content" }),
|
|
67
|
-
e("nylas-min-cancellation-notice", { name: "min-cancellation-notice", minCancellationNotice: a.minCancellationNotice, exportparts: "nmcn, nmcn__number-dropdown, nmcn__number-dropdown-button, nmcn__number-dropdown-content, nmcn__period-dropdown, nmcn__period-dropdown-button, nmcn__period-dropdown-content" }),
|
|
68
|
-
e("nylas-cancellation-policy", { name: "cancellation-policy", cancellationPolicy: a.cancellationPolicy, exportparts: "ncpolicy, ncpolicy__textarea" })
|
|
69
|
-
)
|
|
70
|
-
),
|
|
71
|
-
e("nylas-timeslot-interval", { name: "timeslot-interval", eventDurationMinutes: parseInt(a.duration), exportparts: "nti, nti__header, nti__input-label, nti__dropdown, nti__dropdown-button, nti__dropdown-content" }),
|
|
72
|
-
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" })
|
|
73
|
-
);
|
|
74
|
-
case "participants":
|
|
75
|
-
return e(
|
|
76
|
-
"div",
|
|
77
|
-
{ key: t },
|
|
78
|
-
e("nylas-additional-participants", { name: "participants", eventParticipants: a.participants, exportparts: "nap__title, nap__subtitle, nap__content, nap__input_group, nap__input_wrapper, nap__input, nap__remove-participant" }),
|
|
79
|
-
e("nylas-participants-custom-availability", { name: "participant-custom-availability", participants: a.participants, 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" })
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
const mt = '.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}.scheduler-editor.sc-nylas-editor-tabs .form-contents.sc-nylas-editor-tabs{height:554px;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)}.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.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 .tab-content.sc-nylas-editor-tabs{max-width:692px;overflow-y:auto}.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}.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}', gt = mt;
|
|
84
|
-
var _t = function(t, a, n, s) {
|
|
85
|
-
var o = arguments.length, i = o < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, n) : s, l;
|
|
86
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
87
|
-
i = Reflect.decorate(t, a, n, s);
|
|
88
|
-
else
|
|
89
|
-
for (var r = t.length - 1; r >= 0; r--)
|
|
90
|
-
(l = t[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(a, n, i) : l(a, n)) || i);
|
|
91
|
-
return o > 3 && i && Object.defineProperty(a, n, i), i;
|
|
92
|
-
}, I = function(t, a) {
|
|
93
|
-
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
94
|
-
return Reflect.metadata(t, a);
|
|
95
|
-
};
|
|
96
|
-
const it = class {
|
|
97
|
-
constructor(t) {
|
|
98
|
-
F(this, t), this.schedulerConfigChanged = _(this, "schedulerConfigChanged", 7), this.cancelButtonClick = _(this, "cancelButtonClick", 7), this.formSubmitted = _(this, "formSubmitted", 7), this.previewButtonClicked = _(this, "previewButtonClicked", 7), this.setError = (a) => {
|
|
99
|
-
this.error = a.message;
|
|
100
|
-
}, this.formSubmissionHandler = async (a) => {
|
|
101
|
-
var P, E, R, N, j, M, z, V, U, A, $, Z, G, J, W, q;
|
|
102
|
-
if (a.preventDefault(), this.formSubmitted.emit(), !this.formRef.checkValidity())
|
|
103
|
-
return;
|
|
104
|
-
this.isLoading = !0, this.hasUnsavedChanges = !1;
|
|
105
|
-
const s = this.updateFormState(), { title: o, description: i, duration: l, availability: r, calendarIds: c, bookingCalendar: d, location: m, bookingType: h, buffer: v, availableDaysInFuture: w, minCancellationNotice: k, minBookingNotice: C, cancellationPolicy: L, timeslotInterval: y, additionalGuestsHidden: B, hideCancellationOptions: D, hideReschedulingOptions: T, participants: g, participantOpenHours: f } = s, p = (E = (P = this.selectedConfiguration) == null ? void 0 : P.participants) == null ? void 0 : E.find((b) => b.is_organizer), S = l ? parseInt(l) : 30, x = g && (g == null ? void 0 : g.length) > 0 ? g : [
|
|
106
|
-
{
|
|
107
|
-
name: (p == null ? void 0 : p.name) ?? ((R = this.currentUser) == null ? void 0 : R.name) ?? (p == null ? void 0 : p.email) ?? ((N = this.currentUser) == null ? void 0 : N.email) ?? "",
|
|
108
|
-
email: (p == null ? void 0 : p.email) ?? ((j = this.currentUser) == null ? void 0 : j.email) ?? "",
|
|
109
|
-
is_organizer: !0,
|
|
110
|
-
availability: {
|
|
111
|
-
calendar_ids: c != null && c.length ? c : ["primary"],
|
|
112
|
-
open_hours: []
|
|
113
|
-
},
|
|
114
|
-
booking: {
|
|
115
|
-
calendar_id: d && d !== "" ? d : "primary"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
], H = {
|
|
119
|
-
...((M = this.selectedConfiguration) == null ? void 0 : M.id) && { id: this.selectedConfiguration.id },
|
|
120
|
-
version: ((z = this.selectedConfiguration) == null ? void 0 : z.version) ?? "1.0.0",
|
|
121
|
-
availability: {
|
|
122
|
-
duration_minutes: S,
|
|
123
|
-
interval_minutes: (y == null ? void 0 : y.interval) ?? S,
|
|
124
|
-
round_to: y == null ? void 0 : y.roundTo,
|
|
125
|
-
availability_rules: {
|
|
126
|
-
availability_method: ((A = (U = (V = this.selectedConfiguration) == null ? void 0 : V.availability) == null ? void 0 : U.availability_rules) == null ? void 0 : A.availability_method) ?? "collective",
|
|
127
|
-
buffer: v || { before: 0, after: 0 },
|
|
128
|
-
default_open_hours: (r == null ? void 0 : r.openHours) ?? ((G = (Z = ($ = this.selectedConfiguration) == null ? void 0 : $.availability) == null ? void 0 : Z.availability_rules) == null ? void 0 : G.default_open_hours) ?? Y,
|
|
129
|
-
round_robin_group_id: ((q = (W = (J = this.selectedConfiguration) == null ? void 0 : J.availability) == null ? void 0 : W.availability_rules) == null ? void 0 : q.round_robin_group_id) ?? ""
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
participants: [
|
|
133
|
-
...x == null ? void 0 : x.map((b) => {
|
|
134
|
-
var K, Q, X;
|
|
135
|
-
return b.is_organizer ? {
|
|
136
|
-
name: b.name ?? b.email,
|
|
137
|
-
email: b.email,
|
|
138
|
-
is_organizer: !0,
|
|
139
|
-
availability: {
|
|
140
|
-
calendar_ids: c != null && c.length ? c : ["primary"],
|
|
141
|
-
open_hours: (f == null ? void 0 : f[b.email]) ?? ((K = b.availability) == null ? void 0 : K.open_hours) ?? []
|
|
142
|
-
},
|
|
143
|
-
booking: {
|
|
144
|
-
calendar_id: d && d !== "" ? d : "primary"
|
|
145
|
-
}
|
|
146
|
-
} : {
|
|
147
|
-
...b,
|
|
148
|
-
availability: {
|
|
149
|
-
calendar_ids: ((Q = b.availability) == null ? void 0 : Q.calendar_ids) ?? ["primary"],
|
|
150
|
-
open_hours: (f == null ? void 0 : f[b.email]) ?? ((X = b.availability) == null ? void 0 : X.open_hours) ?? []
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
})
|
|
154
|
-
],
|
|
155
|
-
event_booking: {
|
|
156
|
-
title: (o == null ? void 0 : o.toString()) ?? "",
|
|
157
|
-
description: (i == null ? void 0 : i.toString()) ?? "",
|
|
158
|
-
location: (m == null ? void 0 : m.toString()) ?? "",
|
|
159
|
-
booking_type: (h == null ? void 0 : h.toString()) ?? "booking",
|
|
160
|
-
timezone: (r == null ? void 0 : r.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
161
|
-
},
|
|
162
|
-
scheduler: {
|
|
163
|
-
cancellation_policy: L ?? "",
|
|
164
|
-
available_days_in_future: w ?? 30,
|
|
165
|
-
min_cancellation_notice: k ?? 0,
|
|
166
|
-
min_booking_notice: C ?? 60,
|
|
167
|
-
hide_additional_guests: B ?? !1,
|
|
168
|
-
hide_cancellation_options: D ?? !1,
|
|
169
|
-
hide_rescheduling_options: T ?? !1
|
|
170
|
-
}
|
|
171
|
-
}, ot = ct(H, this.selectedConfiguration), rt = this.action === "create" ? ot : H, lt = (b) => {
|
|
172
|
-
this.isLoading = !1, this.changesSaved = !0, setTimeout(() => {
|
|
173
|
-
this.changesSaved = !1;
|
|
174
|
-
}, 5e3);
|
|
175
|
-
};
|
|
176
|
-
this.schedulerConfigChanged.emit({ config: rt, resetLoadingState: lt, setError: this.setError, action: this.action });
|
|
177
|
-
}, this.calendars = void 0, this.selectedConfiguration = void 0, this.currentUser = void 0, this.schedulerPreviewLink = "", this.mode = "app", this.action = "create", this.activeTab = "eventInfo", this.isLoading = !1, this.hasUnsavedChanges = !1, this.changesSaved = !1, this.formState = {}, this.error = "";
|
|
178
|
-
}
|
|
179
|
-
configChangedHandler(t) {
|
|
180
|
-
u("[nylas-editor-tabs]", "configChangedHandler", t, this.selectedConfiguration), this.formState = {
|
|
181
|
-
...this.getFormStateFromConfig(t)
|
|
182
|
-
}, t.id ? this.action = "edit" : this.action = "create";
|
|
183
|
-
}
|
|
184
|
-
connectedCallback() {
|
|
185
|
-
u("[nylas-editor-tabs]", "connectedCallback");
|
|
186
|
-
}
|
|
187
|
-
componentWillLoad() {
|
|
188
|
-
u("[nylas-editor-tabs]", "componentWillLoad"), this.formState = this.getFormStateFromConfig(this.selectedConfiguration);
|
|
189
|
-
}
|
|
190
|
-
componentDidLoad() {
|
|
191
|
-
u("[nylas-editor-tabs]", "componentDidLoad");
|
|
192
|
-
}
|
|
193
|
-
disconnectedCallback() {
|
|
194
|
-
u("[nylas-editor-tabs]", "disconnectedCallback");
|
|
195
|
-
}
|
|
196
|
-
handleValueChanged(t) {
|
|
197
|
-
u("[nylas-editor-tabs]", "handleValueChanged", t);
|
|
198
|
-
const { name: a, value: n } = t.detail;
|
|
199
|
-
this.setFormState(n, a), this.formState = { ...this.formState }, this.hasUnsavedChanges = !0, this.error = "";
|
|
200
|
-
}
|
|
201
|
-
getFormStateFromConfig(t) {
|
|
202
|
-
var n, s, o, i, l, r, c, d, m, h, v, w, k, C, L, y, B, D, T, g, f, p, S, x;
|
|
203
|
-
const a = (n = t == null ? void 0 : t.participants) == null ? void 0 : n.find((H) => H.is_organizer);
|
|
204
|
-
return {
|
|
205
|
-
title: ((s = t == null ? void 0 : t.event_booking) == null ? void 0 : s.title) ?? "",
|
|
206
|
-
description: ((o = t == null ? void 0 : t.event_booking) == null ? void 0 : o.description) ?? "",
|
|
207
|
-
duration: ((l = (i = t == null ? void 0 : t.availability) == null ? void 0 : i.duration_minutes) == null ? void 0 : l.toString()) ?? "30",
|
|
208
|
-
availability: {
|
|
209
|
-
timezone: ((r = t == null ? void 0 : t.event_booking) == null ? void 0 : r.timezone) ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
210
|
-
openHours: ((d = (c = t == null ? void 0 : t.availability) == null ? void 0 : c.availability_rules) == null ? void 0 : d.default_open_hours) ?? Y
|
|
211
|
-
},
|
|
212
|
-
calendarIds: ((m = a == null ? void 0 : a.availability) == null ? void 0 : m.calendar_ids) ?? [],
|
|
213
|
-
participants: (t == null ? void 0 : t.participants) ?? [],
|
|
214
|
-
bookingCalendar: ((h = a == null ? void 0 : a.booking) == null ? void 0 : h.calendar_id) ?? (a == null ? void 0 : a.email) ?? "",
|
|
215
|
-
location: ((v = t == null ? void 0 : t.event_booking) == null ? void 0 : v.location) ?? "",
|
|
216
|
-
bookingType: ((w = t == null ? void 0 : t.event_booking) == null ? void 0 : w.booking_type) ?? "booking",
|
|
217
|
-
buffer: ((C = (k = t == null ? void 0 : t.availability) == null ? void 0 : k.availability_rules) == null ? void 0 : C.buffer) ?? { before: 0, after: 0 },
|
|
218
|
-
cancellationPolicy: ((L = t == null ? void 0 : t.scheduler) == null ? void 0 : L.cancellation_policy) ?? "",
|
|
219
|
-
availableDaysInFuture: ((y = t == null ? void 0 : t.scheduler) == null ? void 0 : y.available_days_in_future) ?? 30,
|
|
220
|
-
minCancellationNotice: ((B = t == null ? void 0 : t.scheduler) == null ? void 0 : B.min_cancellation_notice) ?? 0,
|
|
221
|
-
minBookingNotice: ((D = t == null ? void 0 : t.scheduler) == null ? void 0 : D.min_booking_notice) ?? 60,
|
|
222
|
-
timeslotInterval: {
|
|
223
|
-
interval: ((T = t == null ? void 0 : t.availability) == null ? void 0 : T.interval_minutes) ?? ((g = t == null ? void 0 : t.availability) == null ? void 0 : g.duration_minutes) ?? 10,
|
|
224
|
-
roundTo: (f = t == null ? void 0 : t.availability) == null ? void 0 : f.round_to
|
|
225
|
-
},
|
|
226
|
-
additionalGuestsHidden: ((p = t == null ? void 0 : t.scheduler) == null ? void 0 : p.hide_additional_guests) ?? !1,
|
|
227
|
-
hideCancellationOptions: ((S = t == null ? void 0 : t.scheduler) == null ? void 0 : S.hide_cancellation_options) ?? !1,
|
|
228
|
-
hideReschedulingOptions: ((x = t == null ? void 0 : t.scheduler) == null ? void 0 : x.hide_rescheduling_options) ?? !1
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
setFormState(t, a) {
|
|
232
|
-
switch (a) {
|
|
233
|
-
case "title":
|
|
234
|
-
this.formState.title = t.toString();
|
|
235
|
-
break;
|
|
236
|
-
case "description":
|
|
237
|
-
this.formState.description = t.toString();
|
|
238
|
-
break;
|
|
239
|
-
case "duration":
|
|
240
|
-
this.formState.duration = t.toString();
|
|
241
|
-
break;
|
|
242
|
-
case "availability":
|
|
243
|
-
this.formState.availability = JSON.parse(t.toString());
|
|
244
|
-
break;
|
|
245
|
-
case "participants":
|
|
246
|
-
this.formState.participants = JSON.parse(t.toString());
|
|
247
|
-
break;
|
|
248
|
-
case "calendars":
|
|
249
|
-
this.formState.calendarIds = t.toString().split(",");
|
|
250
|
-
break;
|
|
251
|
-
case "booking-calendar":
|
|
252
|
-
this.formState.bookingCalendar = t.toString();
|
|
253
|
-
break;
|
|
254
|
-
case "location":
|
|
255
|
-
this.formState.location = t.toString();
|
|
256
|
-
break;
|
|
257
|
-
case "booking-type":
|
|
258
|
-
this.formState.bookingType = t.toString();
|
|
259
|
-
break;
|
|
260
|
-
case "buffer-time":
|
|
261
|
-
this.formState.buffer = JSON.parse(t.toString());
|
|
262
|
-
break;
|
|
263
|
-
case "limit-future-bookings":
|
|
264
|
-
this.formState.availableDaysInFuture = parseInt(t.toString());
|
|
265
|
-
break;
|
|
266
|
-
case "min-cancellation-notice":
|
|
267
|
-
this.formState.minCancellationNotice = parseInt(t.toString());
|
|
268
|
-
break;
|
|
269
|
-
case "min-booking-notice":
|
|
270
|
-
this.formState.minBookingNotice = parseInt(t.toString());
|
|
271
|
-
break;
|
|
272
|
-
case "cancellation-policy":
|
|
273
|
-
this.formState.cancellationPolicy = t.toString();
|
|
274
|
-
break;
|
|
275
|
-
case "timeslot-interval":
|
|
276
|
-
this.formState.timeslotInterval = JSON.parse(t.toString());
|
|
277
|
-
break;
|
|
278
|
-
case "customize-booking-settings":
|
|
279
|
-
const n = JSON.parse(t.toString());
|
|
280
|
-
this.formState.additionalGuestsHidden = n.additionalGuestsHidden, this.formState.hideCancellationOptions = n.hideCancellationOptions, this.formState.hideReschedulingOptions = n.hideReschedulingOptions;
|
|
281
|
-
break;
|
|
282
|
-
case "participant-custom-availability":
|
|
283
|
-
const s = JSON.parse(t.toString());
|
|
284
|
-
this.formState.participantOpenHours = s;
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
updateFormState() {
|
|
289
|
-
return new FormData(this.formRef).forEach((a, n) => {
|
|
290
|
-
this.setFormState(a, n);
|
|
291
|
-
}), this.formState = { ...this.formState }, this.formState;
|
|
292
|
-
}
|
|
293
|
-
setActiveTab(t, a) {
|
|
294
|
-
t.preventDefault(), this.updateFormState(), this.activeTab = a;
|
|
295
|
-
}
|
|
296
|
-
render() {
|
|
297
|
-
var a;
|
|
298
|
-
u("[nylas-editor-tabs]", "render", this.formState);
|
|
299
|
-
const t = localStorage.getItem("nylas") === "Nylas Developer";
|
|
300
|
-
return e(et, { key: "13aad28cba8de3b30e60d7a26849d30ef2578bb5" }, e("form", { key: "31e835f74ca7728d597148a18c840e0791c34c89", onSubmit: this.formSubmissionHandler, class: "scheduler-editor", ref: (n) => this.formRef = n, noValidate: !0 }, this.mode === "app" ? e("div", { class: "form-contents" }, e("div", { class: "tabs" }, e("button", { class: { tab: !0, active: this.activeTab == "eventInfo" }, onClick: (n) => this.setActiveTab(n, "eventInfo") }, e("calendar-info-icon", { width: "16", height: "16" }), "Event Info"), e("button", { class: { tab: !0, active: this.activeTab == "availability" }, onClick: (n) => this.setActiveTab(n, "availability") }, e("calendar-patterns-icon", { width: "16", height: "16" }), "Availability"), e("button", { class: { tab: !0, active: this.activeTab == "bookingOptions" }, onClick: (n) => this.setActiveTab(n, "bookingOptions") }, e("flow-icon", { width: "16", height: "16" }), "Booking Options"), t && e("button", { class: { tab: !0, active: this.activeTab == "participants" }, onClick: (n) => this.setActiveTab(n, "participants") }, e("people-icon", { width: "16", height: "16" }), "Participants")), e("div", { class: "tab-content" }, e(ft, { formState: this.formState, activeTab: this.activeTab, calendars: this.calendars, id: ((a = this.selectedConfiguration) == null ? void 0 : a.id) ?? "new" }))) : e("slot", null), e("div", { key: "e83274ed2d92f179c90564a21f80ba869d1033a2", class: "footer" }, e("div", { key: "c661b7a0c024f7b8f1c916b55bc5784a10ee9958", class: "preview" }, this.schedulerPreviewLink !== "" && this.action === "edit" && e("button-component", { type: "button", disabled: this.isLoading, clickHandler: (n) => {
|
|
301
|
-
n.preventDefault(), this.previewButtonClicked.emit(this.host).defaultPrevented || window.open(tt(this.schedulerPreviewLink, this.selectedConfiguration), "_blank");
|
|
302
|
-
}, variant: "basic" }, "Preview")), e("div", { key: "78cb89dbbb6e124aaddf9b486834e81ab10ea70a", class: "buttons" }, e("p", { key: "e07f651a081607471d067aa05a3858446725a6db", class: {
|
|
303
|
-
"unsaved-changes": this.hasUnsavedChanges && !this.changesSaved,
|
|
304
|
-
"saved-changes": this.changesSaved,
|
|
305
|
-
error: this.error !== "",
|
|
306
|
-
"error-full-width": this.error !== "" && this.action === "create"
|
|
307
|
-
} }, this.error !== "" ? this.error : "", this.error == "" && this.hasUnsavedChanges && !this.changesSaved ? "Unsaved changes" : this.error == "" && this.changesSaved ? "Changes saved!" : ""), e("button-component", { key: "66500ec7f10c2a5ecb6d98647766e2f31f030fe4", type: "button", disabled: this.isLoading, clickHandler: (n) => {
|
|
308
|
-
n.preventDefault(), this.cancelButtonClick.emit(), this.error = "";
|
|
309
|
-
}, variant: "basic" }, "Cancel"), e("button-component", { key: "a816e4c9d7d1f53e09edf635f06c9a177bdcb15a", type: "submit", disabled: this.isLoading }, this.isLoading ? e("span", null, "Saving", e("loading-icon", null), " ") : this.action == "create" ? "Create" : "Save changes")))));
|
|
310
|
-
}
|
|
311
|
-
get host() {
|
|
312
|
-
return at(this);
|
|
313
|
-
}
|
|
314
|
-
static get watchers() {
|
|
315
|
-
return {
|
|
316
|
-
selectedConfiguration: ["configChangedHandler"]
|
|
317
|
-
};
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
_t([
|
|
321
|
-
nt({
|
|
322
|
-
name: "nylas-editor-tabs",
|
|
323
|
-
stateToProps: /* @__PURE__ */ new Map([
|
|
324
|
-
["schedulerConfig.calendars", "calendars"],
|
|
325
|
-
["schedulerConfig.selectedConfiguration", "selectedConfiguration"],
|
|
326
|
-
["schedulerConfig.currentUser", "currentUser"]
|
|
327
|
-
]),
|
|
328
|
-
eventToProps: {
|
|
329
|
-
schedulerConfigChanged: async (t, a) => {
|
|
330
|
-
const { resetLoadingState: n, setError: s, action: o, config: i } = t.detail, l = (r) => {
|
|
331
|
-
const [c, d] = r;
|
|
332
|
-
!c && d && s && s(d), n && n(t);
|
|
333
|
-
};
|
|
334
|
-
if (o === "edit") {
|
|
335
|
-
const r = await a.schedulerConfig.updateConfiguration(i);
|
|
336
|
-
l(r);
|
|
337
|
-
} else {
|
|
338
|
-
const r = await a.schedulerConfig.createConfiguration(i);
|
|
339
|
-
l(r);
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
cancelButtonClick: async (t, a) => {
|
|
343
|
-
a.schedulerConfigStore.state.action = null;
|
|
344
|
-
},
|
|
345
|
-
previewButtonClicked: async (t, a) => {
|
|
346
|
-
u("[nylas-editor-tabs]", "previewButtonClicked", a);
|
|
347
|
-
},
|
|
348
|
-
formSubmitted: async (t, a) => {
|
|
349
|
-
u("[nylas-editor-tabs]", "formSubmitted", a);
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
|
|
353
|
-
fireRegisterEvent: !0
|
|
354
|
-
}),
|
|
355
|
-
I("design:type", Function),
|
|
356
|
-
I("design:paramtypes", []),
|
|
357
|
-
I("design:returntype", void 0)
|
|
358
|
-
], it.prototype, "render", null);
|
|
359
|
-
it.style = gt;
|
|
360
|
-
const vt = ':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;overflow-y:auto}.configurations table{width:100%;border-spacing:0;border-collapse:collapse;font-family:inherit;height:max-content}.configurations table.no-configurations{height:100%}.configurations table tr{color:var(--nylas-base-800);border-bottom:1px solid var(--nylas-base-200);font-family:inherit}.configurations table tr:last-of-type{border-bottom:0}.configurations table tr.hide{display:none}.configurations table th{font-weight:600;text-transform:uppercase;font-size:14px;line-height:20px}.configurations table th.actions-header{text-align:right}.configurations 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 tr.no-configurations td>div h3{margin:0 0 1rem 0;color:var(--nylas-base-700)}.configurations table tr.no-configurations td>div p{margin:0 0 1rem 0;color:var(--nylas-base-600)}.configurations table tr.no-configurations td>div calendar-icon{margin-bottom:1rem;color:var(--nylas-base-200)}.configurations table th,.configurations table td{text-align:left;padding:1rem;font-family:inherit}.configurations table .actions{text-align:right}.configurations table .actions{display:flex;justify-content:flex-end;gap:1rem}@media screen and (max-width: 768px){.configurations table .actions{flex-direction:column;gap:0.5rem}}.configurations table .title{display:flex;flex-direction:column}.configurations table .title .config-event-title{font-weight:600}.configurations table .title .config-event-description{font-size:0.75rem}.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}', wt = vt;
|
|
361
|
-
var kt = function(t, a, n, s) {
|
|
362
|
-
var o = arguments.length, i = o < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, n) : s, l;
|
|
363
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
364
|
-
i = Reflect.decorate(t, a, n, s);
|
|
365
|
-
else
|
|
366
|
-
for (var r = t.length - 1; r >= 0; r--)
|
|
367
|
-
(l = t[r]) && (i = (o < 3 ? l(i) : o > 3 ? l(a, n, i) : l(a, n)) || i);
|
|
368
|
-
return o > 3 && i && Object.defineProperty(a, n, i), i;
|
|
369
|
-
}, O = function(t, a) {
|
|
370
|
-
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
371
|
-
return Reflect.metadata(t, a);
|
|
372
|
-
};
|
|
373
|
-
const st = class {
|
|
374
|
-
constructor(t) {
|
|
375
|
-
F(this, t), this.initListConfigurations = _(this, "initListConfigurations", 7), this.createButtonClick = _(this, "createButtonClick", 7), this.editButtonClick = _(this, "editButtonClick", 7), this.deleteButtonClick = _(this, "deleteButtonClick", 7), this.configurations = [], this.schedulerPreviewLink = "", this.state = "loading", this.error = "", this.copiedButtonIndex = -1;
|
|
376
|
-
}
|
|
377
|
-
connectedCallback() {
|
|
378
|
-
u("[nylas-list-configurations]", "connectedCallback");
|
|
379
|
-
}
|
|
380
|
-
componentWillLoad() {
|
|
381
|
-
u("[nylas-list-configurations]", "componentWillLoad"), this.configurations && this.configurations.length > 0 && (this.state = "loaded");
|
|
382
|
-
}
|
|
383
|
-
componentDidLoad() {
|
|
384
|
-
u("[nylas-list-configurations]", "componentDidLoad"), this.initListConfigurations.emit(this.host);
|
|
385
|
-
}
|
|
386
|
-
disconnectedCallback() {
|
|
387
|
-
u("[nylas-list-configurations]", "disconnectedCallback");
|
|
388
|
-
}
|
|
389
|
-
async getState() {
|
|
390
|
-
return this.state;
|
|
391
|
-
}
|
|
392
|
-
async setState(t) {
|
|
393
|
-
this.state = t;
|
|
394
|
-
}
|
|
395
|
-
async setError(t) {
|
|
396
|
-
this.error = t;
|
|
397
|
-
}
|
|
398
|
-
getDurationString(t) {
|
|
399
|
-
const a = Math.floor(t / 60), n = t % 60;
|
|
400
|
-
return `${a || ""} ${a ? `${a > 1 ? "hours" : "hour"}` : ""} ${n || ""} ${n ? `${n > 1 ? "mins" : "min"}` : ""}`;
|
|
401
|
-
}
|
|
402
|
-
render() {
|
|
403
|
-
return e(et, null, e("div", { class: "header" }, e("div", { class: "description" }, e("h2", null, "All scheduling pages"), e("p", null, "Create, edit and manage all your scheduling pages.")), this.configurations && this.configurations.length > 0 && e("div", { class: "actions" }, e("button-component", { clickHandler: () => {
|
|
404
|
-
this.createButtonClick.emit(this.host);
|
|
405
|
-
} }, "Create new"))), e("div", { class: "configurations" }, e("table", { class: {
|
|
406
|
-
"no-configurations": this.state !== "loading" && (!this.configurations || this.configurations.length === 0)
|
|
407
|
-
} }, e("tr", { class: {
|
|
408
|
-
hide: this.state === "loading" || this.configurations && this.configurations.length === 0
|
|
409
|
-
} }, e("th", null, "Scheduling page title"), e("th", null, "Duration"), e("th", { class: "actions-header" }, "Actions")), 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", { clickHandler: () => {
|
|
410
|
-
this.createButtonClick.emit(this.host);
|
|
411
|
-
} }, "Create new")))), this.state !== "loading" && this.configurations.map((t, a) => e("tr", { key: t.id }, e("td", null, e("div", { class: "title" }, e("span", { class: "config-event-title" }, t.event_booking.title), e("span", { class: "config-event-description" }, t.event_booking.description))), e("td", null, e("div", null, this.getDurationString(t.availability.duration_minutes))), e("td", null, e("div", { class: "actions" }, e("button-component", { variant: "basic", id: "copy", key: `copy-${a}`, clickHandler: async (n) => {
|
|
412
|
-
n.preventDefault();
|
|
413
|
-
const s = tt(this.schedulerPreviewLink, t);
|
|
414
|
-
await navigator.clipboard.writeText(s), this.copiedButtonIndex = a, setTimeout(() => {
|
|
415
|
-
this.copiedButtonIndex = -1;
|
|
416
|
-
}, 3e3);
|
|
417
|
-
} }, this.copiedButtonIndex === a ? "Copied!" : "Copy link"), e("button-component", { variant: "basic", key: `edit-${a}`, clickHandler: (n) => {
|
|
418
|
-
n.preventDefault(), this.editButtonClick.emit({ host: this.host, configuration: t });
|
|
419
|
-
} }, "Edit"), e("button-component", { variant: "basic", key: `delete-${a}`, clickHandler: (n) => {
|
|
420
|
-
n.preventDefault(), this.deleteButtonClick.emit({ host: this.host, configuration: t });
|
|
421
|
-
} }, "Delete"))))))), this.state === "error" && e("div", { class: "error-container" }, e("p", { class: "error" }, this.error)));
|
|
422
|
-
}
|
|
423
|
-
get host() {
|
|
424
|
-
return at(this);
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
kt([
|
|
428
|
-
nt({
|
|
429
|
-
name: "nylas-list-configurations",
|
|
430
|
-
stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.configurations", "configurations"]]),
|
|
431
|
-
localPropsToProp: /* @__PURE__ */ new Map([["schedulerPreviewLink", "schedulerPreviewLink"]]),
|
|
432
|
-
eventToProps: {
|
|
433
|
-
initListConfigurations: async (t, a) => {
|
|
434
|
-
const n = t.detail;
|
|
435
|
-
await n.setState("loading");
|
|
436
|
-
const [s, o] = await a.schedulerConfig.getConfigurations();
|
|
437
|
-
if (!s && o && o.message) {
|
|
438
|
-
await n.setState("error"), await n.setError(o.message);
|
|
439
|
-
return;
|
|
440
|
-
}
|
|
441
|
-
await n.setState("loaded");
|
|
442
|
-
},
|
|
443
|
-
createButtonClick: async (t, a) => {
|
|
444
|
-
a.schedulerConfigStore.resetSelectedConfiguration(), a.schedulerConfigStore.state.action = "create";
|
|
445
|
-
},
|
|
446
|
-
deleteButtonClick: async (t, a) => {
|
|
447
|
-
const { host: n, configuration: s } = t.detail, [o, i] = await a.schedulerConfig.deleteConfiguration(s.id);
|
|
448
|
-
!o && i && i.message && (await n.setState("error"), await n.setError(i.message));
|
|
449
|
-
},
|
|
450
|
-
editButtonClick: async (t, a) => {
|
|
451
|
-
const { configuration: n } = t.detail;
|
|
452
|
-
a.schedulerConfigStore.state.selectedConfiguration = n, a.schedulerConfigStore.state.action = "edit";
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
fireRegisterEvent: !0
|
|
456
|
-
}),
|
|
457
|
-
O("design:type", Function),
|
|
458
|
-
O("design:paramtypes", []),
|
|
459
|
-
O("design:returntype", void 0)
|
|
460
|
-
], st.prototype, "render", null);
|
|
461
|
-
st.style = wt;
|
|
462
|
-
export {
|
|
463
|
-
ut as google_logo_icon,
|
|
464
|
-
yt as microsoft_logo_icon,
|
|
465
|
-
it as nylas_editor_tabs,
|
|
466
|
-
st as nylas_list_configurations
|
|
467
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./index-e3e9b594.cjs");var e=s.commonjsGlobal.process;exports.process=e;
|