(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-276cf468"],{4064:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("ac1f"),a("5319");var n={name:"AddCalendarsPanel",props:{},data:function(){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:function(){},methods:{createCalendar:function(){var e=this;if(!this.isValidCalendarInfo())return this.showAlert=!0,this.alertType="warning",void(this.alertTitle=this.$t("calendarPanelNotificationEmpty"));this.createLoading=!0,window.zoomSdk.postJsMessage({functionName:"calendarui_createcalendar",params:this.calendarInfo}).then((function(){e.createLoading=!1,e.showAlert=!0,e.alertType="success",e.alertTitle=e.$t("calendarPanelNotificationSuccess",{name:e.calendarInfo.displayName}),e.$emit("refreshCalendarList"),e.initCalendarInfo()})).catch((function(){e.showAlert=!0,e.alertType="error",e.alertTitle=e.$t("calendarPanelNotificationFailed"),e.createLoading=!1}))},isValidCalendarInfo:function(){return 0!==this.calendarInfo.displayName.replace(/\s+/g,"").length},initCalendarInfo:function(){this.calendarInfo={calendarId:this.$store.state.currentUser.calendarId,displayName:"",summary:"",description:"",timeZone:this.$store.state.calendarSettings.timezone}},closeAlertCallBack:function(){this.showAlert=!1,this.alertType="",this.alertTitle=""}}};t.default=n},"496f":function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.staticRenderFns=t.render=void 0,a("99af"),a("a4d3"),a("e01a");var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"add-calendar-panel-view"},[t("div",{staticClass:"create-new-calendar"},[t("p",{staticClass:"option-title"},[e._v(" "+e._s(e.$t("createSettingCreateBtn"))+" ")]),t("div",{staticClass:"alert-box"},[e.showAlert?t("zm-alert",{attrs:{title:e.alertTitle,type:e.alertType},on:{close:e.closeAlertCallBack}}):e._e()],1),t("div",{staticClass:"advance-option"},[t("div",{staticClass:"options-label"},[e._v(" "+e._s(e.$t("createSettingName"))+" ")]),t("zm-input",{staticClass:"options-field",attrs:{size:"small",label:e.$t("createSettingName"),clearable:""},model:{value:e.calendarInfo.displayName,callback:function(t){e.$set(e.calendarInfo,"displayName",t)},expression:"calendarInfo.displayName"}})],1),t("div",{staticClass:"advance-option"},[t("div",{staticClass:"options-label"},[e._v(" "+e._s(e.$t("createSettingDescription"))+" "),t("span",{style:{color:"#646B74"}},[e._v(e._s(e.$t("createSettingOptional")))])]),t("zm-input",{staticClass:"options-field",attrs:{type:"textarea",rows:3,label:"".concat(e.$t("createSettingDescription")).concat(e.$t("createSettingOptional")),placeholder:e.$t("createSettingDescriptionForPlaceholder"),size:"small",clearable:""},model:{value:e.calendarInfo.description,callback:function(t){e.$set(e.calendarInfo,"description",t)},expression:"calendarInfo.description"}})],1),t("div",{staticClass:"advance-option"},[t("div",{staticClass:"options-label"},[e._v(" "+e._s(e.$t("createSettingOwner"))+" ")]),t("div",{staticClass:"options-value"},[e._v(" "+e._s(e.$store.state.currentUser.displayName)+" ")])]),t("div",{staticClass:"advance-option create-btn"},[t("zm-button",{attrs:{type:"primary",loading:e.createLoading},on:{click:e.createCalendar}},[e._v(" "+e._s(e.$t("createSettingCreateBtn"))+" ")])],1)])])};t.render=n;var i=[];t.staticRenderFns=i},"6e23":function(e,t,a){},7642:function(e,t,a){"use strict";var n=a("496f");a.o(n,"render")&&a.d(t,"render",(function(){return n["render"]})),a.o(n,"staticRenderFns")&&a.d(t,"staticRenderFns",(function(){return n["staticRenderFns"]}))},8294:function(e,t,a){"use strict";a("6e23")},ba68:function(e,t,a){"use strict";a.r(t);var n=a("4064"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},ebbb:function(e,t,a){"use strict";a.r(t);var n=a("7642"),i=a("ba68");for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);a("8294");var s=a("2877"),l=Object(s["a"])(i["default"],n["render"],n["staticRenderFns"],!1,null,null,null);t["default"]=l.exports}}]);