@nylas/react 2.0.0 → 2.0.2
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 +1 -0
- package/dist/abstract-provider-bdb7d9b4-22cf4a74.js +187 -0
- package/dist/add-circle-icon_2.entry-0ff79148.js +26 -0
- package/dist/add-circle-icon_2.entry-d56f519c.cjs +1 -0
- package/dist/archive-icon.entry-6ab120ff.cjs +1 -0
- package/dist/archive-icon.entry-aaff46ec.js +16 -0
- package/dist/arrow-icon.entry-d57cf44f.cjs +1 -0
- package/dist/{arrow-icon.entry-9414299f.js → arrow-icon.entry-d8fcbc1f.js} +5 -5
- package/dist/{bold-icon.entry-c781e9c1.cjs → bold-icon.entry-0f23543d.cjs} +1 -1
- package/dist/{bold-icon.entry-b72aed9f.js → bold-icon.entry-e48075a4.js} +2 -2
- package/dist/{button-component_2.entry-73f76545.cjs → button-component_2.entry-3d622397.cjs} +1 -1
- package/dist/{button-component_2.entry-36e49459.js → button-component_2.entry-5db80bec.js} +9 -9
- package/dist/calendar-agenda-fill-icon_36.entry-75d7cd5b.cjs +6 -0
- package/dist/{calendar-agenda-fill-icon_36.entry-efa7ad26.js → calendar-agenda-fill-icon_36.entry-78fc2e0d.js} +823 -804
- package/dist/{calendar-cancel-icon.entry-0f739a8a.js → calendar-cancel-icon.entry-8b43441c.js} +5 -5
- package/dist/{calendar-cancel-icon.entry-01c388eb.cjs → calendar-cancel-icon.entry-9546c7c3.cjs} +1 -1
- package/dist/calendar-check-icon.entry-4e6abda7.js +16 -0
- package/dist/calendar-check-icon.entry-a03b249a.cjs +1 -0
- package/dist/{calendar-icon.entry-f197396d.js → calendar-icon.entry-5b622c12.js} +2 -2
- package/dist/{calendar-icon.entry-9743e0b7.cjs → calendar-icon.entry-cd4b0ec4.cjs} +1 -1
- package/dist/checkbox-component_2.entry-82f4b1f2.js +115 -0
- package/dist/checkbox-component_2.entry-c9c8a87d.cjs +1 -0
- package/dist/checkbox-group_4.entry-5a4f0ed2.cjs +28 -0
- package/dist/{nylas-event-calendar_3.entry-9abd46c2.js → checkbox-group_4.entry-b2a5b2b2.js} +1038 -923
- package/dist/checkmark-circle-icon.entry-30582af4.js +16 -0
- package/dist/checkmark-circle-icon.entry-9617301c.cjs +1 -0
- package/dist/{checkmark-icon_15.entry-5c09cff5.js → checkmark-icon_15.entry-01536ed2.js} +48 -48
- package/dist/{checkmark-icon_15.entry-35dd97b7.cjs → checkmark-icon_15.entry-c5eaad9b.cjs} +2 -2
- package/dist/{chevron-icon_3.entry-e0608b7c.cjs → chevron-icon_3.entry-26f14744.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-4a72f211.js → chevron-icon_3.entry-517447a6.js} +16 -16
- package/dist/{clock-icon_4.entry-202ce025.cjs → clock-icon_4.entry-5351318c.cjs} +1 -1
- package/dist/{clock-icon_4.entry-0afe79c2.js → clock-icon_4.entry-7ea1274d.js} +8 -8
- package/dist/{customParseFormat-d1de5ed0-65a0bba3.cjs → customParseFormat-f0d21eb3-769d6bf2.cjs} +1 -1
- package/dist/{customParseFormat-d1de5ed0-c0ef002d.js → customParseFormat-f0d21eb3-904f1e57.js} +1 -1
- package/dist/{delete-icon.entry-580bfcc9.js → delete-icon.entry-02e44ba1.js} +2 -2
- package/dist/{delete-icon.entry-762ac892.cjs → delete-icon.entry-64b61f5c.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-4e0f0c61.cjs → document-refresh-icon.entry-2f599a22.cjs} +1 -1
- package/dist/document-refresh-icon.entry-fcaa84ad.js +16 -0
- package/dist/{feedbackSync-172f942c-42124493.js → feedbackSync-b9c9e719-b54b3268.js} +811 -798
- package/dist/{feedbackSync-172f942c-62f72bd2.cjs → feedbackSync-b9c9e719-bee3fea1.cjs} +26 -26
- package/dist/{folder-icon.entry-2694e253.cjs → folder-icon.entry-55c123dc.cjs} +1 -1
- package/dist/{folder-icon.entry-54c3cc66.js → folder-icon.entry-f4862c1b.js} +4 -4
- package/dist/{forward-icon.entry-5e540f05.js → forward-icon.entry-4a41e94f.js} +2 -2
- package/dist/{forward-icon.entry-f07102d8.cjs → forward-icon.entry-82719382.cjs} +1 -1
- package/dist/{globe-icon_2.entry-14a4c168.cjs → globe-icon_2.entry-3f0e408e.cjs} +1 -1
- package/dist/{globe-icon_2.entry-aaceb196.js → globe-icon_2.entry-8f5c79b2.js} +20 -20
- package/dist/google-logo-icon_6.entry-9c91c3d4.cjs +2 -0
- package/dist/{google-logo-icon_6.entry-00d40db2.js → google-logo-icon_6.entry-b331ab60.js} +682 -488
- package/dist/{google-meet-icon_5.entry-6c20e149.cjs → google-meet-icon_5.entry-e3d44d56.cjs} +1 -1
- package/dist/{google-meet-icon_5.entry-f1f05903.js → google-meet-icon_5.entry-eb9f7d93.js} +14 -14
- package/dist/inbox-icon.entry-a385095d.js +16 -0
- package/dist/inbox-icon.entry-fa9085cd.cjs +1 -0
- package/dist/index-ad781fbc.js +24639 -0
- package/dist/index-dc6efb5e.cjs +118 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.es-ccb2a286-9a2c0934.cjs +7 -0
- package/dist/index.es-ccb2a286-dfa2bfbe.js +2724 -0
- package/dist/{info-icon_2.entry-bbcefb9a.cjs → info-icon_2.entry-9f32753b.cjs} +1 -1
- package/dist/{info-icon_2.entry-b3b313ab.js → info-icon_2.entry-c18a111e.js} +3 -3
- package/dist/{input-component.entry-401b9ba5.js → input-component.entry-eae64f46.js} +12 -12
- package/dist/{input-component.entry-ec8e8e7c.cjs → input-component.entry-ff9e04c9.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-c37f392c.js → input-dropdown_2.entry-1b55ef0c.js} +3 -3
- package/dist/{input-dropdown_2.entry-8cb11601.cjs → input-dropdown_2.entry-67d6d292.cjs} +1 -1
- package/dist/italic-icon.entry-4266a817.js +16 -0
- package/dist/{italic-icon.entry-6675558a.cjs → italic-icon.entry-843feb2b.cjs} +1 -1
- package/dist/{elements → lib/elements}/index.d.ts +1 -1
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/main.d.ts +0 -0
- package/dist/lib/notetaker/CalendarSync/CalendarSync.d.ts +37 -0
- package/dist/lib/notetaker/CalendarSync/CalendarSync.spec.d.ts +0 -0
- package/dist/lib/notetaker/SendNotetaker/SendNotetaker.d.ts +31 -0
- package/dist/lib/notetaker/SendNotetaker/SendNotetaker.spec.d.ts +1 -0
- package/dist/lib/notetaker/Transcript/Transcript.d.ts +23 -0
- package/dist/lib/notetaker/Transcript/Transcript.spec.d.ts +0 -0
- package/dist/lib/notetaker/VideoPlayer/VideoPlayer.d.ts +22 -0
- package/dist/lib/notetaker/VideoPlayer/VideoPlayer.spec.d.ts +1 -0
- package/dist/lib/notetaker/index.d.ts +9 -0
- package/dist/lib/notetaker/lib/constants.d.ts +12 -0
- package/dist/lib/notetaker/lib/http-client.d.ts +2 -0
- package/dist/lib/notetaker/lib/primitives.d.ts +66 -0
- package/dist/lib/notetaker/lib/store.d.ts +7 -0
- package/dist/lib/notetaker/types.d.ts +42 -0
- package/dist/multi-select-dropdown.entry-854265ef.js +121 -0
- package/dist/multi-select-dropdown.entry-ca9acf75.cjs +1 -0
- package/dist/nylas-booked-event-card_11.entry-8d3e2019.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-e7464ae7.js → nylas-booked-event-card_11.entry-ccf30d91.js} +515 -549
- package/dist/{nylas-form-card.entry-a3186807.js → nylas-form-card.entry-481ede48.js} +3 -3
- package/dist/{nylas-form-card.entry-cbb00fba.cjs → nylas-form-card.entry-58162c72.cjs} +1 -1
- package/dist/nylas-notification_2.entry-7d3ed3b0.js +85 -0
- package/dist/nylas-notification_2.entry-dffa3ff6.cjs +1 -0
- package/dist/nylas-scheduler-editor.entry-9744694a.cjs +2 -0
- package/dist/{nylas-scheduler-editor.entry-7b188a38.js → nylas-scheduler-editor.entry-aa079dff.js} +160 -136
- package/dist/nylas-scheduling.entry-7441979c.js +988 -0
- package/dist/nylas-scheduling.entry-b1fcb48f.cjs +1 -0
- package/dist/{person-icon.entry-d2856f08.js → person-icon.entry-23a69633.js} +7 -7
- package/dist/{person-icon.entry-8998fdb8.cjs → person-icon.entry-acf4d22b.cjs} +1 -1
- package/dist/play-icon.entry-4e7884d4.js +16 -0
- package/dist/{play-icon.entry-99eb969b.cjs → play-icon.entry-aa088180.cjs} +1 -1
- package/dist/{radio-button-group.entry-bc3b12fd.js → radio-button-group.entry-243d7988.js} +2 -2
- package/dist/{radio-button-group.entry-d66edd04.cjs → radio-button-group.entry-cea225c8.cjs} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +135 -126
- package/dist/{refresh-icon.entry-99d1982d.cjs → refresh-icon.entry-96cb008f.cjs} +1 -1
- package/dist/{refresh-icon.entry-d6df8b1c.js → refresh-icon.entry-d1603555.js} +2 -2
- package/dist/{register-component-62d792d4-448b6a43.js → register-component-9d4ceee5-46f58baf.js} +1 -1
- package/dist/{register-component-62d792d4-c6e7d129.cjs → register-component-9d4ceee5-6fabc42c.cjs} +1 -1
- package/dist/{reply-all-icon.entry-d7c44139.cjs → reply-all-icon.entry-537f7718.cjs} +1 -1
- package/dist/{reply-all-icon.entry-7ebf01a0.js → reply-all-icon.entry-6fae7288.js} +2 -2
- package/dist/{reply-icon.entry-058c00e8.cjs → reply-icon.entry-72fa6e4c.cjs} +1 -1
- package/dist/{reply-icon.entry-d1622d85.js → reply-icon.entry-ae114e35.js} +5 -5
- package/dist/sent-icon.entry-30a6ac17.cjs +1 -0
- package/dist/sent-icon.entry-b10d5e26.js +16 -0
- package/dist/spam-icon.entry-357aa525.cjs +1 -0
- package/dist/spam-icon.entry-bed45849.js +16 -0
- package/dist/{star-icon.entry-98b80645.js → star-icon.entry-010349a5.js} +4 -4
- package/dist/{star-icon.entry-4db13fdb.cjs → star-icon.entry-53c85ebb.cjs} +1 -1
- package/dist/{stop-icon.entry-0290fd30.js → stop-icon.entry-18f650bf.js} +2 -2
- package/dist/{stop-icon.entry-9d7b53fd.cjs → stop-icon.entry-20af3bf5.cjs} +1 -1
- package/dist/style.css +1 -0
- package/dist/test/vitest.setup.d.ts +0 -0
- package/dist/{textarea-component.entry-9b474ab5.cjs → textarea-component.entry-b19642f1.cjs} +1 -1
- package/dist/{textarea-component.entry-a62c257b.js → textarea-component.entry-e6120440.js} +2 -2
- package/dist/{toggle-switch.entry-e423b793.js → toggle-switch.entry-32b0e964.js} +4 -4
- package/dist/{toggle-switch.entry-5dbfcd48.cjs → toggle-switch.entry-becdda2c.cjs} +1 -1
- package/dist/{translate-icon.entry-60c55a2e.js → translate-icon.entry-2308a8e4.js} +4 -4
- package/dist/{translate-icon.entry-f82fa6fc.cjs → translate-icon.entry-7cb7a479.cjs} +1 -1
- package/dist/trash-fill-icon.entry-7f410c82.js +16 -0
- package/dist/trash-fill-icon.entry-c70b9326.cjs +1 -0
- package/dist/{underline-icon.entry-0807a43d.cjs → underline-icon.entry-23f478f3.cjs} +1 -1
- package/dist/{underline-icon.entry-40028bc6.js → underline-icon.entry-58ef1a9f.js} +2 -2
- package/package.json +41 -17
- package/dist/add-circle-icon_2.entry-8a1c55bc.cjs +0 -1
- package/dist/add-circle-icon_2.entry-b4bbcfee.js +0 -26
- package/dist/archive-icon.entry-a2492cf3.js +0 -16
- package/dist/archive-icon.entry-e48d2356.cjs +0 -1
- package/dist/arrow-icon.entry-b1ecb2aa.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_36.entry-e9b92e0e.cjs +0 -6
- package/dist/calendar-check-icon_2.entry-5febbadf.cjs +0 -1
- package/dist/calendar-check-icon_2.entry-dfb0036d.js +0 -26
- package/dist/checkbox-component.entry-1aa5782f.cjs +0 -1
- package/dist/checkbox-component.entry-72a6aa72.js +0 -43
- package/dist/document-refresh-icon.entry-e500b4e3.js +0 -16
- package/dist/google-logo-icon_6.entry-fa76ffe3.cjs +0 -2
- package/dist/inbox-icon.entry-9a4628f2.cjs +0 -1
- package/dist/inbox-icon.entry-aa78ba8c.js +0 -16
- package/dist/index-1e75512f.cjs +0 -57
- package/dist/index-e8380973.js +0 -18492
- package/dist/index.es-fc8588de-034ead51.cjs +0 -7
- package/dist/index.es-fc8588de-c943eef6.js +0 -2908
- package/dist/italic-icon.entry-0e85d0d9.js +0 -16
- package/dist/multi-select-dropdown_2.entry-3eecf18a.js +0 -193
- package/dist/multi-select-dropdown_2.entry-e37c501d.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-fddc9ab8.cjs +0 -1
- package/dist/nylas-event-calendar_3.entry-e6669bbf.cjs +0 -11
- package/dist/nylas-scheduler-editor.entry-5c92901a.cjs +0 -2
- package/dist/nylas-scheduling.entry-970240f6.cjs +0 -1
- package/dist/nylas-scheduling.entry-e9929b03.js +0 -968
- package/dist/play-icon.entry-f949a80f.js +0 -16
- package/dist/sent-icon.entry-6c604512.cjs +0 -1
- package/dist/sent-icon.entry-fe12bc2f.js +0 -16
- package/dist/spam-icon.entry-45e5292e.cjs +0 -1
- package/dist/spam-icon.entry-b97c7709.js +0 -16
- package/dist/trash-fill-icon.entry-095caae3.cjs +0 -1
- package/dist/trash-fill-icon.entry-825055fd.js +0 -16
- package/dist/warning-icon.entry-24e37759.js +0 -16
- package/dist/warning-icon.entry-fce7c14f.cjs +0 -1
- /package/dist/{elements → lib/elements}/react-component-lib/createComponent.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/index.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/interfaces.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/attachProps.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/case.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/dev.d.ts +0 -0
- /package/dist/{elements → lib/elements}/react-component-lib/utils/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-dc6efb5e.cjs"),X=require("./abstract-provider-bdb7d9b4-12a95387.cjs"),x=require("./feedbackSync-b9c9e719-bee3fea1.cjs"),U=require("./index.es-ccb2a286-9a2c0934.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.2";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,...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.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-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.2"}connectedCallback(){t.debug("[nylas-scheduler] connectedCallback")}async componentWillLoad(){var l,d,p;t.debug("[nylas-scheduler] Component will load"),this.version="2.0.2",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,16 +1,16 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as s, h as t } from "./index-ad781fbc.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const
|
|
6
|
-
constructor(
|
|
7
|
-
|
|
5
|
+
const o = ".sc-person-icon-h{display:flex}", r = o, c = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
s(this, e), this.width = "14", this.height = "16";
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return t("svg", { key: "
|
|
10
|
+
return t("svg", { key: "67c72253df839c3d7b5b72ae85e9e86f7663b3e0", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("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" }));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
c.style = r;
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
c as person_icon
|
|
16
16
|
};
|
|
@@ -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-dc6efb5e.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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { r as o, h as t } from "./index-ad781fbc.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const s = ".sc-play-icon-h{display:flex}", i = s, r = class {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
o(this, e), this.width = "15", this.height = "15";
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return t("svg", { key: "0be83196ef8fbead9f7086dbafd33ccea90ef637", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "d2c346fe88da1566360c9ad3a49144cc8e11634a", d: "M21 12L3 21V3L21 12Z", stroke: "auto", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
r.style = i;
|
|
14
|
+
export {
|
|
15
|
+
r as play_icon
|
|
16
|
+
};
|
|
@@ -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-dc6efb5e.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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as a, a as r, h as l, g as o } from "./index-
|
|
1
|
+
import { r as a, a as r, h as l, g as o } from "./index-ad781fbc.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
@@ -30,7 +30,7 @@ const s = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--n
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return l("div", { key: "
|
|
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
34
|
}
|
|
35
35
|
get el() {
|
|
36
36
|
return o(this);
|
package/dist/{radio-button-group.entry-d66edd04.cjs → radio-button-group.entry-cea225c8.cjs}
RENAMED
|
@@ -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-dc6efb5e.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-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-dc6efb5e.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.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,139 +1,148 @@
|
|
|
1
|
-
import { a0 as l, a1 as
|
|
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, c5 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, c6 as ms, bR as ps, bS as gs, bT as ks, bU as us, bV as Es, bW as vs, bX as Ps, bY as Ss, c3 as fs, bZ as hs, b_ as Ts, b$ as Bs, c0 as Fs, c4 as Ds, c1 as Ls, c2 as ws, c8 as As, _ as Rs, c7 as Ms, c9 as Gs, $ as xs, ca as Ws } from "./index-ad781fbc.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
export {
|
|
6
6
|
l as AddCircleIcon,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
c as ArchiveIcon,
|
|
8
|
+
i as ArrowIcon,
|
|
9
9
|
t as BoldIcon,
|
|
10
10
|
r as ButtonComponent,
|
|
11
11
|
b as CalendarAgendaFillIcon,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
y as CalendarAgendaIcon,
|
|
13
|
+
I as CalendarCancelIcon,
|
|
14
14
|
N as CalendarCheckIcon,
|
|
15
15
|
d as CalendarIcon,
|
|
16
16
|
C as CalendarInfoIcon,
|
|
17
17
|
m as CalendarPatternsIcon,
|
|
18
|
-
p as
|
|
19
|
-
g as
|
|
20
|
-
k as
|
|
21
|
-
u as
|
|
22
|
-
E as
|
|
23
|
-
v as
|
|
24
|
-
P as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
B as
|
|
30
|
-
F as
|
|
31
|
-
D as
|
|
32
|
-
L as
|
|
33
|
-
w as
|
|
34
|
-
A as
|
|
35
|
-
R as
|
|
36
|
-
M as
|
|
37
|
-
G as
|
|
38
|
-
x as
|
|
39
|
-
W as
|
|
40
|
-
z as
|
|
41
|
-
O as
|
|
42
|
-
U as
|
|
43
|
-
q as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
X as
|
|
54
|
-
Y as
|
|
55
|
-
aa as
|
|
56
|
-
sa as
|
|
57
|
-
oa as
|
|
58
|
-
na as
|
|
59
|
-
ea as
|
|
60
|
-
la as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
ta as
|
|
64
|
-
ra as
|
|
65
|
-
ba as
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
Na as
|
|
69
|
-
da as
|
|
70
|
-
Ca as
|
|
71
|
-
ma as
|
|
72
|
-
pa as
|
|
73
|
-
ga as
|
|
74
|
-
ka as
|
|
75
|
-
ua as
|
|
76
|
-
Ea as
|
|
77
|
-
va as
|
|
78
|
-
Pa as
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
Ba as
|
|
84
|
-
Fa as
|
|
85
|
-
Da as
|
|
86
|
-
La as
|
|
87
|
-
wa as
|
|
88
|
-
Aa as
|
|
89
|
-
Ra as
|
|
90
|
-
Ma as
|
|
91
|
-
Ga as
|
|
92
|
-
xa as
|
|
93
|
-
Wa as
|
|
94
|
-
za as
|
|
95
|
-
Oa as
|
|
96
|
-
Ua as
|
|
97
|
-
qa as
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Xa as
|
|
108
|
-
Ya as
|
|
109
|
-
as as
|
|
110
|
-
ss as
|
|
111
|
-
os as
|
|
112
|
-
ns as
|
|
113
|
-
es as
|
|
114
|
-
ls as
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
ts as
|
|
118
|
-
rs as
|
|
119
|
-
bs as
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
Bs as
|
|
138
|
-
Fs as
|
|
18
|
+
p as CalendarSync,
|
|
19
|
+
g as CheckboxComponent,
|
|
20
|
+
k as CheckboxGroup,
|
|
21
|
+
u as CheckmarkCircleIcon,
|
|
22
|
+
E as CheckmarkIcon,
|
|
23
|
+
v as ChevronIcon,
|
|
24
|
+
P as ClockIcon,
|
|
25
|
+
S as CloseIcon,
|
|
26
|
+
f as CopyIcon,
|
|
27
|
+
h as DeleteIcon,
|
|
28
|
+
T as DocumentRefreshIcon,
|
|
29
|
+
B as DragableIcon,
|
|
30
|
+
F as EditIcon,
|
|
31
|
+
D as EnvelopeFillIcon,
|
|
32
|
+
L as EnvelopeIcon,
|
|
33
|
+
w as EyeIcon,
|
|
34
|
+
A as FeedbackIcon,
|
|
35
|
+
R as FlowIcon,
|
|
36
|
+
M as FolderIcon,
|
|
37
|
+
G as ForwardIcon,
|
|
38
|
+
x as GlobeIcon,
|
|
39
|
+
W as GoogleLogoIcon,
|
|
40
|
+
z as GoogleMeetIcon,
|
|
41
|
+
O as InboxIcon,
|
|
42
|
+
U as InfoIcon,
|
|
43
|
+
q as InputColorPicker,
|
|
44
|
+
V as InputComponent,
|
|
45
|
+
Z as InputDropdown,
|
|
46
|
+
_ as InputImageUrl,
|
|
47
|
+
$ as ItalicIcon,
|
|
48
|
+
j as LoadingIcon,
|
|
49
|
+
H as LocationIcon,
|
|
50
|
+
J as LocationOffIcon,
|
|
51
|
+
K as MicrosoftLogoIcon,
|
|
52
|
+
Q as MicrosoftTeamsIcon,
|
|
53
|
+
X as MultiSelectDropdown,
|
|
54
|
+
Y as NylasAdditionalParticipants,
|
|
55
|
+
aa as NylasAvailabilityPicker,
|
|
56
|
+
sa as NylasBookedEventCard,
|
|
57
|
+
oa as NylasBookingCalendarPicker,
|
|
58
|
+
na as NylasBookingConfirmationRedirect,
|
|
59
|
+
ea as NylasBookingConfirmationType,
|
|
60
|
+
la as NylasBookingForm,
|
|
61
|
+
ca as NylasBookingFormConfig,
|
|
62
|
+
ia as NylasBufferTime,
|
|
63
|
+
ta as NylasCalendarPicker,
|
|
64
|
+
ra as NylasCancelBookingForm,
|
|
65
|
+
ba as NylasCancellationPolicy,
|
|
66
|
+
ya as NylasCancelledEventCard,
|
|
67
|
+
Ia as NylasConfirmationEmail,
|
|
68
|
+
Na as NylasConfirmedEventCard,
|
|
69
|
+
da as NylasConnectedCalendars,
|
|
70
|
+
Ca as NylasCustomBookingFlow,
|
|
71
|
+
ma as NylasCustomEventSlug,
|
|
72
|
+
pa as NylasCustomizeBookingSettings,
|
|
73
|
+
ga as NylasDateComponent,
|
|
74
|
+
ka as NylasDatePicker,
|
|
75
|
+
ua as NylasDisableEmails,
|
|
76
|
+
Ea as NylasEditorTabs,
|
|
77
|
+
va as NylasEditorTabsGroup,
|
|
78
|
+
Pa as NylasEventCalendar,
|
|
79
|
+
Sa as NylasEventCapacity,
|
|
80
|
+
fa as NylasEventDescription,
|
|
81
|
+
ha as NylasEventDuration,
|
|
82
|
+
Ta as NylasEventInfo,
|
|
83
|
+
Ba as NylasEventLimits,
|
|
84
|
+
Fa as NylasEventLocation,
|
|
85
|
+
Da as NylasEventTimeslot,
|
|
86
|
+
La as NylasEventTitle,
|
|
87
|
+
wa as NylasFeedbackForm,
|
|
88
|
+
Aa as NylasFormCard,
|
|
89
|
+
Ra as NylasIdentityRequestWrapper,
|
|
90
|
+
Ma as NylasLimitFutureBookings,
|
|
91
|
+
Ga as NylasListConfigurations,
|
|
92
|
+
xa as NylasLocaleSwitch,
|
|
93
|
+
Wa as NylasLogo,
|
|
94
|
+
za as NylasMinBookingNotice,
|
|
95
|
+
Oa as NylasMinCancellationNotice,
|
|
96
|
+
Ua as NylasNotification,
|
|
97
|
+
qa as NylasOrganizerConfirmationCard,
|
|
98
|
+
Va as NylasPageName,
|
|
99
|
+
Za as NylasPageStyling,
|
|
100
|
+
_a as NylasParticipantBookingCalendars,
|
|
101
|
+
$a as NylasParticipantsCustomAvailability,
|
|
102
|
+
ja as NylasReminderEmails,
|
|
103
|
+
Ha as NylasReminderTime,
|
|
104
|
+
Ja as NylasSchedulerEditor,
|
|
105
|
+
Ka as NylasScheduling,
|
|
106
|
+
Qa as NylasSchedulingMethod,
|
|
107
|
+
Xa as NylasSelectEventType,
|
|
108
|
+
Ya as NylasSelectedEventCard,
|
|
109
|
+
as as NylasTimeWindowPicker,
|
|
110
|
+
ss as NylasTimeslotInterval,
|
|
111
|
+
os as NylasTimeslotPicker,
|
|
112
|
+
ns as PaintbrushFillIcon,
|
|
113
|
+
es as PaintbrushIcon,
|
|
114
|
+
ls as PeopleIcon,
|
|
115
|
+
cs as PersonClipboardIcon,
|
|
116
|
+
is as PersonIcon,
|
|
117
|
+
ts as PlayIcon,
|
|
118
|
+
rs as PlusIcon,
|
|
119
|
+
bs as RadioButtonGroup,
|
|
120
|
+
ys as RefreshIcon,
|
|
121
|
+
Is as ReplyAllIcon,
|
|
122
|
+
Ns as ReplyIcon,
|
|
123
|
+
ds as SearchIcon,
|
|
124
|
+
Cs as SelectDropdown,
|
|
125
|
+
ms as SendNotetaker,
|
|
126
|
+
ps as SentIcon,
|
|
127
|
+
gs as SpamIcon,
|
|
128
|
+
ks as StarIcon,
|
|
129
|
+
us as StopIcon,
|
|
130
|
+
Es as TextareaComponent,
|
|
131
|
+
vs as TimePeriodSelector,
|
|
132
|
+
Ps as ToggleSwitch,
|
|
133
|
+
Ss as TooltipComponent,
|
|
134
|
+
fs as Transcript,
|
|
135
|
+
hs as TranslateIcon,
|
|
136
|
+
Ts as TrashFillIcon,
|
|
137
|
+
Bs as TrashIcon,
|
|
138
|
+
Fs as UnderlineIcon,
|
|
139
|
+
Ds as VideoPlayer,
|
|
140
|
+
Ls as WarningIcon,
|
|
141
|
+
ws as ZoomIcon,
|
|
142
|
+
As as calendarSyncStore,
|
|
143
|
+
Rs as defineCustomElements,
|
|
144
|
+
Ms as provider,
|
|
145
|
+
Gs as sendNotetakerStore,
|
|
146
|
+
xs as setNonce,
|
|
147
|
+
Ws as videoPlayerStore
|
|
139
148
|
};
|
|
@@ -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-dc6efb5e.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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, h as c } from "./index-
|
|
1
|
+
import { r as t, h as c } from "./index-ad781fbc.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
@@ -7,7 +7,7 @@ const e = ".sc-refresh-icon-h{display:flex}", i = e, l = class {
|
|
|
7
7
|
t(this, s), this.width = "15", this.height = "15";
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return c("svg", { key: "
|
|
10
|
+
return c("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("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" }));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
l.style = i;
|