PageSourceSearch

https://app.acurovet.com/4152.dee7a13f853d7580.js

js acurovet.com collected 2026-10-02 00:09:27 UTC 114,455 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkacurovet=self.webpackChunkacurovet||[]).push([[4152],{14320:(oe,$,c)=>{c.d($,{M:()=>e});var l=c(41360);let e=(()=>{class F{constructor(S){this.contentTemplate=S}static ngTemplateContextGuard(S,V){return!0}static{this.\u0275fac=function(V){return new(V||F)(l.rXU(l.C4Q))}}static{this.\u0275dir=l.FsC({type:F,selectors:[["ng-template","typedTemplate",""]],inputs:{typeToken:[0,"typedTemplate","typeToken"]}})}}return F})()},38053:(oe,$,c)=>{c.d($,{B:()=>h});var l=c(41360),e=c(89417),F=c(45565),B=c(7180),S=c(88498),V=c(99282),L=c(61381);class N{constructor(){this.reason=new e.MJ(null),this.otherReason=new e.MJ(null,[e.k0.maxLength(L.hT)])}}var G=c(71827),q=c(77883),X=c(98107),ee=c(96073),K=c(99348),p=c(52426),g=c(20466),te=c(99974);function D(_,A){if(1&_&&l.nrm(0,"app-input",6),2&_){const R=l.XpG().$implicit,b=l.XpG();l.Y8G("placeholder",R("Enter Reason"))("maxLength",b.reasonMaxLength)("showCharacterCount",!0)("hideCharacterLabel",!0)("control",b.cancelForm.controls.otherReason)}}function w(_,A){if(1&_){const R=l.RV6();l.j41(0,"app-dialog",1)(1,"div",2)(2,"div",3)(3,"h3")(4,"strong"),l.EFF(5),l.k0s()(),l.j41(6,"p"),l.EFF(7),l.k0s()(),l.j41(8,"form",4)(9,"app-static-data-dropdown",5),l.bIt("optionSelected",function(U){l.eBV(R);const se=l.XpG();return l.Njj(se.onReasonSelected(U))}),l.k0s(),l.DNE(10,D,1,5,"app-input",6),l.k0s()(),l.j41(11,"div",7)(12,"div",8)(13,"span",9)(14,"app-button",10),l.bIt("onClick",function(){l.eBV(R);const U=l.XpG();return l.Njj(U.onDismiss())}),l.k0s()(),l.j41(15,"span",9)(16,"app-button",11),l.bIt("onClick",function(){l.eBV(R);const U=l.XpG();return l.Njj(U.onConfirm())}),l.k0s()()()()()}if(2&_){const R=A.$implicit,b=l.XpG();l.Y8G("icon","cancel-appointment")("classIcon","color-error-semi-dark")("circleBg","bg-error-lighter"),l.R7$(5),l.JRh(R(null==b.data?null:b.data.heading)),l.R7$(2),l.JRh(R(null==b.data?null:b.data.message)),l.R7$(),l.Y8G("formGroup",b.cancelForm),l.R7$(),l.Y8G("placeHolder",R("Select Reason"))("isSubscript",!1)("control",b.cancelForm.controls.reason),l.R7$(),l.vxM(b.isOtherReason?10:-1),l.R7$(4),l.Y8G("label",R("No")),l.R7$(2),l.Y8G("label",R((null==b.data?null:b.data.confirmLabel)||"Yes, Cancel"))}}let h=(()=>{class _{constructor(){this.data=(0,l.WQX)(F.e),this.dialogRef=(0,l.WQX)(F.m),this.reasonMaxLength=L.hT,this.cancelForm=new e.gE(new N),this.isOtherReason=!1}onReasonSelected(R){this.isOtherReason=R?.id===V.X.OTHER,this.isOtherReason||this.cancelForm.controls.otherReason.reset()}onConfirm(){const{reason:R,otherReason:b}=this.cancelForm.getRawValue();this.dialogRef.close({note:R||void 0,otherNote:R===V.X.OTHER&&b||void 0})}onDismiss(){this.dialogRef.close()}static{this.\u0275fac=function(b){return new(b||_)}}static{this.\u0275cmp=l.VBU({type:_,selectors:[["app-cancel-appointment-dialog"]],features:[l.Jv_([{provide:B.Lt,useValue:"myDay"}])],decls:1,vars:1,consts:[[3,"icon","classIcon","circleBg",4,"transloco","translocoRead"],[3,"icon","classIcon","circleBg"],["slotDialogContent",""],[1,"space-y-12px","color-secondary-dark"],[1,"text-left","mt-16px",3,"formGroup"],["type","APPOINTMENT_CANCEL_REASON",3,"optionSelected","placeHolder","isSubscript","control"],[3,"placeholder","maxLength","showCharacterCount","hideCharacterLabel","control"],["slotDialogAction",""],[1,"flex","gap-12px","items-center","justify-center","lt-sm:flex-wrap"],["fxFlex","0 0 170px","fxFlex.lt-sm","0 0 120px"],["variant","stroked","color","primary",1,"w-full",3,"onClick","label"],["color","warn",1,"w-full",3,"onClick","label"]],template:function(b,U){1&b&&l.DNE(0,w,17,12,"app-dialog",0),2&b&&l.Y8G("translocoRead","myDay")},dependencies:[B.Q8,B.bA,e.X1,e.qT,e.cb,e.j4,S.w2,S.UI,G.P,K.m,q.t,p.Q,X.c,g.S,ee.K,te.D],encapsulation:2,changeDetection:0})}}return _})()},62212:(oe,$,c)=>{c.d($,{x:()=>te});var l=c(41360),e=c(32881),F=c(9183),B=c(57967),S=c(89417),V=c(98149);let L=(()=>{class D extends V.S{constructor(){super(...arguments),this.appearance="outline",this.label=(0,l.hFB)(""),this.placeholder=(0,l.hFB)(""),this.hint=(0,l.hFB)(""),this.control=(0,l.hFB
1)(new S.MJ),this.loading=(0,l.hFB)(!1),this.isReadonly=(0,l.hFB)(!1),this.isDisabled=(0,l.hFB)(!1),this.isRequired=(0,l.hFB)(!1),this.errorRequired=(0,l.hFB)(""),this.isSubscript=(0,l.hFB)(!1),this.selectedIds=(0,l.hFB)(),this.panelWidth=(0,l.hFB)()}ngOnChanges(h){h.isDisabled&&(h.isDisabled.currentValue?this.control().disable():this.control().enable())}static{this.\u0275fac=(()=>{let h;return function(A){return(h||(h=l.xGo(D)))(A||D)}})()}static{this.\u0275cmp=l.VBU({type:D,selectors:[["app-ui-control"]],inputs:{label:[1,"label"],placeholder:[1,"placeholder"],hint:[1,"hint"],control:[1,"control"],loading:[1,"loading"],isReadonly:[1,"isReadonly"],isDisabled:[1,"isDisabled"],isRequired:[1,"isRequired"],errorRequired:[1,"errorRequired"],isSubscript:[1,"isSubscript"],selectedIds:[1,"selectedIds"],panelWidth:[1,"panelWidth"]},features:[l.Vt3,l.OA$],decls:0,vars:0,template:function(_,A){},dependencies:[e.MD],encapsulation:2})}}return D})();const N=["popoverTemplate"],G=["*"];function q(D,w){if(1&D&&(l.j41(0,"div",4),l.nrm(1,"mat-spinner",5),l.k0s()),2&D){const h=l.XpG(2);l.HbH(h.loaderClass())}}function X(D,w){1&D&&(l.j41(0,"div",3),l.SdG(1),l.k0s())}function ee(D,w){if(1&D&&(l.j41(0,"div",1),l.DNE(1,q,2,2,"div",2)(2,X,2,0,"div",3),l.k0s()),2&D){const h=l.XpG();l.HbH(h.panelClass()),l.xc7("min-width",h.minWidth()?"number"==typeof h.minWidth()?h.minWidth()+"px":h.minWidth():null)("max-height","number"==typeof h.maxHeight()?h.maxHeight()+"px":h.maxHeight()),l.AVh("ui-popover--loading",h.loading())("ui-popover--mobile",h.isMobileDialog()),l.BMQ("aria-modal",h.isMobileDialog()?"true":null),l.R7$(),l.vxM(h.loading()?1:2)}}class g{constructor(){this.popovers=new Set}static getInstance(){return g.instance??=new g}register(w){this.popovers.add(w)}unregister(w){this.popovers.delete(w)}closeAllExcept(w){this.popovers.forEach(h=>h!==w&&h.isOpen()&&h.hide())}closeAll(){this.popovers.forEach(w=>w.hide())}}let te=(()=>{class D extends L{constructor(){super(),this.cdr=(0,l.WQX)(l.gRc),this.viewContainerRef=(0,l.WQX)(l.c1b),this.registry=g.getInstance(),this.position=(0,l.hFB)("bottom"),this.offset=(0,l.hFB
1)([0,10]),this.showArrow=(0,l.hFB)(!0),this.showBackdrop=(0,l.hFB)(!1),this.closeOnEscape=(0,l.hFB)(!0),this.closeOnOutsideClick=(0,l.hFB)(!0),this.closeOthersOnOpen=(0,l.hFB)(!0),this.panelClass=(0,l.hFB)(""),this.loaderClass=(0,l.hFB)(""),this.minWidth=(0,l.hFB)(null),this.maxWidth=(0,l.hFB)("none"),this.maxHeight=(0,l.hFB)("70vh"),this.zIndex=(0,l.hFB)(9999),this.mobileBreakpoint=(0,l.hFB)(1190),this.useMobileDialog=(0,l.hFB)(!0),this.appendToSelector=(0,l.hFB)(null),this.opened=(0,l.CGW)(),this.closed=(0,l.CGW)(),this.contentAction=(0,l.CGW)(),this.isOpen=(0,l.vPA)(!1),this.isMobile=(0,l.vPA)(!1),this.isMobileDialog=(0,l.EWP)(()=>this.isMobile()&&this.useMobileDialog()),this.tippyInstance=null,this.targetElement=null,this.backdropElement=null,this.embeddedView=null,this.onResize=()=>{const h=this.isMobileDialog();if(this.checkMobile(),this.isOpen()&&h!==this.isMobileDialog()){const _=this.targetElement;this.hide(),_&&setTimeout(()=>this.show(null,_),100)}},this.escapeListener=h=>{if("Escape"!==h.key)return;const _=document.activeElement;_&&this.tippyInstance?.popper.contains(_)&&this.hide()},this.setupLoadingEffect()}ngOnInit(){this.registry.register(this),this.checkMobile(),window.addEventListener("resize",this.onResize)}ngOnDestroy(){super.ngOnDestroy(),this.registry.unregister(this),this.cleanup(),window.removeEventListener("resize",this.onResize)}setupLoadingEffect(){(0,l.QZP)(()=>{this.loading(),(0,l.O8t)(()=>this.isOpen())&&this.tippyInstance&&(this.cdr.detectChanges(),this.embeddedView?.detectChanges(),requestAnimationFrame(()=>this.tippyInstance?.popperInstance?.update()))})}checkMobile(){this.isMobile.set(window.innerWidth<=this.mobileBreakpoint())}show(h,_){if(this.isOpen()){if(this.targetElement===_)return;this.hide()}this.closeOthersOnOpen()&&this.registry.closeAllExcept(this),this.targetElement=_,this.checkMobile(),this.createTippy(),this.tippyInstance?.
1show()}hide(){this.isOpen()&&this.tippyInstance?.hide()}toggle(h,_){this.isOpen()&&this.targetElement===_?this.hide():this.show(h,_)}updatePosition(){this.tippyInstance?.popperInstance?.update()}static closeAll(){g.getInstance().closeAll()}createTippy(){if(!this.targetElement)return;this.destroyTippy();const h=this.createContentElement(),_=this.isMobileDialog();this.tippyInstance=(0,B.Ay)(this.targetElement,{content:h,placement:_?"top":this.position(),offset:_?[0,0]:this.offset(),arrow:!_&&this.showArrow(),interactive:!0,appendTo:()=>this.resolveAppendTo(),zIndex:this.zIndex(),animation:"shift-away",duration:[150,100],trigger:"manual",hideOnClick:!1,theme:_?"popover-mobile":"popover",maxWidth:this.maxWidth(),popperOptions:_?this.getMobileCenterPositionOptions():this.getDesktopPositionOptions(),onShow:()=>this.onShow(),onHide:()=>this.onHide(),onHidden:()=>this.destroyTippy(),onClickOutside:(A,R)=>this.onClickOutside(R)})}resolveAppendTo(){const h=this.appendToSelector();return h&&document.querySelector(h)||document.body}getDesktopPositionOptions(){return{strategy:"fixed",modifiers:[{name:"flip",options:{padding:10}},{name:"preventOverflow",options:{padding:20,altAxis:!0,tether:!1}}]}}getMobileCenterPositionOptions(){return{strategy:"fixed",modifiers:[{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:({state:h})=>{const{width:_,height:A}=h.rects.popper;h.styles.popper={...h.styles.popper,position:"fixed",left:(window.innerWidth-_)/2+"px",top:(window.innerHeight-A)/2+"px",transform:"none"}}},{name:"applyStyles",enabled:!0},{name:"flip",enabled:!1},{name:"preventOverflow",enabled:!1},{name:"arrow",enabled:!1},{name:"offset",enabled:!1}]}}onShow(){this.isOpen.set(!0),(this.showBackdrop()||this.isMobileDialog())&&this.createBackdrop(),this.closeOnEscape()&&this.addEscapeListener(),this.opened.emit(),this.cdr.markForCheck()}onHide(){this.isOpen.set(!1),this.removeBackdrop(),this.removeEscapeListener(),this.closed.emit(),this.cdr.markForCheck()}onClickOutside(h){this.closeOnOutsideClick()&&!this.showBackdrop()&&!this.isMobileDialog()&&!this.targetElement?.contains(h.target)&&this.hide()}createContentElement(){return this.destroyEmbeddedView(),this.embeddedView=this.viewContainerRef.createEmbeddedView(this.popoverTemplate),this.embeddedView.detectChanges(),this.embeddedView.rootNodes.find(_=>_ instanceof HTMLElement)||this.wrapNodes(this.embeddedView.rootNodes)}wrapNodes(h){const _=document.createElement("div");return _.classList.add("ui-popover-host"),h.forEach(A=>{A instanceof Node&&_.appendChild(A)}),_}destroyEmbeddedView(){if(!this.embeddedView)return;const h=this.viewContainerRef.indexOf(this.embeddedView);-1!==h&&this.viewContainerRef.remove(h),this.embeddedView=null}destroyTippy(){this.tippyInstance?.destroy(),this.tippyInstance=null,this.destroyEmbeddedView()}createBackdrop(){this.backdropElement||(this.backdropElement=document.createElement("div"),this.backdropElement.className="ui-popover-backdrop "+(this.isMobileDialog()?"ui-popover-backdrop--mobile":""),this.backdropElement.style.cssText=`\n      position: fixed;\n      inset: 0;\n      background: rgba(0, 0, 0, ${this.isMobileDialog()?"0.5":"0.15"});\n      z-index: ${this.zIndex()-1};\n    `,this.backdropElement.onclick=()=>this.hide(),document.body.appendChild(this.backdropElement),document.body.style.overflow="hidden")}removeBackdrop(){this.backdropElement?.remove(),this.backdropElement=null,document.body.style.overflow=""}addEscapeListener(){document.addEventListener("keydown",this.escapeListener,!0)}removeEscapeListener(){document.removeEventListener("keydown",this.escapeListener,!0)}cleanup(){this.destroyTippy()}static{this.\u0275fac=function(_){return new(_||D)}}static{this.\u0275cmp=l.VBU({type:D,selectors:[["app-ui-popover-tippy"]],viewQuery:function(_,A){if(1&_&&l.GBs(N,7),2&_){let R;l.mGM(R=l.lsd())&&(A.popoverTemplate=R.first)}},inputs:{position:[1,"position"],offset:[1,"offset"],showArrow:[1,"showArrow"],showBackdrop:[1,"showBackdrop"],closeOnEscape:[1,"closeOnEscape"],closeOnOutsideClick:[1,"closeOnOutsideClick"],closeOthersOnOpen:[1,"closeOthersOnOpen"],panelClass:[1,"panelClass"],loaderClass:[1,"loaderClass"],minWidth:[1,"minWidth"],maxWidth:[1,"maxWidth"],maxHeight:[1,"maxHeight"],zIndex:[1,"zIndex"],mobileBreakpoint:[1,"mobileBreakpoint"],useMobileDialog:[1,"useMobileDialog"],appendToSelector:[1,"appendToSelector"]},outputs:{opened:"opened",closed:"closed",contentAction:"contentAction"},features:[l.Vt3],ngContentSelectors:G,decls:2,vars:0,consts:[["popoverTemplate",""],["role","dialog",1,"ui-popover"],[1,"ui-popover__loader",3,"class"],[1,"ui-popover__body"],[1,"ui-popover__loader"],["diameter","24"]],template:function(_,A){1&_&&(l.NAR(),l.DNE(0,ee,3,12,"ng-template",null,0,l.C5r))},dependencies:[e.MD,F.LG],encapsulation:2,changeDetection:0})}}return D})()},94152:(oe,$,c)=>{c.r($),c.d($,{MyDayComponent:()=>zo});
1var l=c(89417),e=c(41360),F=c(33639),B=c(23294),S=c(27468),V=c(7673),L=c(22806),N=c(70980),G=c(96354),q=c(99437),X=c(7180),ee=c(99423),K=c(77392),p=c(6681),g=c(22467);const h=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],_={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};var se=(0,K.i1)({name:"@fullcalendar/premium-common",premiumReleaseDate:"2025-04-02",optionRefiners:{schedulerLicenseKey:String},viewContainerAppends:[function A(i){let s=i.options.schedulerLicenseKey;if(!function b(i){return/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(i)}(typeof window<"u"?window.location.href:"")){let n=function R(i,s){if(-1!==h.indexOf(i))return"valid";const t=(i||"").match(/^(\d+)-fcs-(\d+)$/);if(t&&10===t[1].length){const n=new Date(1e3*parseInt(t[2],10)),o=p.bG.mockSchedulerReleaseDate||s;if((0,p.bk)(o))return(0,p.t)(o,-372)<n?"valid":"outdated"}return"invalid"}(s,i.pluginHooks.premiumReleaseDate);if("valid"!==n)return(0,g.n)("div",{className:"fc-license-message",style:_},"outdated"===n?(0,g.n)(g.FK,null,"Your license key is too old to work with this version. ",(0,g.n)("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):(0,g.n)(g.FK,null,"Your license key is invalid. ",(0,g.n)("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]});const it={id:String,parentId:String,children:p.n,title:String,businessHours:p.n,extendedProps:p.n,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:p.n,eventOverlap:Boolean,eventAllow:p.n,eventClassNames:p.aQ,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function fe(i,s="",t,n){let{refined:o,extra:r}=(0,p.ag)(i,it),a={id:o.id||"_fc:"+(0,p.g)(),parentId:o.parentId||s,title:o.title||"",businessHours:o.businessHours?(0,p.U)(o.businessHours,n):null,ui:(0,p.S)({editable:o.eventEditable,startEditable:o.eventStartEditable,durationEditable:o.eventDurationEditable,constraint:o.eventConstraint,overlap:o.eventOverlap,allow:o.eventAllow,classNames:o.eventClassNames,backgroundColor:o.eventBackgroundColor,borderColor:o.eventBorderColor,textColor:o.eventTextColor,color:o.eventColor},n),extendedProps:Object.assign(Object.assign({},r),o.extendedProps)};if(Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),!t[a.id]&&(t[a.id]=a,o.children))for(let d of o.children)fe(d,a.id,t,n);return a}class P{constructor(s,t){this._context=s,this._resource=t}setProp(s,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:s,propValue:t}),this.sync(n)}setExtendedProp(s,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:n.id,propName:s,propValue:t}),this.sync(n)}sync(s){let t=this._context,n=s.id;this._resource=t.getCurrentData().resourceStore[n],t.emitter.trigger("resourceChange",{oldResource:new P(t,s),resource:this,revert(){t.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:s}})}})}remove(){let s=this._context,t=this._resource,n=t.id;s.dispatch({type:"REMOVE_RESOURCE",resourceId:n}),s.emitter.trigger("resourceRemove",{resource:this,revert(){s.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:t}})}})}getParent(){let s=this._context,t=this._resource.parentId;return t?new P(s,s.getCurrentData().resourceStore[t]):null}getChildren(){let s=this._resource.id,t=this._context,{resourceStore:n}=t.getCurrentData(),o=[];for(let r in n)n[r].parentId===s&&o.push(new P(t,n[r]));return o}getEvents(){let s=this._resource.id,t=this._context,{defs:n,instances:o}=t.getCurrentData().eventStore,r=[];for(let a in o){let d=o[a],u=n[d.defId];-1!==u.resourceIds.indexOf(s)&&r.push(new p._(t,u,d))}return r}get id(){return function ot(i){return 0===i.indexOf("_fc:")?"":i}(this._resource.id)}get title(){return this._resource.title}get eventConstraint(){return this._resource.ui.constraints[0]||null}get eventOverlap(){return this._resource.ui.overlap}get eventAllow(){return this._resource.ui.allows[0]||null}
1get eventBackgroundColor(){return this._resource.ui.backgroundColor}get eventBorderColor(){return this._resource.ui.borderColor}get eventTextColor(){return this._resource.ui.textColor}get eventClassNames(){return this._resource.ui.classNames}get extendedProps(){return this._resource.extendedProps}toPlainObject(s={}){let t=this._resource,{ui:n}=t,o=this.id,r={};return o&&(r.id=o),t.title&&(r.title=t.title),s.collapseEventColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?r.eventColor=n.backgroundColor:(n.backgroundColor&&(r.eventBackgroundColor=n.backgroundColor),n.borderColor&&(r.eventBorderColor=n.borderColor)),n.textColor&&(r.eventTextColor=n.textColor),n.classNames.length&&(r.eventClassNames=n.classNames),Object.keys(t.extendedProps).length&&(s.collapseExtendedProps?Object.assign(r,t.extendedProps):r.extendedProps=t.extendedProps),r}toJSON(){return this.toPlainObject()}}class rt extends p.aW{getKeyInfo(s){return Object.assign({"":{}},s.resourceStore)}getKeysForDateSpan(s){return[s.resourceId||""]}getKeysForEventDef(s){let t=s.resourceIds;return t.length?t:[""]}}const Pe=(0,p.am)("id,title");class lt extends p.B{constructor(){super(...arguments),this.refineRenderProps=(0,p.A)(pt)}render(){const{props:s}=this;return(0,g.n)(p.V.Consumer,null,t=>{let{options:n}=t,o=this.refineRenderProps({resource:s.resource,date:s.date,context:t});return(0,g.n)(p.C,Object.assign({},s,{elAttrs:Object.assign(Object.assign({},s.elAttrs),{"data-resource-id":s.resource.id,"data-date":s.date?(0,p.bt)(s.date):void 0}),renderProps:o,generatorName:"resourceLabelContent",customGenerator:n.resourceLabelContent,defaultGenerator:ct,classNameGenerator:n.resourceLabelClassNames,didMount:n.resourceLabelDidMount,willUnmount:n.resourceLabelWillUnmount}))})}}function ct(i){return i.resource.title||i.resource.id}function pt(i){return{resource:new P(i.context,i.resource),date:i.date?i.context.dateEnv.toDate(i.date):null,view:i.context.viewApi}}class ge extends p.B{render(){let{props:s}=this;return(0,g.n)(lt,{elTag:"th",elClasses:["fc-col-header-cell","fc-resource"],elAttrs:{role:"columnheader",colSpan:s.colSpan},resource:s.resource,date:s.date},t=>(0,g.n)("div",{className:"fc-scrollgrid-sync-inner"},(0,g.n)(t,{elTag:"span",elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}class Fe extends p.B{constructor(){super(...arguments),this.buildDateFormat=(0,p.z)(dt)}render(){let{props:s,context:t}=this,n=this.buildDateFormat(t.options.dayHeaderFormat,s.datesRepDistinctDays,s.dates.length);return(0,g.n)(p.a6,{unit:"day"},(o,r)=>1===s.dates.length?this.renderResourceRow(s.resources,s.dates[0]):t.options.datesAboveResources?this.renderDayAndResourceRows(s.dates,n,r,s.resources):this.renderResourceAndDayRows(s.resources,s.dates,n,r))}renderResourceRow(s,t){let n=s.map(o=>(0,g.n)(ge,{key:o.id,resource:o,colSpan:1,date:t}));return this.buildTr(n,"resources")}renderDayAndResourceRows(s,t,n,o){let r=[],a=[];for(let d of s){r.push(this.renderDateCell(d,t,n,o.length,null,!0));for(let u of o)a.push((0,g.n)(ge,{key:u.id+":"+d.toISOString(),resource:u,colSpan:1,date:d}))}return(0,g.n)(g.FK,null,this.buildTr(r,"day"),this.buildTr(a,"resources"))}renderResourceAndDayRows(s,t,n,o){let r=[],a=[];for(let d of s){r.push((0,g.n)(ge,{key:d.id,resource:d,colSpan:t.length,isSticky:!0}));for(let u of t)a.push(this.renderDateCell(u,n,o,1,d))}return(0,g.n)(g.FK,null,this.buildTr(r,"resources"),this.buildTr(a,"day"))}renderDateCell(s,t,n,o,r,a){let{props:d}=this,u=r?`:${r.id}`:"",f=r?{resource:new P(this.context,r)}:{},v=r?{"data-resource-id":r.id}:{};return d.datesRepDistinctDays?(0,g.n)(p.bK,{key:s.toISOString()+u,date:s,dateProfile:d.dateProfile,todayRange:n,colCnt:d.dates.length*d.resources.length,dayHeaderFormat:t,colSpan:o,isSticky:a,extraRenderProps:f,extraDataAttrs:v}):(0,g.n)(p.bL,{key:s.getUTCDay()+u,dow:s.getUTCDay(),dayHeaderFormat:t,colSpan:o,isSticky:a,extraRenderProps:f,extraDataAttrs:v})}buildTr(s,t){let{renderIntro:n}=this.props;return s.length||(s=[(0,g.n)("td",{key:0},"\xa0")]),(0,g.n)("tr",{key:t,role:"row"},n&&n(t),s)}}
1function dt(i,s,t){return i||(0,p.bJ)(s,t)}class ut{constructor(s){let t={},n=[];for(let o=0;o<s.length;o+=1){let r=s[o].id;n.push(r),t[r]=o}this.ids=n,this.indicesById=t,this.length=s.length}}class Ne{constructor(s,t,n){this.dayTableModel=s,this.resources=t,this.context=n,this.resourceIndex=new ut(t),this.rowCnt=s.rowCnt,this.colCnt=s.colCnt*t.length,this.cells=this.buildCells()}buildCells(){let{rowCnt:s,dayTableModel:t,resources:n}=this,o=[];for(let r=0;r<s;r+=1){let a=[];for(let d=0;d<t.colCnt;d+=1)for(let u=0;u<n.length;u+=1){let f=n[u],v={resource:new P(this.context,f)},y={"data-resource-id":f.id},E=["fc-resource"],x={resourceId:f.id},M=t.cells[r][d].date;a[this.computeCol(d,u)]={key:f.id+":"+M.toISOString(),date:M,extraRenderProps:v,extraDataAttrs:y,extraClassNames:E,extraDateSpan:x}}o.push(a)}return o}}class we extends Ne{computeCol(s,t){return t*this.dayTableModel.colCnt+s}computeColRanges(s,t,n){return[{firstCol:this.computeCol(s,n),lastCol:this.computeCol(t,n),isStart:!0,isEnd:!0}]}}class ke extends Ne{computeCol(s,t){return s*this.resources.length+t}computeColRanges(s,t,n){let o=[];for(let r=s;r<=t;r+=1){let a=this.computeCol(r,n);o.push({firstCol:a,lastCol:a,isStart:r===s,isEnd:r===t})}return o}}const Oe=[];class je{constructor(){this.joinDateSelection=(0,p.z)(this.joinSegs),this.joinBusinessHours=(0,p.z)(this.joinSegs),this.joinFgEvents=(0,p.z)(this.joinSegs),this.joinBgEvents=(0,p.z)(this.joinSegs),this.joinEventDrags=(0,p.z)(this.joinInteractions),this.joinEventResizes=(0,p.z)(this.joinInteractions)}joinProps(s,t){let n=[],o=[],r=[],a=[],d=[],u=[],f="",v=t.resourceIndex.ids.concat([""]);for(let y of v){let E=s[y];n.push(E.dateSelectionSegs),o.push(y?E.businessHourSegs:Oe),r.push(y?E.fgEventSegs:Oe),a.push(E.bgEventSegs),d.push(E.eventDrag),u.push(E.eventResize),f=f||E.eventSelection}return{dateSelectionSegs:this.joinDateSelection(t,...n),businessHourSegs:this.joinBusinessHours(t,...o),fgEventSegs:this.joinFgEvents(t,...r),bgEventSegs:this.joinBgEvents(t,...a),eventDrag:this.joinEventDrags(t,...d),eventResize:this.joinEventResizes(t,...u),eventSelection:f}}joinSegs(s,...t){let n=s.resources.length,o=[];for(let r=0;r<n;r+=1){for(let a of t[r])o.push(...this.transformSeg(a,s,r));for(let a of t[n])o.push(...this.transformSeg(a,s,r))}return o}expandSegs(s,t){let n=s.resources.length,o=[];for(let r=0;r<n;r+=1)for(let a of t)o.push(...this.transformSeg(a,s,r));return o}joinInteractions(s,...t){let n=s.resources.length,o={},r=[],a=!1,d=!1;for(let u=0;u<n;u+=1){let f=t[u];if(f){a=!0;for(let v of f.segs)r.push(...this.transformSeg(v,s,u));Object.assign(o,f.affectedInstances),d=d||f.isEvent}if(t[n])for(let v of t[n].segs)r.push(...this.transformSeg(v,s,u))}return a?{affectedInstances:o,segs:r,isEvent:d}:null}}class Ge extends p.aW{getKeyInfo(s){let{resourceDayTableModel:t}=s,n=(0,p.a)(t.resourceIndex.indicesById,o=>t.resources[o]);return n[""]={},n}getKeysForDateSpan(s){return[s.resourceId||""]}getKeysForEventDef(s){let t=s.resourceIds;return t.length?t:[""]}}function $e(i,s){return function ht(i,s,t,n,o,r){let a=function mt(i,s,t,n){let o=function _t(i,s){let t={};for(let n in i){let o=i[n];t[n]={resource:o,resourceFields:gt(o),children:[]}}for(let n in i){let o=i[n];if(o.parentId){let r=t[o.parentId];r&&Le(t[n],r.children,s)}}return t}(i,n),r=[];for(let a in o){let d=o[a];d.resource.parentId||Ve(d,r,t,0,s,n)}return r}(i,n?-1:1,s,t),d=[];return re(a,d,n,[],0,o,r),d}(i,[],s,!1,{},!0).map(t=>t.resource)}function re(i,s,t,n,o,r,a){for(let d=0;d<i.length;d+=1){let u=i[d],f=u.group;if(f)if(t){let v=s.length,y=n.length;if(re(u.children,s,t,n.concat(0),o,r,a),v<s.length){let E=s[v];(E.rowSpans=E.rowSpans.slice())[y]=s.length-v}}else{let v=f.spec.field+":"+f.value,y=null!=r[v]?r[v]:a;s.push({id:v,group:f,isExpanded:y}),y&&re(u.children,s,t,n,o+1,r,a)}else if(u.resource){let v=u.resource.id,y=null!=r[v]?r[v]:a;s.push({id:v,rowSpans:n,depth:o,isExpanded:y,hasChildren:!!u.children.length,resource:u.resource,resourceFields:u.resourceFields}),y&&re(u.children,s,t,n,o+1,r,a)}}}function Ve(i,s,t,n,o,r){if(t.length&&(-1===o||n<=o)){let a=function ft(i,s,t){let o,r,n=i.resourceFields[t.field];if(t.order)for(r=0;r<s.length;r+=1){let a=s[r];if(a.group){let d=(0,p.ao)(n,a.group.value)*t.order;if(0===d){o=a;break}if(d<0)break}}else for(r=0;r<s.length;r+=1){let a=s[r];if(a.group&&n===a.group.value){o=a;break}}return o||(o={group:{value:n,spec:t},children:[]},s.splice(r,0,o)),o}(i,s,t[0]);Ve(i,a.children,t.slice(1),n+1,o,r)}else Le(i,s,r)}function Le(i,s,t){let n;for(n=0;n<s.length&&!((0,p.an)(s[n].resourceFields,i.resourceFields,t)>0);n+=1);s.splice(n,0,i)}function gt(i){let s=Object.assign(Object.assign(Object.assign({},i.extendedProps),i.ui),i);return delete s.ui,delete s.extendedProps,s}function Be(i,s){let{resourceEditable:t}=i;if(null==t){let n=i.sourceId&&s.getCurrentData().eventSources[i.sourceId];n&&(t=n.extendedProps.resourceEditable),null==t&&(t=s.options.eventResourceEditable,null==t&&(t=s.options.editable))}return t}function Rt(i,s,t,n){if(s){let o=function bt(i,s){return(0,p.h)(i,t=>(0,p.b6)(t.range,s))}(t.instances,n),r=function Dt(i,s){let t={};for(let n in i){let o=i[n];for(let r of s[o.defId].resourceIds)t[r]=!0}return t}(o,t.defs);return Object.assign(r,function xt(i,s){let t={};for(let n in i){let o;for(;(o=s[n])&&(n=o.parentId,n);)t[n]=!0}return t}(r,i)),(0,p.h)(i,(a,d)=>r[d])}return i}function It(i){return(0,p.a)(i,s=>s.ui)}function At(i,s,t){return(0,p.a)(i,(n,o)=>o?function Mt(i,s,t){let n=[];for(let o of s.resourceIds)t[o]&&n.unshift(t[o]);return n.unshift(i),(0,p.aV)(n)}(n,s[o],t):n)}let ve=[];function Ce(i){ve.push(i)}function Ue(i){return ve[i]}const Ft={id:String,resources:p.n,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:p.n};function He(i,s,t,n){if(i){let o=function Nt(i){let s;if("string"==typeof i?s={url:i}:"function"==typeof i||Array.isArray(i)?s={resources:i}:"object"==typeof i&&i&&(s=i),s){let{refined:t,extra:n}=(0,p.ag)(s,Ft);!function kt(i){for(let s in i)console.warn(`Unknown resource prop '${s}'`)}(n);let o=function wt(i){let s=function Pt(){return ve}();for(let t=s.length-1;t>=0;t-=1){let o=s[t].parseMeta(i);if(o)return{meta:o,sourceDefId:t}}return null}(t);if(o)return{_raw:i,sourceId:(0,p.g)(),sourceDefId:o.sourceDefId,meta:o.meta,publicId:t.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}(i);return o=ye(o,t?s:null,n),o}return null}function ye(i,s,t){let n=Ue(i.sourceDefId),o=(0,p.g)();return n.fetch({resourceSource:i,range:s,context:t},r=>{t.dispatch({type:"RECEIVE_RESOURCES",fetchId:o,fetchRange:s,rawResources:r.rawResources})},r=>{t.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:o,fetchRange:s,error:r})}),Object.assign(Object.assign({},i),{isFetching:!0,latestFetchId:o})}const Yt={resourceId:String,resourceIds:p.n,resourceEditable:Boolean};function Qt(i){return(i||[]).map(s=>String(s))}function tn(i,s){return Object.assign(Object.assign({}
vendor: 1,666 bytes, line 1
1,s),{constraints:nn(i,s.constraints)})}function nn(i,s){return s.map(t=>{let n=t.defs;if(n)for(let o in n){let r=n[o].resourceIds;if(r.length&&-1===r.indexOf(i))return!1}return t})}p.a7.prototype.addResource=function(i,s=!0){let n,o,t=this.getCurrentData();i instanceof P?(o=i._resource,n={[o.id]:o}):(n={},o=fe(i,"",n,t)),this.dispatch({type:"ADD_RESOURCE",resourceHash:n}),s&&this.trigger("_scrollRequest",{resourceId:o.id});let r=new P(t,o);return t.emitter.trigger("resourceAdd",{resource:r,revert:()=>{this.dispatch({type:"REMOVE_RESOURCE",resourceId:o.id})}}),r},p.a7.prototype.getResourceById=function(i){i=String(i);let s=this.getCurrentData();if(s.resourceStore){let t=s.resourceStore[i];if(t)return new P(s,t)}return null},p.a7.prototype.getResources=function(){let i=this.getCurrentData(),{resourceStore:s}=i,t=[];if(s)for(let n in s)t.push(new P(i,s[n]));return t},p.a7.prototype.getTopLevelResources=function(){let i=this.getCurrentData(),{resourceStore:s}=i,t=[];if(s)for(let n in s)s[n].parentId||t.push(new P(i,s[n]));return t},p.a7.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};const an={initialResources:p.n,resources:p.n,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:p.am,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:p.n,resourceAreaColumns:p.n,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:p.n,resourceAreaHeaderContent:p.n,resourceAreaHeaderDidMount:p.n,resourceAreaHeaderWillUnmount:p.n,resourceGroupLabelClassNames:p.n,resourceGroupLabelContent:p.n,resourceGroupLabelDid
1Mount:p.n,resourceGroupLabelWillUnmount:p.n,resourceLabelClassNames:p.n,resourceLabelContent:p.n,resourceLabelDidMount:p.n,resourceLabelWillUnmount:p.n,resourceLaneClassNames:p.n,resourceLaneContent:p.n,resourceLaneDidMount:p.n,resourceLaneWillUnmount:p.n,resourceGroupLaneClassNames:p.n,resourceGroupLaneContent:p.n,resourceGroupLaneDidMount:p.n,resourceGroupLaneWillUnmount:p.n},ln={resourcesSet:p.n,resourceAdd:p.n,resourceChange:p.n,resourceRemove:p.n};p._.prototype.getResources=function(){let{calendarApi:i}=this._context;return this._def.resourceIds.map(s=>i.getResourceById(s))},p._.prototype.setResources=function(i){let s=[];for(let t of i){let n=null;"string"==typeof t?n=t:"number"==typeof t?n=String(t):t instanceof P?n=t.id:console.warn("unknown resource type: "+t),n&&s.push(n)}this.mutate({standardProps:{resourceIds:s}})},Ce({ignoreRange:!0,parseMeta:i=>Array.isArray(i.resources)?i.resources:null,fetch(i,s){s({rawResources:i.resourceSource.meta})}}),Ce({parseMeta:i=>"function"==typeof i.resources?i.resources:null,fetch(i,s,t){const n=i.context.dateEnv,o=i.resourceSource.meta,r=i.range?{start:n.toDate(i.range.start),end:n.toDate(i.range.end),startStr:n.formatIso(i.range.start),endStr:n.formatIso(i.range.end),timeZone:n.timeZone}:{};(0,p.u)(o.bind(null,r),a=>s({rawResources:a}),t)}}),Ce({parseMeta:i=>i.url?{url:i.url,method:(i.method||"GET").toUpperCase(),extraParams:i.extraParams}:null,fetch(i,s,t){const n=i.resourceSource.meta,o=function cn(i,s,t){let r,a,d,u,{dateEnv:n,options:o}=t,f={};return s&&(r=i.startParam,null==r&&(r=o.startParam),a=i.endParam,null==a&&(a=o.endParam),d=i.timeZoneParam,null==d&&(d=o.timeZoneParam),f[r]=n.formatIso(s.start),f[a]=n.formatIso(s.end),"local"!==n.timeZone&&(f[d]=n.timeZone)),u="function"==typeof i.extraParams?i.extraParams():i.extraParams||{},Object.assign(f,u),f}(n,i.range,i.context);(0,p.r)(n.method,n.url,o).then(([r,a])=>{s({rawResources:r,response:a})},t)}});var pn=(0,K.i1)({name:"@fullcalendar/resource",premiumReleaseDate:"2025-04-02",deps:[se],reducers:[function Wt(i,s,t){let n=function Ot(i,s,t){let{options:n,dateProfile:o}=t;if(!i||!s)return He(n.initialResources||n.resources,o.activeRange,n.refetchResourcesOnNavigate,t);switch(s.type){case"RESET_RESOURCE_SOURCE":return He(s.resourceSourceInput,o.activeRange,n.refetchResourcesOnNavigate,t);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return function jt(i,s,t,n){return!t||function Gt(i){return!!Ue(i.sourceDefId).ignoreRange}(i)||i.fetchRange&&(0,p.b5)(i.fetchRange,s)?i:ye(i,s,n)}(i,o.activeRange,n.refetchResourcesOnNavigate,t);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return function $t(i,s,t){return s===i.latestFetchId?Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:t}):i}(i,s.fetchId,s.fetchRange);case"REFETCH_RESOURCES":return ye(i,o.activeRange,t);default:return i}}(i&&i.resourceSource,s,t),o=function Vt(i,s,t,n){if(!i||!s)return{};switch(s.type){case"RECEIVE_RESOURCES":return function Lt(i,s,t,n,o){if(n.latestFetchId===t){let r={};for(let a of s)fe(a,"",r,o);return r}return i}(i,s.rawResources,s.fetchId,t,n);case"ADD_RESOURCE":return function Bt(i,s){return Object.assign(Object.assign({},i),s)}(i,s.resourceHash);case"REMOVE_RESOURCE":return function Ut(i,s){let t=Object.assign({},i);delete t[s];for(let n in t)t[n].parentId===s&&(t[n]=Object.assign(Object.assign({},t[n]),{parentId:""}));return t}(i,s.resourceId);case"SET_RESOURCE_PROP":return function Ht(i,s,t,n){let o=i[s];return o?Object.assign(Object.assign({},i),{[s]:Object.assign(Object.assign({},o),{[t]:n})}):i}(i,s.resourceId,s.propName,s.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function Xt(i,s,t,n){let o=i[s];return o?Object.assign(Object.assign({},i),{[s]:Object.assign(Object.assign({},o),{extendedProps:Object.assign(Object.assign({},o.extendedProps),{[t]:n})})}):i}(i,s.resourceId,s.propName,s.propValue);default:return i}}(i&&i.resourceStore,s,n,t),r=function zt(i,s){return i&&s?"SET_RESOURCE_ENTITY_EXPANDED"===s.type?Object.assign(Object.assign({},i),{[s.id]:s.isExpanded}):i:{}}(i&&i.resourceEntityExpansions,s);return{resourceSource:n,resourceStore:o,resourceEntityExpansions:r}}],isLoadingFuncs:[i=>i.resourceSource&&i.resourceSource.isFetching],eventRefiners:Yt,eventDefMemberAdders:[function Jt(i){return{resourceIds:Qt(i.resourceIds).concat(i.resourceId?[i.resourceId]:[]),resourceEditable:i.resourceEditable}}],isDraggableTransformers:[function St(i,s,t,n){if(!i){let o=n.getCurrentData();if(o.viewSpecs[o.currentViewType].optionDefaults.needsResourceData&&Be(s,n))return!0}return i}],eventDragMutationMassagers:[function vt(i,s,t){let n=s.dateSpan.resourceId,o=t.dateSpan.resourceId;n&&o&&n!==o&&(i.resourceMutation={matchResourceId:n,setResourceId:o})}],eventDefMutationAppliers:[function Ct(i,s,t){let n=s.resourceMutation;if(n&&Be(i,t)){let o=i.resourceIds.indexOf(n.matchResourceId);if(-1!==o){let r=i.resourceIds.slice();r.splice(o,1),-1===r.indexOf(n.setResourceId)&&r.push(n.setResourceId),i.resourceIds=r}}}],dateSelectionTransformers:[function Kt(i,s){let t=i.dateSpan.resourceId;return t&&s.dateSpan.resourceId?{resourceId:t}:null}],datePointTransforms:[function Zt(i,s){return i.resourceId?{resource:s.calendarApi.getResourceById(i.resourceId)}:{}}],dateSpanTransforms:[function qt(i,s){return i.resourceId?{resource:s.calendarApi.getResourceById(i.resourceId)}:{}}],viewPropsTransformers:[class Et{constructor(){this.filterResources=(0,p.z)(Rt)}transform(s,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null}}
1,class Tt{constructor(){this.buildResourceEventUis=(0,p.z)(It,p.E),this.injectResourceEventUis=(0,p.z)(At)}transform(s,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(s.eventUiBases,s.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}}}],isPropsValid:function en(i,s){let n=(new rt).splitProps(Object.assign(Object.assign({},i),{resourceStore:s.getCurrentData().resourceStore}));for(let o in n){let r=n[o];if(o&&n[""]&&(r=Object.assign(Object.assign({},r),{eventStore:(0,p.aS)(n[""].eventStore,r.eventStore),eventUiBases:Object.assign(Object.assign({},n[""].eventUiBases),r.eventUiBases)})),!(0,p.bW)(r,s,{resourceId:o},tn.bind(null,o)))return!1}return!0},externalDefTransforms:[function on(i){return i.resourceId?{resourceId:i.resourceId}:{}}],eventDropTransformers:[function yt(i,s){let{resourceMutation:t}=i;if(t){let{calendarApi:n}=s;return{oldResource:n.getResourceById(t.matchResourceId),newResource:n.getResourceById(t.setResourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:{resources:function rn(i,s){s.getCurrentData().resourceSource._raw!==i&&s.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:i})}},optionRefiners:an,listenerRefiners:ln,propSetHandlers:{resourceStore:function at(i,s){let{emitter:t}=s;t.hasHandlers("resourcesSet")&&t.trigger("resourcesSet",function st(i,s){let t=[];for(let n in i)t.push(new P(s,i[n]));return t}(i,s))}}}),dn=c(6358),Z=c(26521),ae=c(41974);class un extends je{transformSeg(s,t,n){return t.computeColRanges(s.firstCol,s.lastCol,n).map(r=>Object.assign(Object.assign(Object.assign({},s),r),{isStart:s.isStart&&r.isStart,isEnd:s.isEnd&&r.isEnd}))}}class Xe extends p.bc{constructor(){super(...arguments),this.splitter=new Ge,this.slicers={},this.joiner=new un,this.tableRef=(0,g._3)(),this.isHitComboAllowed=(s,t)=>1===this.props.resourceDayTableModel.dayTableModel.colCnt||s.dateSpan.resourceId===t.dateSpan.resourceId}render(){let{props:s,context:t}=this,{resourceDayTableModel:n,nextDayThreshold:o,dateProfile:r}=s,a=this.splitter.splitProps(s);this.slicers=(0,p.a)(a,(u,f)=>this.slicers[f]||new ae.ve);let d=(0,p.a)(this.slicers,(u,f)=>u.sliceProps(a[f],r,o,t,n.dayTableModel));return(0,g.n)(ae.XI,Object.assign({forPrint:s.forPrint,ref:this.tableRef},this.joiner.joinProps(d,n),{cells:n.cells,dateProfile:r,colGroupNode:s.colGroupNode,tableMinWidth:s.tableMinWidth,renderRowIntro:s.renderRowIntro,dayMaxEvents:s.dayMaxEvents,dayMaxEventRows:s.dayMaxEventRows,showWeekNumbers:s.showWeekNumbers,expandRows:s.expandRows,headerAlignElRef:s.headerAlignElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,isHitComboAllowed:this.isHitComboAllowed}))}}class mn extends je{transformSeg(s,t,n){return[Object.assign(Object.assign({},s),{col:t.computeCol(s.col,n)})]}}class _n extends p.bc{constructor(){super(...arguments),this.buildDayRanges=(0,p.z)(Z.RU),this.splitter=new Ge,this.slicers={},this.joiner=new mn,this.timeColsRef=(0,g._3)(),this.isHitComboAllowed=(s,t)=>1===this.dayRanges.length||s.dateSpan.resourceId===t.dateSpan.resourceId}render(){let{props:s,context:t}=this,{dateEnv:n,options:o}=t,{dateProfile:r,resourceDayTableModel:a}=s,d=this.dayRanges=this.buildDayRanges(a.dayTableModel,r,n),u=this.splitter.splitProps(s);this.slicers=(0,p.a)(u,(v,y)=>this.slicers[y]||new Z.P2);let f=(0,p.a)(this.slicers,(v,y)=>v.sliceProps(u[y],r,null,t,d));return(0,g.n)(p.a6,{unit:o.nowIndicator?"minute":"day"},(v,y)=>(0,g.n)(Z.Ty,Object.assign({ref:this.timeColsRef},this.joiner.joinProps(f,a),{dateProfile:r,axis:s.axis,slotDuration:s.slotDuration,slatMetas:s.slatMetas,cells:a.cells[0],tableColGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,clientWidth:s.clientWidth,clientHeight:s.clientHeight,expandRows:s.expandRows,nowDate:v,nowIndicatorSegs:o.nowIndicator&&this.buildNowIndicatorSegs(v),todayRange:y,onScrollTopRequest:s.onScrollTopRequest,forPrint:s.forPrint,onSlatCoords:s.onSlatCoords,isHitComboAllowed:this.isHitComboAllowed})))}buildNowIndicatorSegs(s){let t=this.slicers[""].sliceNowDate(s,this.props.dateProfile,this.context.options.nextDayThreshold,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,t)}}function gn(i,s,t,n,o){let r=(0,Z.Sv)(i,s);return n?new ke(r,t,o):new we(r,t,o)}var vn=(0,K.i1)({name:"@fullcalendar/resource-timegrid",premiumReleaseDate:"2025-04-02",deps:[se,pn,dn.A],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:class fn extends Z.cY{constructor(){super(...arguments),this.flattenResources=(0,p.z)($e),this.buildRes
1ourceTimeColsModel=(0,p.z)(gn),this.buildSlatMetas=(0,p.z)(Z.h)}render(){let{props:s,context:t}=this,{options:n,dateEnv:o}=t,{dateProfile:r}=s,a=this.allDaySplitter.splitProps(s),u=this.flattenResources(s.resourceStore,n.resourceOrder||Pe),f=this.buildResourceTimeColsModel(r,t.dateProfileGenerator,u,n.datesAboveResources,t),v=this.buildSlatMetas(r.slotMinTime,r.slotMaxTime,n.slotLabelInterval,n.slotDuration,o),{dayMinWidth:y}=n,E=!y,x=y,M=n.dayHeaders&&(0,g.n)(Fe,{resources:u,dates:f.dayTableModel.headerDates,dateProfile:r,datesRepDistinctDays:!0,renderIntro:E?this.renderHeadAxis:null}),k=!1!==n.allDaySlot&&(I=>(0,g.n)(Xe,Object.assign({},a.allDay,{dateProfile:r,resourceDayTableModel:f,nextDayThreshold:n.nextDayThreshold,tableMinWidth:I.tableMinWidth,colGroupNode:I.tableColGroupNode,renderRowIntro:E?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:I.clientWidth,clientHeight:I.clientHeight,forPrint:s.forPrint},this.getAllDayMaxEventProps()))),j=I=>(0,g.n)(_n,Object.assign({},a.timed,{dateProfile:r,axis:E,slotDuration:n.slotDuration,slatMetas:v,resourceDayTableModel:f,tableColGroupNode:I.tableColGroupNode,tableMinWidth:I.tableMinWidth,clientWidth:I.clientWidth,clientHeight:I.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:I.expandRows,forPrint:s.forPrint,onScrollTopRequest:this.handleScrollTopRequest}));return x?this.renderHScrollLayout(M,k,j,f.colCnt,y,v,this.state.slatCoords):this.renderSimpleLayout(M,k,j)}},needsResourceData:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}}),Cn=c(85833),yn=c(80216),En=c(56119),Rn=c(7763),bn=c(72243),Dn=c(3051),ze=c(91143),le=c(31430),ce=c(40438),z=c(69508),W=c(90842),m=c(1187),xn=c(48021),Y=c(41100),Sn=c(38053),We=c(97e3),J=c(28742),H=c(53065),Tn=c(6411),In=c(98149),T=c(85270),Ye=c(47241),An=c(41460),Mn=c(23536),C=c(19656),ne=c(41134),Q=function(i){return i.TODAYS_APPOINTMENT="Today's Appt",i.APPOINTMENT_REQUESTED="Appt. Requested",i}(Q||{}),Pn=c(69939),O=c(61381),Fn=c(30338),Je=c(5325),Qe=c(57258),Nn=c(46463);class Ee extends Nn.U{static mapForPayload(s){const t=new Ee;return t.isWarningDisplayed=s.isWarningDisplayed,t.to=(0,m.JM)(s.httpEndDate,m.ez),t.from=(0,m.JM)(s.httpStartDate,m.ez),t.vetId=s?.doctorId,t.mapToConcurrencyModel(s),t}}class Re{static mapForPayload(s){const t=new Re;return t.appointmentId=s.appointmentId,t.date=(0,m.JM)(s.httpStartDate,m.ez),t.speciesMasterId=s?.pet?.petSpeciesId||s?.pet?.speciesMasterId,t.status=C.n.INITIATE,t.isReassign=!1,t.storeInTimeline=!0,t}}var wn=c(10840),kn=c(75817),On=c(11307),jn=c(51470),Ke=c(24911),Gn=c(19019),Ze=c(2205),$n=c(84730),Vn=c(8974),be=c(23968),Ln=c(63903),ie=c(41822),Bn=c(26281),De=c(32881),Un=c(10735),pe=c(88498),de=c(96955),Hn=c(81335),xe=c(96850),ue=c(9454),Xn=c(57829),zn=c(27799),Wn=c(25596),Yn=c(47264),Jn=c(30425),Qn=c(14320),Kn=c(90591),Zn=c(85626),qn=c(77883),Se=c(59115),ei=c(9183),ti=c(67575),ni=c(62212),ii=c(91463),oi=c(78359),si=c(27082),ri=c(13912),ai=c(34378),li=c(30927),ci=c(38710),pi=c(19458),di=c(13043),ui=c(56027),hi=c(38641),mi=c(98537),_i=c(16988),fi=c(13136),gi=c(52426),vi=c(95624);const Ci=["eventPopover"],yi=["appointmentPopover"],Ei=i=>({"pointer-event-none":i}),Ri=i=>({element:i,dateFormat:"hh:mm A"}),bi=i=>({element:i}),qe=i=>({item:i}),et=(i,s)=>s.key;function Di(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-doctor-selection-dropdown",31),e.bIt("optionSelected",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onOptionSelected(o))})("responseReceived",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onResponseReceived(o))}),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("panelClass","select-checkbox-rtl bordered-menu doctor-selection-dropdown-width")("allowMultiSelect",!0)("clinicId",t.clinicId)("control",t.doctorControl)("showRequiredMessage",!1)("returnObject",!0)("setInitialValue",!1)("showLabel",!1)}}function xi(i,s){1&i&&(e.j41(0,"div",16),e.nrm(1,"mat-progress-bar",32),e.k0s())}function Si(i,s){if(1&i&&(e.j41(0,"span",34),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.JRh(t.appointmentRequestBadgeCount)}}function Ti(i,s){if(1&i){const t=e.RV6();e.j41(0,"div",33),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(2);return e.Njj(r.onTabChange(o))}),e.EFF(1),e.DNE(2,Si,2,1,"span",34),e.k0s()}if(2&i){const t=s.$implicit,n=e.XpG().$implicit,o=e.XpG();e.Y8G("active",o.activeTab===t),e.R7$(),e.SpI(" ",n(t)," "),e.R7$(),e.vxM(t===o.appointmentTypeEnum.APPOINTMENT_REQUESTED&&o.activeTab!==o.appointmentTypeEnum.APPOINTMENT_REQUESTED?2:-1)}}function Ii(i,s){1&i&&e.eu8(0)}function Ai(i,s){if(1&i&&e.DNE(0,Ii,1,0,"ng-container",43),2&i){const t=s.$implicit;e.XpG(5);const n=e.sdS(28);e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,Ri,t))}}function Mi(i,s){if(1&i&&(e.j41(0,"div",41),e.Z7z(1,Ai,1,4,"ng-container",null,e.fX1),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.Y8G("ngClass",(null==t?null:t.value.length)>=4?"h-20":""),e.R7$(),e.Dyx(null==t?null:t.value)}}function Pi(i,s){if(1&i&&(e.j41(0,"p",42),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit,n=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",n(null==t?null:t.message)," ")}}function Fi(i,s){if(1&i&&(e.j41(0,"mat-expansion-panel",35)(1,"mat-expansion-panel-header",36)(2,"mat-panel-title",37),e.nrm(3,"app-icon",38),e.nI1(4,"appointmentStatus"),e.nI1(5,"isEmpty"),e.j41(6,"span",39),e.EFF(7),e.nI1(8,"appointmentStatus"),e.nI1(9,"isEmpty"),e.k0s()(),e.j41(10,"span",40),e.EFF(11),e.k0s()(),e.DNE(12,Mi,3,1,"div",41)(13,Pi,2,1,"p",42),e.k0s()),2&i){const t=e.XpG().$implicit,n=e.XpG(2).$implicit;e.R7$(3),e.Y8G("icon",t.icon)("iconClass","mr-5px ic-small")("size","sm")("tooltip",e.bMT(5,11,n(e.brH(4,7,t.key,!1,!1)))),e.R7$(4),e.SpI(" ",n(e.bMT(9,17,e.brH(8,13,t.key,!1,!1)))," "),e.R7$(4),e.JRh(null==t?null:t.value.length),e.R7$(),e.vxM(null!=t&&null!=t.value&&t.value.length?12:13)}}function Ni(i,s){if(1&i&&e.DNE(0,Fi,14,19,"mat-expansion-panel",35),2&i){const t=s.$implicit,n=e.XpG(3);e.vxM(t.key!==n.appointmentStatusEnum.PENDING?0:-1)}}function wi(i,s){if(1&i&&e.Z7z(0,Ni,1,1,null,null,et),2&i){const t=e.XpG(2);e.Dyx(t.groupedStatusList)}}function ki(i,s){1&i&&e.eu8(0)}function Oi(i,s){if(1&i&&e.DNE(0,ki,1,0,"ng-container",43),2&i){const t=s.$implicit;e.XpG(5);const n=e.sdS(30);e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.eq3(2,bi,t))}}function ji(i,s){if(1&i&&(e.j41(0,"div",46),e.Z7z(1,Oi,1,4,"ng-container",null,e.fX1),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.Dyx(null==t?null:t.value)}}function Gi(i,s){if(1&i&&(e.j41(0,"p",47),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit,n=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",n(null==t?null:t.message)," ")}}function $i(i,s){if(1&i&&(e.j41(0,"mat-expansion-panel",44)(1,"mat-expansion-panel-header",45)(2,"mat-panel-title",37),e.nrm(3,"app-icon",38),e.j41(4,"span",39),e.EFF(5),e.k0s()(),e.j41(6,"span",40),e.EFF(7),e.k0s()(),e.DNE(8,ji,3,0,"div",46)(9,Gi,2,1,"p",47),e.k0s()),2&i){const t=e.XpG().$implicit,n=e.XpG(2).$implicit;e.Y8G("hideToggle",!0),e.R7$(3),e.Y8G("icon",t.icon)("iconClass","mr-5px ic-small")("size","sm")("tooltip",n("App. Requested")),e.R7$(2),e.JRh(n("Appointment Requested")),e.R7$(2),e.JRh(null==t?null:t.value.length),e.R7$(),e.vxM(null!=t&&null!=t.value&&t.value.length?8:9)}}function Vi(i,s){if(1&i&&e.DNE(0,$i,10,8,"mat-expansion-panel",44),2&i){const t=s.$implicit,n=e.XpG(3);e.vxM(t.key===n.appointmentStatusEnum.PENDING?0:-1)}}function Li(i,s){if(1&i&&e.Z7z(0,Vi,1,1,null,null,et),2&i){const t=e.XpG(2);e.Dyx(t.groupedPaddingStatusList)}}function Bi(i,s){1&i&&e.nrm(0,"app-icon",55),2&i&&e.Y8G("icon","deceased")("color","warn")("size","xs")}function Ui(i,s){1&i&&(e.j41(0,"span",56),e.EFF(1,"Draft"),e.k0s())}function Hi(i,s){1&i&&e.eu8(0)}function Xi(i,s){if(1&i&&(e.SS7(0)(1),e.j41(2,"div",48)(3,"div",49),e.nrm(4,"app-image-view",50),e.k0s(),e.j41(5,"div",51)(6,"div",52)(7,"span",53)(8,"span",54),e.
1EFF(9),e.k0s(),e.EFF(10),e.k0s(),e.DNE(11,Bi,1,3,"app-icon",55)(12,Ui,2,0,"span",56),e.k0s(),e.j41(13,"div",57)(14,"span",58),e.EFF(15),e.k0s(),e.j41(16,"span",59),e.EFF(17),e.nI1(18,"dateFormat"),e.k0s()(),e.j41(19,"div")(20,"span",60),e.EFF(21),e.k0s()()(),e.j41(22,"div"),e.DNE(23,Hi,1,0,"ng-container",43),e.k0s()()),2&i){const t=s.element,n=e.XpG().$implicit,o=e.sdS(32),r=null==t?null:t.pet,a=null==r?null:r.isDeceased;e.R7$(2),e.AVh("deceased",a),e.R7$(2),e.Y8G("imagePath",null==t?null:t.petProfilePic)("signingRequired",!0)("width",34),e.R7$(3),e.Y8G("matTooltip",(null==t?null:t.petName)+"("+(null==t?null:t.clientName)+")"),e.R7$(2),e.JRh(null==t?null:t.petName),e.R7$(),e.SpI(" ","("+(null==t?null:t.clientName)+")"," "),e.R7$(),e.vxM(a?11:-1),e.R7$(),e.vxM(t.isDraftVisit?12:-1),e.R7$(3),e.Lme(" ",n(null==t?null:t.species)," ",null!=t&&t.petGender?"\u2022 "+(null==t?null:t.petGender):""," "),e.R7$(2),e.SpI(" ",e.i5U(18,19,null==t?null:t.start,"hh:mm A")," "),e.R7$(4),e.LHq(" ",null==t?null:t.doctorFirstNameWithTitle," ",n("For")," ",null==t?null:t.visitDuration," ",n("Min")," "),e.R7$(2),e.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",e.eq3(22,qe,t))}}function zi(i,s){1&i&&e.nrm(0,"app-icon",55),2&i&&e.Y8G("icon","deceased")("color","warn")("size","xs")}function Wi(i,s){1&i&&(e.j41(0,"span",56),e.EFF(1,"Draft"),e.k0s())}function Yi(i,s){1&i&&e.eu8(0)}function Ji(i,s){if(1&i&&(e.SS7(0)(1),e.j41(2,"div",48)(3,"div",49),e.nrm(4,"app-image-view",50),e.k0s(),e.j41(5,"div",51)(6,"div",52)(7,"span",53)(8,"span",54),e.EFF(9),e.k0s(),e.EFF(10),e.k0s(),e.DNE(11,zi,1,3,"app-icon",55)(12,Wi,2,0,"span",56),e.k0s(),e.j41(13,"div",57)(14,"span",58),e.EFF(15),e.k0s(),e.j41(16,"span",59),e.EFF(17),e.nI1(18,"dateFormat"),e.k0s()(),e.j41(19,"div",57)(20,"span",60),e.EFF(21),e.k0s(),e.j41(22,"span",59),e.EFF(23),e.nI1(24,"dateFormat"),e.k0s()()(),e.j41(25,"div"),e.DNE(26,Yi,1,0,"ng-container",43),e.k0s()()),2&i){const t=s.element,n=e.XpG().$implicit,o=e.sdS(32),r=null==t?null:t.pet,a=null==r?null:r.isDeceased;e.R7$(2),e.AVh("deceased",a),e.R7$(2),e.Y8G("imagePath",null==t?null:t.petProfilePic)("signingRequired",!0)("width",34),e.R7$(3),e.Y8G("matTooltip",(null==t?null:t.petName)+"("+(null==t?null:t.clientName)+")"),e.R7$(2),e.JRh(null==t?null:t.petName),e.R7$(),e.SpI(" ","("+(null==t?null:t.clientName)+")"," "),e.R7$(),e.vxM(a?11:-1),e.R7$(),e.vxM(t.isDraftVisit?12:-1),e.R7$(3),e.Lme(" ",n(null==t?null:t.species)," ",null!=t&&t.petGender?"\u2022 "+(null==t?null:t.petGender):""," "),e.R7$(2),e.SpI(" ",e.i5U(18,20,null==t?null:t.start,"MMM DD, YYYY")," "),e.R7$(4),e.LHq(" ",null==t?null:t.doctorFirstNameWithTitle," ",n("For")," ",null==t?null:t.visitDuration," ",n("Min")," "),e.R7$(2),e.SpI(" ",e.i5U(24,23,null==t?null:t.start,"hh:mm A")," "),e.R7$(3),e.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",e.eq3(26,qe,t))}}function Qi(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.XpG(2);return e.Njj(r.getConsentFormDetails(o))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t("Check In"))}}function Ki(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2).item,r=e.XpG(2);return e.Njj(r.updateAppointmentForm(o,r.appointmentUpdateTypeEnum.PENDING))}),e.j41(1,"b"),e.EFF(2),e.k0s()(),e.j41(3,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2).item,r=e.XpG(2);return e.Njj(r.updateAppointmentForm(o,r.appointmentUpdateTypeEnum.ACCEPT_AND_RESCHEDULE_APPOINTMENT))}),e.j41(4,"b"),e.EFF(5),e.k0s()()}if(2&i){const t=e.XpG(3).$implicit;e.R7$(2),e.JRh(t("Accept")),e.R7$(3),e.JRh(t("Accept & Update Appointment"))}}function Zi(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t),e.XpG(2);const o=e.r8f(1),r=e.r8f(2),a=e.XpG(2);return e.Njj(a.redirectToEditPet(null==o?null:o.petId,null==r?null:r.petOwnerId))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(3).$implicit;e.R7$(2),e.JRh(t("Activate Pet"))}}function qi(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t),e.XpG(2);const o=e.r8f(2),r=e.XpG(2);return e.Njj(r.redirectToEditOwner(null==o?null:o.petOwnerId))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(3).$implicit;e.R7$(2),e.JRh(t("Activate Owner"))}}function eo(i,s){if(1&i&&e.DNE(0,Ki,6,2)(1,Zi,3,1,"button",63)(2,qi,3,1,"button",63),2&i){e.XpG();
1const t=e.r8f(3),n=e.r8f(4),o=e.r8f(5),r=e.r8f(16);e.vxM(r?0:-1),e.R7$(),e.vxM(t||n?-1:1),e.R7$(),e.vxM(t||o?-1:2)}}function to(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.XpG(2);return e.Njj(r.draftVisitFun(o))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t("Draft Visit"))}}function no(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.XpG(2);return e.Njj(r.removeLastVisitParams(o.visitId))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t("View Draft"))}}function io(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.XpG(2);return e.Njj(r.startVisit(o))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t("Start Visit"))}}function oo(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.XpG(2);return e.Njj(r.changesAppointmentStatus(null==o?null:o.appointmentId,r.appointmentStatusEnum.NO_SHOW,null==o?null:o.updatedAt))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t("No show"))}}function so(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.r8f(6),a=e.XpG(2);return e.Njj(a.updateAppointmentForm(o,r?a.appointmentUpdateTypeEnum.RESCHEDULE_APPOINTMENT_RECURRING_SINGLE:a.appointmentUpdateTypeEnum.RESCHEDULE_APPOINTMENT))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t("Update Appointment"))}}function ro(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.r8f(12),a=e.XpG(2);return e.Njj(a.onChangesAppointmentStatus(null==o?null:o.appointmentId,r?a.appointmentStatusEnum.REJECTED:a.appointmentStatusEnum.CANCEL,null==o?null:o.updatedAt))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){e.XpG();const t=e.r8f(12),n=e.XpG().$implicit;e.R7$(2),e.JRh(n(t?"Reject Appointment":"Cancel Appointment"))}}function ao(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.XpG(2);return e.Njj(r.removeLastVisitParams(null==o?null:o.visitId))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t("View Visit"))}}function lo(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.XpG(2);return e.Njj(r.updateAppointmentForm(o,r.appointmentUpdateTypeEnum.SCHEDULE_FOLLOW_UP))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t("Schedule Follow Up"))}}function co(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.XpG(2);return e.Njj(r.updateAppointmentForm(o,r.appointmentUpdateTypeEnum.RESCHEDULE_APPOINTMENT_ALL))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t(" Update All Recurring Appointment"))}}function po(i,s){if(1&i){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG().item,r=e.XpG(2);return e.Njj(r.onChangesAppointmentStatus(null==o?null:o.appointmentId,r.appointmentStatusEnum.CANCEL_ALL,null==o?null:o.updatedAt))}),e.j41(1,"b"),e.EFF(2),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(2),e.JRh(t("Cancel All Recurring Appointment"))}}function uo(i,s){if(1&i&&(e.SS7(0)(1)(2)(3)(4)(5)(6)(7)(8)(9)(10)(11)(12)(13)(14)(15)(16)(17),e.nrm(18,"app-button",61),e.j41(19,"mat-menu",62,8),e.DNE(21,Qi,3,1,"button",63)(22,eo,3,3)(23,to,3,1,"button",63)(24,no,3,1,"button",63)(25,io,3,1,"button",63)(26,oo,3,1,"button",63)(27,so,3,1,"button",63)(28,ro,3,1,"button",63)(29,ao,3,1,"button",63)(30,lo,3,1,"button",63)(31,co,3,1,"button",63)(32,po,3,1,"button",63),e.k0s()),2&i){const t=s.item,n=e.sdS(20),o=e.XpG(2),r=null==t?null:t.appointmentStatus;e.R7$();const a=e.bH3(null==t?null:t.pet);e.R7$();const d=e.bH3(null==t?null:t.petOwner);e.R7$();const u=e.bH3(null==a?null:a.isDeceased);e.R7$();const f=e.bH3(null==a?null:a.isActive);e.R7$();const v=e.bH3(null==d?null:d.isActive);e.R7$();const y=e.bH3(null==t?null:t.isRecurringAppointment),E=null==t?null:t.isDraftVisit,x=r===o.appointmentStatusEnum.ACCEPTED,M=r===o.appointmentStatusEnum.CHECKED_IN,k=r===o.appointmentStatusEnum.ENGAGED,j=r===o.appointmentStatusEnum.COMPLETED;
1e.R7$(6);const I=e.bH3(r===o.appointmentStatusEnum.PENDING),Ie=!k&&!j&&!I,_e=(x||M)&&!k&&!j&&!(r===o.appointmentStatusEnum.NO_SHOW);e.R7$(4);const Ae=e.bH3(!u&&f&&v),nt=(x||M)&&y;e.R7$(2),e.Y8G("color","primary")("iconSize","xs")("icon","more")("matMenuTriggerFor",n)("variant","icon")("size","sm"),e.R7$(3),e.vxM(x&&!j?21:-1),e.R7$(),e.vxM(I?22:-1),e.R7$(),e.vxM(E||I||k||!x?-1:23),e.R7$(),e.vxM(E?24:-1),e.R7$(),e.vxM(_e?25:-1),e.R7$(),e.vxM(x&&!j?26:-1),e.R7$(),e.vxM(Ie?27:-1),e.R7$(),e.vxM(k||j?-1:28),e.R7$(),e.vxM(k||j?29:-1),e.R7$(),e.vxM(j&&Ae?30:-1),e.R7$(),e.vxM(null!=t&&t.isModified||!nt?-1:31),e.R7$(),e.vxM(nt?32:-1)}}function ho(i,s){1&i&&(e.j41(0,"div",65),e.nrm(1,"mat-spinner",66),e.k0s())}function mo(i,s){if(1&i&&(e.j41(0,"span",70),e.EFF(1),e.k0s()),2&i){e.XpG();const t=e.r8f(0);e.R7$(),e.JRh(t.visitTitle)}}function _o(i,s){1&i&&e.nrm(0,"i",81)}function fo(i,s){if(1&i&&(e.j41(0,"div",89),e.nrm(1,"i",116),e.j41(2,"span",117),e.EFF(3),e.k0s()()),2&i){e.XpG();const t=e.r8f(0);e.R7$(3),e.JRh(t.warning)}}function go(i,s){if(1&i&&(e.j41(0,"div",89),e.nrm(1,"i",116),e.j41(2,"span",117),e.EFF(3),e.k0s()()),2&i){e.XpG();const t=e.r8f(2);e.R7$(3),e.JRh(t.warning)}}function vo(i,s){if(1&i&&(e.j41(0,"div",102)(1,"span",99)(2,"strong"),e.EFF(3),e.k0s()(),e.j41(4,"span",118),e.EFF(5),e.k0s()()),2&i){e.XpG();const t=e.r8f(0),n=e.XpG().$implicit;e.R7$(3),e.JRh(n("Pre Exam Note")),e.R7$(2),e.JRh(t.preExamNote)}}function Co(i,s){if(1&i&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3).$implicit;e.R7$(),e.JRh(t("This pet has been marked as deceased"))}}function yo(i,s){if(1&i&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3).$implicit;e.R7$(),e.JRh(t('The Pet is "Inactive". Please change it to "Active" to continue'))}}function Eo(i,s){if(1&i&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3).$implicit;e.R7$(),e.JRh(t('The Owner is "Inactive". Please change it to "Active" to continue'))}}function Ro(i,s){if(1&i&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&i){const t=e.XpG(3).$implicit;e.R7$(),e.JRh(t('The Owner and Pet are "Inactive". Please change it to "Active" to continue'))}}function bo(i,s){if(1&i&&(e.j41(0,"div",103),e.nrm(1,"i",116),e.DNE(2,Co,2,1,"span",117)(3,yo,2,1,"span",117)(4,Eo,2,1,"span",117)(5,Ro,2,1,"span",117),e.k0s()),2&i){e.XpG();const t=e.r8f(4),n=e.r8f(5),o=e.r8f(6);e.R7$(2),e.vxM(t?2:!n&&o?3:!o&&n?4:5)}}function Do(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",119),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return o.isToday&&r.getConsentFormDetails(o),e.Njj(r.closePopup())}),e.k0s()}if(2&i){e.XpG();const t=e.r8f(0),n=e.XpG().$implicit;e.HbH("w-full"),e.Y8G("label",n("Check In"))("size","sm")("disabled",!t.isToday)("variant","text")}}function xo(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",120),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.draftVisitFun(o),e.Njj(r.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Draft Visit"))("size","sm")("variant","text")}}function So(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",121),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.startVisit(o),e.Njj(r.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Start visit"))("size","sm")("variant","text")}}function To(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",122),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.changesAppointmentStatus(o.appointmentId,r.appointmentStatusEnum.NO_SHOW,o.updatedAt),e.Njj(r.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("No Show"))("size","sm")("variant","text")}}function Io(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",123),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.r8f(7),a=e.XpG(2);return a.updateAppointmentForm(o,r?a.appointmentUpdateTypeEnum.RESCHEDULE_APPOINTMENT_RECURRING_SINGLE:a.appointmentUpdateTypeEnum.RESCHEDULE_APPOINTMENT),e.Njj(a.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Update Appointment"))("size","sm")("variant","text")}}function Ao(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",125),e.bIt("onClick",function(){e.eBV(t),e.XpG(2);const o=e.r8f(0),r=e.XpG(2);return r.updateAppointmentForm(o,r.appointmentUpdateTypeEnum.RESCHEDULE_APPOINTMENT_ALL),e.Njj(r.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(3).$implicit;e.HbH("w-full"),e.Y8G("label",t(" Update All Recurring Appointment"))("size","sm")("variant","text")}}function Mo(i,s){if(1&i&&e.DNE(0,Ao,1,5,"app-button",124),2&i){e.XpG();const t=e.r8f(17);e.vxM(t?0:-1)}}function Po(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",126),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.updateAppointmentForm(o,r.appointmentUpdateTypeEnum.PENDING),e.Njj(r.closePopup())}),e.k0s(),e.j41(1,"app-button",127),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.updateAppointmentForm(o,r.appointmentUpdateTypeEnum.ACCEPT_AND_RESCHEDULE_APPOINTMENT),e.Njj(r.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Accept"))("size","sm")("variant","text"),e.R7$(),e.HbH("w-full"),e.Y8G("label",t("Accept & Update Appointment"))("size","sm")("variant","text")}}function Fo(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",128),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(1),r=e.r8f(2),a=e.XpG(2);return e.Njj(a.redirectToEditPet(o.petId,r.petOwnerId))}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Activate Pet"))("size","sm")("variant","text")}}function No(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",129),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(2),r=e.XpG(2);return e.Njj(r.redirectToEditOwner(o.id))}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Activate Owner"))("size","sm")("variant","text")}}function wo(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",130),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return e.Njj(r.navigateToViewVisit(o.visitId))}),e.k0s()}if(2&i){e.XpG();const t=e.r8f(0),n=e.XpG().$implicit;e.HbH("w-full"),e.Y8G("label",n(t.isDraftVisit?"View Draft":"View Visit"))("size","sm")("variant","text")}}function ko(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",131),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.onChangesAppointmentStatus(o.appointmentId,r.appointmentStatusEnum.CANCEL,o.updatedAt),e.Njj(r.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Cancel Appointment"))("size","sm")("color","warn")("variant","text")}}function Oo(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",132),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.onChangesAppointmentStatus(o.appointmentId,r.appointmentStatusEnum.REJECTED,o.updatedAt),e.Njj(r.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Reject Appointment"))("size","sm")("color","warn")("variant","text")}}function jo(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",133),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.onChangesAppointmentStatus(o.appointmentId,r.appointmentStatusEnum.CANCEL_ALL,o.updatedAt),e.Njj(r.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Cancel All Recurring Appointment"))("size","sm")("color","warn")("variant","text")}}function Go(i,s){if(1&i){const t=e.RV6();e.j41(0,"app-button",134),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.updateAppointmentForm(o,r.appointmentUpdateTypeEnum.SCHEDULE_FOLLOW_UP),e.Njj(r.closePopup())}),e.k0s()}if(2&i){const t=e.XpG(2).$implicit;e.HbH("w-full"),e.Y8G("label",t("Schedule Follow Up"))("size","sm")("variant","text")}}function $o(i,s){if(1&i){const t=e.RV6();e.SS7(0)(1)(2)(3)(4)(5)(6)(7)(8)(9)(10)(11)(12)(13)(14)(15)(16)(17),e.j41(18,"div",29)(19,"div",67)(20,"div",68)(21,"span",69),e.EFF(22),e.DNE(23,mo,2,1,"span",70),e.k0s(),e.j41(24,"span",71),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.appointmentPop().hide())}),e.nrm(25,"img",72),e.k0s()(),e.j41(26,"div",73)(27,"div",74)(28,"div",75)(29,"div",76),e.nrm(30,"app-image-view",77),e.k0s(),e.j41(31,"div",78)(32,"div",79)(33,"span",80),e.EFF(34),e.nI1(35,"isEmpty"),e.DNE(36,_o,1,0,"i",81),e.k0s()(),e.j41(37,"div",82)(38,"div",83)(39,"span"),e.EFF(40),e.k0s(),e.j41(41,"span",84),e.EFF(42),e.nI1(43,"isEmpty"),e.k0s()(),e.j41(44,"div",83)(45,"span"),e.EFF(46),e.k0s(),e.j41(47,"span",84),e.EFF(48),e.nI1(49,"isEmpty"),e.k0s()(),e.j41(50,"div",83)(51,"span"),e.EFF(52),e.k0s(),e.j41(53,"app-popover",85)(54,"span",86),e.EFF(55),e.nI1(56,"isEmpty"),e.k0s()()(),e.j41(57,"div",83)(58,"span"),e.EFF(59),e.k0s(),e.j41(60,"span",87),e.EFF(61),e.nI1(62,"isEmpty"),e.k0s()()()(),e.j41(63,"div")(64,"app-button",88),e.bIt("onClick",function(){e.eBV(t);const o=e.r8f(1),r=e.r8f(2),a=e.XpG(2);return e.Njj(a.navigateToPetProfile(o.petId,r.petOwnerId))}),e.k0s()()(),e.DNE(65,fo,4,1,"div",89),e.k0s(),e.j41(66,"div",90)(67,"div",75)(68,"div",91),e.nrm(69,"app-image-view",92),e.k0s(),e.j41(70,"div",78)(71,"div",79)(72,"span",93),e.EFF(73),e.nI1(74,"isEmpty"),e.k0s()(),e.j41(75,"div",94)(76,"span",95),e.EFF(77),e.nI1(78,"isEmpty"),e.k0s(),e.j41(79,"span"),e.EFF(80),e.nI1(81,"phoneNumberFormat"),e.k0s()()(),e.j41(82,"div",96)(83,"app-button",97),e.bIt("onClick",function(){e.eBV(t);const o=e.r8f(2),r=e.XpG(2);return e.Njj(r.navigateToOwnerProfile(o.id))}),e.k0s()()(),e.DNE(84,go,4,1,"div",89),e.k0s(),e.j41(85,"div",98)(86,"span",99)(87,"strong"),e.EFF(88),e.nI1(89,"dateFormat"),e.k0s()(),e.j41(90,"span",100),e.EFF(91),e.j41(92,"span",101),e.EFF(93),e.k0s(),e.EFF(94),e.k0s()(),e.DNE(95,vo,6,2,"div",102)(96,bo,6,1,"div",103)(97,Do,1,6,"app-button",104)(98,xo,1,5,"app-button",105)(99,So,1,5,"app-button",106)(100,To,1,5,"app-button",107)(101,Io,1,5,"app-button",108)(102,Mo,1,1)(103,Po,2,10)(104,Fo,1,5,"app-button",109)(105,No,1,5,"app-button",110)(106,wo,1,5,"app-button",111)(107,ko,1,6,"app-button",112)(108,Oo,1,6,"app-button",113)(109,jo,1,6,"app-button",114)(110,Go,1,5,"app-button",115),e.k0s()()()}if(2&i){const t=e.XpG().$implicit,n=e.XpG(),o=e.bH3(n.selectedEvent);e.R7$();const r=e.bH3(o.pet);e.R7$();const a=e.bH3(o.petOwner),d=o.appointmentStatus;e.R7$(2);
1const u=e.bH3(null==r?null:r.isDeceased);e.R7$();const f=e.bH3(null==r?null:r.isActive);e.R7$();const v=e.bH3(null==a?null:a.isActive);e.R7$();const y=e.bH3(o.isRecurringAppointment),E=d===n.appointmentStatusEnum.ENGAGED,x=d===n.appointmentStatusEnum.COMPLETED,M=d===n.appointmentStatusEnum.PENDING,k=d===n.appointmentStatusEnum.ACCEPTED,j=d===n.appointmentStatusEnum.CHECKED_IN,I=d===n.appointmentStatusEnum.NO_SHOW,Te=!E&&!x&&!M,Ie=!E&&!x&&!M,_e=!u&&f&&v;e.R7$(10);const Ae=e.bH3((k||j||I)&&y);e.R7$(5),e.SpI(" ",t("Appointment Detail")," "),e.R7$(),e.vxM(o.visitTitle?23:-1),e.R7$(5),e.AVh("deceased",u),e.R7$(2),e.Y8G("imagePath",o.petProfilePicSignedUrl)("signingRequired",!1)("width",46)("height",46),e.R7$(4),e.SpI(" ",e.bMT(35,66,o.petName)," "),e.R7$(2),e.vxM(u?36:-1),e.R7$(4),e.JRh(t("Species")),e.R7$(2),e.JRh(e.bMT(43,68,t(o.species))),e.R7$(4),e.JRh(t("Gender")),e.R7$(2),e.JRh(e.bMT(49,70,o.petGender)),e.R7$(4),e.JRh(t("Breed")),e.R7$(),e.Y8G("tippyTemplate",o.breedName?t(o.breedName):"")("tippyConfig",n.breedTooltipTippyConfig)("tippyBoxClass","text-tiny p-5px tooltip-dark"),e.R7$(2),e.JRh(e.bMT(56,72,o.breedName)),e.R7$(4),e.JRh(t("Weight")),e.R7$(2),e.JRh(e.bMT(62,74,o.weight)),e.R7$(3),e.Y8G("label",t("View Profile"))("size","sm")("variant","stroked"),e.R7$(),e.vxM(o.warning?65:-1),e.R7$(4),e.Y8G("imagePath",null==a?null:a.ownerSignedUrl)("signingRequired",!1)("width",46)("height",46),e.R7$(4),e.SpI(" ",e.bMT(74,76,null==a?null:a.fullName)," "),e.R7$(4),e.JRh(e.bMT(78,78,null==a?null:a.email)),e.R7$(3),e.JRh(e.bMT(81,80,null==a?null:a.ownerPhone)),e.R7$(3),e.Y8G("label",t("View Profile"))("size","sm")("variant","stroked"),e.R7$(),e.vxM(null!=a&&a.warning?84:-1),e.R7$(4),e.JRh(e.i5U(89,82,o.originalStartDate,"hh:mm A")),e.R7$(3),e.SpI(" ",t("With")," "),e.R7$(2),e.SpI(" ",o.doctorFirstNameWithTitle," "),e.R7$(),e.E5c(" ",t("For")," ",o.visitDuration," ",t("Min")," "),e.R7$(),e.vxM(o.preExamNote?95:-1),e.R7$(),e.vxM(!u&&f&&v?-1:96),e.R7$(),e.vxM(!k||x||o.isAfterToday?-1:97),e.R7$(),e.vxM(o.isDraftVisit||M||E||!k?-1:98),e.R7$(),e.vxM(!k&&!j||E||x||o.isAfterToday||I?-1:99),e.R7$(),e.vxM(!k||x||o.isAfterToday?-1:100),e.R7$(),e.vxM(Te?101:-1),e.R7$(),e.vxM(o.isModified?-1:102),e.R7$(),e.vxM(M&&_e?103:-1),e.R7$(),e.vxM(!M||u||f?-1:104),e.R7$(),e.vxM(!M||u||v?-1:105),e.R7$(),e.vxM(E||x||o.isDraftVisit?106:-1),e.R7$(),e.vxM(Ie?107:-1),e.R7$(),e.vxM(E||x||!M?-1:108),e.R7$(),e.vxM(Ae?109:-1),e.R7$(),e.vxM(x&&_e?110:-1)}}function Vo(i,s){if(1&i&&(e.j41(0,"div",83)(1,"span",100),e.EFF(2),e.k0s(),e.j41(3,"span",99),e.EFF(4),e.nI1(5,"dateFormat"),e.k0s()(),e.j41(6,"div",83)(7,"span",100),e.EFF(8),e.k0s(),e.j41(9,"span",99),e.EFF(10),e.nI1(11,"dateFormat"),e.k0s()()),2&i){e.XpG();const t=e.r8f(0),n=e.XpG().$implicit;e.R7$(2),e.JRh(n("Repeat From")),e.R7$(2),e.JRh(e.bMT(5,4,t.repeatFrom)),e.R7$(4),e.JRh(n("Repeat Until")),e.R7$(2),e.JRh(e.bMT(11,6,t.repeatUntil))}}function Lo(i,s){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"app-button",146),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.updateAppointmentForm(o,r.appointmentUpdateTypeEnum.EVENT_UPDATE_RECURRING),e.Njj(r.closePopup())}),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(),e.HbH("w-full"),e.Y8G("label",t("Update All Recurring Events"))("size","sm")("variant","text")}}function Bo(i,s){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"app-button",147),e.bIt("onClick",function(){e.eBV(t),e.XpG();const o=e.r8f(0),r=e.XpG(2);return r.deleteEvent(o.recurringAppointmentCode,!0),e.Njj(r.closePopup())}),e.k0s()()}if(2&i){const t=e.XpG(2).$implicit;e.R7$(),e.HbH("w-full"),e.Y8G("label",t("Delete All Recurring Events"))("size","sm")("variant","text")("color","warn")}}function Uo(i,s){if(1&i){const t=e.RV6();e.SS7(0)(1)(2),e.j41(3,"div",29)(4,"div",135)(5,"div",136)(6,"div",83)(7,"span",137),e.EFF(8),e.k0s(),e.j41(9,"span",100),e.EFF(10),e.k0s()(),e.j41(11,"div")(12,"span",138)(13,"img",139),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.eventPop().hide())}),e.k0s()()()(),e.j41(14,"div",10)(15,"div",140)(16,"div",83)(17,"span",100),e.EFF(18),e.k0s(),e.j41(19,"span",99),e.EFF(20),e.nI1(21,"dateFormat"),e.k0s()(),e.j41(22,"div",83)(23,"span",100),e.EFF(24),e.k0s(),e.j41(25,"span",99),e.EFF(26),e.nI1(27,"dateFormat"),e.k0s()(),e.j41(28,"div",83)(29,"span",100),e.EFF(30),e.k0s(),e.j41(31,"span",99),e.EFF(32),e.nI1(33,"dateFormat"),e.k0s()(),e.j41(34,"div",83)(35,"span",100),e.EFF(36),e.k0s(),e.j41(37,"span",99),e.EFF(38),e.nI1(39,"dateFormat"),e.k0s()(),e.DNE(40,Vo,12,8),e.j41(41,"div",141)(42,"span",100),e.EFF(43),e.k0s(),e.j41(44,"span",142),e.EFF(45),e.k0s()(),e.j41(46,"div",141)(47,"span",100),e.EFF(48),e.k0s(),e.j41(49,"span",142),e.EFF(50),e.nI1(51,"isEmpty"),e.k0s()()(),e.j41(52,"div",143)(53,"div")(54,"app-button",144),e.bIt("onClick",function(){e.eBV(t);const o=e.r8f(0),r=e.r8f(1),a=e.XpG(2);return a.updateAppointmentForm(o,r?a.appointmentUpdateTypeEnum.EVENT_UPDATE_RECURRING_SINGLE:a.appointmentUpdateTypeEnum.EVENT_UPDATE),e.Njj(a.closePopup())}),e.k0s()(),e.j41(55,"div")(56,"app-button",145),e.bIt("onClick",function(){e.eBV(t);const o=e.r8f(2),r=e.XpG(2);return r.deleteEvent(null==o?null:o.id),e.Njj(r.closePopup())}),e.k0s()(),e.DNE(57,Lo,2,5,"div")(58,Bo,2,6,"div"),e.k0s()()()()}if(2&i){const t=e.XpG().$implicit,n=e.bH3(e.XpG().eventPopoverData);e.R7$();const o=e.bH3(n.isRecurringAppointment);e.R7$();const r=e.bH3(n.generalEvent);e.R7$(6),e.JRh(n.doctorFullNameWithTitle),e.R7$(2),e.JRh(n.clinic),e.R7$(8),e.JRh(t("Start Date")),e.R7$(2),e.JRh(e.bMT(21,31,n.originalStartDate)),e.R7$(4),e.JRh(t("End Date")),e.R7$(2),e.JRh(e.bMT(27,33,n.originalEndDate)),e.R7$(4),e.JRh(t("Start Time")),e.R7$(2),e.JRh(e.i5U(33,35,n.originalStartDate,"hh:mm A")),e.R7$(4),e.JRh(t("End Time")),e.R7$(2),e.JRh(e.i5U(39,38,n.originalEndDate,"hh:mm A")),e.R7$(2),e.vxM(o?40:-1),e.R7$(3),e.JRh(t("Event Name")),e.R7$(2),e.JRh(null==r?null:r.name),e.R7$(3),e.JRh(t("Event Details")),e.R7$(2),e.JRh(e.bMT(51,41,null==r?null:r.description)),e.R7$(4),e.HbH("w-full"),e.Y8G("label",t("Update Event"))("size","sm")("variant","text"),e.R7$(2),e.HbH("w-full"),e.Y8G("label",t("Delete"))("size","sm")("variant","text")("color","warn"),e.R7$(),e.vxM(!n.isModified&&o?57:-1),e.R7$(),e.vxM(o?58:-1)}}function Ho(i,s){if(1&i){const t=e.RV6();e.qex(0),e.j41(1,"app-page-layout-sidebar")(2,"app-page",10)(3,"app-page-header"),e.nrm(4,"app-page-title",11),e.j41(5,"div",12)(6,"span",13),e.EFF(7),e.k0s(),e.DNE(8,Di,1,8,"app-doctor-selection-dropdown",14),e.k0s()(),e.j41(9,"app-page-content",15),e.DNE(10,xi,2,0,"div",16),e.j41(11,"div",17)(12,"div",18)(13,"div",19)(14,"nav",20),e.Z7z(15,Ti,3,3,"div",21,e.fX1),e.k0s()(),e.j41(17,"mat-tab-nav-panel",null,0)(19,"mat-accordion",22),e.DNE(20,wi,2,0)(21,Li,2,0),e.k0s()()(),e.j41(22,"div",23)(23,"mat-card",24)(24,"div",25),e.nrm(25,"app-calendar",26,1),e.k0s()()()()()()(),e.DNE(27,Xi,24,24,"ng-template",27,2,e.C5r)(29,Ji,27,28,"ng-template",27,3,e.C5r)(31,uo,33,26,"ng-template",27,4,e.C5r)(33,ho,2,0,"ng-template",null,5,e.C5r),e.j41(35,"app-ui-popover-tippy",28,6),e.bIt("opened",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.setLastVisitParams())})("closed",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.removeLastVisitParams())})("contentAction",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.onPopOverEvent(o))}),e.DNE(37,$o,111,85,"div",29),e.k0s(),e.j41(38,"app-ui-popover-tippy",30,7),e.bIt("contentAction",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.onPopOverEvent(o))}),e.DNE(40,Uo,59,43,"div",29),e.k0s(),e.bVm()}if(2&i){const t=s.$implicit,n=e.sdS(18),o=e.XpG();e.R7$(4),e.FS9("title",t("My Day")),e.Y8G("helpConfig",o.helpConfig),e.R7$(3),e.JRh(t("Doctor")),e.R7$(),e.vxM(o.clinicId?8:-1),e.R7$(),e.Y8G("noSpace",!0),e.R7$(),e.vxM(o.calenderIsLoading()||o.sideBarIsLoading()||o.updateAppointment()?10:-1),e.R7$(4),e.Y8G("tabPanel",n),e.R7$(),e.Dyx(o.tabMenuConfigs),e.R7$(5),e.vxM(o.activeTab===o.appointmentTypeEnum.TODAYS_APPOINTMENT?20:-1),e.R7$(),e.vxM(o.activeTab===o.appointmentTypeEnum.APPOINTMENT_REQUESTED?21:-1),e.R7$(3),e.Y8G("ngClass",e.eq3(24,Ei,o.isEventDragged)),e.R7$(),e.Y8G("calendarOptions",o.calendarOptions),e.R7$(2),e.Y8G("typedTemplate",o.appointmentTypeToken),e.R7$(2),e.Y8G("typedTemplate",o.appointmentTypeToken),e.R7$(2),e.Y8G("typedTemplate",o.actionTypeToken),e.R7$(4),e.Y8G("loading",o.selectedEventLoading)("showBackdrop",!0)("position","left")("loaderClass","min-h-264px popover-large calendar-popover"),e.R7$(2),e.vxM(o.selectedEvent?37:-1),e.R7$(),e.Y8G("loading",o.selectedEventLoading)("showBackdrop",!0)("position","left")("loaderClass","min-h-264px popover-large calendar-popover"),e.R7$(2),e.vxM(o.eventPopoverData?40:-1)}}const tt={[C.n.ACCEPTED]:"No more appointment for the day.",[C.n.COMPLETED]:"No appointment completed today.",[C.n.ENGAGED]:"No patients engaged.",[C.n.CHECKED_IN]:"No patients checked in.",[C.n.PENDING]:"No appointment pending today.",DEFAULT:"No appointment for the day."},Xo=[C.n.ACCEPTED,C.n.PENDING,C.n.CHECKED_IN,C.n.ENGAGED,C.n.COMPLETED],he=[{key:C.n.ACCEPTED,value:[],icon:"calendar",message:"No more appointments for the day."},{key:C.n.CHECKED_IN,value:[],icon:"checked-in",message:"No patients checked in."},{key:C.n.ENGAGED,value:[],icon:"visit",message:"No patients engaged."},{key:C.n.COMPLETED,value:[],icon:"completed",message:"No appointments completed today."}
1],me=[{key:C.n.PENDING,value:[],icon:"calendar-clock",message:"No appointments requested from AcuroPet app."}];let zo=(()=>{class i extends In.S{constructor(){super(...arguments),this.activatedRoute=(0,e.WQX)(F.nX),this.router=(0,e.WQX)(F.Ix),this.dialogService=(0,e.WQX)(yn.o),this.clinicFacade=(0,e.WQX)(Tn.J),this.s3FileUploadService=(0,e.WQX)(Fn.p),this.profileService=(0,e.WQX)(kn.p),this.myDayService=(0,e.WQX)(Qe.O),this.errorHandlerService=(0,e.WQX)(En.c),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.concurrencyService=(0,e.WQX)(Dn.V),this.consentFormService=(0,e.WQX)(jn.G),this.snackbarService=(0,e.WQX)(Rn.z),this.translationService=(0,e.WQX)(bn.L),this.generalEventService=(0,e.WQX)(Pn.y),this.appointmentBookingService=(0,e.WQX)(Mn.S),this.doctorStaffService=(0,e.WQX)(Ke.D),this.userPreferenceService=(0,e.WQX)(Gn.Q),this.eventPop=(0,e.ebz)("eventPopover"),this.appointmentPop=(0,e.ebz)("appointmentPopover"),this.screenWidth=(0,e.vPA)(992),this.isSmallScreen=(0,e.EWP)(()=>this.screenWidth()<600),this.tabMenuConfigs=[Q.TODAYS_APPOINTMENT,Q.APPOINTMENT_REQUESTED],this.appointmentStatusEnum=C.n,this.appointmentUpdateTypeEnum=ne.M,this.appointmentTypeEnum=Q,this.helpConfig={showHelp:!0,redirectToHelpPage:!0,routeFragment:"myDay"},this.breedTooltipTippyConfig={appendTo:()=>document.body,trigger:"mouseenter",placement:"bottom",interactive:!1,arrow:!0,zIndex:1e4},this.activeTab=Q.TODAYS_APPOINTMENT,this.appointmentRequestBadgeCount=0,this.doctorControl=new l.MJ,this.selectedEventLoading=!1,this.isEventDragged=!1,this.groupedStatusList=[...he],this.groupedPaddingStatusList=[...me],this.calendarViewType=T.d.resourceTimeGridDay,this.calenderIsLoading=(0,e.vPA)(!1),this.sideBarIsLoading=(0,e.vPA)(!1),this.updateAppointment=(0,e.vPA)(!1),this.calenderClickTime=0,this.lastVisitDate=(0,m.BQ)(),this.myDayPrefKey=Vn.P.MY_DAY_CALENDAR,this.scheduleCache=new Map,this.appointmentEvents=[],this.nonWorkingEvents=[],this.currentCalendarDateStr=(0,m.BQ)("YYYY-MM-DD"),this.initialSelectionApplied=!1,this.isNavigatingAway=!1,this.pageConfig={limit:"ALL",filters:{startDate:(0,m.Tv)(z.$.day,(0,m.BQ)(),m.ez),endDate:(0,m.kT)(z.$.day,(0,m.BQ)(),m.ez),clinicId:null,doctorId:null,eventType:null}}}set calComponent(t){t&&(this.calComp=t,this.calenderApi??=this.calComp?.calendar?.getApi())}onWindowResize(){this.screenWidth.set(window.innerWidth)}ngOnInit(){this.initializeCalendarOptions(),this.screenWidth.set(window.innerWidth),this.initializeSubscriptions()}ngAfterViewInit(){this.initializeCalendarTranslations()}ngAfterViewChecked(){this.calenderApi??=this.calComp?.calendar?.getApi()}initializeSubscriptions(){this.subscribeToCurrentCalendarGrid(),this.subscribeToCurrentClinic(),this.subscribeToCurrentUser(),this.subscribeToDoctorControlChanges(),this.subscribeToAppointmentBooking(),this.initializeConcurrencyHandlers()}initializeCalendarOptions(){this.calendarOptions={initialView:T.d.resourceTimeGridDay,resourceOrder:"title",headerToolbar:{right:"prev,today,next",center:`${T.d.resourceTimeGridDay},${T.d.timeGridWeek},${T.d.dayGridMonth}`,left:"title"},views:{resourceTimeGridDay:{titleFormat:"ddd, DD MMM YYYY"},timeGridWeek:{eventMaxStack:2,slotEventOverlap:!1}},slotLabelFormat:{hour:"2-digit",minute:"2-digit",omitZeroMinute:!1,meridiem:"short"},slotDuration:"00:15:00",slotLabelInterval:"00:30:00",schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",plugins:[ee.A,vn,Cn.Ay,Ln.Ay],eventMaxStack:3,eventDisplay:"block",allDaySlot:!1,dayMaxEventRows:3,displayEventTime:!1,nowIndicator:!0,now:(0,m.BQ)(),editable:!0,timeZone:(0,m.vS)(),eventOverlap:!0,moreLinkClick:t=>this.handleMoreLinkClick(t),moreLinkContent:t=>t.view.type===T.d.timeGridWeek?t.shortText:"MORE EVENTS",eventAllow:(t,n)=>this.isEventAllowedToEdit(t,n),eventContent:t=>this.customizeEventDesign(t),eventClassNames:t=>this.generateEventClasses(t),eventClick:t=>this.handleEventClick(t),eventResize:t=>this.handleEventUpdate(t),eventDrop:t=>this.handleEventUpdate(t),datesSet:t=>this.handleDatesSet(t),dateClick:t=>this.handleDateClick(t),eventDidMount:t=>this.handleEventDidMount(t)}}initializeCalendarTranslations(){setTimeout(()=>{const t=n=>this.translationService.translate(n,"myDay");this.calendarOptions={...this.calendarOptions,moreLinkContent:n=>n.view.type===T.d.timeGridWeek?n.shortText:t("MORE EVENTS"),closeHint:this.translationService.translate("Close","common"),buttonText:{today:t("Today"),day:t("Day"),month:t("Month"),week:t("Week")},buttonHints:{today:t("Today"),day:t("Day View"),month:t("Month View"),week:t("Week View"),next:t("Next"),prev:t("Prev")}}},500)}initializeConcurrencyHandlers(){this.concurrencyService.multiScopeHandler([{scope:ze.r.RESCHEDULE_APPOINTMENT,refreshDataHandler:()=>this.fetchEventList()},{scope:ze.r.RESCHEDULE_EVENT,refreshDataHandler:()=>this.fetchEventList()}],this.unsubscribe$)}subscribeToCurrentCalendarGrid(){this.activatedRoute.queryParams.pipe(this.pickUntil()).subscribe(t=>
1{(0,We.ZF)(t)?this.calenderApi&&(this.calenderApi.gotoDate(this.lastVisitDate),this.calenderApi.changeView(this.calendarViewType)):(this.calendarOptions.initialView=t.initialView,this.calendarOptions.initialDate=t.initialDate),this.detectChanges()})}subscribeToCurrentClinic(){this.clinicFacade.getCurrentClinic().pipe(this.pickUntil()).subscribe({next:t=>{const n=!!this.clinicId&&this.clinicId!==t.id;this.clinicId=t.id,this.pageConfig.filters.clinicId=this.clinicId,n&&(this.scheduleCache.clear(),this.initialSelectionApplied=!1),this.detectChanges()}})}subscribeToCurrentUser(){this.profileService.getCurrentUser().pipe(this.pickUntil()).subscribe({next:t=>{t?.user?.id&&(this.currentLoggedInUserId=t.user.id,this.role=t.user.role,t.user?.timeZone&&this.calenderApi?.setOption("timeZone",t.user.timeZone),this.applyInitialDoctorSelection())},error:t=>this.errorHandlerService.handle(t)})}subscribeToDoctorControlChanges(){this.doctorControl.valueChanges.pipe((0,B.F)(),this.pickUntil()).subscribe(()=>{if(this.appointmentRequestBadgeCount=0,this.detectChanges(),!this.doctorControl?.value?.length)return void this.resetCalendarView();this.calendarOptions.resources=[];const t=this.doctorControl.value.includes(O.Mu)?this.allDoctorsFromApi:this.doctorControl.value;this.updateCalendarResources(t),this.saveDoctorSelection(),this.fetchDoctorSchedules(this.pageConfig.filters.doctorId),this.fetchEventList(),this.fetchSidebarData()})}subscribeToAppointmentBooking(){this.appointmentBookingService.getAppointmentBooking().pipe(this.pickUntil()).subscribe({next:t=>{t&&(this.fetchEventList(),this.fetchSidebarData())}})}fetchEventList(){const{doctorId:t}=this.pageConfig?.filters;t&&((0,H.x)(this.eventListSubscription$),this.calenderIsLoading.set(!0),this.appointmentEvents=[],this.refreshCalendarEvents(),this.eventListSubscription$=this.myDayService.listEventsMinimalV2(this.clinicId,{...this.pageConfig,filters:{...this.pageConfig.filters,appointmentStatus:void 0}}).pipe(this.pickUntil(),(0,N.j)(()=>{this.calenderIsLoading.set(!1),this.detectChanges()})).subscribe({next:n=>{this.appointmentEvents=Array.isArray(n.items)?n.items:[],this.refreshCalendarEvents(),this.applyScrollPosition()}}))}refreshCalendarEvents(){this.calendarOptions.events=[...this.appointmentEvents,...this.nonWorkingEvents],this.detectChanges()}fetchSidebarData(){const{doctorId:t}=this.pageConfig?.filters;if(!t)return;(0,H.x)(this.unsubscribeEvent),this.sideBarIsLoading.set(!0);const n=this.getSidebarApis();this.unsubscribeEvent=(0,S.p)(n).pipe(this.pickUntil(),(0,N.j)(()=>{this.sideBarIsLoading.set(!1),this.detectChanges()})).subscribe({next:o=>this.processSidebarResponse(o),error:o=>this.errorHandlerService.handle(o)})}getSidebarApis(){const t=this.getFilterConfig(!1),n=this.getFilterConfig(!0);return this.activeTab===Q.TODAYS_APPOINTMENT?[this.myDayService.ListAppointmentMinimal(this.clinicId,t),this.myDayService.AppointmentMinimalCount(this.clinicId,n)]:[this.myDayService.ListAppointmentMinimal(this.clinicId,n)]}processSidebarResponse(t){if(this.activeTab===Q.TODAYS_APPOINTMENT){const o=t[1];this.groupedStatusList=this.processAppointments(t[0]?.items??[],he),this.appointmentRequestBadgeCount=o?.total??0}else this.groupedPaddingStatusList=this.processAppointments(t[0]?.items??[],me)}processAppointments(t,n){if(!t.length)return[...n];const o=t.filter(r=>r.appointmentStatus!==C.n.NO_SHOW);return this.sortListForView(this.groupByStatus(o))}onOptionSelected(t){t||this.updateCalendarResources(this.doctorControl.value),this.detectChanges()}onResponseReceived(t){this.allDoctorsFromApi=t,this.initialSelectionApplied?this.syncActiveDoctors():this.applyInitialDoctorSelection()}onTabChange(t){this.activeTab!==t&&(this.groupedStatusList=[...he],this.groupedPaddingStatusList=[...me],this.activeTab=t,this.detectChanges(),this.fetchSidebarData())}onChangesAppointmentStatus(t,n,o){const{heading:r,message:a}=(0,Y.Iy)(n);this.dialogService.open(Sn.B,{panelClass:"modal-content-no-padding",width:"450px",maxWidth:"calc(100vw - 32px)",restoreFocus:!1,autoFocus:!1,data:{heading:r,message:a,confirmLabel:n===C.n.REJECTED?"Yes, Reject":void 0}}).afterClosed().pipe(this.pickUntil()).subscribe({next:d=>{d&&this.changesAppointmentStatus(t,n,o,d)}})}changesAppointmentStatus(t,n,o,r){const a={appointmentStatus:n,updatedAt:o,...r};this.updateAppointment.set(!0),this.myDayService.changeAppointmentStatus(t,a).pipe(this.pickFirstOrUntil(),(0,N.j)(()=>{this.updateAppointment.set(!1)})).subscribe({next:()=>{this.snackbarService.closeActionSnackBar(this.translationService.translate("Appointment status updated successfully","snackbar")),this.fetchEventList(),this.fetchSidebarData()},error:d=>this.errorHandlerService.handle(d)})}getConsentFormDetails(t){this.clinicId&&((0,H.x)(this.unsubscribeConsentForm),this.unsubscribeConsentForm=this.consentFormService.listConsentFormForAppointment(t.appointmentId,{page:1,limit:O.D7}).pipe(this.pickFirstOrUntil()).subscribe({next:n=>{n?.items?.length>0?this.openConsentFormDialog(ie.J.CHECKED_IN,t,!1,n.items):this.changesAppointmentStatus(t.appointmentId,C.n.CHECKED_IN,t.updatedAt),this.detectChanges()},error:n=>this.handleConsentFormError(n,t)}))}handleConsentFormError(t,n){(0,Y.Xd)(t)===le.Zv.ERROR_404&&(0,Y.yv)(t)===le.zz.DB_NOTFOUND?this.changesAppointmentStatus(n.appointmentId,C.n.CHECKED_IN,n.updatedAt):this.errorHandlerService.handle(t)}openConsentFormDialog(t,n,o,r,a=!1){const d=this.createVisitPayload(n,a,o);this.dialogService.open(Bn.W,{panelClass:"modal-content-no-padding",restoreFocus:!1,autoFocus:!1,height:"509px",width:"623px",data:{clinicId:n.clinicId,type:t,isReassigned:o,payload:d,apiCall:(u=!1)=>this.myDayService.initializeVisit(n.petUAId,this.createVisitPayload(n,a,u)),data:this.createConsentFormDialogData(n),isDraftVisit:a,dataModel:wn.E.mapToConsentFormView(n),consentFormList:r}}).afterClosed().pipe(this.pickFirstOrUntil()).subscribe({next:u=>this.handleConsentFormDialogClose(u,t)})}handleConsentFormDialogClose(t,n){t.result?n===ie.J.INITIATE||n===ie.J.DRAFT?this.removeLastVisitParams(t.result.id,!0):(this.fetchEventList(),this.fetchSidebarData()):t.isChangeMade&&(this.fetchEventList(),this.fetchSidebarData())}draftVisitFun(t){this.startVisit(t,!0)}startVisit(t,n=!1){(0,H.x)(this.unsubscribeConsentForm),this.unsubscribeConsentForm=this.consentFormService.listConsentFormForAppointment(t.appointmentId,{page:1,limit:O.D7}).pipe(this.pickFirstOrUntil()).subscribe({next:o=>{o?.items?.length>0?this.openConsentFormDialog(n?ie.J.DRAFT:ie.J.INITIATE,t,!1,o.items,n):this.handleVisitStart(t,n),this.detectChanges()}})}handleVisitStart(t,n){const o=this.currentLoggedInUserId===t.doctorId;o||t.isAfterToday||this.role?.name!==ce.U.ADMIN_VETERINARIAN&&this.role?.name!==ce.U.VETERINARIAN||n?this.startVisitApiCall(t,n,!o):this.openReassignConfirmationDialog(t,n)}startVisitApiCall(t,n=!1,o=!1){const r=this.createVisitPayload(t,n,o);this.myDayService.initializeVisit(t.petUAId,r).pipe(this.pickFirstOrUntil()).subscribe({next:a=>{a.id&&this.removeLastVisitParams(a.id,!0)},error:a=>this.errorHandlerService.handle(a)})}createVisitPayload(t,n,o){const r=Re.mapForPayload(t);return n&&(r.status=On.H.DRAFT),t.isDraftVisit&&(r.id=t.visitId),r.isReassign=o,r}openReassignConfirmationDialog(t,n){const o=r=>this.translationService.translate(r,"myDay");this.dialogService.open(Ye.D,{panelClass:"modal-content-no-padding",autoFocus:!1,width:"500px",restoreFocus:!1,data:{circleIcon:{icon:"warning",cssClass:"color-orange",backgroundClass:"bg-light-orange"},heading:o("Visit Assigned to Another Vet"),message:o("This appointment is assigned to another vet. Start the visit under the assigned vet or reassign to yourself."),primaryButton:{text:o("Reassign to me"),color:"primary"},secondaryButton:{text:o("Start Visit"),color:"primary"},showCloseButton:!0}}).afterClosed().pipe(this.pickFirstOrUntil()).subscribe({next:r=>{!0===r?this.startVisitApiCall(t,n,!0):!1===r&&this.startVisitApiCall(t,n,!1)}})}bookAppointment(t,n){this.openAppointmentDialog({isAppointmentUsingCalender:!0,date:t,doctorId:n,currentClinicId:this.clinicId})}updateAppointmentForm(t,n){this.openAppointmentDialog(this.createAppointmentDialogData(t,n))}openAppointmentDialog(t){const n=this.isSmallScreen(),o=this.allDoctorsFromApi.find(r=>r.id===t.doctorId)?.profileColor;t={...t,docColor:o}
1,this.dialogService.open(An.g,{minWidth:"98%",height:n?"80vh":"96vh",panelClass:["modal-content-no-padding","self-center"],restoreFocus:!1,autoFocus:!1,position:{top:n?"4vh":"0"},data:t}).afterClosed().pipe(this.pickUntil()).subscribe(r=>{(r||!t.appointmentId)&&(this.fetchEventList(),this.fetchSidebarData())})}createAppointmentDialogData(t,n){const o=[ne.M.EVENT_UPDATE,ne.M.EVENT_UPDATE_RECURRING,ne.M.EVENT_UPDATE_RECURRING_SINGLE].includes(n);let r={appointmentId:o?null:t.appointmentId,eventId:o?t.generalEvent?.id:null,eventType:n,currentClinicId:this.clinicId};return n===ne.M.SCHEDULE_FOLLOW_UP&&t.isRecurringAppointment&&(r={...r,petXref:t.pet?.petUniqueId,petOwner:t.petOwner,isSchedulePetAppointment:!0}),r}createConsentFormDialogData(t){return{appointmentId:t.appointmentId,ownerEmail:t.petOwner?.email,ownerName:`${t.petOwner?.firstName} ${t.petOwner?.lastName}`,petName:t.petName||t.pet?.name,appointmentTime:t.date||t.httpStartDate&&(0,m.x0)(t.httpStartDate,m.ez)||t.start,petId:t.pet?.petId,doctorId:t.doctorId}}handleMoreLinkClick(t){t?.date&&t?.view?.type===T.d.dayGridMonth&&this.calenderApi.changeView(T.d.resourceTimeGridDay,(0,m.Yq)(t.date.toISOString(),m.ez,"YYYY-MM-DD"))}handleDateClick(t){const n=Date.now();n-(this.calenderClickTime||0)<300&&(t.view.type!==T.d.resourceTimeGridDay?this.calenderApi?.changeView(T.d.resourceTimeGridDay,t.dateStr):this.bookAppointment(t.dateStr,t?.resource?._resource?.id)),this.calenderClickTime=n}handleDatesSet(t){this.calendarViewType=t.view.type,this.currentCalendarDateStr=t.startStr?.slice(0,10)||this.currentCalendarDateStr;const n=this.calendarViewType===T.d.resourceTimeGridDay?t.startStr:(0,m.ei)(t.endStr,1,z.$.day);this.pageConfig={...this.pageConfig,filters:{...this.pageConfig.filters,startDate:(0,m.JM)((0,m.Tv)(z.$.day,t.startStr),m.ez),endDate:(0,m.JM)((0,m.kT)(z.$.day,n),m.ez)}},this.fetchDoctorSchedules(this.pageConfig.filters.doctorId),this.fetchEventList()}handleEventClick(t){if(this.isEventDragged)return;this.lastVisitDate=t.event.startStr;const n=t.event.extendedProps;n?.appointmentId?this.loadAppointmentImages(t,n):this.getEventDetails(t,!0)}loadAppointmentImages(t,n){if(!n?.petProfilePic&&!n?.petOwner?.profilePicPath)return t.event.setExtendedProp("signedImageUrl",O.st),t.event.setExtendedProp("signedOwnerImageUrl",O.A9),void this.getEventDetails(t);(0,S.p)(this.getSignedUrls([n?.petProfilePic,n?.petOwner?.profilePicPath])).pipe((0,N.j)(()=>this.getEventDetails(t))).subscribe({next:([o,r])=>{t.event.setExtendedProp("signedImageUrl",n?.petProfilePic?o:O.st),t.event.setExtendedProp("signedOwnerImageUrl",n?.petOwner?.profilePicPath?r:O.A9)},error:()=>{t.event.setExtendedProp("signedImageUrl",O.Wz),t.event.setExtendedProp("signedOwnerImageUrl",O.Wz)}})}handleEventUpdate(t,n=!1){const o=t;if(n||this.isEventDragged)return void t.revert();const r=(0,m.JM)((0,m.Yq)(t.event.startStr,m.Sy,m.Sy),m.ez),a=(0,m.JM)((0,m.Yq)(t.event.endStr,m.Sy,m.Sy),m.ez);this.setEventDragged(!0),this.eventPayloadData={...t.event.extendedProps,httpStartDate:r,httpEndDate:a,doctorId:o?.newResource?.id},this.rescheduleAppointmentPayload=Ee.mapForPayload(this.eventPayloadData),this.eventPayloadData?.isAppointmentEvent?(this.rescheduleAppointmentPayload.status=C.n.ACCEPTED,this.rescheduleAppointment(t)):this.rescheduleGeneralEvent(t)}handleEventDidMount(t){if("background"===t?.event?.display)return;const n=t?.event?.extendedProps;t.el.style.borderLeftWidth="5px",t.el.style.borderLeftColor=n?.appointmentColor||"#ffffff00",t.el.setAttribute("tabindex","-1")}customizeEventDesign(t){const n=t.event._def.extendedProps;return n?.isNonWorkingZone?{html:`<div class="non-working-zone-content">${be.VK}<span class="non-working-zone-label">${t.event.title}</span></div>`}:(n.isAppointmentEvent&&(t.isDraggable=!1),!0)}generateEventClasses(t){const n=t.event._def.extendedProps;return n?.isNonWorkingZone?"non-working-zone":n.isAppointmentEvent?(0,Y.LF)(n.appointmentStatus,n.isDraftVisit,n.isVideoConsultation):"ap-event"}isEventAllowedToEdit(t,n){if(!n)return!1;const o=n.extendedProps;return!(!o.isAppointmentEvent&&o.isRecurringAppointment||o.isAppointmentEvent&&(![C.n.ACCEPTED,C.n.NO_SHOW,C.n.CHECKED_IN].includes(o.appointmentStatus)||o.isRecurringAppointment))&&this.isValidDropDate(t)}isValidDropDate(t){const n=(0,m.BQ)(),o=(0,m.x0)(t?.startStr,m.ez);return!(0,m.Y8)(o,n,"milliseconds")||(0,m.Ft)(o,n)}rescheduleAppointment(t,n=!1){this.rescheduleAppointmentPayload.isWarningDisplayed=n,this.myDayService.rescheduleAppointment(this.rescheduleAppointmentPayload,this.eventPayloadData.appointmentId).pipe(this.pickUntil()).subscribe({next:()=>{this.fetchEventList(),this.fetchSidebarData(),this.setEventDragged(!1)},error:o=>this.handleRescheduleError(o,t,!0)})}rescheduleGeneralEvent(t,n=!1){this.rescheduleAppointmentPayload.isWarningDisplayed=n,this.generalEventService.rescheduleEvent(this.rescheduleAppointmentPayload,this.eventPayloadData.generalEvent?.id).pipe(this.pickUntil()).subscribe({next:()=>{this.fetchEventList(),this.setEventDragged(!1)},error:o=>this.handleRescheduleError(o,t,!1)})}handleRescheduleError(t,n,o){if((0,Y.Xd)(t)===le.Zv.ERROR_422&&(0,Y.yv)(t)===le.zz.OTHER_WARNING){this.rescheduleAppointmentPayload.isWarningDisplayed=!0;const a=o?this.myDayService.rescheduleAppointment(this.rescheduleAppointmentPayload,this.eventPayloadData.appointmentId):this.generalEventService.rescheduleEvent(this.rescheduleAppointmentPayload,this.eventPayloadData.generalEvent?.id);this.openRescheduleConfirmationDialog(n,a,t?.error?.message)}else this.setEventDragged(!1)}openRescheduleConfirmationDialog(t,n,o){this.dialogService.open(Ye.D,{width:"500px",panelClass:"modal-content-no-padding",restoreFocus:!1,autoFocus:!1,data:{circleIcon:{icon:"warning",cssClass:"color-orange",backgroundClass:"bg-light-orange"},message:this.translationService.translate(o,"myDay"),primaryButton:{text:this.translationService.translate("Yes","myDay"),color:"primary"},secondaryButton:{text:this.translationService.translate("No","myDay"),color:"primary"},hasApiCallOnAction:!0,apiCall:()=>n}}).afterClosed().pipe(this.pickFirstOrUntil()).subscribe({next:r=>{r?(this.fetchEventList(),this.fetchSidebarData()):this.handleEventUpdate(t,!0),this.setEventDragged(!1)}})}deleteEvent(t,n=!1){(n?this.generalEventService.deleteAllRecurringGeneralEvent(this.clinicId,t):this.generalEventService.deleteGeneralEvent(this.clinicId,t)).pipe(this.pickFirstOrUntil()).subscribe({next:r=>{r||(this.snackbarService.closeActionSnackBar("Event deleted successfully"),this.fetchEventList()),this.detectChanges()},error:r=>this.errorHandlerService.handle(r)})}getEventDetails(t,n=!1){const o=t.event.extendedProps;o.calendarEventId&&((0,H.x)(this.unsubscribeSelectedEvent),this.selectedEventLoading=!0,this.openPopup(n,null,t),this.detectChanges(),this.unsubscribeSelectedEvent=this.myDayService.getEvent(o.calendarEventId).pipe(this.pickFirstOrUntil(),(0,N.j)(()=>{this.selectedEventLoading=!1,this.detectChanges()})).subscribe({next:r=>this.openPopup(n,r,t),error:r=>this.errorHandlerService.handle(r)}))}openPopup(t,n,o){if(!n)return t?void this.eventPop()?.show(o.jsEvent,o.el):void this.appointmentPop()?.show(o.jsEvent,o.el);if(t)this.eventPopoverData=n,this.eventPop()?.show(o.jsEvent,o.el);else{const r=o?.event?.extendedProps;this.selectedEvent=n,this.selectedEvent.petProfilePicSignedUrl=r?.signedImageUrl,this.selectedEvent.petOwner.ownerSignedUrl=r?.signedOwnerImageUrl,this.appointmentPop()?.show(o.jsEvent,o.el)}}
1closePopup(){this.appointmentPop()?.hide(),this.eventPop()?.hide()}setLastVisitParams(){this.router.navigate([],{queryParams:{initialView:this.calendarViewType,initialDate:this.lastVisitDate},queryParamsHandling:"merge",replaceUrl:!0})}onPopOverEvent(t){this.eventPop()?.hide(),this.appointmentPop()?.hide()}removeLastVisitParams(t,n=!1){if((0,H.x)(this.unsubscribeSelectedEvent),!this.isNavigatingAway){if(t&&n)return void this.navigateToViewVisit(t);this.router.navigate([],{queryParams:null,queryParamsHandling:"merge",replaceUrl:!0}).then(()=>{t&&this.navigateToViewVisit(t)})}}navigateToViewVisit(t){this.isNavigatingAway=!0,this.router.navigate([Je.LV.history,Je.LV.visit,t]).then(n=>{this.closePopup(),n||(this.isNavigatingAway=!1)})}navigateToPetProfile(t,n){(0,J.sc)(W.U.iS_OWNER_DETAILS_VISITED),(0,J.J2)(W.d.CURRENT_PET_ID,t),this.setCurrentPetOwnerId(n),window.open("../pet-and-owners/pet-detail/pet-info","_blank"),this.closePopup()}navigateToOwnerProfile(t){(0,J.AP)(W.U.iS_OWNER_DETAILS_VISITED,JSON.stringify(!0)),this.setCurrentPetOwnerId(t),window.open("../pet-and-owners/owner-detail/owner-info","_blank"),this.closePopup()}redirectToEditPet(t,n){(0,J.sc)(W.U.iS_OWNER_DETAILS_VISITED),(0,J.J2)(W.d.CURRENT_PET_ID,t),this.setCurrentPetOwnerId(n),this.router.navigate([`../pet-and-owners/edit-pet/${t}`]).then(()=>this.closePopup())}redirectToEditOwner(t){(0,J.AP)(W.U.iS_OWNER_DETAILS_VISITED,JSON.stringify(!0)),this.setCurrentPetOwnerId(t),this.router.navigate([`../pet-and-owners/edit-owner/${t}`]).then(()=>this.closePopup())}setCurrentPetOwnerId(t){(0,J.J2)(W.d.CURRENT_PET_OWNER_ID,t)}resetCalendarView(){(0,H.x)(this.unsubscribeEvent),(0,H.x)(this.eventListSubscription$),this.pageConfig.filters.doctorId=null,this.calendarOptions.resources=[],this.appointmentEvents=[],this.nonWorkingEvents=[],this.calendarOptions.events=[],this.groupedStatusList=[...he],this.groupedPaddingStatusList=[...me],this.detectChanges()}updateCalendarResources(t){if(!t)return;const n=[],o=[];t.forEach(r=>{n.push({id:r.id,title:(0,xn.FD)(r.firstName,r.lastName,r.title),eventColor:r?.profileColor??r.color}),o.push(r.id)}),this.pageConfig.filters.doctorId=o,this.calendarOptions.resources=n,this.calendarOptions.resourceLabelDidMount=r=>this.styleResourceTitle(r)}fetchDoctorSchedules(t){if(this.calendarViewType!==T.d.resourceTimeGridDay)return void this.refreshNonWorkingZones();const n=(t??[]).filter(o=>o&&!this.scheduleCache.has(o));n.length?(0,S.p)(n.map(o=>this.doctorStaffService.getDoctorAppointmentSchedule(o,{clinicId:this.clinicId}).pipe((0,G.T)(r=>({id:o,schedule:r})),(0,q.W)(()=>(0,V.of)({id:o,schedule:null}))))).pipe(this.pickUntil()).subscribe({next:o=>{o.forEach(({id:r,schedule:a})=>this.scheduleCache.set(r,a)),this.refreshNonWorkingZones(),this.applyScrollPosition()},error:o=>this.errorHandlerService.handle(o)}):this.refreshNonWorkingZones()}refreshNonWorkingZones(){const t=this.pageConfig.filters.doctorId??[];if(this.calendarViewType!==T.d.resourceTimeGridDay||!t.length)return this.nonWorkingEvents=[],void this.refreshCalendarEvents();const n=this.translationService.translate("Unavailable","myDay"),o=[];t.forEach(r=>{const a=this.scheduleCache.get(r);null!=a&&o.push(...(0,be._M)(a,this.currentCalendarDateStr,r,n))}),this.nonWorkingEvents=o,this.refreshCalendarEvents()}applyScrollPosition(){const t=this.pageConfig.filters.doctorId??[];if(1===t.length&&this.calendarViewType===T.d.resourceTimeGridDay){const u=(0,be.d3)(this.scheduleCache.get(t[0])??void 0,this.currentCalendarDateStr);if(u)return this.calenderApi?.scrollToTime(u),void this.detectChanges()}if(!this.appointmentEvents.length)return;const n=(0,We.my)(this.appointmentEvents,"start"),o=n[0],r=o?.start?(0,m.sN)(n[0].start,m.ez,"HH:mm:ss"):(0,m.BQ)("HH:mm:ss"),a=o?.start?(0,m.sN)(o.start,m.ez,"YYYY-MM-DD"):null,d=a&&a<this.currentCalendarDateStr?"00:00:00":r;this.calenderApi?.scrollToTime(d),this.detectChanges()}applyInitialDoctorSelection(){if(this.initialSelectionApplied||!this.allDoctorsFromApi?.length||!this.role?.name||!this.currentLoggedInUserId)return;const t=this.resolveInitialSelection();t&&(this.initialSelectionApplied=!0,this.doctorControl.setValue(t))}resolveInitialSelection(){const t=(0,Ze.Tj)(this.myDayPrefKey)?.doctorIds??[];
1if(t.length){const n=this.allDoctorsFromApi.filter(o=>t.includes(o.id));if(n.length)return n.length===this.allDoctorsFromApi.length?[O.Mu,...n]:n}return this.getDefaultSelectionForRole()}getDefaultSelectionForRole(){if(this.role?.name===ce.U.VETERINARIAN||this.role?.name===ce.U.ADMIN_VETERINARIAN){const n=this.allDoctorsFromApi.find(o=>o.id===this.currentLoggedInUserId);if(n)return[n]}return[O.Mu,...this.allDoctorsFromApi]}syncActiveDoctors(){const n=(this.doctorControl.value??[]).filter(a=>a!==O.Mu);if(!n.length)return;const o=new Set(this.allDoctorsFromApi.map(a=>a.id)),r=n.filter(a=>o.has(a.id));r.length!==n.length&&this.doctorControl.setValue(r.length?r:this.getDefaultSelectionForRole())}saveDoctorSelection(){const n=(this.doctorControl.value??[]).filter(o=>o!==O.Mu).map(o=>o.id).filter(Boolean);(0,Ze.fy)(this.myDayPrefKey,{doctorIds:n}),this.userPreferenceService.storeUserPreference($n.Z.generatePayload()).pipe(this.pickUntil()).subscribe({error:o=>this.errorHandlerService.handle(o)})}styleResourceTitle(t){const n=t.el.getAttribute("data-resource-id"),o=this.allDoctorsFromApi?.find(r=>r.id===n);if(o){const r=t.el.querySelector("div span");r&&(r.style.color=o.color)}}getFilterConfig(t){const n=(0,m.BQ)();return{limit:"ALL",...this.pageConfig,filters:{...this.pageConfig.filters,startDate:t?void 0:(0,m.JM)((0,m.Tv)(z.$.day,n),m.ez),endDate:t?void 0:(0,m.JM)((0,m.kT)(z.$.day,n),m.ez),appointmentStatus:t?["pending"]:void 0}}}groupByStatus(t){const n=this.getInitialGroupedList();return t.length?t.reduce((o,r)=>({...o,[r.appointmentStatus]:[...o[r.appointmentStatus]||[],r]}),n):n}getInitialGroupedList(){return{[C.n.ACCEPTED]:[],[C.n.PENDING]:[],[C.n.CHECKED_IN]:[],[C.n.ENGAGED]:[],[C.n.COMPLETED]:[]}}sortListForView(t){return Xo.map(n=>({key:n,value:t[n],icon:(0,Y.Ob)(n),message:tt[n]||tt.DEFAULT}))}getSignedUrls(t){return t.map(n=>(0,L.H)(n?this.s3FileUploadService.getSignedUrl(n):(0,V.of)(null)).pipe(this.pickFirstOrUntil()))}setEventDragged(t){this.isEventDragged=t,this.detectChanges()}detectChanges(){this.changeDetectorRef.detectChanges()}static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=e.xGo(i)))(o||i)}})()}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-my-day"]],viewQuery:function(n,o){if(1&n&&(e.wEZ(o.eventPop,Ci,5),e.wEZ(o.appointmentPop,yi,5),e.GBs(T.S,5)),2&n){let r;e.NyB(2),e.mGM(r=e.lsd())&&(o.calComponent=r.first)}},hostBindings:function(n,o){1&n&&e.bIt("resize",function(){return o.onWindowResize()},!1,e.tSv)},features:[e.Jv_([{provide:X.Lt,useValue:"myDay"},Qe.O,Ke.D]),e.Vt3],decls:1,vars:1,consts:[["tabPanel",""],["calender",""],["appointmentItem",""],["appointmentItemRequested",""],["actionMenuTemplate",""],["loader",""],["appointmentPopover",""],["eventPopover",""],["optionsMenu","matMenu"],[4,"transloco","translocoRead"],[1,"overflow-auto"],["slotTitle","",3,"helpConfig","title"],["fxLayoutAlign","flex-start center","fxLayoutGap","4px","slotActionRight","",1,"po-filter","text-small","filter-outline","doctor-selection-dropdown","min-w-16","h-32px"],[1,"color-secondary-text","filter-label"],[3,"panelClass","allowMultiSelect","clinicId","control","showRequiredMessage","returnObject","setInitialValue","showLabel"],[2,"position","relative",3,"noSpace"],[1,"absolute","top-0","left-0","right-0","z-1"],["gdColumns.gt-sm","340px 1fr",1,"h-full","overflow-auto"],[1,"bg-surface","lt-sm:px-10px","gt-xs:px-16px","pb-16px","pt-1","overflow-auto"],["fxLayout","column","fxLayoutAlign","center center",1,"lt-sm:pb-16px","gt-xs:py-8px","border-hr"],["mat-tab-nav-bar","",1,"mx-auto",3,"tabPanel"],["mat-tab-link","",3,"active"],["multi","","gdColumns.lt-sm","repeat(1, minmax(0, 1fr))","gdColumns.lt-md","repeat(2, minmax(0, 1fr))","gdGap.lt-md","15px",1,"my-day-sidebar"],["appHideAptBtnOnScroll","",1,"lt-sm:p-10px","gt-xs:p-16px","my-day-calendar-height-responsive","overflow-auto"],[1,"mat-card-box","overflow-auto","mat-calender-wrapper","h-full"],[1,"calendar-wrapper","h-full",3,"ngClass"],[3,"calendarOptions"],[3,"typedTemplate"],[3,"opened","closed","contentAction","loading","showBackdrop","position","loaderClass"],[1,"popover-large","calendar-popover"],[3,"contentAction","loading","showBackdrop","position","loaderClass"],[3,"optionSelected","responseReceived","panelClass","allowMultiSelect","clinicId","control","showRequiredMessage","returnObject","setInitialValue","showLabel"],["mode","indeterminate",1,"top-progress-bar"],["mat-tab-link","",3,"click","active"],[1,"ml-4px","custom-badge","text-tiny"],["expanded","",1,"my-day-expansion-wrapper","center-body"],[1,"header-color-primary","header-small"],[1,"no-border"],[3,"icon","iconClass","size","tooltip"],[1,"text-small","font-bold"],[1,"custom-badge","text-tiny"],[1,"pl-1","pr-6px","my-day-panel-content-wrapper",3,"ngClass"],[1,"text-center","py-1","color-hint-text","text-small","empty-paragraph"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["gdColumn.lt-md","span 2","expanded","",1,"my-day-expansion-wrapper",3,"hideToggle"],[1,"header-color-primary","header-small","pointer-event-none"],[1,"h-30","pl-1","pr-6px","my-day-panel-content-wrapper"],[1,"text-center","py-1","color-hint-text","text-small"],["fxLayoutAlign","start center",1,"text-small","py-1","panel-content-item"],["fxLayoutAlign","flex-start center","fxFlex","34px",1,"deceasedProfile","mr-1","overflow-hidden","radius-full","border","border-hr"],["styleClass","vertical-align-middle","previewType","PET_AVATAR",3,"imagePath","signingRequired","width"],["fxFlex","1 1 auto","fxLayout","column","fxLayoutGap","-2px"],["fxLayoutAlign","space-between center",1,"pb-4px"],[1,"font-bold","color-primary","ellipsis-1","word-break-all",3,"matTooltip"],[1,"deceasedText"],[3,"icon","color","size"],[1,"badge","badge-pill","badge-draft"],["fxLayoutAlign","space-between center"],[1,"font-bold","color-hint-text","ellipsis-1"],[1,"font-bold","white-space-nowrap","color-secondary-text"],[1,"color-hint-text","ellipsis-1"],[1,"ml-4px",3,"color","iconSize","icon","matMenuTriggerFor","variant","size"],[1,"bordered-menu","min-w-290px","my-day-menu-panel"],["mat-menu-item",""],["mat-menu-item","",3,"click"],["fxLayoutAlign","center center"],["diameter","30"],["gdRows","auto 1fr","gdRows.lt-sm","auto 1fr",1,"h-full","overflow-auto","max-h-inherit"],["fxLayoutAlign","space-between center",1,"border-b","border-hr","px-14px","py-8px"],[1,"color-secondary-dark","text-small","font-bold"],[1,"font-normal","border-l","border-grey-light","pl-8px","ml-8px"],["id","tippyCancel",1,"curs
1or-pointer",3,"click"],["src","assets/images/img-cancel.svg"],["fxLayout","column",1,"calendar-popover-actions","overflow-auto","px-14px","pt-8px"],[1,"pb-1"],["fxLayoutAlign","start center","fxLayoutGap","8px"],["fxLayoutAlign","flex-start center","fxFlex","46px",1,"deceasedProfile","mr-1","overflow-hidden","radius-full","border","border-primary","self-start"],["previewType","PET_AVATAR","styleClass","vertical-align-middle",3,"imagePath","signingRequired","width","height"],["fxFlex","1 1 auto"],[1,"mb-2px"],[1,"deceasedText","color-primary","font-bold","text-small"],[1,"ic-deceased","mt-2px"],["gdColumns","repeat(4, minmax(0, 1fr))","gdColumns.lt-sm","repeat(2, minmax(0, 1fr))","gdGap","12px",1,"text-tiny"],["fxLayout","column"],[1,"color-secondary-dark"],[1,"tw-block","tw-min-w-0",3,"tippyTemplate","tippyConfig","tippyBoxClass"],[1,"color-secondary-dark","tw-block","tw-min-w-0","tw-max-w-full","tw-truncate"],[1,"color-secondary-dark","space-nowrap"],["id","viewPetProfile",3,"onClick","label","size","variant"],["fxLayoutAlign","start start","fxLayoutGap","8px",1,"mt-8px"],[1,"border-t","border-b","border-hr","py-1","mb-8px"],["fxLayoutAlign","flex-start center","fxFlex","46px",1,"mr-1","overflow-hidden","radius-full","border","border-primary","self-start"],["previewType","USER_AVATAR","styleClass","vertical-align-middle",3,"imagePath","signingRequired","width","height"],[1,"color-primary","font-bold","text-small","word-break-all"],["fxLayout","column",1,"text-tiny"],[1,"lt-sm:text-ellipsis-80px"],[1,"pl-1"],["id","viewOwnerProfile",3,"onClick","label","size","variant"],["fxLayout","column",1,"pt-4px","pb-1"],[1,"color-secondary-dark","text-small"],[1,"color-grey-dark","text-small"],[1,"color-american-green"],["fxLayout","column",1,"border-hr","border-t","py-1"],["fxLayoutAlign","start start","fxLayoutGap","8px",1,"mb-1"],["id","checkedInBtn",3,"label","class","size","disabled","variant"],["id","draftVisitBtn",3,"label","class","size","variant"],["id","starVisitBtn",3,"label","class","size","variant"],["id","noShowBtn",3,"label","class","size","variant"],["id","rescheduleApptBtn",3,"label","class","size","variant"],["id","acceptPet",3,"label","class","size","variant"],["id","acceptOwner",3,"label","class","size","variant"],["id","viewVisit",3,"label","class","size","variant"],["id","cancelBtn",3,"label","class","size","color","variant"],["id","rejectBtn",3,"label","class","size","color","variant"],["id","cancelRecurringApptBtn",3,"label","class","size","color","variant"],["id","scheduleFollowUpBtn",3,"label","class","size","variant"],[1,"ic-info","color-error-light","mt-2px"],[1,"text-small"],[1,"pre-exam-note-wrapper","overflow-auto","text-small","color-grey-dark"],["id","checkedInBtn",3,"onClick","label","size","disabled","variant"],["id","draftVisitBtn",3,"onClick","label","size","variant"],["id","starVisitBtn",3,"onClick","label","size","variant"],["id","noShowBtn",3,"onClick","label","size","variant"],["id","rescheduleApptBtn",3,"onClick","label","size","variant"],["id","rescheduleRecurringApptBtn",3,"label","class","size","variant"],["id","rescheduleRecurringApptBtn",3,"onClick","label","size","variant"],["id","acceptApptBtn",3,"onClick","label","size","variant"],["id","acceptAndRescheduleApptBtn",3,"onClick","label","size","variant"],["id","acceptPet",3,"onClick","label","size","variant"],["id","acceptOwner",3,"onClick","label","size","variant"],["id","viewVisit",3,"onClick","label","size","variant"],["id","cancelBtn",3,"onClick","label","size","color","variant"],["id","rejectBtn",3,"onClick","label","size","color","variant"],["id","cancelRecurringApptBtn",3,"onClick","label","size","color","variant"],["id","scheduleFollowUpBtn",3,"onClick","label","size","variant"],["gdRows.lt-sm","auto 1fr",1,"h-full","overflow-auto","lt-lg:max-h-inherit"],["fxLayoutAlign","space-between start",1,"px-14px","gt-xs:pt-1","lt-sm:pt-8px","pb-8px","border-b","border-hr"],[1,"color-warning-light","text-small"],[1,"cursor-pointer"],["id","tippyCancelEvent","src","assets/images/img-cancel.svg","alt","",3,"click"],["gdColumns","repeat(2, minmax(0, 1fr))","gdGap","8px",1,"px-14px","pb-1","pt-8px"],["fxLayout","column","gdColumn","span 2"],[1,"color-secondary-dark","text-small","break-word"],["fxLayout","column",1,"calendar-popover-actions","w-full-button"],["
1id","eventReschedule",3,"onClick","label","size","variant"],[3,"onClick","label","size","variant","color"],["id","eventRescheduleAll",3,"onClick","label","size","variant"],["id","eventDeleteAll",3,"onClick","label","size","variant","color"]],template:function(n,o){1&n&&e.DNE(0,Ho,41,26,"ng-container",9),2&n&&e.Y8G("translocoRead","myDay")},dependencies:[De.MD,De.YU,De.T3,X.Q8,X.bA,Un.S,oi.y,si.H,ri.j,ai.U,li.v,pe.sA,pe.BO,Hn.m,ci.A,de.EK,pe.DJ,xe.Bu,xe.Ql,xe.hQ,ue.BS,de.BV,ue.GK,ue.WN,Zn.e,Xn.o,pi.R,zn.Y,di.Y,ui.a,hi.C,mi.b,de.ZS,Wn.RN,Yn.h,_i.L,Jn.r,T.S,Qn.M,pe.UI,Kn.n,fi.o,qn.t,gi.Q,Se.kk,Se.fb,ei.LG,de.EV,Se.Cp,ue.Z2,ti.HM,ni.x,ii.k,vi.r],encapsulation:2,changeDetection:0})}}return i})()},95624:(oe,$,c)=>{c.d($,{r:()=>B});var l=c(41360),e=c(14122);const F=["*"];let B=(()=>{class S{constructor(L){this.ngxTippyService=L,this.tippyTemplate="",this.tippyBoxClass=""}openTippy(){this.ngxTippyService?.show(this.tippyName)}static{this.\u0275fac=function(N){return new(N||S)(l.rXU(e.$u))}}static{this.\u0275cmp=l.VBU({type:S,selectors:[["app-popover"]],inputs:{tippyName:"tippyName",tippyTemplate:"tippyTemplate",tippyBoxClass:"tippyBoxClass",tippyConfig:"tippyConfig",tippyContext:"tippyContext"},standalone:!1,ngContentSelectors:F,decls:3,vars:5,consts:[["ngxTippy","",3,"tippyName","ngxTippy","tippyClassName","tippyProps","tippyContext"]],template:function(N,G){1&N&&(l.NAR(),l.qex(0),l.j41(1,"div",0),l.SdG(2),l.k0s(),l.bVm()),2&N&&(l.R7$(),l.Y8G("tippyName",G.tippyName)("ngxTippy",G.tippyTemplate)("tippyClassName",G.tippyBoxClass)("tippyProps",G.tippyConfig)("tippyContext",G.tippyContext))},dependencies:[e.No],styles:["[_nghost-%COMP%]{z-index:auto}"]})}}return S})()}}]);

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.