(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5424b382"],{"0c8a":function(e,t,l){"use strict";var c=l("7a23");const n=e=>(Object(c["pushScopeId"])("data-v-160fda48"),e=e(),Object(c["popScopeId"])(),e),a={class:"columns"},i={key:0,class:"column is-5"},o={class:"card"},s=n(()=>Object(c["createElementVNode"])("div",{class:"card-header"},"Billing System - Tasks To-Do",-1)),r={class:"card-content",style:{overflow:"scroll",height:"150px","font-size":"smaller"}},d={class:"table is-bordered is-striped is-narrow fullwidth"},m=n(()=>Object(c["createElementVNode"])("tr",null,[Object(c["createElementVNode"])("th",null,"Task Due"),Object(c["createElementVNode"])("th",null,"Title"),Object(c["createElementVNode"])("th",null,"Task"),Object(c["createElementVNode"])("th",null,"Status")],-1)),h={key:1,class:"column"},b={class:"card"},u={class:"modal-card",style:{width:"95%",height:"95%"}},p=n(()=>Object(c["createElementVNode"])("header",{class:"modal-card-head"},[Object(c["createElementVNode"])("p",{class:"modal-card-title"},"Billing System Job Calendar")],-1)),f={class:"modal-card-body"},g={class:"modal-card-foot"},O={key:0,class:"path level"},j={class:"level-left"},y={key:1,class:"path-item"},k={key:0,class:"has-text-grey is-capitalized"},v={key:0},E={class:"buttons level-right"},N={key:1,class:"path level"},S={class:"path-item"},V={class:"path-item"},C={key:0,class:"has-text-grey is-capitalized"},w={class:"buttons ml-auto"};function M(e,t,l,n,M,x){const R=Object(c["resolveComponent"])("FullCalendar"),B=Object(c["resolveComponent"])("router-link");return Object(c["openBlock"])(),Object(c["createElementBlock"])(c["Fragment"],null,[Object(c["createElementVNode"])("div",{class:Object(c["normalizeClass"])(["box is-size-6 has-text-grey",{"is-sticky-top":l.isStickyTop}])},[Object(c["createElementVNode"])("div",a,[M.mctasks.length>0&&M.is_municadmin?(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",i,[Object(c["createElementVNode"])("div",o,[s,Object(c["createElementVNode"])("div",r,[Object(c["createElementVNode"])("table",d,[m,(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(M.mctasks,(e,t)=>(Object(c["openBlock"])(),Object(c["createElementBlock"])("tr",{key:t},[Object(c["createElementVNode"])("td",null,Object(c["toDisplayString"])(x.formatSQLDate(e.task_date)),1),Object(c["createElementVNode"])("td",null,Object(c["toDisplayString"])(e.billing_name),1),Object(c["createElementVNode"])("td",null,Object(c["toDisplayString"])(e.name),1),Object(c["createElementVNode"])("td",null,Object(c["toDisplayString"])(e.status),1)]))),128))])])])])):Object(c["createCommentVNode"])("",!0),M.mctasks.length>0&&M.is_municadmin?(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",h,[Object(c["createElementVNode"])("div",b,[Object(c["createElementVNode"])("img",{src:"https://cac-pub-stg.nyc3.cdn.digitaloceanspaces.com/assets/icons/calendar.png",onClick:t[0]||(t[0]=(...e)=>x.opencalendar&&x.opencalendar(...e)),title:"Click to open billing system calendar",height:"75",width:"75"})])])):Object(c["createCommentVNode"])("",!0),Object(c["createCommentVNode"])("",!0),Object(c["createCommentVNode"])("",!0)]),(Object(c["openBlock"])(),Object(c["createBlock"])(c["Teleport"],{to:"body"},[Object(c["createElementVNode"])("div",{class:Object(c["normalizeClass"])(["modal",{"is-active":M.calendarshowModal}])},[Object(c["createElementVNode"])("div",u,[p,Object(c["createElementVNode"])("section",f,[1==M.calendarshowModal?(Object(c["openBlock"])(),Object(c["createBlock"])(R,{key:0,options:M.calendarOptions},null,8,["options"])):Object(c["createCommentVNode"])("",!0)]),Object(c["createElementVNode"])("footer",g,[Object(c["createElementVNode"])("button",{style:{"margin-left":"auto","margin-right":"auto"},class:"button is-primary",onClick:t[1]||(t[1]=e=>x.closecalendar())}," Close Calendar ")])])],2)]))],2),Object(c["createElementVNode"])("div",{class:Object(c["normalizeClass"])(["box is-size-6 has-text-grey",{"is-sticky-top":l.isStickyTop}])},[M.breadCrumbs?(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",O,[Object(c["createElementVNode"])("div",j,[(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(M.breadCrumbs,(e,t)=>(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{class:"path-item",key:t},[t!=Object.keys(M.breadCrumbs).length-1?(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{key:0,class:Object(c["normalizeClass"])({"has-text-primary has-text-weight-semibold":e.link})},[Object(c["createVNode"])(B,{to:{name:e.link?e.link:""}},{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.title),1)]),_:2},1032,["to"])],2)):(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",y,[e.title?(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",k,[t>0?(Object(c["openBlock"])(),Object(c["createElementBlock"])("span",v,"/ ")):Object(c["createCommentVNode"])("",!0),Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.title),1)])):Object(c["createCommentVNode"])("",!0)]))]))),128))]),Object(c["createElementVNode"])("div",E,[Object(c["renderSlot"])(e.$slots,"default",{},void 0,!0)])])):(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",N,[Object(c["createElementVNode"])("div",S,[Object(c["createElementVNode"])("div",{class:Object(c["normalizeClass"])(["",{"has-text-primary has-text-weight-semibold":l.pageTitleLink}])},[Object(c["createVNode"])(B,{to:{name:l.pageTitleLink?l.pageTitleLink:""}},{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(l.pageTitle),1)]),_:1},8,["to"])],2)]),Object(c["createElementVNode"])("div",V,[l.currentPage?(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",C,"/ "+Object(c["toDisplayString"])(l.currentPage),1)):Object(c["createCommentVNode"])("",!0)]),Object(c["createElementVNode"])("div",w,[Object(c["renderSlot"])(e.$slots,"default",{},void 0,!0)])]))],2)],64)}var x=l("bc3a"),R=l.n(x),B=l("3659"),D=l("3cdb"),T=l("a101"),P=l("1534"),z=l("6b46"),W=l("da65");class H extends z["Zb"]{constructor(){super(...arguments),this.buildDayTableModel=Object(z["ed"])(P["f"]),this.slicer=new P["c"],this.state={labelId:Object(z["I"])()}}render(){const{props:e,state:t,context:l}=this,{dateProfile:c,forPrint:n}=e,{options:a}=l,i=this.buildDayTableModel(c,l.dateProfileGenerator),o=this.slicer.sliceProps(e,c,a.nextDayThreshold,l,i),s=null!=e.tableWidth?e.tableWidth/a.aspectRatio:null,r=i.cells.length,d=null!=s?s/r:null;return Object(W["e"])("div",{ref:e.elRef,"data-date":e.isoDateStr,className:"fc-multimonth-month",style:{width:e.width},role:"grid","aria-labelledby":t.labelId},Object(W["e"])("div",{className:"fc-multimonth-header",style:{marginBottom:d},role:"presentation"},Object(W["e"])("div",{className:"fc-multimonth-title",id:t.labelId},l.dateEnv.format(e.dateProfile.currentRange.start,e.titleFormat)),Object(W["e"])("table",{className:["fc-multimonth-header-table",l.theme.getClass("table")].join(" "),role:"presentation"},Object(W["e"])("thead",{role:"rowgroup"},Object(W["e"])(z["Ib"],{dateProfile:e.dateProfile,dates:i.headerDates,datesRepDistinctDays:!1})))),Object(W["e"])("div",{className:["fc-multimonth-daygrid","fc-daygrid","fc-daygrid-body",!n&&"fc-daygrid-body-balanced",n&&"fc-daygrid-body-unbalanced",n&&"fc-daygrid-body-natural"].join(" "),style:{marginTop:-d}},Object(W["e"])("table",{className:["fc-multimonth-daygrid-table",l.theme.getClass("table")].join(" "),style:{height:n?"":s},role:"presentation"},Object(W["e"])("tbody",{role:"rowgroup"},Object(W["e"])(P["e"],Object.assign({},o,{dateProfile:c,cells:i.cells,eventSelection:e.eventSelection,dayMaxEvents:!n,dayMaxEventRows:!n,showWeekNumbers:a.weekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:n}))))))}}class _ extends z["Zb"]{constructor(){super(...arguments),this.splitDateProfileByMonth=Object(z["ed"])(I),this.buildMonthFormat=Object(z["ed"])(G),this.scrollElRef=Object(W["f"])(),this.firstMonthElRef=Object(W["f"])(),this.needsScrollReset=!1,this.handleSizing=e=>{e&&this.updateSize()}}render(){const{context:e,props:t,state:l}=this,{options:c}=e,{clientWidth:n,clientHeight:a}=l,i=l.monthHPadding||0,o=Math.min(null!=n?Math.floor(n/(c.multiMonthMinWidth+i)):1,c.multiMonthMaxColumns)||1,s=100/o+"%",r=null==n?null:n/o-i,d=null!=n&&1===o,m=this.splitDateProfileByMonth(e.dateProfileGenerator,t.dateProfile,e.dateEnv,!d&&c.fixedWeekCount,c.showNonCurrentDates),h=this.buildMonthFormat(c.multiMonthTitleFormat,m),b=["fc-multimonth",d?"fc-multimonth-singlecol":"fc-multimonth-multicol",null!=r&&r<400?"fc-multimonth-compact":""];return Object(W["e"])(z["Dc"],{elRef:this.scrollElRef,elClasses:b,viewSpec:e.viewSpec},m.map((e,l)=>{const c=Object(z["mc"])(e.currentRange.start);return Object(W["e"])(H,Object.assign({},t,{key:c,isoDateStr:c,elRef:0===l?this.firstMonthElRef:void 0,titleFormat:h,dateProfile:e,width:s,tableWidth:r,clientWidth:n,clientHeight:a}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(e){Object(z["f"])(e,this.props)||this.handleSizing(!1),e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const e=this.scrollElRef.current,t=this.firstMonthElRef.current;e&&this.setState({clientWidth:e.clientWidth,clientHeight:e.clientHeight}),t&&e&&null==this.state.monthHPadding&&this.setState({monthHPadding:e.clientWidth-t.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&null!=this.state.monthHPadding){const{currentDate:e}=this.props.dateProfile,t=this.scrollElRef.current,l=t.querySelector(`[data-date="${Object(z["mc"])(e)}"]`);t.scrollTop=l.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const F=Object(z["Ic"])(1,"month");function I(e,t,l,c,n){const{start:a,end:i}=t.currentRange;let o=a;const s=[];while(o.valueOf()<i.valueOf()){const a=l.add(o,F),i={start:e.skipHiddenDays(o),end:e.skipHiddenDays(a,-1,!0)};let r=Object(P["g"])({currentRange:i,snapToWeek:!0,fixedWeekCount:c,dateEnv:l});r={start:e.skipHiddenDays(r.start),end:e.skipHiddenDays(r.end,-1,!0)};const d=t.activeRange?Object(z["Tc"])(t.activeRange,n?r:i):null;s.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:r,activeRange:d,currentRange:i,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),o=a}return s}const L=Object(z["cd"])({year:"numeric",month:"long"}),U=Object(z["cd"])({month:"long"});function G(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?L:U)}const Y={multiMonthTitleFormat:z["cd"],multiMonthMaxColumns:Number,multiMonthMinWidth:Number};var q=".fc .fc-multimonth{border:1px solid var(--fc-border-color);display:flex;flex-wrap:wrap;overflow-x:hidden;overflow-y:auto}.fc .fc-multimonth-title{font-size:1.2em;font-weight:700;padding:1em 0;text-align:center}.fc .fc-multimonth-daygrid{background:var(--fc-page-bg-color)}.fc .fc-multimonth-daygrid-table,.fc .fc-multimonth-header-table{table-layout:fixed;width:100%}.fc .fc-multimonth-daygrid-table{border-top-style:hidden!important}.fc .fc-multimonth-singlecol .fc-multimonth{position:relative}.fc .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:relative;top:0;z-index:2}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid{position:relative;z-index:1}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid-table,.fc .fc-multimonth-singlecol .fc-multimonth-header-table{border-left-style:hidden;border-right-style:hidden}.fc .fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-daygrid-table{border-bottom-style:hidden}.fc .fc-multimonth-multicol{line-height:1}.fc .fc-multimonth-multicol .fc-multimonth-month{padding:0 1.2em 1.2em}.fc .fc-multimonth-multicol .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);display:block;float:none;padding:1px}.fc .fc-multimonth-compact{line-height:1}.fc .fc-multimonth-compact .fc-multimonth-daygrid-table,.fc .fc-multimonth-compact .fc-multimonth-header-table{font-size:.9em}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{position:sticky}.fc-media-print .fc-multimonth{overflow:visible}";Object(z["Gc"])(q);var J=Object(T["b"])({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:Y,views:{multiMonth:{component:_,dateProfileGeneratorClass:P["d"],multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}}),$=l("4505"),Q={props:{pageTitle:String,pageTitleLink:String,currentPage:[Number,String],isStickyTop:{type:Boolean,default:!0}},components:{FullCalendar:B["a"]},computed:{},mounted(){"true"==localStorage.getItem("isMunicipalityUser")?(this.is_municadmin=!0,this.loadopentasks(),this.fetchEvents()):this.is_municadmin=!1},watch:{},data(){return{is_municadmin:!1,mctasks:[],calendarOptions:{plugins:[D["a"],J,$["a"]],initialView:"dayGridMonth",height:600,headerToolbar:{center:"dayGridMonth,multiMonthYear",right:"prev,next"},events:[]},calendarshowModal:!1,breadCrumbs:!0}},methods:{loadopentasks(){R.a.get("mastercalendar/getopentasks").then(e=>{this.mctasks=e.data.mctasks})},fetchEvents(){let e;R.a.get("mastercalendar/getcurentjobs",{}).then(t=>{e=t.data.events,this.calendarOptions.events=[],e.forEach(e=>{this.calendarOptions.events.push({title:e.billing_name,start:e.billing_date,end:e.billing_date})})})},opencalendar(){this.calendarshowModal=!0},closecalendar(){this.calendarshowModal=!1},formatSQLDate(e){let t=new Date(e);return t.toLocaleDateString("en-us",{month:"numeric",day:"numeric",year:"numeric"})}}},Z=(l("fcce"),l("6b0d")),A=l.n(Z);const K=A()(Q,[["render",M],["__scopeId","data-v-160fda48"]]);t["a"]=K},"3c87":function(e,t,l){},fcce:function(e,t,l){"use strict";l("3c87")}}]);