(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a946649e"],{4064:function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t={name:"AddCalendarsPanel",props:{},data(){return{commonState:this.$store.state,calendarInfo:{calendarId:this.$store.state.currentUser.calendarId,displayName:"",summary:"",description:"",timeZone:this.$store.state.calendarSettings.timezone},createLoading:!1,showAlert:!1,alertType:"",alertTitle:""}},created(){},methods:{createCalendar(){if(!this.isValidCalendarInfo())return this.showAlert=!0,this.alertType="warning",void(this.alertTitle="Calendar name cannot be empty");this.createLoading=!0,window.zoomSdk.postJsMessage({functionName:"calendarui_createcalendar",params:this.calendarInfo}).then(()=>{this.createLoading=!1,this.showAlert=!0,this.alertType="success",this.alertTitle=`Your calendar “${this.calendarInfo.displayName}” was created successfully.`,this.$emit("refreshCalendarList"),this.initCalendarInfo()}).catch(()=>{this.showAlert=!0,this.alertType="error",this.alertTitle="Failed to create",this.createLoading=!1})},isValidCalendarInfo(){return 0!==this.calendarInfo.displayName.replace(/\s+/g,"").length},initCalendarInfo(){this.calendarInfo={calendarId:this.$store.state.currentUser.calendarId,displayName:"",summary:"",description:"",timeZone:this.$store.state.calendarSettings.timezone}},closeAlertCallBack(){this.showAlert=!1,this.alertType="",this.alertTitle=""}}};a.default=t},"882d":function(e,a,t){"use strict";var n=t("c740");t.o(n,"render")&&t.d(a,"render",(function(){return n["render"]})),t.o(n,"staticRenderFns")&&t.d(a,"staticRenderFns",(function(){return n["staticRenderFns"]}))},a445:function(e,a,t){"use strict";t("f54c")},ba68:function(e,a,t){"use strict";t.r(a);var n=t("4064"),s=t.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){t.d(a,e,(function(){return n[e]}))}(r);a["default"]=s.a},c740:function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.staticRenderFns=a.render=void 0;var t=function(){var e=this,a=e._self._c;return a("div",{staticClass:"add-calendar-panel-view"},[a("div",{staticClass:"create-new-calendar"},[a("p",{staticClass:"option-title"},[e._v("Create Calendar")]),a("div",{staticClass:"alert-box"},[e.showAlert?a("zm-alert",{attrs:{title:e.alertTitle,type:e.alertType},on:{close:e.closeAlertCallBack}}):e._e()],1),a("div",{staticClass:"advance-option"},[a("div",{staticClass:"options-label"},[e._v("Calendar Name")]),a("zm-input",{staticClass:"options-field",attrs:{size:"small",clearable:""},model:{value:e.calendarInfo.displayName,callback:function(a){e.$set(e.calendarInfo,"displayName",a)},expression:"calendarInfo.displayName"}})],1),a("div",{staticClass:"advance-option"},[a("div",{staticClass:"options-label"},[e._v("Calendar Description "),a("span",{style:{color:"#646B74"}},[e._v("(Optional)")])]),a("zm-input",{staticClass:"options-field",attrs:{type:"textarea",rows:3,placeholder:"What’s this calendar for?",size:"small",clearable:""},model:{value:e.calendarInfo.description,callback:function(a){e.$set(e.calendarInfo,"description",a)},expression:"calendarInfo.description"}})],1),a("div",{staticClass:"advance-option"},[a("div",{staticClass:"options-label"},[e._v("Owner")]),a("div",{staticClass:"options-value"},[e._v(e._s(e.$store.state.currentUser.displayName))])]),a("div",{staticClass:"advance-option create-btn"},[a("zm-button",{attrs:{type:"primary",loading:e.createLoading},on:{click:e.createCalendar}},[e._v(e._s(e.$t("createSettingCreateBtn")))])],1)])])};a.render=t;var n=[];a.staticRenderFns=n},ebbb:function(e,a,t){"use strict";t.r(a);var n=t("882d"),s=t("ba68");for(var r in s)["default"].indexOf(r)<0&&function(e){t.d(a,e,(function(){return s[e]}))}(r);t("a445");var i=t("2877"),l=Object(i["a"])(s["default"],n["render"],n["staticRenderFns"],!1,null,null,null);a["default"]=l.exports},f54c:function(e,a,t){}}]);