"use strict";(self.webpackChunkpyams_app_msc=self.webpackChunkpyams_app_msc||[]).push([[539],{3539:(t,e,n)=>{n.r(e),n.d(e,{default:()=>u});var a=n(7363),i=n(2263),r=n(3041),o=n(8680),l=n(9435),c=n(4692),d=function(t,e,n,d){return new Promise(function(u,f){t.data();var v={plugins:[o.Ay,i.A,r.A,l.A],initialView:window.innerWidth<768?"listMonth":"dayGridMonth",themeSystem:"bootstrap",locale:c("html").attr("lang"),headerToolbar:{start:"title",center:"today",right:"prev,next"},bootstrapFontAwesome:{prev:"fa-chevron-left",next:"fa-chevron-right"},firstDay:1,weekNumberCalculation:"ISO",eventDidMount:s.mountedEvent,eventClick:s.clickEvent};v=c.extend({},v,e,n),t.trigger("calendar.init",[t,v]);var h=new a.Vv(t.get(0),v);t.trigger("calendar.finishing",[t,h,v]),d&&d(h,e),t.trigger("calendar.finished",[t,h,v]),h.render(),u(h)})},s={init:function(t,e,n){var a=c.map(t,function(t){return new Promise(function(a,i){var r=c(t),o=r.data(),l=o.calendarConfig;l?a(d(r,l,e,n)):c.get(o.calendarUrl||"get-calendar-configuration.json",function(t){a(d(r,t,e,n))})})});c.when.apply(c,a).then()},mountedEvent:function(t){var e=c("html").attr("lang"),n=c(t.el),a=t.event,i=new Intl.DateTimeFormat(e,{hour:"2-digit",minute:"2-digit"}).format(a.start);n.tooltip({title:"background"===a.display?a.title:"".concat(i," - ").concat(a.title)})},clickEvent:function(t){var e,n=null===(e=t.event.extendedProps)||void 0===e?void 0:e.href;n&&(window.location.href=n)}};const u=s}}]);