@nylas/react 2.0.2 → 2.0.4
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/{abstract-provider-bdb7d9b4-12a95387.cjs → abstract-provider-97cdbfea-5837e17f.cjs} +1 -1
- package/dist/{abstract-provider-bdb7d9b4-22cf4a74.js → abstract-provider-97cdbfea-6b0e3547.js} +1 -1
- package/dist/{add-circle-icon_2.entry-d56f519c.cjs → add-circle-icon_2.entry-96ef4ded.cjs} +1 -1
- package/dist/{add-circle-icon_2.entry-0ff79148.js → add-circle-icon_2.entry-e59a5b4d.js} +1 -1
- package/dist/{archive-icon.entry-6ab120ff.cjs → archive-icon.entry-49b4e0fd.cjs} +1 -1
- package/dist/{archive-icon.entry-aaff46ec.js → archive-icon.entry-ea5667df.js} +1 -1
- package/dist/{arrow-icon.entry-d8fcbc1f.js → arrow-icon.entry-1f766862.js} +1 -1
- package/dist/{arrow-icon.entry-d57cf44f.cjs → arrow-icon.entry-5aefd7de.cjs} +1 -1
- package/dist/{bold-icon.entry-0f23543d.cjs → bold-icon.entry-1a4955df.cjs} +1 -1
- package/dist/{bold-icon.entry-e48075a4.js → bold-icon.entry-240950a6.js} +1 -1
- package/dist/{button-component_2.entry-3d622397.cjs → button-component_2.entry-357fa02a.cjs} +1 -1
- package/dist/{button-component_2.entry-5db80bec.js → button-component_2.entry-96785a34.js} +1 -1
- package/dist/calendar-agenda-fill-icon_37.entry-5e405c00.cjs +6 -0
- package/dist/calendar-agenda-fill-icon_37.entry-e732ee2e.js +4966 -0
- package/dist/{calendar-cancel-icon.entry-9546c7c3.cjs → calendar-cancel-icon.entry-55d746cf.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-8b43441c.js → calendar-cancel-icon.entry-7543c684.js} +1 -1
- package/dist/{calendar-check-icon.entry-a03b249a.cjs → calendar-check-icon.entry-63d33f23.cjs} +1 -1
- package/dist/{calendar-check-icon.entry-4e6abda7.js → calendar-check-icon.entry-aba54652.js} +1 -1
- package/dist/{calendar-icon.entry-5b622c12.js → calendar-icon.entry-2cb3b7d1.js} +1 -1
- package/dist/{calendar-icon.entry-cd4b0ec4.cjs → calendar-icon.entry-e13add9b.cjs} +1 -1
- package/dist/checkbox-component.entry-8341a8d6.cjs +1 -0
- package/dist/checkbox-component.entry-da122544.js +43 -0
- package/dist/{checkbox-group_4.entry-b2a5b2b2.js → checkbox-group_4.entry-04561314.js} +6 -6
- package/dist/{checkbox-group_4.entry-5a4f0ed2.cjs → checkbox-group_4.entry-8854d522.cjs} +2 -2
- package/dist/{checkmark-circle-icon.entry-30582af4.js → checkmark-circle-icon.entry-1f788efc.js} +1 -1
- package/dist/{checkmark-circle-icon.entry-9617301c.cjs → checkmark-circle-icon.entry-e637e20e.cjs} +1 -1
- package/dist/{checkmark-icon_15.entry-01536ed2.js → checkmark-icon_15.entry-146c1cb0.js} +63 -63
- package/dist/checkmark-icon_15.entry-a265f687.cjs +5 -0
- package/dist/{chevron-icon_3.entry-517447a6.js → chevron-icon_3.entry-637338b5.js} +2 -2
- package/dist/chevron-icon_3.entry-6c38b5e5.cjs +1 -0
- package/dist/{clock-icon_4.entry-5351318c.cjs → clock-icon_4.entry-aa4117dc.cjs} +1 -1
- package/dist/{clock-icon_4.entry-7ea1274d.js → clock-icon_4.entry-e69395a2.js} +1 -1
- package/dist/{customParseFormat-f0d21eb3-904f1e57.js → customParseFormat-8be9be1b-2464f2ba.js} +1 -1
- package/dist/{customParseFormat-f0d21eb3-769d6bf2.cjs → customParseFormat-8be9be1b-7ad95d87.cjs} +1 -1
- package/dist/{delete-icon.entry-02e44ba1.js → delete-icon.entry-8a956edd.js} +1 -1
- package/dist/{delete-icon.entry-64b61f5c.cjs → delete-icon.entry-af0cc45b.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-2f599a22.cjs → document-refresh-icon.entry-45931416.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-fcaa84ad.js → document-refresh-icon.entry-5f58f367.js} +1 -1
- package/dist/{feedbackSync-b9c9e719-bee3fea1.cjs → feedbackSync-3db3713c-701d2eb9.cjs} +1 -1
- package/dist/{feedbackSync-b9c9e719-b54b3268.js → feedbackSync-3db3713c-aadf336b.js} +1 -1
- package/dist/{folder-icon.entry-55c123dc.cjs → folder-icon.entry-cb80c172.cjs} +1 -1
- package/dist/{folder-icon.entry-f4862c1b.js → folder-icon.entry-e5d7a651.js} +1 -1
- package/dist/{forward-icon.entry-4a41e94f.js → forward-icon.entry-59be8165.js} +1 -1
- package/dist/{forward-icon.entry-82719382.cjs → forward-icon.entry-c792734b.cjs} +1 -1
- package/dist/globe-icon.entry-0fe4a4bb.js +16 -0
- package/dist/globe-icon.entry-9ecf0255.cjs +1 -0
- package/dist/google-logo-icon_6.entry-60924f34.cjs +2 -0
- package/dist/{google-logo-icon_6.entry-b331ab60.js → google-logo-icon_6.entry-799511df.js} +270 -263
- package/dist/{google-meet-icon_5.entry-e3d44d56.cjs → google-meet-icon_5.entry-3841313d.cjs} +1 -1
- package/dist/{google-meet-icon_5.entry-eb9f7d93.js → google-meet-icon_5.entry-e753ba28.js} +1 -1
- package/dist/{inbox-icon.entry-fa9085cd.cjs → inbox-icon.entry-2b450378.cjs} +1 -1
- package/dist/{inbox-icon.entry-a385095d.js → inbox-icon.entry-61132337.js} +1 -1
- package/dist/{index-ad781fbc.js → index-2084ffd9.js} +5430 -5185
- package/dist/index-e9dc7971.cjs +118 -0
- package/dist/{index.es-ccb2a286-dfa2bfbe.js → index.es-9e756df7-42d8a4cf.js} +1 -1
- package/dist/{index.es-ccb2a286-9a2c0934.cjs → index.es-9e756df7-fa75b01e.cjs} +1 -1
- package/dist/info-icon_2.entry-8d2750ce.js +35 -0
- package/dist/info-icon_2.entry-c547775c.cjs +1 -0
- package/dist/{input-component.entry-eae64f46.js → input-component.entry-2e134e2a.js} +8 -8
- package/dist/input-component.entry-b1086460.cjs +1 -0
- package/dist/{input-dropdown_2.entry-1b55ef0c.js → input-dropdown_2.entry-1a02e672.js} +2 -2
- package/dist/input-dropdown_2.entry-cb163dc3.cjs +1 -0
- package/dist/{italic-icon.entry-4266a817.js → italic-icon.entry-0ec2793b.js} +1 -1
- package/dist/{italic-icon.entry-843feb2b.cjs → italic-icon.entry-6a3a5464.cjs} +1 -1
- package/dist/lib/elements/index.d.ts +1 -0
- package/dist/lib/notetaker/lib/store.d.ts +1 -2
- package/dist/{multi-select-dropdown.entry-854265ef.js → multi-select-dropdown.entry-15e887be.js} +2 -2
- package/dist/multi-select-dropdown.entry-daccefd5.cjs +1 -0
- package/dist/nylas-booked-event-card_11.entry-3cdf8015.cjs +1 -0
- package/dist/{nylas-booked-event-card_11.entry-ccf30d91.js → nylas-booked-event-card_11.entry-98bcc904.js} +12 -12
- package/dist/nylas-date-component_2.entry-5d4f54fa.cjs +1 -0
- package/dist/nylas-date-component_2.entry-6a98a5bf.js +289 -0
- package/dist/nylas-form-card.entry-22851b77.cjs +1 -0
- package/dist/nylas-form-card.entry-a997084f.js +58 -0
- package/dist/nylas-notification_2.entry-320a5a65.js +85 -0
- package/dist/nylas-notification_2.entry-4638126b.cjs +1 -0
- package/dist/{nylas-scheduler-editor.entry-9744694a.cjs → nylas-scheduler-editor.entry-82e0f79e.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-aa079dff.js → nylas-scheduler-editor.entry-aa62c689.js} +6 -6
- package/dist/nylas-scheduling.entry-9cef581a.cjs +1 -0
- package/dist/{nylas-scheduling.entry-7441979c.js → nylas-scheduling.entry-aec79de5.js} +10 -9
- package/dist/{person-icon.entry-acf4d22b.cjs → person-icon.entry-01a6a976.cjs} +1 -1
- package/dist/{person-icon.entry-23a69633.js → person-icon.entry-23cbe5dd.js} +1 -1
- package/dist/{play-icon.entry-aa088180.cjs → play-icon.entry-33443687.cjs} +1 -1
- package/dist/{play-icon.entry-4e7884d4.js → play-icon.entry-4a529bd2.js} +1 -1
- package/dist/radio-button-group.entry-04b7ff59.js +47 -0
- package/dist/radio-button-group.entry-65155787.cjs +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +41 -40
- package/dist/{refresh-icon.entry-d1603555.js → refresh-icon.entry-61ced881.js} +1 -1
- package/dist/{refresh-icon.entry-96cb008f.cjs → refresh-icon.entry-e4ea4811.cjs} +1 -1
- package/dist/{register-component-9d4ceee5-46f58baf.js → register-component-8bbd6492-0d8737fd.js} +1 -1
- package/dist/{register-component-9d4ceee5-6fabc42c.cjs → register-component-8bbd6492-d9a23f3c.cjs} +1 -1
- package/dist/{reply-all-icon.entry-6fae7288.js → reply-all-icon.entry-83509aaf.js} +1 -1
- package/dist/{reply-all-icon.entry-537f7718.cjs → reply-all-icon.entry-c64d923b.cjs} +1 -1
- package/dist/{reply-icon.entry-ae114e35.js → reply-icon.entry-131ade31.js} +1 -1
- package/dist/{reply-icon.entry-72fa6e4c.cjs → reply-icon.entry-4edfbb70.cjs} +1 -1
- package/dist/{sent-icon.entry-b10d5e26.js → sent-icon.entry-72fd8f16.js} +1 -1
- package/dist/{sent-icon.entry-30a6ac17.cjs → sent-icon.entry-e4f6a3ef.cjs} +1 -1
- package/dist/{spam-icon.entry-bed45849.js → spam-icon.entry-7594c792.js} +1 -1
- package/dist/{spam-icon.entry-357aa525.cjs → spam-icon.entry-c531c188.cjs} +1 -1
- package/dist/{star-icon.entry-53c85ebb.cjs → star-icon.entry-a75255ff.cjs} +1 -1
- package/dist/{star-icon.entry-010349a5.js → star-icon.entry-adbe1bb3.js} +1 -1
- package/dist/{stop-icon.entry-20af3bf5.cjs → stop-icon.entry-079b28c6.cjs} +1 -1
- package/dist/{stop-icon.entry-18f650bf.js → stop-icon.entry-e95993f2.js} +1 -1
- package/dist/textarea-component.entry-920a81ac.cjs +1 -0
- package/dist/textarea-component.entry-f5d74fb8.js +39 -0
- package/dist/toggle-switch.entry-33273409.js +34 -0
- package/dist/toggle-switch.entry-ba6b4f33.cjs +1 -0
- package/dist/{translate-icon.entry-2308a8e4.js → translate-icon.entry-01cbe664.js} +1 -1
- package/dist/{translate-icon.entry-7cb7a479.cjs → translate-icon.entry-f33632d6.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-c70b9326.cjs → trash-fill-icon.entry-298eece8.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-7f410c82.js → trash-fill-icon.entry-b39ff771.js} +1 -1
- package/dist/{underline-icon.entry-23f478f3.cjs → underline-icon.entry-3704187c.cjs} +1 -1
- package/dist/{underline-icon.entry-58ef1a9f.js → underline-icon.entry-39179a2e.js} +1 -1
- package/package.json +3 -3
- package/dist/calendar-agenda-fill-icon_36.entry-75d7cd5b.cjs +0 -6
- package/dist/calendar-agenda-fill-icon_36.entry-78fc2e0d.js +0 -4708
- package/dist/checkbox-component_2.entry-82f4b1f2.js +0 -115
- package/dist/checkbox-component_2.entry-c9c8a87d.cjs +0 -1
- package/dist/checkmark-icon_15.entry-c5eaad9b.cjs +0 -5
- package/dist/chevron-icon_3.entry-26f14744.cjs +0 -1
- package/dist/globe-icon_2.entry-3f0e408e.cjs +0 -1
- package/dist/globe-icon_2.entry-8f5c79b2.js +0 -210
- package/dist/google-logo-icon_6.entry-9c91c3d4.cjs +0 -2
- package/dist/index-dc6efb5e.cjs +0 -118
- package/dist/info-icon_2.entry-9f32753b.cjs +0 -1
- package/dist/info-icon_2.entry-c18a111e.js +0 -35
- package/dist/input-component.entry-ff9e04c9.cjs +0 -1
- package/dist/input-dropdown_2.entry-67d6d292.cjs +0 -1
- package/dist/multi-select-dropdown.entry-ca9acf75.cjs +0 -1
- package/dist/nylas-booked-event-card_11.entry-8d3e2019.cjs +0 -1
- package/dist/nylas-form-card.entry-481ede48.js +0 -58
- package/dist/nylas-form-card.entry-58162c72.cjs +0 -1
- package/dist/nylas-notification_2.entry-7d3ed3b0.js +0 -85
- package/dist/nylas-notification_2.entry-dffa3ff6.cjs +0 -1
- package/dist/nylas-scheduling.entry-b1fcb48f.cjs +0 -1
- package/dist/radio-button-group.entry-243d7988.js +0 -47
- package/dist/radio-button-group.entry-cea225c8.cjs +0 -1
- package/dist/textarea-component.entry-b19642f1.cjs +0 -1
- package/dist/textarea-component.entry-e6120440.js +0 -39
- package/dist/toggle-switch.entry-32b0e964.js +0 -34
- package/dist/toggle-switch.entry-becdda2c.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-e9dc7971.cjs"),X=require("./abstract-provider-97cdbfea-5837e17f.cjs"),x=require("./feedbackSync-3db3713c-701d2eb9.cjs"),U=require("./index.es-9e756df7-fa75b01e.cjs"),A=require("./constants-f51538ef-cd2a67c4.cjs");require("react");require("react/jsx-runtime");require("react-dom");class Z{constructor(){this.component=e=>{const n=x.ErrorCategory.Component,o=`${e} Error`;return{endtime_not_in_future:(i='"endtime" can not be in the future')=>({title:o,message:i,category:n}),no_booking_info:(i="No booking info provided")=>({title:o,message:i,category:n}),no_timeslot_selected:(i="No timeslot selected")=>({title:o,message:i,category:n}),no_timezone_selected:(i="No timezone selected")=>({title:o,message:i,category:n}),no_booking_id:(i="No booking id provided")=>({title:o,message:i,category:n}),no_salt:(i="No salt provided")=>({title:o,message:i,category:n}),invalid_start_time:(i="Invalid start time")=>({title:o,message:i,category:n}),invalid_end_time:(i="Invalid end time")=>({title:o,message:i,category:n}),invalid_timezone:(i="Invalid timezone")=>({title:o,message:i,category:n}),no_config_id:(i="No configuration id provided")=>({title:o,message:i,category:n})}},this.api=e=>{const n=x.ErrorCategory.Api,o=`${e} Error`;return{invalid_session:i=>({title:o,message:i,category:n}),general_error:i=>({title:o,message:i,category:n}),internal_error:i=>({title:o,message:i,category:n}),invalid_request_error:i=>({title:o,message:i,category:n}),timeslot_not_available:i=>({title:o,message:i,category:n}),provider_error:i=>({title:o,message:i,category:n}),not_found_error:i=>({title:o,message:i,category:n})}}}}class K{constructor({schedulerAPIURL:e,schedulerStore:n,sessionId:o,configId:i,slug:a,clientId:r}){this.errors=new Z,this.schedulerStore=n,this.schedulerAPIURL=e,this.sessionId=o,this.configId=i,this.slug=a,this.clientId=r}getHeaders(){return this.sessionId?{Authorization:`Bearer ${this.sessionId}`}:{}}async makeAPIRequest(e,n,o,i={}){try{const a=new URL(this.schedulerAPIURL),r="2.0.4";return a.pathname=e,await(await fetch(decodeURIComponent(a.toString()),{method:n,headers:{"Content-Type":"application/json",Origin:window.location.origin,"X-Source":"nylas-scheduling","X-Nylas-Web-Elements-Version":r,...this.clientId&&{"X-Nylas-Application-Public-Id":this.clientId},...i},body:o})).json()}catch(a){return{error:{message:a.message,title:"API request failed",type:"api"}}}}getErrorMessage(e){var o,i,a,r;let n=(e==null?void 0:e.message)||(e==null?void 0:e.title)||"Something went wrong";return(e==null?void 0:e.type)==="provider_error"&&(n=((i=(o=e==null?void 0:e.provider_error)==null?void 0:o.error)==null?void 0:i.message)||((r=(a=e==null?void 0:e.provider_error)==null?void 0:a.error)==null?void 0:r.title)||"Something went wrong"),n}setConfigId(e){this.configId=e}selectDate(e){this.schedulerStore.set("selectedDate",e),this.schedulerStore.set("selectedTimeslot",null)}selectTime(e){this.schedulerStore.set("selectedTimeslot",e)}selectTimezone(e){this.schedulerStore.set("selectedTimezone",e)}selectLanguage(e){this.schedulerStore.set("selectedLanguage",e),t.instance.changeLanguage(e)}async toggleAdditionalData(e){e||await this.refetchAvailability(),this.schedulerStore.set("showBookingForm",e)}setParticipantName(e){const{bookingInfo:n}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...n,primaryParticipant:{...n==null?void 0:n.primaryParticipant,name:e}})}setParticipantEmail(e){const{bookingInfo:n}=this.schedulerStore.state;this.schedulerStore.set("bookingInfo",{...n,primaryParticipant:{...n==null?void 0:n.primaryParticipant,email:e}})}async refetchAvailability(){const e=new Date,n=new Date(e.getFullYear(),e.getMonth(),1).getTime()/1e3,o=n<e.getTime()/1e3?Math.floor(e.getTime()/1e3):n,i=new Date(e.getFullYear(),e.getMonth()+1,1).getTime()/1e3;return await this.getAvailability(o,i)}async resetStoreStateAndFetchAvailability(){const e=new Date,n=await this.refetchAvailability(),o=this.schedulerStore.get("availability").find(a=>new Date(a.start_time)>new Date);let i=e;return o&&(i=o.start_time),this.schedulerStore.set("selectedDate",i),this.schedulerStore.set("eventInfo",null),this.schedulerStore.set("showBookingForm",!1),this.schedulerStore.set("selectedTimeslot",null),n}async setReschedule(e){this.schedulerStore.set("isLoading",!0);const n=this.schedulerStore.state.eventInfo;return n&&this.schedulerStore.set("reschedulingEventInfo",n),this.schedulerStore.set("rescheduleBookingId",e),await this.getUISettings(),await this.resetStoreStateAndFetchAvailability().finally(()=>{this.schedulerStore.set("isLoading",!1)})}async setCancel(e){this.schedulerStore.set("cancelBookingId",e)}async setReject(e){this.schedulerStore.set("rejectBookingId",e)}async resetCancel(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("cancelBookingId",""),this.schedulerStore.set("rejectBookingId",""),this.schedulerStore.set("cancelledEventInfo",null),e}async goBack(){this.schedulerStore.set("cancelBookingId","")}async resetConfirm(){const e=await this.resetStoreStateAndFetchAvailability();return this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("confirmedEventInfo",void 0),e}async bookTimeslot(e){var E,I,B;this.schedulerStore.set("isLoading",!0);const{selectedTimeslot:n,selectedTimezone:o,bookingInfo:i,selectedLanguage:a}=this.schedulerStore.state;if(!e&&!i)return{error:this.errors.component(t.instance.t("createBookingErrorTitle")).no_booking_info()};const r=(e==null?void 0:e.timeslot)||n;if(!r)return{error:this.errors.component(t.instance.t("createBookingErrorTitle")).no_timeslot_selected()};const l=e&&(e!=null&&e.timezone)?e==null?void 0:e.timezone:o,d=a||"en-US";if(!l)return{error:this.errors.component(t.instance.t("createBookingErrorTitle")).no_timezone_selected()};const p=[...this.schedulerStore.get("availabilityOrderEmails")];let c="";const h=(r==null?void 0:r.emails)||[],u={};Object.entries((i==null?void 0:i.additionalFields)||{}).forEach(([_,L])=>{u[_]=L.value});const b=e?e==null?void 0:e.primaryParticipant:i==null?void 0:i.primaryParticipant,f=e?(e==null?void 0:e.guests)||[]:(i==null?void 0:i.guests)||[],y=e?e==null?void 0:e.additionalFields:u,m=this.getHeaders(),k=`/v3/scheduling/bookings${!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:""}`;if(p.length===0){const _=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({additional_fields:y,additional_guests:f,guest:{...b},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,event_id:(r==null?void 0:r.event_id)||void 0,master_id:(r==null?void 0:r.master_id)||void 0,calendar_id:(r==null?void 0:r.calendar_id)||void 0,email_language:this.getTwoLetterLanguageCode(d)}),m);return this.schedulerStore.set("isLoading",!1),"data"in _?(this.schedulerStore.set("eventInfo",_.data),_):{error:_.error}}for(;p.length>0;){if(c=p.shift(),!h.includes(c))continue;const _=await this.makeAPIRequest(decodeURIComponent(k),"POST",JSON.stringify({participants:c?[{email:c}]:void 0,additional_fields:y,additional_guests:f,guest:{...b},start_time:r.start_time.getTime()/1e3,end_time:r.end_time.getTime()/1e3,timezone:l,email_language:this.getTwoLetterLanguageCode(d)}),m);if("data"in _)return this.schedulerStore.set("isLoading",!1),this.schedulerStore.set("eventInfo",_==null?void 0:_.data),_;if((I=(E=_.error)==null?void 0:E.message)!=null&&I.startsWith("The selected timeslot is unavailable"))continue;{this.schedulerStore.set("isLoading",!1);const L=(B=_.error)==null?void 0:B.type;let F=_.error;if(L&&L in this.errors.api(t.instance.t("createBookingErrorTitle"))){const R=this.getErrorMessage(F);F=this.errors.api(t.instance.t("createBookingErrorTitle"))[L](R)}return{error:F}}}return this.schedulerStore.set("isLoading",!1),{error:this.errors.api(t.instance.t("createBookingErrorTitle")).timeslot_not_available("The selected timeslot is unavailable")}}async getUISettings(){var r;this.schedulerStore.set("isLoading",!0);const e=this.schedulerStore.get("rescheduleBookingId"),n=this.getHeaders();let o=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"";e&&o?o+=`&booking_id=${e}`:e&&(o+=`?booking_id=${e}`);const i=`/v3/scheduling/ui-settings${o}`,a=await this.makeAPIRequest(i,"GET",void 0,n);if("error"in a){this.schedulerStore.set("isLoading",!1);const l=(r=a.error)==null?void 0:r.type;let d=a.error;return l&&l in this.errors.api(t.instance.t("getUISettingErrorTitle"))&&(d=this.errors.api(t.instance.t("getUISettingErrorTitle"))[l]((d==null?void 0:d.message)||(d==null?void 0:d.title)||"Something went wrong")),{error:d}}return"data"in a&&(this.schedulerStore.set("configSettings",a.data),this.clientId=a.data.app_client_id||this.clientId),this.schedulerStore.set("isLoading",!1),a}getTwoLetterLanguageCode(e){return e.split("-")[0]}getStartTimeWithMinBookingNotice(e){var a;const n=(a=this.schedulerStore.get("configSettings"))==null?void 0:a.scheduler,o=n==null?void 0:n.min_booking_notice;if(!o)return e;const i=new Date().getTime();return e<(i+o*60*1e3)/1e3?Math.floor((i+o*60*1e3)/1e3):e}getEndTimeForAvailableDaysInFuture(e){var r,l;const n=new Date,o=(l=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.scheduler)==null?void 0:l.available_days_in_future,i=Math.floor(t.addDaysToCurrentDate(n,o).getTime()/1e3);return Math.min(i,e)}async getAvailability(e=0,n=0){var u,b,f,y;this.schedulerStore.set("isLoading",!0);const o=new URLSearchParams,i=new Date,a=i.getTime();if(n&&n<a/1e3)return this.schedulerStore.set("isLoading",!1),{error:this.errors.component(t.instance.t("getAvailabilityErrorTitle")).endtime_not_in_future()};if(!e){const m=new Date(i.getFullYear(),i.getMonth(),1);e=Math.floor(m.getTime()/1e3)}if(!n){const m=new Date(i.getFullYear(),i.getMonth()+1,0);n=Math.floor(m.getTime()/1e3)}n=this.getEndTimeForAvailableDaysInFuture(n);const r=this.getStartTimeWithMinBookingNotice(e);e=r,n=r>n?r+1:n,o.append("start_time",encodeURIComponent(e.toString())),o.append("end_time",encodeURIComponent(n.toString())),this.configId&&!this.sessionId?o.append("configuration_id",encodeURIComponent(this.configId)):this.slug&&this.clientId&&!this.sessionId&&(o.append("slug",encodeURIComponent(this.slug)),o.append("client_id",encodeURIComponent(this.clientId)));const l=this.schedulerStore.get("rescheduleBookingId");l&&o.append("booking_id",encodeURIComponent(l));const d=o.toString(),p=`/v3/scheduling/availability${d?`?${d}`:""}`,c=this.getHeaders(),h=await this.makeAPIRequest(decodeURIComponent(p),"GET",void 0,c);if("error"in h){this.schedulerStore.set("availability",[]),this.schedulerStore.set("isLoading",!1);const m=(u=h.error)==null?void 0:u.type;let v=h.error;if(m&&m in this.errors.api(t.instance.t("getAvailabilityErrorTitle"))){const k=this.getErrorMessage(v);v=this.errors.api(t.instance.t("getAvailabilityErrorTitle"))[m](k)}return{error:v}}if("data"in h){const k=(((f=(b=h.data)==null?void 0:b.time_slots)==null?void 0:f.map(I=>({...I,start_time:new Date(I.start_time*1e3),end_time:new Date(I.end_time*1e3)})))||[]).filter(I=>I.start_time.getTime()>a).sort((I,B)=>I.start_time.getTime()-B.start_time.getTime());this.schedulerStore.set("availability",k);const E=((y=h.data)==null?void 0:y.order)||[];this.schedulerStore.set("availabilityOrderEmails",E)}return this.schedulerStore.set("isLoading",!1),h}async cancelBooking(e,n){var l;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(t.instance.t("cancelBookingErrorTitle")).no_booking_id()};const o=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",i=`/v3/scheduling/bookings/${e}${o}`,a=this.getHeaders(),r=await this.makeAPIRequest(decodeURIComponent(i),"DELETE",JSON.stringify({action:"cancel",cancellation_reason:n}),a);if("error"in r){this.schedulerStore.set("isLoading",!1);const d=(l=r.error)==null?void 0:l.type;let p=r.error;if(d&&d in this.errors.api(t.instance.t("cancelBookingErrorTitle"))){const c=this.getErrorMessage(p);p=this.errors.api(t.instance.t("cancelBookingErrorTitle"))[d](c)}return{error:p}}return this.schedulerStore.set("cancelledEventInfo",{booking_id:e}),this.schedulerStore.set("rescheduleBookingId",""),this.schedulerStore.set("isLoading",!1),r}async rescheduleBooking(e,n){var P;if(this.schedulerStore.set("isLoading",!0),!e)return{error:this.errors.component(t.instance.t("rescheduleBookingErrorTitle")).no_booking_id()};const o=this.errors.api(t.instance.t("rescheduleBookingErrorTitle")),i=this.errors.component(t.instance.t("rescheduleBookingErrorTitle")),{bookingInfo:a,selectedTimeslot:r,selectedTimezone:l,selectedLanguage:d}=this.schedulerStore.state,{startTime:p,endTime:c,timezone:h}=n,u=p||(r==null?void 0:r.start_time);if(!u)return{error:i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const b=c||(r==null?void 0:r.end_time);if(!b)return{error:i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.')};const f=this.schedulerStore.get("availabilityOrderEmails");let y="";if(f.length>0){const S=(r==null?void 0:r.emails)||[];for(let w=0;w<f.length;w++)if(S.includes(f[w])){y=f[w];break}}const m=h||l;if(!m)return{error:i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.')};const v=(r==null?void 0:r.event_id)||void 0,k=(r==null?void 0:r.master_id)||void 0,E=(r==null?void 0:r.calendar_id)||void 0,I={};Object.entries((a==null?void 0:a.additionalFields)||{}).forEach(([S,w])=>{I[S]=w.value});const B=n?n==null?void 0:n.primaryParticipant:a==null?void 0:a.primaryParticipant,_=n?(n==null?void 0:n.guests)||[]:(a==null?void 0:a.guests)||[],L=n?n==null?void 0:n.additionalFields:I,F=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",R=`/v3/scheduling/bookings/${e}${F}`,M=this.getHeaders(),T=await this.makeAPIRequest(decodeURIComponent(R),"PATCH",JSON.stringify({start_time:u.getTime()/1e3,end_time:b.getTime()/1e3,timezone:m,additional_fields:L,guest:{...B},additional_guests:_,participants:y?[{email:y}]:void 0,email_language:this.getTwoLetterLanguageCode(d),event_id:v,master_id:k,calendar_id:E}),M);if("error"in T){this.schedulerStore.set("isLoading",!1);const S=(P=T.error)==null?void 0:P.type;let w=T.error;if(S&&S in o){const D=this.getErrorMessage(w);w=o[S](D)}return{error:w}}const g=this.schedulerStore.get("reschedulingEventInfo");if("data"in T)this.schedulerStore.set("eventInfo",T==null?void 0:T.data);else if(g)this.schedulerStore.set("eventInfo",g);else{const S={booking_id:e};this.schedulerStore.set("eventInfo",S)}return this.schedulerStore.set("isLoading",!1),T}async updateBooking(e){var h;this.schedulerStore.set("isLoading",!0);const{bookingId:n,status:o,reason:i}=e,a=this.schedulerStore.get("organizerConfirmationSalt"),r=o==="confirmed"?t.instance.t("confirmBookingErrorTitle"):t.instance.t("rejectBookingErrorTitle");if(!n)return{error:this.errors.component(r).no_booking_id()};if(!a)return{error:this.errors.component(r).no_salt()};const l=!this.sessionId&&this.configId?`?configuration_id=${this.configId}`:!this.sessionId&&this.slug&&this.clientId?`?slug=${this.slug}&client_id=${this.clientId}`:"",d=`/v3/scheduling/bookings/${n}${l}`,p=this.getHeaders(),c=await this.makeAPIRequest(decodeURIComponent(d),"PUT",JSON.stringify({status:o,cancellation_reason:i,salt:a}),p);if("error"in c){this.schedulerStore.set("isLoading",!1);const u=(h=c.error)==null?void 0:h.type;let b=c.error;if(u&&u in this.errors.api(r)){const f=this.getErrorMessage(b);b=this.errors.api(r)[u](f)}return{error:b}}return"data"in c&&o==="confirmed"?this.schedulerStore.set("confirmedEventInfo",c==null?void 0:c.data):"request_id"in c&&o==="cancelled"&&this.schedulerStore.set("cancelledEventInfo",{booking_id:n}),this.schedulerStore.set("organizerConfirmationBookingId",""),this.schedulerStore.set("isLoading",!1),c}async validateGroupEventTimeslot(e){var r,l;this.schedulerStore.set("isLoading",!0);const n=(r=this.schedulerStore.get("configSettings"))==null?void 0:r.configuration_id;if(!n)return{error:this.errors.component(t.instance.t("validateTimeslotErrorTitle")).no_config_id()};const o=this.getHeaders(),i=`/v3/scheduling/configurations/${n}/group-events/validate-timeslot`,a=await this.makeAPIRequest(decodeURIComponent(i),"POST",JSON.stringify({...e,start_time:e.start_time.getTime()/1e3,end_time:e.end_time.getTime()/1e3}),o);if("error"in a){this.schedulerStore.set("isLoading",!1);const d=(l=a.error)==null?void 0:l.type;let p=a.error;if(d&&d in this.errors.api(t.instance.t("validateTimeslotErrorTitle"))){const c=this.getErrorMessage(p);p=this.errors.api(t.instance.t("validateTimeslotErrorTitle"))[d](c)}return this.refetchAvailability(),{error:p}}return this.schedulerStore.set("selectedTimeslot",e),this.schedulerStore.set("showBookingForm",!0),this.schedulerStore.set("isLoading",!1),a}}class Q{constructor({schedulerAPIURL:e,nylasSchedulerStore:n,sessionId:o,configId:i,slug:a,clientId:r}){if(!e)throw new Error("schedulerAPIURL is required");if(!n)throw new Error("nylasSchedulerStore is required");if(!o&&!i&&!(a||r))throw new Error("sessionId is required for private configs. If using public config either pass a configurationId or a combination of slug and clientId.");e==="/"&&(e=new URL(window.location.href).origin),this.configId=i,this.sessionId=o,this.schedulerAPIURL=e,this.nylasSchedulerStore=n,this.slug=a,this.clientId=r}init(){t.debug("NylasConnector init")}get schedulerStore(){return this.nylasSchedulerStore}get scheduler(){return this._schedulerAPIConnector?this._schedulerAPIConnector:(this._schedulerAPIConnector=new K({schedulerAPIURL:this.schedulerAPIURL,schedulerStore:this.schedulerStore,sessionId:this.sessionId,configId:this.configId,slug:this.slug,clientId:this.clientId}),this._schedulerAPIConnector)}resetStores(){this.nylasSchedulerStore.reset()}}function V(s={}){const e={selectedDate:null,selectedLanguage:navigator.language,selectedTimezone:Intl.DateTimeFormat().resolvedOptions().timeZone,selectedTimeslot:null,showBookingForm:!1,availabilityOrderEmails:[],selectableDates:null,availability:[],eventDuration:0,state:"ready",eventInfo:null,cancelledEventInfo:null,isLoading:!1,nylasBranding:!0,...s};t.debug("[defaultNylasStoreState]: ",e);const n=t.createStore(e);return n.onChange("availability",o=>{t.debug("[availability]: ",o);const i=o.map(l=>l.start_time);t.debug("[selectableDates]: ",i),n.set("selectableDates",i);const a=o[0];if(!a)return;const r=Math.floor((a.end_time.getTime()-a.start_time.getTime())/6e4);t.debug("[durationMinutes]: ",r),n.set("eventDuration",r)}),n.reset=()=>{for(const o in e){const i=e[o];n.set(o,i)}},n}const O=(s,e)=>{const n=s.isLoading,o=s.showNotification,i=s.nylasBranding,a=s.version;return t.h(t.Fragment,null,o&&t.h("nylas-notification",null),n&&t.h("div",{class:"loading"},t.h("div",{class:"left"},t.h("div",{class:"skeleton"})),t.h("div",{class:"right"},t.h("div",{class:"skeleton"}),t.h("div",{class:"skeleton"}),t.h("div",{class:"skeleton"}),t.h("div",{class:"skeleton"}),t.h("div",{class:"skeleton"}))),!n&&e,t.h("div",{class:"footer"},i&&t.h("a",{href:"https://scheduler.nylas.com?utm_source=powered-by-nylas-logoutm_medium=link&utm_campaign=get-scheduler&utm_id=get-scheduler",class:"powered-by-nylas",target:"_blank",rel:"noreferrer noopener"},"Powered by ",t.h("span",{class:"sr-only"},"Nylas"),t.h("nylas-logo",{"aria-hidden":!0})),t.h("tooltip-component",null,t.h("info-icon",{slot:"tooltip-icon"}),t.h("span",{slot:"tooltip-content"},a))))},W=(s,e)=>t.h("div",{class:"message-banner"},e),ee=':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto;border-left:none}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer .powered-by-nylas{display:flex;align-items:center;text-decoration:none;color:var(--nylas-base-500)}.footer .powered-by-nylas:hover{color:var(--nylas-base-800)}.footer svg{fill:var(--nylas-base-500)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}.language-feedback-container{width:auto;position:absolute;bottom:4px;left:16px;display:flex;gap:8px;align-items:center}.language-feedback-container button-component#report-issue{position:initial}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}',te=ee,G={title:t.instance.t("genericErrorTitle"),type:U.nr.Error,category:x.ErrorCategory.Component},J=class{constructor(s){t.registerInstance(this,s),this.init=t.createEvent(this,"init",7),this.schedulerWillLoad=t.createEvent(this,"schedulerWillLoad",7),this.schedulerDidLoad=t.createEvent(this,"schedulerDidLoad",7),this.nylasSchedulerError=t.createEvent(this,"nylasSchedulerError",7),this.nylasSchedulerInfo=t.createEvent(this,"nylasSchedulerInfo",7),this.configSettingsLoaded=t.createEvent(this,"configSettingsLoaded",7),this.bookingRefExtracted=t.createEvent(this,"bookingRefExtracted",7),this.bookedEventInfo=t.createEvent(this,"bookedEventInfo",7),this.mode="app",this.defaultSchedulerState=void 0,this.sessionId=void 0,this.schedulerApiUrl="https://api.us.nylas.com",this.bookingInfo=void 0,this.rescheduleBookingRef=void 0,this.cancelBookingRef=void 0,this.organizerConfirmationBookingRef=void 0,this.configurationId=void 0,this.slug=void 0,this.clientId=void 0,this.nylasBranding=!0,this.eventOverrides={},this.isLoading=void 0,this.themeConfig=void 0,this.localization=void 0,this.defaultLanguage=void 0,this.showNotification=!0,this.enableUserFeedback=!0,this.hour12=void 0,this.automaticComponentRegistration=!0,this.selectedDateLabel=new Date().toLocaleDateString(navigator.language,{dateStyle:"full"})||`${t.instance.t("noDateSelected")}`,this.refConfigId=void 0,this.language=navigator.language,this.showFeedbackModal=!1,this.bookingInfoConfirmed=null,this.version="2.0.4"}connectedCallback(){t.debug("[nylas-scheduler] connectedCallback")}async componentWillLoad(){var l,d,p;t.debug("[nylas-scheduler] Component will load"),this.version="2.0.4",this.enableUserFeedback&&!x.isInitialized()&&x.init({dsn:"https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",release:this.version,integrations:c=>[...c.filter(h=>!1),x.feedbackSyncIntegration({colorScheme:"system",autoInject:!1})],autoSessionTracking:!1,beforeSend:()=>null});const s=this.schedulerWillLoad.emit(this.host);if("schedulerWillLoad"in this.eventOverrides&&(await this.eventOverrides.schedulerWillLoad(s,this.nylasSchedulerConnector),s.defaultPrevented))return;const n=new URLSearchParams(window.location.search).get("lang"),o=n&&Object.values(A.LANGUAGE_CODE).includes(n)?n:null;this.stores={scheduler:V({bookingInfo:this.bookingInfo,nylasBranding:this.nylasBranding,themeConfig:this.themeConfig,hour12:this.hour12,selectedLanguage:o||this.defaultLanguage||((l=this.bookingInfo)==null?void 0:l.language)||A.LANGUAGE_CODE.en,...this.defaultSchedulerState})},this.baseProvider=new X.NylasBaseProvider(this.host,this.stores,this.automaticComponentRegistration,this.eventOverrides),this.refConfigId=this.configurationId;let i;if(this.rescheduleBookingRef){const[c,h,u]=t.compactStringToUUIDs(this.rescheduleBookingRef);this.refConfigId=c,this.stores.scheduler.set("rescheduleBookingId",h),i=this.bookingRefExtracted.emit({configurationId:c,bookingId:h})}else if(this.cancelBookingRef){const[c,h,u]=t.compactStringToUUIDs(this.cancelBookingRef);this.refConfigId=c,this.stores.scheduler.set("cancelBookingId",h),i=this.bookingRefExtracted.emit({configurationId:c,bookingId:h})}else if(this.organizerConfirmationBookingRef){const[c,h,u]=t.compactStringToUUIDs(this.organizerConfirmationBookingRef);this.refConfigId=c,this.stores.scheduler.set("organizerConfirmationBookingId",h),this.stores.scheduler.set("organizerConfirmationSalt",u),i=this.bookingRefExtracted.emit({configurationId:c,bookingId:h,salt:u})}if("bookingRefExtracted"in this.eventOverrides&&(await this.eventOverrides.bookingRefExtracted(i,this.nylasSchedulerConnector),i.defaultPrevented)||!this.checkIfSessionIdOrConfigIdExists())return;const a=(d=this.baseProvider)==null?void 0:d.getStore("scheduler");this.nylasSchedulerConnector=new Q({schedulerAPIURL:this.schedulerApiUrl,sessionId:this.sessionId,configId:this.refConfigId,slug:this.slug,clientId:this.clientId,nylasSchedulerStore:a});const r=this.init.emit(this.host);"init"in this.eventOverrides&&(await this.eventOverrides.init(r,this.nylasSchedulerConnector),r.defaultPrevented)||((p=this.baseProvider)==null||p.componentWillLoad(this.nylasSchedulerConnector),this.applyThemeConfig(this.themeConfig))}async componentDidLoad(){var d,p,c,h,u,b,f,y;(d=this.baseProvider)==null||d.componentDidLoad();const s=this.schedulerDidLoad.emit(this.host);if("schedulerDidLoad"in this.eventOverrides&&(await this.eventOverrides.schedulerDidLoad(s,this.nylasSchedulerConnector),s.defaultPrevented)||!this.checkIfSessionIdOrConfigIdExists())return;this.localizationChanged(this.localization);const e=await((p=this.nylasSchedulerConnector)==null?void 0:p.scheduler.getUISettings());if(!e||"error"in e){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(e==null?void 0:e.error)},host:this.host});return}else{"data"in e&&((c=e.data)!=null&&c.appearance)&&console.info("Appearance settings have been returned from the configuration used byt his scheduling page; please remember to grab them from the configSettingsLoaded event and apply them as desired.");const m=this.configSettingsLoaded.emit({settings:e});if("configSettingsLoaded"in this.eventOverrides&&(await this.eventOverrides.configSettingsLoaded(m,this.nylasSchedulerConnector),m.defaultPrevented))return}const n=(h=this.baseProvider)==null?void 0:h.getStore("scheduler"),o=(b=(u=n==null?void 0:n.get("configSettings"))==null?void 0:u.scheduler)==null?void 0:b.available_days_in_future,i=n==null?void 0:n.get("selectedTimeslot");if(i&&(i!=null&&i.start_time)){if(!this.isTimeslotValid(i))return;if(n!=null&&n.get("showBookingForm")){n==null||n.set("selectedDate",i.start_time);return}}const a=n==null?void 0:n.get("selectedDate"),r=n==null?void 0:n.get("availability");let l;if(!(r&&r.length>0)){if(a){const{startTime:m,endTime:v,endTimeForAvailableDaysInFuture:k}=this.validateAvailableDaysInFuture(a,o||30);a.getTime()<k*1e3&&(l=await((y=this.nylasSchedulerConnector)==null?void 0:y.scheduler.getAvailability(m,v)))}else{const m=new Date,{startTime:v,endTime:k,endTimeForAvailableDaysInFuture:E}=this.validateAvailableDaysInFuture(m,o||30);m.getTime()<E*1e3&&(l=await((f=this.nylasSchedulerConnector)==null?void 0:f.scheduler.getAvailability(v,k)))}if((!l||"error"in l)&&this.nylasSchedulerError.emit({notification:{...this.getErrorObject(l==null?void 0:l.error)},host:this.host}),!a){let m=new Date;const v=n==null?void 0:n.get("availability").find(k=>new Date(k.start_time)>new Date);v&&(m=v.start_time),n==null||n.set("selectedDate",m)}}}componentDisconnected(){var s;(s=this.baseProvider)==null||s.componentDisconnected()}bookingInfoChanged(s){var e,n;(e=this.stores)==null||e.scheduler.set("bookingInfo",s),s!=null&&s.language&&!this.defaultLanguage&&((n=this.stores)==null||n.scheduler.set("selectedLanguage",s.language))}rescheduleBookingRefChanged(s){var e,n;if(s){const[o,i]=t.compactStringToUUIDs(s);(e=this.stores)==null||e.scheduler.set("rescheduleBookingId",i),this.refConfigId=o,(n=this.nylasSchedulerConnector)==null||n.scheduler.setConfigId(o)}}cancelBookingRefChanged(s){var e,n;if(s){const[o,i]=t.compactStringToUUIDs(s);(e=this.stores)==null||e.scheduler.set("cancelBookingId",i),this.refConfigId=o,(n=this.nylasSchedulerConnector)==null||n.scheduler.setConfigId(o)}}organizerConfirmationBookingRefChanged(s){var e,n;if(s){const[o,i]=t.compactStringToUUIDs(s);(e=this.stores)==null||e.scheduler.set("organizerConfirmationBookingId",i),this.refConfigId=o,(n=this.nylasSchedulerConnector)==null||n.scheduler.setConfigId(o)}}localizationChanged(s){s&&Object.keys(s).forEach(e=>{e in A.LANGUAGE_CODE&&t.instance.addResourceBundle(e,"translation",s[e],!1,!0)})}defaultLanguageChanged(s){var e;s&&((e=this.stores)==null||e.scheduler.set("selectedLanguage",s),t.instance.changeLanguage(s))}themeConfigChanged(s){var e,n;(n=(e=this.baseProvider)==null?void 0:e.getStore("scheduler"))==null||n.set("themeConfig",s),this.applyThemeConfig(s)}languageChanged(s){const e=s.detail;this.language=e,t.instance.changeLanguage(e)}async registerComponentHandler(s){var e;(e=this.baseProvider)==null||e.registerComponent(s.detail)}async unregisterComponentHandler(s){var e;(e=this.baseProvider)==null||e.unregisterComponent(s.detail)}async monthChangedHandler(s){var r,l,d,p,c,h,u;const e=s.detail,n=(p=(d=(l=(r=this.nylasSchedulerConnector)==null?void 0:r.schedulerStore)==null?void 0:l.get("configSettings"))==null?void 0:d.scheduler)==null?void 0:p.available_days_in_future,{startTime:o,endTime:i,endTimeForAvailableDaysInFuture:a}=this.validateAvailableDaysInFuture(e,n||30);if(!s.defaultPrevented&&o<a&&e.getTime()<a*1e3){const b=await((c=this.nylasSchedulerConnector)==null?void 0:c.scheduler.getAvailability(o,i));(!b||"error"in b)&&this.nylasSchedulerError.emit({notification:{...this.getErrorObject(b==null?void 0:b.error)},host:this.host});const f=(h=this.stores)==null?void 0:h.scheduler.get("selectableDates");f&&f.length>0&&((u=this.stores)==null||u.scheduler.set("selectedDate",f[0]))}}mapToBookingData(s){var r,l,d;const e=(r=this.stores)==null?void 0:r.scheduler.get("selectedTimeslot"),n=(l=this.stores)==null?void 0:l.scheduler.get("selectedLanguage"),o=(d=this.stores)==null?void 0:d.scheduler.get("selectedTimezone"),i=e!=null&&e.start_time?new Date(e==null?void 0:e.start_time).getTime()/1e3:"",a=e!=null&&e.end_time?new Date(e==null?void 0:e.end_time).getTime()/1e3:"";return{additional_guests:s.guests,guest:{...s.primaryParticipant},additional_fields:{...s.additionalFields},start_time:i,end_time:a,email_language:n,timezone:o}}async bookButtonClickedHandler(s){var d,p,c,h;if(s.defaultPrevented)return;const e=s.detail,n=this.mapToBookingData(e);this.bookingInfoConfirmed=e;const i=(p=(d=this.nylasSchedulerConnector)==null?void 0:d.schedulerStore)==null?void 0:p.get("rescheduleBookingId");if(i){const u=await((c=this.nylasSchedulerConnector)==null?void 0:c.scheduler.rescheduleBooking(i,e));(!u||"error"in u)&&this.nylasSchedulerError.emit({notification:{...this.getErrorObject(u==null?void 0:u.error)},host:this.host});const b=u==null?void 0:u.data,f=this.bookedEventInfo.emit({...u,data:{...b,...n}});this.bookingInfoConfirmed={...this.bookingInfoConfirmed,...b},"bookedEventInfo"in this.eventOverrides&&await this.eventOverrides.bookedEventInfo(f,this.nylasSchedulerConnector);return}const a=await((h=this.nylasSchedulerConnector)==null?void 0:h.scheduler.bookTimeslot(e));(!a||"error"in a)&&this.nylasSchedulerError.emit({notification:{...this.getErrorObject(a==null?void 0:a.error)},host:this.host});const r=a==null?void 0:a.data,l=this.bookedEventInfo.emit({...a,data:{...r,...n}});this.bookingInfoConfirmed={...this.bookingInfoConfirmed,...r},"bookedEventInfo"in this.eventOverrides&&await this.eventOverrides.bookedEventInfo(l,this.nylasSchedulerConnector)}dateSelectedHandler(s){const e=s.detail;this.selectedDateLabel=e?e.toLocaleDateString(this.language,{dateStyle:"full"}):`${t.instance.t("noDateSelected")}`}cancelBookedEventErrorHandler(s){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(s.detail.error)},host:this.host})}cancelBookedEventValidationErrorHandler(s){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(s.detail.error)},host:this.host})}rescheduleBookedEventErrorHandler(s){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(s.detail.error)},host:this.host})}confirmBookingErrorHandler(s){this.nylasSchedulerError.emit({notification:{...this.getErrorObject(s.detail.error)},host:this.host})}feedbackModalClosedHandler(){this.showFeedbackModal=!1}eventIsFullHandler(s){const e=s.detail.error;s.detail.type==="error"?this.nylasSchedulerError.emit({notification:{...this.getErrorObject({message:e})},host:this.host}):this.nylasSchedulerInfo.emit({notification:{title:"Event is full",category:x.ErrorCategory.Component,type:U.nr.Info,description:"The event you selected is full. Please try a different time.",id:new Date().getTime().toString(),ttl:3e3},host:this.host})}feedbackSubmittedHandler(s){const n={eventId:x.captureMessage("Scheduling Page User Feedback",{extra:{configId:this.configurationId,slug:this.slug}}),message:s.detail.feedback};x.captureFeedback(n,{includeReplay:!0,captureContext:{tags:{"nylas-web-element":"nylas-scheduling","nylas-web-element-version":this.version,"nylas-config-id":this.configurationId,"nylas-slug":this.slug,"host-url":window.location.href},extra:{configId:this.configurationId,slug:this.slug,version:this.version}}}),this.showFeedbackModal=!1}async getNylasSchedulerStore(){var s;return(s=this.baseProvider)==null?void 0:s.getStore("scheduler")}async getNylasSchedulerConnector(){return this.nylasSchedulerConnector}async getRef(){return this.host}getErrorObject(s){return{title:(s==null?void 0:s.title)||G.title,category:(s==null?void 0:s.category)||G.category,type:U.nr.Error,description:(s==null?void 0:s.message)||"",id:new Date().getTime().toString(),ttl:"none"}}checkIfSessionIdOrConfigIdExists(){if(!this.sessionId&&!this.refConfigId&&!(this.slug&&this.clientId)){let s="";return this.sessionId||(s+=t.instance.t("sessionIdRequiredErrorMessage")),!this.sessionId&&!this.refConfigId&&!(this.slug&&this.clientId)&&(s=t.instance.t("sessionIdRequiredErrorMessage")+" "+t.instance.t("publicConfigErrorMessage")),this.nylasSchedulerError.emit({notification:{title:t.instance.t("schedulingComponentErrorTitle"),category:x.ErrorCategory.Component,type:U.nr.Error,description:s,id:new Date().getTime().toString(),ttl:"none"},host:this.host}),!1}return!0}isTimeslotValid(s){return new Date(s.start_time)<new Date?(this.nylasSchedulerError.emit({notification:{title:t.instance.t("invalidTimeslotErrorTitle"),category:x.ErrorCategory.Component,type:U.nr.Error,description:t.instance.t("invalidTimeslotErrorMessage"),id:new Date().getTime().toString(),ttl:"none"},host:this.host}),!1):!0}validateAvailableDaysInFuture(s,e){const n=new Date,o=new Date(s.getFullYear(),s.getMonth(),1).getTime()/1e3,i=new Date(s.getFullYear(),s.getMonth()+1,1).getTime()/1e3,a=Math.floor(t.addDaysToCurrentDate(n,e).getTime()/1e3),r=Math.min(a,i);return{startTime:o<n.getTime()/1e3?Math.floor(n.getTime()/1e3):o,endTime:r,endTimeForAvailableDaysInFuture:a}}applyThemeConfig(s){if(s)for(const[e,n]of Object.entries(s))this.host.style.setProperty(`${e}`,n)}onFeedbackClick(s){s.preventDefault(),this.showFeedbackModal=!0}redirectToCustomUrl(s){window.location.assign(s)}nylasFormDropdownChangedHandler(s){var o,i;const{name:e,value:n}=s.detail;if(e==="language"){const a=A.LANGUAGE_CODE[n];t.instance.changeLanguage(a),(i=(o=this.stores)==null?void 0:o.scheduler)==null||i.set("selectedLanguage",a)}}render(){var m,v,k,E,I,B,_,L,F,R,M,T;const s=this.mode==="app",e=(m=this.baseProvider)==null?void 0:m.getStore("scheduler"),n=e==null?void 0:e.get("eventInfo"),o=e==null?void 0:e.get("showBookingForm"),i=e==null?void 0:e.get("cancelledEventInfo"),a=e==null?void 0:e.get("cancelBookingId"),r=e==null?void 0:e.get("selectedTimeslot"),l=e==null?void 0:e.get("rescheduleBookingId"),d=e==null?void 0:e.get("organizerConfirmationBookingId"),p=e==null?void 0:e.get("rejectBookingId"),c=e==null?void 0:e.get("confirmedEventInfo"),h=(e==null?void 0:e.get("nylasBranding"))||this.nylasBranding,u=e==null?void 0:e.get("selectedDate"),b=(k=(v=e==null?void 0:e.get("configSettings"))==null?void 0:v.scheduler)==null?void 0:k.confirmation_redirect_url;this.selectedDateLabel=u&&this.language?t.capitalizeFirstLetter(u.toLocaleDateString(this.language,{dateStyle:"full"})):`${t.instance.t("noDateSelected")}`;const f=Object.keys(A.LANGUAGE_MAP).map(g=>({label:A.LANGUAGE_MAP[g],value:g})),y=(e==null?void 0:e.get("selectedLanguage"))||this.defaultLanguage||navigator.language||A.LANGUAGE_CODE.en;if(s&&(a||p)&&!i)return t.h(t.Host,null,t.h(O,{version:this.version,nylasBranding:h,isLoading:this.isLoading,showNotification:this.showNotification},t.h("div",{class:"cancel-flow-page",part:"cancel-flow-page"},t.h("nylas-cancel-booking-form",{selectedTimeslot:r,cancelBookingId:a,rejectBookingId:p,exportparts:"ncbf, ncbf__icon, ncbf__title, ncbf__description, ncbf__reason-textarea, ncbf__button-cta, ncbf__button-outline, ncbf__card"}))),t.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&t.h("button-component",{id:"report-issue",variant:"basic",onClick:g=>this.onFeedbackClick(g)},t.h("feedback-icon",null)),t.h("select-dropdown",{name:"language",searchPlaceholder:t.instance.t("search"),options:f,withChevron:!1,defaultSelectedOption:f.find(g=>g.value==y),exportparts:"sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label"},t.h("span",{slot:"select-icon"},t.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&t.h("nylas-feedback-form",null));if(s&&d)return t.h(t.Host,null,t.h(O,null,t.h("div",{class:"manual-confirmation-page",part:"manual-confirmation-page"},t.h("nylas-organizer-confirmation-card",{organizerConfirmationBookingId:d,exportparts:"nmcc, nmcc__title, nmcc__description, nmcc__button-cta, nmcc__button-outline"}))),t.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&t.h("button-component",{id:"report-issue",variant:"basic",onClick:g=>this.onFeedbackClick(g)},t.h("feedback-icon",null)),t.h("select-dropdown",{name:"language",searchPlaceholder:t.instance.t("search"),options:f,withChevron:!1,defaultSelectedOption:f.find(g=>g.value==y),exportparts:"sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label"},t.h("span",{slot:"select-icon"},t.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&t.h("nylas-feedback-form",null));if(s&&i)return t.h(t.Host,null,t.h(O,{version:this.version,nylasBranding:h,isLoading:this.isLoading,showNotification:this.showNotification},t.h("div",{class:"cancelled-event-page",part:"cancelled-event-page"},t.h("nylas-cancelled-event-card",{cancelledEventInfo:i,exportparts:"ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card"}))),t.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&t.h("button-component",{id:"report-issue",variant:"basic",onClick:g=>this.onFeedbackClick(g)},t.h("feedback-icon",null)),t.h("select-dropdown",{name:"language",searchPlaceholder:t.instance.t("search"),options:f,withChevron:!1,defaultSelectedOption:f.find(g=>g.value==y),exportparts:"sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label"},t.h("span",{slot:"select-icon"},t.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&t.h("nylas-feedback-form",null));if(s&&c)return t.h(t.Host,null,t.h(O,{version:this.version,nylasBranding:h,isLoading:this.isLoading,showNotification:this.showNotification},t.h("div",{class:"cancelled-event-page",part:"confirmed-event-page"},t.h("nylas-confirmed-event-card",{confirmedEventInfo:c,exportparts:"ncec, ncec__icon, ncec__title, ncec__description, ncec__button-outline, ncec__card"}))),t.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&t.h("button-component",{id:"report-issue",variant:"basic",onClick:g=>this.onFeedbackClick(g)},t.h("feedback-icon",null)),t.h("select-dropdown",{name:"language",searchPlaceholder:t.instance.t("search"),options:f,withChevron:!1,defaultSelectedOption:f.find(g=>g.value==y),exportparts:"sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label"},t.h("span",{slot:"select-icon"},t.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&t.h("nylas-feedback-form",null));if(s&&n&&b){const g=(E=this.bookingInfoConfirmed)==null?void 0:E.primaryParticipant,P=(I=this.bookingInfoConfirmed)==null?void 0:I.location,S=(B=this.bookingInfoConfirmed)==null?void 0:B.booking_ref,w=((_=this.bookingInfoConfirmed)==null?void 0:_.additionalFields)||{};if(this.bookingInfo&&typeof((L=this.bookingInfo)==null?void 0:L.additionalFields)<"u"){const z=this.bookingInfo.additionalFields;Object.keys(z).forEach(N=>{!w[N]&&(z!=null&&z[N])&&(w[N]=z[N].value)})}const D=(F=this.stores)==null?void 0:F.scheduler.get("selectedTimeslot"),j=(R=this.stores)==null?void 0:R.scheduler.get("selectedTimezone"),H=(M=this.stores)==null?void 0:M.scheduler.get("selectedLanguage"),$=(T=this.stores)==null?void 0:T.scheduler.get("configSettings"),q=this.configurationId?this.configurationId:$==null?void 0:$.configuration_id,Y=window.location.search,C=new URLSearchParams(Y);C.set("booking_id",n.booking_id),g!=null&&g.name&&C.set("name",g.name),g!=null&&g.email&&C.set("email",g.email),D!=null&&D.start_time&&C.set("start_time",(new Date(D.start_time).getTime()/1e3).toString()),D!=null&&D.end_time&&C.set("end_time",(new Date(D.end_time).getTime()/1e3).toString()),j&&C.set("tz",j),H&&C.set("language",H),w&&C.set("additional_values",JSON.stringify(w)),this.slug&&C.set("page_slug",this.slug),q&&C.set("config_id",q),P&&C.set("location",P),S&&C.set("booking_ref",S),this.redirectToCustomUrl(`${b}?${C.toString()}`);return}if(s&&n)return t.h(t.Host,null,t.h(O,{version:this.version,nylasBranding:h,isLoading:this.isLoading,showNotification:this.showNotification},t.h("div",{class:"booked-event-page",part:"booked-event-page ns_booked-event-page"},t.h("nylas-booked-event-card",{selectedTimeslot:r,eventInfo:n,exportparts:"nbec, nbec__title, nbec__card, nbec__description, nbec__button-outline, nbec__cancel-cta, nbec__reschedule-cta"}))),t.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&t.h("button-component",{id:"report-issue",variant:"basic",onClick:g=>this.onFeedbackClick(g)},t.h("feedback-icon",null)),t.h("select-dropdown",{name:"language",searchPlaceholder:t.instance.t("search"),options:f,withChevron:!1,defaultSelectedOption:f.find(g=>g.value==y),exportparts:"sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label"},t.h("span",{slot:"select-icon"},t.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&t.h("nylas-feedback-form",null));if(s&&(!n||l)&&!o){const g=this.host.querySelector('[slot="timeslot-picker-cta-label"]');return t.h(t.Host,null,t.h(O,{version:this.version,nylasBranding:h,isLoading:this.isLoading,showNotification:this.showNotification},l&&t.h(W,null,`${t.instance.t("rescheduleTitle")}`),t.h("div",{class:"select-date-page",part:"select-date-page ns_select-date-page"},t.h("div",{class:"left-panel",part:"ns_left-panel"},t.h("nylas-date-picker",{exportparts:"ndp, ndp__title, ndp__month-header, ndp__month-button, ndp__day, ndp__date, ndp__date--disabled, ndp__date--selected, ndp__date--current-day, ndp__date--current-month"}),t.h("nylas-locale-switch",{exportparts:"nls, nls__timezone, nls__timezone-dropdown, nls__timezone-drop-button, nls__timezone-drop-button-selected-label, nls__timezone-drop-content, nls__timezone-drop-label, nls__language, nls__language-dropdown, nls__language-drop-button, nls__language-drop-content, nls__language-drop-label"})),t.h("div",{class:`right-panel ${l?"reschedule":""}`,part:`ns_right-panel ${l?"ns_reschedule":""}`},t.h("h2",{part:"ns_right-panel__title"},t.h("calendar-icon",{part:"ns_right-panel__calendar-icon"}),t.h("span",{id:"selectedDate",part:"ns_right-panel__selected-date"},this.selectedDateLabel)),t.h("nylas-timeslot-picker",{exportparts:"ntp, ntp__time-picker-wrapper, ntp__timeslots, ntp__timeslot, ntp__timeslot--selected, ntp__button-primary"},g&&t.h("span",{slot:"timeslot-picker-cta-label"},t.h("slot",{name:"timeslot-picker-cta-label"})))))),this.enableUserFeedback&&t.h("button-component",{id:"report-issue",variant:"basic",onClick:P=>this.onFeedbackClick(P)},t.h("feedback-icon",null)),this.showFeedbackModal&&t.h("nylas-feedback-form",null))}return s&&!n&&o?t.h(t.Host,null,t.h(O,{version:this.version,nylasBranding:h,isLoading:this.isLoading,showNotification:this.showNotification},l&&t.h(W,null,`${t.instance.t("rescheduleTitle")}`),t.h("div",{class:"additional-data-page",part:"additional-data-page ns_additional-data-page"},t.h("div",{class:"left-panel ns_left-panel",part:"ns_left-panel"},t.h("div",{class:"wrapper",part:"ns_left-panel__wrapper"},t.h("nylas-selected-event-card",{exportparts:"nsec, nsec__card, nsec__icon, nsec__date, nsec__time, nsec__timezone"}))),t.h("div",{class:`right-panel ${l?"reschedule":""}`,part:`ns_right-panel ${l?"ns_reschedule":""}`},t.h("nylas-booking-form",{exportparts:"nbf, nbf__input-textfield, nbf__button-ghost, nbf__button-outline, nbf__button-primary, nbf__input-wrapper, nbf__checkbox-component, nbf__radio-button-group, nbf__textarea-component, nbf__dropdown, nbf__dropdown-button, nbf__dropdown-content"})))),t.h("div",{class:"language-feedback-container"},this.enableUserFeedback&&t.h("button-component",{id:"report-issue",variant:"basic",onClick:g=>this.onFeedbackClick(g)},t.h("feedback-icon",null)),t.h("select-dropdown",{name:"language",searchPlaceholder:t.instance.t("search"),options:f,withChevron:!1,defaultSelectedOption:f.find(g=>g.value==y),exportparts:"sd_dropdown: nse__language-dropdown, sd_dropdown-button: nse__language-drop-button, sd_dropdown-content: nse__language-drop-content, sd_dropdown_label: nse__language-drop-label"},t.h("span",{slot:"select-icon"},t.h("translate-icon",{width:"20",height:"20"})))),this.showFeedbackModal&&t.h("nylas-feedback-form",null)):t.h(t.Host,null,t.h("slot",null))}get host(){return t.getElement(this)}static get watchers(){return{bookingInfo:["bookingInfoChanged"],rescheduleBookingRef:["rescheduleBookingRefChanged"],cancelBookingRef:["cancelBookingRefChanged"],organizerConfirmationBookingRef:["organizerConfirmationBookingRefChanged"],localization:["localizationChanged"],defaultLanguage:["defaultLanguageChanged"],themeConfig:["themeConfigChanged"]}}};J.style=te;exports.nylas_scheduling=J;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as h, r as te, a as P, b as A, k as U, l as V, m as ne, h as s, H as R, g as ie, e as se, F as oe } from "./index-
|
|
2
|
-
import { N as re } from "./abstract-provider-
|
|
3
|
-
import { E as N, i as ae, a as le, f as de, c as ce, b as he } from "./feedbackSync-
|
|
4
|
-
import { n as H } from "./index.es-
|
|
1
|
+
import { i as h, r as te, a as P, b as A, k as U, l as V, m as ne, h as s, H as R, g as ie, e as se, F as oe } from "./index-2084ffd9.js";
|
|
2
|
+
import { N as re } from "./abstract-provider-97cdbfea-6b0e3547.js";
|
|
3
|
+
import { E as N, i as ae, a as le, f as de, c as ce, b as he } from "./feedbackSync-3db3713c-aadf336b.js";
|
|
4
|
+
import { n as H } from "./index.es-9e756df7-42d8a4cf.js";
|
|
5
5
|
import { L as j, a as Z } from "./constants-f51538ef-e0a5f026.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react/jsx-runtime";
|
|
@@ -115,7 +115,7 @@ class ue {
|
|
|
115
115
|
}
|
|
116
116
|
async makeAPIRequest(e, t, o, n = {}) {
|
|
117
117
|
try {
|
|
118
|
-
const a = new URL(this.schedulerAPIURL), r = "2.0.
|
|
118
|
+
const a = new URL(this.schedulerAPIURL), r = "2.0.4";
|
|
119
119
|
return a.pathname = e, await (await fetch(decodeURIComponent(a.toString()), {
|
|
120
120
|
method: t,
|
|
121
121
|
headers: {
|
|
@@ -123,6 +123,7 @@ class ue {
|
|
|
123
123
|
Origin: window.location.origin,
|
|
124
124
|
"X-Source": "nylas-scheduling",
|
|
125
125
|
"X-Nylas-Web-Elements-Version": r,
|
|
126
|
+
...this.clientId && { "X-Nylas-Application-Public-Id": this.clientId },
|
|
126
127
|
...n
|
|
127
128
|
},
|
|
128
129
|
body: o
|
|
@@ -292,7 +293,7 @@ class ue {
|
|
|
292
293
|
let d = a.error;
|
|
293
294
|
return l && l in this.errors.api(h.t("getUISettingErrorTitle")) && (d = this.errors.api(h.t("getUISettingErrorTitle"))[l]((d == null ? void 0 : d.message) || (d == null ? void 0 : d.title) || "Something went wrong")), { error: d };
|
|
294
295
|
}
|
|
295
|
-
return "data" in a && this.schedulerStore.set("configSettings", a.data), this.schedulerStore.set("isLoading", !1), a;
|
|
296
|
+
return "data" in a && (this.schedulerStore.set("configSettings", a.data), this.clientId = a.data.app_client_id || this.clientId), this.schedulerStore.set("isLoading", !1), a;
|
|
296
297
|
}
|
|
297
298
|
getTwoLetterLanguageCode(e) {
|
|
298
299
|
return e.split("-")[0];
|
|
@@ -597,16 +598,16 @@ const z = (i, e) => {
|
|
|
597
598
|
)
|
|
598
599
|
)
|
|
599
600
|
);
|
|
600
|
-
}, K = (i, e) => s("div", { class: "message-banner" }, e), me = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto;border-left:none}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer .powered-by-nylas{display:flex;align-items:center;text-decoration:none;color:var(--nylas-base-500)}.footer .powered-by-nylas:hover{color:var(--nylas-base-800)}.footer svg{fill:var(--nylas-base-500)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}.language-feedback-container{width:auto;position:absolute;bottom:4px;left:16px;display:flex;gap:8px;align-items:center}.language-feedback-container button-component#report-issue{position:initial}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', be = me, Q = { title: h.t("genericErrorTitle"), type: H.Error, category: N.Component }, _e = class {
|
|
601
|
+
}, K = (i, e) => s("div", { class: "message-banner" }, e), me = ':host{display:flex;flex-direction:column;overflow:visible;border-radius:var(--nylas-border-radius-2x);width:fit-content;background:var(--nylas-base-0);position:relative;box-shadow:0px 4px 8px 2px rgba(0, 0, 0, 0.05), 0px 8px 16px -2px rgba(0, 0, 0, 0.1);--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;font-family:var(--nylas-font-family);font-optical-sizing:auto;font-style:normal;font-variation-settings:"slnt" 0}@media screen and (max-width: 768px){:host{width:auto;min-width:325px}}:root{font-family:inherit}.error{padding:8rem 12rem;color:var(--nylas-base-0);background-color:var(--nylas-error);margin:1.5rem;border-radius:var(--nylas-border-radius-2x)}.message-banner{text-align:right;color:var(--nylas-base-800);padding:1rem;border-bottom:1px solid var(--nylas-color-primary-200);margin:0}.loading{margin:1.5rem;display:flex;gap:1rem}.loading .skeleton{border-radius:var(--nylas-border-radius-2x);animation:pulsate 1.5s infinite}.loading .skeleton:nth-child(2){animation-delay:-100ms}.loading .skeleton:nth-child(3){animation-delay:-200ms}.loading .skeleton:nth-child(4){animation-delay:-300ms}.loading .skeleton:nth-child(5){animation-delay:-400ms}.loading .left .skeleton{height:100%;width:400px}.loading .right .skeleton{height:5rem;width:300px;margin-bottom:1rem}.loading .right .skeleton:last-child{margin-bottom:0}@keyframes pulsate{0%{background-color:var(--nylas-base-50)}50%{background-color:var(--nylas-base-100)}100%{background-color:var(--nylas-base-50)}}.select-date-page,.additional-data-page,.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{border-top-left-radius:var(--nylas-border-radius-2x);border-top-right-radius:var(--nylas-border-radius-2x)}.select-date-page,.additional-data-page{display:flex}@media screen and (max-width: 768px){.select-date-page,.additional-data-page{flex-direction:column}}.booked-event-page,.manual-confirmation-page{background-color:var(--nylas-base-50)}.cancelled-event-page,.manual-confirmation-page,.cancel-flow-page{padding:1rem;height:496px;display:flex;justify-content:center;align-items:center}.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:784px;background:var(--nylas-base-50)}@media screen and (max-width: 768px){.booked-event-page,.manual-confirmation-page,.cancelled-event-page,.cancel-flow-page{min-width:90%}}.left-panel{display:flex;flex-direction:column;min-width:424px;border-top-left-radius:inherit;background:var(--nylas-base-0);position:relative;padding:1rem 0 0 0;height:624px}@media screen and (max-width: 768px){.left-panel{border-top-right-radius:inherit;min-width:unset;height:auto}}@media screen and (max-width: 768px){.select-date-page .left-panel{height:624px}}.border{margin-left:-20px;margin-right:-20px;border-top-width:1px;height:0.5px;background-color:var(--nylas-base-200)}@media screen and (max-width: 768px){.border{display:none}}.right-panel{min-width:360px;width:360px;background-color:var(--nylas-base-50);height:624px;padding-top:16px;border-left:1px solid var(--nylas-base-200);border-top-right-radius:inherit}.right-panel.reschedule{border-top-right-radius:0px}@media screen and (max-width: 768px){.right-panel{border-top-right-radius:0px;width:inherit;min-width:unset;height:auto;border-left:none}}.right-panel h2{display:flex;margin:0;height:48px;gap:0.5rem;justify-content:center;align-items:center;width:auto;font-size:1.125rem;line-height:1.5rem;font-weight:500;text-align:center;color:var(--nylas-base-800)}.additional-data-page .left-panel{background-color:var(--nylas-base-50)}.additional-data-page .right-panel{background-color:var(--nylas-base-0)}nylas-selected-event-card{height:604px;padding:0 1rem}@media screen and (max-width: 768px){nylas-selected-event-card{height:250px}}.footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px;font-size:14px;font-weight:300;color:var(--nylas-base-500);border-top:1px solid var(--nylas-base-200);min-height:24px}.footer .powered-by-nylas{display:flex;align-items:center;text-decoration:none;color:var(--nylas-base-500)}.footer .powered-by-nylas:hover{color:var(--nylas-base-800)}.footer svg{fill:var(--nylas-base-500)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.footer svg{margin-top:1px}nylas-selected-event-card::part(nsec__timezone){position:absolute;bottom:0}nylas-notification{margin:1.5rem;width:-webkit-fill-available;width:-moz-available;position:absolute}nylas-locale-switch{position:absolute;padding:18px 20px;bottom:0;width:-webkit-fill-available;width:-moz-available;border-top:1px solid var(--nylas-base-200)}@media screen and (max-width: 768px){nylas-locale-switch{height:auto}}nylas-date-picker{padding:0 20px}button-component#report-issue{width:auto;position:absolute;bottom:4px;left:16px}.language-feedback-container{width:auto;position:absolute;bottom:4px;left:16px;display:flex;gap:8px;align-items:center}.language-feedback-container button-component#report-issue{position:initial}nylas-feedback-form{position:absolute;top:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:rgba(0, 0, 0, 0.6);z-index:2;border-radius:inherit}', be = me, Q = { title: h.t("genericErrorTitle"), type: H.Error, category: N.Component }, _e = class {
|
|
601
602
|
constructor(i) {
|
|
602
|
-
te(this, i), this.init = P(this, "init", 7), this.schedulerWillLoad = P(this, "schedulerWillLoad", 7), this.schedulerDidLoad = P(this, "schedulerDidLoad", 7), this.nylasSchedulerError = P(this, "nylasSchedulerError", 7), this.nylasSchedulerInfo = P(this, "nylasSchedulerInfo", 7), this.configSettingsLoaded = P(this, "configSettingsLoaded", 7), this.bookingRefExtracted = P(this, "bookingRefExtracted", 7), this.bookedEventInfo = P(this, "bookedEventInfo", 7), this.mode = "app", this.defaultSchedulerState = void 0, this.sessionId = void 0, this.schedulerApiUrl = "https://api.us.nylas.com", this.bookingInfo = void 0, this.rescheduleBookingRef = void 0, this.cancelBookingRef = void 0, this.organizerConfirmationBookingRef = void 0, this.configurationId = void 0, this.slug = void 0, this.clientId = void 0, this.nylasBranding = !0, this.eventOverrides = {}, this.isLoading = void 0, this.themeConfig = void 0, this.localization = void 0, this.defaultLanguage = void 0, this.showNotification = !0, this.enableUserFeedback = !0, this.hour12 = void 0, this.automaticComponentRegistration = !0, this.selectedDateLabel = (/* @__PURE__ */ new Date()).toLocaleDateString(navigator.language, { dateStyle: "full" }) || `${h.t("noDateSelected")}`, this.refConfigId = void 0, this.language = navigator.language, this.showFeedbackModal = !1, this.bookingInfoConfirmed = null, this.version = "2.0.
|
|
603
|
+
te(this, i), this.init = P(this, "init", 7), this.schedulerWillLoad = P(this, "schedulerWillLoad", 7), this.schedulerDidLoad = P(this, "schedulerDidLoad", 7), this.nylasSchedulerError = P(this, "nylasSchedulerError", 7), this.nylasSchedulerInfo = P(this, "nylasSchedulerInfo", 7), this.configSettingsLoaded = P(this, "configSettingsLoaded", 7), this.bookingRefExtracted = P(this, "bookingRefExtracted", 7), this.bookedEventInfo = P(this, "bookedEventInfo", 7), this.mode = "app", this.defaultSchedulerState = void 0, this.sessionId = void 0, this.schedulerApiUrl = "https://api.us.nylas.com", this.bookingInfo = void 0, this.rescheduleBookingRef = void 0, this.cancelBookingRef = void 0, this.organizerConfirmationBookingRef = void 0, this.configurationId = void 0, this.slug = void 0, this.clientId = void 0, this.nylasBranding = !0, this.eventOverrides = {}, this.isLoading = void 0, this.themeConfig = void 0, this.localization = void 0, this.defaultLanguage = void 0, this.showNotification = !0, this.enableUserFeedback = !0, this.hour12 = void 0, this.automaticComponentRegistration = !0, this.selectedDateLabel = (/* @__PURE__ */ new Date()).toLocaleDateString(navigator.language, { dateStyle: "full" }) || `${h.t("noDateSelected")}`, this.refConfigId = void 0, this.language = navigator.language, this.showFeedbackModal = !1, this.bookingInfoConfirmed = null, this.version = "2.0.4";
|
|
603
604
|
}
|
|
604
605
|
connectedCallback() {
|
|
605
606
|
A("[nylas-scheduler] connectedCallback");
|
|
606
607
|
}
|
|
607
608
|
async componentWillLoad() {
|
|
608
609
|
var l, d, m;
|
|
609
|
-
A("[nylas-scheduler] Component will load"), this.version = "2.0.
|
|
610
|
+
A("[nylas-scheduler] Component will load"), this.version = "2.0.4", this.enableUserFeedback && !ae() && le({
|
|
610
611
|
dsn: "https://9d5731f1c77ca84c9ed3fb9b3ccf7ee1@o74852.ingest.us.sentry.io/4507889638178816",
|
|
611
612
|
release: this.version,
|
|
612
613
|
integrations: (c) => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");const s=".sc-person-icon-h{display:flex}",i=s,t=class{constructor(r){e.registerInstance(this,r),this.width="14",this.height="16"}render(){return e.h("svg",{key:"67c72253df839c3d7b5b72ae85e9e86f7663b3e0",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"779bc3c0def7b6781ce745bc1c4abc57d355866d",d:"M7 0C4.79086 0 3 1.79086 3 4C3 6.20914 4.79086 8 7 8C9.20914 8 11 6.20914 11 4C11 1.79086 9.20914 0 7 0ZM4 4C4 2.34315 5.34315 1 7 1C8.65685 1 10 2.34315 10 4C10 5.65685 8.65685 7 7 7C5.34315 7 4 5.65685 4 4ZM2.00873 9C0.903151 9 0 9.88687 0 11C0 12.6912 0.83281 13.9663 2.13499 14.7966C3.41697 15.614 5.14526 16 7 16C8.85474 16 10.583 15.614 11.865 14.7966C13.1672 13.9663 14 12.6912 14 11C14 9.89557 13.1045 9.00001 12 9.00001L2.00873 9ZM1 11C1 10.4467 1.44786 10 2.00873 10L12 10C12.5522 10 13 10.4478 13 11C13 12.3088 12.3777 13.2837 11.3274 13.9534C10.2568 14.636 8.73511 15 7 15C5.26489 15 3.74318 14.636 2.67262 13.9534C1.62226 13.2837 1 12.3088 1 11Z",fill:"currentColor"}))}};t.style=i;exports.person_icon=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");const s=".sc-play-icon-h{display:flex}",r=s,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"0be83196ef8fbead9f7086dbafd33ccea90ef637",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"d2c346fe88da1566360c9ad3a49144cc8e11634a",d:"M21 12L3 21V3L21 12Z",stroke:"auto","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=r;exports.play_icon=t;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { r as a, a as r, h as l, g as o } from "./index-2084ffd9.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const s = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}.radio-group{display:flex;flex-direction:column;gap:0.5rem}.radio-group slot[name=label]{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;font-size:16px}.radio-group slot[name=label].error{color:var(--nylas-error)}.radio-group slot[name=label] span.required{color:var(--nylas-error);padding:0 0.25rem}.radio-group slot[name=label] p{margin:0}.radio-group slot[name=label] p.error{color:var(--nylas-error)}.radio-group slot[name=label] .error{color:var(--nylas-error)}.radio-group span.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family)}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary)}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem;margin:0}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}', n = s, i = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
a(this, e), this.nylasFormRadioChanged = r(this, "nylasFormRadioChanged", 7), this.componentType = "radio-group", this.name = "radio-group", this.options = [], this.defaultSelectedValue = "", this.label = void 0, this.required = !1, this.readOnly = !1, this.selectedValue = void 0, this.error = "";
|
|
8
|
+
}
|
|
9
|
+
handleDefaultSelectedValueChange(e) {
|
|
10
|
+
this.selectedValue = e;
|
|
11
|
+
}
|
|
12
|
+
componentDidLoad() {
|
|
13
|
+
this.selectedValue = this.defaultSelectedValue;
|
|
14
|
+
}
|
|
15
|
+
handleBookingFormSubmitted(e) {
|
|
16
|
+
if (this.required && !this.selectedValue) {
|
|
17
|
+
this.error = `${this.label} is required.`;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
this.error && e.preventDefault();
|
|
21
|
+
}
|
|
22
|
+
componentWillLoad() {
|
|
23
|
+
this.el.setAttribute("component-type", this.componentType);
|
|
24
|
+
}
|
|
25
|
+
handleChange(e) {
|
|
26
|
+
this.error = "", this.selectedValue = e, this.nylasFormRadioChanged.emit({
|
|
27
|
+
value: e,
|
|
28
|
+
name: this.name,
|
|
29
|
+
label: this.label
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return l("div", { key: "fbba0552c128bca3f6dab87ac5253129abbc6fdb", class: "radio-group" }, l("slot", { key: "a7f22a36e69876ae1b0f0d3fe1ca3df18877607d", name: "label" }, this.label && l("p", { class: { error: !!this.error } }, l("span", { class: "label" }, this.label), this.required && l("span", { class: "required" }, "*"))), this.options.map((e) => l("label", null, l("div", { class: "radio-option" }, l("input", { type: "radio", disabled: this.readOnly, readOnly: this.readOnly, title: this.readOnly ? "read-only field" : void 0, name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), l("p", null, l("span", { class: "title" }, e.label), l("span", { class: "description" }, e.description))))), this.error && l("span", { class: "error help-text" }, this.error));
|
|
34
|
+
}
|
|
35
|
+
get el() {
|
|
36
|
+
return o(this);
|
|
37
|
+
}
|
|
38
|
+
static get watchers() {
|
|
39
|
+
return {
|
|
40
|
+
defaultSelectedValue: ["handleDefaultSelectedValueChange"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
i.style = n;
|
|
45
|
+
export {
|
|
46
|
+
i as radio_button_group
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;width:100%}.radio-group{display:flex;flex-direction:column;gap:0.5rem}.radio-group slot[name=label]{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;font-size:16px}.radio-group slot[name=label].error{color:var(--nylas-error)}.radio-group slot[name=label] span.required{color:var(--nylas-error);padding:0 0.25rem}.radio-group slot[name=label] p{margin:0}.radio-group slot[name=label] p.error{color:var(--nylas-error)}.radio-group slot[name=label] .error{color:var(--nylas-error)}.radio-group span.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family)}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary)}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem;margin:0}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}',o=r,a=class{constructor(l){e.registerInstance(this,l),this.nylasFormRadioChanged=e.createEvent(this,"nylasFormRadioChanged",7),this.componentType="radio-group",this.name="radio-group",this.options=[],this.defaultSelectedValue="",this.label=void 0,this.required=!1,this.readOnly=!1,this.selectedValue=void 0,this.error=""}handleDefaultSelectedValueChange(l){this.selectedValue=l}componentDidLoad(){this.selectedValue=this.defaultSelectedValue}handleBookingFormSubmitted(l){if(this.required&&!this.selectedValue){this.error=`${this.label} is required.`;return}this.error&&l.preventDefault()}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}handleChange(l){this.error="",this.selectedValue=l,this.nylasFormRadioChanged.emit({value:l,name:this.name,label:this.label})}render(){return e.h("div",{key:"fbba0552c128bca3f6dab87ac5253129abbc6fdb",class:"radio-group"},e.h("slot",{key:"a7f22a36e69876ae1b0f0d3fe1ca3df18877607d",name:"label"},this.label&&e.h("p",{class:{error:!!this.error}},e.h("span",{class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"))),this.options.map(l=>e.h("label",null,e.h("div",{class:"radio-option"},e.h("input",{type:"radio",disabled:this.readOnly,readOnly:this.readOnly,title:this.readOnly?"read-only field":void 0,name:this.name,value:l.value,checked:this.selectedValue===l.value,onChange:()=>this.handleChange(l.value)}),e.h("p",null,e.h("span",{class:"title"},l.label),e.h("span",{class:"description"},l.description))))),this.error&&e.h("span",{class:"error help-text"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{defaultSelectedValue:["handleDefaultSelectedValueChange"]}}};a.style=o;exports.radio_button_group=a;
|
package/dist/react.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");exports.AddCircleIcon=o.AddCircleIcon;exports.ArchiveIcon=o.ArchiveIcon;exports.ArrowIcon=o.ArrowIcon;exports.BoldIcon=o.BoldIcon;exports.ButtonComponent=o.ButtonComponent;exports.CalendarAgendaFillIcon=o.CalendarAgendaFillIcon;exports.CalendarAgendaIcon=o.CalendarAgendaIcon;exports.CalendarCancelIcon=o.CalendarCancelIcon;exports.CalendarCheckIcon=o.CalendarCheckIcon;exports.CalendarIcon=o.CalendarIcon;exports.CalendarInfoIcon=o.CalendarInfoIcon;exports.CalendarPatternsIcon=o.CalendarPatternsIcon;exports.CalendarSync=o.CalendarSync;exports.CheckboxComponent=o.CheckboxComponent;exports.CheckboxGroup=o.CheckboxGroup;exports.CheckmarkCircleIcon=o.CheckmarkCircleIcon;exports.CheckmarkIcon=o.CheckmarkIcon;exports.ChevronIcon=o.ChevronIcon;exports.ClockIcon=o.ClockIcon;exports.CloseIcon=o.CloseIcon;exports.CopyIcon=o.CopyIcon;exports.DeleteIcon=o.DeleteIcon;exports.DocumentRefreshIcon=o.DocumentRefreshIcon;exports.DragableIcon=o.DragableIcon;exports.EditIcon=o.EditIcon;exports.EnvelopeFillIcon=o.EnvelopeFillIcon;exports.EnvelopeIcon=o.EnvelopeIcon;exports.EyeIcon=o.EyeIcon;exports.FeedbackIcon=o.FeedbackIcon;exports.FlowIcon=o.FlowIcon;exports.FolderIcon=o.FolderIcon;exports.ForwardIcon=o.ForwardIcon;exports.GlobeIcon=o.GlobeIcon;exports.GoogleLogoIcon=o.GoogleLogoIcon;exports.GoogleMeetIcon=o.GoogleMeetIcon;exports.InboxIcon=o.InboxIcon;exports.InfoIcon=o.InfoIcon;exports.InputColorPicker=o.InputColorPicker;exports.InputComponent=o.InputComponent;exports.InputDropdown=o.InputDropdown;exports.InputImageUrl=o.InputImageUrl;exports.ItalicIcon=o.ItalicIcon;exports.LoadingIcon=o.LoadingIcon;exports.LocationIcon=o.LocationIcon;exports.LocationOffIcon=o.LocationOffIcon;exports.MicrosoftLogoIcon=o.MicrosoftLogoIcon;exports.MicrosoftTeamsIcon=o.MicrosoftTeamsIcon;exports.MultiSelectDropdown=o.MultiSelectDropdown;exports.NylasAdditionalParticipants=o.NylasAdditionalParticipants;exports.NylasAvailabilityPicker=o.NylasAvailabilityPicker;exports.NylasBookedEventCard=o.NylasBookedEventCard;exports.NylasBookingCalendarPicker=o.NylasBookingCalendarPicker;exports.NylasBookingConfirmationRedirect=o.NylasBookingConfirmationRedirect;exports.NylasBookingConfirmationType=o.NylasBookingConfirmationType;exports.NylasBookingForm=o.NylasBookingForm;exports.NylasBookingFormConfig=o.NylasBookingFormConfig;exports.NylasBufferTime=o.NylasBufferTime;exports.NylasCalendarPicker=o.NylasCalendarPicker;exports.NylasCancelBookingForm=o.NylasCancelBookingForm;exports.NylasCancellationPolicy=o.NylasCancellationPolicy;exports.NylasCancelledEventCard=o.NylasCancelledEventCard;exports.NylasConfirmationEmail=o.NylasConfirmationEmail;exports.NylasConfirmedEventCard=o.NylasConfirmedEventCard;exports.NylasConnectedCalendars=o.NylasConnectedCalendars;exports.NylasCustomBookingFlow=o.NylasCustomBookingFlow;exports.NylasCustomEventSlug=o.NylasCustomEventSlug;exports.NylasCustomizeBookingSettings=o.NylasCustomizeBookingSettings;exports.NylasDateComponent=o.NylasDateComponent;exports.NylasDatePicker=o.NylasDatePicker;exports.NylasDisableEmails=o.NylasDisableEmails;exports.NylasEditorTabs=o.NylasEditorTabs;exports.NylasEditorTabsGroup=o.NylasEditorTabsGroup;exports.NylasEventCalendar=o.NylasEventCalendar;exports.NylasEventCapacity=o.NylasEventCapacity;exports.NylasEventDescription=o.NylasEventDescription;exports.NylasEventDuration=o.NylasEventDuration;exports.NylasEventInfo=o.NylasEventInfo;exports.NylasEventLimits=o.NylasEventLimits;exports.NylasEventLocation=o.NylasEventLocation;exports.NylasEventTimeslot=o.NylasEventTimeslot;exports.NylasEventTitle=o.NylasEventTitle;exports.NylasFeedbackForm=o.NylasFeedbackForm;exports.NylasFormCard=o.NylasFormCard;exports.NylasIdentityRequestWrapper=o.NylasIdentityRequestWrapper;exports.NylasLimitFutureBookings=o.NylasLimitFutureBookings;exports.NylasListConfigurations=o.NylasListConfigurations;exports.NylasLocaleSwitch=o.NylasLocaleSwitch;exports.NylasLogo=o.NylasLogo;exports.NylasMinBookingNotice=o.NylasMinBookingNotice;exports.NylasMinCancellationNotice=o.NylasMinCancellationNotice;exports.NylasNotification=o.NylasNotification;exports.NylasOrganizerConfirmationCard=o.NylasOrganizerConfirmationCard;exports.NylasPageName=o.NylasPageName;exports.NylasPageStyling=o.NylasPageStyling;exports.NylasParticipantBookingCalendars=o.NylasParticipantBookingCalendars;exports.NylasParticipantsCustomAvailability=o.NylasParticipantsCustomAvailability;exports.NylasReminderEmails=o.NylasReminderEmails;exports.NylasReminderTime=o.NylasReminderTime;exports.NylasSchedulerEditor=o.NylasSchedulerEditor;exports.NylasScheduling=o.NylasScheduling;exports.NylasSchedulingMethod=o.NylasSchedulingMethod;exports.NylasSelectEventType=o.NylasSelectEventType;exports.NylasSelectedEventCard=o.NylasSelectedEventCard;exports.NylasSpecificDateAvailabilityPicker=o.NylasSpecificDateAvailabilityPicker;exports.NylasTimeWindowPicker=o.NylasTimeWindowPicker;exports.NylasTimeslotInterval=o.NylasTimeslotInterval;exports.NylasTimeslotPicker=o.NylasTimeslotPicker;exports.PaintbrushFillIcon=o.PaintbrushFillIcon;exports.PaintbrushIcon=o.PaintbrushIcon;exports.PeopleIcon=o.PeopleIcon;exports.PersonClipboardIcon=o.PersonClipboardIcon;exports.PersonIcon=o.PersonIcon;exports.PlayIcon=o.PlayIcon;exports.PlusIcon=o.PlusIcon;exports.RadioButtonGroup=o.RadioButtonGroup;exports.RefreshIcon=o.RefreshIcon;exports.ReplyAllIcon=o.ReplyAllIcon;exports.ReplyIcon=o.ReplyIcon;exports.SearchIcon=o.SearchIcon;exports.SelectDropdown=o.SelectDropdown;exports.SendNotetaker=o.SendNotetaker;exports.SentIcon=o.SentIcon;exports.SpamIcon=o.SpamIcon;exports.StarIcon=o.StarIcon;exports.StopIcon=o.StopIcon;exports.TextareaComponent=o.TextareaComponent;exports.TimePeriodSelector=o.TimePeriodSelector;exports.ToggleSwitch=o.ToggleSwitch;exports.TooltipComponent=o.TooltipComponent;exports.Transcript=o.Transcript;exports.TranslateIcon=o.TranslateIcon;exports.TrashFillIcon=o.TrashFillIcon;exports.TrashIcon=o.TrashIcon;exports.UnderlineIcon=o.UnderlineIcon;exports.VideoPlayer=o.VideoPlayer;exports.WarningIcon=o.WarningIcon;exports.ZoomIcon=o.ZoomIcon;exports.calendarSyncStore=o.calendarSyncStore;exports.defineCustomElements=o.defineCustomElements;exports.provider=o.provider;exports.sendNotetakerStore=o.sendNotetakerStore;exports.setNonce=o.setNonce;exports.videoPlayerStore=o.videoPlayerStore;
|
package/dist/react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a0 as l, a1 as c, a2 as i, a3 as t, a4 as r, a5 as b, a6 as y, a7 as I, a8 as N, a9 as d, aa as C, ab as m,
|
|
1
|
+
import { a0 as l, a1 as c, a2 as i, a3 as t, a4 as r, a5 as b, a6 as y, a7 as I, a8 as N, a9 as d, aa as C, ab as m, c6 as p, ac as g, ad as k, ae as u, af as E, ag as v, ah as P, ai as S, aj as f, ak as h, al as T, am as B, an as F, ao as D, ap as L, aq as w, ar as A, as as R, at as M, au as G, av as x, aw as W, ax as z, ay as O, az as U, aA as q, aB as V, aC as Z, aD as _, aE as $, aF as j, aG as H, aH as J, aI as K, aJ as Q, aK as X, aL as Y, aM as aa, aN as sa, aO as oa, aP as na, aQ as ea, aR as la, aS as ca, aT as ia, aU as ta, aV as ra, aW as ba, aX as ya, aY as Ia, aZ as Na, a_ as da, a$ as Ca, b0 as ma, b1 as pa, b2 as ga, b3 as ka, b4 as ua, b5 as Ea, b6 as va, b7 as Pa, b8 as Sa, b9 as fa, ba as ha, bb as Ta, bc as Ba, bd as Fa, be as Da, bf as La, bg as wa, bh as Aa, N as Ra, bi as Ma, bj as Ga, bk as xa, bl as Wa, bm as za, bn as Oa, bo as Ua, bp as qa, bq as Va, br as Za, bs as _a, bt as $a, bu as ja, bv as Ha, bw as Ja, bx as Ka, by as Qa, bz as Xa, bA as Ya, bB as as, bC as ss, bD as os, bE as ns, bF as es, bG as ls, bH as cs, bI as is, bJ as ts, bK as rs, bL as bs, bM as ys, bN as Is, bO as Ns, bP as ds, bQ as Cs, bR as ms, c7 as ps, bS as gs, bT as ks, bU as us, bV as Es, bW as vs, bX as Ps, bY as Ss, bZ as fs, c4 as hs, b_ as Ts, b$ as Bs, c0 as Fs, c1 as Ds, c5 as Ls, c2 as ws, c3 as As, c9 as Rs, _ as Ms, c8 as Gs, ca as xs, $ as Ws, cb as zs } from "./index-2084ffd9.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
@@ -106,43 +106,44 @@ export {
|
|
|
106
106
|
Qa as NylasSchedulingMethod,
|
|
107
107
|
Xa as NylasSelectEventType,
|
|
108
108
|
Ya as NylasSelectedEventCard,
|
|
109
|
-
as as
|
|
110
|
-
ss as
|
|
111
|
-
os as
|
|
112
|
-
ns as
|
|
113
|
-
es as
|
|
114
|
-
ls as
|
|
115
|
-
cs as
|
|
116
|
-
is as
|
|
117
|
-
ts as
|
|
118
|
-
rs as
|
|
119
|
-
bs as
|
|
120
|
-
ys as
|
|
121
|
-
Is as
|
|
122
|
-
Ns as
|
|
123
|
-
ds as
|
|
124
|
-
Cs as
|
|
125
|
-
ms as
|
|
126
|
-
ps as
|
|
127
|
-
gs as
|
|
128
|
-
ks as
|
|
129
|
-
us as
|
|
130
|
-
Es as
|
|
131
|
-
vs as
|
|
132
|
-
Ps as
|
|
133
|
-
Ss as
|
|
134
|
-
fs as
|
|
135
|
-
hs as
|
|
136
|
-
Ts as
|
|
137
|
-
Bs as
|
|
138
|
-
Fs as
|
|
139
|
-
Ds as
|
|
140
|
-
Ls as
|
|
141
|
-
ws as
|
|
142
|
-
As as
|
|
143
|
-
Rs as
|
|
144
|
-
Ms as
|
|
145
|
-
Gs as
|
|
146
|
-
xs as
|
|
147
|
-
Ws as
|
|
109
|
+
as as NylasSpecificDateAvailabilityPicker,
|
|
110
|
+
ss as NylasTimeWindowPicker,
|
|
111
|
+
os as NylasTimeslotInterval,
|
|
112
|
+
ns as NylasTimeslotPicker,
|
|
113
|
+
es as PaintbrushFillIcon,
|
|
114
|
+
ls as PaintbrushIcon,
|
|
115
|
+
cs as PeopleIcon,
|
|
116
|
+
is as PersonClipboardIcon,
|
|
117
|
+
ts as PersonIcon,
|
|
118
|
+
rs as PlayIcon,
|
|
119
|
+
bs as PlusIcon,
|
|
120
|
+
ys as RadioButtonGroup,
|
|
121
|
+
Is as RefreshIcon,
|
|
122
|
+
Ns as ReplyAllIcon,
|
|
123
|
+
ds as ReplyIcon,
|
|
124
|
+
Cs as SearchIcon,
|
|
125
|
+
ms as SelectDropdown,
|
|
126
|
+
ps as SendNotetaker,
|
|
127
|
+
gs as SentIcon,
|
|
128
|
+
ks as SpamIcon,
|
|
129
|
+
us as StarIcon,
|
|
130
|
+
Es as StopIcon,
|
|
131
|
+
vs as TextareaComponent,
|
|
132
|
+
Ps as TimePeriodSelector,
|
|
133
|
+
Ss as ToggleSwitch,
|
|
134
|
+
fs as TooltipComponent,
|
|
135
|
+
hs as Transcript,
|
|
136
|
+
Ts as TranslateIcon,
|
|
137
|
+
Bs as TrashFillIcon,
|
|
138
|
+
Fs as TrashIcon,
|
|
139
|
+
Ds as UnderlineIcon,
|
|
140
|
+
Ls as VideoPlayer,
|
|
141
|
+
ws as WarningIcon,
|
|
142
|
+
As as ZoomIcon,
|
|
143
|
+
Rs as calendarSyncStore,
|
|
144
|
+
Ms as defineCustomElements,
|
|
145
|
+
Gs as provider,
|
|
146
|
+
xs as sendNotetakerStore,
|
|
147
|
+
Ws as setNonce,
|
|
148
|
+
zs as videoPlayerStore
|
|
148
149
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");const t=".sc-refresh-icon-h{display:flex}",r=t,e=class{constructor(s){c.registerInstance(this,s),this.width="15",this.height="15"}render(){return c.h("svg",{key:"a9dbb422768797850a82bc75293ccd95d12d2943",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c.h("path",{key:"ed3f88703da4059083cfd1c5c9aedfaedfdaca0d",d:"M15.544 28.080c-0.002-0.006-0.008-0.010-0.012-0.015l-2.873-4.489c-0.204-0.335-0.646-0.454-0.992-0.266l-0.256 0.157c-0.344 0.188-0.337 0.673-0.133 1.008l1.841 2.857c-0.157-0.035-0.316-0.063-0.471-0.103-3.224-0.843-5.953-3.026-7.485-5.988-1.448-2.797-1.72-5.99-0.766-8.992s3.118-5.452 5.915-6.899c0.476-0.247 0.662-0.832 0.416-1.308-0.246-0.477-0.832-0.663-1.308-0.416-3.258 1.686-5.763 4.54-6.874 8.036s-0.794 7.215 0.892 10.473c1.786 3.448 4.963 5.989 8.72 6.973 0.043 0.011 0.087 0.017 0.13 0.028l-2.541 1.288c-0.344 0.189-0.458 0.613-0.254 0.948l0.098 0.256c0.205 0.335 0.557 0.454 0.9 0.266l4.651-2.381c0.006-0.004 0.012-0.003 0.018-0.007l0.312-0.171c0.172-0.095 0.287-0.249 0.332-0.422 0.047-0.172 0.025-0.364-0.076-0.531zM28.559 10.025c-1.783-3.447-4.862-5.988-8.618-6.972-0.267-0.070-0.541-0.124-0.814-0.179l2.494-1.265c0.344-0.189 0.549-0.614 0.345-0.949l-0.099-0.255c-0.205-0.336-0.648-0.454-0.991-0.267l-4.651 2.381c-0.006 0.003-0.012 0.002-0.018 0.006l-0.312 0.171c-0.173 0.095-0.287 0.249-0.332 0.422-0.047 0.172-0.025 0.364 0.077 0.53l0.185 0.304c0.003 0.006 0.008 0.010 0.012 0.016l2.873 4.489c0.203 0.335 0.646 0.454 0.991 0.266l0.226-0.157c0.344-0.188 0.366-0.673 0.163-1.008l-1.85-2.87c0.407 0.063 0.811 0.138 1.207 0.242 3.226 0.845 5.856 3.027 7.387 5.986 1.448 2.797 1.72 5.99 0.765 8.991s-3.020 5.451-5.818 6.901c-0.476 0.247-0.662 0.831-0.415 1.308 0.172 0.332 0.511 0.524 0.863 0.524 0.15 0 0.302-0.035 0.446-0.109 3.259-1.686 5.664-4.54 6.776-8.035 1.111-3.497 0.794-7.217-0.893-10.473z"}))}};e.style=r;exports.refresh_icon=e;
|
package/dist/{register-component-9d4ceee5-6fabc42c.cjs → register-component-8bbd6492-d9a23f3c.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./index-
|
|
1
|
+
"use strict";const s=require("./index-e9dc7971.cjs");function m(e,o,i="registerComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function P(e,o,i="unregisterComponent"){return new CustomEvent(i,{bubbles:!0,composed:!0,detail:o})}function b(e){return(o,i)=>{const r=e.name;s.debug(`[${r}] Registering component ${r} being called on ${i}`);const l=o.componentWillLoad;if(!l){s.error(`[${r}] componentWillLoad lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const p=o.connectedCallback;if(!p){s.error(`[${r}] connectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}const a=o.disconnectedCallback;if(!a){s.error(`[${r}] disconnectedCallback lifecycle method in ${r} missing. Required for RegisterComponent decorator.`);return}if(e.storeToProps&&e.stateToProps){const n=Array.from(e.storeToProps.values()),t=Array.from(e.stateToProps.values()),u=n.filter(c=>t.includes(c));if(u.length>0){s.error(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${u.join(", ")}`);return}}const d=new Map;e.eventToProps&&Object.keys(e.eventToProps).forEach(n=>{var t;d.set(n,(t=e.eventToProps)==null?void 0:t[n])}),o.connectedCallback=function(){s.debug(`[~${r}] connectedCallback called`);const n=p==null?void 0:p.call(this),t=s.getElement(this);return t.dataset.nylasId||(Object.defineProperty(t,"registerNylasComponent",{get(){return!0},enumerable:!0}),Object.defineProperty(t,"stateToProps",{get(){return e.stateToProps},enumerable:!0}),Object.defineProperty(t,"getStoresToProp",{get(){return e.getStoresToProp},enumerable:!0}),Object.defineProperty(t,"storeToProps",{get(){return e.storeToProps},enumerable:!0}),Object.defineProperty(t,"eventToProps",{get(){return d},enumerable:!0}),Object.defineProperty(t,"authToProp",{get(){return e.authToProp},enumerable:!0}),Object.defineProperty(t,"connectorToProp",{get(){return e.connectorToProp},enumerable:!0}),Object.defineProperty(t,"localPropsToProp",{get(){return e.localPropsToProp},enumerable:!0})),n},e.fireRegisterEvent&&(o.componentWillLoad=function(){const n=l==null?void 0:l.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=m(o,u,e.registrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired registration event`),n},o.disconnectedCallback=function(){const n=a==null?void 0:a.call(this),t=s.getElement(this),u={element:t,...e,eventToProps:d},c=P(o,u,e.unregistrationEventName);return t.dispatchEvent(c)&&s.debug(`[${r}] Component ${r} successfully fired unregistration event`),n})}}exports.RegisterComponent=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");const l=".sc-reply-all-icon-h{display:flex}",r=l,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"82c4f58408a549b7eefe0bab7888526fb55bcf6d",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"5281a79eaed7366b4415ce0bf2a250da9646b963",d:"m1030.975 188 81.249 81.249-429.228 429.228h300.747c516.223 0 936.257 420.034 936.257 936.257v98.028h-114.92v-98.028c0-452.901-368.436-821.337-821.337-821.337H682.996l429.228 429.229-81.25 81.248-567.936-567.937L1030.975 188Zm-463.038.011 81.249 81.25-486.688 486.688 486.688 486.688-81.249 81.249L0 755.949 567.937 188.01Z","fill-rule":"evenodd"}))}};t.style=r;exports.reply_all_icon=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");const c=".sc-reply-icon-h{display:flex}",r=c,t=class{constructor(i){e.registerInstance(this,i),this.width="15",this.height="15"}render(){return e.h("svg",{key:"e059d502b1bd07278f3f60b1c4fe9c4b52bbcb61",fill:"auto",width:this.width,height:this.height,viewBox:"0 0 1920 1920",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"b6c07ce3e80475b42264491d4ce2856b45ad848b",d:"M835.942 632.563H244.966l478.08-478.08-90.496-90.496L-.026 696.563 632.55 1329.14l90.496-90.496-478.08-478.08h590.976c504.448 0 914.816 410.368 914.816 914.816v109.184h128V1675.38c0-574.976-467.84-1042.816-1042.816-1042.816","fill-rule":"evenodd"}))}};t.style=r;exports.reply_icon=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-sent-icon-h{display:flex}",c=i,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"af8457ffa4427dfe04e95d571db14f0256ae4e1f",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"e72a685b39021ffc6ca8a30a69c123835b528f94",d:"M21.5 12L3.5 3.5L3.5 20.5L21.5 12Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"adf23567c6b6d85a9e162c39b58ca6f8ed5cbc91",d:"M3.5 3.5L12 10.5",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"10bd3d6f36c572ff8b8f8905bc923abac142f15a",d:"M3.5 20.5L12 13.5",stroke:"auto","stroke-width":"1.5"}))}};t.style=c;exports.sent_icon=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-spam-icon-h{display:flex}",d=i,t=class{constructor(s){e.registerInstance(this,s),this.width="15",this.height="15"}render(){return e.h("svg",{key:"93ff5ee3d6d594e1e901e47de4d0766386efe76f",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"2f333ba9e71dbfdd79d369cac07216361a39cdb6",d:"M20 3H4C2.89543 3 2 3.89543 2 5V19C2 20.1046 2.89543 21 4 21H20C21.1046 21 22 20.1046 22 19V5C22 3.89543 21.1046 3 20 3Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"afd35317c261a436d8980687a22ed161bfde61ff",d:"M2 5L12 12.5L22 5",stroke:"auto","stroke-width":"1.5"}))}};t.style=d;exports.spam_icon=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-e9dc7971.cjs");require("react");require("react/jsx-runtime");require("react-dom");const i=".sc-star-icon-h{display:flex}",r=i,e=class{constructor(s){t.registerInstance(this,s),this.width="15",this.height="15"}render(){return t.h("svg",{key:"9d92e75a297c8e3be072fb593a7a85127e2e4f3f",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"6f7b9c97f134a9b5671e9f0b4b232c6f45b981df",d:"M9.15316 5.40838C10.4198 3.13613 11.0531 2 12 2C12.9469 2 13.5802 3.13612 14.8468 5.40837L15.1745 5.99623C15.5345 6.64193 15.7144 6.96479 15.9951 7.17781C16.2757 7.39083 16.6251 7.4699 17.3241 7.62805L17.9605 7.77203C20.4201 8.32856 21.65 8.60682 21.9426 9.54773C22.2352 10.4886 21.3968 11.4691 19.7199 13.4299L19.2861 13.9372C18.8096 14.4944 18.5713 14.773 18.4641 15.1177C18.357 15.4624 18.393 15.8341 18.465 16.5776L18.5306 17.2544C18.7841 19.8706 18.9109 21.1787 18.1449 21.7602C17.3788 22.3417 16.2273 21.8115 13.9243 20.7512L13.3285 20.4768C12.6741 20.1755 12.3469 20.0248 12 20.0248C11.6531 20.0248 11.3259 20.1755 10.6715 20.4768L10.0757 20.7512C7.77268 21.8115 6.62118 22.3417 5.85515 21.7602C5.08912 21.1787 5.21588 19.8706 5.4694 17.2544L5.53498 16.5776C5.60703 15.8341 5.64305 15.4624 5.53586 15.1177C5.42868 14.773 5.19043 14.4944 4.71392 13.9372L4.2801 13.4299C2.60325 11.4691 1.76482 10.4886 2.05742 9.54773C2.35002 8.60682 3.57986 8.32856 6.03954 7.77203L6.67589 7.62805C7.37485 7.4699 7.72433 7.39083 8.00494 7.17781C8.28555 6.96479 8.46553 6.64194 8.82547 5.99623L9.15316 5.40838Z",stroke:"auto","stroke-width":"1.5"}))}};e.style=r;exports.star_icon=e;
|