1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3596],{65368:(N,p,s)=>{s.r(p),s.d(p,{AppointmentsPageModule:()=>V});var n=s(91368),g=s(44716),h=s(83068),_=s(89192),A=s(50048),I=s(53084),f=s(4396),T=s(25208),R=s(95657),l=s(25852),e=s(32116),w=s(72852),b=s(36032),D=s(57460);const u=["modalContent"];function G(r,m){if(1&r){const a=e.KQA();e.I0R(0,"mwl-calendar-month-view",11),e.qCj("dayClicked",function(i){e.usT(a);const o=e.GaO();return e.CGJ(o.dayClicked(i.day))})("eventClicked",function(i){e.usT(a);const o=e.GaO();return e.CGJ(o.handleEvent("Clicked",i.event))})("eventTimesChanged",function(i){e.usT(a);const o=e.GaO();return e.CGJ(o.eventTimesChanged(i))}),e.C$Y()}if(2&r){const a=e.GaO();e.E7m("viewDate",a.viewDate)("events",a.leadWatcher.appointments.data)("refresh",a.refresh)("activeDayIsOpen",a.activeDayIsOpen)}}function k(r,m){if(1&r){const a=e.KQA();e.I0R(0,"mwl-calendar-week-view",12),e.qCj("eventClicked",function(i){e.usT(a);const o=e.GaO();return e.CGJ(o.handleEvent("Clicked",i.event))})("eventTimesChanged",function(i){e.usT(a);const o=e.GaO();return e.CGJ(o.eventTimesChanged(i))}),e.C$Y()}if(2&r){const a=e.GaO();e.E7m("viewDate",a.viewDate)("events",a.leadWatcher.appointments.data)("refresh",a.refresh)}}function y(r,m){if(1&r){const a=e.KQA();e.I0R(0,"mwl-calendar-day-view",12),e.qCj("eventClicked",function(i){e.usT(a);const o=e.GaO();return e.CGJ(o.handleEvent("Clicked",i.event))})("eventTimesChanged",function(i){e.usT(a);const o=e.GaO();return e.CGJ(o.eventTimesChanged(i))}),e.C$Y()}if(2&r){const a=e.GaO();e.E7m("viewDate",a.viewDate)("events",a.leadWatcher.appointments.data)("refresh",a.refresh)}}const E={red:{primary:"#ad2121",secondary:"#FAE3E3"},blue:{primary:"#1e90ff",secondary:"#D1E8FF"},yellow:{primary:"#e3bc08",secondary:"#FDF1BA"}},O=[{path:"",component:(()=>{class r{leadWatcher;modalContent;view=l.En.Month;CalendarView=l.En;viewDate=new Date;modalData;actions=[{label:'<i class="fas fa-fw fa-pencil-alt"></i>',a11yLabel:"Edit",onClick:({event:a})=>{this.handleEvent("Edited",a)}},{label:'<i class="fas fa-fw fa-trash-alt"></i>',a11yLabel:"Delete",onClick:({event:a})=>{this.leadWatcher.appointments.data=this.leadWatcher.appointments.data.filter(t=>t!==a),this.handleEvent("Deleted",a)}}];refresh=new R.E;activeDayIsOpen=!1;constructor(a){this.leadWatcher=a}ngOnInit(){}dayClicked({date:a,events:t}){(0,A.C)(a,this.viewDate)&&(this.activeDayIsOpen=!((0,I.W)(this.viewDate,a)&&!0===this.activeDayIsOpen||0===t.length),this.viewDate=a)}eventTimesChanged({event:a,newStart:t,newEnd:i}){this.leadWatcher.appointments.data=this.leadWatcher.appointments.data.map(o=>o===a?{...a,start:t,end:i}:o),this.handleEvent("Dropped or resized",a)}handleEvent(a,t){}addEvent(){this.leadWatcher.appointments.data=[...this.leadWatcher.appointments.data,{title:"New event",start:(0,f.K)(new Date),end:(0,T.t)(new Date),color:E.red,draggable:!0,resizable:{beforeStart:!0,afterEnd:!0}}]}deleteEvent(a){this.leadWatcher.appointments.data=this.leadWatcher.appointments.data.filter(t=>t!==a)}setView(a){this.view=a}closeOpenMonthViewDay(){this.activeDayIsOpen=!1}static \u0275fac=function(t){return new(t||r)(e.GI1(w.c))};static \u0275cmp=e.In1({type:r,selectors:[["app-appointments"]],viewQuery:function(t,i){if(1&t&&e.CC$(u,7),2&t){let o;e.wto(o=e.Gqi())&&(i.modalContent=o.first)}},decls:30,vars:20,consts:[["fixed",""],[1,"calendar-header"],[1,"btn-group"],["mwlCalendarPreviousView","",1,"custom-btn",3,"view","viewDate","viewDateChange"],["mwlCalendarToday","",1,"custom-btn",3,"viewDate","viewDateChange"],["mwlCalendarNextView","",1,"custom-btn",3,"view","viewDate","viewDateChange"],[1,"ion-text-center"],[1,"custom-btn",3,"click"],[3,"ngSwitch"],[3,"viewDate","events","refresh","activeDayIsOpen","dayClicked","eventClicked","eventTimesChanged",4,"ngSwitchCase"],[3,"viewDate","events","refresh","eventClicked","eventTimesChanged",4,"ngSwitchCase"],[3,"viewDate","events","refresh","activeDayIsOpen","dayClicked","eventClicked","eventTimesChanged"],[3,"viewDate","events","refresh","eventClicked","eventTimesChanged"]],template:function(t,i){1&t&&(e.I0R(0,"i
1on-content"),e.wR5(1,"app-header"),e.I0R(2,"ion-grid",0)(3,"ion-row",1)(4,"ion-col")(5,"div",2)(6,"div",3),e.iHE("viewDateChange",function(d){return e.kNx(i.viewDate,d)||(i.viewDate=d),d}),e.qCj("viewDateChange",function(){return i.closeOpenMonthViewDay()}),e.OEk(7," Previous "),e.C$Y(),e.I0R(8,"div",4),e.iHE("viewDateChange",function(d){return e.kNx(i.viewDate,d)||(i.viewDate=d),d}),e.OEk(9," Today "),e.C$Y(),e.I0R(10,"div",5),e.iHE("viewDateChange",function(d){return e.kNx(i.viewDate,d)||(i.viewDate=d),d}),e.qCj("viewDateChange",function(){return i.closeOpenMonthViewDay()}),e.OEk(11," Next "),e.C$Y()()(),e.I0R(12,"ion-col",6)(13,"h3"),e.OEk(14),e.wVc(15,"calendarDate"),e.C$Y()(),e.I0R(16,"ion-col")(17,"div",2)(18,"div",7),e.qCj("click",function(){return i.setView(i.CalendarView.Month)}),e.OEk(19," Month "),e.C$Y(),e.I0R(20,"div",7),e.qCj("click",function(){return i.setView(i.CalendarView.Week)}),e.OEk(21," Week "),e.C$Y(),e.I0R(22,"div",7),e.qCj("click",function(){return i.setView(i.CalendarView.Day)}),e.OEk(23," Day "),e.C$Y()()()(),e.wR5(24,"br"),e.I0R(25,"div",8),e.yuY(26,G,1,4,"mwl-calendar-month-view",9)(27,k,1,3,"mwl-calendar-week-view",10)(28,y,1,3,"mwl-calendar-day-view",10),e.C$Y()(),e.wR5(29,"app-pop-chats"),e.C$Y()),2&t&&(e.yG2(6),e.E7m("view",i.view),e.OKB("viewDate",i.viewDate),e.yG2(2),e.OKB("viewDate",i.viewDate),e.yG2(2),e.E7m("view",i.view),e.OKB("viewDate",i.viewDate),e.yG2(4),e.cNF(e.I7O(15,16,i.viewDate,i.view+"ViewTitle","en")),e.yG2(4),e.eAK("active",i.view===i.CalendarView.Month),e.yG2(2),e.eAK("active",i.view===i.CalendarView.Week),e.yG2(2),e.eAK("active",i.view===i.CalendarView.Day),e.yG2(3),e.E7m("ngSwitch",i.view),e.yG2(),e.E7m("ngSwitchCase",i.CalendarView.Month),e.yG2(),e.E7m("ngSwitchCase",i.CalendarView.Week),e.yG2(),e.E7m("ngSwitchCase",i.CalendarView.Day))},dependencies:[n.Ko,n.Wm,h.Kk,h._i,h.YP,h.qo,b.k,l.g7,l.A5,l.cn,l.u1,l.aI,l.ay,D.o,l.c1],styles:[".calendar-header[_ngcontent-%COMP%]{margin-top:40px}.calendar-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.calendar-header[_ngcontent-%COMP%] .custom-btn[_ngcontent-%COMP%]{cursor:pointer}.btn-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.btn-group[_ngcontent-%COMP%] .custom-btn[_ngcontent-%COMP%]{width:30%}ion-content[_ngcontent-%COMP%]{--ion-background-color: #f0f2f8}"]})}return r})()}];let M=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=e.a4G({type:r});static \u0275inj=e.s3X({imports:[_.qQ.forChild(O),_.qQ]})}return r})();var B=s(87560),U=s(48396),P=s(56584),S=s(74292),F=s(45880),K=s(60338);let V=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=e.a4G({type:r});static \u0275inj=e.s3X({imports:[n.MD,g.y,h.wZ,M,B.l,U.S,P.Y,l.a6.forRoot({provide:l.Wu,useFactory:S.g}),K.W,F.y]})}return r})()},55988:(N,p,s)=>{s.d(p,{gZ:()=>m,kV:()=>a});var n=s(32116),g=s(91368),h=s(44716),_=s(70800),A=s(41424),I=s(95657),f=s(53616),T=s(3992),R=s(32700),l=s(8716);function e(t,i){}const w=()=>{const t=typeof window<"u"?window:void 0;return t&&t.tinymce?t.tinymce:null};let b=(()=>{class t{constructor(){this.onBeforePaste=new n._w7,this.onBlur=new n._w7,this.onClick=new n._w7,this.onContextMenu=new n._w7,this.onCopy=new n._w7,this.onCut=new n._w7,this.onDblclick=new n._w7,this.onDrag=new n._w7,this.onDragDrop=new n._w7,this.onDragEnd=new n._w7,this.onDragGesture=new n._w7,this.onDragOver=new n._w7,this.onDrop=new n._w7,this.onFocus=new n._w7,this.onFocusIn=new n._w7,this.onFocusOut=new n._w7,this.onKeyDown=new n._w7,this.onKeyPress=new n._w7,this.onKeyUp=new n._w7,this.onMouseDown=new n._w7,this.onMouseEnter=new n._w7,this.onMouseLeave=new n._w7,this.onMouseMove=new n._w7,this.onMouseOut=new n._w7,this.onMouseOver=new n._w7,this.onMouseUp=new n._w7,this.onPaste=new n._w7,this.onSelectionChange=new n._w7,this.onActivate=new n._w7,this.onAddUndo=new n._w7,this.onBeforeAddUndo=new n._w7,this.onBeforeExecCommand=new n._w7,this.onBeforeGetContent=new n._w7,this.onBeforeRenderUI=new n._w7,this.onBeforeSetContent=new n._w7,this.onChange=new n._w7,this.onClearUndos=new n._w7,this.onDeactivate=new n._w7,this.onDirty=new n._w7,this.onExecCommand=new n._w7,this.onGetContent=new n._w7,this.onHide=new n._w7,this.onInit=new n._w7,this.onInitNgModel=new n._w7,this.onLoadContent=new n._w7,this.onNodeChange=new n._w7,this.onPostProcess=new n._w7,this.onPostRender=new n._w7,this.onPreInit=new n._w7,this.onPreProcess=new n._w7,this.onProgressState=new n._w7,this.onRedo=new n._w7,this.onRemove=new n._w7,this.onReset=new n._w7,this.onResizeEditor=new n._w7,this.onSaveContent=new n._w7,this.onSetAttrib=new n._w7,this.onObjectResizeStart=new n._w7,this.onObjectResized=new n._w7,this.onObjectSelected=new n._w7,this.onSetContent=new n._w7,this.onShow=new n._w7,this.onSubmit=new n._w7,this.onUndo=new n._w7,this.onVisualAid=new n._w7}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=n.Sc5({type:t,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onF
1ocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"}}),t})();const D=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],u=(t,i,o)=>(0,_.w)(t,i).pipe((0,f.a)(o)),y=(t,i)=>"string"==typeof t?t.split(",").map(o=>o.trim()):Array.isArray(t)?t:i;let E=0;const O=t=>typeof t<"u"&&"textarea"===t.tagName.toLowerCase(),M=t=>typeof t>"u"||""===t?[]:Array.isArray(t)?t:t.split(" "),B=(t,i)=>M(t).concat(M(i)),U=()=>{},P=t=>null==t,K=(()=>{let t={script$:null};return{load:(d,v)=>t.script$||(t.script$=(0,A.Q)(()=>{const c=d.createElement("script");return c.referrerPolicy="origin",c.type="application/javascript",c.src=v,d.head.appendChild(c),(0,_.w)(c,"load").pipe((0,T.U)(1),(0,R.e)(void 0))}).pipe((0,l.C)({bufferSize:1,refCount:!0}))),reinitialize:()=>{t={script$:null}}}})(),V=new n.UbH("TINYMCE_SCRIPT_SRC"),r={provide:h.Y6,useExisting:(0,n.wd)(()=>m),multi:!0};let m=(()=>{class t extends b{constructor(o,d,v,c){super(),this.platformId=v,this.tinymceScriptSrc=c,this.cloudChannel="6",this.apiKey="no-api-key",this.id="",this.modelEvents="change input undo redo",this.onTouchedCallback=U,this.destroy$=new I.E,this.initialise=()=>{const j={...this.init,selector:void 0,target:this._element,inline:this.inline,readonly:this.disabled,plugins:B(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:C=>{this._editor=C,u(C,"init",this.destroy$).subscribe(()=>{this.initEditor(C)}),((t,i,o)=>{(t=>{const i=y(t.ignoreEvents,[]);return y(t.allowedEvents,D).filter(d=>D.includes(d)&&!i.includes(d))})(t).forEach(v=>{const c=t[v];u(i,v.substring(2),o).subscribe(j=>{c.observers.length>0&&t.ngZone.run(()=>c.emit({event:j,editor:i}))})})})(this,C,this.destroy$),this.init&&"function"==typeof this.init.setup&&this.init.setup(C)}};O(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{w().init(j)})},this._elementRef=o,this.ngZone=d}set disabled(o){this._disabled=o,this._editor&&this._editor.initialized&&("function"==typeof this._editor.mode?.set?this._editor.mode.set(o?"readonly":"design"):this._editor.setMode(o?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}writeValue(o){this._editor&&this._editor.initialized?this._editor.setContent(P(o)?"":o):this.initialValue=null===o?void 0:o}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o}ngAfterViewInit(){(0,g.c0)(this.platformId)&&(this.id=this.id||(t=>{const o=(new Date).getTime(),d=Math.floor(1e9*Math.random());return E++,"tiny-angular_"+d+E+String(o)}
1)(),this.inline=void 0!==this.inline?!1!==this.inline:!!this.init?.inline,this.createElement(),null!==w()?this.initialise():this._element&&this._element.ownerDocument&&K.load(this._element.ownerDocument,this.getScriptSrc()).pipe((0,f.a)(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),null!==w()&&w().remove(this._editor)}createElement(){this._element=document.createElement(this.inline?"string"==typeof this.tagName?this.tagName:"div":"textarea"),this._element&&(document.getElementById(this.id)&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,O(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element))}getScriptSrc(){return P(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(o){u(o,"blur",this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.onTouchedCallback())}),u(o,this.modelEvents,this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.emitOnChange(o))}),"string"==typeof this.initialValue&&this.ngZone.run(()=>{o.setContent(this.initialValue),o.getContent()!==this.initialValue&&this.emitOnChange(o),void 0!==this.onInitNgModel&&this.onInitNgModel.emit(o)})}emitOnChange(o){this.onChangeCallback&&this.onChangeCallback(o.getContent({format:this.outputFormat}))}}return t.\u0275fac=function(o){return new(o||t)(n.GI1(n.GMv),n.GI1(n.WW2),n.GI1(n.AHE),n.GI1(V,8))},t.\u0275cmp=n.In1({type:t,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",disabled:"disabled"},standalone:!0,features:[n.M5G([r]),n.eg9,n.UHJ],decls:1,vars:0,template:function(o,d){1&o&&n.yuY(0,e,0,0,"ng-template")},dependencies:[g.MD,h.y],styles:["[_nghost-%COMP%]{display:block}"]}),t})(),a=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=n.a4G({type:t}),t.\u0275inj=n.s3X({imports:[m]}),t})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.