mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
1 line
117 KiB
JavaScript
1 line
117 KiB
JavaScript
|
|
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[1858,6527,5763,2417,3756,6055,5457,1087,4413,5183,5802,9391,1485,9074,4176,9406],{42482:function(e,t,n){var o,i,a;!function(r){if("object"==typeof e.exports){var s=r(0,t);void 0!==s&&(e.exports=s)}else i=[n,t],void 0===(a="function"==typeof(o=r)?o.apply(t,i):o)||(e.exports=a)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["pt",[["AM","PM"],n,n],n,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],n,[["a.C.","d.C."],n,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],JPY:["JP\xa5","\xa5"],PTE:["Esc."],RON:[n,"L"],SYP:[n,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return t===Math.floor(t)&&t>=0&&t<=1?1:5}]})},61858:function(e,t,n){"use strict";n.r(t),n.d(t,{AgendaPageModule:function(){return an}});var o=n(37716),i=n(38583),a=n(3679),r=n(35957),s=n(39895),c=n(64762),d=n(87732),l=n(86807),p=n(44940),g=n(32743),h=n(59326),m=n(313),v=n(90104);let u=(()=>{class e extends m.m${dayViewHour({date:e,locale:t}){return(0,i.p6)(e,"HH",t)}weekViewHour({date:e,locale:t}){return this.dayViewHour({date:e,locale:t})}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=o.n5z(e)))(n||e)}}(),e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e})();var f=n(56410);class C{constructor(){}EventEndDateTreatment({startTime:e,endTime:t}){const n=new Date(e).toLocaleDateString(),o=new Date(t).toLocaleDateString(),i=new Date(t).getMinutes(),a=new Date(t).getHours();return n<o&&i+a==0?((t=new Date(t)).setSeconds(t.getSeconds()-1),new Date(t)):new Date(t)}filterProfile(e,t){return e.filter(e=>e.profile==t)}getEventInsideRange(e,t,n){return e.filter(e=>new Date(t).getTime()<=new Date(e.startTime).getTime()&&new Date(n).getTime()>=new Date(e.endTime).getTime())}daysBetween(){}list(e,t,n,o,i){return"all"!=t&&(e=this.filterProfile(e,t)),e=this.getEventInsideRange(e,n,o),e=this.encapsulation(e,"md"==t?"mdgpr":"pr"),this.display(e)}display(e){let t={};return e.forEach((e,n)=>{var o=new Date(e.start),i=this.EventEndDateTreatment({startTime:o,endTime:e.end});const a=new Date(e.start).getDate().toString().padStart(2,"0");if(e.manyDays=!1,e.todayOnly=new Date(e.start).toLocaleDateString()==new Date(e.end).toLocaleDateString(),t.hasOwnProperty(a)||(t[a]=[]),new Date(o).toLocaleDateString()!=new Date(i).toLocaleDateString()){const n=Math.abs(i-o),r=Math.ceil(n/864e5);if(r<=150&&!e.event.IsAllDayEvent)if(r>=1){const n=Object.assign({},{title:e.title,start:e.start,end:e.end,color:e.color,id:e.id,index:e.index,profile:e.profile,CalendarName:e.CalendarName,event:{Subject:e.event.Subject,StartDate:e.event.StartDate,EndDate:e.event.EndDate,Location:e.event.Location,EventId:e.event.EventId,CalendarName:e.event.CalendarName},startMany:!0,endMany:!1,middle:!1});t[a].push(n);let r=1;for(;o.getFullYear()!=i.getFullYear()||o.getMonth()!=i.getMonth()||o.getDate()!=i.getDate();){const n=o.setDate(o.getDate()+r);let a=new Date(n).getDate().toString().padStart(2,"0");if(e.other=!0,e.start=n,t.hasOwnProperty(a)||(t[a]=[]),o.getFullYear()==i.getFullYear()&&o.getMonth()==i.getMonth()&&o.getDate()==i.getDate()){const n=Object.assign({},{title:e.title,start:e.start,end:e.end,color:e.color,id:e.id,index:e.index,profile:e.profile,CalendarName:e.
|