1/*! For license information please see 4813.21d20c219ea7eed1062c.js.LICENSE.txt */ 2(self.webpackChunkJova_CRM=self.webpackChunkJova_CRM||[]).push([[4813],{47166:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(57689),r=(n(56859),n(2660).Z.t);const a=function(e){return i.createElement("div",{className:"loader-container"},i.createElement("div",{className:"my-loader"},i.createElement("img",{src:"images/loading-3.gif",className:"loader-img"}),i.createElement("p",{className:"loader-text"},e.message||r("common.loading"))))}},35832:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(25977),r=n(28477),a=n(57689);const o=function(e){var t=e.activeFeatureList;return t&&(0,i.isArray)(t)?a.createElement("div",null,t.map(function(e){if(e.name)return a.createElement(r.Z,{className:"billing-feature-tag",key:e.name,color:e.color||"green"},e.name)})):null}},38388:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(56191),r=n(15106),a=n(30219),o=n(57413),c=n(55112),g=n(15774),l=n(73521),s=n(89442),A=(n(35832),n(38934)),C=n(47506),I=n(40507),u=n.n(I),d=n(95261),m=(n(75868),n(2660)),f=n(57689),v=m.Z.t;function p(e){var t=e.height,n=e.headers,I=e.loading,u=e.invoices,m=void 0===u?[]:u,p=e.areIndependentInvoices,h=void 0!==p&&p,E=e.activePage,b=e.tableConfig,y=e.onActionClick,w=e.totalInvoicesCount,S=e.onRowSelect,T=e.onRowClick,N=e.onRefreshClick,k=e.onPageChange,x=e.tableKey,_=e.columnsToHide;return f.createElement("div",{className:"invoices-table-wrapper"},f.createElement(i.iA,{key:x,columnsToHide:_,class:!0,loading:I,height:t,headers:n,rows:null==m?void 0:m.map(function(e){var t=e.invoiceId,i=e.serviceAddress,I=void 0===i?{}:i,u=(e.billingAddress,e.invoiceDate),m=void 0===u?"":u,p=e.invoiceNumber,E=(e.ticket,e.createdBy,e.stimatedHours,e.jobType),b=e.createdAt,y=e.quickbookData,w=(e.isFinanced,e.estimatedHours,e.isRecurringInvoice),S=void 0!==w&&w,T=whoami.get("company"),N=(T&&T.get("name"),I.name),k=void 0===N?"":N,x=I.firstname,_=void 0===x?"":x,Z=I.lastname,O=void 0===Z?"":Z,D=e.emailSentBy,R=e.activeFeatureList,P=void 0===R?[]:R,j=k||"".concat(_," ").concat(O);if(!e.ticketId){var L=I.customerId,U=void 0===L?{}:L,M=U.name,V=void 0===M?"":M,F=U.firstname,G=void 0===F?"":F,B=U.lastname,Y=void 0===B?"":B;j=V||"".concat(G," ").concat(Y)}var H=t||e.id,W=P.find(function(e){return e.name===d._V}),K=getCurrencySymbol(whoami.get("company").get("country")),z={id:H,data:e,isRowSelectable:!0,cells:n.map(function(t){switch(t.accessor){case"invoice_date":return{renderer:f.createElement("div",{className:"d-flex gap-2 items-center"},y&&y.qbTxnId&&y.qbTxnId!=Constants.quickbook.DUMMY_LIST_ID&&""!=y.qbTxnId.trim()?f.createElement(C.M,null):null,f.createElement("div",{className:"flex-col gap-2"},f.createElement("div",null,m?moment(m).format("MM/DD/YYYY"):moment(b).format("MM/DD/YYYY")),f.createElement(s.Z,{format:"AGING_DATE",invoice:e})))};case"invoice_number":return{renderer:f.createElement("div",{className:"d-flex gap-2 items-center"},f.createElement("div",{id:"invoice_number",style:{height:50},className:"d-flex gap-2 items-center",onClick:function(e){return h?void 0:function(e,t){e.stopPropagation(),window.open("/invoices/".concat(t),"_blank")}(e,p)}},p,!h&&f.createElement(a.Z,null),S&&f.createElement("img",{height:"24px",width:"24px",className:"recurring-invoice-icon",src:"/images/recurring-invoice-icon.svg"})),W&&f.createElement(r.Z,{iconList:[W]}))};case"customer":return{renderer:f.createElement("div",{className:"flex-col gap-2"},f.createElement("div",null,j),f.createElement("div",{className:"d-flex gap-2 items-start",style:{color:"gray"}},f.createElement(o.Z,{onClick:function(e){e.stopPropagation()}}),getFullAddress(I)))};case"job_type":return{renderer:f.createElement("div",{style:{color:"gray"}},E)};case"email_sent_status":return{renderer:f.createElement(f.Fragment,null,D&&f.createElement(c.Z,{fontSize:"large",style:{color:"green"},titleAccess:D}))};case"sub_total":return{renderer:f.createElement("div",{className:"flex-col gap-2",style:{color:"gray"}},f.createElement("div",null,"".concat(K," ").concat(formatAmount(roundTo(e.totalBeforeTax,2)))),f.createElement("div",null,"".concat(K," ").concat(formatAmou
2nt(roundTo(e.totalTax,2)))))};case"invoice_total":return{renderer:f.createElement("div",null,"".concat(K," ").concat(formatAmount(roundTo(e.invoiceTotal,2))))};case"invoice_status":return{renderer:f.createElement("div",{className:"flex-col gap-2"},f.createElement("div",null,f.createElement(l.Z,{label:Constants.invoiceStatusMap[e.invoiceStatusId],customColor:Constants.invoiceStatusColorMap[e.invoiceStatusId]})))};case"payment_status":return{renderer:f.createElement(l.Z,{label:Constants.paymentStatusMap[e.paymentStatusId],customColor:Constants.paymentStatusColorMap[e.paymentStatusId]})};case"tags":return{renderer:f.createElement("div",{className:"d-flex gap-2 items-start flex-wrap",style:{maxWidth:400}},P.filter(function(e){return e.name!==d._V}).map(function(e){return f.createElement(l.Z,{label:e.name,customColor:"#66CCFF"})}))};case"created_by":return{renderer:f.createElement("div",{style:{color:"gray"}},e.createdUser.id==whoami.id?"me":getFullNameFromUserObj(e.createdUser))};default:return{renderer:null}}})};return z.actions=[{key:A.a.DOWNLOAD.action,icon:f.createElement(g.Z,{fontSize:"large"}),label:v("label.download_pdf")}],z}),activePage:E,totalRecords:w,onRefreshClick:N,onActionClick:y,onRowClick:T,onRowSelect:S,onPageChange:function(e,t){return k(e,t)},tableConfig:b}))}p.propTypes={height:u().string,headers:u().arrayOf(u().shape({label:u().oneOfType([u().string,u().node]).isRequired,accessor:u().string.isRequired,width:u().number})).isRequired,loading:u().bool,invoices:u().arrayOf(u().object),activePage:u().number,tableConfig:u().object,onActionClick:u().func,totalInvoicesCount:u().number,onRowSelect:u().func,onRowClick:u().func,onRefreshClick:u().func,onPageChange:u().func},p.defaultProps={height:"100%",headers:[],loading:!1,invoices:[],activePage:1,tableConfig:{},onActionClick:function(){},totalInvoicesCount:0,onRowSelect:function(){},onRowClick:function(){},onRefreshClick:function(){},onPageChange:function(){}};const h=p},68838:(e,t,n)=>{"use strict";n.d(t,{A:()=>C,CV:()=>l,Mz:()=>f,Nn:()=>u,bV:()=>v,dl:()=>c,hm:()=>s,jg:()=>g,jv:()=>m,lx:()=>A,ns:()=>d,p4:()=>I,r3:()=>h,w4:()=>p});var i=n(2660).Z.t,r=2,a=3,o=4,c=[{value:1,label:i("scheduler.all_events"),key:"ALL",default:!0},{value:r,label:i("scheduler.overdue_visits"),key:"OVERDUE"},{value:a,label:i("common.recurring_visits"),key:"RECURRING"},{value:o,label:i("scheduler.visits_with_sa"),key:"VISITS_WITH_SA"}],g={ALL:{label:i("scheduler.all_events"),unit:"ALL",preferenceName:"allVisits"},OVERDUE:{label:i("scheduler.overdue_visits"),unit:"OVERDUE",preferenceName:"overDueVisits"},RECURRING:{label:i("common.recurring_visits"),unit:"RECURRING",preferenceName:"recurringVisits"},VISITS_WITH_SA:{label:i("scheduler.visits_with_sa"),unit:"VISITS_WITH_SA",preferenceName:"visitsWithSA"}},l={START_TIME:{DESC:0,ASC:1},REVENUE:{DESC:2,ASC:3}},s={OVERDUE:l.START_TIME.DESC,ALL:l.START_TIME.DESC,RECURRING:l.START_TIME.DESC,VISITS_WITH_SA:l.START_TIME.DESC},A={TICKET_NUMBER:1,CUSTOMER_NAME:2,SA_NAME:3,CUSTOMER_ADDR:4},C=[{key:"TICKET_NUMBER",value:A.TICKET_NUMBER,label:i("common.ticket_number")},{key:"CUSTOMER_NAME",value:A.CUSTOMER_NAME,label:i("common.customer_name"),default:!0},{key:"SA_NAME",value:A.SA_NAME,label:i("common.service_agreement_name")},{key:"CUSTOMER_ADDR",value:A.CUSTOMER_ADDR,label:i("scheduler.customer_address")}],I=[{key:"ALL",value:1,label:i("scheduler.all_events")},{key:"UNASSIGNED",value:2,label:i("common.unassigned"),default:!0}],u=[{key:"20",value:20,label:"20",default:!0},{key:"50",value:50,label:"50"},{key:"100",value:100,label:"100"},{key:"200",value:200,label:"200"}],d=210,m=350,f=50,v=50,p=["#4B0082","#008B8B","#B22222","#228B22","#DAA520","#8B008B","#8B0000","#808000","#008000","#008080","#800080","#808080","#A52A2A","#008080","#8B008B","#008000","#DAA520","#B22222","#800080","#808080","#008080","#008000","#808000","#800000","#A52A2A","#008080","#8B008B","#008000","#DAA520","#B22222","#800080","#808080","#008080","#008000","#808000","#800000","#A52A2A","#008080","#8B008B","#008000","#DAA520","#B22222","#800080","#808080","#008080","#008000","#808000","#800000","#A52A2A","#008080","#8B008B","#008000","#DAA520","#B22222","#800080","#808080","#008080","#008000","#808000","#800000"],h=[{value:-1,label:i("Unassigned"),key:-1,shortName:"U",backGroundColor:"#008000"},{value:"select-all",label:i("map.tracking.select_all"),key:"select-all",shortName:"A",backGroundColor:"#0000FF",isSelectAll:!0}]},15106:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(25977),r=n(95895),a=n(57689);const o=function(e){var t=e.iconList;return t||(0,i.isArray)(t)?a.createElement("div",null,t.map(function(e){if(e.name)return a.createElement(r.Z,{name:e.icon||e.name,key:e.name,color:e.color||"green",size:e.size||"large"})})):nil}},99986:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(68819),r=n(80757),a=n(70832),o=n(59600);function c(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var c=i&&i.prototype instanceof l?i:l,s=Object.create(c.prototype);return g(s,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),s}var o={};function l(){}function s(){}function A(){}t=Object.getPrototypeOf;var C=[][i]?t(t([][i]())):(g(t={},i,function(){return this}),t),I=A.prototype=l.prototype=Object.create(C);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,g(e,r,"GeneratorFunction")),e.prototype=Object.create(I),e}return s.prototype=A,g(I,"constructor",A),g(A,"constructor",s),s.displayName="GeneratorFunction",g(A,r,"GeneratorFunction"),g(I),g(I,r,"Generator"),g(I,i,function(){return this}),g(I,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:u}})()}function g(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}g=function(e,t,n,i){function a(t,n){g(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},g(e,t,n,i)}var l="api/user",s=function(){return(0,a.Z)(function e(){(0,r.Z)(this,e)},null,[{key:"updateFilters",value:(t=(0,i.Z)(c().m(function e(t){return c().w(function(e){for(;;)if(0===e.n)return e.a(2,o.Z.put("".concat(l,"/filters"),t))},e)})),function(e){return t.apply(this,arguments)})},{key:"update",value:(e=(0,i.Z)(c().m(function e(t){return c().w(function(e){for(;;)if(0===e.n)return e.a(2,o.Z.put("".concat(l,"/preferences"),t))},e)})),function(t){return e.apply(this,arguments)})}]);var e,t}()},84493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g,z:()=>c});var i=n(15555),r=n.n(i),a=n(41293),o=n(59913),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=r()(e);switch(t){case"minute":n.seconds()>=30&&n.add(1,"minute"),n.startOf("minute");break;case"hour":n.minutes()>=30&&n.add(1,"hour"),n.startOf("hour");break;case"day":n.hours()>=12&&n.add(1,"day"),n.startOf("day");break;default:throw new Error("Unsupported roundTo unit")}return n.toDate()};const g={getDateTimeDisplayString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";if((0,o.F5)(e)){var i=t.skip,c=void 0===i?{}:i,g=c.time,l=c.date,s=t.customFormat,A=void 0===s?{}:s,C=A.date,I=A.time,u=C||a.ZP.displayDateFormat,d=I||a.ZP.displayTimeFormat,m=g?u:l?d:"".concat(u," ").concat(d);n=r()(e).format(m)}return n},getDateRangeDisplayString:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="";if((0,o.F5)(e)&&(0,o.F5)(t)){var a=n.separator,c=void 0===a?"-":a,g=n.format,l=void 0===g?{}:g,s=l.day,A=void 0===s?"DD":s,C=l.month,I=void 0===C?"MMMM":C,u=l.year,d=void 0===u?"YYYY":u,m=l.dayOfWeek,f=void 0===m?"ddd":m;if(r()(e).isSame(t,"year"))if(r()(e).isSame(t,"month"))if(r()(e).isSame(t,"day")){var v="".concat(f,", ").concat(I," ").concat(A,", ").concat(d);i="".concat(r()(e).format(v))}else{var p="".concat(I);i="".concat(r()(e).format(p));var h="".concat(A);i+=" ".concat(r()(e).format(h)," ").concat(c," ").concat(r()(t).format(h));var E="".concat(d);i+=", ".concat(r()(e).format(E))}else{var b="".concat(I," ").concat(A);i="".concat(r()(e).format(b)," ").concat(c," ").concat(r()(t).format(b)),i+=", ".concat(r()(e).format(d))}else{var y="".concat(I," ").concat(A,", ").concat(d);i="".concat(r()(e).format(y)," ").concat(c," ").concat(r()(t).format(y))}}return i},validTimeString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.ZP.timeFormat;return r()(e,t).isValid()},getTimeDisplayString:function(e){return r()(e).format(a.ZP.displayTimeFormat)},roundDateToNearest:c}},44813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Wn});var i=n(57689),r=n(41144),a=n(11302),o=n(21942),c=n(1074),g=n(38875),l=n(4165),s=n(2660),A=(n(13131),n(57689)),C=s.Z.t;const I=function(){var e=(0,i.useState)("./images/ZenTrades_B.png"),t=(0,r.Z)(e,2),n=t[0],s=t[1],I=(0,i.useState)(!1),u=(0,r.Z)(I,2),d=u[0],m=u[1];(0,i.useEffect)(function(){f()},[]);var f=function(){var e="images/ZenTrades_B.png",t=function(){var e={CHRISTMAS:{date:moment("12/25","MM/DD"),startOn:moment("12/15","MM/DD"),endOn:moment("12/31","MM/DD")}},t=moment().set({hour:0,minute:0,second:0,millisecond:0});for(var n in e){var i=e[n],r=i.date,a=i.startOn,o=i.endOn;if(t.isSame(r))return m(!0),n;if(a&&o&&(t.isAfter(a)||t.isSame(a))&&(t.isBefore(o)||t.isSame(o)))return m(!0),n}}();t&&"string"==typeof t&&(e="images/ZenTrades_B__".concat(t.toLowerCase(),".gif"));var n=getObjKeyValue(whoami,"company");if(n){var i=(getObjKeyValue(n,"vertical")||"").toLowerCase();"fire"===i?e=t&&"string"==typeof t?"images/ZenFire_B__".concat(t.toLowerCase(),".gif"):"images/ZenFire_B.png":"hvac"===i?e=t?"images/ZenHVAC_B__".concat(t.toLowerCase(),".gif"):"images/ZenHVAC_B.png":"electrical"===i?e=t?"images/ZenElectric_B__".concat(t.toLowerCase(),".gif"):"images/ZenElectric_B.png":"plumbing"===i&&(e=t?"images/ZenPlumbing_B__".concat(t.toLowerCase(),".gif"):"images/ZenPlumbing_B.png")}s(e)},v=function(e){window.Emitter.emit("updateRoute",{to:"/".concat(e)})};return A.createElement("div",null,A.createElement("div",{className:"flex-col gap-4",style:{margin:"80px 300px 80px 300px"}},A.createElement("div",{className:"flex-col app-image-section gap-4 justify-center items-center"},A.createElement("img",{className:d?"occasion-app-image":"app-image",src:n})),A.createElement("div",{className:"d-flex justify-between header-4"},A.createElement("div",null,C("home.hello")," ",whoami.get("firstName")," ",whoami.get("lastName")),A.createElement("div",null,moment().format("dddd, MMMM Do YYYY"))),A.createElement(a.Z,null),A.createElement("div",{className:"d-flex gap-10",style:{marginTop:40}},A.createElement(o.Z,{columns:3,divided:!0,className:"w-100"},A.createElement(c.Z,null,A.createElement(g.Z,null,A.createElement(l.Z,{className:"w-100",style:{background:"#58585a",color:"white"},onClick:function(){return v("tickets")}},A.createElement(l.Z.Content,{className:"flex-col items-center gap-4",style:{color:"white"}},A.createElement("i",{className:"fa fa-calendar-check-o fa-5x ","aria-hidden":"true"}),A.createElement("div",{className:"header-4"},C("common.ticket"))))),A.createElement(g.Z,null,A.createElement(l.Z,{className:"w-100",style:{background:"#EE5566",color:"white"},onClick:function(){return v("map")}},A.createElement(l.Z.Content,{className:"flex-col items-center gap-4",style:{color:"white"}},A.createElement("i",{className:"fa fa-map-signs fa-5x","aria-hidden":"true"}),A.createElement("div",{className:"header-4"},C("common.map"))))),A.createElement(g.Z,null,A.createElement(l.Z,{className:"w-100",style:{background:"#58585a",color:"white"},onClick:function(){return v("scheduler")}},A.createElement(l.Z.Content,{className:"flex-col items-center gap-4",style:{color:"white"}},A.createElement("i",{className:"fa fa-calendar fa-5x","aria-hidden":"true"}),A.createElement("div",{className:"header-4"},C("common.scheduler")))))),A.createElement(c.Z,null,shouldShowBillingDetails()&&A.createElement(g.Z,null,A.createElement(l.Z,{className:"w-100",style:{background:"#EE5566",color:"white"},onClick:function(){return v("invoices")}},A.createElement(l.Z.Content,{className:"flex-col items-center gap-4",style:{color:"white"}},A.createElement("i",{className:"fa fa-print fa-5x","aria-hidden":"true"}),A.createElement("div",{className:"header-4"},C("common.invoice"))))),A.createElement(g.Z,null,A.createElement(l.Z,{className:"w-100",style:{background:"#58585a",color:"white"},onClick:function(){return v("customers")}},A.createElement(l.Z.Content,{className:"flex-col items-center gap-4",style:{color:"white"}},A.createElement("i",{className:"fa fa-users fa-5x","aria-hidden":"true"}),A.createElement("div",{className:"header-4"},C("common.customers"))))),shouldShowBillingDetails()&&A.createElement(g.Z,null,A.createElement(l.Z,{className:"w-100",style:{background:"#EE5566",color:"white"},onClick:function(){return v("timecards")}},A.createElement(l.Z.Content,{className:"flex-col items-center gap-4",style:{color:"white"}},A.createElement("i",{className:"fa fa-clock-o fa-5x","aria-hidden":"true"}),A.createElement("div",{className:"header-4"},C("common.time_cards"))))))))))};var u=n(78207),d=n(68819),m=n(91696),f=n(40507),v=n.n(f),p=n(27207),h=n.n(p),E=n(41293),b="estimateListing",y="invoiceListing",w="scheduler",S="customerCreate",T=[E.ZP.ROLES.TECHNICIAN,E.ZP.ROLES.SERVICE_MANAGER,E.ZP.ROLES.HELPER,E.ZP.ROLES.VIEW_RESTRICTED,E.ZP.ROLES.TECHNICIAN_RESTRICTED,E.ZP.ROLES.BILLING_RESTRICTED,E.ZP.ROLES.SENIOR_DISPATCHER,E.ZP.ROLES.STAFF_TECHNICIAN],N=16,k=[{w:8,h:4,x:8,y:0,i:b,minH:3,minW:7},{w:8,h:4,x:8,y:4,i:y,minH:3,minW:7},{w:8,h:4,x:0,y:0,i:w,minH:3,minW:8}
2,{w:8,h:4,x:0,y:4,i:S,minH:4}],x=(n(59899),n(14011),n(84235),n(21516)),_=n(78832),Z=n(96195),O=n(86170),D=n(4718),R=n(39396),P=n(84493),j=s.Z.t,L={timeline:j("common.timeline").toUpperCase(),grid:j("common.grid").toUpperCase()},U=L.timeline,M={initialView:(0,u.Z)((0,u.Z)({},L.timeline,"resourceTimelineDay"),L.grid,"dayGridMonth"),switchViewButtonText:(0,u.Z)((0,u.Z)({},L.timeline,j("scheduler.grid_view")),L.grid,j("scheduler.timeline_view")),initialDuration:(0,u.Z)((0,u.Z)({},L.timeline,"DAY"),L.grid,"MONTH"),durationWiseView:(0,u.Z)((0,u.Z)({},L.timeline,{DAY:"resourceTimelineDay",WEEK:"resourceTimelineWeek",MONTH:"resourceTimelineMonth"}),L.grid,{DAY:"timeGridDay",WEEK:"timeGridWeek",MONTH:"dayGridMonth"})},V="___unassigned___",F={id:V,title:"Unassigned"};const G={EVENT_FA_ICONS:{USER_COUNT:"fa-user",SA_JOB:"fa-file-text-o",URGENT_JOB:"fa-exclamation",TRAVEL_TIME:"fa-car",REPEAT_TIME_OFF:"fa-repeat",NFPA_DEFICIENCY:"fa-minus-circle nfpa-deficiency"},DEFAULT_SCHEDULER_SETTINGS:{dayStartTime:"00:00:00",dayEndTime:"24:00:00",dayOffs:[],view:0,durationType:0,newScheduler:!0,parentView:"TIMELINE",initialView:"DAY",businessHours:!1,uiType:"blockUI"},ROLE_ID_WISE_CUSTOM_NAME:(0,u.Z)({},E.ZP.ROLES.SERVICE_MANAGER,"SM"),parentViews:L,initialParentView:U,parentViewProps:M,unassignedUser:F,unassignedUserId:V,VIEW_PREFERENCES:[{label:j("common.timeline"),value:0},{label:j("common.grid"),value:1}],DURATION_PREFERENCES:[{label:j("common.day"),value:0},{label:j("common.week"),value:1},{label:j("common.month"),value:2}],DESCRIPTION_CHARACTER_LIMIT:280,EVENT_LIMIT_PER_CALL:100};var B=n(59913),Y=function(e){try{return e&&e._def&&e._def.extendedProps&&e._def.extendedProps.droppedEvent}catch(e){console.error("Failed to determine whether event is dropped or was previously present in calendar")}};const H={getAssignments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.startDate,n=e.endDate;if(!(0,B.F5)(t)||!(0,B.F5)(n))return Promise.reject("Invalid start or end date");var i={constraint:e};return crmServices.TicketService.getVisitList(i,{includeMeta:!0})},getAssignmentsV2:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,B.LX)(e)?crmServices.TicketService.getVisitListV2({query:e,formulate:t}):Promise.reject("Missing query params")},getTimeOffs:function(e,t){if(!(0,B.F5)(e)||!(0,B.F5)(t))return Promise.reject("Invalid start or end date");var n={constraint:{startDate:e,endDate:t}};return crmServices.TicketService.getTimeOffList(n)},isDroppedEvent:Y,removeDroppedEvent:function(e){try{Y(e)&&e.remove()}catch(t){console.error("Failed to remove dropped event",e),console.error(t)}}};function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function z(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return J(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(J(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,J(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,J(A,"constructor",l),J(l,"constructor",g),g.displayName="GeneratorFunction",J(l,r,"GeneratorFunction"),J(A),J(A,r,"Generator"),J(A,i,function(){return this}),J(A,"toString",function(){return"[object Generator]"}),(z=function(){return{w:a,m:C}})()}function J(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}J=function(e,t,n,i){function a(t,n){J(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},J(e,t,n,i)}var Q=s.Z.t,X=function(e){return R.ZP.getUserFullName(e,{includeRoleName:3===e.role||4===e.role,customRoleNames:G.ROLE_ID_WISE_CUSTOM_NAME})},q=function(){var e=(0,d.Z)(z().m(function e(){var t,n;return z().w(function(e){for(;;)switch(e.n){case 0:return t={},e.n=1,fetchStaticListByKeys(Constants.STATIC_LIST_KEYS.ASSIGNMENT_STATUS.LOCAL_KEY);case 1:if(n=e.v){e.n=2;break}n=[];case 2:return n.forEach(function(e){var n=e.id;t[n]=e}),e.a(2,t)}},e)}));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=(0,d.Z)(z().m(function e(){var t,n;return z().w(function(e){for(;;)switch(e.n){case 0:return t={},e.n=1,fetchStaticListByKeys(Constants.STATIC_LIST_KEYS.JOB_TYPE.LOCAL_KEY);case 1:if(n=e.v){e.n=2;break}n=[];case 2:return n.forEach(function(e){var n=e.id;t[n]=e}),e.a(2,t)}},e)}));return function(){return e.apply(this,arguments)}}();const te=K(K({},H),{},{getIdFromKeyValue:function(e){var t=e;return"object"===(0,D.Z)(e)&&(t=e.id),t},getFullUserLabelWithRoleName:X,prepareResourceLabelContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="No name",i="<div class='custom-resource-label-container'>";return e&&e.resource&&e.resource.extendedProps&&(n=e.resource.id===G.unassignedUserId?e.resource.title:X(e.resource.extendedProps)),i+="<div class='resource-photo'>",i+="<img src='".concat("./images/tech_default.png","'/>"),i+="</div>",i+="<div class='resource-title'>".concat(n,"</div>"),t&&(i+="<button\n id=".concat(e.resource.id,'\n class="route-button"\n >\n ').concat(Q("button.route"),"\n </button>")),i+="</div>"},getAssignmentStatusIdWiseDetails:q,getJobTypeIdWiseDetails:ee,getNewTicketModel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=new UserObject;n=n.createWithoutData(t);var i=(settingsDataGlobal||{}).ticketSettings,r=(void 0===i?{}:i).schedulerTicketTimeWindow,a=void 0===r?2:r,o=moment(e).add(parseInt(a),"hour").toDate(),c=new TicketObject({id:"1",ticketNumber:"1",jobStatus:Constants.jobStatus.OPEN,jobPriority:0,scheduledStartTime:e,scheduledEndTime:o,company:whoami.get("company"),createdBy:whoami,updatedBy:whoami}),g=new AssignmentObject({company:whoami.get("company"),technician:n,ticket:c,status:Constants.jobStatus.OPEN,travelTime:0,startTime:c.get("scheduledStartTime"),endTime:c.get("scheduledEndTime")});return c.set("assignments",[g]),c},calculateTravelIndicatorWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0;return e>0&&(t=parseInt(80/60*parseInt(e))),t},getDayStartEndTime:function(){var e=getUserPreferencesByModule(Constants.MODULE_ID.NEW_SCHEDULER)||{},t=e.dayStartTime,n=e.dayEndTime;if(t&&n)return{dayStartTime:t,dayEndTime:n};var i=G.DEFAULT_SCHEDULER_SETTINGS.dayStartTime,r=G.DEFAULT_SCHEDULER_SETTINGS.dayEndTime,a=(settingsDataGlobal||{}).genericSettings,o=(void 0===a?{}:a).schedulerSettings,c=void 0===o?{}:o,g=c.dayStartTime,l=c.dayEndTime,s=$.cookie(Constants.SS_COOKIES.SCHEDULER_DAY_START_TIME);P.Z.validTimeString(s)?i=s:P.Z.validTimeString(g)&&(i=g);var A=$.cookie(Constants.SS_COOKIES.SCHEDULER_DAY_END_TIME);return P.Z.validTimeString(A)?r=A:P.Z.validTimeString(l)&&(r=l),{dayStartTime:i,dayEndTime:r}},setCorrespondingViewType:function(e){return 0===e?G.parentViews.timeline:1===e?G.parentViews.grid:void 0},setCorrespondingDurationType:function(e){return 0===e?"DAY":1===e?"WEEK":2===e?"MONTH":void 0},setButtonActiveClass:function(e,t){try{if(!e)throw new Error("unit is missing on which active button effect should be appiled ");if(!t)throw new Error("className to apply active button effetc is missing");for(var n=document.getElementsByClassName("fc-button fc-button-active ".concat(t)),i=n.length,r=0;r<i;r++)n[r]&&n[r].classList&&n[r].classList.remove("fc-button-active");for(var a=document.getElementsByClassName("fc-".concat(e.toLowerCase(),"View-button fc-button fc-button-primary ").concat(t)),o=a.length,c=0;c<o;c++)a[c]&&a[c].classList&&a[c].classList.add("fc-button-active")}catch(e){}}});var ne=n(72367),ie=n(27816),re=n(15555),ae=n.n(re),oe=n(83191),ce=n(38721);s.Z.t;var ge=n(4003),le=n(43235);n(54036),n(24583),n(50785);function se(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return Ae(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(Ae(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Ae(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,Ae(A,"constructor",l),Ae(l,"constructor",g),g.displayName="GeneratorFunction",Ae(l,r,"GeneratorFunction"),Ae(A),Ae(A,r,"Generator"),Ae(A,i,function(){return this}),Ae(A,"toString",function(){return"[object Generator]"}),(se=function(){return{w:a,m:C}})()}function Ae(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Ae=function(e,t,n,i){function a(t,n){Ae(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Ae(e,t,n,i)}var Ce=s.Z.t,Ie=[{key:"urgentJob",icon:G.EVENT_FA_ICONS.URGENT_JOB,label:Ce("scheduler.event_indicators.urgent_job"),className:"color-red"},{key:"saJob",icon:G.EVENT_FA_ICONS.SA_JOB,label:Ce("common.sa_job"),className:"color-red"},{key:"usersOnJob",icon:G.EVENT_FA_ICONS.USER_COUNT,label:Ce("scheduler.event_indicators.users_on_job")},{key:"timeOff",label:Ce("scheduler.event_indicators.timeoff"),className:"time-off"},{key:"repeatTimeOff",icon:G.EVENT_FA_ICONS.REPEAT_TIME_OFF,label:Ce("scheduler.event_indicators.repeat_timeoff"),className:"time-off"},{key:"deficiency",icon:G.EVENT_FA_ICONS.NFPA_DEFICIENCY,label:Ce("scheduler.event_indicators.nfpa_deficiency")}];const ue=function(){var e=(0,i.useState)([]),t=(0,r.Z)(e,2),n=t[0],a=t[1];(0,i.useEffect)(function(){o()},[]);var o=function(){var e=(0,d.Z)(se().m(function e(){var t;return se().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetchStaticListByKeys(Constants.STATIC_LIST_KEYS.ASSIGNMENT_STATUS.LOCAL_KEY);case 1:if(t=e.v){e.n=2;break}t=[];case 2:a(t);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return n.length?i.createElement(ge.ZP,{placement:"auto",theme:"light",className:"scheduler-info-tooltip",content:i.createElement(i.Fragment,null,i.createElement(le.Z,{basic:!0,className:"scheduler-info-table"},i.createElement(le.Z.Header,null,i.createElement(le.Z.Row,{className:"scheduler-info-row"},i.createElement(le.Z.HeaderCell,{colSpan:"2",className:"scheduler-info-cell"},i.createElement("div",{className:"scheduler-info-header-label"},Ce("common.visit_status"))))),i.createElement(le.Z.Body,null,n.map(function(e){return i.createElement(le.Z.Row,{key:e.id,className:"scheduler-info-row"},i.createElement(le.Z.Cell,{className:"scheduler-info-cell"},i.createElement("div",{className:"event-info-indicator",style:{background:e.color}})),i.createElement(le.Z.Cell,{className:"scheduler-info-cell scheduler-info-cell-label"},e.displayName))}),i.createElement(le.Z.Row,{key:"__unassigned__",className:"scheduler-info-row"},i.createElement(le.Z.Cell,{className:"scheduler-info-cell"},i.createElement("div",{className:"event-info-indicator unassigned-visit"})),i.createElement(le.Z.Cell,{className:"scheduler-info-cell scheduler-info-cell-label"},Ce("common.unassigned"))))),i.createElement(le.Z,{basic:!0,className:"scheduler-info-table"},i.createElement(le.Z.Header,null,i.createElement(le.Z.Row,{className:"scheduler-info-row"},i.createElement(le.Z.HeaderCell,{colSpan:"2",className:"scheduler-info-cell"},i.createElement("div",{className:"scheduler-info-header-label"},Ce("scheduler.event_indicators.label"))))),i.createElement(le.Z.Body,null,Ie.map(function(e){return i.createElement(le.Z.Row,{key:e.key,className:"scheduler-info-row"},i.createElement(le.Z.Cell,{className:"scheduler-info-cell"},i.createElement("div",{className:"event-info-indicator ".concat(e.className," ").concat(e.icon?"icon":"")},e.icon?i.createElement("i",{className:"fa ".concat(e.icon),"aria-hidden":"true"}):null)),i.createElement(le.Z.Cell,{className:"scheduler-info-cell scheduler-info-cell-label"},e.label))})))),allowHTML:!0},i.createElement("i",{className:"scheduler-info-icon fa fa-info-circle"})):null};var de=n(74187),me=n(30716),fe=n(12743),ve=n(78229),pe=n(99986),he=n(68838);function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Ee(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ye(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return we(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(we(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,we(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,we(A,"constructor",l),we(l,"constructor",g),g.displayName="GeneratorFunction",we(l,r,"GeneratorFunction"),we(A),we(A,r,"Generator"),we(A,i,function(){return this}),we(A,"toString",function(){return"[object Generator]"}),(ye=function(){return{w:a,m:C}})()}function we(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}we=function(e,t,n,i){function a(t,n){we(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},we(e,t,n,i)}var Se=s.Z.t,Te=he.dl.find(function(e){return!0===e.default}),Ne=he.A.find(function(e){return!0===e.default});const ke=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.useState)("DAY"),n=(0,r.Z)(t,2),a=n[0],c=n[1],g=(0,i.useState)("TIMELINE"),l=(0,r.Z)(g,2),s=l[0],A=l[1],C=(0,i.useState)(he.jg.ALL.unit),I=(0,r.Z)(C,2),m=I[0],f=I[1],v=(0,i.useState)(null),p=(0,r.Z)(v,2),h=p[0],b=p[1],y=(0,i.useState)(G.DEFAULT_SCHEDULER_SETTINGS.dayStartTime),w=(0,r.Z)(y,2),S=w[0],T=w[1],N=(0,i.useState)(G.DEFAULT_SCHEDULER_SETTINGS.dayEndTime),k=(0,r.Z)(N,2),x=k[0],_=k[1],Z=(0,i.useState)(G.DEFAULT_SCHEDULER_SETTINGS.view),O=(0,r.Z)(Z,2),D=O[0],R=O[1],P=(0,i.useState)(G.DEFAULT_SCHEDULER_SETTINGS.durationType),j=(0,r.Z)(P,2),L=j[0],U=j[1],M=(0,i.useState)(G.DEFAULT_SCHEDULER_SETTINGS.newScheduler),V=(0,r.Z)(M,2),F=V[0],Y=V[1],H=(0,i.useState)(G.DEFAULT_SCHEDULER_SETTINGS.uiType),W=(0,r.Z)(H,2),K=W[0],z=W[1],J=(0,i.useState)(Te),Q=(0,r.Z)(J,2),X=Q[0],q=Q[1],$=(0,i.useState)((0,u.Z)((0,u.Z)((0,u.Z)((0,u.Z)({},he.jg.ALL.unit,he.hm.ALL),he.jg.OVERDUE.unit,he.hm.OVERDUE),he.jg.RECURRING.unit,he.hm.RECURRING),he.jg.VISITS_WITH_SA.unit,he.hm.VISITS_WITH_SA)),ee=(0,r.Z)($,2),ne=ee[0],ie=ee[1],re=(0,i.useState)(Ne),oe=(0,r.Z)(re,2),ge=oe[0],le=oe[1],se=shouldShowBillingDetails();(0,i.useEffect)(function(){var e=getUserPreferencesByModule(Constants.MODULE_ID.NEW_SCHEDULER)||{},t=e.dayStartTime,n=e.dayEndTime,i=e.view,r=void 0===i?0:i,a=e.durationType,o=void 0===a?0:a,g=e.newScheduler,l=void 0===g||g,s=e.uiType,C=void 0===s?Constants.SCHEDULER_UI_TYPES.BLOCK_UI:s,I=e.filterBy,u=void 0===I?Te:I,d=e.sortBy,m=void 0===d?{}:d,f=m.allVisits,v=void 0===f?he.hm.ALL:f,p=m.overDueVisits,h=void 0===p?he.hm.OVERDUE:p,E=m.recurringVisits,y=void 0===E?he.hm.RECURRING:E,w=m.visitsWithSA,S=void 0===w?he.hm.VISITS_WITH_SA:w,N=e.searchFilter,k=void 0===N?Ne:N,x=te.getDayStartEndTime(),Z=x.dayStartTime,O=x.dayEndTime;(0,B.wS)(t)?T(t):T(Z),(0,B.wS)(n)?_(n):_(O),R(r),U(o),Y(l),q(he.dl.find(function(e){return e.value===u})),b(ke(v)),z(C),ie({ALL:v,OVERDUE:h,RECURRING:y,VISITS_WITH_SA:S}),le(he.A.find(function(e){return e.value===k})),G.VIEW_PREFERENCES.map(function(e){var t=e.label,n=e.value;r===n&&A(t.toUpperCase())}),G.DURATION_PREFERENCES.map(function(e){var t=e.label,n=e.value;o===n&&c(t.toUpperCase())})},[]),(0,i.useEffect)(function(){b(ke(ne[m]))},[ne]);var Ae,Ce,Ie=function(){e.closeModal()},ue=function(){var t=(0,d.Z)(ye().m(function t(){var n,i,o,c,g,l,A,C,I,u;return ye().w(function(t){for(;;)switch(t.p=t.n){case 0:return e.saveSettings({dayStartTime:S,dayEndTime:x,view:D,durationType:L,newScheduler:F,uiType:K,filterBy:null==X?void 0:X.value,sortBy:{allVisits:ne.ALL,overDueVisits:ne.OVERDUE,recurringVisits:ne.RECURRING,visitsWithSA:ne.VISITS_WITH_SA},searchFilter:null==ge?void 0:ge.value}),n={moduleId:Constants.MODULE_ID.NEW_SCHEDULER,preferences:{view:D,durationType:L,dayStartTime:S,dayEndTime:x,newScheduler:F,uiType:K,filterBy:null==X?void 0:X.value,sortBy:{allVisits:ne.ALL,overDueVisits:ne.OVERDUE,recurringVisits:ne.RECURRING,visitsWithSA:ne.VISITS_WITH_SA},searchFilter:null==ge?void 0:ge.value},userId:getCurrentUser().id,companyId:getCurrentUser().get("companyId")},showActivityInidicator(),t.p=1,t.n=2,pe.Z.update(n);case 2:return i=t.v,o=new BaseModel(i),t.n=3,crmServices.UserService.getCurrentUser();case 3:for(c=t.v,window.whoami=new BaseModel(c),g=whoami.get("modulePreferences"),l=0,A=Object.entries(g.attributes);l<A.length;l++)C=(0,r.Z)(A[l],2),I=C[0],C[1].get("moduleId")===Constants.MODULE_ID.NEW_SCHEDULER&&(g.attributes[I]=o);e.currentView!==s&&e.onChangeView(s),e.currentDuration!==a&&e.onChangeDuration(a,s),showSuccessMessage(Se("success.scheduler_settings_updated")),trackingUtils.track(userActions.SAVE_SCHEDULER_SETTING),t.n=5;break;case 4:t.p=4,u=t.v,console.error(u);case 5:return t.p=5,hideActivityInidcator(),t.f(5);case 6:return t.a(2)}},t,null,[[1,4,5,6]])}));return function(){return t.apply(this,arguments)}}(),Ee=function(e,t,n,r){var a;return a=(0,B.wS)(r)?r===t:ne[n]===t,i.createElement(de.Z.Field,null,i.createElement(me.Z,{label:e,name:"radioGroup",value:t,checked:a,onChange:function(){ie(be(be({},ne),{},(0,u.Z)({},n,t)))}}))},we=function(e){var t=e.target,n=(void 0===t?{}:t).id,i=void 0===n?"":n;m!==i&&(document.querySelector("#".concat(i)).classList.add("fc-button-active"),(0,B.wS)(m)&&document.querySelector("#".concat(m)).classList.remove("fc-button-active"),f(i),b(ke(ne[i],i)))},ke=function(e,t){var n=(0,B.wS)(t)?t:m;return i.createElement(de.Z,null,Ee(Se("scheduler.newest_first"),he.CV.START_TIME.DESC,n,e),Ee(Se("scheduler.oldest_first"),he.CV.START_TIME.ASC,n,e),se?i.createElement(i.Fragment,null,Ee(Se("scheduler.high_to_low"),he.CV.REVENUE.DESC,n,e),Ee(Se("scheduler.low_to_high"),he.CV.REVENUE.ASC,n,e)):null)};return i.createElement(fe.Z,{onClose:function(){return Ie()},open:e.open,centered:!1,className:"ticket-details-modal"},i.createElement(fe.Z.Header,null,Se("scheduler.scheduler_settings.label")),i.createElement(fe.Z.Content,null,i.createElement(o.Z,{columns:2},(Ce=function(e,t){try{t="".concat(t,":00"),"scheduler-start-time-picker"===e?T(t):"scheduler-end-time-picker"===e&&("00:00:00"==t&&(t="24:00:00"),_(t))}catch(e){console.error(e)}},i.createElement(o.Z.Row,null,i.createElement(o.Z.Column,null,i.createElement(ce.Z,{id:"scheduler-start-time-picker",label:Se("scheduler.scheduler_settings.day_start_time"),placeholder:Se("scheduler.scheduler_settings.day_start_time"),componentType:"step-time-picker",value:S,options:{step:30},handleChange:Ce})),i.createElement(o.Z.Column,null,i.createElement(ce.Z,{id:"scheduler-end-time-picker",label:Se("scheduler.scheduler_settings.day_end_time"),placeholder:Se("scheduler.scheduler_settings.day_end_time"),componentType:"step-time-picker",value:x,options:{step:30},handleChange:Ce})))),i.createElement(o.Z.Row,null,i.createElement(o.Z.Column,null,i.createElement(ce.Z,{id:"scheduler-view-preference",customClass:"scheduler-sett
2ings-view",componentType:"buttonRadioGroup",label:Se("common.view_preferences"),value:D||0,radioOptions:G.VIEW_PREFERENCES,handleChange:function(e,t){try{"scheduler-view-preference"===e&&t!==D&&(R(t),G.VIEW_PREFERENCES.map(function(e){var n=e.label,i=e.value;t===i&&A(n.toUpperCase())}))}catch(e){console.error(e)}}})),i.createElement(o.Z.Column,null,i.createElement(ce.Z,{id:"scheduler-duration-preference",customClass:"scheduler-settings-duration",componentType:"buttonRadioGroup",label:Se("scheduler.scheduler_settings.duration_preferences"),value:L||0,radioOptions:G.DURATION_PREFERENCES,handleChange:function(e,t){try{"scheduler-duration-preference"===e&&t!==L&&(U(t),G.DURATION_PREFERENCES.map(function(e){var n=e.label,i=e.value;t===i&&c(n.toUpperCase())}))}catch(e){console.error(e)}}}))),i.createElement(ce.Z,{id:"toggle-scheduler-preference",customClass:"toggle-scheduler-preference",componentType:"toggle",label:Se("scheduler.scheduler_settings.show_new_scheduler"),value:F,handleChange:function(e,t){try{"toggle-scheduler-preference"===e&&Y(t)}catch(e){console.error(e)}}}),i.createElement(ce.Z,{id:"toggle-ui-preference",customClass:"toggle-ui-preference",componentType:"toggle",label:Se("scheduler.scheduler_settings.show_card_ui"),value:K===Constants.SCHEDULER_UI_TYPES.CARD_UI,handleChange:function(e,t){try{if("toggle-ui-preference"===e){var n=t?Constants.SCHEDULER_UI_TYPES.CARD_UI:Constants.SCHEDULER_UI_TYPES.BLOCK_UI;z(n)}}catch(e){console.error(e)}}}),i.createElement(o.Z.Row,null,i.createElement(o.Z.Column,null,i.createElement(ce.Z,{id:"visit-filter-preference",componentType:"react-select",label:Se("scheduler.scheduler_settings.visit_filter_preference"),dropdownOptions:he.dl,handleChange:function(e,t){q(t)},value:X})),i.createElement(o.Z.Column,null,i.createElement(ce.Z,{id:"search-filter-preference",componentType:"react-select",label:Se("scheduler.scheduler_settings.search_filter_preference"),dropdownOptions:he.A,handleChange:function(e,t){le(t)},value:ge}))),i.createElement(o.Z.Row,{className:"visit-button-group"},i.createElement("label",{className:"visit-button-group-label"},Se("scheduler.scheduler_settings.default_sort_preferences")),Object.keys(he.jg).map(function(e,t){var n=he.jg[e].unit;return i.createElement("button",{key:t,id:n,value:m===n,className:"fc-".concat(n.toLowerCase(),"View-button \n fc-button \n fc-visits-button \n fc-button-primary \n ").concat(m===n?"fc-button-active":""),type:"button",onClick:we},he.jg[e].label)})),h,(Ae=Se("scheduler.scheduler_settings.note"),i.createElement(o.Z.Row,null,i.createElement("p",{className:"scheduler-settings-description"},Ae))))),i.createElement(fe.Z.Actions,null,i.createElement(ve.Z,{onClick:Ie},Se("button.close")),i.createElement(ve.Z,{color:"green",onClick:ue,disabled:ae()(S,E.ZP.timeFormat).isSameOrAfter(ae()(x,E.ZP.timeFormat))},Se("common.save"))))};var xe=n(95261);function _e(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ze(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Oe(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return De(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(De(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,De(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,De(A,"constructor",l),De(l,"constructor",g),g.displayName="GeneratorFunction",De(l,r,"GeneratorFunction"),De(A),De(A,r,"Generator"),De(A,i,function(){return this}),De(A,"toString",function(){return"[object Generator]"}),(Oe=function(){return{w:a,m:C}})()}function De(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}De=function(e,t,n,i){function a(t,n){De(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},De(e,t,n,i)}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var je=s.Z.t,Le={control:function(e){return Pe(Pe({},e),{},{alignSelf:"flex-start",display:"flex",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"300px"})},placeholder:function(e){return Pe(Pe({},e),{},{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"})},valueContainer:function(e){return Pe(Pe({},e),{},{display:"flex",flexWrap:"wrap",maxHeight:"70px",overflowY:"auto",paddingRight:"8px"})},groupHeading:function(e){return Pe(Pe({},e),{},{color:"#468cca",fontSize:"14px",fontWeight:"500",alignSelf:"flex-start",position:"sticky",top:"0px",paddingTop:"5px",paddingBottom:"5px",backgroundColor:xe.aZ.backgroundColor})},option:function(e,t){var n=t.isFocused;return Pe(Pe({},e),{},{backgroundColor:n?"#F0F8FF":"white",color:"black"})}},Ue={};const Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.componentId,n=void 0===t?"scheduler-group-and-tech-select":t,a=e.customClass,o=void 0===a?null:a,c=e.placeholder,g=void 0===c?je("common.select_groups_and_techs"):c,l=e.isMulti,s=void 0!==l&&l,A=e.showSystemGroups,C=void 0!==A&&A,I=e.isSearchable,f=void 0!==I&&I,v=e.value,p=e.isClearable,h=void 0!==p&&p,b=e.onChangeValue,y=v||(s?[]:{value:"",label:je("common.select_groups_and_techs")}),w=(0,i.useState)([]),S=(0,r.Z)(w,2),T=S[0],N=S[1],k=(0,i.useState)(!1),x=(0,r.Z)(k,2),_=x[0],Z=x[1];(0,i.useEffect)(function(){D()},[]);var O=(0,u.Z)((0,u.Z)((0,u.Z)({},E.K$.TECHNICIAN,{name:je("scheduler.all_tech"),id:"__sys_technicians_",users:[]}),E.K$.SERVICE_MANAGER,{name:je("scheduler.all_sm"),id:"__sys_service_managers_",users:[]}),E.K$.HELPER,{name:je("scheduler.all_helpers"),id:"__sys_helpers_",users:[]}),D=function(){var e=(0,d.Z)(Oe().m(function e(){var t,n,i;return Oe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,R();case 1:return t=e.v,e.n=2,j();case 2:n=e.v,i=[],(0,B.pn)(t)&&i.push({options:t,label:je("common.groups")}),(0,B.pn)(n)&&i.push({options:n,label:je("common.technicians")}),N(i),(0,B.pn)(i)&&Z(!0);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),R=function(){var e=(0,d.Z)(Oe().m(function e(){var t,n,i,r,a,o,c;return Oe().w(function(e){for(;;)switch(e.p=e.n){case 0:return t=[],e.p=1,e.n=2,Tag.getUserTags();case 2:if(a=e.v){e.n=3;break}a=[];case 3:if(n=a,(0,B.pn)(n)){e.n=4;break}throw new Error("No groups found");case 4:n.forEach(function(e){Ue[e.id]=e,e.isActive&&!e.isDeleted&&t.push({value:e,label:e.name})}),e.n=6;break;case 5:e.p=5,o=e.v,console.error("failed to get user groups",o);case 6:if(!0!==C){e.n=10;break}return e.p=7,e.n=8,L();case 8:for(i in O)r=O[i],(0,B.pn)(r.users)&&(Ue[r.id]=r,t.push({value:r,label:r.name}));e.n=10;break;case 9:e.p=9,c=e.v,console.error("failed to get cached users",c);case 10:return e.a(2,t)}},e,null,[[7,9],[1,5]])}));return function(){return e.apply(this,arguments)}}(),P=function(e){switch(e){case Constants.userRole.MANAGER:return" (SM)";case Constants.userRole.HELPER:return" (Helper)";default:return""}},j=function(){var e=(0,d.Z)(Oe().m(function e(){var t,n,i,r,a,o,c,g,l;return Oe().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,c=Set,e.n=1,fetchStaticListByKeys(Constants.STATIC_LIST_KEYS.TECHNICIAN.LOCAL_
2KEY);case 1:if(g=e.v){e.n=2;break}g=[];case 2:return t=new c(g),t=Array.from(t),n=[Constants.userRole.TECHNICIAN,Constants.userRole.SERVICE_MANAGER,Constants.userRole.HELPER,Constants.userRole.TECHNICIAN_RESTRICTED,Constants.userRole.VIEW_RESTRICTED,Constants.userRole.BILLING_RESTRICTED],i=settingsDataGlobal||{},r=i.genericSettings,a=(void 0===r?{}:r).hideInactiveUsersEverywhere,o=void 0!==a&&a,(t=[{value:-1,label:"Unassigned"}].concat((0,m.Z)(t.flatMap(function(e){return!e.isActive&&!0===o||-1===n.indexOf(e.role)?[]:[{value:e,label:"".concat(e.firstName," ").concat(e.lastName).concat(P(e.role)||"")}]})))).sort(function(e,t){var n=e.label.split(" ")[0]+e.label.split(" ")[1],i=t.label.split(" ")[0]+t.label.split(" ")[1];return n.localeCompare(i)}),e.a(2,t);case 3:return e.p=3,l=e.v,console.error(l),showErrorMessage(null==l?void 0:l.message),e.a(2,[])}},e,null,[[0,3]])}));return function(){return e.apply(this,arguments)}}(),L=function(){var e=(0,d.Z)(Oe().m(function e(){var t,n,i,r,a;return Oe().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetchStaticListByKeys(Constants.STATIC_LIST_KEYS.TECHNICIAN.LOCAL_KEY);case 1:t=e.v,n=_e(t);try{for(n.s();!(i=n.n()).done;)(r=i.value).isActive&&!r.isDeleted&&(r.id=parseInt(r.id),r.role===E.K$.TECHNICIAN||r.role===E.K$.TECHNICIAN_RESTRICTED||r.role===E.K$.VIEW_RESTRICTED||r.role===E.K$.BILLING_RESTRICTED?O[E.K$.TECHNICIAN].users.push(r):r.role===E.K$.SERVICE_MANAGER?O[E.K$.SERVICE_MANAGER].users.push(r):r.role===E.K$.HELPER&&O[E.K$.HELPER].users.push(r))}catch(e){n.e(e)}finally{n.f()}e.n=3;break;case 2:throw e.p=2,a=e.v,new Error(a);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();return _?i.createElement("div",{className:"group-select-container"},i.createElement(ce.Z,{id:n,componentType:"react-select",customClass:o,dropdownOptions:T,placeholder:g,mandatory:!1,options:{isMulti:s,noFloat:!0,isSearchable:f,isClearable:h},handleChange:function(e,t){Array.isArray(t)||(t=[t]);var n=t.map(function(e){return(null==e?void 0:e.value)||{}})||[];b(e,s?t:t[0],{groupsAndTechsDetails:n})},value:y,colorStyle:Le})):null};var Ve=s.Z.t,Fe=[{label:Ve("common.day"),unit:"DAY"},{label:Ve("common.week"),unit:"WEEK"},{label:Ve("common.month"),unit:"MONTH"}];const Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=shouldShowBillingDetails(),n=e.isRenderedByAdvancedTracking,a=void 0!==n&&n,o=e.isRenderedByHomepage,c=void 0!==o&&o,g=e.onSelectGroupAndTechnician,l=e.selectedGroupsAndTechs,s=(0,i.useState)(G.parentViewProps.switchViewButtonText[G.initialParentView]),A=(0,r.Z)(s,2),C=A[0],I=A[1],u=(0,i.useState)(e.uiType===Constants.SCHEDULER_UI_TYPES.CARD_UI?Ve("scheduler.block_view"):Ve("scheduler.card_view")),d=(0,r.Z)(u,2),f=d[0],v=d[1],p=(0,i.useState)(e.selectedGroups||[]),h=(0,r.Z)(p,2),E=h[0],b=(h[1],(0,i.useState)(l||[])),y=(0,r.Z)(b,2),w=y[0],S=y[1],T=(0,i.useState)(!1),N=(0,r.Z)(T,2),k=N[0],x=N[1],_=(0,i.useState)(e.filteredUsers||[]),Z=(0,r.Z)(_,2),O=Z[0],D=Z[1];(0,i.useEffect)(function(){(e.parentView||e.durationType)&&R(e.parentView,e.durationType)},[e.parentView,e.durationType]);var R=function(e,t){I(G.parentViewProps.switchViewButtonText[e]),te.setButtonActiveClass(t,"fc-duration-button")},P=function(t,n){t&&e.onChangeDuration&&"function"==typeof e.onChangeDuration&&(e.onChangeDuration(t,n),te.setButtonActiveClass(t,"fc-duration-button"),$.cookie(Constants.SS_COOKIES.SCHEDULER_DURATION_PREFERENCE,t),"DAY"===t?trackingUtils.track(userActions.SCHEDULER_DAILY_VIEW):"WEEK"===t?trackingUtils.track(userActions.SCHEDULER_WEEKLY_VIEW):"MONTH"===t&&trackingUtils.track(userActions.SCHEDULER_MONTHLY_VIEW))},j=function(t){t&&e.onClickNavigationButton&&"function"==typeof e.onClickNavigationButton&&(e.onClickNavigationButton(t),"TODAY"===t&&trackingUtils.track(userActions.SCHEDULER_DAILY_VIEW))},L=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,B.wS)(n)&&("scheduler-date-picker"===t&&e.onPickDate&&"function"==typeof e.onPickDate?e.onPickDate(n):"scheduler-group-and-tech-select"===t&&U(n,[],i))},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(g&&"function"==typeof g){S(e);
2var i=n.groupsAndTechsDetails,r=void 0===i?[]:i,a=[];(0,B.pn)(r)?r.forEach(function(e){if((0,B.LX)(e))if(e.hasOwnProperty("users")){var t=(e||{}).users;(void 0===t?[]:t).forEach(function(e){-1===a.indexOf(e.id)&&a.push(e.id)})}else{var n=Number(e.id);-1===a.indexOf(n)&&a.push(n)}}):a.push.apply(a,(0,m.Z)(t)),D(a),g(e,a)}};return i.createElement(i.Fragment,null,k?i.createElement(ke,{currentView:e.parentView,currentDuration:e.durationType,open:k,saveSettings:function(t){var n=t.dayStartTime,i=t.dayEndTime,r=t.view,a=t.durationType,o=t.uiType,c=t.filterBy,g=t.sortBy,l=t.searchFilter;$.cookie(Constants.SS_COOKIES.SCHEDULER_DAY_START_TIME,n),$.cookie(Constants.SS_COOKIES.SCHEDULER_DAY_END_TIME,i),$.cookie(Constants.SS_COOKIES.SCHEDULER_VIEW_PREFERENCE,r),$.cookie(Constants.SS_COOKIES.SCHEDULER_DURATION_PREFERENCE,a),$.cookie(Constants.SS_COOKIES.SCHEDULER_UI_PREFERENCE,o),$.cookie(Constants.SS_COOKIES.FILTER_PREFERENCE,c),$.cookie(Constants.SS_COOKIES.SORT_PREFERENCE,g),$.cookie(Constants.SS_COOKIES.SEARCH_FILTER_PREFERENCE,l),x(!1),e.onChangeSettings&&"function"==typeof e.onChangeSettings&&e.onChangeSettings(t)},closeModal:function(){x(!1)},onChangeView:function(t){e.changeParentView&&"function"==typeof e.changeParentView&&(e.changeParentView(t),U(E,O))},onChangeDuration:P}):null,i.createElement("div",{className:"fc fc-media-screen fc-direction-ltr fc-theme-standard"},i.createElement("div",{className:"fc-header-toolbar fc-toolbar fc-toolbar-ltr"},!c&&i.createElement("div",{className:"fc-toolbar-chunk"},i.createElement("div",{className:"fc-button-group"},Fe.map(function(t){var n=t.label,r=t.unit;return a&&"MONTH"===r?null:i.createElement("button",{key:r,className:"fc-".concat(r.toLowerCase(),"View-button fc-duration-button fc-button fc-button-primary"),type:"button",onClick:function(){return P(r,e.parentView)}},n)})),i.createElement("div",{className:"fc-button-group"},i.createElement("button",{className:"fc-previousEvents-button fc-button fc-button-primary",type:"button",onClick:function(){return j("PREV")},"aria-label":"previousEvents"},i.createElement("span",{className:"fc-icon fc-icon-custom-fa fa-chevron-left"})),i.createElement("button",{className:"fc-todayEvents-button fc-button fc-button-primary",type:"button",onClick:function(){return j("TODAY")}},Ve("common.today")),i.createElement("button",{className:"fc-nextEvents-button fc-button fc-button-primary",type:"button",onClick:function(){return j("NEXT")},"aria-label":"nextEvents"},i.createElement("span",{className:"fc-icon fc-icon-custom-fa fa-chevron-right"})),i.createElement(ce.Z,{id:"scheduler-date-picker",componentType:"input",type:"date",customClass:"header-toolbar-date-picker",value:e.pickedDate,handleChange:L}))),i.createElement("div",{className:"fc-toolbar-chunk"},i.createElement("h2",{className:"fc-toolbar-title"},e.toolbarTitle)),i.createElement("div",{className:"fc-toolbar-chunk"},!c&&i.createElement("div",{className:"fc-button-group"},i.createElement(Me,{id:"scheduler-group-and-tech-select",customClass:"header-toolbar-react-select",isMulti:!0,onChangeValue:L,value:E,options:{showSystemGroups:!0},isSearchable:!0,isClearable:!0})),!c&&!a&&i.createElement(i.Fragment,null,i.createElement("div",{className:"fc-button-group"},i.createElement("button",{className:"fc-addTicket-button fc-button fc-button-primary",type:"button",onClick:function(){e.onClickAddTicket&&"function"==typeof e.onClickAddTicket&&(e.onClickAddTicket(),trackingUtils.track(userActions.TICKET_CREATION))}},Ve("common.add_ticket")),t?i.createElement("button",{className:"fc-addTicket-button fc-button fc-button-primary",type:"button",onClick:function(){e.onClickAddTimeOff&&"function"==typeof e.onClickAddTimeOff&&e.onClickAddTimeOff()}},Ve("common.add_time_off")):null),i.createElement("div",{className:"fc-button-group"},i.createElement("button",{className:"fc-switchView-button fc-button fc-button-primary",type:"button",onClick:function(){e.switchParentView&&"function"==typeof e.switchParentView&&(e.switchParentView(),C===Ve("scheduler.timeline_view")?trackingUtils.track(userActions.GRID_VIEW):C===Ve("scheduler.grid_view")&&trackingUtils.track(userActions.TIMELINE_VIEW),U(w,O))}},C),i.createElement("button",{className:"fc-switchScheduler-button fc-button fc-button-primary",type:"button",onClick:function(){e.backToOldScheduler&&"function"==typeof e.backToOldScheduler&&(e.backToOldScheduler(),trackingUtils.track(userActions.OLD_SCHEDULER_VIEW))}},Ve("scheduler.basic_view")),i.createElement("button",{className:"fc-switchUI-button fc-button fc-button-primary",type:"button",onClick:function(){e.switchUIType&&"function"==typeof e.switchUIType&&(e.switchUIType(),f===Ve("scheduler.block_view")?(trackingUtils.track(userActions.CARD_UI),v(Ve("scheduler.card_view"))):f===Ve("scheduler.card_view")&&(trackingUtils.track(userActions.BLOCK_UI),v(Ve("scheduler.block_view"))))}},f))),i.createElement("div",{className:"fc-button-group"},!c&&!a&&i.createElement("button",{className:"fc-button-settings",type:"button",onClick:function(){trackingUtils.track(userActions.SCHEDULER_SETTING_VIEW),x(!0)}},i.createElement("i",{className:"fa fa-cog","aria-hidden":"true"}))),i.createElement("div",{className:"fc-button-group"},i.createElement(ue,null))))))};var Be=n(97326);n(44394);function Ye(e){var t=e.ticketDetails,n=e.handleSaveFromAdvancedTracking,r=e.handleCancelFromAdvancedTracking,a=(0,i.useRef)(null),o=addEditTicketUtils.getTicketBackboneModel(t);return(0,i.useEffect)(function(){var e=a.current;return e&&Be.render(i.createElement(AppReact.default,{template:"EditTicketView",componentProps:{model:o,from:"advancedTracking",handleSaveFromAdvancedTracking:n,handleCancelFromAdvancedTracking:r}},null),e),function(){e&&Be.unmountComponentAtNode(e)}},[]),i.createElement("div",{className:"edit-ticket-modal"},i.createElement("div",{ref:a,className:"edit-ticket-modal-content",id:"editTicketAdvancedTrackingModal"}))}
2var He=n(8929);function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ze(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return Je(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(Je(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Je(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,Je(A,"constructor",l),Je(l,"constructor",g),g.displayName="GeneratorFunction",Je(l,r,"GeneratorFunction"),Je(A),Je(A,r,"Generator"),Je(A,i,function(){return this}),Je(A,"toString",function(){return"[object Generator]"}),(ze=function(){return{w:a,m:C}})()}function Je(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Je=function(e,t,n,i){function a(t,n){Je(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Je(e,t,n,i)}const Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.useState)({}),n=(0,r.Z)(t,2),a=n[0],o=n[1],c=(0,i.useState)(!0),g=(0,r.Z)(c,2),l=g[0],s=g[1],A=(0,i.useState)(!1),C=(0,r.Z)(A,2),I=C[0],u=C[1],m=e.isRenderedByAdvancedTracking,f=void 0!==m&&m,v=e.isVisitSelectedUnAssigned,p=void 0!==v&&v,h=(0,He.$G)().t,b=function(){var e=(0,d.Z)(ze().m(function e(t){var n;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!serviceFunctionExist("TicketService","getTicket")){e.n=5;break}return showActivityInidicator(),e.p=1,e.n=2,crmServices.TicketService.getTicket(t);case 2:n=e.v,s(!1),o(n),e.n=4;break;case 3:e.p=3,e.v,D();case 4:hideActivityInidcator();case 5:return e.a(2)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}();(0,i.useEffect)(function(){return function(){I&&u(!1)}},[]),(0,i.useEffect)(function(){e.open&&e.ticketId&&b(e.ticketId)},[e.open]);var y,w,S,T,N,k,x,_,Z,O,D=function(){o({}),e.closeModal()};return i.createElement(i.Fragment,null,l?null:i.createElement(fe.Z,{onClose:function(){return D()},open:e.open,centered:!1,className:"ticket-details-modal"},i.createElement(fe.Z.Header,null,h("common.ticket")," #",a.ticketNumber),i.createElement(fe.Z.Content,null,i.createElement(le.Z,{celled:!0},i.createElement(le.Z.Body,null,(y=a.serviceAddress,w=R.ZP.getAddressContactDetails(y),S=w.email,T=w.cellphone,N=w.landline,k=w.ext,x=R.ZP.getIsCallTrackingEnabled(),_=R.ZP.getNameLabelFromAddress(y),Z=e.deviceStatus,(O=N)&&k&&(O+=", ".concat(k)),i.createElement(i.Fragment,null,i.createElement(le.Z.Row,null,i.createElement(le.Z.Cell,null,i.createElement("div",{className:"label"},h("common.customer"))),i.createElement(le.Z.Cell,null,i.createElement("div",null,i.createElement("div",null,R.ZP.getNameLabelFromAddress(y)),i.createElement("div",null,R.ZP.getAddressString(y))))),S?i.createElement(le.Z.Row,null,i.createElement(le.Z.Cell,null,i.createElement("div",{className:"label"},h("common.email"))),i.createElement(le.Z.Cell,null,i.createElement("div",null,S))):null,T?i.createElement(le.Z.Row,null,i.createElement(le.Z.Cell,null,i.createElement("div",{className:"label"},h("common.cellphone"))),i.createElement(le.Z.Cell,null,x?i.createElement("div",null,i.createElement("a",{href:"#",class:"tech-contact-number ticket-tech-cellphone",style:{fontSize:"14px",cursor:"pointer"},onClick:function(){return R.ZP.renderHandlebarBridge(T,_,y.customerId,Z)}},T)):i.createElement("div",null,T))):null,O?i.createElement(le.Z.Row,null,i.createElement(le.Z.Cell,null,i.createElement("div",{className:"label"},h("common.landline"))),i.createElement(le.Z.Cell,null,x?i.createElement("div",null,i.createElement("a",{href:"#",class:"tech-contact-number ticket-tech-landline",style:{fontSize:"14px",cursor:"pointer"},onClick:function(){return R.ZP.renderHandlebarBridge(N,_,y.customerId,Z)}},O)):i.createElement("div",null,O))):null)),function(){var e="".concat(E.ZP.displayDateFormat," ").concat(E.ZP.displayTimeFormat),t=a.scheduledStartTime,n=a.scheduledEndTime,r=a.jobStatus,o=a.jobType,c=a.jobDescription;return i.createElement(i.Fragment,null,i.createElement(le.Z.Row,null,i.createElement(le.Z.Cell,null,i.createElement("div",{className:"label"},h("common.duration"))),i.createElement(le.Z.Cell,null,i.createElement("div",null,i.createElement("div",null,ae()(t).format(e)),i.createElement("div",null,ae()(n).format(e))))),i.createElement(le.Z.Row,null,i.createElement(le.Z.Cell,null,i.createElement("div",{className:"label"},h("common.job_status"))),i.createElement(le.Z.Cell,null,i.createElement("div",null,r))),i.createElement(le.Z.Row,null,i.createElement(le.Z.Cell,null,i.createElement("div",{className:"label"},h("common.job_type"))),i.createElement(le.Z.Cell,null,i.createElement("div",null,o))),i.createElement(le.Z.Row,null,i.createElement(le.Z.Cell,null,i.createElement("div",{className:"label"},h("common.job_description"))),i.createElement(le.Z.Cell,null,i.createElement("div",{className:"white-space-pre-wrap"},c))))}())),function(){var e="".concat(E.ZP.displayDateFormat," ").concat(E.ZP.displayTimeFormat),t=a.assignments,n=void 0===t?[]:t,r=settingsDataGlobal&&settingsDataGlobal.ticketSettings?settingsDataGlobal.ticketSettings:{};return n.length?i.createElement(i.Fragment,null,i.createElement(le.Z,{celled:!0},i.createElement(le.Z.Header,null,i.createElement(le.Z.Row,null,i.createElement(le.Z.HeaderCell,null,i.createElement("div",{className:"label"},h("common.visit"),"#")),i.createElement(le.Z.HeaderCell,null,i.createElement("div",{className:"label"},h("common.technician"))),i.createElement(le.Z.HeaderCell,null,i.createElement("div",{className:"label"},h("common.scheduled_start"))),i.createElement(le.Z.HeaderCell,null,i.createElement("div",{className:"label"},h("common.scheduled_end"))),i.createElement(le.Z.HeaderCell,null,i.createElement("div",{className:"label"}
2,h("common.status"))))),i.createElement(le.Z.Body,null,n.map(function(t,n){var a=t.technician,o=void 0===a?{}:a,c=t.startTime,g=t.endTime,l=t.status,s=t.statusCF,A=l;return r.isAssignmentCustomStatusEnabled&&s&&(A=s),i.createElement(le.Z.Row,{key:n},i.createElement(le.Z.Cell,null,i.createElement("div",null,n+1,".")),i.createElement(le.Z.Cell,null,i.createElement("div",null,R.ZP.getUserFullName(o)||E.ZP.unassingedVisitUserTitle)),i.createElement(le.Z.Cell,null,i.createElement("div",null,ae()(c).format(e))),i.createElement(le.Z.Cell,null,i.createElement("div",null,ae()(g).format(e))),i.createElement(le.Z.Cell,null,i.createElement("div",null,A)))})))):null}()),i.createElement(fe.Z.Actions,null,i.createElement(ve.Z,{onClick:D},h("button.close")),i.createElement(ve.Z,{color:"green",onClick:function(){if(f)return p?void okayDialog(function(){},h("label.warning"),h("dialog.save_scheduler_changes"),h("button.ok")):(e.closeModal(),void u(!0));var t=addEditTicketUtils.getTicketBackboneModel(a);D();var n=document.querySelector(".dashboard-content");if(n){var r=document.getElementById("new-scheduler-container")||document.getElementById("old-scheduler-container");r&&(Be.unmountComponentAtNode(r),r.remove());var o=document.createElement("div");o.id="edit-ticket-from-scheduler-container",n.appendChild(o),Be.render(i.createElement(AppReact.default,{template:"EditTicketView",componentProps:{model:t,from:"newSchdulerView",viewContext:Ke({},e.calendarState)}},null),o)}}},h("scheduler.edit_ticket")))),f&&I&&i.createElement(Ye,{ticketDetails:a,handleSaveFromAdvancedTracking:(0,d.Z)(ze().m(function t(){var n,i;return ze().w(function(t){for(;;)switch(t.n){case 0:if(u(!1),n=e.updateScheduler,i=e.refetchUnassignedVisitsCallback,!n||"function"!=typeof n){t.n=1;break}return t.n=1,n();case 1:if(!i||"function"!=typeof i){t.n=2;break}return t.n=2,i();case 2:handleResetCSS();case 3:return t.a(2)}},t)})),handleCancelFromAdvancedTracking:function(){u(!1),handleResetCSS()}}))};var Xe=n(97600),qe=n(65999),$e=(n(43503),s.Z.t);const et=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.title,a=e.start,o=e.end,c=e.extendedProps,g=void 0===c?{}:c;if(!(0,B.LX)(g))return i.createElement("div",null,r);var l,s=t.calendarState,A=void 0===s?{}:s,C=A.currentViewType,I=void 0===C?"resourceTimelineDay":C,u=A.dateProfile,d=(void 0===u?{}:u).currentRangeUnit,m=void 0===d?"day":d,f=t.jobTypeIdWiseDetails,v=void 0===f?{}:f,p=g.ticketAssignmentCount,h=void 0===p?1:p,E=g.ticket,b=void 0===E?{}:E,y=b.serviceAddress,w=void 0===y?{}:y,S=b.jobType,T=b.jobTypeId,N=b.ticketNumber,k=b.options,x=void 0===k?{}:k,_=x.isSAJob,Z=void 0!==_&&_,O=x.jobPriority,D=void 0===O?0:O,P=b.combinedFeatureFlag,j=g.status,L=g.statusCF,U=void 0===L?"":L,M=g.technician,V=void 0===M?{}:M,F=g.travelTime,Y=void 0===F?0:F,H=g.recurring,W=void 0!==H&&H,K=g.nfpaData,z=void 0===K?{}:K,J=z.deficiencyReported,Q=void 0===J?0:J,X=(z.deficiencyConverted,R.ZP.isJobTypeColorEnabled());T&&X&&v[T]&&v[T].color&&(l=v[T].color);var q=ae()(a),$=ae()(o),ee=$.diff(q,"hours"),ne=R.ZP.getUserFullName(V)||"Unassigned",ie=R.ZP.getNameLabelFromAddress(w),re=R.ZP.getAddressString(w),oe=-1!=I.indexOf("resourceTimeline")&&"month"!==m&&Y,ce=0;oe&&(ce=te.calculateTravelIndicatorWidth(Y))<=25&&(ce=25);var ge,le,se,Ae=function(e){return e>=80?i.createElement("div",{className:"time-value"},Y," mins"):null},Ce=n.showCardUIForScheduler?"#F0F0F0":n.details.backgroundColor;return i.createElement("div",{className:"assignment-event-container",style:{backgroundColor:Ce}},n.showCardUIForScheduler&&i.createElement("div",{className:"job-status-details",style:{backgroundColor:n.details.borderColor}},U||j),(ge=n.isRenderedByAdvancedTracking,le=void 0!==ge&&ge,se=n.details,le&&te.isDroppedEvent(se)&&i.createElement("div",null,i.createElement(Xe.W,{id:"moveBackToUnassignedVisitsIconId",width:25,style:{color:"black"}}))),oe?i.createElement("div",{className:"travel-time-indicator",style:{width:"".concat(ce,"px"),left:"-".concat(ce,"px")}},Ae(ce),i.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.TRAVEL_TIME),"aria-hidden":"true"})):null,"month"===m?null:i.createElement("div",{className:"ticket-details-indicators"},i.createElement("div",{className:"bottom-icons"},P&&P.indexOf("RECURRING_VISIT")>-1?i.createElement("div",{className:"recurring-visit"},i.createElement("img",{height:"20px",width:"20px",src:"/images/recurring_visit_icon.png"})):null)),i.createElement("div",{className:"assignment-details ".concat(-1!=I.indexOf("resourceTimeline")?"text-align-center ":"")},l?i.createElement("div",{className:"job-type-color-indicator",style:{backgroundColor:l}}):null,i.createElement("div",null,"#",N,-1==I.indexOf("resourceTimeline")?", ".concat(ne):null),"month"!==m&&(0,B.wS)(ie)?i.createElement("div",null,ie):null,"month"!==m&&ee>1&&re?i.createElement("div",null,re):null,"month"!==m&&ee>3&&(0,B.wS)(S)?i.createElement("div",null,"Job Type: ",S):null,"month"===m||q.isSame($,"day")?null:i.createElement("div",null,"Multi-day Visit"),"month"!==m&&i.createElement("div",{className:"event-icons"},1===D&&i.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.URGENT_JOB),"aria-hidden":"true"}),h>1?i.createElement(i.Fragment,null,i.createElement("div",null,h),i.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.USER_COUNT),"aria-hidden":"true"})):null,Z&&i.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.SA_JOB),"aria-hidden":"true"}),oe?i.createElement("div",{className:"travel-time-indicator",style:{width:"".concat(ce,"px"),left:"-".concat(ce,"px")}},Ae(ce),i.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.TRAVEL_TIME),"aria-hidden":"true"})):null,W&&i.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.REPEAT_TIME_OF
2F),"aria-hidden":"true"}),P&&P.indexOf("RECURRING_VISIT")>-1?i.createElement("div",{className:"recurring-visit"},i.createElement("img",{height:"20px",width:"20px",src:"/images/recurring_visit_icon.png"})):null,Q>0&&i.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.NFPA_DEFICIENCY),"aria-hidden":"true"}))))},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.start,r=e.end,a=e.extendedProps,o=a.recurring,c=void 0!==o&&o,g=a.technician,l=t.calendarState,s=void 0===l?{}:l,A=s.currentViewType,C=void 0===A?"resourceTimelineDay":A,I=s.dateProfile,u=(void 0===I?{}:I).currentRangeUnit,d=void 0===u?"day":u,m="".concat(E.ZP.displayDateFormat," ").concat(E.ZP.displayTimeFormat),f=-1!=C.indexOf("resourceTimeline"),v=f?"text-align-center ":"",p=R.ZP.getUserFullName(g)||"Unassigned";return i.createElement("div",{className:"time-off-event-container"},c?i.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.REPEAT_TIME_OFF),"aria-hidden":"true"}):null,"month"!==d?i.createElement("div",{className:"time-off-details ".concat(v)},f?null:i.createElement("div",null,p),i.createElement("div",null,ae()(n).format(m)),i.createElement("div",null,ae()(r).format(m))):i.createElement("div",null,"Time Off",f?"":", ".concat(p)))},o=function(e){var t="".concat(E.ZP.displayDateFormat," ").concat(E.ZP.displayTimeFormat),n=e.start,r=e.end,a=e.extendedProps,o=void 0===a?{}:a,c=shouldShowBillingDetails(),s=o.ticket,A=void 0===s?{}:s,C=A.serviceAddress,I=void 0===C?{}:C,u=A.ticketNumber,d=A.jobType,m=A.workType,f=A.jobStatus,v=A.jobDescription,p=A.ticketCompletionDate,h=A.estimateHours,b=A.potentialRevenue,y=void 0===b?0:b,w=o.technician,S=void 0===w?{}:w,T=o.travelTime,N=void 0===T?0:T,k=o.nfpaData,x=void 0===k?{}:k,_=x.deficiencyReported,Z=void 0===_?0:_,O=x.deficiencyConverted,D=void 0===O?0:O,P=R.ZP.getNameLabelFromAddress(I),j=R.ZP.getAddressString(I),L=R.ZP.getAddressContactDetails(I).cellphone,U=R.ZP.getUserFullName(S)||"Unassigned",M=I.customerId,V=R.ZP.getIsCallTrackingEnabled(),F=(0,qe.v9)(function(e){return e.dialer.currentStatus});return i.createElement("div",{className:"scheduler-event-tooltip-container"},i.createElement("div",null,i.createElement("i",null,$e("common.customer_details"),":")),i.createElement("div",null,$e("common.name"),": ",i.createElement("b",null,P)),L?i.createElement("div",null,$e("common.cellphone"),": ",V?i.createElement("a",{href:"#",className:"tech-contact-number tech-contact-number-event",style:{fontSize:"14px",cursor:"pointer"},onClick:function(){return R.ZP.renderHandlebarBridge(L,P,M,F)}},i.createElement("b",null,L)):i.createElement("b",null,L)):null,i.createElement("div",null,$e("common.address"),": ",i.createElement("b",null,j)),i.createElement("div",null,i.createElement("i",null,$e("scheduler.ticket_details"),":")),i.createElement("div",null,$e("common.number"),": ",i.createElement("b",null,u)),i.createElement("div",null,$e("common.start_time"),": ",i.createElement("b",null,ae()(n).format(t))),i.createElement("div",null,$e("common.end_time"),": ",i.createElement("b",null,ae()(r).format(t))),h?i.createElement("div",null,$e("common.estimated_hours")," : ",i.createElement("b",null,h)):null,p?i.createElement("div",null,$e("common.completion_date"),": ",i.createElement("b",null,ae()(p).format(t))):null,i.createElement("div",null,$e("common.job_type"),": ",i.createElement("b",null,d)),m?i.createElement("div",null,$e("common.work_code"),": ",i.createElement("b",null,m)):null,i.createElement("div",null,$e("common.job_status"),": ",i.createElement("b",null,f)),i.createElement("div",{className:"event-description"},$e("common.job_description")," : ",i.createElement("b",null,l(v))),c?i.createElement("div",null,$e("common.potential_revenue"),": ",i.createElement("b",null,"".concat(getCurrencySymbol(whoami.get("company").get("country"))," ").concat(y||0))):null,i.createElement("div",null,$e("common.technician")," : ",i.createElement("b",null,U)),i.createElement("div",null,$e("scheduler.deficiency_reported")," : ",i.createElement("b",null,Z)),i.createElement("div",null,$e("scheduler.deficiency_converted")," : ",i.createElement("b",null,D)),N?i.createElement("div",null,i.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.TRAVEL_TIME),"aria-hidden":"true"})," ",g(N)):null)},c=function(e){var t="".concat(E.ZP.displayDateFormat," ").concat(E.ZP.displayTimeFormat),n=e.start,r=e.end,a=e.extendedProps,o=(void 0===a?{}:a).note;return i.createElement("div",{className:"scheduler-event-tooltip-container"},i.createElement("div",null,$e("common.start_time"),": ",i.createElement("b",null,ae()(n).format(t))),i.createElement("div",null,$e("common.end_time"),": ",i.createElement("b",null,ae()(r).format(t))),o?i.createElement("div",{className:"event-description"},"Note: ",i.createElement("b",null,l(o))):null)},g=function(){var e=parseInt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),t=Math.floor(e/60),n=Math.floor(e%60),i="";return t>0&&(i+="".concat(t," hr").concat(t>1?"s":""," ")),n>0&&(i+="".concat(n," min").concat(n>1?"s":"")),i},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e;return e.length>G.DESCRIPTION_CHARACTER_LIMIT&&(t="".concat(e.substring(0,G.DESCRIPTION_CHARACTER_LIMIT),"...")),t};return i.createElement(ge.ZP,{className:"scheuler-custom-event-tooltip",content:(e=n.details,t=void 0===e?{}:e,t.extendedProps?"TIME_OFF"===t.extendedProps.type?c(t):o(t):i.createElement("div",null,t.title)),theme:"light",allowHTML:!0,delay:[250,null],interactive:!0,appendTo:function(){return document.body}},function(){var e=n.details,t=void 0===e?{}:e,o=n.options,c=void 0===o?{}:o;return t.extendedProps?"TIME_OFF"===t.extendedProps.type?a(t,c):r(t,c):i.createElement("div",null,t.title)}())};var tt=n(57689),nt=s.Z.t;const it=function(){return tt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",padding:"5px",textAlign:"center",fontSize:"14px",fontWeight:"bold",color:"#555"}},nt("settings.company.territory_information.assigned_outside_user_territory"))};var rt=n(51939),at=n(54443),ot=n(47841),ct=n(67265),gt=n(48380),lt=n(50123),st=n(38201),At=n(20555);n(68157),n(57689);var Ct=(0,i.createContext)(),It=function(){var e=(0,i.useContext)(Ct)||{};return{fetchingEvents:e.fetchingEvents,fetchingMoreEvents:e.fetchingMoreEvents,visits:e.visits,visitToLocate:e.visitToLocate,visitListToLocate:e.visitListToLocate,tickets:e.tickets,ticketsCount:e.ticketsCount,loadMore:e.loadMore,removeVisitById:e.removeVisitById,refetchVisits:e.refetchVisits,fetch:e.fetch,onFilterApply:e.onFilterApply,onSortApply:e.onSortApply,onVisitToLocate:e.onVisitToLocate,onVisitListToLocate:e.onVisitListToLocate,resetVisitToLocate:e.resetVisitToLocate,resetVisitListToLocate:e.resetVisitListToLocate,onVisitAssign:e.onVisitAssign,onCompleteVisitAssignment:e.onCompleteVisitAssignment,areVisitsBeingAssigned:e.areVisitsBeingAssigned,filterUnit:e.filterUnit,userDefaultTerritoryList:e.userDefaultTerritoryList}},ut=n(66019),dt=n(95895),mt=n(57689),ft=s.Z.t,vt=he.dl.find(function(e){return!0===e.default}),pt=function(e){var t=e.visible,n=e.onClick,a=e.onApply,o=e.preferences,c=e.areVisitsBeingAssigned,g=o.filterBy,l=he.dl.find(function(e){return e.value===g}),s=(0,i.useState)(l||vt),A=(0,r.Z)(s,2),C=A[0],I=A[1],u=(0,i.useState)(l||vt),d=(0,r.Z)(u,2),m=d[0],f=d[1];(0,i.useEffect)(function(){a(m||vt)},[]),(0,i.useEffect)(function(){I(m||vt)},[t]);return mt.createElement(ge.ZP,{disabled:c,visible:t,theme:"light",plugins:[ut.CA],sticky:"popper",placement:"bottom",maxWidth:800,allowHTML:!0,interactive:!0,onClickOutside:function(){I(m),n()},content:mt.createElement("div",{style:{display:"flex",flexDirection:"column",padding:10,width:300,gap:10}},mt.createElement(de.Z,null,mt.createElement("h3",null,ft("scheduler.visit_filters")),he.dl.map(function(e){return mt.createElement(de.Z.Field,{key:e.key},mt.createElement(me.Z,{label:e.label,name:"radioGroup",value:e.value,checked:C.value===e.value,onChange:function(){I({value:e.value,label:e.label})}}))})),mt.createElement(ve.Z,{secondary:!0,onClick:function(){var e=he.dl.find(function(e){return e.value===C.value});f(e),trackingUtils.track(userActions.FILTER_BY_OPTION[e.key]),a&&"function"==typeof a&&a(e)}},ft("button.apply")))},mt.createElement("div",{onClick:n,style:{cursor:"pointer"}},mt.createElement(dt.Z,{name:"filter",size:"large"})))};pt.defaultProps={visible:!1,onClick:function(){},onApply:function(){},preferences:{}},pt.propTypes={visible:f.PropTypes.bool,onClick:f.PropTypes.func,onApply:f.PropTypes.func,preferences:f.PropTypes.object};var ht=n(57689),Et=s.Z.t,bt=function(e){var t=e.visible,n=e.onClick,a=e.onApply,o=e.preferences,c=It().filterUnit,g=shouldShowBillingDetails(),l=he.hm[c],s=(0,B.LX)(null==o?void 0:o.sortBy)&&o.sortBy[he.jg[c].preferenceName],A=(0,i.useState)(null),C=(0,r.Z)(A,2),I=C[0],u=C[1],d=(0,i.useState)(null),m=(0,r.Z)(d,2),f=m[0],v=m[1],p=function(){return(0,B.wS)(s)?s:l};(0,i.useEffect)(function(){u(p()),v(p())},[c]),(0,i.useEffect)(function(){u(f)},[t]);return ht.createElement(ge.ZP,{visible:t,theme:"light",plugins:[ut.CA],sticky:"popper",placement:"bottom",maxWidth:800,allowHTML:!0,interactive:!0,onClickOutside:function(){n()},content:ht.createElement("div",{style:{display:"flex",flexDirection:"column",padding:10,width:300,gap:10}},ht.createElement(de.Z,null,ht.createElement("h3",null,Et("common.sort_by")),ht.createElement(de.Z.Field,null,ht.createElement(me.Z,{label:Et("scheduler.newest_first"),name:"radioGroup",value:he.CV.START_TIME.DESC,checked:I===he.CV.START_TIME.DESC,onChange:function(){u(he.CV.START_TIME.DESC)}})),ht.createElement(de.Z.Field,null,ht.createElement(me.Z,{label:Et("scheduler.oldest_first"),name:"radioGroup",value:he.CV.START_TIME.ASC,checked:I===he.CV.START_TIME.ASC,onChange:function(){u(he.CV.START_TIME.ASC)}})),g?ht.createElement(i.Fragment,null,ht.createElement(de.Z.Field,null,ht.createElement(me.Z,{label:Et("scheduler.high_to_low"),name:"radioGroup",value:he.CV.REVENUE.DESC,checked:I===he.CV.REVENUE.DESC,onChange:function(){u(he.CV.REVENUE.DESC)}})),ht.createElement(de.Z.Field,null,ht.createElement(me.Z,{label:Et("scheduler.low_to_high"),name:"radioGroup",value:he.CV.REVENUE.ASC,checked:I===he.CV.REVENUE.ASC,onChange:function(){u(he.CV.REVENUE.ASC)}}))):null),ht.createElement(ve.Z,{secondary:!0,onClick:function(){v(I
2),trackingUtils.track(userActions.SORT_BY_OPTION[I]),a&&"function"==typeof a&&a(I)}},Et("button.apply")))},ht.createElement("div",{onClick:n,style:{cursor:"pointer"}},ht.createElement(dt.Z,{name:"sliders horizontal",size:"large"})))};bt.defaultProps={visible:!1,onClick:function(){},onApply:function(){},preferences:{}},bt.propTypes={visible:f.PropTypes.bool,onClick:f.PropTypes.func,onApply:f.PropTypes.func,preferences:f.PropTypes.object};var yt=n(90251),wt=n(25977);function St(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return Tt(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(Tt(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tt(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,Tt(A,"constructor",l),Tt(l,"constructor",g),g.displayName="GeneratorFunction",Tt(l,r,"GeneratorFunction"),Tt(A),Tt(A,r,"Generator"),Tt(A,i,function(){return this}),Tt(A,"toString",function(){return"[object Generator]"}),(St=function(){return{w:a,m:C}})()}function Tt(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Tt=function(e,t,n,i){function a(t,n){Tt(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Tt(e,t,n,i)}var Nt=[2,3,4,5,6,7,8,9];var kt=n(17813),xt=(n(50),n(57689));function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ot=function(e){var t=e.technicianOptions,n=void 0===t?[]:t,i=e.onTechnicianListChange,r=e.selectedTechnician,a=void 0===r?[]:r,o=function(e){var t=e.data,n=e.index,i=e.displayLimit,r=e.selectedOptions;return n>=i?n===i?xt.createElement("div",{className:"technician-overflow-avatar"},"+",r.length-i):null:xt.createElement("div",{className:"technician-option-avatar",style:{backgroundColor:t.backGroundColor,marginLeft:0===n?"-5px":"-10px"}},t.shortName)},c={control:function(e){return Zt(Zt({},e),{},{borderColor:"#555"})},menu:function(e){return Zt({},e)},multiValue:function(e){return Zt(Zt({},e),{},{margin:0})},multiValueLabel:function(){return{display:"none"}},multiValueRemove:function(){return{display:"none"}}};return xt.createElement(ce.Z,{id:"technician_list",componentType:"react-select",dropdownOptions:n,placeholder:"Assigned To:",options:{isMulti:!0,noFloat:!0,isSearchable:!0,closeMenuOnSelect:!1,hideSelectedOptions:!1},handleChange:i,value:a,components:{Option:function(e){var t=e.data,n=e.isSelected,i=e.innerRef,r=e.innerProps;return xt.createElement("div",(0,kt.Z)({ref:i},r,{style:{backgroundColor:n?"#f0f0f0":"transparent"},className:"technician-option-value-container"}),xt.createElement("input",{type:"checkbox",checked:n,className:"technician-option-value-checkbox",onChange:function(){return null}}),xt.createElement("div",{className:"technician-option-value-avatar",style:{backgroundColor:t.backGroundColor}},t.shortName),xt.createElement("div",{className:"technician-option-value-label"},t.label))},MultiValueContainer:function(e){var t=e.data,n=null==a?void 0:a.findIndex(function(e){return e.value===t.value});return o({data:t,index:n,displayLimit:4,selectedOptions:a})}},colorStyle:Zt({},c),customStyle:{marginBottom:"0px",marginTop:"0px",minWidth:"170px"}})};Ot.defaultProps={technicianOptions:[],onTechnicianListChange:function(){},selectedTechnician:[]};const Dt=Ot;var Rt=n(19821),Pt=n(57689);function jt(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return Lt(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(Lt(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Lt(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,Lt(A,"constructor",l),Lt(l,"constructor",g),g.displayName="GeneratorFunction",Lt(l,r,"GeneratorFunction"),Lt(A),Lt(A,r,"Generator"),Lt(A,i,function(){return this}),Lt(A,"toString",function(){return"[object Generator]"}),(jt=function(){return{w:a,m:C}})()}function Lt(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Lt=function(e,t,n,i){function a(t,n){Lt(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Lt(e,t,n,i)}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vt=s.Z.t,Ft="".concat(E.ZP.displayDateFormat," ").concat(E.ZP.displayTimeFormat),Gt="ll ".concat(E.ZP.displayTimeFormat),Bt=Constants.dateFormatHash.client,Yt={},Ht=function(e){e.showMarkerIcon;var t=e.isSearchable,a=e.isFilteringAllowed,o=e.isSortingAllowed,c=e.userPreferences,g=c.assignFilter,l=c.visitPerPage||he.Nn.find(function(e){return!0===e.default}).value,s=he.p4.find(function(e){return(0,B.wS)(g)?e.value===g:!0===e.default}),A=(0,i.useRef)(null),C=(0,i.useState)(!1),I=(0,r.Z)(C,2),m=I[0],f=I[1],v=(0,i.useState)(!1),p=(0,r.Z)(v,2),h=p[0],E=p[1],b=(0,i.useState)(moment().subtract(3,"day").toDate()),y=(0,r.Z)(b,2),w=y[0],S=y[1],T=(0,i.useState)(moment().add(3,"day").toDate()),N=(0,r.Z)(T,2),k=N[0],x=N[1],_=(0,i.useState)(s.key==he.p4[0].key?[he.r3[1]]:[he.r3[0]]),Z=(0,r.Z)(_,2),O=Z[0],D=Z[1],P=(0,i.useState)(s.key==he.p4[0].key?[]:[he.r3[0].value]),j=(0,r.Z)(P,2),L=j[0],U=j[1],M=function(e){var t=(0,i.useState)([]),n=(0,r.Z)(t,2),a=n[0],o=n[1],c=(0,i.useCallback)((0,d.Z)(St().m(function t(){var n,i;return St().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,showActivityInidicator(),t.n=1,crmServices.UserService.getUsersByRole(e||Nt);case 1:n=t.v,o(n),t.n=3;break;case 2:t.p=2,i=t.v,console.error("Failed to get users"),console.error(i);case 3:return t.p=3,hideActivityInidcator(),t.f(3);case 4:return t.a(2)}},t,null,[[0,2,3,4]])})),[e]);return(0,i.useEffect)(function(){c()},[c]),[a,o]}(),V=(0,r.Z)(M,1)[0],F=(0,i.useState)([]),Y=(0,r.Z)(F,2),H=Y[0],W=Y[1],K=(0,i.useState)(!1),z=(0,r.Z)(K,2),J=z[0],Q=z[1],X=(0,i.useState)(1),q=(0,r.Z)(X,2),$=q[0],ee=q[1],ne=(0,i.useState)({}),ie=(0,r.Z)(ne,2),re=ie[0],ae=ie[1],oe=isTerritoryFeatureEnabled();(0,i.useEffect)(function(){if((0,B.pn)(V)&&!(0,B.pn)(H)){var e=V.map(function(e,t){var n,i;return{value:e.id,label:(null==e?void 0:e.firstName)+" "+(null==e?void 0:e.lastName),key:e.id,shortName:"".concat(null===(n=e.firstName)||void 0===n?void 0:n.toUpperCase().charAt(0)).concat(null===(i=e.lastName)||void 0===i?void 0:i.toUpperCase().charAt(0)),backGroundColor:he.w4[t%he.w4.length]}});e.unshift(he.r3[0]),e.unshift(he.r3[1]),W(e),s.key==he.p4[0].key&&D(e)}},[V]),(0,i.useEffect)(function(){Fe(0,{sortBy:Se,searchValue:Re,dateFilter:{startDate:w,endDate:k},technicianList:s.key==he.p4[1].key?L:[]},!1),ee(1)},[]);var le=It(),se=le.fetchingEvents,Ae=(le.fetchingMoreEvents,le.visits),Ce=le.tickets,Ie=le.ticketsCount,ue=(le.loadMore,le.fetch),de=le.onFilterApply,me=le.onSortApply,fe=le.onVisitToLocate,ve=le.areVisitsBeingAssigned,pe=le.filterUnit,Ee=le.onVisitListToLocate,be=(0,B.LX)(null==c?void 0:c.sortBy)&&c.sortBy[he.jg[pe].preferenceName],ye=(0,i.useState)(be||he.CV.START_TIME.DESC),we=(0,r.Z)(ye,2),Se=we[0],Te=we[1];(0,i.useEffect)(function(){var e={};Ae.forEach(function(t){t.ticketId&&(e[t.ticketId]||(e[t.ticketId]=new Set),e[t.ticketId].add(R.ZP.getUserFullName(t.technician||{})||"Unassigned"))}),Ee(Ae.map(function(t){return Mt(Mt({},t.ticket),{}
2,{technicianNames:Array.from(e[t.ticketId]||[]).join(", "),isAssigned:(0,B.wS)(t.technicianId)})}))},[Ae]),(0,i.useEffect)(function(){he.jg[pe].unit==he.jg.OVERDUE.unit&&x(moment().toDate())},[pe]);var Ne=he.A.find(function(e){return e.value===(null==c?void 0:c.searchFilter)}),ke=(0,i.useState)(Ne||he.A.find(function(e){return!0===e.default})),xe=(0,r.Z)(ke,2),_e=xe[0],Ze=xe[1],Oe=(0,i.useState)(""),De=(0,r.Z)(Oe,2),Re=De[0],Pe=De[1],je=shouldShowBillingDetails();(0,i.useEffect)(function(){Ue(),Promise.resolve().then(n.bind(n,72367)).then(function(e){new e.Draggable(A.current,{itemSelector:".fc-unassigned-visits",eventData:function(e){return{title:e.innerText,create:!1}}})}).catch(function(e){})},[]),(0,i.useEffect)(function(){var e=function(){var e=(0,d.Z)(jt().m(function e(){var t,n;return jt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(oe){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,Rt.Z.fetchTerritoryList();case 2:t=e.v,n=t.reduce(function(e,t){return e[t.id]={name:t.name,id:t.id},e},{}),ae(n),e.n=4;break;case 3:e.p=3,e.v,showErrorMessage(Vt("settings.company.territory_information.error_message.fetching_territory_list"));case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}();e()},[]);var Le,Ue=function(){var e=(0,d.Z)(jt().m(function e(){return jt().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,te.getAssignmentStatusIdWiseDetails();case 1:Yt=e.v;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Me=function(){var e=(0,d.Z)(jt().m(function e(t,n){var i,r;return jt().w(function(e){for(;;)switch(e.n){case 0:return i=n.activePage,r=Ce.length*(i-1),ee(i),e.n=1,ue(r,{sortBy:Se,searchValue:Re,dateFilter:{startDate:w,endDate:k},technicianList:L},!1);case 1:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Ve=function(e){var t,n,i=e.index,r=e.style,a=Ae[i]||{},o=a.id,c=a.startTime,g=a.endTime,s=(a.ticketAssignmentCount,a.ticket),A=void 0===s?{}:s,C=A.serviceAddress,I=void 0===C?{}:C,u=A.jobType,d=(A.jobTypeId,A.workType),m=A.jobStatus,f=A.ticketNumber,v=A.jobDescription,p=A.estimateHours,h=A.options,E=void 0===h?{}:h,b=E.isSAJob,y=void 0!==b&&b,w=E.jobPriority,S=void 0===w?0:w,T=A.combinedFeatureFlag,N=A.ticketCompletionDate,k=A.potentialRevenue,x=void 0===k?0:k,_=a.technician,Z=void 0===_?{}:_,O=a.travelTime,D=void 0===O?0:O,P=a.status,j=void 0===P?"":P,L=moment(c),U=moment(g),M=R.ZP.getNameLabelFromAddress(I),V=R.ZP.getAddressContactDetails(I).cellphone,F=R.ZP.getAddressString(I),Y=R.ZP.getUserFullName(Z)||"Unassigned",H=I.customerId,W=(null==I?void 0:I.businessUnitId)||null,K=W&&(null===(t=re[W])||void 0===t?void 0:t.name)||"",z=COMPANY_MODULES.CALL_INTEGRATION,J=PROFILE_MODULES.CALL_INTEGRATION,Q=!1,X=(0,qe.v9)(function(e){return e.dialer.currentStatus});z&&J&&z.readAccess&&(Q=J.readAccess);var q=te.getIdFromKeyValue(a.assignmentStatusId);(0,B.wS)(Z.id)?Yt[q]&&Yt[q].color&&(n=Yt[q].color):n=Constants.eventColor.Unassigned;var ee,ne,ie,ae,ce,le,se=function(){return Pt.createElement("div",{className:"event-list-top-indicators"},1===S?Pt.createElement("div",{className:"priority-indicator"},Pt.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.URGENT_JOB),"aria-hidden":"true"})):null,y?Pt.createElement("div",{className:"sa-job"},Pt.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.SA_JOB),"aria-hidden":"true"})):null,T&&T.indexOf("RECURRING_VISIT")>-1?Pt.createElement("div",{className:"recurring-visit"},Pt.createElement("img",{height:"24px",width:"24px",src:"/images/recurring_visit_icon.png"})):null)},Ce=function(){return Pt.createElement(Pt.Fragment,null,Pt.createElement("div",{className:"body-header"},"".concat(Vt("common.visit")," ").concat(Vt("invoice.details")),":"),Pt.createElement("div",{className:"body-detail
2s"},Pt.createElement("div",{className:"customer-name"},M),Pt.createElement("div",{className:"detail-string"},F||"-"),Pt.createElement("div",{className:"body-details-grid"},oe&&Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("settings.company.territory_information.territory"),":"),Pt.createElement("div",{className:"bold-text"},(0,B.wS)(K)?K:"-")),Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.start_time"),":"),Pt.createElement("div",{className:"bold-text"},c?moment(L).format(Gt):"-")),Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.end_time"),":"),Pt.createElement("div",{className:"bold-text"},g?moment(g).format(Gt):"-")),Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.job_description"),":"),Pt.createElement("div",{className:"bold-text"},v?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e&&(e=e.trim());var t=e;return e.length>G.DESCRIPTION_CHARACTER_LIMIT&&(t="".concat(e.substring(0,G.DESCRIPTION_CHARACTER_LIMIT),"...")),t}(v):"-")),p?Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.estimated_hours"),":"),Pt.createElement("div",{className:"bold-text"},p)):null,N?Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.completion_date"),":"),Pt.createElement("div",{className:"bold-text"},moment(N).format(Ft))):null)))},ue=function(){return Pt.createElement(Pt.Fragment,null,Pt.createElement("div",{className:"body-header"},Vt("common.more_details"),":"),Pt.createElement("div",{className:"body-detail
2s"},Pt.createElement("div",{className:"body-details-grid"},je?Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.potential_revenue"),":"),Pt.createElement("div",{className:"bold-text"},"".concat(getCurrencySymbol(whoami.get("company").get("country"))," ").concat(x||0))):null,D?Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.travel_time"),":"),Pt.createElement("div",{className:"bold-text"},Pt.createElement("i",{className:"fa ".concat(G.EVENT_FA_ICONS.TRAVEL_TIME),"aria-hidden":"true"}),function(){var e=parseInt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),t=Math.floor(e/60),n=Math.floor(e%60),i="";return t>0&&(i+="".concat(t," hr").concat(t>1?"s":""," ")),n>0&&(i+="".concat(n," min").concat(n>1?"s":"")),i}(D))):null,Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.work_code"),":"),Pt.createElement("div",{className:"bold-text"},d||"-")),Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.job_status"),":"),Pt.createElement("div",{className:"bold-text"},m||"-")))))};return Pt.createElement("div",{key:o,style:r},Pt.createElement(ct.Z,{className:"visits-event-container"},Pt.createElement(ge.ZP,{className:"scheuler-custom-event-tooltip",content:Pt.createElement("div",{className:"new-scheduler-event-tooltip-container"},Pt.createElement("div",{className:"scheduler-event-tooltip-header"},f?Pt.createElement("div",{className:"ticket-number"},Vt("common.ticket")," ",Pt.createElement("span",{className:"ticket-id"},"#",f)):Pt.createElement("div",{className:"ticket-number"},Vt("common.ticket")," -")),Pt.createElement("div",{className:"scheduler-event-tooltip-body"},Ce(),Pt.createElement(Pt.Fragment,null,Pt.createElement("div",{className:"body-header"},"".concat(Vt("common.technician")," ").concat(Vt("invoice.details")),":"),Pt.createElement("div",{className:"body-detail
2s"},Pt.createElement("div",{className:"body-details-grid"},Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.technician"),":"),Pt.createElement("div",{className:"bold-text"},Y||"-")),Pt.createElement("div",{className:"detail-row"},Pt.createElement("div",{className:"detail-string"},Vt("common.cellphone"),":"),Pt.createElement("div",{className:"bold-text"},V?Q?Pt.createElement("a",{className:"tech-contact-number-unassigned",style:{fontSize:"14px",cursor:"pointer"},onClick:function(){return R.ZP.renderHandlebarBridge(V,M,H,X)}},V):V:"-"))))),ue())),theme:"light",allowHTML:!0,delay:[250,null],placement:"auto",interactive:!0,appendTo:function(){return document.body},maxWidth:400},Pt.createElement("div",{className:"fc-event \n fc-h-event \n fc-daygrid-event \n fc-daygrid-block-event \n visits-event \n ".concat((0,B.wS)(a.technicianId)&&j!=Constants.visitStatus.OPEN&&j!=Constants.visitStatus.RESCHEDULE?"":"fc-unassigned-visits"),"data-visit-details":JSON.stringify(a),"data-visit-id":o,style:{border:0}},Pt.createElement("div",{className:"fc-event-main",onClick:function(){var e=new Set;Ae.forEach(function(t){t.ticketId===a.ticketId&&e.add(R.ZP.getUserFullName(t.technician||{})||"Unassigned")}),fe(Mt(Mt({},a.ticket),{},{isAssigned:(0,B.wS)(a.technicianId),technicianNames:Array.from(e).join(", ")}))},style:{cursor:"pointer"}},Pt.createElement("div",{className:"event-details"},Pt.createElement("div",{className:"event-list-card-header"},Pt.createElement("div",{className:"event-list-header-details"},M?Pt.createElement("div",{className:"customer-name"},M.length>20?"".concat(M.substring(0,20)):"".concat(M)):Pt.createElement("div",{className:"customer-name"},"-"),f?Pt.createElement("div",{className:"ticket-number"},Vt("common.ticket"),": ",Pt.createElement("a",{href:"/tickets/".concat(f),target:"_blank"},Pt.createElement("span",{className:"ticket-id"},"#",f))):Pt.createElement("div",{className:"ticket-number"},Vt("common.ticket"),": -")),se()),Pt.createElement("div",{className:"event-list-card-body"},Pt.createElement("div",{className:"detail-string"},F?"".concat(F.length>30?"".concat(F.substring(0,30),"..."):"".concat(F)):"-"),Pt.createElement("div",{className:"detail-string"},Vt("common.start_time"),": ",Pt.createElement("span",{className:"bold-text"},L?moment(L).format(Gt):"-")),Pt.createElement("div",{className:"detail-string"},Vt("common.end_time"),": ",Pt.createElement("span",{className:"bold-text"},U?moment(U).format(Gt):"-"))),Pt.createElement("div",{className:"event-list-card-footer"},Pt.createElement("div",{className:"job-type"},u?"".concat(u):"-"),n?Pt.createElement("div",{className:"visit-status-indicator",style:{backgroundColor:(ee=n,ne=.5,ie=ee.replace("#",""),ae=parseInt(ie,16),ce=ae>>8&255,le=255&ae,"rgba(".concat(ae>>16&255,", ").concat(ce,", ").concat(le,", ").concat(ne,")")),color:darkenHexColor(n,90)}},"".concat((0,B.wS)(Z.id)?j:Vt("common.unassigned"))):null)))))),Pt.createElement(gt.Z,{activePage:$,boundaryRange:0,siblingRange:0,firstItem:null,lastItem:null,pointing:!0,secondary:!0,totalPages:Math.ceil(Ie/(l||20)),onPageChange:Me}))},Fe=(0,i.useMemo)(function(){return(0,wt.debounce)(ue,800)},[ue]),Ge=function(e){return e?moment(e).format("MM/DD/YYYY"):""};return Pt.createElement("div",{ref:A,id:"visits-grid"},Pt.createElement("div",{className:"grid-header"},Pt.createElement("div",{className:"date-range-filter"},Pt.createElement(lt.Z,{trigger:Pt.createElement(st.Z,{icon:"calendar",className:"date-range-input",value:"".concat(Ge(w)," - ").concat(Ge(k)),onClick:function(){Q(!0)}}),position:"right center",on:"click",className:"date-filter-popup",open:J,onClose:function(){return Q(!1)},content:Pt.createElement(ce.Z,{componentType:"date-range-picker",value:{startDate:w,endDate:k},handleChange:function(e,t){!function(e,t){if("dateRange"===e){var n=t.startDate,i=t.endDate;if(n.setHours(0,0,0,0),i.setHours(23,59,59,999),n&&i||(n=moment().subtract(3,"days").toDate(),i=moment().add(3,"days").toDate()),n>i)return void showErrorMessage(Vt("dialog.enddate_after_startdate"));S(n),x(i),Fe(0,{sortBy:Se,searchValue:Re,dateFilter:{startDate:n,endDate:i},technicianList:L},!1),ee(1),Q(!1)}}("dateRange",t)},options:{dateFormat:Bt,noFloat:!0,showResetButton:!0,showSubmitButton:!0,submitButtonText:"Done",maxDate:he.jg[pe].unit==he.jg.OVERDUE.unit?moment().toDate():null},customStyle:{zIndex:4,marginBottom:0}})})),Pt.createElement("div",{className:"sort-and-filters"},Pt.createElement(Dt,{technicianOptions:H,onTechnicianListChange:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,B.pn)(n)&&n.some(function(e){return e.isSelectAll})&&(n=n.length==H.length?[he.r3[0]]:H),(0,B.pn)(n)&&!n.some(function(e){return e.isSelectAll})&&n.length==H.length-1&&(n=[he.r3[0]]),D(n);var i=null===(t=n)||void 0===t?void 0:t.map(function(e){return e.value&&!e.isSelectAll?e.value:null}).filter(function(e){return e});U(i),Fe(0,{sortBy:Se,searchValue:Re,technicianList:i,dateFilter:{startDate:w,endDate:k}},!1),ee(1)},selectedTechnician:O}),a&&Pt.createElement(pt,{visible:m,onClick:function(){ve?showInfoMessage(Vt("info_message.cant_change_filter_assigning_visits")):f(function(e){return!e})},onApply:function(e){f(!1),de(e,_e,L,{startDate:w,endDate:k});var t=(0,B.LX)(null==c?void 0:c.sortBy)&&c.sortBy[he.jg[null==e?void 0:e.key].preferenceName];Te(t),Pe("")},preferences:c,areVisitsBeingAssigned:ve}),o&&Pt.createElement(bt,{visible:h,onClick:function(){E(function(e){return!e})},onApply:function(e){E(!1),Te(e),me(e,_e,Re,L,{startDate:w,endDate:k})},preferences:c})),t&&Pt.createElement(At.ZP,{className:"search-filter-select",isClearable:!0,options:he.A,value:_e,placeholder:Vt("scheduler.select_search_filter"),onChange:function(e,t){var n=he.A.find(function(t){return t.label===(null==e?void 0:e.label)});Ze(n),trackingUtils.track(userActions.SEARCH_BY_OPTION[null==n?void 0:n.key]),((0,B.wS)(Re)||[null==n?void 0:n.value,
2null==_e?void 0:_e.value].includes(he.lx.SA_NAME))&&(Pe(""),Fe(0,{sortBy:Se,searchFilter:n,searchValue:"",technicianList:L,dateFilter:{startDate:w,endDate:k}},!1),ee(1))}}),t&&(0,B.LX)(_e)&&Pt.createElement(st.Z,{className:"search-filter-input",style:{flex:1},icon:{name:"search"},placeholder:"".concat(Vt("scheduler.search_by")," ").concat(_e.label),id:_e.label,action:!0,value:Re,onChange:function(e){var t=null==e?void 0:e.target,n=t.value,i=t.id;Pe(n),Fe(0,{sortBy:Se,searchFilter:he.A.find(function(e){return e.label===i}),searchValue:n,technicianList:L,dateFilter:{startDate:w,endDate:k}},!1),ee(1)}})),Pt.createElement("div",{className:"grid-container"},se?function(){for(var e=[],t=0;t<7;t++)e.push(Pt.createElement(ct.Z,{className:"placeholder",key:t},Pt.createElement("div",{className:"loading-item animated-background half"}),Pt.createElement("div",{className:"loading-item animated-background three-quarter"}),Pt.createElement("div",{className:"loading-item animated-background half"}),Pt.createElement("div",{className:"loading-item animated-background"}),Pt.createElement("div",{className:"loading-item animated-background half"}),Pt.createElement("div",{className:"loading-item animated-background half"})));return e}():(Le=(0,u.Z)((0,u.Z)((0,u.Z)((0,u.Z)({},he.jg.ALL.unit,["All that was unassigned has now been assigned.","Everything unassigned has now been assigned.","Caught up on everything. What's next?"]),he.jg.OVERDUE.unit,["No overdue visits remaining!","All Overdue visits have been completed!","Caught up on everything. What's next?"]),he.jg.RECURRING.unit,["Could not find any Recurring visits","No recurring visits found!"]),he.jg.VISITS_WITH_SA.unit,["Unable to find any visits covered under Service Agreement","Could not find any visits with Service Agreement!"]),(0,B.pn)(Ae)?Pt.createElement("div",null,Pt.createElement(yt.t7,{height:window.innerHeight-he.jv-he.Mz-((0,B.LX)(_e)?he.bV:0),itemCount:Ae.length,overscanCount:Ae.length,itemSize:he.ns,className:"visits-event-list"},Ve)):Pt.createElement(ct.Z,null,Pt.createElement("div",{className:"no-visit-container"},Pt.createElement("i",{className:"fa fa-calendar fa-3x","aria-hidden":"true"}),Pt.createElement("div",null,(0,B.wS)(Re)?"No matching ".concat(he.jg[pe].label," found"):Le[he.jg[pe].unit][Math.floor(10*Math.random())%Le[he.jg[pe].unit].length]))))))},Wt=n(57689),Kt=function(e){var t=e.collapsible,n=e.showMarkerIcon,a=e.isSearchable,o=e.isFilteringAllowed,c=e.isSortingAllowed,g=e.moduleId,l=(0,i.useState)(!1),s=(0,r.Z)(l,2),A=s[0],C=s[1],I=getUserPreferencesByModule(g)||{};return Wt.createElement("div",{className:"visits-section"+(A?" collapse":" expanded")},Wt.createElement(ot.Z,{visible:!A,animation:"slide right",duration:{hide:100,show:100}},Wt.createElement("div",{className:"visits-wrapper"+(A?" collapse":" expanded")},Wt.createElement(Ht,{showMarkerIcon:n,isSearchable:a,isFilteringAllowed:o,isSortingAllowed:c,userPreferences:I}))),t&&Wt.createElement("div",{onClick:function(){C(function(e){return!1===(e=!e)&&trackingUtils.track(userActions.ALL_EVENTS),e})},style:{position:"absolute",top:120,border:"2px solid black",width:50,display:"flex",justifyContent:"center",right:-36,borderBottom:"none",borderTopRightRadius:10,borderTopLeftRadius:10,transform:"rotate(90deg)",zIndex:99,background:"#f8f8f8",cursor:"pointer"}},A?Wt.createElement(rt.K,{width:20}):Wt.createElement(at._,{width:20})))},zt=n(52024);function Jt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Xt(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return qt(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(qt(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,qt(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,qt(A,"constructor",l),qt(l,"constructor",g),g.displayName="GeneratorFunction",qt(l,r,"GeneratorFunction"),qt(A),qt(A,r,"Generator"),qt(A,i,function(){return this}),qt(A,"toString",function(){return"[object Generator]"}),(Xt=function(){return{w:a,m:C}})()}function qt(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}qt=function(e,t,n,i){function a(t,n){qt(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},qt(e,t,n,i)}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var tn,nn=s.Z.t,rn=null,an=[E.ZP.ROLES.TECHNICIAN,E.ZP.ROLES.SERVICE_MANAGER,E.ZP.ROLES.HELPER,E.ZP.ROLES.VIEW_RESTRICTED,E.ZP.ROLES.TECHNICIAN_RESTRICTED,E.ZP.ROLES.BILLING_RESTRICTED,E.ZP.ROLES.SENIOR_DISPATCHER,E.ZP.ROLES.STAFF_TECHNICIAN],on="___unassigned___",cn={},gn=new Date,ln={0:ie.Ci.SU,1:ie.Ci.MO,2:ie.Ci.TU,3:ie.Ci.WE,4:ie.Ci.TH,5:ie.Ci.FR,6:ie.Ci.SA},sn=[],An=[],Cn={saveAllEventUpdates:{text:nn("common.save")},discardAllEventUpdates:{text:nn("common.cancel")}},In={end:"discardAllEventUpdates saveAllEventUpdates"},un=!1;const dn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=getUserPreferencesByModule(Constants.MODULE_ID.NEW_SCHEDULER)||{},n=t.dayStartTime,a=t.dayEndTime,o=t.view,c=t.durationType,g=(t.newScheduler,t.uiType),l=te.setCorrespondingViewType(o||0),s=$.cookie(Constants.SS_COOKIES.SCHEDULER_DURATION_PREFERENCE)||te.setCorrespondingDurationType(c||0),A=n||G.DEFAULT_SCHEDULER_SETTINGS.dayStartTime,C=a||G.DEFAULT_SCHEDULER_SETTINGS.dayEndTime,I=l||G.DEFAULT_SCHEDULER_SETTINGS.parentView,f=G.parentViewProps.durationWiseView[I][s]||G.parentViewProps.initialView[I],v=e.context,p=void 0===v?{}:v,h=p.pickedDate,b=p.parentView,y=p.initialView,w=e.users,S=e.isRenderedByAdvancedTracking,T=void 0!==S&&S,N=e.isRenderedByHomepage,k=void 0!==N&&N,D=e.rowBlocks,j=void 0===D?0:D,L=e.selectedDateCallback,U=e.resetRecommenedRouteUserId,M=(0,i.useRef)(),V=(0,i.useState)(ae()(h||gn).format("YYYY-MM-DD")),F=(0,r.Z)(V,2),Y=F[0],H=F[1],W=(0,i.useState)(P.Z.getDateRangeDisplayString(h||gn,h||gn)),K=(0,r.Z)(W,2),z=K[0],J=K[1],Q=(0,i.useState)(s),X=(0,r.Z)(Q,2),q=X[0],ee=X[1],re=(0,i.useState)(T||k?"TIMELINE":b||I),ce=(0,r.Z)(re,2),ge=ce[0],le=ce[1],se=(0,i.useState)(T||k?"resourceTimelineDay":y||f),Ae=(0,r.Z)(se,2),Ce=Ae[0],Ie=Ae[1],ue=(0,i.useState)(g||G.DEFAULT_SCHEDULER_SETTINGS.uiType),de=(0,r.Z)(ue,2),me=de[0],fe=de[1],ve=(0,i.useState)([]),pe=(0,r.Z)(ve,2),he=pe[0],Ee=pe[1],be=(0,i.useState)([]),ye=(0,r.Z)(be,2),we=ye[0],Se=ye[1],Te=(0,i.useState)([]),Ne=(0,r.Z)(Te,2),ke=Ne[0],xe=Ne[1],_e=(0,i.useState)(!1),Ze=(0,r.Z)(_e,2),Oe=Ze[0],De=Ze[1],Re=(0,i.useState)([]),Pe=(0,r.Z)(Re,2),je=Pe[0],Le=(Pe[1],(0,i.useState)([])),Ue=(0,r.Z)(Le,2),Me=Ue[0],Ve=Ue[1],Fe=(0,i.useState)([]),Be=(0,r.Z)(Fe,2),Ye=Be[0],He=Be[1],We=(0,i.useState)(!1),Ke=(0,r.Z)(We,2),ze=Ke[0],Je=Ke[1],Xe=(0,i.useState)(null),$e=(0,r.Z)(Xe,2),tt=$e[0],nt=$e[1],rt=(0,i.useState)({}),at=(0,r.Z)(rt,2),ot=at[0],ct=at[1],gt=(0,i.useState)(A||G.DEFAULT_SCHEDULER_SETTINGS.dayStartTime),lt=(0,r.Z)(gt,2),st=lt[0],At=lt[1],Ct=(0,i.useState)(C||G.DEFAULT_SCHEDULER_SETTINGS.dayEndTime),ut=(0,r.Z)(Ct,2),dt=ut[0],mt=ut[1],ft=(0,i.useState)(G.DEFAULT_SCHEDULER_SETTINGS.dayOffs),vt=(0,r.Z)(ft,2),pt=vt[0],ht=vt[1],Et=(0,i.useState)(G.DEFAULT_SCHEDULER_SETTINGS.businessHours),bt=(0,r.Z)(Et,2),yt=bt[0],wt=bt[1],St=(0,i.useState)(null),Tt=(0,r.Z)(St,2),Nt=Tt[0],kt=Tt[1],xt=(0,qe.v9)(function(e){return e.dialer.currentStatus}),_t=It(),Zt=_t.removeVisitById,Ot=_t.onVisitAssign,Dt=_t.onCompleteVisitAssignment,Rt=_t.refetchVisits,Pt=_t.userDefaultTerritoryList;(0,i.useEffect)(function(){Ht()},[w]),(0,i.useEffect)(function(){if(Qt(),Yt(),yn(Y),T){var e=getUserPreferencesByModule(Constants.MODULE_ID.ADVANCED_SCHEDULER_TRACKING).durationType,t=void 0===e?0:e;if(0===t){bn("DAY"),te.setButtonActiveClass("DAY","fc-duration-button")}else if(1===t){var n="WEEK";bn(n),te.setButtonActiveClass(n,"fc-duration-button")}}},[]),(0,i.useEffect)(function(){setTimeout(function(){xn()},0)},[st,dt]),(0,i.useEffect)(function(){Yt()},[j]);var jt=function(){e.goToOldScheduler&&"function"==typeof e.goToOldScheduler&&e.goToOldScheduler()},Lt=function(e,t){Mt();var n,i=null;e&&(t&&t.dbId&&t.dbId!==on&&(n=t.dbId),i=te.getNewTicketModel(e,n));showAddTicketPopup({ticket:i,onAfterSave:function(){yn(Y)}}),getfloatlabel(),handleResetCSS()},Ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Mt();var n=ae()(Y,"YYYY-MM-DD").toDate();if(e){var i=t.eventStart,r=en(en({},e),{},{id:e.dbId});delete r.dbId,showAddTimeOffPopup({model:new BaseBackboneModel(r),curDate:n,timeoffDate:i,onSaveSuccess:function(){yn(Y)},onDeleteSuccess:function(){yn(Y)}})}else showAddTimeOffMultiPopup({model:null,curDate:n,onSaveSuccess:function(){yn(Y)}});getfloatlabel(),handleResetCSS()},Mt=function(){$(".toolBar").css("opacity","0.5"),$(".toolBar").css("pointer-events","none"),$(".container").css("opacity","0.5"),$(".container").css("pointer-events","none"),window.scrollTo(0,0)},Vt=function(){if(T)le("TIMELINE");else{var e="TIMELINE"===ge?"GRID":"TIMELINE";le(e),Bt(e)}},Ft=function(){var e=null;if(M){var t=M.current;t&&"function"==typeof t.getApi&&(e=M.current.getApi())}return e},Gt=function(){var e={},t=Ft();return t&&t.currentDataManager&&t.currentDataManager.state&&(e=t.currentDataManager.state),e},Bt=function(e){var t=G.parentViewProps.durationWiseView[e][q];Ie(t),te.setButtonActiveClass(q,"fc-duration-button"),"TIMELINE"===e&&Ht(),M.current.getApi().changeView(t),yn(Y),_n(e)},Yt=function(){var e=Ft();if(k){var t=document.getElementById("dashboard-content");
2e.setOption("contentHeight",t.clientHeight*j/8-150),e.setOption("height",t.clientHeight*j/8-150)}else{var n=(0,zt.sV)()-200;e.setOption("contentHeight",n),e.setOption("height",n)}_n(ge);var i=(settingsDataGlobal||{}).genericSettings,r=(void 0===i?{}:i).schedulerSettings,a=void 0===r?{}:r,o=a.dayOffs,c=a.businessHours,g=te.getDayStartEndTime(),l=g.dayStartTime,s=g.dayEndTime;At(l),mt(s),o&&ht(o),c&&wt(c)},Ht=function(){var e=(0,d.Z)(Xt().m(function e(){return Xt().w(function(e){for(;;)switch(e.n){case 0:if(w){e.n=2;break}return e.n=1,crmServices.UserService.getUsersByRole(an);case 1:sn=e.v,e.n=3;break;case 2:sn=w;case 3:Wt((0,B.pn)(je)?he:sn);case 4:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Wt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach(function(e){e.title=te.getFullUserLabelWithRoleName(e),e.dbId=e.id}),Ee(e)},Qt=function(){var e=(0,d.Z)(Xt().m(function e(){return Xt().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,te.getAssignmentStatusIdWiseDetails();case 1:return e.v,e.n=2,te.getJobTypeIdWiseDetails();case 2:cn=e.v;case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),qt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return{}};if(Object.keys(ot).length){var t=[];for(var n in ot){var r=(ot[n]||{}).event,a=(void 0===r?{}:r).extendedProps,o=void 0===a?{}:a;if("ASSIGNMENT"===o.type){var c=o.technician,g=void 0===c?{}:c,l=o.ticket,s=(void 0===l?{}:l).ticketNumber;t.push("#".concat(s," (").concat(R.ZP.getUserFullName(g)||"Unassigned",")"))}}var A="There are some unsaved ticket visits\n"+"".concat(t.join("\n"),"\n")+"Please review or dicard the changes before further action.";kt(i.createElement(oe.Z,{className:"scheduler-confirm-popup",open:!0,header:"Unsaved Visits",content:A,cancelButton:"Review Changes",confirmButton:"Discard Changes",size:"large",onCancel:function(){kt(null)},onConfirm:function(){kt(null),De(!1),kn(),ct({}),e(),Dt()}}))}else e()},$t=function(){var e=(0,d.Z)(Xt().m(function e(t,n){var i,a,o,c,g,l,s,A,C,I,u,d,f,v,p,h,b,y,w,S,T,N,k,x,_,Z,O,D,R,j,L,U;return Xt().w(function(e){for(;;)switch(e.p=e.n){case 0:return i=[],J(P.Z.getDateRangeDisplayString(t,ae()(n).subtract(1,"days").toDate())),showActivityInidicator(),a={total:0,limit:G.EVENT_LIMIT_PER_CALL,skip:0},o=[],e.n=1,fetchStaticListByKeys([Constants.STATIC_LIST_KEYS.ASSIGNMENT_STATUS_CF.LOCAL_KEY,Constants.STATIC_LIST_KEYS.ASSIGNMENT_STATUS.LOCAL_KEY],!0);case 1:return c=[],e.p=2,e.n=3,dn();case 3:c=e.v,e.n=5;break;case 4:e.p=4,j=e.v,console.error(j);case 5:return g=mn(t,n,a.limit,a.skip,c),o.push(g),l=vn(t,n),o.push(l),e.p=6,e.n=7,Promise.all(o);case 7:s=e.v,A=(0,r.Z)(s,2),C=A[0],I=C.results,u=void 0===I?[]:I,d=C.total,f=void 0===d?0:d,v=A[1],p=void 0===v?[]:v,a.total=f,a.skip+=a.limit,i=[].concat((0,m.Z)(u),(0,m.Z)(p)),e.n=9;break;case 8:e.p=8,L=e.v,console.error(L);case 9:for(h=[];a.skip<a.total;)b=mn(t,n,a.limit,a.skip,c),h.push(b),a.skip+=a.limit;if(!h.length){e.n=13;break}return e.p=10,y=[],e.n=11,Promise.all(h);case 11:e.v.forEach(function(e){var t=e.results,n=void 0===t?[]:t;y=[].concat((0,m.Z)(y),(0,m.Z)(n))}),i=[].concat((0,m.Z)(i),(0,m.Z)(y)),e.n=13;break;case 12:e.p=12,U=e.v,console.error(U);case 13:w=new Set,S=Jt(i);try{for(S.s();!(T=S.n()).done;)(N=T.value).ticketId&&w.add(N.ticketId)}catch(e){S.e(e)}finally{S.f()}k=(0,m.Z)(w),An=x=i,wn(Me,Ye),hideActivityInidcator(),crmServices.TimecardService.getTimecardsForTicket({ticketIds:k,options:{skipDeclined:!0}}).then(function(e){xe(e||[])}).catch(function(e){console.error(e)}),_=settingsDataGlobal||{},Z=_.genericSettings,O=(void 0===Z?{}:Z).fpFormsEnabled,D=void 0!==O&&O,k.length>0&&D&&(R={entityId:k,entityType:E.ZP.ENTITY_TYPE.TICKET_ID},crmServices.FormService.getDeficiencyTicketData(R).then(function(e){var t=(e||{}).ticketDeficiencyMapper,n=void 0===t?{}:t;x.forEach(function(e){var t=n[e.ticketId]||{},i=t.reported,r=void 0===i?0:i,a=t.converted,o=void 0===a?0:a;e.nfpaData={deficiencyReported:r||0,deficiencyConverted:o||0}}),Se(function(e){return(0,m.Z)(e)})}).catch(function(e){console.error(e)}));case 14:return e.a(2)}},e,null,[[10,12],[6,8],[2,4]])}));return function(t,n){return e.apply(this,arguments)}}(),dn=function(){var e=(0,d.Z)(Xt().m(function e(){var t,n;return Xt().w(function(e){for(;;)switch(e.n){case 0:if(t=[],!(0,B.pn)(Pt)){e.n=1;break}t=Pt.map(function(e){return e.id}),e.n=3;break;case 1:return e.n=2,crmServices.UserService.getUserBussinessUnits();case 2:n=e.v,t=n.map(function(e){return e.id});case 3:return e.a(2,Array.from(new Set(t)))}},e)}));return function(){return e.apply(this,arguments)}}(),mn=function(e,t){var n=arguments.length>
22&&void 0!==arguments[2]?arguments[2]:G.EVENT_LIMIT_PER_CALL,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return new Promise(function(){var a=(0,d.Z)(Xt().m(function a(o){var c,g,l,s,A,C,I,u,d;return Xt().w(function(a){for(;;)switch(a.p=a.n){case 0:return c=[],g=0,a.p=1,a.n=2,te.getAssignments({startDate:e,endDate:t,limit:n,skip:i});case 2:l=a.v,s=l.result,A=void 0===s?[]:s,C=l.meta,I=(void 0===C?{}:C).totalResults,u=void 0===I?0:I,A.forEach(function(e){var t=fn(e,r);c.push(t)}),g=u,a.n=4;break;case 3:a.p=3,d=a.v,console.error(d);case 4:o({results:c,total:g});case 5:return a.a(2)}},a,null,[[1,3]])}));return function(e){return a.apply(this,arguments)}}())},fn=function(e){var t,n,i,r,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=en({type:"ASSIGNMENT"},e);c.dbId=c.id,c.resourceId=te.getIdFromKeyValue(c.technicianId)||on,c.title="#".concat(c.ticket.ticketNumber),c.start=c.startTime,c.assignmentStartTime=c.startTime,c.end=c.endTime,c.assignmentEndTime=c.endTime;var g=c.status,l=null!==(t=settingsDataGlobal)&&void 0!==t&&null!==(n=t.ticketSettings)&&void 0!==n&&n.isAssignmentCustomStatusEnabled?c.statusCF:c.status,s=getAssignmentStatusColor(l);c.resourceId===on&&(s=Constants.eventColor.Unassigned);var A=(settingsDataGlobal||{}).ticketSettings,C=(void 0===A?{}:A).allowResizingOfCompleteVisit;c.backgroundColor=s,c.borderColor=s,c.textColor="rgb(0, 0, 0)",c.classNames=["custom-event-container"],c.editable=C||g!==Constants.visitStatus.COMPLETE,c.resourceEditable=g!==Constants.visitStatus.COMPLETE;var I=null!==(i=null===(r=c.ticket)||void 0===r||null===(a=r.serviceAddress)||void 0===a?void 0:a.businessUnitId)&&void 0!==i?i:null;
2return(0,B.pn)(o)&&(0,B.wS)(I)&&!o.includes(I)&&(c.editable=!1,c.resourceEditable=!1,c.extendedProps=en(en({},c.extendedProps),{},{readOnly:!0}),c.backgroundColor=addAlpha(s,.1),c.borderColor=addAlpha(s,.1),c.textColor=addAlpha("#000000",.1)),c.display="block",c},vn=function(e,t){return new Promise(function(){var n=(0,d.Z)(Xt().m(function n(i){var r,a;return Xt().w(function(n){for(;;)switch(n.p=n.n){case 0:return r=[],n.p=1,n.n=2,te.getTimeOffs(e,t);case 2:n.v.forEach(function(e){var t=e.repeat;(void 0===t?[]:t).length?r.push.apply(r,(0,m.Z)(hn(e))):r.push(pn(e))}),n.n=4;break;case 3:n.p=3,a=n.v,console.error(a);case 4:i(r);case 5:return n.a(2)}},n,null,[[1,3]])}));return function(e){return n.apply(this,arguments)}}())},pn=function(e){return en(en({},e),{},{type:"TIME_OFF",dbId:e.id,resourceId:te.getIdFromKeyValue(e.technicianId),title:"Time Off",start:e.scheduledStartTime,end:e.scheduledEndTime,textColor:"rgb(0, 0, 0)",classNames:["custom-event-container","time-off-event"],editable:!1,resourceEditable:!1,display:"block",recurring:!!ss_validations.checkIfDictionaryNotEmpty(e.recurringEventOptions)})},hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=e.scheduledStartTime,i=e.scheduledEndTime,r=e.repeat,a=void 0===r?[]:r,o=e.exceptions,c=void 0===o?[]:o,g=new Date(n),l=new Date(i),s=g.getHours(),A=g.getMinutes(),C=l.getHours(),I=l.getMinutes();return(new ie.Ci({dtstart:new Date(n),until:new Date(i),freq:ie.Ci.WEEKLY,byweekday:a.map(function(e){return ln[e]})}).all()||[]).forEach(function(n){var i=function(e){return c.find(function(t){return ae()(t).isSame(ae()(e),"day")})}(n);if(!i){var r=ae()(n).toDate();r.setHours(s),r.setMinutes(A);var a=ae()(n).toDate();a.setHours(C),a.setMinutes(I);var o=pn(e);t.push(en(en({},o),{},{start:r,end:a,recurring:!0}))}}),t},En=function(e){var t=Ft();"NEXT"===e?t.next():"PREV"===e?t.prev():"TODAY"===e&&t.today();var n=Gt(),i=n.currentDate,r=void 0===i?new Date:i,a=n.dateProfile,o=(void 0===a?{}:a).dateIncrement,c=void 0===o?{years:0,months:0,days:0,milliseconds:0,specifiedWeeks:!1}:o;U&&"function"==typeof U&&U();var g=r.getTimezoneOffset(),l=ae()(r).add(g,"minutes");L&&"function"==typeof L&&L(ae()(l).format("MMMM DD, YYYY"));var s="day";7===c.days&&c.specifiedWeeks?s="week":1===c.months&&(s="month"),H(l.format("YYYY-MM-DD"));var A=l.startOf(s).toDate(),C=ae()(A).add(c).toDate();$t(A,C)},bn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge;if(G.parentViewProps.durationWiseView[t]&&G.parentViewProps.durationWiseView[t][e]){var n=G.parentViewProps.durationWiseView[t][e];ee(e),Ie(n),Ht(),te.setButtonActiveClass(e,"fc-duration-button"),Ft().changeView(n),En("TODAY"),"WEEK"===e&&setTimeout(function(){xn()},0),U&&"function"==typeof U&&U()}},yn=function(e){var t=ae()(e,"YYYY-MM-DD");L&&"function"==typeof L&&L(ae()(t).format("MMMM DD, YYYY")),U&&"function"==typeof U&&U();var n=Ft(),i=Gt().dateProfile,r=(void 0===i?{}:i).dateIncrement,a=void 0===r?{years:0,months:0,days:0,milliseconds:0,specifiedWeeks:!1}:r,o="day";7===a.days&&a.specifiedWeeks?o="week":1===a.months&&(o="month");var c=t.startOf(o).toDate(),g=ae()(c).add(a).toDate();n.gotoDate(c),H(ae()(c).format("YYYY-MM-DD")),$t(c,g)},wn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(t),i=t.length?sn.filter(function(e){return n.has(e.id)}):sn;Wt(i),Ve(e),He(t);var r=function(e,t){return e.filter(function(e){var n=e||{},i=n.type,r=n.technicianId;return"ASSIGNMENT"!==i&&"TIME_OFF"!==i||0===t.length||-1!==t.indexOf(r)})}(An,t);Se(r)},Sn=function(e){var t=e.jsEvent,n=e.event;try{if(un=te.isDroppedEvent(n),!function(e){var t=!1;"undo"===e.target.dataset.name&&(t=!0);"moveBackToUnassignedVisitsIconId"===e.target.id&&(t=!0);return t}(t))return void function(e){e&&(nt(e),Je(!0))}(n.extendedProps.ticket.id);un&&okayDialog(function(){te.removeDroppedEvent(n),Rt()},nn("dialog.confirmation_dialog"),nn("dialog.unassigned_visits"),nn("common.yes"))}catch(e){console.error("Failed to handle click event for ASSIGNMENT Ttype",e)}},Tn=function(){var e=(0,d.Z)(Xt().m(function e(){var t,n,i,r,a,o;return Xt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,NetworkHeartbeatService.checkAndShowPopupBeforeAction("Save Visits");case 1:if(e.v){e.n=2;break}return e.a(2);case 2:return t=function(e){var t=null;if(e&&e.getResources&&"function"==typeof e.getResources){var n=e.getResources();n&&n[0]&&n[0].id&&n[0].id!==on&&(t=n[0].id)}return t},n=(Object.keys(ot)||[]).map(function(e){var n=ot[e].event,i=void 0===n?{}:n,r=i.start,a=i.end,o=i.extendedProps,c=void 0===o?{}:o,g=c.dbId,l=c.ticketId,s=c.updatedAt,A={id:g,ticketId:l};s&&(A.updatedAt=s),A.startTime=r,A.endTime=a;var C=t(i);return A.technicianId=C,A}),showActivityInidicator(),e.p=3,e.n=4,crmServices.TicketService.updateAssignmentBulk(n);case 4:kn(),De(!1),ct({}),yn(Y),e.n=6;break;case 5:e.p=5,o=e.v,console.error(o),r=(i=o||{}
2).code,a=i.description,"E104"===r?confirmDialog(function(e){e&&(Nn(),yn(Y))},nn("dialog.cant_save_visits"),a,nn("button.refresh"),nn("button.ok")):showError(o,null,nn("error.save_visit"));case 6:hideActivityInidcator(),Dt();case 7:return e.a(2)}},e,null,[[3,5]])}));return function(){return e.apply(this,arguments)}}(),Nn=function(){(Object.keys(ot)||[]).forEach(function(e){ot[e].revert()}),kn(),De(!1),ct({}),Dt()},kn=function(){var e=Ft();e&&e.getEvents&&(e.getEvents()||[]).forEach(function(e){te.removeDroppedEvent(e)})};Cn.saveAllEventUpdates.click=Tn,Cn.discardAllEventUpdates.click=Nn;var xn=function(){var e=".fc-resource-timeline.fc-resourceTimelineWeek-view",t=".fc-timeline-slot",n=ae()("00:00",E.ZP.timeFormat),i=ae()("24:00",E.ZP.timeFormat);if(st){var r=ae()(st,E.ZP.timeFormat);r.isValid()&&(n=r)}if(dt){var a=ae()(dt,E.ZP.timeFormat);a.isValid()&&(i=a)}var o=i.diff(n,"minutes"),c=Math.ceil(o/60);isNaN(c)&&c>0||["th","td"].forEach(function(n){(document.querySelectorAll("".concat(e," ").concat(n).concat(t))||[]).forEach(function(e){e.classList&&(e.classList.remove("highlight-rigth-border"),e.classList.remove("highlight-left-border"))}),(document.querySelectorAll("".concat(e," ").concat(n).concat(t,":nth-child(").concat(c,"n)"))||[]).forEach(function(e){e.classList&&e.classList.add("highlight-rigth-border")}),(document.querySelectorAll("".concat(e," ").concat(n).concat(t,":nth-child(").concat(c,"n + 1)"))||[]).forEach(function(e){e.classList&&e.classList.add("highlight-left-border")})})},_n=function(e){document.querySelectorAll(".calendar-container").forEach(function(t){t.style.width=T||k?"100%":e===G.parentViews.timeline?"85%":"100%"})},Zn=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.keys(t)||null,i=(0,r.Z)(n,1)[0],a=Jt(ke);try{for(a.s();!(e=a.n()).done;){var o=e.value||{},c=o.assignmentId,g=(void 0===c?{}:c).id,l=o.approvalStatusId,s=(void 0===l?{}:l).name;if(g==i&&s!==Constants.timeCardApprovalStatus.DECLINED)return!0}}catch(e){a.e(e)}finally{a.f()}return!1},On=function(){me===Constants.SCHEDULER_UI_TYPES.CARD_UI?fe(Constants.SCHEDULER_UI_TYPES.BLOCK_UI):me===Constants.SCHEDULER_UI_TYPES.BLOCK_UI&&fe(Constants.SCHEDULER_UI_TYPES.CARD_UI)};return i.createElement(i.Fragment,null,Nt,i.createElement(Qe,{open:ze,ticketId:tt,closeModal:function(){Je(!1)},calendarState:{pickedDate:Y,parentView:ge,initialView:Ce},deviceStatus:xt,isRenderedByAdvancedTracking:T,isVisitSelectedUnAssigned:un,refetchUnassignedVisitsCallback:Rt,updateScheduler:(0,d.Z)(Xt().m(function e(){return Xt().w(function(e){for(;;)switch(e.n){case 0:Yt(),yn(ae()(h||gn).format("YYYY-MM-DD")),Rt();case 1:return e.a(2)}},e)}))}),i.createElement(Ge,{isRenderedByAdvancedTracking:T,isRenderedByHomepage:k,parentView:ge,durationType:q,selectedGroups:je,selectedGroupsAndTechs:Me,filteredUsers:he,toolbarTitle:z,pickedDate:Y,uiType:me,switchUIType:function(){return qt(On)},backToOldScheduler:function(){return qt(jt)},switchParentView:function(){return qt(Vt)},changeParentView:function(e){return qt(function(){return function(e){if(T)le("TIMELINE");else{var t=e||l;le(t),Bt(t)}}(e)})},onChangeDuration:function(e,t){return qt(function(){return bn(e,t)})},onClickNavigationButton:function(e){return qt(function(){return En(e)})},onPickDate:function(e){return qt(function(){return yn(e)})},onSelectGroupAndTechnician:wn,onClickAddTicket:function(){return qt(Lt)},onClickAddTimeOff:function(){return qt(Ut)},onChangeSettings:function(e){return qt(function(){return function(e){var t=e.dayStartTime,n=e.view,i=e.durationType,r=e.dayEndTime,a=e.uiType,o=te.setCorrespondingViewType(n),c=te.setCorrespondingDurationType(i);(0,B.wS)(a)&&fe(a),t!==st&&At(t),r!==dt&&mt(r),T?le("TIMELINE"):ge!==o&&le(o);var g=G.parentViewProps.durationWiseView[o][c];Ce!==g&&Ie(g)}(e)})}}),i.createElement("div",{className:"full-calendar-body"},ge!==G.parentViews.timeline||T||k?null:i.createElement("div",{className:"visits-container"},i.createElement(Kt,{collapsible:!0,isSearchable:!0,isFilteringAllowed:!0,isSortingAllowed:!0,moduleId:Constants.MODULE_ID.NEW_SCHEDULER})),i.createElement("div",{className:"calendar-container",style:k?{margin:"20px",padding:"5px"}:{}},i.createElement(x.ZPm,{schedulerLicenseKey:"0031757793-fcs-1630524997",ref:M,plugins:[_.ZP,Z.ZP,O.ZP,ne.default],expandRows:!0,slotMinWidth:80,initialView:Ce,initialDate:gn,nowIndicator:!0,headerToolbar:!1,footerToolbar:Oe,customButtons:Cn,resources:he,resourceOrder:"firstName,lastName",resourceAreaHeaderContent:nn("common.technicians"),resourceAreaWidth:T||k?"350px":"250px",resourceLabelContent:function(e){return{html:te.prepareResourceLabelContent(e,T)}},events:we,editable:!0,eventResourceEditable:!0,eventContent:function(e){if(e.event.extendedProps.readOnly)return i.createElement(it,null);var t=Gt();return i.createElement(et,{details:e.event,options:{calendarState:t,jobTypeIdWiseDetails:cn},isRenderedByAdvancedTracking:T,showCardUIForScheduler:me===Constants.SCHEDULER_UI_TYPES.CARD_UI})},eventClick:function(e){if(e.event.extendedProps.readOnly)return e.jsEvent.preventDefault(),void e.jsEvent.stopPropagation();!function(e){if(e&&e.event&&e.event.extendedProps){var t=e.event,n=t.extendedProps,i=void 0===n?{}:n,r=t.start,a=i.type;
2if("TIME_OFF"===a)return void Ut(i,{eventStart:r});"ASSIGNMENT"===a&&Sn(e)}}(e)},eventDrop:function(e){De(In),ct(en(en({},ot),{},(0,u.Z)({},e.event.id,e)))},eventResize:function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zn(t)?okayDialog(function(){},nn("dialog.update_visit"),nn("dialog.timecard_added"),nn("button.ok"),{alertType:alertTypeDetailsHash.WARNING}):(De(e),ct(t))}(In,en(en({},ot),{},(0,u.Z)({},e.event.id,e)))},eventAdd:function(e){De(In),ct(en(en({},ot),{},(0,u.Z)({},e.event.id,e)))},dateClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.date,n=e.resource,i=(void 0===n?{}:n).extendedProps,r=void 0===i?{}:i;if(t){var a=t.toUTCString();rn==a?(rn=null,Lt(t,r)):(rn=t.toUTCString(),clearInterval(tn),tn=setInterval(function(){rn=null,clearInterval(tn)},500))}},hiddenDays:pt,businessHours:yt,slotMinTime:st,slotMaxTime:dt,droppable:!0,drop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.date,n=e.resource,i=(void 0===n?{}:n).id,r=e.draggedEl,a=(void 0===r?{}:r).dataset,o=(void 0===a?{}:a).visitDetails,c=void 0===o?"":o,g=e.view,l=(void 0===g?{}:g).type,s=(void 0===l?"":l).toLowerCase();if((0,B.F5)(t)&&(0,B.wS)(i)&&(0,B.wS)(c)&&(0,B.wS)(s)&&s.includes("timeline"))try{var A=JSON.parse(c),C=A.id,I=A.startTime,u=A.endTime;A.technicianId=i,A.droppedEvent=!0;var d,m=Jt(sn);try{for(m.s();!(d=m.n()).done;){var f=d.value;if(f.id==A.technicianId){A.technician=f;break}}}catch(e){m.e(e)}finally{m.f()}var v,p=ae()(I),h=ae()(u).diff(p,"minutes"),E=t.toISOString();if(s.includes("month"))E=ae()(I).set({date:t.getDate(),month:t.getMonth(),year:t.getFullYear()}).toDate().toISOString();v=ae()(E).add("minutes",h).toDate().toISOString(),A.startTime=E,A.endTime=v;var b=fn(A),y=Ft();y&&y.addEvent&&(y.addEvent(b),Zt({id:C}),Ot())}catch(e){console.error(e)}},allDaySlot:!1}))))};n(92578);var mn=n(57689);function fn(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return vn(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(vn(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,vn(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,vn(A,"constructor",l),vn(l,"constructor",g),g.displayName="GeneratorFunction",vn(l,r,"GeneratorFunction"),vn(A),vn(A,r,"Generator"),vn(A,i,function(){return this}),vn(A,"toString",function(){return"[object Generator]"}),(fn=function(){return{w:a,m:C}})()}function vn(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}vn=function(e,t,n,i){function a(t,n){vn(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},vn(e,t,n,i)}var pn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).rowUnits,t=(0,i.useState)([]),n=(0,r.Z)(t,2),a=n[0],o=n[1];(0,i.useEffect)(function(){c()},[]);var c=function(){var e=(0,d.Z)(fn().m(function e(){var t,n;return fn().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,crmServices.UserService.getUsersByRole(T);case 1:(t=e.v).forEach(function(e){e.title=te.getFullUserLabelWithRoleName(e),e.dbId=e.id}),o(t),e.n=3;break;case 2:e.p=2,n=e.v,console.error("Error while getting users: ",n),o([]);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();return mn.createElement("div",{id:"full-calendar-container",className:"scheduler-container"},mn.createElement(dn,{users:a,isRenderedByHomepage:!0,rowBlocks:e}))};pn.defaultProps={rowUnits:2},pn.propTypes={rowUnits:v().number};const hn=pn;var En=n(35760),bn=n(38388),yn=n(47962),wn=n(57689);function Sn(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return Tn(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(Tn(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tn(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,Tn(A,"constructor",l),Tn(l,"constructor",g),g.displayName="GeneratorFunction",Tn(l,r,"GeneratorFunction"),Tn(A),Tn(A,r,"Generator"),Tn(A,i,function(){return this}),Tn(A,"toString",function(){return"[object Generator]"}),(Sn=function(){return{w:a,m:C}})()}function Tn(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Tn=function(e,t,n,i){function a(t,n){Tn(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Tn(e,t,n,i)}var Nn=[{label:wn.createElement("div",null,wn.createElement("div",null,"Invoice #"),wn.createElement("div",null,"Invoice Date")),accessor:"invoice_number"},{label:wn.createElement("div",null,wn.createElement("div",null,"Customer Name"),wn.createElement("div",null,"Service Address")),accessor:"customer",width:2},{label:wn.createElement("div",null,wn.createElement("div",null,"Job Type"),wn.createElement("div",null,"Created by")),accessor:"job_type"},{label:wn.createElement("div",null,wn.createElement("div",null,"Sub Total"),wn.createElement("div",null,"Tax")),accessor:"sub_total",width:1},{label:"Total",accessor:"invoice_total",width:1},{label:wn.createElement("div",null,wn.createElement("div",null,"Invoice Status"),wn.createElement("div",null,"Financing")),accessor:"invoice_status",width:1}];const kn=function(){var e=(0,i.useState)(!1),t=(0,r.Z)(e,2),n=t[0],a=t[1],o=(0,i.useState)(!1),c=(0,r.Z)(o,2),g=c[0],l=c[1],s=(0,i.useState)([]),A=(0,r.Z)(s,2),C=A[0],I=A[1],u=(0,i.useState)(""),m=(0,r.Z)(u,2),f=m[0],v=m[1],p=20,h="desc",E=(0,i.useState)(1),b=(0,r.Z)(E,2),y=b[0],w=b[1],S=(0,i.useState)(0),T=(0,r.Z)(S,2),N=T[0],k=T[1];(0,i.useEffect)(function(){x()},[y]);var x=function(){var e=(0,d.Z)(Sn().m(function e(){var t,n,i,r,a,o,c,g,s,A,C,u=arguments;return Sn().w(function(e){for(;;)switch(e.n){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:f,l(!0),n=p,i={sortBy:[{updatedAt:h.toLowerCase()}],size:n,page:y,independentInvoices:!0,searchQuery:t},r={},(a=moment()).subtract(1e3,"d"),a.format("MM/DD/YYYY"),(o=moment()).format("MM/DD/YYYY"),r.gtDate=[{invoiceDate:a}],r.ltDate=[{invoiceDate:o}],e.n=1,yn.Z.getFilteredInvoices(i,r);case 1:c=e.v,g=c.hits,s=void 0===g?[]:g,A=c.count,C=void 0===A?0:A,I(s),k(C),l(!1);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),_=function(e,t){a(wn.createElement(En.Z,{withoutTicket:!0,action:e,closeModal:Z,invoice:t,type:"INVOICE"})),"ADD"===e?trackingUtils.track(userActions.ESTIMATE_CREATION_WINDOW):"EDIT"===e&&trackingUtils.track(userActions.ESTIMATE_PAGEVIEW)},Z=function(){a(!1),x()},O=(0,i.useCallback)(debounce(x),[]);return wn.createElement("div",{className:"invoice-listing-container"},wn.createElement("div",null,n||null),wn.createElement("div",{className:"invoice-listing-header"},wn.createElement("div",{className:"invoice-search-add"},wn.createElement("div",{className:"add-invoice-btn"},wn.createElement(ve.Z,{id:"addNewInvoiceBtn",className:"add-button transition",onClick:function(){_("ADD")}},"Add New Invoice")),wn.createElement("div",{className:"search-input"},wn.createElement(st.Z,{placeholder:"Search Invoice",value:f,onChange:function(e){var t=e.target.value;O(t),v(t)}}))),wn.createElement("div",null,wn.createElement(dt.Z,{onClick:function(){x()},style:{cursor:"pointer"},name:"refresh",size:"large"}))),wn.createElement("div",{className:"invoice-listing-table"},wn.createElement(bn.Z,{headers:Nn,loading:g,invoices:C,activePage:y,totalInvoicesCount:N,onRefreshClick:function(e){e.sort,e.filters,e.page;x()},onPageChange:function(e,t){var n=t.activePage;w(n)},tableConfig:{areRowsClickable:!0,showRefreshButton:!1,limitPerPage:p,showSerialNumbers:!0}})))};var xn=n(61310),_n=n(40271),Zn=n(81612),On=n(57689);function Dn(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return Rn(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(Rn(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Rn(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,Rn(A,"constructor",l),Rn(l,"constructor",g),g.displayName="GeneratorFunction",Rn(l,r,"GeneratorFunction"),Rn(A),Rn(A,r,"Generator"),Rn(A,i,function(){return this}),Rn(A,"toString",function(){return"[object Generator]"}),(Dn=function(){return{w:a,m:C}})()}function Rn(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Rn=function(e,t,n,i){function a(t,n){Rn(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Rn(e,t,n,i)}var Pn=[{label:On.createElement("div",null,On.createElement("div",null,"Estimate #"),On.createElement("div",null,"Estimate Date")),accessor:"estimate_number"},{label:On.createElement("div",null,On.createElement("div",null,"Customer Name"),On.createElement("div",null,"Service Address")),accessor:"customer",width:2},{label:On.createElement("div",null,On.createElement("div",null,"Job Type"),On.createElement("div",null,"Created by")),accessor:"job_type"},{label:On.createElement("div",null,On.createElement("div",null,"Sub Total"),On.createElement("div",null,"Tax")),accessor:"sub_total",width:1},{label:"Total",accessor:"estimate_total",width:1},{label:On.createElement("div",null,On.createElement("div",null,"Estimate Status"),On.createElement("div",null,"Financing")),accessor:"estimate_status",width:1}];const jn=function(){var e=(0,i.useState)(!1),t=(0,r.Z)(e,2),n=t[0],a=t[1],o=(0,i.useState)(!1),c=(0,r.Z)(o,2),g=c[0],l=c[1],s=(0,i.useState)(!1),A=(0,r.Z)(s,2),C=A[0],I=A[1],m=(0,i.useState)([]),f=(0,r.Z)(m,2),v=f[0],p=f[1],h=(0,i.useState)(""),E=(0,r.Z)(h,2),b=E[0],y=E[1],w=20,S="desc",T=(0,i.useState)(1),N=(0,r.Z)(T,2),k=N[0],x=N[1],_=(0,i.useState)(0),Z=(0,r.Z)(_,2),O=Z[0],D=Z[1];(0,i.useEffect)(function(){R()},[k]);var R=function(){var e=(0,d.Z)(Dn().m(function e(){var t,n,i,r,a,o,c,g,l,s,A,C,d,m=arguments;return Dn().w(function(e){for(;;)switch(e.n){case 0:return t=m.length>0&&void 0!==m[0]?m[0]:b,n=m.length>1&&void 0!==m[1]?m[1]:k,I(!0),i=w,r={sortBy:[{updatedAt:S.toLowerCase()}],size:i,page:n,independentEstimates:!0,searchQuery:t},a={},(o=moment()).subtract(1e3,"d"),o.format("MM/DD/YYYY"),(c=moment()).format("MM/DD/YYYY"),g="invoiceDate",a.gtDate=[(0,u.Z)({},g,o)],a.ltDate=[(0,u.Z)({},g,c)],e.n=1,Zn.Z.getFilteredEstimates(r,a);case 1:l=e.v,s=l.hits,A=void 0===s?[]:s,C=l.count,d=void 0===C?0:C,p(A),D(d),I(!1);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),P=function(e){l(On.createElement(_n.Z,{withoutTicket:!0,action:e,buildNewEstimate:function(){j(),L("ADD")},closeModal:function(){j(),R()},ticket:null}))},j=function(){l(!1)},L=function(e,t){a(On.createElement(En.Z,{withoutTicket:!0,action:e,closeModal:U,estimate:t})),"ADD"===e?trackingUtils.track(userActions.ESTIMATE_CREATION_WINDOW):"EDIT"===e&&trackingUtils.track(userActions.ESTIMATE_PAGEVIEW)},U=function(){a(!1),R()},M=(0,i.useCallback)(debounce(function(e){x(1),R(e,1)}),[]);return On.createElement("div",{className:"estimate-listing-container"},On.createElement("div",null,n||null),On.createElement("div",null,g||null),On.createElement("div",{className:"estimate-listing-header"},On.createElement("div",{className:"estimate-search-add"},On.createElement("div",{className:"add-estimate-btn"},On.createElement(ve.Z,{id:"addNewEstimateBtn",className:"add-button transition",onClick:function(){var e=(settingsDataGlobal||{}).genericSettings,t=(void 0===e?{}:e).isEstimatePackageEnabled;void 0!==t&&t?P("ADD"):L("ADD")}},"Add New Estimate")),On.createElement("div",{className:"search-input"},On.createElement(st.Z,{placeholder:"Search Estimate",value:b,onChange:function(e){var t=e.target.value;M(t),y(t)}}))),On.createElement("div",null,On.createElement(dt.Z,{onClick:function(){R()},name:"refresh",style:{cursor:"pointer"},size:"large"}))),On.createElement("div",{className:"estimate-listing-table"},On.createElement(xn.Z,{headers:Pn,loading:C,estimates:v,activePage:k,totalEstimatesCount:O,onRowClick:function(e,t){L("EDIT",t)},onRefreshClick:function(e){e.sort,e.filters,e.page;R()},onPageChange:function(e,t){var n=t.activePage;x(n)},tableConfig:{areRowsClickable:!0,showRefreshButton:!1,limitPerPage:w,showSerialNumbers:!0}})))};var Ln=n(78902),Un=n(47166),Mn=n(57689);const Vn=function(){var e=(0,i.useState)(!1),t=(0,r.Z)(e,2),n=t[0],a=t[1];return Mn.createElement("div",{className:"add-customer-container"},n?Mn.createElement(Un.Z,{message:"Saving Customer Details"}):Mn.createElement(Mn.Fragment,null,Mn.createElement("div",{className:"createCustomerHeading"},"Create Customer"),Mn.createElement(Ln.Z,{isCalledFromMvp:!0,setLoading:a,editBilling:!0})))};var Fn=n(57689);function Gn(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var g=i&&i.prototype instanceof c?i:c,l=Object.create(g.prototype);return Bn(l,"_invoke",function(n,i,r){var a,c,g,l=0,s=r||[],A=!1,C={p:0,n:0,v:e,a:I,f:I.bind(e,4),d:function(t,n){return a=t,c=0,g=e,C.n=n,o}};function I(n,i){for(c=n,g=i,t=0;!A&&l&&!r&&t<s.length;t++){var r,a=s[t],I=C.p,u=a[2];n>3?(r=u===i)&&(g=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=I&&((r=n<2&&I<a[1])?(c=0,C.v=i,C.n=a[1]):I<u&&(r=n<3||a[0]>i||i>u)&&(a[4]=n,a[5]=i,C.n=u,c=0))}if(r||n>1)return o;throw A=!0,i}return function(r,s,u){if(l>1)throw TypeError("Generator is already running");for(A&&1===s&&I(s,u),c=s,g=u;(t=c<2?e:g)||!A;){a||(c?c<3?(c>1&&(C.n=-1),I(c,g)):C.n=g:C.v=g);try{if(l=2,a){if(c||(r="next"),t=a[r]){if(!(t=t.call(a,g)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;g=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(g=TypeError("The iterator does not provide a '"+r+"' method"),c=1);a=e}else if((t=(A=C.n<0)?g:n.call(i,C))!==o)break}catch(t){a=e,c=1,g=t}finally{l=1}}return{value:t,done:A}}}(n,r,a),!0),l}var o={};function c(){}function g(){}function l(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(Bn(t={},i,function(){return this}),t),A=l.prototype=c.prototype=Object.create(s);function C(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Bn(e,r,"GeneratorFunction")),e.prototype=Object.create(A),e}return g.prototype=l,Bn(A,"constructor",l),Bn(l,"constructor",g),g.displayName="GeneratorFunction",Bn(l,r,"GeneratorFunction"),Bn(A),Bn(A,r,"Generator"),Bn(A,i,function(){return this}),Bn(A,"toString",function(){return"[object Generator]"}),(Gn=function(){return{w:a,m:C}})()}function Bn(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Bn=function(e,t,n,i){function a(t,n){Bn(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Bn(e,t,n,i)}var Yn=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).components,t=(0,i.useState)(),n=(0,r.Z)(t,2),a=n[0],o=n[1],c=(0,i.useState)(null),g=(0,r.Z)(c,2),l=g[0],s=g[1],A=(0,i.useState)(!1),C=(0,r.Z)(A,2),I=C[0],f=C[1];(0,i.useEffect)(function(){$("#dashboard-content").css("height","calc(100vh / var(--scale-comp) - ".concat(120,"px + ").concat(516,"px)"));var e=document.getElementById("dashboard-content");o(e);var t=getUserPreferencesByModule(Constants.MODULE_ID.HOMEPAGE)||{};if((0,B.LX)(t)){var n=[];for(var i in t)n.push(getJsonFromObj(t[i]));s(v(n)?n:k)}else s(k)},[]);var v=function(t){var n=t.filter(function(t){return e.includes(t.i)});return!!n.length&&Math.max.apply(Math,(0,m.Z)(n.map(function(e){return(e.y||0)+(e.h||0)})))<=8},p=function(){var e=(0,d.Z)(Gn().m(function e(t){var n,i,r;return Gn().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n={moduleId:Constants.MODULE_ID.HOMEPAGE,preferences:(0,u.Z)((0,u.Z)((0,u.Z)((0,u.Z)({},y,t.find(function(e){return e.i===y})),b,t.find(function(e){return e.i===b})),w,t.find(function(e){return e.i===w})),S,t.find(function(e){return e.i===S})),userId:getCurrentUser().id,companyId:getCurrentUser().get("companyId")},e.n=1,pe.Z.update(n);case 1:return e.n=2,crmServices.UserService.getCurrentUser();case 2:i=e.v,window.whoami=new BaseModel(i),e.n=4;break;case 3:e.p=3,r=e.v,console.error("Error while saving homepage layout: ",r);case 4:return e.a(2)}},e,null,[[0,3]])}));return function(t){return e.apply(this,arguments)}}();return Fn.createElement("div",{className:"mvp-container"},Fn.createElement("div",{className:"setResizableButtonContainer"},Fn.createElement(ce.Z,{componentType:"toggle",value:I,handleChange:function(){f(function(e){return!e})}}),"Resize/Rearrange"),(0,B.LX)(a)?Fn.createElement(h(),{className:"grid-layout",layout:l,cols:N,maxRows:8,isResizable:I,isDraggable:I,rowHeight:(a.clientHeight-100)/8,width:a.clientWidth-40,transformScale:1,onLayoutChange:function(e){s(e),p(e)}},e.map(function(e){return Fn.createElement("div",{key:e},(t=e)===b?Fn.createElement("div",{className:"estimate-listing-wrapper"},Fn.createElement(jn,null)):t===y?Fn.createElement("div",{className:"invoice-listing-wrapper"},Fn.createElement(kn,null)):t===w?Fn.createElement(hn,{rowUnits:null===(n=l.filter(function(e){return e.i===w})[0])||void 0===n?void 0:n.h}):t===S?Fn.createElement(Vn,{isCalledFromMvp:!0}):void 0);var t,n})):null)};Yn.defaultProps={components:[]},Yn.propTypes={components:v().array};const Hn=Yn;const Wn=function(){return(0,i.useEffect)(function(){ga("send","event","Home page","Home page","Home page"),$(".dashboard-content").css("background","#f0f0f0"),adjustDashboardContentPadding()},[]),i.createElement("div",{id:"dashboard-content",className:"dashboard-content"},shouldShowMVP()?i.createElement(Hn,{components:["estimateListing","invoiceListing","scheduler","customerCreate"]}):i.createElement(I,null))}},44621:(e,t,n)=>
2{(e.exports=n(12933)(!1)).push([e.id,".loader-container{position:relative;width:100%;height:600px}.my-loader{top:40%;left:50%;transform:translateX(-50%);position:absolute}.loader-img{object-fit:none;height:100px;width:100%}.loader-text{text-align:center;font-size:22px;font-weight:400}",""])},23963:(e,t,n)=>{(e.exports=n(12933)(!1)).push([e.id,".invoices-table-wrapper #invoice_number{text-decoration:none;white-space:nowrap}.invoices-table-wrapper #invoice_number:hover{color:#00627f}.invoices-table-wrapper #invoice_number:hover .recurring-invoice-icon{filter:brightness(0) saturate(100%) invert(24%) sepia(82%) saturate(2000%) hue-rotate(190deg) brightness(95%) contrast(101%)}",""])},52664:(e,t,n)=>{(e.exports=n(12933)(!1)).push([e.id,".technician-option-value-container{display:flex;align-items:center;padding:10px;cursor:pointer}.technician-option-value-container .technician-option-value-checkbox{margin-right:10px;width:20px;height:20px}.technician-option-value-container .technician-option-value-avatar{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;overflow:hidden;color:#fff;font-weight:bold}.technician-option-value-container .technician-option-value-label{margin-left:5px;font-size:14px}.technician-overflow-avatar{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background-color:#ccc;margin-left:-10px;z-index:1;font-size:14px}.technician-option-avatar{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;overflow:hidden;margin-left:-10px;z-index:1;color:#fff;font-weight:bold}",""])},59260:(e,t,n)=>{(e.exports=n(12933)(!1)).push([e.id,".visits-section{display:flex;position:relative;padding:none}.visits-section.collapse{flex:0;transition:flex .5s ease-in}.visits-section.expanded{flex:1;transition:flex .2s ease-out;width:320px;min-width:300px;max-height:100px}.visits-section .visits-wrapper{width:100%}.visits-section .visits-wrapper.collapse{display:none}.visits-section .visits-wrapper .fc .fc-toolbar-chunk .fc-button-group{white-space:nowrap;width:95%}.visits-section .visits-wrapper .fc .fc-toolbar-chunk .fc-button-group .fc-button{font-size:18px}.visits-section .visits-wrapper .fc .fc-toolbar-chunk .fc-button-group .fc-button-primary{background-color:#222425;border-color:#222425}.visits-section .visits-wrapper .fc .fc-toolbar-chunk .fc-button-group .fc-button-active{background-color:rgba(34,36,37,.75)}.visits-section #visits-grid{width:100%;font-size:18px !important}.visits-section #visits-grid .loading-item{margin:10px 8px 10px 8px}@keyframes placeHolderShimmer{0%{background-position:-800px 0}100%{background-position:800px 0}}.visits-section #visits-grid .loading-item.animated-background{animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeHolderShimmer;animation-timing-function:linear;background:linear-gradient(to right, #ffffff 8%, #d4d4d5 18%, #ffffff 33%);background-size:800px;height:14px;border-radius:5px}.visits-section #visits-grid .loading-item.quarter{width:25%}.visits-section #visits-grid .loading-item.half{width:50%}.visits-section #visits-grid .loading-item.three-quarter{width:75%}.visits-section #visits-grid .grid-label{margin-bottom:8px;padding-top:none}.visits-section #visits-grid .grid-header{display:flex;flex-direction:column;gap:10px;align-items:center}.visits-section #visits-grid .grid-header .search-filter-select,.visits-section #visits-grid .grid-header .search-filter-input{width:100%}.visits-section #visits-grid .grid-header .ui.input>input::placeholder{color:#1b1b1b}.visits-section #visits-grid .grid-header .sort-and-filters{width:100%;display:flex;justify-content:space-around}.visits-section #visits-grid .grid-header .sort-and-filters div:has(i.icon){width:10%;display:flex;justify-content:center;align-items:center}.visits-section #visits-grid .grid-header .date-range-filter{width:100%}.visits-section #visits-grid .grid-header .date-range-filter .date-range-input{width:100% !important}.visits-section #visits-grid .grid-header .date-range-filter .date-range-input input{cursor:pointer}.visits-section #visits-grid .grid-container{overflow:auto;position:absolute;width:100%;margin-top:10px;padding-right:16px}.visits-section #visits-grid .grid-container .ui.segment{padding:0px !important}.visits-section #visits-grid .grid-container .ui.segment.placeholder{background:#fff}.visits-section #visits-grid .grid-container .no-visit-container{text-align:center;font-size:20px;margin:8px}.visits-section #visits-grid .grid-container .visits-event-list{scroll-behavior:smooth;overflow:hidden}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container{overflow:hidden;border-radius:8px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event{background:#fff;border-color:#9e9e9e}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event.fc-unassigned-visits{cursor:pointer}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details{overflow:hidden;color:#000;display:flex;flex-direction:column;gap:6px;width:100%}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-header{display:flex;flex-direction:row;justify-content:space-between}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-header .event-list-header-details{display:flex;flex-direction:column;gap:2px;width:70%}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-header .event-list-header-details .customer-name{font-size:24px !important;font-weight:500;overflow:hidden;text-overflow:ellipsis}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-header .event-list-header-details .ticket-number{font-size:20px !important;font-weight:300}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-header .event-list-header-details .ticket-number .ticket-id{color:#0784e3;cursor:pointer}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-header .event-list-top-indicators{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start;gap:4px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-header .event-list-top-indicators .priority-indicator i{font-size:24px;color:#e56}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-header .event-list-top-indicators .sa-job i{color:#e56;font-size:24px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-header .event-list-top-indicators .recurring-visit{filter:grayscale(100%) sepia(100%) hue-rotate(-50deg) saturate(500%)}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-body{dis
2play:flex;flex-direction:column;padding-bottom:10px;background-image:linear-gradient(to right, #9e9e9e 70%, rgba(255, 255, 255, 0) 30%);background-position:bottom;background-size:10px 1px;background-repeat:repeat-x;gap:4px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-body .detail-string{font-size:16px !important;font-weight:lighter}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-body .detail-string .bold-text{font-weight:500}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-body .tech-assigned{font-size:14px !important}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-footer{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-top:6px;gap:4px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-footer .job-type{font-size:14px !important;font-weight:lighter;flex:8}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .event-details .event-list-card-footer .visit-status-indicator{font-size:14px !important;padding:2px 12px;height:24px;display:flex;border-radius:6px;align-items:center;justify-content:center;flex:3}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .ticket-details-indicators{display:flex;flex-direction:column}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .ticket-details-indicators .top-indicators{display:flex;flex-direction:row;gap:10px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .ticket-details-indicators .top-indicators .priority-indicator i{font-size:24px;color:#d60000}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .ticket-details-indicators .bottom-indicators{height:100%;align-items:flex-end;display:flex;align-self:end}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .ticket-details-indicators .bottom-indicators .recurring-visit{margin-bottom:-4px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .ticket-details-indicators .bottom-indicators .recurring-visit img{height:24px;width:24px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .ticket-details-indicators .sa-job{height:100%;align-items:flex-end;display:flex;align-self:end}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visits-event .ticket-details-indicators .sa-job i{color:#d60000;padding:0 0 2px 2px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event.visit-container-scrolled-into-view{border:3px solid #555;border-radius:12px;background-color:#f0f0f0;box-shadow:0 0 12px rgba(0,0,0,.2);transform:scale(1.02);transition:all .3s ease}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event .fc-event-main{display:flex;height:190px;overflow:hidden;padding:8px;border-radius:2px;font-size:18px;width:100%;gap:0px}.visits-section #visits-grid .grid-container .visits-event-list .visits-event-container .fc-event .fc-event-main .visit-duration{white-space:break-spaces}.visits-section #visits-grid .grid-container .load-more-button{margin-right:8px}",""])},11504:(e,t,n)=>{var i=n(57153);
2(e.exports=n(12933)(!1)).push([e.id,'#full-calendar-container .full-calendar-body{display:flex;justify-content:space-between}#full-calendar-container .full-calendar-body .visits-container{background:#fff;border-radius:8px}#full-calendar-container .full-calendar-body .visits-container .visits-section.expanded{min-width:300px;width:320px;padding:8px}#full-calendar-container .fc table,#full-calendar-container .fc .fc-button{font-size:18px}#full-calendar-container .fc .fc-button-primary{background-color:#222425;border-color:#222425}#full-calendar-container .fc .fc-button-settings{background-color:#222425;border-color:#222425;border-radius:50%}#full-calendar-container .fc .fc-button-active{background-color:rgba(34,36,37,.75)}#full-calendar-container .fc .fc-icon-custom-fa{font-family:"FontAwesome" !important;font-size:18px}#full-calendar-container .fc .fc-event.custom-event-container{font-size:18px}#full-calendar-container .fc .fc-event.custom-event-container.time-off-event{border:none;background-image:url('+i(n(38553))+");background-color:rgba(255,0,0,.25)}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container{overflow:hidden;height:100%;display:flex;flex-direction:column}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .travel-time-indicator{top:-4px;height:calc(100% + 8px);border:dotted 3px #a7a9ac;color:#000;font-size:14px;pointer-events:none;position:absolute;display:flex;justify-content:center;align-items:center}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .travel-time-indicator .time-value{padding-right:4px}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .travel-time-indicator i{color:rgba(34,36,37,.75)}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .job-type-color-indicator{height:20px;width:20px;border-radius:50%;display:inline-block;float:left;margin-left:2px;margin-top:2px}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .ticket-details-indicators .user-count{height:50%;align-items:flex-start;display:flex}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .ticket-details-indicators .user-count i{padding:0 0 0 2px}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .ticket-details-indicators .sa-job{height:50%;align-items:flex-end;display:flex}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .ticket-details-indicators .sa-job i{color:#d60000;padding:0 0 2px 2px}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .ticket-details-indicators .recurring-visit{align-items:flex-end;display:flex}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .ticket-details-indicators .recurring-visit img{height:15px;width:15px}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .assignment-details{width:100%}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .assignment-details.text-align-center{text-align:center}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .assignment-details .event-icons{display:flex;justify-content:center}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .assignment-details .event-icons i.fa.fa-user{padding:0 10px}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .assignment-details .nfpa-deficiency{color:#e70000}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .priority-indicator{position:absolute;right:0px;top:0px}#full-calendar-container .fc .fc-event.custom-event-container .assignment-event-container .priority-indicator i{font-size:28px;color:#d60000}#full-calendar-container .fc .fc-event.custom-event-container .job-status-details{text-align:center;align-items:center;display:flex;text-transform:UPPERCASE;font-weight:bold;color:#1c3143;justify-content:center;padding:0px 8px}#full-calendar-container .fc .fc-event.custom-event-container .time-off-event-container{overflow:hidden;height:100%;display:flex}#full-calendar-container .fc .fc-event.custom-event-container .time-off-event-container i{padding:0 4px 0 0px}#full-calendar-container .fc .fc-event.custom-event-container .time-off-event-container .time-off-details{overflow:hidden;width:100%}#full-calendar-container .fc .fc-event.custom-event-container .time-off-event-container .time-off-details.text-align-center{text-align:center}#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineMonth-view .fc-timeline-slot.fc-day-sun{border-right-width:4px}#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineMonth-view .fc-timeline-slot.fc-day-mon{border-left-width:4px}#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineWeek-view .fc-timeline-header-row .fc-timeline-slot.fc-timeline-slot-label.fc-day{border-left:1px solid #bdbdbd !important;border-right:1px solid #bdbdbd !important}#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineWeek-view .fc-timeline-body th.fc-timeline-slot.highlight-left-border,#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineWeek-view .fc-timeline-body td.fc-timeline-slot.highlight-left-border,#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineWeek-view .fc-timeline-header th.fc-timeline-slot.highlight-left-border,#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineWeek-view .fc-timeline-header td.fc-timeline-slot.highlight-left-border{border-left:1px solid #bdbdbd !important}#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineWeek-view .fc-timeline-body th.fc-timeline-slot.highlight-rigth-border,#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineWeek-view .fc-timeline-body td.fc-timeline-slot.highlight-rigth-border,#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineWeek-view .fc-timeline-header th.fc-timeline-slot.highlight-rigth-border,#full-calendar-container .fc .fc-resource-timeline.fc-resourceTimelineWeek-view .fc-timeline-header td.fc-timeline-slot.highlight-rigth-border{border-right:1px solid #bdbdbd !important}#full-calendar-container .fc .fc-header-toolbar .scheduler-info-icon{font-size:32px}#full-calendar-container .header-toolbar-date-picker{margin:0px;padding:0px}#full-calendar-container .header-toolbar-date-picker input{height:44px;border-radius:0px 3px 3px 0px;box-shadow:none;border:1px solid #767676}#full-calendar-container .header-toolbar-react-select{margin:0px;padding:0px}#full-calendar-container .header-toolbar-react-select .css-yk16xz-control,#full-calendar-container .header-toolbar-react-select .css-1pahdxg-control{height:44px;box-shadow:none;border:1px solid #767676}#full-calendar-container .header-toolbar-react-select .css-26l3qy-menu{z-index:5}#full-calendar-container .custom-resource-label-container{display:flex;overflow:hidden}#full-calendar-container .custom-resource-label-container .resource-photo{width:50px}#full-calendar-container .custom-resource-label-container .resource-photo img{border-radius:50%;width:36px}#full-calendar-container .custom-resource-label-container .resource-title{width:200
2px;white-space:normal;margin-top:auto;margin-bottom:auto}#full-calendar-container .fc-footer-toolbar{margin-top:.75rem;margin-bottom:.75rem}#full-calendar-container .fc-footer-toolbar .fc-saveAllEventUpdates-button{background-color:var(--app-primary-color);border:none;color:#000}#full-calendar-container .fc-footer-toolbar .fc-discardAllEventUpdates-button{background-color:#aab7bf;border:none;color:#000}.scheduler-event-tooltip-container .event-description{white-space:pre-wrap}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container{display:flex;flex-direction:column;gap:6px;padding:4px}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-header{font-size:24px !important;border-bottom:1px solid #9c9c9c}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body{padding:4px;display:flex;flex-direction:column;gap:4px}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body .body-header{font-size:16px !important;font-weight:400}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body .body-details{padding:0px 4px 4px 8px}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body .body-details .body-details-grid{display:grid;grid-template-columns:2fr 3fr;gap:10px 10px;align-items:center}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body .body-details .body-details-grid .detail-row{display:contents}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body .body-details .body-details-grid .detail-string{font-size:16px !important;font-weight:lighter;text-align:justify}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body .body-details .body-details-grid .bold-text{font-weight:500;text-align:justify}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body .body-details .customer-name{font-size:22px !important;font-weight:500}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body .body-details .detail-string{font-size:16px !important;font-weight:lighter;text-align:justify}.scheuler-custom-event-tooltip .new-scheduler-event-tooltip-container .scheduler-event-tooltip-body .body-details .detail-string .bold-text{font-weight:500;text-align:justify}.route-button{font-size:18px;background-color:#efefef;color:#222425;border-color:#222425;padding:.2em .6em;border-radius:.25em}.route-button:hover{cursor:pointer}.route-button-active{background-color:#222425;color:#fff}.tech-label-container-scrolled-into-view{animation:flash-row 1s ease-out 2}@keyframes flash-row{50%{box-shadow:inset 0 0 20px -5px #000,inset 0 0 5px 5px #fff}100%{box-shadow:none}}",""])},28139:(e,t,n)=>{(e.exports=n(12933)(!1)).push([e.id,".edit-ticket-modal{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000;background-color:rgba(0,0,0,.8);display:flex;justify-content:center;align-items:center}.edit-ticket-modal-content{width:80%;height:80%;position:relative;background-color:#fff;overflow:auto;border-radius:10px;box-shadow:0 0 20px #a9a9a9}.edit-ticket-modal-content .header-wrapper{top:0px !important}.edit-ticket-modal-content #editTicketContainer{top:100px !important}",""])},46060:(e,t,n)=>{var i=n(57153);
2(e.exports=n(12933)(!1)).push([e.id,".scheuler-custom-event-tooltip,.scheduler-info-tooltip{font-size:18px}.scheduler-info-table{border:none !important;margin:0px !important}.scheduler-info-table .scheduler-info-row .scheduler-info-cell{padding:4px;border:none}.scheduler-info-table .scheduler-info-row .scheduler-info-cell .scheduler-info-header-label{width:200px}.scheduler-info-table .scheduler-info-row .scheduler-info-cell .event-info-indicator{height:32px;width:32px;border-radius:8px}.scheduler-info-table .scheduler-info-row .scheduler-info-cell .event-info-indicator.unassigned-visit{background:#9e9e9e}.scheduler-info-table .scheduler-info-row .scheduler-info-cell .event-info-indicator.time-off{background-image:url("+i(n(38553))+");background-color:rgba(255,0,0,.25)}.scheduler-info-table .scheduler-info-row .scheduler-info-cell .event-info-indicator.icon{justify-content:center;align-items:center;display:flex}.scheduler-info-table .scheduler-info-row .scheduler-info-cell .event-info-indicator.icon.color-red{color:#d60000}.scheduler-info-table .scheduler-info-row .scheduler-info-cell .event-info-indicator.icon i{padding:0px}.scheduler-info-table .scheduler-info-row .scheduler-info-cell.scheduler-info-cell-label{width:150px}.scheduler-info-table .nfpa-deficiency{color:#e70000}",""])},39637:(e,t,n)=>{(e.exports=n(12933)(!1)).push([e.id,".app-image-section .app-image{width:25%}.app-image-section .occasion-app-image{width:35%;border-radius:15px}",""])},26457:(e,t,n)=>{var i=n(57153);
2(e.exports=n(12933)(!1)).push([e.id,".mvp-container{display:flex;flex-direction:column;height:100%;padding:0px 20px;font-size:18px}.mvp-container .estimate-listing-wrapper thead th:nth-child(3),.mvp-container .estimate-listing-wrapper tbody td:nth-child(3),.mvp-container .invoice-listing-wrapper thead th:nth-child(3),.mvp-container .invoice-listing-wrapper tbody td:nth-child(3){width:30%;max-width:0}.mvp-container .estimate-listing-wrapper tbody td:nth-child(3)>div,.mvp-container .invoice-listing-wrapper tbody td:nth-child(3)>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mvp-container .setResizableButtonContainer{display:flex;width:100%;flex-direction:row;justify-content:end;column-gap:10px;align-items:center}.mvp-container .add-customer-container{display:flex;justify-content:flex-start;align-items:stretch;flex-direction:column;padding:10px;padding-top:0;overflow:hidden;box-shadow:2px 2px 24px rgba(0,0,0,.4);border-radius:8px;background-color:#fff;height:100%;min-height:0}.mvp-container .add-customer-container .add-customer-form-container{padding:16px !important;height:auto !important;max-height:none !important;overflow-y:auto !important;flex:1 1 auto;min-height:0}.mvp-container .add-customer-container .add-customer-footer{flex:0 0 auto;margin:0 !important;padding:8px 16px;background:#fff}.mvp-container .add-customer-container .add-customer-footer>.sixteen.wide.column{padding:0 !important}.mvp-container .add-customer-container .add-customer-action-block{position:static;justify-content:flex-end}.mvp-container .add-customer-container .vi-banner{margin-bottom:10px !important;padding:8px 14px !important}.mvp-container .add-customer-container .createCustomerHeading{width:100%;display:flex;align-items:center;min-height:56px;padding:0 10px;font-size:x-large;flex:0 0 auto}.mvp-container .estimate-listing-wrapper{box-shadow:2px 2px 24px rgba(0,0,0,.4);border-radius:8px;background-color:#fff;height:100%}.mvp-container .estimate-listing-wrapper .estimate-listing-container{height:100%;display:flex;justify-content:space-between;align-items:center;flex-direction:column;overflow:hidden}.mvp-container .estimate-listing-wrapper .estimate-listing-container .estimate-listing-header{display:flex;justify-content:space-between;align-items:center;width:100%;column-gap:25px;padding:0px 20px 0px 0px}.mvp-container .estimate-listing-wrapper .estimate-listing-container .estimate-search-add{display:flex;justify-content:flex-start;align-items:center}.mvp-container .estimate-listing-wrapper .estimate-listing-container .estimate-listing-table{flex:1 1 auto;min-height:0;align-items:flex-start;display:flex;width:100%;flex-direction:column}.mvp-container .estimate-listing-wrapper .estimate-listing-container .estimate-listing-table div:nth-child(2){width:100%}.mvp-container .estimate-listing-wrapper .estimate-listing-container .estimate-listing-table .ui.pagination.menu{width:fit-content !important}.mvp-container .estimate-listing-wrapper .estimate-listing-container .estimate-listing-table .estimates-table-wrapper{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.mvp-container .estimate-listing-wrapper .estimate-listing-container .estimate-listing-table .estimates-table-wrapper>div:first-child{flex:1 1 auto;min-height:0}.mvp-container .estimate-listing-wrapper .estimate-listing-container .estimate-listing-table .estimates-table-wrapper>div:last-child{flex:0 0 auto}.mvp-container .invoice-listing-wrapper{box-shadow:2px 2px 24px rgba(0,0,0,.4);border-radius:8px;background-color:#fff;height:100%}.mvp-container .invoice-listing-wrapper .invoice-listing-container{height:100%;display:flex;justify-content:space-between;align-items:center;flex-direction:column;overflow:hidden}.mvp-container .invoice-listing-wrapper .invoice-listing-container .invoice-listing-header{display:flex;justify-content:space-between;align-items:center;width:100%;column-gap:25px;padding:0px 20px 0px 0px}.mvp-container .invoice-listing-wrapper .invoice-listing-container .invoice-search-add{display:flex;justify-content:flex-start;align-items:center}.mvp-container .invoice-listing-wrapper .invoice-listing-container .invoice-search-add .add-invoice-btn>#addNewInvoiceBtn{background:url("+i(n(2092))+") #222425 no-repeat 9px 50%;color:#fff !important;text-transform:uppercase !important;font-size:15px !important;padding-left:51px !important;font-weight:400 !important;line-height:25px !important;-webkit-box-shadow:1px 2px 2px 0px rgba(0,0,0,.21);-moz-box-shadow:1px 2px 2px 0px rgba(0,0,0,.21);box-shadow:1px 2px 2px 0px rgba(0,0,0,.21);height:51px;padding-right:18px !important;border-radius:2px;margin:0px 20px 5px 20px !important}.mvp-container .invoice-listing-wrapper .invoice-listing-container .invoice-listing-table{flex:1 1 auto;min-height:0;align-items:flex-start;display:flex;width:100%;flex-direction:column}.mvp-container .invoice-listing-wrapper .invoice-listing-container .invoice-listing-table div:nth-child(2){width:100%}.mvp-container .invoice-listing-wrapper .invoice-listing-container .invoice-listing-table .ui.pagination.menu{width:fit-content !important}.mvp-container .invoice-listing-wrapper .invoice-listing-container .invoice-listing-table .invoices-table-wrapper{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.mvp-container .invoice-listing-wrapper .invoice-listing-container .invoice-listing-table .invoices-table-wrapper>div:first-child{flex:1 1 auto;min-height:0}.mvp-container .invoice-listing-wrapper .invoice-listing-container .invoice-listing-table .invoices-table-wrapper>div:last-child{flex:0 0 auto}.mvp-container .scheduler-container{display:flex;justify-content:center;align-items:center;box-shadow:2px 2px 24px rgba(0,0,0,.4);border-radius:8px;background-color:#fff;flex-direction:column;height:100%}.mvp-container .scheduler-container .full-calendar-body{width:100%}",""])},56859:(e,t,n)=>{var i=n(44621);"string"==typeof i&&(i=[[e.id,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(39255)(i,r);i.locals&&(e.exports=i.locals)},75868:(e,t,n)=>{var i=n(23963);"string"==typeof i&&(i=[[e.id,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(39255)(i,r);i.locals&&(e.exports=i.locals)},50:(e,t,n)=>{var i=n(52664);"string"==typeof i&&(i=[[e.id,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(39255)(i,r);i.locals&&(e.exports=i.locals)},68157:(e,t,n)=>{var i=n(59260);"string"==typeof i&&(i=[[e.id,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(39255)(i,r);i.locals&&(e.exports=i.locals)},92578:(e,t,n)=>{var i=n(11504);"string"==typeof i&&(i=[[e.id,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(39255)(i,r);i.locals&&(e.exports=i.locals)},44394:(e,t,n)=>{var i=n(28139);"string"==typeof i&&(i=[[e.id,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(39255)(i,r);i.locals&&(e.exports=i.locals)},50785:(e,t,n)=>{var i=n(46060);"string"==typeof i&&(i=[[e.id,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(39255)(i,r);i.locals&&(e.exports=i.locals)},13131:(e,t,n)=>{var i=n(39637);"string"==typeof i&&(i=[[e.id,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(39255)(i,r);i.locals&&(e.exports=i.locals)}
2,59899:(e,t,n)=>{var i=n(26457);"string"==typeof i&&(i=[[e.id,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(39255)(i,r);i.locals&&(e.exports=i.locals)},2092:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAADowaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzAxNCA3OS4xNTY3OTcsIDIwMTQvMDgvMjAtMDk6NTM6MDIgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgI
2HhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE0IChXaW5kb3dzKTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNS0wNC0xNFQxODo1Njo1NCswNTozMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE1LTA2LTE4VDExOjI5OjA5KzA1OjMwPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpNZXRhZGF0YURhdGU+MjAxNS0wNi0xOFQxMToyOTowOSswNTozMDwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9wbmc8L2RjOmZvcm1hdD4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHBob3Rvc2hvcDpJQ0NQcm9maWxlPnNSR0IgSUVDNjE5NjYtMi4xPC9waG90b3Nob3A6SUNDUHJvZmlsZT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDphMTBlNWY4YS04NmVlLTc1NDgtOTVhNi1jZmZkZjIyNzQ3MDc8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPmFkb2JlOmRvY2lkOnBob3Rvc2hvcDoxN2ZiYTA5MC0xNTdmLTExZTUtOWU5Zi1lZTUzMTg0MzkzZDE8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDoyYjc1ZTMyOS0yOWRmLTk3NDAtOGIzZS1hOTU5M2ExMDI5MTA8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6MmI3NWUzMjktMjlkZi05NzQwLThiM2UtYTk1OTNhMTAyOTEwPC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE1LTA0LTE0VDE4OjU2OjU0KzA1OjMwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNCAoV2luZG93cyk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5zYXZlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOmExMGU1ZjhhLTg2ZWUtNzU0OC05NWE2LWNmZmRmMjI3NDcwNzwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxNS0wNi0xOFQxMToyOTowOSswNTozMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjM1PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjM1PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI
2CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5NghWBAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAD2SURBVHja7Ja9CsIwFIW/aqm4CIKLILgKjj6CL+DuK/gADo5Orr6Oj+AqODk5iSB2EX9qXK4QCrVClaRwL4QDDQlfb84JCYwx+FIVPCqFURiF8QlmBKyBsQ8wPWAA9H2AqYlGRff7BcxDNAGMGthXmCClTmEulhbyTJgz35ARiUHtbiTAE2jJtybQsfa1warAHTgDcWaLcx5Xc2Ao8U1Sc+/0dIE2cAB2GT9ZEZgVMCuFgfM6880xTYApsAQWRY4pzzPxp8VSR9ETsHedprqlgWsYk1K9gb2ECa3EOPfMVfQmUXcKs5Vn5+bfl54aWGEUppQwrwEAxEY4lEeYRKoAAAAASUVORK5CYII="},38553:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpEOEYxQUUwRDMxMUZFNTExODI4RkYwRjRDQTYxMjc5QyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1OURBOEYyQjFGMzMxMUU1QjA4QUNEMTI2QkFENkExMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1OURBOEYyQTFGMzMxMUU1QjA4QUNEMTI2QkFENkExMyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpEOEYxQUUwRDMxMUZFNTExODI4RkYwRjRDQTYxMjc5QyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpEOEYxQUUwRDMxMUZFNTExODI4RkYwRjRDQTYxMjc5QyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PjARZvYAAABBSURBVHjaYvx26fp/BiDg1NVgBNHfL98A80GAESSJTQIs+f8/hI8uAZfEJgEyjRFmJ7oE3E5sEiDTUCTRHQYQYABTJTAYb3VBJQAAAABJRU5ErkJggg=="}}]);
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.